@onsvisual/svelte-components 1.0.57 → 1.0.58

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.
@@ -1,7 +1,7 @@
1
1
  <script>
2
2
  import { getContext } from "svelte";
3
3
 
4
- let { value = "", label = value } = $props();
4
+ let { value = "", id = value, label = value } = $props();
5
5
 
6
6
  // Get the parent ButtonGroup context
7
7
  const buttonGroup = getContext("buttonGroup");
@@ -21,7 +21,7 @@
21
21
  <div class="button-container">
22
22
  <input
23
23
  type="radio"
24
- id={value}
24
+ {id}
25
25
  name={groupName}
26
26
  {value}
27
27
  checked={selected}
@@ -30,7 +30,7 @@
30
30
  aria-checked={selected}
31
31
  bind:this={buttonRef}
32
32
  />
33
- <label for={value} class="radio-label">
33
+ <label for={id} class="radio-label">
34
34
  {label}
35
35
  </label>
36
36
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onsvisual/svelte-components",
3
- "version": "1.0.57",
3
+ "version": "1.0.58",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "npm run build:package && npm run build:docs",