@codefast/ui 0.3.16-canary.2 → 0.3.16-canary.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 (223) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +1 -1
  3. package/dist/components/accordion.mjs +2 -2
  4. package/dist/components/alert-dialog.d.mts +1 -1
  5. package/dist/components/alert-dialog.mjs +4 -4
  6. package/dist/components/alert.d.mts +3 -13
  7. package/dist/components/alert.mjs +3 -23
  8. package/dist/components/badge.d.mts +3 -15
  9. package/dist/components/badge.mjs +2 -44
  10. package/dist/components/breadcrumb.mjs +1 -1
  11. package/dist/components/button-group.d.mts +3 -13
  12. package/dist/components/button-group.mjs +3 -24
  13. package/dist/components/button.d.mts +3 -25
  14. package/dist/components/button.mjs +2 -72
  15. package/dist/components/calendar.mjs +2 -1
  16. package/dist/components/carousel.d.mts +1 -2
  17. package/dist/components/chart.d.mts +2 -4
  18. package/dist/components/checkbox.mjs +2 -2
  19. package/dist/components/context-menu.mjs +2 -2
  20. package/dist/components/dialog.d.mts +1 -1
  21. package/dist/components/dialog.mjs +4 -4
  22. package/dist/components/drawer.d.mts +1 -1
  23. package/dist/components/drawer.mjs +2 -2
  24. package/dist/components/dropdown-menu.mjs +2 -2
  25. package/dist/components/empty.d.mts +3 -13
  26. package/dist/components/empty.mjs +3 -18
  27. package/dist/components/field.d.mts +3 -14
  28. package/dist/components/field.mjs +3 -32
  29. package/dist/components/form.d.mts +2 -4
  30. package/dist/components/hover-card.mjs +1 -1
  31. package/dist/components/input-group.d.mts +4 -31
  32. package/dist/components/input-group.mjs +3 -90
  33. package/dist/components/input-number.mjs +4 -4
  34. package/dist/components/input-otp.mjs +2 -2
  35. package/dist/components/input.mjs +1 -1
  36. package/dist/components/item.d.mts +4 -29
  37. package/dist/components/item.mjs +3 -56
  38. package/dist/components/menubar.mjs +2 -2
  39. package/dist/components/native-select.mjs +1 -1
  40. package/dist/components/navigation-menu.d.mts +1 -6
  41. package/dist/components/navigation-menu.mjs +8 -15
  42. package/dist/components/pagination.d.mts +1 -1
  43. package/dist/components/pagination.mjs +1 -1
  44. package/dist/components/popover.mjs +1 -1
  45. package/dist/components/progress-circle.d.mts +3 -47
  46. package/dist/components/progress-circle.mjs +2 -47
  47. package/dist/components/progress.mjs +1 -1
  48. package/dist/components/radio-group.mjs +1 -1
  49. package/dist/components/radio.mjs +1 -1
  50. package/dist/components/scroll-area.d.mts +3 -19
  51. package/dist/components/scroll-area.mjs +4 -61
  52. package/dist/components/select.d.mts +1 -1
  53. package/dist/components/select.mjs +3 -3
  54. package/dist/components/separator.d.mts +3 -18
  55. package/dist/components/separator.mjs +3 -23
  56. package/dist/components/sheet.d.mts +6 -18
  57. package/dist/components/sheet.mjs +6 -49
  58. package/dist/components/sidebar.d.mts +4 -19
  59. package/dist/components/sidebar.mjs +10 -46
  60. package/dist/components/skeleton.mjs +1 -1
  61. package/dist/components/slider.mjs +1 -1
  62. package/dist/components/spinner.mjs +1 -1
  63. package/dist/components/switch.mjs +2 -2
  64. package/dist/components/table.mjs +1 -1
  65. package/dist/components/tabs.mjs +1 -1
  66. package/dist/components/textarea.mjs +1 -1
  67. package/dist/components/toggle-group.d.mts +3 -2
  68. package/dist/components/toggle-group.mjs +1 -1
  69. package/dist/components/toggle.d.mts +2 -21
  70. package/dist/components/toggle.mjs +2 -39
  71. package/dist/components/tooltip.mjs +1 -1
  72. package/dist/index.d.mts +31 -16
  73. package/dist/index.mjs +30 -15
  74. package/dist/lib/utils.d.mts +1 -12
  75. package/dist/lib/utils.mjs +1 -9
  76. package/dist/primitives/checkbox-group.d.mts +1 -2
  77. package/dist/primitives/input-number.d.mts +1 -2
  78. package/dist/primitives/input.d.mts +1 -2
  79. package/dist/primitives/progress-circle.d.mts +1 -2
  80. package/dist/variants/alert.d.mts +18 -0
  81. package/dist/variants/alert.mjs +25 -0
  82. package/dist/variants/badge.d.mts +20 -0
  83. package/dist/variants/badge.mjs +46 -0
  84. package/dist/variants/button-group.d.mts +18 -0
  85. package/dist/variants/button-group.mjs +26 -0
  86. package/dist/variants/button.d.mts +30 -0
  87. package/dist/variants/button.mjs +76 -0
  88. package/dist/variants/empty.d.mts +18 -0
  89. package/dist/variants/empty.mjs +20 -0
  90. package/dist/variants/field.d.mts +19 -0
  91. package/dist/variants/field.mjs +34 -0
  92. package/dist/variants/input-group.d.mts +43 -0
  93. package/dist/variants/input-group.mjs +93 -0
  94. package/dist/variants/item.d.mts +37 -0
  95. package/dist/variants/item.mjs +60 -0
  96. package/dist/variants/navigation-menu.d.mts +13 -0
  97. package/dist/variants/navigation-menu.mjs +12 -0
  98. package/dist/variants/progress-circle.d.mts +52 -0
  99. package/dist/variants/progress-circle.mjs +49 -0
  100. package/dist/variants/scroll-area.d.mts +24 -0
  101. package/dist/variants/scroll-area.mjs +63 -0
  102. package/dist/variants/separator.d.mts +23 -0
  103. package/dist/variants/separator.mjs +25 -0
  104. package/dist/variants/sheet.d.mts +20 -0
  105. package/dist/variants/sheet.mjs +50 -0
  106. package/dist/variants/sidebar.d.mts +23 -0
  107. package/dist/variants/sidebar.mjs +42 -0
  108. package/dist/variants/toggle.d.mts +23 -0
  109. package/dist/variants/toggle.mjs +43 -0
  110. package/package.json +168 -20
  111. package/src/components/accordion.tsx +156 -0
  112. package/src/components/alert-dialog.tsx +314 -0
  113. package/src/components/alert.tsx +86 -0
  114. package/src/components/aspect-ratio.tsx +28 -0
  115. package/src/components/avatar.tsx +84 -0
  116. package/src/components/badge.tsx +38 -0
  117. package/src/components/breadcrumb.tsx +197 -0
  118. package/src/components/button-group.tsx +107 -0
  119. package/src/components/button.tsx +66 -0
  120. package/src/components/calendar.tsx +277 -0
  121. package/src/components/card.tsx +175 -0
  122. package/src/components/carousel.tsx +367 -0
  123. package/src/components/chart.tsx +587 -0
  124. package/src/components/checkbox-cards.tsx +92 -0
  125. package/src/components/checkbox-group.tsx +83 -0
  126. package/src/components/checkbox.tsx +65 -0
  127. package/src/components/collapsible.tsx +60 -0
  128. package/src/components/command.tsx +311 -0
  129. package/src/components/context-menu.tsx +489 -0
  130. package/src/components/dialog.tsx +295 -0
  131. package/src/components/drawer.tsx +271 -0
  132. package/src/components/dropdown-menu.tsx +498 -0
  133. package/src/components/empty.tsx +169 -0
  134. package/src/components/field.tsx +362 -0
  135. package/src/components/form.tsx +300 -0
  136. package/src/components/hover-card.tsx +116 -0
  137. package/src/components/input-group.tsx +224 -0
  138. package/src/components/input-number.tsx +161 -0
  139. package/src/components/input-otp.tsx +151 -0
  140. package/src/components/input-password.tsx +74 -0
  141. package/src/components/input-search.tsx +98 -0
  142. package/src/components/input.tsx +52 -0
  143. package/src/components/item.tsx +280 -0
  144. package/src/components/kbd.tsx +59 -0
  145. package/src/components/label.tsx +44 -0
  146. package/src/components/menubar.tsx +531 -0
  147. package/src/components/native-select.tsx +96 -0
  148. package/src/components/navigation-menu.tsx +295 -0
  149. package/src/components/pagination.tsx +204 -0
  150. package/src/components/popover.tsx +139 -0
  151. package/src/components/progress-circle.tsx +203 -0
  152. package/src/components/progress.tsx +54 -0
  153. package/src/components/radio-cards.tsx +85 -0
  154. package/src/components/radio-group.tsx +79 -0
  155. package/src/components/radio.tsx +61 -0
  156. package/src/components/resizable.tsx +99 -0
  157. package/src/components/scroll-area.tsx +115 -0
  158. package/src/components/select.tsx +319 -0
  159. package/src/components/separator.tsx +74 -0
  160. package/src/components/sheet.tsx +278 -0
  161. package/src/components/sidebar.tsx +1056 -0
  162. package/src/components/skeleton.tsx +37 -0
  163. package/src/components/slider.tsx +95 -0
  164. package/src/components/sonner.tsx +47 -0
  165. package/src/components/spinner.tsx +75 -0
  166. package/src/components/switch.tsx +66 -0
  167. package/src/components/table.tsx +200 -0
  168. package/src/components/tabs.tsx +128 -0
  169. package/src/components/textarea.tsx +49 -0
  170. package/src/components/toggle-group.tsx +141 -0
  171. package/src/components/toggle.tsx +39 -0
  172. package/src/components/tooltip.tsx +141 -0
  173. package/src/css/amber.css +59 -22
  174. package/src/css/blue.css +59 -22
  175. package/src/css/cyan.css +59 -22
  176. package/src/css/emerald.css +59 -22
  177. package/src/css/fuchsia.css +59 -22
  178. package/src/css/gray.css +59 -22
  179. package/src/css/green.css +59 -22
  180. package/src/css/indigo.css +59 -22
  181. package/src/css/lime.css +59 -22
  182. package/src/css/neutral.css +59 -22
  183. package/src/css/orange.css +59 -22
  184. package/src/css/pink.css +59 -22
  185. package/src/css/preset.css +32 -13
  186. package/src/css/purple.css +59 -22
  187. package/src/css/red.css +59 -22
  188. package/src/css/rose.css +59 -22
  189. package/src/css/sky.css +59 -22
  190. package/src/css/slate.css +59 -22
  191. package/src/css/stone.css +59 -22
  192. package/src/css/teal.css +59 -22
  193. package/src/css/violet.css +59 -22
  194. package/src/css/yellow.css +59 -22
  195. package/src/css/zinc.css +59 -22
  196. package/src/hooks/use-animated-value.ts +97 -0
  197. package/src/hooks/use-copy-to-clipboard.ts +63 -0
  198. package/src/hooks/use-is-mobile.ts +27 -0
  199. package/src/hooks/use-media-query.ts +71 -0
  200. package/src/hooks/use-mutation-observer.ts +54 -0
  201. package/src/hooks/use-pagination.ts +166 -0
  202. package/src/index.ts +720 -0
  203. package/src/lib/utils.ts +5 -0
  204. package/src/primitives/checkbox-group.tsx +360 -0
  205. package/src/primitives/input-number.tsx +1013 -0
  206. package/src/primitives/input.tsx +243 -0
  207. package/src/primitives/progress-circle.tsx +537 -0
  208. package/src/variants/alert.ts +45 -0
  209. package/src/variants/badge.ts +66 -0
  210. package/src/variants/button-group.ts +49 -0
  211. package/src/variants/button.ts +93 -0
  212. package/src/variants/empty.ts +43 -0
  213. package/src/variants/field.ts +50 -0
  214. package/src/variants/input-group.ts +132 -0
  215. package/src/variants/item.ts +90 -0
  216. package/src/variants/navigation-menu.ts +32 -0
  217. package/src/variants/progress-circle.ts +47 -0
  218. package/src/variants/scroll-area.ts +79 -0
  219. package/src/variants/separator.ts +41 -0
  220. package/src/variants/sheet.ts +70 -0
  221. package/src/variants/sidebar.ts +61 -0
  222. package/src/variants/toggle.ts +59 -0
  223. package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/clsx.d.mts +0 -6
@@ -1,12 +1,7 @@
1
- import * as _$_codefast_tailwind_variants0 from "@codefast/tailwind-variants";
2
1
  import { ComponentProps, JSX } from "react";
3
2
  import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
4
3
 
5
4
  //#region src/components/navigation-menu.d.ts
6
- /**
7
- * @since 0.3.16-canary.0
8
- */
9
- declare const navigationMenuTriggerVariants: _$_codefast_tailwind_variants0.VariantResolver<_$_codefast_tailwind_variants0.VariantSchema, Record<string, never>>;
10
5
  /**
11
6
  * @since 0.3.16-canary.0
12
7
  */
@@ -80,4 +75,4 @@ declare function NavigationMenuLink({
80
75
  ...props
81
76
  }: NavigationMenuLinkProps): JSX.Element;
82
77
  //#endregion
83
- export { NavigationMenu, NavigationMenuContent, type NavigationMenuContentProps, NavigationMenuItem, type NavigationMenuItemProps, NavigationMenuLink, type NavigationMenuLinkProps, NavigationMenuList, type NavigationMenuListProps, type NavigationMenuProps, NavigationMenuTrigger, type NavigationMenuTriggerProps, navigationMenuTriggerVariants };
78
+ export { NavigationMenu, NavigationMenuContent, type NavigationMenuContentProps, NavigationMenuItem, type NavigationMenuItemProps, NavigationMenuLink, type NavigationMenuLinkProps, NavigationMenuList, type NavigationMenuListProps, type NavigationMenuProps, NavigationMenuTrigger, type NavigationMenuTriggerProps };
@@ -1,5 +1,5 @@
1
- import { cn, tv } from "../lib/utils.mjs";
2
- import { buttonVariants } from "./button.mjs";
1
+ import { cn } from "../lib/utils.mjs";
2
+ import { navigationMenuTriggerVariants } from "../variants/navigation-menu.mjs";
3
3
  import { ChevronDownIcon } from "lucide-react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
@@ -7,13 +7,6 @@ import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
7
7
  /**
8
8
  * @since 0.3.16-canary.0
9
9
  */
10
- const navigationMenuTriggerVariants = tv({ base: buttonVariants({
11
- className: "data-open:bg-secondary/50 data-open:text-secondary-foreground group/navigation-menu-trigger focus-visible:bg-secondary dark:hover:not-disabled:bg-secondary",
12
- variant: "ghost"
13
- }) });
14
- /**
15
- * @since 0.3.16-canary.0
16
- */
17
10
  function NavigationMenu({ children, className, viewport = true, ...props }) {
18
11
  return /* @__PURE__ */ jsxs(NavigationMenuPrimitive.Root, {
19
12
  className: cn("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center", className),
@@ -54,7 +47,7 @@ function NavigationMenuTrigger({ children, className, ...props }) {
54
47
  ...props,
55
48
  children: [children, /* @__PURE__ */ jsx(ChevronDownIcon, {
56
49
  "aria-hidden": "true",
57
- className: cn("relative top-px", "ml-1 size-3", "transition duration-300", "group-data-open/navigation-menu-trigger:rotate-180")
50
+ className: cn("relative top-px", "ml-1 size-3", "transition-transform duration-300 ease-spring", "motion-reduce:transition-none motion-reduce:duration-0", "group-data-open/navigation-menu-trigger:rotate-180")
58
51
  })]
59
52
  });
60
53
  }
@@ -63,7 +56,7 @@ function NavigationMenuTrigger({ children, className, ...props }) {
63
56
  */
64
57
  function NavigationMenuContent({ className, ...props }) {
65
58
  return /* @__PURE__ */ jsx(NavigationMenuPrimitive.Content, {
66
- className: cn("top-0 left-0", "w-full", "group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-2 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-lg group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:p-1 group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:shadow", "group-data-[viewport=true]/navigation-menu:p-2", "data-[motion=from-end]:slide-in-from-right-52", "data-[motion=from-start]:slide-in-from-left-52", "data-[motion=to-end]:slide-out-to-right-52", "data-[motion=to-start]:slide-out-to-left-52", "ease-ui data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in-0", "data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out-0", "md:absolute md:w-auto", "group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95", "group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95", className),
59
+ className: cn("top-0 left-0", "w-full", "group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-2 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-lg group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:p-1 group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:shadow", "group-data-[viewport=true]/navigation-menu:p-2", "data-[motion=from-end]:slide-in-from-right-52", "data-[motion=from-start]:slide-in-from-left-52", "data-[motion=to-end]:slide-out-to-right-52", "data-[motion=to-start]:slide-out-to-left-52", "ease-snappy data-[motion^=from-]:animate-in data-[motion^=from-]:duration-200 data-[motion^=from-]:fade-in-0", "data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out-0", "motion-reduce:animate-none motion-reduce:transition-none motion-reduce:duration-0", "md:absolute md:w-auto", "group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95", "group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95", className),
67
60
  "data-slot": "navigation-menu-content",
68
61
  ...props
69
62
  });
@@ -73,7 +66,7 @@ function NavigationMenuContent({ className, ...props }) {
73
66
  */
74
67
  function NavigationMenuLink({ className, ...props }) {
75
68
  return /* @__PURE__ */ jsx(NavigationMenuPrimitive.Link, {
76
- className: cn("flex flex-col gap-1", "p-2", "rounded-sm outline-hidden", "text-sm", "transition", "hover:bg-accent hover:text-accent-foreground", "focus:bg-accent focus:text-accent-foreground", "data-active:bg-accent/50 data-active:text-accent-foreground", "data-active:hover:bg-accent", "data-active:focus:bg-accent", "data-[variant=destructive]:[&_svg:not([class*='text-'])]:text-destructive/80", "[&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", "[&_svg:not([class*='text-'])]:text-muted-foreground", className),
69
+ className: cn("flex flex-col gap-1", "p-2", "rounded-sm outline-hidden", "text-sm", "transition-colors duration-150 ease-snappy", "motion-reduce:transition-none motion-reduce:duration-0", "hover:bg-accent hover:text-accent-foreground", "focus:bg-accent focus:text-accent-foreground", "data-active:bg-accent/50 data-active:text-accent-foreground", "data-active:hover:bg-accent", "data-active:focus:bg-accent", "data-[variant=destructive]:[&_svg:not([class*='text-'])]:text-destructive/80", "[&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", "[&_svg:not([class*='text-'])]:text-muted-foreground", className),
77
70
  "data-slot": "navigation-menu-link",
78
71
  ...props
79
72
  });
@@ -82,7 +75,7 @@ function NavigationMenuViewport({ className, ...props }) {
82
75
  return /* @__PURE__ */ jsx("div", {
83
76
  className: cn("absolute top-full left-0 z-30 flex justify-center", "perspective-distant"),
84
77
  children: /* @__PURE__ */ jsx(NavigationMenuPrimitive.Viewport, {
85
- className: cn("relative", "mt-2 min-h-[calc(var(--radix-navigation-menu-viewport-height)+2px)] w-full overflow-hidden", "rounded-lg border", "bg-popover text-popover-foreground shadow-lg", "transition-[width,height] ease-ui", "sm:min-w-[calc(var(--radix-navigation-menu-viewport-width)+2px)]", "data-open:animate-in data-open:fade-in-0 data-open:zoom-in-90", "data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", "origin-[top_center]", className),
78
+ className: cn("relative", "mt-2 min-h-[calc(var(--radix-navigation-menu-viewport-height)+2px)] w-full overflow-hidden", "rounded-lg border", "bg-popover text-popover-foreground shadow-lg", "transition-[width,height] duration-300 ease-snappy", "motion-reduce:animate-none motion-reduce:transition-none motion-reduce:duration-0", "sm:min-w-[calc(var(--radix-navigation-menu-viewport-width)+2px)]", "data-open:animate-in data-open:fade-in-0 data-open:zoom-in-90", "data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", "origin-[top_center]", className),
86
79
  "data-slot": "navigation-menu-viewport",
87
80
  ...props
88
81
  })
@@ -90,11 +83,11 @@ function NavigationMenuViewport({ className, ...props }) {
90
83
  }
91
84
  function NavigationMenuIndicator({ className, ...props }) {
92
85
  return /* @__PURE__ */ jsx(NavigationMenuPrimitive.Indicator, {
93
- className: cn("top-full z-10 flex h-2 items-center justify-center overflow-hidden", "ease-ui data-[state=hidden]:animate-out data-[state=hidden]:fade-out-0", "data-[state=visible]:animate-in data-[state=visible]:fade-in-0", className),
86
+ className: cn("top-full z-10 flex h-2 items-center justify-center overflow-hidden", "ease-snappy data-[state=hidden]:animate-out data-[state=hidden]:fade-out-0", "data-[state=visible]:animate-in data-[state=visible]:fade-in-0", "motion-reduce:animate-none motion-reduce:transition-none", className),
94
87
  "data-slot": "navigation-menu-indicator",
95
88
  ...props,
96
89
  children: /* @__PURE__ */ jsx("div", { className: cn("relative top-[60%]", "size-2.5", "rounded-tl-xs", "bg-popover text-popover-foreground", "rotate-45") })
97
90
  });
98
91
  }
99
92
  //#endregion
100
- export { NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, navigationMenuTriggerVariants };
93
+ export { NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger };
@@ -1,5 +1,5 @@
1
1
  import { VariantProps } from "../lib/utils.mjs";
2
- import { buttonVariants } from "./button.mjs";
2
+ import { buttonVariants } from "../variants/button.mjs";
3
3
  import { ComponentProps, JSX } from "react";
4
4
 
5
5
  //#region src/components/pagination.d.ts
@@ -1,5 +1,5 @@
1
1
  import { cn } from "../lib/utils.mjs";
2
- import { buttonVariants } from "./button.mjs";
2
+ import { buttonVariants } from "../variants/button.mjs";
3
3
  import { ChevronLeftIcon, ChevronRightIcon, EllipsisIcon } from "lucide-react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region src/components/pagination.tsx
@@ -36,7 +36,7 @@ function PopoverAnchor({ ...props }) {
36
36
  function PopoverContent({ align = "center", className, sideOffset = 4, ...props }) {
37
37
  return /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(PopoverPrimitive.Content, {
38
38
  align,
39
- className: cn("z-50", "min-w-32 p-4", "rounded-lg border", "bg-popover shadow-lg outline-hidden", "text-popover-foreground", "ease-ui data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95", "data-open:data-side-top:slide-in-from-bottom-2", "data-open:data-side-right:slide-in-from-left-2", "data-open:data-side-bottom:slide-in-from-top-2", "data-open:data-side-left:slide-in-from-right-2", "data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", "data-closed:data-side-top:slide-out-to-bottom-2", "data-closed:data-side-right:slide-out-to-left-2", "data-closed:data-side-bottom:slide-out-to-top-2", "data-closed:data-side-left:slide-out-to-right-2", "origin-(--radix-popover-content-transform-origin)", className),
39
+ className: cn("z-50", "min-w-32 p-4", "rounded-lg border", "bg-popover shadow-lg outline-hidden", "text-popover-foreground", "ease-snappy data-open:animate-in data-open:duration-200 data-open:fade-in-0 data-open:zoom-in-95", "data-open:data-side-top:slide-in-from-bottom-2", "data-open:data-side-right:slide-in-from-left-2", "data-open:data-side-bottom:slide-in-from-top-2", "data-open:data-side-left:slide-in-from-right-2", "data-closed:animate-out data-closed:duration-150 data-closed:fade-out-0 data-closed:zoom-out-95", "data-closed:data-side-top:slide-out-to-bottom-2", "data-closed:data-side-right:slide-out-to-left-2", "data-closed:data-side-bottom:slide-out-to-top-2", "data-closed:data-side-left:slide-out-to-right-2", "motion-reduce:animate-none motion-reduce:transition-none motion-reduce:duration-0", "origin-(--radix-popover-content-transform-origin)", className),
40
40
  "data-slot": "popover-content",
41
41
  sideOffset,
42
42
  ...props
@@ -1,56 +1,12 @@
1
- import { VariantProps } from "../lib/utils.mjs";
1
+ import { ProgressCircleVariants } from "../variants/progress-circle.mjs";
2
2
  import { ProgressCircleProvider } from "../primitives/progress-circle.mjs";
3
- import * as _$_codefast_tailwind_variants0 from "@codefast/tailwind-variants";
4
3
  import { ComponentProps, JSX } from "react";
5
4
 
6
5
  //#region src/components/progress-circle.d.ts
7
6
  /**
8
7
  * @since 0.3.16-canary.0
9
8
  */
10
- declare const progressCircleVariants: _$_codefast_tailwind_variants0.VariantResolver<{
11
- size: {
12
- sm: {
13
- label: string;
14
- };
15
- md: {
16
- label: string;
17
- };
18
- lg: {
19
- label: string;
20
- };
21
- xl: {
22
- label: string;
23
- };
24
- "2xl": {
25
- label: string;
26
- };
27
- };
28
- thickness: {
29
- regular: {};
30
- thick: {};
31
- thin: {};
32
- };
33
- variant: {
34
- default: {
35
- indicator: string;
36
- track: string;
37
- };
38
- destructive: {
39
- indicator: string;
40
- track: string;
41
- };
42
- };
43
- }, {
44
- indicator: string;
45
- label: string[];
46
- root: string;
47
- svg: string;
48
- track: string;
49
- }>;
50
- /**
51
- * @since 0.3.16-canary.0
52
- */
53
- interface ProgressCircleProps extends Omit<ComponentProps<typeof ProgressCircleProvider>, "children" | "size">, VariantProps<typeof progressCircleVariants> {
9
+ interface ProgressCircleProps extends Omit<ComponentProps<typeof ProgressCircleProvider>, "children" | "size">, ProgressCircleVariants {
54
10
  /**
55
11
  * Enables animation effect when value changes
56
12
  */
@@ -130,4 +86,4 @@ declare namespace ProgressCircle {
130
86
  var displayName: string;
131
87
  }
132
88
  //#endregion
133
- export { ProgressCircle, type ProgressCircleProps, progressCircleVariants };
89
+ export { ProgressCircle, type ProgressCircleProps };
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { tv } from "../lib/utils.mjs";
2
+ import { progressCircleVariants } from "../variants/progress-circle.mjs";
3
3
  import { useAnimatedValue } from "../hooks/use-animated-value.mjs";
4
4
  import { Indicator as ProgressCircleIndicator, ProgressCircle as ProgressCircle$1, ProgressCircleProvider, ProgressCircleSVG, ProgressCircleTrack, ProgressCircleValue } from "../primitives/progress-circle.mjs";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -8,51 +8,6 @@ import { useCallback, useMemo } from "react";
8
8
  /**
9
9
  * @since 0.3.16-canary.0
10
10
  */
11
- const progressCircleVariants = tv({
12
- defaultVariants: {
13
- size: "md",
14
- thickness: "regular",
15
- variant: "default"
16
- },
17
- slots: {
18
- indicator: "origin-center",
19
- label: [
20
- "absolute flex items-center justify-center",
21
- "inset-0",
22
- "text-xs font-medium"
23
- ],
24
- root: "relative inline-flex items-center justify-center",
25
- svg: "size-full",
26
- track: "origin-center"
27
- },
28
- variants: {
29
- size: {
30
- sm: { label: "text-[0.625rem]" },
31
- md: { label: "text-xs" },
32
- lg: { label: "text-sm" },
33
- xl: { label: "text-base" },
34
- "2xl": { label: "text-lg" }
35
- },
36
- thickness: {
37
- regular: {},
38
- thick: {},
39
- thin: {}
40
- },
41
- variant: {
42
- default: {
43
- indicator: "text-primary",
44
- track: "text-primary/20"
45
- },
46
- destructive: {
47
- indicator: "text-destructive",
48
- track: "text-destructive/20"
49
- }
50
- }
51
- }
52
- });
53
- /**
54
- * @since 0.3.16-canary.0
55
- */
56
11
  function ProgressCircle({ animate = true, animationDuration = 1e3, className, classNames, customLabel, showValue = false, size, sizeInPixels, strokeWidth, thickness = "regular", value = 0, variant = "default", ...props }) {
57
12
  const displayValue = useAnimatedValue(value, animationDuration, animate);
58
13
  const actualSize = useMemo(() => sizeInPixels ?? getActualSize(size), [sizeInPixels, size]);
@@ -123,4 +78,4 @@ const getStrokeWidth = (thickness, size) => {
123
78
  return thickness ? thicknessMap[thickness] : Math.max(3, size * .05);
124
79
  };
125
80
  //#endregion
126
- export { ProgressCircle, progressCircleVariants };
81
+ export { ProgressCircle };
@@ -12,7 +12,7 @@ function Progress({ className, value, ...props }) {
12
12
  "data-slot": "progress",
13
13
  ...props,
14
14
  children: /* @__PURE__ */ jsx(ProgressPrimitive.Indicator, {
15
- className: cn("size-full flex-1", "bg-primary", "transition-all"),
15
+ className: cn("size-full flex-1", "bg-primary", "transition-[transform] duration-500 ease-gentle", "motion-reduce:transition-none motion-reduce:duration-0"),
16
16
  "data-slot": "progress-indicator",
17
17
  style: { transform: `translateX(-${(100 - (value ?? 0)).toString()}%)` }
18
18
  })
@@ -18,7 +18,7 @@ function RadioGroup({ className, ...props }) {
18
18
  */
19
19
  function RadioGroupItem({ className, ...props }) {
20
20
  return /* @__PURE__ */ jsx(RadioGroupPrimitive.Item, {
21
- className: cn("peer inline-flex size-4 shrink-0 items-center justify-center", "rounded-full border border-input shadow-xs outline-hidden", "transition", "hover:not-disabled:not-aria-checked:border-ring/60", "focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50", "disabled:opacity-50", "aria-checked:border-primary aria-checked:bg-primary", "focus-visible:aria-checked:ring-primary/20", "aria-invalid:border-destructive aria-invalid:ring-destructive/20", "hover:not-disabled:not-aria-checked:aria-invalid:border-destructive/60", "aria-checked:aria-invalid:bg-destructive", "dark:bg-input/30", "dark:focus-visible:aria-checked:ring-primary/40", "dark:aria-invalid:ring-destructive/40", className),
21
+ className: cn("peer inline-flex size-4 shrink-0 items-center justify-center", "rounded-full border border-input shadow-xs outline-hidden", "transition-[border-color,background-color,box-shadow] duration-150 ease-spring", "motion-reduce:transition-none motion-reduce:duration-0", "hover:not-disabled:not-aria-checked:border-ring/60", "focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50", "disabled:opacity-50", "aria-checked:border-primary aria-checked:bg-primary", "focus-visible:aria-checked:ring-primary/20", "aria-invalid:border-destructive aria-invalid:ring-destructive/20", "hover:not-disabled:not-aria-checked:aria-invalid:border-destructive/60", "aria-checked:aria-invalid:bg-destructive", "dark:bg-input/30", "dark:focus-visible:aria-checked:ring-primary/40", "dark:aria-invalid:ring-destructive/40", className),
22
22
  "data-slot": "radio-group-item",
23
23
  ...props,
24
24
  children: /* @__PURE__ */ jsx(RadioGroupPrimitive.Indicator, {
@@ -8,7 +8,7 @@ import { composeEventHandlers } from "@radix-ui/primitive";
8
8
  */
9
9
  function Radio({ className, onChange, onValueChange, ...props }) {
10
10
  return /* @__PURE__ */ jsx("input", {
11
- className: cn("peer inline-flex size-4 shrink-0 items-center justify-center", "rounded-full border border-input shadow-xs outline-hidden", "appearance-none", "after:size-full after:rounded-full after:bg-background after:transition-[width,height]", "checked:border-primary checked:bg-primary", "checked:after:size-1", "hover:not-disabled:not-checked:border-ring/60", "focus-visible:ring-3 focus-visible:ring-ring/50", "focus-visible:not-checked:border-ring", "focus-visible:checked:ring-primary/20", "disabled:opacity-50", "aria-invalid:border-destructive aria-invalid:ring-destructive/20", "checked:aria-invalid:bg-destructive", "hover:not-disabled:not-checked:aria-invalid:border-destructive/60", "dark:not-checked:after:bg-input/30", "dark:focus-visible:checked:ring-primary/40", "dark:aria-invalid:ring-destructive/40", className),
11
+ className: cn("peer inline-flex size-4 shrink-0 items-center justify-center", "rounded-full border border-input shadow-xs outline-hidden", "appearance-none", "after:size-full after:rounded-full after:bg-background after:transition-[width,height] after:duration-200 after:ease-spring", "motion-reduce:after:transition-none motion-reduce:after:duration-0", "checked:border-primary checked:bg-primary", "checked:after:size-1", "hover:not-disabled:not-checked:border-ring/60", "focus-visible:ring-3 focus-visible:ring-ring/50", "focus-visible:not-checked:border-ring", "focus-visible:checked:ring-primary/20", "disabled:opacity-50", "aria-invalid:border-destructive aria-invalid:ring-destructive/20", "checked:aria-invalid:bg-destructive", "hover:not-disabled:not-checked:aria-invalid:border-destructive/60", "dark:not-checked:after:bg-input/30", "dark:focus-visible:checked:ring-primary/40", "dark:aria-invalid:ring-destructive/40", className),
12
12
  "data-slot": "radio",
13
13
  type: "radio",
14
14
  onChange: composeEventHandlers(onChange, (event) => onValueChange?.(event.currentTarget.value)),
@@ -1,29 +1,13 @@
1
- import { VariantProps } from "../lib/utils.mjs";
2
- import * as _$_codefast_tailwind_variants0 from "@codefast/tailwind-variants";
1
+ import { ScrollAreaScrollbarVariants } from "../variants/scroll-area.mjs";
3
2
  import { ComponentProps, JSX } from "react";
4
3
  import { Scope } from "@radix-ui/react-context";
5
4
  import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
6
5
 
7
6
  //#region src/components/scroll-area.d.ts
8
- /**
9
- * @since 0.3.16-canary.0
10
- */
11
- declare const scrollAreaScrollbarVariants: _$_codefast_tailwind_variants0.VariantResolver<{
12
- orientation: {
13
- horizontal: string[];
14
- vertical: string[];
15
- };
16
- size: {
17
- none: string;
18
- sm: string;
19
- md: string;
20
- lg: string;
21
- };
22
- }, Record<string, never>>;
23
7
  type ScopedProps<P> = P & {
24
8
  __scopeScrollArea?: Scope;
25
9
  };
26
- type ScrollAreaContextValue = Pick<VariantProps<typeof scrollAreaScrollbarVariants>, "size">;
10
+ type ScrollAreaContextValue = Pick<ScrollAreaScrollbarVariants, "size">;
27
11
  /**
28
12
  * @since 0.3.16-canary.0
29
13
  */
@@ -52,4 +36,4 @@ declare function ScrollAreaScrollbar({
52
36
  ...props
53
37
  }: ScrollAreaScrollbarProps): JSX.Element;
54
38
  //#endregion
55
- export { ScrollArea, type ScrollAreaProps, ScrollAreaScrollbar, type ScrollAreaScrollbarProps, scrollAreaScrollbarVariants };
39
+ export { ScrollArea, type ScrollAreaProps, ScrollAreaScrollbar, type ScrollAreaScrollbarProps };
@@ -1,67 +1,10 @@
1
1
  "use client";
2
- import { cn, tv } from "../lib/utils.mjs";
2
+ import { cn } from "../lib/utils.mjs";
3
+ import { scrollAreaScrollbarVariants } from "../variants/scroll-area.mjs";
3
4
  import { jsx, jsxs } from "react/jsx-runtime";
4
5
  import { createContextScope } from "@radix-ui/react-context";
5
6
  import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
6
7
  //#region src/components/scroll-area.tsx
7
- /**
8
- * @since 0.3.16-canary.0
9
- */
10
- const scrollAreaScrollbarVariants = tv({
11
- base: [
12
- "flex",
13
- "p-px",
14
- "touch-none transition-colors select-none"
15
- ],
16
- compoundVariants: [
17
- {
18
- className: "w-1.5",
19
- orientation: "vertical",
20
- size: "sm"
21
- },
22
- {
23
- className: "w-2",
24
- orientation: "vertical",
25
- size: "md"
26
- },
27
- {
28
- className: "w-2.5",
29
- orientation: "vertical",
30
- size: "lg"
31
- },
32
- {
33
- className: "h-1.5",
34
- orientation: "horizontal",
35
- size: "sm"
36
- },
37
- {
38
- className: "h-2",
39
- orientation: "horizontal",
40
- size: "md"
41
- },
42
- {
43
- className: "h-2.5",
44
- orientation: "horizontal",
45
- size: "lg"
46
- }
47
- ],
48
- defaultVariants: {
49
- orientation: "vertical",
50
- size: "md"
51
- },
52
- variants: {
53
- orientation: {
54
- horizontal: ["w-full flex-col", "border-t border-t-transparent"],
55
- vertical: ["h-full flex-row", "border-l border-l-transparent"]
56
- },
57
- size: {
58
- none: "",
59
- sm: "",
60
- md: "",
61
- lg: ""
62
- }
63
- }
64
- });
65
8
  const SCROLL_AREA_NAME = "ScrollArea";
66
9
  const [createScrollAreaContext] = createContextScope(SCROLL_AREA_NAME);
67
10
  const [ScrollAreaContextProvider, useScrollAreaContext] = createScrollAreaContext(SCROLL_AREA_NAME);
@@ -78,7 +21,7 @@ function ScrollArea({ __scopeScrollArea, children, className, size, ...props })
78
21
  ...props,
79
22
  children: [
80
23
  /* @__PURE__ */ jsx(ScrollAreaPrimitive.Viewport, {
81
- className: cn("size-full", "rounded-[inherit] ring-ring/50 outline-ring", "transition", "focus-visible:ring-4 focus-visible:outline-1"),
24
+ className: cn("size-full", "rounded-[inherit] ring-ring/50 outline-ring", "transition-[box-shadow] duration-150 ease-snappy", "motion-reduce:transition-none motion-reduce:duration-0", "focus-visible:ring-4 focus-visible:outline-1"),
82
25
  "data-slot": "scroll-area-viewport",
83
26
  children
84
27
  }),
@@ -107,4 +50,4 @@ function ScrollAreaScrollbar({ __scopeScrollArea, className, orientation, ...pro
107
50
  });
108
51
  }
109
52
  //#endregion
110
- export { ScrollArea, ScrollAreaScrollbar, scrollAreaScrollbarVariants };
53
+ export { ScrollArea, ScrollAreaScrollbar };
@@ -1,5 +1,5 @@
1
1
  import { VariantProps } from "../lib/utils.mjs";
2
- import { buttonVariants } from "./button.mjs";
2
+ import { buttonVariants } from "../variants/button.mjs";
3
3
  import { ComponentProps, JSX } from "react";
4
4
  import * as SelectPrimitive from "@radix-ui/react-select";
5
5
 
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { cn } from "../lib/utils.mjs";
3
- import { buttonVariants } from "./button.mjs";
3
+ import { buttonVariants } from "../variants/button.mjs";
4
4
  import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import * as SelectPrimitive from "@radix-ui/react-select";
@@ -77,9 +77,9 @@ function SelectScrollDownButton({ className, ...props }) {
77
77
  /**
78
78
  * @since 0.3.16-canary.0
79
79
  */
80
- function SelectContent({ children, className, position = "popper", ...props }) {
80
+ function SelectContent({ children, className, position = "item-aligned", ...props }) {
81
81
  return /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(SelectPrimitive.Content, {
82
- className: cn("relative z-50", "max-h-(--radix-select-content-available-height) min-w-32 overflow-hidden", "rounded-lg border", "bg-popover text-popover-foreground shadow-lg", "ease-ui data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95", "data-open:data-side-top:slide-in-from-bottom-2", "data-open:data-side-right:slide-in-from-left-2", "data-open:data-side-bottom:slide-in-from-top-2", "data-open:data-side-left:slide-in-from-right-2", "data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", "data-closed:data-side-top:slide-out-to-bottom-2", "data-closed:data-side-right:slide-out-to-left-2", "data-closed:data-side-bottom:slide-out-to-top-2", "data-closed:data-side-left:slide-out-to-right-2", "origin-(--radix-select-content-transform-origin)", position === "popper" && "data-side-top:-translate-y-1 data-side-right:translate-x-1 data-side-bottom:translate-y-1 data-side-left:-translate-x-1", className),
82
+ className: cn("relative z-50", "max-h-(--radix-select-content-available-height) min-w-32 overflow-hidden", "rounded-lg border", "bg-popover text-popover-foreground shadow-lg", "ease-ui data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95", "data-open:data-side-top:slide-in-from-bottom-2", "data-open:data-side-right:slide-in-from-left-2", "data-open:data-side-bottom:slide-in-from-top-2", "data-open:data-side-left:slide-in-from-right-2", "data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", "data-closed:data-side-top:slide-out-to-bottom-2", "data-closed:data-side-right:slide-out-to-left-2", "data-closed:data-side-bottom:slide-out-to-top-2", "data-closed:data-side-left:slide-out-to-right-2", "motion-reduce:animate-none motion-reduce:transition-none motion-reduce:duration-0", "origin-(--radix-select-content-transform-origin)", position === "popper" && "data-side-top:-translate-y-1 data-side-right:translate-x-1 data-side-bottom:translate-y-1 data-side-left:-translate-x-1", className),
83
83
  "data-slot": "select-content",
84
84
  position,
85
85
  ...props,
@@ -1,5 +1,4 @@
1
- import { VariantProps } from "../lib/utils.mjs";
2
- import * as _$_codefast_tailwind_variants0 from "@codefast/tailwind-variants";
1
+ import { SeparatorVariants } from "../variants/separator.mjs";
3
2
  import * as SeparatorPrimitive from "@radix-ui/react-separator";
4
3
  import { ComponentProps, JSX } from "react";
5
4
 
@@ -7,21 +6,7 @@ import { ComponentProps, JSX } from "react";
7
6
  /**
8
7
  * @since 0.3.16-canary.0
9
8
  */
10
- declare const separatorVariants: _$_codefast_tailwind_variants0.VariantResolver<{
11
- align: {
12
- center: string;
13
- end: string;
14
- start: string;
15
- };
16
- orientation: {
17
- horizontal: string;
18
- vertical: string;
19
- };
20
- }, Record<string, never>>;
21
- /**
22
- * @since 0.3.16-canary.0
23
- */
24
- interface SeparatorProps extends ComponentProps<typeof SeparatorPrimitive.Root>, Omit<VariantProps<typeof separatorVariants>, "orientation"> {}
9
+ interface SeparatorProps extends ComponentProps<typeof SeparatorPrimitive.Root>, Omit<SeparatorVariants, "orientation"> {}
25
10
  /**
26
11
  * @since 0.3.16-canary.0
27
12
  */
@@ -44,4 +29,4 @@ declare function SeparatorItem({
44
29
  ...props
45
30
  }: SeparatorItemProps): JSX.Element;
46
31
  //#endregion
47
- export { Separator, SeparatorItem, type SeparatorItemProps, type SeparatorProps, separatorVariants };
32
+ export { Separator, SeparatorItem, type SeparatorItemProps, type SeparatorProps };
@@ -1,32 +1,12 @@
1
1
  "use client";
2
- import { cn, tv } from "../lib/utils.mjs";
2
+ import { cn } from "../lib/utils.mjs";
3
+ import { separatorVariants } from "../variants/separator.mjs";
3
4
  import { jsx } from "react/jsx-runtime";
4
5
  import * as SeparatorPrimitive from "@radix-ui/react-separator";
5
6
  //#region src/components/separator.tsx
6
7
  /**
7
8
  * @since 0.3.16-canary.0
8
9
  */
9
- const separatorVariants = tv({
10
- base: ["relative flex shrink-0 items-center", "bg-border"],
11
- defaultVariants: {
12
- align: "center",
13
- orientation: "horizontal"
14
- },
15
- variants: {
16
- align: {
17
- center: "justify-center",
18
- end: "justify-end",
19
- start: "justify-start"
20
- },
21
- orientation: {
22
- horizontal: "h-px w-full",
23
- vertical: "h-full w-px flex-col"
24
- }
25
- }
26
- });
27
- /**
28
- * @since 0.3.16-canary.0
29
- */
30
10
  function Separator({ align, className, decorative = true, orientation, ...props }) {
31
11
  return /* @__PURE__ */ jsx(SeparatorPrimitive.Root, {
32
12
  className: separatorVariants({
@@ -51,4 +31,4 @@ function SeparatorItem({ className, ...props }) {
51
31
  });
52
32
  }
53
33
  //#endregion
54
- export { Separator, SeparatorItem, separatorVariants };
34
+ export { Separator, SeparatorItem };
@@ -1,21 +1,9 @@
1
- import { VariantProps } from "../lib/utils.mjs";
2
- import { buttonVariants } from "./button.mjs";
3
- import * as _$_codefast_tailwind_variants0 from "@codefast/tailwind-variants";
1
+ import { ButtonVariants } from "../variants/button.mjs";
2
+ import { SheetContentVariants } from "../variants/sheet.mjs";
4
3
  import { ComponentProps, JSX } from "react";
5
4
  import * as SheetPrimitive from "@radix-ui/react-dialog";
6
5
 
7
6
  //#region src/components/sheet.d.ts
8
- /**
9
- * @since 0.3.16-canary.0
10
- */
11
- declare const sheetContentVariants: _$_codefast_tailwind_variants0.VariantResolver<{
12
- side: {
13
- bottom: string[];
14
- left: string[];
15
- right: string[];
16
- top: string[];
17
- };
18
- }, Record<string, never>>;
19
7
  /**
20
8
  * @since 0.3.16-canary.0
21
9
  */
@@ -40,7 +28,7 @@ declare function SheetTrigger({
40
28
  /**
41
29
  * @since 0.3.16-canary.0
42
30
  */
43
- interface SheetContentProps extends ComponentProps<typeof SheetPrimitive.Content>, VariantProps<typeof sheetContentVariants> {
31
+ interface SheetContentProps extends ComponentProps<typeof SheetPrimitive.Content>, SheetContentVariants {
44
32
  classNames?: {
45
33
  close?: string;
46
34
  content?: string;
@@ -116,8 +104,8 @@ declare function SheetDescription({
116
104
  * @since 0.3.16-canary.0
117
105
  */
118
106
  interface SheetCloseProps extends ComponentProps<typeof SheetPrimitive.Close> {
119
- size?: VariantProps<typeof buttonVariants>["size"];
120
- variant?: VariantProps<typeof buttonVariants>["variant"];
107
+ size?: ButtonVariants["size"];
108
+ variant?: ButtonVariants["variant"];
121
109
  }
122
110
  /**
123
111
  * @since 0.3.16-canary.0
@@ -129,4 +117,4 @@ declare function SheetClose({
129
117
  ...props
130
118
  }: SheetCloseProps): JSX.Element;
131
119
  //#endregion
132
- export { Sheet, SheetBody, type SheetBodyProps, SheetClose, type SheetCloseProps, SheetContent, type SheetContentProps, SheetDescription, type SheetDescriptionProps, SheetFooter, type SheetFooterProps, SheetHeader, type SheetHeaderProps, type SheetProps, SheetTitle, type SheetTitleProps, SheetTrigger, type SheetTriggerProps, sheetContentVariants };
120
+ export { Sheet, SheetBody, type SheetBodyProps, SheetClose, type SheetCloseProps, SheetContent, type SheetContentProps, SheetDescription, type SheetDescriptionProps, SheetFooter, type SheetFooterProps, SheetHeader, type SheetHeaderProps, type SheetProps, SheetTitle, type SheetTitleProps, SheetTrigger, type SheetTriggerProps };