@stacksjs/components 0.2.345 → 0.2.346
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Accordion-kescmd4y.stx → Accordion-py9ntmst.stx} +1 -1
- package/dist/{AccordionItem-1q9k2qyc.stx → AccordionItem-asmsqxz9.stx} +1 -1
- package/dist/{Audio-tnjd6anm.stx → Audio-byv8kkvt.stx} +1 -1
- package/dist/{Avatar-7vegrsg6.stx → Avatar-axrzqsdk.stx} +5 -5
- package/dist/{Badge-439n5p0a.stx → Badge-4jxqhkv9.stx} +1 -1
- package/dist/{Breadcrumb-7hwnfyyw.stx → Breadcrumb-pach6f1f.stx} +2 -2
- package/dist/{ComboboxInput-9q87fb22.stx → ComboboxInput-4jcpvw7e.stx} +1 -1
- package/dist/{ComboboxOption-qm38e8e9.stx → ComboboxOption-vnb67p8d.stx} +1 -1
- package/dist/{CommandPalette-mkqqep2s.stx → CommandPalette-6rjcgske.stx} +1 -1
- package/dist/{CommandPaletteItem-chdw0070.stx → CommandPaletteItem-6rp133ta.stx} +1 -1
- package/dist/{DefaultPaymentMethod-v11254p4.stx → DefaultPaymentMethod-r0hcjajr.stx} +1 -1
- package/dist/{Drawer-rymajw9v.stx → Drawer-jcdj3qk2.stx} +1 -1
- package/dist/{DropdownButton-n6gsmcte.stx → DropdownButton-tx9hb2de.stx} +1 -1
- package/dist/{DropdownItem-qs772agw.stx → DropdownItem-wht1vcm5.stx} +1 -1
- package/dist/{DropdownItems-yf25hdh1.stx → DropdownItems-v12h6zpf.stx} +1 -1
- package/dist/{ListboxButton-w3vfvte7.stx → ListboxButton-t43pp03e.stx} +1 -1
- package/dist/{ListboxOption-ea0j02a8.stx → ListboxOption-9c9jpz1n.stx} +1 -1
- package/dist/{Login-nmmkt5yd.stx → Login-j3pc04ka.stx} +7 -7
- package/dist/{Navigator-7rspzjys.stx → Navigator-1yk1c3pp.stx} +2 -2
- package/dist/{NumberInput-54d23rq0.stx → NumberInput-awn66hfs.stx} +5 -5
- package/dist/{Pagination-bvk2ss15.stx → Pagination-z9jxnaeq.stx} +3 -3
- package/dist/{PasswordInput-3snyppj4.stx → PasswordInput-hradj0xd.stx} +4 -4
- package/dist/{PaymentMethods-tttjpa1m.stx → PaymentMethods-z4hhr0kv.stx} +3 -3
- package/dist/{PopoverButton-panmcysh.stx → PopoverButton-70th24xc.stx} +1 -1
- package/dist/{Progress-cj0z83rx.stx → Progress-bv65bwh8.stx} +2 -2
- package/dist/{RadioGroup-jg9s4ttg.stx → RadioGroup-hzz4xep9.stx} +1 -1
- package/dist/{RadioGroupOption-zvp0y9sn.stx → RadioGroupOption-7fcgfsah.stx} +1 -1
- package/dist/{Select-pj584jza.stx → Select-sbr8dqzn.stx} +3 -3
- package/dist/{Signup-wa31mdyc.stx → Signup-77y9ea7t.stx} +6 -6
- package/dist/{Spinner-grahbp9a.stx → Spinner-vhnc3y03.stx} +3 -3
- package/dist/{StepperStep-xw55xjh0.stx → StepperStep-34kwv0t0.stx} +2 -2
- package/dist/{SubscriptionCheckout-5c1cy7az.stx → SubscriptionCheckout-pggq5a4k.stx} +7 -7
- package/dist/{TabBarItem-cnxhgy92.stx → TabBarItem-wv2r8496.stx} +1 -1
- package/dist/{TableBody-drxyz5jh.stx → TableBody-y49bqb1p.stx} +1 -1
- package/dist/{Tabs-esrn6j8p.stx → Tabs-51vr631j.stx} +2 -2
- package/dist/{TextInput-9wqzeeg1.stx → TextInput-48ghmccm.stx} +6 -6
- package/dist/{Textarea-xwkdg8se.stx → Textarea-dndmk6ah.stx} +3 -3
- package/dist/{TwoFactorChallenge-0200pjc0.stx → TwoFactorChallenge-n8fcm5ct.stx} +4 -4
- package/dist/{VirtualTable-jhdnq8xe.stx → VirtualTable-kp7b3wyv.stx} +1 -1
- package/dist/index.js +2 -2
- package/package.json +3 -3
- package/src/components/Footer.stx +8 -8
- package/src/components/Hero.stx +2 -2
- package/src/ui/accordion/Accordion.stx +1 -1
- package/src/ui/accordion/AccordionItem.stx +1 -1
- package/src/ui/audio/Audio.stx +1 -1
- package/src/ui/auth/Login.stx +7 -7
- package/src/ui/auth/Signup.stx +6 -6
- package/src/ui/auth/TwoFactorChallenge.stx +4 -4
- package/src/ui/avatar/Avatar.stx +5 -5
- package/src/ui/badge/Badge.stx +1 -1
- package/src/ui/breadcrumb/Breadcrumb.stx +2 -2
- package/src/ui/combobox/ComboboxInput.stx +1 -1
- package/src/ui/combobox/ComboboxOption.stx +1 -1
- package/src/ui/command-palette/CommandPalette.stx +1 -1
- package/src/ui/command-palette/CommandPaletteItem.stx +1 -1
- package/src/ui/drawer/Drawer.stx +1 -1
- package/src/ui/dropdown/DropdownButton.stx +1 -1
- package/src/ui/dropdown/DropdownItem.stx +1 -1
- package/src/ui/dropdown/DropdownItems.stx +1 -1
- package/src/ui/input/NumberInput.stx +5 -5
- package/src/ui/input/PasswordInput.stx +4 -4
- package/src/ui/input/TextInput.stx +6 -6
- package/src/ui/listbox/ListboxButton.stx +1 -1
- package/src/ui/listbox/ListboxOption.stx +1 -1
- package/src/ui/mobile/TabBarItem.stx +1 -1
- package/src/ui/navigator/Navigator.stx +2 -2
- package/src/ui/pagination/Pagination.stx +3 -3
- package/src/ui/payment/DefaultPaymentMethod.stx +1 -1
- package/src/ui/payment/PaymentMethods.stx +3 -3
- package/src/ui/payment/SubscriptionCheckout.stx +7 -7
- package/src/ui/popover/PopoverButton.stx +1 -1
- package/src/ui/progress/Progress.stx +2 -2
- package/src/ui/radio-group/RadioGroup.stx +1 -1
- package/src/ui/radio-group/RadioGroupOption.stx +1 -1
- package/src/ui/select/Select.stx +3 -3
- package/src/ui/spinner/Spinner.stx +3 -3
- package/src/ui/stepper/StepperStep.stx +2 -2
- package/src/ui/table/TableBody.stx +1 -1
- package/src/ui/tabs/Tabs.stx +2 -2
- package/src/ui/textarea/Textarea.stx +3 -3
- package/src/ui/virtual-table/VirtualTable.stx +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script server>
|
|
2
2
|
export const className = $props.className || ''
|
|
3
3
|
|
|
4
|
-
const baseClasses = 'bg-
|
|
4
|
+
const baseClasses = 'bg-content divide-y divide-line'
|
|
5
5
|
const bodyClasses = `${baseClasses} ${className}`.trim()
|
|
6
6
|
</script>
|
|
7
7
|
|
|
@@ -114,10 +114,10 @@ function isActive(index) {
|
|
|
114
114
|
|
|
115
115
|
function getTabClasses(index) {
|
|
116
116
|
const isActiveTab = isActive(index)
|
|
117
|
-
const base = 'px-4 py-2 font-medium text-sm transition-colors duration-150 focus:outline-none focus:ring-2 focus:ring-
|
|
117
|
+
const base = 'px-4 py-2 font-medium text-sm transition-colors duration-150 focus:outline-none focus:ring-2 focus:ring-accent-solid focus:ring-offset-2 focus:ring-offset-panel'
|
|
118
118
|
if (variant === 'line') {
|
|
119
119
|
const border = orientation === 'horizontal' ? 'border-b-2' : 'border-r-2'
|
|
120
|
-
return `${base} ${border} ${isActiveTab ? 'border-
|
|
120
|
+
return `${base} ${border} ${isActiveTab ? 'border-accent text-accent' : 'border-transparent text-fg-muted hover:text-fg hover:border-line-strong'}`
|
|
121
121
|
}
|
|
122
122
|
if (variant === 'pills') {
|
|
123
123
|
return `${base} rounded-control ${isActiveTab ? 'bg-field text-fg shadow-sm' : 'text-fg-muted hover:text-fg'}`
|
|
@@ -29,10 +29,10 @@ export const inputClassName = $props.inputClassName || ''
|
|
|
29
29
|
const sizeClasses = { sm: 'px-3 py-1.5 text-sm', md: 'px-4 py-2 text-base', lg: 'px-5 py-2.5 text-lg' }
|
|
30
30
|
const iconSizeClasses = { sm: 'h-4 w-4', md: 'h-5 w-5', lg: 'h-6 w-6' }
|
|
31
31
|
|
|
32
|
-
const baseClasses = 'block w-full border-0 rounded-control shadow-sm ring-1 ring-inset transition-colors duration-200 focus:ring-2 focus:ring-inset
|
|
32
|
+
const baseClasses = 'block w-full border-0 rounded-control shadow-sm ring-1 ring-inset transition-colors duration-200 focus:ring-2 focus:ring-inset bg-field'
|
|
33
33
|
const stateClasses = error
|
|
34
|
-
? 'ring-danger-line text-danger-fg placeholder-danger
|
|
35
|
-
: 'ring-line-strong text-fg placeholder-fg-
|
|
34
|
+
? 'ring-danger-line text-danger-fg placeholder-danger focus:ring-danger-focus'
|
|
35
|
+
: 'ring-line-strong text-fg placeholder-fg-soft focus:ring-accent'
|
|
36
36
|
const disabledClasses = disabled
|
|
37
37
|
? 'opacity-50 cursor-not-allowed bg-surface'
|
|
38
38
|
: readonly
|
|
@@ -87,7 +87,7 @@ defineExpose({ value: inputValue, clear: onClear })
|
|
|
87
87
|
<div class="relative">
|
|
88
88
|
@if(leftIcon)
|
|
89
89
|
<div class="pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3">
|
|
90
|
-
<span class="{{ iconClasses }} text-fg-
|
|
90
|
+
<span class="{{ iconClasses }} text-fg-soft">{!! leftIcon !!}</span>
|
|
91
91
|
</div>
|
|
92
92
|
@endif
|
|
93
93
|
|
|
@@ -112,7 +112,7 @@ defineExpose({ value: inputValue, clear: onClear })
|
|
|
112
112
|
<button
|
|
113
113
|
type="button"
|
|
114
114
|
@click="onClear()"
|
|
115
|
-
class="text-fg-
|
|
115
|
+
class="text-fg-soft hover:text-fg-strong focus:outline-none"
|
|
116
116
|
aria-label="Clear input"
|
|
117
117
|
>
|
|
118
118
|
<svg class="{{ iconClasses }}" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
@@ -123,7 +123,7 @@ defineExpose({ value: inputValue, clear: onClear })
|
|
|
123
123
|
@endif
|
|
124
124
|
@if(rightIcon && !clearable)
|
|
125
125
|
<div class="pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3">
|
|
126
|
-
<span class="{{ iconClasses }} text-fg-
|
|
126
|
+
<span class="{{ iconClasses }} text-fg-soft">{!! rightIcon !!}</span>
|
|
127
127
|
</div>
|
|
128
128
|
@endif
|
|
129
129
|
</div>
|
|
@@ -16,10 +16,10 @@ export const resize = $props.resize || 'vertical'
|
|
|
16
16
|
export const className = $props.className || ''
|
|
17
17
|
|
|
18
18
|
const resizeClasses = { none: 'resize-none', vertical: 'resize-y', horizontal: 'resize-x', both: 'resize' }
|
|
19
|
-
const baseClasses = 'block w-full border-0 rounded-control shadow-sm ring-1 ring-inset transition-colors duration-200 focus:ring-2 focus:ring-inset px-4 py-2 text-base
|
|
19
|
+
const baseClasses = 'block w-full border-0 rounded-control shadow-sm ring-1 ring-inset transition-colors duration-200 focus:ring-2 focus:ring-inset px-4 py-2 text-base bg-field'
|
|
20
20
|
const stateClasses = error
|
|
21
|
-
? 'ring-danger-line text-danger-fg placeholder-danger
|
|
22
|
-
: 'ring-line-strong text-fg placeholder-fg-
|
|
21
|
+
? 'ring-danger-line text-danger-fg placeholder-danger focus:ring-danger-focus'
|
|
22
|
+
: 'ring-line-strong text-fg placeholder-fg-soft focus:ring-accent'
|
|
23
23
|
const disabledClasses = disabled
|
|
24
24
|
? 'opacity-50 cursor-not-allowed bg-surface'
|
|
25
25
|
: readonly
|
|
@@ -6,7 +6,7 @@ export const codeLength = $props.codeLength || 6
|
|
|
6
6
|
export const showRecoveryCode = $bool($props.showRecoveryCode, true)
|
|
7
7
|
export const className = $props.className || ''
|
|
8
8
|
|
|
9
|
-
export const containerClasses = `py-32
|
|
9
|
+
export const containerClasses = `py-32 bg-page ${className}`.trim()
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
12
|
<script client>
|
|
@@ -71,7 +71,7 @@ function onRecoveryCode(event) {
|
|
|
71
71
|
maxlength="1"
|
|
72
72
|
name="code-{{ i }}"
|
|
73
73
|
placeholder="-"
|
|
74
|
-
class="block w-full border-0 rounded-control px-2 py-2 text-center text-fg ring-1 ring-line-strong ring-inset sm:text-sm placeholder:text-fg-
|
|
74
|
+
class="block w-full border-0 rounded-control px-2 py-2 text-center text-fg ring-1 ring-line-strong ring-inset sm:text-sm placeholder:text-fg-soft sm:leading-6 focus:ring-2 focus:ring-accent focus:ring-inset bg-field"
|
|
75
75
|
@input="onCodeInput($event, {{ i }})"
|
|
76
76
|
@keydown="onKeyDown($event, {{ i }})"
|
|
77
77
|
/>
|
|
@@ -80,7 +80,7 @@ function onRecoveryCode(event) {
|
|
|
80
80
|
<div class="py-4">
|
|
81
81
|
<button
|
|
82
82
|
type="submit"
|
|
83
|
-
class="relative h-8 w-full flex items-center justify-center rounded-full bg-
|
|
83
|
+
class="relative h-8 w-full flex items-center justify-center rounded-full bg-accent-solid px-4 text-accent-ink font-semibold hover:bg-accent-solid-hover focus:outline-none focus:ring-2 focus:ring-accent focus:ring-offset-2"
|
|
84
84
|
>
|
|
85
85
|
Verify
|
|
86
86
|
</button>
|
|
@@ -99,7 +99,7 @@ function onRecoveryCode(event) {
|
|
|
99
99
|
<button
|
|
100
100
|
type="button"
|
|
101
101
|
@click="onRecoveryCode($event)"
|
|
102
|
-
class="text-xs text-
|
|
102
|
+
class="text-xs text-link hover:underline"
|
|
103
103
|
>
|
|
104
104
|
Use recovery code instead
|
|
105
105
|
</button>
|
|
@@ -13,7 +13,7 @@ export const totalHeight = data.length * rowHeight
|
|
|
13
13
|
export const containerClasses = `border border-line rounded-panel overflow-hidden ${className}`.trim()
|
|
14
14
|
export const headerClasses = `bg-surface border-b border-line flex`.trim()
|
|
15
15
|
export const headerCellClasses = `px-6 py-3 text-left text-xs font-medium text-fg-soft uppercase tracking-wider`.trim()
|
|
16
|
-
export const bodyClasses = `overflow-auto bg-
|
|
16
|
+
export const bodyClasses = `overflow-auto bg-content`.trim()
|
|
17
17
|
export const rowClasses = `absolute left-0 right-0 flex border-b border-line ${hoverable ? 'hover:bg-surface-hover' : ''}`.trim()
|
|
18
18
|
export const cellClasses = `px-6 py-4 text-sm text-fg`.trim()
|
|
19
19
|
</script>
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var me=import.meta.require;var ge={__stx:!0,src:"./components/CodeBlock.stx"};var xe={__stx:!0,src:"./components/Footer.stx"};var ve={__stx:!0,src:"./components/Hero.stx"};var we={__stx:!0,src:"./components/Installation.stx"};function mi(e){let{code:t,onSuccess:s,onError:o,timeout:a=2000}=e,i=!1,n=null;return{copied:i,copy:async()=>{try{if(!navigator.clipboard)throw Error("Clipboard API not available");await navigator.clipboard.writeText(t),i=!0,s?.(),n=setTimeout(()=>{i=!1,n=null},a)}catch(d){let h=d instanceof Error?d:Error("Failed to copy code");o?.(h),console.error("Failed to copy code:",h)}},reset:()=>{if(i=!1,n)clearTimeout(n),n=null}}}async function gi(e){try{return await navigator.clipboard.writeText(e),!0}catch(t){return console.error("Failed to copy to clipboard:",t),!1}}function ye(){if(typeof window>"u")return"light";return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Q(e){return e==="system"?ye():e}function vi(e={}){let{storageKey:t="theme",defaultTheme:s="system"}=e,o=s;if(typeof window<"u"&&typeof localStorage<"u"){let c=localStorage.getItem(t);if(c)o=c}let a=Q(o)==="dark",i=(c)=>{let d=Q(c);if(typeof document<"u")if(d==="dark")document.documentElement.classList.add("dark");else document.documentElement.classList.remove("dark");if(typeof localStorage<"u")localStorage.setItem(t,c)},n=(c)=>{o=c,i(c)},r=()=>{let d=Q(o)==="dark"?"light":"dark";n(d)};if(i(o),typeof window<"u"&&o==="system")window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(c)=>{if(o==="system")i("system")});return{isDark:a,theme:o,toggle:r,setTheme:n}}function Ce(e,t){if(typeof document>"u")return;document.title=t?t.replace("%s",e):e}function S(e,t,s=!1){if(typeof document>"u")return;let o=s?"property":"name",a=document.querySelector(`meta[${o}="${e}"]`);if(!a)a=document.createElement("meta"),a.setAttribute(o,e),document.head.appendChild(a);a.setAttribute("content",t)}function $e(e,t){if(typeof document>"u")return;let s=document.querySelector(`link[rel="${e}"]`);if(!s)s=document.createElement("link"),s.setAttribute("rel",e),document.head.appendChild(s);s.setAttribute("href",t)}function yi(e){let{title:t,description:s,author:o,keywords:a,ogImage:i,ogImageWidth:n,ogImageHeight:r,twitterCard:c="summary_large_image",twitterSite:d,twitterCreator:h,canonical:p}=e;if(t)Ce(t),S("og:title",t,!0),S("twitter:title",t);if(s)S("description",s),S("og:description",s,!0),S("twitter:description",s);if(o)S("author",o);if(a&&a.length>0)S("keywords",a.join(", "));if(i)S("og:image",i,!0),S("twitter:image",i);if(n)S("og:image:width",n,!0);if(r)S("og:image:height",r,!0);if(S("twitter:card",c),d)S("twitter:site",d);if(h)S("twitter:creator",h);if(p)$e("canonical",p);if(S("og:type","website",!0),typeof window<"u")S("og:url",window.location.href,!0)}function Ci(e){let t=[],{title:s,description:o,author:a,keywords:i,ogImage:n,ogImageWidth:r,ogImageHeight:c,twitterCard:d="summary_large_image",twitterSite:h,twitterCreator:p,canonical:m}=e;if(s)t.push(`<title>${T(s)}</title>`),t.push(`<meta property="og:title" content="${T(s)}" />`),t.push(`<meta name="twitter:title" content="${T(s)}" />`);if(o)t.push(`<meta name="description" content="${T(o)}" />`),t.push(`<meta property="og:description" content="${T(o)}" />`),t.push(`<meta name="twitter:description" content="${T(o)}" />`);if(a)t.push(`<meta name="author" content="${T(a)}" />`);if(i&&i.length>0)t.push(`<meta name="keywords" content="${T(i.join(", "))}" />`);if(n)t.push(`<meta property="og:image" content="${T(n)}" />`),t.push(`<meta name="twitter:image" content="${T(n)}" />`);if(r)t.push(`<meta property="og:image:width" content="${T(r)}" />`);if(c)t.push(`<meta property="og:image:height" content="${T(c)}" />`);if(t.push(`<meta name="twitter:card" content="${T(d)}" />`),h)t.push(`<meta name="twitter:site" content="${T(h)}" />`);if(p)t.push(`<meta name="twitter:creator" content="${T(p)}" />`);if(m)t.push(`<link rel="canonical" href="${T(m)}" />`);return t.push('<meta property="og:type" content="website" />'),t.join(`
|
|
3
|
-
`)}function T(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function ki(e,t,s={}){let{enabled:o=!0,ignore:a=[]}=s,i=(n)=>{if(!o||!e)return;let r=n.target;if(!e.contains(r)){if(!a.some((d)=>{let h=document.querySelectorAll(d);return Array.from(h).some((p)=>p.contains(r))}))t(n)}};if(typeof document<"u")document.addEventListener("mousedown",i),document.addEventListener("touchstart",i);return()=>{if(typeof document<"u")document.removeEventListener("mousedown",i),document.removeEventListener("touchstart",i)}}function Ti(e,t={}){let{enabled:s=!0,initialFocus:o=null,returnFocus:a=!0,fallbackFocus:i=null}=t,n=null,r=!1;function c(){if(!e)return[];let f=["a[href]","button:not([disabled])","textarea:not([disabled])","input:not([disabled])","select:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(",");return Array.from(e.querySelectorAll(f))}function d(f){if(!s||!r||!e)return;let w=c();if(w.length===0){f.preventDefault();return}let v=w[0],k=w[w.length-1];if(f.shiftKey){if(document.activeElement===v||document.activeElement===e)f.preventDefault(),k.focus()}else if(document.activeElement===k)f.preventDefault(),v.focus()}function h(f){if(f.key==="Escape"&&s&&r)m()}function p(){if(!s||!e||r)return;if(n=document.activeElement,o)o.focus();else{let f=c();if(f.length>0)f[0].focus();else if(i)i.focus();else e.focus()}document.addEventListener("keydown",d),document.addEventListener("keydown",h),r=!0}function m(){if(!r)return;if(document.removeEventListener("keydown",d),document.removeEventListener("keydown",h),a&&n)n.focus();r=!1}return{activate:p,deactivate:m}}function Ii(e,t={}){let{enabled:s=!0,preventDefault:o=!0,stopPropagation:a=!1,target:i=typeof document<"u"?document:null}=t,n=Array.isArray(e)?e:[e],r=(c)=>{if(!s)return;n.forEach((d)=>{if(!(Array.isArray(d.key)?d.key:[d.key]).some((m)=>m.toLowerCase()===c.key.toLowerCase()))return;if(d.ctrl!==void 0&&d.ctrl!==c.ctrlKey)return;if(d.shift!==void 0&&d.shift!==c.shiftKey)return;if(d.alt!==void 0&&d.alt!==c.altKey)return;if(d.meta!==void 0&&d.meta!==c.metaKey)return;if(o)c.preventDefault();if(a)c.stopPropagation();d.handler(c)})};if(i)i.addEventListener("keydown",r);return()=>{if(i)i.removeEventListener("keydown",r)}}var Ni={ESCAPE:"Escape",ENTER:"Enter",SPACE:" ",TAB:"Tab",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",HOME:"Home",END:"End",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown"};function zi(e,t,s={}){let{serializer:o=JSON.stringify,deserializer:a=JSON.parse,onError:i=console.error}=s,n=t;try{if(typeof window<"u"){let p=window.localStorage.getItem(e);if(p!==null)n=a(p)}}catch(p){i(p)}let r=n,c=new Set;function d(p){try{let m=typeof p==="function"?p(r):p;if(r=m,typeof window<"u")window.localStorage.setItem(e,o(m));c.forEach((f)=>f(m))}catch(m){i(m)}}function h(){try{if(r=t,typeof window<"u")window.localStorage.removeItem(e);c.forEach((p)=>p(t))}catch(p){i(p)}}if(typeof window<"u"){let p=(m)=>{if(m.key===e&&m.newValue!==null)try{let f=a(m.newValue);r=f,c.forEach((w)=>w(f))}catch(f){i(f)}else if(m.key===e&&m.newValue===null)r=t,c.forEach((f)=>f(t))};window.addEventListener("storage",p)}return{value:r,setValue:d,removeValue:h}}function M(e,t={}){let{defaultValue:s=!1}=t,o=s,a=null;if(typeof window<"u"&&"matchMedia"in window){a=window.matchMedia(e),o=a.matches;let n=(r)=>{o=r.matches};if(a.addEventListener)a.addEventListener("change",n);else a.addListener(n)}function i(){if(a)o=a.matches}return{matches:o,updateMatches:i}}var q={xs:"(min-width: 320px)",sm:"(min-width: 640px)",md:"(min-width: 768px)",lg:"(min-width: 1024px)",xl:"(min-width: 1280px)","2xl":"(min-width: 1536px)",mobile:"(max-width: 767px)",tablet:"(min-width: 768px) and (max-width: 1023px)",desktop:"(min-width: 1024px)",dark:"(prefers-color-scheme: dark)",light:"(prefers-color-scheme: light)",reducedMotion:"(prefers-reduced-motion: reduce)",portrait:"(orientation: portrait)",landscape:"(orientation: landscape)"};function Li(e){return M(q[e])}function Ei(){return M(q.mobile)}function Oi(){return M(q.desktop)}function Ri(){return M(q.dark)}function Mi(){return M(q.reducedMotion)}var re=["gray","neutral","slate","zinc","red","green","yellow","blue","indigo"],ji="--stx-color";function ke(e,t){return t===void 0?`var(${e})`:`var(${e}, ${t})`}function Bi(e={}){let t={};for(let s of re){let o=e[s];if(!o||typeof o==="string")continue;let a={};for(let[i,n]of Object.entries(o))a[i]=ke(`--stx-color-${s}-${i}`,n);t[s]=a}return t}function Wi(e={}){let t=[];for(let s of re){let o=e[s];if(!o||typeof o==="string")continue;for(let a of Object.keys(o))t.push(`--stx-color-${s}-${a}`)}return t}var Te="./Accordion-
|
|
3
|
+
`)}function T(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function ki(e,t,s={}){let{enabled:o=!0,ignore:a=[]}=s,i=(n)=>{if(!o||!e)return;let r=n.target;if(!e.contains(r)){if(!a.some((d)=>{let h=document.querySelectorAll(d);return Array.from(h).some((p)=>p.contains(r))}))t(n)}};if(typeof document<"u")document.addEventListener("mousedown",i),document.addEventListener("touchstart",i);return()=>{if(typeof document<"u")document.removeEventListener("mousedown",i),document.removeEventListener("touchstart",i)}}function Ti(e,t={}){let{enabled:s=!0,initialFocus:o=null,returnFocus:a=!0,fallbackFocus:i=null}=t,n=null,r=!1;function c(){if(!e)return[];let f=["a[href]","button:not([disabled])","textarea:not([disabled])","input:not([disabled])","select:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(",");return Array.from(e.querySelectorAll(f))}function d(f){if(!s||!r||!e)return;let w=c();if(w.length===0){f.preventDefault();return}let v=w[0],k=w[w.length-1];if(f.shiftKey){if(document.activeElement===v||document.activeElement===e)f.preventDefault(),k.focus()}else if(document.activeElement===k)f.preventDefault(),v.focus()}function h(f){if(f.key==="Escape"&&s&&r)m()}function p(){if(!s||!e||r)return;if(n=document.activeElement,o)o.focus();else{let f=c();if(f.length>0)f[0].focus();else if(i)i.focus();else e.focus()}document.addEventListener("keydown",d),document.addEventListener("keydown",h),r=!0}function m(){if(!r)return;if(document.removeEventListener("keydown",d),document.removeEventListener("keydown",h),a&&n)n.focus();r=!1}return{activate:p,deactivate:m}}function Ii(e,t={}){let{enabled:s=!0,preventDefault:o=!0,stopPropagation:a=!1,target:i=typeof document<"u"?document:null}=t,n=Array.isArray(e)?e:[e],r=(c)=>{if(!s)return;n.forEach((d)=>{if(!(Array.isArray(d.key)?d.key:[d.key]).some((m)=>m.toLowerCase()===c.key.toLowerCase()))return;if(d.ctrl!==void 0&&d.ctrl!==c.ctrlKey)return;if(d.shift!==void 0&&d.shift!==c.shiftKey)return;if(d.alt!==void 0&&d.alt!==c.altKey)return;if(d.meta!==void 0&&d.meta!==c.metaKey)return;if(o)c.preventDefault();if(a)c.stopPropagation();d.handler(c)})};if(i)i.addEventListener("keydown",r);return()=>{if(i)i.removeEventListener("keydown",r)}}var Ni={ESCAPE:"Escape",ENTER:"Enter",SPACE:" ",TAB:"Tab",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",HOME:"Home",END:"End",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown"};function zi(e,t,s={}){let{serializer:o=JSON.stringify,deserializer:a=JSON.parse,onError:i=console.error}=s,n=t;try{if(typeof window<"u"){let p=window.localStorage.getItem(e);if(p!==null)n=a(p)}}catch(p){i(p)}let r=n,c=new Set;function d(p){try{let m=typeof p==="function"?p(r):p;if(r=m,typeof window<"u")window.localStorage.setItem(e,o(m));c.forEach((f)=>f(m))}catch(m){i(m)}}function h(){try{if(r=t,typeof window<"u")window.localStorage.removeItem(e);c.forEach((p)=>p(t))}catch(p){i(p)}}if(typeof window<"u"){let p=(m)=>{if(m.key===e&&m.newValue!==null)try{let f=a(m.newValue);r=f,c.forEach((w)=>w(f))}catch(f){i(f)}else if(m.key===e&&m.newValue===null)r=t,c.forEach((f)=>f(t))};window.addEventListener("storage",p)}return{value:r,setValue:d,removeValue:h}}function M(e,t={}){let{defaultValue:s=!1}=t,o=s,a=null;if(typeof window<"u"&&"matchMedia"in window){a=window.matchMedia(e),o=a.matches;let n=(r)=>{o=r.matches};if(a.addEventListener)a.addEventListener("change",n);else a.addListener(n)}function i(){if(a)o=a.matches}return{matches:o,updateMatches:i}}var q={xs:"(min-width: 320px)",sm:"(min-width: 640px)",md:"(min-width: 768px)",lg:"(min-width: 1024px)",xl:"(min-width: 1280px)","2xl":"(min-width: 1536px)",mobile:"(max-width: 767px)",tablet:"(min-width: 768px) and (max-width: 1023px)",desktop:"(min-width: 1024px)",dark:"(prefers-color-scheme: dark)",light:"(prefers-color-scheme: light)",reducedMotion:"(prefers-reduced-motion: reduce)",portrait:"(orientation: portrait)",landscape:"(orientation: landscape)"};function Li(e){return M(q[e])}function Ei(){return M(q.mobile)}function Oi(){return M(q.desktop)}function Ri(){return M(q.dark)}function Mi(){return M(q.reducedMotion)}var re=["gray","neutral","slate","zinc","red","green","yellow","blue","indigo"],ji="--stx-color";function ke(e,t){return t===void 0?`var(${e})`:`var(${e}, ${t})`}function Bi(e={}){let t={};for(let s of re){let o=e[s];if(!o||typeof o==="string")continue;let a={};for(let[i,n]of Object.entries(o))a[i]=ke(`--stx-color-${s}-${i}`,n);t[s]=a}return t}function Wi(e={}){let t=[];for(let s of re){let o=e[s];if(!o||typeof o==="string")continue;for(let a of Object.keys(o))t.push(`--stx-color-${s}-${a}`)}return t}var Te="./Accordion-py9ntmst.stx";var Ie="./AccordionItem-asmsqxz9.stx";var De="./Audio-byv8kkvt.stx";var Pe="./Login-j3pc04ka.stx";var Ee="./Signup-77y9ea7t.stx";var Re="./TwoFactorChallenge-n8fcm5ct.stx";var qe="./Avatar-axrzqsdk.stx";var Be="./Badge-4jxqhkv9.stx";var He="./Breadcrumb-pach6f1f.stx";import j from"process";var Ve="https://stacksjs.com/components";class A extends Error{component;context;constructor(e,t,s={}){let o=A.formatMessage(e,t,s);super(o);if(this.name="ComponentError",this.component=e,this.context={component:e,...s},Error.captureStackTrace)Error.captureStackTrace(this,A)}static formatMessage(e,t,s){let o=`[${e}] ${t}`;if(s.prop)o+=`
|
|
4
4
|
Prop: "${s.prop}"`;if(s.received!==void 0)o+=`
|
|
5
5
|
Received: ${JSON.stringify(s.received)}`;if(s.expected!==void 0){let a=Array.isArray(s.expected)?s.expected.map((i)=>JSON.stringify(i)).join(", "):JSON.stringify(s.expected);o+=`
|
|
6
6
|
Expected: ${a}`}if(s.details)o+=`
|
|
@@ -8,7 +8,7 @@ var me=import.meta.require;var ge={__stx:!0,src:"./components/CodeBlock.stx"};va
|
|
|
8
8
|
Documentation: ${s.docsUrl}`;else if(e)o+=`
|
|
9
9
|
Documentation: ${Ve}/${e.toLowerCase()}`;return o}toJSON(){return{name:this.name,message:this.message,component:this.component,context:this.context,stack:this.stack}}}var R={invalidProp(e,t,s,o){return new A(e,`Invalid prop value for "${t}"`,{prop:t,received:s,expected:o,details:Array.isArray(o)?`The "${t}" prop must be one of the allowed values`:`The "${t}" prop does not match the expected type`})},requiredProp(e,t){return new A(e,`Required prop "${t}" is missing`,{prop:t,details:`The "${t}" prop is required for ${e} to function correctly`})},invalidType(e,t,s,o){return new A(e,`Invalid type for prop "${t}"`,{prop:t,received:typeof s,expected:o,details:`Expected "${t}" to be of type ${o}, but received ${typeof s}`})},componentNotFound(e){return new A("ComponentLoader",`Component "${e}" not found`,{component:e,details:"Make sure the component is properly imported and registered"})},invalidChildren(e,t,s){return new A(e,"Invalid children",{received:typeof t,expected:s,details:`${e} expects ${s} as children`})},stateUpdate(e,t,s){return new A(e,`Failed to update state "${t}"`,{details:s.message})},eventHandler(e,t,s){return new A(e,`Error in "${t}" event handler`,{details:s.message})},render(e,t){return new A(e,"Failed to render component",{details:t.message})}},H=null;function bn(e){H=e}function mn(){H=null}function V(e,t={}){let{throwError:s=!0,logError:o=!0}=t;if(o&&j.env.NODE_ENV!=="production"){if(console.error("Component Error:",e),e instanceof A)console.group("Error Details"),console.log("Component:",e.component),console.log("Context:",e.context),console.groupEnd()}if(H)try{H(e)}catch(a){console.error("Error in error handler:",a)}if(s)throw e}function le(e,t,s){return(...o)=>{try{let a=e(...o);if(a instanceof Promise)return a.catch((i)=>{let n=R.eventHandler(t,s,i);throw V(n,{throwError:!1}),n});return a}catch(a){let i=R.eventHandler(t,s,a);throw V(i,{throwError:!1}),i}}}function Fe(e,t){if(!e)throw t}function Ke(e,t,s={}){if(j.env.NODE_ENV==="production")return;let o=A.formatMessage(e,t,s);console.warn(`\u26A0\uFE0F ${o}`)}function gn(e,t){if(j.env.NODE_ENV==="production")return;Fe(e,t)}function xn(e){let t=typeof j<"u"&&j.env.DEBUG==="true";return{log(...s){if(t)console.log(`[${e}]`,...s)},warn(s,o){Ke(e,s,o)},error(s,o){let a=new A(e,s,o);V(a,{throwError:!1})}}}function vn(e,t,s){try{return t()}catch(o){let a=R.render(e,o);return V(a,{throwError:!1}),s}}import _e from"process";var F=_e.env.NODE_ENV!=="production";class ${validate;message;isRequired;constructor(e,t,s=!1){this.validate=e;this.message=t;this.isRequired=s}get required(){return new $(this.validate,this.message,!0)}}var l={string:new $((e)=>typeof e==="string",(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`string\`.`),number:new $((e)=>typeof e==="number"&&!Number.isNaN(e),(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`number\`.`),boolean:new $((e)=>typeof e==="boolean",(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`boolean\`.`),func:new $((e)=>typeof e==="function",(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`function\`.`),object:new $((e)=>typeof e==="object"&&e!==null&&!Array.isArray(e),(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`object\`.`),array:new $((e)=>Array.isArray(e),(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`array\`.`),any:new $(()=>!0,()=>""),oneOf(e){return new $((t)=>e.includes(t),(t,s,o)=>`Invalid prop \`${s}\` of value \`${t}\` supplied to \`${o}\`, expected one of [${e.map((a)=>JSON.stringify(a)).join(", ")}].`)},oneOfType(e){return new $((t,s,o)=>e.some((a)=>a.validate(t,s,o)),(t,s,o)=>`Invalid prop \`${s}\` supplied to \`${o}\`, expected one of the specified types.`)},arrayOf(e){return new $((t,s,o)=>{if(!Array.isArray(t))return!1;return t.every((a,i)=>e.validate(a,`${s}[${i}]`,o))},(t,s,o)=>`Invalid prop \`${s}\` supplied to \`${o}\`, expected array of specified type.`)},shape(e){return new $((t,s,o)=>{if(typeof t!=="object"||t===null||Array.isArray(t))return!1;for(let[a,i]of Object.entries(e)){if(i.isRequired&&!(a in t))return!1;if(a in t&&!i.validate(t[a],`${s}.${a}`,o))return!1}return!0},(t,s,o)=>`Invalid prop \`${s}\` supplied to \`${o}\`, expected object matching specified shape.`)},instanceOf(e){return new $((t)=>t instanceof e,(t,s,o)=>`Invalid prop \`${s}\` supplied to \`${o}\`, expected instance of \`${e.name}\`.`)},custom(e,t){return new $(e,typeof t==="string"?()=>t:t)},min(e){return new $((t)=>typeof t==="number"&&t>=e,(t,s,o)=>`Invalid prop \`${s}\` of value \`${t}\` supplied to \`${o}\`, expected value >= ${e}.`)},max(e){return new $((t)=>typeof t==="number"&&t<=e,(t,s,o)=>`Invalid prop \`${s}\` of value \`${t}\` supplied to \`${o}\`, expected value <= ${e}.`)},range(e,t){return new $((s)=>typeof s==="number"&&s>=e&&s<=t,(s,o,a)=>`Invalid prop \`${o}\` of value \`${s}\` supplied to \`${a}\`, expected value between ${e} and ${t}.`)},pattern(e){return new $((t)=>typeof t==="string"&&e.test(t),(t,s,o)=>`Invalid prop \`${s}\` of value \`${t}\` supplied to \`${o}\`, expected value matching pattern ${e}.`)},email:new $((e)=>typeof e==="string"&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),(e,t,s)=>`Invalid prop \`${t}\` of value \`${e}\` supplied to \`${s}\`, expected valid email address.`),url:new $((e)=>{if(typeof e!=="string")return!1;try{let t=new URL(e);return!0}catch{return!1}},(e,t,s)=>`Invalid prop \`${t}\` of value \`${e}\` supplied to \`${s}\`, expected valid URL.`)};function Ge(e,t,s,o={}){let{throwOnError:a=!1,logWarnings:i=F}=o,n=[];if(!F)return{valid:!0,errors:[]};for(let[r,c]of Object.entries(s)){let d=t[r],h=d===void 0;if(c.isRequired&&h){let p=`Required prop \`${r}\` was not specified in \`${e}\`.`;n.push(p);continue}if(h)continue;if(!c.validate(d,r,e)){let p=c.message(d,r,e);n.push(p)}}if(n.length>0){if(i)console.group(`\u26A0\uFE0F Prop validation failed for \`${e}\``),n.forEach((r)=>console.warn(r)),console.groupEnd();if(a)throw Error(`Prop validation failed for \`${e}\`:
|
|
10
10
|
${n.join(`
|
|
11
|
-
`)}`)}return{valid:n.length===0,errors:n}}function D(e,t,s){return(o)=>Ge(e,o,t,s)}function Cn(e,t,s="value"){if(!F)return;if(!t.validate(e,s,"assertion"))throw Error(t.message(e,s,"assertion"))}function $n(e,t,s="value"){if(!F)return;if(!t.validate(e,s,"warning"))console.warn(t.message(e,s,"warning"))}var Ye="./Button-tcjt3m8s.stx";var Je={variant:l.oneOf(["primary","secondary","outline","ghost","danger"]),size:l.oneOf(["xs","sm","md","lg","xl"]),disabled:l.boolean,loading:l.boolean,type:l.oneOf(["button","submit","reset"]),fullWidth:l.boolean,leftIcon:l.string,rightIcon:l.string,className:l.string,onClick:l.func},In=D("Button",Je);function Nn(e){return le(e,"Button","onClick")}function Dn(e){if(e&&!["primary","secondary","outline","ghost","danger"].includes(e))throw R.invalidProp("Button","variant",e,["primary","secondary","outline","ghost","danger"])}function zn(e){if(e&&!["xs","sm","md","lg","xl"].includes(e))throw R.invalidProp("Button","size",e,["xs","sm","md","lg","xl"])}var Ze="./Calendar-ppqdw19s.stx";var et="./Card-r55zpjqh.stx";var st="./Checkbox-e7gn3w06.stx";var at="./Combobox-06x0nywb.stx";var nt="./ComboboxButton-g76stp1e.stx";var lt="./ComboboxInput-9q87fb22.stx";var dt="./ComboboxOption-qm38e8e9.stx";var ht="./ComboboxOptions-nbndbrxz.stx";var ft="./CommandPalette-mkqqep2s.stx";var mt="./CommandPaletteItem-chdw0070.stx";var xt="./Dialog-d1020hj6.stx";var wt="./DialogBackdrop-de5m5m4w.stx";var Ct="./DialogDescription-gth4c2kx.stx";var kt="./DialogPanel-vhdqymc2.stx";var Tt="./DialogTitle-0jjdk5ra.stx";var It="./Drawer-rymajw9v.stx";var Dt="./Dropdown-cmwge7vx.stx";var Pt="./DropdownButton-n6gsmcte.stx";var Et="./DropdownItem-qs772agw.stx";var Rt="./DropdownItems-yf25hdh1.stx";var qt="./Form-vbag14t1.stx";var jt={action:l.string,method:l.oneOf(["GET","POST","PUT","DELETE","PATCH"]),validationSchema:l.object,initialValues:l.object,validateOnChange:l.boolean,validateOnBlur:l.boolean,onSubmit:l.func,onError:l.func,className:l.string},Dr=D("Form",jt);var Wt="./Image-79xyzb5j.stx";var Vt="./EmailInput-agb8kqae.stx";var Kt="./NumberInput-54d23rq0.stx";var Gt="./PasswordInput-3snyppj4.stx";var Yt="./SearchInput-psbjk2ye.stx";var Xt="./TextInput-9wqzeeg1.stx";var Zt={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string},Qt={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,leftIcon:l.string,rightIcon:l.string,clearable:l.boolean,maxLength:l.number,showCount:l.boolean},es={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,min:l.number,max:l.number,step:l.number,showControls:l.boolean},ts={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,showStrength:l.boolean},ss={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,onSearch:l.func,loading:l.boolean},Hr=D("TextInput",Qt),Vr=D("EmailInput",Zt),Fr=D("PasswordInput",ts),Kr=D("NumberInput",es),_r=D("SearchInput",ss);var as="./Listbox-e5jreb0a.stx";var ns="./ListboxButton-w3vfvte7.stx";var ls="./ListboxLabel-ka0hfm7b.stx";var ds="./ListboxOption-ea0j02a8.stx";var hs="./ListboxOptions-qxrkrb8z.stx";var fs="./FilterChip-00ja5jhz.stx";var ms="./FilterChips-7pnzycfd.stx";var xs="./ListRow-8d3e1yxh.stx";var ws="./NavBar-qqrrhdnk.stx";var Cs="./SectionCard-8ctdacjr.stx";var ks="./TabBar-8143650x.stx";var Ts="./TabBarItem-cnxhgy92.stx";var Is="./Navigator-7rspzjys.stx";var Ds="./Notification-7wgk0sw6.stx";var Ps="./Pagination-bvk2ss15.stx";var Es="./Checkout-22wh3s22.stx";var Rs="./DefaultPaymentMethod-v11254p4.stx";var qs="./PaymentMethods-tttjpa1m.stx";var Bs="./SubscriptionCheckout-5c1cy7az.stx";var Hs="./Popover-3g8rgxt1.stx";var Fs="./PopoverButton-panmcysh.stx";var _s="./PopoverPanel-7771yf35.stx";var Us="./Portal-m73vz879.stx";var Js="./Progress-cj0z83rx.stx";var Zs="./Radio-nr8rbb6g.stx";var eo="./RadioGroup-jg9s4ttg.stx";var so="./RadioGroupDescription-z34r9avr.stx";var ao="./RadioGroupLabel-ka0hfm7b.stx";var no="./RadioGroupOption-zvp0y9sn.stx";var lo="./Select-pj584jza.stx";var po="./Sidebar-ve2asgf3.stx";var uo="./SidebarFooter-s7skj92y.stx";var bo="./SidebarHeader-esvby82n.stx";var go="./SidebarItem-r4f2pref.stx";var vo="./SidebarPinned-48kyk193.stx";var yo="./SidebarSection-5sqza2j6.stx";var $o="./SidebarSpace-bwv98azf.stx";var So="./SidebarSpaces-mdtrynr2.stx";var Ao="./SidebarSpaceSwitcher-1mycft2g.stx";var K={blue:"#0088ff",red:"#ff383c",pink:"#ff2d55",orange:"#ff8d28",yellow:"#ffcc00",green:"#34c759",teal:"#00c3d0",cyan:"#00c0e8",indigo:"#6155f5",purple:"#cb30e0",brown:"#ac7f5e",gray:"#8e8e93"},O={pane:["bg-[#f2f2f4]/90 dark:bg-[#1c1c1e]/88","backdrop-blur-[50px] backdrop-saturate-[180%]","text-black dark:text-white","select-none"].join(" "),selection:"accent",layers:{shimmerRim:!0},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-[10px] pb-[10px]",sectionHeader:["group/section flex w-full items-center","pl-[8px] pr-[6px] pt-[16px] pb-[5px]","text-[11px] font-semibold leading-[13px]","text-[#3c3c43]/60 dark:text-[#ebebf5]/60"].join(" "),sectionChevron:["i-f7-chevron-down h-[11px] w-[11px] ml-auto","text-[#3c3c43]/45 dark:text-[#ebebf5]/45","opacity-0 group-hover/section:opacity-100 transition-opacity duration-150","transition-transform duration-200"].join(" "),sectionGroup:"flex flex-col",item:{base:["flex w-full items-center","h-[32px] rounded-[8px] pl-[4px] pr-[8px]","text-[13px] leading-[16px] font-normal","text-black dark:text-white","transition-colors duration-150 ease-out","cursor-default"].join(" "),hover:"hover:bg-black/4 dark:hover:bg-white/6",active:"",pressed:"active:bg-black/10 dark:active:bg-white/18",disabled:"opacity-40 pointer-events-none",disclosure:"flex h-[16px] w-[18px] shrink-0 items-center justify-center",chevron:["i-f7-chevron-right h-[11px] w-[11px]","text-[#3c3c43]/55 dark:text-[#ebebf5]/55","transition-transform duration-200 ease-out"].join(" "),iconSlot:"flex h-[20px] w-[22px] shrink-0 items-center justify-center mr-[7px]",icon:"h-[17px] w-[17px]",image:"h-[20px] w-[20px] rounded-[4px] object-cover shadow-sm",label:"flex-1 truncate text-left",count:["ml-[8px] shrink-0 tabular-nums","text-[13px] leading-[16px]","text-[#3c3c43]/60 dark:text-[#ebebf5]/60"].join(" "),indentPerLevel:16}},Io={selection:"classes",pane:"bg-[#f4f4f3] dark:bg-neutral-950 text-zinc-950 dark:text-white select-none",layers:{},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-5 py-5",sectionHeader:"group/section flex w-full items-center gap-2.5 px-4 pb-2 pt-5 text-[13px] font-semibold uppercase tracking-[0.12em] text-zinc-400 dark:text-zinc-500",sectionChevron:"i-f7-chevron-down h-3 w-3 ml-auto opacity-0 group-hover/section:opacity-100 transition-opacity duration-150 transition-transform duration-200",sectionGroup:"flex flex-col space-y-1",item:{base:"flex w-full items-center gap-3 rounded-[16px] px-3.5 py-2 text-[14px] leading-tight transition-colors duration-150",hover:"hover:bg-[#ececea] hover:text-zinc-950 dark:hover:bg-white/10",active:"bg-[#e7e7e5] text-zinc-950 dark:bg-white/12 dark:text-white",pressed:"active:bg-[#e2e2e0] dark:active:bg-white/15",disabled:"opacity-50 pointer-events-none",disclosure:"flex h-4 w-4 shrink-0 items-center justify-center",chevron:"i-f7-chevron-right h-3 w-3 opacity-50 transition-transform duration-200",iconSlot:"flex h-5 w-5 shrink-0 items-center justify-center",icon:"h-[18px] w-[18px] text-zinc-500 dark:text-zinc-500",image:"h-5 w-5 rounded object-cover",label:"flex-1 truncate text-left text-zinc-700 dark:text-zinc-300",count:"ml-auto grid h-5 min-w-5 place-items-center rounded-full bg-white/70 px-1.5 text-[11px] font-medium text-zinc-500 shadow-sm dark:bg-white/10 dark:text-zinc-400",indentPerLevel:12}},No={selection:"classes",pane:"bg-[#f3f3f1]/48 dark:bg-neutral-950/32 backdrop-blur-3xl backdrop-saturate-150 text-zinc-950 dark:text-white select-none",layers:{tint:"bg-[linear-gradient(112deg,rgba(255,255,255,0.20)_0%,rgba(255,255,255,0.04)_45%,rgba(226,226,222,0.16)_100%)] dark:bg-[linear-gradient(112deg,rgba(255,255,255,0.08)_0%,rgba(255,255,255,0.02)_46%,rgba(255,255,255,0.06)_100%)]"},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-5 py-2",sectionHeader:"group/section flex w-full items-center gap-2.5 px-3 pb-1.5 pt-3 rounded-[14px] text-[12px] font-semibold uppercase tracking-[0.10em] text-zinc-500/80 dark:text-zinc-400/80",sectionChevron:"i-f7-chevron-down h-3 w-3 ml-auto opacity-0 group-hover/section:opacity-100 transition-opacity duration-150 transition-transform duration-200",sectionGroup:"flex flex-col space-y-1",item:{base:"flex w-full items-center gap-3 rounded-[14px] px-3 py-1.5 text-[13.5px] leading-tight transition-colors duration-150",hover:"hover:bg-white/38 hover:text-zinc-950 dark:hover:bg-white/10",active:"bg-[#e8e8e6]/90 text-zinc-950 dark:bg-white/12 dark:text-white",pressed:"active:bg-white/50 dark:active:bg-white/15",disabled:"opacity-50 pointer-events-none",disclosure:"flex h-4 w-4 shrink-0 items-center justify-center",chevron:"i-f7-chevron-right h-3 w-3 opacity-50 transition-transform duration-200",iconSlot:"flex h-5 w-5 shrink-0 items-center justify-center",icon:"h-[18px] w-[18px] text-zinc-600 dark:text-zinc-400",image:"h-5 w-5 rounded object-cover",label:"flex-1 truncate text-left text-zinc-700 dark:text-zinc-300",count:"ml-auto grid h-5 min-w-5 place-items-center rounded-full bg-white/72 px-1.5 text-[11px] font-medium text-zinc-500 shadow-sm dark:bg-white/10 dark:text-zinc-400",indentPerLevel:12}},Do={selection:"classes",pane:["bg-[#f7f5f1]/92 dark:bg-[#1a1a1c]/92","backdrop-blur-[40px] backdrop-saturate-[160%]","text-[#2c2a28] dark:text-[#ededf0]","select-none"].join(" "),layers:{tint:["bg-[linear-gradient(180deg,var(--stx-sidebar-tint,rgba(255,251,242,0.55))_0%,rgba(255,255,255,0)_38%)]","dark:bg-[linear-gradient(180deg,var(--stx-sidebar-tint,rgba(255,255,255,0.05))_0%,rgba(255,255,255,0)_42%)]"].join(" ")},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-[16px] pb-[8px]",sectionHeader:["group/section flex w-full items-center","px-[8px] pt-[14px] pb-[4px]","text-[11px] font-medium leading-[13px]","opacity-55"].join(" "),sectionChevron:["i-f7-chevron-down h-[10px] w-[10px] ml-auto","opacity-0 group-hover/section:opacity-100 transition-opacity duration-150","transition-transform duration-200"].join(" "),sectionGroup:"flex flex-col space-y-[2px]",item:{base:["flex w-full items-center","h-[30px] rounded-[8px] pl-[6px] pr-[8px]","text-[13px] leading-[16px] font-normal","text-current","transition-[background-color,box-shadow,color] duration-150 ease-out","cursor-default"].join(" "),hover:"hover:bg-white/55 dark:hover:bg-white/8",active:["bg-white dark:bg-white/14","font-medium","shadow-[0_1px_2px_rgba(0,0,0,0.08)] dark:shadow-[0_1px_2px_rgba(0,0,0,0.35)]","ring-1 ring-black/5 dark:ring-white/8"].join(" "),pressed:"active:bg-white/80 dark:active:bg-white/18",disabled:"opacity-40 pointer-events-none",disclosure:"flex h-[16px] w-[16px] shrink-0 items-center justify-center",chevron:["i-f7-chevron-right h-[10px] w-[10px] opacity-45","transition-transform duration-200 ease-out"].join(" "),iconSlot:"flex h-[18px] w-[18px] shrink-0 items-center justify-center mr-[8px]",icon:"h-[16px] w-[16px]",image:"h-[18px] w-[18px] rounded-[5px] object-cover shadow-sm",label:"flex-1 truncate text-left",count:["ml-[8px] shrink-0 tabular-nums","text-[12px] leading-[16px] opacity-45"].join(" "),indentPerLevel:14}},zo={...O,pane:"bg-stone-100 dark:bg-neutral-900 text-black dark:text-white select-none",layers:{}},Po={...O,pane:"bg-transparent text-black dark:text-white select-none",layers:{}},Lo={...O,pane:"bg-white/50 dark:bg-black/40 backdrop-blur-3xl backdrop-saturate-200 text-black dark:text-white select-none",layers:{}},ce={macos:O,tahoe:O,"macos-tahoe":O,"macos-latest":O,arc:Do,workspace:Io,desktop:No,solid:zo,transparent:Po,vibrancy:Lo};function Tc(e){return ce[e||"macos"]||ce.macos}function Ac(e){if(!e)return;return K[e]||e}var Eo=K.gray;function L(e,t,s){return`color-mix(in oklab, ${e} ${t}%, ${s})`}function de(e){return{light:{from:L(e,35,"#ffffff"),to:L(e,12.5,"#ffffff"),ink:L(e,22,"#17171b"),accent:L(e,88,"#2a2a30")},dark:{from:L(e,27,"#101014"),to:L(e,10,"#08080b"),ink:L(e,12,"#f4f4f7"),accent:L(e,74,"#ffffff")}}}function Dc(e,t){return`linear-gradient(180deg, ${e} 0%, ${t} 100%)`}function Oo(e){if(!e)return de(Eo);if(typeof e!=="string")return e;return de(K[e]||e)}function Ro(e){return[`--stx-space-light-from: ${e.light.from}`,`--stx-space-light-to: ${e.light.to}`,`--stx-space-light-ink: ${e.light.ink}`,`--stx-space-light-accent: ${e.light.accent}`,`--stx-space-dark-from: ${e.dark.from}`,`--stx-space-dark-to: ${e.dark.to}`,`--stx-space-dark-ink: ${e.dark.ink}`,`--stx-space-dark-accent: ${e.dark.accent}`].join("; ")}function pe(e,t,s,o){if(!e||!e.label)return null;return{id:e.id||`${t}-${s}`,label:e.label,icon:e.icon||o}}function Mo(e){let t=Oo(e.tint);return{id:e.id,label:e.label||"",icon:e.icon||"",pinned:e.pinned||[],sections:e.sections||[],action:pe(e.action,e.id,"action","i-f7-plus"),clear:pe(e.clear,e.id,"clear","i-f7-arrow-down"),tint:t,style:Ro(t),deferred:e.deferred===!0,showTitle:e.showTitle??!0}}function zc(e){return(e||[]).map(Mo)}function Pc(e,t){if(!t)return 0;let s=e.findIndex((o)=>o.id===t);return s===-1?0:s}function Lc(e){return e.map((t)=>t.tint)}var jo="./Skeleton-me2hwqrc.stx";var Wo="./Spinner-grahbp9a.stx";var Vo="./Stepper-rgbk76hd.stx";var Ko="./StepperStep-xw55xjh0.stx";class _{storage;namespace;watchers=new Map;encryptionKey="stx-storage-key";constructor(e="local",t=""){if(this.storage=e==="local"?globalThis.localStorage:globalThis.sessionStorage,this.namespace=t,typeof window<"u")window.addEventListener("storage",this.handleStorageEvent.bind(this))}handleStorageEvent(e){if(!e.key)return;let t=this.namespace&&e.key.startsWith(`${this.namespace}:`)?e.key.slice(this.namespace.length+1):e.key,s=this.watchers.get(t);if(s){let o=e.oldValue?JSON.parse(e.oldValue).value:null,a=e.newValue?JSON.parse(e.newValue).value:null;s.forEach((i)=>i(a,o,t))}}encrypt(e){let t="";for(let s=0;s<e.length;s++)t+=String.fromCharCode(e.charCodeAt(s)^this.encryptionKey.charCodeAt(s%this.encryptionKey.length));return btoa(t)}decrypt(e){try{let t=atob(e),s="";for(let o=0;o<t.length;o++)s+=String.fromCharCode(t.charCodeAt(o)^this.encryptionKey.charCodeAt(o%this.encryptionKey.length));return s}catch{return e}}compress(e){if(e.length<100)return e;let t={},s=256,o=[],a="";for(let i=0;i<e.length;i++){let n=e.charAt(i),r=a+n;if(t[r]!==void 0)a=r;else o.push(a.length>1?t[a]:a.charCodeAt(0)),t[r]=s++,a=n}if(a!=="")o.push(a.length>1?t[a]:a.charCodeAt(0));return JSON.stringify(o)}decompress(e){try{let t=JSON.parse(e);if(!Array.isArray(t))return e;let s={},o=256,a=String.fromCharCode(t[0]),i=a;for(let n=1;n<t.length;n++){let r=t[n],c;if(s[r]!==void 0)c=s[r];else if(r===o)c=a+a.charAt(0);else return e;i+=c,s[o++]=a+c.charAt(0),a=c}return i}catch{return e}}getKey(e){return this.namespace?`${this.namespace}:${e}`:e}set(e,t,s){let o=this.getKey(e),a=this.get(e),i={value:t,timestamp:Date.now(),expire:s?.expire,encrypted:s?.encrypt||!1,compressed:s?.compress||!1};try{let n=JSON.stringify(i);if(s?.compress)n=this.compress(n);if(s?.encrypt)n=this.encrypt(n);this.storage.setItem(o,n),this.notifyWatchers(e,t,a)}catch(n){console.error("Storage set error:",n)}}get(e){let t=this.getKey(e);try{let s=this.storage.getItem(t);if(!s)return null;if(s.match(/^[A-Z0-9+/]+=*$/i))try{s=this.decrypt(s)}catch{}if(s.startsWith("["))try{s=this.decompress(s)}catch{}let o=JSON.parse(s);if(o.expire&&Date.now()-o.timestamp>o.expire)return this.remove(e),null;return o.value}catch(s){return console.error("Storage get error:",s),null}}watch(e,t){if(!this.watchers.has(e))this.watchers.set(e,new Set);return this.watchers.get(e).add(t),()=>{let s=this.watchers.get(e);if(s){if(s.delete(t),s.size===0)this.watchers.delete(e)}}}notifyWatchers(e,t,s){let o=this.watchers.get(e);if(o)o.forEach((a)=>a(t,s,e))}remove(e){let t=this.getKey(e),s=this.get(e);this.storage.removeItem(t),this.notifyWatchers(e,null,s)}clear(){if(this.namespace)this.keys().forEach((t)=>this.remove(t));else this.storage.clear()}has(e){return this.get(e)!==null}keys(){let e=Object.keys(this.storage);if(this.namespace){let t=`${this.namespace}:`;return e.filter((s)=>s.startsWith(t)).map((s)=>s.slice(t.length))}return e}size(){return this.keys().length}getQuota(){if("storage"in navigator&&"estimate"in navigator.storage)return null;try{let e=0;for(let s=0;s<this.storage.length;s++){let o=this.storage.key(s);if(o){let a=this.storage.getItem(o)||"";e+=o.length+a.length}}let t=5242880;return{usage:e*2,quota:t,percentage:e*2/t*100}}catch{return null}}setMany(e,t){Object.entries(e).forEach(([s,o])=>{this.set(s,o,t)})}getMany(e){let t={};return e.forEach((s)=>{t[s]=this.get(s)}),t}removeMany(e){e.forEach((t)=>this.remove(t))}}var id={local:new _("local"),session:new _("session")};function nd(e="local",t){return new _(e,t)}var Go="./Switch-fxbw7s16.stx";var Yo="./Table-akbk3t5q.stx";var Xo="./TableBody-drxyz5jh.stx";var Qo="./TableCell-8swtcq8s.stx";var ta="./TableHead-e9xvjx2j.stx";var oa="./TableHeader-qsc3e208.stx";var ia="./TableRow-ytr6b5by.stx";var ra="./TabPanel-5htevsq6.stx";var ca="./Tabs-esrn6j8p.stx";var pa="./Teleport-c8nn3757.stx";var ua="./Textarea-xwkdg8se.stx";var ba="./Tooltip-g2j17eg9.stx";var ga="./Transition-yrvqbhjy.stx";var va="./Video-rhy7dskw.stx";var ya="./VirtualList-fa7v5a3h.stx";var $a="./VirtualTable-jhdnq8xe.stx";var ka=0;function he(e="a11y"){return`${e}-${++ka}-${Date.now()}`}function Jd(e,t,s={}){let{visible:o=!1,id:a=he("label")}=s,i=document.createElement(o?"label":"span");if(i.id=a,i.textContent=e,!o)Object.assign(i.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"});if(t)if(t.setAttribute("aria-labelledby",a),t.parentElement)t.parentElement.insertBefore(i,t);else document.body.appendChild(i);return a}function Xd(e,t){let s=he("desc"),o=document.createElement("span");if(o.id=s,o.textContent=e,Object.assign(o.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}),t)if(t.setAttribute("aria-describedby",s),t.parentElement)t.parentElement.insertBefore(o,t);else document.body.appendChild(o);return s}function Zd(e,t="polite"){let s=document.createElement("div");s.setAttribute("role","status"),s.setAttribute("aria-live",t),s.setAttribute("aria-atomic","true"),Object.assign(s.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}),document.body.appendChild(s),setTimeout(()=>{s.textContent=e},100),setTimeout(()=>{s.parentNode?.removeChild(s)},1000)}function ee(e){let t=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(",");return Array.from(e.querySelectorAll(t)).filter((s)=>s.offsetParent!==null)}function Qd(e,t={}){let{initialFocus:s,returnFocus:o,escapeDeactivates:a=!0,clickOutsideDeactivates:i=!0,allowOutsideClick:n=!1,onActivate:r,onDeactivate:c}=t,d=!1,h=!1,p=null,m=(x)=>{if(h)return;if(a&&x.key==="Escape"){x.preventDefault(),v();return}if(x.key==="Tab"){let C=ee(e);if(C.length===0){x.preventDefault();return}let I=C[0],P=C[C.length-1];if(x.shiftKey){if(document.activeElement===I)x.preventDefault(),P.focus()}else if(document.activeElement===P)x.preventDefault(),I.focus()}},f=(x)=>{if(h)return;if(!e.contains(x.target)){if(typeof n==="function"){if(!n(x)&&i)v()}else if(!n&&i)v()}};function w(){if(d)return;d=!0,p=document.activeElement;let x=s||ee(e)[0];if(x&&typeof x.focus==="function")x.focus();document.addEventListener("keydown",m),document.addEventListener("click",f),r?.()}function v(){if(!d)return;d=!1;let x=o||p;if(x&&typeof x.focus==="function")x.focus();document.removeEventListener("keydown",m),document.removeEventListener("click",f),c?.()}function k(){h=!0}function g(){h=!1}return{activate:w,deactivate:v,pause:k,unpause:g}}function ep(e,t={}){let{selector:s='[role="option"], [role="menuitem"], [role="tab"], button',initialIndex:o=0,orientation:a="both",loop:i=!0,onFocusChange:n}=t,r=o,c=()=>{return Array.from(e.querySelectorAll(s))},d=(p)=>{let m=c();if(p<0||p>=m.length)return;m.forEach((f,w)=>{if(w===p){if(f.setAttribute("tabindex","0"),typeof f.focus==="function")f.focus()}else f.setAttribute("tabindex","-1")}),r=p,n?.(p,m[p])},h=(p)=>{let f=c().length-1,w=!1,v=r;switch(p.key){case"ArrowRight":if(a==="horizontal"||a==="both"){if(v=r+1,v>f)v=i?0:f;w=!0}break;case"ArrowLeft":if(a==="horizontal"||a==="both"){if(v=r-1,v<0)v=i?f:0;w=!0}break;case"ArrowDown":if(a==="vertical"||a==="both"){if(v=r+1,v>f)v=i?0:f;w=!0}break;case"ArrowUp":if(a==="vertical"||a==="both"){if(v=r-1,v<0)v=i?f:0;w=!0}break;case"Home":v=0,w=!0;break;case"End":v=f,w=!0;break}if(w)p.preventDefault(),d(v)};return d(o),e.addEventListener("keydown",h),()=>{e.removeEventListener("keydown",h)}}var tp={Enter:"Enter",Space:" ",Escape:"Escape",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",Tab:"Tab",Home:"Home",End:"End",PageUp:"PageUp",PageDown:"PageDown"};function sp(e){return document.activeElement===e}function op(e,t){let s=t||document.activeElement,o=ee(document.body),a=o.indexOf(s);if(a===-1)return;let i=e==="next"?a+1:a-1,n=o[i];if(n)n.focus()}function ap(e){if(e.getAttribute("aria-hidden")==="true")return!1;let t=window.getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden")return!1;return!0}var ip={setExpanded(e,t){e.setAttribute("aria-expanded",String(t))},setSelected(e,t){e.setAttribute("aria-selected",String(t))},setChecked(e,t){e.setAttribute("aria-checked",String(t))},setDisabled(e,t){if(e.setAttribute("aria-disabled",String(t)),t)e.setAttribute("tabindex","-1");else e.removeAttribute("tabindex")},setHidden(e,t){if(t)e.setAttribute("aria-hidden","true");else e.removeAttribute("aria-hidden")},setPressed(e,t){e.setAttribute("aria-pressed",String(t))},setInvalid(e,t){e.setAttribute("aria-invalid",String(t))},setRequired(e,t){e.setAttribute("aria-required",String(t))},setLive(e,t){e.setAttribute("aria-live",t)},setBusy(e,t){e.setAttribute("aria-busy",String(t))}};function np(e){let t=document.createElement("span");return t.textContent=e,t.className="sr-only",Object.assign(t.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}),t}function rp(){if(typeof window.matchMedia==="function")return window.matchMedia("(prefers-reduced-motion: reduce)").matches;return!1}function lp(){if(typeof window.matchMedia==="function")return window.matchMedia("(prefers-contrast: high)").matches;return!1}function cp(){if(typeof window.matchMedia==="function"){if(window.matchMedia("(prefers-color-scheme: dark)").matches)return"dark";if(window.matchMedia("(prefers-color-scheme: light)").matches)return"light"}return null}function dp(e,t="Skip to main content"){let s=document.createElement("a");return s.href=`#${e}`,s.textContent=t,s.className="skip-link",Object.assign(s.style,{position:"absolute",top:"-40px",left:"0",background:"#000",color:"#fff",padding:"8px",textDecoration:"none",zIndex:"100"}),s.addEventListener("focus",()=>{s.style.top="0"}),s.addEventListener("blur",()=>{s.style.top="-40px"}),s}function pp(e){let t=[],s=(o)=>{let a=e.getAttribute(o);if(a){let i=a.split(" ");for(let n of i)if(!document.getElementById(n))t.push(`${o} references non-existent ID: ${n}`)}};return s("aria-labelledby"),s("aria-describedby"),s("aria-controls"),s("aria-owns"),s("aria-activedescendant"),t}var Sa=(e,t,s,o)=>{return s*e/o+t},Ta=(e,t,s,o)=>{return e/=o,s*e*e+t},Aa=(e,t,s,o)=>{return e/=o,-s*e*(e-2)+t},Ia=(e,t,s,o)=>{if(e/=o/2,e<1)return s/2*e*e+t;return e--,-s/2*(e*(e-2)-1)+t},Na=(e,t,s,o)=>{return e/=o,s*e*e*e+t},Da=(e,t,s,o)=>{return e/=o,e--,s*(e*e*e+1)+t},za=(e,t,s,o)=>{if(e/=o/2,e<1)return s/2*e*e*e+t;return e-=2,s/2*(e*e*e+2)+t},Pa=(e,t,s,o)=>{return e/=o,s*e*e*e*e+t},La=(e,t,s,o)=>{return e/=o,e--,-s*(e*e*e*e-1)+t},Ea=(e,t,s,o)=>{if(e/=o/2,e<1)return s/2*e*e*e*e+t;return e-=2,-s/2*(e*e*e*e-2)+t},Oa=(e,t,s,o)=>{return e/=o,s*e*e*e*e*e+t},Ra=(e,t,s,o)=>{return e/=o,e--,s*(e*e*e*e*e+1)+t},Ma=(e,t,s,o)=>{if(e/=o/2,e<1)return s/2*e*e*e*e*e+t;return e-=2,s/2*(e*e*e*e*e+2)+t},qa=(e,t,s,o)=>{return-s*Math.cos(e/o*(Math.PI/2))+s+t},ja=(e,t,s,o)=>{return s*Math.sin(e/o*(Math.PI/2))+t},Ba=(e,t,s,o)=>{return-s/2*(Math.cos(Math.PI*e/o)-1)+t},Wa=(e,t,s,o)=>{return e===0?t:s*2**(10*(e/o-1))+t},Ha=(e,t,s,o)=>{return e===o?t+s:s*(-(2**(-10*e/o))+1)+t},Va=(e,t,s,o)=>{if(e===0)return t;if(e===o)return t+s;if(e/=o/2,e<1)return s/2*2**(10*(e-1))+t;return e--,s/2*(-(2**(-10*e))+2)+t},Fa=(e,t,s,o)=>{return e/=o,-s*(Math.sqrt(1-e*e)-1)+t},Ka=(e,t,s,o)=>{return e/=o,e--,s*Math.sqrt(1-e*e)+t},_a=(e,t,s,o)=>{if(e/=o/2,e<1)return-s/2*(Math.sqrt(1-e*e)-1)+t;return e-=2,s/2*(Math.sqrt(1-e*e)+1)+t},Ga=(e,t,s,o)=>{let a=1.70158,i=0,n=s;if(e===0)return t;if(e/=o,e===1)return t+s;if(!i)i=o*0.3;if(n<Math.abs(s))n=s,a=i/4;else a=i/(2*Math.PI)*Math.asin(s/n);return e-=1,-(n*2**(10*e)*Math.sin((e*o-a)*(2*Math.PI)/i))+t},Ua=(e,t,s,o)=>{let a=1.70158,i=0,n=s;if(e===0)return t;if(e/=o,e===1)return t+s;if(!i)i=o*0.3;if(n<Math.abs(s))n=s,a=i/4;else a=i/(2*Math.PI)*Math.asin(s/n);return n*2**(-10*e)*Math.sin((e*o-a)*(2*Math.PI)/i)+s+t},Ya=(e,t,s,o)=>{let a=1.70158,i=0,n=s;if(e===0)return t;if(e/=o/2,e===2)return t+s;if(!i)i=o*0.44999999999999996;if(n<Math.abs(s))n=s,a=i/4;else a=i/(2*Math.PI)*Math.asin(s/n);if(e<1)return e-=1,-0.5*(n*2**(10*e)*Math.sin((e*o-a)*(2*Math.PI)/i))+t;return e-=1,n*2**(-10*e)*Math.sin((e*o-a)*(2*Math.PI)/i)*0.5+s+t},Ja=(e,t,s,o)=>{return e/=o,s*e*e*(2.70158*e-1.70158)+t},Xa=(e,t,s,o)=>{return e/=o,e--,s*(e*e*(2.70158*e+1.70158)+1)+t},Za=(e,t,s,o)=>{let a=1.70158;if(e/=o/2,e<1)return a*=1.525,s/2*(e*e*((a+1)*e-a))+t;return e-=2,a*=1.525,s/2*(e*e*((a+1)*e+a)+2)+t},te=(e,t,s,o)=>{if(e/=o,e<0.36363636363636365)return s*(7.5625*e*e)+t;else if(e<0.7272727272727273)return e-=0.5454545454545454,s*(7.5625*e*e+0.75)+t;else if(e<0.9090909090909091)return e-=0.8181818181818182,s*(7.5625*e*e+0.9375)+t;else return e-=0.9545454545454546,s*(7.5625*e*e+0.984375)+t},ue=(e,t,s,o)=>{return s-te(o-e,0,s,o)+t},Qa=(e,t,s,o)=>{if(e<o/2)return ue(e*2,0,s,o)*0.5+t;return te(e*2-o,0,s,o)*0.5+s*0.5+t},up={linear:Sa,easeInQuad:Ta,easeOutQuad:Aa,easeInOutQuad:Ia,easeInCubic:Na,easeOutCubic:Da,easeInOutCubic:za,easeInQuart:Pa,easeOutQuart:La,easeInOutQuart:Ea,easeInQuint:Oa,easeOutQuint:Ra,easeInOutQuint:Ma,easeInSine:qa,easeOutSine:ja,easeInOutSine:Ba,easeInExpo:Wa,easeOutExpo:Ha,easeInOutExpo:Va,easeInCirc:Fa,easeOutCirc:Ka,easeInOutCirc:_a,easeInElastic:Ga,easeOutElastic:Ua,easeInOutElastic:Ya,easeInBack:Ja,easeOutBack:Xa,easeInOutBack:Za,easeInBounce:ue,easeOutBounce:te,easeInOutBounce:Qa};function ei(e,t={}){let{duration:s="1s",timing:o="ease",delay:a="0s",iteration:i="1",direction:n="normal",fill:r="both",playState:c="running"}=t;return`${e} ${s} ${o} ${a} ${i} ${n} ${r} ${c}`}function fe(e,t,s={}){e.style.animation=ei(t,s)}function bp(e){e.style.animation=""}function ti(e){return new Promise((t)=>{let s=()=>{e.removeEventListener("animationend",s),t()};e.addEventListener("animationend",s)})}function mp(e,t,s={}){let{stagger:o=100,...a}=s;e.forEach((i,n)=>{let r=`${n*o}ms`;fe(i,t,{...a,delay:r})})}async function gp(e,t){for(let s of t)fe(e,s.name,s.options),await ti(e)}var xp={fadeIn:"animate-fade-in",fadeOut:"animate-fade-out",slideInUp:"animate-slide-in-up",slideInDown:"animate-slide-in-down",slideInLeft:"animate-slide-in-left",slideInRight:"animate-slide-in-right",zoomIn:"animate-zoom-in",zoomOut:"animate-zoom-out",bounce:"animate-bounce",spin:"animate-spin",ping:"animate-ping",pulse:"animate-pulse"};function vp(e,t,s=1000){return new Promise((o)=>{e.classList.add(t),setTimeout(()=>{e.classList.remove(t),o()},s)})}function wp(e,t){let s=`
|
|
11
|
+
`)}`)}return{valid:n.length===0,errors:n}}function D(e,t,s){return(o)=>Ge(e,o,t,s)}function Cn(e,t,s="value"){if(!F)return;if(!t.validate(e,s,"assertion"))throw Error(t.message(e,s,"assertion"))}function $n(e,t,s="value"){if(!F)return;if(!t.validate(e,s,"warning"))console.warn(t.message(e,s,"warning"))}var Ye="./Button-tcjt3m8s.stx";var Je={variant:l.oneOf(["primary","secondary","outline","ghost","danger"]),size:l.oneOf(["xs","sm","md","lg","xl"]),disabled:l.boolean,loading:l.boolean,type:l.oneOf(["button","submit","reset"]),fullWidth:l.boolean,leftIcon:l.string,rightIcon:l.string,className:l.string,onClick:l.func},In=D("Button",Je);function Nn(e){return le(e,"Button","onClick")}function Dn(e){if(e&&!["primary","secondary","outline","ghost","danger"].includes(e))throw R.invalidProp("Button","variant",e,["primary","secondary","outline","ghost","danger"])}function zn(e){if(e&&!["xs","sm","md","lg","xl"].includes(e))throw R.invalidProp("Button","size",e,["xs","sm","md","lg","xl"])}var Ze="./Calendar-ppqdw19s.stx";var et="./Card-r55zpjqh.stx";var st="./Checkbox-e7gn3w06.stx";var at="./Combobox-06x0nywb.stx";var nt="./ComboboxButton-g76stp1e.stx";var lt="./ComboboxInput-4jcpvw7e.stx";var dt="./ComboboxOption-vnb67p8d.stx";var ht="./ComboboxOptions-nbndbrxz.stx";var ft="./CommandPalette-6rjcgske.stx";var mt="./CommandPaletteItem-6rp133ta.stx";var xt="./Dialog-d1020hj6.stx";var wt="./DialogBackdrop-de5m5m4w.stx";var Ct="./DialogDescription-gth4c2kx.stx";var kt="./DialogPanel-vhdqymc2.stx";var Tt="./DialogTitle-0jjdk5ra.stx";var It="./Drawer-jcdj3qk2.stx";var Dt="./Dropdown-cmwge7vx.stx";var Pt="./DropdownButton-tx9hb2de.stx";var Et="./DropdownItem-wht1vcm5.stx";var Rt="./DropdownItems-v12h6zpf.stx";var qt="./Form-vbag14t1.stx";var jt={action:l.string,method:l.oneOf(["GET","POST","PUT","DELETE","PATCH"]),validationSchema:l.object,initialValues:l.object,validateOnChange:l.boolean,validateOnBlur:l.boolean,onSubmit:l.func,onError:l.func,className:l.string},Dr=D("Form",jt);var Wt="./Image-79xyzb5j.stx";var Vt="./EmailInput-agb8kqae.stx";var Kt="./NumberInput-awn66hfs.stx";var Gt="./PasswordInput-hradj0xd.stx";var Yt="./SearchInput-psbjk2ye.stx";var Xt="./TextInput-48ghmccm.stx";var Zt={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string},Qt={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,leftIcon:l.string,rightIcon:l.string,clearable:l.boolean,maxLength:l.number,showCount:l.boolean},es={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,min:l.number,max:l.number,step:l.number,showControls:l.boolean},ts={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,showStrength:l.boolean},ss={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,onSearch:l.func,loading:l.boolean},Hr=D("TextInput",Qt),Vr=D("EmailInput",Zt),Fr=D("PasswordInput",ts),Kr=D("NumberInput",es),_r=D("SearchInput",ss);var as="./Listbox-e5jreb0a.stx";var ns="./ListboxButton-t43pp03e.stx";var ls="./ListboxLabel-ka0hfm7b.stx";var ds="./ListboxOption-9c9jpz1n.stx";var hs="./ListboxOptions-qxrkrb8z.stx";var fs="./FilterChip-00ja5jhz.stx";var ms="./FilterChips-7pnzycfd.stx";var xs="./ListRow-8d3e1yxh.stx";var ws="./NavBar-qqrrhdnk.stx";var Cs="./SectionCard-8ctdacjr.stx";var ks="./TabBar-8143650x.stx";var Ts="./TabBarItem-wv2r8496.stx";var Is="./Navigator-1yk1c3pp.stx";var Ds="./Notification-7wgk0sw6.stx";var Ps="./Pagination-z9jxnaeq.stx";var Es="./Checkout-22wh3s22.stx";var Rs="./DefaultPaymentMethod-r0hcjajr.stx";var qs="./PaymentMethods-z4hhr0kv.stx";var Bs="./SubscriptionCheckout-pggq5a4k.stx";var Hs="./Popover-3g8rgxt1.stx";var Fs="./PopoverButton-70th24xc.stx";var _s="./PopoverPanel-7771yf35.stx";var Us="./Portal-m73vz879.stx";var Js="./Progress-bv65bwh8.stx";var Zs="./Radio-nr8rbb6g.stx";var eo="./RadioGroup-hzz4xep9.stx";var so="./RadioGroupDescription-z34r9avr.stx";var ao="./RadioGroupLabel-ka0hfm7b.stx";var no="./RadioGroupOption-7fcgfsah.stx";var lo="./Select-sbr8dqzn.stx";var po="./Sidebar-ve2asgf3.stx";var uo="./SidebarFooter-s7skj92y.stx";var bo="./SidebarHeader-esvby82n.stx";var go="./SidebarItem-r4f2pref.stx";var vo="./SidebarPinned-48kyk193.stx";var yo="./SidebarSection-5sqza2j6.stx";var $o="./SidebarSpace-bwv98azf.stx";var So="./SidebarSpaces-mdtrynr2.stx";var Ao="./SidebarSpaceSwitcher-1mycft2g.stx";var K={blue:"#0088ff",red:"#ff383c",pink:"#ff2d55",orange:"#ff8d28",yellow:"#ffcc00",green:"#34c759",teal:"#00c3d0",cyan:"#00c0e8",indigo:"#6155f5",purple:"#cb30e0",brown:"#ac7f5e",gray:"#8e8e93"},O={pane:["bg-[#f2f2f4]/90 dark:bg-[#1c1c1e]/88","backdrop-blur-[50px] backdrop-saturate-[180%]","text-black dark:text-white","select-none"].join(" "),selection:"accent",layers:{shimmerRim:!0},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-[10px] pb-[10px]",sectionHeader:["group/section flex w-full items-center","pl-[8px] pr-[6px] pt-[16px] pb-[5px]","text-[11px] font-semibold leading-[13px]","text-[#3c3c43]/60 dark:text-[#ebebf5]/60"].join(" "),sectionChevron:["i-f7-chevron-down h-[11px] w-[11px] ml-auto","text-[#3c3c43]/45 dark:text-[#ebebf5]/45","opacity-0 group-hover/section:opacity-100 transition-opacity duration-150","transition-transform duration-200"].join(" "),sectionGroup:"flex flex-col",item:{base:["flex w-full items-center","h-[32px] rounded-[8px] pl-[4px] pr-[8px]","text-[13px] leading-[16px] font-normal","text-black dark:text-white","transition-colors duration-150 ease-out","cursor-default"].join(" "),hover:"hover:bg-black/4 dark:hover:bg-white/6",active:"",pressed:"active:bg-black/10 dark:active:bg-white/18",disabled:"opacity-40 pointer-events-none",disclosure:"flex h-[16px] w-[18px] shrink-0 items-center justify-center",chevron:["i-f7-chevron-right h-[11px] w-[11px]","text-[#3c3c43]/55 dark:text-[#ebebf5]/55","transition-transform duration-200 ease-out"].join(" "),iconSlot:"flex h-[20px] w-[22px] shrink-0 items-center justify-center mr-[7px]",icon:"h-[17px] w-[17px]",image:"h-[20px] w-[20px] rounded-[4px] object-cover shadow-sm",label:"flex-1 truncate text-left",count:["ml-[8px] shrink-0 tabular-nums","text-[13px] leading-[16px]","text-[#3c3c43]/60 dark:text-[#ebebf5]/60"].join(" "),indentPerLevel:16}},Io={selection:"classes",pane:"bg-[#f4f4f3] dark:bg-neutral-950 text-zinc-950 dark:text-white select-none",layers:{},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-5 py-5",sectionHeader:"group/section flex w-full items-center gap-2.5 px-4 pb-2 pt-5 text-[13px] font-semibold uppercase tracking-[0.12em] text-zinc-400 dark:text-zinc-500",sectionChevron:"i-f7-chevron-down h-3 w-3 ml-auto opacity-0 group-hover/section:opacity-100 transition-opacity duration-150 transition-transform duration-200",sectionGroup:"flex flex-col space-y-1",item:{base:"flex w-full items-center gap-3 rounded-[16px] px-3.5 py-2 text-[14px] leading-tight transition-colors duration-150",hover:"hover:bg-[#ececea] hover:text-zinc-950 dark:hover:bg-white/10",active:"bg-[#e7e7e5] text-zinc-950 dark:bg-white/12 dark:text-white",pressed:"active:bg-[#e2e2e0] dark:active:bg-white/15",disabled:"opacity-50 pointer-events-none",disclosure:"flex h-4 w-4 shrink-0 items-center justify-center",chevron:"i-f7-chevron-right h-3 w-3 opacity-50 transition-transform duration-200",iconSlot:"flex h-5 w-5 shrink-0 items-center justify-center",icon:"h-[18px] w-[18px] text-zinc-500 dark:text-zinc-500",image:"h-5 w-5 rounded object-cover",label:"flex-1 truncate text-left text-zinc-700 dark:text-zinc-300",count:"ml-auto grid h-5 min-w-5 place-items-center rounded-full bg-white/70 px-1.5 text-[11px] font-medium text-zinc-500 shadow-sm dark:bg-white/10 dark:text-zinc-400",indentPerLevel:12}},No={selection:"classes",pane:"bg-[#f3f3f1]/48 dark:bg-neutral-950/32 backdrop-blur-3xl backdrop-saturate-150 text-zinc-950 dark:text-white select-none",layers:{tint:"bg-[linear-gradient(112deg,rgba(255,255,255,0.20)_0%,rgba(255,255,255,0.04)_45%,rgba(226,226,222,0.16)_100%)] dark:bg-[linear-gradient(112deg,rgba(255,255,255,0.08)_0%,rgba(255,255,255,0.02)_46%,rgba(255,255,255,0.06)_100%)]"},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-5 py-2",sectionHeader:"group/section flex w-full items-center gap-2.5 px-3 pb-1.5 pt-3 rounded-[14px] text-[12px] font-semibold uppercase tracking-[0.10em] text-zinc-500/80 dark:text-zinc-400/80",sectionChevron:"i-f7-chevron-down h-3 w-3 ml-auto opacity-0 group-hover/section:opacity-100 transition-opacity duration-150 transition-transform duration-200",sectionGroup:"flex flex-col space-y-1",item:{base:"flex w-full items-center gap-3 rounded-[14px] px-3 py-1.5 text-[13.5px] leading-tight transition-colors duration-150",hover:"hover:bg-white/38 hover:text-zinc-950 dark:hover:bg-white/10",active:"bg-[#e8e8e6]/90 text-zinc-950 dark:bg-white/12 dark:text-white",pressed:"active:bg-white/50 dark:active:bg-white/15",disabled:"opacity-50 pointer-events-none",disclosure:"flex h-4 w-4 shrink-0 items-center justify-center",chevron:"i-f7-chevron-right h-3 w-3 opacity-50 transition-transform duration-200",iconSlot:"flex h-5 w-5 shrink-0 items-center justify-center",icon:"h-[18px] w-[18px] text-zinc-600 dark:text-zinc-400",image:"h-5 w-5 rounded object-cover",label:"flex-1 truncate text-left text-zinc-700 dark:text-zinc-300",count:"ml-auto grid h-5 min-w-5 place-items-center rounded-full bg-white/72 px-1.5 text-[11px] font-medium text-zinc-500 shadow-sm dark:bg-white/10 dark:text-zinc-400",indentPerLevel:12}},Do={selection:"classes",pane:["bg-[#f7f5f1]/92 dark:bg-[#1a1a1c]/92","backdrop-blur-[40px] backdrop-saturate-[160%]","text-[#2c2a28] dark:text-[#ededf0]","select-none"].join(" "),layers:{tint:["bg-[linear-gradient(180deg,var(--stx-sidebar-tint,rgba(255,251,242,0.55))_0%,rgba(255,255,255,0)_38%)]","dark:bg-[linear-gradient(180deg,var(--stx-sidebar-tint,rgba(255,255,255,0.05))_0%,rgba(255,255,255,0)_42%)]"].join(" ")},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-[16px] pb-[8px]",sectionHeader:["group/section flex w-full items-center","px-[8px] pt-[14px] pb-[4px]","text-[11px] font-medium leading-[13px]","opacity-55"].join(" "),sectionChevron:["i-f7-chevron-down h-[10px] w-[10px] ml-auto","opacity-0 group-hover/section:opacity-100 transition-opacity duration-150","transition-transform duration-200"].join(" "),sectionGroup:"flex flex-col space-y-[2px]",item:{base:["flex w-full items-center","h-[30px] rounded-[8px] pl-[6px] pr-[8px]","text-[13px] leading-[16px] font-normal","text-current","transition-[background-color,box-shadow,color] duration-150 ease-out","cursor-default"].join(" "),hover:"hover:bg-white/55 dark:hover:bg-white/8",active:["bg-white dark:bg-white/14","font-medium","shadow-[0_1px_2px_rgba(0,0,0,0.08)] dark:shadow-[0_1px_2px_rgba(0,0,0,0.35)]","ring-1 ring-black/5 dark:ring-white/8"].join(" "),pressed:"active:bg-white/80 dark:active:bg-white/18",disabled:"opacity-40 pointer-events-none",disclosure:"flex h-[16px] w-[16px] shrink-0 items-center justify-center",chevron:["i-f7-chevron-right h-[10px] w-[10px] opacity-45","transition-transform duration-200 ease-out"].join(" "),iconSlot:"flex h-[18px] w-[18px] shrink-0 items-center justify-center mr-[8px]",icon:"h-[16px] w-[16px]",image:"h-[18px] w-[18px] rounded-[5px] object-cover shadow-sm",label:"flex-1 truncate text-left",count:["ml-[8px] shrink-0 tabular-nums","text-[12px] leading-[16px] opacity-45"].join(" "),indentPerLevel:14}},zo={...O,pane:"bg-stone-100 dark:bg-neutral-900 text-black dark:text-white select-none",layers:{}},Po={...O,pane:"bg-transparent text-black dark:text-white select-none",layers:{}},Lo={...O,pane:"bg-white/50 dark:bg-black/40 backdrop-blur-3xl backdrop-saturate-200 text-black dark:text-white select-none",layers:{}},ce={macos:O,tahoe:O,"macos-tahoe":O,"macos-latest":O,arc:Do,workspace:Io,desktop:No,solid:zo,transparent:Po,vibrancy:Lo};function Tc(e){return ce[e||"macos"]||ce.macos}function Ac(e){if(!e)return;return K[e]||e}var Eo=K.gray;function L(e,t,s){return`color-mix(in oklab, ${e} ${t}%, ${s})`}function de(e){return{light:{from:L(e,35,"#ffffff"),to:L(e,12.5,"#ffffff"),ink:L(e,22,"#17171b"),accent:L(e,88,"#2a2a30")},dark:{from:L(e,27,"#101014"),to:L(e,10,"#08080b"),ink:L(e,12,"#f4f4f7"),accent:L(e,74,"#ffffff")}}}function Dc(e,t){return`linear-gradient(180deg, ${e} 0%, ${t} 100%)`}function Oo(e){if(!e)return de(Eo);if(typeof e!=="string")return e;return de(K[e]||e)}function Ro(e){return[`--stx-space-light-from: ${e.light.from}`,`--stx-space-light-to: ${e.light.to}`,`--stx-space-light-ink: ${e.light.ink}`,`--stx-space-light-accent: ${e.light.accent}`,`--stx-space-dark-from: ${e.dark.from}`,`--stx-space-dark-to: ${e.dark.to}`,`--stx-space-dark-ink: ${e.dark.ink}`,`--stx-space-dark-accent: ${e.dark.accent}`].join("; ")}function pe(e,t,s,o){if(!e||!e.label)return null;return{id:e.id||`${t}-${s}`,label:e.label,icon:e.icon||o}}function Mo(e){let t=Oo(e.tint);return{id:e.id,label:e.label||"",icon:e.icon||"",pinned:e.pinned||[],sections:e.sections||[],action:pe(e.action,e.id,"action","i-f7-plus"),clear:pe(e.clear,e.id,"clear","i-f7-arrow-down"),tint:t,style:Ro(t),deferred:e.deferred===!0,showTitle:e.showTitle??!0}}function zc(e){return(e||[]).map(Mo)}function Pc(e,t){if(!t)return 0;let s=e.findIndex((o)=>o.id===t);return s===-1?0:s}function Lc(e){return e.map((t)=>t.tint)}var jo="./Skeleton-me2hwqrc.stx";var Wo="./Spinner-vhnc3y03.stx";var Vo="./Stepper-rgbk76hd.stx";var Ko="./StepperStep-34kwv0t0.stx";class _{storage;namespace;watchers=new Map;encryptionKey="stx-storage-key";constructor(e="local",t=""){if(this.storage=e==="local"?globalThis.localStorage:globalThis.sessionStorage,this.namespace=t,typeof window<"u")window.addEventListener("storage",this.handleStorageEvent.bind(this))}handleStorageEvent(e){if(!e.key)return;let t=this.namespace&&e.key.startsWith(`${this.namespace}:`)?e.key.slice(this.namespace.length+1):e.key,s=this.watchers.get(t);if(s){let o=e.oldValue?JSON.parse(e.oldValue).value:null,a=e.newValue?JSON.parse(e.newValue).value:null;s.forEach((i)=>i(a,o,t))}}encrypt(e){let t="";for(let s=0;s<e.length;s++)t+=String.fromCharCode(e.charCodeAt(s)^this.encryptionKey.charCodeAt(s%this.encryptionKey.length));return btoa(t)}decrypt(e){try{let t=atob(e),s="";for(let o=0;o<t.length;o++)s+=String.fromCharCode(t.charCodeAt(o)^this.encryptionKey.charCodeAt(o%this.encryptionKey.length));return s}catch{return e}}compress(e){if(e.length<100)return e;let t={},s=256,o=[],a="";for(let i=0;i<e.length;i++){let n=e.charAt(i),r=a+n;if(t[r]!==void 0)a=r;else o.push(a.length>1?t[a]:a.charCodeAt(0)),t[r]=s++,a=n}if(a!=="")o.push(a.length>1?t[a]:a.charCodeAt(0));return JSON.stringify(o)}decompress(e){try{let t=JSON.parse(e);if(!Array.isArray(t))return e;let s={},o=256,a=String.fromCharCode(t[0]),i=a;for(let n=1;n<t.length;n++){let r=t[n],c;if(s[r]!==void 0)c=s[r];else if(r===o)c=a+a.charAt(0);else return e;i+=c,s[o++]=a+c.charAt(0),a=c}return i}catch{return e}}getKey(e){return this.namespace?`${this.namespace}:${e}`:e}set(e,t,s){let o=this.getKey(e),a=this.get(e),i={value:t,timestamp:Date.now(),expire:s?.expire,encrypted:s?.encrypt||!1,compressed:s?.compress||!1};try{let n=JSON.stringify(i);if(s?.compress)n=this.compress(n);if(s?.encrypt)n=this.encrypt(n);this.storage.setItem(o,n),this.notifyWatchers(e,t,a)}catch(n){console.error("Storage set error:",n)}}get(e){let t=this.getKey(e);try{let s=this.storage.getItem(t);if(!s)return null;if(s.match(/^[A-Z0-9+/]+=*$/i))try{s=this.decrypt(s)}catch{}if(s.startsWith("["))try{s=this.decompress(s)}catch{}let o=JSON.parse(s);if(o.expire&&Date.now()-o.timestamp>o.expire)return this.remove(e),null;return o.value}catch(s){return console.error("Storage get error:",s),null}}watch(e,t){if(!this.watchers.has(e))this.watchers.set(e,new Set);return this.watchers.get(e).add(t),()=>{let s=this.watchers.get(e);if(s){if(s.delete(t),s.size===0)this.watchers.delete(e)}}}notifyWatchers(e,t,s){let o=this.watchers.get(e);if(o)o.forEach((a)=>a(t,s,e))}remove(e){let t=this.getKey(e),s=this.get(e);this.storage.removeItem(t),this.notifyWatchers(e,null,s)}clear(){if(this.namespace)this.keys().forEach((t)=>this.remove(t));else this.storage.clear()}has(e){return this.get(e)!==null}keys(){let e=Object.keys(this.storage);if(this.namespace){let t=`${this.namespace}:`;return e.filter((s)=>s.startsWith(t)).map((s)=>s.slice(t.length))}return e}size(){return this.keys().length}getQuota(){if("storage"in navigator&&"estimate"in navigator.storage)return null;try{let e=0;for(let s=0;s<this.storage.length;s++){let o=this.storage.key(s);if(o){let a=this.storage.getItem(o)||"";e+=o.length+a.length}}let t=5242880;return{usage:e*2,quota:t,percentage:e*2/t*100}}catch{return null}}setMany(e,t){Object.entries(e).forEach(([s,o])=>{this.set(s,o,t)})}getMany(e){let t={};return e.forEach((s)=>{t[s]=this.get(s)}),t}removeMany(e){e.forEach((t)=>this.remove(t))}}var id={local:new _("local"),session:new _("session")};function nd(e="local",t){return new _(e,t)}var Go="./Switch-fxbw7s16.stx";var Yo="./Table-akbk3t5q.stx";var Xo="./TableBody-y49bqb1p.stx";var Qo="./TableCell-8swtcq8s.stx";var ta="./TableHead-e9xvjx2j.stx";var oa="./TableHeader-qsc3e208.stx";var ia="./TableRow-ytr6b5by.stx";var ra="./TabPanel-5htevsq6.stx";var ca="./Tabs-51vr631j.stx";var pa="./Teleport-c8nn3757.stx";var ua="./Textarea-dndmk6ah.stx";var ba="./Tooltip-g2j17eg9.stx";var ga="./Transition-yrvqbhjy.stx";var va="./Video-rhy7dskw.stx";var ya="./VirtualList-fa7v5a3h.stx";var $a="./VirtualTable-kp7b3wyv.stx";var ka=0;function he(e="a11y"){return`${e}-${++ka}-${Date.now()}`}function Jd(e,t,s={}){let{visible:o=!1,id:a=he("label")}=s,i=document.createElement(o?"label":"span");if(i.id=a,i.textContent=e,!o)Object.assign(i.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"});if(t)if(t.setAttribute("aria-labelledby",a),t.parentElement)t.parentElement.insertBefore(i,t);else document.body.appendChild(i);return a}function Xd(e,t){let s=he("desc"),o=document.createElement("span");if(o.id=s,o.textContent=e,Object.assign(o.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}),t)if(t.setAttribute("aria-describedby",s),t.parentElement)t.parentElement.insertBefore(o,t);else document.body.appendChild(o);return s}function Zd(e,t="polite"){let s=document.createElement("div");s.setAttribute("role","status"),s.setAttribute("aria-live",t),s.setAttribute("aria-atomic","true"),Object.assign(s.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}),document.body.appendChild(s),setTimeout(()=>{s.textContent=e},100),setTimeout(()=>{s.parentNode?.removeChild(s)},1000)}function ee(e){let t=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(",");return Array.from(e.querySelectorAll(t)).filter((s)=>s.offsetParent!==null)}function Qd(e,t={}){let{initialFocus:s,returnFocus:o,escapeDeactivates:a=!0,clickOutsideDeactivates:i=!0,allowOutsideClick:n=!1,onActivate:r,onDeactivate:c}=t,d=!1,h=!1,p=null,m=(x)=>{if(h)return;if(a&&x.key==="Escape"){x.preventDefault(),v();return}if(x.key==="Tab"){let C=ee(e);if(C.length===0){x.preventDefault();return}let I=C[0],P=C[C.length-1];if(x.shiftKey){if(document.activeElement===I)x.preventDefault(),P.focus()}else if(document.activeElement===P)x.preventDefault(),I.focus()}},f=(x)=>{if(h)return;if(!e.contains(x.target)){if(typeof n==="function"){if(!n(x)&&i)v()}else if(!n&&i)v()}};function w(){if(d)return;d=!0,p=document.activeElement;let x=s||ee(e)[0];if(x&&typeof x.focus==="function")x.focus();document.addEventListener("keydown",m),document.addEventListener("click",f),r?.()}function v(){if(!d)return;d=!1;let x=o||p;if(x&&typeof x.focus==="function")x.focus();document.removeEventListener("keydown",m),document.removeEventListener("click",f),c?.()}function k(){h=!0}function g(){h=!1}return{activate:w,deactivate:v,pause:k,unpause:g}}function ep(e,t={}){let{selector:s='[role="option"], [role="menuitem"], [role="tab"], button',initialIndex:o=0,orientation:a="both",loop:i=!0,onFocusChange:n}=t,r=o,c=()=>{return Array.from(e.querySelectorAll(s))},d=(p)=>{let m=c();if(p<0||p>=m.length)return;m.forEach((f,w)=>{if(w===p){if(f.setAttribute("tabindex","0"),typeof f.focus==="function")f.focus()}else f.setAttribute("tabindex","-1")}),r=p,n?.(p,m[p])},h=(p)=>{let f=c().length-1,w=!1,v=r;switch(p.key){case"ArrowRight":if(a==="horizontal"||a==="both"){if(v=r+1,v>f)v=i?0:f;w=!0}break;case"ArrowLeft":if(a==="horizontal"||a==="both"){if(v=r-1,v<0)v=i?f:0;w=!0}break;case"ArrowDown":if(a==="vertical"||a==="both"){if(v=r+1,v>f)v=i?0:f;w=!0}break;case"ArrowUp":if(a==="vertical"||a==="both"){if(v=r-1,v<0)v=i?f:0;w=!0}break;case"Home":v=0,w=!0;break;case"End":v=f,w=!0;break}if(w)p.preventDefault(),d(v)};return d(o),e.addEventListener("keydown",h),()=>{e.removeEventListener("keydown",h)}}var tp={Enter:"Enter",Space:" ",Escape:"Escape",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",Tab:"Tab",Home:"Home",End:"End",PageUp:"PageUp",PageDown:"PageDown"};function sp(e){return document.activeElement===e}function op(e,t){let s=t||document.activeElement,o=ee(document.body),a=o.indexOf(s);if(a===-1)return;let i=e==="next"?a+1:a-1,n=o[i];if(n)n.focus()}function ap(e){if(e.getAttribute("aria-hidden")==="true")return!1;let t=window.getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden")return!1;return!0}var ip={setExpanded(e,t){e.setAttribute("aria-expanded",String(t))},setSelected(e,t){e.setAttribute("aria-selected",String(t))},setChecked(e,t){e.setAttribute("aria-checked",String(t))},setDisabled(e,t){if(e.setAttribute("aria-disabled",String(t)),t)e.setAttribute("tabindex","-1");else e.removeAttribute("tabindex")},setHidden(e,t){if(t)e.setAttribute("aria-hidden","true");else e.removeAttribute("aria-hidden")},setPressed(e,t){e.setAttribute("aria-pressed",String(t))},setInvalid(e,t){e.setAttribute("aria-invalid",String(t))},setRequired(e,t){e.setAttribute("aria-required",String(t))},setLive(e,t){e.setAttribute("aria-live",t)},setBusy(e,t){e.setAttribute("aria-busy",String(t))}};function np(e){let t=document.createElement("span");return t.textContent=e,t.className="sr-only",Object.assign(t.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}),t}function rp(){if(typeof window.matchMedia==="function")return window.matchMedia("(prefers-reduced-motion: reduce)").matches;return!1}function lp(){if(typeof window.matchMedia==="function")return window.matchMedia("(prefers-contrast: high)").matches;return!1}function cp(){if(typeof window.matchMedia==="function"){if(window.matchMedia("(prefers-color-scheme: dark)").matches)return"dark";if(window.matchMedia("(prefers-color-scheme: light)").matches)return"light"}return null}function dp(e,t="Skip to main content"){let s=document.createElement("a");return s.href=`#${e}`,s.textContent=t,s.className="skip-link",Object.assign(s.style,{position:"absolute",top:"-40px",left:"0",background:"#000",color:"#fff",padding:"8px",textDecoration:"none",zIndex:"100"}),s.addEventListener("focus",()=>{s.style.top="0"}),s.addEventListener("blur",()=>{s.style.top="-40px"}),s}function pp(e){let t=[],s=(o)=>{let a=e.getAttribute(o);if(a){let i=a.split(" ");for(let n of i)if(!document.getElementById(n))t.push(`${o} references non-existent ID: ${n}`)}};return s("aria-labelledby"),s("aria-describedby"),s("aria-controls"),s("aria-owns"),s("aria-activedescendant"),t}var Sa=(e,t,s,o)=>{return s*e/o+t},Ta=(e,t,s,o)=>{return e/=o,s*e*e+t},Aa=(e,t,s,o)=>{return e/=o,-s*e*(e-2)+t},Ia=(e,t,s,o)=>{if(e/=o/2,e<1)return s/2*e*e+t;return e--,-s/2*(e*(e-2)-1)+t},Na=(e,t,s,o)=>{return e/=o,s*e*e*e+t},Da=(e,t,s,o)=>{return e/=o,e--,s*(e*e*e+1)+t},za=(e,t,s,o)=>{if(e/=o/2,e<1)return s/2*e*e*e+t;return e-=2,s/2*(e*e*e+2)+t},Pa=(e,t,s,o)=>{return e/=o,s*e*e*e*e+t},La=(e,t,s,o)=>{return e/=o,e--,-s*(e*e*e*e-1)+t},Ea=(e,t,s,o)=>{if(e/=o/2,e<1)return s/2*e*e*e*e+t;return e-=2,-s/2*(e*e*e*e-2)+t},Oa=(e,t,s,o)=>{return e/=o,s*e*e*e*e*e+t},Ra=(e,t,s,o)=>{return e/=o,e--,s*(e*e*e*e*e+1)+t},Ma=(e,t,s,o)=>{if(e/=o/2,e<1)return s/2*e*e*e*e*e+t;return e-=2,s/2*(e*e*e*e*e+2)+t},qa=(e,t,s,o)=>{return-s*Math.cos(e/o*(Math.PI/2))+s+t},ja=(e,t,s,o)=>{return s*Math.sin(e/o*(Math.PI/2))+t},Ba=(e,t,s,o)=>{return-s/2*(Math.cos(Math.PI*e/o)-1)+t},Wa=(e,t,s,o)=>{return e===0?t:s*2**(10*(e/o-1))+t},Ha=(e,t,s,o)=>{return e===o?t+s:s*(-(2**(-10*e/o))+1)+t},Va=(e,t,s,o)=>{if(e===0)return t;if(e===o)return t+s;if(e/=o/2,e<1)return s/2*2**(10*(e-1))+t;return e--,s/2*(-(2**(-10*e))+2)+t},Fa=(e,t,s,o)=>{return e/=o,-s*(Math.sqrt(1-e*e)-1)+t},Ka=(e,t,s,o)=>{return e/=o,e--,s*Math.sqrt(1-e*e)+t},_a=(e,t,s,o)=>{if(e/=o/2,e<1)return-s/2*(Math.sqrt(1-e*e)-1)+t;return e-=2,s/2*(Math.sqrt(1-e*e)+1)+t},Ga=(e,t,s,o)=>{let a=1.70158,i=0,n=s;if(e===0)return t;if(e/=o,e===1)return t+s;if(!i)i=o*0.3;if(n<Math.abs(s))n=s,a=i/4;else a=i/(2*Math.PI)*Math.asin(s/n);return e-=1,-(n*2**(10*e)*Math.sin((e*o-a)*(2*Math.PI)/i))+t},Ua=(e,t,s,o)=>{let a=1.70158,i=0,n=s;if(e===0)return t;if(e/=o,e===1)return t+s;if(!i)i=o*0.3;if(n<Math.abs(s))n=s,a=i/4;else a=i/(2*Math.PI)*Math.asin(s/n);return n*2**(-10*e)*Math.sin((e*o-a)*(2*Math.PI)/i)+s+t},Ya=(e,t,s,o)=>{let a=1.70158,i=0,n=s;if(e===0)return t;if(e/=o/2,e===2)return t+s;if(!i)i=o*0.44999999999999996;if(n<Math.abs(s))n=s,a=i/4;else a=i/(2*Math.PI)*Math.asin(s/n);if(e<1)return e-=1,-0.5*(n*2**(10*e)*Math.sin((e*o-a)*(2*Math.PI)/i))+t;return e-=1,n*2**(-10*e)*Math.sin((e*o-a)*(2*Math.PI)/i)*0.5+s+t},Ja=(e,t,s,o)=>{return e/=o,s*e*e*(2.70158*e-1.70158)+t},Xa=(e,t,s,o)=>{return e/=o,e--,s*(e*e*(2.70158*e+1.70158)+1)+t},Za=(e,t,s,o)=>{let a=1.70158;if(e/=o/2,e<1)return a*=1.525,s/2*(e*e*((a+1)*e-a))+t;return e-=2,a*=1.525,s/2*(e*e*((a+1)*e+a)+2)+t},te=(e,t,s,o)=>{if(e/=o,e<0.36363636363636365)return s*(7.5625*e*e)+t;else if(e<0.7272727272727273)return e-=0.5454545454545454,s*(7.5625*e*e+0.75)+t;else if(e<0.9090909090909091)return e-=0.8181818181818182,s*(7.5625*e*e+0.9375)+t;else return e-=0.9545454545454546,s*(7.5625*e*e+0.984375)+t},ue=(e,t,s,o)=>{return s-te(o-e,0,s,o)+t},Qa=(e,t,s,o)=>{if(e<o/2)return ue(e*2,0,s,o)*0.5+t;return te(e*2-o,0,s,o)*0.5+s*0.5+t},up={linear:Sa,easeInQuad:Ta,easeOutQuad:Aa,easeInOutQuad:Ia,easeInCubic:Na,easeOutCubic:Da,easeInOutCubic:za,easeInQuart:Pa,easeOutQuart:La,easeInOutQuart:Ea,easeInQuint:Oa,easeOutQuint:Ra,easeInOutQuint:Ma,easeInSine:qa,easeOutSine:ja,easeInOutSine:Ba,easeInExpo:Wa,easeOutExpo:Ha,easeInOutExpo:Va,easeInCirc:Fa,easeOutCirc:Ka,easeInOutCirc:_a,easeInElastic:Ga,easeOutElastic:Ua,easeInOutElastic:Ya,easeInBack:Ja,easeOutBack:Xa,easeInOutBack:Za,easeInBounce:ue,easeOutBounce:te,easeInOutBounce:Qa};function ei(e,t={}){let{duration:s="1s",timing:o="ease",delay:a="0s",iteration:i="1",direction:n="normal",fill:r="both",playState:c="running"}=t;return`${e} ${s} ${o} ${a} ${i} ${n} ${r} ${c}`}function fe(e,t,s={}){e.style.animation=ei(t,s)}function bp(e){e.style.animation=""}function ti(e){return new Promise((t)=>{let s=()=>{e.removeEventListener("animationend",s),t()};e.addEventListener("animationend",s)})}function mp(e,t,s={}){let{stagger:o=100,...a}=s;e.forEach((i,n)=>{let r=`${n*o}ms`;fe(i,t,{...a,delay:r})})}async function gp(e,t){for(let s of t)fe(e,s.name,s.options),await ti(e)}var xp={fadeIn:"animate-fade-in",fadeOut:"animate-fade-out",slideInUp:"animate-slide-in-up",slideInDown:"animate-slide-in-down",slideInLeft:"animate-slide-in-left",slideInRight:"animate-slide-in-right",zoomIn:"animate-zoom-in",zoomOut:"animate-zoom-out",bounce:"animate-bounce",spin:"animate-spin",ping:"animate-ping",pulse:"animate-pulse"};function vp(e,t,s=1000){return new Promise((o)=>{e.classList.add(t),setTimeout(()=>{e.classList.remove(t),o()},s)})}function wp(e,t){let s=`
|
|
12
12
|
@keyframes ${e} {
|
|
13
13
|
${Object.entries(t).map(([a,i])=>{let n=Object.entries(i).map(([r,c])=>`${r}: ${c};`).join(" ");return`${a} { ${n} }`}).join(`
|
|
14
14
|
`)}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/components",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.346",
|
|
5
5
|
"description": "A modern component library built with STX, featuring headwind utility classes and TypeScript syntax highlighting.",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@iconify-json/f7": "^1.2.2",
|
|
66
66
|
"@stacksjs/ts-css": "^0.3.2",
|
|
67
|
-
"@stacksjs/stx": "0.2.
|
|
68
|
-
"bun-plugin-stx": "0.2.
|
|
67
|
+
"@stacksjs/stx": "0.2.346",
|
|
68
|
+
"bun-plugin-stx": "0.2.346",
|
|
69
69
|
"ts-syntax-highlighter": "^0.2.17"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
@@ -14,11 +14,11 @@ export const currentYear = new Date().getFullYear()
|
|
|
14
14
|
<div class="flex flex-col items-center justify-center">
|
|
15
15
|
<p class="text-sm">
|
|
16
16
|
With 💙 by
|
|
17
|
-
<a href="{{ authorUrl }}" class="text-
|
|
17
|
+
<a href="{{ authorUrl }}" class="text-link hover:text-link-hover transition-colors">
|
|
18
18
|
{{ author }}
|
|
19
19
|
</a>
|
|
20
20
|
&
|
|
21
|
-
<a href="{{ projectUrl }}" class="text-
|
|
21
|
+
<a href="{{ projectUrl }}" class="text-link hover:text-link-hover transition-colors">
|
|
22
22
|
{{ project }}
|
|
23
23
|
</a>
|
|
24
24
|
<span> © {{ currentYear }}</span>
|
|
@@ -26,11 +26,11 @@ export const currentYear = new Date().getFullYear()
|
|
|
26
26
|
|
|
27
27
|
<div class="mt-2 flex flex-col items-center sm:flex-row space-x-1 space-y-2 sm:space-y-0">
|
|
28
28
|
<div class="flex items-center space-x-1">
|
|
29
|
-
<svg class="w-4 h-4 text-
|
|
29
|
+
<svg class="w-4 h-4 text-link" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">
|
|
30
30
|
<path d="M8.29 20.251c7.547 0 11.675-6.253 11.675-11.675 0-.178 0-.355-.012-.53A8.348 8.348 0 0022 5.92a8.19 8.19 0 01-2.357.646 4.118 4.118 0 001.804-2.27 8.224 8.224 0 01-2.605.996 4.107 4.107 0 00-6.993 3.743 11.65 11.65 0 01-8.457-4.287 4.106 4.106 0 001.27 5.477A4.072 4.072 0 012.8 9.713v.052a4.105 4.105 0 003.292 4.022 4.095 4.095 0 01-1.853.07 4.108 4.108 0 003.834 2.85A8.233 8.233 0 012 18.407a11.616 11.616 0 006.29 1.84" />
|
|
31
31
|
</svg>
|
|
32
32
|
<span class="text-sm">
|
|
33
|
-
<a href="{{ twitterUrl }}" target="_blank" rel="noopener noreferrer" class="text-
|
|
33
|
+
<a href="{{ twitterUrl }}" target="_blank" rel="noopener noreferrer" class="text-link hover:text-link-hover transition-colors">
|
|
34
34
|
Follow me on Twitter
|
|
35
35
|
</a>
|
|
36
36
|
</span>
|
|
@@ -39,11 +39,11 @@ export const currentYear = new Date().getFullYear()
|
|
|
39
39
|
<span class="hidden px-2 text-neutral-400 sm:block">|</span>
|
|
40
40
|
|
|
41
41
|
<div class="flex items-center space-x-1">
|
|
42
|
-
<svg class="w-4 h-4 text-
|
|
42
|
+
<svg class="w-4 h-4 text-link" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">
|
|
43
43
|
<path d="M20.216 6.415l-.132-.666c-.119-.598-.388-1.163-1.001-1.379-.197-.069-.42-.098-.57-.241-.152-.143-.196-.366-.231-.572-.065-.378-.125-.756-.192-1.133-.057-.325-.102-.69-.25-.987-.195-.4-.597-.634-.996-.788a5.723 5.723 0 00-.626-.194c-1-.263-2.05-.36-3.077-.416a25.834 25.834 0 00-3.7.062c-.915.083-1.88.184-2.75.5-.318.116-.646.256-.888.501-.297.302-.393.77-.177 1.146.154.267.415.456.692.58.36.162.737.284 1.123.366 1.075.238 2.189.331 3.287.37 1.218.05 2.437.01 3.65-.118.299-.033.598-.073.896-.119.352-.054.578-.513.474-.834-.124-.383-.457-.531-.834-.473-.466.074-.96.108-1.382.146-1.177.08-2.358.082-3.536.006a22.228 22.228 0 01-1.157-.107c-.086-.01-.18-.025-.258-.036-.243-.036-.484-.08-.724-.13-.111-.027-.111-.185 0-.212h.005c.277-.06.557-.108.838-.147h.002c.131-.009.263-.032.394-.048a25.076 25.076 0 013.426-.12c.674.019 1.347.067 2.017.144l.228.031c.267.04.533.088.798.145.392.085.895.113 1.07.542.055.137.08.288.111.431l.319 1.484a.237.237 0 01-.199.284h-.003c-.037.006-.075.01-.112.015a36.704 36.704 0 01-4.743.295 37.059 37.059 0 01-4.699-.304c-.14-.017-.293-.042-.417-.06-.326-.048-.649-.108-.973-.161-.393-.065-.768-.032-1.123.161-.29.16-.527.404-.675.701-.154.316-.199.66-.267 1-.069.34-.176.707-.135 1.056.087.753.613 1.365 1.37 1.502a39.69 39.69 0 0011.343.376.483.483 0 01.535.53l-.071.697-1.018 9.907c-.041.41-.047.832-.125 1.237-.122.637-.553 1.028-1.182 1.171-.577.131-1.165.2-1.756.205-.656.004-1.31-.025-1.966-.022-.699.004-1.556-.06-2.095-.58-.475-.458-.54-1.174-.605-1.793l-.731-7.013-.322-3.094c-.037-.351-.286-.695-.678-.678-.336.015-.718.3-.678.679l.228 2.185.949 9.112c.147 1.344 1.174 2.068 2.446 2.272.742.12 1.503.144 2.257.156.966.016 1.942.053 2.892-.122 1.408-.258 2.465-1.198 2.616-2.657.34-3.332.683-6.663 1.024-9.995l.215-2.087a.484.484 0 01.39-.426c.402-.078.787-.212 1.074-.518.455-.488.546-1.124.385-1.766zm-1.478.772c-.145.137-.363.201-.578.233-2.416.359-4.866.54-7.308.46-1.748-.06-3.477-.254-5.207-.498-.17-.024-.353-.055-.47-.18-.22-.236-.111-.71-.054-.995.052-.26.152-.609.463-.646.484-.057 1.046.148 1.526.22.577.088 1.156.16 1.737.212 2.48.226 5.002.19 7.472-.14.45-.06.899-.13 1.345-.21.399-.072.84-.206 1.08.206.166.281.188.657.162.974a.544.544 0 01-.169.364zm-6.159 3.9c-.862.37-1.84.788-3.109.788a5.884 5.884 0 01-1.569-.217l.877 9.004c.065.78.717 1.38 1.5 1.38 0 0 1.243.065 1.658.065.447 0 1.786-.065 1.786-.065.783 0 1.434-.6 1.499-1.38l.94-9.95a3.996 3.996 0 00-1.322-.238c-.826 0-1.491.284-2.26.613z" />
|
|
44
44
|
</svg>
|
|
45
45
|
<span class="text-sm">
|
|
46
|
-
<a href="{{ coffeeUrl }}" target="_blank" rel="noopener noreferrer" class="text-
|
|
46
|
+
<a href="{{ coffeeUrl }}" target="_blank" rel="noopener noreferrer" class="text-link hover:text-link-hover transition-colors">
|
|
47
47
|
Buy me a coffee
|
|
48
48
|
</a>
|
|
49
49
|
</span>
|
|
@@ -52,11 +52,11 @@ export const currentYear = new Date().getFullYear()
|
|
|
52
52
|
<span class="hidden px-2 text-neutral-400 sm:block">|</span>
|
|
53
53
|
|
|
54
54
|
<div class="flex items-center space-x-1">
|
|
55
|
-
<svg class="w-4 h-4 text-
|
|
55
|
+
<svg class="w-4 h-4 text-link" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">
|
|
56
56
|
<path d="m11.645 20.91-.007-.003-.022-.012a15.247 15.247 0 0 1-.383-.218 25.18 25.18 0 0 1-4.244-3.17C4.688 15.36 2.25 12.174 2.25 8.25 2.25 5.322 4.714 3 7.688 3A5.5 5.5 0 0 1 12 5.052 5.5 5.5 0 0 1 16.313 3c2.973 0 5.437 2.322 5.437 5.25 0 3.925-2.438 7.111-4.739 9.256a25.175 25.175 0 0 1-4.244 3.17 15.247 15.247 0 0 1-.383.219l-.022.012-.007.004-.003.001a.752.752 0 0 1-.704 0l-.003-.001Z" />
|
|
57
57
|
</svg>
|
|
58
58
|
<span class="text-sm">
|
|
59
|
-
<a href="{{ sponsorUrl }}" target="_blank" rel="noopener noreferrer" class="text-
|
|
59
|
+
<a href="{{ sponsorUrl }}" target="_blank" rel="noopener noreferrer" class="text-link hover:text-link-hover transition-colors">
|
|
60
60
|
Sponsor me on GitHub
|
|
61
61
|
</a>
|
|
62
62
|
</span>
|
package/src/components/Hero.stx
CHANGED
|
@@ -5,7 +5,7 @@ export const githubUrl = $props.githubUrl || '#'
|
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<div class="flex flex-col items-center gap-3">
|
|
8
|
-
<h1 class="text-5xl font-bold mb-3 -mt-5 bg-gradient-to-r from-
|
|
8
|
+
<h1 class="text-5xl font-bold mb-3 -mt-5 bg-gradient-to-r from-accent to-secondary bg-clip-text text-transparent">
|
|
9
9
|
{{ title }}
|
|
10
10
|
</h1>
|
|
11
11
|
<p class="mb-3 mt-0 text-lg text-fg-muted">
|
|
@@ -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-
|
|
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"
|
|
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-
|
|
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()
|
|
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-
|
|
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'
|
|
11
11
|
const iconClasses = 'w-5 h-5 text-fg-soft transition-transform duration-200'
|
|
12
12
|
const contentClasses = 'px-4 py-3 text-fg-strong'
|
|
13
13
|
</script>
|
package/src/ui/audio/Audio.stx
CHANGED
package/src/ui/auth/Login.stx
CHANGED
|
@@ -16,7 +16,7 @@ export const className = $props.className || ''
|
|
|
16
16
|
export const forgotPasswordHref = $props.forgotPasswordHref || '/forgot-password'
|
|
17
17
|
export const signupHref = $props.signupHref || '/register'
|
|
18
18
|
|
|
19
|
-
export const containerClasses = `min-h-full flex flex-col justify-center py-12 lg:px-8 sm:px-6
|
|
19
|
+
export const containerClasses = `min-h-full flex flex-col justify-center py-12 lg:px-8 sm:px-6 bg-page ${className}`.trim()
|
|
20
20
|
</script>
|
|
21
21
|
|
|
22
22
|
<script client>
|
|
@@ -68,7 +68,7 @@ function onSubmit(event) {
|
|
|
68
68
|
type="email"
|
|
69
69
|
autocomplete="email"
|
|
70
70
|
required
|
|
71
|
-
class="block w-full border-0 rounded-control py-1.5 text-fg shadow-sm ring-1 ring-line-strong ring-inset sm:text-sm placeholder:text-fg-
|
|
71
|
+
class="block w-full border-0 rounded-control py-1.5 text-fg shadow-sm ring-1 ring-line-strong ring-inset sm:text-sm placeholder:text-fg-soft sm:leading-6 focus:ring-2 focus:ring-accent focus:ring-inset bg-field"
|
|
72
72
|
/>
|
|
73
73
|
</div>
|
|
74
74
|
</div>
|
|
@@ -84,7 +84,7 @@ function onSubmit(event) {
|
|
|
84
84
|
type="password"
|
|
85
85
|
autocomplete="current-password"
|
|
86
86
|
required
|
|
87
|
-
class="block w-full border-0 rounded-control py-1.5 text-fg shadow-sm ring-1 ring-line-strong ring-inset sm:text-sm placeholder:text-fg-
|
|
87
|
+
class="block w-full border-0 rounded-control py-1.5 text-fg shadow-sm ring-1 ring-line-strong ring-inset sm:text-sm placeholder:text-fg-soft sm:leading-6 focus:ring-2 focus:ring-accent focus:ring-inset bg-field"
|
|
88
88
|
/>
|
|
89
89
|
</div>
|
|
90
90
|
</div>
|
|
@@ -96,7 +96,7 @@ function onSubmit(event) {
|
|
|
96
96
|
id="remember-me"
|
|
97
97
|
name="remember-me"
|
|
98
98
|
type="checkbox"
|
|
99
|
-
class="h-4 w-4 border-line-strong rounded text-
|
|
99
|
+
class="h-4 w-4 border-line-strong rounded text-accent focus:ring-accent bg-field"
|
|
100
100
|
/>
|
|
101
101
|
<label for="remember-me" class="ml-3 block text-sm text-fg leading-6">
|
|
102
102
|
Remember me
|
|
@@ -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-
|
|
109
|
+
<StxLink to="{{ forgotPasswordHref }}" class="text-accent font-semibold hover:text-accent">
|
|
110
110
|
Forgot password?
|
|
111
111
|
</StxLink>
|
|
112
112
|
</div>
|
|
@@ -116,7 +116,7 @@ function onSubmit(event) {
|
|
|
116
116
|
<div>
|
|
117
117
|
<button
|
|
118
118
|
type="submit"
|
|
119
|
-
class="w-full flex justify-center rounded-control bg-
|
|
119
|
+
class="w-full flex justify-center rounded-control bg-accent-solid px-3 py-1.5 text-sm text-accent-ink font-semibold leading-6 shadow-sm hover:bg-accent-solid-hover focus-visible:outline-2 focus-visible:outline-accent focus-visible:outline-offset-2 focus-visible:outline"
|
|
120
120
|
>
|
|
121
121
|
Sign in
|
|
122
122
|
</button>
|
|
@@ -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-
|
|
172
|
+
<StxLink to="{{ signupHref }}" class="text-accent font-semibold leading-6 hover:text-accent">
|
|
173
173
|
{{ signupText }}
|
|
174
174
|
</StxLink>
|
|
175
175
|
</p>
|