@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.
@@ -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 = void 0;
6
- export let placeholder = void 0;
7
- export let error = void 0;
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 = void 0;
10
- export let onFocus = void 0;
11
- export let onBlur = void 0;
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 == true}
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iroco/ui",
3
- "version": "1.0.0-10",
3
+ "version": "1.0.0-11",
4
4
  "description": "Iroco design system based on Svelte",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {