@onsvisual/svelte-components 0.1.27 → 0.1.29

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.
@@ -7,10 +7,11 @@ export default class Checkbox extends SvelteComponentTyped<{
7
7
  compact?: boolean;
8
8
  value?: any;
9
9
  description?: string;
10
+ name?: string;
10
11
  variant?: "default" | "ghost";
11
12
  disabled?: boolean;
12
13
  checked?: boolean;
13
- group?: boolean;
14
+ group?: any[];
14
15
  }, {
15
16
  change: CustomEvent<any>;
16
17
  } & {
@@ -28,10 +29,11 @@ declare const __propDef: {
28
29
  compact?: boolean;
29
30
  value?: string | object;
30
31
  description?: string;
32
+ name?: string | null;
31
33
  variant?: "default" | "ghost";
32
34
  disabled?: boolean;
33
35
  checked?: boolean;
34
- group?: boolean;
36
+ group?: any[] | null;
35
37
  };
36
38
  events: {
37
39
  change: CustomEvent<any>;
@@ -8,6 +8,11 @@
8
8
  * @type {string}
9
9
  */
10
10
  export let id;
11
+ /**
12
+ * Name of checkbox group (optional)
13
+ * @type {string|null}
14
+ */
15
+ export let name = null;
11
16
  /**
12
17
  * Value for input element (defaults to ID)
13
18
  * @type {string|object}
@@ -25,7 +30,7 @@
25
30
  export let checked = false;
26
31
  /**
27
32
  * Binding for checked state of input
28
- * @type {boolean}
33
+ * @type {array|null}
29
34
  */
30
35
  export let group = null;
31
36
  /**
@@ -60,6 +65,7 @@
60
65
  <input
61
66
  type="checkbox"
62
67
  id="{id}"
68
+ name="{name}"
63
69
  value="{value}"
64
70
  bind:group="{group}"
65
71
  class="ons-checkbox__input ons-js-checkbox"
@@ -71,6 +77,7 @@
71
77
  <input
72
78
  type="checkbox"
73
79
  id="{id}"
80
+ name="{name}"
74
81
  value="{value}"
75
82
  bind:checked="{checked}"
76
83
  class="ons-checkbox__input ons-js-checkbox"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onsvisual/svelte-components",
3
- "version": "0.1.27",
3
+ "version": "0.1.29",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "homepage": "https://onsvisual.github.io/svelte-components",