@iroco/ui 1.6.7 → 1.6.8

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.
@@ -4,28 +4,38 @@
4
4
  export type ValidationErrorMessage = { key: string; isHtml?: boolean };
5
5
 
6
6
  interface Props extends HTMLInputAttributes {
7
+ // id?: string | null;
8
+ // type?: 'email' | 'password' | 'search' | 'tel' | 'text' | 'url' | null | undefined;
9
+ // name?: string | null;
7
10
  label?: string | null;
11
+ // placeholder?: string | null;
8
12
  error?: string | null;
9
13
  errors?: Array<ValidationErrorMessage> | null;
10
14
  htmlError?: boolean;
15
+ // value?: string | null;
16
+ // onfocus?: ((e: FocusEvent) => void) | null;
17
+ // onblur?: ((e: Event) => void) | null;
18
+ // readonly?: boolean;
11
19
  border?: boolean;
12
- value?: string | null;
13
- id?: string | null;
20
+ // autocomplete?: FullAutoFill | null | undefined;
21
+ // oninput?: FormEventHandler<HTMLInputElement> | null | undefined;
14
22
  }
15
23
 
16
24
  let {
17
25
  id = null,
18
26
  type = 'text',
19
- value = $bindable(null),
27
+ name = null,
20
28
  placeholder = null,
21
29
  label = null,
22
30
  error = null,
23
31
  errors = [],
24
32
  htmlError = false,
33
+ value = $bindable(null),
34
+ onFocus = null,
35
+ onBlur = null,
36
+ readonly = false,
25
37
  border = false,
26
38
  autocomplete = 'on',
27
- readonly = false,
28
- name = null,
29
39
  oninput,
30
40
  ...rest
31
41
  }: Props = $props();
@@ -44,7 +54,7 @@
44
54
  {placeholder}
45
55
  {readonly}
46
56
  {type}
47
- {value}
57
+ bind:value
48
58
  class:border
49
59
  class:error={hasErrors()}
50
60
  class:readonlyInput={readonly === true}
@@ -9,8 +9,6 @@ interface Props extends HTMLInputAttributes {
9
9
  errors?: Array<ValidationErrorMessage> | null;
10
10
  htmlError?: boolean;
11
11
  border?: boolean;
12
- value?: string | null;
13
- id?: string | null;
14
12
  }
15
13
  declare const TextInput: import("svelte").Component<Props, {}, "value">;
16
14
  type TextInput = ReturnType<typeof TextInput>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iroco/ui",
3
- "version": "1.6.7",
3
+ "version": "1.6.8",
4
4
  "description": "Iroco design system based on Svelte",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {