@codefast/ui 0.1.12 → 0.1.14

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 (287) hide show
  1. package/dist/chunk-5JGCIAX3.cjs +2 -0
  2. package/dist/chunk-5JGCIAX3.cjs.map +1 -0
  3. package/dist/chunk-AH3OBTDO.cjs +2 -0
  4. package/dist/chunk-AH3OBTDO.cjs.map +1 -0
  5. package/dist/chunk-CIMAEJ26.js +2 -0
  6. package/dist/chunk-CIMAEJ26.js.map +1 -0
  7. package/dist/chunk-EWFBUJ5V.cjs +2 -0
  8. package/dist/chunk-EWFBUJ5V.cjs.map +1 -0
  9. package/dist/chunk-FIU6XBX4.js +2 -0
  10. package/dist/chunk-FIU6XBX4.js.map +1 -0
  11. package/dist/chunk-FPCACNPX.cjs +2 -0
  12. package/dist/chunk-FPCACNPX.cjs.map +1 -0
  13. package/dist/chunk-K4DIHWHX.js +2 -0
  14. package/dist/chunk-K4DIHWHX.js.map +1 -0
  15. package/dist/chunk-LSBI35ZE.cjs +2 -0
  16. package/dist/chunk-LSBI35ZE.cjs.map +1 -0
  17. package/dist/chunk-O4CKTS5M.cjs +2 -0
  18. package/dist/chunk-O4CKTS5M.cjs.map +1 -0
  19. package/dist/chunk-O5EAJQGO.js +2 -0
  20. package/dist/chunk-O5EAJQGO.js.map +1 -0
  21. package/dist/chunk-ONMU2LFX.js +2 -0
  22. package/dist/chunk-ONMU2LFX.js.map +1 -0
  23. package/dist/chunk-SL4DH4JN.cjs +2 -0
  24. package/dist/chunk-SL4DH4JN.cjs.map +1 -0
  25. package/dist/chunk-SP6TA64U.js +2 -0
  26. package/dist/chunk-SP6TA64U.js.map +1 -0
  27. package/dist/chunk-V2GDHPHA.js +2 -0
  28. package/dist/chunk-V2GDHPHA.js.map +1 -0
  29. package/dist/chunk-YGPIWXWP.js +2 -0
  30. package/dist/chunk-YGPIWXWP.js.map +1 -0
  31. package/dist/chunk-YGWCQ264.cjs +2 -0
  32. package/dist/chunk-YGWCQ264.cjs.map +1 -0
  33. package/dist/components/accordion.cjs +1 -1
  34. package/dist/components/accordion.cjs.map +1 -1
  35. package/dist/components/accordion.js +1 -1
  36. package/dist/components/accordion.js.map +1 -1
  37. package/dist/components/alert-dialog.cjs +1 -1
  38. package/dist/components/alert-dialog.cjs.map +1 -1
  39. package/dist/components/alert-dialog.d.cts +1 -1
  40. package/dist/components/alert-dialog.d.ts +1 -1
  41. package/dist/components/alert-dialog.js +1 -1
  42. package/dist/components/alert-dialog.js.map +1 -1
  43. package/dist/components/badge.cjs +1 -1
  44. package/dist/components/badge.cjs.map +1 -1
  45. package/dist/components/badge.d.cts +98 -4
  46. package/dist/components/badge.d.ts +98 -4
  47. package/dist/components/badge.js +1 -1
  48. package/dist/components/badge.js.map +1 -1
  49. package/dist/components/breadcrumb.cjs +1 -1
  50. package/dist/components/breadcrumb.cjs.map +1 -1
  51. package/dist/components/breadcrumb.d.cts +1 -1
  52. package/dist/components/breadcrumb.d.ts +1 -1
  53. package/dist/components/breadcrumb.js +1 -1
  54. package/dist/components/breadcrumb.js.map +1 -1
  55. package/dist/components/button.cjs +1 -1
  56. package/dist/components/button.cjs.map +1 -1
  57. package/dist/components/button.d.cts +8 -176
  58. package/dist/components/button.d.ts +8 -176
  59. package/dist/components/button.js +1 -1
  60. package/dist/components/calendar.cjs +1 -1
  61. package/dist/components/calendar.cjs.map +1 -1
  62. package/dist/components/calendar.js +1 -1
  63. package/dist/components/calendar.js.map +1 -1
  64. package/dist/components/card.cjs +1 -1
  65. package/dist/components/card.cjs.map +1 -1
  66. package/dist/components/card.js +1 -1
  67. package/dist/components/card.js.map +1 -1
  68. package/dist/components/carousel.cjs +1 -1
  69. package/dist/components/carousel.cjs.map +1 -1
  70. package/dist/components/carousel.d.cts +7 -1
  71. package/dist/components/carousel.d.ts +7 -1
  72. package/dist/components/carousel.js +1 -1
  73. package/dist/components/carousel.js.map +1 -1
  74. package/dist/components/checkbox-cards.cjs +1 -1
  75. package/dist/components/checkbox-cards.cjs.map +1 -1
  76. package/dist/components/checkbox-cards.js +1 -1
  77. package/dist/components/checkbox-cards.js.map +1 -1
  78. package/dist/components/checkbox-group.cjs +1 -1
  79. package/dist/components/checkbox-group.cjs.map +1 -1
  80. package/dist/components/checkbox-group.js +1 -1
  81. package/dist/components/checkbox-group.js.map +1 -1
  82. package/dist/components/checkbox.cjs +1 -1
  83. package/dist/components/checkbox.cjs.map +1 -1
  84. package/dist/components/checkbox.js +1 -1
  85. package/dist/components/checkbox.js.map +1 -1
  86. package/dist/components/collapsible.cjs +1 -1
  87. package/dist/components/collapsible.cjs.map +1 -1
  88. package/dist/components/collapsible.js +1 -1
  89. package/dist/components/collapsible.js.map +1 -1
  90. package/dist/components/command.cjs +1 -1
  91. package/dist/components/command.cjs.map +1 -1
  92. package/dist/components/command.d.cts +9 -9
  93. package/dist/components/command.d.ts +9 -9
  94. package/dist/components/command.js +1 -1
  95. package/dist/components/command.js.map +1 -1
  96. package/dist/components/context-menu.cjs +1 -1
  97. package/dist/components/context-menu.cjs.map +1 -1
  98. package/dist/components/context-menu.js +1 -1
  99. package/dist/components/context-menu.js.map +1 -1
  100. package/dist/components/data-table.cjs +1 -1
  101. package/dist/components/data-table.cjs.map +1 -1
  102. package/dist/components/data-table.js +1 -1
  103. package/dist/components/data-table.js.map +1 -1
  104. package/dist/components/dialog.cjs +1 -1
  105. package/dist/components/dialog.cjs.map +1 -1
  106. package/dist/components/dialog.d.cts +1 -1
  107. package/dist/components/dialog.d.ts +1 -1
  108. package/dist/components/dialog.js +1 -1
  109. package/dist/components/drawer.cjs +1 -1
  110. package/dist/components/drawer.cjs.map +1 -1
  111. package/dist/components/drawer.d.cts +2 -4
  112. package/dist/components/drawer.d.ts +2 -4
  113. package/dist/components/drawer.js +1 -1
  114. package/dist/components/drawer.js.map +1 -1
  115. package/dist/components/dropdown-menu.cjs +1 -1
  116. package/dist/components/dropdown-menu.cjs.map +1 -1
  117. package/dist/components/dropdown-menu.d.cts +3 -1
  118. package/dist/components/dropdown-menu.d.ts +3 -1
  119. package/dist/components/dropdown-menu.js +1 -1
  120. package/dist/components/form.cjs +1 -1
  121. package/dist/components/form.cjs.map +1 -1
  122. package/dist/components/form.js +1 -1
  123. package/dist/components/form.js.map +1 -1
  124. package/dist/components/hover-card.cjs +1 -1
  125. package/dist/components/hover-card.cjs.map +1 -1
  126. package/dist/components/hover-card.js +1 -1
  127. package/dist/components/hover-card.js.map +1 -1
  128. package/dist/components/menubar.cjs +1 -1
  129. package/dist/components/menubar.cjs.map +1 -1
  130. package/dist/components/menubar.d.cts +3 -1
  131. package/dist/components/menubar.d.ts +3 -1
  132. package/dist/components/menubar.js +1 -1
  133. package/dist/components/menubar.js.map +1 -1
  134. package/dist/components/navigation-menu.cjs +1 -1
  135. package/dist/components/navigation-menu.cjs.map +1 -1
  136. package/dist/components/navigation-menu.d.cts +1 -4
  137. package/dist/components/navigation-menu.d.ts +1 -4
  138. package/dist/components/navigation-menu.js +1 -1
  139. package/dist/components/navigation-menu.js.map +1 -1
  140. package/dist/components/number-input.cjs +1 -1
  141. package/dist/components/number-input.cjs.map +1 -1
  142. package/dist/components/number-input.d.cts +1 -2
  143. package/dist/components/number-input.d.ts +1 -2
  144. package/dist/components/number-input.js +1 -1
  145. package/dist/components/number-input.js.map +1 -1
  146. package/dist/components/pagination.cjs +1 -1
  147. package/dist/components/pagination.cjs.map +1 -1
  148. package/dist/components/pagination.d.cts +1 -1
  149. package/dist/components/pagination.d.ts +1 -1
  150. package/dist/components/pagination.js +1 -1
  151. package/dist/components/pagination.js.map +1 -1
  152. package/dist/components/popover.cjs +1 -1
  153. package/dist/components/popover.cjs.map +1 -1
  154. package/dist/components/popover.js +1 -1
  155. package/dist/components/popover.js.map +1 -1
  156. package/dist/components/radio-cards.cjs +1 -1
  157. package/dist/components/radio-cards.cjs.map +1 -1
  158. package/dist/components/radio-cards.js +1 -1
  159. package/dist/components/radio-cards.js.map +1 -1
  160. package/dist/components/radio-group.cjs.map +1 -1
  161. package/dist/components/radio-group.js.map +1 -1
  162. package/dist/components/radio.cjs.map +1 -1
  163. package/dist/components/radio.js.map +1 -1
  164. package/dist/components/scroll-area.cjs +1 -1
  165. package/dist/components/scroll-area.cjs.map +1 -1
  166. package/dist/components/scroll-area.d.cts +24 -24
  167. package/dist/components/scroll-area.d.ts +24 -24
  168. package/dist/components/scroll-area.js +1 -1
  169. package/dist/components/scroll-area.js.map +1 -1
  170. package/dist/components/select.cjs +1 -1
  171. package/dist/components/select.cjs.map +1 -1
  172. package/dist/components/select.d.cts +7 -2
  173. package/dist/components/select.d.ts +7 -2
  174. package/dist/components/select.js +1 -1
  175. package/dist/components/separator.cjs +1 -1
  176. package/dist/components/separator.cjs.map +1 -1
  177. package/dist/components/separator.d.cts +2 -2
  178. package/dist/components/separator.d.ts +2 -2
  179. package/dist/components/separator.js +1 -1
  180. package/dist/components/separator.js.map +1 -1
  181. package/dist/components/sheet.cjs +1 -1
  182. package/dist/components/sheet.cjs.map +1 -1
  183. package/dist/components/sheet.d.cts +35 -35
  184. package/dist/components/sheet.d.ts +35 -35
  185. package/dist/components/sheet.js +1 -1
  186. package/dist/components/sheet.js.map +1 -1
  187. package/dist/components/skeleton.cjs +1 -1
  188. package/dist/components/skeleton.cjs.map +1 -1
  189. package/dist/components/skeleton.js +1 -1
  190. package/dist/components/skeleton.js.map +1 -1
  191. package/dist/components/slider.cjs +1 -1
  192. package/dist/components/slider.cjs.map +1 -1
  193. package/dist/components/slider.js +1 -1
  194. package/dist/components/slider.js.map +1 -1
  195. package/dist/components/spinner.cjs +1 -1
  196. package/dist/components/spinner.d.cts +2 -3
  197. package/dist/components/spinner.d.ts +2 -3
  198. package/dist/components/spinner.js +1 -1
  199. package/dist/components/switch.cjs +1 -1
  200. package/dist/components/switch.cjs.map +1 -1
  201. package/dist/components/switch.js +1 -1
  202. package/dist/components/switch.js.map +1 -1
  203. package/dist/components/table.cjs +1 -1
  204. package/dist/components/table.cjs.map +1 -1
  205. package/dist/components/table.js +1 -1
  206. package/dist/components/table.js.map +1 -1
  207. package/dist/components/tabs.cjs +1 -1
  208. package/dist/components/tabs.cjs.map +1 -1
  209. package/dist/components/tabs.js +1 -1
  210. package/dist/components/tabs.js.map +1 -1
  211. package/dist/components/text-input.cjs +1 -1
  212. package/dist/components/text-input.cjs.map +1 -1
  213. package/dist/components/text-input.d.cts +4 -148
  214. package/dist/components/text-input.d.ts +4 -148
  215. package/dist/components/text-input.js +1 -1
  216. package/dist/components/text-input.js.map +1 -1
  217. package/dist/components/textarea.cjs +1 -1
  218. package/dist/components/textarea.cjs.map +1 -1
  219. package/dist/components/textarea.d.cts +70 -1
  220. package/dist/components/textarea.d.ts +70 -1
  221. package/dist/components/textarea.js +1 -1
  222. package/dist/components/textarea.js.map +1 -1
  223. package/dist/components/toggle-group.cjs +1 -1
  224. package/dist/components/toggle-group.cjs.map +1 -1
  225. package/dist/components/toggle-group.d.cts +6 -4
  226. package/dist/components/toggle-group.d.ts +6 -4
  227. package/dist/components/toggle-group.js +1 -1
  228. package/dist/components/toggle-group.js.map +1 -1
  229. package/dist/components/toggle.cjs +1 -1
  230. package/dist/components/toggle.cjs.map +1 -1
  231. package/dist/components/toggle.d.cts +9 -78
  232. package/dist/components/toggle.d.ts +9 -78
  233. package/dist/components/toggle.js +1 -1
  234. package/dist/components/toggle.js.map +1 -1
  235. package/dist/components/tooltip.cjs +1 -1
  236. package/dist/components/tooltip.cjs.map +1 -1
  237. package/dist/components/tooltip.js +1 -1
  238. package/dist/components/tooltip.js.map +1 -1
  239. package/dist/styles/button-variants.cjs +2 -0
  240. package/dist/styles/button-variants.cjs.map +1 -0
  241. package/dist/styles/button-variants.d.cts +169 -0
  242. package/dist/styles/button-variants.d.ts +169 -0
  243. package/dist/styles/button-variants.js +2 -0
  244. package/dist/styles/button-variants.js.map +1 -0
  245. package/dist/styles/input-variants.cjs +2 -0
  246. package/dist/styles/input-variants.cjs.map +1 -0
  247. package/dist/styles/input-variants.d.cts +206 -0
  248. package/dist/styles/input-variants.d.ts +206 -0
  249. package/dist/styles/input-variants.js +2 -0
  250. package/dist/styles/input-variants.js.map +1 -0
  251. package/dist/styles/toggle-variants.cjs +2 -0
  252. package/dist/styles/toggle-variants.cjs.map +1 -0
  253. package/dist/styles/toggle-variants.d.cts +162 -0
  254. package/dist/styles/toggle-variants.d.ts +162 -0
  255. package/dist/styles/toggle-variants.js +2 -0
  256. package/dist/styles/toggle-variants.js.map +1 -0
  257. package/dist/styles.css +1 -1
  258. package/dist/styles.css.map +1 -1
  259. package/package.json +27 -15
  260. package/dist/chunk-3JEWSESW.js +0 -2
  261. package/dist/chunk-3JEWSESW.js.map +0 -1
  262. package/dist/chunk-45RTVSFM.cjs +0 -2
  263. package/dist/chunk-45RTVSFM.cjs.map +0 -1
  264. package/dist/chunk-5KZCIWAV.js +0 -2
  265. package/dist/chunk-5KZCIWAV.js.map +0 -1
  266. package/dist/chunk-5ZAKR3XH.cjs +0 -2
  267. package/dist/chunk-5ZAKR3XH.cjs.map +0 -1
  268. package/dist/chunk-6ZQPOY3K.js +0 -2
  269. package/dist/chunk-6ZQPOY3K.js.map +0 -1
  270. package/dist/chunk-7RRBAIQ7.cjs +0 -2
  271. package/dist/chunk-7RRBAIQ7.cjs.map +0 -1
  272. package/dist/chunk-BRPTDZJD.cjs +0 -2
  273. package/dist/chunk-BRPTDZJD.cjs.map +0 -1
  274. package/dist/chunk-EJGO273X.cjs +0 -2
  275. package/dist/chunk-EJGO273X.cjs.map +0 -1
  276. package/dist/chunk-MTBVDSX3.cjs +0 -2
  277. package/dist/chunk-MTBVDSX3.cjs.map +0 -1
  278. package/dist/chunk-OR7UIMKG.js +0 -2
  279. package/dist/chunk-OR7UIMKG.js.map +0 -1
  280. package/dist/chunk-P5HEZNFY.js +0 -2
  281. package/dist/chunk-P5HEZNFY.js.map +0 -1
  282. package/dist/chunk-U2N42HZL.js +0 -2
  283. package/dist/chunk-U2N42HZL.js.map +0 -1
  284. package/dist/chunk-UBXOV4I5.cjs +0 -2
  285. package/dist/chunk-UBXOV4I5.cjs.map +0 -1
  286. package/dist/chunk-Y3KLZDCA.js +0 -2
  287. package/dist/chunk-Y3KLZDCA.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/accordion.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as AccordionPrimitive from '@radix-ui/react-accordion';\nimport { ChevronRightIcon } from '@radix-ui/react-icons';\nimport { Slot } from '@radix-ui/react-slot';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Accordion\n * -------------------------------------------------------------------------- */\n\ntype AccordionProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>;\nconst Accordion = AccordionPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionItem\n * -------------------------------------------------------------------------- */\n\ntype AccordionItemProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>;\nconst AccordionItem = AccordionPrimitive.Item;\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionIcon\n * -------------------------------------------------------------------------- */\n\ninterface AccordionIconProps extends React.ComponentPropsWithoutRef<typeof Slot> {\n asChild?: boolean;\n className?: string;\n}\n\nfunction AccordionIcon({ asChild, className, ...props }: AccordionIconProps): React.JSX.Element {\n if (asChild) {\n return (\n <Slot\n className={cn('text-muted-foreground size-4 shrink-0 transition group-data-[state=open]:rotate-90', className)}\n {...props}\n />\n );\n }\n\n return (\n <ChevronRightIcon\n aria-hidden\n className={cn('text-muted-foreground size-4 shrink-0 transition group-data-[state=open]:rotate-90', className)}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionTrigger\n * -------------------------------------------------------------------------- */\n\ntype AccordionTriggerElement = React.ElementRef<typeof AccordionPrimitive.Trigger>;\ntype AccordionTriggerProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>;\n\nconst AccordionTrigger = React.forwardRef<AccordionTriggerElement, AccordionTriggerProps>(\n ({ className, ...props }, forwardedRef) => (\n <AccordionPrimitive.Header className=\"flex\">\n <AccordionPrimitive.Trigger\n ref={forwardedRef}\n className={cn('group flex flex-1 items-center py-4 text-left text-sm font-medium', className)}\n {...props}\n />\n </AccordionPrimitive.Header>\n ),\n);\n\nAccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionContent\n * -------------------------------------------------------------------------- */\n\ntype AccordionContentElement = React.ElementRef<typeof AccordionPrimitive.Content>;\ntype AccordionContentProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>;\n\nconst AccordionContent = React.forwardRef<AccordionContentElement, AccordionContentProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <AccordionPrimitive.Content\n ref={forwardedRef}\n className=\"data-[state=open]:animate-collapsible-open data-[state=closed]:animate-collapsible-closed overflow-hidden text-sm\"\n {...props}\n >\n <div className={cn('pb-4 pt-0', className)}>{children}</div>\n </AccordionPrimitive.Content>\n ),\n);\n\nAccordionContent.displayName = AccordionPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Accordion,\n AccordionItem,\n AccordionTrigger,\n AccordionContent,\n AccordionIcon,\n type AccordionProps,\n type AccordionItemProps,\n type AccordionTriggerProps,\n type AccordionContentProps,\n type AccordionIconProps,\n};\n"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAwB,4BACpC,OAAS,oBAAAC,MAAwB,wBACjC,OAAS,QAAAC,MAAY,uBA6Bf,cAAAC,MAAA,oBArBN,IAAMC,EAA+B,OAO/BC,EAAmC,OAWzC,SAASC,EAAc,CAAE,QAAAC,EAAS,UAAAC,EAAW,GAAGC,CAAM,EAA0C,CAC9F,OAAIF,EAEAJ,EAACO,EAAA,CACC,UAAWC,EAAG,qFAAsFH,CAAS,EAC5G,GAAGC,EACN,EAKFN,EAACS,EAAA,CACC,cAAW,GACX,UAAWD,EAAG,qFAAsFH,CAAS,EAC/G,CAEJ,CASA,IAAMK,EAAyB,aAC7B,CAAC,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAAGK,IACxBX,EAAoB,SAAnB,CAA0B,UAAU,OACnC,SAAAA,EAAoB,UAAnB,CACC,IAAKW,EACL,UAAWH,EAAG,oEAAqEH,CAAS,EAC3F,GAAGC,EACN,EACF,CAEJ,EAEAI,EAAiB,YAAiC,UAAQ,YAS1D,IAAME,EAAyB,aAC7B,CAAC,CAAE,SAAAC,EAAU,UAAAR,EAAW,GAAGC,CAAM,EAAGK,IAClCX,EAAoB,UAAnB,CACC,IAAKW,EACL,UAAU,oHACT,GAAGL,EAEJ,SAAAN,EAAC,OAAI,UAAWQ,EAAG,YAAaH,CAAS,EAAI,SAAAQ,EAAS,EACxD,CAEJ,EAEAD,EAAiB,YAAiC,UAAQ","names":["React","AccordionPrimitive","ChevronRightIcon","Slot","jsx","Accordion","AccordionItem","AccordionIcon","asChild","className","props","Slot","cn","ChevronRightIcon","AccordionTrigger","forwardedRef","AccordionContent","children"]}
1
+ {"version":3,"sources":["../../src/components/accordion.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as AccordionPrimitive from '@radix-ui/react-accordion';\nimport { ChevronRightIcon } from '@radix-ui/react-icons';\nimport { Slot } from '@radix-ui/react-slot';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Accordion\n * -------------------------------------------------------------------------- */\n\ntype AccordionProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>;\nconst Accordion = AccordionPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionItem\n * -------------------------------------------------------------------------- */\n\ntype AccordionItemProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>;\nconst AccordionItem = AccordionPrimitive.Item;\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionIcon\n * -------------------------------------------------------------------------- */\n\ninterface AccordionIconProps extends React.ComponentPropsWithoutRef<typeof Slot> {\n asChild?: boolean;\n className?: string;\n}\n\nfunction AccordionIcon({ asChild, className, ...props }: AccordionIconProps): React.JSX.Element {\n if (asChild) {\n return (\n <Slot\n className={cn(\n 'text-muted-foreground size-4 shrink-0 transition',\n 'group-data-[state=open]:rotate-90',\n className,\n )}\n {...props}\n />\n );\n }\n\n return (\n <ChevronRightIcon\n aria-hidden\n className={cn('text-muted-foreground size-4 shrink-0 transition', 'group-data-[state=open]:rotate-90', className)}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionTrigger\n * -------------------------------------------------------------------------- */\n\ntype AccordionTriggerElement = React.ElementRef<typeof AccordionPrimitive.Trigger>;\ntype AccordionTriggerProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>;\n\nconst AccordionTrigger = React.forwardRef<AccordionTriggerElement, AccordionTriggerProps>(\n ({ className, ...props }, forwardedRef) => (\n <AccordionPrimitive.Header className=\"flex\">\n <AccordionPrimitive.Trigger\n ref={forwardedRef}\n className={cn('group flex flex-1 items-center py-4 text-left text-sm font-medium', className)}\n {...props}\n />\n </AccordionPrimitive.Header>\n ),\n);\n\nAccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionContent\n * -------------------------------------------------------------------------- */\n\ntype AccordionContentElement = React.ElementRef<typeof AccordionPrimitive.Content>;\ntype AccordionContentProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>;\n\nconst AccordionContent = React.forwardRef<AccordionContentElement, AccordionContentProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <AccordionPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'overflow-hidden text-sm',\n 'data-[state=open]:animate-collapsible-open data-[state=closed]:animate-collapsible-closed',\n )}\n {...props}\n >\n <div className={cn('pb-4 pt-0', className)}>{children}</div>\n </AccordionPrimitive.Content>\n ),\n);\n\nAccordionContent.displayName = AccordionPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Accordion,\n AccordionItem,\n AccordionTrigger,\n AccordionContent,\n AccordionIcon,\n type AccordionProps,\n type AccordionItemProps,\n type AccordionTriggerProps,\n type AccordionContentProps,\n type AccordionIconProps,\n};\n"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAwB,4BACpC,OAAS,oBAAAC,MAAwB,wBACjC,OAAS,QAAAC,MAAY,uBA6Bf,cAAAC,MAAA,oBArBN,IAAMC,EAA+B,OAO/BC,EAAmC,OAWzC,SAASC,EAAc,CAAE,QAAAC,EAAS,UAAAC,EAAW,GAAGC,CAAM,EAA0C,CAC9F,OAAIF,EAEAJ,EAACO,EAAA,CACC,UAAWC,EACT,mDACA,oCACAH,CACF,EACC,GAAGC,EACN,EAKFN,EAACS,EAAA,CACC,cAAW,GACX,UAAWD,EAAG,mDAAoD,oCAAqCH,CAAS,EAClH,CAEJ,CASA,IAAMK,EAAyB,aAC7B,CAAC,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAAGK,IACxBX,EAAoB,SAAnB,CAA0B,UAAU,OACnC,SAAAA,EAAoB,UAAnB,CACC,IAAKW,EACL,UAAWH,EAAG,oEAAqEH,CAAS,EAC3F,GAAGC,EACN,EACF,CAEJ,EAEAI,EAAiB,YAAiC,UAAQ,YAS1D,IAAME,EAAyB,aAC7B,CAAC,CAAE,SAAAC,EAAU,UAAAR,EAAW,GAAGC,CAAM,EAAGK,IAClCX,EAAoB,UAAnB,CACC,IAAKW,EACL,UAAWH,EACT,0BACA,2FACF,EACC,GAAGF,EAEJ,SAAAN,EAAC,OAAI,UAAWQ,EAAG,YAAaH,CAAS,EAAI,SAAAQ,EAAS,EACxD,CAEJ,EAEAD,EAAiB,YAAiC,UAAQ","names":["React","AccordionPrimitive","ChevronRightIcon","Slot","jsx","Accordion","AccordionItem","AccordionIcon","asChild","className","props","Slot","cn","ChevronRightIcon","AccordionTrigger","forwardedRef","AccordionContent","children"]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";var _chunk7RRBAIQ7cjs = require('../chunk-7RRBAIQ7.cjs');require('../chunk-5ZAKR3XH.cjs');var _chunk4XRBMJ5Qcjs = require('../chunk-4XRBMJ5Q.cjs');var _react = require('react'); var r = _interopRequireWildcard(_react);var _reactalertdialog = require('@radix-ui/react-alert-dialog'); var e = _interopRequireWildcard(_reactalertdialog);var _jsxruntime = require('react/jsx-runtime');var d=e.Root,y= exports.AlertDialogTrigger =e.Trigger,m= exports.AlertDialogContent =r.forwardRef(({className:t,...i},a)=>_jsxruntime.jsx.call(void 0, e.Portal,{children:_jsxruntime.jsx.call(void 0, e.Overlay,{className:"data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 grid place-items-center overflow-auto bg-black/80 p-4 sm:pb-12 sm:pt-8",children:_jsxruntime.jsx.call(void 0, e.Content,{ref:a,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "bg-background data-[state=open]:animate-in data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95 data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:fade-in data-[state=closed]:animate-out data-[state=closed]:fade-out relative z-50 flex w-full max-w-lg flex-col rounded-lg border shadow-lg",t),...i})})}));m.displayName=e.Content.displayName;function v({className:t,...i}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunk4XRBMJ5Qcjs.a.call(void 0, "flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left",t),...i})}function R({className:t,...i}){return _jsxruntime.jsx.call(void 0, "main",{className:_chunk4XRBMJ5Qcjs.a.call(void 0, "overflow-auto px-6 py-2",t),...i})}function u({className:t,...i}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunk4XRBMJ5Qcjs.a.call(void 0, "flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end",t),...i})}var g=r.forwardRef(({className:t,...i},a)=>_jsxruntime.jsx.call(void 0, e.Title,{ref:a,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "text-lg font-semibold leading-none tracking-tight",t),...i}));g.displayName=e.Title.displayName;var c=r.forwardRef(({className:t,...i},a)=>_jsxruntime.jsx.call(void 0, e.Description,{ref:a,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "text-muted-foreground text-sm",t),...i}));c.displayName=e.Description.displayName;var A=r.forwardRef(({className:t,size:i,variant:a,...n},s)=>_jsxruntime.jsx.call(void 0, e.Action,{ref:s,className:_chunk7RRBAIQ7cjs.a.call(void 0, {className:t,size:i,variant:a}),...n}));A.displayName=e.Action.displayName;var D=r.forwardRef(({className:t,size:i,variant:a="outline",...n},s)=>_jsxruntime.jsx.call(void 0, e.Cancel,{ref:s,className:_chunk7RRBAIQ7cjs.a.call(void 0, {className:t,size:i,variant:a}),...n}));D.displayName=e.Cancel.displayName;exports.AlertDialog = d; exports.AlertDialogAction = A; exports.AlertDialogBody = R; exports.AlertDialogCancel = D; exports.AlertDialogContent = m; exports.AlertDialogDescription = c; exports.AlertDialogFooter = u; exports.AlertDialogHeader = v; exports.AlertDialogTitle = g; exports.AlertDialogTrigger = y;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";var _chunkLSBI35ZEcjs = require('../chunk-LSBI35ZE.cjs');var _chunk4XRBMJ5Qcjs = require('../chunk-4XRBMJ5Q.cjs');var _react = require('react'); var r = _interopRequireWildcard(_react);var _reactalertdialog = require('@radix-ui/react-alert-dialog'); var e = _interopRequireWildcard(_reactalertdialog);var _jsxruntime = require('react/jsx-runtime');var d=e.Root,y= exports.AlertDialogTrigger =e.Trigger,m= exports.AlertDialogContent =r.forwardRef(({className:t,...i},a)=>_jsxruntime.jsx.call(void 0, e.Portal,{children:_jsxruntime.jsx.call(void 0, e.Overlay,{className:_chunk4XRBMJ5Qcjs.a.call(void 0, "fixed inset-0 z-50 grid place-items-center overflow-auto bg-black/80 p-4 sm:pb-12 sm:pt-8","data-[state=open]:animate-duration-200 data-[state=open]:animate-fade-in","data-[state=closed]:animate-duration-200 data-[state=closed]:animate-fade-out"),children:_jsxruntime.jsx.call(void 0, e.Content,{ref:a,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "bg-background relative z-50 flex w-full max-w-lg flex-col rounded-lg border shadow-lg","data-[state=open]:animate-in data-[state=open]:zoom-in-95 data-[state=open]:animate-duration-200 data-[state=open]:fade-in","data-[state=closed]:zoom-out-95 data-[state=closed]:animate-duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out",t),...i})})}));m.displayName=e.Content.displayName;function v({className:t,...i}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunk4XRBMJ5Qcjs.a.call(void 0, "flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left",t),...i})}function R({className:t,...i}){return _jsxruntime.jsx.call(void 0, "main",{className:_chunk4XRBMJ5Qcjs.a.call(void 0, "overflow-auto px-6 py-2",t),...i})}function u({className:t,...i}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunk4XRBMJ5Qcjs.a.call(void 0, "flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end",t),...i})}var g=r.forwardRef(({className:t,...i},a)=>_jsxruntime.jsx.call(void 0, e.Title,{ref:a,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "text-lg font-semibold leading-none tracking-tight",t),...i}));g.displayName=e.Title.displayName;var c=r.forwardRef(({className:t,...i},a)=>_jsxruntime.jsx.call(void 0, e.Description,{ref:a,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "text-muted-foreground text-sm",t),...i}));c.displayName=e.Description.displayName;var A=r.forwardRef(({className:t,size:i,variant:a,...n},s)=>_jsxruntime.jsx.call(void 0, e.Action,{ref:s,className:_chunkLSBI35ZEcjs.a.call(void 0, {className:t,size:i,variant:a}),...n}));A.displayName=e.Action.displayName;var D=r.forwardRef(({className:t,size:i,variant:a="outline",...n},s)=>_jsxruntime.jsx.call(void 0, e.Cancel,{ref:s,className:_chunkLSBI35ZEcjs.a.call(void 0, {className:t,size:i,variant:a}),...n}));D.displayName=e.Cancel.displayName;exports.AlertDialog = d; exports.AlertDialogAction = A; exports.AlertDialogBody = R; exports.AlertDialogCancel = D; exports.AlertDialogContent = m; exports.AlertDialogDescription = c; exports.AlertDialogFooter = u; exports.AlertDialogHeader = v; exports.AlertDialogTitle = g; exports.AlertDialogTrigger = y;
2
2
  //# sourceMappingURL=alert-dialog.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/components/alert-dialog.cjs","../../src/components/alert-dialog.tsx"],"names":["AlertDialog","AlertDialogTrigger","AlertDialogContent","className","props","forwardedRef","jsx","cn","AlertDialogHeader","AlertDialogBody","AlertDialogFooter","AlertDialogTitle","AlertDialogDescription","AlertDialogAction","size","variant","buttonVariants","AlertDialogCancel"],"mappings":"AAAA,uWAAY,CAAC,yDAAyC,iCAA8B,yDAA0C,uECEvG,oHACe,+CA6B9B,IApBFA,CAAAA,CAAmC,CAAA,CAAA,IAAA,CAOnCC,CAAAA,8BAA0C,CAAA,CAAA,OAAA,CAS1CC,CAAAA,8BAA2B,CAAA,CAAA,UAAA,CAC/B,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,CAAsB,CAAA,MAA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Ab,CAAAA,CAAW,IAAA,CAAAW,CAAAA,CAAM,OAAA,CAAAC,CAAQ,CAAC,CAAA,CACrD,GAAGX,CAAAA,CACN,CAEJ,CAAA,CAEAa,CAAAA,CAAkB,WAAA,CAAmC,CAAA,CAAA,MAAA,CAAO,WAAA,CAAA,mTAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/components/alert-dialog.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';\nimport { cn } from '@/lib/utils';\nimport { buttonVariants, type ButtonVariantsProps } from '@/components/button';\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialog\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogProps = React.ComponentProps<typeof AlertDialogPrimitive.Root>;\nconst AlertDialog = AlertDialogPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTrigger\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTriggerProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Trigger>;\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogContent\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogContentElement = React.ElementRef<typeof AlertDialogPrimitive.Content>;\ntype AlertDialogContentProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>;\n\nconst AlertDialogContent = React.forwardRef<AlertDialogContentElement, AlertDialogContentProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Portal>\n <AlertDialogPrimitive.Overlay className=\"data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 grid place-items-center overflow-auto bg-black/80 p-4 sm:pb-12 sm:pt-8\">\n <AlertDialogPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-background data-[state=open]:animate-in data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95 data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:fade-in data-[state=closed]:animate-out data-[state=closed]:fade-out relative z-50 flex w-full max-w-lg flex-col rounded-lg border shadow-lg',\n className,\n )}\n {...props}\n />\n </AlertDialogPrimitive.Overlay>\n </AlertDialogPrimitive.Portal>\n ),\n);\n\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogHeader\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogHeaderProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogHeader({ className, ...props }: AlertDialogHeaderProps): React.JSX.Element {\n return (\n <div\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogBody\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogBodyProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogBody({ className, ...props }: AlertDialogBodyProps): React.JSX.Element {\n return <main className={cn('overflow-auto px-6 py-2', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogFooter\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogFooterProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogFooter({ className, ...props }: AlertDialogFooterProps): React.JSX.Element {\n return (\n <div\n className={cn('flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTitle\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTitleElement = React.ElementRef<typeof AlertDialogPrimitive.Title>;\ntype AlertDialogTitleProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>;\n\nconst AlertDialogTitle = React.forwardRef<AlertDialogTitleElement, AlertDialogTitleProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Title\n ref={forwardedRef}\n className={cn('text-lg font-semibold leading-none tracking-tight', className)}\n {...props}\n />\n ),\n);\n\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogDescription\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogDescriptionElement = React.ElementRef<typeof AlertDialogPrimitive.Description>;\ntype AlertDialogDescriptionProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>;\n\nconst AlertDialogDescription = React.forwardRef<AlertDialogDescriptionElement, AlertDialogDescriptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Description\n ref={forwardedRef}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n ),\n);\n\nAlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogAction\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogActionElement = React.ElementRef<typeof AlertDialogPrimitive.Action>;\n\ninterface AlertDialogActionProps extends React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst AlertDialogAction = React.forwardRef<AlertDialogActionElement, AlertDialogActionProps>(\n ({ className, size, variant, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Action\n ref={forwardedRef}\n className={buttonVariants({ className, size, variant })}\n {...props}\n />\n ),\n);\n\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogCancel\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogCancelElement = React.ElementRef<typeof AlertDialogPrimitive.Cancel>;\n\ninterface AlertDialogCancelProps extends React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst AlertDialogCancel = React.forwardRef<AlertDialogCancelElement, AlertDialogCancelProps>(\n ({ className, size, variant = 'outline', ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Cancel\n ref={forwardedRef}\n className={buttonVariants({ className, size, variant })}\n {...props}\n />\n ),\n);\n\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n AlertDialog,\n AlertDialogTrigger,\n AlertDialogContent,\n AlertDialogHeader,\n AlertDialogBody,\n AlertDialogFooter,\n AlertDialogTitle,\n AlertDialogDescription,\n AlertDialogAction,\n AlertDialogCancel,\n type AlertDialogProps,\n type AlertDialogTriggerProps,\n type AlertDialogContentProps,\n type AlertDialogHeaderProps,\n type AlertDialogBodyProps,\n type AlertDialogFooterProps,\n type AlertDialogTitleProps,\n type AlertDialogDescriptionProps,\n type AlertDialogActionProps,\n type AlertDialogCancelProps,\n};\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/components/alert-dialog.cjs","../../src/components/alert-dialog.tsx"],"names":["AlertDialog","AlertDialogTrigger","AlertDialogContent","className","props","forwardedRef","jsx","cn","AlertDialogHeader","AlertDialogBody","AlertDialogFooter","AlertDialogTitle","AlertDialogDescription","AlertDialogAction","size","variant","buttonVariants","AlertDialogCancel"],"mappings":"AAAA,uWAAY,CAAC,yDAAyC,yDAA0C,uECEzE,oHACe,+CAmC9B,IA1BFA,CAAAA,CAAmC,CAAA,CAAA,IAAA,CAOnCC,CAAAA,8BAA0C,CAAA,CAAA,OAAA,CAS1CC,CAAAA,8BAA2B,CAAA,CAAA,UAAA,CAC/B,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,CAAsB,CAAA,MAAA,CAArB,CACC,QAAA,CAAAA,6BAAAA,CAAsB,CAAA,OAAA,CAArB,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b,CAAAA,CAAW,IAAA,CAAAW,CAAAA,CAAM,OAAA,CAAAC,CAAQ,CAAC,CAAA,CACrD,GAAGX,CAAAA,CACN,CAEJ,CAAA,CAEAa,CAAAA,CAAkB,WAAA,CAAmC,CAAA,CAAA,MAAA,CAAO,WAAA,CAAA,mTAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/components/alert-dialog.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';\nimport { cn } from '@/lib/utils';\nimport { buttonVariants, type ButtonVariantsProps } from '@/styles/button-variants';\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialog\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogProps = React.ComponentProps<typeof AlertDialogPrimitive.Root>;\nconst AlertDialog = AlertDialogPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTrigger\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTriggerProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Trigger>;\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogContent\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogContentElement = React.ElementRef<typeof AlertDialogPrimitive.Content>;\ntype AlertDialogContentProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>;\n\nconst AlertDialogContent = React.forwardRef<AlertDialogContentElement, AlertDialogContentProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Portal>\n <AlertDialogPrimitive.Overlay\n className={cn(\n 'fixed inset-0 z-50 grid place-items-center overflow-auto bg-black/80 p-4 sm:pb-12 sm:pt-8',\n 'data-[state=open]:animate-duration-200 data-[state=open]:animate-fade-in',\n 'data-[state=closed]:animate-duration-200 data-[state=closed]:animate-fade-out',\n )}\n >\n <AlertDialogPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-background relative z-50 flex w-full max-w-lg flex-col rounded-lg border shadow-lg',\n 'data-[state=open]:animate-in data-[state=open]:zoom-in-95 data-[state=open]:animate-duration-200 data-[state=open]:fade-in',\n 'data-[state=closed]:zoom-out-95 data-[state=closed]:animate-duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out',\n className,\n )}\n {...props}\n />\n </AlertDialogPrimitive.Overlay>\n </AlertDialogPrimitive.Portal>\n ),\n);\n\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogHeader\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogHeaderProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogHeader({ className, ...props }: AlertDialogHeaderProps): React.JSX.Element {\n return (\n <div\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogBody\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogBodyProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogBody({ className, ...props }: AlertDialogBodyProps): React.JSX.Element {\n return <main className={cn('overflow-auto px-6 py-2', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogFooter\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogFooterProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogFooter({ className, ...props }: AlertDialogFooterProps): React.JSX.Element {\n return (\n <div\n className={cn('flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTitle\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTitleElement = React.ElementRef<typeof AlertDialogPrimitive.Title>;\ntype AlertDialogTitleProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>;\n\nconst AlertDialogTitle = React.forwardRef<AlertDialogTitleElement, AlertDialogTitleProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Title\n ref={forwardedRef}\n className={cn('text-lg font-semibold leading-none tracking-tight', className)}\n {...props}\n />\n ),\n);\n\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogDescription\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogDescriptionElement = React.ElementRef<typeof AlertDialogPrimitive.Description>;\ntype AlertDialogDescriptionProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>;\n\nconst AlertDialogDescription = React.forwardRef<AlertDialogDescriptionElement, AlertDialogDescriptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Description\n ref={forwardedRef}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n ),\n);\n\nAlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogAction\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogActionElement = React.ElementRef<typeof AlertDialogPrimitive.Action>;\n\ninterface AlertDialogActionProps extends React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst AlertDialogAction = React.forwardRef<AlertDialogActionElement, AlertDialogActionProps>(\n ({ className, size, variant, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Action\n ref={forwardedRef}\n className={buttonVariants({ className, size, variant })}\n {...props}\n />\n ),\n);\n\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogCancel\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogCancelElement = React.ElementRef<typeof AlertDialogPrimitive.Cancel>;\n\ninterface AlertDialogCancelProps extends React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst AlertDialogCancel = React.forwardRef<AlertDialogCancelElement, AlertDialogCancelProps>(\n ({ className, size, variant = 'outline', ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Cancel\n ref={forwardedRef}\n className={buttonVariants({ className, size, variant })}\n {...props}\n />\n ),\n);\n\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n AlertDialog,\n AlertDialogTrigger,\n AlertDialogContent,\n AlertDialogHeader,\n AlertDialogBody,\n AlertDialogFooter,\n AlertDialogTitle,\n AlertDialogDescription,\n AlertDialogAction,\n AlertDialogCancel,\n type AlertDialogProps,\n type AlertDialogTriggerProps,\n type AlertDialogContentProps,\n type AlertDialogHeaderProps,\n type AlertDialogBodyProps,\n type AlertDialogFooterProps,\n type AlertDialogTitleProps,\n type AlertDialogDescriptionProps,\n type AlertDialogActionProps,\n type AlertDialogCancelProps,\n};\n"]}
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
3
- import { ButtonVariantsProps } from './button.cjs';
3
+ import { ButtonVariantsProps } from '../styles/button-variants.cjs';
4
4
  import 'tailwind-variants';
5
5
  import 'tailwind-variants/dist/config.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
3
- import { ButtonVariantsProps } from './button.js';
3
+ import { ButtonVariantsProps } from '../styles/button-variants.js';
4
4
  import 'tailwind-variants';
5
5
  import 'tailwind-variants/dist/config.js';
6
6
 
@@ -1,2 +1,2 @@
1
- "use client";import{a as p}from"../chunk-P5HEZNFY.js";import"../chunk-U2N42HZL.js";import{a as l}from"../chunk-VRBUDJBH.js";import*as r from"react";import*as e from"@radix-ui/react-alert-dialog";import{jsx as o}from"react/jsx-runtime";var d=e.Root,y=e.Trigger,m=r.forwardRef(({className:t,...i},a)=>o(e.Portal,{children:o(e.Overlay,{className:"data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 grid place-items-center overflow-auto bg-black/80 p-4 sm:pb-12 sm:pt-8",children:o(e.Content,{ref:a,className:l("bg-background data-[state=open]:animate-in data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95 data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:fade-in data-[state=closed]:animate-out data-[state=closed]:fade-out relative z-50 flex w-full max-w-lg flex-col rounded-lg border shadow-lg",t),...i})})}));m.displayName=e.Content.displayName;function v({className:t,...i}){return o("div",{className:l("flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left",t),...i})}function R({className:t,...i}){return o("main",{className:l("overflow-auto px-6 py-2",t),...i})}function u({className:t,...i}){return o("div",{className:l("flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end",t),...i})}var g=r.forwardRef(({className:t,...i},a)=>o(e.Title,{ref:a,className:l("text-lg font-semibold leading-none tracking-tight",t),...i}));g.displayName=e.Title.displayName;var c=r.forwardRef(({className:t,...i},a)=>o(e.Description,{ref:a,className:l("text-muted-foreground text-sm",t),...i}));c.displayName=e.Description.displayName;var A=r.forwardRef(({className:t,size:i,variant:a,...n},s)=>o(e.Action,{ref:s,className:p({className:t,size:i,variant:a}),...n}));A.displayName=e.Action.displayName;var D=r.forwardRef(({className:t,size:i,variant:a="outline",...n},s)=>o(e.Cancel,{ref:s,className:p({className:t,size:i,variant:a}),...n}));D.displayName=e.Cancel.displayName;export{d as AlertDialog,A as AlertDialogAction,R as AlertDialogBody,D as AlertDialogCancel,m as AlertDialogContent,c as AlertDialogDescription,u as AlertDialogFooter,v as AlertDialogHeader,g as AlertDialogTitle,y as AlertDialogTrigger};
1
+ "use client";import{a as p}from"../chunk-YGPIWXWP.js";import{a as l}from"../chunk-VRBUDJBH.js";import*as r from"react";import*as e from"@radix-ui/react-alert-dialog";import{jsx as o}from"react/jsx-runtime";var d=e.Root,y=e.Trigger,m=r.forwardRef(({className:t,...i},a)=>o(e.Portal,{children:o(e.Overlay,{className:l("fixed inset-0 z-50 grid place-items-center overflow-auto bg-black/80 p-4 sm:pb-12 sm:pt-8","data-[state=open]:animate-duration-200 data-[state=open]:animate-fade-in","data-[state=closed]:animate-duration-200 data-[state=closed]:animate-fade-out"),children:o(e.Content,{ref:a,className:l("bg-background relative z-50 flex w-full max-w-lg flex-col rounded-lg border shadow-lg","data-[state=open]:animate-in data-[state=open]:zoom-in-95 data-[state=open]:animate-duration-200 data-[state=open]:fade-in","data-[state=closed]:zoom-out-95 data-[state=closed]:animate-duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out",t),...i})})}));m.displayName=e.Content.displayName;function v({className:t,...i}){return o("div",{className:l("flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left",t),...i})}function R({className:t,...i}){return o("main",{className:l("overflow-auto px-6 py-2",t),...i})}function u({className:t,...i}){return o("div",{className:l("flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end",t),...i})}var g=r.forwardRef(({className:t,...i},a)=>o(e.Title,{ref:a,className:l("text-lg font-semibold leading-none tracking-tight",t),...i}));g.displayName=e.Title.displayName;var c=r.forwardRef(({className:t,...i},a)=>o(e.Description,{ref:a,className:l("text-muted-foreground text-sm",t),...i}));c.displayName=e.Description.displayName;var A=r.forwardRef(({className:t,size:i,variant:a,...n},s)=>o(e.Action,{ref:s,className:p({className:t,size:i,variant:a}),...n}));A.displayName=e.Action.displayName;var D=r.forwardRef(({className:t,size:i,variant:a="outline",...n},s)=>o(e.Cancel,{ref:s,className:p({className:t,size:i,variant:a}),...n}));D.displayName=e.Cancel.displayName;export{d as AlertDialog,A as AlertDialogAction,R as AlertDialogBody,D as AlertDialogCancel,m as AlertDialogContent,c as AlertDialogDescription,u as AlertDialogFooter,v as AlertDialogHeader,g as AlertDialogTitle,y as AlertDialogTrigger};
2
2
  //# sourceMappingURL=alert-dialog.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/alert-dialog.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';\nimport { cn } from '@/lib/utils';\nimport { buttonVariants, type ButtonVariantsProps } from '@/components/button';\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialog\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogProps = React.ComponentProps<typeof AlertDialogPrimitive.Root>;\nconst AlertDialog = AlertDialogPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTrigger\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTriggerProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Trigger>;\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogContent\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogContentElement = React.ElementRef<typeof AlertDialogPrimitive.Content>;\ntype AlertDialogContentProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>;\n\nconst AlertDialogContent = React.forwardRef<AlertDialogContentElement, AlertDialogContentProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Portal>\n <AlertDialogPrimitive.Overlay className=\"data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 grid place-items-center overflow-auto bg-black/80 p-4 sm:pb-12 sm:pt-8\">\n <AlertDialogPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-background data-[state=open]:animate-in data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95 data-[state=open]:animate-duration-200 data-[state=closed]:animate-duration-200 data-[state=open]:fade-in data-[state=closed]:animate-out data-[state=closed]:fade-out relative z-50 flex w-full max-w-lg flex-col rounded-lg border shadow-lg',\n className,\n )}\n {...props}\n />\n </AlertDialogPrimitive.Overlay>\n </AlertDialogPrimitive.Portal>\n ),\n);\n\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogHeader\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogHeaderProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogHeader({ className, ...props }: AlertDialogHeaderProps): React.JSX.Element {\n return (\n <div\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogBody\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogBodyProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogBody({ className, ...props }: AlertDialogBodyProps): React.JSX.Element {\n return <main className={cn('overflow-auto px-6 py-2', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogFooter\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogFooterProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogFooter({ className, ...props }: AlertDialogFooterProps): React.JSX.Element {\n return (\n <div\n className={cn('flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTitle\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTitleElement = React.ElementRef<typeof AlertDialogPrimitive.Title>;\ntype AlertDialogTitleProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>;\n\nconst AlertDialogTitle = React.forwardRef<AlertDialogTitleElement, AlertDialogTitleProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Title\n ref={forwardedRef}\n className={cn('text-lg font-semibold leading-none tracking-tight', className)}\n {...props}\n />\n ),\n);\n\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogDescription\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogDescriptionElement = React.ElementRef<typeof AlertDialogPrimitive.Description>;\ntype AlertDialogDescriptionProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>;\n\nconst AlertDialogDescription = React.forwardRef<AlertDialogDescriptionElement, AlertDialogDescriptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Description\n ref={forwardedRef}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n ),\n);\n\nAlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogAction\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogActionElement = React.ElementRef<typeof AlertDialogPrimitive.Action>;\n\ninterface AlertDialogActionProps extends React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst AlertDialogAction = React.forwardRef<AlertDialogActionElement, AlertDialogActionProps>(\n ({ className, size, variant, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Action\n ref={forwardedRef}\n className={buttonVariants({ className, size, variant })}\n {...props}\n />\n ),\n);\n\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogCancel\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogCancelElement = React.ElementRef<typeof AlertDialogPrimitive.Cancel>;\n\ninterface AlertDialogCancelProps extends React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst AlertDialogCancel = React.forwardRef<AlertDialogCancelElement, AlertDialogCancelProps>(\n ({ className, size, variant = 'outline', ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Cancel\n ref={forwardedRef}\n className={buttonVariants({ className, size, variant })}\n {...props}\n />\n ),\n);\n\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n AlertDialog,\n AlertDialogTrigger,\n AlertDialogContent,\n AlertDialogHeader,\n AlertDialogBody,\n AlertDialogFooter,\n AlertDialogTitle,\n AlertDialogDescription,\n AlertDialogAction,\n AlertDialogCancel,\n type AlertDialogProps,\n type AlertDialogTriggerProps,\n type AlertDialogContentProps,\n type AlertDialogHeaderProps,\n type AlertDialogBodyProps,\n type AlertDialogFooterProps,\n type AlertDialogTitleProps,\n type AlertDialogDescriptionProps,\n type AlertDialogActionProps,\n type AlertDialogCancelProps,\n};\n"],"mappings":"4HAEA,UAAYA,MAAW,QACvB,UAAYC,MAA0B,+BA6B9B,cAAAC,MAAA,oBApBR,IAAMC,EAAmC,OAOnCC,EAA0C,UAS1CC,EAA2B,aAC/B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACxBN,EAAsB,SAArB,CACC,SAAAA,EAAsB,UAArB,CAA6B,UAAU,mPACtC,SAAAA,EAAsB,UAArB,CACC,IAAKM,EACL,UAAWC,EACT,yVACAH,CACF,EACC,GAAGC,EACN,EACF,EACF,CAEJ,EAEAF,EAAmB,YAAmC,UAAQ,YAQ9D,SAASK,EAAkB,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAA8C,CAC7F,OACEL,EAAC,OACC,UAAWO,EAAG,yEAA0EH,CAAS,EAChG,GAAGC,EACN,CAEJ,CAQA,SAASI,EAAgB,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAA4C,CACzF,OAAOL,EAAC,QAAK,UAAWO,EAAG,0BAA2BH,CAAS,EAAI,GAAGC,EAAO,CAC/E,CAQA,SAASK,EAAkB,CAAE,UAAAN,EAAW,GAAGC,CAAM,EAA8C,CAC7F,OACEL,EAAC,OACC,UAAWO,EAAG,iFAAkFH,CAAS,EACxG,GAAGC,EACN,CAEJ,CASA,IAAMM,EAAyB,aAC7B,CAAC,CAAE,UAAAP,EAAW,GAAGC,CAAM,EAAGC,IACxBN,EAAsB,QAArB,CACC,IAAKM,EACL,UAAWC,EAAG,oDAAqDH,CAAS,EAC3E,GAAGC,EACN,CAEJ,EAEAM,EAAiB,YAAmC,QAAM,YAS1D,IAAMC,EAA+B,aACnC,CAAC,CAAE,UAAAR,EAAW,GAAGC,CAAM,EAAGC,IACxBN,EAAsB,cAArB,CACC,IAAKM,EACL,UAAWC,EAAG,gCAAiCH,CAAS,EACvD,GAAGC,EACN,CAEJ,EAEAO,EAAuB,YAAmC,cAAY,YAatE,IAAMC,EAA0B,aAC9B,CAAC,CAAE,UAAAT,EAAW,KAAAU,EAAM,QAAAC,EAAS,GAAGV,CAAM,EAAGC,IACvCN,EAAsB,SAArB,CACC,IAAKM,EACL,UAAWU,EAAe,CAAE,UAAAZ,EAAW,KAAAU,EAAM,QAAAC,CAAQ,CAAC,EACrD,GAAGV,EACN,CAEJ,EAEAQ,EAAkB,YAAmC,SAAO,YAa5D,IAAMI,EAA0B,aAC9B,CAAC,CAAE,UAAAb,EAAW,KAAAU,EAAM,QAAAC,EAAU,UAAW,GAAGV,CAAM,EAAGC,IACnDN,EAAsB,SAArB,CACC,IAAKM,EACL,UAAWU,EAAe,CAAE,UAAAZ,EAAW,KAAAU,EAAM,QAAAC,CAAQ,CAAC,EACrD,GAAGV,EACN,CAEJ,EAEAY,EAAkB,YAAmC,SAAO","names":["React","AlertDialogPrimitive","jsx","AlertDialog","AlertDialogTrigger","AlertDialogContent","className","props","forwardedRef","cn","AlertDialogHeader","AlertDialogBody","AlertDialogFooter","AlertDialogTitle","AlertDialogDescription","AlertDialogAction","size","variant","buttonVariants","AlertDialogCancel"]}
1
+ {"version":3,"sources":["../../src/components/alert-dialog.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';\nimport { cn } from '@/lib/utils';\nimport { buttonVariants, type ButtonVariantsProps } from '@/styles/button-variants';\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialog\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogProps = React.ComponentProps<typeof AlertDialogPrimitive.Root>;\nconst AlertDialog = AlertDialogPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTrigger\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTriggerProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Trigger>;\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogContent\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogContentElement = React.ElementRef<typeof AlertDialogPrimitive.Content>;\ntype AlertDialogContentProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>;\n\nconst AlertDialogContent = React.forwardRef<AlertDialogContentElement, AlertDialogContentProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Portal>\n <AlertDialogPrimitive.Overlay\n className={cn(\n 'fixed inset-0 z-50 grid place-items-center overflow-auto bg-black/80 p-4 sm:pb-12 sm:pt-8',\n 'data-[state=open]:animate-duration-200 data-[state=open]:animate-fade-in',\n 'data-[state=closed]:animate-duration-200 data-[state=closed]:animate-fade-out',\n )}\n >\n <AlertDialogPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-background relative z-50 flex w-full max-w-lg flex-col rounded-lg border shadow-lg',\n 'data-[state=open]:animate-in data-[state=open]:zoom-in-95 data-[state=open]:animate-duration-200 data-[state=open]:fade-in',\n 'data-[state=closed]:zoom-out-95 data-[state=closed]:animate-duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out',\n className,\n )}\n {...props}\n />\n </AlertDialogPrimitive.Overlay>\n </AlertDialogPrimitive.Portal>\n ),\n);\n\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogHeader\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogHeaderProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogHeader({ className, ...props }: AlertDialogHeaderProps): React.JSX.Element {\n return (\n <div\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogBody\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogBodyProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogBody({ className, ...props }: AlertDialogBodyProps): React.JSX.Element {\n return <main className={cn('overflow-auto px-6 py-2', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogFooter\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogFooterProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogFooter({ className, ...props }: AlertDialogFooterProps): React.JSX.Element {\n return (\n <div\n className={cn('flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTitle\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTitleElement = React.ElementRef<typeof AlertDialogPrimitive.Title>;\ntype AlertDialogTitleProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>;\n\nconst AlertDialogTitle = React.forwardRef<AlertDialogTitleElement, AlertDialogTitleProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Title\n ref={forwardedRef}\n className={cn('text-lg font-semibold leading-none tracking-tight', className)}\n {...props}\n />\n ),\n);\n\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogDescription\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogDescriptionElement = React.ElementRef<typeof AlertDialogPrimitive.Description>;\ntype AlertDialogDescriptionProps = React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>;\n\nconst AlertDialogDescription = React.forwardRef<AlertDialogDescriptionElement, AlertDialogDescriptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Description\n ref={forwardedRef}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n ),\n);\n\nAlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogAction\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogActionElement = React.ElementRef<typeof AlertDialogPrimitive.Action>;\n\ninterface AlertDialogActionProps extends React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst AlertDialogAction = React.forwardRef<AlertDialogActionElement, AlertDialogActionProps>(\n ({ className, size, variant, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Action\n ref={forwardedRef}\n className={buttonVariants({ className, size, variant })}\n {...props}\n />\n ),\n);\n\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogCancel\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogCancelElement = React.ElementRef<typeof AlertDialogPrimitive.Cancel>;\n\ninterface AlertDialogCancelProps extends React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst AlertDialogCancel = React.forwardRef<AlertDialogCancelElement, AlertDialogCancelProps>(\n ({ className, size, variant = 'outline', ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Cancel\n ref={forwardedRef}\n className={buttonVariants({ className, size, variant })}\n {...props}\n />\n ),\n);\n\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n AlertDialog,\n AlertDialogTrigger,\n AlertDialogContent,\n AlertDialogHeader,\n AlertDialogBody,\n AlertDialogFooter,\n AlertDialogTitle,\n AlertDialogDescription,\n AlertDialogAction,\n AlertDialogCancel,\n type AlertDialogProps,\n type AlertDialogTriggerProps,\n type AlertDialogContentProps,\n type AlertDialogHeaderProps,\n type AlertDialogBodyProps,\n type AlertDialogFooterProps,\n type AlertDialogTitleProps,\n type AlertDialogDescriptionProps,\n type AlertDialogActionProps,\n type AlertDialogCancelProps,\n};\n"],"mappings":"+FAEA,UAAYA,MAAW,QACvB,UAAYC,MAA0B,+BAmC9B,cAAAC,MAAA,oBA1BR,IAAMC,EAAmC,OAOnCC,EAA0C,UAS1CC,EAA2B,aAC/B,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACxBN,EAAsB,SAArB,CACC,SAAAA,EAAsB,UAArB,CACC,UAAWO,EACT,4FACA,2EACA,+EACF,EAEA,SAAAP,EAAsB,UAArB,CACC,IAAKM,EACL,UAAWC,EACT,wFACA,6HACA,wIACAH,CACF,EACC,GAAGC,EACN,EACF,EACF,CAEJ,EAEAF,EAAmB,YAAmC,UAAQ,YAQ9D,SAASK,EAAkB,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAA8C,CAC7F,OACEL,EAAC,OACC,UAAWO,EAAG,yEAA0EH,CAAS,EAChG,GAAGC,EACN,CAEJ,CAQA,SAASI,EAAgB,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAA4C,CACzF,OAAOL,EAAC,QAAK,UAAWO,EAAG,0BAA2BH,CAAS,EAAI,GAAGC,EAAO,CAC/E,CAQA,SAASK,EAAkB,CAAE,UAAAN,EAAW,GAAGC,CAAM,EAA8C,CAC7F,OACEL,EAAC,OACC,UAAWO,EAAG,iFAAkFH,CAAS,EACxG,GAAGC,EACN,CAEJ,CASA,IAAMM,EAAyB,aAC7B,CAAC,CAAE,UAAAP,EAAW,GAAGC,CAAM,EAAGC,IACxBN,EAAsB,QAArB,CACC,IAAKM,EACL,UAAWC,EAAG,oDAAqDH,CAAS,EAC3E,GAAGC,EACN,CAEJ,EAEAM,EAAiB,YAAmC,QAAM,YAS1D,IAAMC,EAA+B,aACnC,CAAC,CAAE,UAAAR,EAAW,GAAGC,CAAM,EAAGC,IACxBN,EAAsB,cAArB,CACC,IAAKM,EACL,UAAWC,EAAG,gCAAiCH,CAAS,EACvD,GAAGC,EACN,CAEJ,EAEAO,EAAuB,YAAmC,cAAY,YAatE,IAAMC,EAA0B,aAC9B,CAAC,CAAE,UAAAT,EAAW,KAAAU,EAAM,QAAAC,EAAS,GAAGV,CAAM,EAAGC,IACvCN,EAAsB,SAArB,CACC,IAAKM,EACL,UAAWU,EAAe,CAAE,UAAAZ,EAAW,KAAAU,EAAM,QAAAC,CAAQ,CAAC,EACrD,GAAGV,EACN,CAEJ,EAEAQ,EAAkB,YAAmC,SAAO,YAa5D,IAAMI,EAA0B,aAC9B,CAAC,CAAE,UAAAb,EAAW,KAAAU,EAAM,QAAAC,EAAU,UAAW,GAAGV,CAAM,EAAGC,IACnDN,EAAsB,SAArB,CACC,IAAKM,EACL,UAAWU,EAAe,CAAE,UAAAZ,EAAW,KAAAU,EAAM,QAAAC,CAAQ,CAAC,EACrD,GAAGV,EACN,CAEJ,EAEAY,EAAkB,YAAmC,SAAO","names":["React","AlertDialogPrimitive","jsx","AlertDialog","AlertDialogTrigger","AlertDialogContent","className","props","forwardedRef","cn","AlertDialogHeader","AlertDialogBody","AlertDialogFooter","AlertDialogTitle","AlertDialogDescription","AlertDialogAction","size","variant","buttonVariants","AlertDialogCancel"]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _tailwindvariants = require('tailwind-variants');var _jsxruntime = require('react/jsx-runtime');var o=_tailwindvariants.tv.call(void 0, {base:"inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition",variants:{variant:{default:"bg-primary text-primary-foreground border-transparent shadow",secondary:"bg-secondary text-secondary-foreground border-transparent",destructive:"bg-destructive text-destructive-foreground border-transparent shadow",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function d({className:e,variant:t,...r}){return _jsxruntime.jsx.call(void 0, "div",{className:o({variant:t,className:e}),...r})}exports.Badge = d;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _tailwindvariants = require('tailwind-variants');var _jsxruntime = require('react/jsx-runtime');var c=_tailwindvariants.tv.call(void 0, {base:["inline-flex shrink-0 items-center justify-center whitespace-nowrap rounded-md text-sm font-medium","[&_svg]:size-4 [&_svg]:shrink-0"],variants:{variant:{default:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",info:"bg-info text-info-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",destructive:"bg-destructive text-destructive-foreground",outline:"bg-background border-input border"},size:{xs:"h-5 gap-2 px-2",sm:"h-6 gap-2.5 px-2.5",md:"h-7 gap-3 px-3",lg:"h-8 gap-3.5 px-3.5",xl:"h-9 gap-3.5 px-3.5"},icon:{true:"px-0"}},compoundVariants:[{className:"w-8",icon:!0,size:"xs"},{className:"w-9",icon:!0,size:"sm"},{className:"w-10",icon:!0,size:"md"},{className:"w-11",icon:!0,size:"lg"},{className:"w-12",icon:!0,size:"xl"}],defaultVariants:{icon:!1,size:"md",variant:"default"}});function u({className:a,variant:t,size:s,prefix:r,suffix:n,children:e,...i}){return _jsxruntime.jsxs.call(void 0, "div",{className:c({variant:t,className:a,size:s}),...i,children:[r,typeof e=="string"?_jsxruntime.jsx.call(void 0, "span",{className:"truncate",children:e}):e,n]})}exports.Badge = u;
2
2
  //# sourceMappingURL=badge.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/badge.tsx"],"names":["badgeVariants","tv","Badge","className","variant","props","jsx"],"mappings":"AACA,8HAAsC,+CA8B7B,IAxBHA,CAAAA,CAAgBC,kCAAAA,CACpB,IAAA,CAAM,2FAAA,CACN,QAAA,CAAU,CACR,OAAA,CAAS,CACP,OAAA,CAAS,8DAAA,CACT,SAAA,CAAW,2DAAA,CACX,WAAA,CAAa,sEAAA,CACb,OAAA,CAAS,iBACX,CACF,CAAA,CACA,eAAA,CAAiB,CACf,OAAA,CAAS,SACX,CACF,CAAC,CAAA,CAUD,SAASC,CAAAA,CAAM,CAAE,SAAA,CAAAC,CAAAA,CAAW,OAAA,CAAAC,CAAAA,CAAS,GAAGC,CAAM,CAAA,CAAkC,CAC9E,OAAOC,6BAAAA,KAAC,CAAA,CAAI,SAAA,CAAWN,CAAAA,CAAc,CAAE,OAAA,CAAAI,CAAAA,CAAS,SAAA,CAAAD,CAAU,CAAC,CAAA,CAAI,GAAGE,CAAAA,CAAO,CAC3E,CAAA,kBAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/components/badge.cjs","sourcesContent":["import * as React from 'react';\nimport { tv, type VariantProps } from 'tailwind-variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: Badge\n * -------------------------------------------------------------------------- */\n\nconst badgeVariants = tv({\n base: 'inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition',\n variants: {\n variant: {\n default: 'bg-primary text-primary-foreground border-transparent shadow',\n secondary: 'bg-secondary text-secondary-foreground border-transparent',\n destructive: 'bg-destructive text-destructive-foreground border-transparent shadow',\n outline: 'text-foreground',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n});\n\ntype BadgeVariantsProps = VariantProps<typeof badgeVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: Badge\n * -------------------------------------------------------------------------- */\n\ntype BadgeProps = React.HTMLAttributes<HTMLDivElement> & BadgeVariantsProps;\n\nfunction Badge({ className, variant, ...props }: BadgeProps): React.JSX.Element {\n return <div className={badgeVariants({ variant, className })} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Badge, type BadgeProps };\n"]}
1
+ {"version":3,"sources":["../../src/components/badge.tsx"],"names":["badgeVariants","tv","Badge","className","variant","size","prefix","suffix","children","props","jsxs","jsx"],"mappings":"AACA,8HAAsC,+CA2DlC,IArDEA,CAAAA,CAAgBC,kCAAAA,CACpB,IAAA,CAAM,CACJ,mGAAA,CACA,iCACF,CAAA,CACA,QAAA,CAAU,CACR,OAAA,CAAS,CACP,OAAA,CAAS,oCAAA,CACT,SAAA,CAAW,wCAAA,CACX,IAAA,CAAM,8BAAA,CACN,OAAA,CAAS,oCAAA,CACT,OAAA,CAAS,oCAAA,CACT,WAAA,CAAa,4CAAA,CACb,OAAA,CAAS,mCACX,CAAA,CACA,IAAA,CAAM,CACJ,EAAA,CAAI,gBAAA,CACJ,EAAA,CAAI,oBAAA,CACJ,EAAA,CAAI,gBAAA,CACJ,EAAA,CAAI,oBAAA,CACJ,EAAA,CAAI,oBACN,CAAA,CACA,IAAA,CAAM,CACJ,IAAA,CAAM,MACR,CACF,CAAA,CACA,gBAAA,CAAkB,CAChB,CAAE,SAAA,CAAW,KAAA,CAAO,IAAA,CAAM,CAAA,CAAA,CAAM,IAAA,CAAM,IAAK,CAAA,CAC3C,CAAE,SAAA,CAAW,KAAA,CAAO,IAAA,CAAM,CAAA,CAAA,CAAM,IAAA,CAAM,IAAK,CAAA,CAC3C,CAAE,SAAA,CAAW,MAAA,CAAQ,IAAA,CAAM,CAAA,CAAA,CAAM,IAAA,CAAM,IAAK,CAAA,CAC5C,CAAE,SAAA,CAAW,MAAA,CAAQ,IAAA,CAAM,CAAA,CAAA,CAAM,IAAA,CAAM,IAAK,CAAA,CAC5C,CAAE,SAAA,CAAW,MAAA,CAAQ,IAAA,CAAM,CAAA,CAAA,CAAM,IAAA,CAAM,IAAK,CAC9C,CAAA,CACA,eAAA,CAAiB,CACf,IAAA,CAAM,CAAA,CAAA,CACN,IAAA,CAAM,IAAA,CACN,OAAA,CAAS,SACX,CACF,CAAC,CAAA,CAaD,SAASC,CAAAA,CAAM,CAAE,SAAA,CAAAC,CAAAA,CAAW,OAAA,CAAAC,CAAAA,CAAS,IAAA,CAAAC,CAAAA,CAAM,MAAA,CAAAC,CAAAA,CAAQ,MAAA,CAAAC,CAAAA,CAAQ,QAAA,CAAAC,CAAAA,CAAU,GAAGC,CAAM,CAAA,CAAkC,CAC9G,OACEC,8BAAAA,KAAC,CAAA,CAAI,SAAA,CAAWV,CAAAA,CAAc,CAAE,OAAA,CAAAI,CAAAA,CAAS,SAAA,CAAAD,CAAAA,CAAW,IAAA,CAAAE,CAAK,CAAC,CAAA,CAAI,GAAGI,CAAAA,CAC9D,QAAA,CAAA,CAAAH,CAAAA,CACA,OAAOE,CAAAA,EAAa,QAAA,CAAWG,6BAAAA,MAAC,CAAA,CAAK,SAAA,CAAU,UAAA,CAAY,QAAA,CAAAH,CAAAA,CAAS,CAAA,CAAUA,CAAAA,CAC9ED,CAAAA,CAAAA,CACH,CAEJ,CAAA,kBAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/components/badge.cjs","sourcesContent":["import * as React from 'react';\nimport { tv, type VariantProps } from 'tailwind-variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: Badge\n * -------------------------------------------------------------------------- */\n\nconst badgeVariants = tv({\n base: [\n 'inline-flex shrink-0 items-center justify-center whitespace-nowrap rounded-md text-sm font-medium',\n '[&_svg]:size-4 [&_svg]:shrink-0',\n ],\n variants: {\n variant: {\n default: 'bg-primary text-primary-foreground',\n secondary: 'bg-secondary text-secondary-foreground',\n info: 'bg-info text-info-foreground',\n success: 'bg-success text-success-foreground',\n warning: 'bg-warning text-warning-foreground',\n destructive: 'bg-destructive text-destructive-foreground',\n outline: 'bg-background border-input border',\n },\n size: {\n xs: 'h-5 gap-2 px-2', // 20px\n sm: 'h-6 gap-2.5 px-2.5', // 24px\n md: 'h-7 gap-3 px-3', // 28px\n lg: 'h-8 gap-3.5 px-3.5', // 32px\n xl: 'h-9 gap-3.5 px-3.5', // 36px\n },\n icon: {\n true: 'px-0',\n },\n },\n compoundVariants: [\n { className: 'w-8', icon: true, size: 'xs' },\n { className: 'w-9', icon: true, size: 'sm' },\n { className: 'w-10', icon: true, size: 'md' },\n { className: 'w-11', icon: true, size: 'lg' },\n { className: 'w-12', icon: true, size: 'xl' },\n ],\n defaultVariants: {\n icon: false,\n size: 'md',\n variant: 'default',\n },\n});\n\ntype BadgeVariantsProps = VariantProps<typeof badgeVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: Badge\n * -------------------------------------------------------------------------- */\n\ninterface BadgeProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'prefix'>, BadgeVariantsProps {\n prefix?: React.ReactNode;\n suffix?: React.ReactNode;\n}\n\nfunction Badge({ className, variant, size, prefix, suffix, children, ...props }: BadgeProps): React.JSX.Element {\n return (\n <div className={badgeVariants({ variant, className, size })} {...props}>\n {prefix}\n {typeof children === 'string' ? <span className=\"truncate\">{children}</span> : children}\n {suffix}\n </div>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Badge, type BadgeProps };\n"]}
@@ -7,54 +7,148 @@ declare const badgeVariants: tailwind_variants.TVReturnType<{
7
7
  variant: {
8
8
  default: string;
9
9
  secondary: string;
10
+ info: string;
11
+ success: string;
12
+ warning: string;
10
13
  destructive: string;
11
14
  outline: string;
12
15
  };
13
- }, undefined, "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition", tailwind_variants_dist_config_js.TVConfig<{
16
+ size: {
17
+ xs: string;
18
+ sm: string;
19
+ md: string;
20
+ lg: string;
21
+ xl: string;
22
+ };
23
+ icon: {
24
+ true: string;
25
+ };
26
+ }, undefined, string[], tailwind_variants_dist_config_js.TVConfig<{
14
27
  variant: {
15
28
  default: string;
16
29
  secondary: string;
30
+ info: string;
31
+ success: string;
32
+ warning: string;
17
33
  destructive: string;
18
34
  outline: string;
19
35
  };
36
+ size: {
37
+ xs: string;
38
+ sm: string;
39
+ md: string;
40
+ lg: string;
41
+ xl: string;
42
+ };
43
+ icon: {
44
+ true: string;
45
+ };
20
46
  }, {
21
47
  variant: {
22
48
  default: string;
23
49
  secondary: string;
50
+ info: string;
51
+ success: string;
52
+ warning: string;
24
53
  destructive: string;
25
54
  outline: string;
26
55
  };
56
+ size: {
57
+ xs: string;
58
+ sm: string;
59
+ md: string;
60
+ lg: string;
61
+ xl: string;
62
+ };
63
+ icon: {
64
+ true: string;
65
+ };
27
66
  }>, {
28
67
  variant: {
29
68
  default: string;
30
69
  secondary: string;
70
+ info: string;
71
+ success: string;
72
+ warning: string;
31
73
  destructive: string;
32
74
  outline: string;
33
75
  };
76
+ size: {
77
+ xs: string;
78
+ sm: string;
79
+ md: string;
80
+ lg: string;
81
+ xl: string;
82
+ };
83
+ icon: {
84
+ true: string;
85
+ };
34
86
  }, undefined, tailwind_variants.TVReturnType<{
35
87
  variant: {
36
88
  default: string;
37
89
  secondary: string;
90
+ info: string;
91
+ success: string;
92
+ warning: string;
38
93
  destructive: string;
39
94
  outline: string;
40
95
  };
41
- }, undefined, "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition", tailwind_variants_dist_config_js.TVConfig<{
96
+ size: {
97
+ xs: string;
98
+ sm: string;
99
+ md: string;
100
+ lg: string;
101
+ xl: string;
102
+ };
103
+ icon: {
104
+ true: string;
105
+ };
106
+ }, undefined, string[], tailwind_variants_dist_config_js.TVConfig<{
42
107
  variant: {
43
108
  default: string;
44
109
  secondary: string;
110
+ info: string;
111
+ success: string;
112
+ warning: string;
45
113
  destructive: string;
46
114
  outline: string;
47
115
  };
116
+ size: {
117
+ xs: string;
118
+ sm: string;
119
+ md: string;
120
+ lg: string;
121
+ xl: string;
122
+ };
123
+ icon: {
124
+ true: string;
125
+ };
48
126
  }, {
49
127
  variant: {
50
128
  default: string;
51
129
  secondary: string;
130
+ info: string;
131
+ success: string;
132
+ warning: string;
52
133
  destructive: string;
53
134
  outline: string;
54
135
  };
136
+ size: {
137
+ xs: string;
138
+ sm: string;
139
+ md: string;
140
+ lg: string;
141
+ xl: string;
142
+ };
143
+ icon: {
144
+ true: string;
145
+ };
55
146
  }>, unknown, unknown, undefined>>;
56
147
  type BadgeVariantsProps = VariantProps<typeof badgeVariants>;
57
- type BadgeProps = React.HTMLAttributes<HTMLDivElement> & BadgeVariantsProps;
58
- declare function Badge({ className, variant, ...props }: BadgeProps): React.JSX.Element;
148
+ interface BadgeProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'prefix'>, BadgeVariantsProps {
149
+ prefix?: React.ReactNode;
150
+ suffix?: React.ReactNode;
151
+ }
152
+ declare function Badge({ className, variant, size, prefix, suffix, children, ...props }: BadgeProps): React.JSX.Element;
59
153
 
60
154
  export { Badge, type BadgeProps };
@@ -7,54 +7,148 @@ declare const badgeVariants: tailwind_variants.TVReturnType<{
7
7
  variant: {
8
8
  default: string;
9
9
  secondary: string;
10
+ info: string;
11
+ success: string;
12
+ warning: string;
10
13
  destructive: string;
11
14
  outline: string;
12
15
  };
13
- }, undefined, "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition", tailwind_variants_dist_config_js.TVConfig<{
16
+ size: {
17
+ xs: string;
18
+ sm: string;
19
+ md: string;
20
+ lg: string;
21
+ xl: string;
22
+ };
23
+ icon: {
24
+ true: string;
25
+ };
26
+ }, undefined, string[], tailwind_variants_dist_config_js.TVConfig<{
14
27
  variant: {
15
28
  default: string;
16
29
  secondary: string;
30
+ info: string;
31
+ success: string;
32
+ warning: string;
17
33
  destructive: string;
18
34
  outline: string;
19
35
  };
36
+ size: {
37
+ xs: string;
38
+ sm: string;
39
+ md: string;
40
+ lg: string;
41
+ xl: string;
42
+ };
43
+ icon: {
44
+ true: string;
45
+ };
20
46
  }, {
21
47
  variant: {
22
48
  default: string;
23
49
  secondary: string;
50
+ info: string;
51
+ success: string;
52
+ warning: string;
24
53
  destructive: string;
25
54
  outline: string;
26
55
  };
56
+ size: {
57
+ xs: string;
58
+ sm: string;
59
+ md: string;
60
+ lg: string;
61
+ xl: string;
62
+ };
63
+ icon: {
64
+ true: string;
65
+ };
27
66
  }>, {
28
67
  variant: {
29
68
  default: string;
30
69
  secondary: string;
70
+ info: string;
71
+ success: string;
72
+ warning: string;
31
73
  destructive: string;
32
74
  outline: string;
33
75
  };
76
+ size: {
77
+ xs: string;
78
+ sm: string;
79
+ md: string;
80
+ lg: string;
81
+ xl: string;
82
+ };
83
+ icon: {
84
+ true: string;
85
+ };
34
86
  }, undefined, tailwind_variants.TVReturnType<{
35
87
  variant: {
36
88
  default: string;
37
89
  secondary: string;
90
+ info: string;
91
+ success: string;
92
+ warning: string;
38
93
  destructive: string;
39
94
  outline: string;
40
95
  };
41
- }, undefined, "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition", tailwind_variants_dist_config_js.TVConfig<{
96
+ size: {
97
+ xs: string;
98
+ sm: string;
99
+ md: string;
100
+ lg: string;
101
+ xl: string;
102
+ };
103
+ icon: {
104
+ true: string;
105
+ };
106
+ }, undefined, string[], tailwind_variants_dist_config_js.TVConfig<{
42
107
  variant: {
43
108
  default: string;
44
109
  secondary: string;
110
+ info: string;
111
+ success: string;
112
+ warning: string;
45
113
  destructive: string;
46
114
  outline: string;
47
115
  };
116
+ size: {
117
+ xs: string;
118
+ sm: string;
119
+ md: string;
120
+ lg: string;
121
+ xl: string;
122
+ };
123
+ icon: {
124
+ true: string;
125
+ };
48
126
  }, {
49
127
  variant: {
50
128
  default: string;
51
129
  secondary: string;
130
+ info: string;
131
+ success: string;
132
+ warning: string;
52
133
  destructive: string;
53
134
  outline: string;
54
135
  };
136
+ size: {
137
+ xs: string;
138
+ sm: string;
139
+ md: string;
140
+ lg: string;
141
+ xl: string;
142
+ };
143
+ icon: {
144
+ true: string;
145
+ };
55
146
  }>, unknown, unknown, undefined>>;
56
147
  type BadgeVariantsProps = VariantProps<typeof badgeVariants>;
57
- type BadgeProps = React.HTMLAttributes<HTMLDivElement> & BadgeVariantsProps;
58
- declare function Badge({ className, variant, ...props }: BadgeProps): React.JSX.Element;
148
+ interface BadgeProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'prefix'>, BadgeVariantsProps {
149
+ prefix?: React.ReactNode;
150
+ suffix?: React.ReactNode;
151
+ }
152
+ declare function Badge({ className, variant, size, prefix, suffix, children, ...props }: BadgeProps): React.JSX.Element;
59
153
 
60
154
  export { Badge, type BadgeProps };
@@ -1,2 +1,2 @@
1
- import{tv as a}from"tailwind-variants";import{jsx as n}from"react/jsx-runtime";var o=a({base:"inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition",variants:{variant:{default:"bg-primary text-primary-foreground border-transparent shadow",secondary:"bg-secondary text-secondary-foreground border-transparent",destructive:"bg-destructive text-destructive-foreground border-transparent shadow",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function d({className:e,variant:t,...r}){return n("div",{className:o({variant:t,className:e}),...r})}export{d as Badge};
1
+ import{tv as o}from"tailwind-variants";import{jsx as d,jsxs as p}from"react/jsx-runtime";var c=o({base:["inline-flex shrink-0 items-center justify-center whitespace-nowrap rounded-md text-sm font-medium","[&_svg]:size-4 [&_svg]:shrink-0"],variants:{variant:{default:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",info:"bg-info text-info-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",destructive:"bg-destructive text-destructive-foreground",outline:"bg-background border-input border"},size:{xs:"h-5 gap-2 px-2",sm:"h-6 gap-2.5 px-2.5",md:"h-7 gap-3 px-3",lg:"h-8 gap-3.5 px-3.5",xl:"h-9 gap-3.5 px-3.5"},icon:{true:"px-0"}},compoundVariants:[{className:"w-8",icon:!0,size:"xs"},{className:"w-9",icon:!0,size:"sm"},{className:"w-10",icon:!0,size:"md"},{className:"w-11",icon:!0,size:"lg"},{className:"w-12",icon:!0,size:"xl"}],defaultVariants:{icon:!1,size:"md",variant:"default"}});function u({className:a,variant:t,size:s,prefix:r,suffix:n,children:e,...i}){return p("div",{className:c({variant:t,className:a,size:s}),...i,children:[r,typeof e=="string"?d("span",{className:"truncate",children:e}):e,n]})}export{u as Badge};
2
2
  //# sourceMappingURL=badge.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/badge.tsx"],"sourcesContent":["import * as React from 'react';\nimport { tv, type VariantProps } from 'tailwind-variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: Badge\n * -------------------------------------------------------------------------- */\n\nconst badgeVariants = tv({\n base: 'inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition',\n variants: {\n variant: {\n default: 'bg-primary text-primary-foreground border-transparent shadow',\n secondary: 'bg-secondary text-secondary-foreground border-transparent',\n destructive: 'bg-destructive text-destructive-foreground border-transparent shadow',\n outline: 'text-foreground',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n});\n\ntype BadgeVariantsProps = VariantProps<typeof badgeVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: Badge\n * -------------------------------------------------------------------------- */\n\ntype BadgeProps = React.HTMLAttributes<HTMLDivElement> & BadgeVariantsProps;\n\nfunction Badge({ className, variant, ...props }: BadgeProps): React.JSX.Element {\n return <div className={badgeVariants({ variant, className })} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Badge, type BadgeProps };\n"],"mappings":"AACA,OAAS,MAAAA,MAA6B,oBA8B7B,cAAAC,MAAA,oBAxBT,IAAMC,EAAgBF,EAAG,CACvB,KAAM,4FACN,SAAU,CACR,QAAS,CACP,QAAS,+DACT,UAAW,4DACX,YAAa,uEACb,QAAS,iBACX,CACF,EACA,gBAAiB,CACf,QAAS,SACX,CACF,CAAC,EAUD,SAASG,EAAM,CAAE,UAAAC,EAAW,QAAAC,EAAS,GAAGC,CAAM,EAAkC,CAC9E,OAAOL,EAAC,OAAI,UAAWC,EAAc,CAAE,QAAAG,EAAS,UAAAD,CAAU,CAAC,EAAI,GAAGE,EAAO,CAC3E","names":["tv","jsx","badgeVariants","Badge","className","variant","props"]}
1
+ {"version":3,"sources":["../../src/components/badge.tsx"],"sourcesContent":["import * as React from 'react';\nimport { tv, type VariantProps } from 'tailwind-variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: Badge\n * -------------------------------------------------------------------------- */\n\nconst badgeVariants = tv({\n base: [\n 'inline-flex shrink-0 items-center justify-center whitespace-nowrap rounded-md text-sm font-medium',\n '[&_svg]:size-4 [&_svg]:shrink-0',\n ],\n variants: {\n variant: {\n default: 'bg-primary text-primary-foreground',\n secondary: 'bg-secondary text-secondary-foreground',\n info: 'bg-info text-info-foreground',\n success: 'bg-success text-success-foreground',\n warning: 'bg-warning text-warning-foreground',\n destructive: 'bg-destructive text-destructive-foreground',\n outline: 'bg-background border-input border',\n },\n size: {\n xs: 'h-5 gap-2 px-2', // 20px\n sm: 'h-6 gap-2.5 px-2.5', // 24px\n md: 'h-7 gap-3 px-3', // 28px\n lg: 'h-8 gap-3.5 px-3.5', // 32px\n xl: 'h-9 gap-3.5 px-3.5', // 36px\n },\n icon: {\n true: 'px-0',\n },\n },\n compoundVariants: [\n { className: 'w-8', icon: true, size: 'xs' },\n { className: 'w-9', icon: true, size: 'sm' },\n { className: 'w-10', icon: true, size: 'md' },\n { className: 'w-11', icon: true, size: 'lg' },\n { className: 'w-12', icon: true, size: 'xl' },\n ],\n defaultVariants: {\n icon: false,\n size: 'md',\n variant: 'default',\n },\n});\n\ntype BadgeVariantsProps = VariantProps<typeof badgeVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: Badge\n * -------------------------------------------------------------------------- */\n\ninterface BadgeProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'prefix'>, BadgeVariantsProps {\n prefix?: React.ReactNode;\n suffix?: React.ReactNode;\n}\n\nfunction Badge({ className, variant, size, prefix, suffix, children, ...props }: BadgeProps): React.JSX.Element {\n return (\n <div className={badgeVariants({ variant, className, size })} {...props}>\n {prefix}\n {typeof children === 'string' ? <span className=\"truncate\">{children}</span> : children}\n {suffix}\n </div>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Badge, type BadgeProps };\n"],"mappings":"AACA,OAAS,MAAAA,MAA6B,oBA2DlC,OAEkC,OAAAC,EAFlC,QAAAC,MAAA,oBArDJ,IAAMC,EAAgBH,EAAG,CACvB,KAAM,CACJ,oGACA,iCACF,EACA,SAAU,CACR,QAAS,CACP,QAAS,qCACT,UAAW,yCACX,KAAM,+BACN,QAAS,qCACT,QAAS,qCACT,YAAa,6CACb,QAAS,mCACX,EACA,KAAM,CACJ,GAAI,iBACJ,GAAI,qBACJ,GAAI,iBACJ,GAAI,qBACJ,GAAI,oBACN,EACA,KAAM,CACJ,KAAM,MACR,CACF,EACA,iBAAkB,CAChB,CAAE,UAAW,MAAO,KAAM,GAAM,KAAM,IAAK,EAC3C,CAAE,UAAW,MAAO,KAAM,GAAM,KAAM,IAAK,EAC3C,CAAE,UAAW,OAAQ,KAAM,GAAM,KAAM,IAAK,EAC5C,CAAE,UAAW,OAAQ,KAAM,GAAM,KAAM,IAAK,EAC5C,CAAE,UAAW,OAAQ,KAAM,GAAM,KAAM,IAAK,CAC9C,EACA,gBAAiB,CACf,KAAM,GACN,KAAM,KACN,QAAS,SACX,CACF,CAAC,EAaD,SAASI,EAAM,CAAE,UAAAC,EAAW,QAAAC,EAAS,KAAAC,EAAM,OAAAC,EAAQ,OAAAC,EAAQ,SAAAC,EAAU,GAAGC,CAAM,EAAkC,CAC9G,OACET,EAAC,OAAI,UAAWC,EAAc,CAAE,QAAAG,EAAS,UAAAD,EAAW,KAAAE,CAAK,CAAC,EAAI,GAAGI,EAC9D,UAAAH,EACA,OAAOE,GAAa,SAAWT,EAAC,QAAK,UAAU,WAAY,SAAAS,EAAS,EAAUA,EAC9ED,GACH,CAEJ","names":["tv","jsx","jsxs","badgeVariants","Badge","className","variant","size","prefix","suffix","children","props"]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var _chunk4XRBMJ5Qcjs = require('../chunk-4XRBMJ5Q.cjs');var _react = require('react'); var s = _interopRequireWildcard(_react);var _reactslot = require('@radix-ui/react-slot');var _reacticons = require('@radix-ui/react-icons');var _jsxruntime = require('react/jsx-runtime');var i=s.forwardRef(({...e},r)=>_jsxruntime.jsx.call(void 0, "nav",{ref:r,"aria-label":"breadcrumb",...e}));i.displayName="Breadcrumb";var d=s.forwardRef(({className:e,...r},t)=>_jsxruntime.jsx.call(void 0, "ol",{ref:t,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "text-muted-foreground flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2.5",e),...r}));d.displayName="BreadcrumbList";var l=s.forwardRef(({className:e,...r},t)=>_jsxruntime.jsx.call(void 0, "li",{ref:t,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "inline-flex items-center gap-1.5",e),...r}));l.displayName="BreadcrumbItem";var u=s.forwardRef(({asChild:e,className:r,...t},n)=>_jsxruntime.jsx.call(void 0, e?_reactslot.Slot:"a",{ref:n,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "hover:text-foreground transition",r),...t}));u.displayName="BreadcrumbLink";var b=s.forwardRef(({className:e,...r},t)=>_jsxruntime.jsx.call(void 0, "span",{ref:t,"aria-current":"page","aria-disabled":"true",className:_chunk4XRBMJ5Qcjs.a.call(void 0, "text-foreground font-normal",e),role:"link",...r}));b.displayName="BreadcrumbPage";function y({children:e,className:r,...t}){return _jsxruntime.jsx.call(void 0, "li",{"aria-hidden":"true",className:_chunk4XRBMJ5Qcjs.a.call(void 0, "[&>svg]:size-3.5",r),role:"presentation",...t,children:_nullishCoalesce(e, () => (_jsxruntime.jsx.call(void 0, _reacticons.ChevronRightIcon,{})))})}function R({className:e,...r}){return _jsxruntime.jsxs.call(void 0, "span",{"aria-hidden":"true",className:_chunk4XRBMJ5Qcjs.a.call(void 0, "flex size-4 items-center justify-center",e),role:"presentation",...r,children:[_jsxruntime.jsx.call(void 0, _reacticons.DotsHorizontalIcon,{className:"size-4"}),_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"More"})]})}exports.Breadcrumb = i; exports.BreadcrumbEllipsis = R; exports.BreadcrumbItem = l; exports.BreadcrumbLink = u; exports.BreadcrumbList = d; exports.BreadcrumbPage = b; exports.BreadcrumbSeparator = y;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var _chunk4XRBMJ5Qcjs = require('../chunk-4XRBMJ5Q.cjs');var _react = require('react'); var s = _interopRequireWildcard(_react);var _reactslot = require('@radix-ui/react-slot');var _reacticons = require('@radix-ui/react-icons');var _jsxruntime = require('react/jsx-runtime');var i=s.forwardRef(({...e},r)=>_jsxruntime.jsx.call(void 0, "nav",{ref:r,"aria-label":"breadcrumb",...e}));i.displayName="Breadcrumb";var d=s.forwardRef(({className:e,...r},a)=>_jsxruntime.jsx.call(void 0, "ol",{ref:a,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "text-muted-foreground flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2.5",e),...r}));d.displayName="BreadcrumbList";var l=s.forwardRef(({className:e,...r},a)=>_jsxruntime.jsx.call(void 0, "li",{ref:a,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "inline-flex items-center gap-1.5",e),...r}));l.displayName="BreadcrumbItem";var u=s.forwardRef(({asChild:e,className:r,...a},n)=>_jsxruntime.jsx.call(void 0, e?_reactslot.Slot:"a",{ref:n,className:_chunk4XRBMJ5Qcjs.a.call(void 0, "hover:text-foreground transition",r),...a}));u.displayName="BreadcrumbLink";var b=s.forwardRef(({className:e,...r},a)=>_jsxruntime.jsx.call(void 0, "span",{ref:a,"aria-current":"page","aria-disabled":"true",className:_chunk4XRBMJ5Qcjs.a.call(void 0, "text-foreground font-normal",e),role:"link",...r}));b.displayName="BreadcrumbPage";function y({children:e,...r}){return _jsxruntime.jsx.call(void 0, "li",{"aria-hidden":"true",role:"presentation",...r,children:_nullishCoalesce(e, () => (_jsxruntime.jsx.call(void 0, _reacticons.ChevronRightIcon,{className:"size-3.5"})))})}function R({className:e,...r}){return _jsxruntime.jsxs.call(void 0, "span",{"aria-hidden":"true",className:_chunk4XRBMJ5Qcjs.a.call(void 0, "flex size-4 items-center justify-center",e),role:"presentation",...r,children:[_jsxruntime.jsx.call(void 0, _reacticons.DotsHorizontalIcon,{className:"size-4"}),_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"More"})]})}exports.Breadcrumb = i; exports.BreadcrumbEllipsis = R; exports.BreadcrumbItem = l; exports.BreadcrumbLink = u; exports.BreadcrumbList = d; exports.BreadcrumbPage = b; exports.BreadcrumbSeparator = y;
2
2
  //# sourceMappingURL=breadcrumb.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/components/breadcrumb.cjs","../../src/components/breadcrumb.tsx"],"names":["Breadcrumb","props","forwardedRef","jsx","BreadcrumbList","className","cn","BreadcrumbItem","BreadcrumbLink","asChild","Slot","BreadcrumbPage","BreadcrumbSeparator","children","ChevronRightIcon","BreadcrumbEllipsis","jsxs","DotsHorizontalIcon"],"mappings":"AAAA,wfAAyC,uECAlB,iDACF,mDACgC,+CAcnD,IADIA,CAAAA,CAAmB,CAAA,CAAA,UAAA,CAA+C,CAAC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/components/breadcrumb.cjs","sourcesContent":[null,"import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { ChevronRightIcon, DotsHorizontalIcon } from '@radix-ui/react-icons';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Breadcrumb\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbElement = HTMLElement;\n\ninterface BreadcrumbProps extends React.HTMLAttributes<HTMLElement> {\n separator?: React.ReactNode;\n}\n\nconst Breadcrumb = React.forwardRef<BreadcrumbElement, BreadcrumbProps>(({ ...props }, forwardedRef) => (\n <nav ref={forwardedRef} aria-label=\"breadcrumb\" {...props} />\n));\n\nBreadcrumb.displayName = 'Breadcrumb';\n\n/* -----------------------------------------------------------------------------\n * Component: BreadcrumbList\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbListElement = HTMLOListElement;\ntype BreadcrumbListProps = React.OlHTMLAttributes<HTMLOListElement>;\n\nconst BreadcrumbList = React.forwardRef<BreadcrumbListElement, BreadcrumbListProps>(\n ({ className, ...props }, forwardedRef) => (\n <ol\n ref={forwardedRef}\n className={cn(\n 'text-muted-foreground flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2.5',\n className,\n )}\n {...props}\n />\n ),\n);\n\nBreadcrumbList.displayName = 'BreadcrumbList';\n\n/* -----------------------------------------------------------------------------\n * Component: BreadcrumbItem\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbItemElement = HTMLLIElement;\ntype BreadcrumbItemProps = React.LiHTMLAttributes<HTMLLIElement>;\n\nconst BreadcrumbItem = React.forwardRef<BreadcrumbItemElement, BreadcrumbItemProps>(\n ({ className, ...props }, forwardedRef) => (\n <li ref={forwardedRef} className={cn('inline-flex items-center gap-1.5', className)} {...props} />\n ),\n);\n\nBreadcrumbItem.displayName = 'BreadcrumbItem';\n\n/* -----------------------------------------------------------------------------\n * Component: BreadcrumbLink\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbLinkElement = HTMLAnchorElement;\n\ninterface BreadcrumbLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {\n asChild?: boolean;\n}\n\nconst BreadcrumbLink = React.forwardRef<BreadcrumbLinkElement, BreadcrumbLinkProps>(\n ({ asChild, className, ...props }, forwardedRef) => {\n const Component = asChild ? Slot : 'a';\n\n return <Component ref={forwardedRef} className={cn('hover:text-foreground transition', className)} {...props} />;\n },\n);\n\nBreadcrumbLink.displayName = 'BreadcrumbLink';\n\n/* -----------------------------------------------------------------------------\n * Component: BreadcrumbPage\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbPageElement = HTMLSpanElement;\ntype BreadcrumbPageProps = React.HTMLAttributes<HTMLSpanElement>;\n\nconst BreadcrumbPage = React.forwardRef<BreadcrumbPageElement, BreadcrumbPageProps>(\n ({ className, ...props }, forwardedRef) => (\n <span\n ref={forwardedRef}\n aria-current=\"page\"\n aria-disabled=\"true\"\n className={cn('text-foreground font-normal', className)}\n role=\"link\"\n {...props}\n />\n ),\n);\n\nBreadcrumbPage.displayName = 'BreadcrumbPage';\n\n/* -----------------------------------------------------------------------------\n * Component: BreadcrumbSeparator\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbSeparatorProps = React.LiHTMLAttributes<HTMLLIElement>;\n\nfunction BreadcrumbSeparator({ children, className, ...props }: BreadcrumbSeparatorProps): React.JSX.Element {\n return (\n <li aria-hidden=\"true\" className={cn('[&>svg]:size-3.5', className)} role=\"presentation\" {...props}>\n {children ?? <ChevronRightIcon />}\n </li>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: BreadcrumbEllipsis\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbEllipsisProps = React.HTMLAttributes<HTMLSpanElement>;\n\nfunction BreadcrumbEllipsis({ className, ...props }: BreadcrumbEllipsisProps): React.JSX.Element {\n return (\n <span\n aria-hidden=\"true\"\n className={cn('flex size-4 items-center justify-center', className)}\n role=\"presentation\"\n {...props}\n >\n <DotsHorizontalIcon className=\"size-4\" />\n <span className=\"sr-only\">More</span>\n </span>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Breadcrumb,\n BreadcrumbList,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbPage,\n BreadcrumbSeparator,\n BreadcrumbEllipsis,\n type BreadcrumbProps,\n type BreadcrumbListProps,\n type BreadcrumbItemProps,\n type BreadcrumbLinkProps,\n type BreadcrumbPageProps,\n type BreadcrumbSeparatorProps,\n type BreadcrumbEllipsisProps,\n};\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/components/breadcrumb.cjs","../../src/components/breadcrumb.tsx"],"names":["Breadcrumb","props","forwardedRef","jsx","BreadcrumbList","className","cn","BreadcrumbItem","BreadcrumbLink","asChild","Slot","BreadcrumbPage","BreadcrumbSeparator","children","ChevronRightIcon","BreadcrumbEllipsis","jsxs","DotsHorizontalIcon"],"mappings":"AAAA,wfAAyC,uECAlB,iDACF,mDACgC,+CAcnD,IADIA,CAAAA,CAAmB,CAAA,CAAA,UAAA,CAA+C,CAAC,CAAE,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACrFC,6BAAAA,KAAC,CAAA,CAAI,GAAA,CAAKD,CAAAA,CAAc,YAAA,CAAW,YAAA,CAAc,GAAGD,CAAAA,CAAO,CAC5D,CAAA,CAEDD,CAAAA,CAAW,WAAA,CAAc,YAAA,CASzB,IAAMI,CAAAA,CAAuB,CAAA,CAAA,UAAA,CAC3B,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGJ,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,IAAC,CAAA,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWI,iCAAAA,0FACT,CACAD,CACF,CAAA,CACC,GAAGJ,CAAAA,CACN,CAEJ,CAAA,CAEAG,CAAAA,CAAe,WAAA,CAAc,gBAAA,CAS7B,IAAMG,CAAAA,CAAuB,CA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AA,CAAgB,GAAGF,CAAAA,CAC5C,QAAA,kBAAAY,CAAAA,SAAYV,6BAAAA,4BAACW,CAAA,CAAiB,SAAA,CAAU,UAAA,CAAW,GAAA,CACtD,CAEJ,CAQA,SAASC,CAAAA,CAAmB,CAAE,SAAA,CAAAV,CAAAA,CAAW,GAAGJ,CAAM,CAAA,CAA+C,CAC/F,OACEe,8BAAAA,MAAC,CAAA,CACC,aAAA,CAAY,MAAA,CACZ,SAAA,CAAWV,iCAAAA,yCAAG,CAA2CD,CAAS,CAAA,CAClE,IAAA,CAAK,cAAA,CACJ,GAAGJ,CAAAA,CAEJ,QAAA,CAAA,CAAAE,6BAAAA,8BAACc,CAAA,CAAmB,SAAA,CAAU,QAAA,CAAS,CAAA,CACvCd,6BAAAA,MAAC,CAAA,CAAK,SAAA,CAAU,SAAA,CAAU,QAAA,CAAA,MAAA,CAAI,CAAA,CAAA,CAChC,CAEJ,CAAA,wMAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/components/breadcrumb.cjs","sourcesContent":[null,"import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { ChevronRightIcon, DotsHorizontalIcon } from '@radix-ui/react-icons';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Breadcrumb\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbElement = HTMLElement;\n\ninterface BreadcrumbProps extends React.HTMLAttributes<HTMLElement> {\n separator?: React.ReactNode;\n}\n\nconst Breadcrumb = React.forwardRef<BreadcrumbElement, BreadcrumbProps>(({ ...props }, forwardedRef) => (\n <nav ref={forwardedRef} aria-label=\"breadcrumb\" {...props} />\n));\n\nBreadcrumb.displayName = 'Breadcrumb';\n\n/* -----------------------------------------------------------------------------\n * Component: BreadcrumbList\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbListElement = HTMLOListElement;\ntype BreadcrumbListProps = React.OlHTMLAttributes<HTMLOListElement>;\n\nconst BreadcrumbList = React.forwardRef<BreadcrumbListElement, BreadcrumbListProps>(\n ({ className, ...props }, forwardedRef) => (\n <ol\n ref={forwardedRef}\n className={cn(\n 'text-muted-foreground flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2.5',\n className,\n )}\n {...props}\n />\n ),\n);\n\nBreadcrumbList.displayName = 'BreadcrumbList';\n\n/* -----------------------------------------------------------------------------\n * Component: BreadcrumbItem\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbItemElement = HTMLLIElement;\ntype BreadcrumbItemProps = React.LiHTMLAttributes<HTMLLIElement>;\n\nconst BreadcrumbItem = React.forwardRef<BreadcrumbItemElement, BreadcrumbItemProps>(\n ({ className, ...props }, forwardedRef) => (\n <li ref={forwardedRef} className={cn('inline-flex items-center gap-1.5', className)} {...props} />\n ),\n);\n\nBreadcrumbItem.displayName = 'BreadcrumbItem';\n\n/* -----------------------------------------------------------------------------\n * Component: BreadcrumbLink\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbLinkElement = HTMLAnchorElement;\n\ninterface BreadcrumbLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {\n asChild?: boolean;\n}\n\nconst BreadcrumbLink = React.forwardRef<BreadcrumbLinkElement, BreadcrumbLinkProps>(\n ({ asChild, className, ...props }, forwardedRef) => {\n const Component = asChild ? Slot : 'a';\n\n return <Component ref={forwardedRef} className={cn('hover:text-foreground transition', className)} {...props} />;\n },\n);\n\nBreadcrumbLink.displayName = 'BreadcrumbLink';\n\n/* -----------------------------------------------------------------------------\n * Component: BreadcrumbPage\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbPageElement = HTMLSpanElement;\ntype BreadcrumbPageProps = React.HTMLAttributes<HTMLSpanElement>;\n\nconst BreadcrumbPage = React.forwardRef<BreadcrumbPageElement, BreadcrumbPageProps>(\n ({ className, ...props }, forwardedRef) => (\n <span\n ref={forwardedRef}\n aria-current=\"page\"\n aria-disabled=\"true\"\n className={cn('text-foreground font-normal', className)}\n role=\"link\"\n {...props}\n />\n ),\n);\n\nBreadcrumbPage.displayName = 'BreadcrumbPage';\n\n/* -----------------------------------------------------------------------------\n * Component: BreadcrumbSeparator\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbSeparatorProps = React.LiHTMLAttributes<HTMLLIElement>;\n\nfunction BreadcrumbSeparator({ children, ...props }: BreadcrumbSeparatorProps): React.JSX.Element {\n return (\n <li aria-hidden=\"true\" role=\"presentation\" {...props}>\n {children ?? <ChevronRightIcon className=\"size-3.5\" />}\n </li>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: BreadcrumbEllipsis\n * -------------------------------------------------------------------------- */\n\ntype BreadcrumbEllipsisProps = React.HTMLAttributes<HTMLSpanElement>;\n\nfunction BreadcrumbEllipsis({ className, ...props }: BreadcrumbEllipsisProps): React.JSX.Element {\n return (\n <span\n aria-hidden=\"true\"\n className={cn('flex size-4 items-center justify-center', className)}\n role=\"presentation\"\n {...props}\n >\n <DotsHorizontalIcon className=\"size-4\" />\n <span className=\"sr-only\">More</span>\n </span>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Breadcrumb,\n BreadcrumbList,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbPage,\n BreadcrumbSeparator,\n BreadcrumbEllipsis,\n type BreadcrumbProps,\n type BreadcrumbListProps,\n type BreadcrumbItemProps,\n type BreadcrumbLinkProps,\n type BreadcrumbPageProps,\n type BreadcrumbSeparatorProps,\n type BreadcrumbEllipsisProps,\n};\n"]}