@codefast/ui 0.9.2 → 0.10.0

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 (188) hide show
  1. package/CHANGELOG.md +110 -0
  2. package/README.md +3 -0
  3. package/dist/components/accordion.js +1 -1
  4. package/dist/components/alert-dialog.d.ts +1 -1
  5. package/dist/components/alert-dialog.js +2 -2
  6. package/dist/components/alert.d.ts +1 -1
  7. package/dist/components/alert.js +2 -2
  8. package/dist/components/attachment.d.ts +2 -2
  9. package/dist/components/attachment.js +3 -3
  10. package/dist/components/avatar.js +1 -1
  11. package/dist/components/badge.d.ts +1 -1
  12. package/dist/components/badge.js +1 -1
  13. package/dist/components/breadcrumb.js +3 -3
  14. package/dist/components/bubble.d.ts +1 -1
  15. package/dist/components/bubble.js +2 -2
  16. package/dist/components/button-group.d.ts +2 -2
  17. package/dist/components/button-group.js +3 -3
  18. package/dist/components/button.d.ts +1 -1
  19. package/dist/components/button.js +1 -1
  20. package/dist/components/calendar.d.ts +1 -1
  21. package/dist/components/calendar.js +3 -3
  22. package/dist/components/card.js +1 -1
  23. package/dist/components/carousel.d.ts +1 -1
  24. package/dist/components/carousel.js +17 -26
  25. package/dist/components/chart.js +1 -1
  26. package/dist/components/checkbox-cards.d.ts +1 -1
  27. package/dist/components/checkbox-cards.js +3 -3
  28. package/dist/components/checkbox-group.d.ts +1 -1
  29. package/dist/components/checkbox-group.js +2 -2
  30. package/dist/components/checkbox.js +1 -1
  31. package/dist/components/command.d.ts +8 -2
  32. package/dist/components/command.js +5 -5
  33. package/dist/components/context-menu.js +1 -1
  34. package/dist/components/dialog.d.ts +14 -2
  35. package/dist/components/dialog.js +6 -6
  36. package/dist/components/drawer.d.ts +2 -2
  37. package/dist/components/drawer.js +2 -2
  38. package/dist/components/dropdown-menu.js +1 -1
  39. package/dist/components/empty.d.ts +1 -1
  40. package/dist/components/empty.js +2 -2
  41. package/dist/components/field.d.ts +2 -2
  42. package/dist/components/field.js +4 -4
  43. package/dist/components/form.js +2 -2
  44. package/dist/components/hover-card.js +1 -1
  45. package/dist/components/input-group.d.ts +4 -4
  46. package/dist/components/input-group.js +5 -5
  47. package/dist/components/input-number.d.ts +2 -2
  48. package/dist/components/input-number.js +6 -6
  49. package/dist/components/input-otp.js +1 -1
  50. package/dist/components/input-password.d.ts +16 -3
  51. package/dist/components/input-password.js +3 -3
  52. package/dist/components/input-search.d.ts +8 -2
  53. package/dist/components/input-search.js +3 -3
  54. package/dist/components/input.js +1 -1
  55. package/dist/components/item.d.ts +2 -2
  56. package/dist/components/item.js +3 -3
  57. package/dist/components/kbd.js +1 -1
  58. package/dist/components/label.js +1 -1
  59. package/dist/components/marker.d.ts +1 -1
  60. package/dist/components/marker.js +2 -2
  61. package/dist/components/menubar.js +1 -1
  62. package/dist/components/message-scroller.d.ts +3 -3
  63. package/dist/components/message-scroller.js +3 -3
  64. package/dist/components/message.js +1 -1
  65. package/dist/components/native-select.js +1 -1
  66. package/dist/components/navigation-menu.js +2 -2
  67. package/dist/components/pagination.d.ts +2 -2
  68. package/dist/components/pagination.js +3 -3
  69. package/dist/components/popover.js +1 -1
  70. package/dist/components/progress-circle.d.ts +2 -2
  71. package/dist/components/progress-circle.js +3 -3
  72. package/dist/components/progress.d.ts +6 -1
  73. package/dist/components/progress.js +12 -4
  74. package/dist/components/radio-cards.js +2 -2
  75. package/dist/components/radio-group.js +1 -1
  76. package/dist/components/radio.js +1 -1
  77. package/dist/components/resizable.js +1 -1
  78. package/dist/components/scroll-area.d.ts +1 -1
  79. package/dist/components/scroll-area.js +2 -2
  80. package/dist/components/select.js +1 -1
  81. package/dist/components/separator.d.ts +1 -1
  82. package/dist/components/separator.js +2 -2
  83. package/dist/components/sheet.d.ts +9 -3
  84. package/dist/components/sheet.js +5 -5
  85. package/dist/components/sidebar.d.ts +19 -7
  86. package/dist/components/sidebar.js +66 -32
  87. package/dist/components/skeleton.js +1 -1
  88. package/dist/components/slider.js +1 -1
  89. package/dist/components/spinner.js +1 -1
  90. package/dist/components/switch.js +1 -1
  91. package/dist/components/table.js +1 -1
  92. package/dist/components/tabs.d.ts +1 -1
  93. package/dist/components/tabs.js +2 -2
  94. package/dist/components/textarea.js +1 -1
  95. package/dist/components/toggle-group.d.ts +2 -2
  96. package/dist/components/toggle-group.js +2 -2
  97. package/dist/components/toggle.d.ts +1 -1
  98. package/dist/components/toggle.js +1 -1
  99. package/dist/components/tooltip.js +1 -1
  100. package/dist/hooks/use-is-mobile.js +1 -1
  101. package/dist/hooks/use-media-query.d.ts +3 -3
  102. package/dist/hooks/use-media-query.js +15 -32
  103. package/dist/hooks/use-message-scroller-commands.d.ts +2 -2
  104. package/dist/hooks/use-message-scroller-commands.js +2 -2
  105. package/dist/hooks/use-message-scroller-controller.d.ts +2 -2
  106. package/dist/hooks/use-message-scroller-controller.js +4 -4
  107. package/dist/hooks/use-message-scroller-refs.d.ts +1 -1
  108. package/dist/hooks/use-message-scroller-refs.js +3 -3
  109. package/dist/index.d.ts +180 -180
  110. package/dist/index.js +93 -93
  111. package/dist/lib/message-scroller/geometry.d.ts +1 -1
  112. package/dist/lib/message-scroller/geometry.js +1 -1
  113. package/dist/lib/message-scroller/stores.d.ts +1 -1
  114. package/dist/lib/message-scroller/stores.js +1 -1
  115. package/dist/lib/message-scroller/types.d.ts +1 -1
  116. package/dist/primitives/input-number.d.ts +6 -6
  117. package/dist/primitives/input-number.js +6 -6
  118. package/dist/primitives/message-scroller.d.ts +6 -6
  119. package/dist/primitives/message-scroller.js +3 -3
  120. package/dist/variants/alert.d.ts +1 -1
  121. package/dist/variants/alert.js +1 -1
  122. package/dist/variants/attachment.d.ts +1 -1
  123. package/dist/variants/attachment.js +1 -1
  124. package/dist/variants/badge.d.ts +1 -1
  125. package/dist/variants/badge.js +1 -1
  126. package/dist/variants/bubble.d.ts +1 -1
  127. package/dist/variants/bubble.js +1 -1
  128. package/dist/variants/button-group.d.ts +1 -1
  129. package/dist/variants/button-group.js +1 -1
  130. package/dist/variants/button.d.ts +1 -1
  131. package/dist/variants/button.js +1 -1
  132. package/dist/variants/empty.d.ts +1 -1
  133. package/dist/variants/empty.js +1 -1
  134. package/dist/variants/field.d.ts +1 -1
  135. package/dist/variants/field.js +1 -1
  136. package/dist/variants/input-group.d.ts +1 -1
  137. package/dist/variants/input-group.js +1 -1
  138. package/dist/variants/item.d.ts +1 -1
  139. package/dist/variants/item.js +1 -1
  140. package/dist/variants/marker.d.ts +1 -1
  141. package/dist/variants/marker.js +1 -1
  142. package/dist/variants/navigation-menu.d.ts +1 -1
  143. package/dist/variants/navigation-menu.js +1 -1
  144. package/dist/variants/progress-circle.d.ts +1 -1
  145. package/dist/variants/progress-circle.js +1 -1
  146. package/dist/variants/scroll-area.d.ts +1 -1
  147. package/dist/variants/scroll-area.js +1 -1
  148. package/dist/variants/separator.d.ts +1 -1
  149. package/dist/variants/separator.js +1 -1
  150. package/dist/variants/sheet.d.ts +1 -1
  151. package/dist/variants/sheet.js +1 -1
  152. package/dist/variants/sidebar.d.ts +1 -1
  153. package/dist/variants/sidebar.js +1 -1
  154. package/dist/variants/tabs.d.ts +1 -1
  155. package/dist/variants/tabs.js +1 -1
  156. package/dist/variants/toggle.d.ts +1 -1
  157. package/dist/variants/toggle.js +1 -1
  158. package/package.json +8 -7
  159. package/src/css/foundation/base.css +68 -0
  160. package/src/css/foundation/motion.css +65 -0
  161. package/src/css/foundation/source.css +14 -0
  162. package/src/css/foundation/tokens.css +83 -0
  163. package/src/css/foundation/utilities.css +451 -0
  164. package/src/css/foundation/variants.css +121 -0
  165. package/src/css/preset.css +14 -0
  166. package/src/css/style.css +11 -0
  167. package/src/css/themes/amber.css +105 -0
  168. package/src/css/themes/blue.css +105 -0
  169. package/src/css/themes/cyan.css +105 -0
  170. package/src/css/themes/emerald.css +105 -0
  171. package/src/css/themes/fuchsia.css +105 -0
  172. package/src/css/themes/gray.css +105 -0
  173. package/src/css/themes/green.css +105 -0
  174. package/src/css/themes/indigo.css +105 -0
  175. package/src/css/themes/lime.css +105 -0
  176. package/src/css/themes/neutral.css +105 -0
  177. package/src/css/themes/orange.css +105 -0
  178. package/src/css/themes/pink.css +105 -0
  179. package/src/css/themes/purple.css +105 -0
  180. package/src/css/themes/red.css +105 -0
  181. package/src/css/themes/rose.css +105 -0
  182. package/src/css/themes/sky.css +105 -0
  183. package/src/css/themes/slate.css +105 -0
  184. package/src/css/themes/stone.css +105 -0
  185. package/src/css/themes/teal.css +105 -0
  186. package/src/css/themes/violet.css +105 -0
  187. package/src/css/themes/yellow.css +105 -0
  188. package/src/css/themes/zinc.css +105 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,115 @@
1
1
  # @codefast/ui
2
2
 
3
+ ## 0.10.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#976](https://github.com/codefastlabs/codefast/pull/976) `engines.node` is now `>=24.0.0`, up from `>=22.12.0`, and Node 22 is no longer supported. Node 24.0.0 is the first
8
+ release with explicit resource management built in (`using`, `await using`, `DisposableStack`, `AsyncDisposableStack`,
9
+ `SuppressedError`) and all of ES2025, so the packages use both as the platform ships them instead of shimming them for
10
+ an older line, and the CI matrix runs the unit suite on 24.0.0 itself. Move to Node 24, or stay on the current minor
11
+ while a deployment still runs Node 22.
12
+
13
+ - [#983](https://github.com/codefastlabs/codefast/pull/983) Every string a component renders on an element the app cannot reach through props now comes from a prop that defaults to
14
+ the English text, so a UI in another language can name those controls: `InputPassword` takes `revealLabel` and
15
+ `concealLabel`; `InputSearch` takes `clearLabel`; `DialogContent`, `DialogFooter`, `SheetContent` and `CommandDialog`
16
+ take `closeLabel`; and `Sidebar` takes `mobileTitle` for its mobile sheet, which drops its filler description.
17
+ `PaginationEllipsis` and `BreadcrumbEllipsis` drop screen-reader text that their `aria-hidden` wrapper kept from ever
18
+ being read.
19
+
20
+ **Breaking:** `InputNumber`'s `ariaIncrementLabel` and `ariaDecrementLabel` are renamed `incrementLabel` and
21
+ `decrementLabel`, so every such prop is named for its action plus `Label`.
22
+
23
+ - [#982](https://github.com/codefastlabs/codefast/pull/982) The width where `Sidebar` switches between the docked panel and the mobile sheet is one theme variable,
24
+ `--breakpoint-sidebar` (default `48rem`), which also mints a `sidebar:` variant. Redefine it in the app's `@theme`,
25
+ before or after the preset, and the docked layout, `SidebarInset`'s inset spacing, `SidebarRail`, the hover-only menu
26
+ actions and the JS switch to the sheet all follow it. The JS side matches `(width < …)`, the exact complement of the CSS
27
+ query, so a fractional width just under 768px no longer shows no sidebar at all; `SidebarRail` no longer shows inside
28
+ the mobile sheet.
29
+
30
+ - [#982](https://github.com/codefastlabs/codefast/pull/982) `SidebarProvider`'s ⌘B / Ctrl+B shortcut leaves the key alone while focus is in an `input`, `textarea`, `select` or
31
+ contenteditable element, during IME composition, on auto-repeat, with Shift or Alt held, and once another handler has
32
+ called `preventDefault()`, so ⌘B in a rich-text editor bolds without collapsing the sidebar. The new `shortcutKey` prop
33
+ picks the key, matched case-insensitively, or turns the shortcut off with `false`.
34
+
35
+ ### Patch Changes
36
+
37
+ - [#977](https://github.com/codefastlabs/codefast/pull/977) The README states the browser floor: Chrome and Edge 136, Firefox 136, and Safari 18.4 or later, the first releases that
38
+ ship every ES2025 builtin. `@codefast/di`'s README also says what a browser program without explicit resource management
39
+ does: it keeps `skipLibCheck` on and calls `dispose()` instead of `await using`.
40
+
41
+ - [#965](https://github.com/codefastlabs/codefast/pull/965) `README.md` now states TypeScript 7 or later as the floor for the package's types — the one compiler every `@codefast/*`
42
+ package is built and checked with. No code or declaration changed.
43
+
44
+ - [#953](https://github.com/codefastlabs/codefast/pull/953) `Carousel` reads Embla's scroll bounds with `useSyncExternalStore` instead of copying them into state from a deferred
45
+ effect. Its cleanup now removes the `reInit` listener as well as `select`; before, an effect re-run on the same Embla
46
+ instance — as React's Strict Mode does in development — left a second `reInit` listener behind. `CarouselPrevious` and
47
+ `CarouselNext` also reflect the real bounds on the first render that has an Embla instance, rather than starting
48
+ disabled until a queued microtask ran, and that update no longer lands outside React's `act` in tests.
49
+
50
+ - [#983](https://github.com/codefastlabs/codefast/pull/983) `InputSearch` keeps its clear button disabled on a read-only field when `disabled={false}` is passed alongside
51
+ `readOnly`; the button stayed enabled there and cleared the read-only value.
52
+
53
+ - [#980](https://github.com/codefastlabs/codefast/pull/980) The preset registers the published `dist` with Tailwind's `@source`, so an installed package styles its components
54
+ again. It registered only `src/**/*.{ts,tsx}`, which the tarball no longer ships, so the Quick start generated none of
55
+ the utilities the components use outside the monorepo.
56
+
57
+ - [#981](https://github.com/codefastlabs/codefast/pull/981) `Progress` forwards `value` and `max` to Radix, so a bar exposes `aria-valuenow`, `aria-valuetext`, `data-value` and a
58
+ `loading`/`complete` `data-state`, and `getValueLabel` takes effect. It kept `value` to place the fill and never passed
59
+ it on, so every bar announced as indeterminate. The fill now scales by `max` and clamps to it, so `value={3} max={5}`
60
+ fills 60% of the bar, not 3%, and what the bar draws is what it announces.
61
+
62
+ - [#984](https://github.com/codefastlabs/codefast/pull/984) `SidebarProvider` registers its shortcut listener once, reading the latest state through an Effect Event, instead of
63
+ re-registering it after every toggle. With several providers on a page, the first one now keeps the shortcut on every
64
+ press. Re-registering moved the provider that had just toggled to the back of the listener queue, so a different sidebar
65
+ toggled on each press.
66
+
67
+ - [#982](https://github.com/codefastlabs/codefast/pull/982) `useMediaQuery` reports `false` while hydrating and then the live match, so markup server-rendered for a desktop
68
+ hydrates on a phone. It read `matchMedia` during the first client render, so a matching query hydrated different markup
69
+ than the server sent and React discarded the tree to render it again; `SidebarProvider`, through `useIsMobile`, did this
70
+ on every phone.
71
+ - Updated dependencies:
72
+ - @codefast/tailwind-variants@0.9.0
73
+
74
+ ## 0.9.3
75
+
76
+ ### Patch Changes
77
+
78
+ - [#892](https://github.com/codefastlabs/codefast/pull/892) [`4c97c5b`](https://github.com/codefastlabs/codefast/commit/4c97c5b8c2314f25ee9df7eac5a4b5dd723d6d90) Thanks [@thevuong](https://github.com/thevuong)! - Lower the monorepo's Node floor from 24 to 22.12, so the packages install and run on the active Node 22 LTS line.
79
+
80
+ `engines.node` becomes `>=22.12.0` across every package — the floor the shared toolchain (oxlint, Vite, Vitest, TanStack
81
+ Start) already requires. Development stays on the latest Node (`.node-version`) for speed, and a CI matrix exercises the
82
+ floor and the active LTS directly, so the floor is a contract CI proves rather than one everyone has to run.
83
+ `@types/node` is pinned to the floor's major (`^22`), with a workspace override holding the whole tree there so a dev
84
+ tool's `@types/node: "*"` peer can no longer pull a newer major and mask an API the floor lacks. The floor stays
85
+ mechanical, not advisory: `@codefast/di` keeps its own `Map` upsert helpers rather than the ES2025
86
+ `Map.prototype.getOrInsert` (which would raise the floor to 26) and its `lib` stays `ES2024`. `@codefast/cli`'s mirror
87
+ step now calls the `node:path` functions directly instead of aliasing them, which the floor's types correctly flag as
88
+ unbound methods.
89
+
90
+ The shared `@codefast/typescript-config` presets pin `lib` and `target` to `ES2024` (was `ESNext`) so the compiler's
91
+ ECMAScript surface matches the Node floor: an ES2025 builtin such as `Map.prototype.getOrInsert` now fails to type-check
92
+ rather than compiling and crashing on Node 22.12. `@codefast/di` and `@codefast/di-testing` already pinned `lib` and are
93
+ unchanged.
94
+
95
+ Internal subpath imports move from a `#/` prefix to a bare `#` (`#core/token`, not `#/core/token`), and the
96
+ `package.json#imports` keys become `#*`/`#tests/*`/`#examples/*` to match. Node's native ESM resolver rejects a
97
+ `#/`-prefixed specifier with `ERR_INVALID_MODULE_SPECIFIER` on the whole Node 22 line (and on Node 24 before 24.14), and
98
+ each package ships those specifiers verbatim inside its published `dist/*.js` for a consumer's Node to resolve — so this
99
+ rename is what actually lets the packages import on the new floor. Purely internal: a consumer's own import paths are
100
+ unchanged.
101
+
102
+ - [#892](https://github.com/codefastlabs/codefast/pull/892) [`4c97c5b`](https://github.com/codefastlabs/codefast/commit/4c97c5b8c2314f25ee9df7eac5a4b5dd723d6d90) Thanks [@thevuong](https://github.com/thevuong)! - Fix `pack-slim` stripping the stylesheet source of packages that export CSS.
103
+
104
+ `codefast pack-slim` removed the whole `src` directory from a package's published `files`, but `@codefast/ui` and
105
+ `@codefast/tracking` ship Tailwind source through `./css/*` → `./src/css/*`, so their published tarballs went out with
106
+ no CSS at all and the `./css/*` export resolved to nothing. pack-slim now keeps the `src` subtrees a surviving
107
+ `exports`/`imports` target still points into (e.g. `src/css`) and drops the rest of `src`, so the stylesheets ship while
108
+ the TypeScript source stays out. Surfaced and now guarded by the new `codefast audit publish` check.
109
+
110
+ - Updated dependencies [[`4c97c5b`](https://github.com/codefastlabs/codefast/commit/4c97c5b8c2314f25ee9df7eac5a4b5dd723d6d90)]:
111
+ - @codefast/tailwind-variants@0.8.1
112
+
3
113
  ## 0.9.2
4
114
 
5
115
  ### Patch Changes
package/README.md CHANGED
@@ -34,6 +34,9 @@ Or the equivalent with your package manager: `npm install @codefast/ui`, `yarn a
34
34
  `@codefast/ui` requires:
35
35
 
36
36
  - Node.js 24 or later.
37
+ - TypeScript 7 or later for its types.
38
+ - Chrome and Edge 136, Firefox 136, or Safari 18.4 or later in the browser
39
+ ([support policy](../../SUPPORT.md#browsers)).
37
40
  - React 19 — `react` and `react-dom` (19 or later) are peer dependencies; `@types/react` and `@types/react-dom` are
38
41
  optional peers.
39
42
  - Tailwind CSS 4 at build time — the stylesheets are Tailwind source, and rely on your Tailwind pipeline to compile
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { ChevronDownIcon, ChevronUpIcon } from "lucide-react";
3
3
  import * as AccordionPrimitive from "radix-ui/accordion";
4
- import { cn } from "#/lib/utils";
4
+ import { cn } from "#lib/utils";
5
5
  /**
6
6
  * @since 0.3.16-canary.0
7
7
  */
@@ -1,6 +1,6 @@
1
1
  import * as AlertDialogPrimitive from "radix-ui/alert-dialog";
2
2
  import type { ComponentProps, JSX } from "react";
3
- import type { ButtonProps } from "#/components/button";
3
+ import type { ButtonProps } from "#components/button";
4
4
  /**
5
5
  * @since 0.3.16-canary.0
6
6
  */
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as AlertDialogPrimitive from "radix-ui/alert-dialog";
3
- import { Button } from "#/components/button";
4
- import { cn } from "#/lib/utils";
3
+ import { Button } from "#components/button";
4
+ import { cn } from "#lib/utils";
5
5
  /**
6
6
  * @since 0.3.16-canary.0
7
7
  */
@@ -1,5 +1,5 @@
1
1
  import type { ComponentProps, JSX } from "react";
2
- import type { AlertVariants } from "#/variants/alert";
2
+ import type { AlertVariants } from "#variants/alert";
3
3
  /**
4
4
  * @since 0.3.16-canary.0
5
5
  */
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { cn } from "#/lib/utils";
3
- import { alertVariants } from "#/variants/alert";
2
+ import { cn } from "#lib/utils";
3
+ import { alertVariants } from "#variants/alert";
4
4
  /**
5
5
  * @since 0.3.16-canary.0
6
6
  */
@@ -1,6 +1,6 @@
1
1
  import type { ComponentProps, JSX } from "react";
2
- import { Button } from "#/components/button";
3
- import type { AttachmentMediaVariants, AttachmentVariants } from "#/variants/attachment";
2
+ import { Button } from "#components/button";
3
+ import type { AttachmentMediaVariants, AttachmentVariants } from "#variants/attachment";
4
4
  /**
5
5
  * File/media attachment card. `state` drives the upload lifecycle styling.
6
6
  *
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as Slot from "radix-ui/slot";
3
- import { Button } from "#/components/button";
4
- import { cn } from "#/lib/utils";
5
- import { attachmentMediaVariants, attachmentVariants } from "#/variants/attachment";
3
+ import { Button } from "#components/button";
4
+ import { cn } from "#lib/utils";
5
+ import { attachmentMediaVariants, attachmentVariants } from "#variants/attachment";
6
6
  /**
7
7
  * @since 0.5.0-canary.3
8
8
  */
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as AvatarPrimitive from "radix-ui/avatar";
3
- import { cn } from "#/lib/utils";
3
+ import { cn } from "#lib/utils";
4
4
  /**
5
5
  * @since 0.3.16-canary.0
6
6
  */
@@ -1,5 +1,5 @@
1
1
  import type { ComponentProps, JSX } from "react";
2
- import type { BadgeVariants } from "#/variants/badge";
2
+ import type { BadgeVariants } from "#variants/badge";
3
3
  /**
4
4
  * @since 0.3.16-canary.0
5
5
  */
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as Slot from "radix-ui/slot";
3
- import { badgeVariants } from "#/variants/badge";
3
+ import { badgeVariants } from "#variants/badge";
4
4
  /**
5
5
  * @since 0.3.16-canary.0
6
6
  */
@@ -1,7 +1,7 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
3
3
  import * as Slot from "radix-ui/slot";
4
- import { cn } from "#/lib/utils";
4
+ import { cn } from "#lib/utils";
5
5
  /**
6
6
  * @since 0.3.16-canary.0
7
7
  */
@@ -43,7 +43,7 @@ function BreadcrumbSeparator({ children, className, ...props }) {
43
43
  * @since 0.3.16-canary.0
44
44
  */
45
45
  function BreadcrumbEllipsis({ className, ...props }) {
46
- return (_jsxs("span", { "aria-hidden": "true", className: cn("flex size-5 items-center justify-center [&>svg]:size-4", className), "data-slot": "breadcrumb-ellipsis", role: "presentation", ...props, children: [_jsx(MoreHorizontalIcon, {}), _jsx("span", { className: "sr-only", children: "More" })] }));
46
+ return (_jsx("span", { "aria-hidden": "true", className: cn("flex size-5 items-center justify-center [&>svg]:size-4", className), "data-slot": "breadcrumb-ellipsis", role: "presentation", ...props, children: _jsx(MoreHorizontalIcon, {}) }));
47
47
  }
48
48
  // ── Exports ──────────────────────────────────────────────────────────────────────────────────────────────────────────
49
49
  export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, };
@@ -1,5 +1,5 @@
1
1
  import type { ComponentProps, JSX } from "react";
2
- import type { BubbleReactionsVariants, BubbleVariants } from "#/variants/bubble";
2
+ import type { BubbleReactionsVariants, BubbleVariants } from "#variants/bubble";
3
3
  /**
4
4
  * Vertical stack of consecutive bubbles from one author.
5
5
  *
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as Slot from "radix-ui/slot";
3
- import { cn } from "#/lib/utils";
4
- import { bubbleReactionsVariants, bubbleVariants } from "#/variants/bubble";
3
+ import { cn } from "#lib/utils";
4
+ import { bubbleReactionsVariants, bubbleVariants } from "#variants/bubble";
5
5
  /**
6
6
  * @since 0.5.0-canary.3
7
7
  */
@@ -1,6 +1,6 @@
1
1
  import type { ComponentProps, JSX } from "react";
2
- import { Separator } from "#/components/separator";
3
- import type { ButtonGroupVariants } from "#/variants/button-group";
2
+ import { Separator } from "#components/separator";
3
+ import type { ButtonGroupVariants } from "#variants/button-group";
4
4
  /**
5
5
  * @since 0.3.16-canary.0
6
6
  */
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as Slot from "radix-ui/slot";
3
- import { Separator } from "#/components/separator";
4
- import { cn } from "#/lib/utils";
5
- import { buttonGroupVariants } from "#/variants/button-group";
3
+ import { Separator } from "#components/separator";
4
+ import { cn } from "#lib/utils";
5
+ import { buttonGroupVariants } from "#variants/button-group";
6
6
  /**
7
7
  * @since 0.3.16-canary.0
8
8
  */
@@ -1,5 +1,5 @@
1
1
  import type { ComponentProps, JSX } from "react";
2
- import type { ButtonVariants } from "#/variants/button";
2
+ import type { ButtonVariants } from "#variants/button";
3
3
  /**
4
4
  * @since 0.3.16-canary.0
5
5
  */
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as Slot from "radix-ui/slot";
3
- import { buttonVariants } from "#/variants/button";
3
+ import { buttonVariants } from "#variants/button";
4
4
  /**
5
5
  * @since 0.3.16-canary.0
6
6
  */
@@ -1,7 +1,7 @@
1
1
  import type { DayButton, Locale } from "@daypicker/react";
2
2
  import { DayPicker } from "@daypicker/react";
3
3
  import type { ComponentProps, JSX } from "react";
4
- import { Button } from "#/components/button";
4
+ import { Button } from "#components/button";
5
5
  /**
6
6
  * @since 0.3.16-canary.0
7
7
  */
@@ -2,9 +2,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { DayPicker, getDefaultClassNames } from "@daypicker/react";
3
3
  import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
4
4
  import { useEffect, useRef } from "react";
5
- import { Button } from "#/components/button";
6
- import { cn } from "#/lib/utils";
7
- import { buttonVariants } from "#/variants/button";
5
+ import { Button } from "#components/button";
6
+ import { cn } from "#lib/utils";
7
+ import { buttonVariants } from "#variants/button";
8
8
  /**
9
9
  * @since 0.3.16-canary.0
10
10
  */
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { cn } from "#/lib/utils";
2
+ import { cn } from "#lib/utils";
3
3
  /**
4
4
  * @since 0.3.16-canary.0
5
5
  */
@@ -2,7 +2,7 @@ import type { UseEmblaCarouselType } from "embla-carousel-react";
2
2
  import useEmblaCarousel from "embla-carousel-react";
3
3
  import { Context } from "radix-ui/internal";
4
4
  import type { ComponentProps, JSX } from "react";
5
- import { Button } from "#/components/button";
5
+ import { Button } from "#components/button";
6
6
  type ScopedProps<P> = P & {
7
7
  __scopeCarousel?: Context.Scope;
8
8
  };
@@ -2,10 +2,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import useEmblaCarousel from "embla-carousel-react";
3
3
  import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
4
4
  import { Context } from "radix-ui/internal";
5
- import { useCallback, useEffect, useState } from "react";
6
- import { Button } from "#/components/button";
7
- import { useDirection } from "#/components/direction";
8
- import { cn } from "#/lib/utils";
5
+ import { useCallback, useEffect, useSyncExternalStore } from "react";
6
+ import { Button } from "#components/button";
7
+ import { useDirection } from "#components/direction";
8
+ import { cn } from "#lib/utils";
9
9
  // ── Context: Carousel ────────────────────────────────────────────────────────────────────────────────────────────────
10
10
  const CAROUSEL_NAME = "Carousel";
11
11
  const [createCarouselContext, createCarouselScope] = Context.createContextScope(CAROUSEL_NAME);
@@ -21,15 +21,20 @@ function Carousel({ __scopeCarousel, children, className, opts, orientation, plu
21
21
  ...opts,
22
22
  axis: orientation === "vertical" ? "y" : "x",
23
23
  }, plugins);
24
- const [canScrollPrevious, setCanScrollPrevious] = useState(false);
25
- const [canScrollNext, setCanScrollNext] = useState(false);
26
- const onSelect = useCallback((carouselApi) => {
27
- if (!carouselApi) {
28
- return;
24
+ const subscribe = useCallback((onStoreChange) => {
25
+ if (!api) {
26
+ return () => { };
29
27
  }
30
- setCanScrollPrevious(carouselApi.canScrollPrev());
31
- setCanScrollNext(carouselApi.canScrollNext());
32
- }, []);
28
+ api.on("reInit", onStoreChange);
29
+ api.on("select", onStoreChange);
30
+ return () => {
31
+ api.off("reInit", onStoreChange);
32
+ api.off("select", onStoreChange);
33
+ };
34
+ }, [api]);
35
+ // Embla is an external store: read its scroll bounds during render instead of mirroring them into state.
36
+ const canScrollPrevious = useSyncExternalStore(subscribe, () => api?.canScrollPrev() ?? false, () => false);
37
+ const canScrollNext = useSyncExternalStore(subscribe, () => api?.canScrollNext() ?? false, () => false);
33
38
  const scrollPrevious = useCallback(() => {
34
39
  api?.scrollPrev();
35
40
  }, [api]);
@@ -55,20 +60,6 @@ function Carousel({ __scopeCarousel, children, className, opts, orientation, plu
55
60
  }
56
61
  setApi(api);
57
62
  }, [api, setApi]);
58
- useEffect(() => {
59
- if (!api) {
60
- return;
61
- }
62
- // Defer onSelect to avoid synchronous setState in effect
63
- queueMicrotask(() => {
64
- onSelect(api);
65
- });
66
- api.on("reInit", onSelect);
67
- api.on("select", onSelect);
68
- return () => {
69
- api.off("select", onSelect);
70
- };
71
- }, [api, onSelect]);
72
63
  return (_jsx(CarouselContextProvider, { api: api, canScrollNext: canScrollNext, canScrollPrev: canScrollPrevious, carouselRef: carouselRef, opts: opts, orientation: orientation ?? (opts?.axis === "y" ? "vertical" : "horizontal"), scope: __scopeCarousel, scrollNext: scrollNext, scrollPrev: scrollPrevious, children: _jsx("div", { "aria-roledescription": "carousel", className: cn("relative", className), "data-slot": "carousel", role: "region", onKeyDownCapture: handleKeyDown, ...props, children: children }) }));
73
64
  }
74
65
  // ── Component: CarouselContent ───────────────────────────────────────────────────────────────────────────────────────
@@ -2,7 +2,7 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
2
2
  import { Context } from "radix-ui/internal";
3
3
  import { useId, useMemo } from "react";
4
4
  import * as RechartsPrimitive from "recharts";
5
- import { cn } from "#/lib/utils";
5
+ import { cn } from "#lib/utils";
6
6
  // ── Chart Configuration and Theme Constants ──────────────────────────────────────────────────────────────────────────
7
7
  const THEMES = { dark: ".dark", light: "" };
8
8
  const INITIAL_DIMENSION = { height: 200, width: 320 };
@@ -1,5 +1,5 @@
1
1
  import type { ComponentProps, JSX } from "react";
2
- import * as CheckboxGroupPrimitive from "#/primitives/checkbox-group";
2
+ import * as CheckboxGroupPrimitive from "#primitives/checkbox-group";
3
3
  /**
4
4
  * @since 0.3.16-canary.0
5
5
  */
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { CheckIcon, MinusIcon } from "lucide-react";
3
- import { Label } from "#/components/label";
4
- import { cn } from "#/lib/utils";
5
- import * as CheckboxGroupPrimitive from "#/primitives/checkbox-group";
3
+ import { Label } from "#components/label";
4
+ import { cn } from "#lib/utils";
5
+ import * as CheckboxGroupPrimitive from "#primitives/checkbox-group";
6
6
  /**
7
7
  * @since 0.3.16-canary.0
8
8
  */
@@ -1,5 +1,5 @@
1
1
  import type { ComponentProps, JSX } from "react";
2
- import * as CheckboxGroupPrimitive from "#/primitives/checkbox-group";
2
+ import * as CheckboxGroupPrimitive from "#primitives/checkbox-group";
3
3
  /**
4
4
  * @since 0.3.16-canary.0
5
5
  */
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { CheckIcon, MinusIcon } from "lucide-react";
3
- import { cn } from "#/lib/utils";
4
- import * as CheckboxGroupPrimitive from "#/primitives/checkbox-group";
3
+ import { cn } from "#lib/utils";
4
+ import * as CheckboxGroupPrimitive from "#primitives/checkbox-group";
5
5
  /**
6
6
  * @since 0.3.16-canary.0
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { CheckIcon, MinusIcon } from "lucide-react";
3
3
  import * as CheckboxPrimitive from "radix-ui/checkbox";
4
- import { cn } from "#/lib/utils";
4
+ import { cn } from "#lib/utils";
5
5
  /**
6
6
  * @since 0.3.16-canary.0
7
7
  */
@@ -1,6 +1,6 @@
1
1
  import { Command as CommandPrimitive } from "cmdk";
2
2
  import type { ComponentProps, JSX } from "react";
3
- import { Dialog } from "#/components/dialog";
3
+ import { Dialog } from "#components/dialog";
4
4
  /**
5
5
  * @since 0.3.16-canary.0
6
6
  */
@@ -14,6 +14,12 @@ declare function Command({ className, ...props }: CommandProps): JSX.Element;
14
14
  */
15
15
  interface CommandDialogProps extends ComponentProps<typeof Dialog> {
16
16
  className?: string;
17
+ /**
18
+ * The accessible name of the close button `showCloseButton` adds.
19
+ *
20
+ * @defaultValue `"Close"`
21
+ */
22
+ closeLabel?: string | undefined;
17
23
  description?: string;
18
24
  showCloseButton?: boolean;
19
25
  title?: string;
@@ -21,7 +27,7 @@ interface CommandDialogProps extends ComponentProps<typeof Dialog> {
21
27
  /**
22
28
  * @since 0.3.16-canary.0
23
29
  */
24
- declare function CommandDialog({ children, className, description, showCloseButton, title, ...props }: CommandDialogProps): JSX.Element;
30
+ declare function CommandDialog({ children, className, closeLabel, description, showCloseButton, title, ...props }: CommandDialogProps): JSX.Element;
25
31
  /**
26
32
  * @since 0.3.16-canary.0
27
33
  */
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Command as CommandPrimitive } from "cmdk";
3
3
  import { CheckIcon, SearchIcon } from "lucide-react";
4
- import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from "#/components/dialog";
5
- import { InputGroup, InputGroupAddon } from "#/components/input-group";
6
- import { cn } from "#/lib/utils";
4
+ import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from "#components/dialog";
5
+ import { InputGroup, InputGroupAddon } from "#components/input-group";
6
+ import { cn } from "#lib/utils";
7
7
  /**
8
8
  * @since 0.3.16-canary.0
9
9
  */
@@ -13,8 +13,8 @@ function Command({ className, ...props }) {
13
13
  /**
14
14
  * @since 0.3.16-canary.0
15
15
  */
16
- function CommandDialog({ children, className, description = "Search for a command to run...", showCloseButton = false, title = "Command Palette", ...props }) {
17
- return (_jsxs(Dialog, { "data-slot": "command-dialog", ...props, children: [_jsxs(DialogHeader, { className: "sr-only", children: [_jsx(DialogTitle, { children: title }), _jsx(DialogDescription, { children: description })] }), _jsx(DialogContent, { className: cn("top-1/3 translate-y-0 overflow-hidden rounded-xl p-0", className), "data-slot": "command-dialog-content", showCloseButton: showCloseButton, children: children })] }));
16
+ function CommandDialog({ children, className, closeLabel, description = "Search for a command to run...", showCloseButton = false, title = "Command Palette", ...props }) {
17
+ return (_jsxs(Dialog, { "data-slot": "command-dialog", ...props, children: [_jsxs(DialogHeader, { className: "sr-only", children: [_jsx(DialogTitle, { children: title }), _jsx(DialogDescription, { children: description })] }), _jsx(DialogContent, { className: cn("top-1/3 translate-y-0 overflow-hidden rounded-xl p-0", className), closeLabel: closeLabel, "data-slot": "command-dialog-content", showCloseButton: showCloseButton, children: children })] }));
18
18
  }
19
19
  /**
20
20
  * @since 0.3.16-canary.0
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { CheckIcon, ChevronRightIcon } from "lucide-react";
3
3
  import * as ContextMenuPrimitive from "radix-ui/context-menu";
4
- import { cn } from "#/lib/utils";
4
+ import { cn } from "#lib/utils";
5
5
  /**
6
6
  * @since 0.3.16-canary.0
7
7
  */
@@ -20,12 +20,18 @@ declare function DialogTrigger({ ...props }: DialogTriggerProps): JSX.Element;
20
20
  * @since 0.3.16-canary.0
21
21
  */
22
22
  interface DialogContentProps extends ComponentProps<typeof DialogPrimitive.Content> {
23
+ /**
24
+ * The accessible name of the built-in close button.
25
+ *
26
+ * @defaultValue `"Close"`
27
+ */
28
+ closeLabel?: string | undefined;
23
29
  showCloseButton?: boolean;
24
30
  }
25
31
  /**
26
32
  * @since 0.3.16-canary.0
27
33
  */
28
- declare function DialogContent({ children, className, showCloseButton, ...props }: DialogContentProps): JSX.Element;
34
+ declare function DialogContent({ children, className, closeLabel, showCloseButton, ...props }: DialogContentProps): JSX.Element;
29
35
  /**
30
36
  * @since 0.3.16-canary.0
31
37
  */
@@ -51,12 +57,18 @@ declare function DialogBody({ className, ...props }: DialogBodyProps): JSX.Eleme
51
57
  * @since 0.3.16-canary.0
52
58
  */
53
59
  interface DialogFooterProps extends ComponentProps<"div"> {
60
+ /**
61
+ * The label of the close button `showCloseButton` adds.
62
+ *
63
+ * @defaultValue `"Close"`
64
+ */
65
+ closeLabel?: string | undefined;
54
66
  showCloseButton?: boolean;
55
67
  }
56
68
  /**
57
69
  * @since 0.3.16-canary.0
58
70
  */
59
- declare function DialogFooter({ children, className, showCloseButton, ...props }: DialogFooterProps): JSX.Element;
71
+ declare function DialogFooter({ children, className, closeLabel, showCloseButton, ...props }: DialogFooterProps): JSX.Element;
60
72
  /**
61
73
  * @since 0.3.16-canary.0
62
74
  */
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { XIcon } from "lucide-react";
3
3
  import * as DialogPrimitive from "radix-ui/dialog";
4
- import { Button } from "#/components/button";
5
- import { cn } from "#/lib/utils";
4
+ import { Button } from "#components/button";
5
+ import { cn } from "#lib/utils";
6
6
  /**
7
7
  * @since 0.3.16-canary.0
8
8
  */
@@ -18,8 +18,8 @@ function DialogTrigger({ ...props }) {
18
18
  /**
19
19
  * @since 0.3.16-canary.0
20
20
  */
21
- function DialogContent({ children, className, showCloseButton = true, ...props }) {
22
- return (_jsxs(DialogPrimitive.Portal, { "data-slot": "dialog-portal", children: [_jsx(DialogPrimitive.Overlay, { className: "fixed inset-0 isolate z-50 bg-black/10 ease-gentle supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:animation-duration-overlay-in data-open:fade-in-0 data-closed:animate-out data-closed:ease-exit data-closed:animation-duration-overlay-out data-closed:fade-out-0", "data-slot": "dialog-overlay" }), _jsxs(DialogPrimitive.Content, { className: cn("fixed inset-s-1/2 top-1/2 z-50 flex max-h-[calc(100dvh-2rem)] w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 flex-col gap-4 overflow-y-auto rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 ease-ui outline-none sm:max-w-sm rtl:translate-x-1/2 data-open:animate-in data-open:animation-duration-overlay-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:ease-exit data-closed:animation-duration-overlay-out data-closed:fade-out-0 data-closed:zoom-out-95", className), "data-slot": "dialog-content", ...props, children: [children, showCloseButton ? (_jsx(DialogPrimitive.Close, { asChild: true, "data-slot": "dialog-close", children: _jsxs(Button, { className: "absolute inset-e-2 top-2", size: "icon-sm", variant: "ghost", children: [_jsx(XIcon, {}), _jsx("span", { className: "sr-only", children: "Close" })] }) })) : null] })] }));
21
+ function DialogContent({ children, className, closeLabel = "Close", showCloseButton = true, ...props }) {
22
+ return (_jsxs(DialogPrimitive.Portal, { "data-slot": "dialog-portal", children: [_jsx(DialogPrimitive.Overlay, { className: "fixed inset-0 isolate z-50 bg-black/10 ease-gentle supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:animation-duration-overlay-in data-open:fade-in-0 data-closed:animate-out data-closed:ease-exit data-closed:animation-duration-overlay-out data-closed:fade-out-0", "data-slot": "dialog-overlay" }), _jsxs(DialogPrimitive.Content, { className: cn("fixed inset-s-1/2 top-1/2 z-50 flex max-h-[calc(100dvh-2rem)] w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 flex-col gap-4 overflow-y-auto rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 ease-ui outline-none sm:max-w-sm rtl:translate-x-1/2 data-open:animate-in data-open:animation-duration-overlay-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:ease-exit data-closed:animation-duration-overlay-out data-closed:fade-out-0 data-closed:zoom-out-95", className), "data-slot": "dialog-content", ...props, children: [children, showCloseButton ? (_jsx(DialogPrimitive.Close, { asChild: true, "data-slot": "dialog-close", children: _jsxs(Button, { className: "absolute inset-e-2 top-2", size: "icon-sm", variant: "ghost", children: [_jsx(XIcon, {}), _jsx("span", { className: "sr-only", children: closeLabel })] }) })) : null] })] }));
23
23
  }
24
24
  /**
25
25
  * @since 0.3.16-canary.0
@@ -36,8 +36,8 @@ function DialogBody({ className, ...props }) {
36
36
  /**
37
37
  * @since 0.3.16-canary.0
38
38
  */
39
- function DialogFooter({ children, className, showCloseButton = false, ...props }) {
40
- return (_jsxs("div", { className: cn("-mx-4 -mb-4 flex shrink-0 flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end", className), "data-slot": "dialog-footer", ...props, children: [children, showCloseButton ? (_jsx(DialogPrimitive.Close, { asChild: true, children: _jsx(Button, { variant: "outline", children: "Close" }) })) : null] }));
39
+ function DialogFooter({ children, className, closeLabel = "Close", showCloseButton = false, ...props }) {
40
+ return (_jsxs("div", { className: cn("-mx-4 -mb-4 flex shrink-0 flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end", className), "data-slot": "dialog-footer", ...props, children: [children, showCloseButton ? (_jsx(DialogPrimitive.Close, { asChild: true, children: _jsx(Button, { variant: "outline", children: closeLabel }) })) : null] }));
41
41
  }
42
42
  /**
43
43
  * @since 0.3.16-canary.0