@codefast/ui 0.9.1 → 0.9.3

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 (185) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/LICENSE +1 -1
  3. package/README.md +1 -1
  4. package/dist/components/accordion.js +1 -1
  5. package/dist/components/alert-dialog.d.ts +1 -1
  6. package/dist/components/alert-dialog.js +2 -2
  7. package/dist/components/alert.d.ts +1 -1
  8. package/dist/components/alert.js +2 -2
  9. package/dist/components/attachment.d.ts +2 -2
  10. package/dist/components/attachment.js +3 -3
  11. package/dist/components/avatar.js +1 -1
  12. package/dist/components/badge.d.ts +1 -1
  13. package/dist/components/badge.js +1 -1
  14. package/dist/components/breadcrumb.js +1 -1
  15. package/dist/components/bubble.d.ts +1 -1
  16. package/dist/components/bubble.js +2 -2
  17. package/dist/components/button-group.d.ts +2 -2
  18. package/dist/components/button-group.js +3 -3
  19. package/dist/components/button.d.ts +1 -1
  20. package/dist/components/button.js +1 -1
  21. package/dist/components/calendar.d.ts +1 -1
  22. package/dist/components/calendar.js +3 -3
  23. package/dist/components/card.js +1 -1
  24. package/dist/components/carousel.d.ts +1 -1
  25. package/dist/components/carousel.js +3 -3
  26. package/dist/components/chart.js +1 -1
  27. package/dist/components/checkbox-cards.d.ts +1 -1
  28. package/dist/components/checkbox-cards.js +3 -3
  29. package/dist/components/checkbox-group.d.ts +1 -1
  30. package/dist/components/checkbox-group.js +2 -2
  31. package/dist/components/checkbox.js +1 -1
  32. package/dist/components/command.d.ts +1 -1
  33. package/dist/components/command.js +3 -3
  34. package/dist/components/context-menu.js +1 -1
  35. package/dist/components/dialog.js +2 -2
  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 +1 -1
  48. package/dist/components/input-number.js +4 -4
  49. package/dist/components/input-otp.js +1 -1
  50. package/dist/components/input-password.d.ts +1 -1
  51. package/dist/components/input-password.js +1 -1
  52. package/dist/components/input-search.d.ts +1 -1
  53. package/dist/components/input-search.js +1 -1
  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 +2 -2
  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.js +1 -1
  73. package/dist/components/radio-cards.js +2 -2
  74. package/dist/components/radio-group.js +1 -1
  75. package/dist/components/radio.js +1 -1
  76. package/dist/components/resizable.js +1 -1
  77. package/dist/components/scroll-area.d.ts +1 -1
  78. package/dist/components/scroll-area.js +2 -2
  79. package/dist/components/select.js +1 -1
  80. package/dist/components/separator.d.ts +1 -1
  81. package/dist/components/separator.js +2 -2
  82. package/dist/components/sheet.d.ts +2 -2
  83. package/dist/components/sheet.js +3 -3
  84. package/dist/components/sidebar.d.ts +5 -5
  85. package/dist/components/sidebar.js +9 -9
  86. package/dist/components/skeleton.js +1 -1
  87. package/dist/components/slider.js +1 -1
  88. package/dist/components/spinner.js +1 -1
  89. package/dist/components/switch.js +1 -1
  90. package/dist/components/table.js +1 -1
  91. package/dist/components/tabs.d.ts +1 -1
  92. package/dist/components/tabs.js +2 -2
  93. package/dist/components/textarea.js +1 -1
  94. package/dist/components/toggle-group.d.ts +2 -2
  95. package/dist/components/toggle-group.js +2 -2
  96. package/dist/components/toggle.d.ts +1 -1
  97. package/dist/components/toggle.js +1 -1
  98. package/dist/components/tooltip.js +1 -1
  99. package/dist/hooks/use-is-mobile.js +1 -1
  100. package/dist/hooks/use-message-scroller-commands.d.ts +2 -2
  101. package/dist/hooks/use-message-scroller-commands.js +2 -2
  102. package/dist/hooks/use-message-scroller-controller.d.ts +2 -2
  103. package/dist/hooks/use-message-scroller-controller.js +4 -4
  104. package/dist/hooks/use-message-scroller-refs.d.ts +1 -1
  105. package/dist/hooks/use-message-scroller-refs.js +3 -3
  106. package/dist/index.d.ts +180 -180
  107. package/dist/index.js +93 -93
  108. package/dist/lib/message-scroller/geometry.d.ts +1 -1
  109. package/dist/lib/message-scroller/geometry.js +1 -1
  110. package/dist/lib/message-scroller/stores.d.ts +1 -1
  111. package/dist/lib/message-scroller/stores.js +1 -1
  112. package/dist/lib/message-scroller/types.d.ts +1 -1
  113. package/dist/primitives/input-number.d.ts +1 -1
  114. package/dist/primitives/input-number.js +2 -2
  115. package/dist/primitives/message-scroller.d.ts +6 -6
  116. package/dist/primitives/message-scroller.js +3 -3
  117. package/dist/variants/alert.d.ts +1 -1
  118. package/dist/variants/alert.js +1 -1
  119. package/dist/variants/attachment.d.ts +1 -1
  120. package/dist/variants/attachment.js +1 -1
  121. package/dist/variants/badge.d.ts +1 -1
  122. package/dist/variants/badge.js +1 -1
  123. package/dist/variants/bubble.d.ts +1 -1
  124. package/dist/variants/bubble.js +1 -1
  125. package/dist/variants/button-group.d.ts +1 -1
  126. package/dist/variants/button-group.js +1 -1
  127. package/dist/variants/button.d.ts +1 -1
  128. package/dist/variants/button.js +1 -1
  129. package/dist/variants/empty.d.ts +1 -1
  130. package/dist/variants/empty.js +1 -1
  131. package/dist/variants/field.d.ts +1 -1
  132. package/dist/variants/field.js +1 -1
  133. package/dist/variants/input-group.d.ts +1 -1
  134. package/dist/variants/input-group.js +1 -1
  135. package/dist/variants/item.d.ts +1 -1
  136. package/dist/variants/item.js +1 -1
  137. package/dist/variants/marker.d.ts +1 -1
  138. package/dist/variants/marker.js +1 -1
  139. package/dist/variants/navigation-menu.d.ts +1 -1
  140. package/dist/variants/navigation-menu.js +1 -1
  141. package/dist/variants/progress-circle.d.ts +1 -1
  142. package/dist/variants/progress-circle.js +1 -1
  143. package/dist/variants/scroll-area.d.ts +1 -1
  144. package/dist/variants/scroll-area.js +1 -1
  145. package/dist/variants/separator.d.ts +1 -1
  146. package/dist/variants/separator.js +1 -1
  147. package/dist/variants/sheet.d.ts +1 -1
  148. package/dist/variants/sheet.js +1 -1
  149. package/dist/variants/sidebar.d.ts +1 -1
  150. package/dist/variants/sidebar.js +1 -1
  151. package/dist/variants/tabs.d.ts +1 -1
  152. package/dist/variants/tabs.js +1 -1
  153. package/dist/variants/toggle.d.ts +1 -1
  154. package/dist/variants/toggle.js +1 -1
  155. package/package.json +11 -47
  156. package/src/css/foundation/base.css +68 -0
  157. package/src/css/foundation/motion.css +65 -0
  158. package/src/css/foundation/source.css +10 -0
  159. package/src/css/foundation/tokens.css +83 -0
  160. package/src/css/foundation/utilities.css +451 -0
  161. package/src/css/foundation/variants.css +108 -0
  162. package/src/css/preset.css +14 -0
  163. package/src/css/style.css +11 -0
  164. package/src/css/themes/amber.css +105 -0
  165. package/src/css/themes/blue.css +105 -0
  166. package/src/css/themes/cyan.css +105 -0
  167. package/src/css/themes/emerald.css +105 -0
  168. package/src/css/themes/fuchsia.css +105 -0
  169. package/src/css/themes/gray.css +105 -0
  170. package/src/css/themes/green.css +105 -0
  171. package/src/css/themes/indigo.css +105 -0
  172. package/src/css/themes/lime.css +105 -0
  173. package/src/css/themes/neutral.css +105 -0
  174. package/src/css/themes/orange.css +105 -0
  175. package/src/css/themes/pink.css +105 -0
  176. package/src/css/themes/purple.css +105 -0
  177. package/src/css/themes/red.css +105 -0
  178. package/src/css/themes/rose.css +105 -0
  179. package/src/css/themes/sky.css +105 -0
  180. package/src/css/themes/slate.css +105 -0
  181. package/src/css/themes/stone.css +105 -0
  182. package/src/css/themes/teal.css +105 -0
  183. package/src/css/themes/violet.css +105 -0
  184. package/src/css/themes/yellow.css +105 -0
  185. package/src/css/themes/zinc.css +105 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,51 @@
1
1
  # @codefast/ui
2
2
 
3
+ ## 0.9.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#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.
8
+
9
+ `engines.node` becomes `>=22.12.0` across every package — the floor the shared toolchain (oxlint, Vite, Vitest, TanStack
10
+ Start) already requires. Development stays on the latest Node (`.node-version`) for speed, and a CI matrix exercises the
11
+ floor and the active LTS directly, so the floor is a contract CI proves rather than one everyone has to run.
12
+ `@types/node` is pinned to the floor's major (`^22`), with a workspace override holding the whole tree there so a dev
13
+ tool's `@types/node: "*"` peer can no longer pull a newer major and mask an API the floor lacks. The floor stays
14
+ mechanical, not advisory: `@codefast/di` keeps its own `Map` upsert helpers rather than the ES2025
15
+ `Map.prototype.getOrInsert` (which would raise the floor to 26) and its `lib` stays `ES2024`. `@codefast/cli`'s mirror
16
+ step now calls the `node:path` functions directly instead of aliasing them, which the floor's types correctly flag as
17
+ unbound methods.
18
+
19
+ The shared `@codefast/typescript-config` presets pin `lib` and `target` to `ES2024` (was `ESNext`) so the compiler's
20
+ ECMAScript surface matches the Node floor: an ES2025 builtin such as `Map.prototype.getOrInsert` now fails to type-check
21
+ rather than compiling and crashing on Node 22.12. `@codefast/di` and `@codefast/di-testing` already pinned `lib` and are
22
+ unchanged.
23
+
24
+ Internal subpath imports move from a `#/` prefix to a bare `#` (`#core/token`, not `#/core/token`), and the
25
+ `package.json#imports` keys become `#*`/`#tests/*`/`#examples/*` to match. Node's native ESM resolver rejects a
26
+ `#/`-prefixed specifier with `ERR_INVALID_MODULE_SPECIFIER` on the whole Node 22 line (and on Node 24 before 24.14), and
27
+ each package ships those specifiers verbatim inside its published `dist/*.js` for a consumer's Node to resolve — so this
28
+ rename is what actually lets the packages import on the new floor. Purely internal: a consumer's own import paths are
29
+ unchanged.
30
+
31
+ - [#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.
32
+
33
+ `codefast pack-slim` removed the whole `src` directory from a package's published `files`, but `@codefast/ui` and
34
+ `@codefast/tracking` ship Tailwind source through `./css/*` → `./src/css/*`, so their published tarballs went out with
35
+ no CSS at all and the `./css/*` export resolved to nothing. pack-slim now keeps the `src` subtrees a surviving
36
+ `exports`/`imports` target still points into (e.g. `src/css`) and drops the rest of `src`, so the stylesheets ship while
37
+ the TypeScript source stays out. Surfaced and now guarded by the new `codefast audit publish` check.
38
+
39
+ - Updated dependencies [[`4c97c5b`](https://github.com/codefastlabs/codefast/commit/4c97c5b8c2314f25ee9df7eac5a4b5dd723d6d90)]:
40
+ - @codefast/tailwind-variants@0.8.1
41
+
42
+ ## 0.9.2
43
+
44
+ ### Patch Changes
45
+
46
+ - Updated dependencies [[`98fc6c7`](https://github.com/codefastlabs/codefast/commit/98fc6c76421c35e687f115dd4969f3cc60cd1282)]:
47
+ - @codefast/tailwind-variants@0.8.0
48
+
3
49
  ## 0.9.1
4
50
 
5
51
  ### Patch Changes
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 CodeFast Labs
3
+ Copyright (c) 2024 Codefast Labs
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -33,7 +33,7 @@ Or the equivalent with your package manager: `npm install @codefast/ui`, `yarn a
33
33
 
34
34
  `@codefast/ui` requires:
35
35
 
36
- - Node.js 24 or later.
36
+ - Node.js 22.12 or later.
37
37
  - React 19 — `react` and `react-dom` (19 or later) are peer dependencies; `@types/react` and `@types/react-dom` are
38
38
  optional peers.
39
39
  - 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
1
  import { jsx as _jsx, jsxs as _jsxs } 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
  */
@@ -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
  };
@@ -3,9 +3,9 @@ import useEmblaCarousel from "embla-carousel-react";
3
3
  import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
4
4
  import { Context } from "radix-ui/internal";
5
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";
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);
@@ -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
  */
@@ -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
  */
@@ -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
  */
@@ -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
  */
@@ -1,7 +1,7 @@
1
1
  import type { ComponentProps, JSX } from "react";
2
2
  import { Drawer as DrawerPrimitive } from "vaul";
3
- import type { VariantProps } from "#/lib/utils";
4
- import { buttonVariants } from "#/variants/button";
3
+ import type { VariantProps } from "#lib/utils";
4
+ import { buttonVariants } from "#variants/button";
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 { Drawer as DrawerPrimitive } from "vaul";
3
- import { cn } from "#/lib/utils";
4
- import { buttonVariants } from "#/variants/button";
3
+ import { cn } from "#lib/utils";
4
+ import { buttonVariants } from "#variants/button";
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, ChevronRightIcon } from "lucide-react";
3
3
  import * as DropdownMenuPrimitive from "radix-ui/dropdown-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
  */
@@ -1,5 +1,5 @@
1
1
  import type { ComponentProps, JSX } from "react";
2
- import type { EmptyMediaVariants } from "#/variants/empty";
2
+ import type { EmptyMediaVariants } from "#variants/empty";
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 { emptyMediaVariants } from "#/variants/empty";
2
+ import { cn } from "#lib/utils";
3
+ import { emptyMediaVariants } from "#variants/empty";
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 { Label } from "#/components/label";
3
- import type { FieldVariants } from "#/variants/field";
2
+ import { Label } from "#components/label";
3
+ import type { FieldVariants } from "#variants/field";
4
4
  /**
5
5
  * @since 0.3.16-canary.0
6
6
  */
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useMemo } from "react";
3
- import { Label } from "#/components/label";
4
- import { Separator } from "#/components/separator";
5
- import { cn } from "#/lib/utils";
6
- import { fieldVariants } from "#/variants/field";
3
+ import { Label } from "#components/label";
4
+ import { Separator } from "#components/separator";
5
+ import { cn } from "#lib/utils";
6
+ import { fieldVariants } from "#variants/field";
7
7
  /**
8
8
  * @since 0.3.16-canary.0
9
9
  */
@@ -3,8 +3,8 @@ import { Context } from "radix-ui/internal";
3
3
  import * as Slot from "radix-ui/slot";
4
4
  import { useId } from "react";
5
5
  import { Controller, FormProvider, useFormContext, useFormState } from "react-hook-form";
6
- import { Label } from "#/components/label";
7
- import { cn } from "#/lib/utils";
6
+ import { Label } from "#components/label";
7
+ import { cn } from "#lib/utils";
8
8
  /**
9
9
  * @since 0.3.16-canary.0
10
10
  */
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as HoverCardPrimitive from "radix-ui/hover-card";
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,8 +1,8 @@
1
1
  import type { ComponentProps, JSX } from "react";
2
- import type { ButtonProps } from "#/components/button";
3
- import type { InputProps } from "#/components/input";
4
- import type { TextareaProps } from "#/components/textarea";
5
- import type { InputGroupAddonVariants, InputGroupButtonVariants } from "#/variants/input-group";
2
+ import type { ButtonProps } from "#components/button";
3
+ import type { InputProps } from "#components/input";
4
+ import type { TextareaProps } from "#components/textarea";
5
+ import type { InputGroupAddonVariants, InputGroupButtonVariants } from "#variants/input-group";
6
6
  /**
7
7
  * @since 0.3.16-canary.0
8
8
  */
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Button } from "#/components/button";
3
- import { Input } from "#/components/input";
4
- import { Textarea } from "#/components/textarea";
5
- import { cn } from "#/lib/utils";
6
- import { inputGroupAddonVariants, inputGroupButtonVariants, inputGroupVariants } from "#/variants/input-group";
2
+ import { Button } from "#components/button";
3
+ import { Input } from "#components/input";
4
+ import { Textarea } from "#components/textarea";
5
+ import { cn } from "#lib/utils";
6
+ import { inputGroupAddonVariants, inputGroupButtonVariants, inputGroupVariants } from "#variants/input-group";
7
7
  /**
8
8
  * @since 0.3.16-canary.0
9
9
  */
@@ -1,5 +1,5 @@
1
1
  import type { ComponentProps, JSX } from "react";
2
- import * as InputNumberPrimitive from "#/primitives/input-number";
2
+ import * as InputNumberPrimitive from "#primitives/input-number";
3
3
  /**
4
4
  * @since 0.3.16-canary.0
5
5
  */
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { ChevronDownIcon, ChevronUpIcon, MinusIcon, PlusIcon } from "lucide-react";
3
- import { Spinner } from "#/components/spinner";
4
- import { cn } from "#/lib/utils";
5
- import * as InputNumberPrimitive from "#/primitives/input-number";
6
- import { buttonVariants } from "#/variants/button";
3
+ import { Spinner } from "#components/spinner";
4
+ import { cn } from "#lib/utils";
5
+ import * as InputNumberPrimitive from "#primitives/input-number";
6
+ import { buttonVariants } from "#variants/button";
7
7
  /**
8
8
  * The container that owns the numeric state (value, min, max, step, formatting).
9
9
  * Compose an {@link InputNumberField} with an {@link InputNumberStepper}, or with
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { OTPInput, OTPInputContext } from "input-otp";
3
3
  import { MinusIcon } from "lucide-react";
4
4
  import { use } from "react";
5
- import { cn } from "#/lib/utils";
5
+ import { cn } from "#lib/utils";
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 { InputGroupInput } from "#/components/input-group";
2
+ import { InputGroupInput } from "#components/input-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 { EyeIcon, EyeOffIcon } from "lucide-react";
3
3
  import { useCallback, useState } from "react";
4
- import { InputGroup, InputGroupButton, InputGroupInput } from "#/components/input-group";
4
+ import { InputGroup, InputGroupButton, InputGroupInput } from "#components/input-group";
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 { InputGroupInput } from "#/components/input-group";
2
+ import { InputGroupInput } from "#components/input-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 { SearchIcon, XIcon } from "lucide-react";
3
3
  import { useControllableState } from "radix-ui/internal";
4
- import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput } from "#/components/input-group";
4
+ import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput } from "#components/input-group";
5
5
  /**
6
6
  * @since 0.3.16-canary.0
7
7
  */
@@ -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
  */