From a58345343697d6548354fcbaa7896f9d70666bc9 Mon Sep 17 00:00:00 2001 From: Gregor Wassmann Date: Tue, 28 Mar 2023 21:52:56 +0200 Subject: [PATCH] chore: v11 PasswordInput Size `xl` changed to `lg`. 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/PasswordInput.svx | 4 ++-- src/TextInput/PasswordInput.svelte | 8 ++++---- tests/PasswordInput.test.svelte | 2 +- types/TextInput/PasswordInput.svelte.d.ts | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index d95ba4a1..0f06f082 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -2755,7 +2755,7 @@ None. | ref | No | let | Yes | null | HTMLInputElement | null | Obtain a reference to the input HTML element | | type | No | let | Yes | "text" | "password" | "password" | Set to `"text"` to toggle the password visibility | | value | No | let | Yes | number | string | "" | Specify the input value | -| 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 | | placeholder | No | let | No | string | "" | Specify the placeholder text | | hidePasswordLabel | No | let | No | string | "Hide password" | Specify the hide password label text | | showPasswordLabel | No | let | No | string | "Show password" | Specify the show password label text | diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index 89e76e81..8d770e4f 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -8635,7 +8635,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/PasswordInput.svx b/docs/src/pages/components/PasswordInput.svx index a67c2099..9b6f0f15 100644 --- a/docs/src/pages/components/PasswordInput.svx +++ b/docs/src/pages/components/PasswordInput.svx @@ -31,9 +31,9 @@ Set prop `type` to `"text"` to toggle password visibility. -## Extra-large size +## Large size - + ## Small size diff --git a/src/TextInput/PasswordInput.svelte b/src/TextInput/PasswordInput.svelte index 3c6103a7..a7a89e3a 100644 --- a/src/TextInput/PasswordInput.svelte +++ b/src/TextInput/PasswordInput.svelte @@ -1,7 +1,7 @@