@stacksjs/components 0.2.571 → 0.2.573

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 (172) hide show
  1. package/dist/components/CodeBlock.d.ts +35 -0
  2. package/dist/components/Footer.d.ts +12 -0
  3. package/dist/components/Hero.d.ts +7 -0
  4. package/dist/components/Installation.d.ts +9 -0
  5. package/dist/components/index.d.ts +4 -4
  6. package/dist/index.d.ts +4 -4
  7. package/dist/ui/accordion/Accordion.d.ts +22 -0
  8. package/dist/ui/accordion/AccordionItem.d.ts +11 -0
  9. package/dist/ui/accordion/index.d.ts +2 -2
  10. package/dist/ui/audio/Audio.d.ts +4 -0
  11. package/dist/ui/audio/index.d.ts +1 -1
  12. package/dist/ui/auth/Login.d.ts +30 -0
  13. package/dist/ui/auth/Signup.d.ts +18 -0
  14. package/dist/ui/auth/TwoFactorChallenge.d.ts +24 -0
  15. package/dist/ui/auth/index.d.ts +3 -3
  16. package/dist/ui/avatar/Avatar.d.ts +17 -0
  17. package/dist/ui/avatar/index.d.ts +1 -1
  18. package/dist/ui/badge/Badge.d.ts +42 -0
  19. package/dist/ui/badge/index.d.ts +1 -1
  20. package/dist/ui/breadcrumb/Breadcrumb.d.ts +13 -0
  21. package/dist/ui/breadcrumb/index.d.ts +1 -1
  22. package/dist/ui/button/Button.d.ts +103 -0
  23. package/dist/ui/button/index.d.ts +1 -1
  24. package/dist/ui/calendar/Calendar.d.ts +67 -0
  25. package/dist/ui/calendar/index.d.ts +1 -1
  26. package/dist/ui/card/Card.d.ts +14 -0
  27. package/dist/ui/card/index.d.ts +1 -1
  28. package/dist/ui/chat/ChatInbox.d.ts +15 -0
  29. package/dist/ui/chat/ChatLauncher.d.ts +8 -0
  30. package/dist/ui/chat/ChatMessage.d.ts +9 -0
  31. package/dist/ui/chat/ChatUnreadBadge.d.ts +5 -0
  32. package/dist/ui/chat/index.d.ts +4 -4
  33. package/dist/ui/checkbox/Checkbox.d.ts +53 -0
  34. package/dist/ui/checkbox/index.d.ts +1 -1
  35. package/dist/ui/combobox/Combobox.d.ts +40 -0
  36. package/dist/ui/combobox/ComboboxButton.d.ts +13 -0
  37. package/dist/ui/combobox/ComboboxInput.d.ts +9 -0
  38. package/dist/ui/combobox/ComboboxOption.d.ts +10 -0
  39. package/dist/ui/combobox/ComboboxOptions.d.ts +7 -0
  40. package/dist/ui/combobox/index.d.ts +5 -5
  41. package/dist/ui/command-palette/CommandPalette.d.ts +13 -0
  42. package/dist/ui/command-palette/CommandPaletteItem.d.ts +8 -0
  43. package/dist/ui/command-palette/index.d.ts +2 -2
  44. package/dist/ui/date-range-picker/DateRangePicker.d.ts +59 -0
  45. package/dist/ui/date-range-picker/index.d.ts +1 -1
  46. package/dist/ui/dialog/Dialog.d.ts +31 -0
  47. package/dist/ui/dialog/DialogBackdrop.d.ts +6 -0
  48. package/dist/ui/dialog/DialogDescription.d.ts +6 -0
  49. package/dist/ui/dialog/DialogPanel.d.ts +6 -0
  50. package/dist/ui/dialog/DialogTitle.d.ts +6 -0
  51. package/dist/ui/dialog/index.d.ts +5 -5
  52. package/dist/ui/drawer/Drawer.d.ts +90 -0
  53. package/dist/ui/drawer/index.d.ts +1 -1
  54. package/dist/ui/dropdown/Dropdown.d.ts +12 -0
  55. package/dist/ui/dropdown/DropdownButton.d.ts +8 -0
  56. package/dist/ui/dropdown/DropdownItem.d.ts +10 -0
  57. package/dist/ui/dropdown/DropdownItems.d.ts +7 -0
  58. package/dist/ui/dropdown/index.d.ts +4 -4
  59. package/dist/ui/empty-state/EmptyState.d.ts +33 -0
  60. package/dist/ui/empty-state/index.d.ts +1 -1
  61. package/dist/ui/form/Form.d.ts +31 -0
  62. package/dist/ui/form/index.d.ts +1 -1
  63. package/dist/ui/image/Image.d.ts +104 -0
  64. package/dist/ui/image/index.d.ts +1 -1
  65. package/dist/ui/input/EmailInput.d.ts +28 -0
  66. package/dist/ui/input/NumberInput.d.ts +83 -0
  67. package/dist/ui/input/PasswordInput.d.ts +84 -0
  68. package/dist/ui/input/SearchInput.d.ts +29 -0
  69. package/dist/ui/input/TextInput.d.ts +145 -0
  70. package/dist/ui/input/index.d.ts +17 -5
  71. package/dist/ui/listbox/Listbox.d.ts +30 -0
  72. package/dist/ui/listbox/ListboxButton.d.ts +8 -0
  73. package/dist/ui/listbox/ListboxLabel.d.ts +6 -0
  74. package/dist/ui/listbox/ListboxOption.d.ts +10 -0
  75. package/dist/ui/listbox/ListboxOptions.d.ts +7 -0
  76. package/dist/ui/listbox/index.d.ts +5 -5
  77. package/dist/ui/mobile/FilterChip.d.ts +35 -0
  78. package/dist/ui/mobile/FilterChips.d.ts +26 -0
  79. package/dist/ui/mobile/ListRow.d.ts +35 -0
  80. package/dist/ui/mobile/NavBar.d.ts +47 -0
  81. package/dist/ui/mobile/SectionCard.d.ts +38 -0
  82. package/dist/ui/mobile/TabBar.d.ts +31 -0
  83. package/dist/ui/mobile/TabBarItem.d.ts +41 -0
  84. package/dist/ui/mobile/index.d.ts +7 -7
  85. package/dist/ui/navigator/Navigator.d.ts +14 -0
  86. package/dist/ui/navigator/index.d.ts +1 -1
  87. package/dist/ui/notification/Notification.d.ts +22 -0
  88. package/dist/ui/notification/index.d.ts +1 -1
  89. package/dist/ui/pager/Pager.d.ts +48 -0
  90. package/dist/ui/pager/PagerDots.d.ts +22 -0
  91. package/dist/ui/pager/index.d.ts +2 -2
  92. package/dist/ui/pagination/Pagination.d.ts +19 -0
  93. package/dist/ui/pagination/index.d.ts +1 -1
  94. package/dist/ui/payment/Checkout.d.ts +13 -0
  95. package/dist/ui/payment/DefaultPaymentMethod.d.ts +8 -0
  96. package/dist/ui/payment/PaymentMethods.d.ts +23 -0
  97. package/dist/ui/payment/SubscriptionCheckout.d.ts +28 -0
  98. package/dist/ui/payment/index.d.ts +4 -4
  99. package/dist/ui/popover/Popover.d.ts +12 -0
  100. package/dist/ui/popover/PopoverButton.d.ts +8 -0
  101. package/dist/ui/popover/PopoverPanel.d.ts +8 -0
  102. package/dist/ui/popover/index.d.ts +3 -3
  103. package/dist/ui/portal/Portal.d.ts +7 -0
  104. package/dist/ui/portal/index.d.ts +1 -1
  105. package/dist/ui/progress/Progress.d.ts +32 -0
  106. package/dist/ui/progress/index.d.ts +1 -1
  107. package/dist/ui/radio/Radio.d.ts +51 -0
  108. package/dist/ui/radio/index.d.ts +1 -1
  109. package/dist/ui/radio-group/RadioGroup.d.ts +47 -0
  110. package/dist/ui/radio-group/RadioGroupDescription.d.ts +6 -0
  111. package/dist/ui/radio-group/RadioGroupLabel.d.ts +6 -0
  112. package/dist/ui/radio-group/RadioGroupOption.d.ts +10 -0
  113. package/dist/ui/radio-group/index.d.ts +4 -4
  114. package/dist/ui/select/Select.d.ts +93 -0
  115. package/dist/ui/select/index.d.ts +1 -1
  116. package/dist/ui/sidebar/Sidebar.d.ts +70 -0
  117. package/dist/ui/sidebar/SidebarFooter.d.ts +21 -0
  118. package/dist/ui/sidebar/SidebarHeader.d.ts +114 -0
  119. package/dist/ui/sidebar/SidebarItem.d.ts +37 -0
  120. package/dist/ui/sidebar/SidebarPinned.d.ts +27 -0
  121. package/dist/ui/sidebar/SidebarSection.d.ts +35 -0
  122. package/dist/ui/sidebar/SidebarSpace.d.ts +44 -0
  123. package/dist/ui/sidebar/SidebarSpaceSwitcher.d.ts +30 -0
  124. package/dist/ui/sidebar/SidebarSpaces.d.ts +38 -0
  125. package/dist/ui/sidebar/index.d.ts +9 -9
  126. package/dist/ui/sidebar/themes.d.ts +39 -5
  127. package/dist/ui/skeleton/Skeleton.d.ts +13 -0
  128. package/dist/ui/skeleton/index.d.ts +1 -1
  129. package/dist/ui/spinner/Spinner.d.ts +13 -0
  130. package/dist/ui/spinner/index.d.ts +1 -1
  131. package/dist/ui/stepper/Stepper.d.ts +8 -0
  132. package/dist/ui/stepper/StepperStep.d.ts +17 -0
  133. package/dist/ui/stepper/index.d.ts +2 -2
  134. package/dist/ui/switch/Switch.d.ts +75 -0
  135. package/dist/ui/switch/index.d.ts +1 -1
  136. package/dist/ui/table/Table.d.ts +20 -0
  137. package/dist/ui/table/TableBody.d.ts +5 -0
  138. package/dist/ui/table/TableCell.d.ts +5 -0
  139. package/dist/ui/table/TableHead.d.ts +5 -0
  140. package/dist/ui/table/TableHeader.d.ts +45 -0
  141. package/dist/ui/table/TableRow.d.ts +6 -0
  142. package/dist/ui/table/index.d.ts +6 -6
  143. package/dist/ui/tabs/Tab.d.ts +19 -0
  144. package/dist/ui/tabs/TabList.d.ts +34 -0
  145. package/dist/ui/tabs/TabPanel.d.ts +13 -0
  146. package/dist/ui/tabs/Tabs.d.ts +30 -0
  147. package/dist/ui/tabs/index.d.ts +4 -4
  148. package/dist/ui/teleport/Teleport.d.ts +8 -0
  149. package/dist/ui/teleport/index.d.ts +1 -1
  150. package/dist/ui/textarea/Textarea.d.ts +75 -0
  151. package/dist/ui/textarea/index.d.ts +1 -1
  152. package/dist/ui/theme-toggle/ThemeToggle.d.ts +53 -0
  153. package/dist/ui/theme-toggle/index.d.ts +1 -1
  154. package/dist/ui/tooltip/Tooltip.d.ts +39 -0
  155. package/dist/ui/tooltip/index.d.ts +1 -1
  156. package/dist/ui/transition/Transition.d.ts +191 -0
  157. package/dist/ui/transition/index.d.ts +1 -1
  158. package/dist/ui/video/Video.d.ts +61 -0
  159. package/dist/ui/video/index.d.ts +1 -1
  160. package/dist/ui/virtual-list/VirtualList.d.ts +12 -0
  161. package/dist/ui/virtual-list/index.d.ts +1 -1
  162. package/dist/ui/virtual-table/VirtualTable.d.ts +21 -0
  163. package/dist/ui/virtual-table/index.d.ts +1 -1
  164. package/dist/utils/accessibility.d.ts +15 -0
  165. package/dist/utils/error-handling.d.ts +15 -2
  166. package/dist/utils/i18n.d.ts +48 -65
  167. package/dist/utils/keep-alive.d.ts +27 -3
  168. package/dist/utils/lazy-loading.d.ts +5 -1
  169. package/dist/utils/prop-validation.d.ts +3 -3
  170. package/dist/utils/tooltip-position.d.ts +7 -1
  171. package/package.json +4 -7
  172. package/src/utils/animation/helpers.ts +5 -5
@@ -0,0 +1,26 @@
1
+ import type { DefineComponent } from '@stacksjs/stx';
2
+ declare const __dtsx_component__: __DtsxStxComponentType;
3
+ /**
4
+ * The row of pills under a screen title.
5
+ *
6
+ * Two kinds of chip live in the same row and they are not the same control. A
7
+ * **toggle** is on or off — "Unread". A **menu** opens something and carries a
8
+ * chevron — "Repository". Rendering both as bare pills, which is the tempting
9
+ * shortcut, means a reader cannot tell which of them will change the list in
10
+ * place and which will cover the screen with a picker.
11
+ *
12
+ * `chips` is `{ label, href, active?, menu?, count? }`.
13
+ */
14
+ export declare const chips: unknown;
15
+ export declare const className: unknown;
16
+ /*
17
+ * Scrolls horizontally, and says so by bleeding past the gutter.
18
+ *
19
+ * Filters overflow a phone's width the moment there are four of them with real
20
+ * words in. The negative margin plus matching padding lets the row run to both
21
+ * screen edges while its first chip still lines up with the title above it —
22
+ * a row that stops at the gutter looks complete when it is not.
23
+ */
24
+ export declare const rowClasses: unknown;
25
+ declare type __DtsxStxComponentType = DefineComponent<{ chips?: unknown[], className?: string }>;
26
+ export default __dtsx_component__;
@@ -0,0 +1,35 @@
1
+ import type { DefineComponent } from '@stacksjs/stx';
2
+ declare const __dtsx_component__: __DtsxStxComponentType;
3
+ /**
4
+ * The row every mobile list is made of.
5
+ *
6
+ * Read off what a dense list actually has to carry: a leading mark, a line of
7
+ * context above the title, the title itself over two lines, a line of detail
8
+ * under it, a timestamp at the top right, and a count at the bottom right.
9
+ * Six slots, because a list that can only do three ends up with applications
10
+ * inventing a seventh layout per screen.
11
+ *
12
+ * Everything except `title` is optional and nothing reserves space when absent,
13
+ * so the same component renders a two-line notification and a five-line issue
14
+ * without either looking like a version of the other.
15
+ */
16
+ export declare const title: unknown;
17
+ /** Small line above the title — a repository, an owner, a path. */
18
+ export declare const eyebrow: unknown;
19
+ /** Small line below the title — an actor, a branch, a summary. */
20
+ export declare const detail: unknown;
21
+ /** Top right. A relative time, usually. */
22
+ export declare const meta: unknown;
23
+ /** Bottom right. A comment count, a diff stat, a status. */
24
+ export declare const trailing: unknown;
25
+ /** Inline SVG for the leading column. */
26
+ export declare const icon: unknown;
27
+ /** Draws the unread dot in the leading column, under the icon. */
28
+ export declare const unread: ReturnType<typeof $bool>;
29
+ export declare const href: unknown;
30
+ export declare const className: unknown;
31
+ export declare const interactive: boolean;
32
+ export declare const tag: unknown;
33
+ export declare const rowClasses: unknown;
34
+ declare type __DtsxStxComponentType = DefineComponent<{ title?: string, eyebrow?: string, detail?: string, meta?: string, trailing?: string, icon?: string, unread?: unknown, href?: string, className?: string }>;
35
+ export default __dtsx_component__;
@@ -0,0 +1,47 @@
1
+ import type { DefineComponent } from '@stacksjs/stx';
2
+ /*
3
+ * Whether the router should own this link.
4
+ *
5
+ * The SPA router intercepts `[data-stx-link]` and nothing else, so a plain
6
+ * `<a href>` here was a full document load: the runtime rebooted, every signal
7
+ * and store was discarded, and the screen flashed white. On a phone this is
8
+ * the primary navigation control, so the app's main interaction was its worst
9
+ * one - the single largest reason a wrapped build feels like a browser rather
10
+ * than an app. stacksjs/stx#1988
11
+ *
12
+ * An absolute URL, a scheme (mailto:, tel:), a protocol-relative URL and a
13
+ * bare fragment are left to the browser: the router does not handle those, and
14
+ * claiming them would break a tab that points off-site.
15
+ */
16
+ declare function routerOwns(url: unknown): boolean;
17
+ declare const __dtsx_component__: __DtsxStxComponentType;
18
+ /**
19
+ * The top of a screen: a row of controls, then a large title under it.
20
+ *
21
+ * Two rows rather than one, because they answer different questions. The
22
+ * control row is where back and the screen's actions live and it stays the same
23
+ * height everywhere; the title is display-sized and belongs to the content, so
24
+ * it scrolls away while the controls do not.
25
+ *
26
+ * `title` may be empty — a screen pushed onto a stack usually wants its name in
27
+ * the small centre slot beside the back button instead, which is what
28
+ * `compactTitle` is.
29
+ */
30
+ export declare const title: unknown;
31
+ export declare const compactTitle: unknown;
32
+ export declare const backHref: unknown;
33
+ /** Markup for the right-hand side: search, add, an avatar. */
34
+ export declare const actions: unknown;
35
+ export declare const className: unknown;
36
+ export declare const hasControls: boolean;
37
+ /*
38
+ * The safe-area inset is padding on the header itself.
39
+ *
40
+ * Not a spacer element above it: on a notched device the status bar sits over
41
+ * the top of the page, and a header that starts below a fixed-height spacer is
42
+ * right on exactly one device.
43
+ */
44
+ export declare const headerStyle: 'padding-top: max(env(safe-area-inset-top, 0px), 12px);';
45
+ export declare const backRouterOwned: ReturnType<typeof routerOwns>;
46
+ declare type __DtsxStxComponentType = DefineComponent<{ title?: string, compactTitle?: string, backHref?: string, actions?: string, className?: string }>;
47
+ export default __dtsx_component__;
@@ -0,0 +1,38 @@
1
+ import type { DefineComponent } from '@stacksjs/stx';
2
+ /*
3
+ * Whether the router should own this link.
4
+ *
5
+ * The SPA router intercepts `[data-stx-link]` and nothing else, so a plain
6
+ * `<a href>` here was a full document load: the runtime rebooted, every signal
7
+ * and store was discarded, and the screen flashed white. On a phone this is
8
+ * the primary navigation control, so the app's main interaction was its worst
9
+ * one - the single largest reason a wrapped build feels like a browser rather
10
+ * than an app. stacksjs/stx#1988
11
+ *
12
+ * An absolute URL, a scheme (mailto:, tel:), a protocol-relative URL and a
13
+ * bare fragment are left to the browser: the router does not handle those, and
14
+ * claiming them would break a tab that points off-site.
15
+ */
16
+ declare function routerOwns(url: unknown): boolean;
17
+ declare const __dtsx_component__: __DtsxStxComponentType;
18
+ /**
19
+ * A titled group of rows on a rounded card — the "My Work" pattern.
20
+ *
21
+ * The title sits *outside* the card. That is the whole convention: the card is
22
+ * the group, the heading names it, and putting the heading inside makes the
23
+ * first row look like a header and every subsequent group look like a
24
+ * continuation of the one above it.
25
+ *
26
+ * Dividers are drawn by the card rather than by the rows, via
27
+ * `divide-y`, so a row does not have to know whether it is last — which is how
28
+ * a trailing hairline ends up under the final item of every list.
29
+ */
30
+ export declare const title: unknown;
31
+ /** Right-aligned control beside the title — "See all", a menu glyph. */
32
+ export declare const action: unknown;
33
+ export declare const actionHref: unknown;
34
+ export declare const className: unknown;
35
+ export declare const cardClasses: unknown;
36
+ export declare const actionRouterOwned: ReturnType<typeof routerOwns>;
37
+ declare type __DtsxStxComponentType = DefineComponent<{ title?: string, action?: string, actionHref?: string, className?: string }>;
38
+ export default __dtsx_component__;
@@ -0,0 +1,31 @@
1
+ import type { DefineComponent } from '@stacksjs/stx';
2
+ declare const __dtsx_component__: __DtsxStxComponentType;
3
+ /**
4
+ * The bottom tab bar — the one control a phone app is navigated by.
5
+ *
6
+ * Floating rather than flush: a rounded bar inset from the window edges with
7
+ * the content scrolling *under* it, which is what every current iOS app does
8
+ * and what the safe area at the bottom of a modern iPhone is shaped for. A bar
9
+ * pinned flush to the bottom either eats the home indicator or leaves a band of
10
+ * dead colour beneath itself.
11
+ *
12
+ * `items` is the whole bar. Each is `{ label, href, icon, active?, badge? }`,
13
+ * where `icon` is inline SVG or any markup — the bar does not own an icon set,
14
+ * because an application's icons are its own and a component that ships them
15
+ * makes every consumer look like the component.
16
+ */
17
+ export declare const items: unknown;
18
+ export declare const className: unknown;
19
+ /**
20
+ * `env(safe-area-inset-bottom)` with a floor, not instead of one.
21
+ *
22
+ * On a device with a home indicator the inset is real and the bar must clear
23
+ * it. On one without — an SE, a simulator in a small window, a desktop browser
24
+ * looking at the mobile layout — the inset is `0px` and a bar with no floor
25
+ * sits on the very edge of the screen. `max()` is the only spelling that gets
26
+ * both right.
27
+ */
28
+ export declare const barStyle: 'bottom: max(env(safe-area-inset-bottom, 0px), 12px);';
29
+ export declare const barClasses: unknown;
30
+ declare type __DtsxStxComponentType = DefineComponent<{ items?: unknown[], className?: string }>;
31
+ export default __dtsx_component__;
@@ -0,0 +1,41 @@
1
+ import type { DefineComponent } from '@stacksjs/stx';
2
+ /*
3
+ * Whether the router should own this link.
4
+ *
5
+ * The SPA router intercepts `[data-stx-link]` and nothing else, so a plain
6
+ * `<a href>` here was a full document load: the runtime rebooted, every signal
7
+ * and store was discarded, and the screen flashed white. On a phone this is
8
+ * the primary navigation control, so the app's main interaction was its worst
9
+ * one - the single largest reason a wrapped build feels like a browser rather
10
+ * than an app. stacksjs/stx#1988
11
+ *
12
+ * An absolute URL, a scheme (mailto:, tel:), a protocol-relative URL and a
13
+ * bare fragment are left to the browser: the router does not handle those, and
14
+ * claiming them would break a tab that points off-site.
15
+ */
16
+ declare function routerOwns(url: unknown): boolean;
17
+ declare const __dtsx_component__: __DtsxStxComponentType;
18
+ /**
19
+ * One destination in the bottom bar.
20
+ *
21
+ * Icon over label, and the label always present. Icon-only bars test well with
22
+ * the people who designed them and badly with everyone else: a glyph is only
23
+ * unambiguous once you already know what the app calls that screen.
24
+ */
25
+ export declare const label: unknown;
26
+ export declare const href: unknown;
27
+ export declare const icon: unknown;
28
+ export declare const active: ReturnType<typeof $bool>;
29
+ /** A count, or any short string. Zero and empty are not rendered. */
30
+ export declare const badge: unknown;
31
+ export declare const hasBadge: boolean;
32
+ export declare const routerOwned: ReturnType<typeof routerOwns>;
33
+ /*
34
+ * The active state is a filled pill behind the item rather than a colour
35
+ * change alone. Colour alone is the one distinction that disappears for the
36
+ * ~8% of men with a red-green deficiency and for anyone in bright sunlight,
37
+ * which is most of the time a phone is used outdoors.
38
+ */
39
+ export declare const itemClasses: unknown;
40
+ declare type __DtsxStxComponentType = DefineComponent<{ label?: string, href?: string, icon?: string, active?: unknown, badge?: string }>;
41
+ export default __dtsx_component__;
@@ -55,10 +55,10 @@ export declare interface NavBarProps {
55
55
  actions?: string
56
56
  className?: string
57
57
  }
58
- export { default as FilterChip } from './FilterChip.stx';
59
- export { default as FilterChips } from './FilterChips.stx';
60
- export { default as ListRow } from './ListRow.stx';
61
- export { default as NavBar } from './NavBar.stx';
62
- export { default as SectionCard } from './SectionCard.stx';
63
- export { default as TabBar } from './TabBar.stx';
64
- export { default as TabBarItem } from './TabBarItem.stx';
58
+ export { default as FilterChip } from './FilterChip';
59
+ export { default as FilterChips } from './FilterChips';
60
+ export { default as ListRow } from './ListRow';
61
+ export { default as NavBar } from './NavBar';
62
+ export { default as SectionCard } from './SectionCard';
63
+ export { default as TabBar } from './TabBar';
64
+ export { default as TabBarItem } from './TabBarItem';
@@ -0,0 +1,14 @@
1
+ import type { DefineComponent } from '@stacksjs/stx';
2
+ declare const __dtsx_component__: __DtsxStxComponentType;
3
+ export declare const items: unknown;
4
+ export declare const active: unknown;
5
+ export declare const orientation: unknown;
6
+ export declare const variant: unknown;
7
+ export declare const size: unknown;
8
+ export declare const className: unknown;
9
+ export declare const containerClasses: unknown;
10
+ export declare const gapClasses: boolean;
11
+ declare const initialActive: {};
12
+ declare const activeKey: ReturnType<typeof state>;
13
+ declare type __DtsxStxComponentType = DefineComponent<{ items?: unknown[], active?: string, orientation?: string, variant?: string, size?: string, className?: string }> & { readonly __stxExposed?: { activeKey: typeof activeKey } }
14
+ export default __dtsx_component__;
@@ -15,4 +15,4 @@ export declare interface NavigatorProps {
15
15
  onNavigate?: (item: NavigatorItem) => void
16
16
  className?: string
17
17
  }
18
- export { default as Navigator } from './Navigator.stx';
18
+ export { default as Navigator } from './Navigator';
@@ -0,0 +1,22 @@
1
+ import type { DefineComponent } from '@stacksjs/stx';
2
+ declare function close(): void;
3
+ declare function open(opts: unknown): void;
4
+ declare const __dtsx_component__: __DtsxStxComponentType;
5
+ // Initial defaults captured at render time. The client script wraps these
6
+ // in signals so consumers can mutate them after mount (fetch-then-toast,
7
+ // auto-dismiss, etc.). See stacksjs/stx#1692.
8
+ export declare const initialShow: unknown;
9
+ export declare const initialTitle: unknown;
10
+ export declare const initialMessage: unknown;
11
+ export declare const initialType: unknown;
12
+ export declare const initialPosition: unknown;
13
+ export declare const initialDuration: unknown;
14
+ export declare const className: unknown;
15
+ declare const isVisible: unknown;
16
+ declare const title: unknown;
17
+ declare const message: unknown;
18
+ declare const type: unknown;
19
+ declare const position: unknown;
20
+ declare const duration: unknown;
21
+ declare type __DtsxStxComponentType = DefineComponent<{ show?: unknown, title?: string, message?: string, type?: string, position?: string, duration?: number, className?: string }> & { readonly __stxExposed?: { open: typeof open, close: typeof close, isVisible: typeof isVisible, title: typeof title, message: typeof message, type: typeof type, position: typeof position, duration: typeof duration } }
22
+ export default __dtsx_component__;
@@ -8,4 +8,4 @@ export declare interface NotificationProps {
8
8
  onClose?: () => void
9
9
  className?: string
10
10
  }
11
- export { default as Notification } from './Notification.stx';
11
+ export { default as Notification } from './Notification';
@@ -0,0 +1,48 @@
1
+ import type { DefineComponent } from '@stacksjs/stx';
2
+ /** Moves to page `i` (clamped), as the page's own buttons do. */
3
+ declare function go(i: unknown): undefined;
4
+ declare function next(): void;
5
+ declare function prev(): void;
6
+ declare const __dtsx_component__: __DtsxStxComponentType;
7
+ /*
8
+ * A row of full-width pages you swipe or step through: the first-run tour,
9
+ * an onboarding questionnaire, a gallery of screenshots.
10
+ *
11
+ * The pages are the slot's elements, laid side by side in a native
12
+ * scroll-snap track, so a swipe is the browser's own (momentum, rubber band,
13
+ * the system's reduced-motion setting) and costs no script per frame. The
14
+ * page shown is a `v-model:index`, or `:index` with `@change`, which the page
15
+ * moves with its own buttons; Pager scrolls to follow and reports a swipe back.
16
+ *
17
+ * <Pager v-model:index="step" label="Welcome tour" dotsLabel="Tour pages">
18
+ * <section>…</section>
19
+ * <section :for="slide in slides" :key="slide.id">…</section>
20
+ * </Pager>
21
+ * <button @click="step.set(step() + 1)">Next</button>
22
+ *
23
+ * `swipe="false"` keeps the pages but leaves moving to the page's buttons: a
24
+ * questionnaire whose next page waits on an answer. `dots="false"` drops the
25
+ * built-in dots for a `<PagerDots>` placed elsewhere.
26
+ *
27
+ * Accessibility follows the APG carousel pattern: a named region with
28
+ * `aria-roledescription="carousel"`, each page a "slide" group labelled
29
+ * "2 of 5", pages off screen inert, and the arrow keys (outside a field)
30
+ * stepping between them.
31
+ */
32
+ export declare const index: unknown;
33
+ export declare const label: unknown;
34
+ export declare const swipe: unknown;
35
+ export declare const dots: unknown;
36
+ export declare const dotsLabel: unknown;
37
+ export declare const slideLabel: unknown;
38
+ export declare const goToLabel: unknown;
39
+ export declare const className: unknown;
40
+ export declare const trackClass: unknown;
41
+ export declare const dotsClass: unknown;
42
+ export declare const rootClasses: unknown;
43
+ export declare const trackClasses: unknown;
44
+ export declare const dotRowClasses: unknown;
45
+ declare const selected: ReturnType<typeof useModel>;
46
+ declare const count: unknown;
47
+ declare type __DtsxStxComponentType = DefineComponent<{ index?: unknown, label?: string, swipe?: unknown, dots?: unknown, dotsLabel?: string, slideLabel?: string, goToLabel?: string, className?: string, trackClass?: string, dotsClass?: string }> & { readonly __stxExposed?: { selected: typeof selected, count: typeof count, go: typeof go, next: typeof next, prev: typeof prev } }
48
+ export default __dtsx_component__;
@@ -0,0 +1,22 @@
1
+ import type { DefineComponent } from '@stacksjs/stx';
2
+ declare function go(i: unknown): undefined;
3
+ declare const __dtsx_component__: __DtsxStxComponentType;
4
+ /*
5
+ * A pager's dots, placed wherever the page wants them: above a tour's
6
+ * "Next" button rather than under the pages, where <Pager> draws its own.
7
+ *
8
+ * <Pager v-model:index="step" dots="false">…</Pager>
9
+ * <PagerDots v-model:index="step" :count="slides.length" label="Tour pages" />
10
+ *
11
+ * The current page is a wider pill; each dot is a button that moves there.
12
+ * Colour comes from the text colour (`className="text-white"`).
13
+ */
14
+ export declare const index: unknown;
15
+ export declare const count: unknown;
16
+ export declare const label: unknown;
17
+ export declare const goToLabel: unknown;
18
+ export declare const className: unknown;
19
+ export declare const rowClasses: unknown;
20
+ declare const selected: ReturnType<typeof useModel>;
21
+ declare type __DtsxStxComponentType = DefineComponent<{ index?: unknown, count?: unknown, label?: string, goToLabel?: string, className?: string }> & { readonly __stxExposed?: { selected: typeof selected, go: typeof go } }
22
+ export default __dtsx_component__;
@@ -17,5 +17,5 @@ export declare interface PagerDotsProps {
17
17
  goToLabel?: string
18
18
  className?: string
19
19
  }
20
- export { default as Pager } from './Pager.stx';
21
- export { default as PagerDots } from './PagerDots.stx';
20
+ export { default as Pager } from './Pager';
21
+ export { default as PagerDots } from './PagerDots';
@@ -0,0 +1,19 @@
1
+ import type { DefineComponent } from '@stacksjs/stx';
2
+ declare function goToPage(target: unknown): void;
3
+ declare const __dtsx_component__: __DtsxStxComponentType;
4
+ export declare const currentPage: unknown;
5
+ export declare const totalPages: unknown;
6
+ export declare const siblingCount: unknown;
7
+ export declare const showFirstLast: unknown;
8
+ export declare const showPrevNext: unknown;
9
+ export declare const className: unknown;
10
+ export declare const paginationClasses: unknown;
11
+ export declare const buttonClasses: unknown;
12
+ export declare const activeButtonClasses: unknown;
13
+ export declare const ellipsisClasses: unknown;
14
+ export declare const iconClasses: unknown;
15
+ // Reactive prop binding — parent can drive `current-page` via signals
16
+ // (useful for URL-driven pagination via useSearchParams). See #1704.
17
+ declare const page: unknown;
18
+ declare type __DtsxStxComponentType = DefineComponent<{ currentPage?: unknown, totalPages?: unknown, siblingCount?: unknown, showFirstLast?: unknown, showPrevNext?: unknown, className?: string }> & { readonly __stxExposed?: { page: typeof page, goToPage: typeof goToPage } }
19
+ export default __dtsx_component__;
@@ -7,4 +7,4 @@ export declare interface PaginationProps {
7
7
  onChange?: (page: number) => void
8
8
  className?: string
9
9
  }
10
- export { default as Pagination } from './Pagination.stx';
10
+ export { default as Pagination } from './Pagination';
@@ -0,0 +1,13 @@
1
+ import type { DefineComponent } from '@stacksjs/stx';
2
+ declare const __dtsx_component__: __DtsxStxComponentType;
3
+ export declare const products: unknown;
4
+ export declare const mode: unknown;
5
+ export declare const stripePublicKey: unknown;
6
+ export declare const apiUrl: unknown;
7
+ export declare const shipping: unknown;
8
+ export declare const taxes: unknown;
9
+ export declare const className: unknown;
10
+ export declare const isSubscription: boolean;
11
+ export declare const isOneTime: boolean;
12
+ declare type __DtsxStxComponentType = DefineComponent<{ products?: unknown[], mode?: string, stripePublicKey?: string, apiUrl?: string, shipping?: unknown, taxes?: unknown, className?: string }>;
13
+ export default __dtsx_component__;
@@ -0,0 +1,8 @@
1
+ import type { DefineComponent } from '@stacksjs/stx';
2
+ declare const __dtsx_component__: __DtsxStxComponentType;
3
+ export declare const paymentMethod: unknown;
4
+ export declare const isLoading: ReturnType<typeof $bool>;
5
+ export declare const className: unknown;
6
+ export declare const containerClasses: unknown;
7
+ declare type __DtsxStxComponentType = DefineComponent<{ paymentMethod?: unknown, isLoading?: unknown, className?: string }>;
8
+ export default __dtsx_component__;
@@ -0,0 +1,23 @@
1
+ import type { DefineComponent } from '@stacksjs/stx';
2
+ declare const __dtsx_component__: __DtsxStxComponentType;
3
+ export declare const paymentMethods: unknown;
4
+ export declare const isLoading: ReturnType<typeof $bool>;
5
+ export declare const showMakeDefault: unknown;
6
+ export declare const showDelete: unknown;
7
+ export declare const className: unknown;
8
+ /** @defaultValue `{ visa: '💳', mastercard: '💳', amex: '💳', discover: '💳', default: '💳' }` */
9
+ export declare const brandIcons: {
10
+ /** @defaultValue '💳' */
11
+ visa: string;
12
+ /** @defaultValue '💳' */
13
+ mastercard: string;
14
+ /** @defaultValue '💳' */
15
+ amex: string;
16
+ /** @defaultValue '💳' */
17
+ discover: string;
18
+ /** @defaultValue '💳' */
19
+ default: string
20
+ };
21
+ export declare const containerClasses: unknown;
22
+ declare type __DtsxStxComponentType = DefineComponent<{ paymentMethods?: unknown[], isLoading?: unknown, showMakeDefault?: unknown, showDelete?: unknown, className?: string }>;
23
+ export default __dtsx_component__;
@@ -0,0 +1,28 @@
1
+ import type { DefineComponent } from '@stacksjs/stx';
2
+ declare const __dtsx_component__: __DtsxStxComponentType;
3
+ export declare const products: unknown;
4
+ export declare const stripePublicKey: unknown;
5
+ export declare const apiUrl: unknown;
6
+ export declare const showRemoveProduct: unknown;
7
+ export declare const shipping: unknown;
8
+ export declare const taxes: unknown;
9
+ export declare const className: unknown;
10
+ export declare const subtotal: ReturnType<typeof products.reduce>;
11
+ export declare const total: unknown;
12
+ /*
13
+ * Field ids unique to this instance.
14
+ *
15
+ * `email-address`, `card-name`, `credit-card` and `payment-element` were
16
+ * generic enough to collide with the host app's own ids, which breaks
17
+ * getElementById and `<label for>` for both. `name` stays generic: it is the
18
+ * key the form submits under and what autocomplete reads.
19
+ *
20
+ * `payment-element` matters most of the three, because it is not only a label
21
+ * target -- Stripe mounts into it BY SELECTOR (`#payment-element` below), so a
22
+ * second element with that id anywhere on the page could take the card form.
23
+ * Both sides read the same prefix, so they cannot drift apart.
24
+ */
25
+ export declare const fieldPrefix: unknown;
26
+ export declare const containerClasses: unknown;
27
+ declare type __DtsxStxComponentType = DefineComponent<{ products?: unknown[], stripePublicKey?: string, apiUrl?: string, showRemoveProduct?: unknown, shipping?: unknown, taxes?: unknown, className?: string, id?: string }>;
28
+ export default __dtsx_component__;
@@ -47,7 +47,7 @@ export declare interface CheckoutProps {
47
47
  taxes?: number
48
48
  className?: string
49
49
  }
50
- export { default as Checkout } from './Checkout.stx';
51
- export { default as DefaultPaymentMethod } from './DefaultPaymentMethod.stx';
52
- export { default as PaymentMethods } from './PaymentMethods.stx';
53
- export { default as SubscriptionCheckout } from './SubscriptionCheckout.stx';
50
+ export { default as Checkout } from './Checkout';
51
+ export { default as DefaultPaymentMethod } from './DefaultPaymentMethod';
52
+ export { default as PaymentMethods } from './PaymentMethods';
53
+ export { default as SubscriptionCheckout } from './SubscriptionCheckout';
@@ -0,0 +1,12 @@
1
+ import type { DefineComponent } from '@stacksjs/stx';
2
+ declare function open(): void;
3
+ declare function close(): void;
4
+ declare function toggle(): void;
5
+ declare const __dtsx_component__: __DtsxStxComponentType;
6
+ export declare const className: unknown;
7
+ export declare const as: unknown;
8
+ export declare const popoverClasses: unknown;
9
+ export declare const popoverInstanceId: unknown;
10
+ declare const isOpen: ReturnType<typeof state>;
11
+ declare type __DtsxStxComponentType = DefineComponent<{ className?: string, as?: string }> & { readonly __stxExposed?: { isOpen: typeof isOpen, toggle: typeof toggle, open: typeof open, close: typeof close } }
12
+ export default __dtsx_component__;
@@ -0,0 +1,8 @@
1
+ import type { DefineComponent } from '@stacksjs/stx';
2
+ declare const __dtsx_component__: __DtsxStxComponentType;
3
+ export declare const className: unknown;
4
+ export declare const as: unknown;
5
+ export declare const disabled: ReturnType<typeof $bool>;
6
+ export declare const buttonClasses: unknown;
7
+ declare type __DtsxStxComponentType = DefineComponent<{ className?: string, as?: string, disabled?: unknown }>;
8
+ export default __dtsx_component__;
@@ -0,0 +1,8 @@
1
+ import type { DefineComponent } from '@stacksjs/stx';
2
+ declare const __dtsx_component__: __DtsxStxComponentType;
3
+ export declare const className: unknown;
4
+ export declare const as: unknown;
5
+ export declare const position: unknown;
6
+ export declare const panelClasses: unknown;
7
+ declare type __DtsxStxComponentType = DefineComponent<{ className?: string, as?: string, position?: string }>;
8
+ export default __dtsx_component__;
@@ -14,6 +14,6 @@ export declare interface PopoverPanelProps {
14
14
  static?: boolean
15
15
  position?: 'top' | 'bottom' | 'left' | 'right'
16
16
  }
17
- export { default as Popover } from './Popover.stx';
18
- export { default as PopoverButton } from './PopoverButton.stx';
19
- export { default as PopoverPanel } from './PopoverPanel.stx';
17
+ export { default as Popover } from './Popover';
18
+ export { default as PopoverButton } from './PopoverButton';
19
+ export { default as PopoverPanel } from './PopoverPanel';
@@ -0,0 +1,7 @@
1
+ import type { DefineComponent } from '@stacksjs/stx';
2
+ declare const __dtsx_component__: __DtsxStxComponentType;
3
+ export declare const target: unknown;
4
+ export declare const disabled: ReturnType<typeof $bool>;
5
+ export declare const portalId: unknown;
6
+ declare type __DtsxStxComponentType = DefineComponent<{ target?: string, disabled?: unknown }>;
7
+ export default __dtsx_component__;
@@ -2,4 +2,4 @@ export declare interface PortalProps {
2
2
  target?: string | HTMLElement
3
3
  disabled?: boolean
4
4
  }
5
- export { default as Portal } from './Portal.stx';
5
+ export { default as Portal } from './Portal';
@@ -0,0 +1,32 @@
1
+ import type { DefineComponent } from '@stacksjs/stx';
2
+ declare const __dtsx_component__: __DtsxStxComponentType;
3
+ export declare const value: unknown;
4
+ export declare const max: unknown;
5
+ export declare const variant: unknown;
6
+ export declare const size: unknown;
7
+ export declare const color: unknown;
8
+ export declare const showLabel: ReturnType<typeof $bool>;
9
+ export declare const indeterminate: ReturnType<typeof $bool>;
10
+ export declare const className: unknown;
11
+ /** @defaultValue `{ sm: 'w-12 h-12', md: 'w-16 h-16', lg: 'w-24 h-24' }` */
12
+ declare const circularSizeClasses: {
13
+ /** @defaultValue 'w-12 h-12' */
14
+ sm: string;
15
+ /** @defaultValue 'w-16 h-16' */
16
+ md: string;
17
+ /** @defaultValue 'w-24 h-24' */
18
+ lg: string
19
+ };
20
+ export declare const circularSize: boolean;
21
+ export declare const strokeWidth: boolean;
22
+ export declare const radius: unknown;
23
+ export declare const circumference: unknown;
24
+ export declare const containerClasses: boolean;
25
+ export declare const linearTrackClasses: unknown;
26
+ export declare const linearBarClasses: unknown;
27
+ export declare const circularSizeClass: unknown;
28
+ export declare const labelClasses: unknown;
29
+ export declare const circularTrackColor: 'stroke-line';
30
+ export declare const circularBarColor: boolean;
31
+ declare type __DtsxStxComponentType = DefineComponent<{ value?: unknown, max?: unknown, variant?: string, size?: string, color?: string, showLabel?: unknown, indeterminate?: unknown, className?: string }> & { readonly __stxExposed?: { value: typeof value, setValue: (...args: any[]) => any } }
32
+ export default __dtsx_component__;
@@ -8,4 +8,4 @@ export declare interface ProgressProps {
8
8
  indeterminate?: boolean
9
9
  className?: string
10
10
  }
11
- export { default as Progress } from './Progress.stx';
11
+ export { default as Progress } from './Progress';