@codefast/ui 0.3.10 → 0.3.11-canary.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (208) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +277 -167
  3. package/dist/components/accordion.cjs +5 -5
  4. package/dist/components/accordion.d.ts +4 -4
  5. package/dist/components/accordion.js +5 -5
  6. package/dist/components/alert-dialog.cjs +9 -9
  7. package/dist/components/alert-dialog.d.ts +11 -11
  8. package/dist/components/alert-dialog.js +9 -9
  9. package/dist/components/alert.cjs +5 -5
  10. package/dist/components/alert.d.ts +5 -5
  11. package/dist/components/alert.js +5 -5
  12. package/dist/components/aspect-ratio.d.ts +2 -2
  13. package/dist/components/avatar.cjs +3 -3
  14. package/dist/components/avatar.d.ts +2 -2
  15. package/dist/components/avatar.js +3 -3
  16. package/dist/components/badge.cjs +7 -7
  17. package/dist/components/badge.d.ts +3 -3
  18. package/dist/components/badge.js +7 -7
  19. package/dist/components/breadcrumb.cjs +6 -8
  20. package/dist/components/breadcrumb.d.ts +8 -8
  21. package/dist/components/breadcrumb.js +6 -8
  22. package/dist/components/button-group.cjs +8 -8
  23. package/dist/components/button-group.d.ts +5 -5
  24. package/dist/components/button-group.js +8 -8
  25. package/dist/components/button.cjs +17 -17
  26. package/dist/components/button.d.ts +6 -6
  27. package/dist/components/button.js +17 -17
  28. package/dist/components/calendar.cjs +35 -35
  29. package/dist/components/calendar.d.ts +5 -5
  30. package/dist/components/calendar.js +35 -35
  31. package/dist/components/card.cjs +7 -7
  32. package/dist/components/card.d.ts +8 -8
  33. package/dist/components/card.js +7 -7
  34. package/dist/components/carousel.cjs +20 -20
  35. package/dist/components/carousel.d.ts +10 -10
  36. package/dist/components/carousel.js +20 -20
  37. package/dist/components/chart.cjs +42 -42
  38. package/dist/components/chart.d.ts +12 -11
  39. package/dist/components/chart.js +42 -42
  40. package/dist/components/checkbox-cards.cjs +2 -2
  41. package/dist/components/checkbox-cards.d.ts +2 -2
  42. package/dist/components/checkbox-cards.js +2 -2
  43. package/dist/components/checkbox-group.cjs +2 -2
  44. package/dist/components/checkbox-group.d.ts +2 -2
  45. package/dist/components/checkbox-group.js +2 -2
  46. package/dist/components/checkbox.cjs +1 -1
  47. package/dist/components/checkbox.d.ts +2 -2
  48. package/dist/components/checkbox.js +1 -1
  49. package/dist/components/collapsible.d.ts +2 -2
  50. package/dist/components/command.cjs +10 -10
  51. package/dist/components/command.d.ts +4 -4
  52. package/dist/components/command.js +10 -10
  53. package/dist/components/context-menu.cjs +10 -10
  54. package/dist/components/context-menu.d.ts +4 -4
  55. package/dist/components/context-menu.js +10 -10
  56. package/dist/components/dialog.cjs +12 -12
  57. package/dist/components/dialog.d.ts +10 -10
  58. package/dist/components/dialog.js +12 -12
  59. package/dist/components/drawer.cjs +9 -9
  60. package/dist/components/drawer.d.ts +9 -9
  61. package/dist/components/drawer.js +9 -9
  62. package/dist/components/dropdown-menu.cjs +10 -10
  63. package/dist/components/dropdown-menu.d.ts +4 -4
  64. package/dist/components/dropdown-menu.js +10 -10
  65. package/dist/components/empty.cjs +10 -10
  66. package/dist/components/empty.d.ts +9 -9
  67. package/dist/components/empty.js +10 -10
  68. package/dist/components/field.cjs +17 -17
  69. package/dist/components/field.d.ts +14 -14
  70. package/dist/components/field.js +17 -17
  71. package/dist/components/form.cjs +8 -8
  72. package/dist/components/form.d.ts +10 -10
  73. package/dist/components/form.js +8 -8
  74. package/dist/components/hover-card.cjs +3 -3
  75. package/dist/components/hover-card.d.ts +2 -2
  76. package/dist/components/hover-card.js +3 -3
  77. package/dist/components/input-group.cjs +20 -20
  78. package/dist/components/input-group.d.ts +15 -15
  79. package/dist/components/input-group.js +20 -20
  80. package/dist/components/input-number.cjs +7 -7
  81. package/dist/components/input-number.d.ts +2 -2
  82. package/dist/components/input-number.js +7 -7
  83. package/dist/components/input-otp.cjs +4 -4
  84. package/dist/components/input-otp.d.ts +6 -6
  85. package/dist/components/input-otp.js +4 -4
  86. package/dist/components/input-password.cjs +6 -6
  87. package/dist/components/input-password.d.ts +3 -3
  88. package/dist/components/input-password.js +6 -6
  89. package/dist/components/input-search.cjs +4 -4
  90. package/dist/components/input-search.d.ts +3 -3
  91. package/dist/components/input-search.js +4 -4
  92. package/dist/components/input.cjs +1 -1
  93. package/dist/components/input.d.ts +2 -2
  94. package/dist/components/input.js +1 -1
  95. package/dist/components/item.cjs +23 -23
  96. package/dist/components/item.d.ts +12 -12
  97. package/dist/components/item.js +23 -23
  98. package/dist/components/kbd.cjs +2 -2
  99. package/dist/components/kbd.d.ts +3 -3
  100. package/dist/components/kbd.js +2 -2
  101. package/dist/components/label.cjs +1 -1
  102. package/dist/components/label.d.ts +2 -2
  103. package/dist/components/label.js +1 -1
  104. package/dist/components/menubar.cjs +13 -13
  105. package/dist/components/menubar.d.ts +4 -4
  106. package/dist/components/menubar.js +13 -13
  107. package/dist/components/native-select.cjs +2 -2
  108. package/dist/components/native-select.d.ts +4 -4
  109. package/dist/components/native-select.js +2 -2
  110. package/dist/components/navigation-menu.cjs +10 -10
  111. package/dist/components/navigation-menu.d.ts +2 -2
  112. package/dist/components/navigation-menu.js +10 -10
  113. package/dist/components/pagination.cjs +6 -6
  114. package/dist/components/pagination.d.ts +10 -10
  115. package/dist/components/pagination.js +6 -6
  116. package/dist/components/popover.cjs +3 -3
  117. package/dist/components/popover.d.ts +3 -3
  118. package/dist/components/popover.js +3 -3
  119. package/dist/components/progress-circle.cjs +22 -22
  120. package/dist/components/progress-circle.d.ts +5 -5
  121. package/dist/components/progress-circle.js +22 -22
  122. package/dist/components/progress.cjs +2 -2
  123. package/dist/components/progress.d.ts +2 -2
  124. package/dist/components/progress.js +2 -2
  125. package/dist/components/radio-cards.cjs +3 -3
  126. package/dist/components/radio-cards.d.ts +2 -2
  127. package/dist/components/radio-cards.js +3 -3
  128. package/dist/components/radio-group.cjs +3 -3
  129. package/dist/components/radio-group.d.ts +2 -2
  130. package/dist/components/radio-group.js +3 -3
  131. package/dist/components/radio.cjs +1 -1
  132. package/dist/components/radio.d.ts +2 -2
  133. package/dist/components/radio.js +1 -1
  134. package/dist/components/resizable.cjs +3 -3
  135. package/dist/components/resizable.d.ts +2 -2
  136. package/dist/components/resizable.js +3 -3
  137. package/dist/components/scroll-area.cjs +31 -31
  138. package/dist/components/scroll-area.d.ts +5 -5
  139. package/dist/components/scroll-area.js +31 -31
  140. package/dist/components/select.cjs +9 -9
  141. package/dist/components/select.d.ts +5 -5
  142. package/dist/components/select.js +9 -9
  143. package/dist/components/separator.cjs +9 -9
  144. package/dist/components/separator.d.ts +5 -5
  145. package/dist/components/separator.js +9 -9
  146. package/dist/components/sheet.cjs +17 -17
  147. package/dist/components/sheet.d.ts +9 -9
  148. package/dist/components/sheet.js +17 -17
  149. package/dist/components/sidebar.cjs +65 -65
  150. package/dist/components/sidebar.d.ts +31 -31
  151. package/dist/components/sidebar.js +65 -65
  152. package/dist/components/skeleton.cjs +1 -1
  153. package/dist/components/skeleton.d.ts +2 -2
  154. package/dist/components/skeleton.js +1 -1
  155. package/dist/components/slider.cjs +4 -4
  156. package/dist/components/slider.d.ts +2 -2
  157. package/dist/components/slider.js +4 -4
  158. package/dist/components/sonner.cjs +4 -4
  159. package/dist/components/sonner.d.ts +3 -3
  160. package/dist/components/sonner.js +4 -4
  161. package/dist/components/spinner.cjs +5 -5
  162. package/dist/components/spinner.d.ts +2 -2
  163. package/dist/components/spinner.js +5 -5
  164. package/dist/components/switch.cjs +2 -2
  165. package/dist/components/switch.d.ts +2 -2
  166. package/dist/components/switch.js +2 -2
  167. package/dist/components/table.cjs +8 -8
  168. package/dist/components/table.d.ts +9 -9
  169. package/dist/components/table.js +8 -8
  170. package/dist/components/tabs.cjs +4 -4
  171. package/dist/components/tabs.d.ts +2 -2
  172. package/dist/components/tabs.js +4 -4
  173. package/dist/components/textarea.cjs +1 -1
  174. package/dist/components/textarea.d.ts +2 -2
  175. package/dist/components/textarea.js +1 -1
  176. package/dist/components/toggle-group.cjs +5 -5
  177. package/dist/components/toggle-group.d.ts +4 -4
  178. package/dist/components/toggle-group.js +5 -5
  179. package/dist/components/toggle.cjs +8 -8
  180. package/dist/components/toggle.d.ts +3 -3
  181. package/dist/components/toggle.js +8 -8
  182. package/dist/components/tooltip.cjs +2 -2
  183. package/dist/components/tooltip.d.ts +3 -3
  184. package/dist/components/tooltip.js +2 -2
  185. package/dist/css/preset.css +4 -4
  186. package/dist/css/style.css +3 -3
  187. package/dist/hooks/use-copy-to-clipboard.cjs +1 -1
  188. package/dist/hooks/use-copy-to-clipboard.d.ts +1 -1
  189. package/dist/hooks/use-copy-to-clipboard.js +1 -1
  190. package/dist/hooks/use-media-query.cjs +3 -3
  191. package/dist/hooks/use-media-query.js +3 -3
  192. package/dist/hooks/use-mutation-observer.d.ts +1 -1
  193. package/dist/hooks/use-pagination.cjs +1 -1
  194. package/dist/hooks/use-pagination.js +1 -1
  195. package/dist/index.d.ts +130 -130
  196. package/dist/primitives/checkbox-group.cjs +3 -3
  197. package/dist/primitives/checkbox-group.d.ts +11 -11
  198. package/dist/primitives/checkbox-group.js +3 -3
  199. package/dist/primitives/input-number.cjs +46 -46
  200. package/dist/primitives/input-number.d.ts +8 -8
  201. package/dist/primitives/input-number.js +46 -46
  202. package/dist/primitives/input.cjs +7 -7
  203. package/dist/primitives/input.d.ts +4 -4
  204. package/dist/primitives/input.js +7 -7
  205. package/dist/primitives/progress-circle.cjs +8 -8
  206. package/dist/primitives/progress-circle.d.ts +7 -7
  207. package/dist/primitives/progress-circle.js +8 -8
  208. package/package.json +38 -42
@@ -4,11 +4,11 @@ import { cn } from "@codefast/tailwind-variants";
4
4
  import { Indicator, Root } from "@radix-ui/react-progress";
5
5
  function Progress({ className, value, ...props }) {
6
6
  return /*#__PURE__*/ jsx(Root, {
7
- className: cn('bg-primary/20 relative h-2 w-full overflow-hidden rounded-full', className),
7
+ className: cn("relative h-2 w-full overflow-hidden rounded-full bg-primary/20", className),
8
8
  "data-slot": "progress",
9
9
  ...props,
10
10
  children: /*#__PURE__*/ jsx(Indicator, {
11
- className: "bg-primary size-full flex-1 transition-all",
11
+ className: "size-full flex-1 bg-primary transition-all",
12
12
  "data-slot": "progress-indicator",
13
13
  style: {
14
14
  transform: `translateX(-${(100 - (value ?? 0)).toString()}%)`
@@ -40,15 +40,15 @@ function RadioCards(props) {
40
40
  }
41
41
  function RadioCardsItem({ children, className, ...props }) {
42
42
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_label_cjs_namespaceObject.Label, {
43
- className: "border-input hover:not-has-disabled:not-has-aria-checked:bg-secondary has-aria-checked:bg-primary/10 has-aria-checked:border-primary has-focus-visible:border-ring flex items-start gap-3 rounded-lg border p-3 transition has-disabled:opacity-50",
43
+ className: "flex items-start gap-3 rounded-lg border border-input p-3 transition hover:not-has-disabled:not-has-aria-checked:bg-secondary has-focus-visible:border-ring has-disabled:opacity-50 has-aria-checked:border-primary has-aria-checked:bg-primary/10",
44
44
  "data-slot": "radio-card",
45
45
  children: [
46
46
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_radio_group_namespaceObject.Item, {
47
- className: (0, tailwind_variants_namespaceObject.cn)('border-input text-primary-foreground focus-visible:not-aria-checked:border-ring focus-visible:ring-ring/50 focus-visible:aria-checked:ring-primary/20 dark:focus-visible:aria-checked:ring-primary/40 aria-checked:border-primary aria-checked:bg-primary dark:bg-input/30 peer flex size-4 shrink-0 items-center justify-center rounded-full border shadow-xs outline-hidden transition focus-visible:ring-3', className),
47
+ className: (0, tailwind_variants_namespaceObject.cn)("peer flex size-4 shrink-0 items-center justify-center rounded-full border border-input text-primary-foreground shadow-xs outline-hidden transition focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:not-aria-checked:border-ring aria-checked:border-primary aria-checked:bg-primary focus-visible:aria-checked:ring-primary/20 dark:bg-input/30 dark:focus-visible:aria-checked:ring-primary/40", className),
48
48
  "data-slot": "radio-card-item",
49
49
  ...props,
50
50
  children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_radio_group_namespaceObject.Indicator, {
51
- className: "bg-background size-1 rounded-full",
51
+ className: "size-1 rounded-full bg-background",
52
52
  "data-slot": "radio-card-indicator"
53
53
  })
54
54
  }),
@@ -1,5 +1,5 @@
1
- import type { ComponentProps, JSX } from 'react';
2
- import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
1
+ import type { ComponentProps, JSX } from "react";
2
+ import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
3
3
  type RadioCardsProps = ComponentProps<typeof RadioGroupPrimitive.Root>;
4
4
  declare function RadioCards(props: RadioCardsProps): JSX.Element;
5
5
  type RadioCardsItemProps = ComponentProps<typeof RadioGroupPrimitive.Item>;
@@ -11,15 +11,15 @@ function RadioCards(props) {
11
11
  }
12
12
  function RadioCardsItem({ children, className, ...props }) {
13
13
  return /*#__PURE__*/ jsxs(Label, {
14
- className: "border-input hover:not-has-disabled:not-has-aria-checked:bg-secondary has-aria-checked:bg-primary/10 has-aria-checked:border-primary has-focus-visible:border-ring flex items-start gap-3 rounded-lg border p-3 transition has-disabled:opacity-50",
14
+ className: "flex items-start gap-3 rounded-lg border border-input p-3 transition hover:not-has-disabled:not-has-aria-checked:bg-secondary has-focus-visible:border-ring has-disabled:opacity-50 has-aria-checked:border-primary has-aria-checked:bg-primary/10",
15
15
  "data-slot": "radio-card",
16
16
  children: [
17
17
  /*#__PURE__*/ jsx(Item, {
18
- className: cn('border-input text-primary-foreground focus-visible:not-aria-checked:border-ring focus-visible:ring-ring/50 focus-visible:aria-checked:ring-primary/20 dark:focus-visible:aria-checked:ring-primary/40 aria-checked:border-primary aria-checked:bg-primary dark:bg-input/30 peer flex size-4 shrink-0 items-center justify-center rounded-full border shadow-xs outline-hidden transition focus-visible:ring-3', className),
18
+ className: cn("peer flex size-4 shrink-0 items-center justify-center rounded-full border border-input text-primary-foreground shadow-xs outline-hidden transition focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:not-aria-checked:border-ring aria-checked:border-primary aria-checked:bg-primary focus-visible:aria-checked:ring-primary/20 dark:bg-input/30 dark:focus-visible:aria-checked:ring-primary/40", className),
19
19
  "data-slot": "radio-card-item",
20
20
  ...props,
21
21
  children: /*#__PURE__*/ jsx(Indicator, {
22
- className: "bg-background size-1 rounded-full",
22
+ className: "size-1 rounded-full bg-background",
23
23
  "data-slot": "radio-card-indicator"
24
24
  })
25
25
  }),
@@ -33,18 +33,18 @@ const tailwind_variants_namespaceObject = require("@codefast/tailwind-variants")
33
33
  const react_radio_group_namespaceObject = require("@radix-ui/react-radio-group");
34
34
  function RadioGroup({ className, ...props }) {
35
35
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_radio_group_namespaceObject.Root, {
36
- className: (0, tailwind_variants_namespaceObject.cn)('grid gap-2', className),
36
+ className: (0, tailwind_variants_namespaceObject.cn)("grid gap-2", className),
37
37
  "data-slot": "radio-group",
38
38
  ...props
39
39
  });
40
40
  }
41
41
  function RadioGroupItem({ className, ...props }) {
42
42
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_radio_group_namespaceObject.Item, {
43
- className: (0, tailwind_variants_namespaceObject.cn)('border-input hover:not-disabled:not-aria-checked:border-ring/60 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:aria-checked:ring-primary/20 dark:focus-visible:aria-checked:ring-primary/40 aria-checked:border-primary aria-checked:bg-primary aria-checked:aria-invalid:bg-destructive aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 hover:not-disabled:not-aria-checked:aria-invalid:border-destructive/60 dark:bg-input/30 peer inline-flex size-4 shrink-0 items-center justify-center rounded-full border shadow-xs outline-hidden transition focus-visible:ring-3 disabled:opacity-50', className),
43
+ className: (0, tailwind_variants_namespaceObject.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),
44
44
  "data-slot": "radio-group-item",
45
45
  ...props,
46
46
  children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_radio_group_namespaceObject.Indicator, {
47
- className: "bg-background size-1 rounded-full",
47
+ className: "size-1 rounded-full bg-background",
48
48
  "data-slot": "radio-group-indicator"
49
49
  })
50
50
  });
@@ -1,5 +1,5 @@
1
- import type { ComponentProps, JSX } from 'react';
2
- import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
1
+ import type { ComponentProps, JSX } from "react";
2
+ import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
3
3
  type RadioGroupProps = ComponentProps<typeof RadioGroupPrimitive.Root>;
4
4
  declare function RadioGroup({ className, ...props }: RadioGroupProps): JSX.Element;
5
5
  type RadioGroupItemProps = ComponentProps<typeof RadioGroupPrimitive.Item>;
@@ -4,18 +4,18 @@ import { cn } from "@codefast/tailwind-variants";
4
4
  import { Indicator, Item, Root } from "@radix-ui/react-radio-group";
5
5
  function RadioGroup({ className, ...props }) {
6
6
  return /*#__PURE__*/ jsx(Root, {
7
- className: cn('grid gap-2', className),
7
+ className: cn("grid gap-2", className),
8
8
  "data-slot": "radio-group",
9
9
  ...props
10
10
  });
11
11
  }
12
12
  function RadioGroupItem({ className, ...props }) {
13
13
  return /*#__PURE__*/ jsx(Item, {
14
- className: cn('border-input hover:not-disabled:not-aria-checked:border-ring/60 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:aria-checked:ring-primary/20 dark:focus-visible:aria-checked:ring-primary/40 aria-checked:border-primary aria-checked:bg-primary aria-checked:aria-invalid:bg-destructive aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 hover:not-disabled:not-aria-checked:aria-invalid:border-destructive/60 dark:bg-input/30 peer inline-flex size-4 shrink-0 items-center justify-center rounded-full border shadow-xs outline-hidden transition focus-visible:ring-3 disabled:opacity-50', className),
14
+ 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),
15
15
  "data-slot": "radio-group-item",
16
16
  ...props,
17
17
  children: /*#__PURE__*/ jsx(Indicator, {
18
- className: "bg-background size-1 rounded-full",
18
+ className: "size-1 rounded-full bg-background",
19
19
  "data-slot": "radio-group-indicator"
20
20
  })
21
21
  });
@@ -32,7 +32,7 @@ const tailwind_variants_namespaceObject = require("@codefast/tailwind-variants")
32
32
  const primitive_namespaceObject = require("@radix-ui/primitive");
33
33
  function Radio({ className, onChange, onValueChange, ...props }) {
34
34
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("input", {
35
- className: (0, tailwind_variants_namespaceObject.cn)('border-input hover:not-disabled:not-checked:border-ring/60 focus-visible:not-checked:border-ring focus-visible:ring-ring/50 focus-visible:checked:ring-primary/20 dark:focus-visible:checked:ring-primary/40 checked:border-primary checked:bg-primary checked:aria-invalid:bg-destructive aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 hover:not-disabled:not-checked:aria-invalid:border-destructive/60 after:bg-background dark:not-checked:after:bg-input/30 peer inline-flex size-4 shrink-0 appearance-none items-center justify-center rounded-full border shadow-xs outline-hidden after:size-full after:rounded-full after:transition-[width,height] checked:after:size-1 focus-visible:ring-3 disabled:opacity-50', className),
35
+ className: (0, tailwind_variants_namespaceObject.cn)("peer inline-flex size-4 shrink-0 appearance-none items-center justify-center rounded-full border border-input shadow-xs outline-hidden 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),
36
36
  "data-slot": "radio",
37
37
  type: "radio",
38
38
  onChange: (0, primitive_namespaceObject.composeEventHandlers)(onChange, (event)=>onValueChange?.(event.currentTarget.value)),
@@ -1,5 +1,5 @@
1
- import type { ComponentProps, JSX } from 'react';
2
- interface RadioProps extends Omit<ComponentProps<'input'>, 'type'> {
1
+ import type { ComponentProps, JSX } from "react";
2
+ interface RadioProps extends Omit<ComponentProps<"input">, "type"> {
3
3
  onValueChange?: (value: string) => void;
4
4
  }
5
5
  declare function Radio({ className, onChange, onValueChange, ...props }: RadioProps): JSX.Element;
@@ -4,7 +4,7 @@ import { cn } from "@codefast/tailwind-variants";
4
4
  import { composeEventHandlers } from "@radix-ui/primitive";
5
5
  function Radio({ className, onChange, onValueChange, ...props }) {
6
6
  return /*#__PURE__*/ jsx("input", {
7
- className: cn('border-input hover:not-disabled:not-checked:border-ring/60 focus-visible:not-checked:border-ring focus-visible:ring-ring/50 focus-visible:checked:ring-primary/20 dark:focus-visible:checked:ring-primary/40 checked:border-primary checked:bg-primary checked:aria-invalid:bg-destructive aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 hover:not-disabled:not-checked:aria-invalid:border-destructive/60 after:bg-background dark:not-checked:after:bg-input/30 peer inline-flex size-4 shrink-0 appearance-none items-center justify-center rounded-full border shadow-xs outline-hidden after:size-full after:rounded-full after:transition-[width,height] checked:after:size-1 focus-visible:ring-3 disabled:opacity-50', className),
7
+ className: cn("peer inline-flex size-4 shrink-0 appearance-none items-center justify-center rounded-full border border-input shadow-xs outline-hidden 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),
8
8
  "data-slot": "radio",
9
9
  type: "radio",
10
10
  onChange: composeEventHandlers(onChange, (event)=>onValueChange?.(event.currentTarget.value)),
@@ -35,7 +35,7 @@ const external_lucide_react_namespaceObject = require("lucide-react");
35
35
  const external_react_resizable_panels_namespaceObject = require("react-resizable-panels");
36
36
  function ResizableGroup({ className, ...props }) {
37
37
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_react_resizable_panels_namespaceObject.Group, {
38
- className: (0, tailwind_variants_namespaceObject.cn)('flex size-full', className),
38
+ className: (0, tailwind_variants_namespaceObject.cn)("flex size-full", className),
39
39
  "data-slot": "resizable-group",
40
40
  ...props
41
41
  });
@@ -48,11 +48,11 @@ function ResizablePanel({ ...props }) {
48
48
  }
49
49
  function ResizableSeparator({ className, withHandle, ...props }) {
50
50
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_react_resizable_panels_namespaceObject.Separator, {
51
- className: (0, tailwind_variants_namespaceObject.cn)('bg-border focus-visible:bg-ring focus-visible:ring-ring/50 flex items-center justify-center outline-hidden focus-visible:ring-3', 'aria-[orientation=vertical]:w-px', 'aria-[orientation=horizontal]:h-px', className),
51
+ className: (0, tailwind_variants_namespaceObject.cn)("flex items-center justify-center bg-border outline-hidden focus-visible:bg-ring focus-visible:ring-3 focus-visible:ring-ring/50", "aria-[orientation=vertical]:w-px", "aria-[orientation=horizontal]:h-px", className),
52
52
  "data-slot": "resizable-separator",
53
53
  ...props,
54
54
  children: withHandle ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
55
- className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-sm border",
55
+ className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",
56
56
  children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.GripVerticalIcon, {
57
57
  className: "size-2.5"
58
58
  })
@@ -1,5 +1,5 @@
1
- import type { ComponentProps, JSX } from 'react';
2
- import * as ResizablePrimitive from 'react-resizable-panels';
1
+ import type { ComponentProps, JSX } from "react";
2
+ import * as ResizablePrimitive from "react-resizable-panels";
3
3
  type ResizableGroupProps = ComponentProps<typeof ResizablePrimitive.Group>;
4
4
  declare function ResizableGroup({ className, ...props }: ResizableGroupProps): JSX.Element;
5
5
  type ResizablePanelProps = ComponentProps<typeof ResizablePrimitive.Panel>;
@@ -5,7 +5,7 @@ import { GripVerticalIcon } from "lucide-react";
5
5
  import { Group, Panel, Separator } from "react-resizable-panels";
6
6
  function ResizableGroup({ className, ...props }) {
7
7
  return /*#__PURE__*/ jsx(Group, {
8
- className: cn('flex size-full', className),
8
+ className: cn("flex size-full", className),
9
9
  "data-slot": "resizable-group",
10
10
  ...props
11
11
  });
@@ -18,11 +18,11 @@ function ResizablePanel({ ...props }) {
18
18
  }
19
19
  function ResizableSeparator({ className, withHandle, ...props }) {
20
20
  return /*#__PURE__*/ jsx(Separator, {
21
- className: cn('bg-border focus-visible:bg-ring focus-visible:ring-ring/50 flex items-center justify-center outline-hidden focus-visible:ring-3', 'aria-[orientation=vertical]:w-px', 'aria-[orientation=horizontal]:h-px', className),
21
+ className: cn("flex items-center justify-center bg-border outline-hidden focus-visible:bg-ring focus-visible:ring-3 focus-visible:ring-ring/50", "aria-[orientation=vertical]:w-px", "aria-[orientation=horizontal]:h-px", className),
22
22
  "data-slot": "resizable-separator",
23
23
  ...props,
24
24
  children: withHandle ? /*#__PURE__*/ jsx("div", {
25
- className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-sm border",
25
+ className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",
26
26
  children: /*#__PURE__*/ jsx(GripVerticalIcon, {
27
27
  className: "size-2.5"
28
28
  })
@@ -34,57 +34,57 @@ const tailwind_variants_namespaceObject = require("@codefast/tailwind-variants")
34
34
  const react_context_namespaceObject = require("@radix-ui/react-context");
35
35
  const react_scroll_area_namespaceObject = require("@radix-ui/react-scroll-area");
36
36
  const scrollAreaScrollbarVariants = (0, tailwind_variants_namespaceObject.tv)({
37
- base: 'flex touch-none select-none p-px transition-colors',
37
+ base: "flex touch-none p-px transition-colors select-none",
38
38
  compoundVariants: [
39
39
  {
40
- className: 'w-1.5',
41
- orientation: 'vertical',
42
- size: 'sm'
40
+ className: "w-1.5",
41
+ orientation: "vertical",
42
+ size: "sm"
43
43
  },
44
44
  {
45
- className: 'w-2',
46
- orientation: 'vertical',
47
- size: 'md'
45
+ className: "w-2",
46
+ orientation: "vertical",
47
+ size: "md"
48
48
  },
49
49
  {
50
- className: 'w-2.5',
51
- orientation: 'vertical',
52
- size: 'lg'
50
+ className: "w-2.5",
51
+ orientation: "vertical",
52
+ size: "lg"
53
53
  },
54
54
  {
55
- className: 'h-1.5',
56
- orientation: 'horizontal',
57
- size: 'sm'
55
+ className: "h-1.5",
56
+ orientation: "horizontal",
57
+ size: "sm"
58
58
  },
59
59
  {
60
- className: 'h-2',
61
- orientation: 'horizontal',
62
- size: 'md'
60
+ className: "h-2",
61
+ orientation: "horizontal",
62
+ size: "md"
63
63
  },
64
64
  {
65
- className: 'h-2.5',
66
- orientation: 'horizontal',
67
- size: 'lg'
65
+ className: "h-2.5",
66
+ orientation: "horizontal",
67
+ size: "lg"
68
68
  }
69
69
  ],
70
70
  defaultVariants: {
71
- orientation: 'vertical',
72
- size: 'md'
71
+ orientation: "vertical",
72
+ size: "md"
73
73
  },
74
74
  variants: {
75
75
  orientation: {
76
- horizontal: 'w-full flex-col border-t border-t-transparent',
77
- vertical: 'h-full flex-row border-l border-l-transparent'
76
+ horizontal: "w-full flex-col border-t border-t-transparent",
77
+ vertical: "h-full flex-row border-l border-l-transparent"
78
78
  },
79
79
  size: {
80
- none: '',
81
- sm: '',
82
- md: '',
83
- lg: ''
80
+ none: "",
81
+ sm: "",
82
+ md: "",
83
+ lg: ""
84
84
  }
85
85
  }
86
86
  });
87
- const SCROLL_AREA_NAME = 'ScrollArea';
87
+ const SCROLL_AREA_NAME = "ScrollArea";
88
88
  const [createScrollAreaContext] = (0, react_context_namespaceObject.createContextScope)(SCROLL_AREA_NAME);
89
89
  const [ScrollAreaContextProvider, useScrollAreaContext] = createScrollAreaContext(SCROLL_AREA_NAME);
90
90
  function ScrollArea({ __scopeScrollArea, children, className, size, ...props }) {
@@ -92,12 +92,12 @@ function ScrollArea({ __scopeScrollArea, children, className, size, ...props })
92
92
  scope: __scopeScrollArea,
93
93
  size: size,
94
94
  children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_scroll_area_namespaceObject.Root, {
95
- className: (0, tailwind_variants_namespaceObject.cn)('relative', className),
95
+ className: (0, tailwind_variants_namespaceObject.cn)("relative", className),
96
96
  "data-slot": "scroll-area",
97
97
  ...props,
98
98
  children: [
99
99
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_scroll_area_namespaceObject.Viewport, {
100
- className: "outline-ring ring-ring/50 size-full rounded-[inherit] transition focus-visible:ring-4 focus-visible:outline-1",
100
+ className: "size-full rounded-[inherit] ring-ring/50 outline-ring transition focus-visible:ring-4 focus-visible:outline-1",
101
101
  "data-slot": "scroll-area-viewport",
102
102
  children: children
103
103
  }),
@@ -124,7 +124,7 @@ function ScrollAreaScrollbar({ __scopeScrollArea, className, orientation, ...pro
124
124
  orientation: orientation,
125
125
  ...props,
126
126
  children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_scroll_area_namespaceObject.ScrollAreaThumb, {
127
- className: "bg-border relative flex-1 rounded-full"
127
+ className: "relative flex-1 rounded-full bg-border"
128
128
  })
129
129
  });
130
130
  }
@@ -1,7 +1,7 @@
1
- import type { VariantProps } from '@codefast/tailwind-variants';
2
- import type { Scope } from '@radix-ui/react-context';
3
- import type { ComponentProps, JSX } from 'react';
4
- import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
1
+ import type { VariantProps } from "@codefast/tailwind-variants";
2
+ import type { Scope } from "@radix-ui/react-context";
3
+ import type { ComponentProps, JSX } from "react";
4
+ import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
5
5
  declare const scrollAreaScrollbarVariants: import("@codefast/tailwind-variants").VariantFunctionType<{
6
6
  orientation: {
7
7
  horizontal: string;
@@ -17,7 +17,7 @@ declare const scrollAreaScrollbarVariants: import("@codefast/tailwind-variants")
17
17
  type ScopedProps<P> = P & {
18
18
  __scopeScrollArea?: Scope;
19
19
  };
20
- type ScrollAreaContextValue = Pick<VariantProps<typeof scrollAreaScrollbarVariants>, 'size'>;
20
+ type ScrollAreaContextValue = Pick<VariantProps<typeof scrollAreaScrollbarVariants>, "size">;
21
21
  type ScrollAreaProps = ScopedProps<ComponentProps<typeof ScrollAreaPrimitive.Root> & ScrollAreaContextValue>;
22
22
  declare function ScrollArea({ __scopeScrollArea, children, className, size, ...props }: ScrollAreaProps): JSX.Element;
23
23
  type ScrollAreaScrollbarProps = ScopedProps<ComponentProps<typeof ScrollAreaPrimitive.Scrollbar>>;
@@ -4,57 +4,57 @@ import { cn, tv } from "@codefast/tailwind-variants";
4
4
  import { createContextScope } from "@radix-ui/react-context";
5
5
  import { Corner, Root, ScrollAreaThumb, Scrollbar, Viewport } from "@radix-ui/react-scroll-area";
6
6
  const scrollAreaScrollbarVariants = tv({
7
- base: 'flex touch-none select-none p-px transition-colors',
7
+ base: "flex touch-none p-px transition-colors select-none",
8
8
  compoundVariants: [
9
9
  {
10
- className: 'w-1.5',
11
- orientation: 'vertical',
12
- size: 'sm'
10
+ className: "w-1.5",
11
+ orientation: "vertical",
12
+ size: "sm"
13
13
  },
14
14
  {
15
- className: 'w-2',
16
- orientation: 'vertical',
17
- size: 'md'
15
+ className: "w-2",
16
+ orientation: "vertical",
17
+ size: "md"
18
18
  },
19
19
  {
20
- className: 'w-2.5',
21
- orientation: 'vertical',
22
- size: 'lg'
20
+ className: "w-2.5",
21
+ orientation: "vertical",
22
+ size: "lg"
23
23
  },
24
24
  {
25
- className: 'h-1.5',
26
- orientation: 'horizontal',
27
- size: 'sm'
25
+ className: "h-1.5",
26
+ orientation: "horizontal",
27
+ size: "sm"
28
28
  },
29
29
  {
30
- className: 'h-2',
31
- orientation: 'horizontal',
32
- size: 'md'
30
+ className: "h-2",
31
+ orientation: "horizontal",
32
+ size: "md"
33
33
  },
34
34
  {
35
- className: 'h-2.5',
36
- orientation: 'horizontal',
37
- size: 'lg'
35
+ className: "h-2.5",
36
+ orientation: "horizontal",
37
+ size: "lg"
38
38
  }
39
39
  ],
40
40
  defaultVariants: {
41
- orientation: 'vertical',
42
- size: 'md'
41
+ orientation: "vertical",
42
+ size: "md"
43
43
  },
44
44
  variants: {
45
45
  orientation: {
46
- horizontal: 'w-full flex-col border-t border-t-transparent',
47
- vertical: 'h-full flex-row border-l border-l-transparent'
46
+ horizontal: "w-full flex-col border-t border-t-transparent",
47
+ vertical: "h-full flex-row border-l border-l-transparent"
48
48
  },
49
49
  size: {
50
- none: '',
51
- sm: '',
52
- md: '',
53
- lg: ''
50
+ none: "",
51
+ sm: "",
52
+ md: "",
53
+ lg: ""
54
54
  }
55
55
  }
56
56
  });
57
- const SCROLL_AREA_NAME = 'ScrollArea';
57
+ const SCROLL_AREA_NAME = "ScrollArea";
58
58
  const [createScrollAreaContext] = createContextScope(SCROLL_AREA_NAME);
59
59
  const [ScrollAreaContextProvider, useScrollAreaContext] = createScrollAreaContext(SCROLL_AREA_NAME);
60
60
  function ScrollArea({ __scopeScrollArea, children, className, size, ...props }) {
@@ -62,12 +62,12 @@ function ScrollArea({ __scopeScrollArea, children, className, size, ...props })
62
62
  scope: __scopeScrollArea,
63
63
  size: size,
64
64
  children: /*#__PURE__*/ jsxs(Root, {
65
- className: cn('relative', className),
65
+ className: cn("relative", className),
66
66
  "data-slot": "scroll-area",
67
67
  ...props,
68
68
  children: [
69
69
  /*#__PURE__*/ jsx(Viewport, {
70
- className: "outline-ring ring-ring/50 size-full rounded-[inherit] transition focus-visible:ring-4 focus-visible:outline-1",
70
+ className: "size-full rounded-[inherit] ring-ring/50 outline-ring transition focus-visible:ring-4 focus-visible:outline-1",
71
71
  "data-slot": "scroll-area-viewport",
72
72
  children: children
73
73
  }),
@@ -94,7 +94,7 @@ function ScrollAreaScrollbar({ __scopeScrollArea, className, orientation, ...pro
94
94
  orientation: orientation,
95
95
  ...props,
96
96
  children: /*#__PURE__*/ jsx(ScrollAreaThumb, {
97
- className: "bg-border relative flex-1 rounded-full"
97
+ className: "relative flex-1 rounded-full bg-border"
98
98
  })
99
99
  });
100
100
  }
@@ -67,7 +67,7 @@ function SelectTrigger({ children, className, size, ...props }) {
67
67
  className
68
68
  ],
69
69
  size,
70
- variant: 'outline'
70
+ variant: "outline"
71
71
  }),
72
72
  "data-size": size,
73
73
  "data-slot": "select-trigger",
@@ -84,7 +84,7 @@ function SelectTrigger({ children, className, size, ...props }) {
84
84
  }
85
85
  function SelectScrollUpButton({ className, ...props }) {
86
86
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.ScrollUpButton, {
87
- className: (0, tailwind_variants_namespaceObject.cn)('text-muted-foreground flex items-center justify-center py-1', className),
87
+ className: (0, tailwind_variants_namespaceObject.cn)("flex items-center justify-center py-1 text-muted-foreground", className),
88
88
  "data-slot": "select-scroll-up-button",
89
89
  ...props,
90
90
  children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronUpIcon, {
@@ -94,7 +94,7 @@ function SelectScrollUpButton({ className, ...props }) {
94
94
  }
95
95
  function SelectScrollDownButton({ className, ...props }) {
96
96
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.ScrollDownButton, {
97
- className: (0, tailwind_variants_namespaceObject.cn)('text-muted-foreground flex items-center justify-center py-1', className),
97
+ className: (0, tailwind_variants_namespaceObject.cn)("flex items-center justify-center py-1 text-muted-foreground", className),
98
98
  "data-slot": "select-scroll-down-button",
99
99
  ...props,
100
100
  children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ChevronDownIcon, {
@@ -102,17 +102,17 @@ function SelectScrollDownButton({ className, ...props }) {
102
102
  })
103
103
  });
104
104
  }
105
- function SelectContent({ children, className, position = 'popper', ...props }) {
105
+ function SelectContent({ children, className, position = "popper", ...props }) {
106
106
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.Portal, {
107
107
  children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_select_namespaceObject.Content, {
108
- className: (0, tailwind_variants_namespaceObject.cn)('bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 ease-ui relative z-50 max-h-(--radix-select-content-available-height) min-w-32 origin-(--radix-select-content-transform-origin) overflow-hidden rounded-lg border shadow-lg', 'popper' === position && 'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1', className),
108
+ className: (0, tailwind_variants_namespaceObject.cn)("relative z-50 max-h-(--radix-select-content-available-height) min-w-32 origin-(--radix-select-content-transform-origin) overflow-hidden rounded-lg border bg-popover text-popover-foreground shadow-lg ease-ui data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=top]:slide-in-from-bottom-2", "popper" === position && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", className),
109
109
  "data-slot": "select-content",
110
110
  position: position,
111
111
  ...props,
112
112
  children: [
113
113
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(SelectScrollUpButton, {}),
114
114
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.Viewport, {
115
- className: (0, tailwind_variants_namespaceObject.cn)('p-1', 'popper' === position && 'h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1'),
115
+ className: (0, tailwind_variants_namespaceObject.cn)("p-1", "popper" === position && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),
116
116
  children: children
117
117
  }),
118
118
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(SelectScrollDownButton, {})
@@ -122,14 +122,14 @@ function SelectContent({ children, className, position = 'popper', ...props }) {
122
122
  }
123
123
  function SelectLabel({ className, ...props }) {
124
124
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.Label, {
125
- className: (0, tailwind_variants_namespaceObject.cn)('flex items-center gap-x-2 px-2 py-1.5 text-sm font-semibold', className),
125
+ className: (0, tailwind_variants_namespaceObject.cn)("flex items-center gap-x-2 px-2 py-1.5 text-sm font-semibold", className),
126
126
  "data-slot": "select-label",
127
127
  ...props
128
128
  });
129
129
  }
130
130
  function SelectItem({ children, className, ...props }) {
131
131
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_select_namespaceObject.Item, {
132
- className: (0, tailwind_variants_namespaceObject.cn)("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:[&_svg:not([class*='text-'])]:text-destructive/80 [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none aria-disabled:opacity-50 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", className),
132
+ className: (0, tailwind_variants_namespaceObject.cn)("relative flex w-full cursor-default items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground aria-disabled:opacity-50 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:[&_svg:not([class*='text-'])]:text-destructive/80 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", className),
133
133
  "data-slot": "select-item",
134
134
  ...props,
135
135
  children: [
@@ -149,7 +149,7 @@ function SelectItem({ children, className, ...props }) {
149
149
  }
150
150
  function SelectSeparator({ className, ...props }) {
151
151
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.Separator, {
152
- className: (0, tailwind_variants_namespaceObject.cn)('bg-border mx-2 my-1 h-px', className),
152
+ className: (0, tailwind_variants_namespaceObject.cn)("mx-2 my-1 h-px bg-border", className),
153
153
  "data-slot": "select-separator",
154
154
  ...props
155
155
  });
@@ -1,7 +1,7 @@
1
- import type { VariantProps } from '@codefast/tailwind-variants';
2
- import type { ComponentProps, JSX } from 'react';
3
- import * as SelectPrimitive from '@radix-ui/react-select';
4
- import { buttonVariants } from './button';
1
+ import type { VariantProps } from "@codefast/tailwind-variants";
2
+ import type { ComponentProps, JSX } from "react";
3
+ import * as SelectPrimitive from "@radix-ui/react-select";
4
+ import { buttonVariants } from "./button";
5
5
  type SelectProps = ComponentProps<typeof SelectPrimitive.Root>;
6
6
  declare function Select({ ...props }: SelectProps): JSX.Element;
7
7
  type SelectGroupProps = ComponentProps<typeof SelectPrimitive.Group>;
@@ -9,7 +9,7 @@ declare function SelectGroup({ ...props }: SelectGroupProps): JSX.Element;
9
9
  type SelectValueProps = ComponentProps<typeof SelectPrimitive.Value>;
10
10
  declare function SelectValue({ ...props }: SelectValueProps): JSX.Element;
11
11
  interface SelectTriggerProps extends ComponentProps<typeof SelectPrimitive.Trigger> {
12
- size?: VariantProps<typeof buttonVariants>['size'];
12
+ size?: VariantProps<typeof buttonVariants>["size"];
13
13
  }
14
14
  declare function SelectTrigger({ children, className, size, ...props }: SelectTriggerProps): JSX.Element;
15
15
  type SelectScrollUpButtonProps = ComponentProps<typeof SelectPrimitive.ScrollUpButton>;