@stacksjs/components 0.2.27 → 0.2.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion-19x8q4rj.stx +88 -0
- package/dist/{Audio-vdmg1258.stx → Audio-hjywk3qc.stx} +4 -4
- package/dist/{Avatar-365cvrh4.stx → Avatar-h3jmwcq0.stx} +23 -34
- package/dist/{Badge-8m3qete4.stx → Badge-k8dy3d53.stx} +11 -19
- package/dist/{Button-3tt4vsqt.stx → Button-1vknasy3.stx} +18 -33
- package/dist/Calendar-reny0et7.stx +189 -0
- package/dist/{Card-6wdbexqr.stx → Card-c1g1fd1w.stx} +27 -33
- package/dist/{Checkbox-p3q3e3nf.stx → Checkbox-zgdmy3p5.stx} +36 -44
- package/dist/{Checkout-e4037tyy.stx → Checkout-agt0ngpw.stx} +8 -16
- package/dist/Combobox-fdkr6cdq.stx +96 -0
- package/dist/{ComboboxButton-8gxwkhdx.stx → ComboboxButton-g76stp1e.stx} +14 -2
- package/dist/{ComboboxInput-mk99z65n.stx → ComboboxInput-z1293bbh.stx} +12 -5
- package/dist/ComboboxOption-hmxt3gte.stx +49 -0
- package/dist/{ListboxOptions-8kqvfp7z.stx → ComboboxOptions-sq5360ae.stx} +2 -2
- package/dist/CommandPalette-36mxf05w.stx +81 -0
- package/dist/CommandPaletteItem-mvk6q7a2.stx +27 -0
- package/dist/Dialog-hczpexs4.stx +37 -0
- package/dist/{Drawer-p7m351bn.stx → Drawer-xhevp5cw.stx} +29 -49
- package/dist/Dropdown-vvhemtc0.stx +82 -0
- package/dist/{DropdownButton-9w8zkfwj.stx → DropdownButton-wcz67dxy.stx} +12 -6
- package/dist/DropdownItem-c7rz08e5.stx +35 -0
- package/dist/{DropdownItems-aygjpxkx.stx → DropdownItems-1sxnd5qn.stx} +2 -2
- package/dist/EmailInput-vak3kkmk.stx +30 -0
- package/dist/Form-mas630hy.stx +95 -0
- package/dist/{Image-jhkm6w1f.stx → Image-yhxcvgzs.stx} +68 -100
- package/dist/Listbox-q49tnr90.stx +101 -0
- package/dist/{ListboxButton-spwx7513.stx → ListboxButton-keb8gm0q.stx} +12 -1
- package/dist/ListboxOption-e0dtv1gc.stx +49 -0
- package/dist/{ComboboxOptions-6b5ywc5x.stx → ListboxOptions-ejkatcfg.stx} +7 -3
- package/dist/{Login-rx9gyqhx.stx → Login-gepemsth.stx} +17 -19
- package/dist/Navigator-rk2a5wvk.stx +113 -0
- package/dist/Notification-tb9b525s.stx +78 -0
- package/dist/{NumberInput-nzpkx1ry.stx → NumberInput-drnvtqej.stx} +40 -53
- package/dist/{Pagination-h61eq390.stx → Pagination-n3d31cns.stx} +73 -108
- package/dist/PasswordInput-n02x6053.stx +142 -0
- package/dist/{PaymentMethods-j42jsk5x.stx → PaymentMethods-x4vrx9yb.stx} +21 -30
- package/dist/Popover-et2q44m7.stx +60 -0
- package/dist/{PopoverButton-fnaqc77g.stx → PopoverButton-mffzc9pr.stx} +12 -6
- package/dist/{PopoverPanel-y0vtf5w9.stx → PopoverPanel-054yh38h.stx} +6 -6
- package/dist/{Portal-s2q37yp0.stx → Portal-1vf14s4x.stx} +20 -37
- package/dist/{Progress-vmdkm06p.stx → Progress-yxcntr4x.stx} +36 -48
- package/dist/{Radio-04bs3d21.stx → Radio-cgjv2hb2.stx} +29 -34
- package/dist/RadioGroup-qxmnm3xm.stx +60 -0
- package/dist/RadioGroupOption-s1d6r221.stx +58 -0
- package/dist/SearchInput-pdx7agn0.stx +44 -0
- package/dist/{Select-g4mmvfv8.stx → Select-28y0pg83.stx} +23 -31
- package/dist/Sidebar-73vc78as.stx +236 -0
- package/dist/SidebarFooter-zsfsgcxb.stx +109 -0
- package/dist/SidebarHeader-7v174a9c.stx +122 -0
- package/dist/SidebarItem-3y3e8g2t.stx +92 -0
- package/dist/SidebarSection-z5ey6awe.stx +113 -0
- package/dist/{Signup-c4dyv6f3.stx → Signup-hxm5hwkr.stx} +26 -28
- package/dist/{StepperStep-en4r00zv.stx → StepperStep-wxgembat.stx} +9 -5
- package/dist/{SubscriptionCheckout-gawjzf3q.stx → SubscriptionCheckout-zy2ycrmw.stx} +99 -129
- package/dist/Switch-r5t5w04w.stx +70 -0
- package/dist/{TableHeader-ydys9rzz.stx → TableHeader-0eyzbqpz.stx} +10 -3
- package/dist/Tabs-bzvvn4ke.stx +126 -0
- package/dist/Teleport-tsx4bt4n.stx +65 -0
- package/dist/{TextInput-k2kfkgy1.stx → TextInput-kf084763.stx} +42 -59
- package/dist/{Textarea-szad57dz.stx → Textarea-xg4rr2xz.stx} +42 -54
- package/dist/{Tooltip-em7t551n.stx → Tooltip-m0tqd72e.stx} +34 -40
- package/dist/Transition-7smenaz8.stx +102 -0
- package/dist/{TwoFactorChallenge-an9yvxvq.stx → TwoFactorChallenge-y5m3nk79.stx} +49 -63
- package/dist/{Video-crxva65p.stx → Video-84j4pv6h.stx} +4 -4
- package/dist/VirtualList-fa7v5a3h.stx +67 -0
- package/dist/VirtualTable-f9crbfjr.stx +103 -0
- package/dist/components/CodeBlock.stx +1 -6
- package/dist/index.js +13 -13
- package/dist/ui/accordion/Accordion.stx +1 -3
- package/dist/ui/auth/Login.stx +0 -1
- package/dist/ui/auth/Signup.stx +0 -1
- package/dist/ui/auth/TwoFactorChallenge.stx +1 -3
- package/dist/ui/avatar/Avatar.stx +0 -2
- package/dist/ui/badge/Badge.stx +0 -1
- package/dist/ui/button/Button.stx +1 -2
- package/dist/ui/calendar/Calendar.stx +12 -2
- package/dist/ui/card/Card.stx +0 -2
- package/dist/ui/checkbox/Checkbox.stx +2 -2
- package/dist/ui/combobox/Combobox.stx +2 -1
- package/dist/ui/combobox/ComboboxButton.stx +1 -0
- package/dist/ui/combobox/ComboboxInput.stx +1 -4
- package/dist/ui/combobox/ComboboxOption.stx +2 -9
- package/dist/ui/combobox/ComboboxOptions.stx +1 -1
- package/dist/ui/command-palette/CommandPalette.stx +3 -6
- package/dist/ui/command-palette/CommandPaletteItem.stx +2 -7
- package/dist/ui/dialog/Dialog.stx +1 -3
- package/dist/ui/drawer/Drawer.stx +1 -3
- package/dist/ui/dropdown/Dropdown.stx +2 -5
- package/dist/ui/dropdown/DropdownButton.stx +1 -3
- package/dist/ui/dropdown/DropdownItem.stx +2 -7
- package/dist/ui/dropdown/DropdownItems.stx +1 -1
- package/dist/ui/form/Form.stx +0 -5
- package/dist/ui/image/Image.stx +1 -6
- package/dist/ui/input/EmailInput.stx +1 -1
- package/dist/ui/input/NumberInput.stx +0 -1
- package/dist/ui/input/PasswordInput.stx +1 -4
- package/dist/ui/input/SearchInput.stx +2 -2
- package/dist/ui/input/TextInput.stx +1 -2
- package/dist/ui/listbox/Listbox.stx +2 -1
- package/dist/ui/listbox/ListboxButton.stx +1 -0
- package/dist/ui/listbox/ListboxOption.stx +2 -9
- package/dist/ui/listbox/ListboxOptions.stx +1 -1
- package/dist/ui/navigator/Navigator.stx +4 -4
- package/dist/ui/notification/Notification.stx +1 -5
- package/dist/ui/pagination/Pagination.stx +1 -2
- package/dist/ui/payment/Checkout.stx +0 -4
- package/dist/ui/payment/PaymentMethods.stx +15 -2
- package/dist/ui/payment/SubscriptionCheckout.stx +3 -184
- package/dist/ui/popover/Popover.stx +2 -5
- package/dist/ui/popover/PopoverButton.stx +1 -3
- package/dist/ui/popover/PopoverPanel.stx +1 -1
- package/dist/ui/portal/Portal.stx +1 -0
- package/dist/ui/progress/Progress.stx +6 -1
- package/dist/ui/radio/Radio.stx +1 -1
- package/dist/ui/radio-group/RadioGroup.stx +2 -1
- package/dist/ui/radio-group/RadioGroupOption.stx +2 -9
- package/dist/ui/select/Select.stx +1 -1
- package/dist/ui/sidebar/Sidebar.stx +9 -26
- package/dist/ui/sidebar/SidebarFooter.stx +6 -21
- package/dist/ui/sidebar/SidebarHeader.stx +7 -18
- package/dist/ui/sidebar/SidebarItem.stx +4 -20
- package/dist/ui/sidebar/SidebarSection.stx +5 -18
- package/dist/ui/sidebar/index.d.ts +13 -1
- package/dist/ui/stepper/StepperStep.stx +1 -5
- package/dist/ui/switch/Switch.stx +4 -10
- package/dist/ui/table/TableHeader.stx +1 -1
- package/dist/ui/tabs/Tabs.stx +0 -1
- package/dist/ui/teleport/Teleport.stx +1 -0
- package/dist/ui/textarea/Textarea.stx +1 -1
- package/dist/ui/tooltip/Tooltip.stx +1 -2
- package/dist/ui/transition/Transition.stx +9 -16
- package/dist/ui/virtual-list/VirtualList.stx +2 -4
- package/dist/ui/virtual-table/VirtualTable.stx +1 -1
- package/package.json +3 -3
- package/src/components/CodeBlock.stx +26 -29
- package/src/components/Footer.stx +1 -1
- package/src/components/Hero.stx +1 -1
- package/src/components/Installation.stx +5 -7
- package/src/ui/accordion/Accordion.stx +48 -68
- package/src/ui/audio/Audio.stx +4 -4
- package/src/ui/auth/Login.stx +17 -19
- package/src/ui/auth/Signup.stx +26 -28
- package/src/ui/auth/TwoFactorChallenge.stx +49 -63
- package/src/ui/avatar/Avatar.stx +23 -34
- package/src/ui/badge/Badge.stx +11 -19
- package/src/ui/button/Button.stx +18 -33
- package/src/ui/calendar/Calendar.stx +93 -136
- package/src/ui/card/Card.stx +27 -33
- package/src/ui/checkbox/Checkbox.stx +36 -44
- package/src/ui/combobox/Combobox.stx +87 -4
- package/src/ui/combobox/ComboboxButton.stx +14 -2
- package/src/ui/combobox/ComboboxInput.stx +12 -5
- package/src/ui/combobox/ComboboxOption.stx +29 -32
- package/src/ui/combobox/ComboboxOptions.stx +7 -3
- package/src/ui/command-palette/CommandPalette.stx +70 -28
- package/src/ui/command-palette/CommandPaletteItem.stx +15 -20
- package/src/ui/dialog/Dialog.stx +28 -10
- package/src/ui/drawer/Drawer.stx +29 -49
- package/src/ui/dropdown/Dropdown.stx +69 -11
- package/src/ui/dropdown/DropdownButton.stx +12 -6
- package/src/ui/dropdown/DropdownItem.stx +18 -26
- package/src/ui/dropdown/DropdownItems.stx +2 -2
- package/src/ui/form/Form.stx +50 -164
- package/src/ui/heatmap/Heatmap.stx +16 -37
- package/src/ui/image/Image.stx +68 -100
- package/src/ui/input/EmailInput.stx +16 -27
- package/src/ui/input/NumberInput.stx +40 -53
- package/src/ui/input/PasswordInput.stx +64 -77
- package/src/ui/input/SearchInput.stx +27 -46
- package/src/ui/input/TextInput.stx +42 -59
- package/src/ui/listbox/Listbox.stx +91 -4
- package/src/ui/listbox/ListboxButton.stx +12 -1
- package/src/ui/listbox/ListboxOption.stx +30 -38
- package/src/ui/listbox/ListboxOptions.stx +2 -2
- package/src/ui/navigator/Navigator.stx +52 -77
- package/src/ui/notification/Notification.stx +46 -39
- package/src/ui/pagination/Pagination.stx +73 -108
- package/src/ui/payment/Checkout.stx +8 -16
- package/src/ui/payment/PaymentMethods.stx +21 -30
- package/src/ui/payment/SubscriptionCheckout.stx +99 -129
- package/src/ui/popover/Popover.stx +50 -14
- package/src/ui/popover/PopoverButton.stx +12 -6
- package/src/ui/popover/PopoverPanel.stx +6 -6
- package/src/ui/portal/Portal.stx +20 -37
- package/src/ui/progress/Progress.stx +36 -48
- package/src/ui/radio/Radio.stx +29 -34
- package/src/ui/radio-group/RadioGroup.stx +51 -4
- package/src/ui/radio-group/RadioGroupOption.stx +37 -30
- package/src/ui/select/Select.stx +23 -31
- package/src/ui/sidebar/Sidebar.stx +136 -188
- package/src/ui/sidebar/SidebarFooter.stx +49 -35
- package/src/ui/sidebar/SidebarHeader.stx +52 -30
- package/src/ui/sidebar/SidebarItem.stx +52 -78
- package/src/ui/sidebar/SidebarSection.stx +56 -51
- package/src/ui/sidebar/index.ts +21 -1
- package/src/ui/stepper/StepperStep.stx +9 -5
- package/src/ui/switch/Switch.stx +38 -42
- package/src/ui/table/TableHeader.stx +10 -3
- package/src/ui/tabs/Tabs.stx +68 -87
- package/src/ui/teleport/Teleport.stx +23 -59
- package/src/ui/textarea/Textarea.stx +42 -54
- package/src/ui/tooltip/Tooltip.stx +34 -40
- package/src/ui/transition/Transition.stx +76 -148
- package/src/ui/video/Video.stx +4 -4
- package/src/ui/virtual-list/VirtualList.stx +45 -61
- package/src/ui/virtual-table/VirtualTable.stx +62 -72
- package/dist/Accordion-sbfra0mz.stx +0 -108
- package/dist/Calendar-58nnkdh8.stx +0 -232
- package/dist/Combobox-th5ebw62.stx +0 -13
- package/dist/ComboboxOption-an9zyan6.stx +0 -52
- package/dist/CommandPalette-kwmdf2np.stx +0 -39
- package/dist/CommandPaletteItem-zx2fbpts.stx +0 -32
- package/dist/Dialog-rgmj8q2j.stx +0 -19
- package/dist/Dropdown-jz4jy0n3.stx +0 -24
- package/dist/DropdownItem-wagdspb8.stx +0 -43
- package/dist/EmailInput-ajsp9vw6.stx +0 -41
- package/dist/Form-1mdmx9b6.stx +0 -209
- package/dist/Listbox-pqqh72g8.stx +0 -14
- package/dist/ListboxOption-7nxzaexq.stx +0 -57
- package/dist/Navigator-aay8bjab.stx +0 -138
- package/dist/Notification-gk33gv7b.stx +0 -71
- package/dist/PasswordInput-zv4hm43j.stx +0 -155
- package/dist/Popover-469gbt6r.stx +0 -24
- package/dist/RadioGroup-bvb1mrhd.stx +0 -13
- package/dist/RadioGroupOption-cpdwgnhw.stx +0 -51
- package/dist/SearchInput-2521m475.stx +0 -63
- package/dist/Sidebar-40ckbzh8.stx +0 -288
- package/dist/SidebarFooter-hnth56mg.stx +0 -95
- package/dist/SidebarHeader-3wrte2p2.stx +0 -100
- package/dist/SidebarItem-zqtvvzpc.stx +0 -118
- package/dist/SidebarSection-3etwnbjr.stx +0 -108
- package/dist/Switch-036j9vm1.stx +0 -74
- package/dist/Tabs-svh721m0.stx +0 -145
- package/dist/Teleport-qfch3w0b.stx +0 -101
- package/dist/Transition-0hmr6zxb.stx +0 -174
- package/dist/VirtualList-cndhjejh.stx +0 -83
- 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
|
|
6
|
-
declare class AnonymousClass {}
|
|
4
|
+
export declare const buttonClasses: 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:
|
|
19
|
+
export declare const circularBarColor: (...args: any[]) => any;
|
package/dist/ui/radio/Radio.stx
CHANGED
|
@@ -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,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
|
|
9
|
-
export declare const
|
|
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
|
|
32
|
-
export declare const
|
|
33
|
-
export declare const
|
|
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
|
|
23
|
-
declare
|
|
24
|
-
declare
|
|
25
|
-
declare
|
|
26
|
-
declare
|
|
27
|
-
declare
|
|
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
|
|
23
|
-
declare
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
declare
|
|
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
|
|
26
|
-
declare
|
|
27
|
-
declare
|
|
28
|
-
declare
|
|
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
|
|
25
|
-
export declare const
|
|
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?:
|
|
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
|
|
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
|
|
10
|
-
export declare const
|
|
11
|
-
declare
|
|
12
|
-
|
|
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;
|
package/dist/ui/tabs/Tabs.stx
CHANGED
|
@@ -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,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
|
|
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
|
-
|
|
22
|
-
export declare
|
|
23
|
-
|
|
24
|
-
export declare
|
|
25
|
-
export declare
|
|
26
|
-
|
|
27
|
-
export declare
|
|
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
|
|
8
|
-
export declare const
|
|
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.
|
|
4
|
+
"version": "0.2.53",
|
|
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",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@cwcss/crosswind": "^0.2.0",
|
|
61
|
-
"@stacksjs/stx": "0.2.
|
|
62
|
-
"bun-plugin-stx": "0.2.
|
|
61
|
+
"@stacksjs/stx": "0.2.53",
|
|
62
|
+
"bun-plugin-stx": "0.2.51",
|
|
63
63
|
"ts-syntax-highlighter": "^0.2.1"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import {
|
|
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
|
-
|
|
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
|
|
22
|
-
setTimeout(() =>
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
41
|
-
<
|
|
42
|
-
<
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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>
|
package/src/components/Hero.stx
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
34
|
+
<CodeBlock :code="yarnCode" language="bash" />
|
|
37
35
|
</div>
|
|
38
36
|
</div>
|
|
39
37
|
</div>
|