@codefast/ui 0.3.16-canary.3 → 0.4.0-canary.4

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 (281) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/README.md +27 -16
  3. package/dist/components/accordion.d.mts +7 -22
  4. package/dist/components/accordion.mjs +26 -29
  5. package/dist/components/alert-dialog.d.mts +27 -26
  6. package/dist/components/alert-dialog.mjs +53 -45
  7. package/dist/components/alert.d.mts +12 -2
  8. package/dist/components/alert.mjs +15 -6
  9. package/dist/components/aspect-ratio.d.mts +2 -2
  10. package/dist/components/aspect-ratio.mjs +2 -3
  11. package/dist/components/avatar.d.mts +41 -5
  12. package/dist/components/avatar.mjs +40 -10
  13. package/dist/components/badge.mjs +4 -4
  14. package/dist/components/breadcrumb.d.mts +1 -0
  15. package/dist/components/breadcrumb.mjs +11 -10
  16. package/dist/components/button-group.d.mts +1 -1
  17. package/dist/components/button-group.mjs +6 -7
  18. package/dist/components/button.d.mts +0 -1
  19. package/dist/components/button.mjs +7 -7
  20. package/dist/components/calendar.d.mts +6 -2
  21. package/dist/components/calendar.mjs +39 -43
  22. package/dist/components/card.d.mts +4 -2
  23. package/dist/components/card.mjs +9 -9
  24. package/dist/components/carousel.d.mts +16 -4
  25. package/dist/components/carousel.mjs +24 -11
  26. package/dist/components/chart.d.mts +8 -3
  27. package/dist/components/chart.mjs +21 -15
  28. package/dist/components/checkbox-cards.mjs +4 -4
  29. package/dist/components/checkbox-group.mjs +3 -4
  30. package/dist/components/checkbox.d.mts +2 -2
  31. package/dist/components/checkbox.mjs +6 -7
  32. package/dist/components/collapsible.d.mts +4 -4
  33. package/dist/components/collapsible.mjs +4 -5
  34. package/dist/components/command.d.mts +11 -1
  35. package/dist/components/command.mjs +35 -32
  36. package/dist/components/context-menu.d.mts +22 -15
  37. package/dist/components/context-menu.mjs +44 -39
  38. package/dist/components/dialog.d.mts +19 -23
  39. package/dist/components/dialog.mjs +48 -47
  40. package/dist/components/direction.d.mts +24 -0
  41. package/dist/components/direction.mjs +18 -0
  42. package/dist/components/drawer.d.mts +2 -20
  43. package/dist/components/drawer.mjs +17 -25
  44. package/dist/components/dropdown-menu.d.mts +22 -15
  45. package/dist/components/dropdown-menu.mjs +41 -37
  46. package/dist/components/empty.mjs +5 -5
  47. package/dist/components/field.d.mts +1 -1
  48. package/dist/components/field.mjs +11 -12
  49. package/dist/components/form.d.mts +6 -7
  50. package/dist/components/form.mjs +6 -7
  51. package/dist/components/hover-card.d.mts +5 -5
  52. package/dist/components/hover-card.mjs +14 -12
  53. package/dist/components/input-group.d.mts +1 -1
  54. package/dist/components/input-group.mjs +12 -7
  55. package/dist/components/input-number.d.mts +3 -1
  56. package/dist/components/input-number.mjs +49 -27
  57. package/dist/components/input-otp.mjs +9 -7
  58. package/dist/components/input-password.mjs +1 -4
  59. package/dist/components/input-search.mjs +3 -5
  60. package/dist/components/input.mjs +1 -2
  61. package/dist/components/item.mjs +9 -9
  62. package/dist/components/kbd.mjs +1 -1
  63. package/dist/components/label.d.mts +2 -2
  64. package/dist/components/label.mjs +3 -4
  65. package/dist/components/menubar.d.mts +22 -16
  66. package/dist/components/menubar.mjs +54 -47
  67. package/dist/components/native-select.d.mts +5 -1
  68. package/dist/components/native-select.mjs +9 -6
  69. package/dist/components/navigation-menu.d.mts +30 -8
  70. package/dist/components/navigation-menu.mjs +33 -23
  71. package/dist/components/pagination.d.mts +6 -0
  72. package/dist/components/pagination.mjs +26 -11
  73. package/dist/components/popover.d.mts +40 -7
  74. package/dist/components/popover.mjs +46 -14
  75. package/dist/components/progress-circle.d.mts +1 -1
  76. package/dist/components/progress-circle.mjs +1 -2
  77. package/dist/components/progress.d.mts +2 -2
  78. package/dist/components/progress.mjs +5 -6
  79. package/dist/components/radio-cards.d.mts +3 -3
  80. package/dist/components/radio-cards.mjs +11 -11
  81. package/dist/components/radio-group.d.mts +3 -3
  82. package/dist/components/radio-group.mjs +9 -9
  83. package/dist/components/radio.mjs +2 -3
  84. package/dist/components/resizable.mjs +3 -8
  85. package/dist/components/scroll-area.d.mts +5 -5
  86. package/dist/components/scroll-area.mjs +13 -10
  87. package/dist/components/select.d.mts +14 -14
  88. package/dist/components/select.mjs +47 -47
  89. package/dist/components/separator.d.mts +2 -2
  90. package/dist/components/separator.mjs +3 -4
  91. package/dist/components/sheet.d.mts +13 -14
  92. package/dist/components/sheet.mjs +41 -39
  93. package/dist/components/sidebar.d.mts +2 -3
  94. package/dist/components/sidebar.mjs +46 -46
  95. package/dist/components/skeleton.mjs +1 -1
  96. package/dist/components/slider.d.mts +2 -2
  97. package/dist/components/slider.mjs +9 -11
  98. package/dist/components/sonner.mjs +11 -3
  99. package/dist/components/spinner.mjs +6 -7
  100. package/dist/components/switch.d.mts +5 -2
  101. package/dist/components/switch.mjs +7 -7
  102. package/dist/components/table.mjs +10 -10
  103. package/dist/components/tabs.d.mts +8 -5
  104. package/dist/components/tabs.mjs +18 -12
  105. package/dist/components/textarea.mjs +1 -1
  106. package/dist/components/toggle-group.d.mts +9 -6
  107. package/dist/components/toggle-group.mjs +19 -20
  108. package/dist/components/toggle.d.mts +2 -3
  109. package/dist/components/toggle.mjs +4 -6
  110. package/dist/components/tooltip.d.mts +7 -6
  111. package/dist/components/tooltip.mjs +19 -17
  112. package/dist/hooks/use-animated-value.mjs +0 -1
  113. package/dist/hooks/use-copy-to-clipboard.mjs +0 -1
  114. package/dist/hooks/use-is-mobile.mjs +0 -1
  115. package/dist/hooks/use-media-query.mjs +0 -1
  116. package/dist/hooks/use-mutation-observer.mjs +0 -1
  117. package/dist/hooks/use-pagination.mjs +0 -1
  118. package/dist/index.d.mts +15 -13
  119. package/dist/index.mjs +18 -16
  120. package/dist/primitives/checkbox-group.d.mts +9 -10
  121. package/dist/primitives/checkbox-group.mjs +14 -19
  122. package/dist/primitives/input-number.d.mts +3 -3
  123. package/dist/primitives/input-number.mjs +3 -5
  124. package/dist/primitives/input.d.mts +4 -4
  125. package/dist/primitives/input.mjs +2 -3
  126. package/dist/primitives/progress-circle.d.mts +3 -3
  127. package/dist/primitives/progress-circle.mjs +2 -3
  128. package/dist/variants/alert.d.mts +1 -1
  129. package/dist/variants/alert.mjs +3 -13
  130. package/dist/variants/badge.d.mts +6 -4
  131. package/dist/variants/badge.mjs +7 -34
  132. package/dist/variants/button-group.d.mts +2 -2
  133. package/dist/variants/button-group.mjs +3 -14
  134. package/dist/variants/button.d.mts +12 -10
  135. package/dist/variants/button.mjs +15 -57
  136. package/dist/variants/empty.d.mts +1 -1
  137. package/dist/variants/empty.mjs +2 -7
  138. package/dist/variants/field.d.mts +3 -3
  139. package/dist/variants/field.mjs +4 -22
  140. package/dist/variants/input-group.d.mts +9 -9
  141. package/dist/variants/input-group.mjs +11 -70
  142. package/dist/variants/input-number.d.mts +45 -0
  143. package/dist/variants/input-number.mjs +40 -0
  144. package/dist/variants/item.d.mts +5 -4
  145. package/dist/variants/item.mjs +9 -31
  146. package/dist/variants/navigation-menu.d.mts +1 -1
  147. package/dist/variants/navigation-menu.mjs +1 -5
  148. package/dist/variants/progress-circle.d.mts +1 -1
  149. package/dist/variants/progress-circle.mjs +1 -5
  150. package/dist/variants/scroll-area.d.mts +2 -2
  151. package/dist/variants/scroll-area.mjs +3 -8
  152. package/dist/variants/separator.mjs +6 -6
  153. package/dist/variants/sheet.d.mts +4 -4
  154. package/dist/variants/sheet.mjs +5 -38
  155. package/dist/variants/sidebar.d.mts +4 -4
  156. package/dist/variants/sidebar.mjs +6 -23
  157. package/dist/variants/tabs.d.mts +18 -0
  158. package/dist/variants/tabs.mjs +15 -0
  159. package/dist/variants/toggle.d.mts +4 -4
  160. package/dist/variants/toggle.mjs +9 -27
  161. package/package.json +27 -44
  162. package/src/components/accordion.tsx +26 -68
  163. package/src/components/alert-dialog.tsx +70 -86
  164. package/src/components/alert.tsx +27 -19
  165. package/src/components/aspect-ratio.tsx +1 -4
  166. package/src/components/avatar.tsx +99 -12
  167. package/src/components/badge.tsx +5 -8
  168. package/src/components/breadcrumb.tsx +18 -24
  169. package/src/components/button-group.tsx +10 -20
  170. package/src/components/button.tsx +8 -19
  171. package/src/components/calendar.tsx +77 -132
  172. package/src/components/card.tsx +16 -22
  173. package/src/components/carousel.tsx +38 -56
  174. package/src/components/chart.tsx +41 -92
  175. package/src/components/checkbox-cards.tsx +10 -30
  176. package/src/components/checkbox-group.tsx +5 -28
  177. package/src/components/checkbox.tsx +5 -26
  178. package/src/components/collapsible.tsx +1 -4
  179. package/src/components/command.tsx +52 -65
  180. package/src/components/context-menu.tsx +46 -125
  181. package/src/components/dialog.tsx +49 -101
  182. package/src/components/direction.tsx +32 -0
  183. package/src/components/drawer.tsx +17 -79
  184. package/src/components/dropdown-menu.tsx +39 -118
  185. package/src/components/empty.tsx +6 -20
  186. package/src/components/field.tsx +19 -52
  187. package/src/components/form.tsx +19 -61
  188. package/src/components/hover-card.tsx +4 -27
  189. package/src/components/input-group.tsx +13 -52
  190. package/src/components/input-number.tsx +55 -75
  191. package/src/components/input-otp.tsx +19 -38
  192. package/src/components/input-password.tsx +5 -29
  193. package/src/components/input-search.tsx +6 -23
  194. package/src/components/input.tsx +1 -17
  195. package/src/components/item.tsx +17 -31
  196. package/src/components/kbd.tsx +2 -14
  197. package/src/components/label.tsx +2 -10
  198. package/src/components/menubar.tsx +34 -125
  199. package/src/components/native-select.tsx +21 -30
  200. package/src/components/navigation-menu.tsx +34 -94
  201. package/src/components/pagination.tsx +28 -34
  202. package/src/components/popover.tsx +66 -35
  203. package/src/components/progress-circle.tsx +7 -25
  204. package/src/components/progress.tsx +3 -16
  205. package/src/components/radio-cards.tsx +8 -27
  206. package/src/components/radio-group.tsx +7 -27
  207. package/src/components/radio.tsx +3 -24
  208. package/src/components/resizable.tsx +5 -26
  209. package/src/components/scroll-area.tsx +12 -32
  210. package/src/components/select.tsx +36 -59
  211. package/src/components/separator.tsx +4 -18
  212. package/src/components/sheet.tsx +37 -74
  213. package/src/components/sidebar.tsx +47 -177
  214. package/src/components/skeleton.tsx +1 -3
  215. package/src/components/slider.tsx +7 -36
  216. package/src/components/sonner.tsx +16 -6
  217. package/src/components/spinner.tsx +6 -15
  218. package/src/components/switch.tsx +8 -30
  219. package/src/components/table.tsx +18 -35
  220. package/src/components/tabs.tsx +16 -34
  221. package/src/components/textarea.tsx +1 -15
  222. package/src/components/toggle-group.tsx +34 -38
  223. package/src/components/toggle.tsx +4 -13
  224. package/src/components/tooltip.tsx +11 -37
  225. package/src/css/foundation/base.css +50 -0
  226. package/src/css/foundation/motion.css +36 -0
  227. package/src/css/foundation/source.css +3 -0
  228. package/src/css/foundation/tokens.css +71 -0
  229. package/src/css/foundation/variants.css +113 -0
  230. package/src/css/preset.css +5 -214
  231. package/src/css/style.css +1 -1
  232. package/src/hooks/use-animated-value.ts +1 -7
  233. package/src/hooks/use-copy-to-clipboard.ts +1 -6
  234. package/src/hooks/use-is-mobile.ts +0 -2
  235. package/src/hooks/use-media-query.ts +0 -2
  236. package/src/hooks/use-mutation-observer.ts +0 -3
  237. package/src/hooks/use-pagination.ts +0 -2
  238. package/src/index.ts +39 -80
  239. package/src/primitives/checkbox-group.tsx +25 -39
  240. package/src/primitives/input-number.tsx +17 -63
  241. package/src/primitives/input.tsx +8 -24
  242. package/src/primitives/progress-circle.tsx +13 -43
  243. package/src/variants/alert.ts +3 -14
  244. package/src/variants/badge.ts +8 -35
  245. package/src/variants/button-group.ts +5 -18
  246. package/src/variants/button.ts +21 -58
  247. package/src/variants/empty.ts +2 -11
  248. package/src/variants/field.ts +6 -19
  249. package/src/variants/input-group.ts +12 -64
  250. package/src/variants/input-number.ts +65 -0
  251. package/src/variants/item.ts +10 -32
  252. package/src/variants/navigation-menu.ts +1 -8
  253. package/src/variants/progress-circle.ts +1 -2
  254. package/src/variants/scroll-area.ts +3 -9
  255. package/src/variants/separator.ts +6 -7
  256. package/src/variants/sheet.ts +6 -39
  257. package/src/variants/sidebar.ts +7 -27
  258. package/src/variants/tabs.ts +34 -0
  259. package/src/variants/toggle.ts +9 -28
  260. /package/src/css/{amber.css → themes/amber.css} +0 -0
  261. /package/src/css/{blue.css → themes/blue.css} +0 -0
  262. /package/src/css/{cyan.css → themes/cyan.css} +0 -0
  263. /package/src/css/{emerald.css → themes/emerald.css} +0 -0
  264. /package/src/css/{fuchsia.css → themes/fuchsia.css} +0 -0
  265. /package/src/css/{gray.css → themes/gray.css} +0 -0
  266. /package/src/css/{green.css → themes/green.css} +0 -0
  267. /package/src/css/{indigo.css → themes/indigo.css} +0 -0
  268. /package/src/css/{lime.css → themes/lime.css} +0 -0
  269. /package/src/css/{neutral.css → themes/neutral.css} +0 -0
  270. /package/src/css/{orange.css → themes/orange.css} +0 -0
  271. /package/src/css/{pink.css → themes/pink.css} +0 -0
  272. /package/src/css/{purple.css → themes/purple.css} +0 -0
  273. /package/src/css/{red.css → themes/red.css} +0 -0
  274. /package/src/css/{rose.css → themes/rose.css} +0 -0
  275. /package/src/css/{sky.css → themes/sky.css} +0 -0
  276. /package/src/css/{slate.css → themes/slate.css} +0 -0
  277. /package/src/css/{stone.css → themes/stone.css} +0 -0
  278. /package/src/css/{teal.css → themes/teal.css} +0 -0
  279. /package/src/css/{violet.css → themes/violet.css} +0 -0
  280. /package/src/css/{yellow.css → themes/yellow.css} +0 -0
  281. /package/src/css/{zinc.css → themes/zinc.css} +0 -0
package/dist/index.mjs CHANGED
@@ -1,18 +1,18 @@
1
- import { Accordion, AccordionContent, AccordionIcon, AccordionItem, AccordionTrigger } from "./components/accordion.mjs";
1
+ import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "./components/accordion.mjs";
2
2
  import { alertVariants } from "./variants/alert.mjs";
3
- import { Alert, AlertDescription, AlertTitle } from "./components/alert.mjs";
3
+ import { Alert, AlertAction, AlertDescription, AlertTitle } from "./components/alert.mjs";
4
4
  import { buttonVariants } from "./variants/button.mjs";
5
- import { AlertDialog, AlertDialogAction, AlertDialogBody, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger } from "./components/alert-dialog.mjs";
5
+ import { Button } from "./components/button.mjs";
6
+ import { AlertDialog, AlertDialogAction, AlertDialogBody, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogTitle, AlertDialogTrigger } from "./components/alert-dialog.mjs";
6
7
  import { AspectRatio } from "./components/aspect-ratio.mjs";
7
- import { Avatar, AvatarFallback, AvatarImage } from "./components/avatar.mjs";
8
+ import { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage } from "./components/avatar.mjs";
8
9
  import { badgeVariants } from "./variants/badge.mjs";
9
10
  import { Badge } from "./components/badge.mjs";
10
- import { buttonGroupVariants } from "./variants/button-group.mjs";
11
11
  import { separatorVariants } from "./variants/separator.mjs";
12
12
  import { Separator, SeparatorItem } from "./components/separator.mjs";
13
+ import { buttonGroupVariants } from "./variants/button-group.mjs";
13
14
  import { ButtonGroup, ButtonGroupSeparator, ButtonGroupText } from "./components/button-group.mjs";
14
15
  import { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from "./components/breadcrumb.mjs";
15
- import { Button } from "./components/button.mjs";
16
16
  import { Calendar, CalendarDayButton } from "./components/calendar.mjs";
17
17
  import { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "./components/card.mjs";
18
18
  import { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, createCarouselScope } from "./components/carousel.mjs";
@@ -23,9 +23,14 @@ import { CheckboxCards, CheckboxCardsItem } from "./components/checkbox-cards.mj
23
23
  import { CheckboxGroup, CheckboxGroupItem } from "./components/checkbox-group.mjs";
24
24
  import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "./components/collapsible.mjs";
25
25
  import { Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from "./components/dialog.mjs";
26
+ import { Input } from "./components/input.mjs";
27
+ import { Textarea } from "./components/textarea.mjs";
28
+ import { inputGroupAddonVariants, inputGroupButtonVariants, inputGroupVariants } from "./variants/input-group.mjs";
29
+ import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea } from "./components/input-group.mjs";
26
30
  import { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator, CommandShortcut } from "./components/command.mjs";
27
31
  import { ContextMenu, ContextMenuArrow, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger } from "./components/context-menu.mjs";
28
- import { Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger } from "./components/drawer.mjs";
32
+ import { DirectionProvider, useDirection } from "./components/direction.mjs";
33
+ import { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger } from "./components/drawer.mjs";
29
34
  import { DropdownMenu, DropdownMenuArrow, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "./components/dropdown-menu.mjs";
30
35
  import { emptyMediaVariants } from "./variants/empty.mjs";
31
36
  import { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle } from "./components/empty.mjs";
@@ -33,10 +38,6 @@ import { fieldVariants } from "./variants/field.mjs";
33
38
  import { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle } from "./components/field.mjs";
34
39
  import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, createFormFieldScope } from "./components/form.mjs";
35
40
  import { HoverCard, HoverCardArrow, HoverCardContent, HoverCardTrigger } from "./components/hover-card.mjs";
36
- import { Input } from "./components/input.mjs";
37
- import { inputGroupAddonVariants, inputGroupButtonVariants, inputGroupVariants } from "./variants/input-group.mjs";
38
- import { Textarea } from "./components/textarea.mjs";
39
- import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea } from "./components/input-group.mjs";
40
41
  import { Spinner } from "./components/spinner.mjs";
41
42
  import { InputNumber } from "./components/input-number.mjs";
42
43
  import { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS } from "./components/input-otp.mjs";
@@ -47,13 +48,13 @@ import { itemMediaVariants, itemVariants } from "./variants/item.mjs";
47
48
  import { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle } from "./components/item.mjs";
48
49
  import { Menubar, MenubarArrow, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger } from "./components/menubar.mjs";
49
50
  import { navigationMenuTriggerVariants } from "./variants/navigation-menu.mjs";
50
- import { NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger } from "./components/navigation-menu.mjs";
51
+ import { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport } from "./components/navigation-menu.mjs";
51
52
  import { NativeSelect, NativeSelectOptGroup, NativeSelectOption } from "./components/native-select.mjs";
52
53
  import { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from "./components/pagination.mjs";
53
- import { Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverTrigger } from "./components/popover.mjs";
54
+ import { Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger } from "./components/popover.mjs";
54
55
  import { Progress } from "./components/progress.mjs";
55
- import { progressCircleVariants } from "./variants/progress-circle.mjs";
56
56
  import { useAnimatedValue } from "./hooks/use-animated-value.mjs";
57
+ import { progressCircleVariants } from "./variants/progress-circle.mjs";
57
58
  import { ProgressCircle } from "./components/progress-circle.mjs";
58
59
  import { Radio } from "./components/radio.mjs";
59
60
  import { RadioCards, RadioCardsItem } from "./components/radio-cards.mjs";
@@ -64,16 +65,17 @@ import { ScrollArea, ScrollAreaScrollbar } from "./components/scroll-area.mjs";
64
65
  import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue } from "./components/select.mjs";
65
66
  import { sheetContentVariants } from "./variants/sheet.mjs";
66
67
  import { Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger } from "./components/sheet.mjs";
67
- import { sidebarMenuButtonVariants } from "./variants/sidebar.mjs";
68
68
  import { Skeleton } from "./components/skeleton.mjs";
69
69
  import { Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger } from "./components/tooltip.mjs";
70
70
  import { useMediaQuery } from "./hooks/use-media-query.mjs";
71
71
  import { useIsMobile } from "./hooks/use-is-mobile.mjs";
72
+ import { sidebarMenuButtonVariants } from "./variants/sidebar.mjs";
72
73
  import { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar } from "./components/sidebar.mjs";
73
74
  import { Slider } from "./components/slider.mjs";
74
75
  import { Toaster, toast, useSonner } from "./components/sonner.mjs";
75
76
  import { Switch } from "./components/switch.mjs";
76
77
  import { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow } from "./components/table.mjs";
78
+ import { tabsListVariants } from "./variants/tabs.mjs";
77
79
  import { Tabs, TabsContent, TabsList, TabsTrigger } from "./components/tabs.mjs";
78
80
  import { toggleVariants } from "./variants/toggle.mjs";
79
81
  import { Toggle } from "./components/toggle.mjs";
@@ -81,4 +83,4 @@ import { ToggleGroup, ToggleGroupItem } from "./components/toggle-group.mjs";
81
83
  import { useCopyToClipboard } from "./hooks/use-copy-to-clipboard.mjs";
82
84
  import { useMutationObserver } from "./hooks/use-mutation-observer.mjs";
83
85
  import { ELLIPSIS, usePagination } from "./hooks/use-pagination.mjs";
84
- export { Accordion, AccordionContent, AccordionIcon, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogBody, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CheckboxCards, CheckboxCardsItem, CheckboxGroup, CheckboxGroupItem, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuArrow, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuArrow, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ELLIPSIS, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardArrow, HoverCardContent, HoverCardTrigger, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputNumber, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, InputPassword, InputSearch, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Label, Menubar, MenubarArrow, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NativeSelect, NativeSelectOptGroup, NativeSelectOption, NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverTrigger, Progress, ProgressCircle, REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS, Radio, RadioCards, RadioCardsItem, RadioGroup, RadioGroupItem, ResizableGroup, ResizablePanel, ResizableSeparator, ScrollArea, ScrollAreaScrollbar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SeparatorItem, Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Spinner, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, alertVariants, badgeVariants, buttonGroupVariants, buttonVariants, createCarouselScope, createChartScope, createFormFieldScope, emptyMediaVariants, fieldVariants, inputGroupAddonVariants, inputGroupButtonVariants, inputGroupVariants, itemMediaVariants, itemVariants, navigationMenuTriggerVariants, progressCircleVariants, scrollAreaScrollbarVariants, separatorVariants, sheetContentVariants, sidebarMenuButtonVariants, toast, toggleVariants, useAnimatedValue, useCopyToClipboard, useIsMobile, useMediaQuery, useMutationObserver, usePagination, useSidebar, useSonner };
86
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertAction, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogBody, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CheckboxCards, CheckboxCardsItem, CheckboxGroup, CheckboxGroupItem, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuArrow, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DirectionProvider, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuArrow, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ELLIPSIS, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardArrow, HoverCardContent, HoverCardTrigger, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputNumber, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, InputPassword, InputSearch, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Label, Menubar, MenubarArrow, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NativeSelect, NativeSelectOptGroup, NativeSelectOption, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, ProgressCircle, REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS, Radio, RadioCards, RadioCardsItem, RadioGroup, RadioGroupItem, ResizableGroup, ResizablePanel, ResizableSeparator, ScrollArea, ScrollAreaScrollbar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SeparatorItem, Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Spinner, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, alertVariants, badgeVariants, buttonGroupVariants, buttonVariants, createCarouselScope, createChartScope, createFormFieldScope, emptyMediaVariants, fieldVariants, inputGroupAddonVariants, inputGroupButtonVariants, inputGroupVariants, itemMediaVariants, itemVariants, navigationMenuTriggerVariants, progressCircleVariants, scrollAreaScrollbarVariants, separatorVariants, sheetContentVariants, sidebarMenuButtonVariants, tabsListVariants, toast, toggleVariants, useAnimatedValue, useCopyToClipboard, useDirection, useIsMobile, useMediaQuery, useMutationObserver, usePagination, useSidebar, useSonner };
@@ -1,7 +1,6 @@
1
+ import { Checkbox } from "radix-ui";
1
2
  import { ComponentProps, JSX } from "react";
2
- import { Scope } from "@radix-ui/react-context";
3
- import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
4
- import * as RovingFocusGroup from "@radix-ui/react-roving-focus";
3
+ import { Context, RovingFocus } from "radix-ui/internal";
5
4
 
6
5
  //#region src/primitives/checkbox-group.d.ts
7
6
  /**
@@ -11,9 +10,9 @@ type ScopedProps<P> = P & {
11
10
  /**
12
11
  * Optional scope for the CheckboxGroup component
13
12
  */
14
- __scopeCheckboxGroup?: Scope;
13
+ __scopeCheckboxGroup?: Context.Scope;
15
14
  };
16
- declare const createCheckboxGroupScope: import("@radix-ui/react-context").CreateScope;
15
+ declare const createCheckboxGroupScope: Context.CreateScope;
17
16
  /**
18
17
  * Context values shared between CheckboxGroup components
19
18
  */
@@ -56,7 +55,7 @@ interface CheckboxGroupBaseProps {
56
55
  /**
57
56
  * Direction for roving focus navigation
58
57
  */
59
- dir?: RovingFocusGroup.RovingFocusGroupProps["dir"];
58
+ dir?: RovingFocus.RovingFocusGroupProps["dir"];
60
59
  /**
61
60
  * Whether the entire checkbox group is disabled
62
61
  */
@@ -64,7 +63,7 @@ interface CheckboxGroupBaseProps {
64
63
  /**
65
64
  * Whether focus should loop to the start/end when reaching the boundaries
66
65
  */
67
- loop?: RovingFocusGroup.RovingFocusGroupProps["loop"];
66
+ loop?: RovingFocus.RovingFocusGroupProps["loop"];
68
67
  /**
69
68
  * Name attribute for the checkbox group form field
70
69
  */
@@ -77,7 +76,7 @@ interface CheckboxGroupBaseProps {
77
76
  /**
78
77
  * Orientation of the checkbox group (horizontal or vertical)
79
78
  */
80
- orientation?: RovingFocusGroup.RovingFocusGroupProps["orientation"];
79
+ orientation?: RovingFocus.RovingFocusGroupProps["orientation"];
81
80
  /**
82
81
  * Whether at least one checkbox must be selected
83
82
  */
@@ -116,7 +115,7 @@ declare function CheckboxGroup({
116
115
  *
117
116
  * @since 0.3.16-canary.0
118
117
  */
119
- interface CheckboxGroupItemProps extends Omit<ComponentProps<typeof CheckboxPrimitive.Root>, "checked" | "defaultChecked" | "name" | "onCheckedChange"> {
118
+ interface CheckboxGroupItemProps extends Omit<ComponentProps<typeof Checkbox.Root>, "checked" | "defaultChecked" | "name" | "onCheckedChange"> {
120
119
  /**
121
120
  * Value of the checkbox item, used to identify the item within the group
122
121
  */
@@ -141,7 +140,7 @@ declare function CheckboxGroupItem({
141
140
  *
142
141
  * @since 0.3.16-canary.0
143
142
  */
144
- type CheckboxGroupIndicatorProps = ComponentProps<typeof CheckboxPrimitive.Indicator>;
143
+ type CheckboxGroupIndicatorProps = ComponentProps<typeof Checkbox.Indicator>;
145
144
  /**
146
145
  * Visual indicator component for a CheckboxGroupItem
147
146
  *
@@ -1,17 +1,12 @@
1
+ import { Checkbox, Direction } from "radix-ui";
1
2
  import { jsx } from "react/jsx-runtime";
2
3
  import { useCallback } from "react";
3
- import { createContextScope } from "@radix-ui/react-context";
4
- import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
5
- import { createCheckboxScope } from "@radix-ui/react-checkbox";
6
- import { useDirection } from "@radix-ui/react-direction";
7
- import * as RovingFocusGroup from "@radix-ui/react-roving-focus";
8
- import { createRovingFocusGroupScope } from "@radix-ui/react-roving-focus";
9
- import { useControllableState } from "@radix-ui/react-use-controllable-state";
4
+ import { Context, RovingFocus, useControllableState } from "radix-ui/internal";
10
5
  //#region src/primitives/checkbox-group.tsx
11
6
  const CHECKBOX_GROUP_NAME = "CheckboxGroup";
12
- const [createCheckboxGroupContext, createCheckboxGroupScope] = createContextScope(CHECKBOX_GROUP_NAME, [createRovingFocusGroupScope, createCheckboxScope]);
13
- const useRovingFocusGroupScope = createRovingFocusGroupScope();
14
- const useCheckboxScope = createCheckboxScope();
7
+ const [createCheckboxGroupContext, createCheckboxGroupScope] = Context.createContextScope(CHECKBOX_GROUP_NAME, [RovingFocus.createRovingFocusGroupScope, Checkbox.createCheckboxScope]);
8
+ const useRovingFocusGroupScope = RovingFocus.createRovingFocusGroupScope();
9
+ const useCheckboxScope = Checkbox.createCheckboxScope();
15
10
  const [CheckboxGroupContextProvider, useCheckboxGroupContext] = createCheckboxGroupContext(CHECKBOX_GROUP_NAME);
16
11
  /**
17
12
  * CheckboxGroup component that manages a group of checkboxes with roving focus
@@ -20,13 +15,13 @@ const [CheckboxGroupContextProvider, useCheckboxGroupContext] = createCheckboxGr
20
15
  */
21
16
  function CheckboxGroup({ __scopeCheckboxGroup, defaultValue, dir, disabled = false, loop = true, name, onValueChange, orientation, required = false, value: valueProperty, ...props }) {
22
17
  /**
23
- * Scope for the RovingFocusGroup component
18
+ * Context.Scope for the RovingFocusGroup component
24
19
  */
25
20
  const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeCheckboxGroup);
26
21
  /**
27
22
  * Direction for layout and navigation
28
23
  */
29
- const direction = useDirection(dir);
24
+ const direction = Direction.useDirection(dir);
30
25
  /**
31
26
  * State for managing selected checkbox values
32
27
  */
@@ -51,7 +46,7 @@ function CheckboxGroup({ __scopeCheckboxGroup, defaultValue, dir, disabled = fal
51
46
  return currentValue.filter((inputValue) => inputValue !== itemValue);
52
47
  });
53
48
  }, [setValue, required]),
54
- children: /* @__PURE__ */ jsx(RovingFocusGroup.Root, {
49
+ children: /* @__PURE__ */ jsx(RovingFocus.Root, {
55
50
  asChild: true,
56
51
  ...rovingFocusGroupScope,
57
52
  dir: direction,
@@ -82,23 +77,23 @@ function CheckboxGroupItem({ __scopeCheckboxGroup, disabled, ...props }) {
82
77
  */
83
78
  const isDisabled = context.disabled || disabled;
84
79
  /**
85
- * Scope for the RovingFocusGroup component
80
+ * Context.Scope for the RovingFocusGroup component
86
81
  */
87
82
  const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeCheckboxGroup);
88
83
  /**
89
- * Scope for the Checkbox component
84
+ * Context.Scope for the Checkbox component
90
85
  */
91
86
  const checkboxScope = useCheckboxScope(__scopeCheckboxGroup);
92
87
  /**
93
88
  * Whether this checkbox is currently checked
94
89
  */
95
90
  const checked = context.value?.includes(props.value);
96
- return /* @__PURE__ */ jsx(RovingFocusGroup.Item, {
91
+ return /* @__PURE__ */ jsx(RovingFocus.Item, {
97
92
  asChild: true,
98
93
  ...rovingFocusGroupScope,
99
94
  active: checked,
100
95
  focusable: !isDisabled,
101
- children: /* @__PURE__ */ jsx(CheckboxPrimitive.Root, {
96
+ children: /* @__PURE__ */ jsx(Checkbox.Root, {
102
97
  "aria-label": props.value,
103
98
  checked,
104
99
  disabled: isDisabled,
@@ -120,10 +115,10 @@ function CheckboxGroupItem({ __scopeCheckboxGroup, disabled, ...props }) {
120
115
  */
121
116
  function CheckboxGroupIndicator({ __scopeCheckboxGroup, ...props }) {
122
117
  /**
123
- * Scope for the Checkbox component
118
+ * Context.Scope for the Checkbox component
124
119
  */
125
120
  const checkboxScope = useCheckboxScope(__scopeCheckboxGroup);
126
- return /* @__PURE__ */ jsx(CheckboxPrimitive.Indicator, {
121
+ return /* @__PURE__ */ jsx(Checkbox.Indicator, {
127
122
  ...checkboxScope,
128
123
  ...props
129
124
  });
@@ -1,6 +1,6 @@
1
1
  import { Field as InputField, Input } from "./input.mjs";
2
2
  import { ComponentProps, JSX } from "react";
3
- import { Scope } from "@radix-ui/react-context";
3
+ import { Context } from "radix-ui/internal";
4
4
 
5
5
  //#region src/primitives/input-number.d.ts
6
6
  /**
@@ -10,9 +10,9 @@ type ScopedProps<P> = P & {
10
10
  /**
11
11
  * Optional scope for the InputNumber component context
12
12
  */
13
- __scopeInputNumber?: Scope;
13
+ __scopeInputNumber?: Context.Scope;
14
14
  };
15
- declare const createInputNumberScope: import("@radix-ui/react-context").CreateScope;
15
+ declare const createInputNumberScope: Context.CreateScope;
16
16
  /**
17
17
  * Props for the main InputNumber component.
18
18
  *
@@ -1,15 +1,13 @@
1
1
  import { Field as InputField, Input, createInputScope } from "./input.mjs";
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  import { useCallback, useEffect, useMemo, useRef } from "react";
4
- import { createContextScope } from "@radix-ui/react-context";
5
- import { useControllableState } from "@radix-ui/react-use-controllable-state";
6
- import { composeEventHandlers } from "@radix-ui/primitive";
4
+ import { Context, composeEventHandlers, useControllableState } from "radix-ui/internal";
7
5
  //#region src/primitives/input-number.tsx
8
6
  /**
9
7
  * The name of the InputNumber component constant.
10
8
  */
11
9
  const NUMBER_INPUT_NAME = "InputNumber";
12
- const [createInputNumberContext, createInputNumberScope] = createContextScope(NUMBER_INPUT_NAME, [createInputScope]);
10
+ const [createInputNumberContext, createInputNumberScope] = Context.createContextScope(NUMBER_INPUT_NAME, [createInputScope]);
13
11
  const useInputScope = createInputScope();
14
12
  const [InputNumberContextProvider, useInputNumberContext] = createInputNumberContext(NUMBER_INPUT_NAME);
15
13
  /**
@@ -21,7 +19,7 @@ function InputNumber(numberInputProps) {
21
19
  style: "decimal"
22
20
  }, id, locale, max, min, onChange, step = 1, value: valueProperty, ...props } = numberInputProps;
23
21
  /**
24
- * Scope for the input component
22
+ * Context.Scope for the input component
25
23
  */
26
24
  const inputScope = useInputScope(__scopeInputNumber);
27
25
  /**
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps, JSX, PropsWithChildren, ReactNode } from "react";
2
- import { Scope } from "@radix-ui/react-context";
2
+ import { Context } from "radix-ui/internal";
3
3
 
4
4
  //#region src/primitives/input.d.ts
5
5
  /**
@@ -7,11 +7,11 @@ import { Scope } from "@radix-ui/react-context";
7
7
  */
8
8
  type ScopedProps<P> = P & {
9
9
  /**
10
- * Scope for the Input component context
10
+ * Context.Scope for the Input component context
11
11
  */
12
- __scopeInput?: Scope;
12
+ __scopeInput?: Context.Scope;
13
13
  };
14
- declare const createInputScope: import("@radix-ui/react-context").CreateScope;
14
+ declare const createInputScope: Context.CreateScope;
15
15
  /**
16
16
  * Props for styling and appearance of the Input component
17
17
  */
@@ -1,10 +1,9 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useRef } from "react";
3
- import { createContextScope } from "@radix-ui/react-context";
4
- import { useComposedRefs } from "@radix-ui/react-compose-refs";
3
+ import { Context, useComposedRefs } from "radix-ui/internal";
5
4
  //#region src/primitives/input.tsx
6
5
  const INPUT_NAME = "Input";
7
- const [createInputContext, createInputScope] = createContextScope(INPUT_NAME);
6
+ const [createInputContext, createInputScope] = Context.createContextScope(INPUT_NAME);
8
7
  const [InputContextProvider, useInputContext] = createInputContext(INPUT_NAME);
9
8
  /**
10
9
  * @since 0.3.16-canary.0
@@ -1,9 +1,9 @@
1
1
  import { ComponentProps, ReactNode } from "react";
2
- import { Scope } from "@radix-ui/react-context";
2
+ import { Context } from "radix-ui/internal";
3
3
 
4
4
  //#region src/primitives/progress-circle.d.ts
5
5
  type ScopedProps<P> = P & {
6
- __scopeProgressCircle?: Scope;
6
+ __scopeProgressCircle?: Context.Scope;
7
7
  };
8
8
  /**
9
9
  * Defines color thresholds based on progress values
@@ -22,7 +22,7 @@ interface Threshold {
22
22
  */
23
23
  value: number;
24
24
  }
25
- declare const createProgressCircleScope: import("@radix-ui/react-context").CreateScope;
25
+ declare const createProgressCircleScope: Context.CreateScope;
26
26
  /**
27
27
  * @since 0.3.16-canary.0
28
28
  */
@@ -1,10 +1,9 @@
1
- "use client";
2
1
  import { jsx } from "react/jsx-runtime";
3
2
  import { useId, useMemo } from "react";
4
- import { createContextScope } from "@radix-ui/react-context";
3
+ import { Context } from "radix-ui/internal";
5
4
  //#region src/primitives/progress-circle.tsx
6
5
  const PROGRESS_CIRCLE_PROVIDER_NAME = "ProgressCircleProvider";
7
- const [createProgressCircleContext, createProgressCircleScope] = createContextScope(PROGRESS_CIRCLE_PROVIDER_NAME);
6
+ const [createProgressCircleContext, createProgressCircleScope] = Context.createContextScope(PROGRESS_CIRCLE_PROVIDER_NAME);
8
7
  const [ProgressCircleContextProvider, useProgressCircleContext] = createProgressCircleContext(PROGRESS_CIRCLE_PROVIDER_NAME);
9
8
  /**
10
9
  * Provides context for the ProgressCircle component
@@ -7,7 +7,7 @@ import { VariantProps } from "../lib/utils.mjs";
7
7
  declare const alertVariants: import("@codefast/tailwind-variants").VariantResolver<{
8
8
  variant: {
9
9
  default: string;
10
- destructive: string[];
10
+ destructive: string;
11
11
  };
12
12
  }, Record<string, never>>;
13
13
  /**
@@ -4,21 +4,11 @@ import { tv } from "../lib/utils.mjs";
4
4
  * @since 0.3.16-canary.0
5
5
  */
6
6
  const alertVariants = tv({
7
- base: [
8
- "relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 px-4 py-3",
9
- "rounded-xl border",
10
- "bg-card text-sm",
11
- "has-[>svg]:grid-cols-[--spacing(4)_1fr] has-[>svg]:gap-x-3",
12
- "[&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current"
13
- ],
7
+ base: "group/alert relative grid w-full gap-0.5 rounded-lg border px-4 py-3 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2.5 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4",
14
8
  defaultVariants: { variant: "default" },
15
9
  variants: { variant: {
16
- default: "text-card-foreground",
17
- destructive: [
18
- "text-destructive",
19
- "*:data-[slot=alert-description]:text-destructive/90",
20
- "[&>svg]:text-current"
21
- ]
10
+ default: "bg-card text-card-foreground",
11
+ destructive: "bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"
22
12
  } }
23
13
  });
24
14
  //#endregion
@@ -6,10 +6,12 @@ import { VariantProps } from "../lib/utils.mjs";
6
6
  */
7
7
  declare const badgeVariants: import("@codefast/tailwind-variants").VariantResolver<{
8
8
  variant: {
9
- default: string[];
10
- destructive: string[];
11
- outline: string[];
12
- secondary: string[];
9
+ default: string;
10
+ destructive: string;
11
+ ghost: string;
12
+ link: string;
13
+ outline: string;
14
+ secondary: string;
13
15
  };
14
16
  }, Record<string, never>>;
15
17
  /**
@@ -4,42 +4,15 @@ import { tv } from "../lib/utils.mjs";
4
4
  * @since 0.3.16-canary.0
5
5
  */
6
6
  const badgeVariants = tv({
7
- base: [
8
- "inline-flex w-fit shrink-0 items-center justify-center gap-2 px-1.5 py-0.5",
9
- "rounded-md border outline-hidden",
10
- "text-xs font-medium whitespace-nowrap",
11
- "transition",
12
- "focus-visible:ring-3 focus-visible:ring-ring/50",
13
- "[&>svg]:size-3 [&>svg]:shrink-0"
14
- ],
7
+ base: "group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",
15
8
  defaultVariants: { variant: "default" },
16
9
  variants: { variant: {
17
- default: [
18
- "border-transparent",
19
- "bg-primary text-primary-foreground",
20
- "focus-visible:ring-primary/20",
21
- "dark:focus-visible:ring-primary/40",
22
- "[a&]:hover:bg-primary/80"
23
- ],
24
- destructive: [
25
- "border-transparent",
26
- "bg-destructive text-white",
27
- "focus-visible:ring-destructive/20",
28
- "dark:bg-destructive/60",
29
- "dark:focus-visible:ring-destructive/40",
30
- "[a&]:hover:bg-destructive/90"
31
- ],
32
- outline: [
33
- "border-input",
34
- "bg-background",
35
- "focus-visible:border-ring",
36
- "[a&]:hover:border-ring/60 [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
37
- ],
38
- secondary: [
39
- "border-transparent",
40
- "bg-secondary text-secondary-foreground",
41
- "[a&]:hover:bg-secondary/80"
42
- ]
10
+ default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
11
+ destructive: "bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",
12
+ ghost: "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
13
+ link: "text-primary underline-offset-4 hover:underline",
14
+ outline: "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",
15
+ secondary: "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80"
43
16
  } }
44
17
  });
45
18
  //#endregion
@@ -6,8 +6,8 @@ import { VariantProps } from "../lib/utils.mjs";
6
6
  */
7
7
  declare const buttonGroupVariants: import("@codefast/tailwind-variants").VariantResolver<{
8
8
  orientation: {
9
- horizontal: string[];
10
- vertical: string[];
9
+ horizontal: string;
10
+ vertical: string;
11
11
  };
12
12
  }, Record<string, never>>;
13
13
  /**
@@ -4,22 +4,11 @@ import { tv } from "../lib/utils.mjs";
4
4
  * @since 0.3.16-canary.0
5
5
  */
6
6
  const buttonGroupVariants = tv({
7
- base: [
8
- "flex w-fit items-stretch",
9
- "has-[>[data-slot=button-group]]:gap-2",
10
- "[&>*]:focus-visible:relative [&>*]:focus-visible:z-10",
11
- "has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-lg",
12
- "[&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit",
13
- "[&>input]:flex-1"
14
- ],
7
+ base: "group/button-group flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",
15
8
  defaultVariants: { orientation: "horizontal" },
16
9
  variants: { orientation: {
17
- horizontal: ["[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0", "[&>*:not(:last-child)]:rounded-r-none"],
18
- vertical: [
19
- "flex-col",
20
- "[&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0",
21
- "[&>*:not(:last-child)]:rounded-b-none"
22
- ]
10
+ horizontal: "[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-md!",
11
+ vertical: "flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-md!"
23
12
  } }
24
13
  });
25
14
  //#endregion
@@ -6,20 +6,22 @@ import { VariantProps } from "../lib/utils.mjs";
6
6
  */
7
7
  declare const buttonVariants: import("@codefast/tailwind-variants").VariantResolver<{
8
8
  size: {
9
- "icon-sm": string;
9
+ default: string;
10
+ xs: string;
11
+ sm: string;
12
+ lg: string;
10
13
  icon: string;
14
+ "icon-xs": string;
15
+ "icon-sm": string;
11
16
  "icon-lg": string;
12
- sm: string[];
13
- md: string[];
14
- lg: string[];
15
17
  };
16
18
  variant: {
17
- default: string[];
18
- destructive: string[];
19
- ghost: string[];
20
- link: string[];
21
- outline: string[];
22
- secondary: string[];
19
+ default: string;
20
+ destructive: string;
21
+ ghost: string;
22
+ link: string;
23
+ outline: string;
24
+ secondary: string;
23
25
  };
24
26
  }, Record<string, never>>;
25
27
  /**