@stacksjs/components 0.2.35 → 0.2.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (237) hide show
  1. package/dist/Accordion-19x8q4rj.stx +88 -0
  2. package/dist/{Audio-vdmg1258.stx → Audio-hjywk3qc.stx} +4 -4
  3. package/dist/{Avatar-365cvrh4.stx → Avatar-h3jmwcq0.stx} +23 -34
  4. package/dist/{Badge-8m3qete4.stx → Badge-k8dy3d53.stx} +11 -19
  5. package/dist/{Button-3tt4vsqt.stx → Button-1vknasy3.stx} +18 -33
  6. package/dist/Calendar-reny0et7.stx +189 -0
  7. package/dist/{Card-6wdbexqr.stx → Card-c1g1fd1w.stx} +27 -33
  8. package/dist/{Checkbox-p3q3e3nf.stx → Checkbox-zgdmy3p5.stx} +36 -44
  9. package/dist/{Checkout-e4037tyy.stx → Checkout-agt0ngpw.stx} +8 -16
  10. package/dist/Combobox-fdkr6cdq.stx +96 -0
  11. package/dist/{ComboboxButton-8gxwkhdx.stx → ComboboxButton-g76stp1e.stx} +14 -2
  12. package/dist/{ComboboxInput-mk99z65n.stx → ComboboxInput-z1293bbh.stx} +12 -5
  13. package/dist/ComboboxOption-hmxt3gte.stx +49 -0
  14. package/dist/{ListboxOptions-8kqvfp7z.stx → ComboboxOptions-sq5360ae.stx} +2 -2
  15. package/dist/CommandPalette-36mxf05w.stx +81 -0
  16. package/dist/CommandPaletteItem-mvk6q7a2.stx +27 -0
  17. package/dist/Dialog-hczpexs4.stx +37 -0
  18. package/dist/{Drawer-p7m351bn.stx → Drawer-xhevp5cw.stx} +29 -49
  19. package/dist/Dropdown-vvhemtc0.stx +82 -0
  20. package/dist/{DropdownButton-9w8zkfwj.stx → DropdownButton-wcz67dxy.stx} +12 -6
  21. package/dist/DropdownItem-c7rz08e5.stx +35 -0
  22. package/dist/{DropdownItems-aygjpxkx.stx → DropdownItems-1sxnd5qn.stx} +2 -2
  23. package/dist/EmailInput-vak3kkmk.stx +30 -0
  24. package/dist/Form-mas630hy.stx +95 -0
  25. package/dist/{Image-jhkm6w1f.stx → Image-yhxcvgzs.stx} +68 -100
  26. package/dist/Listbox-q49tnr90.stx +101 -0
  27. package/dist/{ListboxButton-spwx7513.stx → ListboxButton-keb8gm0q.stx} +12 -1
  28. package/dist/ListboxOption-e0dtv1gc.stx +49 -0
  29. package/dist/{ComboboxOptions-6b5ywc5x.stx → ListboxOptions-ejkatcfg.stx} +7 -3
  30. package/dist/{Login-rx9gyqhx.stx → Login-gepemsth.stx} +17 -19
  31. package/dist/Navigator-rk2a5wvk.stx +113 -0
  32. package/dist/Notification-tb9b525s.stx +78 -0
  33. package/dist/{NumberInput-nzpkx1ry.stx → NumberInput-drnvtqej.stx} +40 -53
  34. package/dist/{Pagination-h61eq390.stx → Pagination-n3d31cns.stx} +73 -108
  35. package/dist/PasswordInput-n02x6053.stx +142 -0
  36. package/dist/{PaymentMethods-j42jsk5x.stx → PaymentMethods-x4vrx9yb.stx} +21 -30
  37. package/dist/Popover-et2q44m7.stx +60 -0
  38. package/dist/{PopoverButton-fnaqc77g.stx → PopoverButton-mffzc9pr.stx} +12 -6
  39. package/dist/{PopoverPanel-y0vtf5w9.stx → PopoverPanel-054yh38h.stx} +6 -6
  40. package/dist/{Portal-s2q37yp0.stx → Portal-1vf14s4x.stx} +20 -37
  41. package/dist/{Progress-vmdkm06p.stx → Progress-yxcntr4x.stx} +36 -48
  42. package/dist/{Radio-04bs3d21.stx → Radio-cgjv2hb2.stx} +29 -34
  43. package/dist/RadioGroup-qxmnm3xm.stx +60 -0
  44. package/dist/RadioGroupOption-s1d6r221.stx +58 -0
  45. package/dist/SearchInput-pdx7agn0.stx +44 -0
  46. package/dist/{Select-g4mmvfv8.stx → Select-28y0pg83.stx} +23 -31
  47. package/dist/Sidebar-73vc78as.stx +236 -0
  48. package/dist/SidebarFooter-zsfsgcxb.stx +109 -0
  49. package/dist/SidebarHeader-7v174a9c.stx +122 -0
  50. package/dist/SidebarItem-3y3e8g2t.stx +92 -0
  51. package/dist/SidebarSection-z5ey6awe.stx +113 -0
  52. package/dist/{Signup-c4dyv6f3.stx → Signup-hxm5hwkr.stx} +26 -28
  53. package/dist/{StepperStep-en4r00zv.stx → StepperStep-wxgembat.stx} +9 -5
  54. package/dist/{SubscriptionCheckout-gawjzf3q.stx → SubscriptionCheckout-zy2ycrmw.stx} +99 -129
  55. package/dist/Switch-r5t5w04w.stx +70 -0
  56. package/dist/{TableHeader-ydys9rzz.stx → TableHeader-0eyzbqpz.stx} +10 -3
  57. package/dist/Tabs-bzvvn4ke.stx +126 -0
  58. package/dist/Teleport-tsx4bt4n.stx +65 -0
  59. package/dist/{TextInput-k2kfkgy1.stx → TextInput-kf084763.stx} +42 -59
  60. package/dist/{Textarea-szad57dz.stx → Textarea-xg4rr2xz.stx} +42 -54
  61. package/dist/{Tooltip-em7t551n.stx → Tooltip-m0tqd72e.stx} +34 -40
  62. package/dist/Transition-7smenaz8.stx +102 -0
  63. package/dist/{TwoFactorChallenge-an9yvxvq.stx → TwoFactorChallenge-y5m3nk79.stx} +49 -63
  64. package/dist/{Video-crxva65p.stx → Video-84j4pv6h.stx} +4 -4
  65. package/dist/VirtualList-fa7v5a3h.stx +67 -0
  66. package/dist/VirtualTable-f9crbfjr.stx +103 -0
  67. package/dist/components/CodeBlock.stx +1 -6
  68. package/dist/index.js +13 -13
  69. package/dist/ui/accordion/Accordion.stx +1 -3
  70. package/dist/ui/auth/Login.stx +0 -1
  71. package/dist/ui/auth/Signup.stx +0 -1
  72. package/dist/ui/auth/TwoFactorChallenge.stx +1 -3
  73. package/dist/ui/avatar/Avatar.stx +0 -2
  74. package/dist/ui/badge/Badge.stx +0 -1
  75. package/dist/ui/button/Button.stx +1 -2
  76. package/dist/ui/calendar/Calendar.stx +12 -2
  77. package/dist/ui/card/Card.stx +0 -2
  78. package/dist/ui/checkbox/Checkbox.stx +2 -2
  79. package/dist/ui/combobox/Combobox.stx +2 -1
  80. package/dist/ui/combobox/ComboboxButton.stx +1 -0
  81. package/dist/ui/combobox/ComboboxInput.stx +1 -4
  82. package/dist/ui/combobox/ComboboxOption.stx +2 -9
  83. package/dist/ui/combobox/ComboboxOptions.stx +1 -1
  84. package/dist/ui/command-palette/CommandPalette.stx +3 -6
  85. package/dist/ui/command-palette/CommandPaletteItem.stx +2 -7
  86. package/dist/ui/dialog/Dialog.stx +1 -3
  87. package/dist/ui/drawer/Drawer.stx +1 -3
  88. package/dist/ui/dropdown/Dropdown.stx +2 -5
  89. package/dist/ui/dropdown/DropdownButton.stx +1 -3
  90. package/dist/ui/dropdown/DropdownItem.stx +2 -7
  91. package/dist/ui/dropdown/DropdownItems.stx +1 -1
  92. package/dist/ui/form/Form.stx +0 -5
  93. package/dist/ui/image/Image.stx +1 -6
  94. package/dist/ui/input/EmailInput.stx +1 -1
  95. package/dist/ui/input/NumberInput.stx +0 -1
  96. package/dist/ui/input/PasswordInput.stx +1 -4
  97. package/dist/ui/input/SearchInput.stx +2 -2
  98. package/dist/ui/input/TextInput.stx +1 -2
  99. package/dist/ui/listbox/Listbox.stx +2 -1
  100. package/dist/ui/listbox/ListboxButton.stx +1 -0
  101. package/dist/ui/listbox/ListboxOption.stx +2 -9
  102. package/dist/ui/listbox/ListboxOptions.stx +1 -1
  103. package/dist/ui/navigator/Navigator.stx +4 -4
  104. package/dist/ui/notification/Notification.stx +1 -5
  105. package/dist/ui/pagination/Pagination.stx +1 -2
  106. package/dist/ui/payment/Checkout.stx +0 -4
  107. package/dist/ui/payment/PaymentMethods.stx +15 -2
  108. package/dist/ui/payment/SubscriptionCheckout.stx +3 -184
  109. package/dist/ui/popover/Popover.stx +2 -5
  110. package/dist/ui/popover/PopoverButton.stx +1 -3
  111. package/dist/ui/popover/PopoverPanel.stx +1 -1
  112. package/dist/ui/portal/Portal.stx +1 -0
  113. package/dist/ui/progress/Progress.stx +6 -1
  114. package/dist/ui/radio/Radio.stx +1 -1
  115. package/dist/ui/radio-group/RadioGroup.stx +2 -1
  116. package/dist/ui/radio-group/RadioGroupOption.stx +2 -9
  117. package/dist/ui/select/Select.stx +1 -1
  118. package/dist/ui/sidebar/Sidebar.stx +9 -26
  119. package/dist/ui/sidebar/SidebarFooter.stx +6 -21
  120. package/dist/ui/sidebar/SidebarHeader.stx +7 -18
  121. package/dist/ui/sidebar/SidebarItem.stx +4 -20
  122. package/dist/ui/sidebar/SidebarSection.stx +5 -18
  123. package/dist/ui/sidebar/index.d.ts +13 -1
  124. package/dist/ui/stepper/StepperStep.stx +1 -5
  125. package/dist/ui/switch/Switch.stx +4 -10
  126. package/dist/ui/table/TableHeader.stx +1 -1
  127. package/dist/ui/tabs/Tabs.stx +0 -1
  128. package/dist/ui/teleport/Teleport.stx +1 -0
  129. package/dist/ui/textarea/Textarea.stx +1 -1
  130. package/dist/ui/tooltip/Tooltip.stx +1 -2
  131. package/dist/ui/transition/Transition.stx +9 -16
  132. package/dist/ui/virtual-list/VirtualList.stx +2 -4
  133. package/dist/ui/virtual-table/VirtualTable.stx +1 -1
  134. package/package.json +5 -5
  135. package/src/components/CodeBlock.stx +26 -29
  136. package/src/components/Footer.stx +1 -1
  137. package/src/components/Hero.stx +1 -1
  138. package/src/components/Installation.stx +5 -7
  139. package/src/ui/accordion/Accordion.stx +48 -68
  140. package/src/ui/audio/Audio.stx +4 -4
  141. package/src/ui/auth/Login.stx +17 -19
  142. package/src/ui/auth/Signup.stx +26 -28
  143. package/src/ui/auth/TwoFactorChallenge.stx +49 -63
  144. package/src/ui/avatar/Avatar.stx +23 -34
  145. package/src/ui/badge/Badge.stx +11 -19
  146. package/src/ui/button/Button.stx +18 -33
  147. package/src/ui/calendar/Calendar.stx +93 -136
  148. package/src/ui/card/Card.stx +27 -33
  149. package/src/ui/checkbox/Checkbox.stx +36 -44
  150. package/src/ui/combobox/Combobox.stx +87 -4
  151. package/src/ui/combobox/ComboboxButton.stx +14 -2
  152. package/src/ui/combobox/ComboboxInput.stx +12 -5
  153. package/src/ui/combobox/ComboboxOption.stx +29 -32
  154. package/src/ui/combobox/ComboboxOptions.stx +7 -3
  155. package/src/ui/command-palette/CommandPalette.stx +70 -28
  156. package/src/ui/command-palette/CommandPaletteItem.stx +15 -20
  157. package/src/ui/dialog/Dialog.stx +28 -10
  158. package/src/ui/drawer/Drawer.stx +29 -49
  159. package/src/ui/dropdown/Dropdown.stx +69 -11
  160. package/src/ui/dropdown/DropdownButton.stx +12 -6
  161. package/src/ui/dropdown/DropdownItem.stx +18 -26
  162. package/src/ui/dropdown/DropdownItems.stx +2 -2
  163. package/src/ui/form/Form.stx +50 -164
  164. package/src/ui/heatmap/Heatmap.stx +16 -37
  165. package/src/ui/image/Image.stx +68 -100
  166. package/src/ui/input/EmailInput.stx +16 -27
  167. package/src/ui/input/NumberInput.stx +40 -53
  168. package/src/ui/input/PasswordInput.stx +64 -77
  169. package/src/ui/input/SearchInput.stx +27 -46
  170. package/src/ui/input/TextInput.stx +42 -59
  171. package/src/ui/listbox/Listbox.stx +91 -4
  172. package/src/ui/listbox/ListboxButton.stx +12 -1
  173. package/src/ui/listbox/ListboxOption.stx +30 -38
  174. package/src/ui/listbox/ListboxOptions.stx +2 -2
  175. package/src/ui/navigator/Navigator.stx +52 -77
  176. package/src/ui/notification/Notification.stx +46 -39
  177. package/src/ui/pagination/Pagination.stx +73 -108
  178. package/src/ui/payment/Checkout.stx +8 -16
  179. package/src/ui/payment/PaymentMethods.stx +21 -30
  180. package/src/ui/payment/SubscriptionCheckout.stx +99 -129
  181. package/src/ui/popover/Popover.stx +50 -14
  182. package/src/ui/popover/PopoverButton.stx +12 -6
  183. package/src/ui/popover/PopoverPanel.stx +6 -6
  184. package/src/ui/portal/Portal.stx +20 -37
  185. package/src/ui/progress/Progress.stx +36 -48
  186. package/src/ui/radio/Radio.stx +29 -34
  187. package/src/ui/radio-group/RadioGroup.stx +51 -4
  188. package/src/ui/radio-group/RadioGroupOption.stx +37 -30
  189. package/src/ui/select/Select.stx +23 -31
  190. package/src/ui/sidebar/Sidebar.stx +136 -188
  191. package/src/ui/sidebar/SidebarFooter.stx +49 -35
  192. package/src/ui/sidebar/SidebarHeader.stx +52 -30
  193. package/src/ui/sidebar/SidebarItem.stx +52 -78
  194. package/src/ui/sidebar/SidebarSection.stx +56 -51
  195. package/src/ui/sidebar/index.ts +21 -1
  196. package/src/ui/stepper/StepperStep.stx +9 -5
  197. package/src/ui/switch/Switch.stx +38 -42
  198. package/src/ui/table/TableHeader.stx +10 -3
  199. package/src/ui/tabs/Tabs.stx +68 -87
  200. package/src/ui/teleport/Teleport.stx +23 -59
  201. package/src/ui/textarea/Textarea.stx +42 -54
  202. package/src/ui/tooltip/Tooltip.stx +34 -40
  203. package/src/ui/transition/Transition.stx +76 -148
  204. package/src/ui/video/Video.stx +4 -4
  205. package/src/ui/virtual-list/VirtualList.stx +45 -61
  206. package/src/ui/virtual-table/VirtualTable.stx +62 -72
  207. package/dist/Accordion-sbfra0mz.stx +0 -108
  208. package/dist/Calendar-58nnkdh8.stx +0 -232
  209. package/dist/Combobox-th5ebw62.stx +0 -13
  210. package/dist/ComboboxOption-an9zyan6.stx +0 -52
  211. package/dist/CommandPalette-kwmdf2np.stx +0 -39
  212. package/dist/CommandPaletteItem-zx2fbpts.stx +0 -32
  213. package/dist/Dialog-rgmj8q2j.stx +0 -19
  214. package/dist/Dropdown-jz4jy0n3.stx +0 -24
  215. package/dist/DropdownItem-wagdspb8.stx +0 -43
  216. package/dist/EmailInput-ajsp9vw6.stx +0 -41
  217. package/dist/Form-1mdmx9b6.stx +0 -209
  218. package/dist/Listbox-pqqh72g8.stx +0 -14
  219. package/dist/ListboxOption-7nxzaexq.stx +0 -57
  220. package/dist/Navigator-aay8bjab.stx +0 -138
  221. package/dist/Notification-gk33gv7b.stx +0 -71
  222. package/dist/PasswordInput-zv4hm43j.stx +0 -155
  223. package/dist/Popover-469gbt6r.stx +0 -24
  224. package/dist/RadioGroup-bvb1mrhd.stx +0 -13
  225. package/dist/RadioGroupOption-cpdwgnhw.stx +0 -51
  226. package/dist/SearchInput-2521m475.stx +0 -63
  227. package/dist/Sidebar-40ckbzh8.stx +0 -288
  228. package/dist/SidebarFooter-hnth56mg.stx +0 -95
  229. package/dist/SidebarHeader-3wrte2p2.stx +0 -100
  230. package/dist/SidebarItem-zqtvvzpc.stx +0 -118
  231. package/dist/SidebarSection-3etwnbjr.stx +0 -108
  232. package/dist/Switch-036j9vm1.stx +0 -74
  233. package/dist/Tabs-svh721m0.stx +0 -145
  234. package/dist/Teleport-qfch3w0b.stx +0 -101
  235. package/dist/Transition-0hmr6zxb.stx +0 -174
  236. package/dist/VirtualList-cndhjejh.stx +0 -83
  237. package/dist/VirtualTable-ng0b48yp.stx +0 -113
@@ -1,6 +1,4 @@
1
- export declare function handleClick(e: unknown): void;
2
1
  export declare const className: unknown;
3
2
  export declare const as: unknown;
4
3
  export declare const disabled: unknown;
5
- export declare const onClick: unknown;
6
- declare class AnonymousClass {}
4
+ export declare const buttonClasses: unknown;
@@ -1,4 +1,4 @@
1
1
  export declare const className: unknown;
2
2
  export declare const as: unknown;
3
- export declare const static_: unknown;
4
3
  export declare const position: unknown;
4
+ export declare const panelClasses: unknown;
@@ -1,2 +1,3 @@
1
1
  export declare const target: unknown;
2
2
  export declare const disabled: unknown;
3
+ export declare const portalId: () => unknown;
@@ -6,9 +6,14 @@ export declare const color: unknown;
6
6
  export declare const showLabel: unknown;
7
7
  export declare const indeterminate: unknown;
8
8
  export declare const className: unknown;
9
+ export declare const circularSize: unknown;
10
+ export declare const strokeWidth: unknown;
11
+ export declare const radius: unknown;
12
+ export declare const circumference: unknown;
9
13
  export declare const containerClasses: unknown;
10
14
  export declare const linearTrackClasses: unknown;
11
15
  export declare const linearBarClasses: unknown;
16
+ export declare const circularSizeClass: unknown;
12
17
  export declare const labelClasses: unknown;
13
18
  export declare const circularTrackColor: 'stroke-gray-200 dark:stroke-gray-700';
14
- export declare const circularBarColor: unknown;
19
+ export declare const circularBarColor: (...args: any[]) => any;
@@ -1,5 +1,4 @@
1
1
  export declare const checked: unknown;
2
- export declare const onChange: () => unknown;
3
2
  export declare const disabled: unknown;
4
3
  export declare const size: unknown;
5
4
  export declare const label: unknown;
@@ -12,3 +11,4 @@ export declare const className: unknown;
12
11
  export declare const radioClasses: unknown;
13
12
  export declare const labelClasses: unknown;
14
13
  export declare const descriptionClasses: unknown;
14
+ export declare const inputId: unknown;
@@ -1,4 +1,5 @@
1
1
  export declare const value: unknown;
2
- export declare const onChange: unknown;
3
2
  export declare const className: unknown;
4
3
  export declare const as: unknown;
4
+ export declare const groupClasses: unknown;
5
+ export declare const radioGroupInstanceId: () => unknown;
@@ -1,13 +1,6 @@
1
- export declare function handleClick(): void;
2
- export declare function handleFocus(): void;
3
- export declare function handleBlur(): void;
4
1
  export declare const value: unknown;
5
2
  export declare const disabled: unknown;
6
3
  export declare const className: unknown;
7
4
  export declare const as: unknown;
8
- export declare const currentValue: unknown;
9
- export declare const onChange: unknown;
10
- /** @defaultValue false */
11
- export declare let active: boolean;
12
- export declare const checked: unknown;
13
- declare class AnonymousClass {}
5
+ export declare const optionClasses: unknown;
6
+ export declare const valueJson: unknown;
@@ -1,5 +1,4 @@
1
1
  export declare const value: unknown;
2
- export declare const onChange: () => unknown;
3
2
  export declare const options: unknown;
4
3
  export declare const placeholder: unknown;
5
4
  export declare const disabled: unknown;
@@ -12,3 +11,4 @@ export declare const className: unknown;
12
11
  export declare const selectClasses: unknown;
13
12
  export declare const labelClasses: unknown;
14
13
  export declare const helperClasses: unknown;
14
+ export declare const selectId: unknown;
@@ -1,33 +1,16 @@
1
- /**
2
- * Sidebar Component - macOS Native Style
3
- *
4
- * A native-feeling sidebar component that integrates with Craft for true native rendering
5
- * when running in a Craft desktop environment, with beautiful macOS Tahoe-style fallback
6
- * for web environments.
7
- *
8
- * @example
9
- * <Sidebar
10
- * :sections="sections"
11
- * :collapsed="false"
12
- * :width="240"
13
- * variant="tahoe"
14
- * >
15
- * <template #header>
16
- * <SidebarHeader title="My App" />
17
- * </template>
18
- * <template #footer>
19
- * <SidebarFooter />
20
- * </template>
21
- * </Sidebar>
22
- */
23
- // Props
24
1
  export declare const sections: unknown;
25
2
  export declare const collapsed: unknown;
26
3
  export declare const collapsible: unknown;
27
4
  export declare const width: unknown;
28
5
  export declare const minWidth: unknown;
29
6
  export declare const variant: unknown;
7
+ export declare const position: unknown;
8
+ export declare const placement: unknown;
9
+ export declare const bordered: unknown;
30
10
  export declare const className: unknown;
31
- export declare const onCollapse: unknown;
32
- export declare const onSectionToggle: unknown;
33
- export declare const onItemClick: unknown;
11
+ export declare const variantTint: unknown;
12
+ export declare const variantShimmer: unknown;
13
+ export declare const containerClasses: unknown;
14
+ export declare const collapseBtnPosition: unknown;
15
+ export declare const navClasses: unknown;
16
+ export declare const slotClasses: (...args: any[]) => any;
@@ -1,27 +1,12 @@
1
- /**
2
- * SidebarFooter Component
3
- *
4
- * A footer component for the sidebar with quick actions and settings.
5
- *
6
- * @example
7
- * <SidebarFooter
8
- * :showSettings="true"
9
- * :showThemeToggle="true"
10
- * settingsHref="/settings"
11
- * />
12
- */
13
- // Props
14
1
  export declare const showSettings: unknown;
15
2
  export declare const showThemeToggle: unknown;
16
3
  export declare const settingsHref: unknown;
17
4
  export declare const settingsLabel: unknown;
18
5
  export declare const collapsed: unknown;
19
- export declare const onThemeToggle: unknown;
20
- // Quick action items
21
6
  export declare const actions: unknown;
22
- declare type = "button";
23
- declare type = "button";
24
- declare class AnonymousClass {}
25
- declare class AnonymousClass {}
26
- declare class AnonymousClass {}
27
- declare class AnonymousClass {}
7
+ export declare const variant: unknown;
8
+ export declare const footerClasses: unknown;
9
+ export declare const actionClasses: unknown;
10
+ export declare const footerIconClasses: unknown;
11
+ export declare const settingsIconClasses: `i-hugeicons-settings-02 ${footerStyle.icon}`;
12
+ export declare const themeButtonClasses: unknown;
@@ -1,16 +1,3 @@
1
- /**
2
- * SidebarHeader Component
3
- *
4
- * A header component for the sidebar with logo, title, and optional search.
5
- *
6
- * @example
7
- * <SidebarHeader
8
- * title="My App"
9
- * subtitle="Professional"
10
- * :showSearch="true"
11
- * />
12
- */
13
- // Props
14
1
  export declare const title: unknown;
15
2
  export declare const subtitle: unknown;
16
3
  export declare const logo: unknown;
@@ -19,8 +6,10 @@ export declare const showSearch: unknown;
19
6
  export declare const searchPlaceholder: unknown;
20
7
  export declare const searchValue: unknown;
21
8
  export declare const collapsed: unknown;
22
- export declare const onSearch: unknown;
23
- declare type = "text"
24
- placeholder="{{ searchPlaceholder }}"
25
- value="{{ searchValue }}";
26
- declare class AnonymousClass {}
9
+ export declare const variant: unknown;
10
+ export declare const titlebarClasses: unknown;
11
+ export declare const logoClasses: unknown;
12
+ export declare const titleClasses: unknown;
13
+ export declare const subtitleClasses: unknown;
14
+ export declare const searchWrapClasses: unknown;
15
+ export declare const searchInputClasses: unknown;
@@ -1,19 +1,3 @@
1
- /**
2
- * SidebarItem Component
3
- *
4
- * An individual navigation item within a sidebar section.
5
- * Supports icons, badges, active states, and keyboard navigation.
6
- *
7
- * @example
8
- * <SidebarItem
9
- * id="home"
10
- * label="Home"
11
- * icon="i-hugeicons-home-02"
12
- * href="/"
13
- * :active="true"
14
- * />
15
- */
16
- // Props
17
1
  export declare const id: unknown;
18
2
  export declare const label: unknown;
19
3
  export declare const icon: unknown;
@@ -22,7 +6,7 @@ export declare const badge: unknown;
22
6
  export declare const active: unknown;
23
7
  export declare const disabled: unknown;
24
8
  export declare const indent: unknown;
25
- export declare const onClick: unknown;
26
- declare type = "button";
27
- declare class AnonymousClass {}
28
- declare class AnonymousClass {}
9
+ export declare const variant: unknown;
10
+ export declare const itemClasses: unknown;
11
+ export declare const iconClasses: `${icon} w-5 h-5 flex-shrink-0 ${itemStyle.icon}`;
12
+ export declare const badgeClasses: unknown;
@@ -1,19 +1,3 @@
1
- /**
2
- * SidebarSection Component
3
- *
4
- * A collapsible section within the sidebar containing navigation items.
5
- * Follows macOS Finder sidebar conventions.
6
- *
7
- * @example
8
- * <SidebarSection
9
- * id="favorites"
10
- * label="Favorites"
11
- * icon="i-hugeicons-star"
12
- * :items="favoriteItems"
13
- * :expanded="true"
14
- * />
15
- */
16
- // Props
17
1
  export declare const id: unknown;
18
2
  export declare const label: unknown;
19
3
  export declare const icon: unknown;
@@ -21,5 +5,8 @@ export declare const items: unknown;
21
5
  export declare const expanded: unknown;
22
6
  export declare const collapsible: unknown;
23
7
  export declare const showLabel: unknown;
24
- export declare const onToggle: unknown;
25
- export declare const onItemClick: unknown;
8
+ export declare const variant: unknown;
9
+ export declare const headerClassesValue: unknown;
10
+ export declare const sectionClasses: unknown;
11
+ export declare const groupClasses: unknown;
12
+ export declare const labelClasses: () => unknown;
@@ -22,7 +22,8 @@ export declare interface SidebarProps {
22
22
  collapsible?: boolean
23
23
  width?: number
24
24
  minWidth?: number
25
- variant?: 'tahoe' | 'vibrancy' | 'solid' | 'transparent'
25
+ variant?: SidebarVariant
26
+ placement?: 'fixed' | 'sticky' | 'static'
26
27
  position?: 'left' | 'right'
27
28
  bordered?: boolean
28
29
  className?: string
@@ -38,6 +39,7 @@ export declare interface SidebarSectionProps {
38
39
  expanded?: boolean
39
40
  collapsible?: boolean
40
41
  showLabel?: boolean
42
+ variant?: SidebarVariant
41
43
  onToggle?: (id: string) => void
42
44
  onItemClick?: (item: SidebarItemData, event: Event) => void
43
45
  }
@@ -50,6 +52,7 @@ export declare interface SidebarItemProps {
50
52
  active?: boolean
51
53
  disabled?: boolean
52
54
  indent?: boolean
55
+ variant?: SidebarVariant
53
56
  onClick?: (event: Event) => void
54
57
  }
55
58
  export declare interface SidebarHeaderProps {
@@ -61,6 +64,7 @@ export declare interface SidebarHeaderProps {
61
64
  searchPlaceholder?: string
62
65
  searchValue?: string
63
66
  collapsed?: boolean
67
+ variant?: SidebarVariant
64
68
  onSearch?: (value: string) => void
65
69
  }
66
70
  export declare interface SidebarFooterProps {
@@ -69,6 +73,7 @@ export declare interface SidebarFooterProps {
69
73
  settingsHref?: string
70
74
  settingsLabel?: string
71
75
  collapsed?: boolean
76
+ variant?: SidebarVariant
72
77
  actions?: Array<{
73
78
  label: string
74
79
  icon?: string
@@ -84,6 +89,10 @@ export declare interface SidebarFooterProps {
84
89
  * The sidebar uses NSOutlineView with vibrancy for a true Tahoe-style appearance.
85
90
  */
86
91
  export declare interface NativeSidebarConfig {
92
+ variant?: SidebarVariant
93
+ material?: SidebarMaterial
94
+ backgroundEffect?: SidebarBackgroundEffect
95
+ allowsVibrancy?: boolean
87
96
  header?: {
88
97
  title?: string
89
98
  subtitle?: string
@@ -122,6 +131,9 @@ export declare interface SidebarSelectEvent {
122
131
  item: NativeSidebarItem
123
132
  sectionId?: string
124
133
  }
134
+ export type SidebarVariant = 'tahoe' | 'vibrancy' | 'solid' | 'transparent' | 'workspace' | 'desktop';
135
+ export type SidebarMaterial = 'auto' | 'sidebar' | 'hud' | 'popover' | 'content';
136
+ export type SidebarBackgroundEffect = 'none' | 'vibrancy' | 'shimmer';
125
137
  export { default as Sidebar } from './Sidebar.stx';
126
138
  export { default as SidebarSection } from './SidebarSection.stx';
127
139
  export { default as SidebarItem } from './SidebarItem.stx';
@@ -1,12 +1,8 @@
1
- export declare function handleClick(): void;
2
1
  export declare const stepNumber: unknown;
3
2
  export declare const currentStep: unknown;
4
3
  export declare const label: unknown;
5
4
  export declare const description: unknown;
6
5
  export declare const className: unknown;
7
6
  export declare const as: unknown;
8
- export declare const onClick: unknown;
9
7
  export declare const isComplete: unknown;
10
- declare type = "button"
11
- @click="handleClick";
12
- declare class AnonymousClass {}
8
+ export declare const stepClasses: unknown;
@@ -1,15 +1,9 @@
1
- // Toggle function
2
- export declare function toggle(): void;
3
1
  export declare const checked: unknown;
4
2
  export declare const disabled: unknown;
5
3
  export declare const size: unknown;
6
4
  export declare const className: unknown;
7
- export declare const onChange: unknown;
8
5
  export declare const label: unknown;
9
- export declare const trackClasses: unknown;
10
- export declare const thumbClasses: unknown;
11
- declare type = "button"
12
- role="switch"
13
- aria-checked="{{ checked ? 'true' : 'false' }}";
14
- declare class AnonymousClass {}
15
- declare class AnonymousClass {}
6
+ export declare const config: unknown;
7
+ export declare const trackBaseClasses: 'relative inline-flex shrink-0 cursor-pointer border-2 border-transparent rounded-full transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-offset-2 focus-visible:ring-offset-neutral-300 dark:focus-visible:ring-offset-neutral-700';
8
+ export declare const trackDisabledClasses: unknown;
9
+ export declare const thumbBaseClasses: unknown;
@@ -1,3 +1,3 @@
1
1
  export declare const className: unknown;
2
2
  export declare const sortable: unknown;
3
- export declare const onClick: unknown;
3
+ export declare const headerClasses: unknown;
@@ -3,7 +3,6 @@ export declare const defaultTab: unknown;
3
3
  export declare const orientation: unknown;
4
4
  export declare const variant: unknown;
5
5
  export declare const className: unknown;
6
- export declare const onChange: unknown;
7
6
  export declare const containerClasses: unknown;
8
7
  export declare const tabListClasses: unknown;
9
8
  export declare const tabPanelClasses: unknown;
@@ -1,3 +1,4 @@
1
1
  export declare const to: unknown;
2
2
  export declare const disabled: unknown;
3
3
  export declare const defer: unknown;
4
+ export declare const teleportId: () => unknown;
@@ -1,5 +1,4 @@
1
1
  export declare const value: unknown;
2
- export declare const onChange: () => unknown;
3
2
  export declare const placeholder: unknown;
4
3
  export declare const disabled: unknown;
5
4
  export declare const readonly: unknown;
@@ -13,6 +12,7 @@ export declare const required: unknown;
13
12
  export declare const maxLength: unknown;
14
13
  export declare const showCount: unknown;
15
14
  export declare const resize: unknown;
15
+ export declare const className: unknown;
16
16
  export declare const textareaClasses: unknown;
17
17
  export declare const labelClasses: unknown;
18
18
  export declare const helperClasses: () => unknown;
@@ -5,5 +5,4 @@ export declare const className: unknown;
5
5
  export declare const show: unknown;
6
6
  export declare const disabled: unknown;
7
7
  export declare const tooltipClasses: unknown;
8
- export declare const arrowClass: unknown;
9
- declare class AnonymousClass {}
8
+ export declare const arrowClass: () => unknown;
@@ -6,22 +6,15 @@ export declare const leave: unknown;
6
6
  export declare const leaveFrom: unknown;
7
7
  export declare const leaveTo: unknown;
8
8
  export declare const appear: unknown;
9
- export declare const appearFrom: unknown;
10
- export declare const appearTo: unknown;
11
- export declare const mode: unknown;
9
+ export declare const duration: unknown;
12
10
  export declare const delay: unknown;
13
11
  export declare const preset: unknown;
14
- export declare const onBeforeEnter: unknown;
15
- export declare const onEnter: unknown;
16
- export declare const onAfterEnter: unknown;
17
- export declare const onBeforeLeave: unknown;
18
- export declare const onLeave: unknown;
19
- export declare const onAfterLeave: unknown;
20
12
  export declare const className: unknown;
21
- /** @defaultValue false */
22
- export declare let isEntering: boolean;
23
- /** @defaultValue false */
24
- export declare let isLeaving: boolean;
25
- export declare let shouldRender: unknown;
26
- /** @defaultValue false */
27
- export declare let hasAppeared: boolean;
13
+ export declare const enterClass: unknown;
14
+ export declare const enterFromClass: unknown;
15
+ export declare const enterToClass: unknown;
16
+ export declare const leaveClass: unknown;
17
+ export declare const leaveFromClass: unknown;
18
+ export declare const leaveToClass: unknown;
19
+ export declare const durationStyle: `transition-duration: ${duration}ms; transition-delay: ${delay}ms;`;
20
+ export declare const extraClass: (...args: any[]) => any;
@@ -2,8 +2,6 @@ export declare const items: unknown;
2
2
  export declare const itemHeight: unknown;
3
3
  export declare const height: unknown;
4
4
  export declare const overscan: unknown;
5
- export declare const renderItem: unknown;
6
5
  export declare const className: unknown;
7
- export declare const containerClasses: unknown;
8
- export declare const innerClasses: unknown;
9
- export declare const itemClasses: () => unknown;
6
+ export declare const totalHeight: unknown;
7
+ export declare const containerClasses: (...args: any[]) => any;
@@ -7,10 +7,10 @@ export declare const overscan: unknown;
7
7
  export declare const striped: unknown;
8
8
  export declare const hoverable: unknown;
9
9
  export declare const className: unknown;
10
+ export declare const totalHeight: unknown;
10
11
  export declare const containerClasses: unknown;
11
12
  export declare const headerClasses: unknown;
12
13
  export declare const headerCellClasses: unknown;
13
14
  export declare const bodyClasses: unknown;
14
- export declare const innerClasses: unknown;
15
15
  export declare const rowClasses: unknown;
16
16
  export declare const cellClasses: () => unknown;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/components",
3
3
  "type": "module",
4
- "version": "0.2.35",
4
+ "version": "0.2.54",
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",
@@ -51,15 +51,15 @@
51
51
  "test": "bun test",
52
52
  "test:watch": "bun test --watch",
53
53
  "test:coverage": "bun test --coverage",
54
- "lint": "bunx --bun pickier lint",
55
- "lint:fix": "bunx --bun pickier lint --fix",
54
+ "lint": "bun x --bun pickier lint",
55
+ "lint:fix": "bun x --bun pickier lint --fix",
56
56
  "typecheck": "bun tsc --noEmit",
57
57
  "prepublishOnly": "bun run build"
58
58
  },
59
59
  "dependencies": {
60
60
  "@cwcss/crosswind": "^0.2.0",
61
- "@stacksjs/stx": "0.2.35",
62
- "bun-plugin-stx": "0.2.35",
61
+ "@stacksjs/stx": "0.2.54",
62
+ "bun-plugin-stx": "0.2.54",
63
63
  "ts-syntax-highlighter": "^0.2.1"
64
64
  },
65
65
  "devDependencies": {
@@ -1,5 +1,5 @@
1
- <script>
2
- import { highlight, applyHeadwindClasses } from '../utils/highlighter'
1
+ <script server>
2
+ import { applyHeadwindClasses, highlight } from '../utils/highlighter'
3
3
 
4
4
  export const code = $props.code || ''
5
5
  export const language = $props.language || 'typescript'
@@ -8,21 +8,21 @@ export const lineNumbers = $props.lineNumbers !== false
8
8
  export const copyable = $props.copyable !== false
9
9
  export const className = $props.className || ''
10
10
 
11
- export let highlightedCode = ''
12
- export let copied = false
13
-
14
- // Highlight the code
15
11
  const result = await highlight(code, { language, theme, lineNumbers })
16
- highlightedCode = applyHeadwindClasses(result.html, className)
12
+ export const highlightedCode = applyHeadwindClasses(result.html, className)
13
+ </script>
17
14
 
18
- export async function copyToClipboard() {
15
+ <script client>
16
+ const code = {{ code }}
17
+ const copied = state(false)
18
+
19
+ async function copyToClipboard() {
19
20
  try {
20
21
  await navigator.clipboard.writeText(code)
21
- copied = true
22
- setTimeout(() => {
23
- copied = false
24
- }, 2000)
25
- } catch (err) {
22
+ copied.set(true)
23
+ setTimeout(() => copied.set(false), 2000)
24
+ }
25
+ catch (err) {
26
26
  console.error('Failed to copy code:', err)
27
27
  }
28
28
  }
@@ -33,25 +33,22 @@ export async function copyToClipboard() {
33
33
 
34
34
  @if(copyable)
35
35
  <button
36
- @click="copyToClipboard"
36
+ @click="copyToClipboard()"
37
37
  class="absolute top-2 right-2 opacity-0 group-hover:opacity-100 transition-opacity duration-200 px-3 py-1.5 bg-neutral-800 hover:bg-neutral-700 text-white text-xs rounded-md font-medium"
38
38
  aria-label="Copy code"
39
39
  >
40
- @if(copied)
41
- <span class="flex items-center gap-1.5">
42
- <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
43
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" />
44
- </svg>
45
- Copied!
46
- </span>
47
- @else
48
- <span class="flex items-center gap-1.5">
49
- <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
50
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z" />
51
- </svg>
52
- Copy
53
- </span>
54
- @endif
40
+ <span :show="copied()" class="flex items-center gap-1.5">
41
+ <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
42
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" />
43
+ </svg>
44
+ Copied!
45
+ </span>
46
+ <span :show="!copied()" class="flex items-center gap-1.5">
47
+ <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
48
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z" />
49
+ </svg>
50
+ Copy
51
+ </span>
55
52
  </button>
56
53
  @endif
57
54
  </div>
@@ -1,4 +1,4 @@
1
- <script>
1
+ <script server>
2
2
  export const author = $props.author || '@chrisbbreuer'
3
3
  export const authorUrl = $props.authorUrl || 'https://github.com/chrisbbreuer'
4
4
  export const project = $props.project || '@stacksjs'
@@ -1,4 +1,4 @@
1
- <script>
1
+ <script server>
2
2
  export const title = $props.title || 'Component'
3
3
  export const description = $props.description || 'A modern component built with STX'
4
4
  export const githubUrl = $props.githubUrl || '#'
@@ -1,6 +1,4 @@
1
- <script>
2
- import { CodeBlock } from './CodeBlock.stx'
3
-
1
+ <script server>
4
2
  export const packageName = $props.packageName || '@stacksjs/component'
5
3
  export const installCode = `bun add ${packageName}`
6
4
  export const npmCode = `npm install ${packageName}`
@@ -18,22 +16,22 @@ export const yarnCode = `yarn add ${packageName}`
18
16
  <div class="space-y-4">
19
17
  <div>
20
18
  <h3 class="text-sm font-medium mb-2 text-neutral-700 dark:text-neutral-300">Bun (recommended)</h3>
21
- @component('CodeBlock', { code: installCode, language: 'bash' })
19
+ <CodeBlock :code="installCode" language="bash" />
22
20
  </div>
23
21
 
24
22
  <div>
25
23
  <h3 class="text-sm font-medium mb-2 text-neutral-700 dark:text-neutral-300">npm</h3>
26
- @component('CodeBlock', { code: npmCode, language: 'bash' })
24
+ <CodeBlock :code="npmCode" language="bash" />
27
25
  </div>
28
26
 
29
27
  <div>
30
28
  <h3 class="text-sm font-medium mb-2 text-neutral-700 dark:text-neutral-300">pnpm</h3>
31
- @component('CodeBlock', { code: pnpmCode, language: 'bash' })
29
+ <CodeBlock :code="pnpmCode" language="bash" />
32
30
  </div>
33
31
 
34
32
  <div>
35
33
  <h3 class="text-sm font-medium mb-2 text-neutral-700 dark:text-neutral-300">Yarn</h3>
36
- @component('CodeBlock', { code: yarnCode, language: 'bash' })
34
+ <CodeBlock :code="yarnCode" language="bash" />
37
35
  </div>
38
36
  </div>
39
37
  </div>