@r2digisolutions/components 0.25.9 → 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>
@@ -181,10 +181,10 @@
181
181
  </div>
182
182
  {/if}
183
183
 
184
- <!-- Scroll outer, center inner (min-h-full): one scrollbar when tall -->
184
+ <!-- Scroll outer, center inner. min-h-dvh so the card stays centered even when a parent only has min-height. -->
185
185
  <div class="min-h-0 flex h-full flex-1 flex-col overflow-y-auto">
186
186
  <div
187
- class="px-5 py-8 sm:px-8 sm:py-10 flex min-h-full flex-1 flex-col items-center justify-center"
187
+ class="px-5 py-8 sm:px-8 sm:py-10 flex min-h-dvh flex-1 flex-col items-center justify-center"
188
188
  >
189
189
  <div class="max-w-md mx-auto w-full shrink-0">
190
190
  {#if children}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@r2digisolutions/components",
3
- "version": "0.25.9",
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",