@stacksjs/components 0.2.373 → 0.2.374
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/{Calendar-f3nzpc2y.stx → Calendar-93yvwp1s.stx} +2 -2
- package/dist/{Form-vbag14t1.stx → Form-ewzy10ye.stx} +2 -2
- package/dist/{Image-79xyzb5j.stx → Image-tw2jxbpb.stx} +1 -1
- package/dist/{Notification-2ws4ym4s.stx → Notification-b3cz24f0.stx} +1 -1
- package/dist/{SidebarHeader-esvby82n.stx → SidebarHeader-x7jdhmyr.stx} +1 -1
- package/dist/{Table-akbk3t5q.stx → Table-3ek3w95h.stx} +1 -1
- package/dist/{TableRow-ytr6b5by.stx → TableRow-dt8e11aj.stx} +1 -1
- package/dist/{Transition-yrvqbhjy.stx → Transition-hmm11qk1.stx} +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -3
- package/src/ui/calendar/Calendar.stx +2 -2
- package/src/ui/form/Form.stx +2 -2
- package/src/ui/image/Image.stx +1 -1
- package/src/ui/notification/Notification.stx +1 -1
- package/src/ui/sidebar/SidebarHeader.stx +1 -1
- package/src/ui/table/Table.stx +1 -1
- package/src/ui/table/TableRow.stx +1 -1
- package/src/ui/transition/Transition.stx +1 -1
|
@@ -18,9 +18,9 @@ export const maxDate = $props.maxDate || null
|
|
|
18
18
|
export const disabledDates = $props.disabledDates || []
|
|
19
19
|
export const locale = $props.locale || 'en-US'
|
|
20
20
|
export const firstDayOfWeek = $props.firstDayOfWeek || 0
|
|
21
|
-
export const showToday = $props.showToday
|
|
21
|
+
export const showToday = $bool($props.showToday, true)
|
|
22
22
|
export const className = $props.className || ''
|
|
23
|
-
export const highlightToday = $props.highlightToday
|
|
23
|
+
export const highlightToday = $bool($props.highlightToday, true)
|
|
24
24
|
|
|
25
25
|
const baseClasses = 'bg-panel rounded-panel shadow-lg p-4 w-full max-w-sm'
|
|
26
26
|
export const calendarClasses = `${baseClasses} ${className}`.trim()
|
|
@@ -6,8 +6,8 @@ export const className = $props.className || ''
|
|
|
6
6
|
// These three were declared in FormProps and read by nothing, so passing them
|
|
7
7
|
// did exactly nothing. See #1874.
|
|
8
8
|
export const initialValues = $props.initialValues || {}
|
|
9
|
-
export const validateOnChange = $props.validateOnChange
|
|
10
|
-
export const validateOnBlur = $props.validateOnBlur
|
|
9
|
+
export const validateOnChange = $bool($props.validateOnChange)
|
|
10
|
+
export const validateOnBlur = $bool($props.validateOnBlur)
|
|
11
11
|
|
|
12
12
|
export const formClasses = `space-y-6 ${className}`.trim()
|
|
13
13
|
export const errorClasses = `mt-1 text-sm text-danger`.trim()
|
|
@@ -8,7 +8,7 @@ export const alt = $props.alt || ''
|
|
|
8
8
|
export const width = $props.width
|
|
9
9
|
export const height = $props.height
|
|
10
10
|
export const priority = $bool($props.priority)
|
|
11
|
-
export const lazy = priority ? false : ($props.lazy
|
|
11
|
+
export const lazy = priority ? false : $bool($props.lazy, true)
|
|
12
12
|
export const decoding = $props.decoding || 'async'
|
|
13
13
|
export const fetchpriority = priority ? 'high' : ($props.fetchpriority || 'auto')
|
|
14
14
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Initial defaults captured at render time. The client script wraps these
|
|
3
3
|
// in signals so consumers can mutate them after mount (fetch-then-toast,
|
|
4
4
|
// auto-dismiss, etc.). See stacksjs/stx#1692.
|
|
5
|
-
export const initialShow = $props.show
|
|
5
|
+
export const initialShow = $bool($props.show, true)
|
|
6
6
|
export const initialTitle = $props.title || ''
|
|
7
7
|
export const initialMessage = $props.message || ''
|
|
8
8
|
export const initialType = $props.type || 'info'
|
|
@@ -73,7 +73,7 @@ export const isArc = theme === 'arc'
|
|
|
73
73
|
// padding.
|
|
74
74
|
const controlsProp = $props.windowControls || ''
|
|
75
75
|
export const windowControls = controlsProp
|
|
76
|
-
|| (($props.showWindowControls
|
|
76
|
+
|| ($bool($props.showWindowControls, !isArc) ? 'auto' : 'none')
|
|
77
77
|
export const autoWindowControls = windowControls === 'auto'
|
|
78
78
|
export const showWindowControls = windowControls === 'draw' || autoWindowControls
|
|
79
79
|
export const reserveWindowControls = windowControls === 'native' || autoWindowControls
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script server>
|
|
2
2
|
export const className = $props.className || ''
|
|
3
3
|
export const striped = $bool($props.striped)
|
|
4
|
-
export const hoverable = $props.hoverable
|
|
4
|
+
export const hoverable = $bool($props.hoverable, true)
|
|
5
5
|
|
|
6
6
|
const baseClasses = 'min-w-full divide-y divide-line'
|
|
7
7
|
const tableClasses = `${baseClasses} ${className}`.trim()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script server>
|
|
2
2
|
export const className = $props.className || ''
|
|
3
|
-
export const hoverable = $props.hoverable
|
|
3
|
+
export const hoverable = $bool($props.hoverable, true)
|
|
4
4
|
|
|
5
5
|
const hoverClasses = hoverable ? 'hover:bg-surface-hover' : ''
|
|
6
6
|
const rowClasses = `${hoverClasses} ${className}`.trim()
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script server>
|
|
2
|
-
export const show = $props.show
|
|
2
|
+
export const show = $bool($props.show, true)
|
|
3
3
|
export const enter = $props.enter || 'transition-opacity duration-300'
|
|
4
4
|
export const enterFrom = $props.enterFrom || 'opacity-0'
|
|
5
5
|
export const enterTo = $props.enterTo || 'opacity-100'
|
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ var we=import.meta.require;var ye={__stx:!0,src:"./components/CodeBlock.stx"};va
|
|
|
8
8
|
Documentation: ${s.docsUrl}`;else if(e)o+=`
|
|
9
9
|
Documentation: ${Je}/${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 Ei(e){H=e}function Ti(){H=null}function F(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((n)=>{let i=R.eventHandler(t,s,n);throw F(i,{throwError:!1}),i});return a}catch(a){let n=R.eventHandler(t,s,a);throw F(n,{throwError:!1}),n}}}function _e(e,t){if(!e)throw t}function Ge(e,t,s={}){if(j.env.NODE_ENV==="production")return;let o=A.formatMessage(e,t,s);console.warn(`\u26A0\uFE0F ${o}`)}function Di(e,t){if(j.env.NODE_ENV==="production")return;_e(e,t)}function Ni(e){let t=typeof j<"u"&&j.env.DEBUG==="true";return{log(...s){if(t)console.log(`[${e}]`,...s)},warn(s,o){Ge(e,s,o)},error(s,o){let a=new A(e,s,o);F(a,{throwError:!1})}}}function Oi(e,t,s){try{return t()}catch(o){let a=R.render(e,o);return F(a,{throwError:!1}),s}}import Ye from"process";var V=Ye.env.NODE_ENV!=="production";class k{validate;message;isRequired;constructor(e,t,s=!1){this.validate=e;this.message=t;this.isRequired=s}get required(){return new k(this.validate,this.message,!0)}}var l={string:new k((e)=>typeof e==="string",(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`string\`.`),number:new k((e)=>typeof e==="number"&&!Number.isNaN(e),(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`number\`.`),boolean:new k((e)=>typeof e==="boolean",(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`boolean\`.`),func:new k((e)=>typeof e==="function",(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`function\`.`),object:new k((e)=>typeof e==="object"&&e!==null&&!Array.isArray(e),(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`object\`.`),array:new k((e)=>Array.isArray(e),(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`array\`.`),any:new k(()=>!0,()=>""),oneOf(e){return new k((t)=>e.includes(t),(t,s,o)=>`Invalid prop \`${s}\` of value \`${t}\` supplied to \`${o}\`, expected one of [${e.map((a)=>JSON.stringify(a)).join(", ")}].`)},oneOfType(e){return new k((t,s,o)=>e.some((a)=>a.validate(t,s,o)),(t,s,o)=>`Invalid prop \`${s}\` supplied to \`${o}\`, expected one of the specified types.`)},arrayOf(e){return new k((t,s,o)=>{if(!Array.isArray(t))return!1;return t.every((a,n)=>e.validate(a,`${s}[${n}]`,o))},(t,s,o)=>`Invalid prop \`${s}\` supplied to \`${o}\`, expected array of specified type.`)},shape(e){return new k((t,s,o)=>{if(typeof t!=="object"||t===null||Array.isArray(t))return!1;for(let[a,n]of Object.entries(e)){if(n.isRequired&&!(a in t))return!1;if(a in t&&!n.validate(t[a],`${s}.${a}`,o))return!1}return!0},(t,s,o)=>`Invalid prop \`${s}\` supplied to \`${o}\`, expected object matching specified shape.`)},instanceOf(e){return new k((t)=>t instanceof e,(t,s,o)=>`Invalid prop \`${s}\` supplied to \`${o}\`, expected instance of \`${e.name}\`.`)},custom(e,t){return new k(e,typeof t==="string"?()=>t:t)},min(e){return new k((t)=>typeof t==="number"&&t>=e,(t,s,o)=>`Invalid prop \`${s}\` of value \`${t}\` supplied to \`${o}\`, expected value >= ${e}.`)},max(e){return new k((t)=>typeof t==="number"&&t<=e,(t,s,o)=>`Invalid prop \`${s}\` of value \`${t}\` supplied to \`${o}\`, expected value <= ${e}.`)},range(e,t){return new k((s)=>typeof s==="number"&&s>=e&&s<=t,(s,o,a)=>`Invalid prop \`${o}\` of value \`${s}\` supplied to \`${a}\`, expected value between ${e} and ${t}.`)},pattern(e){return new k((t)=>typeof t==="string"&&e.test(t),(t,s,o)=>`Invalid prop \`${s}\` of value \`${t}\` supplied to \`${o}\`, expected value matching pattern ${e}.`)},email:new k((e)=>typeof e==="string"&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),(e,t,s)=>`Invalid prop \`${t}\` of value \`${e}\` supplied to \`${s}\`, expected valid email address.`),url:new k((e)=>{if(typeof e!=="string")return!1;try{let t=new URL(e);return!0}catch{return!1}},(e,t,s)=>`Invalid prop \`${t}\` of value \`${e}\` supplied to \`${s}\`, expected valid URL.`)};function Xe(e,t,s,o={}){let{throwOnError:a=!1,logWarnings:n=V}=o,i=[];if(!V)return{valid:!0,errors:[]};for(let[r,c]of Object.entries(s)){let d=t[r],h=d===void 0;if(c.isRequired&&h){let p=`Required prop \`${r}\` was not specified in \`${e}\`.`;i.push(p);continue}if(h)continue;if(!c.validate(d,r,e)){let p=c.message(d,r,e);i.push(p)}}if(i.length>0){if(n)console.group(`\u26A0\uFE0F Prop validation failed for \`${e}\``),i.forEach((r)=>console.warn(r)),console.groupEnd();if(a)throw Error(`Prop validation failed for \`${e}\`:
|
|
10
10
|
${i.join(`
|
|
11
|
-
`)}`)}return{valid:i.length===0,errors:i}}function D(e,t,s){return(o)=>Xe(e,o,t,s)}function zi(e,t,s="value"){if(!V)return;if(!t.validate(e,s,"assertion"))throw Error(t.message(e,s,"assertion"))}function Ri(e,t,s="value"){if(!V)return;if(!t.validate(e,s,"warning"))console.warn(t.message(e,s,"warning"))}var Qe="./Button-k2q6811a.stx";var et={variant:l.oneOf(["primary","secondary","outline","ghost","danger"]),size:l.oneOf(["xs","sm","md","lg","xl"]),disabled:l.boolean,loading:l.boolean,type:l.oneOf(["button","submit","reset"]),fullWidth:l.boolean,leftIcon:l.string,rightIcon:l.string,className:l.string,onClick:l.func},Wi=D("Button",et);function Hi(e){return le(e,"Button","onClick")}function Fi(e){if(e&&!["primary","secondary","outline","ghost","danger"].includes(e))throw R.invalidProp("Button","variant",e,["primary","secondary","outline","ghost","danger"])}function Vi(e){if(e&&!["xs","sm","md","lg","xl"].includes(e))throw R.invalidProp("Button","size",e,["xs","sm","md","lg","xl"])}var st="./Calendar-f3nzpc2y.stx";var at="./DateRangePicker-z64qqw84.stx";var it="./EmptyState-s790dbym.stx";var lt="./ThemeToggle-4wm9zare.stx";var dt="./Card-r55zpjqh.stx";var ht="./Checkbox-tt8bze29.stx";var ft="./Combobox-9xh1jgjr.stx";var bt="./ComboboxButton-4r6a45s1.stx";var xt="./ComboboxInput-1gyfpnca.stx";var wt="./ComboboxOption-wkw70js7.stx";var Ct="./ComboboxOptions-zhr9b6rx.stx";var kt="./CommandPalette-vvaqtqat.stx";var It="./CommandPaletteItem-7290ce1z.stx";var Et="./Dialog-d1020hj6.stx";var Dt="./DialogBackdrop-de5m5m4w.stx";var Ot="./DialogDescription-gth4c2kx.stx";var Pt="./DialogPanel-vhdqymc2.stx";var Rt="./DialogTitle-0jjdk5ra.stx";var qt="./Drawer-hc0jjpsw.stx";var Bt="./Dropdown-25160tc6.stx";var Ht="./DropdownButton-wxc25hsy.stx";var Vt="./DropdownItem-af0vzc8a.stx";var Ut="./DropdownItems-bkz7jkyz.stx";var _t="./Form-vbag14t1.stx";var Gt={action:l.string,method:l.oneOf(["GET","POST","PUT","DELETE","PATCH"]),validationSchema:l.object,initialValues:l.object,validateOnChange:l.boolean,validateOnBlur:l.boolean,onSubmit:l.func,onError:l.func,className:l.string},Zr=D("Form",Gt);var Xt="./Image-79xyzb5j.stx";var Qt="./EmailInput-agb8kqae.stx";var ts="./NumberInput-g3jfy120.stx";var os="./PasswordInput-p2rt5926.stx";var ns="./SearchInput-psbjk2ye.stx";var rs="./TextInput-t0a4ch49.stx";var ls={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string},cs={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,leftIcon:l.string,rightIcon:l.string,clearable:l.boolean,maxLength:l.number,showCount:l.boolean},ds={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,min:l.number,max:l.number,step:l.number,showControls:l.boolean},ps={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,showStrength:l.boolean},hs={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,onSearch:l.func,loading:l.boolean},dl=D("TextInput",cs),pl=D("EmailInput",ls),hl=D("PasswordInput",ps),ul=D("NumberInput",ds),fl=D("SearchInput",hs);var fs="./Listbox-32gzxace.stx";var bs="./ListboxButton-gan8e3nw.stx";var xs="./ListboxLabel-ka0hfm7b.stx";var ws="./ListboxOption-gpaqvk3s.stx";var Cs="./ListboxOptions-2928864k.stx";var ks="./FilterChip-00ja5jhz.stx";var Is="./FilterChips-7pnzycfd.stx";var Es="./ListRow-8d3e1yxh.stx";var Ds="./NavBar-qqrrhdnk.stx";var Os="./SectionCard-8ctdacjr.stx";var Ps="./TabBar-8143650x.stx";var Rs="./TabBarItem-kddfnhk3.stx";var qs="./Navigator-1yk1c3pp.stx";var Bs="./Notification-2ws4ym4s.stx";var Hs="./Pagination-330ybzf1.stx";var Vs="./Checkout-22wh3s22.stx";var Us="./DefaultPaymentMethod-ss3x61tr.stx";var _s="./PaymentMethods-z4hhr0kv.stx";var Ys="./SubscriptionCheckout-f1ev0ry8.stx";var Zs="./Popover-9m42pym0.stx";var eo="./PopoverButton-3w6550hv.stx";var so="./PopoverPanel-d84gk1w1.stx";var ao="./Portal-m73vz879.stx";var io="./Progress-bv65bwh8.stx";var lo="./Radio-625byys2.stx";var po="./RadioGroup-smqcqgds.stx";var uo="./RadioGroupDescription-z34r9avr.stx";var mo="./RadioGroupLabel-ka0hfm7b.stx";var go="./RadioGroupOption-twcw1b2a.stx";var vo="./Select-1p9mcbsb.stx";var yo="./Sidebar-ve2asgf3.stx";var $o="./SidebarFooter-s7skj92y.stx";var So="./SidebarHeader-esvby82n.stx";var Ao="./SidebarItem-r4f2pref.stx";var To="./SidebarPinned-48kyk193.stx";var No="./SidebarSection-5sqza2j6.stx";var Lo="./SidebarSpace-bwv98azf.stx";var zo="./SidebarSpaces-mdtrynr2.stx";var Mo="./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"},z={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}},qo={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}},jo={selection:"classes",pane:"bg-[#f3f3f1]/48 dark:bg-neutral-950/32 backdrop-blur-3xl backdrop-saturate-150 text-zinc-950 dark:text-white select-none",layers:{tint:"bg-[linear-gradient(112deg,rgba(255,255,255,0.20)_0%,rgba(255,255,255,0.04)_45%,rgba(226,226,222,0.16)_100%)] dark:bg-[linear-gradient(112deg,rgba(255,255,255,0.08)_0%,rgba(255,255,255,0.02)_46%,rgba(255,255,255,0.06)_100%)]"},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-5 py-2",sectionHeader:"group/section flex w-full items-center gap-2.5 px-3 pb-1.5 pt-3 rounded-[14px] text-[12px] font-semibold uppercase tracking-[0.10em] text-zinc-500/80 dark:text-zinc-400/80",sectionChevron:"i-f7-chevron-down h-3 w-3 ml-auto opacity-0 group-hover/section:opacity-100 transition-opacity duration-150 transition-transform duration-200",sectionGroup:"flex flex-col space-y-1",item:{base:"flex w-full items-center gap-3 rounded-[14px] px-3 py-1.5 text-[13.5px] leading-tight transition-colors duration-150",hover:"hover:bg-white/38 hover:text-zinc-950 dark:hover:bg-white/10",active:"bg-[#e8e8e6]/90 text-zinc-950 dark:bg-white/12 dark:text-white",pressed:"active:bg-white/50 dark:active:bg-white/15",disabled:"opacity-50 pointer-events-none",disclosure:"flex h-4 w-4 shrink-0 items-center justify-center",chevron:"i-f7-chevron-right h-3 w-3 opacity-50 transition-transform duration-200",iconSlot:"flex h-5 w-5 shrink-0 items-center justify-center",icon:"h-[18px] w-[18px] text-zinc-600 dark:text-zinc-400",image:"h-5 w-5 rounded object-cover",label:"flex-1 truncate text-left text-zinc-700 dark:text-zinc-300",count:"ml-auto grid h-5 min-w-5 place-items-center rounded-full bg-white/72 px-1.5 text-[11px] font-medium text-zinc-500 shadow-sm dark:bg-white/10 dark:text-zinc-400",indentPerLevel:12}},Bo={selection:"classes",pane:["bg-[#f7f5f1]/92 dark:bg-[#1a1a1c]/92","backdrop-blur-[40px] backdrop-saturate-[160%]","text-[#2c2a28] dark:text-[#ededf0]","select-none"].join(" "),layers:{tint:["bg-[linear-gradient(180deg,var(--stx-sidebar-tint,rgba(255,251,242,0.55))_0%,rgba(255,255,255,0)_38%)]","dark:bg-[linear-gradient(180deg,var(--stx-sidebar-tint,rgba(255,255,255,0.05))_0%,rgba(255,255,255,0)_42%)]"].join(" ")},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-[16px] pb-[8px]",sectionHeader:["group/section flex w-full items-center","px-[8px] pt-[14px] pb-[4px]","text-[11px] font-medium leading-[13px]","opacity-55"].join(" "),sectionChevron:["i-f7-chevron-down h-[10px] w-[10px] ml-auto","opacity-0 group-hover/section:opacity-100 transition-opacity duration-150","transition-transform duration-200"].join(" "),sectionGroup:"flex flex-col space-y-[2px]",item:{base:["flex w-full items-center","h-[30px] rounded-[8px] pl-[6px] pr-[8px]","text-[13px] leading-[16px] font-normal","text-current","transition-[background-color,box-shadow,color] duration-150 ease-out","cursor-default"].join(" "),hover:"hover:bg-white/55 dark:hover:bg-white/8",active:["bg-white dark:bg-white/14","font-medium","shadow-[0_1px_2px_rgba(0,0,0,0.08)] dark:shadow-[0_1px_2px_rgba(0,0,0,0.35)]","ring-1 ring-black/5 dark:ring-white/8"].join(" "),pressed:"active:bg-white/80 dark:active:bg-white/18",disabled:"opacity-40 pointer-events-none",disclosure:"flex h-[16px] w-[16px] shrink-0 items-center justify-center",chevron:["i-f7-chevron-right h-[10px] w-[10px] opacity-45","transition-transform duration-200 ease-out"].join(" "),iconSlot:"flex h-[18px] w-[18px] shrink-0 items-center justify-center mr-[8px]",icon:"h-[16px] w-[16px]",image:"h-[18px] w-[18px] rounded-[5px] object-cover shadow-sm",label:"flex-1 truncate text-left",count:["ml-[8px] shrink-0 tabular-nums","text-[12px] leading-[16px] opacity-45"].join(" "),indentPerLevel:14}},Wo={...z,pane:"bg-stone-100 dark:bg-neutral-900 text-black dark:text-white select-none",layers:{}},Ho={...z,pane:"bg-transparent text-black dark:text-white select-none",layers:{}},Fo={...z,pane:"bg-white/50 dark:bg-black/40 backdrop-blur-3xl backdrop-saturate-200 text-black dark:text-white select-none",layers:{}},ce={macos:z,tahoe:z,"macos-tahoe":z,"macos-latest":z,arc:Bo,workspace:qo,desktop:jo,solid:Wo,transparent:Ho,vibrancy:Fo};function _c(e){return ce[e||"macos"]||ce.macos}function Gc(e){if(!e)return;return K[e]||e}var Vo=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 Zc(e,t){return`linear-gradient(180deg, ${e} 0%, ${t} 100%)`}function Ko(e){if(!e)return de(Vo);if(typeof e!=="string")return e;return de(K[e]||e)}function Uo(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 Jo(e){let t=Ko(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:Uo(t),deferred:e.deferred===!0,showTitle:e.showTitle??!0}}function Qc(e){return(e||[]).map(Jo)}function ed(e,t){if(!t)return 0;let s=e.findIndex((o)=>o.id===t);return s===-1?0:s}function td(e){return e.map((t)=>t.tint)}var Go="./Skeleton-me2hwqrc.stx";var Xo="./Spinner-vhnc3y03.stx";var Qo="./Stepper-rgbk76hd.stx";var ta="./StepperStep-b78wmshd.stx";class U{storage;namespace;watchers=new Map;encryptionKey="stx-storage-key";constructor(e="local",t=""){if(this.storage=e==="local"?globalThis.localStorage:globalThis.sessionStorage,this.namespace=t,typeof window<"u")window.addEventListener("storage",this.handleStorageEvent.bind(this))}handleStorageEvent(e){if(!e.key)return;let t=this.namespace&&e.key.startsWith(`${this.namespace}:`)?e.key.slice(this.namespace.length+1):e.key,s=this.watchers.get(t);if(s){let o=e.oldValue?JSON.parse(e.oldValue).value:null,a=e.newValue?JSON.parse(e.newValue).value:null;s.forEach((n)=>n(a,o,t))}}encrypt(e){let t="";for(let s=0;s<e.length;s++)t+=String.fromCharCode(e.charCodeAt(s)^this.encryptionKey.charCodeAt(s%this.encryptionKey.length));return btoa(t)}decrypt(e){try{let t=atob(e),s="";for(let o=0;o<t.length;o++)s+=String.fromCharCode(t.charCodeAt(o)^this.encryptionKey.charCodeAt(o%this.encryptionKey.length));return s}catch{return e}}compress(e){if(e.length<100)return e;let t={},s=256,o=[],a="";for(let n=0;n<e.length;n++){let i=e.charAt(n),r=a+i;if(t[r]!==void 0)a=r;else o.push(a.length>1?t[a]:a.charCodeAt(0)),t[r]=s++,a=i}if(a!=="")o.push(a.length>1?t[a]:a.charCodeAt(0));return JSON.stringify(o)}decompress(e){try{let t=JSON.parse(e);if(!Array.isArray(t))return e;let s={},o=256,a=String.fromCharCode(t[0]),n=a;for(let i=1;i<t.length;i++){let r=t[i],c;if(s[r]!==void 0)c=s[r];else if(r===o)c=a+a.charAt(0);else return e;n+=c,s[o++]=a+c.charAt(0),a=c}return n}catch{return e}}getKey(e){return this.namespace?`${this.namespace}:${e}`:e}set(e,t,s){let o=this.getKey(e),a=this.get(e),n={value:t,timestamp:Date.now(),expire:s?.expire,encrypted:s?.encrypt||!1,compressed:s?.compress||!1};try{let i=JSON.stringify(n);if(s?.compress)i=this.compress(i);if(s?.encrypt)i=this.encrypt(i);this.storage.setItem(o,i),this.notifyWatchers(e,t,a)}catch(i){console.error("Storage set error:",i)}}get(e){let t=this.getKey(e);try{let s=this.storage.getItem(t);if(!s)return null;if(s.match(/^[A-Z0-9+/]+=*$/i))try{s=this.decrypt(s)}catch{}if(s.startsWith("["))try{s=this.decompress(s)}catch{}let o=JSON.parse(s);if(o.expire&&Date.now()-o.timestamp>o.expire)return this.remove(e),null;return o.value}catch(s){return console.error("Storage get error:",s),null}}watch(e,t){if(!this.watchers.has(e))this.watchers.set(e,new Set);return this.watchers.get(e).add(t),()=>{let s=this.watchers.get(e);if(s){if(s.delete(t),s.size===0)this.watchers.delete(e)}}}notifyWatchers(e,t,s){let o=this.watchers.get(e);if(o)o.forEach((a)=>a(t,s,e))}remove(e){let t=this.getKey(e),s=this.get(e);this.storage.removeItem(t),this.notifyWatchers(e,null,s)}clear(){if(this.namespace)this.keys().forEach((t)=>this.remove(t));else this.storage.clear()}has(e){return this.get(e)!==null}keys(){let e=Object.keys(this.storage);if(this.namespace){let t=`${this.namespace}:`;return e.filter((s)=>s.startsWith(t)).map((s)=>s.slice(t.length))}return e}size(){return this.keys().length}getQuota(){if("storage"in navigator&&"estimate"in navigator.storage)return null;try{let e=0;for(let s=0;s<this.storage.length;s++){let o=this.storage.key(s);if(o){let a=this.storage.getItem(o)||"";e+=o.length+a.length}}let t=5242880;return{usage:e*2,quota:t,percentage:e*2/t*100}}catch{return null}}setMany(e,t){Object.entries(e).forEach(([s,o])=>{this.set(s,o,t)})}getMany(e){let t={};return e.forEach((s)=>{t[s]=this.get(s)}),t}removeMany(e){e.forEach((t)=>this.remove(t))}}var Ad={local:new U("local"),session:new U("session")};function Ed(e="local",t){return new U(e,t)}var oa="./Switch-27hp6pq5.stx";var na="./Table-akbk3t5q.stx";var ra="./TableBody-y49bqb1p.stx";var ca="./TableCell-8swtcq8s.stx";var pa="./TableHead-e9xvjx2j.stx";var ua="./TableHeader-qsc3e208.stx";var ma="./TableRow-ytr6b5by.stx";var ga="./TabPanel-5htevsq6.stx";var va="./Tabs-f1n3ggkw.stx";var ya="./Teleport-c8nn3757.stx";var $a="./Textarea-k1gf21kw.stx";var Sa="./Tooltip-g2j17eg9.stx";var Aa="./Transition-yrvqbhjy.stx";var Ta="./Video-rhy7dskw.stx";var Na="./VirtualList-fa7v5a3h.stx";var La="./VirtualTable-kp7b3wyv.stx";var Pa=0;function he(e="a11y"){return`${e}-${++Pa}-${Date.now()}`}function xp(e,t,s={}){let{visible:o=!1,id:a=he("label")}=s,n=document.createElement(o?"label":"span");if(n.id=a,n.textContent=e,!o)Object.assign(n.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"});if(t)if(t.setAttribute("aria-labelledby",a),t.parentElement)t.parentElement.insertBefore(n,t);else document.body.appendChild(n);return a}function vp(e,t){let s=he("desc"),o=document.createElement("span");if(o.id=s,o.textContent=e,Object.assign(o.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}),t)if(t.setAttribute("aria-describedby",s),t.parentElement)t.parentElement.insertBefore(o,t);else document.body.appendChild(o);return s}function wp(e,t="polite"){let s=document.createElement("div");s.setAttribute("role","status"),s.setAttribute("aria-live",t),s.setAttribute("aria-atomic","true"),Object.assign(s.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}),document.body.appendChild(s),setTimeout(()=>{s.textContent=e},100),setTimeout(()=>{s.parentNode?.removeChild(s)},1000)}function ee(e){let t=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(",");return Array.from(e.querySelectorAll(t)).filter((s)=>s.offsetParent!==null)}function yp(e,t={}){let{initialFocus:s,returnFocus:o,escapeDeactivates:a=!0,clickOutsideDeactivates:n=!0,allowOutsideClick:i=!1,onActivate:r,onDeactivate:c}=t,d=!1,h=!1,p=null,m=(x)=>{if(h)return;if(a&&x.key==="Escape"){x.preventDefault(),y();return}if(x.key==="Tab"){let C=ee(e);if(C.length===0){x.preventDefault();return}let E=C[0],O=C[C.length-1];if(x.shiftKey){if(document.activeElement===E)x.preventDefault(),O.focus()}else if(document.activeElement===O)x.preventDefault(),E.focus()}},f=(x)=>{if(h)return;if(!e.contains(x.target)){if(typeof i==="function"){if(!i(x)&&n)y()}else if(!i&&n)y()}};function w(){if(d)return;d=!0,p=document.activeElement;let x=s||ee(e)[0];if(x&&typeof x.focus==="function")x.focus();document.addEventListener("keydown",m),document.addEventListener("click",f),r?.()}function y(){if(!d)return;d=!1;let x=o||p;if(x&&typeof x.focus==="function")x.focus();document.removeEventListener("keydown",m),document.removeEventListener("click",f),c?.()}function v(){h=!0}function g(){h=!1}return{activate:w,deactivate:y,pause:v,unpause:g}}function Cp(e,t={}){let{selector:s='[role="option"], [role="menuitem"], [role="tab"], button',initialIndex:o=0,orientation:a="both",loop:n=!0,onFocusChange:i}=t,r=o,c=()=>{return Array.from(e.querySelectorAll(s))},d=(p)=>{let 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,i?.(p,m[p])},h=(p)=>{let f=c().length-1,w=!1,y=r;switch(p.key){case"ArrowRight":if(a==="horizontal"||a==="both"){if(y=r+1,y>f)y=n?0:f;w=!0}break;case"ArrowLeft":if(a==="horizontal"||a==="both"){if(y=r-1,y<0)y=n?f:0;w=!0}break;case"ArrowDown":if(a==="vertical"||a==="both"){if(y=r+1,y>f)y=n?0:f;w=!0}break;case"ArrowUp":if(a==="vertical"||a==="both"){if(y=r-1,y<0)y=n?f:0;w=!0}break;case"Home":y=0,w=!0;break;case"End":y=f,w=!0;break}if(w)p.preventDefault(),d(y)};return d(o),e.addEventListener("keydown",h),()=>{e.removeEventListener("keydown",h)}}var $p={Enter:"Enter",Space:" ",Escape:"Escape",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",Tab:"Tab",Home:"Home",End:"End",PageUp:"PageUp",PageDown:"PageDown"};function kp(e){return document.activeElement===e}function Sp(e,t){let s=t||document.activeElement,o=ee(document.body),a=o.indexOf(s);if(a===-1)return;let n=e==="next"?a+1:a-1,i=o[n];if(i)i.focus()}function Ip(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 Ap={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 Ep(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 Tp(){if(typeof window.matchMedia==="function")return window.matchMedia("(prefers-reduced-motion: reduce)").matches;return!1}function Dp(){if(typeof window.matchMedia==="function")return window.matchMedia("(prefers-contrast: high)").matches;return!1}function Np(){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 Op(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 Lp(e){let t=[],s=(o)=>{let a=e.getAttribute(o);if(a){let n=a.split(" ");for(let i of n)if(!document.getElementById(i))t.push(`${o} references non-existent ID: ${i}`)}};return s("aria-labelledby"),s("aria-describedby"),s("aria-controls"),s("aria-owns"),s("aria-activedescendant"),t}var za=(e,t,s,o)=>{return s*e/o+t},Ra=(e,t,s,o)=>{return e/=o,s*e*e+t},Ma=(e,t,s,o)=>{return e/=o,-s*e*(e-2)+t},qa=(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},ja=(e,t,s,o)=>{return e/=o,s*e*e*e+t},Ba=(e,t,s,o)=>{return e/=o,e--,s*(e*e*e+1)+t},Wa=(e,t,s,o)=>{if(e/=o/2,e<1)return s/2*e*e*e+t;return e-=2,s/2*(e*e*e+2)+t},Ha=(e,t,s,o)=>{return e/=o,s*e*e*e*e+t},Fa=(e,t,s,o)=>{return e/=o,e--,-s*(e*e*e*e-1)+t},Va=(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},Ka=(e,t,s,o)=>{return e/=o,s*e*e*e*e*e+t},Ua=(e,t,s,o)=>{return e/=o,e--,s*(e*e*e*e*e+1)+t},Ja=(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},_a=(e,t,s,o)=>{return-s*Math.cos(e/o*(Math.PI/2))+s+t},Ga=(e,t,s,o)=>{return s*Math.sin(e/o*(Math.PI/2))+t},Ya=(e,t,s,o)=>{return-s/2*(Math.cos(Math.PI*e/o)-1)+t},Xa=(e,t,s,o)=>{return e===0?t:s*2**(10*(e/o-1))+t},Za=(e,t,s,o)=>{return e===o?t+s:s*(-(2**(-10*e/o))+1)+t},Qa=(e,t,s,o)=>{if(e===0)return t;if(e===o)return t+s;if(e/=o/2,e<1)return s/2*2**(10*(e-1))+t;return e--,s/2*(-(2**(-10*e))+2)+t},en=(e,t,s,o)=>{return e/=o,-s*(Math.sqrt(1-e*e)-1)+t},tn=(e,t,s,o)=>{return e/=o,e--,s*Math.sqrt(1-e*e)+t},sn=(e,t,s,o)=>{if(e/=o/2,e<1)return-s/2*(Math.sqrt(1-e*e)-1)+t;return e-=2,s/2*(Math.sqrt(1-e*e)+1)+t},on=(e,t,s,o)=>{let a=1.70158,n=0,i=s;if(e===0)return t;if(e/=o,e===1)return t+s;if(!n)n=o*0.3;if(i<Math.abs(s))i=s,a=n/4;else a=n/(2*Math.PI)*Math.asin(s/i);return e-=1,-(i*2**(10*e)*Math.sin((e*o-a)*(2*Math.PI)/n))+t},an=(e,t,s,o)=>{let a=1.70158,n=0,i=s;if(e===0)return t;if(e/=o,e===1)return t+s;if(!n)n=o*0.3;if(i<Math.abs(s))i=s,a=n/4;else a=n/(2*Math.PI)*Math.asin(s/i);return i*2**(-10*e)*Math.sin((e*o-a)*(2*Math.PI)/n)+s+t},nn=(e,t,s,o)=>{let a=1.70158,n=0,i=s;if(e===0)return t;if(e/=o/2,e===2)return t+s;if(!n)n=o*0.44999999999999996;if(i<Math.abs(s))i=s,a=n/4;else a=n/(2*Math.PI)*Math.asin(s/i);if(e<1)return e-=1,-0.5*(i*2**(10*e)*Math.sin((e*o-a)*(2*Math.PI)/n))+t;return e-=1,i*2**(-10*e)*Math.sin((e*o-a)*(2*Math.PI)/n)*0.5+s+t},rn=(e,t,s,o)=>{return e/=o,s*e*e*(2.70158*e-1.70158)+t},ln=(e,t,s,o)=>{return e/=o,e--,s*(e*e*(2.70158*e+1.70158)+1)+t},cn=(e,t,s,o)=>{let a=1.70158;if(e/=o/2,e<1)return a*=1.525,s/2*(e*e*((a+1)*e-a))+t;return e-=2,a*=1.525,s/2*(e*e*((a+1)*e+a)+2)+t},te=(e,t,s,o)=>{if(e/=o,e<0.36363636363636365)return s*(7.5625*e*e)+t;else if(e<0.7272727272727273)return e-=0.5454545454545454,s*(7.5625*e*e+0.75)+t;else if(e<0.9090909090909091)return e-=0.8181818181818182,s*(7.5625*e*e+0.9375)+t;else return e-=0.9545454545454546,s*(7.5625*e*e+0.984375)+t},ue=(e,t,s,o)=>{return s-te(o-e,0,s,o)+t},dn=(e,t,s,o)=>{if(e<o/2)return ue(e*2,0,s,o)*0.5+t;return te(e*2-o,0,s,o)*0.5+s*0.5+t},zp={linear:za,easeInQuad:Ra,easeOutQuad:Ma,easeInOutQuad:qa,easeInCubic:ja,easeOutCubic:Ba,easeInOutCubic:Wa,easeInQuart:Ha,easeOutQuart:Fa,easeInOutQuart:Va,easeInQuint:Ka,easeOutQuint:Ua,easeInOutQuint:Ja,easeInSine:_a,easeOutSine:Ga,easeInOutSine:Ya,easeInExpo:Xa,easeOutExpo:Za,easeInOutExpo:Qa,easeInCirc:en,easeOutCirc:tn,easeInOutCirc:sn,easeInElastic:on,easeOutElastic:an,easeInOutElastic:nn,easeInBack:rn,easeOutBack:ln,easeInOutBack:cn,easeInBounce:ue,easeOutBounce:te,easeInOutBounce:dn};function pn(e,t={}){let{duration:s="1s",timing:o="ease",delay:a="0s",iteration:n="1",direction:i="normal",fill:r="both",playState:c="running"}=t;return`${e} ${s} ${o} ${a} ${n} ${i} ${r} ${c}`}function fe(e,t,s={}){e.style.animation=pn(t,s)}function Mp(e){e.style.animation=""}function hn(e){return new Promise((t)=>{let s=()=>{e.removeEventListener("animationend",s),t()};e.addEventListener("animationend",s)})}function qp(e,t,s={}){let{stagger:o=100,...a}=s;e.forEach((n,i)=>{let r=`${i*o}ms`;fe(n,t,{...a,delay:r})})}async function jp(e,t){for(let s of t)fe(e,s.name,s.options),await hn(e)}var Bp={fadeIn:"animate-fade-in",fadeOut:"animate-fade-out",slideInUp:"animate-slide-in-up",slideInDown:"animate-slide-in-down",slideInLeft:"animate-slide-in-left",slideInRight:"animate-slide-in-right",zoomIn:"animate-zoom-in",zoomOut:"animate-zoom-out",bounce:"animate-bounce",spin:"animate-spin",ping:"animate-ping",pulse:"animate-pulse"};function Wp(e,t,s=1000){return new Promise((o)=>{e.classList.add(t),setTimeout(()=>{e.classList.remove(t),o()},s)})}function Hp(e,t){let s=`
|
|
11
|
+
`)}`)}return{valid:i.length===0,errors:i}}function D(e,t,s){return(o)=>Xe(e,o,t,s)}function zi(e,t,s="value"){if(!V)return;if(!t.validate(e,s,"assertion"))throw Error(t.message(e,s,"assertion"))}function Ri(e,t,s="value"){if(!V)return;if(!t.validate(e,s,"warning"))console.warn(t.message(e,s,"warning"))}var Qe="./Button-k2q6811a.stx";var et={variant:l.oneOf(["primary","secondary","outline","ghost","danger"]),size:l.oneOf(["xs","sm","md","lg","xl"]),disabled:l.boolean,loading:l.boolean,type:l.oneOf(["button","submit","reset"]),fullWidth:l.boolean,leftIcon:l.string,rightIcon:l.string,className:l.string,onClick:l.func},Wi=D("Button",et);function Hi(e){return le(e,"Button","onClick")}function Fi(e){if(e&&!["primary","secondary","outline","ghost","danger"].includes(e))throw R.invalidProp("Button","variant",e,["primary","secondary","outline","ghost","danger"])}function Vi(e){if(e&&!["xs","sm","md","lg","xl"].includes(e))throw R.invalidProp("Button","size",e,["xs","sm","md","lg","xl"])}var st="./Calendar-93yvwp1s.stx";var at="./DateRangePicker-z64qqw84.stx";var it="./EmptyState-s790dbym.stx";var lt="./ThemeToggle-4wm9zare.stx";var dt="./Card-r55zpjqh.stx";var ht="./Checkbox-tt8bze29.stx";var ft="./Combobox-9xh1jgjr.stx";var bt="./ComboboxButton-4r6a45s1.stx";var xt="./ComboboxInput-1gyfpnca.stx";var wt="./ComboboxOption-wkw70js7.stx";var Ct="./ComboboxOptions-zhr9b6rx.stx";var kt="./CommandPalette-vvaqtqat.stx";var It="./CommandPaletteItem-7290ce1z.stx";var Et="./Dialog-d1020hj6.stx";var Dt="./DialogBackdrop-de5m5m4w.stx";var Ot="./DialogDescription-gth4c2kx.stx";var Pt="./DialogPanel-vhdqymc2.stx";var Rt="./DialogTitle-0jjdk5ra.stx";var qt="./Drawer-hc0jjpsw.stx";var Bt="./Dropdown-25160tc6.stx";var Ht="./DropdownButton-wxc25hsy.stx";var Vt="./DropdownItem-af0vzc8a.stx";var Ut="./DropdownItems-bkz7jkyz.stx";var _t="./Form-ewzy10ye.stx";var Gt={action:l.string,method:l.oneOf(["GET","POST","PUT","DELETE","PATCH"]),validationSchema:l.object,initialValues:l.object,validateOnChange:l.boolean,validateOnBlur:l.boolean,onSubmit:l.func,onError:l.func,className:l.string},Zr=D("Form",Gt);var Xt="./Image-tw2jxbpb.stx";var Qt="./EmailInput-agb8kqae.stx";var ts="./NumberInput-g3jfy120.stx";var os="./PasswordInput-p2rt5926.stx";var ns="./SearchInput-psbjk2ye.stx";var rs="./TextInput-t0a4ch49.stx";var ls={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string},cs={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,leftIcon:l.string,rightIcon:l.string,clearable:l.boolean,maxLength:l.number,showCount:l.boolean},ds={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,min:l.number,max:l.number,step:l.number,showControls:l.boolean},ps={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,showStrength:l.boolean},hs={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,onSearch:l.func,loading:l.boolean},dl=D("TextInput",cs),pl=D("EmailInput",ls),hl=D("PasswordInput",ps),ul=D("NumberInput",ds),fl=D("SearchInput",hs);var fs="./Listbox-32gzxace.stx";var bs="./ListboxButton-gan8e3nw.stx";var xs="./ListboxLabel-ka0hfm7b.stx";var ws="./ListboxOption-gpaqvk3s.stx";var Cs="./ListboxOptions-2928864k.stx";var ks="./FilterChip-00ja5jhz.stx";var Is="./FilterChips-7pnzycfd.stx";var Es="./ListRow-8d3e1yxh.stx";var Ds="./NavBar-qqrrhdnk.stx";var Os="./SectionCard-8ctdacjr.stx";var Ps="./TabBar-8143650x.stx";var Rs="./TabBarItem-kddfnhk3.stx";var qs="./Navigator-1yk1c3pp.stx";var Bs="./Notification-b3cz24f0.stx";var Hs="./Pagination-330ybzf1.stx";var Vs="./Checkout-22wh3s22.stx";var Us="./DefaultPaymentMethod-ss3x61tr.stx";var _s="./PaymentMethods-z4hhr0kv.stx";var Ys="./SubscriptionCheckout-f1ev0ry8.stx";var Zs="./Popover-9m42pym0.stx";var eo="./PopoverButton-3w6550hv.stx";var so="./PopoverPanel-d84gk1w1.stx";var ao="./Portal-m73vz879.stx";var io="./Progress-bv65bwh8.stx";var lo="./Radio-625byys2.stx";var po="./RadioGroup-smqcqgds.stx";var uo="./RadioGroupDescription-z34r9avr.stx";var mo="./RadioGroupLabel-ka0hfm7b.stx";var go="./RadioGroupOption-twcw1b2a.stx";var vo="./Select-1p9mcbsb.stx";var yo="./Sidebar-ve2asgf3.stx";var $o="./SidebarFooter-s7skj92y.stx";var So="./SidebarHeader-x7jdhmyr.stx";var Ao="./SidebarItem-r4f2pref.stx";var To="./SidebarPinned-48kyk193.stx";var No="./SidebarSection-5sqza2j6.stx";var Lo="./SidebarSpace-bwv98azf.stx";var zo="./SidebarSpaces-mdtrynr2.stx";var Mo="./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"},z={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}},qo={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}},jo={selection:"classes",pane:"bg-[#f3f3f1]/48 dark:bg-neutral-950/32 backdrop-blur-3xl backdrop-saturate-150 text-zinc-950 dark:text-white select-none",layers:{tint:"bg-[linear-gradient(112deg,rgba(255,255,255,0.20)_0%,rgba(255,255,255,0.04)_45%,rgba(226,226,222,0.16)_100%)] dark:bg-[linear-gradient(112deg,rgba(255,255,255,0.08)_0%,rgba(255,255,255,0.02)_46%,rgba(255,255,255,0.06)_100%)]"},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-5 py-2",sectionHeader:"group/section flex w-full items-center gap-2.5 px-3 pb-1.5 pt-3 rounded-[14px] text-[12px] font-semibold uppercase tracking-[0.10em] text-zinc-500/80 dark:text-zinc-400/80",sectionChevron:"i-f7-chevron-down h-3 w-3 ml-auto opacity-0 group-hover/section:opacity-100 transition-opacity duration-150 transition-transform duration-200",sectionGroup:"flex flex-col space-y-1",item:{base:"flex w-full items-center gap-3 rounded-[14px] px-3 py-1.5 text-[13.5px] leading-tight transition-colors duration-150",hover:"hover:bg-white/38 hover:text-zinc-950 dark:hover:bg-white/10",active:"bg-[#e8e8e6]/90 text-zinc-950 dark:bg-white/12 dark:text-white",pressed:"active:bg-white/50 dark:active:bg-white/15",disabled:"opacity-50 pointer-events-none",disclosure:"flex h-4 w-4 shrink-0 items-center justify-center",chevron:"i-f7-chevron-right h-3 w-3 opacity-50 transition-transform duration-200",iconSlot:"flex h-5 w-5 shrink-0 items-center justify-center",icon:"h-[18px] w-[18px] text-zinc-600 dark:text-zinc-400",image:"h-5 w-5 rounded object-cover",label:"flex-1 truncate text-left text-zinc-700 dark:text-zinc-300",count:"ml-auto grid h-5 min-w-5 place-items-center rounded-full bg-white/72 px-1.5 text-[11px] font-medium text-zinc-500 shadow-sm dark:bg-white/10 dark:text-zinc-400",indentPerLevel:12}},Bo={selection:"classes",pane:["bg-[#f7f5f1]/92 dark:bg-[#1a1a1c]/92","backdrop-blur-[40px] backdrop-saturate-[160%]","text-[#2c2a28] dark:text-[#ededf0]","select-none"].join(" "),layers:{tint:["bg-[linear-gradient(180deg,var(--stx-sidebar-tint,rgba(255,251,242,0.55))_0%,rgba(255,255,255,0)_38%)]","dark:bg-[linear-gradient(180deg,var(--stx-sidebar-tint,rgba(255,255,255,0.05))_0%,rgba(255,255,255,0)_42%)]"].join(" ")},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-[16px] pb-[8px]",sectionHeader:["group/section flex w-full items-center","px-[8px] pt-[14px] pb-[4px]","text-[11px] font-medium leading-[13px]","opacity-55"].join(" "),sectionChevron:["i-f7-chevron-down h-[10px] w-[10px] ml-auto","opacity-0 group-hover/section:opacity-100 transition-opacity duration-150","transition-transform duration-200"].join(" "),sectionGroup:"flex flex-col space-y-[2px]",item:{base:["flex w-full items-center","h-[30px] rounded-[8px] pl-[6px] pr-[8px]","text-[13px] leading-[16px] font-normal","text-current","transition-[background-color,box-shadow,color] duration-150 ease-out","cursor-default"].join(" "),hover:"hover:bg-white/55 dark:hover:bg-white/8",active:["bg-white dark:bg-white/14","font-medium","shadow-[0_1px_2px_rgba(0,0,0,0.08)] dark:shadow-[0_1px_2px_rgba(0,0,0,0.35)]","ring-1 ring-black/5 dark:ring-white/8"].join(" "),pressed:"active:bg-white/80 dark:active:bg-white/18",disabled:"opacity-40 pointer-events-none",disclosure:"flex h-[16px] w-[16px] shrink-0 items-center justify-center",chevron:["i-f7-chevron-right h-[10px] w-[10px] opacity-45","transition-transform duration-200 ease-out"].join(" "),iconSlot:"flex h-[18px] w-[18px] shrink-0 items-center justify-center mr-[8px]",icon:"h-[16px] w-[16px]",image:"h-[18px] w-[18px] rounded-[5px] object-cover shadow-sm",label:"flex-1 truncate text-left",count:["ml-[8px] shrink-0 tabular-nums","text-[12px] leading-[16px] opacity-45"].join(" "),indentPerLevel:14}},Wo={...z,pane:"bg-stone-100 dark:bg-neutral-900 text-black dark:text-white select-none",layers:{}},Ho={...z,pane:"bg-transparent text-black dark:text-white select-none",layers:{}},Fo={...z,pane:"bg-white/50 dark:bg-black/40 backdrop-blur-3xl backdrop-saturate-200 text-black dark:text-white select-none",layers:{}},ce={macos:z,tahoe:z,"macos-tahoe":z,"macos-latest":z,arc:Bo,workspace:qo,desktop:jo,solid:Wo,transparent:Ho,vibrancy:Fo};function _c(e){return ce[e||"macos"]||ce.macos}function Gc(e){if(!e)return;return K[e]||e}var Vo=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 Zc(e,t){return`linear-gradient(180deg, ${e} 0%, ${t} 100%)`}function Ko(e){if(!e)return de(Vo);if(typeof e!=="string")return e;return de(K[e]||e)}function Uo(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 Jo(e){let t=Ko(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:Uo(t),deferred:e.deferred===!0,showTitle:e.showTitle??!0}}function Qc(e){return(e||[]).map(Jo)}function ed(e,t){if(!t)return 0;let s=e.findIndex((o)=>o.id===t);return s===-1?0:s}function td(e){return e.map((t)=>t.tint)}var Go="./Skeleton-me2hwqrc.stx";var Xo="./Spinner-vhnc3y03.stx";var Qo="./Stepper-rgbk76hd.stx";var ta="./StepperStep-b78wmshd.stx";class U{storage;namespace;watchers=new Map;encryptionKey="stx-storage-key";constructor(e="local",t=""){if(this.storage=e==="local"?globalThis.localStorage:globalThis.sessionStorage,this.namespace=t,typeof window<"u")window.addEventListener("storage",this.handleStorageEvent.bind(this))}handleStorageEvent(e){if(!e.key)return;let t=this.namespace&&e.key.startsWith(`${this.namespace}:`)?e.key.slice(this.namespace.length+1):e.key,s=this.watchers.get(t);if(s){let o=e.oldValue?JSON.parse(e.oldValue).value:null,a=e.newValue?JSON.parse(e.newValue).value:null;s.forEach((n)=>n(a,o,t))}}encrypt(e){let t="";for(let s=0;s<e.length;s++)t+=String.fromCharCode(e.charCodeAt(s)^this.encryptionKey.charCodeAt(s%this.encryptionKey.length));return btoa(t)}decrypt(e){try{let t=atob(e),s="";for(let o=0;o<t.length;o++)s+=String.fromCharCode(t.charCodeAt(o)^this.encryptionKey.charCodeAt(o%this.encryptionKey.length));return s}catch{return e}}compress(e){if(e.length<100)return e;let t={},s=256,o=[],a="";for(let n=0;n<e.length;n++){let i=e.charAt(n),r=a+i;if(t[r]!==void 0)a=r;else o.push(a.length>1?t[a]:a.charCodeAt(0)),t[r]=s++,a=i}if(a!=="")o.push(a.length>1?t[a]:a.charCodeAt(0));return JSON.stringify(o)}decompress(e){try{let t=JSON.parse(e);if(!Array.isArray(t))return e;let s={},o=256,a=String.fromCharCode(t[0]),n=a;for(let i=1;i<t.length;i++){let r=t[i],c;if(s[r]!==void 0)c=s[r];else if(r===o)c=a+a.charAt(0);else return e;n+=c,s[o++]=a+c.charAt(0),a=c}return n}catch{return e}}getKey(e){return this.namespace?`${this.namespace}:${e}`:e}set(e,t,s){let o=this.getKey(e),a=this.get(e),n={value:t,timestamp:Date.now(),expire:s?.expire,encrypted:s?.encrypt||!1,compressed:s?.compress||!1};try{let i=JSON.stringify(n);if(s?.compress)i=this.compress(i);if(s?.encrypt)i=this.encrypt(i);this.storage.setItem(o,i),this.notifyWatchers(e,t,a)}catch(i){console.error("Storage set error:",i)}}get(e){let t=this.getKey(e);try{let s=this.storage.getItem(t);if(!s)return null;if(s.match(/^[A-Z0-9+/]+=*$/i))try{s=this.decrypt(s)}catch{}if(s.startsWith("["))try{s=this.decompress(s)}catch{}let o=JSON.parse(s);if(o.expire&&Date.now()-o.timestamp>o.expire)return this.remove(e),null;return o.value}catch(s){return console.error("Storage get error:",s),null}}watch(e,t){if(!this.watchers.has(e))this.watchers.set(e,new Set);return this.watchers.get(e).add(t),()=>{let s=this.watchers.get(e);if(s){if(s.delete(t),s.size===0)this.watchers.delete(e)}}}notifyWatchers(e,t,s){let o=this.watchers.get(e);if(o)o.forEach((a)=>a(t,s,e))}remove(e){let t=this.getKey(e),s=this.get(e);this.storage.removeItem(t),this.notifyWatchers(e,null,s)}clear(){if(this.namespace)this.keys().forEach((t)=>this.remove(t));else this.storage.clear()}has(e){return this.get(e)!==null}keys(){let e=Object.keys(this.storage);if(this.namespace){let t=`${this.namespace}:`;return e.filter((s)=>s.startsWith(t)).map((s)=>s.slice(t.length))}return e}size(){return this.keys().length}getQuota(){if("storage"in navigator&&"estimate"in navigator.storage)return null;try{let e=0;for(let s=0;s<this.storage.length;s++){let o=this.storage.key(s);if(o){let a=this.storage.getItem(o)||"";e+=o.length+a.length}}let t=5242880;return{usage:e*2,quota:t,percentage:e*2/t*100}}catch{return null}}setMany(e,t){Object.entries(e).forEach(([s,o])=>{this.set(s,o,t)})}getMany(e){let t={};return e.forEach((s)=>{t[s]=this.get(s)}),t}removeMany(e){e.forEach((t)=>this.remove(t))}}var Ad={local:new U("local"),session:new U("session")};function Ed(e="local",t){return new U(e,t)}var oa="./Switch-27hp6pq5.stx";var na="./Table-3ek3w95h.stx";var ra="./TableBody-y49bqb1p.stx";var ca="./TableCell-8swtcq8s.stx";var pa="./TableHead-e9xvjx2j.stx";var ua="./TableHeader-qsc3e208.stx";var ma="./TableRow-dt8e11aj.stx";var ga="./TabPanel-5htevsq6.stx";var va="./Tabs-f1n3ggkw.stx";var ya="./Teleport-c8nn3757.stx";var $a="./Textarea-k1gf21kw.stx";var Sa="./Tooltip-g2j17eg9.stx";var Aa="./Transition-hmm11qk1.stx";var Ta="./Video-rhy7dskw.stx";var Na="./VirtualList-fa7v5a3h.stx";var La="./VirtualTable-kp7b3wyv.stx";var Pa=0;function he(e="a11y"){return`${e}-${++Pa}-${Date.now()}`}function xp(e,t,s={}){let{visible:o=!1,id:a=he("label")}=s,n=document.createElement(o?"label":"span");if(n.id=a,n.textContent=e,!o)Object.assign(n.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"});if(t)if(t.setAttribute("aria-labelledby",a),t.parentElement)t.parentElement.insertBefore(n,t);else document.body.appendChild(n);return a}function vp(e,t){let s=he("desc"),o=document.createElement("span");if(o.id=s,o.textContent=e,Object.assign(o.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}),t)if(t.setAttribute("aria-describedby",s),t.parentElement)t.parentElement.insertBefore(o,t);else document.body.appendChild(o);return s}function wp(e,t="polite"){let s=document.createElement("div");s.setAttribute("role","status"),s.setAttribute("aria-live",t),s.setAttribute("aria-atomic","true"),Object.assign(s.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}),document.body.appendChild(s),setTimeout(()=>{s.textContent=e},100),setTimeout(()=>{s.parentNode?.removeChild(s)},1000)}function ee(e){let t=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(",");return Array.from(e.querySelectorAll(t)).filter((s)=>s.offsetParent!==null)}function yp(e,t={}){let{initialFocus:s,returnFocus:o,escapeDeactivates:a=!0,clickOutsideDeactivates:n=!0,allowOutsideClick:i=!1,onActivate:r,onDeactivate:c}=t,d=!1,h=!1,p=null,m=(x)=>{if(h)return;if(a&&x.key==="Escape"){x.preventDefault(),y();return}if(x.key==="Tab"){let C=ee(e);if(C.length===0){x.preventDefault();return}let E=C[0],O=C[C.length-1];if(x.shiftKey){if(document.activeElement===E)x.preventDefault(),O.focus()}else if(document.activeElement===O)x.preventDefault(),E.focus()}},f=(x)=>{if(h)return;if(!e.contains(x.target)){if(typeof i==="function"){if(!i(x)&&n)y()}else if(!i&&n)y()}};function w(){if(d)return;d=!0,p=document.activeElement;let x=s||ee(e)[0];if(x&&typeof x.focus==="function")x.focus();document.addEventListener("keydown",m),document.addEventListener("click",f),r?.()}function y(){if(!d)return;d=!1;let x=o||p;if(x&&typeof x.focus==="function")x.focus();document.removeEventListener("keydown",m),document.removeEventListener("click",f),c?.()}function v(){h=!0}function g(){h=!1}return{activate:w,deactivate:y,pause:v,unpause:g}}function Cp(e,t={}){let{selector:s='[role="option"], [role="menuitem"], [role="tab"], button',initialIndex:o=0,orientation:a="both",loop:n=!0,onFocusChange:i}=t,r=o,c=()=>{return Array.from(e.querySelectorAll(s))},d=(p)=>{let 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,i?.(p,m[p])},h=(p)=>{let f=c().length-1,w=!1,y=r;switch(p.key){case"ArrowRight":if(a==="horizontal"||a==="both"){if(y=r+1,y>f)y=n?0:f;w=!0}break;case"ArrowLeft":if(a==="horizontal"||a==="both"){if(y=r-1,y<0)y=n?f:0;w=!0}break;case"ArrowDown":if(a==="vertical"||a==="both"){if(y=r+1,y>f)y=n?0:f;w=!0}break;case"ArrowUp":if(a==="vertical"||a==="both"){if(y=r-1,y<0)y=n?f:0;w=!0}break;case"Home":y=0,w=!0;break;case"End":y=f,w=!0;break}if(w)p.preventDefault(),d(y)};return d(o),e.addEventListener("keydown",h),()=>{e.removeEventListener("keydown",h)}}var $p={Enter:"Enter",Space:" ",Escape:"Escape",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",Tab:"Tab",Home:"Home",End:"End",PageUp:"PageUp",PageDown:"PageDown"};function kp(e){return document.activeElement===e}function Sp(e,t){let s=t||document.activeElement,o=ee(document.body),a=o.indexOf(s);if(a===-1)return;let n=e==="next"?a+1:a-1,i=o[n];if(i)i.focus()}function Ip(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 Ap={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 Ep(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 Tp(){if(typeof window.matchMedia==="function")return window.matchMedia("(prefers-reduced-motion: reduce)").matches;return!1}function Dp(){if(typeof window.matchMedia==="function")return window.matchMedia("(prefers-contrast: high)").matches;return!1}function Np(){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 Op(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 Lp(e){let t=[],s=(o)=>{let a=e.getAttribute(o);if(a){let n=a.split(" ");for(let i of n)if(!document.getElementById(i))t.push(`${o} references non-existent ID: ${i}`)}};return s("aria-labelledby"),s("aria-describedby"),s("aria-controls"),s("aria-owns"),s("aria-activedescendant"),t}var za=(e,t,s,o)=>{return s*e/o+t},Ra=(e,t,s,o)=>{return e/=o,s*e*e+t},Ma=(e,t,s,o)=>{return e/=o,-s*e*(e-2)+t},qa=(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},ja=(e,t,s,o)=>{return e/=o,s*e*e*e+t},Ba=(e,t,s,o)=>{return e/=o,e--,s*(e*e*e+1)+t},Wa=(e,t,s,o)=>{if(e/=o/2,e<1)return s/2*e*e*e+t;return e-=2,s/2*(e*e*e+2)+t},Ha=(e,t,s,o)=>{return e/=o,s*e*e*e*e+t},Fa=(e,t,s,o)=>{return e/=o,e--,-s*(e*e*e*e-1)+t},Va=(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},Ka=(e,t,s,o)=>{return e/=o,s*e*e*e*e*e+t},Ua=(e,t,s,o)=>{return e/=o,e--,s*(e*e*e*e*e+1)+t},Ja=(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},_a=(e,t,s,o)=>{return-s*Math.cos(e/o*(Math.PI/2))+s+t},Ga=(e,t,s,o)=>{return s*Math.sin(e/o*(Math.PI/2))+t},Ya=(e,t,s,o)=>{return-s/2*(Math.cos(Math.PI*e/o)-1)+t},Xa=(e,t,s,o)=>{return e===0?t:s*2**(10*(e/o-1))+t},Za=(e,t,s,o)=>{return e===o?t+s:s*(-(2**(-10*e/o))+1)+t},Qa=(e,t,s,o)=>{if(e===0)return t;if(e===o)return t+s;if(e/=o/2,e<1)return s/2*2**(10*(e-1))+t;return e--,s/2*(-(2**(-10*e))+2)+t},en=(e,t,s,o)=>{return e/=o,-s*(Math.sqrt(1-e*e)-1)+t},tn=(e,t,s,o)=>{return e/=o,e--,s*Math.sqrt(1-e*e)+t},sn=(e,t,s,o)=>{if(e/=o/2,e<1)return-s/2*(Math.sqrt(1-e*e)-1)+t;return e-=2,s/2*(Math.sqrt(1-e*e)+1)+t},on=(e,t,s,o)=>{let a=1.70158,n=0,i=s;if(e===0)return t;if(e/=o,e===1)return t+s;if(!n)n=o*0.3;if(i<Math.abs(s))i=s,a=n/4;else a=n/(2*Math.PI)*Math.asin(s/i);return e-=1,-(i*2**(10*e)*Math.sin((e*o-a)*(2*Math.PI)/n))+t},an=(e,t,s,o)=>{let a=1.70158,n=0,i=s;if(e===0)return t;if(e/=o,e===1)return t+s;if(!n)n=o*0.3;if(i<Math.abs(s))i=s,a=n/4;else a=n/(2*Math.PI)*Math.asin(s/i);return i*2**(-10*e)*Math.sin((e*o-a)*(2*Math.PI)/n)+s+t},nn=(e,t,s,o)=>{let a=1.70158,n=0,i=s;if(e===0)return t;if(e/=o/2,e===2)return t+s;if(!n)n=o*0.44999999999999996;if(i<Math.abs(s))i=s,a=n/4;else a=n/(2*Math.PI)*Math.asin(s/i);if(e<1)return e-=1,-0.5*(i*2**(10*e)*Math.sin((e*o-a)*(2*Math.PI)/n))+t;return e-=1,i*2**(-10*e)*Math.sin((e*o-a)*(2*Math.PI)/n)*0.5+s+t},rn=(e,t,s,o)=>{return e/=o,s*e*e*(2.70158*e-1.70158)+t},ln=(e,t,s,o)=>{return e/=o,e--,s*(e*e*(2.70158*e+1.70158)+1)+t},cn=(e,t,s,o)=>{let a=1.70158;if(e/=o/2,e<1)return a*=1.525,s/2*(e*e*((a+1)*e-a))+t;return e-=2,a*=1.525,s/2*(e*e*((a+1)*e+a)+2)+t},te=(e,t,s,o)=>{if(e/=o,e<0.36363636363636365)return s*(7.5625*e*e)+t;else if(e<0.7272727272727273)return e-=0.5454545454545454,s*(7.5625*e*e+0.75)+t;else if(e<0.9090909090909091)return e-=0.8181818181818182,s*(7.5625*e*e+0.9375)+t;else return e-=0.9545454545454546,s*(7.5625*e*e+0.984375)+t},ue=(e,t,s,o)=>{return s-te(o-e,0,s,o)+t},dn=(e,t,s,o)=>{if(e<o/2)return ue(e*2,0,s,o)*0.5+t;return te(e*2-o,0,s,o)*0.5+s*0.5+t},zp={linear:za,easeInQuad:Ra,easeOutQuad:Ma,easeInOutQuad:qa,easeInCubic:ja,easeOutCubic:Ba,easeInOutCubic:Wa,easeInQuart:Ha,easeOutQuart:Fa,easeInOutQuart:Va,easeInQuint:Ka,easeOutQuint:Ua,easeInOutQuint:Ja,easeInSine:_a,easeOutSine:Ga,easeInOutSine:Ya,easeInExpo:Xa,easeOutExpo:Za,easeInOutExpo:Qa,easeInCirc:en,easeOutCirc:tn,easeInOutCirc:sn,easeInElastic:on,easeOutElastic:an,easeInOutElastic:nn,easeInBack:rn,easeOutBack:ln,easeInOutBack:cn,easeInBounce:ue,easeOutBounce:te,easeInOutBounce:dn};function pn(e,t={}){let{duration:s="1s",timing:o="ease",delay:a="0s",iteration:n="1",direction:i="normal",fill:r="both",playState:c="running"}=t;return`${e} ${s} ${o} ${a} ${n} ${i} ${r} ${c}`}function fe(e,t,s={}){e.style.animation=pn(t,s)}function Mp(e){e.style.animation=""}function hn(e){return new Promise((t)=>{let s=()=>{e.removeEventListener("animationend",s),t()};e.addEventListener("animationend",s)})}function qp(e,t,s={}){let{stagger:o=100,...a}=s;e.forEach((n,i)=>{let r=`${i*o}ms`;fe(n,t,{...a,delay:r})})}async function jp(e,t){for(let s of t)fe(e,s.name,s.options),await hn(e)}var Bp={fadeIn:"animate-fade-in",fadeOut:"animate-fade-out",slideInUp:"animate-slide-in-up",slideInDown:"animate-slide-in-down",slideInLeft:"animate-slide-in-left",slideInRight:"animate-slide-in-right",zoomIn:"animate-zoom-in",zoomOut:"animate-zoom-out",bounce:"animate-bounce",spin:"animate-spin",ping:"animate-ping",pulse:"animate-pulse"};function Wp(e,t,s=1000){return new Promise((o)=>{e.classList.add(t),setTimeout(()=>{e.classList.remove(t),o()},s)})}function Hp(e,t){let s=`
|
|
12
12
|
@keyframes ${e} {
|
|
13
13
|
${Object.entries(t).map(([a,n])=>{let i=Object.entries(n).map(([r,c])=>`${r}: ${c};`).join(" ");return`${a} { ${i} }`}).join(`
|
|
14
14
|
`)}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/components",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.374",
|
|
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.374",
|
|
68
|
+
"bun-plugin-stx": "0.2.374",
|
|
69
69
|
"ts-syntax-highlighter": "^0.2.17"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
@@ -18,9 +18,9 @@ export const maxDate = $props.maxDate || null
|
|
|
18
18
|
export const disabledDates = $props.disabledDates || []
|
|
19
19
|
export const locale = $props.locale || 'en-US'
|
|
20
20
|
export const firstDayOfWeek = $props.firstDayOfWeek || 0
|
|
21
|
-
export const showToday = $props.showToday
|
|
21
|
+
export const showToday = $bool($props.showToday, true)
|
|
22
22
|
export const className = $props.className || ''
|
|
23
|
-
export const highlightToday = $props.highlightToday
|
|
23
|
+
export const highlightToday = $bool($props.highlightToday, true)
|
|
24
24
|
|
|
25
25
|
const baseClasses = 'bg-panel rounded-panel shadow-lg p-4 w-full max-w-sm'
|
|
26
26
|
export const calendarClasses = `${baseClasses} ${className}`.trim()
|
package/src/ui/form/Form.stx
CHANGED
|
@@ -6,8 +6,8 @@ export const className = $props.className || ''
|
|
|
6
6
|
// These three were declared in FormProps and read by nothing, so passing them
|
|
7
7
|
// did exactly nothing. See #1874.
|
|
8
8
|
export const initialValues = $props.initialValues || {}
|
|
9
|
-
export const validateOnChange = $props.validateOnChange
|
|
10
|
-
export const validateOnBlur = $props.validateOnBlur
|
|
9
|
+
export const validateOnChange = $bool($props.validateOnChange)
|
|
10
|
+
export const validateOnBlur = $bool($props.validateOnBlur)
|
|
11
11
|
|
|
12
12
|
export const formClasses = `space-y-6 ${className}`.trim()
|
|
13
13
|
export const errorClasses = `mt-1 text-sm text-danger`.trim()
|
package/src/ui/image/Image.stx
CHANGED
|
@@ -8,7 +8,7 @@ export const alt = $props.alt || ''
|
|
|
8
8
|
export const width = $props.width
|
|
9
9
|
export const height = $props.height
|
|
10
10
|
export const priority = $bool($props.priority)
|
|
11
|
-
export const lazy = priority ? false : ($props.lazy
|
|
11
|
+
export const lazy = priority ? false : $bool($props.lazy, true)
|
|
12
12
|
export const decoding = $props.decoding || 'async'
|
|
13
13
|
export const fetchpriority = priority ? 'high' : ($props.fetchpriority || 'auto')
|
|
14
14
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Initial defaults captured at render time. The client script wraps these
|
|
3
3
|
// in signals so consumers can mutate them after mount (fetch-then-toast,
|
|
4
4
|
// auto-dismiss, etc.). See stacksjs/stx#1692.
|
|
5
|
-
export const initialShow = $props.show
|
|
5
|
+
export const initialShow = $bool($props.show, true)
|
|
6
6
|
export const initialTitle = $props.title || ''
|
|
7
7
|
export const initialMessage = $props.message || ''
|
|
8
8
|
export const initialType = $props.type || 'info'
|
|
@@ -73,7 +73,7 @@ export const isArc = theme === 'arc'
|
|
|
73
73
|
// padding.
|
|
74
74
|
const controlsProp = $props.windowControls || ''
|
|
75
75
|
export const windowControls = controlsProp
|
|
76
|
-
|| (($props.showWindowControls
|
|
76
|
+
|| ($bool($props.showWindowControls, !isArc) ? 'auto' : 'none')
|
|
77
77
|
export const autoWindowControls = windowControls === 'auto'
|
|
78
78
|
export const showWindowControls = windowControls === 'draw' || autoWindowControls
|
|
79
79
|
export const reserveWindowControls = windowControls === 'native' || autoWindowControls
|
package/src/ui/table/Table.stx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script server>
|
|
2
2
|
export const className = $props.className || ''
|
|
3
3
|
export const striped = $bool($props.striped)
|
|
4
|
-
export const hoverable = $props.hoverable
|
|
4
|
+
export const hoverable = $bool($props.hoverable, true)
|
|
5
5
|
|
|
6
6
|
const baseClasses = 'min-w-full divide-y divide-line'
|
|
7
7
|
const tableClasses = `${baseClasses} ${className}`.trim()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script server>
|
|
2
2
|
export const className = $props.className || ''
|
|
3
|
-
export const hoverable = $props.hoverable
|
|
3
|
+
export const hoverable = $bool($props.hoverable, true)
|
|
4
4
|
|
|
5
5
|
const hoverClasses = hoverable ? 'hover:bg-surface-hover' : ''
|
|
6
6
|
const rowClasses = `${hoverClasses} ${className}`.trim()
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script server>
|
|
2
|
-
export const show = $props.show
|
|
2
|
+
export const show = $bool($props.show, true)
|
|
3
3
|
export const enter = $props.enter || 'transition-opacity duration-300'
|
|
4
4
|
export const enterFrom = $props.enterFrom || 'opacity-0'
|
|
5
5
|
export const enterTo = $props.enterTo || 'opacity-100'
|