@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
@@ -12,7 +12,7 @@ function Accordion({ ...props }) {
12
12
  }
13
13
  function AccordionItem({ className, ...props }) {
14
14
  return /*#__PURE__*/ jsx(Item, {
15
- className: cn('border-b last:border-b-0', className),
15
+ className: cn("border-b last:border-b-0", className),
16
16
  "data-slot": "accordion-item",
17
17
  ...props
18
18
  });
@@ -21,7 +21,7 @@ function AccordionIcon({ asChild, className, ...props }) {
21
21
  const Component = asChild ? Slot : ChevronDownIcon;
22
22
  return /*#__PURE__*/ jsx(Component, {
23
23
  "aria-hidden": true,
24
- className: cn('text-muted-foreground size-4 shrink-0 translate-y-0.5 transition-transform duration-200', className),
24
+ className: cn("size-4 shrink-0 translate-y-0.5 text-muted-foreground transition-transform duration-200", className),
25
25
  "data-slot": "accordion-icon",
26
26
  ...props
27
27
  });
@@ -31,7 +31,7 @@ function AccordionTrigger({ children, className, ...props }) {
31
31
  className: "flex",
32
32
  "data-slot": "accordion-trigger-wrapper",
33
33
  children: /*#__PURE__*/ jsx(Trigger, {
34
- className: cn('focus-visible:ring-ring/50 group/accordion-trigger flex grow items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium outline-hidden hover:not-disabled:underline focus-visible:ring-3 disabled:opacity-50 [&[data-state=open]>svg]:rotate-180', className),
34
+ className: cn("group/accordion-trigger flex grow items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium outline-hidden hover:not-disabled:underline focus-visible:ring-3 focus-visible:ring-ring/50 disabled:opacity-50 [&[data-state=open]>svg]:rotate-180", className),
35
35
  "data-slot": "accordion-trigger",
36
36
  ...props,
37
37
  children: children
@@ -40,11 +40,11 @@ function AccordionTrigger({ children, className, ...props }) {
40
40
  }
41
41
  function AccordionContent({ children, className, ...props }) {
42
42
  return /*#__PURE__*/ jsx(Content, {
43
- className: "data-[state=open]:animate-collapsible-down data-[state=closed]:animate-collapsible-up overflow-hidden",
43
+ className: "overflow-hidden data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down",
44
44
  "data-slot": "accordion-content",
45
45
  ...props,
46
46
  children: /*#__PURE__*/ jsx("div", {
47
- className: cn('pt-0 pb-4 text-sm', className),
47
+ className: cn("pt-0 pb-4 text-sm", className),
48
48
  children: children
49
49
  })
50
50
  });
@@ -56,15 +56,15 @@ function AlertDialogContent({ children, className, classNames, ...props }) {
56
56
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_alert_dialog_namespaceObject.Portal, {
57
57
  children: [
58
58
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Overlay, {
59
- className: (0, tailwind_variants_namespaceObject.cn)('data-[state=open]:fade-in-0 data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=closed]:animate-out ease-ui fixed inset-0 z-50 bg-black/50', classNames?.overlay),
59
+ className: (0, tailwind_variants_namespaceObject.cn)("fixed inset-0 z-50 bg-black/50 ease-ui data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0", classNames?.overlay),
60
60
  "data-slot": "alert-dialog-overlay"
61
61
  }),
62
62
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Content, {
63
- className: (0, tailwind_variants_namespaceObject.cn)('data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 ease-ui fixed inset-0 z-50 grid grid-rows-[1fr_auto_1fr] justify-items-center overflow-auto p-8 sm:grid-rows-[1fr_auto_3fr] sm:p-4', classNames?.wrapper),
63
+ className: (0, tailwind_variants_namespaceObject.cn)("fixed inset-0 z-50 grid grid-rows-[1fr_auto_1fr] justify-items-center overflow-auto p-8 ease-ui data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:grid-rows-[1fr_auto_3fr] sm:p-4", classNames?.wrapper),
64
64
  "data-slot": "alert-dialog-content-wrapper",
65
65
  ...props,
66
66
  children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
67
- className: (0, tailwind_variants_namespaceObject.cn)('bg-popover text-popover-foreground relative row-start-2 flex w-full max-w-lg flex-col rounded-2xl border shadow-lg', classNames?.content, className),
67
+ className: (0, tailwind_variants_namespaceObject.cn)("relative row-start-2 flex w-full max-w-lg flex-col rounded-2xl border bg-popover text-popover-foreground shadow-lg", classNames?.content, className),
68
68
  "data-slot": "alert-dialog-content",
69
69
  children: children
70
70
  })
@@ -74,35 +74,35 @@ function AlertDialogContent({ children, className, classNames, ...props }) {
74
74
  }
75
75
  function AlertDialogHeader({ className, ...props }) {
76
76
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
77
- className: (0, tailwind_variants_namespaceObject.cn)('flex shrink-0 flex-col gap-1.5 px-6 pt-6 pb-4 text-center sm:text-left', className),
77
+ className: (0, tailwind_variants_namespaceObject.cn)("flex shrink-0 flex-col gap-1.5 px-6 pt-6 pb-4 text-center sm:text-left", className),
78
78
  "data-slot": "alert-dialog-header",
79
79
  ...props
80
80
  });
81
81
  }
82
82
  function AlertDialogBody({ className, ...props }) {
83
83
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("main", {
84
- className: (0, tailwind_variants_namespaceObject.cn)('overflow-auto px-6 py-2', className),
84
+ className: (0, tailwind_variants_namespaceObject.cn)("overflow-auto px-6 py-2", className),
85
85
  "data-slot": "alert-dialog-body",
86
86
  ...props
87
87
  });
88
88
  }
89
89
  function AlertDialogFooter({ className, ...props }) {
90
90
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
91
- className: (0, tailwind_variants_namespaceObject.cn)('flex shrink-0 flex-col-reverse gap-2 px-6 pt-4 pb-6 sm:flex-row sm:justify-end', className),
91
+ className: (0, tailwind_variants_namespaceObject.cn)("flex shrink-0 flex-col-reverse gap-2 px-6 pt-4 pb-6 sm:flex-row sm:justify-end", className),
92
92
  "data-slot": "alert-dialog-footer",
93
93
  ...props
94
94
  });
95
95
  }
96
96
  function AlertDialogTitle({ className, ...props }) {
97
97
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Title, {
98
- className: (0, tailwind_variants_namespaceObject.cn)('text-lg leading-none font-semibold tracking-tight', className),
98
+ className: (0, tailwind_variants_namespaceObject.cn)("text-lg leading-none font-semibold tracking-tight", className),
99
99
  "data-slot": "alert-dialog-title",
100
100
  ...props
101
101
  });
102
102
  }
103
103
  function AlertDialogDescription({ className, ...props }) {
104
104
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Description, {
105
- className: (0, tailwind_variants_namespaceObject.cn)('text-muted-foreground text-sm', className),
105
+ className: (0, tailwind_variants_namespaceObject.cn)("text-sm text-muted-foreground", className),
106
106
  "data-slot": "alert-dialog-description",
107
107
  ...props
108
108
  });
@@ -118,7 +118,7 @@ function AlertDialogAction({ className, size, variant, ...props }) {
118
118
  ...props
119
119
  });
120
120
  }
121
- function AlertDialogCancel({ className, size, variant = 'outline', ...props }) {
121
+ function AlertDialogCancel({ className, size, variant = "outline", ...props }) {
122
122
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_alert_dialog_namespaceObject.Cancel, {
123
123
  className: (0, external_button_cjs_namespaceObject.buttonVariants)({
124
124
  className,
@@ -1,7 +1,7 @@
1
- import type { VariantProps } from '@codefast/tailwind-variants';
2
- import type { ComponentProps, JSX } from 'react';
3
- import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
4
- import { buttonVariants } from './button';
1
+ import type { VariantProps } from "@codefast/tailwind-variants";
2
+ import type { ComponentProps, JSX } from "react";
3
+ import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
4
+ import { buttonVariants } from "./button";
5
5
  type AlertDialogProps = ComponentProps<typeof AlertDialogPrimitive.Root>;
6
6
  declare function AlertDialog({ ...props }: AlertDialogProps): JSX.Element;
7
7
  type AlertDialogTriggerProps = ComponentProps<typeof AlertDialogPrimitive.Trigger>;
@@ -14,24 +14,24 @@ interface AlertDialogContentProps extends ComponentProps<typeof AlertDialogPrimi
14
14
  };
15
15
  }
16
16
  declare function AlertDialogContent({ children, className, classNames, ...props }: AlertDialogContentProps): JSX.Element;
17
- type AlertDialogHeaderProps = ComponentProps<'div'>;
17
+ type AlertDialogHeaderProps = ComponentProps<"div">;
18
18
  declare function AlertDialogHeader({ className, ...props }: AlertDialogHeaderProps): JSX.Element;
19
- type AlertDialogBodyProps = ComponentProps<'div'>;
19
+ type AlertDialogBodyProps = ComponentProps<"div">;
20
20
  declare function AlertDialogBody({ className, ...props }: AlertDialogBodyProps): JSX.Element;
21
- type AlertDialogFooterProps = ComponentProps<'div'>;
21
+ type AlertDialogFooterProps = ComponentProps<"div">;
22
22
  declare function AlertDialogFooter({ className, ...props }: AlertDialogFooterProps): JSX.Element;
23
23
  type AlertDialogTitleProps = ComponentProps<typeof AlertDialogPrimitive.Title>;
24
24
  declare function AlertDialogTitle({ className, ...props }: AlertDialogTitleProps): JSX.Element;
25
25
  type AlertDialogDescriptionProps = ComponentProps<typeof AlertDialogPrimitive.Description>;
26
26
  declare function AlertDialogDescription({ className, ...props }: AlertDialogDescriptionProps): JSX.Element;
27
27
  interface AlertDialogActionProps extends ComponentProps<typeof AlertDialogPrimitive.Action> {
28
- size?: VariantProps<typeof buttonVariants>['size'];
29
- variant?: VariantProps<typeof buttonVariants>['variant'];
28
+ size?: VariantProps<typeof buttonVariants>["size"];
29
+ variant?: VariantProps<typeof buttonVariants>["variant"];
30
30
  }
31
31
  declare function AlertDialogAction({ className, size, variant, ...props }: AlertDialogActionProps): JSX.Element;
32
32
  interface AlertDialogCancelProps extends ComponentProps<typeof AlertDialogPrimitive.Cancel> {
33
- size?: VariantProps<typeof buttonVariants>['size'];
34
- variant?: VariantProps<typeof buttonVariants>['variant'];
33
+ size?: VariantProps<typeof buttonVariants>["size"];
34
+ variant?: VariantProps<typeof buttonVariants>["variant"];
35
35
  }
36
36
  declare function AlertDialogCancel({ className, size, variant, ...props }: AlertDialogCancelProps): JSX.Element;
37
37
  export { AlertDialog, AlertDialogAction, AlertDialogBody, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, };
@@ -19,15 +19,15 @@ function AlertDialogContent({ children, className, classNames, ...props }) {
19
19
  return /*#__PURE__*/ jsxs(Portal, {
20
20
  children: [
21
21
  /*#__PURE__*/ jsx(Overlay, {
22
- className: cn('data-[state=open]:fade-in-0 data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=closed]:animate-out ease-ui fixed inset-0 z-50 bg-black/50', classNames?.overlay),
22
+ className: cn("fixed inset-0 z-50 bg-black/50 ease-ui data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0", classNames?.overlay),
23
23
  "data-slot": "alert-dialog-overlay"
24
24
  }),
25
25
  /*#__PURE__*/ jsx(Content, {
26
- className: cn('data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 ease-ui fixed inset-0 z-50 grid grid-rows-[1fr_auto_1fr] justify-items-center overflow-auto p-8 sm:grid-rows-[1fr_auto_3fr] sm:p-4', classNames?.wrapper),
26
+ className: cn("fixed inset-0 z-50 grid grid-rows-[1fr_auto_1fr] justify-items-center overflow-auto p-8 ease-ui data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:grid-rows-[1fr_auto_3fr] sm:p-4", classNames?.wrapper),
27
27
  "data-slot": "alert-dialog-content-wrapper",
28
28
  ...props,
29
29
  children: /*#__PURE__*/ jsx("div", {
30
- className: cn('bg-popover text-popover-foreground relative row-start-2 flex w-full max-w-lg flex-col rounded-2xl border shadow-lg', classNames?.content, className),
30
+ className: cn("relative row-start-2 flex w-full max-w-lg flex-col rounded-2xl border bg-popover text-popover-foreground shadow-lg", classNames?.content, className),
31
31
  "data-slot": "alert-dialog-content",
32
32
  children: children
33
33
  })
@@ -37,35 +37,35 @@ function AlertDialogContent({ children, className, classNames, ...props }) {
37
37
  }
38
38
  function AlertDialogHeader({ className, ...props }) {
39
39
  return /*#__PURE__*/ jsx("div", {
40
- className: cn('flex shrink-0 flex-col gap-1.5 px-6 pt-6 pb-4 text-center sm:text-left', className),
40
+ className: cn("flex shrink-0 flex-col gap-1.5 px-6 pt-6 pb-4 text-center sm:text-left", className),
41
41
  "data-slot": "alert-dialog-header",
42
42
  ...props
43
43
  });
44
44
  }
45
45
  function AlertDialogBody({ className, ...props }) {
46
46
  return /*#__PURE__*/ jsx("main", {
47
- className: cn('overflow-auto px-6 py-2', className),
47
+ className: cn("overflow-auto px-6 py-2", className),
48
48
  "data-slot": "alert-dialog-body",
49
49
  ...props
50
50
  });
51
51
  }
52
52
  function AlertDialogFooter({ className, ...props }) {
53
53
  return /*#__PURE__*/ jsx("div", {
54
- className: cn('flex shrink-0 flex-col-reverse gap-2 px-6 pt-4 pb-6 sm:flex-row sm:justify-end', className),
54
+ className: cn("flex shrink-0 flex-col-reverse gap-2 px-6 pt-4 pb-6 sm:flex-row sm:justify-end", className),
55
55
  "data-slot": "alert-dialog-footer",
56
56
  ...props
57
57
  });
58
58
  }
59
59
  function AlertDialogTitle({ className, ...props }) {
60
60
  return /*#__PURE__*/ jsx(Title, {
61
- className: cn('text-lg leading-none font-semibold tracking-tight', className),
61
+ className: cn("text-lg leading-none font-semibold tracking-tight", className),
62
62
  "data-slot": "alert-dialog-title",
63
63
  ...props
64
64
  });
65
65
  }
66
66
  function AlertDialogDescription({ className, ...props }) {
67
67
  return /*#__PURE__*/ jsx(Description, {
68
- className: cn('text-muted-foreground text-sm', className),
68
+ className: cn("text-sm text-muted-foreground", className),
69
69
  "data-slot": "alert-dialog-description",
70
70
  ...props
71
71
  });
@@ -81,7 +81,7 @@ function AlertDialogAction({ className, size, variant, ...props }) {
81
81
  ...props
82
82
  });
83
83
  }
84
- function AlertDialogCancel({ className, size, variant = 'outline', ...props }) {
84
+ function AlertDialogCancel({ className, size, variant = "outline", ...props }) {
85
85
  return /*#__PURE__*/ jsx(Cancel, {
86
86
  className: buttonVariants({
87
87
  className,
@@ -32,13 +32,13 @@ __webpack_require__.d(__webpack_exports__, {
32
32
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
33
33
  const tailwind_variants_namespaceObject = require("@codefast/tailwind-variants");
34
34
  const alertVariants = (0, tailwind_variants_namespaceObject.tv)({
35
- base: 'bg-card relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-xl border px-4 py-3 text-sm has-[>svg]:grid-cols-[--spacing(4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current',
35
+ base: "relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-xl border bg-card px-4 py-3 text-sm has-[>svg]:grid-cols-[--spacing(4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",
36
36
  defaultVariants: {
37
- variant: 'default'
37
+ variant: "default"
38
38
  },
39
39
  variants: {
40
40
  variant: {
41
- default: 'text-card-foreground',
41
+ default: "text-card-foreground",
42
42
  destructive: "text-destructive *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current"
43
43
  }
44
44
  }
@@ -56,7 +56,7 @@ function Alert({ className, variant, ...props }) {
56
56
  }
57
57
  function AlertTitle({ children, className, ...props }) {
58
58
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
59
- className: (0, tailwind_variants_namespaceObject.cn)('col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight', className),
59
+ className: (0, tailwind_variants_namespaceObject.cn)("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight", className),
60
60
  "data-slot": "alert-title",
61
61
  ...props,
62
62
  children: children
@@ -64,7 +64,7 @@ function AlertTitle({ children, className, ...props }) {
64
64
  }
65
65
  function AlertDescription({ className, ...props }) {
66
66
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
67
- className: (0, tailwind_variants_namespaceObject.cn)('text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed', className),
67
+ className: (0, tailwind_variants_namespaceObject.cn)("col-start-2 grid justify-items-start gap-1 text-sm text-muted-foreground [&_p]:leading-relaxed", className),
68
68
  "data-slot": "alert-description",
69
69
  ...props
70
70
  });
@@ -1,17 +1,17 @@
1
- import type { VariantProps } from '@codefast/tailwind-variants';
2
- import type { ComponentProps, JSX } from 'react';
1
+ import type { VariantProps } from "@codefast/tailwind-variants";
2
+ import type { ComponentProps, JSX } from "react";
3
3
  declare const alertVariants: import("@codefast/tailwind-variants").VariantFunctionType<{
4
4
  variant: {
5
5
  default: string;
6
6
  destructive: string;
7
7
  };
8
8
  }, Record<string, never>>;
9
- interface AlertProps extends ComponentProps<'div'>, VariantProps<typeof alertVariants> {
9
+ interface AlertProps extends ComponentProps<"div">, VariantProps<typeof alertVariants> {
10
10
  }
11
11
  declare function Alert({ className, variant, ...props }: AlertProps): JSX.Element;
12
- type AlertTitleProps = ComponentProps<'div'>;
12
+ type AlertTitleProps = ComponentProps<"div">;
13
13
  declare function AlertTitle({ children, className, ...props }: AlertTitleProps): JSX.Element;
14
- type AlertDescriptionProps = ComponentProps<'div'>;
14
+ type AlertDescriptionProps = ComponentProps<"div">;
15
15
  declare function AlertDescription({ className, ...props }: AlertDescriptionProps): JSX.Element;
16
16
  export { alertVariants };
17
17
  export { Alert, AlertDescription, AlertTitle };
@@ -1,13 +1,13 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { cn, tv } from "@codefast/tailwind-variants";
3
3
  const alertVariants = tv({
4
- base: 'bg-card relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-xl border px-4 py-3 text-sm has-[>svg]:grid-cols-[--spacing(4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current',
4
+ base: "relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-xl border bg-card px-4 py-3 text-sm has-[>svg]:grid-cols-[--spacing(4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",
5
5
  defaultVariants: {
6
- variant: 'default'
6
+ variant: "default"
7
7
  },
8
8
  variants: {
9
9
  variant: {
10
- default: 'text-card-foreground',
10
+ default: "text-card-foreground",
11
11
  destructive: "text-destructive *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current"
12
12
  }
13
13
  }
@@ -25,7 +25,7 @@ function Alert({ className, variant, ...props }) {
25
25
  }
26
26
  function AlertTitle({ children, className, ...props }) {
27
27
  return /*#__PURE__*/ jsx("div", {
28
- className: cn('col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight', className),
28
+ className: cn("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight", className),
29
29
  "data-slot": "alert-title",
30
30
  ...props,
31
31
  children: children
@@ -33,7 +33,7 @@ function AlertTitle({ children, className, ...props }) {
33
33
  }
34
34
  function AlertDescription({ className, ...props }) {
35
35
  return /*#__PURE__*/ jsx("div", {
36
- className: cn('text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed', className),
36
+ className: cn("col-start-2 grid justify-items-start gap-1 text-sm text-muted-foreground [&_p]:leading-relaxed", className),
37
37
  "data-slot": "alert-description",
38
38
  ...props
39
39
  });
@@ -1,5 +1,5 @@
1
- import type { ComponentProps, JSX } from 'react';
2
- import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
1
+ import type { ComponentProps, JSX } from "react";
2
+ import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
3
3
  type AspectRatioProps = ComponentProps<typeof AspectRatioPrimitive.Root>;
4
4
  declare function AspectRatio({ ...props }: AspectRatioProps): JSX.Element;
5
5
  export { AspectRatio };
@@ -34,21 +34,21 @@ const tailwind_variants_namespaceObject = require("@codefast/tailwind-variants")
34
34
  const react_avatar_namespaceObject = require("@radix-ui/react-avatar");
35
35
  function Avatar({ className, ...props }) {
36
36
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_avatar_namespaceObject.Root, {
37
- className: (0, tailwind_variants_namespaceObject.cn)('relative flex size-8 shrink-0 overflow-hidden rounded-full', className),
37
+ className: (0, tailwind_variants_namespaceObject.cn)("relative flex size-8 shrink-0 overflow-hidden rounded-full", className),
38
38
  "data-slot": "avatar",
39
39
  ...props
40
40
  });
41
41
  }
42
42
  function AvatarImage({ className, ...props }) {
43
43
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_avatar_namespaceObject.Image, {
44
- className: (0, tailwind_variants_namespaceObject.cn)('aspect-square size-full', className),
44
+ className: (0, tailwind_variants_namespaceObject.cn)("aspect-square size-full", className),
45
45
  "data-slot": "avatar-image",
46
46
  ...props
47
47
  });
48
48
  }
49
49
  function AvatarFallback({ className, ...props }) {
50
50
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_avatar_namespaceObject.Fallback, {
51
- className: (0, tailwind_variants_namespaceObject.cn)('bg-muted flex size-full items-center justify-center rounded-full', className),
51
+ className: (0, tailwind_variants_namespaceObject.cn)("flex size-full items-center justify-center rounded-full bg-muted", className),
52
52
  "data-slot": "avatar-fallback",
53
53
  ...props
54
54
  });
@@ -1,5 +1,5 @@
1
- import type { ComponentProps, JSX } from 'react';
2
- import * as AvatarPrimitive from '@radix-ui/react-avatar';
1
+ import type { ComponentProps, JSX } from "react";
2
+ import * as AvatarPrimitive from "@radix-ui/react-avatar";
3
3
  type AvatarProps = ComponentProps<typeof AvatarPrimitive.Root>;
4
4
  declare function Avatar({ className, ...props }: AvatarProps): JSX.Element;
5
5
  type AvatarImageProps = ComponentProps<typeof AvatarPrimitive.Image>;
@@ -4,21 +4,21 @@ import { cn } from "@codefast/tailwind-variants";
4
4
  import { Fallback, Image, Root } from "@radix-ui/react-avatar";
5
5
  function Avatar({ className, ...props }) {
6
6
  return /*#__PURE__*/ jsx(Root, {
7
- className: cn('relative flex size-8 shrink-0 overflow-hidden rounded-full', className),
7
+ className: cn("relative flex size-8 shrink-0 overflow-hidden rounded-full", className),
8
8
  "data-slot": "avatar",
9
9
  ...props
10
10
  });
11
11
  }
12
12
  function AvatarImage({ className, ...props }) {
13
13
  return /*#__PURE__*/ jsx(Image, {
14
- className: cn('aspect-square size-full', className),
14
+ className: cn("aspect-square size-full", className),
15
15
  "data-slot": "avatar-image",
16
16
  ...props
17
17
  });
18
18
  }
19
19
  function AvatarFallback({ className, ...props }) {
20
20
  return /*#__PURE__*/ jsx(Fallback, {
21
- className: cn('bg-muted flex size-full items-center justify-center rounded-full', className),
21
+ className: cn("flex size-full items-center justify-center rounded-full bg-muted", className),
22
22
  "data-slot": "avatar-fallback",
23
23
  ...props
24
24
  });
@@ -32,21 +32,21 @@ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
32
32
  const tailwind_variants_namespaceObject = require("@codefast/tailwind-variants");
33
33
  const react_slot_namespaceObject = require("@radix-ui/react-slot");
34
34
  const badgeVariants = (0, tailwind_variants_namespaceObject.tv)({
35
- base: 'focus-visible:ring-ring/50 focus-visible:ring-3 outline-hidden inline-flex w-fit shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md border px-1.5 py-0.5 text-xs font-medium transition [&>svg]:size-3 [&>svg]:shrink-0',
35
+ base: "inline-flex w-fit shrink-0 items-center justify-center gap-2 rounded-md border px-1.5 py-0.5 text-xs font-medium whitespace-nowrap outline-hidden transition focus-visible:ring-3 focus-visible:ring-ring/50 [&>svg]:size-3 [&>svg]:shrink-0",
36
36
  defaultVariants: {
37
- variant: 'default'
37
+ variant: "default"
38
38
  },
39
39
  variants: {
40
40
  variant: {
41
- default: 'bg-primary [a&]:hover:bg-primary/80 text-primary-foreground focus-visible:ring-primary/20 dark:focus-visible:ring-primary/40 border-transparent',
42
- destructive: 'bg-destructive dark:bg-destructive/60 [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 border-transparent text-white',
43
- outline: 'bg-background border-input [a&]:hover:bg-accent [a&]:hover:text-accent-foreground [a&]:hover:border-ring/60 focus-visible:border-ring',
44
- secondary: 'bg-secondary [a&]:hover:bg-secondary/80 text-secondary-foreground border-transparent'
41
+ default: "border-transparent bg-primary text-primary-foreground focus-visible:ring-primary/20 dark:focus-visible:ring-primary/40 [a&]:hover:bg-primary/80",
42
+ destructive: "border-transparent bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90",
43
+ outline: "border-input bg-background focus-visible:border-ring [a&]:hover:border-ring/60 [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
44
+ secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/80"
45
45
  }
46
46
  }
47
47
  });
48
48
  function Badge({ asChild, className, variant, ...props }) {
49
- const Component = asChild ? react_slot_namespaceObject.Slot : 'span';
49
+ const Component = asChild ? react_slot_namespaceObject.Slot : "span";
50
50
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Component, {
51
51
  className: badgeVariants({
52
52
  className,
@@ -1,5 +1,5 @@
1
- import type { VariantProps } from '@codefast/tailwind-variants';
2
- import type { ComponentProps, JSX } from 'react';
1
+ import type { VariantProps } from "@codefast/tailwind-variants";
2
+ import type { ComponentProps, JSX } from "react";
3
3
  declare const badgeVariants: import("@codefast/tailwind-variants").VariantFunctionType<{
4
4
  variant: {
5
5
  default: string;
@@ -8,7 +8,7 @@ declare const badgeVariants: import("@codefast/tailwind-variants").VariantFuncti
8
8
  secondary: string;
9
9
  };
10
10
  }, Record<string, never>>;
11
- interface BadgeProps extends ComponentProps<'span'>, VariantProps<typeof badgeVariants> {
11
+ interface BadgeProps extends ComponentProps<"span">, VariantProps<typeof badgeVariants> {
12
12
  asChild?: boolean;
13
13
  }
14
14
  declare function Badge({ asChild, className, variant, ...props }: BadgeProps): JSX.Element;
@@ -3,21 +3,21 @@ import { jsx } from "react/jsx-runtime";
3
3
  import { tv } from "@codefast/tailwind-variants";
4
4
  import { Slot } from "@radix-ui/react-slot";
5
5
  const badgeVariants = tv({
6
- base: 'focus-visible:ring-ring/50 focus-visible:ring-3 outline-hidden inline-flex w-fit shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md border px-1.5 py-0.5 text-xs font-medium transition [&>svg]:size-3 [&>svg]:shrink-0',
6
+ base: "inline-flex w-fit shrink-0 items-center justify-center gap-2 rounded-md border px-1.5 py-0.5 text-xs font-medium whitespace-nowrap outline-hidden transition focus-visible:ring-3 focus-visible:ring-ring/50 [&>svg]:size-3 [&>svg]:shrink-0",
7
7
  defaultVariants: {
8
- variant: 'default'
8
+ variant: "default"
9
9
  },
10
10
  variants: {
11
11
  variant: {
12
- default: 'bg-primary [a&]:hover:bg-primary/80 text-primary-foreground focus-visible:ring-primary/20 dark:focus-visible:ring-primary/40 border-transparent',
13
- destructive: 'bg-destructive dark:bg-destructive/60 [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 border-transparent text-white',
14
- outline: 'bg-background border-input [a&]:hover:bg-accent [a&]:hover:text-accent-foreground [a&]:hover:border-ring/60 focus-visible:border-ring',
15
- secondary: 'bg-secondary [a&]:hover:bg-secondary/80 text-secondary-foreground border-transparent'
12
+ default: "border-transparent bg-primary text-primary-foreground focus-visible:ring-primary/20 dark:focus-visible:ring-primary/40 [a&]:hover:bg-primary/80",
13
+ destructive: "border-transparent bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90",
14
+ outline: "border-input bg-background focus-visible:border-ring [a&]:hover:border-ring/60 [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
15
+ secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/80"
16
16
  }
17
17
  }
18
18
  });
19
19
  function Badge({ asChild, className, variant, ...props }) {
20
- const Component = asChild ? Slot : 'span';
20
+ const Component = asChild ? Slot : "span";
21
21
  return /*#__PURE__*/ jsx(Component, {
22
22
  className: badgeVariants({
23
23
  className,
@@ -46,22 +46,22 @@ function Breadcrumb({ ...props }) {
46
46
  }
47
47
  function BreadcrumbList({ className, ...props }) {
48
48
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("ol", {
49
- className: (0, tailwind_variants_namespaceObject.cn)('text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2', className),
49
+ className: (0, tailwind_variants_namespaceObject.cn)("flex flex-wrap items-center gap-1.5 text-sm break-words text-muted-foreground sm:gap-2", className),
50
50
  "data-slot": "breadcrumb-list",
51
51
  ...props
52
52
  });
53
53
  }
54
54
  function BreadcrumbItem({ className, ...props }) {
55
55
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("li", {
56
- className: (0, tailwind_variants_namespaceObject.cn)('inline-flex items-center gap-1.5', className),
56
+ className: (0, tailwind_variants_namespaceObject.cn)("inline-flex items-center gap-1.5", className),
57
57
  "data-slot": "breadcrumb-item",
58
58
  ...props
59
59
  });
60
60
  }
61
61
  function BreadcrumbLink({ asChild, className, ...props }) {
62
- const Component = asChild ? react_slot_namespaceObject.Slot : 'a';
62
+ const Component = asChild ? react_slot_namespaceObject.Slot : "a";
63
63
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Component, {
64
- className: (0, tailwind_variants_namespaceObject.cn)('hover:text-foreground transition-colors', className),
64
+ className: (0, tailwind_variants_namespaceObject.cn)("transition-colors hover:text-foreground", className),
65
65
  "data-slot": "breadcrumb-link",
66
66
  ...props
67
67
  });
@@ -70,10 +70,8 @@ function BreadcrumbPage({ className, ...props }) {
70
70
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
71
71
  "aria-current": "page",
72
72
  "aria-disabled": "true",
73
- className: (0, tailwind_variants_namespaceObject.cn)('text-foreground font-normal', className),
73
+ className: (0, tailwind_variants_namespaceObject.cn)("font-normal text-foreground", className),
74
74
  "data-slot": "breadcrumb-page",
75
- role: "link",
76
- tabIndex: 0,
77
75
  ...props
78
76
  });
79
77
  }
@@ -91,7 +89,7 @@ function BreadcrumbSeparator({ children, ...props }) {
91
89
  function BreadcrumbEllipsis({ className, ...props }) {
92
90
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("span", {
93
91
  "aria-hidden": "true",
94
- className: (0, tailwind_variants_namespaceObject.cn)('flex size-4 items-center justify-center', className),
92
+ className: (0, tailwind_variants_namespaceObject.cn)("flex size-4 items-center justify-center", className),
95
93
  "data-slot": "breadcrumb-ellipsis",
96
94
  role: "presentation",
97
95
  ...props,
@@ -1,21 +1,21 @@
1
- import type { ComponentProps, JSX, ReactNode } from 'react';
2
- interface BreadcrumbProps extends ComponentProps<'nav'> {
1
+ import type { ComponentProps, JSX, ReactNode } from "react";
2
+ interface BreadcrumbProps extends ComponentProps<"nav"> {
3
3
  separator?: ReactNode;
4
4
  }
5
5
  declare function Breadcrumb({ ...props }: BreadcrumbProps): JSX.Element;
6
- type BreadcrumbListProps = ComponentProps<'ol'>;
6
+ type BreadcrumbListProps = ComponentProps<"ol">;
7
7
  declare function BreadcrumbList({ className, ...props }: BreadcrumbListProps): JSX.Element;
8
- type BreadcrumbItemProps = ComponentProps<'li'>;
8
+ type BreadcrumbItemProps = ComponentProps<"li">;
9
9
  declare function BreadcrumbItem({ className, ...props }: BreadcrumbItemProps): JSX.Element;
10
- interface BreadcrumbLinkProps extends ComponentProps<'a'> {
10
+ interface BreadcrumbLinkProps extends ComponentProps<"a"> {
11
11
  asChild?: boolean;
12
12
  }
13
13
  declare function BreadcrumbLink({ asChild, className, ...props }: BreadcrumbLinkProps): JSX.Element;
14
- type BreadcrumbPageProps = ComponentProps<'span'>;
14
+ type BreadcrumbPageProps = ComponentProps<"span">;
15
15
  declare function BreadcrumbPage({ className, ...props }: BreadcrumbPageProps): JSX.Element;
16
- type BreadcrumbSeparatorProps = ComponentProps<'li'>;
16
+ type BreadcrumbSeparatorProps = ComponentProps<"li">;
17
17
  declare function BreadcrumbSeparator({ children, ...props }: BreadcrumbSeparatorProps): JSX.Element;
18
- type BreadcrumbEllipsisProps = ComponentProps<'span'>;
18
+ type BreadcrumbEllipsisProps = ComponentProps<"span">;
19
19
  declare function BreadcrumbEllipsis({ className, ...props }: BreadcrumbEllipsisProps): JSX.Element;
20
20
  export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, };
21
21
  export type { BreadcrumbEllipsisProps, BreadcrumbItemProps, BreadcrumbLinkProps, BreadcrumbListProps, BreadcrumbPageProps, BreadcrumbProps, BreadcrumbSeparatorProps, };
@@ -12,22 +12,22 @@ function Breadcrumb({ ...props }) {
12
12
  }
13
13
  function BreadcrumbList({ className, ...props }) {
14
14
  return /*#__PURE__*/ jsx("ol", {
15
- className: cn('text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2', className),
15
+ className: cn("flex flex-wrap items-center gap-1.5 text-sm break-words text-muted-foreground sm:gap-2", className),
16
16
  "data-slot": "breadcrumb-list",
17
17
  ...props
18
18
  });
19
19
  }
20
20
  function BreadcrumbItem({ className, ...props }) {
21
21
  return /*#__PURE__*/ jsx("li", {
22
- className: cn('inline-flex items-center gap-1.5', className),
22
+ className: cn("inline-flex items-center gap-1.5", className),
23
23
  "data-slot": "breadcrumb-item",
24
24
  ...props
25
25
  });
26
26
  }
27
27
  function BreadcrumbLink({ asChild, className, ...props }) {
28
- const Component = asChild ? Slot : 'a';
28
+ const Component = asChild ? Slot : "a";
29
29
  return /*#__PURE__*/ jsx(Component, {
30
- className: cn('hover:text-foreground transition-colors', className),
30
+ className: cn("transition-colors hover:text-foreground", className),
31
31
  "data-slot": "breadcrumb-link",
32
32
  ...props
33
33
  });
@@ -36,10 +36,8 @@ function BreadcrumbPage({ className, ...props }) {
36
36
  return /*#__PURE__*/ jsx("span", {
37
37
  "aria-current": "page",
38
38
  "aria-disabled": "true",
39
- className: cn('text-foreground font-normal', className),
39
+ className: cn("font-normal text-foreground", className),
40
40
  "data-slot": "breadcrumb-page",
41
- role: "link",
42
- tabIndex: 0,
43
41
  ...props
44
42
  });
45
43
  }
@@ -57,7 +55,7 @@ function BreadcrumbSeparator({ children, ...props }) {
57
55
  function BreadcrumbEllipsis({ className, ...props }) {
58
56
  return /*#__PURE__*/ jsxs("span", {
59
57
  "aria-hidden": "true",
60
- className: cn('flex size-4 items-center justify-center', className),
58
+ className: cn("flex size-4 items-center justify-center", className),
61
59
  "data-slot": "breadcrumb-ellipsis",
62
60
  role: "presentation",
63
61
  ...props,