@iroco/ui 0.60.2 → 0.61.0
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
|
@@ -10,6 +10,7 @@ export let onFocus;
|
|
|
10
10
|
export let onBlur;
|
|
11
11
|
export let readonly = false;
|
|
12
12
|
export let border = false;
|
|
13
|
+
export let autocomplete = "on";
|
|
13
14
|
function typeAction(node) {
|
|
14
15
|
node.type = type;
|
|
15
16
|
}
|
|
@@ -33,6 +34,7 @@ function typeAction(node) {
|
|
|
33
34
|
class:readonlyInput={readonly == true}
|
|
34
35
|
use:typeAction
|
|
35
36
|
{readonly}
|
|
37
|
+
{autocomplete}
|
|
36
38
|
/>
|
|
37
39
|
{#if error != null}
|
|
38
40
|
<p data-testid="error" class="error">
|
|
@@ -10,10 +10,11 @@ declare const __propDef: {
|
|
|
10
10
|
error?: string | null | undefined;
|
|
11
11
|
htmlError?: boolean | undefined;
|
|
12
12
|
value?: string | null | undefined;
|
|
13
|
-
onFocus: (e: FocusEvent) => void;
|
|
14
|
-
onBlur: (e: Event) => void;
|
|
13
|
+
onFocus: (e: FocusEvent) => void | null;
|
|
14
|
+
onBlur: (e: Event) => void | null;
|
|
15
15
|
readonly?: boolean | undefined;
|
|
16
16
|
border?: boolean | undefined;
|
|
17
|
+
autocomplete?: string | undefined;
|
|
17
18
|
};
|
|
18
19
|
events: {
|
|
19
20
|
input: Event;
|