@iroco/ui 1.0.0-10 → 1.0.0-11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/TextInput.svelte
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
export let id;
|
|
3
3
|
export let type = TextInputType.text;
|
|
4
4
|
export let name;
|
|
5
|
-
export let label =
|
|
6
|
-
export let placeholder =
|
|
7
|
-
export let error =
|
|
5
|
+
export let label = null;
|
|
6
|
+
export let placeholder = null;
|
|
7
|
+
export let error = null;
|
|
8
8
|
export let htmlError = false;
|
|
9
|
-
export let value =
|
|
10
|
-
export let onFocus =
|
|
11
|
-
export let onBlur =
|
|
9
|
+
export let value = null;
|
|
10
|
+
export let onFocus = null;
|
|
11
|
+
export let onBlur = null;
|
|
12
12
|
export let readonly = false;
|
|
13
13
|
export let border = false;
|
|
14
14
|
export let autocomplete = "on";
|
|
@@ -32,7 +32,7 @@ function typeAction(node) {
|
|
|
32
32
|
{placeholder}
|
|
33
33
|
class:border
|
|
34
34
|
class:error={error !== null}
|
|
35
|
-
class:readonlyInput={readonly
|
|
35
|
+
class:readonlyInput={readonly === true}
|
|
36
36
|
use:typeAction
|
|
37
37
|
{readonly}
|
|
38
38
|
{autocomplete}
|
|
@@ -5,13 +5,13 @@ declare const __propDef: {
|
|
|
5
5
|
id: string;
|
|
6
6
|
type?: TextInputType | undefined;
|
|
7
7
|
name: string;
|
|
8
|
-
label?: string | undefined;
|
|
9
|
-
placeholder?: string | undefined;
|
|
10
|
-
error?: string | undefined;
|
|
8
|
+
label?: string | null | undefined;
|
|
9
|
+
placeholder?: string | null | undefined;
|
|
10
|
+
error?: string | null | undefined;
|
|
11
11
|
htmlError?: boolean | undefined;
|
|
12
|
-
value?: string | undefined;
|
|
13
|
-
onFocus?: ((e: FocusEvent) => void) | undefined;
|
|
14
|
-
onBlur?: ((e: Event) => void) | undefined;
|
|
12
|
+
value?: string | null | undefined;
|
|
13
|
+
onFocus?: ((e: FocusEvent) => void) | null | undefined;
|
|
14
|
+
onBlur?: ((e: Event) => void) | null | undefined;
|
|
15
15
|
readonly?: boolean | undefined;
|
|
16
16
|
border?: boolean | undefined;
|
|
17
17
|
autocomplete?: string | undefined;
|