@onsvisual/svelte-components 0.1.26 → 0.1.27

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.
@@ -5,6 +5,7 @@ export default class Checkbox extends SvelteComponentTyped<{
5
5
  id: string;
6
6
  label: string;
7
7
  compact?: boolean;
8
+ value?: any;
8
9
  description?: string;
9
10
  variant?: "default" | "ghost";
10
11
  disabled?: boolean;
@@ -25,6 +26,7 @@ declare const __propDef: {
25
26
  id: string;
26
27
  label: string;
27
28
  compact?: boolean;
29
+ value?: string | object;
28
30
  description?: string;
29
31
  variant?: "default" | "ghost";
30
32
  disabled?: boolean;
@@ -8,6 +8,11 @@
8
8
  * @type {string}
9
9
  */
10
10
  export let id;
11
+ /**
12
+ * Value for input element (defaults to ID)
13
+ * @type {string|object}
14
+ */
15
+ export let value = id;
11
16
  /**
12
17
  * Label for input
13
18
  * @type {string}
@@ -55,7 +60,7 @@
55
60
  <input
56
61
  type="checkbox"
57
62
  id="{id}"
58
- value="{id}"
63
+ value="{value}"
59
64
  bind:group="{group}"
60
65
  class="ons-checkbox__input ons-js-checkbox"
61
66
  disabled="{disabled}"
@@ -66,7 +71,7 @@
66
71
  <input
67
72
  type="checkbox"
68
73
  id="{id}"
69
- value="{id}"
74
+ value="{value}"
70
75
  bind:checked="{checked}"
71
76
  class="ons-checkbox__input ons-js-checkbox"
72
77
  disabled="{disabled}"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onsvisual/svelte-components",
3
- "version": "0.1.26",
3
+ "version": "0.1.27",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "homepage": "https://onsvisual.github.io/svelte-components",