@r2digisolutions/components 0.25.10 → 0.25.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.
@@ -75,14 +75,15 @@
75
75
  fullWidth && 'w-full'
76
76
  ]}
77
77
  >
78
- {#each items as item, index (item.id)}
79
- <button
80
- type="button"
81
- id={`tab-${item.id}`}
82
- role="tab"
83
- aria-selected={activeId === item.id}
84
- aria-controls={`panel-${item.id}`}
85
- tabindex={activeId === item.id ? 0 : -1}
78
+ {#each items as item, index (item?.id ?? index)}
79
+ {#if item}
80
+ <button
81
+ type="button"
82
+ id={`tab-${item.id}`}
83
+ role="tab"
84
+ aria-selected={activeId === item.id}
85
+ aria-controls={`panel-${item.id}`}
86
+ tabindex={activeId === item.id ? 0 : -1}
86
87
  disabled={item.disabled}
87
88
  onclick={() => select(item.id, item.disabled)}
88
89
  onkeydown={(e) => onKeydown(e, index)}
@@ -108,6 +109,7 @@
108
109
  ></span>
109
110
  {/if}
110
111
  </button>
111
- {/each}
112
+ {/if}
113
+ {/each}
112
114
  </div>
113
115
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@r2digisolutions/components",
3
- "version": "0.25.10",
3
+ "version": "0.25.11",
4
4
  "private": false,
5
5
  "description": "R2DigiSolutions Svelte 5 component library — Atomic Design, Tailwind 4, Light/Dark mode",
6
6
  "license": "MIT",