@stacksjs/components 0.2.344 → 0.2.345
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-kescmd4y.stx} +1 -1
- package/dist/{AccordionItem-7bd3ga36.stx → AccordionItem-1q9k2qyc.stx} +1 -1
- 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/{FilterChip-ww5nkepm.stx → FilterChip-00ja5jhz.stx} +1 -1
- package/dist/{Login-hh53d6tw.stx → Login-nmmkt5yd.stx} +2 -2
- package/dist/{Navigator-55wpcpx1.stx → Navigator-7rspzjys.stx} +2 -2
- package/dist/{Pagination-0ra20dja.stx → Pagination-bvk2ss15.stx} +2 -2
- package/dist/{PaymentMethods-zwa7c6kh.stx → PaymentMethods-tttjpa1m.stx} +1 -1
- package/dist/{Radio-m2wz5ny6.stx → Radio-nr8rbb6g.stx} +1 -1
- package/dist/{Signup-egdrk3rh.stx → Signup-wa31mdyc.stx} +2 -2
- package/dist/{SubscriptionCheckout-wj4s182k.stx → SubscriptionCheckout-5c1cy7az.stx} +1 -1
- package/dist/{TableRow-xd542nvb.stx → TableRow-ytr6b5by.stx} +1 -1
- package/dist/{Tabs-2cjt68my.stx → Tabs-esrn6j8p.stx} +1 -1
- package/dist/{Tooltip-14gt4f1w.stx → Tooltip-g2j17eg9.stx} +5 -5
- package/dist/{VirtualTable-jvje0ybn.stx → VirtualTable-jhdnq8xe.stx} +1 -1
- package/dist/index.js +2 -2
- package/package.json +3 -3
- package/src/ui/accordion/Accordion.stx +1 -1
- package/src/ui/accordion/AccordionItem.stx +1 -1
- package/src/ui/auth/Login.stx +2 -2
- package/src/ui/auth/Signup.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/mobile/FilterChip.stx +1 -1
- package/src/ui/navigator/Navigator.stx +2 -2
- package/src/ui/pagination/Pagination.stx +2 -2
- package/src/ui/payment/PaymentMethods.stx +1 -1
- package/src/ui/payment/SubscriptionCheckout.stx +1 -1
- package/src/ui/radio/Radio.stx +1 -1
- package/src/ui/table/TableRow.stx +1 -1
- package/src/ui/tabs/Tabs.stx +1 -1
- package/src/ui/tooltip/Tooltip.stx +5 -5
- package/src/ui/virtual-table/VirtualTable.stx +1 -1
|
@@ -12,7 +12,7 @@ export const defaultOpen = $props.defaultOpen || []
|
|
|
12
12
|
export const className = $props.className || ''
|
|
13
13
|
|
|
14
14
|
export const accordionClasses = `divide-y divide-line border border-line rounded-panel ${className}`.trim()
|
|
15
|
-
export const headerClasses = `w-full flex items-center justify-between px-4 py-3 text-left font-medium text-fg hover:bg-surface transition-colors duration-150 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2
|
|
15
|
+
export const headerClasses = `w-full flex items-center justify-between px-4 py-3 text-left font-medium text-fg hover:bg-surface-hover transition-colors duration-150 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 focus:ring-offset-panel`.trim()
|
|
16
16
|
export const iconClasses = `w-5 h-5 text-fg-soft transition-transform duration-200`.trim()
|
|
17
17
|
export const contentClasses = `px-4 py-3 text-fg-strong`.trim()
|
|
18
18
|
export const hasPropItems = Array.isArray(items) && items.length > 0
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
export const title = $props.title || ''
|
|
8
8
|
export const className = $props.className || ''
|
|
9
9
|
|
|
10
|
-
const headerClasses = 'w-full flex items-center justify-between px-4 py-3 text-left font-medium text-fg hover:bg-surface transition-colors duration-150 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2
|
|
10
|
+
const headerClasses = 'w-full flex items-center justify-between px-4 py-3 text-left font-medium text-fg hover:bg-surface-hover transition-colors duration-150 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 focus:ring-offset-panel'
|
|
11
11
|
const iconClasses = 'w-5 h-5 text-fg-soft transition-transform duration-200'
|
|
12
12
|
const contentClasses = 'px-4 py-3 text-fg-strong'
|
|
13
13
|
</script>
|
|
@@ -48,9 +48,9 @@ export const className = $props.className || ''
|
|
|
48
48
|
*/
|
|
49
49
|
const variantClasses = {
|
|
50
50
|
primary: 'bg-accent-solid hover:bg-accent-solid-hover text-accent-ink shadow-md hover:shadow-lg',
|
|
51
|
-
secondary: 'bg-surface-sunken hover:bg-
|
|
51
|
+
secondary: 'bg-surface-sunken hover:bg-surface-sunken-hover text-fg',
|
|
52
52
|
outline: 'border-2 border-accent text-accent hover:bg-accent-soft',
|
|
53
|
-
ghost: 'hover:bg-surface-
|
|
53
|
+
ghost: 'hover:bg-surface-hover text-fg-strong',
|
|
54
54
|
danger: 'bg-danger-solid hover:bg-danger-solid-hover text-danger-ink shadow-md hover:shadow-lg',
|
|
55
55
|
}
|
|
56
56
|
|
|
@@ -13,7 +13,7 @@ const baseClasses = 'bg-panel rounded-panel shadow-lg p-4 w-full max-w-sm'
|
|
|
13
13
|
export const calendarClasses = `${baseClasses} ${className}`.trim()
|
|
14
14
|
export const headerClasses = 'flex items-center justify-between mb-4'
|
|
15
15
|
export const monthYearClasses = 'text-lg font-semibold text-fg'
|
|
16
|
-
export const buttonClasses = 'p-2 hover:bg-surface-
|
|
16
|
+
export const buttonClasses = 'p-2 hover:bg-surface-hover rounded-control transition-colors'
|
|
17
17
|
export const weekdaysClasses = 'grid grid-cols-7 gap-1 mb-2'
|
|
18
18
|
export const weekdayClasses = 'text-center text-xs font-medium text-fg-muted py-2'
|
|
19
19
|
export const daysGridClasses = 'grid grid-cols-7 gap-1'
|
|
@@ -122,8 +122,8 @@ function dayClasses(day) {
|
|
|
122
122
|
const disabled = isDisabled(day.date)
|
|
123
123
|
let cls = base
|
|
124
124
|
cls += day.isCurrentMonth ? 'text-fg' : 'text-fg-subtle'
|
|
125
|
-
cls += disabled ? ' opacity-50 cursor-not-allowed' : 'cursor-pointer hover:bg-surface-
|
|
126
|
-
if (isSelected) cls += 'bg-accent-solid text-
|
|
125
|
+
cls += disabled ? ' opacity-50 cursor-not-allowed' : 'cursor-pointer hover:bg-surface-hover'
|
|
126
|
+
if (isSelected) cls += 'bg-accent-solid text-accent-ink hover:bg-accent-solid-hover'
|
|
127
127
|
if (isTodayDate && highlightToday && !isSelected) cls += 'border-2 border-accent'
|
|
128
128
|
return cls
|
|
129
129
|
}
|
|
@@ -179,7 +179,7 @@ defineExpose({ selectedDate, currentMonth, selectDate })
|
|
|
179
179
|
<div class="mt-4 flex justify-center">
|
|
180
180
|
<button
|
|
181
181
|
type="button"
|
|
182
|
-
class="px-4 py-2 text-sm font-medium text-accent hover:bg-
|
|
182
|
+
class="px-4 py-2 text-sm font-medium text-accent hover:bg-surface-hover rounded-control transition-colors"
|
|
183
183
|
@click="goToToday()"
|
|
184
184
|
>
|
|
185
185
|
Today
|
|
@@ -12,7 +12,7 @@ export const name = $props.name || ''
|
|
|
12
12
|
export const className = $props.className || ''
|
|
13
13
|
|
|
14
14
|
const sizeClasses = { sm: 'h-4 w-4', md: 'h-5 w-5', lg: 'h-6 w-6' }
|
|
15
|
-
const baseClasses = 'rounded border-line-strong text-accent focus:ring-accent focus:ring-2 focus:ring-offset-2
|
|
15
|
+
const baseClasses = 'rounded border-line-strong text-accent focus:ring-accent focus:ring-2 focus:ring-offset-2 focus:ring-offset-panel transition-colors'
|
|
16
16
|
const stateClasses = error ? 'border-danger-line text-danger focus:ring-danger-focus' : ''
|
|
17
17
|
const disabledClasses = disabled ? 'opacity-50 cursor-not-allowed' : 'cursor-pointer'
|
|
18
18
|
|
|
@@ -20,7 +20,7 @@ export const chipClasses = `
|
|
|
20
20
|
text-sm font-medium transition-colors
|
|
21
21
|
${active
|
|
22
22
|
? 'border-transparent bg-fg text-surface'
|
|
23
|
-
: 'border-line bg-surface-raised text-fg hover:bg-surface-
|
|
23
|
+
: 'border-line bg-surface-raised text-fg hover:bg-surface-raised-hover'}
|
|
24
24
|
`.replace(/\s+/g, ' ').trim()
|
|
25
25
|
|
|
26
26
|
/*
|
|
@@ -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]" 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" />
|
|
@@ -41,7 +41,7 @@ function getItemClasses(item) {
|
|
|
41
41
|
else if (variant === 'pills') {
|
|
42
42
|
cls += isActiveItem
|
|
43
43
|
? ' bg-blue-600 text-white font-medium rounded-full'
|
|
44
|
-
: 'text-fg-strong hover:bg-surface-
|
|
44
|
+
: 'text-fg-strong hover:bg-surface-hover rounded-full'
|
|
45
45
|
}
|
|
46
46
|
else if (variant === 'underline') {
|
|
47
47
|
cls += isActiveItem
|
|
@@ -51,7 +51,7 @@ function getItemClasses(item) {
|
|
|
51
51
|
else if (variant === 'sidebar') {
|
|
52
52
|
cls += isActiveItem
|
|
53
53
|
? 'bg-blue-50 dark:bg-blue-900/20 text-accent font-medium border-l-4 border-accent'
|
|
54
|
-
: 'text-fg-strong hover:bg-surface-
|
|
54
|
+
: 'text-fg-strong hover:bg-surface-hover border-l-4 border-transparent'
|
|
55
55
|
}
|
|
56
56
|
cls += ' transition-all duration-200 cursor-pointer flex items-center gap-2'
|
|
57
57
|
if (item.disabled) cls += ' opacity-50 cursor-not-allowed pointer-events-none'
|
|
@@ -7,8 +7,8 @@ export const showPrevNext = $bool($props.showPrevNext, true)
|
|
|
7
7
|
export const className = $props.className || ''
|
|
8
8
|
|
|
9
9
|
export const paginationClasses = `flex items-center gap-1 ${className}`.trim()
|
|
10
|
-
export const buttonClasses = `px-3 py-2 text-sm font-medium text-fg-strong bg-panel border border-line-strong rounded-control hover:bg-surface focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2
|
|
11
|
-
export const activeButtonClasses = `px-3 py-2 text-sm font-medium text-white bg-accent-solid border border-accent rounded-control focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2
|
|
10
|
+
export const buttonClasses = `px-3 py-2 text-sm font-medium text-fg-strong bg-panel border border-line-strong rounded-control hover:bg-surface-hover focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 focus:ring-offset-panel disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-panel transition-colors duration-150`.trim()
|
|
11
|
+
export const activeButtonClasses = `px-3 py-2 text-sm font-medium text-white bg-accent-solid border border-accent rounded-control focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 focus:ring-offset-panel`.trim()
|
|
12
12
|
export const ellipsisClasses = `px-3 py-2 text-sm font-medium text-fg-subtle`.trim()
|
|
13
13
|
export const iconClasses = `w-5 h-5`.trim()
|
|
14
14
|
</script>
|
|
@@ -61,7 +61,7 @@ function onDelete(methodId) {
|
|
|
61
61
|
@if(showMakeDefault)
|
|
62
62
|
<button
|
|
63
63
|
type="button"
|
|
64
|
-
class="border border-line-strong rounded-control bg-field px-2 py-1 text-sm text-fg-strong font-semibold shadow-sm hover:bg-
|
|
64
|
+
class="border border-line-strong rounded-control bg-field px-2 py-1 text-sm text-fg-strong font-semibold shadow-sm hover:bg-field-hover focus-visible:outline-2 focus-visible:outline-blue-600 focus-visible:outline-offset-2 disabled:opacity-50 disabled:cursor-not-allowed"
|
|
65
65
|
@click="onMakeDefault('{{ method.id }}')"
|
|
66
66
|
title="Make default"
|
|
67
67
|
>
|
|
@@ -11,7 +11,7 @@ export const name = $props.name || ''
|
|
|
11
11
|
export const className = $props.className || ''
|
|
12
12
|
|
|
13
13
|
const sizeClasses = { sm: 'h-4 w-4', md: 'h-5 w-5', lg: 'h-6 w-6' }
|
|
14
|
-
const baseClasses = 'border-line-strong text-accent focus:ring-accent focus:ring-2 focus:ring-offset-2
|
|
14
|
+
const baseClasses = 'border-line-strong text-accent focus:ring-accent focus:ring-2 focus:ring-offset-2 focus:ring-offset-panel transition-colors'
|
|
15
15
|
const stateClasses = error ? 'border-danger-line text-danger focus:ring-danger-focus' : ''
|
|
16
16
|
const disabledClasses = disabled ? 'opacity-50 cursor-not-allowed' : 'cursor-pointer'
|
|
17
17
|
|
|
@@ -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" />
|
|
@@ -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-indigo-500 focus:ring-offset-surface"
|
|
321
321
|
>
|
|
322
322
|
Confirm order
|
|
323
323
|
</button>
|
|
@@ -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,7 +114,7 @@ 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-blue-500 focus:ring-offset-2
|
|
117
|
+
const base = 'px-4 py-2 font-medium text-sm transition-colors duration-150 focus:outline-none focus:ring-2 focus:ring-blue-500 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
120
|
return `${base} ${border} ${isActiveTab ? 'border-blue-500 text-accent' : 'border-transparent text-fg-muted hover:text-fg hover:border-line-strong'}`
|
|
@@ -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
|
|
|
@@ -14,7 +14,7 @@ export const containerClasses = `border border-line rounded-panel overflow-hidde
|
|
|
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
16
|
export const bodyClasses = `overflow-auto bg-white dark:bg-neutral-900`.trim()
|
|
17
|
-
export const rowClasses = `absolute left-0 right-0 flex border-b border-line ${hoverable ? 'hover:bg-surface' : ''}`.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-kescmd4y.stx";var Ie="./AccordionItem-1q9k2qyc.stx";var De="./Audio-tnjd6anm.stx";var Pe="./Login-nmmkt5yd.stx";var Ee="./Signup-wa31mdyc.stx";var Re="./TwoFactorChallenge-0200pjc0.stx";var qe="./Avatar-7vegrsg6.stx";var Be="./Badge-439n5p0a.stx";var He="./Breadcrumb-7hwnfyyw.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-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-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-cnxhgy92.stx";var Is="./Navigator-7rspzjys.stx";var Ds="./Notification-7wgk0sw6.stx";var Ps="./Pagination-bvk2ss15.stx";var Es="./Checkout-22wh3s22.stx";var Rs="./DefaultPaymentMethod-v11254p4.stx";var qs="./PaymentMethods-tttjpa1m.stx";var Bs="./SubscriptionCheckout-5c1cy7az.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-nr8rbb6g.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-ytr6b5by.stx";var ra="./TabPanel-5htevsq6.stx";var ca="./Tabs-esrn6j8p.stx";var pa="./Teleport-c8nn3757.stx";var ua="./Textarea-xwkdg8se.stx";var ba="./Tooltip-g2j17eg9.stx";var ga="./Transition-yrvqbhjy.stx";var va="./Video-rhy7dskw.stx";var ya="./VirtualList-fa7v5a3h.stx";var $a="./VirtualTable-jhdnq8xe.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.345",
|
|
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.345",
|
|
68
|
+
"bun-plugin-stx": "0.2.345",
|
|
69
69
|
"ts-syntax-highlighter": "^0.2.17"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
@@ -12,7 +12,7 @@ export const defaultOpen = $props.defaultOpen || []
|
|
|
12
12
|
export const className = $props.className || ''
|
|
13
13
|
|
|
14
14
|
export const accordionClasses = `divide-y divide-line border border-line rounded-panel ${className}`.trim()
|
|
15
|
-
export const headerClasses = `w-full flex items-center justify-between px-4 py-3 text-left font-medium text-fg hover:bg-surface transition-colors duration-150 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2
|
|
15
|
+
export const headerClasses = `w-full flex items-center justify-between px-4 py-3 text-left font-medium text-fg hover:bg-surface-hover transition-colors duration-150 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 focus:ring-offset-panel`.trim()
|
|
16
16
|
export const iconClasses = `w-5 h-5 text-fg-soft transition-transform duration-200`.trim()
|
|
17
17
|
export const contentClasses = `px-4 py-3 text-fg-strong`.trim()
|
|
18
18
|
export const hasPropItems = Array.isArray(items) && items.length > 0
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
export const title = $props.title || ''
|
|
8
8
|
export const className = $props.className || ''
|
|
9
9
|
|
|
10
|
-
const headerClasses = 'w-full flex items-center justify-between px-4 py-3 text-left font-medium text-fg hover:bg-surface transition-colors duration-150 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2
|
|
10
|
+
const headerClasses = 'w-full flex items-center justify-between px-4 py-3 text-left font-medium text-fg hover:bg-surface-hover transition-colors duration-150 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 focus:ring-offset-panel'
|
|
11
11
|
const iconClasses = 'w-5 h-5 text-fg-soft transition-transform duration-200'
|
|
12
12
|
const contentClasses = 'px-4 py-3 text-fg-strong'
|
|
13
13
|
</script>
|
package/src/ui/auth/Login.stx
CHANGED
|
@@ -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]" 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" />
|
package/src/ui/auth/Signup.stx
CHANGED
|
@@ -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" />
|
package/src/ui/button/Button.stx
CHANGED
|
@@ -48,9 +48,9 @@ export const className = $props.className || ''
|
|
|
48
48
|
*/
|
|
49
49
|
const variantClasses = {
|
|
50
50
|
primary: 'bg-accent-solid hover:bg-accent-solid-hover text-accent-ink shadow-md hover:shadow-lg',
|
|
51
|
-
secondary: 'bg-surface-sunken hover:bg-
|
|
51
|
+
secondary: 'bg-surface-sunken hover:bg-surface-sunken-hover text-fg',
|
|
52
52
|
outline: 'border-2 border-accent text-accent hover:bg-accent-soft',
|
|
53
|
-
ghost: 'hover:bg-surface-
|
|
53
|
+
ghost: 'hover:bg-surface-hover text-fg-strong',
|
|
54
54
|
danger: 'bg-danger-solid hover:bg-danger-solid-hover text-danger-ink shadow-md hover:shadow-lg',
|
|
55
55
|
}
|
|
56
56
|
|
|
@@ -13,7 +13,7 @@ const baseClasses = 'bg-panel rounded-panel shadow-lg p-4 w-full max-w-sm'
|
|
|
13
13
|
export const calendarClasses = `${baseClasses} ${className}`.trim()
|
|
14
14
|
export const headerClasses = 'flex items-center justify-between mb-4'
|
|
15
15
|
export const monthYearClasses = 'text-lg font-semibold text-fg'
|
|
16
|
-
export const buttonClasses = 'p-2 hover:bg-surface-
|
|
16
|
+
export const buttonClasses = 'p-2 hover:bg-surface-hover rounded-control transition-colors'
|
|
17
17
|
export const weekdaysClasses = 'grid grid-cols-7 gap-1 mb-2'
|
|
18
18
|
export const weekdayClasses = 'text-center text-xs font-medium text-fg-muted py-2'
|
|
19
19
|
export const daysGridClasses = 'grid grid-cols-7 gap-1'
|
|
@@ -122,8 +122,8 @@ function dayClasses(day) {
|
|
|
122
122
|
const disabled = isDisabled(day.date)
|
|
123
123
|
let cls = base
|
|
124
124
|
cls += day.isCurrentMonth ? 'text-fg' : 'text-fg-subtle'
|
|
125
|
-
cls += disabled ? ' opacity-50 cursor-not-allowed' : 'cursor-pointer hover:bg-surface-
|
|
126
|
-
if (isSelected) cls += 'bg-accent-solid text-
|
|
125
|
+
cls += disabled ? ' opacity-50 cursor-not-allowed' : 'cursor-pointer hover:bg-surface-hover'
|
|
126
|
+
if (isSelected) cls += 'bg-accent-solid text-accent-ink hover:bg-accent-solid-hover'
|
|
127
127
|
if (isTodayDate && highlightToday && !isSelected) cls += 'border-2 border-accent'
|
|
128
128
|
return cls
|
|
129
129
|
}
|
|
@@ -179,7 +179,7 @@ defineExpose({ selectedDate, currentMonth, selectDate })
|
|
|
179
179
|
<div class="mt-4 flex justify-center">
|
|
180
180
|
<button
|
|
181
181
|
type="button"
|
|
182
|
-
class="px-4 py-2 text-sm font-medium text-accent hover:bg-
|
|
182
|
+
class="px-4 py-2 text-sm font-medium text-accent hover:bg-surface-hover rounded-control transition-colors"
|
|
183
183
|
@click="goToToday()"
|
|
184
184
|
>
|
|
185
185
|
Today
|
|
@@ -12,7 +12,7 @@ export const name = $props.name || ''
|
|
|
12
12
|
export const className = $props.className || ''
|
|
13
13
|
|
|
14
14
|
const sizeClasses = { sm: 'h-4 w-4', md: 'h-5 w-5', lg: 'h-6 w-6' }
|
|
15
|
-
const baseClasses = 'rounded border-line-strong text-accent focus:ring-accent focus:ring-2 focus:ring-offset-2
|
|
15
|
+
const baseClasses = 'rounded border-line-strong text-accent focus:ring-accent focus:ring-2 focus:ring-offset-2 focus:ring-offset-panel transition-colors'
|
|
16
16
|
const stateClasses = error ? 'border-danger-line text-danger focus:ring-danger-focus' : ''
|
|
17
17
|
const disabledClasses = disabled ? 'opacity-50 cursor-not-allowed' : 'cursor-pointer'
|
|
18
18
|
|
|
@@ -20,7 +20,7 @@ export const chipClasses = `
|
|
|
20
20
|
text-sm font-medium transition-colors
|
|
21
21
|
${active
|
|
22
22
|
? 'border-transparent bg-fg text-surface'
|
|
23
|
-
: 'border-line bg-surface-raised text-fg hover:bg-surface-
|
|
23
|
+
: 'border-line bg-surface-raised text-fg hover:bg-surface-raised-hover'}
|
|
24
24
|
`.replace(/\s+/g, ' ').trim()
|
|
25
25
|
|
|
26
26
|
/*
|
|
@@ -41,7 +41,7 @@ function getItemClasses(item) {
|
|
|
41
41
|
else if (variant === 'pills') {
|
|
42
42
|
cls += isActiveItem
|
|
43
43
|
? ' bg-blue-600 text-white font-medium rounded-full'
|
|
44
|
-
: 'text-fg-strong hover:bg-surface-
|
|
44
|
+
: 'text-fg-strong hover:bg-surface-hover rounded-full'
|
|
45
45
|
}
|
|
46
46
|
else if (variant === 'underline') {
|
|
47
47
|
cls += isActiveItem
|
|
@@ -51,7 +51,7 @@ function getItemClasses(item) {
|
|
|
51
51
|
else if (variant === 'sidebar') {
|
|
52
52
|
cls += isActiveItem
|
|
53
53
|
? 'bg-blue-50 dark:bg-blue-900/20 text-accent font-medium border-l-4 border-accent'
|
|
54
|
-
: 'text-fg-strong hover:bg-surface-
|
|
54
|
+
: 'text-fg-strong hover:bg-surface-hover border-l-4 border-transparent'
|
|
55
55
|
}
|
|
56
56
|
cls += ' transition-all duration-200 cursor-pointer flex items-center gap-2'
|
|
57
57
|
if (item.disabled) cls += ' opacity-50 cursor-not-allowed pointer-events-none'
|
|
@@ -7,8 +7,8 @@ export const showPrevNext = $bool($props.showPrevNext, true)
|
|
|
7
7
|
export const className = $props.className || ''
|
|
8
8
|
|
|
9
9
|
export const paginationClasses = `flex items-center gap-1 ${className}`.trim()
|
|
10
|
-
export const buttonClasses = `px-3 py-2 text-sm font-medium text-fg-strong bg-panel border border-line-strong rounded-control hover:bg-surface focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2
|
|
11
|
-
export const activeButtonClasses = `px-3 py-2 text-sm font-medium text-white bg-accent-solid border border-accent rounded-control focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2
|
|
10
|
+
export const buttonClasses = `px-3 py-2 text-sm font-medium text-fg-strong bg-panel border border-line-strong rounded-control hover:bg-surface-hover focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 focus:ring-offset-panel disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-panel transition-colors duration-150`.trim()
|
|
11
|
+
export const activeButtonClasses = `px-3 py-2 text-sm font-medium text-white bg-accent-solid border border-accent rounded-control focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 focus:ring-offset-panel`.trim()
|
|
12
12
|
export const ellipsisClasses = `px-3 py-2 text-sm font-medium text-fg-subtle`.trim()
|
|
13
13
|
export const iconClasses = `w-5 h-5`.trim()
|
|
14
14
|
</script>
|
|
@@ -61,7 +61,7 @@ function onDelete(methodId) {
|
|
|
61
61
|
@if(showMakeDefault)
|
|
62
62
|
<button
|
|
63
63
|
type="button"
|
|
64
|
-
class="border border-line-strong rounded-control bg-field px-2 py-1 text-sm text-fg-strong font-semibold shadow-sm hover:bg-
|
|
64
|
+
class="border border-line-strong rounded-control bg-field px-2 py-1 text-sm text-fg-strong font-semibold shadow-sm hover:bg-field-hover focus-visible:outline-2 focus-visible:outline-blue-600 focus-visible:outline-offset-2 disabled:opacity-50 disabled:cursor-not-allowed"
|
|
65
65
|
@click="onMakeDefault('{{ method.id }}')"
|
|
66
66
|
title="Make default"
|
|
67
67
|
>
|
|
@@ -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-indigo-500 focus:ring-offset-surface"
|
|
321
321
|
>
|
|
322
322
|
Confirm order
|
|
323
323
|
</button>
|
package/src/ui/radio/Radio.stx
CHANGED
|
@@ -11,7 +11,7 @@ export const name = $props.name || ''
|
|
|
11
11
|
export const className = $props.className || ''
|
|
12
12
|
|
|
13
13
|
const sizeClasses = { sm: 'h-4 w-4', md: 'h-5 w-5', lg: 'h-6 w-6' }
|
|
14
|
-
const baseClasses = 'border-line-strong text-accent focus:ring-accent focus:ring-2 focus:ring-offset-2
|
|
14
|
+
const baseClasses = 'border-line-strong text-accent focus:ring-accent focus:ring-2 focus:ring-offset-2 focus:ring-offset-panel transition-colors'
|
|
15
15
|
const stateClasses = error ? 'border-danger-line text-danger focus:ring-danger-focus' : ''
|
|
16
16
|
const disabledClasses = disabled ? 'opacity-50 cursor-not-allowed' : 'cursor-pointer'
|
|
17
17
|
|
|
@@ -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
|
|
package/src/ui/tabs/Tabs.stx
CHANGED
|
@@ -114,7 +114,7 @@ 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-blue-500 focus:ring-offset-2
|
|
117
|
+
const base = 'px-4 py-2 font-medium text-sm transition-colors duration-150 focus:outline-none focus:ring-2 focus:ring-blue-500 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
120
|
return `${base} ${border} ${isActiveTab ? 'border-blue-500 text-accent' : 'border-transparent text-fg-muted hover:text-fg hover:border-line-strong'}`
|
|
@@ -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
|
|
|
@@ -14,7 +14,7 @@ export const containerClasses = `border border-line rounded-panel overflow-hidde
|
|
|
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
16
|
export const bodyClasses = `overflow-auto bg-white dark:bg-neutral-900`.trim()
|
|
17
|
-
export const rowClasses = `absolute left-0 right-0 flex border-b border-line ${hoverable ? 'hover:bg-surface' : ''}`.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
|
|