@stacksjs/components 0.2.21 → 0.2.26
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/README.md +36 -92
- package/dist/{Accordion-x2gjedap.stx → Accordion-sbfra0mz.stx} +2 -2
- package/dist/{Audio-0fk6p9tn.stx → Audio-vdmg1258.stx} +1 -1
- package/dist/{Avatar-5m0v0s4x.stx → Avatar-365cvrh4.stx} +1 -1
- package/dist/{Badge-ynes82vv.stx → Badge-8m3qete4.stx} +2 -2
- package/dist/{Breadcrumb-h9n427sk.stx → Breadcrumb-7f7s4d02.stx} +1 -1
- package/dist/{Button-7xtrzn14.stx → Button-3tt4vsqt.stx} +2 -2
- package/dist/{Calendar-egvx1pma.stx → Calendar-58nnkdh8.stx} +5 -5
- package/dist/{Card-r9w7vy1a.stx → Card-6wdbexqr.stx} +2 -2
- package/dist/{Checkbox-m8v46pmx.stx → Checkbox-p3q3e3nf.stx} +1 -1
- package/dist/{Checkout-vcnnr176.stx → Checkout-e4037tyy.stx} +1 -1
- package/dist/{Combobox-npb08vkp.stx → Combobox-th5ebw62.stx} +1 -1
- package/dist/{ComboboxButton-vcdyq4zw.stx → ComboboxButton-8gxwkhdx.stx} +1 -1
- package/dist/{ComboboxInput-c9d2p02m.stx → ComboboxInput-mk99z65n.stx} +1 -1
- package/dist/{ComboboxOption-7d0h9ash.stx → ComboboxOption-an9zyan6.stx} +1 -1
- package/dist/{ComboboxOptions-4dtqc0qa.stx → ComboboxOptions-6b5ywc5x.stx} +1 -1
- package/dist/{CommandPalette-ah00bf8v.stx → CommandPalette-kwmdf2np.stx} +1 -1
- package/dist/{CommandPaletteItem-2yx0gvtj.stx → CommandPaletteItem-zx2fbpts.stx} +1 -1
- package/dist/{DefaultPaymentMethod-emw5fg8s.stx → DefaultPaymentMethod-shhf6aap.stx} +1 -1
- package/dist/{Dialog-1w4rz7x0.stx → Dialog-rgmj8q2j.stx} +1 -1
- package/dist/{DialogBackdrop-qbm3y5ab.stx → DialogBackdrop-rxax3sec.stx} +1 -1
- package/dist/{DialogDescription-01w5j74b.stx → DialogDescription-76prd1m2.stx} +1 -1
- package/dist/{DialogPanel-brsszrrs.stx → DialogPanel-44d8jeqy.stx} +1 -1
- package/dist/{DialogTitle-3rxhwg21.stx → DialogTitle-x0r6k8x9.stx} +1 -1
- package/dist/{Drawer-yfaz8q7f.stx → Drawer-p7m351bn.stx} +3 -3
- package/dist/{Dropdown-ng7nx556.stx → Dropdown-jz4jy0n3.stx} +1 -1
- package/dist/{DropdownButton-vc4zpyrb.stx → DropdownButton-9w8zkfwj.stx} +1 -1
- package/dist/{DropdownItem-z491y23c.stx → DropdownItem-wagdspb8.stx} +1 -1
- package/dist/{DropdownItems-7ykf29sj.stx → DropdownItems-aygjpxkx.stx} +1 -1
- package/dist/{EmailInput-bfshpj92.stx → EmailInput-ajsp9vw6.stx} +1 -1
- package/dist/{Form-z4f7w6r1.stx → Form-1mdmx9b6.stx} +1 -1
- package/dist/{Image-ktk0451c.stx → Image-jhkm6w1f.stx} +1 -1
- package/dist/{Listbox-xcejcmyc.stx → Listbox-pqqh72g8.stx} +1 -1
- package/dist/{ListboxButton-nx5kmw19.stx → ListboxButton-spwx7513.stx} +1 -1
- package/dist/{RadioGroupLabel-aky8a73n.stx → ListboxLabel-7mymt1b8.stx} +1 -1
- package/dist/{ListboxOption-6h4hsdz5.stx → ListboxOption-7nxzaexq.stx} +1 -1
- package/dist/{ListboxOptions-2sacdtm5.stx → ListboxOptions-8kqvfp7z.stx} +1 -1
- package/dist/{Login-s2jkvd9y.stx → Login-rx9gyqhx.stx} +1 -1
- package/dist/{Navigator-tqqdgdkw.stx → Navigator-aay8bjab.stx} +3 -3
- package/dist/{Notification-sry8egea.stx → Notification-gk33gv7b.stx} +1 -1
- package/dist/{NumberInput-zm93ddfw.stx → NumberInput-nzpkx1ry.stx} +3 -3
- package/dist/{Pagination-yza9v4qw.stx → Pagination-h61eq390.stx} +6 -6
- package/dist/{PasswordInput-4xnndp5y.stx → PasswordInput-zv4hm43j.stx} +2 -2
- package/dist/{PaymentMethods-jxba6kek.stx → PaymentMethods-j42jsk5x.stx} +3 -3
- package/dist/{Popover-scbqatjq.stx → Popover-469gbt6r.stx} +1 -1
- package/dist/{PopoverButton-rbxhzj4k.stx → PopoverButton-fnaqc77g.stx} +1 -1
- package/dist/{PopoverPanel-9ng1rm6e.stx → PopoverPanel-y0vtf5w9.stx} +1 -1
- package/dist/{Portal-j111yvqp.stx → Portal-s2q37yp0.stx} +1 -1
- package/dist/{Progress-gbmw3akr.stx → Progress-vmdkm06p.stx} +1 -1
- package/dist/{Radio-1n9qamv1.stx → Radio-04bs3d21.stx} +1 -1
- package/dist/{RadioGroup-12dw2vhk.stx → RadioGroup-bvb1mrhd.stx} +1 -1
- package/dist/{RadioGroupDescription-bjm3mdht.stx → RadioGroupDescription-yej78fak.stx} +1 -1
- package/dist/{ListboxLabel-aky8a73n.stx → RadioGroupLabel-7mymt1b8.stx} +1 -1
- package/dist/{RadioGroupOption-9pcxgwmd.stx → RadioGroupOption-cpdwgnhw.stx} +1 -1
- package/dist/{SearchInput-g240e2nq.stx → SearchInput-2521m475.stx} +1 -1
- package/dist/{Select-p9f94b20.stx → Select-g4mmvfv8.stx} +1 -1
- package/dist/{Sidebar-gwxw8q38.stx → Sidebar-40ckbzh8.stx} +1 -1
- package/dist/{SidebarFooter-887kxret.stx → SidebarFooter-hnth56mg.stx} +1 -1
- package/dist/{SidebarHeader-qjeyx0hv.stx → SidebarHeader-3wrte2p2.stx} +1 -1
- package/dist/{SidebarItem-4dpwtmb4.stx → SidebarItem-zqtvvzpc.stx} +1 -1
- package/dist/{SidebarSection-kh92fk4m.stx → SidebarSection-3etwnbjr.stx} +1 -1
- package/dist/{Signup-3nxq5zag.stx → Signup-c4dyv6f3.stx} +1 -1
- package/dist/{Skeleton-g0nx1njm.stx → Skeleton-v1pwa8nr.stx} +1 -1
- package/dist/{Spinner-w4zj58xp.stx → Spinner-7dahavkd.stx} +1 -1
- package/dist/{Stepper-rwc5actp.stx → Stepper-rgbk76hd.stx} +1 -1
- package/dist/{StepperStep-h0k657nm.stx → StepperStep-en4r00zv.stx} +1 -1
- package/dist/{SubscriptionCheckout-4cbxdg7w.stx → SubscriptionCheckout-gawjzf3q.stx} +2 -2
- package/dist/{Switch-kjq8qd2p.stx → Switch-036j9vm1.stx} +1 -1
- package/dist/{Table-59j9qwp0.stx → Table-6cx8az9h.stx} +1 -1
- package/dist/{TableBody-reka2gwv.stx → TableBody-wf6t13j9.stx} +1 -1
- package/dist/{TableCell-j7nh4sgr.stx → TableCell-ntx0edbn.stx} +1 -1
- package/dist/{TableHead-ecbrwpqm.stx → TableHead-3k4hnm2k.stx} +1 -1
- package/dist/{TableHeader-jn2shwsv.stx → TableHeader-ydys9rzz.stx} +1 -1
- package/dist/{TableRow-xz8rrxhc.stx → TableRow-z09p2ebf.stx} +1 -1
- package/dist/{Tabs-kb6ex6m7.stx → Tabs-svh721m0.stx} +2 -2
- package/dist/{Teleport-819cg9zm.stx → Teleport-qfch3w0b.stx} +1 -1
- package/dist/{TextInput-zx9kgr79.stx → TextInput-k2kfkgy1.stx} +2 -2
- package/dist/{Textarea-5xvmrb0z.stx → Textarea-szad57dz.stx} +1 -1
- package/dist/{Tooltip-5ehqsy49.stx → Tooltip-em7t551n.stx} +1 -1
- package/dist/{Transition-2j39s044.stx → Transition-0hmr6zxb.stx} +1 -1
- package/dist/{TwoFactorChallenge-2q4gg89m.stx → TwoFactorChallenge-an9yvxvq.stx} +2 -2
- package/dist/{Video-6aq4shh4.stx → Video-crxva65p.stx} +1 -1
- package/dist/{VirtualList-weh5qtm1.stx → VirtualList-cndhjejh.stx} +1 -1
- package/dist/{VirtualTable-59a1eskc.stx → VirtualTable-ng0b48yp.stx} +1 -1
- package/dist/components/CodeBlock.stx +12 -0
- package/dist/components/Footer.stx +8 -0
- package/dist/components/Hero.stx +3 -0
- package/dist/components/Installation.stx +5 -0
- package/dist/index.js +9 -9
- package/dist/ui/accordion/Accordion.stx +10 -0
- package/dist/ui/audio/Audio.stx +11 -0
- package/dist/ui/auth/Login.stx +10 -0
- package/dist/ui/auth/Signup.stx +5 -0
- package/dist/ui/auth/TwoFactorChallenge.stx +9 -0
- package/dist/ui/avatar/Avatar.stx +15 -0
- package/dist/ui/badge/Badge.stx +9 -0
- package/dist/ui/breadcrumb/Breadcrumb.stx +9 -0
- package/dist/ui/button/Button.stx +14 -0
- package/dist/ui/button/index.d.ts +2 -2
- package/dist/ui/calendar/Calendar.stx +10 -0
- package/dist/ui/card/Card.stx +12 -0
- package/dist/ui/checkbox/Checkbox.stx +15 -0
- package/dist/ui/combobox/Combobox.stx +4 -0
- package/dist/ui/combobox/ComboboxButton.stx +2 -0
- package/dist/ui/combobox/ComboboxInput.stx +8 -0
- package/dist/ui/combobox/ComboboxOption.stx +13 -0
- package/dist/ui/combobox/ComboboxOptions.stx +3 -0
- package/dist/ui/command-palette/CommandPalette.stx +8 -0
- package/dist/ui/command-palette/CommandPaletteItem.stx +8 -0
- package/dist/ui/dialog/Dialog.stx +5 -0
- package/dist/ui/dialog/DialogBackdrop.stx +2 -0
- package/dist/ui/dialog/DialogDescription.stx +2 -0
- package/dist/ui/dialog/DialogPanel.stx +2 -0
- package/dist/ui/dialog/DialogTitle.stx +2 -0
- package/dist/ui/drawer/Drawer.stx +9 -0
- package/dist/ui/dropdown/Dropdown.stx +7 -0
- package/dist/ui/dropdown/DropdownButton.stx +6 -0
- package/dist/ui/dropdown/DropdownItem.stx +10 -0
- package/dist/ui/dropdown/DropdownItems.stx +3 -0
- package/dist/ui/form/Form.stx +11 -0
- package/dist/ui/form/index.d.ts +2 -2
- package/dist/ui/image/Image.stx +26 -0
- package/dist/ui/input/EmailInput.stx +11 -0
- package/dist/ui/input/NumberInput.stx +19 -0
- package/dist/ui/input/PasswordInput.stx +19 -0
- package/dist/ui/input/SearchInput.stx +12 -0
- package/dist/ui/input/TextInput.stx +22 -0
- package/dist/ui/input/index.d.ts +6 -6
- package/dist/ui/listbox/Listbox.stx +5 -0
- package/dist/ui/listbox/ListboxButton.stx +3 -0
- package/dist/ui/listbox/ListboxLabel.stx +2 -0
- package/dist/ui/listbox/ListboxOption.stx +13 -0
- package/dist/ui/listbox/ListboxOptions.stx +3 -0
- package/dist/ui/navigator/Navigator.stx +8 -0
- package/dist/ui/notification/Notification.stx +12 -0
- package/dist/ui/pagination/Pagination.stx +12 -0
- package/dist/ui/payment/Checkout.stx +13 -0
- package/dist/ui/payment/DefaultPaymentMethod.stx +4 -0
- package/dist/ui/payment/PaymentMethods.stx +6 -0
- package/dist/ui/payment/SubscriptionCheckout.stx +191 -0
- package/dist/ui/popover/Popover.stx +7 -0
- package/dist/ui/popover/PopoverButton.stx +6 -0
- package/dist/ui/popover/PopoverPanel.stx +4 -0
- package/dist/ui/portal/Portal.stx +2 -0
- package/dist/ui/progress/Progress.stx +14 -0
- package/dist/ui/radio/Radio.stx +14 -0
- package/dist/ui/radio-group/RadioGroup.stx +4 -0
- package/dist/ui/radio-group/RadioGroupDescription.stx +2 -0
- package/dist/ui/radio-group/RadioGroupLabel.stx +2 -0
- package/dist/ui/radio-group/RadioGroupOption.stx +13 -0
- package/dist/ui/select/Select.stx +14 -0
- package/dist/ui/sidebar/Sidebar.stx +33 -0
- package/dist/ui/sidebar/SidebarFooter.stx +27 -0
- package/dist/ui/sidebar/SidebarHeader.stx +26 -0
- package/dist/ui/sidebar/SidebarItem.stx +28 -0
- package/dist/ui/sidebar/SidebarSection.stx +25 -0
- package/dist/ui/skeleton/Skeleton.stx +9 -0
- package/dist/ui/spinner/Spinner.stx +9 -0
- package/dist/ui/stepper/Stepper.stx +4 -0
- package/dist/ui/stepper/StepperStep.stx +12 -0
- package/dist/ui/switch/Switch.stx +15 -0
- package/dist/ui/table/Table.stx +3 -0
- package/dist/ui/table/TableBody.stx +1 -0
- package/dist/ui/table/TableCell.stx +1 -0
- package/dist/ui/table/TableHead.stx +1 -0
- package/dist/ui/table/TableHeader.stx +3 -0
- package/dist/ui/table/TableRow.stx +2 -0
- package/dist/ui/tabs/Tabs.stx +9 -0
- package/dist/ui/teleport/Teleport.stx +3 -0
- package/dist/ui/textarea/Textarea.stx +18 -0
- package/dist/ui/tooltip/Tooltip.stx +9 -0
- package/dist/ui/transition/Transition.stx +27 -0
- package/dist/ui/video/Video.stx +15 -0
- package/dist/ui/virtual-list/VirtualList.stx +9 -0
- package/dist/ui/virtual-table/VirtualTable.stx +16 -0
- package/dist/utils/accessibility.d.ts +10 -25
- package/dist/utils/animation/easing.d.ts +75 -0
- package/dist/utils/error-handling.d.ts +8 -21
- package/dist/utils/i18n.d.ts +36 -86
- package/package.json +5 -3
- package/src/ui/accordion/Accordion.stx +2 -2
- package/src/ui/audio/Audio.stx +1 -1
- package/src/ui/audio/README.md +5 -6
- package/src/ui/auth/Login.stx +1 -1
- package/src/ui/auth/README.md +30 -33
- package/src/ui/auth/Signup.stx +1 -1
- package/src/ui/auth/TwoFactorChallenge.stx +2 -2
- package/src/ui/avatar/Avatar.stx +1 -1
- package/src/ui/badge/Badge.stx +2 -2
- package/src/ui/breadcrumb/Breadcrumb.stx +1 -1
- package/src/ui/button/Button.stx +2 -2
- package/src/ui/button/README.md +12 -32
- package/src/ui/calendar/Calendar.stx +5 -5
- package/src/ui/card/Card.stx +2 -2
- package/src/ui/checkbox/Checkbox.stx +1 -1
- package/src/ui/combobox/Combobox.stx +1 -1
- package/src/ui/combobox/ComboboxButton.stx +1 -1
- package/src/ui/combobox/ComboboxInput.stx +1 -1
- package/src/ui/combobox/ComboboxOption.stx +1 -1
- package/src/ui/combobox/ComboboxOptions.stx +1 -1
- package/src/ui/combobox/README.md +25 -29
- package/src/ui/command-palette/CommandPalette.stx +1 -1
- package/src/ui/command-palette/CommandPaletteItem.stx +1 -1
- package/src/ui/command-palette/README.md +8 -8
- package/src/ui/dialog/Dialog.stx +1 -1
- package/src/ui/dialog/DialogBackdrop.stx +1 -1
- package/src/ui/dialog/DialogDescription.stx +1 -1
- package/src/ui/dialog/DialogPanel.stx +1 -1
- package/src/ui/dialog/DialogTitle.stx +1 -1
- package/src/ui/dialog/README.md +26 -38
- package/src/ui/drawer/Drawer.stx +3 -3
- package/src/ui/drawer/README.md +13 -33
- package/src/ui/dropdown/Dropdown.stx +1 -1
- package/src/ui/dropdown/DropdownButton.stx +1 -1
- package/src/ui/dropdown/DropdownItem.stx +1 -1
- package/src/ui/dropdown/DropdownItems.stx +1 -1
- package/src/ui/dropdown/README.md +28 -56
- package/src/ui/form/Form.stx +1 -1
- package/src/ui/image/Image.stx +1 -1
- package/src/ui/image/README.md +45 -52
- package/src/ui/input/EmailInput.stx +1 -1
- package/src/ui/input/NumberInput.stx +3 -3
- package/src/ui/input/PasswordInput.stx +2 -2
- package/src/ui/input/SearchInput.stx +1 -1
- package/src/ui/input/TextInput.stx +2 -2
- package/src/ui/listbox/Listbox.stx +1 -1
- package/src/ui/listbox/ListboxButton.stx +1 -1
- package/src/ui/listbox/ListboxLabel.stx +1 -1
- package/src/ui/listbox/ListboxOption.stx +1 -1
- package/src/ui/listbox/ListboxOptions.stx +1 -1
- package/src/ui/listbox/README.md +21 -29
- package/src/ui/navigator/Navigator.stx +3 -3
- package/src/ui/notification/Notification.stx +1 -1
- package/src/ui/notification/README.md +28 -32
- package/src/ui/pagination/Pagination.stx +6 -6
- package/src/ui/payment/Checkout.stx +1 -1
- package/src/ui/payment/DefaultPaymentMethod.stx +1 -1
- package/src/ui/payment/PaymentMethods.stx +3 -3
- package/src/ui/payment/README.md +59 -141
- package/src/ui/payment/SubscriptionCheckout.stx +2 -2
- package/src/ui/popover/Popover.stx +1 -1
- package/src/ui/popover/PopoverButton.stx +1 -1
- package/src/ui/popover/PopoverPanel.stx +1 -1
- package/src/ui/popover/README.md +10 -14
- package/src/ui/portal/Portal.stx +1 -1
- package/src/ui/progress/Progress.stx +1 -1
- package/src/ui/radio/Radio.stx +1 -1
- package/src/ui/radio-group/README.md +29 -35
- package/src/ui/radio-group/RadioGroup.stx +1 -1
- package/src/ui/radio-group/RadioGroupDescription.stx +1 -1
- package/src/ui/radio-group/RadioGroupLabel.stx +1 -1
- package/src/ui/radio-group/RadioGroupOption.stx +1 -1
- package/src/ui/select/README.md +49 -73
- package/src/ui/select/Select.stx +1 -1
- package/src/ui/sidebar/Sidebar.stx +1 -1
- package/src/ui/sidebar/SidebarFooter.stx +1 -1
- package/src/ui/sidebar/SidebarHeader.stx +1 -1
- package/src/ui/sidebar/SidebarItem.stx +1 -1
- package/src/ui/sidebar/SidebarSection.stx +1 -1
- package/src/ui/skeleton/Skeleton.stx +1 -1
- package/src/ui/spinner/Spinner.stx +1 -1
- package/src/ui/stepper/README.md +8 -8
- package/src/ui/stepper/Stepper.stx +1 -1
- package/src/ui/stepper/StepperStep.stx +1 -1
- package/src/ui/switch/README.md +10 -29
- package/src/ui/switch/Switch.stx +1 -1
- package/src/ui/table/README.md +17 -17
- package/src/ui/table/Table.stx +1 -1
- package/src/ui/table/TableBody.stx +1 -1
- package/src/ui/table/TableCell.stx +1 -1
- package/src/ui/table/TableHead.stx +1 -1
- package/src/ui/table/TableHeader.stx +1 -1
- package/src/ui/table/TableRow.stx +1 -1
- package/src/ui/tabs/Tabs.stx +2 -2
- package/src/ui/teleport/Teleport.stx +1 -1
- package/src/ui/textarea/Textarea.stx +1 -1
- package/src/ui/tooltip/Tooltip.stx +1 -1
- package/src/ui/transition/README.md +4 -4
- package/src/ui/transition/Transition.stx +1 -1
- package/src/ui/video/README.md +7 -8
- package/src/ui/video/Video.stx +1 -1
- package/src/ui/virtual-list/VirtualList.stx +1 -1
- package/src/ui/virtual-table/VirtualTable.stx +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const open: unknown;
|
|
2
|
+
export declare const onClose: () => unknown;
|
|
3
|
+
export declare const position: unknown;
|
|
4
|
+
export declare const title: unknown;
|
|
5
|
+
export declare const className: unknown;
|
|
6
|
+
export declare const containerClasses: unknown;
|
|
7
|
+
export declare const panelClasses: unknown;
|
|
8
|
+
export declare const slideAnimation: unknown;
|
|
9
|
+
export declare const closeButtonClasses: unknown;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare function handleClick(e: unknown): void;
|
|
2
|
+
export declare function handleMouseEnter(): void;
|
|
3
|
+
export declare function handleMouseLeave(): void;
|
|
4
|
+
export declare const className: unknown;
|
|
5
|
+
export declare const as: unknown;
|
|
6
|
+
export declare const disabled: unknown;
|
|
7
|
+
export declare const onClick: unknown;
|
|
8
|
+
/** @defaultValue false */
|
|
9
|
+
export declare let active: boolean;
|
|
10
|
+
declare class AnonymousClass {}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const action: unknown;
|
|
2
|
+
export declare const method: unknown;
|
|
3
|
+
export declare const validationSchema: unknown;
|
|
4
|
+
export declare const initialValues: unknown;
|
|
5
|
+
export declare const validateOnChange: unknown;
|
|
6
|
+
export declare const validateOnBlur: unknown;
|
|
7
|
+
export declare const onSubmit: unknown;
|
|
8
|
+
export declare const onError: unknown;
|
|
9
|
+
export declare const className: unknown;
|
|
10
|
+
export declare const formClasses: unknown;
|
|
11
|
+
export declare const errorClasses: unknown;
|
package/dist/ui/form/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PropSchema } from '../../utils/prop-validation';
|
|
1
|
+
import type { PropSchema, ValidationResult } from '../../utils/prop-validation';
|
|
2
2
|
/**
|
|
3
3
|
* Form prop validation schema
|
|
4
4
|
*/
|
|
@@ -6,7 +6,7 @@ export declare const formPropSchema: PropSchema;
|
|
|
6
6
|
/**
|
|
7
7
|
* Validate Form component props
|
|
8
8
|
*/
|
|
9
|
-
export declare const validateFormProps: (props: Record<string, any>);
|
|
9
|
+
export declare const validateFormProps: (props: Record<string, any>) => ValidationResult;
|
|
10
10
|
export declare interface FieldSchema {
|
|
11
11
|
required?: boolean
|
|
12
12
|
requiredMessage?: string
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const src: unknown;
|
|
2
|
+
export declare const srcSet: unknown;
|
|
3
|
+
export declare const sizes: unknown;
|
|
4
|
+
export declare const webpSrc: unknown;
|
|
5
|
+
export declare const webpSrcSet: unknown;
|
|
6
|
+
export declare const alt: unknown;
|
|
7
|
+
export declare const width: unknown;
|
|
8
|
+
export declare const height: unknown;
|
|
9
|
+
export declare const lazy: unknown;
|
|
10
|
+
export declare const placeholder: unknown;
|
|
11
|
+
export declare const blurDataURL: unknown;
|
|
12
|
+
export declare const onLoad: unknown;
|
|
13
|
+
export declare const onError: unknown;
|
|
14
|
+
export declare const aspectRatio: unknown;
|
|
15
|
+
export declare const objectFit: unknown;
|
|
16
|
+
export declare const rounded: unknown;
|
|
17
|
+
export declare const zoomOnHover: unknown;
|
|
18
|
+
export declare const className: unknown;
|
|
19
|
+
// Has WebP support
|
|
20
|
+
export declare const hasWebP: unknown;
|
|
21
|
+
export declare const containerClasses: unknown;
|
|
22
|
+
export declare const imageClasses: unknown;
|
|
23
|
+
export declare const placeholderClasses: unknown;
|
|
24
|
+
export declare const blurPlaceholderClasses: unknown;
|
|
25
|
+
// Generate aspect ratio padding if provided
|
|
26
|
+
export declare const paddingBottom: (...args: any[]) => any;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const value: unknown;
|
|
2
|
+
export declare const onChange: () => unknown;
|
|
3
|
+
export declare const placeholder: unknown;
|
|
4
|
+
export declare const disabled: unknown;
|
|
5
|
+
export declare const readonly: unknown;
|
|
6
|
+
export declare const size: unknown;
|
|
7
|
+
export declare const error: unknown;
|
|
8
|
+
export declare const label: unknown;
|
|
9
|
+
export declare const helperText: unknown;
|
|
10
|
+
export declare const required: unknown;
|
|
11
|
+
export declare const className: unknown;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const value: unknown;
|
|
2
|
+
export declare const onChange: () => unknown;
|
|
3
|
+
export declare const placeholder: unknown;
|
|
4
|
+
export declare const disabled: unknown;
|
|
5
|
+
export declare const readonly: unknown;
|
|
6
|
+
export declare const size: unknown;
|
|
7
|
+
export declare const error: unknown;
|
|
8
|
+
export declare const label: unknown;
|
|
9
|
+
export declare const helperText: unknown;
|
|
10
|
+
export declare const required: unknown;
|
|
11
|
+
export declare const min: unknown;
|
|
12
|
+
export declare const max: unknown;
|
|
13
|
+
export declare const step: unknown;
|
|
14
|
+
export declare const showControls: unknown;
|
|
15
|
+
export declare const className: unknown;
|
|
16
|
+
export declare const inputClassName: unknown;
|
|
17
|
+
export declare const inputClasses: unknown;
|
|
18
|
+
export declare const labelClasses: unknown;
|
|
19
|
+
export declare const helperClasses: unknown;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const value: unknown;
|
|
2
|
+
export declare const onChange: () => unknown;
|
|
3
|
+
export declare const placeholder: unknown;
|
|
4
|
+
export declare const disabled: unknown;
|
|
5
|
+
export declare const readonly: unknown;
|
|
6
|
+
export declare const size: unknown;
|
|
7
|
+
export declare const error: unknown;
|
|
8
|
+
export declare const label: unknown;
|
|
9
|
+
export declare const helperText: unknown;
|
|
10
|
+
export declare const required: unknown;
|
|
11
|
+
export declare const showStrength: unknown;
|
|
12
|
+
export declare const className: unknown;
|
|
13
|
+
export declare const inputClassName: unknown;
|
|
14
|
+
export declare const inputClasses: unknown;
|
|
15
|
+
export declare const labelClasses: unknown;
|
|
16
|
+
export declare const helperClasses: unknown;
|
|
17
|
+
export declare const iconClasses: unknown;
|
|
18
|
+
export declare const strength: unknown;
|
|
19
|
+
export declare const strengthColor: unknown;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const value: unknown;
|
|
2
|
+
export declare const onChange: () => unknown;
|
|
3
|
+
export declare const onSearch: () => unknown;
|
|
4
|
+
export declare const placeholder: unknown;
|
|
5
|
+
export declare const disabled: unknown;
|
|
6
|
+
export declare const size: unknown;
|
|
7
|
+
export declare const error: unknown;
|
|
8
|
+
export declare const label: unknown;
|
|
9
|
+
export declare const helperText: unknown;
|
|
10
|
+
export declare const loading: unknown;
|
|
11
|
+
export declare const className: unknown;
|
|
12
|
+
export declare const rightIcon: () => unknown;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const value: unknown;
|
|
2
|
+
export declare const onChange: () => unknown;
|
|
3
|
+
export declare const placeholder: unknown;
|
|
4
|
+
export declare const disabled: unknown;
|
|
5
|
+
export declare const readonly: unknown;
|
|
6
|
+
export declare const size: unknown;
|
|
7
|
+
export declare const error: unknown;
|
|
8
|
+
export declare const label: unknown;
|
|
9
|
+
export declare const helperText: unknown;
|
|
10
|
+
export declare const required: unknown;
|
|
11
|
+
export declare const leftIcon: unknown;
|
|
12
|
+
export declare const rightIcon: unknown;
|
|
13
|
+
export declare const clearable: unknown;
|
|
14
|
+
export declare const maxLength: unknown;
|
|
15
|
+
export declare const showCount: unknown;
|
|
16
|
+
export declare const className: unknown;
|
|
17
|
+
export declare const inputClassName: unknown;
|
|
18
|
+
export declare const inputClasses: unknown;
|
|
19
|
+
export declare const labelClasses: unknown;
|
|
20
|
+
export declare const helperClasses: unknown;
|
|
21
|
+
export declare const iconClasses: unknown;
|
|
22
|
+
export declare const hasValue: unknown;
|
package/dist/ui/input/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PropSchema } from '../../utils/prop-validation';
|
|
1
|
+
import type { PropSchema, ValidationResult } from '../../utils/prop-validation';
|
|
2
2
|
/**
|
|
3
3
|
* TextInput prop validation schema
|
|
4
4
|
*/
|
|
@@ -10,23 +10,23 @@ export declare const numberInputPropSchema: PropSchema;
|
|
|
10
10
|
/**
|
|
11
11
|
* Validate TextInput component props
|
|
12
12
|
*/
|
|
13
|
-
export declare const validateTextInputProps: (props: Record<string, any>);
|
|
13
|
+
export declare const validateTextInputProps: (props: Record<string, any>) => ValidationResult;
|
|
14
14
|
/**
|
|
15
15
|
* Validate EmailInput component props
|
|
16
16
|
*/
|
|
17
|
-
export declare const validateEmailInputProps: (props: Record<string, any>);
|
|
17
|
+
export declare const validateEmailInputProps: (props: Record<string, any>) => ValidationResult;
|
|
18
18
|
/**
|
|
19
19
|
* Validate PasswordInput component props
|
|
20
20
|
*/
|
|
21
|
-
export declare const validatePasswordInputProps: (props: Record<string, any>);
|
|
21
|
+
export declare const validatePasswordInputProps: (props: Record<string, any>) => ValidationResult;
|
|
22
22
|
/**
|
|
23
23
|
* Validate NumberInput component props
|
|
24
24
|
*/
|
|
25
|
-
export declare const validateNumberInputProps: (props: Record<string, any>);
|
|
25
|
+
export declare const validateNumberInputProps: (props: Record<string, any>) => ValidationResult;
|
|
26
26
|
/**
|
|
27
27
|
* Validate SearchInput component props
|
|
28
28
|
*/
|
|
29
|
-
export declare const validateSearchInputProps: (props: Record<string, any>);
|
|
29
|
+
export declare const validateSearchInputProps: (props: Record<string, any>) => ValidationResult;
|
|
30
30
|
export declare interface BaseInputProps {
|
|
31
31
|
value?: string
|
|
32
32
|
onChange?: (value: string) => void
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare function handleClick(): void;
|
|
2
|
+
export declare function handleMouseEnter(): void;
|
|
3
|
+
export declare function handleMouseLeave(): void;
|
|
4
|
+
export declare const value: unknown;
|
|
5
|
+
export declare const disabled: unknown;
|
|
6
|
+
export declare const className: unknown;
|
|
7
|
+
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 selected: unknown;
|
|
13
|
+
declare class AnonymousClass {}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Navigator Component Props
|
|
2
|
+
export declare const items: unknown;
|
|
3
|
+
export declare const active: unknown;
|
|
4
|
+
export declare const orientation: unknown;
|
|
5
|
+
export declare const className: unknown;
|
|
6
|
+
declare type = "button";
|
|
7
|
+
declare class AnonymousClass {}
|
|
8
|
+
declare class AnonymousClass {}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare function handleClose(): void;
|
|
2
|
+
export declare const show: unknown;
|
|
3
|
+
export declare const title: unknown;
|
|
4
|
+
export declare const message: unknown;
|
|
5
|
+
export declare const type: unknown;
|
|
6
|
+
export declare const position: unknown;
|
|
7
|
+
export declare const duration: unknown;
|
|
8
|
+
export declare const onClose: unknown;
|
|
9
|
+
export declare const className: unknown;
|
|
10
|
+
declare type = "button"
|
|
11
|
+
@click="handleClose";
|
|
12
|
+
declare class AnonymousClass {}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const currentPage: unknown;
|
|
2
|
+
export declare const totalPages: unknown;
|
|
3
|
+
export declare const siblingCount: unknown;
|
|
4
|
+
export declare const showFirstLast: unknown;
|
|
5
|
+
export declare const showPrevNext: unknown;
|
|
6
|
+
export declare const className: unknown;
|
|
7
|
+
export declare const onChange: unknown;
|
|
8
|
+
export declare const paginationClasses: unknown;
|
|
9
|
+
export declare const buttonClasses: unknown;
|
|
10
|
+
export declare const activeButtonClasses: unknown;
|
|
11
|
+
export declare const ellipsisClasses: unknown;
|
|
12
|
+
export declare const iconClasses: unknown;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const products: unknown;
|
|
2
|
+
export declare const redirectUrl: unknown;
|
|
3
|
+
export declare const mode: unknown;
|
|
4
|
+
export declare const stripePublicKey: unknown;
|
|
5
|
+
export declare const apiUrl: unknown;
|
|
6
|
+
export declare const onSubmit: unknown;
|
|
7
|
+
export declare const onRemoveProduct: unknown;
|
|
8
|
+
export declare const shipping: unknown;
|
|
9
|
+
export declare const taxes: unknown;
|
|
10
|
+
export declare const className: unknown;
|
|
11
|
+
// For future expansion - one-time payment support
|
|
12
|
+
export declare const isSubscription: unknown;
|
|
13
|
+
export declare const isOneTime: unknown;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const paymentMethods: unknown;
|
|
2
|
+
export declare const onDeletePaymentMethod: unknown;
|
|
3
|
+
export declare const onMakeDefault: unknown;
|
|
4
|
+
export declare const isLoading: unknown;
|
|
5
|
+
export declare const className: unknown;
|
|
6
|
+
export declare const containerClasses: unknown;
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
export declare const products: unknown;
|
|
2
|
+
export declare const stripePublicKey: unknown;
|
|
3
|
+
export declare const apiUrl: unknown;
|
|
4
|
+
export declare const onSubmit: unknown;
|
|
5
|
+
export declare const onRemoveProduct: unknown;
|
|
6
|
+
export declare const shipping: unknown;
|
|
7
|
+
export declare const taxes: unknown;
|
|
8
|
+
export declare const className: unknown;
|
|
9
|
+
// Calculate totals
|
|
10
|
+
export declare const calculateSubtotal: () => unknown;
|
|
11
|
+
export declare const total: unknown;
|
|
12
|
+
export declare const containerClasses: (`bg-gray-50 dark:bg-blue-gray-900 ${className}`.trim()
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<div class="{{ containerClasses }}">
|
|
16
|
+
<div class="mx-auto max-w-2xl px-4 pb-24 pt-16 lg:max-w-7xl lg:px-8 sm:px-6">
|
|
17
|
+
<h2 class="sr-only">Checkout</h2>
|
|
18
|
+
|
|
19
|
+
<form class="lg:grid lg:grid-cols-2 lg:gap-x-12 xl:gap-x-16" onsubmit="event.preventDefault(); handleCheckoutSubmit(event)">
|
|
20
|
+
<!-- Left Column - Contact & Payment -->
|
|
21
|
+
<div>
|
|
22
|
+
<!-- Contact Information -->
|
|
23
|
+
<div>
|
|
24
|
+
<h2 class="text-lg text-gray-900 dark:text-gray-100 font-medium">
|
|
25
|
+
Contact information
|
|
26
|
+
</h2>
|
|
27
|
+
|
|
28
|
+
<div class="mt-4">
|
|
29
|
+
<label for="email-address" class="block text-sm text-gray-700 dark:text-gray-300 font-medium">
|
|
30
|
+
Email address
|
|
31
|
+
</label>
|
|
32
|
+
<div class="mt-1">
|
|
33
|
+
<input
|
|
34
|
+
id="email-address"
|
|
35
|
+
type="email"
|
|
36
|
+
name="email-address"
|
|
37
|
+
autocomplete="email"
|
|
38
|
+
required
|
|
39
|
+
class="block w-full border border-gray-300 dark:border-gray-600 rounded-md p-2 shadow-sm bg-white dark:bg-blue-gray-700 text-gray-900 dark:text-gray-100 focus:border-indigo-500 dark:focus:border-indigo-400 sm:text-sm focus:ring-indigo-500 dark:focus:ring-indigo-400"
|
|
40
|
+
/>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<!-- Billing Information -->
|
|
46
|
+
<div class="mt-10 border-t border-gray-200 dark:border-gray-700 pt-10">
|
|
47
|
+
<h2 class="text-lg text-gray-900 dark:text-gray-100 font-medium">
|
|
48
|
+
Billing information
|
|
49
|
+
</h2>
|
|
50
|
+
|
|
51
|
+
<div class="mt-4 grid grid-cols-1 gap-y-6 sm:grid-cols-2 sm:gap-x-4">
|
|
52
|
+
<div class="sm:col-span-2">
|
|
53
|
+
<label for="card-name" class="block text-sm text-gray-700 dark:text-gray-300 font-medium">
|
|
54
|
+
Name on card
|
|
55
|
+
</label>
|
|
56
|
+
<div class="mt-1">
|
|
57
|
+
<input
|
|
58
|
+
type="text"
|
|
59
|
+
id="card-name"
|
|
60
|
+
name="card-name"
|
|
61
|
+
autocomplete="cc-name"
|
|
62
|
+
required
|
|
63
|
+
class="block w-full border border-gray-300 dark:border-gray-600 rounded-md p-2 shadow-sm bg-white dark:bg-blue-gray-700 text-gray-900 dark:text-gray-100 focus:border-indigo-500 sm:text-sm focus:ring-indigo-500"
|
|
64
|
+
/>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
|
|
68
|
+
<!-- Stripe Element Mount Point -->
|
|
69
|
+
<div class="sm:col-span-2">
|
|
70
|
+
<div id="payment-element" class="mt-2 border border-gray-300 dark:border-gray-600 rounded-md bg-white dark:bg-blue-gray-700 p-3"></div>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
|
|
75
|
+
<!-- Payment Type -->
|
|
76
|
+
<div class="mt-10 border-t border-gray-200 dark:border-gray-700 pt-10">
|
|
77
|
+
<h2 class="text-lg text-gray-900 dark:text-gray-100 font-medium">
|
|
78
|
+
Payment
|
|
79
|
+
</h2>
|
|
80
|
+
|
|
81
|
+
<fieldset class="mt-4">
|
|
82
|
+
<legend class="sr-only">Payment type</legend>
|
|
83
|
+
<div class="sm:flex sm:items-center space-y-4 sm:space-x-10 sm:space-y-0">
|
|
84
|
+
<div class="flex items-center">
|
|
85
|
+
<input
|
|
86
|
+
id="credit-card"
|
|
87
|
+
name="payment-type"
|
|
88
|
+
type="radio"
|
|
89
|
+
checked
|
|
90
|
+
class="h-4 w-4 border-gray-300 dark:border-gray-600 text-indigo-600 dark:text-indigo-400 focus:ring-indigo-500 dark:focus:ring-indigo-400"
|
|
91
|
+
/>
|
|
92
|
+
<label for="credit-card" class="ml-3 block text-sm text-gray-700 dark:text-gray-300 font-medium">
|
|
93
|
+
Credit card
|
|
94
|
+
</label>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
</fieldset>
|
|
98
|
+
</div>
|
|
99
|
+
</div>
|
|
100
|
+
|
|
101
|
+
<!-- Right Column - Order Summary -->
|
|
102
|
+
<div class="mt-10 lg:mt-0">
|
|
103
|
+
<h2 class="text-lg text-gray-900 dark:text-gray-100 font-medium">
|
|
104
|
+
Order summary
|
|
105
|
+
</h2>
|
|
106
|
+
|
|
107
|
+
<div class="mt-4 border border-gray-200 dark:border-gray-700 rounded-lg bg-white dark:bg-blue-gray-800 shadow-sm">
|
|
108
|
+
<h3 class="sr-only">Items in your cart</h3>
|
|
109
|
+
|
|
110
|
+
<!-- Product List -->
|
|
111
|
+
<ul role="list" class="divide-y divide-gray-200 dark:divide-gray-700">
|
|
112
|
+
@foreach(product in products)
|
|
113
|
+
<li class="flex px-4 py-6 sm:px-6">
|
|
114
|
+
<div class="flex-shrink-0">
|
|
115
|
+
@if(product.images)
|
|
116
|
+
<img src="{{ product.images }}" alt="{{ product.name }}" class="w-20 rounded-md" />
|
|
117
|
+
@else
|
|
118
|
+
<div class="w-20 h-20 bg-gray-200 dark:bg-gray-700 rounded-md flex items-center justify-center">
|
|
119
|
+
<svg class="h-8 w-8 text-gray-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
120
|
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z" />
|
|
121
|
+
</svg>
|
|
122
|
+
</div>
|
|
123
|
+
@endif
|
|
124
|
+
</div>
|
|
125
|
+
|
|
126
|
+
<div class="ml-6 flex flex-1 flex-col">
|
|
127
|
+
<div class="flex">
|
|
128
|
+
<div class="min-w-0 flex-1">
|
|
129
|
+
<h4 class="text-sm">
|
|
130
|
+
<a href="#" class="text-gray-700 dark:text-gray-300 font-medium hover:text-gray-800 dark:hover:text-gray-200">
|
|
131
|
+
{{ product.name }}
|
|
132
|
+
</a>
|
|
133
|
+
</h4>
|
|
134
|
+
</div>
|
|
135
|
+
|
|
136
|
+
@if(onRemoveProduct)
|
|
137
|
+
<div class="ml-4 flow-root flex-shrink-0">
|
|
138
|
+
<button
|
|
139
|
+
type="button"
|
|
140
|
+
class="flex items-center justify-center bg-white dark:bg-blue-gray-700 p-2.5 text-gray-400 dark:text-gray-500 -m-2.5 hover:text-gray-500 dark:hover:text-gray-400"
|
|
141
|
+
@click="handleRemoveProduct('{{ product.id }}')"
|
|
142
|
+
title="Remove"
|
|
143
|
+
>
|
|
144
|
+
<span class="sr-only">Remove</span>
|
|
145
|
+
<svg class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
|
|
146
|
+
<path fill-rule="evenodd" d="M8.75 1A2.75 2.75 0 0 0 6 3.75v.443c-.795.077-1.584.176-2.365.298a.75.75 0 1 0 .23 1.482l.149-.022.841 10.518A2.75 2.75 0 0 0 7.596 19h4.807a2.75 2.75 0 0 0 2.742-2.53l.841-10.52.149.023a.75.75 0 0 0 .23-1.482A41.03 41.03 0 0 0 14 4.193V3.75A2.75 2.75 0 0 0 11.25 1h-2.5ZM10 4c.84 0 1.673.025 2.5.075V3.75c0-.69-.56-1.25-1.25-1.25h-2.5c-.69 0-1.25.56-1.25 1.25v.325C8.327 4.025 9.16 4 10 4ZM8.58 7.72a.75.75 0 0 0-1.5.06l.3 7.5a.75.75 0 1 0 1.5-.06l-.3-7.5Zm4.34.06a.75.75 0 1 0-1.5-.06l-.3 7.5a.75.75 0 1 0 1.5.06l.3-7.5Z" clip-rule="evenodd" />
|
|
147
|
+
</svg>
|
|
148
|
+
</button>
|
|
149
|
+
</div>
|
|
150
|
+
@endif
|
|
151
|
+
</div>
|
|
152
|
+
|
|
153
|
+
<div class="flex flex-1 items-end justify-between pt-2">
|
|
154
|
+
<p class="mt-1 text-sm text-gray-900 dark:text-gray-100 font-medium">
|
|
155
|
+
${{ (product.price / 100).toFixed(2) }}
|
|
156
|
+
</p>
|
|
157
|
+
|
|
158
|
+
<div class="ml-4">
|
|
159
|
+
<label for="quantity-{{ product.id }}" class="sr-only">Quantity</label>
|
|
160
|
+
<select
|
|
161
|
+
id="quantity-{{ product.id }}"
|
|
162
|
+
name="quantity"
|
|
163
|
+
class="border border-gray-300 dark:border-gray-600 rounded-md text-left text-base text-gray-700 dark:text-gray-300 font-medium shadow-sm bg-white dark:bg-blue-gray-700 focus:border-indigo-500 sm:text-sm focus:outline-none focus:ring-1 focus:ring-indigo-500"
|
|
164
|
+
>
|
|
165
|
+
<option value="1" {{ (product.quantity || 1) === 1 ? 'selected' : '' }}>1</option>
|
|
166
|
+
<option value="2" {{ (product.quantity || 1) === 2 ? 'selected' : '' }}>2</option>
|
|
167
|
+
<option value="3" {{ (product.quantity || 1) === 3 ? 'selected' : '' }}>3</option>
|
|
168
|
+
<option value="4" {{ (product.quantity || 1) === 4 ? 'selected' : '' }}>4</option>
|
|
169
|
+
<option value="5" {{ (product.quantity || 1) === 5 ? 'selected' : '' }}>5</option>
|
|
170
|
+
<option value="6" {{ (product.quantity || 1) === 6 ? 'selected' : '' }}>6</option>
|
|
171
|
+
<option value="7" {{ (product.quantity || 1) === 7 ? 'selected' : '' }}>7</option>
|
|
172
|
+
<option value="8" {{ (product.quantity || 1) === 8 ? 'selected' : '' }}>8</option>
|
|
173
|
+
</select>
|
|
174
|
+
</div>
|
|
175
|
+
</div>
|
|
176
|
+
</div>
|
|
177
|
+
</li>
|
|
178
|
+
@endforeach
|
|
179
|
+
</ul>
|
|
180
|
+
|
|
181
|
+
<!-- Summary Totals -->
|
|
182
|
+
<dl class="border-t border-gray-200 dark:border-gray-700 px-4 py-6 space-y-6 sm:px-6">
|
|
183
|
+
<div class="flex items-center justify-between">
|
|
184
|
+
<dt class="text-sm text-gray-600 dark:text-gray-400">Subtotal</dt>
|
|
185
|
+
<dd class="text-sm text-gray-900 dark:text-gray-100 font-medium">
|
|
186
|
+
${{ (calculateSubtotal() / 100).toFixed(2) }}
|
|
187
|
+
</dd>
|
|
188
|
+
</div>
|
|
189
|
+
|
|
190
|
+
@if(shipping > 0)
|
|
191
|
+
<div class?: unknown) => unknown;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const value: unknown;
|
|
2
|
+
export declare const max: unknown;
|
|
3
|
+
export declare const variant: unknown;
|
|
4
|
+
export declare const size: unknown;
|
|
5
|
+
export declare const color: unknown;
|
|
6
|
+
export declare const showLabel: unknown;
|
|
7
|
+
export declare const indeterminate: unknown;
|
|
8
|
+
export declare const className: unknown;
|
|
9
|
+
export declare const containerClasses: unknown;
|
|
10
|
+
export declare const linearTrackClasses: unknown;
|
|
11
|
+
export declare const linearBarClasses: unknown;
|
|
12
|
+
export declare const labelClasses: unknown;
|
|
13
|
+
export declare const circularTrackColor: 'stroke-gray-200 dark:stroke-gray-700';
|
|
14
|
+
export declare const circularBarColor: unknown;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const checked: unknown;
|
|
2
|
+
export declare const onChange: () => unknown;
|
|
3
|
+
export declare const disabled: unknown;
|
|
4
|
+
export declare const size: unknown;
|
|
5
|
+
export declare const label: unknown;
|
|
6
|
+
export declare const description: unknown;
|
|
7
|
+
export declare const error: unknown;
|
|
8
|
+
export declare const required: unknown;
|
|
9
|
+
export declare const value: unknown;
|
|
10
|
+
export declare const name: unknown;
|
|
11
|
+
export declare const className: unknown;
|
|
12
|
+
export declare const radioClasses: unknown;
|
|
13
|
+
export declare const labelClasses: unknown;
|
|
14
|
+
export declare const descriptionClasses: unknown;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare function handleClick(): void;
|
|
2
|
+
export declare function handleFocus(): void;
|
|
3
|
+
export declare function handleBlur(): void;
|
|
4
|
+
export declare const value: unknown;
|
|
5
|
+
export declare const disabled: unknown;
|
|
6
|
+
export declare const className: unknown;
|
|
7
|
+
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 {}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const value: unknown;
|
|
2
|
+
export declare const onChange: () => unknown;
|
|
3
|
+
export declare const options: unknown;
|
|
4
|
+
export declare const placeholder: unknown;
|
|
5
|
+
export declare const disabled: unknown;
|
|
6
|
+
export declare const size: unknown;
|
|
7
|
+
export declare const error: unknown;
|
|
8
|
+
export declare const label: unknown;
|
|
9
|
+
export declare const helperText: unknown;
|
|
10
|
+
export declare const required: unknown;
|
|
11
|
+
export declare const className: unknown;
|
|
12
|
+
export declare const selectClasses: unknown;
|
|
13
|
+
export declare const labelClasses: unknown;
|
|
14
|
+
export declare const helperClasses: unknown;
|