@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
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
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
|
-
{/
|
|
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
|
|
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-
|
|
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}
|