From 019f9773a821dc1d384920f7dc3d3b3c9ed2abfb Mon Sep 17 00:00:00 2001 From: Gregor Wassmann Date: Tue, 28 Mar 2023 22:23:30 +0200 Subject: [PATCH] chore: v11 Search --- COMPONENT_INDEX.md | 4 ++-- docs/src/COMPONENT_API.json | 8 ++++---- docs/src/pages/components/Search.svx | 2 +- src/Search/Search.svelte | 8 ++++---- src/Search/SearchSkeleton.svelte | 6 +++--- types/Search/Search.svelte.d.ts | 4 ++-- types/Search/SearchSkeleton.svelte.d.ts | 4 ++-- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index 0f06f082..2f95e0f1 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -3102,7 +3102,7 @@ None. | ref | No | let | Yes | null | HTMLInputElement | null | Obtain a reference to the input HTML element | | expanded | No | let | Yes | boolean | false | Set to `true to expand the search input | | value | No | let | Yes | any | "" | Specify the value of the search input | -| size | No | let | No | "sm" | "lg" | "xl" | "xl" | Specify the size of the search input | +| size | No | let | No | "sm" | "md" | "lg" | "md" | Specify the size of the search input | | searchClass | No | let | No | string | "" | Specify the class name passed to the outer div element | | skeleton | No | let | No | boolean | false | Set to `true` to display the skeleton state | | light | No | let | No | boolean | false | Set to `true` to enable the light variant | @@ -3147,7 +3147,7 @@ None. | Prop name | Required | Kind | Reactive | Type | Default value | Description | | :-------- | :------- | :--------------- | :------- | ----------------------------------------- | ----------------- | ------------------------------------ | -| size | No | let | No | "sm" | "lg" | "xl" | "xl" | Specify the size of the search input | +| size | No | let | No | "sm" | "md" | "lg" | "md" | Specify the size of the search input | ### Slots diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index 8d770e4f..2bed366d 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -9926,8 +9926,8 @@ "name": "size", "kind": "let", "description": "Specify the size of the search input", - "type": "\"sm\" | \"lg\" | \"xl\"", - "value": "\"xl\"", + "type": "\"sm\" | \"md\" | \"lg\"", + "value": "\"md\"", "isFunction": false, "isFunctionDeclaration": false, "isRequired": false, @@ -10150,8 +10150,8 @@ "name": "size", "kind": "let", "description": "Specify the size of the search input", - "type": "\"sm\" | \"lg\" | \"xl\"", - "value": "\"xl\"", + "type": "\"sm\" | \"md\" | \"lg\"", + "value": "\"md\"", "isFunction": false, "isFunctionDeclaration": false, "isRequired": false, diff --git a/docs/src/pages/components/Search.svx b/docs/src/pages/components/Search.svx index 4bac0252..f41f158b 100644 --- a/docs/src/pages/components/Search.svx +++ b/docs/src/pages/components/Search.svx @@ -6,7 +6,7 @@ ## Default -The `Search` component size is extra-large by default. There are [large](#large-size) and [small](#small-size) size variants. +The `Search` component size is medium by default. There are [large](#large-size) and [small](#small-size) size variants. diff --git a/src/Search/Search.svelte b/src/Search/Search.svelte index 0f62df88..28f284ea 100644 --- a/src/Search/Search.svelte +++ b/src/Search/Search.svelte @@ -13,9 +13,9 @@ /** * Specify the size of the search input - * @type {"sm" | "lg" | "xl"} + * @type {"sm" | "md" | "lg"} */ - export let size = "xl"; + export let size = "md"; /** Specify the class name passed to the outer div element */ export let searchClass = ""; @@ -96,8 +96,8 @@ class:bx--search--light="{light}" class:bx--search--disabled="{disabled}" class:bx--search--sm="{size === 'sm'}" + class:bx--search--md="{size === 'md'}" class:bx--search--lg="{size === 'lg'}" - class:bx--search--xl="{size === 'xl'}" class:bx--search--expandable="{expandable}" class:bx--search--expanded="{expanded}" class="{searchClass}" @@ -166,7 +166,7 @@ dispatch('clear'); }}" > - + {/if} diff --git a/src/Search/SearchSkeleton.svelte b/src/Search/SearchSkeleton.svelte index 91ea37d1..c0c0b194 100644 --- a/src/Search/SearchSkeleton.svelte +++ b/src/Search/SearchSkeleton.svelte @@ -1,9 +1,9 @@ @@ -11,8 +11,8 @@