@stacksjs/components 0.2.344 → 0.2.346
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.
- package/dist/{Accordion-ccye7erw.stx → Accordion-py9ntmst.stx} +1 -1
- package/dist/{AccordionItem-7bd3ga36.stx → AccordionItem-asmsqxz9.stx} +1 -1
- package/dist/{Audio-tnjd6anm.stx → Audio-byv8kkvt.stx} +1 -1
- package/dist/{Avatar-7vegrsg6.stx → Avatar-axrzqsdk.stx} +5 -5
- package/dist/{Badge-439n5p0a.stx → Badge-4jxqhkv9.stx} +1 -1
- package/dist/{Breadcrumb-7hwnfyyw.stx → Breadcrumb-pach6f1f.stx} +2 -2
- package/dist/{Button-y8fnx29x.stx → Button-tcjt3m8s.stx} +2 -2
- package/dist/{Calendar-8q76ees6.stx → Calendar-ppqdw19s.stx} +4 -4
- package/dist/{Checkbox-xnm8ax5q.stx → Checkbox-e7gn3w06.stx} +1 -1
- package/dist/{ComboboxInput-9q87fb22.stx → ComboboxInput-4jcpvw7e.stx} +1 -1
- package/dist/{ComboboxOption-qm38e8e9.stx → ComboboxOption-vnb67p8d.stx} +1 -1
- package/dist/{CommandPalette-mkqqep2s.stx → CommandPalette-6rjcgske.stx} +1 -1
- package/dist/{CommandPaletteItem-chdw0070.stx → CommandPaletteItem-6rp133ta.stx} +1 -1
- package/dist/{DefaultPaymentMethod-v11254p4.stx → DefaultPaymentMethod-r0hcjajr.stx} +1 -1
- package/dist/{Drawer-rymajw9v.stx → Drawer-jcdj3qk2.stx} +1 -1
- package/dist/{DropdownButton-n6gsmcte.stx → DropdownButton-tx9hb2de.stx} +1 -1
- package/dist/{DropdownItem-qs772agw.stx → DropdownItem-wht1vcm5.stx} +1 -1
- package/dist/{DropdownItems-yf25hdh1.stx → DropdownItems-v12h6zpf.stx} +1 -1
- package/dist/{FilterChip-ww5nkepm.stx → FilterChip-00ja5jhz.stx} +1 -1
- package/dist/{ListboxButton-w3vfvte7.stx → ListboxButton-t43pp03e.stx} +1 -1
- package/dist/{ListboxOption-ea0j02a8.stx → ListboxOption-9c9jpz1n.stx} +1 -1
- package/dist/{Login-hh53d6tw.stx → Login-j3pc04ka.stx} +9 -9
- package/dist/{Navigator-55wpcpx1.stx → Navigator-1yk1c3pp.stx} +4 -4
- package/dist/{NumberInput-54d23rq0.stx → NumberInput-awn66hfs.stx} +5 -5
- package/dist/{Pagination-0ra20dja.stx → Pagination-z9jxnaeq.stx} +3 -3
- package/dist/{PasswordInput-3snyppj4.stx → PasswordInput-hradj0xd.stx} +4 -4
- package/dist/{PaymentMethods-zwa7c6kh.stx → PaymentMethods-z4hhr0kv.stx} +3 -3
- package/dist/{PopoverButton-panmcysh.stx → PopoverButton-70th24xc.stx} +1 -1
- package/dist/{Progress-cj0z83rx.stx → Progress-bv65bwh8.stx} +2 -2
- package/dist/{Radio-m2wz5ny6.stx → Radio-nr8rbb6g.stx} +1 -1
- package/dist/{RadioGroup-jg9s4ttg.stx → RadioGroup-hzz4xep9.stx} +1 -1
- package/dist/{RadioGroupOption-zvp0y9sn.stx → RadioGroupOption-7fcgfsah.stx} +1 -1
- package/dist/{Select-pj584jza.stx → Select-sbr8dqzn.stx} +3 -3
- package/dist/{Signup-egdrk3rh.stx → Signup-77y9ea7t.stx} +8 -8
- package/dist/{Spinner-grahbp9a.stx → Spinner-vhnc3y03.stx} +3 -3
- package/dist/{StepperStep-xw55xjh0.stx → StepperStep-34kwv0t0.stx} +2 -2
- package/dist/{SubscriptionCheckout-wj4s182k.stx → SubscriptionCheckout-pggq5a4k.stx} +7 -7
- package/dist/{TabBarItem-cnxhgy92.stx → TabBarItem-wv2r8496.stx} +1 -1
- package/dist/{TableBody-drxyz5jh.stx → TableBody-y49bqb1p.stx} +1 -1
- package/dist/{TableRow-xd542nvb.stx → TableRow-ytr6b5by.stx} +1 -1
- package/dist/{Tabs-2cjt68my.stx → Tabs-51vr631j.stx} +2 -2
- package/dist/{TextInput-9wqzeeg1.stx → TextInput-48ghmccm.stx} +6 -6
- package/dist/{Textarea-xwkdg8se.stx → Textarea-dndmk6ah.stx} +3 -3
- package/dist/{Tooltip-14gt4f1w.stx → Tooltip-g2j17eg9.stx} +5 -5
- package/dist/{TwoFactorChallenge-0200pjc0.stx → TwoFactorChallenge-n8fcm5ct.stx} +4 -4
- package/dist/{VirtualTable-jvje0ybn.stx → VirtualTable-kp7b3wyv.stx} +2 -2
- package/dist/index.js +2 -2
- package/package.json +3 -3
- package/src/components/Footer.stx +8 -8
- package/src/components/Hero.stx +2 -2
- package/src/ui/accordion/Accordion.stx +1 -1
- package/src/ui/accordion/AccordionItem.stx +1 -1
- package/src/ui/audio/Audio.stx +1 -1
- package/src/ui/auth/Login.stx +9 -9
- package/src/ui/auth/Signup.stx +8 -8
- package/src/ui/auth/TwoFactorChallenge.stx +4 -4
- package/src/ui/avatar/Avatar.stx +5 -5
- package/src/ui/badge/Badge.stx +1 -1
- package/src/ui/breadcrumb/Breadcrumb.stx +2 -2
- package/src/ui/button/Button.stx +2 -2
- package/src/ui/calendar/Calendar.stx +4 -4
- package/src/ui/checkbox/Checkbox.stx +1 -1
- package/src/ui/combobox/ComboboxInput.stx +1 -1
- package/src/ui/combobox/ComboboxOption.stx +1 -1
- package/src/ui/command-palette/CommandPalette.stx +1 -1
- package/src/ui/command-palette/CommandPaletteItem.stx +1 -1
- package/src/ui/drawer/Drawer.stx +1 -1
- package/src/ui/dropdown/DropdownButton.stx +1 -1
- package/src/ui/dropdown/DropdownItem.stx +1 -1
- package/src/ui/dropdown/DropdownItems.stx +1 -1
- package/src/ui/input/NumberInput.stx +5 -5
- package/src/ui/input/PasswordInput.stx +4 -4
- package/src/ui/input/TextInput.stx +6 -6
- package/src/ui/listbox/ListboxButton.stx +1 -1
- package/src/ui/listbox/ListboxOption.stx +1 -1
- package/src/ui/mobile/FilterChip.stx +1 -1
- package/src/ui/mobile/TabBarItem.stx +1 -1
- package/src/ui/navigator/Navigator.stx +4 -4
- package/src/ui/pagination/Pagination.stx +3 -3
- package/src/ui/payment/DefaultPaymentMethod.stx +1 -1
- package/src/ui/payment/PaymentMethods.stx +3 -3
- package/src/ui/payment/SubscriptionCheckout.stx +7 -7
- package/src/ui/popover/PopoverButton.stx +1 -1
- package/src/ui/progress/Progress.stx +2 -2
- package/src/ui/radio/Radio.stx +1 -1
- package/src/ui/radio-group/RadioGroup.stx +1 -1
- package/src/ui/radio-group/RadioGroupOption.stx +1 -1
- package/src/ui/select/Select.stx +3 -3
- package/src/ui/spinner/Spinner.stx +3 -3
- package/src/ui/stepper/StepperStep.stx +2 -2
- package/src/ui/table/TableBody.stx +1 -1
- package/src/ui/table/TableRow.stx +1 -1
- package/src/ui/tabs/Tabs.stx +2 -2
- package/src/ui/textarea/Textarea.stx +3 -3
- package/src/ui/tooltip/Tooltip.stx +5 -5
- package/src/ui/virtual-table/VirtualTable.stx +2 -2
|
@@ -3,7 +3,7 @@ export const headingText = $props.headingText || 'Sign up for Stacks'
|
|
|
3
3
|
export const showSocialSignup = $bool($props.showSocialSignup, true)
|
|
4
4
|
export const className = $props.className || ''
|
|
5
5
|
|
|
6
|
-
export const containerClasses = `min-h-full flex flex-col justify-center py-12 lg:px-8 sm:px-6
|
|
6
|
+
export const containerClasses = `min-h-full flex flex-col justify-center py-12 lg:px-8 sm:px-6 bg-page ${className}`.trim()
|
|
7
7
|
</script>
|
|
8
8
|
|
|
9
9
|
<script client>
|
|
@@ -60,7 +60,7 @@ function onSubmit(event) {
|
|
|
60
60
|
type="text"
|
|
61
61
|
autocomplete="name"
|
|
62
62
|
required
|
|
63
|
-
class="block w-full border-0 rounded-control p-2 py-1.5 text-fg shadow-sm ring-1 ring-line-strong ring-inset sm:text-sm placeholder:text-fg-
|
|
63
|
+
class="block w-full border-0 rounded-control p-2 py-1.5 text-fg shadow-sm ring-1 ring-line-strong ring-inset sm:text-sm placeholder:text-fg-soft sm:leading-6 focus:ring-2 focus:ring-accent focus:ring-inset bg-field"
|
|
64
64
|
/>
|
|
65
65
|
</div>
|
|
66
66
|
</div>
|
|
@@ -76,7 +76,7 @@ function onSubmit(event) {
|
|
|
76
76
|
type="email"
|
|
77
77
|
autocomplete="email"
|
|
78
78
|
required
|
|
79
|
-
class="block w-full border-0 rounded-control p-2 py-1.5 text-fg shadow-sm ring-1 ring-line-strong ring-inset sm:text-sm placeholder:text-fg-
|
|
79
|
+
class="block w-full border-0 rounded-control p-2 py-1.5 text-fg shadow-sm ring-1 ring-line-strong ring-inset sm:text-sm placeholder:text-fg-soft sm:leading-6 focus:ring-2 focus:ring-accent focus:ring-inset bg-field"
|
|
80
80
|
/>
|
|
81
81
|
</div>
|
|
82
82
|
</div>
|
|
@@ -92,7 +92,7 @@ function onSubmit(event) {
|
|
|
92
92
|
type="email"
|
|
93
93
|
autocomplete="email"
|
|
94
94
|
required
|
|
95
|
-
class="block w-full border-0 rounded-control p-2 py-1.5 text-fg shadow-sm ring-1 ring-line-strong ring-inset sm:text-sm placeholder:text-fg-
|
|
95
|
+
class="block w-full border-0 rounded-control p-2 py-1.5 text-fg shadow-sm ring-1 ring-line-strong ring-inset sm:text-sm placeholder:text-fg-soft sm:leading-6 focus:ring-2 focus:ring-accent focus:ring-inset bg-field"
|
|
96
96
|
/>
|
|
97
97
|
</div>
|
|
98
98
|
</div>
|
|
@@ -108,7 +108,7 @@ function onSubmit(event) {
|
|
|
108
108
|
type="password"
|
|
109
109
|
autocomplete="new-password"
|
|
110
110
|
required
|
|
111
|
-
class="block w-full border-0 rounded-control p-2 py-1.5 text-fg shadow-sm ring-1 ring-line-strong ring-inset sm:text-sm placeholder:text-fg-
|
|
111
|
+
class="block w-full border-0 rounded-control p-2 py-1.5 text-fg shadow-sm ring-1 ring-line-strong ring-inset sm:text-sm placeholder:text-fg-soft sm:leading-6 focus:ring-2 focus:ring-accent focus:ring-inset bg-field"
|
|
112
112
|
/>
|
|
113
113
|
</div>
|
|
114
114
|
</div>
|
|
@@ -116,7 +116,7 @@ function onSubmit(event) {
|
|
|
116
116
|
<div>
|
|
117
117
|
<button
|
|
118
118
|
type="submit"
|
|
119
|
-
class="w-full flex justify-center rounded-control bg-
|
|
119
|
+
class="w-full flex justify-center rounded-control bg-accent-solid px-3 py-1.5 text-sm text-accent-ink font-semibold leading-6 shadow-sm hover:bg-accent-solid-hover focus-visible:outline-2 focus-visible:outline-accent focus-visible:outline-offset-2 focus-visible:outline"
|
|
120
120
|
>
|
|
121
121
|
Sign up
|
|
122
122
|
</button>
|
|
@@ -140,7 +140,7 @@ function onSubmit(event) {
|
|
|
140
140
|
<button
|
|
141
141
|
type="button"
|
|
142
142
|
@click="onSocial('google')"
|
|
143
|
-
class="w-full flex items-center justify-center gap-3 rounded-control bg-field px-3 py-2 text-sm text-fg font-semibold shadow-sm ring-1 ring-line-strong ring-inset hover:bg-
|
|
143
|
+
class="w-full flex items-center justify-center gap-3 rounded-control bg-field px-3 py-2 text-sm text-fg font-semibold shadow-sm ring-1 ring-line-strong ring-inset hover:bg-field-hover focus-visible:ring-transparent"
|
|
144
144
|
>
|
|
145
145
|
<svg class="h-5 w-5" viewBox="0 0 24 24" aria-hidden="true">
|
|
146
146
|
<path d="M12.0003 4.75C13.7703 4.75 15.3553 5.36002 16.6053 6.54998L20.0303 3.125C17.9502 1.19 15.2353 0 12.0003 0C7.31028 0 3.25527 2.69 1.28027 6.60998L5.27028 9.70498C6.21525 6.86002 8.87028 4.75 12.0003 4.75Z" fill="#EA4335" />
|
|
@@ -154,7 +154,7 @@ function onSubmit(event) {
|
|
|
154
154
|
<button
|
|
155
155
|
type="button"
|
|
156
156
|
@click="onSocial('github')"
|
|
157
|
-
class="w-full flex items-center justify-center gap-3 rounded-control bg-field px-3 py-2 text-sm text-fg font-semibold shadow-sm ring-1 ring-line-strong ring-inset hover:bg-
|
|
157
|
+
class="w-full flex items-center justify-center gap-3 rounded-control bg-field px-3 py-2 text-sm text-fg font-semibold shadow-sm ring-1 ring-line-strong ring-inset hover:bg-field-hover focus-visible:ring-transparent"
|
|
158
158
|
>
|
|
159
159
|
<svg class="h-5 w-5 fill-[#24292F] dark:fill-white" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
|
|
160
160
|
<path fill-rule="evenodd" d="M10 0C4.477 0 0 4.484 0 10.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0110 4.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.203 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.942.359.31.678.921.678 1.856 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0020 10.017C20 4.484 15.522 0 10 0z" clip-rule="evenodd" />
|
|
@@ -21,7 +21,7 @@ const colorClasses = {
|
|
|
21
21
|
success: 'text-success',
|
|
22
22
|
warning: 'text-warning-solid',
|
|
23
23
|
danger: 'text-danger',
|
|
24
|
-
info: 'text-
|
|
24
|
+
info: 'text-info',
|
|
25
25
|
white: 'text-white',
|
|
26
26
|
gray: 'text-fg-muted',
|
|
27
27
|
}
|
|
@@ -45,9 +45,9 @@ const dotsColorClasses = {
|
|
|
45
45
|
success: 'bg-success-solid',
|
|
46
46
|
warning: 'bg-warning-solid',
|
|
47
47
|
danger: 'bg-danger-solid',
|
|
48
|
-
info: 'bg-
|
|
48
|
+
info: 'bg-info-solid',
|
|
49
49
|
white: 'bg-white',
|
|
50
|
-
gray: 'bg-
|
|
50
|
+
gray: 'bg-fg-muted',
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
export const dotClasses = `${dotsSizeClasses[size] || dotsSizeClasses.md} ${dotsColorClasses[color] || dotsColorClasses.primary} rounded-full`.trim()
|
|
@@ -32,9 +32,9 @@ function onClick() {
|
|
|
32
32
|
<button
|
|
33
33
|
type="button"
|
|
34
34
|
@click="onClick()"
|
|
35
|
-
class="flex items-center gap-3 focus:outline-none focus-visible:ring-2 focus-visible:ring-
|
|
35
|
+
class="flex items-center gap-3 focus:outline-none focus-visible:ring-2 focus-visible:ring-accent-solid rounded-panel p-2"
|
|
36
36
|
>
|
|
37
|
-
<div class="{{ isComplete ? 'bg-accent-solid' : isCurrent ? 'bg-accent-solid
|
|
37
|
+
<div class="{{ isComplete ? 'bg-accent-solid text-accent-ink' : isCurrent ? 'bg-accent-solid text-accent-ink ring-4 ring-accent-soft' : 'bg-surface-sunken text-fg-strong' }} w-10 h-10 rounded-full flex items-center justify-center font-semibold transition-all">
|
|
38
38
|
@if(isComplete)
|
|
39
39
|
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
40
40
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" />
|
|
@@ -10,7 +10,7 @@ export const className = $props.className || ''
|
|
|
10
10
|
export const subtotal = products.reduce((sum, product) => sum + (product.price * (product.quantity || 1)), 0)
|
|
11
11
|
export const total = subtotal + shipping + taxes
|
|
12
12
|
|
|
13
|
-
export const containerClasses = `bg-
|
|
13
|
+
export const containerClasses = `bg-page ${className}`.trim()
|
|
14
14
|
</script>
|
|
15
15
|
|
|
16
16
|
<script client>
|
|
@@ -130,7 +130,7 @@ onMount(() => initializeStripe())
|
|
|
130
130
|
name="email-address"
|
|
131
131
|
autocomplete="email"
|
|
132
132
|
required
|
|
133
|
-
class="block w-full border border-line-strong rounded-control p-2 shadow-sm bg-field text-fg focus:border-
|
|
133
|
+
class="block w-full border border-line-strong rounded-control p-2 shadow-sm bg-field text-fg focus:border-accent sm:text-sm focus:ring-accent"
|
|
134
134
|
/>
|
|
135
135
|
</div>
|
|
136
136
|
</div>
|
|
@@ -154,7 +154,7 @@ onMount(() => initializeStripe())
|
|
|
154
154
|
name="card-name"
|
|
155
155
|
autocomplete="cc-name"
|
|
156
156
|
required
|
|
157
|
-
class="block w-full border border-line-strong rounded-control p-2 shadow-sm bg-field text-fg focus:border-
|
|
157
|
+
class="block w-full border border-line-strong rounded-control p-2 shadow-sm bg-field text-fg focus:border-accent sm:text-sm focus:ring-accent"
|
|
158
158
|
/>
|
|
159
159
|
</div>
|
|
160
160
|
</div>
|
|
@@ -181,7 +181,7 @@ onMount(() => initializeStripe())
|
|
|
181
181
|
name="payment-type"
|
|
182
182
|
type="radio"
|
|
183
183
|
checked
|
|
184
|
-
class="h-4 w-4 border-line-strong text-accent focus:ring-
|
|
184
|
+
class="h-4 w-4 border-line-strong text-accent focus:ring-accent"
|
|
185
185
|
/>
|
|
186
186
|
<label for="credit-card" class="ml-3 block text-sm text-fg-strong font-medium">
|
|
187
187
|
Credit card
|
|
@@ -237,7 +237,7 @@ onMount(() => initializeStripe())
|
|
|
237
237
|
<div class="ml-4 flow-root flex-shrink-0">
|
|
238
238
|
<button
|
|
239
239
|
type="button"
|
|
240
|
-
class="flex items-center justify-center bg-field p-2.5 text-fg-
|
|
240
|
+
class="flex items-center justify-center bg-field p-2.5 text-fg-soft -m-2.5 hover:text-fg-strong"
|
|
241
241
|
@click="onRemoveProduct('{{ product.id }}')"
|
|
242
242
|
title="Remove"
|
|
243
243
|
>
|
|
@@ -260,7 +260,7 @@ onMount(() => initializeStripe())
|
|
|
260
260
|
<select
|
|
261
261
|
id="quantity-{{ product.id }}"
|
|
262
262
|
name="quantity"
|
|
263
|
-
class="border border-line-strong rounded-control text-left text-base text-fg-strong font-medium shadow-sm bg-field focus:border-
|
|
263
|
+
class="border border-line-strong rounded-control text-left text-base text-fg-strong font-medium shadow-sm bg-field focus:border-accent sm:text-sm focus:outline-none focus:ring-1 focus:ring-accent"
|
|
264
264
|
>
|
|
265
265
|
<option value="1" {{ (product.quantity || 1) === 1 ? 'selected' : '' }}>1</option>
|
|
266
266
|
<option value="2" {{ (product.quantity || 1) === 2 ? 'selected' : '' }}>2</option>
|
|
@@ -317,7 +317,7 @@ onMount(() => initializeStripe())
|
|
|
317
317
|
<div class="border-t border-line px-4 py-6 sm:px-6">
|
|
318
318
|
<button
|
|
319
319
|
type="submit"
|
|
320
|
-
class="w-full border border-transparent rounded-control bg-accent-solid px-4 py-3 text-base text-
|
|
320
|
+
class="w-full border border-transparent rounded-control bg-accent-solid px-4 py-3 text-base text-accent-ink font-medium shadow-sm hover:bg-accent-solid-hover focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-accent focus:ring-offset-surface"
|
|
321
321
|
>
|
|
322
322
|
Confirm order
|
|
323
323
|
</button>
|
|
@@ -69,7 +69,7 @@ export const itemClasses = `
|
|
|
69
69
|
survive the label being two words wide, and anchoring it to the glyph
|
|
70
70
|
keeps every tab's badge in the same place.
|
|
71
71
|
--}}
|
|
72
|
-
<span class="absolute -right-2 -top-1 min-w-[16px] rounded-full bg-danger px-1 text-[10px] font-semibold leading-4 text-
|
|
72
|
+
<span class="absolute -right-2 -top-1 min-w-[16px] rounded-full bg-danger px-1 text-[10px] font-semibold leading-4 text-danger-ink">
|
|
73
73
|
{{ badge }}
|
|
74
74
|
</span>
|
|
75
75
|
@endif
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script server>
|
|
2
2
|
export const className = $props.className || ''
|
|
3
3
|
|
|
4
|
-
const baseClasses = 'bg-
|
|
4
|
+
const baseClasses = 'bg-content divide-y divide-line'
|
|
5
5
|
const bodyClasses = `${baseClasses} ${className}`.trim()
|
|
6
6
|
</script>
|
|
7
7
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export const className = $props.className || ''
|
|
3
3
|
export const hoverable = $props.hoverable !== false
|
|
4
4
|
|
|
5
|
-
const hoverClasses = hoverable ? 'hover:bg-surface' : ''
|
|
5
|
+
const hoverClasses = hoverable ? 'hover:bg-surface-hover' : ''
|
|
6
6
|
const rowClasses = `${hoverClasses} ${className}`.trim()
|
|
7
7
|
</script>
|
|
8
8
|
|
|
@@ -114,10 +114,10 @@ function isActive(index) {
|
|
|
114
114
|
|
|
115
115
|
function getTabClasses(index) {
|
|
116
116
|
const isActiveTab = isActive(index)
|
|
117
|
-
const base = 'px-4 py-2 font-medium text-sm transition-colors duration-150 focus:outline-none focus:ring-2 focus:ring-
|
|
117
|
+
const base = 'px-4 py-2 font-medium text-sm transition-colors duration-150 focus:outline-none focus:ring-2 focus:ring-accent-solid focus:ring-offset-2 focus:ring-offset-panel'
|
|
118
118
|
if (variant === 'line') {
|
|
119
119
|
const border = orientation === 'horizontal' ? 'border-b-2' : 'border-r-2'
|
|
120
|
-
return `${base} ${border} ${isActiveTab ? 'border-
|
|
120
|
+
return `${base} ${border} ${isActiveTab ? 'border-accent text-accent' : 'border-transparent text-fg-muted hover:text-fg hover:border-line-strong'}`
|
|
121
121
|
}
|
|
122
122
|
if (variant === 'pills') {
|
|
123
123
|
return `${base} rounded-control ${isActiveTab ? 'bg-field text-fg shadow-sm' : 'text-fg-muted hover:text-fg'}`
|
|
@@ -29,10 +29,10 @@ export const inputClassName = $props.inputClassName || ''
|
|
|
29
29
|
const sizeClasses = { sm: 'px-3 py-1.5 text-sm', md: 'px-4 py-2 text-base', lg: 'px-5 py-2.5 text-lg' }
|
|
30
30
|
const iconSizeClasses = { sm: 'h-4 w-4', md: 'h-5 w-5', lg: 'h-6 w-6' }
|
|
31
31
|
|
|
32
|
-
const baseClasses = 'block w-full border-0 rounded-control shadow-sm ring-1 ring-inset transition-colors duration-200 focus:ring-2 focus:ring-inset
|
|
32
|
+
const baseClasses = 'block w-full border-0 rounded-control shadow-sm ring-1 ring-inset transition-colors duration-200 focus:ring-2 focus:ring-inset bg-field'
|
|
33
33
|
const stateClasses = error
|
|
34
|
-
? 'ring-danger-line text-danger-fg placeholder-danger
|
|
35
|
-
: 'ring-line-strong text-fg placeholder-fg-
|
|
34
|
+
? 'ring-danger-line text-danger-fg placeholder-danger focus:ring-danger-focus'
|
|
35
|
+
: 'ring-line-strong text-fg placeholder-fg-soft focus:ring-accent'
|
|
36
36
|
const disabledClasses = disabled
|
|
37
37
|
? 'opacity-50 cursor-not-allowed bg-surface'
|
|
38
38
|
: readonly
|
|
@@ -87,7 +87,7 @@ defineExpose({ value: inputValue, clear: onClear })
|
|
|
87
87
|
<div class="relative">
|
|
88
88
|
@if(leftIcon)
|
|
89
89
|
<div class="pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3">
|
|
90
|
-
<span class="{{ iconClasses }} text-fg-
|
|
90
|
+
<span class="{{ iconClasses }} text-fg-soft">{!! leftIcon !!}</span>
|
|
91
91
|
</div>
|
|
92
92
|
@endif
|
|
93
93
|
|
|
@@ -112,7 +112,7 @@ defineExpose({ value: inputValue, clear: onClear })
|
|
|
112
112
|
<button
|
|
113
113
|
type="button"
|
|
114
114
|
@click="onClear()"
|
|
115
|
-
class="text-fg-
|
|
115
|
+
class="text-fg-soft hover:text-fg-strong focus:outline-none"
|
|
116
116
|
aria-label="Clear input"
|
|
117
117
|
>
|
|
118
118
|
<svg class="{{ iconClasses }}" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
@@ -123,7 +123,7 @@ defineExpose({ value: inputValue, clear: onClear })
|
|
|
123
123
|
@endif
|
|
124
124
|
@if(rightIcon && !clearable)
|
|
125
125
|
<div class="pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3">
|
|
126
|
-
<span class="{{ iconClasses }} text-fg-
|
|
126
|
+
<span class="{{ iconClasses }} text-fg-soft">{!! rightIcon !!}</span>
|
|
127
127
|
</div>
|
|
128
128
|
@endif
|
|
129
129
|
</div>
|
|
@@ -16,10 +16,10 @@ export const resize = $props.resize || 'vertical'
|
|
|
16
16
|
export const className = $props.className || ''
|
|
17
17
|
|
|
18
18
|
const resizeClasses = { none: 'resize-none', vertical: 'resize-y', horizontal: 'resize-x', both: 'resize' }
|
|
19
|
-
const baseClasses = 'block w-full border-0 rounded-control shadow-sm ring-1 ring-inset transition-colors duration-200 focus:ring-2 focus:ring-inset px-4 py-2 text-base
|
|
19
|
+
const baseClasses = 'block w-full border-0 rounded-control shadow-sm ring-1 ring-inset transition-colors duration-200 focus:ring-2 focus:ring-inset px-4 py-2 text-base bg-field'
|
|
20
20
|
const stateClasses = error
|
|
21
|
-
? 'ring-danger-line text-danger-fg placeholder-danger
|
|
22
|
-
: 'ring-line-strong text-fg placeholder-fg-
|
|
21
|
+
? 'ring-danger-line text-danger-fg placeholder-danger focus:ring-danger-focus'
|
|
22
|
+
: 'ring-line-strong text-fg placeholder-fg-soft focus:ring-accent'
|
|
23
23
|
const disabledClasses = disabled
|
|
24
24
|
? 'opacity-50 cursor-not-allowed bg-surface'
|
|
25
25
|
: readonly
|
|
@@ -14,13 +14,13 @@ const positionClasses = {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
const arrowClasses = {
|
|
17
|
-
top: 'top-full left-1/2 -translate-x-1/2 border-t-
|
|
18
|
-
bottom: 'bottom-full left-1/2 -translate-x-1/2 border-b-
|
|
19
|
-
left: 'left-full top-1/2 -translate-y-1/2 border-l-
|
|
20
|
-
right: 'right-full top-1/2 -translate-y-1/2 border-r-
|
|
17
|
+
top: 'top-full left-1/2 -translate-x-1/2 border-t-inverse',
|
|
18
|
+
bottom: 'bottom-full left-1/2 -translate-x-1/2 border-b-inverse',
|
|
19
|
+
left: 'left-full top-1/2 -translate-y-1/2 border-l-inverse',
|
|
20
|
+
right: 'right-full top-1/2 -translate-y-1/2 border-r-inverse',
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
export const tooltipClasses = `absolute z-50 px-3 py-2 text-sm font-medium text-
|
|
23
|
+
export const tooltipClasses = `absolute z-50 px-3 py-2 text-sm font-medium text-inverse-ink bg-inverse rounded-panel shadow-lg whitespace-nowrap pointer-events-none transition-opacity duration-200 ${positionClasses[position] || positionClasses.top} ${className}`.trim()
|
|
24
24
|
export const arrowClass = `absolute w-0 h-0 border-4 border-transparent ${arrowClasses[position] || arrowClasses.top}`.trim()
|
|
25
25
|
</script>
|
|
26
26
|
|
|
@@ -6,7 +6,7 @@ export const codeLength = $props.codeLength || 6
|
|
|
6
6
|
export const showRecoveryCode = $bool($props.showRecoveryCode, true)
|
|
7
7
|
export const className = $props.className || ''
|
|
8
8
|
|
|
9
|
-
export const containerClasses = `py-32
|
|
9
|
+
export const containerClasses = `py-32 bg-page ${className}`.trim()
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
12
|
<script client>
|
|
@@ -71,7 +71,7 @@ function onRecoveryCode(event) {
|
|
|
71
71
|
maxlength="1"
|
|
72
72
|
name="code-{{ i }}"
|
|
73
73
|
placeholder="-"
|
|
74
|
-
class="block w-full border-0 rounded-control px-2 py-2 text-center text-fg ring-1 ring-line-strong ring-inset sm:text-sm placeholder:text-fg-
|
|
74
|
+
class="block w-full border-0 rounded-control px-2 py-2 text-center text-fg ring-1 ring-line-strong ring-inset sm:text-sm placeholder:text-fg-soft sm:leading-6 focus:ring-2 focus:ring-accent focus:ring-inset bg-field"
|
|
75
75
|
@input="onCodeInput($event, {{ i }})"
|
|
76
76
|
@keydown="onKeyDown($event, {{ i }})"
|
|
77
77
|
/>
|
|
@@ -80,7 +80,7 @@ function onRecoveryCode(event) {
|
|
|
80
80
|
<div class="py-4">
|
|
81
81
|
<button
|
|
82
82
|
type="submit"
|
|
83
|
-
class="relative h-8 w-full flex items-center justify-center rounded-full bg-
|
|
83
|
+
class="relative h-8 w-full flex items-center justify-center rounded-full bg-accent-solid px-4 text-accent-ink font-semibold hover:bg-accent-solid-hover focus:outline-none focus:ring-2 focus:ring-accent focus:ring-offset-2"
|
|
84
84
|
>
|
|
85
85
|
Verify
|
|
86
86
|
</button>
|
|
@@ -99,7 +99,7 @@ function onRecoveryCode(event) {
|
|
|
99
99
|
<button
|
|
100
100
|
type="button"
|
|
101
101
|
@click="onRecoveryCode($event)"
|
|
102
|
-
class="text-xs text-
|
|
102
|
+
class="text-xs text-link hover:underline"
|
|
103
103
|
>
|
|
104
104
|
Use recovery code instead
|
|
105
105
|
</button>
|
|
@@ -13,8 +13,8 @@ export const totalHeight = data.length * rowHeight
|
|
|
13
13
|
export const containerClasses = `border border-line rounded-panel overflow-hidden ${className}`.trim()
|
|
14
14
|
export const headerClasses = `bg-surface border-b border-line flex`.trim()
|
|
15
15
|
export const headerCellClasses = `px-6 py-3 text-left text-xs font-medium text-fg-soft uppercase tracking-wider`.trim()
|
|
16
|
-
export const bodyClasses = `overflow-auto bg-
|
|
17
|
-
export const rowClasses = `absolute left-0 right-0 flex border-b border-line ${hoverable ? 'hover:bg-surface' : ''}`.trim()
|
|
16
|
+
export const bodyClasses = `overflow-auto bg-content`.trim()
|
|
17
|
+
export const rowClasses = `absolute left-0 right-0 flex border-b border-line ${hoverable ? 'hover:bg-surface-hover' : ''}`.trim()
|
|
18
18
|
export const cellClasses = `px-6 py-4 text-sm text-fg`.trim()
|
|
19
19
|
</script>
|
|
20
20
|
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var me=import.meta.require;var ge={__stx:!0,src:"./components/CodeBlock.stx"};var xe={__stx:!0,src:"./components/Footer.stx"};var ve={__stx:!0,src:"./components/Hero.stx"};var we={__stx:!0,src:"./components/Installation.stx"};function mi(e){let{code:t,onSuccess:s,onError:o,timeout:a=2000}=e,i=!1,n=null;return{copied:i,copy:async()=>{try{if(!navigator.clipboard)throw Error("Clipboard API not available");await navigator.clipboard.writeText(t),i=!0,s?.(),n=setTimeout(()=>{i=!1,n=null},a)}catch(d){let h=d instanceof Error?d:Error("Failed to copy code");o?.(h),console.error("Failed to copy code:",h)}},reset:()=>{if(i=!1,n)clearTimeout(n),n=null}}}async function gi(e){try{return await navigator.clipboard.writeText(e),!0}catch(t){return console.error("Failed to copy to clipboard:",t),!1}}function ye(){if(typeof window>"u")return"light";return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Q(e){return e==="system"?ye():e}function vi(e={}){let{storageKey:t="theme",defaultTheme:s="system"}=e,o=s;if(typeof window<"u"&&typeof localStorage<"u"){let c=localStorage.getItem(t);if(c)o=c}let a=Q(o)==="dark",i=(c)=>{let d=Q(c);if(typeof document<"u")if(d==="dark")document.documentElement.classList.add("dark");else document.documentElement.classList.remove("dark");if(typeof localStorage<"u")localStorage.setItem(t,c)},n=(c)=>{o=c,i(c)},r=()=>{let d=Q(o)==="dark"?"light":"dark";n(d)};if(i(o),typeof window<"u"&&o==="system")window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(c)=>{if(o==="system")i("system")});return{isDark:a,theme:o,toggle:r,setTheme:n}}function Ce(e,t){if(typeof document>"u")return;document.title=t?t.replace("%s",e):e}function S(e,t,s=!1){if(typeof document>"u")return;let o=s?"property":"name",a=document.querySelector(`meta[${o}="${e}"]`);if(!a)a=document.createElement("meta"),a.setAttribute(o,e),document.head.appendChild(a);a.setAttribute("content",t)}function $e(e,t){if(typeof document>"u")return;let s=document.querySelector(`link[rel="${e}"]`);if(!s)s=document.createElement("link"),s.setAttribute("rel",e),document.head.appendChild(s);s.setAttribute("href",t)}function yi(e){let{title:t,description:s,author:o,keywords:a,ogImage:i,ogImageWidth:n,ogImageHeight:r,twitterCard:c="summary_large_image",twitterSite:d,twitterCreator:h,canonical:p}=e;if(t)Ce(t),S("og:title",t,!0),S("twitter:title",t);if(s)S("description",s),S("og:description",s,!0),S("twitter:description",s);if(o)S("author",o);if(a&&a.length>0)S("keywords",a.join(", "));if(i)S("og:image",i,!0),S("twitter:image",i);if(n)S("og:image:width",n,!0);if(r)S("og:image:height",r,!0);if(S("twitter:card",c),d)S("twitter:site",d);if(h)S("twitter:creator",h);if(p)$e("canonical",p);if(S("og:type","website",!0),typeof window<"u")S("og:url",window.location.href,!0)}function Ci(e){let t=[],{title:s,description:o,author:a,keywords:i,ogImage:n,ogImageWidth:r,ogImageHeight:c,twitterCard:d="summary_large_image",twitterSite:h,twitterCreator:p,canonical:m}=e;if(s)t.push(`<title>${T(s)}</title>`),t.push(`<meta property="og:title" content="${T(s)}" />`),t.push(`<meta name="twitter:title" content="${T(s)}" />`);if(o)t.push(`<meta name="description" content="${T(o)}" />`),t.push(`<meta property="og:description" content="${T(o)}" />`),t.push(`<meta name="twitter:description" content="${T(o)}" />`);if(a)t.push(`<meta name="author" content="${T(a)}" />`);if(i&&i.length>0)t.push(`<meta name="keywords" content="${T(i.join(", "))}" />`);if(n)t.push(`<meta property="og:image" content="${T(n)}" />`),t.push(`<meta name="twitter:image" content="${T(n)}" />`);if(r)t.push(`<meta property="og:image:width" content="${T(r)}" />`);if(c)t.push(`<meta property="og:image:height" content="${T(c)}" />`);if(t.push(`<meta name="twitter:card" content="${T(d)}" />`),h)t.push(`<meta name="twitter:site" content="${T(h)}" />`);if(p)t.push(`<meta name="twitter:creator" content="${T(p)}" />`);if(m)t.push(`<link rel="canonical" href="${T(m)}" />`);return t.push('<meta property="og:type" content="website" />'),t.join(`
|
|
3
|
-
`)}function T(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function ki(e,t,s={}){let{enabled:o=!0,ignore:a=[]}=s,i=(n)=>{if(!o||!e)return;let r=n.target;if(!e.contains(r)){if(!a.some((d)=>{let h=document.querySelectorAll(d);return Array.from(h).some((p)=>p.contains(r))}))t(n)}};if(typeof document<"u")document.addEventListener("mousedown",i),document.addEventListener("touchstart",i);return()=>{if(typeof document<"u")document.removeEventListener("mousedown",i),document.removeEventListener("touchstart",i)}}function Ti(e,t={}){let{enabled:s=!0,initialFocus:o=null,returnFocus:a=!0,fallbackFocus:i=null}=t,n=null,r=!1;function c(){if(!e)return[];let f=["a[href]","button:not([disabled])","textarea:not([disabled])","input:not([disabled])","select:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(",");return Array.from(e.querySelectorAll(f))}function d(f){if(!s||!r||!e)return;let w=c();if(w.length===0){f.preventDefault();return}let v=w[0],k=w[w.length-1];if(f.shiftKey){if(document.activeElement===v||document.activeElement===e)f.preventDefault(),k.focus()}else if(document.activeElement===k)f.preventDefault(),v.focus()}function h(f){if(f.key==="Escape"&&s&&r)m()}function p(){if(!s||!e||r)return;if(n=document.activeElement,o)o.focus();else{let f=c();if(f.length>0)f[0].focus();else if(i)i.focus();else e.focus()}document.addEventListener("keydown",d),document.addEventListener("keydown",h),r=!0}function m(){if(!r)return;if(document.removeEventListener("keydown",d),document.removeEventListener("keydown",h),a&&n)n.focus();r=!1}return{activate:p,deactivate:m}}function Ii(e,t={}){let{enabled:s=!0,preventDefault:o=!0,stopPropagation:a=!1,target:i=typeof document<"u"?document:null}=t,n=Array.isArray(e)?e:[e],r=(c)=>{if(!s)return;n.forEach((d)=>{if(!(Array.isArray(d.key)?d.key:[d.key]).some((m)=>m.toLowerCase()===c.key.toLowerCase()))return;if(d.ctrl!==void 0&&d.ctrl!==c.ctrlKey)return;if(d.shift!==void 0&&d.shift!==c.shiftKey)return;if(d.alt!==void 0&&d.alt!==c.altKey)return;if(d.meta!==void 0&&d.meta!==c.metaKey)return;if(o)c.preventDefault();if(a)c.stopPropagation();d.handler(c)})};if(i)i.addEventListener("keydown",r);return()=>{if(i)i.removeEventListener("keydown",r)}}var Ni={ESCAPE:"Escape",ENTER:"Enter",SPACE:" ",TAB:"Tab",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",HOME:"Home",END:"End",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown"};function zi(e,t,s={}){let{serializer:o=JSON.stringify,deserializer:a=JSON.parse,onError:i=console.error}=s,n=t;try{if(typeof window<"u"){let p=window.localStorage.getItem(e);if(p!==null)n=a(p)}}catch(p){i(p)}let r=n,c=new Set;function d(p){try{let m=typeof p==="function"?p(r):p;if(r=m,typeof window<"u")window.localStorage.setItem(e,o(m));c.forEach((f)=>f(m))}catch(m){i(m)}}function h(){try{if(r=t,typeof window<"u")window.localStorage.removeItem(e);c.forEach((p)=>p(t))}catch(p){i(p)}}if(typeof window<"u"){let p=(m)=>{if(m.key===e&&m.newValue!==null)try{let f=a(m.newValue);r=f,c.forEach((w)=>w(f))}catch(f){i(f)}else if(m.key===e&&m.newValue===null)r=t,c.forEach((f)=>f(t))};window.addEventListener("storage",p)}return{value:r,setValue:d,removeValue:h}}function M(e,t={}){let{defaultValue:s=!1}=t,o=s,a=null;if(typeof window<"u"&&"matchMedia"in window){a=window.matchMedia(e),o=a.matches;let n=(r)=>{o=r.matches};if(a.addEventListener)a.addEventListener("change",n);else a.addListener(n)}function i(){if(a)o=a.matches}return{matches:o,updateMatches:i}}var q={xs:"(min-width: 320px)",sm:"(min-width: 640px)",md:"(min-width: 768px)",lg:"(min-width: 1024px)",xl:"(min-width: 1280px)","2xl":"(min-width: 1536px)",mobile:"(max-width: 767px)",tablet:"(min-width: 768px) and (max-width: 1023px)",desktop:"(min-width: 1024px)",dark:"(prefers-color-scheme: dark)",light:"(prefers-color-scheme: light)",reducedMotion:"(prefers-reduced-motion: reduce)",portrait:"(orientation: portrait)",landscape:"(orientation: landscape)"};function Li(e){return M(q[e])}function Ei(){return M(q.mobile)}function Oi(){return M(q.desktop)}function Ri(){return M(q.dark)}function Mi(){return M(q.reducedMotion)}var re=["gray","neutral","slate","zinc","red","green","yellow","blue","indigo"],ji="--stx-color";function ke(e,t){return t===void 0?`var(${e})`:`var(${e}, ${t})`}function Bi(e={}){let t={};for(let s of re){let o=e[s];if(!o||typeof o==="string")continue;let a={};for(let[i,n]of Object.entries(o))a[i]=ke(`--stx-color-${s}-${i}`,n);t[s]=a}return t}function Wi(e={}){let t=[];for(let s of re){let o=e[s];if(!o||typeof o==="string")continue;for(let a of Object.keys(o))t.push(`--stx-color-${s}-${a}`)}return t}var Te="./Accordion-
|
|
3
|
+
`)}function T(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function ki(e,t,s={}){let{enabled:o=!0,ignore:a=[]}=s,i=(n)=>{if(!o||!e)return;let r=n.target;if(!e.contains(r)){if(!a.some((d)=>{let h=document.querySelectorAll(d);return Array.from(h).some((p)=>p.contains(r))}))t(n)}};if(typeof document<"u")document.addEventListener("mousedown",i),document.addEventListener("touchstart",i);return()=>{if(typeof document<"u")document.removeEventListener("mousedown",i),document.removeEventListener("touchstart",i)}}function Ti(e,t={}){let{enabled:s=!0,initialFocus:o=null,returnFocus:a=!0,fallbackFocus:i=null}=t,n=null,r=!1;function c(){if(!e)return[];let f=["a[href]","button:not([disabled])","textarea:not([disabled])","input:not([disabled])","select:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(",");return Array.from(e.querySelectorAll(f))}function d(f){if(!s||!r||!e)return;let w=c();if(w.length===0){f.preventDefault();return}let v=w[0],k=w[w.length-1];if(f.shiftKey){if(document.activeElement===v||document.activeElement===e)f.preventDefault(),k.focus()}else if(document.activeElement===k)f.preventDefault(),v.focus()}function h(f){if(f.key==="Escape"&&s&&r)m()}function p(){if(!s||!e||r)return;if(n=document.activeElement,o)o.focus();else{let f=c();if(f.length>0)f[0].focus();else if(i)i.focus();else e.focus()}document.addEventListener("keydown",d),document.addEventListener("keydown",h),r=!0}function m(){if(!r)return;if(document.removeEventListener("keydown",d),document.removeEventListener("keydown",h),a&&n)n.focus();r=!1}return{activate:p,deactivate:m}}function Ii(e,t={}){let{enabled:s=!0,preventDefault:o=!0,stopPropagation:a=!1,target:i=typeof document<"u"?document:null}=t,n=Array.isArray(e)?e:[e],r=(c)=>{if(!s)return;n.forEach((d)=>{if(!(Array.isArray(d.key)?d.key:[d.key]).some((m)=>m.toLowerCase()===c.key.toLowerCase()))return;if(d.ctrl!==void 0&&d.ctrl!==c.ctrlKey)return;if(d.shift!==void 0&&d.shift!==c.shiftKey)return;if(d.alt!==void 0&&d.alt!==c.altKey)return;if(d.meta!==void 0&&d.meta!==c.metaKey)return;if(o)c.preventDefault();if(a)c.stopPropagation();d.handler(c)})};if(i)i.addEventListener("keydown",r);return()=>{if(i)i.removeEventListener("keydown",r)}}var Ni={ESCAPE:"Escape",ENTER:"Enter",SPACE:" ",TAB:"Tab",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",HOME:"Home",END:"End",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown"};function zi(e,t,s={}){let{serializer:o=JSON.stringify,deserializer:a=JSON.parse,onError:i=console.error}=s,n=t;try{if(typeof window<"u"){let p=window.localStorage.getItem(e);if(p!==null)n=a(p)}}catch(p){i(p)}let r=n,c=new Set;function d(p){try{let m=typeof p==="function"?p(r):p;if(r=m,typeof window<"u")window.localStorage.setItem(e,o(m));c.forEach((f)=>f(m))}catch(m){i(m)}}function h(){try{if(r=t,typeof window<"u")window.localStorage.removeItem(e);c.forEach((p)=>p(t))}catch(p){i(p)}}if(typeof window<"u"){let p=(m)=>{if(m.key===e&&m.newValue!==null)try{let f=a(m.newValue);r=f,c.forEach((w)=>w(f))}catch(f){i(f)}else if(m.key===e&&m.newValue===null)r=t,c.forEach((f)=>f(t))};window.addEventListener("storage",p)}return{value:r,setValue:d,removeValue:h}}function M(e,t={}){let{defaultValue:s=!1}=t,o=s,a=null;if(typeof window<"u"&&"matchMedia"in window){a=window.matchMedia(e),o=a.matches;let n=(r)=>{o=r.matches};if(a.addEventListener)a.addEventListener("change",n);else a.addListener(n)}function i(){if(a)o=a.matches}return{matches:o,updateMatches:i}}var q={xs:"(min-width: 320px)",sm:"(min-width: 640px)",md:"(min-width: 768px)",lg:"(min-width: 1024px)",xl:"(min-width: 1280px)","2xl":"(min-width: 1536px)",mobile:"(max-width: 767px)",tablet:"(min-width: 768px) and (max-width: 1023px)",desktop:"(min-width: 1024px)",dark:"(prefers-color-scheme: dark)",light:"(prefers-color-scheme: light)",reducedMotion:"(prefers-reduced-motion: reduce)",portrait:"(orientation: portrait)",landscape:"(orientation: landscape)"};function Li(e){return M(q[e])}function Ei(){return M(q.mobile)}function Oi(){return M(q.desktop)}function Ri(){return M(q.dark)}function Mi(){return M(q.reducedMotion)}var re=["gray","neutral","slate","zinc","red","green","yellow","blue","indigo"],ji="--stx-color";function ke(e,t){return t===void 0?`var(${e})`:`var(${e}, ${t})`}function Bi(e={}){let t={};for(let s of re){let o=e[s];if(!o||typeof o==="string")continue;let a={};for(let[i,n]of Object.entries(o))a[i]=ke(`--stx-color-${s}-${i}`,n);t[s]=a}return t}function Wi(e={}){let t=[];for(let s of re){let o=e[s];if(!o||typeof o==="string")continue;for(let a of Object.keys(o))t.push(`--stx-color-${s}-${a}`)}return t}var Te="./Accordion-py9ntmst.stx";var Ie="./AccordionItem-asmsqxz9.stx";var De="./Audio-byv8kkvt.stx";var Pe="./Login-j3pc04ka.stx";var Ee="./Signup-77y9ea7t.stx";var Re="./TwoFactorChallenge-n8fcm5ct.stx";var qe="./Avatar-axrzqsdk.stx";var Be="./Badge-4jxqhkv9.stx";var He="./Breadcrumb-pach6f1f.stx";import j from"process";var Ve="https://stacksjs.com/components";class A extends Error{component;context;constructor(e,t,s={}){let o=A.formatMessage(e,t,s);super(o);if(this.name="ComponentError",this.component=e,this.context={component:e,...s},Error.captureStackTrace)Error.captureStackTrace(this,A)}static formatMessage(e,t,s){let o=`[${e}] ${t}`;if(s.prop)o+=`
|
|
4
4
|
Prop: "${s.prop}"`;if(s.received!==void 0)o+=`
|
|
5
5
|
Received: ${JSON.stringify(s.received)}`;if(s.expected!==void 0){let a=Array.isArray(s.expected)?s.expected.map((i)=>JSON.stringify(i)).join(", "):JSON.stringify(s.expected);o+=`
|
|
6
6
|
Expected: ${a}`}if(s.details)o+=`
|
|
@@ -8,7 +8,7 @@ var me=import.meta.require;var ge={__stx:!0,src:"./components/CodeBlock.stx"};va
|
|
|
8
8
|
Documentation: ${s.docsUrl}`;else if(e)o+=`
|
|
9
9
|
Documentation: ${Ve}/${e.toLowerCase()}`;return o}toJSON(){return{name:this.name,message:this.message,component:this.component,context:this.context,stack:this.stack}}}var R={invalidProp(e,t,s,o){return new A(e,`Invalid prop value for "${t}"`,{prop:t,received:s,expected:o,details:Array.isArray(o)?`The "${t}" prop must be one of the allowed values`:`The "${t}" prop does not match the expected type`})},requiredProp(e,t){return new A(e,`Required prop "${t}" is missing`,{prop:t,details:`The "${t}" prop is required for ${e} to function correctly`})},invalidType(e,t,s,o){return new A(e,`Invalid type for prop "${t}"`,{prop:t,received:typeof s,expected:o,details:`Expected "${t}" to be of type ${o}, but received ${typeof s}`})},componentNotFound(e){return new A("ComponentLoader",`Component "${e}" not found`,{component:e,details:"Make sure the component is properly imported and registered"})},invalidChildren(e,t,s){return new A(e,"Invalid children",{received:typeof t,expected:s,details:`${e} expects ${s} as children`})},stateUpdate(e,t,s){return new A(e,`Failed to update state "${t}"`,{details:s.message})},eventHandler(e,t,s){return new A(e,`Error in "${t}" event handler`,{details:s.message})},render(e,t){return new A(e,"Failed to render component",{details:t.message})}},H=null;function bn(e){H=e}function mn(){H=null}function V(e,t={}){let{throwError:s=!0,logError:o=!0}=t;if(o&&j.env.NODE_ENV!=="production"){if(console.error("Component Error:",e),e instanceof A)console.group("Error Details"),console.log("Component:",e.component),console.log("Context:",e.context),console.groupEnd()}if(H)try{H(e)}catch(a){console.error("Error in error handler:",a)}if(s)throw e}function le(e,t,s){return(...o)=>{try{let a=e(...o);if(a instanceof Promise)return a.catch((i)=>{let n=R.eventHandler(t,s,i);throw V(n,{throwError:!1}),n});return a}catch(a){let i=R.eventHandler(t,s,a);throw V(i,{throwError:!1}),i}}}function Fe(e,t){if(!e)throw t}function Ke(e,t,s={}){if(j.env.NODE_ENV==="production")return;let o=A.formatMessage(e,t,s);console.warn(`\u26A0\uFE0F ${o}`)}function gn(e,t){if(j.env.NODE_ENV==="production")return;Fe(e,t)}function xn(e){let t=typeof j<"u"&&j.env.DEBUG==="true";return{log(...s){if(t)console.log(`[${e}]`,...s)},warn(s,o){Ke(e,s,o)},error(s,o){let a=new A(e,s,o);V(a,{throwError:!1})}}}function vn(e,t,s){try{return t()}catch(o){let a=R.render(e,o);return V(a,{throwError:!1}),s}}import _e from"process";var F=_e.env.NODE_ENV!=="production";class ${validate;message;isRequired;constructor(e,t,s=!1){this.validate=e;this.message=t;this.isRequired=s}get required(){return new $(this.validate,this.message,!0)}}var l={string:new $((e)=>typeof e==="string",(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`string\`.`),number:new $((e)=>typeof e==="number"&&!Number.isNaN(e),(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`number\`.`),boolean:new $((e)=>typeof e==="boolean",(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`boolean\`.`),func:new $((e)=>typeof e==="function",(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`function\`.`),object:new $((e)=>typeof e==="object"&&e!==null&&!Array.isArray(e),(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`object\`.`),array:new $((e)=>Array.isArray(e),(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`array\`.`),any:new $(()=>!0,()=>""),oneOf(e){return new $((t)=>e.includes(t),(t,s,o)=>`Invalid prop \`${s}\` of value \`${t}\` supplied to \`${o}\`, expected one of [${e.map((a)=>JSON.stringify(a)).join(", ")}].`)},oneOfType(e){return new $((t,s,o)=>e.some((a)=>a.validate(t,s,o)),(t,s,o)=>`Invalid prop \`${s}\` supplied to \`${o}\`, expected one of the specified types.`)},arrayOf(e){return new $((t,s,o)=>{if(!Array.isArray(t))return!1;return t.every((a,i)=>e.validate(a,`${s}[${i}]`,o))},(t,s,o)=>`Invalid prop \`${s}\` supplied to \`${o}\`, expected array of specified type.`)},shape(e){return new $((t,s,o)=>{if(typeof t!=="object"||t===null||Array.isArray(t))return!1;for(let[a,i]of Object.entries(e)){if(i.isRequired&&!(a in t))return!1;if(a in t&&!i.validate(t[a],`${s}.${a}`,o))return!1}return!0},(t,s,o)=>`Invalid prop \`${s}\` supplied to \`${o}\`, expected object matching specified shape.`)},instanceOf(e){return new $((t)=>t instanceof e,(t,s,o)=>`Invalid prop \`${s}\` supplied to \`${o}\`, expected instance of \`${e.name}\`.`)},custom(e,t){return new $(e,typeof t==="string"?()=>t:t)},min(e){return new $((t)=>typeof t==="number"&&t>=e,(t,s,o)=>`Invalid prop \`${s}\` of value \`${t}\` supplied to \`${o}\`, expected value >= ${e}.`)},max(e){return new $((t)=>typeof t==="number"&&t<=e,(t,s,o)=>`Invalid prop \`${s}\` of value \`${t}\` supplied to \`${o}\`, expected value <= ${e}.`)},range(e,t){return new $((s)=>typeof s==="number"&&s>=e&&s<=t,(s,o,a)=>`Invalid prop \`${o}\` of value \`${s}\` supplied to \`${a}\`, expected value between ${e} and ${t}.`)},pattern(e){return new $((t)=>typeof t==="string"&&e.test(t),(t,s,o)=>`Invalid prop \`${s}\` of value \`${t}\` supplied to \`${o}\`, expected value matching pattern ${e}.`)},email:new $((e)=>typeof e==="string"&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),(e,t,s)=>`Invalid prop \`${t}\` of value \`${e}\` supplied to \`${s}\`, expected valid email address.`),url:new $((e)=>{if(typeof e!=="string")return!1;try{let t=new URL(e);return!0}catch{return!1}},(e,t,s)=>`Invalid prop \`${t}\` of value \`${e}\` supplied to \`${s}\`, expected valid URL.`)};function Ge(e,t,s,o={}){let{throwOnError:a=!1,logWarnings:i=F}=o,n=[];if(!F)return{valid:!0,errors:[]};for(let[r,c]of Object.entries(s)){let d=t[r],h=d===void 0;if(c.isRequired&&h){let p=`Required prop \`${r}\` was not specified in \`${e}\`.`;n.push(p);continue}if(h)continue;if(!c.validate(d,r,e)){let p=c.message(d,r,e);n.push(p)}}if(n.length>0){if(i)console.group(`\u26A0\uFE0F Prop validation failed for \`${e}\``),n.forEach((r)=>console.warn(r)),console.groupEnd();if(a)throw Error(`Prop validation failed for \`${e}\`:
|
|
10
10
|
${n.join(`
|
|
11
|
-
`)}`)}return{valid:n.length===0,errors:n}}function D(e,t,s){return(o)=>Ge(e,o,t,s)}function Cn(e,t,s="value"){if(!F)return;if(!t.validate(e,s,"assertion"))throw Error(t.message(e,s,"assertion"))}function $n(e,t,s="value"){if(!F)return;if(!t.validate(e,s,"warning"))console.warn(t.message(e,s,"warning"))}var Ye="./Button-y8fnx29x.stx";var Je={variant:l.oneOf(["primary","secondary","outline","ghost","danger"]),size:l.oneOf(["xs","sm","md","lg","xl"]),disabled:l.boolean,loading:l.boolean,type:l.oneOf(["button","submit","reset"]),fullWidth:l.boolean,leftIcon:l.string,rightIcon:l.string,className:l.string,onClick:l.func},In=D("Button",Je);function Nn(e){return le(e,"Button","onClick")}function Dn(e){if(e&&!["primary","secondary","outline","ghost","danger"].includes(e))throw R.invalidProp("Button","variant",e,["primary","secondary","outline","ghost","danger"])}function zn(e){if(e&&!["xs","sm","md","lg","xl"].includes(e))throw R.invalidProp("Button","size",e,["xs","sm","md","lg","xl"])}var Ze="./Calendar-8q76ees6.stx";var et="./Card-r55zpjqh.stx";var st="./Checkbox-xnm8ax5q.stx";var at="./Combobox-06x0nywb.stx";var nt="./ComboboxButton-g76stp1e.stx";var lt="./ComboboxInput-9q87fb22.stx";var dt="./ComboboxOption-qm38e8e9.stx";var ht="./ComboboxOptions-nbndbrxz.stx";var ft="./CommandPalette-mkqqep2s.stx";var mt="./CommandPaletteItem-chdw0070.stx";var xt="./Dialog-d1020hj6.stx";var wt="./DialogBackdrop-de5m5m4w.stx";var Ct="./DialogDescription-gth4c2kx.stx";var kt="./DialogPanel-vhdqymc2.stx";var Tt="./DialogTitle-0jjdk5ra.stx";var It="./Drawer-rymajw9v.stx";var Dt="./Dropdown-cmwge7vx.stx";var Pt="./DropdownButton-n6gsmcte.stx";var Et="./DropdownItem-qs772agw.stx";var Rt="./DropdownItems-yf25hdh1.stx";var qt="./Form-vbag14t1.stx";var jt={action:l.string,method:l.oneOf(["GET","POST","PUT","DELETE","PATCH"]),validationSchema:l.object,initialValues:l.object,validateOnChange:l.boolean,validateOnBlur:l.boolean,onSubmit:l.func,onError:l.func,className:l.string},Dr=D("Form",jt);var Wt="./Image-79xyzb5j.stx";var Vt="./EmailInput-agb8kqae.stx";var Kt="./NumberInput-54d23rq0.stx";var Gt="./PasswordInput-3snyppj4.stx";var Yt="./SearchInput-psbjk2ye.stx";var Xt="./TextInput-9wqzeeg1.stx";var Zt={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string},Qt={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,leftIcon:l.string,rightIcon:l.string,clearable:l.boolean,maxLength:l.number,showCount:l.boolean},es={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,min:l.number,max:l.number,step:l.number,showControls:l.boolean},ts={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,showStrength:l.boolean},ss={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,onSearch:l.func,loading:l.boolean},Hr=D("TextInput",Qt),Vr=D("EmailInput",Zt),Fr=D("PasswordInput",ts),Kr=D("NumberInput",es),_r=D("SearchInput",ss);var as="./Listbox-e5jreb0a.stx";var ns="./ListboxButton-w3vfvte7.stx";var ls="./ListboxLabel-ka0hfm7b.stx";var ds="./ListboxOption-ea0j02a8.stx";var hs="./ListboxOptions-qxrkrb8z.stx";var fs="./FilterChip-ww5nkepm.stx";var ms="./FilterChips-7pnzycfd.stx";var xs="./ListRow-8d3e1yxh.stx";var ws="./NavBar-qqrrhdnk.stx";var Cs="./SectionCard-8ctdacjr.stx";var ks="./TabBar-8143650x.stx";var Ts="./TabBarItem-cnxhgy92.stx";var Is="./Navigator-55wpcpx1.stx";var Ds="./Notification-7wgk0sw6.stx";var Ps="./Pagination-0ra20dja.stx";var Es="./Checkout-22wh3s22.stx";var Rs="./DefaultPaymentMethod-v11254p4.stx";var qs="./PaymentMethods-zwa7c6kh.stx";var Bs="./SubscriptionCheckout-wj4s182k.stx";var Hs="./Popover-3g8rgxt1.stx";var Fs="./PopoverButton-panmcysh.stx";var _s="./PopoverPanel-7771yf35.stx";var Us="./Portal-m73vz879.stx";var Js="./Progress-cj0z83rx.stx";var Zs="./Radio-m2wz5ny6.stx";var eo="./RadioGroup-jg9s4ttg.stx";var so="./RadioGroupDescription-z34r9avr.stx";var ao="./RadioGroupLabel-ka0hfm7b.stx";var no="./RadioGroupOption-zvp0y9sn.stx";var lo="./Select-pj584jza.stx";var po="./Sidebar-ve2asgf3.stx";var uo="./SidebarFooter-s7skj92y.stx";var bo="./SidebarHeader-esvby82n.stx";var go="./SidebarItem-r4f2pref.stx";var vo="./SidebarPinned-48kyk193.stx";var yo="./SidebarSection-5sqza2j6.stx";var $o="./SidebarSpace-bwv98azf.stx";var So="./SidebarSpaces-mdtrynr2.stx";var Ao="./SidebarSpaceSwitcher-1mycft2g.stx";var K={blue:"#0088ff",red:"#ff383c",pink:"#ff2d55",orange:"#ff8d28",yellow:"#ffcc00",green:"#34c759",teal:"#00c3d0",cyan:"#00c0e8",indigo:"#6155f5",purple:"#cb30e0",brown:"#ac7f5e",gray:"#8e8e93"},O={pane:["bg-[#f2f2f4]/90 dark:bg-[#1c1c1e]/88","backdrop-blur-[50px] backdrop-saturate-[180%]","text-black dark:text-white","select-none"].join(" "),selection:"accent",layers:{shimmerRim:!0},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-[10px] pb-[10px]",sectionHeader:["group/section flex w-full items-center","pl-[8px] pr-[6px] pt-[16px] pb-[5px]","text-[11px] font-semibold leading-[13px]","text-[#3c3c43]/60 dark:text-[#ebebf5]/60"].join(" "),sectionChevron:["i-f7-chevron-down h-[11px] w-[11px] ml-auto","text-[#3c3c43]/45 dark:text-[#ebebf5]/45","opacity-0 group-hover/section:opacity-100 transition-opacity duration-150","transition-transform duration-200"].join(" "),sectionGroup:"flex flex-col",item:{base:["flex w-full items-center","h-[32px] rounded-[8px] pl-[4px] pr-[8px]","text-[13px] leading-[16px] font-normal","text-black dark:text-white","transition-colors duration-150 ease-out","cursor-default"].join(" "),hover:"hover:bg-black/4 dark:hover:bg-white/6",active:"",pressed:"active:bg-black/10 dark:active:bg-white/18",disabled:"opacity-40 pointer-events-none",disclosure:"flex h-[16px] w-[18px] shrink-0 items-center justify-center",chevron:["i-f7-chevron-right h-[11px] w-[11px]","text-[#3c3c43]/55 dark:text-[#ebebf5]/55","transition-transform duration-200 ease-out"].join(" "),iconSlot:"flex h-[20px] w-[22px] shrink-0 items-center justify-center mr-[7px]",icon:"h-[17px] w-[17px]",image:"h-[20px] w-[20px] rounded-[4px] object-cover shadow-sm",label:"flex-1 truncate text-left",count:["ml-[8px] shrink-0 tabular-nums","text-[13px] leading-[16px]","text-[#3c3c43]/60 dark:text-[#ebebf5]/60"].join(" "),indentPerLevel:16}},Io={selection:"classes",pane:"bg-[#f4f4f3] dark:bg-neutral-950 text-zinc-950 dark:text-white select-none",layers:{},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-5 py-5",sectionHeader:"group/section flex w-full items-center gap-2.5 px-4 pb-2 pt-5 text-[13px] font-semibold uppercase tracking-[0.12em] text-zinc-400 dark:text-zinc-500",sectionChevron:"i-f7-chevron-down h-3 w-3 ml-auto opacity-0 group-hover/section:opacity-100 transition-opacity duration-150 transition-transform duration-200",sectionGroup:"flex flex-col space-y-1",item:{base:"flex w-full items-center gap-3 rounded-[16px] px-3.5 py-2 text-[14px] leading-tight transition-colors duration-150",hover:"hover:bg-[#ececea] hover:text-zinc-950 dark:hover:bg-white/10",active:"bg-[#e7e7e5] text-zinc-950 dark:bg-white/12 dark:text-white",pressed:"active:bg-[#e2e2e0] dark:active:bg-white/15",disabled:"opacity-50 pointer-events-none",disclosure:"flex h-4 w-4 shrink-0 items-center justify-center",chevron:"i-f7-chevron-right h-3 w-3 opacity-50 transition-transform duration-200",iconSlot:"flex h-5 w-5 shrink-0 items-center justify-center",icon:"h-[18px] w-[18px] text-zinc-500 dark:text-zinc-500",image:"h-5 w-5 rounded object-cover",label:"flex-1 truncate text-left text-zinc-700 dark:text-zinc-300",count:"ml-auto grid h-5 min-w-5 place-items-center rounded-full bg-white/70 px-1.5 text-[11px] font-medium text-zinc-500 shadow-sm dark:bg-white/10 dark:text-zinc-400",indentPerLevel:12}},No={selection:"classes",pane:"bg-[#f3f3f1]/48 dark:bg-neutral-950/32 backdrop-blur-3xl backdrop-saturate-150 text-zinc-950 dark:text-white select-none",layers:{tint:"bg-[linear-gradient(112deg,rgba(255,255,255,0.20)_0%,rgba(255,255,255,0.04)_45%,rgba(226,226,222,0.16)_100%)] dark:bg-[linear-gradient(112deg,rgba(255,255,255,0.08)_0%,rgba(255,255,255,0.02)_46%,rgba(255,255,255,0.06)_100%)]"},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-5 py-2",sectionHeader:"group/section flex w-full items-center gap-2.5 px-3 pb-1.5 pt-3 rounded-[14px] text-[12px] font-semibold uppercase tracking-[0.10em] text-zinc-500/80 dark:text-zinc-400/80",sectionChevron:"i-f7-chevron-down h-3 w-3 ml-auto opacity-0 group-hover/section:opacity-100 transition-opacity duration-150 transition-transform duration-200",sectionGroup:"flex flex-col space-y-1",item:{base:"flex w-full items-center gap-3 rounded-[14px] px-3 py-1.5 text-[13.5px] leading-tight transition-colors duration-150",hover:"hover:bg-white/38 hover:text-zinc-950 dark:hover:bg-white/10",active:"bg-[#e8e8e6]/90 text-zinc-950 dark:bg-white/12 dark:text-white",pressed:"active:bg-white/50 dark:active:bg-white/15",disabled:"opacity-50 pointer-events-none",disclosure:"flex h-4 w-4 shrink-0 items-center justify-center",chevron:"i-f7-chevron-right h-3 w-3 opacity-50 transition-transform duration-200",iconSlot:"flex h-5 w-5 shrink-0 items-center justify-center",icon:"h-[18px] w-[18px] text-zinc-600 dark:text-zinc-400",image:"h-5 w-5 rounded object-cover",label:"flex-1 truncate text-left text-zinc-700 dark:text-zinc-300",count:"ml-auto grid h-5 min-w-5 place-items-center rounded-full bg-white/72 px-1.5 text-[11px] font-medium text-zinc-500 shadow-sm dark:bg-white/10 dark:text-zinc-400",indentPerLevel:12}},Do={selection:"classes",pane:["bg-[#f7f5f1]/92 dark:bg-[#1a1a1c]/92","backdrop-blur-[40px] backdrop-saturate-[160%]","text-[#2c2a28] dark:text-[#ededf0]","select-none"].join(" "),layers:{tint:["bg-[linear-gradient(180deg,var(--stx-sidebar-tint,rgba(255,251,242,0.55))_0%,rgba(255,255,255,0)_38%)]","dark:bg-[linear-gradient(180deg,var(--stx-sidebar-tint,rgba(255,255,255,0.05))_0%,rgba(255,255,255,0)_42%)]"].join(" ")},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-[16px] pb-[8px]",sectionHeader:["group/section flex w-full items-center","px-[8px] pt-[14px] pb-[4px]","text-[11px] font-medium leading-[13px]","opacity-55"].join(" "),sectionChevron:["i-f7-chevron-down h-[10px] w-[10px] ml-auto","opacity-0 group-hover/section:opacity-100 transition-opacity duration-150","transition-transform duration-200"].join(" "),sectionGroup:"flex flex-col space-y-[2px]",item:{base:["flex w-full items-center","h-[30px] rounded-[8px] pl-[6px] pr-[8px]","text-[13px] leading-[16px] font-normal","text-current","transition-[background-color,box-shadow,color] duration-150 ease-out","cursor-default"].join(" "),hover:"hover:bg-white/55 dark:hover:bg-white/8",active:["bg-white dark:bg-white/14","font-medium","shadow-[0_1px_2px_rgba(0,0,0,0.08)] dark:shadow-[0_1px_2px_rgba(0,0,0,0.35)]","ring-1 ring-black/5 dark:ring-white/8"].join(" "),pressed:"active:bg-white/80 dark:active:bg-white/18",disabled:"opacity-40 pointer-events-none",disclosure:"flex h-[16px] w-[16px] shrink-0 items-center justify-center",chevron:["i-f7-chevron-right h-[10px] w-[10px] opacity-45","transition-transform duration-200 ease-out"].join(" "),iconSlot:"flex h-[18px] w-[18px] shrink-0 items-center justify-center mr-[8px]",icon:"h-[16px] w-[16px]",image:"h-[18px] w-[18px] rounded-[5px] object-cover shadow-sm",label:"flex-1 truncate text-left",count:["ml-[8px] shrink-0 tabular-nums","text-[12px] leading-[16px] opacity-45"].join(" "),indentPerLevel:14}},zo={...O,pane:"bg-stone-100 dark:bg-neutral-900 text-black dark:text-white select-none",layers:{}},Po={...O,pane:"bg-transparent text-black dark:text-white select-none",layers:{}},Lo={...O,pane:"bg-white/50 dark:bg-black/40 backdrop-blur-3xl backdrop-saturate-200 text-black dark:text-white select-none",layers:{}},ce={macos:O,tahoe:O,"macos-tahoe":O,"macos-latest":O,arc:Do,workspace:Io,desktop:No,solid:zo,transparent:Po,vibrancy:Lo};function Tc(e){return ce[e||"macos"]||ce.macos}function Ac(e){if(!e)return;return K[e]||e}var Eo=K.gray;function L(e,t,s){return`color-mix(in oklab, ${e} ${t}%, ${s})`}function de(e){return{light:{from:L(e,35,"#ffffff"),to:L(e,12.5,"#ffffff"),ink:L(e,22,"#17171b"),accent:L(e,88,"#2a2a30")},dark:{from:L(e,27,"#101014"),to:L(e,10,"#08080b"),ink:L(e,12,"#f4f4f7"),accent:L(e,74,"#ffffff")}}}function Dc(e,t){return`linear-gradient(180deg, ${e} 0%, ${t} 100%)`}function Oo(e){if(!e)return de(Eo);if(typeof e!=="string")return e;return de(K[e]||e)}function Ro(e){return[`--stx-space-light-from: ${e.light.from}`,`--stx-space-light-to: ${e.light.to}`,`--stx-space-light-ink: ${e.light.ink}`,`--stx-space-light-accent: ${e.light.accent}`,`--stx-space-dark-from: ${e.dark.from}`,`--stx-space-dark-to: ${e.dark.to}`,`--stx-space-dark-ink: ${e.dark.ink}`,`--stx-space-dark-accent: ${e.dark.accent}`].join("; ")}function pe(e,t,s,o){if(!e||!e.label)return null;return{id:e.id||`${t}-${s}`,label:e.label,icon:e.icon||o}}function Mo(e){let t=Oo(e.tint);return{id:e.id,label:e.label||"",icon:e.icon||"",pinned:e.pinned||[],sections:e.sections||[],action:pe(e.action,e.id,"action","i-f7-plus"),clear:pe(e.clear,e.id,"clear","i-f7-arrow-down"),tint:t,style:Ro(t),deferred:e.deferred===!0,showTitle:e.showTitle??!0}}function zc(e){return(e||[]).map(Mo)}function Pc(e,t){if(!t)return 0;let s=e.findIndex((o)=>o.id===t);return s===-1?0:s}function Lc(e){return e.map((t)=>t.tint)}var jo="./Skeleton-me2hwqrc.stx";var Wo="./Spinner-grahbp9a.stx";var Vo="./Stepper-rgbk76hd.stx";var Ko="./StepperStep-xw55xjh0.stx";class _{storage;namespace;watchers=new Map;encryptionKey="stx-storage-key";constructor(e="local",t=""){if(this.storage=e==="local"?globalThis.localStorage:globalThis.sessionStorage,this.namespace=t,typeof window<"u")window.addEventListener("storage",this.handleStorageEvent.bind(this))}handleStorageEvent(e){if(!e.key)return;let t=this.namespace&&e.key.startsWith(`${this.namespace}:`)?e.key.slice(this.namespace.length+1):e.key,s=this.watchers.get(t);if(s){let o=e.oldValue?JSON.parse(e.oldValue).value:null,a=e.newValue?JSON.parse(e.newValue).value:null;s.forEach((i)=>i(a,o,t))}}encrypt(e){let t="";for(let s=0;s<e.length;s++)t+=String.fromCharCode(e.charCodeAt(s)^this.encryptionKey.charCodeAt(s%this.encryptionKey.length));return btoa(t)}decrypt(e){try{let t=atob(e),s="";for(let o=0;o<t.length;o++)s+=String.fromCharCode(t.charCodeAt(o)^this.encryptionKey.charCodeAt(o%this.encryptionKey.length));return s}catch{return e}}compress(e){if(e.length<100)return e;let t={},s=256,o=[],a="";for(let i=0;i<e.length;i++){let n=e.charAt(i),r=a+n;if(t[r]!==void 0)a=r;else o.push(a.length>1?t[a]:a.charCodeAt(0)),t[r]=s++,a=n}if(a!=="")o.push(a.length>1?t[a]:a.charCodeAt(0));return JSON.stringify(o)}decompress(e){try{let t=JSON.parse(e);if(!Array.isArray(t))return e;let s={},o=256,a=String.fromCharCode(t[0]),i=a;for(let n=1;n<t.length;n++){let r=t[n],c;if(s[r]!==void 0)c=s[r];else if(r===o)c=a+a.charAt(0);else return e;i+=c,s[o++]=a+c.charAt(0),a=c}return i}catch{return e}}getKey(e){return this.namespace?`${this.namespace}:${e}`:e}set(e,t,s){let o=this.getKey(e),a=this.get(e),i={value:t,timestamp:Date.now(),expire:s?.expire,encrypted:s?.encrypt||!1,compressed:s?.compress||!1};try{let n=JSON.stringify(i);if(s?.compress)n=this.compress(n);if(s?.encrypt)n=this.encrypt(n);this.storage.setItem(o,n),this.notifyWatchers(e,t,a)}catch(n){console.error("Storage set error:",n)}}get(e){let t=this.getKey(e);try{let s=this.storage.getItem(t);if(!s)return null;if(s.match(/^[A-Z0-9+/]+=*$/i))try{s=this.decrypt(s)}catch{}if(s.startsWith("["))try{s=this.decompress(s)}catch{}let o=JSON.parse(s);if(o.expire&&Date.now()-o.timestamp>o.expire)return this.remove(e),null;return o.value}catch(s){return console.error("Storage get error:",s),null}}watch(e,t){if(!this.watchers.has(e))this.watchers.set(e,new Set);return this.watchers.get(e).add(t),()=>{let s=this.watchers.get(e);if(s){if(s.delete(t),s.size===0)this.watchers.delete(e)}}}notifyWatchers(e,t,s){let o=this.watchers.get(e);if(o)o.forEach((a)=>a(t,s,e))}remove(e){let t=this.getKey(e),s=this.get(e);this.storage.removeItem(t),this.notifyWatchers(e,null,s)}clear(){if(this.namespace)this.keys().forEach((t)=>this.remove(t));else this.storage.clear()}has(e){return this.get(e)!==null}keys(){let e=Object.keys(this.storage);if(this.namespace){let t=`${this.namespace}:`;return e.filter((s)=>s.startsWith(t)).map((s)=>s.slice(t.length))}return e}size(){return this.keys().length}getQuota(){if("storage"in navigator&&"estimate"in navigator.storage)return null;try{let e=0;for(let s=0;s<this.storage.length;s++){let o=this.storage.key(s);if(o){let a=this.storage.getItem(o)||"";e+=o.length+a.length}}let t=5242880;return{usage:e*2,quota:t,percentage:e*2/t*100}}catch{return null}}setMany(e,t){Object.entries(e).forEach(([s,o])=>{this.set(s,o,t)})}getMany(e){let t={};return e.forEach((s)=>{t[s]=this.get(s)}),t}removeMany(e){e.forEach((t)=>this.remove(t))}}var id={local:new _("local"),session:new _("session")};function nd(e="local",t){return new _(e,t)}var Go="./Switch-fxbw7s16.stx";var Yo="./Table-akbk3t5q.stx";var Xo="./TableBody-drxyz5jh.stx";var Qo="./TableCell-8swtcq8s.stx";var ta="./TableHead-e9xvjx2j.stx";var oa="./TableHeader-qsc3e208.stx";var ia="./TableRow-xd542nvb.stx";var ra="./TabPanel-5htevsq6.stx";var ca="./Tabs-2cjt68my.stx";var pa="./Teleport-c8nn3757.stx";var ua="./Textarea-xwkdg8se.stx";var ba="./Tooltip-14gt4f1w.stx";var ga="./Transition-yrvqbhjy.stx";var va="./Video-rhy7dskw.stx";var ya="./VirtualList-fa7v5a3h.stx";var $a="./VirtualTable-jvje0ybn.stx";var ka=0;function he(e="a11y"){return`${e}-${++ka}-${Date.now()}`}function Jd(e,t,s={}){let{visible:o=!1,id:a=he("label")}=s,i=document.createElement(o?"label":"span");if(i.id=a,i.textContent=e,!o)Object.assign(i.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"});if(t)if(t.setAttribute("aria-labelledby",a),t.parentElement)t.parentElement.insertBefore(i,t);else document.body.appendChild(i);return a}function Xd(e,t){let s=he("desc"),o=document.createElement("span");if(o.id=s,o.textContent=e,Object.assign(o.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}),t)if(t.setAttribute("aria-describedby",s),t.parentElement)t.parentElement.insertBefore(o,t);else document.body.appendChild(o);return s}function Zd(e,t="polite"){let s=document.createElement("div");s.setAttribute("role","status"),s.setAttribute("aria-live",t),s.setAttribute("aria-atomic","true"),Object.assign(s.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}),document.body.appendChild(s),setTimeout(()=>{s.textContent=e},100),setTimeout(()=>{s.parentNode?.removeChild(s)},1000)}function ee(e){let t=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(",");return Array.from(e.querySelectorAll(t)).filter((s)=>s.offsetParent!==null)}function Qd(e,t={}){let{initialFocus:s,returnFocus:o,escapeDeactivates:a=!0,clickOutsideDeactivates:i=!0,allowOutsideClick:n=!1,onActivate:r,onDeactivate:c}=t,d=!1,h=!1,p=null,m=(x)=>{if(h)return;if(a&&x.key==="Escape"){x.preventDefault(),v();return}if(x.key==="Tab"){let C=ee(e);if(C.length===0){x.preventDefault();return}let I=C[0],P=C[C.length-1];if(x.shiftKey){if(document.activeElement===I)x.preventDefault(),P.focus()}else if(document.activeElement===P)x.preventDefault(),I.focus()}},f=(x)=>{if(h)return;if(!e.contains(x.target)){if(typeof n==="function"){if(!n(x)&&i)v()}else if(!n&&i)v()}};function w(){if(d)return;d=!0,p=document.activeElement;let x=s||ee(e)[0];if(x&&typeof x.focus==="function")x.focus();document.addEventListener("keydown",m),document.addEventListener("click",f),r?.()}function v(){if(!d)return;d=!1;let x=o||p;if(x&&typeof x.focus==="function")x.focus();document.removeEventListener("keydown",m),document.removeEventListener("click",f),c?.()}function k(){h=!0}function g(){h=!1}return{activate:w,deactivate:v,pause:k,unpause:g}}function ep(e,t={}){let{selector:s='[role="option"], [role="menuitem"], [role="tab"], button',initialIndex:o=0,orientation:a="both",loop:i=!0,onFocusChange:n}=t,r=o,c=()=>{return Array.from(e.querySelectorAll(s))},d=(p)=>{let m=c();if(p<0||p>=m.length)return;m.forEach((f,w)=>{if(w===p){if(f.setAttribute("tabindex","0"),typeof f.focus==="function")f.focus()}else f.setAttribute("tabindex","-1")}),r=p,n?.(p,m[p])},h=(p)=>{let f=c().length-1,w=!1,v=r;switch(p.key){case"ArrowRight":if(a==="horizontal"||a==="both"){if(v=r+1,v>f)v=i?0:f;w=!0}break;case"ArrowLeft":if(a==="horizontal"||a==="both"){if(v=r-1,v<0)v=i?f:0;w=!0}break;case"ArrowDown":if(a==="vertical"||a==="both"){if(v=r+1,v>f)v=i?0:f;w=!0}break;case"ArrowUp":if(a==="vertical"||a==="both"){if(v=r-1,v<0)v=i?f:0;w=!0}break;case"Home":v=0,w=!0;break;case"End":v=f,w=!0;break}if(w)p.preventDefault(),d(v)};return d(o),e.addEventListener("keydown",h),()=>{e.removeEventListener("keydown",h)}}var tp={Enter:"Enter",Space:" ",Escape:"Escape",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",Tab:"Tab",Home:"Home",End:"End",PageUp:"PageUp",PageDown:"PageDown"};function sp(e){return document.activeElement===e}function op(e,t){let s=t||document.activeElement,o=ee(document.body),a=o.indexOf(s);if(a===-1)return;let i=e==="next"?a+1:a-1,n=o[i];if(n)n.focus()}function ap(e){if(e.getAttribute("aria-hidden")==="true")return!1;let t=window.getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden")return!1;return!0}var ip={setExpanded(e,t){e.setAttribute("aria-expanded",String(t))},setSelected(e,t){e.setAttribute("aria-selected",String(t))},setChecked(e,t){e.setAttribute("aria-checked",String(t))},setDisabled(e,t){if(e.setAttribute("aria-disabled",String(t)),t)e.setAttribute("tabindex","-1");else e.removeAttribute("tabindex")},setHidden(e,t){if(t)e.setAttribute("aria-hidden","true");else e.removeAttribute("aria-hidden")},setPressed(e,t){e.setAttribute("aria-pressed",String(t))},setInvalid(e,t){e.setAttribute("aria-invalid",String(t))},setRequired(e,t){e.setAttribute("aria-required",String(t))},setLive(e,t){e.setAttribute("aria-live",t)},setBusy(e,t){e.setAttribute("aria-busy",String(t))}};function np(e){let t=document.createElement("span");return t.textContent=e,t.className="sr-only",Object.assign(t.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}),t}function rp(){if(typeof window.matchMedia==="function")return window.matchMedia("(prefers-reduced-motion: reduce)").matches;return!1}function lp(){if(typeof window.matchMedia==="function")return window.matchMedia("(prefers-contrast: high)").matches;return!1}function cp(){if(typeof window.matchMedia==="function"){if(window.matchMedia("(prefers-color-scheme: dark)").matches)return"dark";if(window.matchMedia("(prefers-color-scheme: light)").matches)return"light"}return null}function dp(e,t="Skip to main content"){let s=document.createElement("a");return s.href=`#${e}`,s.textContent=t,s.className="skip-link",Object.assign(s.style,{position:"absolute",top:"-40px",left:"0",background:"#000",color:"#fff",padding:"8px",textDecoration:"none",zIndex:"100"}),s.addEventListener("focus",()=>{s.style.top="0"}),s.addEventListener("blur",()=>{s.style.top="-40px"}),s}function pp(e){let t=[],s=(o)=>{let a=e.getAttribute(o);if(a){let i=a.split(" ");for(let n of i)if(!document.getElementById(n))t.push(`${o} references non-existent ID: ${n}`)}};return s("aria-labelledby"),s("aria-describedby"),s("aria-controls"),s("aria-owns"),s("aria-activedescendant"),t}var Sa=(e,t,s,o)=>{return s*e/o+t},Ta=(e,t,s,o)=>{return e/=o,s*e*e+t},Aa=(e,t,s,o)=>{return e/=o,-s*e*(e-2)+t},Ia=(e,t,s,o)=>{if(e/=o/2,e<1)return s/2*e*e+t;return e--,-s/2*(e*(e-2)-1)+t},Na=(e,t,s,o)=>{return e/=o,s*e*e*e+t},Da=(e,t,s,o)=>{return e/=o,e--,s*(e*e*e+1)+t},za=(e,t,s,o)=>{if(e/=o/2,e<1)return s/2*e*e*e+t;return e-=2,s/2*(e*e*e+2)+t},Pa=(e,t,s,o)=>{return e/=o,s*e*e*e*e+t},La=(e,t,s,o)=>{return e/=o,e--,-s*(e*e*e*e-1)+t},Ea=(e,t,s,o)=>{if(e/=o/2,e<1)return s/2*e*e*e*e+t;return e-=2,-s/2*(e*e*e*e-2)+t},Oa=(e,t,s,o)=>{return e/=o,s*e*e*e*e*e+t},Ra=(e,t,s,o)=>{return e/=o,e--,s*(e*e*e*e*e+1)+t},Ma=(e,t,s,o)=>{if(e/=o/2,e<1)return s/2*e*e*e*e*e+t;return e-=2,s/2*(e*e*e*e*e+2)+t},qa=(e,t,s,o)=>{return-s*Math.cos(e/o*(Math.PI/2))+s+t},ja=(e,t,s,o)=>{return s*Math.sin(e/o*(Math.PI/2))+t},Ba=(e,t,s,o)=>{return-s/2*(Math.cos(Math.PI*e/o)-1)+t},Wa=(e,t,s,o)=>{return e===0?t:s*2**(10*(e/o-1))+t},Ha=(e,t,s,o)=>{return e===o?t+s:s*(-(2**(-10*e/o))+1)+t},Va=(e,t,s,o)=>{if(e===0)return t;if(e===o)return t+s;if(e/=o/2,e<1)return s/2*2**(10*(e-1))+t;return e--,s/2*(-(2**(-10*e))+2)+t},Fa=(e,t,s,o)=>{return e/=o,-s*(Math.sqrt(1-e*e)-1)+t},Ka=(e,t,s,o)=>{return e/=o,e--,s*Math.sqrt(1-e*e)+t},_a=(e,t,s,o)=>{if(e/=o/2,e<1)return-s/2*(Math.sqrt(1-e*e)-1)+t;return e-=2,s/2*(Math.sqrt(1-e*e)+1)+t},Ga=(e,t,s,o)=>{let a=1.70158,i=0,n=s;if(e===0)return t;if(e/=o,e===1)return t+s;if(!i)i=o*0.3;if(n<Math.abs(s))n=s,a=i/4;else a=i/(2*Math.PI)*Math.asin(s/n);return e-=1,-(n*2**(10*e)*Math.sin((e*o-a)*(2*Math.PI)/i))+t},Ua=(e,t,s,o)=>{let a=1.70158,i=0,n=s;if(e===0)return t;if(e/=o,e===1)return t+s;if(!i)i=o*0.3;if(n<Math.abs(s))n=s,a=i/4;else a=i/(2*Math.PI)*Math.asin(s/n);return n*2**(-10*e)*Math.sin((e*o-a)*(2*Math.PI)/i)+s+t},Ya=(e,t,s,o)=>{let a=1.70158,i=0,n=s;if(e===0)return t;if(e/=o/2,e===2)return t+s;if(!i)i=o*0.44999999999999996;if(n<Math.abs(s))n=s,a=i/4;else a=i/(2*Math.PI)*Math.asin(s/n);if(e<1)return e-=1,-0.5*(n*2**(10*e)*Math.sin((e*o-a)*(2*Math.PI)/i))+t;return e-=1,n*2**(-10*e)*Math.sin((e*o-a)*(2*Math.PI)/i)*0.5+s+t},Ja=(e,t,s,o)=>{return e/=o,s*e*e*(2.70158*e-1.70158)+t},Xa=(e,t,s,o)=>{return e/=o,e--,s*(e*e*(2.70158*e+1.70158)+1)+t},Za=(e,t,s,o)=>{let a=1.70158;if(e/=o/2,e<1)return a*=1.525,s/2*(e*e*((a+1)*e-a))+t;return e-=2,a*=1.525,s/2*(e*e*((a+1)*e+a)+2)+t},te=(e,t,s,o)=>{if(e/=o,e<0.36363636363636365)return s*(7.5625*e*e)+t;else if(e<0.7272727272727273)return e-=0.5454545454545454,s*(7.5625*e*e+0.75)+t;else if(e<0.9090909090909091)return e-=0.8181818181818182,s*(7.5625*e*e+0.9375)+t;else return e-=0.9545454545454546,s*(7.5625*e*e+0.984375)+t},ue=(e,t,s,o)=>{return s-te(o-e,0,s,o)+t},Qa=(e,t,s,o)=>{if(e<o/2)return ue(e*2,0,s,o)*0.5+t;return te(e*2-o,0,s,o)*0.5+s*0.5+t},up={linear:Sa,easeInQuad:Ta,easeOutQuad:Aa,easeInOutQuad:Ia,easeInCubic:Na,easeOutCubic:Da,easeInOutCubic:za,easeInQuart:Pa,easeOutQuart:La,easeInOutQuart:Ea,easeInQuint:Oa,easeOutQuint:Ra,easeInOutQuint:Ma,easeInSine:qa,easeOutSine:ja,easeInOutSine:Ba,easeInExpo:Wa,easeOutExpo:Ha,easeInOutExpo:Va,easeInCirc:Fa,easeOutCirc:Ka,easeInOutCirc:_a,easeInElastic:Ga,easeOutElastic:Ua,easeInOutElastic:Ya,easeInBack:Ja,easeOutBack:Xa,easeInOutBack:Za,easeInBounce:ue,easeOutBounce:te,easeInOutBounce:Qa};function ei(e,t={}){let{duration:s="1s",timing:o="ease",delay:a="0s",iteration:i="1",direction:n="normal",fill:r="both",playState:c="running"}=t;return`${e} ${s} ${o} ${a} ${i} ${n} ${r} ${c}`}function fe(e,t,s={}){e.style.animation=ei(t,s)}function bp(e){e.style.animation=""}function ti(e){return new Promise((t)=>{let s=()=>{e.removeEventListener("animationend",s),t()};e.addEventListener("animationend",s)})}function mp(e,t,s={}){let{stagger:o=100,...a}=s;e.forEach((i,n)=>{let r=`${n*o}ms`;fe(i,t,{...a,delay:r})})}async function gp(e,t){for(let s of t)fe(e,s.name,s.options),await ti(e)}var xp={fadeIn:"animate-fade-in",fadeOut:"animate-fade-out",slideInUp:"animate-slide-in-up",slideInDown:"animate-slide-in-down",slideInLeft:"animate-slide-in-left",slideInRight:"animate-slide-in-right",zoomIn:"animate-zoom-in",zoomOut:"animate-zoom-out",bounce:"animate-bounce",spin:"animate-spin",ping:"animate-ping",pulse:"animate-pulse"};function vp(e,t,s=1000){return new Promise((o)=>{e.classList.add(t),setTimeout(()=>{e.classList.remove(t),o()},s)})}function wp(e,t){let s=`
|
|
11
|
+
`)}`)}return{valid:n.length===0,errors:n}}function D(e,t,s){return(o)=>Ge(e,o,t,s)}function Cn(e,t,s="value"){if(!F)return;if(!t.validate(e,s,"assertion"))throw Error(t.message(e,s,"assertion"))}function $n(e,t,s="value"){if(!F)return;if(!t.validate(e,s,"warning"))console.warn(t.message(e,s,"warning"))}var Ye="./Button-tcjt3m8s.stx";var Je={variant:l.oneOf(["primary","secondary","outline","ghost","danger"]),size:l.oneOf(["xs","sm","md","lg","xl"]),disabled:l.boolean,loading:l.boolean,type:l.oneOf(["button","submit","reset"]),fullWidth:l.boolean,leftIcon:l.string,rightIcon:l.string,className:l.string,onClick:l.func},In=D("Button",Je);function Nn(e){return le(e,"Button","onClick")}function Dn(e){if(e&&!["primary","secondary","outline","ghost","danger"].includes(e))throw R.invalidProp("Button","variant",e,["primary","secondary","outline","ghost","danger"])}function zn(e){if(e&&!["xs","sm","md","lg","xl"].includes(e))throw R.invalidProp("Button","size",e,["xs","sm","md","lg","xl"])}var Ze="./Calendar-ppqdw19s.stx";var et="./Card-r55zpjqh.stx";var st="./Checkbox-e7gn3w06.stx";var at="./Combobox-06x0nywb.stx";var nt="./ComboboxButton-g76stp1e.stx";var lt="./ComboboxInput-4jcpvw7e.stx";var dt="./ComboboxOption-vnb67p8d.stx";var ht="./ComboboxOptions-nbndbrxz.stx";var ft="./CommandPalette-6rjcgske.stx";var mt="./CommandPaletteItem-6rp133ta.stx";var xt="./Dialog-d1020hj6.stx";var wt="./DialogBackdrop-de5m5m4w.stx";var Ct="./DialogDescription-gth4c2kx.stx";var kt="./DialogPanel-vhdqymc2.stx";var Tt="./DialogTitle-0jjdk5ra.stx";var It="./Drawer-jcdj3qk2.stx";var Dt="./Dropdown-cmwge7vx.stx";var Pt="./DropdownButton-tx9hb2de.stx";var Et="./DropdownItem-wht1vcm5.stx";var Rt="./DropdownItems-v12h6zpf.stx";var qt="./Form-vbag14t1.stx";var jt={action:l.string,method:l.oneOf(["GET","POST","PUT","DELETE","PATCH"]),validationSchema:l.object,initialValues:l.object,validateOnChange:l.boolean,validateOnBlur:l.boolean,onSubmit:l.func,onError:l.func,className:l.string},Dr=D("Form",jt);var Wt="./Image-79xyzb5j.stx";var Vt="./EmailInput-agb8kqae.stx";var Kt="./NumberInput-awn66hfs.stx";var Gt="./PasswordInput-hradj0xd.stx";var Yt="./SearchInput-psbjk2ye.stx";var Xt="./TextInput-48ghmccm.stx";var Zt={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string},Qt={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,leftIcon:l.string,rightIcon:l.string,clearable:l.boolean,maxLength:l.number,showCount:l.boolean},es={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,min:l.number,max:l.number,step:l.number,showControls:l.boolean},ts={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,showStrength:l.boolean},ss={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,onSearch:l.func,loading:l.boolean},Hr=D("TextInput",Qt),Vr=D("EmailInput",Zt),Fr=D("PasswordInput",ts),Kr=D("NumberInput",es),_r=D("SearchInput",ss);var as="./Listbox-e5jreb0a.stx";var ns="./ListboxButton-t43pp03e.stx";var ls="./ListboxLabel-ka0hfm7b.stx";var ds="./ListboxOption-9c9jpz1n.stx";var hs="./ListboxOptions-qxrkrb8z.stx";var fs="./FilterChip-00ja5jhz.stx";var ms="./FilterChips-7pnzycfd.stx";var xs="./ListRow-8d3e1yxh.stx";var ws="./NavBar-qqrrhdnk.stx";var Cs="./SectionCard-8ctdacjr.stx";var ks="./TabBar-8143650x.stx";var Ts="./TabBarItem-wv2r8496.stx";var Is="./Navigator-1yk1c3pp.stx";var Ds="./Notification-7wgk0sw6.stx";var Ps="./Pagination-z9jxnaeq.stx";var Es="./Checkout-22wh3s22.stx";var Rs="./DefaultPaymentMethod-r0hcjajr.stx";var qs="./PaymentMethods-z4hhr0kv.stx";var Bs="./SubscriptionCheckout-pggq5a4k.stx";var Hs="./Popover-3g8rgxt1.stx";var Fs="./PopoverButton-70th24xc.stx";var _s="./PopoverPanel-7771yf35.stx";var Us="./Portal-m73vz879.stx";var Js="./Progress-bv65bwh8.stx";var Zs="./Radio-nr8rbb6g.stx";var eo="./RadioGroup-hzz4xep9.stx";var so="./RadioGroupDescription-z34r9avr.stx";var ao="./RadioGroupLabel-ka0hfm7b.stx";var no="./RadioGroupOption-7fcgfsah.stx";var lo="./Select-sbr8dqzn.stx";var po="./Sidebar-ve2asgf3.stx";var uo="./SidebarFooter-s7skj92y.stx";var bo="./SidebarHeader-esvby82n.stx";var go="./SidebarItem-r4f2pref.stx";var vo="./SidebarPinned-48kyk193.stx";var yo="./SidebarSection-5sqza2j6.stx";var $o="./SidebarSpace-bwv98azf.stx";var So="./SidebarSpaces-mdtrynr2.stx";var Ao="./SidebarSpaceSwitcher-1mycft2g.stx";var K={blue:"#0088ff",red:"#ff383c",pink:"#ff2d55",orange:"#ff8d28",yellow:"#ffcc00",green:"#34c759",teal:"#00c3d0",cyan:"#00c0e8",indigo:"#6155f5",purple:"#cb30e0",brown:"#ac7f5e",gray:"#8e8e93"},O={pane:["bg-[#f2f2f4]/90 dark:bg-[#1c1c1e]/88","backdrop-blur-[50px] backdrop-saturate-[180%]","text-black dark:text-white","select-none"].join(" "),selection:"accent",layers:{shimmerRim:!0},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-[10px] pb-[10px]",sectionHeader:["group/section flex w-full items-center","pl-[8px] pr-[6px] pt-[16px] pb-[5px]","text-[11px] font-semibold leading-[13px]","text-[#3c3c43]/60 dark:text-[#ebebf5]/60"].join(" "),sectionChevron:["i-f7-chevron-down h-[11px] w-[11px] ml-auto","text-[#3c3c43]/45 dark:text-[#ebebf5]/45","opacity-0 group-hover/section:opacity-100 transition-opacity duration-150","transition-transform duration-200"].join(" "),sectionGroup:"flex flex-col",item:{base:["flex w-full items-center","h-[32px] rounded-[8px] pl-[4px] pr-[8px]","text-[13px] leading-[16px] font-normal","text-black dark:text-white","transition-colors duration-150 ease-out","cursor-default"].join(" "),hover:"hover:bg-black/4 dark:hover:bg-white/6",active:"",pressed:"active:bg-black/10 dark:active:bg-white/18",disabled:"opacity-40 pointer-events-none",disclosure:"flex h-[16px] w-[18px] shrink-0 items-center justify-center",chevron:["i-f7-chevron-right h-[11px] w-[11px]","text-[#3c3c43]/55 dark:text-[#ebebf5]/55","transition-transform duration-200 ease-out"].join(" "),iconSlot:"flex h-[20px] w-[22px] shrink-0 items-center justify-center mr-[7px]",icon:"h-[17px] w-[17px]",image:"h-[20px] w-[20px] rounded-[4px] object-cover shadow-sm",label:"flex-1 truncate text-left",count:["ml-[8px] shrink-0 tabular-nums","text-[13px] leading-[16px]","text-[#3c3c43]/60 dark:text-[#ebebf5]/60"].join(" "),indentPerLevel:16}},Io={selection:"classes",pane:"bg-[#f4f4f3] dark:bg-neutral-950 text-zinc-950 dark:text-white select-none",layers:{},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-5 py-5",sectionHeader:"group/section flex w-full items-center gap-2.5 px-4 pb-2 pt-5 text-[13px] font-semibold uppercase tracking-[0.12em] text-zinc-400 dark:text-zinc-500",sectionChevron:"i-f7-chevron-down h-3 w-3 ml-auto opacity-0 group-hover/section:opacity-100 transition-opacity duration-150 transition-transform duration-200",sectionGroup:"flex flex-col space-y-1",item:{base:"flex w-full items-center gap-3 rounded-[16px] px-3.5 py-2 text-[14px] leading-tight transition-colors duration-150",hover:"hover:bg-[#ececea] hover:text-zinc-950 dark:hover:bg-white/10",active:"bg-[#e7e7e5] text-zinc-950 dark:bg-white/12 dark:text-white",pressed:"active:bg-[#e2e2e0] dark:active:bg-white/15",disabled:"opacity-50 pointer-events-none",disclosure:"flex h-4 w-4 shrink-0 items-center justify-center",chevron:"i-f7-chevron-right h-3 w-3 opacity-50 transition-transform duration-200",iconSlot:"flex h-5 w-5 shrink-0 items-center justify-center",icon:"h-[18px] w-[18px] text-zinc-500 dark:text-zinc-500",image:"h-5 w-5 rounded object-cover",label:"flex-1 truncate text-left text-zinc-700 dark:text-zinc-300",count:"ml-auto grid h-5 min-w-5 place-items-center rounded-full bg-white/70 px-1.5 text-[11px] font-medium text-zinc-500 shadow-sm dark:bg-white/10 dark:text-zinc-400",indentPerLevel:12}},No={selection:"classes",pane:"bg-[#f3f3f1]/48 dark:bg-neutral-950/32 backdrop-blur-3xl backdrop-saturate-150 text-zinc-950 dark:text-white select-none",layers:{tint:"bg-[linear-gradient(112deg,rgba(255,255,255,0.20)_0%,rgba(255,255,255,0.04)_45%,rgba(226,226,222,0.16)_100%)] dark:bg-[linear-gradient(112deg,rgba(255,255,255,0.08)_0%,rgba(255,255,255,0.02)_46%,rgba(255,255,255,0.06)_100%)]"},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-5 py-2",sectionHeader:"group/section flex w-full items-center gap-2.5 px-3 pb-1.5 pt-3 rounded-[14px] text-[12px] font-semibold uppercase tracking-[0.10em] text-zinc-500/80 dark:text-zinc-400/80",sectionChevron:"i-f7-chevron-down h-3 w-3 ml-auto opacity-0 group-hover/section:opacity-100 transition-opacity duration-150 transition-transform duration-200",sectionGroup:"flex flex-col space-y-1",item:{base:"flex w-full items-center gap-3 rounded-[14px] px-3 py-1.5 text-[13.5px] leading-tight transition-colors duration-150",hover:"hover:bg-white/38 hover:text-zinc-950 dark:hover:bg-white/10",active:"bg-[#e8e8e6]/90 text-zinc-950 dark:bg-white/12 dark:text-white",pressed:"active:bg-white/50 dark:active:bg-white/15",disabled:"opacity-50 pointer-events-none",disclosure:"flex h-4 w-4 shrink-0 items-center justify-center",chevron:"i-f7-chevron-right h-3 w-3 opacity-50 transition-transform duration-200",iconSlot:"flex h-5 w-5 shrink-0 items-center justify-center",icon:"h-[18px] w-[18px] text-zinc-600 dark:text-zinc-400",image:"h-5 w-5 rounded object-cover",label:"flex-1 truncate text-left text-zinc-700 dark:text-zinc-300",count:"ml-auto grid h-5 min-w-5 place-items-center rounded-full bg-white/72 px-1.5 text-[11px] font-medium text-zinc-500 shadow-sm dark:bg-white/10 dark:text-zinc-400",indentPerLevel:12}},Do={selection:"classes",pane:["bg-[#f7f5f1]/92 dark:bg-[#1a1a1c]/92","backdrop-blur-[40px] backdrop-saturate-[160%]","text-[#2c2a28] dark:text-[#ededf0]","select-none"].join(" "),layers:{tint:["bg-[linear-gradient(180deg,var(--stx-sidebar-tint,rgba(255,251,242,0.55))_0%,rgba(255,255,255,0)_38%)]","dark:bg-[linear-gradient(180deg,var(--stx-sidebar-tint,rgba(255,255,255,0.05))_0%,rgba(255,255,255,0)_42%)]"].join(" ")},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-[16px] pb-[8px]",sectionHeader:["group/section flex w-full items-center","px-[8px] pt-[14px] pb-[4px]","text-[11px] font-medium leading-[13px]","opacity-55"].join(" "),sectionChevron:["i-f7-chevron-down h-[10px] w-[10px] ml-auto","opacity-0 group-hover/section:opacity-100 transition-opacity duration-150","transition-transform duration-200"].join(" "),sectionGroup:"flex flex-col space-y-[2px]",item:{base:["flex w-full items-center","h-[30px] rounded-[8px] pl-[6px] pr-[8px]","text-[13px] leading-[16px] font-normal","text-current","transition-[background-color,box-shadow,color] duration-150 ease-out","cursor-default"].join(" "),hover:"hover:bg-white/55 dark:hover:bg-white/8",active:["bg-white dark:bg-white/14","font-medium","shadow-[0_1px_2px_rgba(0,0,0,0.08)] dark:shadow-[0_1px_2px_rgba(0,0,0,0.35)]","ring-1 ring-black/5 dark:ring-white/8"].join(" "),pressed:"active:bg-white/80 dark:active:bg-white/18",disabled:"opacity-40 pointer-events-none",disclosure:"flex h-[16px] w-[16px] shrink-0 items-center justify-center",chevron:["i-f7-chevron-right h-[10px] w-[10px] opacity-45","transition-transform duration-200 ease-out"].join(" "),iconSlot:"flex h-[18px] w-[18px] shrink-0 items-center justify-center mr-[8px]",icon:"h-[16px] w-[16px]",image:"h-[18px] w-[18px] rounded-[5px] object-cover shadow-sm",label:"flex-1 truncate text-left",count:["ml-[8px] shrink-0 tabular-nums","text-[12px] leading-[16px] opacity-45"].join(" "),indentPerLevel:14}},zo={...O,pane:"bg-stone-100 dark:bg-neutral-900 text-black dark:text-white select-none",layers:{}},Po={...O,pane:"bg-transparent text-black dark:text-white select-none",layers:{}},Lo={...O,pane:"bg-white/50 dark:bg-black/40 backdrop-blur-3xl backdrop-saturate-200 text-black dark:text-white select-none",layers:{}},ce={macos:O,tahoe:O,"macos-tahoe":O,"macos-latest":O,arc:Do,workspace:Io,desktop:No,solid:zo,transparent:Po,vibrancy:Lo};function Tc(e){return ce[e||"macos"]||ce.macos}function Ac(e){if(!e)return;return K[e]||e}var Eo=K.gray;function L(e,t,s){return`color-mix(in oklab, ${e} ${t}%, ${s})`}function de(e){return{light:{from:L(e,35,"#ffffff"),to:L(e,12.5,"#ffffff"),ink:L(e,22,"#17171b"),accent:L(e,88,"#2a2a30")},dark:{from:L(e,27,"#101014"),to:L(e,10,"#08080b"),ink:L(e,12,"#f4f4f7"),accent:L(e,74,"#ffffff")}}}function Dc(e,t){return`linear-gradient(180deg, ${e} 0%, ${t} 100%)`}function Oo(e){if(!e)return de(Eo);if(typeof e!=="string")return e;return de(K[e]||e)}function Ro(e){return[`--stx-space-light-from: ${e.light.from}`,`--stx-space-light-to: ${e.light.to}`,`--stx-space-light-ink: ${e.light.ink}`,`--stx-space-light-accent: ${e.light.accent}`,`--stx-space-dark-from: ${e.dark.from}`,`--stx-space-dark-to: ${e.dark.to}`,`--stx-space-dark-ink: ${e.dark.ink}`,`--stx-space-dark-accent: ${e.dark.accent}`].join("; ")}function pe(e,t,s,o){if(!e||!e.label)return null;return{id:e.id||`${t}-${s}`,label:e.label,icon:e.icon||o}}function Mo(e){let t=Oo(e.tint);return{id:e.id,label:e.label||"",icon:e.icon||"",pinned:e.pinned||[],sections:e.sections||[],action:pe(e.action,e.id,"action","i-f7-plus"),clear:pe(e.clear,e.id,"clear","i-f7-arrow-down"),tint:t,style:Ro(t),deferred:e.deferred===!0,showTitle:e.showTitle??!0}}function zc(e){return(e||[]).map(Mo)}function Pc(e,t){if(!t)return 0;let s=e.findIndex((o)=>o.id===t);return s===-1?0:s}function Lc(e){return e.map((t)=>t.tint)}var jo="./Skeleton-me2hwqrc.stx";var Wo="./Spinner-vhnc3y03.stx";var Vo="./Stepper-rgbk76hd.stx";var Ko="./StepperStep-34kwv0t0.stx";class _{storage;namespace;watchers=new Map;encryptionKey="stx-storage-key";constructor(e="local",t=""){if(this.storage=e==="local"?globalThis.localStorage:globalThis.sessionStorage,this.namespace=t,typeof window<"u")window.addEventListener("storage",this.handleStorageEvent.bind(this))}handleStorageEvent(e){if(!e.key)return;let t=this.namespace&&e.key.startsWith(`${this.namespace}:`)?e.key.slice(this.namespace.length+1):e.key,s=this.watchers.get(t);if(s){let o=e.oldValue?JSON.parse(e.oldValue).value:null,a=e.newValue?JSON.parse(e.newValue).value:null;s.forEach((i)=>i(a,o,t))}}encrypt(e){let t="";for(let s=0;s<e.length;s++)t+=String.fromCharCode(e.charCodeAt(s)^this.encryptionKey.charCodeAt(s%this.encryptionKey.length));return btoa(t)}decrypt(e){try{let t=atob(e),s="";for(let o=0;o<t.length;o++)s+=String.fromCharCode(t.charCodeAt(o)^this.encryptionKey.charCodeAt(o%this.encryptionKey.length));return s}catch{return e}}compress(e){if(e.length<100)return e;let t={},s=256,o=[],a="";for(let i=0;i<e.length;i++){let n=e.charAt(i),r=a+n;if(t[r]!==void 0)a=r;else o.push(a.length>1?t[a]:a.charCodeAt(0)),t[r]=s++,a=n}if(a!=="")o.push(a.length>1?t[a]:a.charCodeAt(0));return JSON.stringify(o)}decompress(e){try{let t=JSON.parse(e);if(!Array.isArray(t))return e;let s={},o=256,a=String.fromCharCode(t[0]),i=a;for(let n=1;n<t.length;n++){let r=t[n],c;if(s[r]!==void 0)c=s[r];else if(r===o)c=a+a.charAt(0);else return e;i+=c,s[o++]=a+c.charAt(0),a=c}return i}catch{return e}}getKey(e){return this.namespace?`${this.namespace}:${e}`:e}set(e,t,s){let o=this.getKey(e),a=this.get(e),i={value:t,timestamp:Date.now(),expire:s?.expire,encrypted:s?.encrypt||!1,compressed:s?.compress||!1};try{let n=JSON.stringify(i);if(s?.compress)n=this.compress(n);if(s?.encrypt)n=this.encrypt(n);this.storage.setItem(o,n),this.notifyWatchers(e,t,a)}catch(n){console.error("Storage set error:",n)}}get(e){let t=this.getKey(e);try{let s=this.storage.getItem(t);if(!s)return null;if(s.match(/^[A-Z0-9+/]+=*$/i))try{s=this.decrypt(s)}catch{}if(s.startsWith("["))try{s=this.decompress(s)}catch{}let o=JSON.parse(s);if(o.expire&&Date.now()-o.timestamp>o.expire)return this.remove(e),null;return o.value}catch(s){return console.error("Storage get error:",s),null}}watch(e,t){if(!this.watchers.has(e))this.watchers.set(e,new Set);return this.watchers.get(e).add(t),()=>{let s=this.watchers.get(e);if(s){if(s.delete(t),s.size===0)this.watchers.delete(e)}}}notifyWatchers(e,t,s){let o=this.watchers.get(e);if(o)o.forEach((a)=>a(t,s,e))}remove(e){let t=this.getKey(e),s=this.get(e);this.storage.removeItem(t),this.notifyWatchers(e,null,s)}clear(){if(this.namespace)this.keys().forEach((t)=>this.remove(t));else this.storage.clear()}has(e){return this.get(e)!==null}keys(){let e=Object.keys(this.storage);if(this.namespace){let t=`${this.namespace}:`;return e.filter((s)=>s.startsWith(t)).map((s)=>s.slice(t.length))}return e}size(){return this.keys().length}getQuota(){if("storage"in navigator&&"estimate"in navigator.storage)return null;try{let e=0;for(let s=0;s<this.storage.length;s++){let o=this.storage.key(s);if(o){let a=this.storage.getItem(o)||"";e+=o.length+a.length}}let t=5242880;return{usage:e*2,quota:t,percentage:e*2/t*100}}catch{return null}}setMany(e,t){Object.entries(e).forEach(([s,o])=>{this.set(s,o,t)})}getMany(e){let t={};return e.forEach((s)=>{t[s]=this.get(s)}),t}removeMany(e){e.forEach((t)=>this.remove(t))}}var id={local:new _("local"),session:new _("session")};function nd(e="local",t){return new _(e,t)}var Go="./Switch-fxbw7s16.stx";var Yo="./Table-akbk3t5q.stx";var Xo="./TableBody-y49bqb1p.stx";var Qo="./TableCell-8swtcq8s.stx";var ta="./TableHead-e9xvjx2j.stx";var oa="./TableHeader-qsc3e208.stx";var ia="./TableRow-ytr6b5by.stx";var ra="./TabPanel-5htevsq6.stx";var ca="./Tabs-51vr631j.stx";var pa="./Teleport-c8nn3757.stx";var ua="./Textarea-dndmk6ah.stx";var ba="./Tooltip-g2j17eg9.stx";var ga="./Transition-yrvqbhjy.stx";var va="./Video-rhy7dskw.stx";var ya="./VirtualList-fa7v5a3h.stx";var $a="./VirtualTable-kp7b3wyv.stx";var ka=0;function he(e="a11y"){return`${e}-${++ka}-${Date.now()}`}function Jd(e,t,s={}){let{visible:o=!1,id:a=he("label")}=s,i=document.createElement(o?"label":"span");if(i.id=a,i.textContent=e,!o)Object.assign(i.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"});if(t)if(t.setAttribute("aria-labelledby",a),t.parentElement)t.parentElement.insertBefore(i,t);else document.body.appendChild(i);return a}function Xd(e,t){let s=he("desc"),o=document.createElement("span");if(o.id=s,o.textContent=e,Object.assign(o.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}),t)if(t.setAttribute("aria-describedby",s),t.parentElement)t.parentElement.insertBefore(o,t);else document.body.appendChild(o);return s}function Zd(e,t="polite"){let s=document.createElement("div");s.setAttribute("role","status"),s.setAttribute("aria-live",t),s.setAttribute("aria-atomic","true"),Object.assign(s.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}),document.body.appendChild(s),setTimeout(()=>{s.textContent=e},100),setTimeout(()=>{s.parentNode?.removeChild(s)},1000)}function ee(e){let t=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(",");return Array.from(e.querySelectorAll(t)).filter((s)=>s.offsetParent!==null)}function Qd(e,t={}){let{initialFocus:s,returnFocus:o,escapeDeactivates:a=!0,clickOutsideDeactivates:i=!0,allowOutsideClick:n=!1,onActivate:r,onDeactivate:c}=t,d=!1,h=!1,p=null,m=(x)=>{if(h)return;if(a&&x.key==="Escape"){x.preventDefault(),v();return}if(x.key==="Tab"){let C=ee(e);if(C.length===0){x.preventDefault();return}let I=C[0],P=C[C.length-1];if(x.shiftKey){if(document.activeElement===I)x.preventDefault(),P.focus()}else if(document.activeElement===P)x.preventDefault(),I.focus()}},f=(x)=>{if(h)return;if(!e.contains(x.target)){if(typeof n==="function"){if(!n(x)&&i)v()}else if(!n&&i)v()}};function w(){if(d)return;d=!0,p=document.activeElement;let x=s||ee(e)[0];if(x&&typeof x.focus==="function")x.focus();document.addEventListener("keydown",m),document.addEventListener("click",f),r?.()}function v(){if(!d)return;d=!1;let x=o||p;if(x&&typeof x.focus==="function")x.focus();document.removeEventListener("keydown",m),document.removeEventListener("click",f),c?.()}function k(){h=!0}function g(){h=!1}return{activate:w,deactivate:v,pause:k,unpause:g}}function ep(e,t={}){let{selector:s='[role="option"], [role="menuitem"], [role="tab"], button',initialIndex:o=0,orientation:a="both",loop:i=!0,onFocusChange:n}=t,r=o,c=()=>{return Array.from(e.querySelectorAll(s))},d=(p)=>{let m=c();if(p<0||p>=m.length)return;m.forEach((f,w)=>{if(w===p){if(f.setAttribute("tabindex","0"),typeof f.focus==="function")f.focus()}else f.setAttribute("tabindex","-1")}),r=p,n?.(p,m[p])},h=(p)=>{let f=c().length-1,w=!1,v=r;switch(p.key){case"ArrowRight":if(a==="horizontal"||a==="both"){if(v=r+1,v>f)v=i?0:f;w=!0}break;case"ArrowLeft":if(a==="horizontal"||a==="both"){if(v=r-1,v<0)v=i?f:0;w=!0}break;case"ArrowDown":if(a==="vertical"||a==="both"){if(v=r+1,v>f)v=i?0:f;w=!0}break;case"ArrowUp":if(a==="vertical"||a==="both"){if(v=r-1,v<0)v=i?f:0;w=!0}break;case"Home":v=0,w=!0;break;case"End":v=f,w=!0;break}if(w)p.preventDefault(),d(v)};return d(o),e.addEventListener("keydown",h),()=>{e.removeEventListener("keydown",h)}}var tp={Enter:"Enter",Space:" ",Escape:"Escape",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",Tab:"Tab",Home:"Home",End:"End",PageUp:"PageUp",PageDown:"PageDown"};function sp(e){return document.activeElement===e}function op(e,t){let s=t||document.activeElement,o=ee(document.body),a=o.indexOf(s);if(a===-1)return;let i=e==="next"?a+1:a-1,n=o[i];if(n)n.focus()}function ap(e){if(e.getAttribute("aria-hidden")==="true")return!1;let t=window.getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden")return!1;return!0}var ip={setExpanded(e,t){e.setAttribute("aria-expanded",String(t))},setSelected(e,t){e.setAttribute("aria-selected",String(t))},setChecked(e,t){e.setAttribute("aria-checked",String(t))},setDisabled(e,t){if(e.setAttribute("aria-disabled",String(t)),t)e.setAttribute("tabindex","-1");else e.removeAttribute("tabindex")},setHidden(e,t){if(t)e.setAttribute("aria-hidden","true");else e.removeAttribute("aria-hidden")},setPressed(e,t){e.setAttribute("aria-pressed",String(t))},setInvalid(e,t){e.setAttribute("aria-invalid",String(t))},setRequired(e,t){e.setAttribute("aria-required",String(t))},setLive(e,t){e.setAttribute("aria-live",t)},setBusy(e,t){e.setAttribute("aria-busy",String(t))}};function np(e){let t=document.createElement("span");return t.textContent=e,t.className="sr-only",Object.assign(t.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}),t}function rp(){if(typeof window.matchMedia==="function")return window.matchMedia("(prefers-reduced-motion: reduce)").matches;return!1}function lp(){if(typeof window.matchMedia==="function")return window.matchMedia("(prefers-contrast: high)").matches;return!1}function cp(){if(typeof window.matchMedia==="function"){if(window.matchMedia("(prefers-color-scheme: dark)").matches)return"dark";if(window.matchMedia("(prefers-color-scheme: light)").matches)return"light"}return null}function dp(e,t="Skip to main content"){let s=document.createElement("a");return s.href=`#${e}`,s.textContent=t,s.className="skip-link",Object.assign(s.style,{position:"absolute",top:"-40px",left:"0",background:"#000",color:"#fff",padding:"8px",textDecoration:"none",zIndex:"100"}),s.addEventListener("focus",()=>{s.style.top="0"}),s.addEventListener("blur",()=>{s.style.top="-40px"}),s}function pp(e){let t=[],s=(o)=>{let a=e.getAttribute(o);if(a){let i=a.split(" ");for(let n of i)if(!document.getElementById(n))t.push(`${o} references non-existent ID: ${n}`)}};return s("aria-labelledby"),s("aria-describedby"),s("aria-controls"),s("aria-owns"),s("aria-activedescendant"),t}var Sa=(e,t,s,o)=>{return s*e/o+t},Ta=(e,t,s,o)=>{return e/=o,s*e*e+t},Aa=(e,t,s,o)=>{return e/=o,-s*e*(e-2)+t},Ia=(e,t,s,o)=>{if(e/=o/2,e<1)return s/2*e*e+t;return e--,-s/2*(e*(e-2)-1)+t},Na=(e,t,s,o)=>{return e/=o,s*e*e*e+t},Da=(e,t,s,o)=>{return e/=o,e--,s*(e*e*e+1)+t},za=(e,t,s,o)=>{if(e/=o/2,e<1)return s/2*e*e*e+t;return e-=2,s/2*(e*e*e+2)+t},Pa=(e,t,s,o)=>{return e/=o,s*e*e*e*e+t},La=(e,t,s,o)=>{return e/=o,e--,-s*(e*e*e*e-1)+t},Ea=(e,t,s,o)=>{if(e/=o/2,e<1)return s/2*e*e*e*e+t;return e-=2,-s/2*(e*e*e*e-2)+t},Oa=(e,t,s,o)=>{return e/=o,s*e*e*e*e*e+t},Ra=(e,t,s,o)=>{return e/=o,e--,s*(e*e*e*e*e+1)+t},Ma=(e,t,s,o)=>{if(e/=o/2,e<1)return s/2*e*e*e*e*e+t;return e-=2,s/2*(e*e*e*e*e+2)+t},qa=(e,t,s,o)=>{return-s*Math.cos(e/o*(Math.PI/2))+s+t},ja=(e,t,s,o)=>{return s*Math.sin(e/o*(Math.PI/2))+t},Ba=(e,t,s,o)=>{return-s/2*(Math.cos(Math.PI*e/o)-1)+t},Wa=(e,t,s,o)=>{return e===0?t:s*2**(10*(e/o-1))+t},Ha=(e,t,s,o)=>{return e===o?t+s:s*(-(2**(-10*e/o))+1)+t},Va=(e,t,s,o)=>{if(e===0)return t;if(e===o)return t+s;if(e/=o/2,e<1)return s/2*2**(10*(e-1))+t;return e--,s/2*(-(2**(-10*e))+2)+t},Fa=(e,t,s,o)=>{return e/=o,-s*(Math.sqrt(1-e*e)-1)+t},Ka=(e,t,s,o)=>{return e/=o,e--,s*Math.sqrt(1-e*e)+t},_a=(e,t,s,o)=>{if(e/=o/2,e<1)return-s/2*(Math.sqrt(1-e*e)-1)+t;return e-=2,s/2*(Math.sqrt(1-e*e)+1)+t},Ga=(e,t,s,o)=>{let a=1.70158,i=0,n=s;if(e===0)return t;if(e/=o,e===1)return t+s;if(!i)i=o*0.3;if(n<Math.abs(s))n=s,a=i/4;else a=i/(2*Math.PI)*Math.asin(s/n);return e-=1,-(n*2**(10*e)*Math.sin((e*o-a)*(2*Math.PI)/i))+t},Ua=(e,t,s,o)=>{let a=1.70158,i=0,n=s;if(e===0)return t;if(e/=o,e===1)return t+s;if(!i)i=o*0.3;if(n<Math.abs(s))n=s,a=i/4;else a=i/(2*Math.PI)*Math.asin(s/n);return n*2**(-10*e)*Math.sin((e*o-a)*(2*Math.PI)/i)+s+t},Ya=(e,t,s,o)=>{let a=1.70158,i=0,n=s;if(e===0)return t;if(e/=o/2,e===2)return t+s;if(!i)i=o*0.44999999999999996;if(n<Math.abs(s))n=s,a=i/4;else a=i/(2*Math.PI)*Math.asin(s/n);if(e<1)return e-=1,-0.5*(n*2**(10*e)*Math.sin((e*o-a)*(2*Math.PI)/i))+t;return e-=1,n*2**(-10*e)*Math.sin((e*o-a)*(2*Math.PI)/i)*0.5+s+t},Ja=(e,t,s,o)=>{return e/=o,s*e*e*(2.70158*e-1.70158)+t},Xa=(e,t,s,o)=>{return e/=o,e--,s*(e*e*(2.70158*e+1.70158)+1)+t},Za=(e,t,s,o)=>{let a=1.70158;if(e/=o/2,e<1)return a*=1.525,s/2*(e*e*((a+1)*e-a))+t;return e-=2,a*=1.525,s/2*(e*e*((a+1)*e+a)+2)+t},te=(e,t,s,o)=>{if(e/=o,e<0.36363636363636365)return s*(7.5625*e*e)+t;else if(e<0.7272727272727273)return e-=0.5454545454545454,s*(7.5625*e*e+0.75)+t;else if(e<0.9090909090909091)return e-=0.8181818181818182,s*(7.5625*e*e+0.9375)+t;else return e-=0.9545454545454546,s*(7.5625*e*e+0.984375)+t},ue=(e,t,s,o)=>{return s-te(o-e,0,s,o)+t},Qa=(e,t,s,o)=>{if(e<o/2)return ue(e*2,0,s,o)*0.5+t;return te(e*2-o,0,s,o)*0.5+s*0.5+t},up={linear:Sa,easeInQuad:Ta,easeOutQuad:Aa,easeInOutQuad:Ia,easeInCubic:Na,easeOutCubic:Da,easeInOutCubic:za,easeInQuart:Pa,easeOutQuart:La,easeInOutQuart:Ea,easeInQuint:Oa,easeOutQuint:Ra,easeInOutQuint:Ma,easeInSine:qa,easeOutSine:ja,easeInOutSine:Ba,easeInExpo:Wa,easeOutExpo:Ha,easeInOutExpo:Va,easeInCirc:Fa,easeOutCirc:Ka,easeInOutCirc:_a,easeInElastic:Ga,easeOutElastic:Ua,easeInOutElastic:Ya,easeInBack:Ja,easeOutBack:Xa,easeInOutBack:Za,easeInBounce:ue,easeOutBounce:te,easeInOutBounce:Qa};function ei(e,t={}){let{duration:s="1s",timing:o="ease",delay:a="0s",iteration:i="1",direction:n="normal",fill:r="both",playState:c="running"}=t;return`${e} ${s} ${o} ${a} ${i} ${n} ${r} ${c}`}function fe(e,t,s={}){e.style.animation=ei(t,s)}function bp(e){e.style.animation=""}function ti(e){return new Promise((t)=>{let s=()=>{e.removeEventListener("animationend",s),t()};e.addEventListener("animationend",s)})}function mp(e,t,s={}){let{stagger:o=100,...a}=s;e.forEach((i,n)=>{let r=`${n*o}ms`;fe(i,t,{...a,delay:r})})}async function gp(e,t){for(let s of t)fe(e,s.name,s.options),await ti(e)}var xp={fadeIn:"animate-fade-in",fadeOut:"animate-fade-out",slideInUp:"animate-slide-in-up",slideInDown:"animate-slide-in-down",slideInLeft:"animate-slide-in-left",slideInRight:"animate-slide-in-right",zoomIn:"animate-zoom-in",zoomOut:"animate-zoom-out",bounce:"animate-bounce",spin:"animate-spin",ping:"animate-ping",pulse:"animate-pulse"};function vp(e,t,s=1000){return new Promise((o)=>{e.classList.add(t),setTimeout(()=>{e.classList.remove(t),o()},s)})}function wp(e,t){let s=`
|
|
12
12
|
@keyframes ${e} {
|
|
13
13
|
${Object.entries(t).map(([a,i])=>{let n=Object.entries(i).map(([r,c])=>`${r}: ${c};`).join(" ");return`${a} { ${n} }`}).join(`
|
|
14
14
|
`)}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/components",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.346",
|
|
5
5
|
"description": "A modern component library built with STX, featuring headwind utility classes and TypeScript syntax highlighting.",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@iconify-json/f7": "^1.2.2",
|
|
66
66
|
"@stacksjs/ts-css": "^0.3.2",
|
|
67
|
-
"@stacksjs/stx": "0.2.
|
|
68
|
-
"bun-plugin-stx": "0.2.
|
|
67
|
+
"@stacksjs/stx": "0.2.346",
|
|
68
|
+
"bun-plugin-stx": "0.2.346",
|
|
69
69
|
"ts-syntax-highlighter": "^0.2.17"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|