@codefast/ui 0.9.2 → 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 (184) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/README.md +1 -1
  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 +1 -1
  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 +3 -3
  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 +1 -1
  32. package/dist/components/command.js +3 -3
  33. package/dist/components/context-menu.js +1 -1
  34. package/dist/components/dialog.js +2 -2
  35. package/dist/components/drawer.d.ts +2 -2
  36. package/dist/components/drawer.js +2 -2
  37. package/dist/components/dropdown-menu.js +1 -1
  38. package/dist/components/empty.d.ts +1 -1
  39. package/dist/components/empty.js +2 -2
  40. package/dist/components/field.d.ts +2 -2
  41. package/dist/components/field.js +4 -4
  42. package/dist/components/form.js +2 -2
  43. package/dist/components/hover-card.js +1 -1
  44. package/dist/components/input-group.d.ts +4 -4
  45. package/dist/components/input-group.js +5 -5
  46. package/dist/components/input-number.d.ts +1 -1
  47. package/dist/components/input-number.js +4 -4
  48. package/dist/components/input-otp.js +1 -1
  49. package/dist/components/input-password.d.ts +1 -1
  50. package/dist/components/input-password.js +1 -1
  51. package/dist/components/input-search.d.ts +1 -1
  52. package/dist/components/input-search.js +1 -1
  53. package/dist/components/input.js +1 -1
  54. package/dist/components/item.d.ts +2 -2
  55. package/dist/components/item.js +3 -3
  56. package/dist/components/kbd.js +1 -1
  57. package/dist/components/label.js +1 -1
  58. package/dist/components/marker.d.ts +1 -1
  59. package/dist/components/marker.js +2 -2
  60. package/dist/components/menubar.js +1 -1
  61. package/dist/components/message-scroller.d.ts +3 -3
  62. package/dist/components/message-scroller.js +3 -3
  63. package/dist/components/message.js +1 -1
  64. package/dist/components/native-select.js +1 -1
  65. package/dist/components/navigation-menu.js +2 -2
  66. package/dist/components/pagination.d.ts +2 -2
  67. package/dist/components/pagination.js +2 -2
  68. package/dist/components/popover.js +1 -1
  69. package/dist/components/progress-circle.d.ts +2 -2
  70. package/dist/components/progress-circle.js +3 -3
  71. package/dist/components/progress.js +1 -1
  72. package/dist/components/radio-cards.js +2 -2
  73. package/dist/components/radio-group.js +1 -1
  74. package/dist/components/radio.js +1 -1
  75. package/dist/components/resizable.js +1 -1
  76. package/dist/components/scroll-area.d.ts +1 -1
  77. package/dist/components/scroll-area.js +2 -2
  78. package/dist/components/select.js +1 -1
  79. package/dist/components/separator.d.ts +1 -1
  80. package/dist/components/separator.js +2 -2
  81. package/dist/components/sheet.d.ts +2 -2
  82. package/dist/components/sheet.js +3 -3
  83. package/dist/components/sidebar.d.ts +5 -5
  84. package/dist/components/sidebar.js +9 -9
  85. package/dist/components/skeleton.js +1 -1
  86. package/dist/components/slider.js +1 -1
  87. package/dist/components/spinner.js +1 -1
  88. package/dist/components/switch.js +1 -1
  89. package/dist/components/table.js +1 -1
  90. package/dist/components/tabs.d.ts +1 -1
  91. package/dist/components/tabs.js +2 -2
  92. package/dist/components/textarea.js +1 -1
  93. package/dist/components/toggle-group.d.ts +2 -2
  94. package/dist/components/toggle-group.js +2 -2
  95. package/dist/components/toggle.d.ts +1 -1
  96. package/dist/components/toggle.js +1 -1
  97. package/dist/components/tooltip.js +1 -1
  98. package/dist/hooks/use-is-mobile.js +1 -1
  99. package/dist/hooks/use-message-scroller-commands.d.ts +2 -2
  100. package/dist/hooks/use-message-scroller-commands.js +2 -2
  101. package/dist/hooks/use-message-scroller-controller.d.ts +2 -2
  102. package/dist/hooks/use-message-scroller-controller.js +4 -4
  103. package/dist/hooks/use-message-scroller-refs.d.ts +1 -1
  104. package/dist/hooks/use-message-scroller-refs.js +3 -3
  105. package/dist/index.d.ts +180 -180
  106. package/dist/index.js +93 -93
  107. package/dist/lib/message-scroller/geometry.d.ts +1 -1
  108. package/dist/lib/message-scroller/geometry.js +1 -1
  109. package/dist/lib/message-scroller/stores.d.ts +1 -1
  110. package/dist/lib/message-scroller/stores.js +1 -1
  111. package/dist/lib/message-scroller/types.d.ts +1 -1
  112. package/dist/primitives/input-number.d.ts +1 -1
  113. package/dist/primitives/input-number.js +2 -2
  114. package/dist/primitives/message-scroller.d.ts +6 -6
  115. package/dist/primitives/message-scroller.js +3 -3
  116. package/dist/variants/alert.d.ts +1 -1
  117. package/dist/variants/alert.js +1 -1
  118. package/dist/variants/attachment.d.ts +1 -1
  119. package/dist/variants/attachment.js +1 -1
  120. package/dist/variants/badge.d.ts +1 -1
  121. package/dist/variants/badge.js +1 -1
  122. package/dist/variants/bubble.d.ts +1 -1
  123. package/dist/variants/bubble.js +1 -1
  124. package/dist/variants/button-group.d.ts +1 -1
  125. package/dist/variants/button-group.js +1 -1
  126. package/dist/variants/button.d.ts +1 -1
  127. package/dist/variants/button.js +1 -1
  128. package/dist/variants/empty.d.ts +1 -1
  129. package/dist/variants/empty.js +1 -1
  130. package/dist/variants/field.d.ts +1 -1
  131. package/dist/variants/field.js +1 -1
  132. package/dist/variants/input-group.d.ts +1 -1
  133. package/dist/variants/input-group.js +1 -1
  134. package/dist/variants/item.d.ts +1 -1
  135. package/dist/variants/item.js +1 -1
  136. package/dist/variants/marker.d.ts +1 -1
  137. package/dist/variants/marker.js +1 -1
  138. package/dist/variants/navigation-menu.d.ts +1 -1
  139. package/dist/variants/navigation-menu.js +1 -1
  140. package/dist/variants/progress-circle.d.ts +1 -1
  141. package/dist/variants/progress-circle.js +1 -1
  142. package/dist/variants/scroll-area.d.ts +1 -1
  143. package/dist/variants/scroll-area.js +1 -1
  144. package/dist/variants/separator.d.ts +1 -1
  145. package/dist/variants/separator.js +1 -1
  146. package/dist/variants/sheet.d.ts +1 -1
  147. package/dist/variants/sheet.js +1 -1
  148. package/dist/variants/sidebar.d.ts +1 -1
  149. package/dist/variants/sidebar.js +1 -1
  150. package/dist/variants/tabs.d.ts +1 -1
  151. package/dist/variants/tabs.js +1 -1
  152. package/dist/variants/toggle.d.ts +1 -1
  153. package/dist/variants/toggle.js +1 -1
  154. package/package.json +9 -8
  155. package/src/css/foundation/base.css +68 -0
  156. package/src/css/foundation/motion.css +65 -0
  157. package/src/css/foundation/source.css +10 -0
  158. package/src/css/foundation/tokens.css +83 -0
  159. package/src/css/foundation/utilities.css +451 -0
  160. package/src/css/foundation/variants.css +108 -0
  161. package/src/css/preset.css +14 -0
  162. package/src/css/style.css +11 -0
  163. package/src/css/themes/amber.css +105 -0
  164. package/src/css/themes/blue.css +105 -0
  165. package/src/css/themes/cyan.css +105 -0
  166. package/src/css/themes/emerald.css +105 -0
  167. package/src/css/themes/fuchsia.css +105 -0
  168. package/src/css/themes/gray.css +105 -0
  169. package/src/css/themes/green.css +105 -0
  170. package/src/css/themes/indigo.css +105 -0
  171. package/src/css/themes/lime.css +105 -0
  172. package/src/css/themes/neutral.css +105 -0
  173. package/src/css/themes/orange.css +105 -0
  174. package/src/css/themes/pink.css +105 -0
  175. package/src/css/themes/purple.css +105 -0
  176. package/src/css/themes/red.css +105 -0
  177. package/src/css/themes/rose.css +105 -0
  178. package/src/css/themes/sky.css +105 -0
  179. package/src/css/themes/slate.css +105 -0
  180. package/src/css/themes/stone.css +105 -0
  181. package/src/css/themes/teal.css +105 -0
  182. package/src/css/themes/violet.css +105 -0
  183. package/src/css/themes/yellow.css +105 -0
  184. package/src/css/themes/zinc.css +105 -0
@@ -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
  */
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as LabelPrimitive from "radix-ui/label";
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 { MarkerVariants } from "#/variants/marker";
2
+ import type { MarkerVariants } from "#variants/marker";
3
3
  /**
4
4
  * Inline divider for a message feed — a date, unread line, or section label.
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 { markerVariants } from "#/variants/marker";
3
+ import { cn } from "#lib/utils";
4
+ import { markerVariants } from "#variants/marker";
5
5
  /**
6
6
  * @since 0.5.0-canary.3
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 MenubarPrimitive from "radix-ui/menubar";
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 type { ComponentProps, JSX } from "react";
2
- import { Button } from "#/components/button";
3
- import { MessageScroller as MessageScrollerPrimitive, MessageScrollerButton as MessageScrollerButtonPrimitive, MessageScrollerContent as MessageScrollerContentPrimitive, MessageScrollerItem as MessageScrollerItemPrimitive, MessageScrollerProvider as MessageScrollerProviderPrimitive, MessageScrollerViewport as MessageScrollerViewportPrimitive, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility } from "#/primitives/message-scroller";
2
+ import { Button } from "#components/button";
3
+ import { MessageScroller as MessageScrollerPrimitive, MessageScrollerButton as MessageScrollerButtonPrimitive, MessageScrollerContent as MessageScrollerContentPrimitive, MessageScrollerItem as MessageScrollerItemPrimitive, MessageScrollerProvider as MessageScrollerProviderPrimitive, MessageScrollerViewport as MessageScrollerViewportPrimitive, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility } from "#primitives/message-scroller";
4
4
  /**
5
5
  * Owns scroll behavior for a transcript. Renders no DOM; wrap the frame.
6
6
  *
@@ -63,4 +63,4 @@ type MessageScrollerButtonProps = ComponentProps<typeof MessageScrollerButtonPri
63
63
  declare function MessageScrollerButton({ children, className, direction, render, size, variant, ...props }: MessageScrollerButtonProps): JSX.Element;
64
64
  export { MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility, };
65
65
  export type { MessageScrollerButtonProps, MessageScrollerContentProps, MessageScrollerItemProps, MessageScrollerProps, MessageScrollerProviderProps, MessageScrollerViewportProps, };
66
- export type { MessageScrollerDefaultScrollPosition, MessageScrollerScrollAlign, MessageScrollerScrollable, MessageScrollerScrollOptions, MessageScrollerVisibilityState, } from "#/lib/message-scroller/types";
66
+ export type { MessageScrollerDefaultScrollPosition, MessageScrollerScrollAlign, MessageScrollerScrollable, MessageScrollerScrollOptions, MessageScrollerVisibilityState, } from "#lib/message-scroller/types";
@@ -1,8 +1,8 @@
1
1
  import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { ArrowDownIcon } from "lucide-react";
3
- import { Button } from "#/components/button";
4
- import { cn } from "#/lib/utils";
5
- import { MessageScroller as MessageScrollerPrimitive, MessageScrollerButton as MessageScrollerButtonPrimitive, MessageScrollerContent as MessageScrollerContentPrimitive, MessageScrollerItem as MessageScrollerItemPrimitive, MessageScrollerProvider as MessageScrollerProviderPrimitive, MessageScrollerViewport as MessageScrollerViewportPrimitive, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility, } from "#/primitives/message-scroller";
3
+ import { Button } from "#components/button";
4
+ import { cn } from "#lib/utils";
5
+ import { MessageScroller as MessageScrollerPrimitive, MessageScrollerButton as MessageScrollerButtonPrimitive, MessageScrollerContent as MessageScrollerContentPrimitive, MessageScrollerItem as MessageScrollerItemPrimitive, MessageScrollerProvider as MessageScrollerProviderPrimitive, MessageScrollerViewport as MessageScrollerViewportPrimitive, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility, } from "#primitives/message-scroller";
6
6
  /**
7
7
  * @since 0.5.0-canary.3
8
8
  */
@@ -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.5.0-canary.3
5
5
  */
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { ChevronDownIcon } from "lucide-react";
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 { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { ChevronDownIcon } from "lucide-react";
3
3
  import * as NavigationMenuPrimitive from "radix-ui/navigation-menu";
4
- import { cn } from "#/lib/utils";
5
- import { navigationMenuTriggerVariants } from "#/variants/navigation-menu";
4
+ import { cn } from "#lib/utils";
5
+ import { navigationMenuTriggerVariants } from "#variants/navigation-menu";
6
6
  /**
7
7
  * @since 0.3.16-canary.0
8
8
  */
@@ -1,6 +1,6 @@
1
1
  import type { ComponentProps, JSX } from "react";
2
- import type { VariantProps } from "#/lib/utils";
3
- import { buttonVariants } from "#/variants/button";
2
+ import type { VariantProps } from "#lib/utils";
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 { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
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,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as PopoverPrimitive from "radix-ui/popover";
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,6 +1,6 @@
1
1
  import type { ComponentProps, JSX } from "react";
2
- import * as ProgressCirclePrimitive from "#/primitives/progress-circle";
3
- import type { ProgressCircleVariants } from "#/variants/progress-circle";
2
+ import * as ProgressCirclePrimitive from "#primitives/progress-circle";
3
+ import type { ProgressCircleVariants } from "#variants/progress-circle";
4
4
  /**
5
5
  * @since 0.3.16-canary.0
6
6
  */
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useCallback, useMemo } from "react";
3
- import { useAnimatedValue } from "#/hooks/use-animated-value";
4
- import * as ProgressCirclePrimitive from "#/primitives/progress-circle";
5
- import { progressCircleVariants } from "#/variants/progress-circle";
3
+ import { useAnimatedValue } from "#hooks/use-animated-value";
4
+ import * as ProgressCirclePrimitive from "#primitives/progress-circle";
5
+ import { progressCircleVariants } from "#variants/progress-circle";
6
6
  /**
7
7
  * @since 0.3.16-canary.0
8
8
  */
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as ProgressPrimitive from "radix-ui/progress";
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,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as RadioGroupPrimitive from "radix-ui/radio-group";
3
- import { Label } from "#/components/label";
4
- import { cn } from "#/lib/utils";
3
+ import { Label } from "#components/label";
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 { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as RadioGroupPrimitive from "radix-ui/radio-group";
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,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { composeEventHandlers } from "radix-ui/internal";
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,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as ResizablePrimitive from "react-resizable-panels";
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,7 +1,7 @@
1
1
  import { Context } from "radix-ui/internal";
2
2
  import * as ScrollAreaPrimitive from "radix-ui/scroll-area";
3
3
  import type { ComponentProps, JSX } from "react";
4
- import type { ScrollAreaScrollbarVariants } from "#/variants/scroll-area";
4
+ import type { ScrollAreaScrollbarVariants } from "#variants/scroll-area";
5
5
  type ScopedProps<P> = P & {
6
6
  __scopeScrollArea?: Context.Scope;
7
7
  };
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Context } from "radix-ui/internal";
3
3
  import * as ScrollAreaPrimitive from "radix-ui/scroll-area";
4
- import { cn } from "#/lib/utils";
5
- import { scrollAreaScrollbarVariants } from "#/variants/scroll-area";
4
+ import { cn } from "#lib/utils";
5
+ import { scrollAreaScrollbarVariants } from "#variants/scroll-area";
6
6
  // ── Context: ScrollArea ──────────────────────────────────────────────────────────────────────────────────────────────
7
7
  const SCROLL_AREA_NAME = "ScrollArea";
8
8
  const [createScrollAreaContext] = Context.createContextScope(SCROLL_AREA_NAME);
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
3
3
  import * as SelectPrimitive from "radix-ui/select";
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 SeparatorPrimitive from "radix-ui/separator";
2
2
  import type { ComponentProps, JSX } from "react";
3
- import type { SeparatorVariants } from "#/variants/separator";
3
+ import type { SeparatorVariants } from "#variants/separator";
4
4
  /**
5
5
  * @since 0.3.16-canary.0
6
6
  */
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as SeparatorPrimitive from "radix-ui/separator";
3
- import { cn } from "#/lib/utils";
4
- import { separatorVariants } from "#/variants/separator";
3
+ import { cn } from "#lib/utils";
4
+ import { separatorVariants } from "#variants/separator";
5
5
  /**
6
6
  * @since 0.3.16-canary.0
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import * as SheetPrimitive from "radix-ui/dialog";
2
2
  import type { ComponentProps, JSX } from "react";
3
- import type { ButtonVariants } from "#/variants/button";
4
- import type { SheetContentVariants } from "#/variants/sheet";
3
+ import type { ButtonVariants } from "#variants/button";
4
+ import type { SheetContentVariants } from "#variants/sheet";
5
5
  /**
6
6
  * @since 0.3.16-canary.0
7
7
  */
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { XIcon } from "lucide-react";
3
3
  import * as SheetPrimitive from "radix-ui/dialog";
4
- import { cn } from "#/lib/utils";
5
- import { buttonVariants } from "#/variants/button";
6
- import { sheetContentVariants } from "#/variants/sheet";
4
+ import { cn } from "#lib/utils";
5
+ import { buttonVariants } from "#variants/button";
6
+ import { sheetContentVariants } from "#variants/sheet";
7
7
  /**
8
8
  * @since 0.3.16-canary.0
9
9
  */
@@ -1,9 +1,9 @@
1
1
  import type { ComponentProps, Dispatch, JSX, SetStateAction } from "react";
2
- import { Button } from "#/components/button";
3
- import { Input } from "#/components/input";
4
- import { Separator } from "#/components/separator";
5
- import { TooltipContent } from "#/components/tooltip";
6
- import type { SidebarMenuButtonVariants } from "#/variants/sidebar";
2
+ import { Button } from "#components/button";
3
+ import { Input } from "#components/input";
4
+ import { Separator } from "#components/separator";
5
+ import { TooltipContent } from "#components/tooltip";
6
+ import type { SidebarMenuButtonVariants } from "#variants/sidebar";
7
7
  interface SidebarContextValue {
8
8
  isMobile: boolean;
9
9
  open: boolean;
@@ -3,15 +3,15 @@ import { PanelLeftIcon } from "lucide-react";
3
3
  import { Context } from "radix-ui/internal";
4
4
  import * as Slot from "radix-ui/slot";
5
5
  import { useCallback, useEffect, useId, useState } from "react";
6
- import { Button } from "#/components/button";
7
- import { Input } from "#/components/input";
8
- import { Separator } from "#/components/separator";
9
- import { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle } from "#/components/sheet";
10
- import { Skeleton } from "#/components/skeleton";
11
- import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "#/components/tooltip";
12
- import { useIsMobile } from "#/hooks/use-is-mobile";
13
- import { cn } from "#/lib/utils";
14
- import { sidebarMenuButtonVariants } from "#/variants/sidebar";
6
+ import { Button } from "#components/button";
7
+ import { Input } from "#components/input";
8
+ import { Separator } from "#components/separator";
9
+ import { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle } from "#components/sheet";
10
+ import { Skeleton } from "#components/skeleton";
11
+ import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "#components/tooltip";
12
+ import { useIsMobile } from "#hooks/use-is-mobile";
13
+ import { cn } from "#lib/utils";
14
+ import { sidebarMenuButtonVariants } from "#variants/sidebar";
15
15
  const SIDEBAR_COOKIE_NAME = "sidebar_state";
16
16
  const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
17
17
  const SIDEBAR_WIDTH = "16rem";
@@ -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
  */
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as SliderPrimitive from "radix-ui/slider";
3
3
  import { useMemo } from "react";
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 { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as VisuallyHidden from "radix-ui/visually-hidden";
3
- import { cn } from "#/lib/utils";
3
+ import { cn } from "#lib/utils";
4
4
  // ── Component: Spinner ───────────────────────────────────────────────────────────────────────────────────────────────
5
5
  const SPINNER_COUNT = 8;
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as SwitchPrimitives from "radix-ui/switch";
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 { 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
  */
@@ -1,6 +1,6 @@
1
1
  import * as TabsPrimitive from "radix-ui/tabs";
2
2
  import type { ComponentProps, JSX } from "react";
3
- import type { TabsListVariants } from "#/variants/tabs";
3
+ import type { TabsListVariants } from "#variants/tabs";
4
4
  /**
5
5
  * @since 0.3.16-canary.0
6
6
  */
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as TabsPrimitive from "radix-ui/tabs";
3
- import { cn } from "#/lib/utils";
4
- import { tabsListVariants } from "#/variants/tabs";
3
+ import { cn } from "#lib/utils";
4
+ import { tabsListVariants } from "#variants/tabs";
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
  */
@@ -1,8 +1,8 @@
1
1
  import { Context } from "radix-ui/internal";
2
2
  import * as ToggleGroupPrimitive from "radix-ui/toggle-group";
3
3
  import type { ComponentProps, JSX } from "react";
4
- import type { VariantProps } from "#/lib/utils";
5
- import { toggleVariants } from "#/variants/toggle";
4
+ import type { VariantProps } from "#lib/utils";
5
+ import { toggleVariants } from "#variants/toggle";
6
6
  type ScopedProps<P> = P & {
7
7
  __scopeToggleGroup?: Context.Scope;
8
8
  };
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Context } from "radix-ui/internal";
3
3
  import * as ToggleGroupPrimitive from "radix-ui/toggle-group";
4
- import { cn } from "#/lib/utils";
5
- import { toggleVariants } from "#/variants/toggle";
4
+ import { cn } from "#lib/utils";
5
+ import { toggleVariants } from "#variants/toggle";
6
6
  // ── Context: ToggleGroup ─────────────────────────────────────────────────────────────────────────────────────────────
7
7
  const TOGGLE_GROUP_NAME = "ToggleGroup";
8
8
  const [createToggleGroupContext] = Context.createContextScope(TOGGLE_GROUP_NAME, [
@@ -1,6 +1,6 @@
1
1
  import * as TogglePrimitive from "radix-ui/toggle";
2
2
  import type { ComponentProps, JSX } from "react";
3
- import type { ToggleVariants } from "#/variants/toggle";
3
+ import type { ToggleVariants } from "#variants/toggle";
4
4
  /**
5
5
  * @since 0.3.16-canary.0
6
6
  */
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as TogglePrimitive from "radix-ui/toggle";
3
- import { toggleVariants } from "#/variants/toggle";
3
+ import { toggleVariants } from "#variants/toggle";
4
4
  /**
5
5
  * @since 0.3.16-canary.0
6
6
  */
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as TooltipPrimitive from "radix-ui/tooltip";
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,4 +1,4 @@
1
- import { useMediaQuery } from "#/hooks/use-media-query";
1
+ import { useMediaQuery } from "#hooks/use-media-query";
2
2
  /**
3
3
  * Determines whether the current viewport should be treated as mobile.
4
4
  *
@@ -1,5 +1,5 @@
1
- import type { MessageScrollerRefs } from "#/hooks/use-message-scroller-refs";
2
- import type { MessageScrollerScrollOptions } from "#/lib/message-scroller/types";
1
+ import type { MessageScrollerRefs } from "#hooks/use-message-scroller-refs";
2
+ import type { MessageScrollerScrollOptions } from "#lib/message-scroller/types";
3
3
  /**
4
4
  * Imperative scroll primitives, split from the controller so the move mechanics
5
5
  * live apart from the policy that decides when to run them. Each command resolves
@@ -1,8 +1,8 @@
1
1
  // Callbacks read from stable refs; omitting them from deps is intentional and keeps identities stable.
2
2
  /* oxlint-disable react-hooks/exhaustive-deps */
3
3
  import { useCallback } from "react";
4
- import { getElementScrollTop, getElementViewportTop, getMaxScrollTop, getTailSpacerHeight, } from "#/lib/message-scroller/geometry";
5
- import { AUTOSCROLLING_CLEAR_DELAY, SCROLL_POSITION_EPSILON } from "#/lib/message-scroller/types";
4
+ import { getElementScrollTop, getElementViewportTop, getMaxScrollTop, getTailSpacerHeight, } from "#lib/message-scroller/geometry";
5
+ import { AUTOSCROLLING_CLEAR_DELAY, SCROLL_POSITION_EPSILON } from "#lib/message-scroller/types";
6
6
  /**
7
7
  * Imperative scroll primitives, split from the controller so the move mechanics
8
8
  * live apart from the policy that decides when to run them. Each command resolves
@@ -1,5 +1,5 @@
1
- import type { MessageScrollerRefs } from "#/hooks/use-message-scroller-refs";
2
- import type { MessageScrollerContextValue, MessageScrollerProviderProps, MessageScrollerRegisterMessage } from "#/lib/message-scroller/types";
1
+ import type { MessageScrollerRefs } from "#hooks/use-message-scroller-refs";
2
+ import type { MessageScrollerContextValue, MessageScrollerProviderProps, MessageScrollerRegisterMessage } from "#lib/message-scroller/types";
3
3
  /**
4
4
  * Orchestrator hook. Decides when to scroll and delegates the moves to
5
5
  * useMessageScrollerCommands; state and visibility commits are coalesced on a
@@ -1,10 +1,10 @@
1
1
  // Callbacks read from stable refs; omitting them from deps is intentional and keeps identities stable.
2
2
  /* oxlint-disable react-hooks/exhaustive-deps */
3
3
  import { useCallback, useEffect, useLayoutEffect, useMemo, useRef } from "react";
4
- import { useMessageScrollerCommands } from "#/hooks/use-message-scroller-commands";
5
- import { useMessageScrollerRefs } from "#/hooks/use-message-scroller-refs";
6
- import { getContentBottom, getElementTop, getElementViewportTop, getFirstVisibleMessageItem, getFlexGap, getLastScrollAnchor, getMessageScrollerItems, getMessageScrollerScrollable, getMessageScrollerVisibilityState, getNewScrollAnchor, getUnanchoredScrollAnchor, hasMultipleNewScrollAnchors, } from "#/lib/message-scroller/geometry";
7
- import { DEFAULT_SCROLL_EDGE_THRESHOLD, DEFAULT_SCROLL_MARGIN, DEFAULT_SCROLL_PREVIOUS_ITEM_PEEK, EMPTY_MESSAGE_SCROLLER_VISIBILITY_STATE, SCROLL_POSITION_EPSILON, } from "#/lib/message-scroller/types";
4
+ import { useMessageScrollerCommands } from "#hooks/use-message-scroller-commands";
5
+ import { useMessageScrollerRefs } from "#hooks/use-message-scroller-refs";
6
+ import { getContentBottom, getElementTop, getElementViewportTop, getFirstVisibleMessageItem, getFlexGap, getLastScrollAnchor, getMessageScrollerItems, getMessageScrollerScrollable, getMessageScrollerVisibilityState, getNewScrollAnchor, getUnanchoredScrollAnchor, hasMultipleNewScrollAnchors, } from "#lib/message-scroller/geometry";
7
+ import { DEFAULT_SCROLL_EDGE_THRESHOLD, DEFAULT_SCROLL_MARGIN, DEFAULT_SCROLL_PREVIOUS_ITEM_PEEK, EMPTY_MESSAGE_SCROLLER_VISIBILITY_STATE, SCROLL_POSITION_EPSILON, } from "#lib/message-scroller/types";
8
8
  // Builds a ref callback that stores the node and runs onMount once it attaches.
9
9
  function useElementRef(elementRef, onMount) {
10
10
  return useCallback((element) => {
@@ -1,5 +1,5 @@
1
1
  import type { RefObject } from "react";
2
- import type { MessageScrollerMode, MessageScrollerScrollable, MessageScrollerScrollOptions, MessageScrollerStore, MessageScrollerVisibilityStore } from "#/lib/message-scroller/types";
2
+ import type { MessageScrollerMode, MessageScrollerScrollable, MessageScrollerScrollOptions, MessageScrollerStore, MessageScrollerVisibilityStore } from "#lib/message-scroller/types";
3
3
  /**
4
4
  * Shared mutable ref bag for one MessageScroller, closed over by both the
5
5
  * controller and the commands so writes are visible across them without prop
@@ -1,7 +1,7 @@
1
1
  import { useRef, useState } from "react";
2
- import { useLatest } from "#/hooks/use-latest";
3
- import { areScrollStatesEqual, createMessageScrollerStore, createMessageScrollerVisibilityStore, } from "#/lib/message-scroller/stores";
4
- import { EMPTY_MESSAGE_SCROLLER_SCROLLABLE } from "#/lib/message-scroller/types";
2
+ import { useLatest } from "#hooks/use-latest";
3
+ import { areScrollStatesEqual, createMessageScrollerStore, createMessageScrollerVisibilityStore, } from "#lib/message-scroller/stores";
4
+ import { EMPTY_MESSAGE_SCROLLER_SCROLLABLE } from "#lib/message-scroller/types";
5
5
  /**
6
6
  * Builds the per-instance ref bag: the two external stores constructed once, and
7
7
  * the latest prop values mirrored onto refs at commit so callbacks stay stable.