From 6203e1d6992ee780158bf271509f343a1271fc82 Mon Sep 17 00:00:00 2001 From: Gregor Wassmann Date: Mon, 27 Mar 2023 16:10:35 +0200 Subject: [PATCH] chore: v11 DatePicker For better compatibility with existing codebases size xl is still supported. --- COMPONENT_INDEX.md | 2 +- docs/src/COMPONENT_API.json | 2 +- docs/src/pages/components/DatePicker.svx | 4 ++-- src/DatePicker/DatePickerInput.svelte | 4 ++-- tests/DatePicker.test.svelte | 2 +- types/DatePicker/DatePickerInput.svelte.d.ts | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index d7ec320e..5247ee6c 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -1082,7 +1082,7 @@ None. | Prop name | Required | Kind | Reactive | Type | Default value | Description | | :-------------- | :------- | :--------------- | :------- | ----------------------------------------- | ------------------------------------------------ | -------------------------------------------------- | | ref | No | let | Yes | null | HTMLInputElement | null | Obtain a reference to the input HTML element | -| size | No | let | No | "sm" | "xl" | undefined | Set the size of the input | +| size | No | let | No | "sm" | "lg" | undefined | Set the size of the input | | type | No | let | No | string | "text" | Specify the input type | | placeholder | No | let | No | string | "" | Specify the input placeholder text | | pattern | No | let | No | string | "\\d{1,2}\\/\\d{1,2}\\/\\d{4}" | Specify the Regular Expression for the input value | diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index 160934f0..73a49ebb 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -3005,7 +3005,7 @@ "name": "size", "kind": "let", "description": "Set the size of the input", - "type": "\"sm\" | \"xl\"", + "type": "\"sm\" | \"lg\"", "isFunction": false, "isFunctionDeclaration": false, "isRequired": false, diff --git a/docs/src/pages/components/DatePicker.svx b/docs/src/pages/components/DatePicker.svx index 3e4dbdcf..fa0e6496 100644 --- a/docs/src/pages/components/DatePicker.svx +++ b/docs/src/pages/components/DatePicker.svx @@ -63,10 +63,10 @@ By default, the "simple" date picker does not have a dropdown calendar. -## Extra-large size +## Large size - + ## Small size diff --git a/src/DatePicker/DatePickerInput.svelte b/src/DatePicker/DatePickerInput.svelte index ad4a3bd6..a116b64a 100644 --- a/src/DatePicker/DatePickerInput.svelte +++ b/src/DatePicker/DatePickerInput.svelte @@ -1,7 +1,7 @@