@stacksjs/components 0.2.368 → 0.2.369

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.
Files changed (57) hide show
  1. package/dist/{Accordion-py9ntmst.stx → Accordion-ehpymjam.stx} +1 -1
  2. package/dist/{AccordionItem-asmsqxz9.stx → AccordionItem-fc4ekdqf.stx} +1 -1
  3. package/dist/{Button-tcjt3m8s.stx → Button-k2q6811a.stx} +1 -1
  4. package/dist/{ComboboxInput-4jcpvw7e.stx → ComboboxInput-a5g0vn3e.stx} +1 -1
  5. package/dist/{ComboboxOptions-nbndbrxz.stx → ComboboxOptions-zhr9b6rx.stx} +1 -1
  6. package/dist/{CommandPalette-6rjcgske.stx → CommandPalette-y6t67rjj.stx} +1 -1
  7. package/dist/{DefaultPaymentMethod-r0hcjajr.stx → DefaultPaymentMethod-ss3x61tr.stx} +1 -1
  8. package/dist/{Drawer-jcdj3qk2.stx → Drawer-hc0jjpsw.stx} +1 -1
  9. package/dist/{DropdownButton-tx9hb2de.stx → DropdownButton-6by2ybde.stx} +1 -1
  10. package/dist/{DropdownItems-v12h6zpf.stx → DropdownItems-bkz7jkyz.stx} +1 -1
  11. package/dist/{ListboxButton-t43pp03e.stx → ListboxButton-3yc7tm8w.stx} +1 -1
  12. package/dist/{ListboxOptions-qxrkrb8z.stx → ListboxOptions-2928864k.stx} +1 -1
  13. package/dist/{Login-j3pc04ka.stx → Login-3dsk93vm.stx} +4 -4
  14. package/dist/{Notification-7wgk0sw6.stx → Notification-2ws4ym4s.stx} +2 -2
  15. package/dist/{Pagination-z9jxnaeq.stx → Pagination-330ybzf1.stx} +2 -2
  16. package/dist/{PopoverButton-70th24xc.stx → PopoverButton-htfypg00.stx} +1 -1
  17. package/dist/{PopoverPanel-7771yf35.stx → PopoverPanel-d84gk1w1.stx} +1 -1
  18. package/dist/{RadioGroup-hzz4xep9.stx → RadioGroup-neej7522.stx} +1 -1
  19. package/dist/{RadioGroupOption-7fcgfsah.stx → RadioGroupOption-c6xd0at9.stx} +1 -1
  20. package/dist/{Select-sbr8dqzn.stx → Select-danh680d.stx} +1 -1
  21. package/dist/{Signup-77y9ea7t.stx → Signup-dh96kskd.stx} +2 -2
  22. package/dist/{StepperStep-34kwv0t0.stx → StepperStep-b78wmshd.stx} +1 -1
  23. package/dist/{SubscriptionCheckout-pggq5a4k.stx → SubscriptionCheckout-75x9mfv2.stx} +1 -1
  24. package/dist/{Switch-fxbw7s16.stx → Switch-27hp6pq5.stx} +1 -1
  25. package/dist/{TabBarItem-wv2r8496.stx → TabBarItem-kddfnhk3.stx} +1 -1
  26. package/dist/{Tabs-51vr631j.stx → Tabs-f1n3ggkw.stx} +1 -1
  27. package/dist/{TwoFactorChallenge-28px8pyk.stx → TwoFactorChallenge-ete7yk9y.stx} +1 -1
  28. package/dist/index.js +2 -2
  29. package/package.json +3 -3
  30. package/src/components/Hero.stx +1 -1
  31. package/src/ui/accordion/Accordion.stx +1 -1
  32. package/src/ui/accordion/AccordionItem.stx +1 -1
  33. package/src/ui/auth/Login.stx +4 -4
  34. package/src/ui/auth/Signup.stx +2 -2
  35. package/src/ui/auth/TwoFactorChallenge.stx +1 -1
  36. package/src/ui/button/Button.stx +1 -1
  37. package/src/ui/combobox/ComboboxInput.stx +1 -1
  38. package/src/ui/combobox/ComboboxOptions.stx +1 -1
  39. package/src/ui/command-palette/CommandPalette.stx +1 -1
  40. package/src/ui/drawer/Drawer.stx +1 -1
  41. package/src/ui/dropdown/DropdownButton.stx +1 -1
  42. package/src/ui/dropdown/DropdownItems.stx +1 -1
  43. package/src/ui/listbox/ListboxButton.stx +1 -1
  44. package/src/ui/listbox/ListboxOptions.stx +1 -1
  45. package/src/ui/mobile/TabBarItem.stx +1 -1
  46. package/src/ui/notification/Notification.stx +2 -2
  47. package/src/ui/pagination/Pagination.stx +2 -2
  48. package/src/ui/payment/DefaultPaymentMethod.stx +1 -1
  49. package/src/ui/payment/SubscriptionCheckout.stx +1 -1
  50. package/src/ui/popover/PopoverButton.stx +1 -1
  51. package/src/ui/popover/PopoverPanel.stx +1 -1
  52. package/src/ui/radio-group/RadioGroup.stx +1 -1
  53. package/src/ui/radio-group/RadioGroupOption.stx +1 -1
  54. package/src/ui/select/Select.stx +1 -1
  55. package/src/ui/stepper/StepperStep.stx +1 -1
  56. package/src/ui/switch/Switch.stx +1 -1
  57. package/src/ui/tabs/Tabs.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-hover transition-colors duration-150 focus:outline-none focus:ring-2 focus:ring-accent-solid focus:ring-offset-2 focus:ring-offset-panel`.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-hover transition-colors duration-150 focus:outline-none focus:ring-2 focus:ring-accent 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-hover transition-colors duration-150 focus:outline-none focus:ring-2 focus:ring-accent-solid focus:ring-offset-2 focus:ring-offset-panel'
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-accent 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>
@@ -87,7 +87,7 @@ const iconSizeClasses = { xs: 'h-3 w-3', sm: 'h-4 w-4', md: 'h-5 w-5', lg: 'h-6
87
87
  * the token's light value is that same blue-500 and its dark value is a step
88
88
  * darker, which is a ring that was missing rather than one that changed.
89
89
  */
90
- const baseClasses = 'inline-flex items-center justify-center font-semibold rounded-control transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-accent-solid disabled:opacity-50 disabled:cursor-not-allowed disabled:pointer-events-none'
90
+ const baseClasses = 'inline-flex items-center justify-center font-semibold rounded-control transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-panel focus:ring-accent disabled:opacity-50 disabled:cursor-not-allowed disabled:pointer-events-none'
91
91
  const widthClasses = fullWidth ? 'w-full' : ''
92
92
  export const isDisabled = disabled || loading
93
93
 
@@ -4,7 +4,7 @@ export const className = $props.className || ''
4
4
  export const placeholder = $props.placeholder || ''
5
5
  export const disabled = $bool($props.disabled)
6
6
 
7
- const baseClasses = 'w-full rounded-panel border-none bg-panel py-2 pl-3 pr-10 text-sm leading-5 text-fg focus:ring-0 focus:outline-none focus-visible:border-accent-solid focus-visible:ring-2 focus-visible:ring-accent-solid focus-visible:ring-offset-panel focus-visible:ring-offset-2'
7
+ const baseClasses = 'w-full rounded-panel border-none bg-panel py-2 pl-3 pr-10 text-sm leading-5 text-fg focus:ring-0 focus:outline-none focus-visible:border-accent-solid focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-panel focus-visible:ring-offset-2'
8
8
  const disabledClasses = disabled ? 'opacity-50 cursor-not-allowed' : ''
9
9
  export const inputClasses = `${baseClasses} ${disabledClasses} ${className}`.trim()
10
10
  </script>
@@ -2,7 +2,7 @@
2
2
  export const className = $props.className || ''
3
3
  export const as = $props.as || 'ul'
4
4
 
5
- const baseClasses = 'absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-panel bg-panel py-1 text-base shadow-lg ring-1 ring-black/5 focus:outline-none'
5
+ const baseClasses = 'absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-panel bg-panel py-1 text-base shadow-lg ring-1 ring-line focus:outline-none'
6
6
  export const optionsClasses = `${baseClasses} ${className}`.trim()
7
7
  </script>
8
8
 
@@ -60,7 +60,7 @@ defineExpose({ isOpen, query, show, close })
60
60
  >
61
61
  <div class="fixed inset-0 bg-neutral-500/25 dark:bg-neutral-500/50 transition-opacity" @click="close()"></div>
62
62
 
63
- <div class="mx-auto max-w-xl transform divide-y divide-line overflow-hidden rounded-xl bg-panel shadow-2xl ring-1 ring-black/5 transition-all relative">
63
+ <div class="mx-auto max-w-xl transform divide-y divide-line overflow-hidden rounded-xl bg-panel shadow-2xl ring-1 ring-line transition-all relative">
64
64
  <div class="relative">
65
65
  <svg class="pointer-events-none absolute top-3.5 left-4 h-5 w-5 text-neutral-400" viewBox="0 0 20 20" fill="currentColor">
66
66
  <path fill-rule="evenodd" d="M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z" clip-rule="evenodd" />
@@ -11,7 +11,7 @@ const brandIcons = {
11
11
  default: '💳',
12
12
  }
13
13
 
14
- export const containerClasses = `mt-16 w-2/3 bg-panel px-8 py-6 shadow ring-1 ring-black/5 dark:ring-neutral-700 sm:rounded-panel ${className}`.trim()
14
+ export const containerClasses = `mt-16 w-2/3 bg-panel px-8 py-6 shadow ring-1 ring-line sm:rounded-panel ${className}`.trim()
15
15
  </script>
16
16
 
17
17
  <div class="{{ containerClasses }}">
@@ -301,7 +301,7 @@ defineExpose({
301
301
  <div class="{{ closeButtonClasses }}">
302
302
  <button
303
303
  type="button"
304
- class="relative rounded-control text-neutral-300 dark:text-neutral-400 hover:text-white dark:hover:text-white focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent"
304
+ class="relative rounded-control text-neutral-300 hover:text-white focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent"
305
305
  @click="close()"
306
306
  >
307
307
  <span class="absolute -inset-2.5"></span>
@@ -3,7 +3,7 @@ export const className = $props.className || ''
3
3
  export const as = $props.as || 'button'
4
4
  export const disabled = $bool($props.disabled)
5
5
 
6
- const baseClasses = 'inline-flex justify-center items-center rounded-control focus:outline-none focus-visible:ring-2 focus-visible:ring-accent-solid focus-visible:ring-offset-2 focus-visible:ring-offset-panel'
6
+ const baseClasses = 'inline-flex justify-center items-center rounded-control focus:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-panel'
7
7
  export const buttonClasses = `${baseClasses} ${className}`.trim()
8
8
  </script>
9
9
 
@@ -2,7 +2,7 @@
2
2
  export const className = $props.className || ''
3
3
  export const as = $props.as || 'div'
4
4
 
5
- const baseClasses = 'absolute z-10 mt-2 origin-top-right divide-y divide-line rounded-panel bg-panel shadow-lg ring-1 ring-black/5 focus:outline-none dark:ring-neutral-600'
5
+ const baseClasses = 'absolute z-10 mt-2 origin-top-right divide-y divide-line rounded-panel bg-panel shadow-lg ring-1 ring-line focus:outline-none'
6
6
  export const itemsClasses = `${baseClasses} ${className}`.trim()
7
7
  </script>
8
8
 
@@ -3,7 +3,7 @@ export const className = $props.className || ''
3
3
  export const as = $props.as || 'button'
4
4
  export const disabled = $bool($props.disabled)
5
5
 
6
- const baseClasses = 'relative w-full cursor-pointer rounded-panel bg-panel py-2 pl-3 pr-10 text-left shadow-md focus:outline-none focus-visible:border-accent-solid focus-visible:ring-2 focus-visible:ring-accent-solid focus-visible:ring-offset-2 focus-visible:ring-offset-panel'
6
+ const baseClasses = 'relative w-full cursor-pointer rounded-panel bg-panel py-2 pl-3 pr-10 text-left shadow-md focus:outline-none focus-visible:border-accent-solid focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-panel'
7
7
  const disabledClasses = disabled ? 'opacity-50 cursor-not-allowed' : ''
8
8
  export const buttonClasses = `${baseClasses} ${disabledClasses} ${className}`.trim()
9
9
  </script>
@@ -2,7 +2,7 @@
2
2
  export const className = $props.className || ''
3
3
  export const as = $props.as || 'ul'
4
4
 
5
- const baseClasses = 'absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-panel bg-panel py-1 text-base shadow-lg ring-1 ring-black/5 focus:outline-none'
5
+ const baseClasses = 'absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-panel bg-panel py-1 text-base shadow-lg ring-1 ring-line focus:outline-none'
6
6
  export const optionsClasses = `${baseClasses} ${className}`.trim()
7
7
  </script>
8
8
 
@@ -106,7 +106,7 @@ function onSubmit(event) {
106
106
 
107
107
  @if(showForgotPassword)
108
108
  <div class="text-sm leading-6">
109
- <StxLink to="{{ forgotPasswordHref }}" class="text-accent font-semibold hover:text-accent">
109
+ <StxLink to="{{ forgotPasswordHref }}" class="text-link font-semibold hover:text-link-hover">
110
110
  Forgot password?
111
111
  </StxLink>
112
112
  </div>
@@ -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-field-hover focus-visible:ring-transparent"
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-2 focus-visible:ring-accent"
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-field-hover focus-visible:ring-transparent"
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-2 focus-visible:ring-accent"
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" />
@@ -169,7 +169,7 @@ function onSubmit(event) {
169
169
  @if(showSignup)
170
170
  <p class="mt-10 text-center text-sm text-fg-soft">
171
171
  Not a member?
172
- <StxLink to="{{ signupHref }}" class="text-accent font-semibold leading-6 hover:text-accent">
172
+ <StxLink to="{{ signupHref }}" class="text-link font-semibold leading-6 hover:text-link-hover">
173
173
  {{ signupText }}
174
174
  </StxLink>
175
175
  </p>
@@ -37,7 +37,7 @@ const positions = {
37
37
  'bottom-center': 'bottom-0 left-1/2 -translate-x-1/2',
38
38
  }
39
39
 
40
- const baseClasses = 'fixed z-50 m-4 max-w-md w-full pointer-events-auto rounded-panel p-4 shadow-lg ring-1 ring-black/5 transition-all'
40
+ const baseClasses = 'fixed z-50 m-4 max-w-md w-full pointer-events-auto rounded-panel p-4 shadow-lg ring-1 ring-line transition-all'
41
41
  const extraClassName = {{ JSON.stringify(className) }}
42
42
 
43
43
  const notificationClasses = derived(() => {
@@ -106,7 +106,7 @@ defineExpose({
106
106
  <button
107
107
  type="button"
108
108
  @click="close()"
109
- class="ml-4 inline-flex rounded-panel focus:outline-none focus:ring-2 focus:ring-offset-2"
109
+ class="ml-4 inline-flex rounded-panel focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-panel"
110
110
  >
111
111
  <span class="sr-only">Close</span>
112
112
  <svg class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
@@ -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-hover focus:outline-none focus:ring-2 focus:ring-accent-solid 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-accent-ink bg-accent-solid border border-accent rounded-control focus:outline-none focus:ring-2 focus:ring-accent-solid focus:ring-offset-2 focus:ring-offset-panel`.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-hover focus:outline-none focus:ring-2 focus:ring-accent 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-accent-ink bg-accent-solid border border-accent rounded-control focus:outline-none focus:ring-2 focus:ring-accent focus:ring-offset-2 focus:ring-offset-panel`.trim()
12
12
  export const ellipsisClasses = `px-3 py-2 text-sm font-medium text-fg-soft`.trim()
13
13
  export const iconClasses = `w-5 h-5`.trim()
14
14
  </script>
@@ -3,7 +3,7 @@ export const className = $props.className || ''
3
3
  export const as = $props.as || 'button'
4
4
  export const disabled = $bool($props.disabled)
5
5
 
6
- const baseClasses = 'inline-flex items-center gap-2 focus:outline-none focus-visible:ring-2 focus-visible:ring-accent-solid focus-visible:ring-offset-2 focus-visible:ring-offset-panel'
6
+ const baseClasses = 'inline-flex items-center gap-2 focus:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-panel'
7
7
  export const buttonClasses = `${baseClasses} ${className}`.trim()
8
8
  </script>
9
9
 
@@ -10,7 +10,7 @@ const positionClasses = {
10
10
  right: 'left-full ml-2',
11
11
  }
12
12
 
13
- const baseClasses = 'absolute z-10 rounded-panel bg-panel p-4 shadow-lg ring-1 ring-black/5 focus:outline-none'
13
+ const baseClasses = 'absolute z-10 rounded-panel bg-panel p-4 shadow-lg ring-1 ring-line focus:outline-none'
14
14
  export const panelClasses = `${baseClasses} ${positionClasses[position] || positionClasses.bottom} ${className}`.trim()
15
15
  </script>
16
16
 
@@ -23,7 +23,7 @@ export const as = $props.as || 'div'
23
23
  export const options = Array.isArray($props.options) ? $props.options : []
24
24
  export const hasPropOptions = options.length > 0
25
25
 
26
- const optionBaseClasses = 'relative flex cursor-pointer rounded-panel px-5 py-4 shadow-md focus:outline-none transition-all bg-panel text-fg focus-visible:ring-2 focus-visible:ring-accent-solid focus-visible:ring-offset-2 focus-visible:ring-offset-panel'
26
+ const optionBaseClasses = 'relative flex cursor-pointer rounded-panel px-5 py-4 shadow-md focus:outline-none transition-all bg-panel text-fg focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-panel'
27
27
  export const optionClasses = optionBaseClasses
28
28
  export const optionDisabledClasses = `${optionBaseClasses} opacity-50 cursor-not-allowed`
29
29
 
@@ -4,7 +4,7 @@ export const disabled = $bool($props.disabled)
4
4
  export const className = $props.className || ''
5
5
  export const as = $props.as || 'div'
6
6
 
7
- const baseClasses = 'relative flex cursor-pointer rounded-panel px-5 py-4 shadow-md focus:outline-none transition-all bg-panel text-fg focus-visible:ring-2 focus-visible:ring-accent-solid focus-visible:ring-offset-2 focus-visible:ring-offset-panel'
7
+ const baseClasses = 'relative flex cursor-pointer rounded-panel px-5 py-4 shadow-md focus:outline-none transition-all bg-panel text-fg focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-panel'
8
8
  const disabledClasses = disabled ? 'opacity-50 cursor-not-allowed' : ''
9
9
  export const optionClasses = `${baseClasses} ${disabledClasses} ${className}`.trim()
10
10
  export const valueJson = JSON.stringify(value === undefined ? null : value)
@@ -27,7 +27,7 @@ const stateClasses = error
27
27
  : 'ring-line-strong text-fg placeholder-fg-soft focus:ring-accent'
28
28
  const disabledClasses = disabled
29
29
  ? 'opacity-50 cursor-not-allowed bg-surface'
30
- : 'bg-field cursor-pointer hover:ring-neutral-400 dark:hover:ring-neutral-500'
30
+ : 'bg-field cursor-pointer hover:ring-line-hover'
31
31
 
32
32
  export const selectClasses = `${baseClasses} ${sizeClasses[size] || sizeClasses.md} ${stateClasses} ${disabledClasses} ${className}`.trim()
33
33
  export const labelClasses = `block text-sm font-medium leading-6 ${error ? 'text-danger' : 'text-fg'}`.trim()
@@ -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-field-hover focus-visible:ring-transparent"
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-2 focus-visible:ring-accent"
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-field-hover focus-visible:ring-transparent"
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-2 focus-visible:ring-accent"
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" />
@@ -32,7 +32,7 @@ function onClick() {
32
32
  <button
33
33
  type="button"
34
34
  @click="onClick()"
35
- class="flex items-center gap-3 focus:outline-none focus-visible:ring-2 focus-visible:ring-accent-solid rounded-panel p-2"
35
+ class="flex items-center gap-3 focus:outline-none focus-visible:ring-2 focus-visible:ring-accent rounded-panel p-2"
36
36
  >
37
37
  <div class="{{ isComplete ? 'bg-accent-solid text-accent-ink' : isCurrent ? 'bg-accent-solid text-accent-ink ring-4 ring-accent-soft' : 'bg-surface-sunken text-fg-strong' }} w-10 h-10 rounded-full flex items-center justify-center font-semibold transition-all">
38
38
  @if(isComplete)
@@ -222,7 +222,7 @@ onMount(() => initializeStripe())
222
222
  <div class="min-w-0 flex-1">
223
223
  <h4 class="text-sm">
224
224
  @if(product.href)
225
- <StxLink to="{{ product.href }}" class="text-fg-strong font-medium hover:text-neutral-800 dark:hover:text-neutral-200">
225
+ <StxLink to="{{ product.href }}" class="text-fg-strong font-medium hover:text-fg">
226
226
  {{ product.name }}
227
227
  </StxLink>
228
228
  @else
@@ -16,7 +16,7 @@ const sizeConfig = {
16
16
  // a SyntaxError that killed the whole component rather than mis-sizing it.
17
17
  export const config = sizeConfig[size] || sizeConfig.md
18
18
 
19
- export const trackBaseClasses = 'relative inline-flex shrink-0 cursor-pointer border-2 border-transparent rounded-full transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-offset-2 focus-visible:ring-offset-neutral-300 dark:focus-visible:ring-offset-neutral-700'
19
+ export const trackBaseClasses = 'relative inline-flex shrink-0 cursor-pointer border-2 border-transparent rounded-full transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-panel'
20
20
  export const trackDisabledClasses = disabled ? 'opacity-50 cursor-not-allowed pointer-events-none' : ''
21
21
  export const thumbBaseClasses = 'pointer-events-none inline-block transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out'
22
22
  </script>
@@ -69,7 +69,7 @@ export const itemClasses = `
69
69
  survive the label being two words wide, and anchoring it to the glyph
70
70
  keeps every tab's badge in the same place.
71
71
  --}}
72
- <span class="absolute -right-2 -top-1 min-w-[16px] rounded-full bg-danger px-1 text-[10px] font-semibold leading-4 text-danger-ink">
72
+ <span class="absolute -right-2 -top-1 min-w-[16px] rounded-full bg-danger-solid px-1 text-[10px] font-semibold leading-4 text-danger-ink">
73
73
  {{ badge }}
74
74
  </span>
75
75
  @endif
@@ -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-accent-solid focus:ring-offset-2 focus:ring-offset-panel'
117
+ const base = 'px-4 py-2 font-medium text-sm transition-colors duration-150 focus:outline-none focus:ring-2 focus:ring-accent 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-accent text-accent' : 'border-transparent text-fg-muted hover:text-fg hover:border-line-strong'}`
@@ -80,7 +80,7 @@ function onRecoveryCode(event) {
80
80
  <div class="py-4">
81
81
  <button
82
82
  type="submit"
83
- class="relative h-8 w-full flex items-center justify-center rounded-full bg-accent-solid px-4 text-accent-ink font-semibold hover:bg-accent-solid-hover focus:outline-none focus:ring-2 focus:ring-accent focus:ring-offset-2"
83
+ class="relative h-8 w-full flex items-center justify-center rounded-full bg-accent-solid px-4 text-accent-ink font-semibold hover:bg-accent-solid-hover focus:outline-none focus:ring-2 focus:ring-accent focus:ring-offset-2 focus:ring-offset-panel"
84
84
  >
85
85
  Verify
86
86
  </button>
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // @bun
2
2
  var we=import.meta.require;var ye={__stx:!0,src:"./components/CodeBlock.stx"};var Ce={__stx:!0,src:"./components/Footer.stx"};var $e={__stx:!0,src:"./components/Hero.stx"};var ke={__stx:!0,src:"./components/Installation.stx"};function Nn(e){let{code:t,onSuccess:s,onError:o,timeout:a=2000}=e,n=!1,i=null;return{copied:n,copy:async()=>{try{if(!navigator.clipboard)throw Error("Clipboard API not available");await navigator.clipboard.writeText(t),n=!0,s?.(),i=setTimeout(()=>{n=!1,i=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(n=!1,i)clearTimeout(i),i=null}}}async function En(e){try{return await navigator.clipboard.writeText(e),!0}catch(t){return console.error("Failed to copy to clipboard:",t),!1}}function Se(){if(typeof window>"u")return"light";return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Q(e){return e==="system"?Se():e}function zn(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",n=(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)},i=(c)=>{o=c,n(c)},r=()=>{let d=Q(o)==="dark"?"light":"dark";i(d)};if(n(o),typeof window<"u"&&o==="system")window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(c)=>{if(o==="system")n("system")});return{isDark:a,theme:o,toggle:r,setTheme:i}}function Te(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 Ie(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 Pn(e){let{title:t,description:s,author:o,keywords:a,ogImage:n,ogImageWidth:i,ogImageHeight:r,twitterCard:c="summary_large_image",twitterSite:d,twitterCreator:h,canonical:p}=e;if(t)Te(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(n)S("og:image",n,!0),S("twitter:image",n);if(i)S("og:image:width",i,!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)Ie("canonical",p);if(S("og:type","website",!0),typeof window<"u")S("og:url",window.location.href,!0)}function Mn(e){let t=[],{title:s,description:o,author:a,keywords:n,ogImage:i,ogImageWidth:r,ogImageHeight:c,twitterCard:d="summary_large_image",twitterSite:h,twitterCreator:p,canonical:b}=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(n&&n.length>0)t.push(`<meta name="keywords" content="${T(n.join(", "))}" />`);if(i)t.push(`<meta property="og:image" content="${T(i)}" />`),t.push(`<meta name="twitter:image" content="${T(i)}" />`);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(b)t.push(`<link rel="canonical" href="${T(b)}" />`);return t.push('<meta property="og:type" content="website" />'),t.join(`
3
- `)}function T(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function jn(e,t,s={}){let{enabled:o=!0,ignore:a=[]}=s,n=(i)=>{if(!o||!e)return;let r=i.target;if(!e.contains(r)){if(!a.some((d)=>{let h=document.querySelectorAll(d);return Array.from(h).some((p)=>p.contains(r))}))t(i)}};if(typeof document<"u")document.addEventListener("mousedown",n),document.addEventListener("touchstart",n);return()=>{if(typeof document<"u")document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}}function Bn(e,t={}){let{enabled:s=!0,initialFocus:o=null,returnFocus:a=!0,fallbackFocus:n=null}=t,i=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 y=w[0],v=w[w.length-1];if(f.shiftKey){if(document.activeElement===y||document.activeElement===e)f.preventDefault(),v.focus()}else if(document.activeElement===v)f.preventDefault(),y.focus()}function h(f){if(f.key==="Escape"&&s&&r)b()}function p(){if(!s||!e||r)return;if(i=document.activeElement,o)o.focus();else{let f=c();if(f.length>0)f[0].focus();else if(n)n.focus();else e.focus()}document.addEventListener("keydown",d),document.addEventListener("keydown",h),r=!0}function b(){if(!r)return;if(document.removeEventListener("keydown",d),document.removeEventListener("keydown",h),a&&i)i.focus();r=!1}return{activate:p,deactivate:b}}function Hn(e,t={}){let{enabled:s=!0,preventDefault:o=!0,stopPropagation:a=!1,target:n=typeof document<"u"?document:null}=t,i=Array.isArray(e)?e:[e],r=(c)=>{if(!s)return;i.forEach((d)=>{if(!(Array.isArray(d.key)?d.key:[d.key]).some((b)=>b.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(n)n.addEventListener("keydown",r);return()=>{if(n)n.removeEventListener("keydown",r)}}var Vn={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 _n(e,t,s={}){let{serializer:o=JSON.stringify,deserializer:a=JSON.parse,onError:n=console.error}=s,i=t;try{if(typeof window<"u"){let p=window.localStorage.getItem(e);if(p!==null)i=a(p)}}catch(p){n(p)}let r=i,c=new Set;function d(p){try{let b=typeof p==="function"?p(r):p;if(r=b,typeof window<"u")window.localStorage.setItem(e,o(b));c.forEach((f)=>f(b))}catch(b){n(b)}}function h(){try{if(r=t,typeof window<"u")window.localStorage.removeItem(e);c.forEach((p)=>p(t))}catch(p){n(p)}}if(typeof window<"u"){let p=(b)=>{if(b.key===e&&b.newValue!==null)try{let f=a(b.newValue);r=f,c.forEach((w)=>w(f))}catch(f){n(f)}else if(b.key===e&&b.newValue===null)r=t,c.forEach((f)=>f(t))};window.addEventListener("storage",p)}return{value:r,setValue:d,removeValue:h}}function R(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 i=(r)=>{o=r.matches};if(a.addEventListener)a.addEventListener("change",i);else a.addListener(i)}function n(){if(a)o=a.matches}return{matches:o,updateMatches:n}}var j={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 Gn(e){return R(j[e])}function Un(){return R(j.mobile)}function Yn(){return R(j.desktop)}function Jn(){return R(j.dark)}function Xn(){return R(j.reducedMotion)}var re=["gray","neutral","slate","zinc","red","green","yellow","blue","indigo"],Qn="--stx-color";function Ae(e,t){return t===void 0?`var(${e})`:`var(${e}, ${t})`}function ei(e={}){let t={};for(let s of re){let o=e[s];if(!o||typeof o==="string")continue;let a={};for(let[n,i]of Object.entries(o))a[n]=Ae(`--stx-color-${s}-${n}`,i);t[s]=a}return t}function ti(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 Ne="./Accordion-py9ntmst.stx";var Le="./AccordionItem-asmsqxz9.stx";var Oe="./Audio-byv8kkvt.stx";var Me="./Login-j3pc04ka.stx";var je="./Signup-77y9ea7t.stx";var Be="./TwoFactorChallenge-28px8pyk.stx";var He="./Avatar-axrzqsdk.stx";var Fe="./Badge-4jxqhkv9.stx";var Ke="./Breadcrumb-pach6f1f.stx";import q from"process";var Ge="https://stacksjs.com/components";class I extends Error{component;context;constructor(e,t,s={}){let o=I.formatMessage(e,t,s);super(o);if(this.name="ComponentError",this.component=e,this.context={component:e,...s},Error.captureStackTrace)Error.captureStackTrace(this,I)}static formatMessage(e,t,s){let o=`[${e}] ${t}`;if(s.prop)o+=`
3
+ `)}function T(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function jn(e,t,s={}){let{enabled:o=!0,ignore:a=[]}=s,n=(i)=>{if(!o||!e)return;let r=i.target;if(!e.contains(r)){if(!a.some((d)=>{let h=document.querySelectorAll(d);return Array.from(h).some((p)=>p.contains(r))}))t(i)}};if(typeof document<"u")document.addEventListener("mousedown",n),document.addEventListener("touchstart",n);return()=>{if(typeof document<"u")document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}}function Bn(e,t={}){let{enabled:s=!0,initialFocus:o=null,returnFocus:a=!0,fallbackFocus:n=null}=t,i=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 y=w[0],v=w[w.length-1];if(f.shiftKey){if(document.activeElement===y||document.activeElement===e)f.preventDefault(),v.focus()}else if(document.activeElement===v)f.preventDefault(),y.focus()}function h(f){if(f.key==="Escape"&&s&&r)b()}function p(){if(!s||!e||r)return;if(i=document.activeElement,o)o.focus();else{let f=c();if(f.length>0)f[0].focus();else if(n)n.focus();else e.focus()}document.addEventListener("keydown",d),document.addEventListener("keydown",h),r=!0}function b(){if(!r)return;if(document.removeEventListener("keydown",d),document.removeEventListener("keydown",h),a&&i)i.focus();r=!1}return{activate:p,deactivate:b}}function Hn(e,t={}){let{enabled:s=!0,preventDefault:o=!0,stopPropagation:a=!1,target:n=typeof document<"u"?document:null}=t,i=Array.isArray(e)?e:[e],r=(c)=>{if(!s)return;i.forEach((d)=>{if(!(Array.isArray(d.key)?d.key:[d.key]).some((b)=>b.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(n)n.addEventListener("keydown",r);return()=>{if(n)n.removeEventListener("keydown",r)}}var Vn={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 _n(e,t,s={}){let{serializer:o=JSON.stringify,deserializer:a=JSON.parse,onError:n=console.error}=s,i=t;try{if(typeof window<"u"){let p=window.localStorage.getItem(e);if(p!==null)i=a(p)}}catch(p){n(p)}let r=i,c=new Set;function d(p){try{let b=typeof p==="function"?p(r):p;if(r=b,typeof window<"u")window.localStorage.setItem(e,o(b));c.forEach((f)=>f(b))}catch(b){n(b)}}function h(){try{if(r=t,typeof window<"u")window.localStorage.removeItem(e);c.forEach((p)=>p(t))}catch(p){n(p)}}if(typeof window<"u"){let p=(b)=>{if(b.key===e&&b.newValue!==null)try{let f=a(b.newValue);r=f,c.forEach((w)=>w(f))}catch(f){n(f)}else if(b.key===e&&b.newValue===null)r=t,c.forEach((f)=>f(t))};window.addEventListener("storage",p)}return{value:r,setValue:d,removeValue:h}}function R(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 i=(r)=>{o=r.matches};if(a.addEventListener)a.addEventListener("change",i);else a.addListener(i)}function n(){if(a)o=a.matches}return{matches:o,updateMatches:n}}var j={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 Gn(e){return R(j[e])}function Un(){return R(j.mobile)}function Yn(){return R(j.desktop)}function Jn(){return R(j.dark)}function Xn(){return R(j.reducedMotion)}var re=["gray","neutral","slate","zinc","red","green","yellow","blue","indigo"],Qn="--stx-color";function Ae(e,t){return t===void 0?`var(${e})`:`var(${e}, ${t})`}function ei(e={}){let t={};for(let s of re){let o=e[s];if(!o||typeof o==="string")continue;let a={};for(let[n,i]of Object.entries(o))a[n]=Ae(`--stx-color-${s}-${n}`,i);t[s]=a}return t}function ti(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 Ne="./Accordion-ehpymjam.stx";var Le="./AccordionItem-fc4ekdqf.stx";var Oe="./Audio-byv8kkvt.stx";var Me="./Login-3dsk93vm.stx";var je="./Signup-dh96kskd.stx";var Be="./TwoFactorChallenge-ete7yk9y.stx";var He="./Avatar-axrzqsdk.stx";var Fe="./Badge-4jxqhkv9.stx";var Ke="./Breadcrumb-pach6f1f.stx";import q from"process";var Ge="https://stacksjs.com/components";class I extends Error{component;context;constructor(e,t,s={}){let o=I.formatMessage(e,t,s);super(o);if(this.name="ComponentError",this.component=e,this.context={component:e,...s},Error.captureStackTrace)Error.captureStackTrace(this,I)}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((n)=>JSON.stringify(n)).join(", "):JSON.stringify(s.expected);o+=`
6
6
  Expected: ${a}`}if(s.details)o+=`
@@ -8,7 +8,7 @@ var we=import.meta.require;var ye={__stx:!0,src:"./components/CodeBlock.stx"};va
8
8
  Documentation: ${s.docsUrl}`;else if(e)o+=`
9
9
  Documentation: ${Ge}/${e.toLowerCase()}`;return o}toJSON(){return{name:this.name,message:this.message,component:this.component,context:this.context,stack:this.stack}}}var M={invalidProp(e,t,s,o){return new I(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 I(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 I(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 I("ComponentLoader",`Component "${e}" not found`,{component:e,details:"Make sure the component is properly imported and registered"})},invalidChildren(e,t,s){return new I(e,"Invalid children",{received:typeof t,expected:s,details:`${e} expects ${s} as children`})},stateUpdate(e,t,s){return new I(e,`Failed to update state "${t}"`,{details:s.message})},eventHandler(e,t,s){return new I(e,`Error in "${t}" event handler`,{details:s.message})},render(e,t){return new I(e,"Failed to render component",{details:t.message})}},H=null;function Ai(e){H=e}function Di(){H=null}function V(e,t={}){let{throwError:s=!0,logError:o=!0}=t;if(o&&q.env.NODE_ENV!=="production"){if(console.error("Component Error:",e),e instanceof I)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((n)=>{let i=M.eventHandler(t,s,n);throw V(i,{throwError:!1}),i});return a}catch(a){let n=M.eventHandler(t,s,a);throw V(n,{throwError:!1}),n}}}function Ue(e,t){if(!e)throw t}function Ye(e,t,s={}){if(q.env.NODE_ENV==="production")return;let o=I.formatMessage(e,t,s);console.warn(`\u26A0\uFE0F ${o}`)}function Ni(e,t){if(q.env.NODE_ENV==="production")return;Ue(e,t)}function Ei(e){let t=typeof q<"u"&&q.env.DEBUG==="true";return{log(...s){if(t)console.log(`[${e}]`,...s)},warn(s,o){Ye(e,s,o)},error(s,o){let a=new I(e,s,o);V(a,{throwError:!1})}}}function Li(e,t,s){try{return t()}catch(o){let a=M.render(e,o);return V(a,{throwError:!1}),s}}import Je from"process";var F=Je.env.NODE_ENV!=="production";class k{validate;message;isRequired;constructor(e,t,s=!1){this.validate=e;this.message=t;this.isRequired=s}get required(){return new k(this.validate,this.message,!0)}}var l={string:new k((e)=>typeof e==="string",(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`string\`.`),number:new k((e)=>typeof e==="number"&&!Number.isNaN(e),(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`number\`.`),boolean:new k((e)=>typeof e==="boolean",(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`boolean\`.`),func:new k((e)=>typeof e==="function",(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`function\`.`),object:new k((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 k((e)=>Array.isArray(e),(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`array\`.`),any:new k(()=>!0,()=>""),oneOf(e){return new k((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 k((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 k((t,s,o)=>{if(!Array.isArray(t))return!1;return t.every((a,n)=>e.validate(a,`${s}[${n}]`,o))},(t,s,o)=>`Invalid prop \`${s}\` supplied to \`${o}\`, expected array of specified type.`)},shape(e){return new k((t,s,o)=>{if(typeof t!=="object"||t===null||Array.isArray(t))return!1;for(let[a,n]of Object.entries(e)){if(n.isRequired&&!(a in t))return!1;if(a in t&&!n.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 k((t)=>t instanceof e,(t,s,o)=>`Invalid prop \`${s}\` supplied to \`${o}\`, expected instance of \`${e.name}\`.`)},custom(e,t){return new k(e,typeof t==="string"?()=>t:t)},min(e){return new k((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 k((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 k((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 k((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 k((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 k((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 Xe(e,t,s,o={}){let{throwOnError:a=!1,logWarnings:n=F}=o,i=[];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}\`.`;i.push(p);continue}if(h)continue;if(!c.validate(d,r,e)){let p=c.message(d,r,e);i.push(p)}}if(i.length>0){if(n)console.group(`\u26A0\uFE0F Prop validation failed for \`${e}\``),i.forEach((r)=>console.warn(r)),console.groupEnd();if(a)throw Error(`Prop validation failed for \`${e}\`:
10
10
  ${i.join(`
11
- `)}`)}return{valid:i.length===0,errors:i}}function N(e,t,s){return(o)=>Xe(e,o,t,s)}function Pi(e,t,s="value"){if(!F)return;if(!t.validate(e,s,"assertion"))throw Error(t.message(e,s,"assertion"))}function Mi(e,t,s="value"){if(!F)return;if(!t.validate(e,s,"warning"))console.warn(t.message(e,s,"warning"))}var Qe="./Button-tcjt3m8s.stx";var et={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},Wi=N("Button",et);function Hi(e){return le(e,"Button","onClick")}function Vi(e){if(e&&!["primary","secondary","outline","ghost","danger"].includes(e))throw M.invalidProp("Button","variant",e,["primary","secondary","outline","ghost","danger"])}function Fi(e){if(e&&!["xs","sm","md","lg","xl"].includes(e))throw M.invalidProp("Button","size",e,["xs","sm","md","lg","xl"])}var st="./Calendar-f3nzpc2y.stx";var at="./DateRangePicker-z64qqw84.stx";var it="./EmptyState-s790dbym.stx";var lt="./ThemeToggle-4wm9zare.stx";var dt="./Card-r55zpjqh.stx";var ht="./Checkbox-e7gn3w06.stx";var ft="./Combobox-06x0nywb.stx";var mt="./ComboboxButton-g76stp1e.stx";var xt="./ComboboxInput-4jcpvw7e.stx";var wt="./ComboboxOption-vnb67p8d.stx";var Ct="./ComboboxOptions-nbndbrxz.stx";var kt="./CommandPalette-6rjcgske.stx";var Tt="./CommandPaletteItem-6rp133ta.stx";var At="./Dialog-d1020hj6.stx";var Nt="./DialogBackdrop-de5m5m4w.stx";var Lt="./DialogDescription-gth4c2kx.stx";var Ot="./DialogPanel-vhdqymc2.stx";var Mt="./DialogTitle-0jjdk5ra.stx";var jt="./Drawer-jcdj3qk2.stx";var Bt="./Dropdown-cmwge7vx.stx";var Ht="./DropdownButton-tx9hb2de.stx";var Ft="./DropdownItem-wht1vcm5.stx";var Kt="./DropdownItems-v12h6zpf.stx";var Ut="./Form-vbag14t1.stx";var Yt={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},Zr=N("Form",Yt);var Xt="./Image-79xyzb5j.stx";var Qt="./EmailInput-agb8kqae.stx";var ts="./NumberInput-awn66hfs.stx";var os="./PasswordInput-hradj0xd.stx";var ns="./SearchInput-psbjk2ye.stx";var rs="./TextInput-48ghmccm.stx";var ls={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},cs={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},ds={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},ps={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},hs={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},dl=N("TextInput",cs),pl=N("EmailInput",ls),hl=N("PasswordInput",ps),ul=N("NumberInput",ds),fl=N("SearchInput",hs);var fs="./Listbox-e5jreb0a.stx";var ms="./ListboxButton-t43pp03e.stx";var xs="./ListboxLabel-ka0hfm7b.stx";var ws="./ListboxOption-9c9jpz1n.stx";var Cs="./ListboxOptions-qxrkrb8z.stx";var ks="./FilterChip-00ja5jhz.stx";var Ts="./FilterChips-7pnzycfd.stx";var As="./ListRow-8d3e1yxh.stx";var Ns="./NavBar-qqrrhdnk.stx";var Ls="./SectionCard-8ctdacjr.stx";var Os="./TabBar-8143650x.stx";var Ms="./TabBarItem-wv2r8496.stx";var js="./Navigator-1yk1c3pp.stx";var Bs="./Notification-7wgk0sw6.stx";var Hs="./Pagination-z9jxnaeq.stx";var Fs="./Checkout-22wh3s22.stx";var Ks="./DefaultPaymentMethod-r0hcjajr.stx";var Us="./PaymentMethods-z4hhr0kv.stx";var Js="./SubscriptionCheckout-pggq5a4k.stx";var Zs="./Popover-3g8rgxt1.stx";var eo="./PopoverButton-70th24xc.stx";var so="./PopoverPanel-7771yf35.stx";var ao="./Portal-m73vz879.stx";var io="./Progress-bv65bwh8.stx";var lo="./Radio-nr8rbb6g.stx";var po="./RadioGroup-hzz4xep9.stx";var uo="./RadioGroupDescription-z34r9avr.stx";var bo="./RadioGroupLabel-ka0hfm7b.stx";var go="./RadioGroupOption-7fcgfsah.stx";var vo="./Select-sbr8dqzn.stx";var yo="./Sidebar-ve2asgf3.stx";var $o="./SidebarFooter-s7skj92y.stx";var So="./SidebarHeader-esvby82n.stx";var Io="./SidebarItem-r4f2pref.stx";var Do="./SidebarPinned-48kyk193.stx";var Eo="./SidebarSection-5sqza2j6.stx";var zo="./SidebarSpace-bwv98azf.stx";var Po="./SidebarSpaces-mdtrynr2.stx";var Ro="./SidebarSpaceSwitcher-1mycft2g.stx";var _={blue:"#0088ff",red:"#ff383c",pink:"#ff2d55",orange:"#ff8d28",yellow:"#ffcc00",green:"#34c759",teal:"#00c3d0",cyan:"#00c0e8",indigo:"#6155f5",purple:"#cb30e0",brown:"#ac7f5e",gray:"#8e8e93"},P={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}},jo={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}},qo={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}},Bo={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}},Wo={...P,pane:"bg-stone-100 dark:bg-neutral-900 text-black dark:text-white select-none",layers:{}},Ho={...P,pane:"bg-transparent text-black dark:text-white select-none",layers:{}},Vo={...P,pane:"bg-white/50 dark:bg-black/40 backdrop-blur-3xl backdrop-saturate-200 text-black dark:text-white select-none",layers:{}},ce={macos:P,tahoe:P,"macos-tahoe":P,"macos-latest":P,arc:Bo,workspace:jo,desktop:qo,solid:Wo,transparent:Ho,vibrancy:Vo};function Uc(e){return ce[e||"macos"]||ce.macos}function Yc(e){if(!e)return;return _[e]||e}var Fo=_.gray;function z(e,t,s){return`color-mix(in oklab, ${e} ${t}%, ${s})`}function de(e){return{light:{from:z(e,35,"#ffffff"),to:z(e,12.5,"#ffffff"),ink:z(e,22,"#17171b"),accent:z(e,88,"#2a2a30")},dark:{from:z(e,27,"#101014"),to:z(e,10,"#08080b"),ink:z(e,12,"#f4f4f7"),accent:z(e,74,"#ffffff")}}}function Zc(e,t){return`linear-gradient(180deg, ${e} 0%, ${t} 100%)`}function _o(e){if(!e)return de(Fo);if(typeof e!=="string")return e;return de(_[e]||e)}function Ko(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 Go(e){let t=_o(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:Ko(t),deferred:e.deferred===!0,showTitle:e.showTitle??!0}}function Qc(e){return(e||[]).map(Go)}function ed(e,t){if(!t)return 0;let s=e.findIndex((o)=>o.id===t);return s===-1?0:s}function td(e){return e.map((t)=>t.tint)}var Yo="./Skeleton-me2hwqrc.stx";var Xo="./Spinner-vhnc3y03.stx";var Qo="./Stepper-rgbk76hd.stx";var ta="./StepperStep-34kwv0t0.stx";class K{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((n)=>n(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 n=0;n<e.length;n++){let i=e.charAt(n),r=a+i;if(t[r]!==void 0)a=r;else o.push(a.length>1?t[a]:a.charCodeAt(0)),t[r]=s++,a=i}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]),n=a;for(let i=1;i<t.length;i++){let r=t[i],c;if(s[r]!==void 0)c=s[r];else if(r===o)c=a+a.charAt(0);else return e;n+=c,s[o++]=a+c.charAt(0),a=c}return n}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),n={value:t,timestamp:Date.now(),expire:s?.expire,encrypted:s?.encrypt||!1,compressed:s?.compress||!1};try{let i=JSON.stringify(n);if(s?.compress)i=this.compress(i);if(s?.encrypt)i=this.encrypt(i);this.storage.setItem(o,i),this.notifyWatchers(e,t,a)}catch(i){console.error("Storage set error:",i)}}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 K("local"),session:new K("session")};function Ad(e="local",t){return new K(e,t)}var oa="./Switch-fxbw7s16.stx";var na="./Table-akbk3t5q.stx";var ra="./TableBody-y49bqb1p.stx";var ca="./TableCell-8swtcq8s.stx";var pa="./TableHead-e9xvjx2j.stx";var ua="./TableHeader-qsc3e208.stx";var ba="./TableRow-ytr6b5by.stx";var ga="./TabPanel-5htevsq6.stx";var va="./Tabs-51vr631j.stx";var ya="./Teleport-c8nn3757.stx";var $a="./Textarea-dndmk6ah.stx";var Sa="./Tooltip-g2j17eg9.stx";var Ia="./Transition-yrvqbhjy.stx";var Da="./Video-rhy7dskw.stx";var Ea="./VirtualList-fa7v5a3h.stx";var za="./VirtualTable-kp7b3wyv.stx";var Oa=0;function he(e="a11y"){return`${e}-${++Oa}-${Date.now()}`}function xp(e,t,s={}){let{visible:o=!1,id:a=he("label")}=s,n=document.createElement(o?"label":"span");if(n.id=a,n.textContent=e,!o)Object.assign(n.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(n,t);else document.body.appendChild(n);return a}function vp(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 wp(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 yp(e,t={}){let{initialFocus:s,returnFocus:o,escapeDeactivates:a=!0,clickOutsideDeactivates:n=!0,allowOutsideClick:i=!1,onActivate:r,onDeactivate:c}=t,d=!1,h=!1,p=null,b=(x)=>{if(h)return;if(a&&x.key==="Escape"){x.preventDefault(),y();return}if(x.key==="Tab"){let C=ee(e);if(C.length===0){x.preventDefault();return}let A=C[0],L=C[C.length-1];if(x.shiftKey){if(document.activeElement===A)x.preventDefault(),L.focus()}else if(document.activeElement===L)x.preventDefault(),A.focus()}},f=(x)=>{if(h)return;if(!e.contains(x.target)){if(typeof i==="function"){if(!i(x)&&n)y()}else if(!i&&n)y()}};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",b),document.addEventListener("click",f),r?.()}function y(){if(!d)return;d=!1;let x=o||p;if(x&&typeof x.focus==="function")x.focus();document.removeEventListener("keydown",b),document.removeEventListener("click",f),c?.()}function v(){h=!0}function g(){h=!1}return{activate:w,deactivate:y,pause:v,unpause:g}}function Cp(e,t={}){let{selector:s='[role="option"], [role="menuitem"], [role="tab"], button',initialIndex:o=0,orientation:a="both",loop:n=!0,onFocusChange:i}=t,r=o,c=()=>{return Array.from(e.querySelectorAll(s))},d=(p)=>{let b=c();if(p<0||p>=b.length)return;b.forEach((f,w)=>{if(w===p){if(f.setAttribute("tabindex","0"),typeof f.focus==="function")f.focus()}else f.setAttribute("tabindex","-1")}),r=p,i?.(p,b[p])},h=(p)=>{let f=c().length-1,w=!1,y=r;switch(p.key){case"ArrowRight":if(a==="horizontal"||a==="both"){if(y=r+1,y>f)y=n?0:f;w=!0}break;case"ArrowLeft":if(a==="horizontal"||a==="both"){if(y=r-1,y<0)y=n?f:0;w=!0}break;case"ArrowDown":if(a==="vertical"||a==="both"){if(y=r+1,y>f)y=n?0:f;w=!0}break;case"ArrowUp":if(a==="vertical"||a==="both"){if(y=r-1,y<0)y=n?f:0;w=!0}break;case"Home":y=0,w=!0;break;case"End":y=f,w=!0;break}if(w)p.preventDefault(),d(y)};return d(o),e.addEventListener("keydown",h),()=>{e.removeEventListener("keydown",h)}}var $p={Enter:"Enter",Space:" ",Escape:"Escape",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",Tab:"Tab",Home:"Home",End:"End",PageUp:"PageUp",PageDown:"PageDown"};function kp(e){return document.activeElement===e}function Sp(e,t){let s=t||document.activeElement,o=ee(document.body),a=o.indexOf(s);if(a===-1)return;let n=e==="next"?a+1:a-1,i=o[n];if(i)i.focus()}function Tp(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 Ap(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 Dp(){if(typeof window.matchMedia==="function")return window.matchMedia("(prefers-reduced-motion: reduce)").matches;return!1}function Np(){if(typeof window.matchMedia==="function")return window.matchMedia("(prefers-contrast: high)").matches;return!1}function Ep(){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 Lp(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 zp(e){let t=[],s=(o)=>{let a=e.getAttribute(o);if(a){let n=a.split(" ");for(let i of n)if(!document.getElementById(i))t.push(`${o} references non-existent ID: ${i}`)}};return s("aria-labelledby"),s("aria-describedby"),s("aria-controls"),s("aria-owns"),s("aria-activedescendant"),t}var Pa=(e,t,s,o)=>{return s*e/o+t},Ma=(e,t,s,o)=>{return e/=o,s*e*e+t},Ra=(e,t,s,o)=>{return e/=o,-s*e*(e-2)+t},ja=(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},qa=(e,t,s,o)=>{return e/=o,s*e*e*e+t},Ba=(e,t,s,o)=>{return e/=o,e--,s*(e*e*e+1)+t},Wa=(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},Ha=(e,t,s,o)=>{return e/=o,s*e*e*e*e+t},Va=(e,t,s,o)=>{return e/=o,e--,-s*(e*e*e*e-1)+t},Fa=(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},_a=(e,t,s,o)=>{return e/=o,s*e*e*e*e*e+t},Ka=(e,t,s,o)=>{return e/=o,e--,s*(e*e*e*e*e+1)+t},Ga=(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},Ua=(e,t,s,o)=>{return-s*Math.cos(e/o*(Math.PI/2))+s+t},Ya=(e,t,s,o)=>{return s*Math.sin(e/o*(Math.PI/2))+t},Ja=(e,t,s,o)=>{return-s/2*(Math.cos(Math.PI*e/o)-1)+t},Xa=(e,t,s,o)=>{return e===0?t:s*2**(10*(e/o-1))+t},Za=(e,t,s,o)=>{return e===o?t+s:s*(-(2**(-10*e/o))+1)+t},Qa=(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},en=(e,t,s,o)=>{return e/=o,-s*(Math.sqrt(1-e*e)-1)+t},tn=(e,t,s,o)=>{return e/=o,e--,s*Math.sqrt(1-e*e)+t},sn=(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},on=(e,t,s,o)=>{let a=1.70158,n=0,i=s;if(e===0)return t;if(e/=o,e===1)return t+s;if(!n)n=o*0.3;if(i<Math.abs(s))i=s,a=n/4;else a=n/(2*Math.PI)*Math.asin(s/i);return e-=1,-(i*2**(10*e)*Math.sin((e*o-a)*(2*Math.PI)/n))+t},an=(e,t,s,o)=>{let a=1.70158,n=0,i=s;if(e===0)return t;if(e/=o,e===1)return t+s;if(!n)n=o*0.3;if(i<Math.abs(s))i=s,a=n/4;else a=n/(2*Math.PI)*Math.asin(s/i);return i*2**(-10*e)*Math.sin((e*o-a)*(2*Math.PI)/n)+s+t},nn=(e,t,s,o)=>{let a=1.70158,n=0,i=s;if(e===0)return t;if(e/=o/2,e===2)return t+s;if(!n)n=o*0.44999999999999996;if(i<Math.abs(s))i=s,a=n/4;else a=n/(2*Math.PI)*Math.asin(s/i);if(e<1)return e-=1,-0.5*(i*2**(10*e)*Math.sin((e*o-a)*(2*Math.PI)/n))+t;return e-=1,i*2**(-10*e)*Math.sin((e*o-a)*(2*Math.PI)/n)*0.5+s+t},rn=(e,t,s,o)=>{return e/=o,s*e*e*(2.70158*e-1.70158)+t},ln=(e,t,s,o)=>{return e/=o,e--,s*(e*e*(2.70158*e+1.70158)+1)+t},cn=(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},dn=(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},Pp={linear:Pa,easeInQuad:Ma,easeOutQuad:Ra,easeInOutQuad:ja,easeInCubic:qa,easeOutCubic:Ba,easeInOutCubic:Wa,easeInQuart:Ha,easeOutQuart:Va,easeInOutQuart:Fa,easeInQuint:_a,easeOutQuint:Ka,easeInOutQuint:Ga,easeInSine:Ua,easeOutSine:Ya,easeInOutSine:Ja,easeInExpo:Xa,easeOutExpo:Za,easeInOutExpo:Qa,easeInCirc:en,easeOutCirc:tn,easeInOutCirc:sn,easeInElastic:on,easeOutElastic:an,easeInOutElastic:nn,easeInBack:rn,easeOutBack:ln,easeInOutBack:cn,easeInBounce:ue,easeOutBounce:te,easeInOutBounce:dn};function pn(e,t={}){let{duration:s="1s",timing:o="ease",delay:a="0s",iteration:n="1",direction:i="normal",fill:r="both",playState:c="running"}=t;return`${e} ${s} ${o} ${a} ${n} ${i} ${r} ${c}`}function fe(e,t,s={}){e.style.animation=pn(t,s)}function Rp(e){e.style.animation=""}function hn(e){return new Promise((t)=>{let s=()=>{e.removeEventListener("animationend",s),t()};e.addEventListener("animationend",s)})}function jp(e,t,s={}){let{stagger:o=100,...a}=s;e.forEach((n,i)=>{let r=`${i*o}ms`;fe(n,t,{...a,delay:r})})}async function qp(e,t){for(let s of t)fe(e,s.name,s.options),await hn(e)}var Bp={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 Wp(e,t,s=1000){return new Promise((o)=>{e.classList.add(t),setTimeout(()=>{e.classList.remove(t),o()},s)})}function Hp(e,t){let s=`
11
+ `)}`)}return{valid:i.length===0,errors:i}}function N(e,t,s){return(o)=>Xe(e,o,t,s)}function Pi(e,t,s="value"){if(!F)return;if(!t.validate(e,s,"assertion"))throw Error(t.message(e,s,"assertion"))}function Mi(e,t,s="value"){if(!F)return;if(!t.validate(e,s,"warning"))console.warn(t.message(e,s,"warning"))}var Qe="./Button-k2q6811a.stx";var et={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},Wi=N("Button",et);function Hi(e){return le(e,"Button","onClick")}function Vi(e){if(e&&!["primary","secondary","outline","ghost","danger"].includes(e))throw M.invalidProp("Button","variant",e,["primary","secondary","outline","ghost","danger"])}function Fi(e){if(e&&!["xs","sm","md","lg","xl"].includes(e))throw M.invalidProp("Button","size",e,["xs","sm","md","lg","xl"])}var st="./Calendar-f3nzpc2y.stx";var at="./DateRangePicker-z64qqw84.stx";var it="./EmptyState-s790dbym.stx";var lt="./ThemeToggle-4wm9zare.stx";var dt="./Card-r55zpjqh.stx";var ht="./Checkbox-e7gn3w06.stx";var ft="./Combobox-06x0nywb.stx";var mt="./ComboboxButton-g76stp1e.stx";var xt="./ComboboxInput-a5g0vn3e.stx";var wt="./ComboboxOption-vnb67p8d.stx";var Ct="./ComboboxOptions-zhr9b6rx.stx";var kt="./CommandPalette-y6t67rjj.stx";var Tt="./CommandPaletteItem-6rp133ta.stx";var At="./Dialog-d1020hj6.stx";var Nt="./DialogBackdrop-de5m5m4w.stx";var Lt="./DialogDescription-gth4c2kx.stx";var Ot="./DialogPanel-vhdqymc2.stx";var Mt="./DialogTitle-0jjdk5ra.stx";var jt="./Drawer-hc0jjpsw.stx";var Bt="./Dropdown-cmwge7vx.stx";var Ht="./DropdownButton-6by2ybde.stx";var Ft="./DropdownItem-wht1vcm5.stx";var Kt="./DropdownItems-bkz7jkyz.stx";var Ut="./Form-vbag14t1.stx";var Yt={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},Zr=N("Form",Yt);var Xt="./Image-79xyzb5j.stx";var Qt="./EmailInput-agb8kqae.stx";var ts="./NumberInput-awn66hfs.stx";var os="./PasswordInput-hradj0xd.stx";var ns="./SearchInput-psbjk2ye.stx";var rs="./TextInput-48ghmccm.stx";var ls={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},cs={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},ds={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},ps={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},hs={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},dl=N("TextInput",cs),pl=N("EmailInput",ls),hl=N("PasswordInput",ps),ul=N("NumberInput",ds),fl=N("SearchInput",hs);var fs="./Listbox-e5jreb0a.stx";var ms="./ListboxButton-3yc7tm8w.stx";var xs="./ListboxLabel-ka0hfm7b.stx";var ws="./ListboxOption-9c9jpz1n.stx";var Cs="./ListboxOptions-2928864k.stx";var ks="./FilterChip-00ja5jhz.stx";var Ts="./FilterChips-7pnzycfd.stx";var As="./ListRow-8d3e1yxh.stx";var Ns="./NavBar-qqrrhdnk.stx";var Ls="./SectionCard-8ctdacjr.stx";var Os="./TabBar-8143650x.stx";var Ms="./TabBarItem-kddfnhk3.stx";var js="./Navigator-1yk1c3pp.stx";var Bs="./Notification-2ws4ym4s.stx";var Hs="./Pagination-330ybzf1.stx";var Fs="./Checkout-22wh3s22.stx";var Ks="./DefaultPaymentMethod-ss3x61tr.stx";var Us="./PaymentMethods-z4hhr0kv.stx";var Js="./SubscriptionCheckout-75x9mfv2.stx";var Zs="./Popover-3g8rgxt1.stx";var eo="./PopoverButton-htfypg00.stx";var so="./PopoverPanel-d84gk1w1.stx";var ao="./Portal-m73vz879.stx";var io="./Progress-bv65bwh8.stx";var lo="./Radio-nr8rbb6g.stx";var po="./RadioGroup-neej7522.stx";var uo="./RadioGroupDescription-z34r9avr.stx";var bo="./RadioGroupLabel-ka0hfm7b.stx";var go="./RadioGroupOption-c6xd0at9.stx";var vo="./Select-danh680d.stx";var yo="./Sidebar-ve2asgf3.stx";var $o="./SidebarFooter-s7skj92y.stx";var So="./SidebarHeader-esvby82n.stx";var Io="./SidebarItem-r4f2pref.stx";var Do="./SidebarPinned-48kyk193.stx";var Eo="./SidebarSection-5sqza2j6.stx";var zo="./SidebarSpace-bwv98azf.stx";var Po="./SidebarSpaces-mdtrynr2.stx";var Ro="./SidebarSpaceSwitcher-1mycft2g.stx";var _={blue:"#0088ff",red:"#ff383c",pink:"#ff2d55",orange:"#ff8d28",yellow:"#ffcc00",green:"#34c759",teal:"#00c3d0",cyan:"#00c0e8",indigo:"#6155f5",purple:"#cb30e0",brown:"#ac7f5e",gray:"#8e8e93"},P={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}},jo={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}},qo={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}},Bo={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}},Wo={...P,pane:"bg-stone-100 dark:bg-neutral-900 text-black dark:text-white select-none",layers:{}},Ho={...P,pane:"bg-transparent text-black dark:text-white select-none",layers:{}},Vo={...P,pane:"bg-white/50 dark:bg-black/40 backdrop-blur-3xl backdrop-saturate-200 text-black dark:text-white select-none",layers:{}},ce={macos:P,tahoe:P,"macos-tahoe":P,"macos-latest":P,arc:Bo,workspace:jo,desktop:qo,solid:Wo,transparent:Ho,vibrancy:Vo};function Uc(e){return ce[e||"macos"]||ce.macos}function Yc(e){if(!e)return;return _[e]||e}var Fo=_.gray;function z(e,t,s){return`color-mix(in oklab, ${e} ${t}%, ${s})`}function de(e){return{light:{from:z(e,35,"#ffffff"),to:z(e,12.5,"#ffffff"),ink:z(e,22,"#17171b"),accent:z(e,88,"#2a2a30")},dark:{from:z(e,27,"#101014"),to:z(e,10,"#08080b"),ink:z(e,12,"#f4f4f7"),accent:z(e,74,"#ffffff")}}}function Zc(e,t){return`linear-gradient(180deg, ${e} 0%, ${t} 100%)`}function _o(e){if(!e)return de(Fo);if(typeof e!=="string")return e;return de(_[e]||e)}function Ko(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 Go(e){let t=_o(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:Ko(t),deferred:e.deferred===!0,showTitle:e.showTitle??!0}}function Qc(e){return(e||[]).map(Go)}function ed(e,t){if(!t)return 0;let s=e.findIndex((o)=>o.id===t);return s===-1?0:s}function td(e){return e.map((t)=>t.tint)}var Yo="./Skeleton-me2hwqrc.stx";var Xo="./Spinner-vhnc3y03.stx";var Qo="./Stepper-rgbk76hd.stx";var ta="./StepperStep-b78wmshd.stx";class K{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((n)=>n(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 n=0;n<e.length;n++){let i=e.charAt(n),r=a+i;if(t[r]!==void 0)a=r;else o.push(a.length>1?t[a]:a.charCodeAt(0)),t[r]=s++,a=i}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]),n=a;for(let i=1;i<t.length;i++){let r=t[i],c;if(s[r]!==void 0)c=s[r];else if(r===o)c=a+a.charAt(0);else return e;n+=c,s[o++]=a+c.charAt(0),a=c}return n}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),n={value:t,timestamp:Date.now(),expire:s?.expire,encrypted:s?.encrypt||!1,compressed:s?.compress||!1};try{let i=JSON.stringify(n);if(s?.compress)i=this.compress(i);if(s?.encrypt)i=this.encrypt(i);this.storage.setItem(o,i),this.notifyWatchers(e,t,a)}catch(i){console.error("Storage set error:",i)}}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 K("local"),session:new K("session")};function Ad(e="local",t){return new K(e,t)}var oa="./Switch-27hp6pq5.stx";var na="./Table-akbk3t5q.stx";var ra="./TableBody-y49bqb1p.stx";var ca="./TableCell-8swtcq8s.stx";var pa="./TableHead-e9xvjx2j.stx";var ua="./TableHeader-qsc3e208.stx";var ba="./TableRow-ytr6b5by.stx";var ga="./TabPanel-5htevsq6.stx";var va="./Tabs-f1n3ggkw.stx";var ya="./Teleport-c8nn3757.stx";var $a="./Textarea-dndmk6ah.stx";var Sa="./Tooltip-g2j17eg9.stx";var Ia="./Transition-yrvqbhjy.stx";var Da="./Video-rhy7dskw.stx";var Ea="./VirtualList-fa7v5a3h.stx";var za="./VirtualTable-kp7b3wyv.stx";var Oa=0;function he(e="a11y"){return`${e}-${++Oa}-${Date.now()}`}function xp(e,t,s={}){let{visible:o=!1,id:a=he("label")}=s,n=document.createElement(o?"label":"span");if(n.id=a,n.textContent=e,!o)Object.assign(n.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(n,t);else document.body.appendChild(n);return a}function vp(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 wp(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 yp(e,t={}){let{initialFocus:s,returnFocus:o,escapeDeactivates:a=!0,clickOutsideDeactivates:n=!0,allowOutsideClick:i=!1,onActivate:r,onDeactivate:c}=t,d=!1,h=!1,p=null,b=(x)=>{if(h)return;if(a&&x.key==="Escape"){x.preventDefault(),y();return}if(x.key==="Tab"){let C=ee(e);if(C.length===0){x.preventDefault();return}let A=C[0],L=C[C.length-1];if(x.shiftKey){if(document.activeElement===A)x.preventDefault(),L.focus()}else if(document.activeElement===L)x.preventDefault(),A.focus()}},f=(x)=>{if(h)return;if(!e.contains(x.target)){if(typeof i==="function"){if(!i(x)&&n)y()}else if(!i&&n)y()}};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",b),document.addEventListener("click",f),r?.()}function y(){if(!d)return;d=!1;let x=o||p;if(x&&typeof x.focus==="function")x.focus();document.removeEventListener("keydown",b),document.removeEventListener("click",f),c?.()}function v(){h=!0}function g(){h=!1}return{activate:w,deactivate:y,pause:v,unpause:g}}function Cp(e,t={}){let{selector:s='[role="option"], [role="menuitem"], [role="tab"], button',initialIndex:o=0,orientation:a="both",loop:n=!0,onFocusChange:i}=t,r=o,c=()=>{return Array.from(e.querySelectorAll(s))},d=(p)=>{let b=c();if(p<0||p>=b.length)return;b.forEach((f,w)=>{if(w===p){if(f.setAttribute("tabindex","0"),typeof f.focus==="function")f.focus()}else f.setAttribute("tabindex","-1")}),r=p,i?.(p,b[p])},h=(p)=>{let f=c().length-1,w=!1,y=r;switch(p.key){case"ArrowRight":if(a==="horizontal"||a==="both"){if(y=r+1,y>f)y=n?0:f;w=!0}break;case"ArrowLeft":if(a==="horizontal"||a==="both"){if(y=r-1,y<0)y=n?f:0;w=!0}break;case"ArrowDown":if(a==="vertical"||a==="both"){if(y=r+1,y>f)y=n?0:f;w=!0}break;case"ArrowUp":if(a==="vertical"||a==="both"){if(y=r-1,y<0)y=n?f:0;w=!0}break;case"Home":y=0,w=!0;break;case"End":y=f,w=!0;break}if(w)p.preventDefault(),d(y)};return d(o),e.addEventListener("keydown",h),()=>{e.removeEventListener("keydown",h)}}var $p={Enter:"Enter",Space:" ",Escape:"Escape",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",Tab:"Tab",Home:"Home",End:"End",PageUp:"PageUp",PageDown:"PageDown"};function kp(e){return document.activeElement===e}function Sp(e,t){let s=t||document.activeElement,o=ee(document.body),a=o.indexOf(s);if(a===-1)return;let n=e==="next"?a+1:a-1,i=o[n];if(i)i.focus()}function Tp(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 Ap(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 Dp(){if(typeof window.matchMedia==="function")return window.matchMedia("(prefers-reduced-motion: reduce)").matches;return!1}function Np(){if(typeof window.matchMedia==="function")return window.matchMedia("(prefers-contrast: high)").matches;return!1}function Ep(){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 Lp(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 zp(e){let t=[],s=(o)=>{let a=e.getAttribute(o);if(a){let n=a.split(" ");for(let i of n)if(!document.getElementById(i))t.push(`${o} references non-existent ID: ${i}`)}};return s("aria-labelledby"),s("aria-describedby"),s("aria-controls"),s("aria-owns"),s("aria-activedescendant"),t}var Pa=(e,t,s,o)=>{return s*e/o+t},Ma=(e,t,s,o)=>{return e/=o,s*e*e+t},Ra=(e,t,s,o)=>{return e/=o,-s*e*(e-2)+t},ja=(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},qa=(e,t,s,o)=>{return e/=o,s*e*e*e+t},Ba=(e,t,s,o)=>{return e/=o,e--,s*(e*e*e+1)+t},Wa=(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},Ha=(e,t,s,o)=>{return e/=o,s*e*e*e*e+t},Va=(e,t,s,o)=>{return e/=o,e--,-s*(e*e*e*e-1)+t},Fa=(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},_a=(e,t,s,o)=>{return e/=o,s*e*e*e*e*e+t},Ka=(e,t,s,o)=>{return e/=o,e--,s*(e*e*e*e*e+1)+t},Ga=(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},Ua=(e,t,s,o)=>{return-s*Math.cos(e/o*(Math.PI/2))+s+t},Ya=(e,t,s,o)=>{return s*Math.sin(e/o*(Math.PI/2))+t},Ja=(e,t,s,o)=>{return-s/2*(Math.cos(Math.PI*e/o)-1)+t},Xa=(e,t,s,o)=>{return e===0?t:s*2**(10*(e/o-1))+t},Za=(e,t,s,o)=>{return e===o?t+s:s*(-(2**(-10*e/o))+1)+t},Qa=(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},en=(e,t,s,o)=>{return e/=o,-s*(Math.sqrt(1-e*e)-1)+t},tn=(e,t,s,o)=>{return e/=o,e--,s*Math.sqrt(1-e*e)+t},sn=(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},on=(e,t,s,o)=>{let a=1.70158,n=0,i=s;if(e===0)return t;if(e/=o,e===1)return t+s;if(!n)n=o*0.3;if(i<Math.abs(s))i=s,a=n/4;else a=n/(2*Math.PI)*Math.asin(s/i);return e-=1,-(i*2**(10*e)*Math.sin((e*o-a)*(2*Math.PI)/n))+t},an=(e,t,s,o)=>{let a=1.70158,n=0,i=s;if(e===0)return t;if(e/=o,e===1)return t+s;if(!n)n=o*0.3;if(i<Math.abs(s))i=s,a=n/4;else a=n/(2*Math.PI)*Math.asin(s/i);return i*2**(-10*e)*Math.sin((e*o-a)*(2*Math.PI)/n)+s+t},nn=(e,t,s,o)=>{let a=1.70158,n=0,i=s;if(e===0)return t;if(e/=o/2,e===2)return t+s;if(!n)n=o*0.44999999999999996;if(i<Math.abs(s))i=s,a=n/4;else a=n/(2*Math.PI)*Math.asin(s/i);if(e<1)return e-=1,-0.5*(i*2**(10*e)*Math.sin((e*o-a)*(2*Math.PI)/n))+t;return e-=1,i*2**(-10*e)*Math.sin((e*o-a)*(2*Math.PI)/n)*0.5+s+t},rn=(e,t,s,o)=>{return e/=o,s*e*e*(2.70158*e-1.70158)+t},ln=(e,t,s,o)=>{return e/=o,e--,s*(e*e*(2.70158*e+1.70158)+1)+t},cn=(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},dn=(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},Pp={linear:Pa,easeInQuad:Ma,easeOutQuad:Ra,easeInOutQuad:ja,easeInCubic:qa,easeOutCubic:Ba,easeInOutCubic:Wa,easeInQuart:Ha,easeOutQuart:Va,easeInOutQuart:Fa,easeInQuint:_a,easeOutQuint:Ka,easeInOutQuint:Ga,easeInSine:Ua,easeOutSine:Ya,easeInOutSine:Ja,easeInExpo:Xa,easeOutExpo:Za,easeInOutExpo:Qa,easeInCirc:en,easeOutCirc:tn,easeInOutCirc:sn,easeInElastic:on,easeOutElastic:an,easeInOutElastic:nn,easeInBack:rn,easeOutBack:ln,easeInOutBack:cn,easeInBounce:ue,easeOutBounce:te,easeInOutBounce:dn};function pn(e,t={}){let{duration:s="1s",timing:o="ease",delay:a="0s",iteration:n="1",direction:i="normal",fill:r="both",playState:c="running"}=t;return`${e} ${s} ${o} ${a} ${n} ${i} ${r} ${c}`}function fe(e,t,s={}){e.style.animation=pn(t,s)}function Rp(e){e.style.animation=""}function hn(e){return new Promise((t)=>{let s=()=>{e.removeEventListener("animationend",s),t()};e.addEventListener("animationend",s)})}function jp(e,t,s={}){let{stagger:o=100,...a}=s;e.forEach((n,i)=>{let r=`${i*o}ms`;fe(n,t,{...a,delay:r})})}async function qp(e,t){for(let s of t)fe(e,s.name,s.options),await hn(e)}var Bp={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 Wp(e,t,s=1000){return new Promise((o)=>{e.classList.add(t),setTimeout(()=>{e.classList.remove(t),o()},s)})}function Hp(e,t){let s=`
12
12
  @keyframes ${e} {
13
13
  ${Object.entries(t).map(([a,n])=>{let i=Object.entries(n).map(([r,c])=>`${r}: ${c};`).join(" ");return`${a} { ${i} }`}).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.368",
4
+ "version": "0.2.369",
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.368",
68
- "bun-plugin-stx": "0.2.368",
67
+ "@stacksjs/stx": "0.2.369",
68
+ "bun-plugin-stx": "0.2.369",
69
69
  "ts-syntax-highlighter": "^0.2.17"
70
70
  },
71
71
  "devDependencies": {
@@ -17,7 +17,7 @@ export const githubUrl = $props.githubUrl || '#'
17
17
  href="{{ githubUrl }}"
18
18
  target="_blank"
19
19
  rel="noopener noreferrer"
20
- class="inline-flex items-center justify-center h-10 px-8 rounded-control text-sm font-semibold bg-gradient-to-b from-panel to-neutral-100 dark:to-neutral-900 text-fg shadow-md hover:shadow-lg transition-all duration-200"
20
+ class="inline-flex items-center justify-center h-10 px-8 rounded-control text-sm font-semibold bg-gradient-to-b from-panel to-page text-fg shadow-md hover:shadow-lg transition-all duration-200"
21
21
  >
22
22
  GitHub
23
23
  </a>
@@ -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-hover transition-colors duration-150 focus:outline-none focus:ring-2 focus:ring-accent-solid focus:ring-offset-2 focus:ring-offset-panel`.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-hover transition-colors duration-150 focus:outline-none focus:ring-2 focus:ring-accent 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-hover transition-colors duration-150 focus:outline-none focus:ring-2 focus:ring-accent-solid focus:ring-offset-2 focus:ring-offset-panel'
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-accent 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>
@@ -106,7 +106,7 @@ function onSubmit(event) {
106
106
 
107
107
  @if(showForgotPassword)
108
108
  <div class="text-sm leading-6">
109
- <StxLink to="{{ forgotPasswordHref }}" class="text-accent font-semibold hover:text-accent">
109
+ <StxLink to="{{ forgotPasswordHref }}" class="text-link font-semibold hover:text-link-hover">
110
110
  Forgot password?
111
111
  </StxLink>
112
112
  </div>
@@ -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-field-hover focus-visible:ring-transparent"
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-2 focus-visible:ring-accent"
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-field-hover focus-visible:ring-transparent"
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-2 focus-visible:ring-accent"
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" />
@@ -169,7 +169,7 @@ function onSubmit(event) {
169
169
  @if(showSignup)
170
170
  <p class="mt-10 text-center text-sm text-fg-soft">
171
171
  Not a member?
172
- <StxLink to="{{ signupHref }}" class="text-accent font-semibold leading-6 hover:text-accent">
172
+ <StxLink to="{{ signupHref }}" class="text-link font-semibold leading-6 hover:text-link-hover">
173
173
  {{ signupText }}
174
174
  </StxLink>
175
175
  </p>
@@ -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-field-hover focus-visible:ring-transparent"
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-2 focus-visible:ring-accent"
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-field-hover focus-visible:ring-transparent"
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-2 focus-visible:ring-accent"
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" />
@@ -80,7 +80,7 @@ function onRecoveryCode(event) {
80
80
  <div class="py-4">
81
81
  <button
82
82
  type="submit"
83
- class="relative h-8 w-full flex items-center justify-center rounded-full bg-accent-solid px-4 text-accent-ink font-semibold hover:bg-accent-solid-hover focus:outline-none focus:ring-2 focus:ring-accent focus:ring-offset-2"
83
+ class="relative h-8 w-full flex items-center justify-center rounded-full bg-accent-solid px-4 text-accent-ink font-semibold hover:bg-accent-solid-hover focus:outline-none focus:ring-2 focus:ring-accent focus:ring-offset-2 focus:ring-offset-panel"
84
84
  >
85
85
  Verify
86
86
  </button>
@@ -87,7 +87,7 @@ const iconSizeClasses = { xs: 'h-3 w-3', sm: 'h-4 w-4', md: 'h-5 w-5', lg: 'h-6
87
87
  * the token's light value is that same blue-500 and its dark value is a step
88
88
  * darker, which is a ring that was missing rather than one that changed.
89
89
  */
90
- const baseClasses = 'inline-flex items-center justify-center font-semibold rounded-control transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-accent-solid disabled:opacity-50 disabled:cursor-not-allowed disabled:pointer-events-none'
90
+ const baseClasses = 'inline-flex items-center justify-center font-semibold rounded-control transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-panel focus:ring-accent disabled:opacity-50 disabled:cursor-not-allowed disabled:pointer-events-none'
91
91
  const widthClasses = fullWidth ? 'w-full' : ''
92
92
  export const isDisabled = disabled || loading
93
93
 
@@ -4,7 +4,7 @@ export const className = $props.className || ''
4
4
  export const placeholder = $props.placeholder || ''
5
5
  export const disabled = $bool($props.disabled)
6
6
 
7
- const baseClasses = 'w-full rounded-panel border-none bg-panel py-2 pl-3 pr-10 text-sm leading-5 text-fg focus:ring-0 focus:outline-none focus-visible:border-accent-solid focus-visible:ring-2 focus-visible:ring-accent-solid focus-visible:ring-offset-panel focus-visible:ring-offset-2'
7
+ const baseClasses = 'w-full rounded-panel border-none bg-panel py-2 pl-3 pr-10 text-sm leading-5 text-fg focus:ring-0 focus:outline-none focus-visible:border-accent-solid focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-panel focus-visible:ring-offset-2'
8
8
  const disabledClasses = disabled ? 'opacity-50 cursor-not-allowed' : ''
9
9
  export const inputClasses = `${baseClasses} ${disabledClasses} ${className}`.trim()
10
10
  </script>
@@ -2,7 +2,7 @@
2
2
  export const className = $props.className || ''
3
3
  export const as = $props.as || 'ul'
4
4
 
5
- const baseClasses = 'absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-panel bg-panel py-1 text-base shadow-lg ring-1 ring-black/5 focus:outline-none'
5
+ const baseClasses = 'absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-panel bg-panel py-1 text-base shadow-lg ring-1 ring-line focus:outline-none'
6
6
  export const optionsClasses = `${baseClasses} ${className}`.trim()
7
7
  </script>
8
8
 
@@ -60,7 +60,7 @@ defineExpose({ isOpen, query, show, close })
60
60
  >
61
61
  <div class="fixed inset-0 bg-neutral-500/25 dark:bg-neutral-500/50 transition-opacity" @click="close()"></div>
62
62
 
63
- <div class="mx-auto max-w-xl transform divide-y divide-line overflow-hidden rounded-xl bg-panel shadow-2xl ring-1 ring-black/5 transition-all relative">
63
+ <div class="mx-auto max-w-xl transform divide-y divide-line overflow-hidden rounded-xl bg-panel shadow-2xl ring-1 ring-line transition-all relative">
64
64
  <div class="relative">
65
65
  <svg class="pointer-events-none absolute top-3.5 left-4 h-5 w-5 text-neutral-400" viewBox="0 0 20 20" fill="currentColor">
66
66
  <path fill-rule="evenodd" d="M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z" clip-rule="evenodd" />
@@ -301,7 +301,7 @@ defineExpose({
301
301
  <div class="{{ closeButtonClasses }}">
302
302
  <button
303
303
  type="button"
304
- class="relative rounded-control text-neutral-300 dark:text-neutral-400 hover:text-white dark:hover:text-white focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent"
304
+ class="relative rounded-control text-neutral-300 hover:text-white focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent"
305
305
  @click="close()"
306
306
  >
307
307
  <span class="absolute -inset-2.5"></span>
@@ -3,7 +3,7 @@ export const className = $props.className || ''
3
3
  export const as = $props.as || 'button'
4
4
  export const disabled = $bool($props.disabled)
5
5
 
6
- const baseClasses = 'inline-flex justify-center items-center rounded-control focus:outline-none focus-visible:ring-2 focus-visible:ring-accent-solid focus-visible:ring-offset-2 focus-visible:ring-offset-panel'
6
+ const baseClasses = 'inline-flex justify-center items-center rounded-control focus:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-panel'
7
7
  export const buttonClasses = `${baseClasses} ${className}`.trim()
8
8
  </script>
9
9
 
@@ -2,7 +2,7 @@
2
2
  export const className = $props.className || ''
3
3
  export const as = $props.as || 'div'
4
4
 
5
- const baseClasses = 'absolute z-10 mt-2 origin-top-right divide-y divide-line rounded-panel bg-panel shadow-lg ring-1 ring-black/5 focus:outline-none dark:ring-neutral-600'
5
+ const baseClasses = 'absolute z-10 mt-2 origin-top-right divide-y divide-line rounded-panel bg-panel shadow-lg ring-1 ring-line focus:outline-none'
6
6
  export const itemsClasses = `${baseClasses} ${className}`.trim()
7
7
  </script>
8
8
 
@@ -3,7 +3,7 @@ export const className = $props.className || ''
3
3
  export const as = $props.as || 'button'
4
4
  export const disabled = $bool($props.disabled)
5
5
 
6
- const baseClasses = 'relative w-full cursor-pointer rounded-panel bg-panel py-2 pl-3 pr-10 text-left shadow-md focus:outline-none focus-visible:border-accent-solid focus-visible:ring-2 focus-visible:ring-accent-solid focus-visible:ring-offset-2 focus-visible:ring-offset-panel'
6
+ const baseClasses = 'relative w-full cursor-pointer rounded-panel bg-panel py-2 pl-3 pr-10 text-left shadow-md focus:outline-none focus-visible:border-accent-solid focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-panel'
7
7
  const disabledClasses = disabled ? 'opacity-50 cursor-not-allowed' : ''
8
8
  export const buttonClasses = `${baseClasses} ${disabledClasses} ${className}`.trim()
9
9
  </script>
@@ -2,7 +2,7 @@
2
2
  export const className = $props.className || ''
3
3
  export const as = $props.as || 'ul'
4
4
 
5
- const baseClasses = 'absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-panel bg-panel py-1 text-base shadow-lg ring-1 ring-black/5 focus:outline-none'
5
+ const baseClasses = 'absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-panel bg-panel py-1 text-base shadow-lg ring-1 ring-line focus:outline-none'
6
6
  export const optionsClasses = `${baseClasses} ${className}`.trim()
7
7
  </script>
8
8
 
@@ -69,7 +69,7 @@ export const itemClasses = `
69
69
  survive the label being two words wide, and anchoring it to the glyph
70
70
  keeps every tab's badge in the same place.
71
71
  --}}
72
- <span class="absolute -right-2 -top-1 min-w-[16px] rounded-full bg-danger px-1 text-[10px] font-semibold leading-4 text-danger-ink">
72
+ <span class="absolute -right-2 -top-1 min-w-[16px] rounded-full bg-danger-solid px-1 text-[10px] font-semibold leading-4 text-danger-ink">
73
73
  {{ badge }}
74
74
  </span>
75
75
  @endif
@@ -37,7 +37,7 @@ const positions = {
37
37
  'bottom-center': 'bottom-0 left-1/2 -translate-x-1/2',
38
38
  }
39
39
 
40
- const baseClasses = 'fixed z-50 m-4 max-w-md w-full pointer-events-auto rounded-panel p-4 shadow-lg ring-1 ring-black/5 transition-all'
40
+ const baseClasses = 'fixed z-50 m-4 max-w-md w-full pointer-events-auto rounded-panel p-4 shadow-lg ring-1 ring-line transition-all'
41
41
  const extraClassName = {{ JSON.stringify(className) }}
42
42
 
43
43
  const notificationClasses = derived(() => {
@@ -106,7 +106,7 @@ defineExpose({
106
106
  <button
107
107
  type="button"
108
108
  @click="close()"
109
- class="ml-4 inline-flex rounded-panel focus:outline-none focus:ring-2 focus:ring-offset-2"
109
+ class="ml-4 inline-flex rounded-panel focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-panel"
110
110
  >
111
111
  <span class="sr-only">Close</span>
112
112
  <svg class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
@@ -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-hover focus:outline-none focus:ring-2 focus:ring-accent-solid 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-accent-ink bg-accent-solid border border-accent rounded-control focus:outline-none focus:ring-2 focus:ring-accent-solid focus:ring-offset-2 focus:ring-offset-panel`.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-hover focus:outline-none focus:ring-2 focus:ring-accent 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-accent-ink bg-accent-solid border border-accent rounded-control focus:outline-none focus:ring-2 focus:ring-accent focus:ring-offset-2 focus:ring-offset-panel`.trim()
12
12
  export const ellipsisClasses = `px-3 py-2 text-sm font-medium text-fg-soft`.trim()
13
13
  export const iconClasses = `w-5 h-5`.trim()
14
14
  </script>
@@ -11,7 +11,7 @@ const brandIcons = {
11
11
  default: '💳',
12
12
  }
13
13
 
14
- export const containerClasses = `mt-16 w-2/3 bg-panel px-8 py-6 shadow ring-1 ring-black/5 dark:ring-neutral-700 sm:rounded-panel ${className}`.trim()
14
+ export const containerClasses = `mt-16 w-2/3 bg-panel px-8 py-6 shadow ring-1 ring-line sm:rounded-panel ${className}`.trim()
15
15
  </script>
16
16
 
17
17
  <div class="{{ containerClasses }}">
@@ -222,7 +222,7 @@ onMount(() => initializeStripe())
222
222
  <div class="min-w-0 flex-1">
223
223
  <h4 class="text-sm">
224
224
  @if(product.href)
225
- <StxLink to="{{ product.href }}" class="text-fg-strong font-medium hover:text-neutral-800 dark:hover:text-neutral-200">
225
+ <StxLink to="{{ product.href }}" class="text-fg-strong font-medium hover:text-fg">
226
226
  {{ product.name }}
227
227
  </StxLink>
228
228
  @else
@@ -3,7 +3,7 @@ export const className = $props.className || ''
3
3
  export const as = $props.as || 'button'
4
4
  export const disabled = $bool($props.disabled)
5
5
 
6
- const baseClasses = 'inline-flex items-center gap-2 focus:outline-none focus-visible:ring-2 focus-visible:ring-accent-solid focus-visible:ring-offset-2 focus-visible:ring-offset-panel'
6
+ const baseClasses = 'inline-flex items-center gap-2 focus:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-panel'
7
7
  export const buttonClasses = `${baseClasses} ${className}`.trim()
8
8
  </script>
9
9
 
@@ -10,7 +10,7 @@ const positionClasses = {
10
10
  right: 'left-full ml-2',
11
11
  }
12
12
 
13
- const baseClasses = 'absolute z-10 rounded-panel bg-panel p-4 shadow-lg ring-1 ring-black/5 focus:outline-none'
13
+ const baseClasses = 'absolute z-10 rounded-panel bg-panel p-4 shadow-lg ring-1 ring-line focus:outline-none'
14
14
  export const panelClasses = `${baseClasses} ${positionClasses[position] || positionClasses.bottom} ${className}`.trim()
15
15
  </script>
16
16
 
@@ -23,7 +23,7 @@ export const as = $props.as || 'div'
23
23
  export const options = Array.isArray($props.options) ? $props.options : []
24
24
  export const hasPropOptions = options.length > 0
25
25
 
26
- const optionBaseClasses = 'relative flex cursor-pointer rounded-panel px-5 py-4 shadow-md focus:outline-none transition-all bg-panel text-fg focus-visible:ring-2 focus-visible:ring-accent-solid focus-visible:ring-offset-2 focus-visible:ring-offset-panel'
26
+ const optionBaseClasses = 'relative flex cursor-pointer rounded-panel px-5 py-4 shadow-md focus:outline-none transition-all bg-panel text-fg focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-panel'
27
27
  export const optionClasses = optionBaseClasses
28
28
  export const optionDisabledClasses = `${optionBaseClasses} opacity-50 cursor-not-allowed`
29
29
 
@@ -4,7 +4,7 @@ export const disabled = $bool($props.disabled)
4
4
  export const className = $props.className || ''
5
5
  export const as = $props.as || 'div'
6
6
 
7
- const baseClasses = 'relative flex cursor-pointer rounded-panel px-5 py-4 shadow-md focus:outline-none transition-all bg-panel text-fg focus-visible:ring-2 focus-visible:ring-accent-solid focus-visible:ring-offset-2 focus-visible:ring-offset-panel'
7
+ const baseClasses = 'relative flex cursor-pointer rounded-panel px-5 py-4 shadow-md focus:outline-none transition-all bg-panel text-fg focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-panel'
8
8
  const disabledClasses = disabled ? 'opacity-50 cursor-not-allowed' : ''
9
9
  export const optionClasses = `${baseClasses} ${disabledClasses} ${className}`.trim()
10
10
  export const valueJson = JSON.stringify(value === undefined ? null : value)
@@ -27,7 +27,7 @@ const stateClasses = error
27
27
  : 'ring-line-strong text-fg placeholder-fg-soft focus:ring-accent'
28
28
  const disabledClasses = disabled
29
29
  ? 'opacity-50 cursor-not-allowed bg-surface'
30
- : 'bg-field cursor-pointer hover:ring-neutral-400 dark:hover:ring-neutral-500'
30
+ : 'bg-field cursor-pointer hover:ring-line-hover'
31
31
 
32
32
  export const selectClasses = `${baseClasses} ${sizeClasses[size] || sizeClasses.md} ${stateClasses} ${disabledClasses} ${className}`.trim()
33
33
  export const labelClasses = `block text-sm font-medium leading-6 ${error ? 'text-danger' : 'text-fg'}`.trim()
@@ -32,7 +32,7 @@ function onClick() {
32
32
  <button
33
33
  type="button"
34
34
  @click="onClick()"
35
- class="flex items-center gap-3 focus:outline-none focus-visible:ring-2 focus-visible:ring-accent-solid rounded-panel p-2"
35
+ class="flex items-center gap-3 focus:outline-none focus-visible:ring-2 focus-visible:ring-accent rounded-panel p-2"
36
36
  >
37
37
  <div class="{{ isComplete ? 'bg-accent-solid text-accent-ink' : isCurrent ? 'bg-accent-solid text-accent-ink ring-4 ring-accent-soft' : 'bg-surface-sunken text-fg-strong' }} w-10 h-10 rounded-full flex items-center justify-center font-semibold transition-all">
38
38
  @if(isComplete)
@@ -16,7 +16,7 @@ const sizeConfig = {
16
16
  // a SyntaxError that killed the whole component rather than mis-sizing it.
17
17
  export const config = sizeConfig[size] || sizeConfig.md
18
18
 
19
- export const trackBaseClasses = 'relative inline-flex shrink-0 cursor-pointer border-2 border-transparent rounded-full transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-offset-2 focus-visible:ring-offset-neutral-300 dark:focus-visible:ring-offset-neutral-700'
19
+ export const trackBaseClasses = 'relative inline-flex shrink-0 cursor-pointer border-2 border-transparent rounded-full transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-panel'
20
20
  export const trackDisabledClasses = disabled ? 'opacity-50 cursor-not-allowed pointer-events-none' : ''
21
21
  export const thumbBaseClasses = 'pointer-events-none inline-block transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out'
22
22
  </script>
@@ -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-accent-solid focus:ring-offset-2 focus:ring-offset-panel'
117
+ const base = 'px-4 py-2 font-medium text-sm transition-colors duration-150 focus:outline-none focus:ring-2 focus:ring-accent 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-accent text-accent' : 'border-transparent text-fg-muted hover:text-fg hover:border-line-strong'}`