@iroco/ui 1.6.5 → 1.6.7

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.
@@ -14,17 +14,19 @@
14
14
  }
15
15
 
16
16
  let {
17
- id,
17
+ id = null,
18
18
  type = 'text',
19
- value,
20
- placeholder,
19
+ value = $bindable(null),
20
+ placeholder = null,
21
21
  label = null,
22
22
  error = null,
23
23
  errors = [],
24
24
  htmlError = false,
25
25
  border = false,
26
26
  autocomplete = 'on',
27
- readonly,
27
+ readonly = false,
28
+ name = null,
29
+ oninput,
28
30
  ...rest
29
31
  }: Props = $props();
30
32
 
@@ -42,6 +44,7 @@
42
44
  {placeholder}
43
45
  {readonly}
44
46
  {type}
47
+ {value}
45
48
  class:border
46
49
  class:error={hasErrors()}
47
50
  class:readonlyInput={readonly === true}
@@ -12,6 +12,6 @@ interface Props extends HTMLInputAttributes {
12
12
  value?: string | null;
13
13
  id?: string | null;
14
14
  }
15
- declare const TextInput: import("svelte").Component<Props, {}, "">;
15
+ declare const TextInput: import("svelte").Component<Props, {}, "value">;
16
16
  type TextInput = ReturnType<typeof TextInput>;
17
17
  export default TextInput;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iroco/ui",
3
- "version": "1.6.5",
3
+ "version": "1.6.7",
4
4
  "description": "Iroco design system based on Svelte",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {