@codefast/ui 0.2.30 → 0.2.33

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 (238) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/README.md +9 -9
  3. package/dist/chunk-25YVEZ64.cjs.map +1 -1
  4. package/dist/chunk-2HEVHJKK.cjs.map +1 -1
  5. package/dist/chunk-2MN3L273.cjs.map +1 -1
  6. package/dist/chunk-2NGMMHVD.cjs.map +1 -1
  7. package/dist/chunk-3JCHUM2E.cjs.map +1 -1
  8. package/dist/chunk-3XKK56VS.cjs.map +1 -1
  9. package/dist/chunk-3YNM2FAF.cjs.map +1 -1
  10. package/dist/chunk-45XT7WPV.cjs.map +1 -1
  11. package/dist/chunk-55UJC5G4.js +2 -0
  12. package/dist/chunk-55UJC5G4.js.map +1 -0
  13. package/dist/chunk-5M632OZ3.cjs.map +1 -1
  14. package/dist/chunk-62FSD36V.cjs +2 -0
  15. package/dist/chunk-62FSD36V.cjs.map +1 -0
  16. package/dist/chunk-6Y3TATEU.cjs.map +1 -1
  17. package/dist/chunk-6Z2OPAPQ.cjs.map +1 -1
  18. package/dist/chunk-74METGII.cjs.map +1 -1
  19. package/dist/chunk-7CCZJ647.cjs.map +1 -1
  20. package/dist/chunk-AAAIMKE6.cjs.map +1 -1
  21. package/dist/chunk-ASEUIM44.cjs.map +1 -1
  22. package/dist/chunk-AZFVCNWH.cjs.map +1 -1
  23. package/dist/chunk-BTEH3T5W.cjs.map +1 -1
  24. package/dist/chunk-BWJ6X4FP.js +2 -0
  25. package/dist/chunk-BWJ6X4FP.js.map +1 -0
  26. package/dist/chunk-BZPP4CU7.cjs.map +1 -1
  27. package/dist/chunk-CGU7BQSL.js +2 -0
  28. package/dist/chunk-CGU7BQSL.js.map +1 -0
  29. package/dist/chunk-CT4OIAD4.cjs.map +1 -1
  30. package/dist/chunk-DD4HTA6V.cjs.map +1 -1
  31. package/dist/chunk-E627ZOLH.cjs.map +1 -1
  32. package/dist/chunk-EBHV6RMB.cjs +2 -0
  33. package/dist/chunk-EBHV6RMB.cjs.map +1 -0
  34. package/dist/chunk-ECCL4WBE.cjs +2 -0
  35. package/dist/chunk-ECCL4WBE.cjs.map +1 -0
  36. package/dist/chunk-EMPC5HNU.cjs.map +1 -1
  37. package/dist/chunk-FKBFCM7D.js +2 -0
  38. package/dist/chunk-FKBFCM7D.js.map +1 -0
  39. package/dist/chunk-GDO6H6FE.cjs.map +1 -1
  40. package/dist/chunk-GDOXPS6I.cjs.map +1 -1
  41. package/dist/chunk-GGIVV535.cjs.map +1 -1
  42. package/dist/{chunk-HEK7QLFR.js → chunk-GIPFEUMD.js} +1 -1
  43. package/dist/{chunk-HEK7QLFR.js.map → chunk-GIPFEUMD.js.map} +1 -1
  44. package/dist/chunk-GL6VRBO4.js +2 -0
  45. package/dist/chunk-GL6VRBO4.js.map +1 -0
  46. package/dist/chunk-GPPLLR2C.cjs.map +1 -1
  47. package/dist/{chunk-HVGYQUXR.js → chunk-GXFGJ53T.js} +2 -2
  48. package/dist/chunk-HD2FCRL3.cjs.map +1 -1
  49. package/dist/chunk-HFJKDL4E.cjs.map +1 -1
  50. package/dist/chunk-HSMBTYPE.cjs.map +1 -1
  51. package/dist/chunk-ICLHBN2W.cjs +2 -0
  52. package/dist/chunk-ICLHBN2W.cjs.map +1 -0
  53. package/dist/chunk-IDELSFHC.cjs.map +1 -1
  54. package/dist/chunk-IK76PHGB.cjs.map +1 -1
  55. package/dist/chunk-IU3UVNAL.js +2 -0
  56. package/dist/chunk-IU3UVNAL.js.map +1 -0
  57. package/dist/chunk-J7FLM6VE.cjs.map +1 -1
  58. package/dist/chunk-JFPE2M2V.js +2 -0
  59. package/dist/chunk-JFPE2M2V.js.map +1 -0
  60. package/dist/chunk-JIF3ESOX.cjs.map +1 -1
  61. package/dist/chunk-JW6C57Y5.cjs.map +1 -1
  62. package/dist/chunk-KEF3RCSW.cjs.map +1 -1
  63. package/dist/chunk-KOVXL4P6.cjs.map +1 -1
  64. package/dist/chunk-LOMEOK37.cjs.map +1 -1
  65. package/dist/chunk-M5WBW5H3.cjs +2 -0
  66. package/dist/chunk-M5WBW5H3.cjs.map +1 -0
  67. package/dist/chunk-MCMCMOW6.cjs.map +1 -1
  68. package/dist/chunk-NBKDS5DF.cjs +2 -0
  69. package/dist/chunk-NBKDS5DF.cjs.map +1 -0
  70. package/dist/{chunk-GXYHZRFH.cjs → chunk-NHKDM4JU.cjs} +1 -1
  71. package/dist/chunk-NHKDM4JU.cjs.map +1 -0
  72. package/dist/chunk-NOJBMCCJ.cjs.map +1 -1
  73. package/dist/chunk-PCH5RP2Y.cjs.map +1 -1
  74. package/dist/chunk-POJOZ7HM.cjs.map +1 -1
  75. package/dist/chunk-PWZWNYMT.cjs.map +1 -1
  76. package/dist/chunk-Q24HBDJY.cjs.map +1 -1
  77. package/dist/chunk-QQHIPYWF.cjs.map +1 -1
  78. package/dist/chunk-RNLUQH6E.cjs.map +1 -1
  79. package/dist/chunk-SLXE24VS.cjs.map +1 -1
  80. package/dist/chunk-SMJEDCFP.cjs.map +1 -1
  81. package/dist/chunk-SQLHRPWG.js +2 -0
  82. package/dist/chunk-SQLHRPWG.js.map +1 -0
  83. package/dist/chunk-SRP463XH.cjs.map +1 -1
  84. package/dist/chunk-TNP6NVCR.cjs.map +1 -1
  85. package/dist/chunk-TRPIIBAS.cjs.map +1 -1
  86. package/dist/chunk-TT7ESDY6.cjs.map +1 -1
  87. package/dist/chunk-TUAQU25Y.cjs.map +1 -1
  88. package/dist/chunk-UAS5UKTZ.cjs.map +1 -1
  89. package/dist/chunk-US2PK6G5.cjs +2 -0
  90. package/dist/chunk-US2PK6G5.cjs.map +1 -0
  91. package/dist/chunk-UYWVE5DL.cjs.map +1 -1
  92. package/dist/chunk-WOGISN3L.cjs.map +1 -1
  93. package/dist/chunk-X5CR4RIL.cjs.map +1 -1
  94. package/dist/chunk-XO4K654G.cjs.map +1 -1
  95. package/dist/chunk-XXUOW3ID.cjs.map +1 -1
  96. package/dist/chunk-Y3I5OCGY.cjs +2 -0
  97. package/dist/chunk-Y3I5OCGY.cjs.map +1 -0
  98. package/dist/chunk-ZA36F2BJ.cjs.map +1 -1
  99. package/dist/chunk-ZESL6WID.cjs.map +1 -1
  100. package/dist/{chunk-K3WFUR2W.cjs → chunk-ZICEZCOU.cjs} +2 -2
  101. package/dist/chunk-ZICEZCOU.cjs.map +1 -0
  102. package/dist/components/accordion.cjs.map +1 -1
  103. package/dist/components/alert-dialog.cjs +1 -1
  104. package/dist/components/alert-dialog.cjs.map +1 -1
  105. package/dist/components/alert-dialog.js +1 -1
  106. package/dist/components/alert.cjs.map +1 -1
  107. package/dist/components/aspect-ratio.cjs.map +1 -1
  108. package/dist/components/avatar.cjs.map +1 -1
  109. package/dist/components/badge.cjs.map +1 -1
  110. package/dist/components/blockquote.cjs.map +1 -1
  111. package/dist/components/box.cjs.map +1 -1
  112. package/dist/components/breadcrumb.cjs.map +1 -1
  113. package/dist/components/button.cjs.map +1 -1
  114. package/dist/components/calendar.cjs.map +1 -1
  115. package/dist/components/card.cjs +1 -1
  116. package/dist/components/card.cjs.map +1 -1
  117. package/dist/components/card.d.cts +2 -1
  118. package/dist/components/card.d.ts +2 -1
  119. package/dist/components/card.js +1 -1
  120. package/dist/components/carousel.cjs.map +1 -1
  121. package/dist/components/chart.cjs.map +1 -1
  122. package/dist/components/checkbox-cards.cjs.map +1 -1
  123. package/dist/components/checkbox-group.cjs.map +1 -1
  124. package/dist/components/checkbox.cjs.map +1 -1
  125. package/dist/components/code.cjs.map +1 -1
  126. package/dist/components/collapsible.cjs.map +1 -1
  127. package/dist/components/command.cjs +1 -1
  128. package/dist/components/command.cjs.map +1 -1
  129. package/dist/components/command.js +1 -1
  130. package/dist/components/container.cjs.map +1 -1
  131. package/dist/components/context-menu.cjs.map +1 -1
  132. package/dist/components/data-table.cjs.map +1 -1
  133. package/dist/components/dialog.cjs +1 -1
  134. package/dist/components/dialog.cjs.map +1 -1
  135. package/dist/components/dialog.js +1 -1
  136. package/dist/components/drawer.cjs +1 -1
  137. package/dist/components/drawer.cjs.map +1 -1
  138. package/dist/components/drawer.js +1 -1
  139. package/dist/components/dropdown-menu.cjs.map +1 -1
  140. package/dist/components/em.cjs.map +1 -1
  141. package/dist/components/form.cjs.map +1 -1
  142. package/dist/components/heading.cjs.map +1 -1
  143. package/dist/components/hover-card.cjs.map +1 -1
  144. package/dist/components/inline.cjs.map +1 -1
  145. package/dist/components/input-date.cjs.map +1 -1
  146. package/dist/components/input-number.cjs.map +1 -1
  147. package/dist/components/input-otp.cjs.map +1 -1
  148. package/dist/components/input-password.cjs.map +1 -1
  149. package/dist/components/input-search.cjs.map +1 -1
  150. package/dist/components/input-time.cjs.map +1 -1
  151. package/dist/components/input.cjs.map +1 -1
  152. package/dist/components/kbd.cjs.map +1 -1
  153. package/dist/components/label.cjs.map +1 -1
  154. package/dist/components/menubar.cjs.map +1 -1
  155. package/dist/components/navigation-menu.cjs.map +1 -1
  156. package/dist/components/pagination.cjs.map +1 -1
  157. package/dist/components/popover.cjs.map +1 -1
  158. package/dist/components/pre.cjs.map +1 -1
  159. package/dist/components/progress.cjs.map +1 -1
  160. package/dist/components/quote.cjs.map +1 -1
  161. package/dist/components/radio-cards.cjs.map +1 -1
  162. package/dist/components/radio-group.cjs.map +1 -1
  163. package/dist/components/radio.cjs.map +1 -1
  164. package/dist/components/resizable.cjs.map +1 -1
  165. package/dist/components/scroll-area.cjs.map +1 -1
  166. package/dist/components/section.cjs.map +1 -1
  167. package/dist/components/select.cjs.map +1 -1
  168. package/dist/components/separator.cjs.map +1 -1
  169. package/dist/components/sheet.cjs +1 -1
  170. package/dist/components/sheet.cjs.map +1 -1
  171. package/dist/components/sheet.js +1 -1
  172. package/dist/components/sidebar.cjs +1 -1
  173. package/dist/components/sidebar.cjs.map +1 -1
  174. package/dist/components/sidebar.js +1 -1
  175. package/dist/components/skeleton.cjs.map +1 -1
  176. package/dist/components/slider.cjs +1 -1
  177. package/dist/components/slider.cjs.map +1 -1
  178. package/dist/components/slider.js +1 -1
  179. package/dist/components/sonner.cjs.map +1 -1
  180. package/dist/components/spinner.cjs.map +1 -1
  181. package/dist/components/strong.cjs.map +1 -1
  182. package/dist/components/switch.cjs.map +1 -1
  183. package/dist/components/table.cjs +1 -1
  184. package/dist/components/table.cjs.map +1 -1
  185. package/dist/components/table.js +1 -1
  186. package/dist/components/tabs.cjs +1 -1
  187. package/dist/components/tabs.cjs.map +1 -1
  188. package/dist/components/tabs.js +1 -1
  189. package/dist/components/text.cjs.map +1 -1
  190. package/dist/components/textarea.cjs.map +1 -1
  191. package/dist/components/toggle-group.cjs.map +1 -1
  192. package/dist/components/toggle.cjs.map +1 -1
  193. package/dist/components/tooltip.cjs.map +1 -1
  194. package/dist/index.cjs +1 -1
  195. package/dist/index.cjs.map +1 -1
  196. package/dist/index.css +1 -1
  197. package/dist/index.css.map +1 -1
  198. package/dist/index.d.cts +1 -1
  199. package/dist/index.d.ts +1 -1
  200. package/dist/index.js +1 -1
  201. package/dist/lib/logger.cjs.map +1 -1
  202. package/dist/lib/utils.cjs.map +1 -1
  203. package/package.json +9 -10
  204. package/dist/chunk-2EVCRJID.cjs +0 -2
  205. package/dist/chunk-2EVCRJID.cjs.map +0 -1
  206. package/dist/chunk-4TENCCRT.js +0 -2
  207. package/dist/chunk-4TENCCRT.js.map +0 -1
  208. package/dist/chunk-5NGAG7ZW.cjs +0 -2
  209. package/dist/chunk-5NGAG7ZW.cjs.map +0 -1
  210. package/dist/chunk-62H6UZHH.js +0 -2
  211. package/dist/chunk-62H6UZHH.js.map +0 -1
  212. package/dist/chunk-AHHONQBW.js +0 -2
  213. package/dist/chunk-AHHONQBW.js.map +0 -1
  214. package/dist/chunk-CEK2UYDP.cjs +0 -2
  215. package/dist/chunk-CEK2UYDP.cjs.map +0 -1
  216. package/dist/chunk-EJJKYYHY.js +0 -2
  217. package/dist/chunk-EJJKYYHY.js.map +0 -1
  218. package/dist/chunk-GXYHZRFH.cjs.map +0 -1
  219. package/dist/chunk-JM2VJEQF.cjs +0 -2
  220. package/dist/chunk-JM2VJEQF.cjs.map +0 -1
  221. package/dist/chunk-K3WFUR2W.cjs.map +0 -1
  222. package/dist/chunk-KFORL4OH.js +0 -2
  223. package/dist/chunk-KFORL4OH.js.map +0 -1
  224. package/dist/chunk-MRIHA5JJ.js +0 -2
  225. package/dist/chunk-MRIHA5JJ.js.map +0 -1
  226. package/dist/chunk-NUJF2BA2.cjs +0 -2
  227. package/dist/chunk-NUJF2BA2.cjs.map +0 -1
  228. package/dist/chunk-PJWKQZHJ.cjs +0 -2
  229. package/dist/chunk-PJWKQZHJ.cjs.map +0 -1
  230. package/dist/chunk-UCRTI76K.js +0 -2
  231. package/dist/chunk-UCRTI76K.js.map +0 -1
  232. package/dist/chunk-YF2ZZY4W.js +0 -2
  233. package/dist/chunk-YF2ZZY4W.js.map +0 -1
  234. package/dist/chunk-ZNSIVYMA.cjs +0 -2
  235. package/dist/chunk-ZNSIVYMA.cjs.map +0 -1
  236. package/dist/chunk-ZVPN2HIY.cjs +0 -2
  237. package/dist/chunk-ZVPN2HIY.cjs.map +0 -1
  238. /package/dist/{chunk-HVGYQUXR.js.map → chunk-GXFGJ53T.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/chunk-TUAQU25Y.cjs","../src/components/context-menu.tsx"],"names":["ContextMenu","props","jsx","ContextMenuTrigger","ContextMenuGroup","ContextMenuSub","ContextMenuRadioGroup","ContextMenuSubTrigger","children","className","inset","jsxs","cn","ChevronRightIcon","ContextMenuSubContent","ContextMenuContent","ContextMenuItem","variant","ContextMenuCheckboxItem","checked","CheckIcon","ContextMenuRadioItem","DotIcon","ContextMenuLabel","ContextMenuSeparator","ContextMenuShortcut","ContextMenuArrow"],"mappings":"AAAA,mZAAwC,oHCEF,2CACe,+CAS5C,SADAA,CAAAA,CAAY,CAAE,GAAGC,CAAM,CA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U,wBAAA,CACT,GAAGR,CAAAA,CACN,CAEJ,CAMA,SAASwB,CAAAA,CAAoB,CAAE,SAAA,CAAAhB,CAAAA,CAAW,GAAGR,CAAM,CAAA,CAAwC,CACzF,OACEC,6BAAAA,MAAC,CAAA,CACC,SAAA,CAAWU,iCAAAA,8HACT,CACAH,CACF,CAAA,CACA,WAAA,CAAU,uBAAA,CACT,GAAGR,CAAAA,CACN,CAEJ,CAMA,SAASyB,CAAAA,CAAiB,CAAE,SAAA,CAAAjB,CAAAA,CAAW,GAAGR,CAAM,CAAA,CAAmE,CACjH,OACEC,6BAAAA,CAAsB,CAAA,KAAA,CAArB,CAA2B,SAAA,CAAWU,iCAAAA,cAAG,CAAgBH,CAAS,CAAA,CAAG,WAAA,CAAU,oBAAA,CAAsB,GAAGR,CAAAA,CAAO,CAEpH,CAAA,gOAAA","file":"/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/chunk-TUAQU25Y.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\n\nimport * as ContextMenuPrimitive from '@radix-ui/react-context-menu';\nimport { CheckIcon, ChevronRightIcon, DotIcon } from 'lucide-react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenu\n * -------------------------------------------------------------------------- */\n\nfunction ContextMenu({ ...props }: ComponentProps<typeof ContextMenuPrimitive.Root>): JSX.Element {\n return <ContextMenuPrimitive.Root data-slot=\"context-menu\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuTrigger\n * -------------------------------------------------------------------------- */\n\nfunction ContextMenuTrigger({ ...props }: ComponentProps<typeof ContextMenuPrimitive.Trigger>): JSX.Element {\n return <ContextMenuPrimitive.Trigger data-slot=\"context-menu-trigger\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuGroup\n * -------------------------------------------------------------------------- */\n\nfunction ContextMenuGroup({ ...props }: ComponentProps<typeof ContextMenuPrimitive.Group>): JSX.Element {\n return <ContextMenuPrimitive.Group data-slot=\"context-menu-group\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuSub\n * -------------------------------------------------------------------------- */\n\nfunction ContextMenuSub({ ...props }: ComponentProps<typeof ContextMenuPrimitive.Sub>): JSX.Element {\n return <ContextMenuPrimitive.Sub data-slot=\"context-menu-sub\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuRadioGroup\n * -------------------------------------------------------------------------- */\n\nfunction ContextMenuRadioGroup({ ...props }: ComponentProps<typeof ContextMenuPrimitive.RadioGroup>): JSX.Element {\n return <ContextMenuPrimitive.RadioGroup data-slot=\"context-menu-radio-group\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuSubTrigger\n * -------------------------------------------------------------------------- */\n\nfunction ContextMenuSubTrigger({\n children,\n className,\n inset,\n ...props\n}: ComponentProps<typeof ContextMenuPrimitive.SubTrigger> & {\n inset?: boolean;\n}): JSX.Element {\n return (\n <ContextMenuPrimitive.SubTrigger\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground data-inset:pl-8 outline-hidden flex cursor-default select-none items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0\",\n className,\n )}\n data-inset={inset}\n data-slot=\"context-menu-sub-trigger\"\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto size-4\" />\n </ContextMenuPrimitive.SubTrigger>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuSubContent\n * -------------------------------------------------------------------------- */\n\nfunction ContextMenuSubContent({\n className,\n ...props\n}: ComponentProps<typeof ContextMenuPrimitive.SubContent>): JSX.Element {\n return (\n <ContextMenuPrimitive.Portal>\n <ContextMenuPrimitive.SubContent\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 z-50 min-w-32 rounded-lg border p-1 shadow-lg',\n className,\n )}\n data-slot=\"context-menu-sub-content\"\n {...props}\n />\n </ContextMenuPrimitive.Portal>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuContent\n * -------------------------------------------------------------------------- */\n\nfunction ContextMenuContent({ className, ...props }: ComponentProps<typeof ContextMenuPrimitive.Content>): JSX.Element {\n return (\n <ContextMenuPrimitive.Portal>\n <ContextMenuPrimitive.Content\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 z-50 min-w-32 rounded-lg border p-1 shadow-lg',\n className,\n )}\n data-slot=\"context-menu-content\"\n {...props}\n />\n </ContextMenuPrimitive.Portal>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuItem\n * -------------------------------------------------------------------------- */\n\nfunction ContextMenuItem({\n className,\n inset,\n variant,\n ...props\n}: ComponentProps<typeof ContextMenuPrimitive.Item> & {\n inset?: boolean;\n variant?: 'default' | 'destructive';\n}): JSX.Element {\n return (\n <ContextMenuPrimitive.Item\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground data-inset:pl-8 outline-hidden group/context-menu-item data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:[&_svg:not([class*='text-'])]:text-destructive/80 [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default select-none items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0\",\n className,\n )}\n data-inset={inset}\n data-slot=\"context-menu-item\"\n data-variant={variant}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuCheckboxItem\n * -------------------------------------------------------------------------- */\n\nfunction ContextMenuCheckboxItem({\n checked,\n children,\n className,\n ...props\n}: ComponentProps<typeof ContextMenuPrimitive.CheckboxItem>): JSX.Element {\n return (\n <ContextMenuPrimitive.CheckboxItem\n checked={checked}\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground outline-hidden group/context-menu-item relative flex cursor-default select-none items-center gap-x-2 rounded-sm py-1.5 pl-8 pr-2 text-sm aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0\",\n className,\n )}\n data-slot=\"context-menu-checkbox-item\"\n {...props}\n >\n <span className=\"absolute left-2 flex items-center justify-center\">\n <ContextMenuPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </ContextMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </ContextMenuPrimitive.CheckboxItem>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuRadioItem\n * -------------------------------------------------------------------------- */\n\nfunction ContextMenuRadioItem({\n children,\n className,\n ...props\n}: ComponentProps<typeof ContextMenuPrimitive.RadioItem>): JSX.Element {\n return (\n <ContextMenuPrimitive.RadioItem\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground outline-hidden group/context-menu-item relative flex cursor-default select-none items-center gap-x-2 rounded-sm py-1.5 pl-8 pr-2 text-sm aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0\",\n className,\n )}\n data-slot=\"context-menu-radio-item\"\n {...props}\n >\n <span className=\"absolute left-2 flex items-center justify-center\">\n <ContextMenuPrimitive.ItemIndicator>\n <DotIcon className=\"size-4 fill-current\" />\n </ContextMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </ContextMenuPrimitive.RadioItem>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuLabel\n * -------------------------------------------------------------------------- */\n\nfunction ContextMenuLabel({\n className,\n inset,\n ...props\n}: ComponentProps<typeof ContextMenuPrimitive.Label> & {\n inset?: boolean;\n}): JSX.Element {\n return (\n <ContextMenuPrimitive.Label\n className={cn('data-inset:pl-8 flex items-center gap-x-2 px-2 py-1.5 text-sm font-semibold', className)}\n data-inset={inset}\n data-slot=\"context-menu-label\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuSeparator\n * -------------------------------------------------------------------------- */\n\nfunction ContextMenuSeparator({\n className,\n ...props\n}: ComponentProps<typeof ContextMenuPrimitive.Separator>): JSX.Element {\n return (\n <ContextMenuPrimitive.Separator\n className={cn('bg-border mx-2 my-1 h-px', className)}\n data-slot=\"context-menu-separator\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuShortcut\n * -------------------------------------------------------------------------- */\n\nfunction ContextMenuShortcut({ className, ...props }: ComponentProps<'span'>): JSX.Element {\n return (\n <span\n className={cn(\n 'text-muted-foreground group-data-[variant=destructive]/context-menu-item:text-destructive/80 ml-auto text-xs tracking-widest',\n className,\n )}\n data-slot=\"context-menu-shortcut\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuArrow\n * -------------------------------------------------------------------------- */\n\nfunction ContextMenuArrow({ className, ...props }: ComponentProps<typeof ContextMenuPrimitive.Arrow>): JSX.Element {\n return (\n <ContextMenuPrimitive.Arrow className={cn('fill-popover', className)} data-slot=\"context-menu-arrow\" {...props} />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n ContextMenu,\n ContextMenuArrow,\n ContextMenuCheckboxItem,\n ContextMenuContent,\n ContextMenuGroup,\n ContextMenuItem,\n ContextMenuLabel,\n ContextMenuRadioGroup,\n ContextMenuRadioItem,\n ContextMenuSeparator,\n ContextMenuShortcut,\n ContextMenuSub,\n ContextMenuSubContent,\n ContextMenuSubTrigger,\n ContextMenuTrigger,\n};\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-TUAQU25Y.cjs","../src/components/context-menu.tsx"],"names":["ContextMenu","props","jsx","ContextMenuTrigger","ContextMenuGroup","ContextMenuSub","ContextMenuRadioGroup","ContextMenuSubTrigger","children","className","inset","jsxs","cn","ChevronRightIcon","ContextMenuSubContent","ContextMenuContent","ContextMenuItem","variant","ContextMenuCheckboxItem","checked","CheckIcon","ContextMenuRadioItem","DotIcon","ContextMenuLabel","ContextMenuSeparator","ContextMenuShortcut","ContextMenuArrow"],"mappings":"AAAA,mZAAwC,oHCEF,2CACe,+CAS5C,SADAA,CAAAA,CAAY,CAAE,GAAGC,CAAM,CAAA,CAAkE,CAChG,OAAOC,6BAAAA,CAAsB,CAAA,IAAA,CAArB,CAA0B,WAAA,CAAU,cAAA,CAAgB,GAAGD,CAAAA,CAAO,CACxE,CAMA,SAASE,CAAAA,CAAmB,CAAE,GAAGF,CAAM,CAAA,CAAqE,CAC1G,OAAOC,6BAAAA,CAAsB,CAAA,OAAA,CAArB,CAA6B,WAAA,CAAU,sBAAA,CAAwB,GAAGD,CAAAA,CAAO,CACnF,CAMA,SAASG,CAAAA,CAAiB,CAAE,GAAGH,CAAM,CAAA,CAAmE,CACtG,OAAOC,6BAAAA,CAAsB,CAAA,KAAA,CAArB,CAA2B,WAAA,CAAU,oBAAA,CAAsB,GAAGD,CAAAA,CAAO,CAC/E,CAMA,SAASI,CAAAA,CAAe,CAAE,GAAGJ,CAAM,CAA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,CAAO,CAEpH,CAAA,gOAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-TUAQU25Y.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\n\nimport * as ContextMenuPrimitive from '@radix-ui/react-context-menu';\nimport { CheckIcon, ChevronRightIcon, DotIcon } from 'lucide-react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenu\n * -------------------------------------------------------------------------- */\n\nfunction ContextMenu({ ...props }: ComponentProps<typeof ContextMenuPrimitive.Root>): JSX.Element {\n return <ContextMenuPrimitive.Root data-slot=\"context-menu\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuTrigger\n * -------------------------------------------------------------------------- */\n\nfunction ContextMenuTrigger({ ...props }: ComponentProps<typeof ContextMenuPrimitive.Trigger>): JSX.Element {\n return <ContextMenuPrimitive.Trigger data-slot=\"context-menu-trigger\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuGroup\n * -------------------------------------------------------------------------- */\n\nfunction ContextMenuGroup({ ...props }: ComponentProps<typeof ContextMenuPrimitive.Group>): JSX.Element {\n return <ContextMenuPrimitive.Group data-slot=\"context-menu-group\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuSub\n * -------------------------------------------------------------------------- */\n\nfunction ContextMenuSub({ ...props }: ComponentProps<typeof ContextMenuPrimitive.Sub>): JSX.Element {\n return <ContextMenuPrimitive.Sub data-slot=\"context-menu-sub\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuRadioGroup\n * -------------------------------------------------------------------------- */\n\nfunction ContextMenuRadioGroup({ ...props }: ComponentProps<typeof ContextMenuPrimitive.RadioGroup>): JSX.Element {\n return <ContextMenuPrimitive.RadioGroup data-slot=\"context-menu-radio-group\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuSubTrigger\n * -------------------------------------------------------------------------- */\n\nfunction ContextMenuSubTrigger({\n children,\n className,\n inset,\n ...props\n}: ComponentProps<typeof ContextMenuPrimitive.SubTrigger> & {\n inset?: boolean;\n}): JSX.Element {\n return (\n <ContextMenuPrimitive.SubTrigger\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground data-inset:pl-8 outline-hidden flex cursor-default select-none items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0\",\n className,\n )}\n data-inset={inset}\n data-slot=\"context-menu-sub-trigger\"\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto size-4\" />\n </ContextMenuPrimitive.SubTrigger>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuSubContent\n * -------------------------------------------------------------------------- */\n\nfunction ContextMenuSubContent({\n className,\n ...props\n}: ComponentProps<typeof ContextMenuPrimitive.SubContent>): JSX.Element {\n return (\n <ContextMenuPrimitive.Portal>\n <ContextMenuPrimitive.SubContent\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 z-50 min-w-32 rounded-lg border p-1 shadow-lg',\n className,\n )}\n data-slot=\"context-menu-sub-content\"\n {...props}\n />\n </ContextMenuPrimitive.Portal>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuContent\n * -------------------------------------------------------------------------- */\n\nfunction ContextMenuContent({ className, ...props }: ComponentProps<typeof ContextMenuPrimitive.Content>): JSX.Element {\n return (\n <ContextMenuPrimitive.Portal>\n <ContextMenuPrimitive.Content\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 z-50 min-w-32 rounded-lg border p-1 shadow-lg',\n className,\n )}\n data-slot=\"context-menu-content\"\n {...props}\n />\n </ContextMenuPrimitive.Portal>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuItem\n * -------------------------------------------------------------------------- */\n\nfunction ContextMenuItem({\n className,\n inset,\n variant,\n ...props\n}: ComponentProps<typeof ContextMenuPrimitive.Item> & {\n inset?: boolean;\n variant?: 'default' | 'destructive';\n}): JSX.Element {\n return (\n <ContextMenuPrimitive.Item\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground data-inset:pl-8 outline-hidden group/context-menu-item data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:[&_svg:not([class*='text-'])]:text-destructive/80 [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default select-none items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0\",\n className,\n )}\n data-inset={inset}\n data-slot=\"context-menu-item\"\n data-variant={variant}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuCheckboxItem\n * -------------------------------------------------------------------------- */\n\nfunction ContextMenuCheckboxItem({\n checked,\n children,\n className,\n ...props\n}: ComponentProps<typeof ContextMenuPrimitive.CheckboxItem>): JSX.Element {\n return (\n <ContextMenuPrimitive.CheckboxItem\n checked={checked}\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground outline-hidden group/context-menu-item relative flex cursor-default select-none items-center gap-x-2 rounded-sm py-1.5 pl-8 pr-2 text-sm aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0\",\n className,\n )}\n data-slot=\"context-menu-checkbox-item\"\n {...props}\n >\n <span className=\"absolute left-2 flex items-center justify-center\">\n <ContextMenuPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </ContextMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </ContextMenuPrimitive.CheckboxItem>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuRadioItem\n * -------------------------------------------------------------------------- */\n\nfunction ContextMenuRadioItem({\n children,\n className,\n ...props\n}: ComponentProps<typeof ContextMenuPrimitive.RadioItem>): JSX.Element {\n return (\n <ContextMenuPrimitive.RadioItem\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground outline-hidden group/context-menu-item relative flex cursor-default select-none items-center gap-x-2 rounded-sm py-1.5 pl-8 pr-2 text-sm aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0\",\n className,\n )}\n data-slot=\"context-menu-radio-item\"\n {...props}\n >\n <span className=\"absolute left-2 flex items-center justify-center\">\n <ContextMenuPrimitive.ItemIndicator>\n <DotIcon className=\"size-4 fill-current\" />\n </ContextMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </ContextMenuPrimitive.RadioItem>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuLabel\n * -------------------------------------------------------------------------- */\n\nfunction ContextMenuLabel({\n className,\n inset,\n ...props\n}: ComponentProps<typeof ContextMenuPrimitive.Label> & {\n inset?: boolean;\n}): JSX.Element {\n return (\n <ContextMenuPrimitive.Label\n className={cn('data-inset:pl-8 flex items-center gap-x-2 px-2 py-1.5 text-sm font-semibold', className)}\n data-inset={inset}\n data-slot=\"context-menu-label\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuSeparator\n * -------------------------------------------------------------------------- */\n\nfunction ContextMenuSeparator({\n className,\n ...props\n}: ComponentProps<typeof ContextMenuPrimitive.Separator>): JSX.Element {\n return (\n <ContextMenuPrimitive.Separator\n className={cn('bg-border mx-2 my-1 h-px', className)}\n data-slot=\"context-menu-separator\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuShortcut\n * -------------------------------------------------------------------------- */\n\nfunction ContextMenuShortcut({ className, ...props }: ComponentProps<'span'>): JSX.Element {\n return (\n <span\n className={cn(\n 'text-muted-foreground group-data-[variant=destructive]/context-menu-item:text-destructive/80 ml-auto text-xs tracking-widest',\n className,\n )}\n data-slot=\"context-menu-shortcut\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuArrow\n * -------------------------------------------------------------------------- */\n\nfunction ContextMenuArrow({ className, ...props }: ComponentProps<typeof ContextMenuPrimitive.Arrow>): JSX.Element {\n return (\n <ContextMenuPrimitive.Arrow className={cn('fill-popover', className)} data-slot=\"context-menu-arrow\" {...props} />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n ContextMenu,\n ContextMenuArrow,\n ContextMenuCheckboxItem,\n ContextMenuContent,\n ContextMenuGroup,\n ContextMenuItem,\n ContextMenuLabel,\n ContextMenuRadioGroup,\n ContextMenuRadioItem,\n ContextMenuSeparator,\n ContextMenuShortcut,\n ContextMenuSub,\n ContextMenuSubContent,\n ContextMenuSubTrigger,\n ContextMenuTrigger,\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/chunk-UAS5UKTZ.cjs","../src/components/radio-group.tsx"],"names":["RadioGroup","className","props","jsx","cn","RadioGroupItem"],"mappings":"AAAA,mZAAwC,iHCEH,+CAS5B,SADAA,CAAAA,CAAW,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAiE,CACzG,OAAOC,6BAAAA,CAAqB,CAAA,IAAA,CAApB,CAAyB,SAAA,CAAWC,iCAAAA,YAAG,CAAcH,CAAS,CAAA,CAAG,WAAA,CAAU,aAAA,CAAe,GAAGC,CAAAA,CAAO,CAC9G,CAMA,SAASG,CAAAA,CAAe,CAAE,SAAA,CAAAJ,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAiE,CAC7G,OACEC,6BAAAA,CAAqB,CAAA,IAAA,CAApB,CACC,SAAA,CAAWC,iCAAAA,2oBACT,CACAH,CACF,CAAA,CACA,WAAA,CAAU,kBAAA,CACT,GAAGC,CAAAA,CAEJ,QAAA,CAAAC,6BAAAA,CAAqB,CAAA,SAAA,CAApB,CAA8B,SAAA,CAAU,mCAAA,CAAoC,WAAA,CAAU,uBAAA,CAAwB,CAAA,CACjH,CAEJ,CAAA,6BAAA","file":"/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/chunk-UAS5UKTZ.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\n\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: RadioGroup\n * -------------------------------------------------------------------------- */\n\nfunction RadioGroup({ className, ...props }: ComponentProps<typeof RadioGroupPrimitive.Root>): JSX.Element {\n return <RadioGroupPrimitive.Root className={cn('grid gap-2', className)} data-slot=\"radio-group\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: RadioGroupItem\n * -------------------------------------------------------------------------- */\n\nfunction RadioGroupItem({ className, ...props }: ComponentProps<typeof RadioGroupPrimitive.Item>): JSX.Element {\n return (\n <RadioGroupPrimitive.Item\n className={cn(\n 'border-input shadow-xs outline-hidden hover:not-disabled:not-aria-checked:border-ring/60 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-3 focus-visible:aria-checked:ring-primary/20 dark:focus-visible:aria-checked:ring-primary/40 aria-checked:border-primary aria-checked:bg-primary aria-checked:aria-invalid:bg-destructive aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 hover:not-disabled:not-aria-checked:aria-invalid:border-destructive/60 dark:bg-input/30 peer inline-flex size-4 shrink-0 items-center justify-center rounded-full border transition disabled:opacity-50',\n className,\n )}\n data-slot=\"radio-group-item\"\n {...props}\n >\n <RadioGroupPrimitive.Indicator className=\"bg-background size-1 rounded-full\" data-slot=\"radio-group-indicator\" />\n </RadioGroupPrimitive.Item>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { RadioGroup, RadioGroupItem };\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-UAS5UKTZ.cjs","../src/components/radio-group.tsx"],"names":["RadioGroup","className","props","jsx","cn","RadioGroupItem"],"mappings":"AAAA,mZAAwC,iHCEH,+CAS5B,SADAA,CAAAA,CAAW,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAiE,CACzG,OAAOC,6BAAAA,CAAqB,CAAA,IAAA,CAApB,CAAyB,SAAA,CAAWC,iCAAAA,YAAG,CAAcH,CAAS,CAAA,CAAG,WAAA,CAAU,aAAA,CAAe,GAAGC,CAAAA,CAAO,CAC9G,CAMA,SAASG,CAAAA,CAAe,CAAE,SAAA,CAAAJ,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAiE,CAC7G,OACEC,6BAAAA,CAAqB,CAAA,IAAA,CAApB,CACC,SAAA,CAAWC,iCAAAA,2oBACT,CACAH,CACF,CAAA,CACA,WAAA,CAAU,kBAAA,CACT,GAAGC,CAAAA,CAEJ,QAAA,CAAAC,6BAAAA,CAAqB,CAAA,SAAA,CAApB,CAA8B,SAAA,CAAU,mCAAA,CAAoC,WAAA,CAAU,uBAAA,CAAwB,CAAA,CACjH,CAEJ,CAAA,6BAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-UAS5UKTZ.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\n\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: RadioGroup\n * -------------------------------------------------------------------------- */\n\nfunction RadioGroup({ className, ...props }: ComponentProps<typeof RadioGroupPrimitive.Root>): JSX.Element {\n return <RadioGroupPrimitive.Root className={cn('grid gap-2', className)} data-slot=\"radio-group\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: RadioGroupItem\n * -------------------------------------------------------------------------- */\n\nfunction RadioGroupItem({ className, ...props }: ComponentProps<typeof RadioGroupPrimitive.Item>): JSX.Element {\n return (\n <RadioGroupPrimitive.Item\n className={cn(\n 'border-input shadow-xs outline-hidden hover:not-disabled:not-aria-checked:border-ring/60 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-3 focus-visible:aria-checked:ring-primary/20 dark:focus-visible:aria-checked:ring-primary/40 aria-checked:border-primary aria-checked:bg-primary aria-checked:aria-invalid:bg-destructive aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 hover:not-disabled:not-aria-checked:aria-invalid:border-destructive/60 dark:bg-input/30 peer inline-flex size-4 shrink-0 items-center justify-center rounded-full border transition disabled:opacity-50',\n className,\n )}\n data-slot=\"radio-group-item\"\n {...props}\n >\n <RadioGroupPrimitive.Indicator className=\"bg-background size-1 rounded-full\" data-slot=\"radio-group-indicator\" />\n </RadioGroupPrimitive.Item>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { RadioGroup, RadioGroupItem };\n"]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _jsxruntime = require('react/jsx-runtime');function l({className:t,...e}){return _jsxruntime.jsx.call(void 0, "div",{className:"relative w-full overflow-auto","data-slot":"table-cotainer",children:_jsxruntime.jsx.call(void 0, "table",{className:_chunkSMJEDCFPcjs.a.call(void 0, "w-full caption-bottom text-sm",t),"data-slot":"table",...e})})}function r({className:t,...e}){return _jsxruntime.jsx.call(void 0, "thead",{className:_chunkSMJEDCFPcjs.a.call(void 0, "*:has-aria-expanded:bg-transparent *:border-b",t),"data-slot":"table-header",...e})}function d({className:t,...e}){return _jsxruntime.jsx.call(void 0, "tbody",{className:_chunkSMJEDCFPcjs.a.call(void 0, "*:last-child:border-0",t),"data-slot":"table-body",...e})}function s({className:t,...e}){return _jsxruntime.jsx.call(void 0, "tfoot",{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-muted/50 *:has-aria-expanded:bg-transparent font-medium *:border-b-0 *:border-t",t),"data-slot":"table-footer",...e})}function m({className:t,...e}){return _jsxruntime.jsx.call(void 0, "tr",{className:_chunkSMJEDCFPcjs.a.call(void 0, "hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",t),"data-slot":"table-row",...e})}function b({className:t,...e}){return _jsxruntime.jsx.call(void 0, "th",{className:_chunkSMJEDCFPcjs.a.call(void 0, "p-2 text-left align-middle font-medium",t),"data-slot":"table-head",...e})}function p({className:t,...e}){return _jsxruntime.jsx.call(void 0, "td",{className:_chunkSMJEDCFPcjs.a.call(void 0, "p-2 align-middle",t),"data-slot":"table-cell",...e})}function i({className:t,...e}){return _jsxruntime.jsx.call(void 0, "caption",{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-muted-foreground mt-4 text-sm",t),"data-slot":"table-caption",...e})}exports.a = l; exports.b = r; exports.c = d; exports.d = s; exports.e = m; exports.f = b; exports.g = p; exports.h = i;
2
+ //# sourceMappingURL=chunk-US2PK6G5.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-US2PK6G5.cjs","../src/components/table.tsx"],"names":["Table","className","props","jsx","cn","TableHeader","TableBody","TableFooter","TableRow","TableHead","TableCell","TableCaption"],"mappings":"AAAA,iIAAmC,+CCW7B,SAHGA,CAAAA,CAAM,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAyC,CAC5E,OACEC,6BAAAA,KAAC,CAAA,CAAI,SAAA,CAAU,+BAAA,CAAgC,WAAA,CAAU,gBAAA,CACvD,QAAA,CAAAA,6BAAAA,OAAC,CAAA,CAAM,SAAA,CAAWC,iCAAAA,+BAAG,CAAiCH,CAAS,CAAA,CAAG,WAAA,CAAU,OAAA,CAAS,GAAGC,CAAAA,CAAO,CAAA,CACjG,CAEJ,CAMA,SAASG,CAAAA,CAAY,CAAE,SAAA,CAAAJ,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAyC,CAClF,OACEC,6BAAAA,OAAC,CAAA,CACC,SAAA,CAAWC,iCAAAA,+CAAG,CAAiDH,CAAS,CAAA,CACxE,WAAA,CAAU,cAAA,CACT,GAAGC,CAAAA,CACN,CAEJ,CAMA,SAASI,CAAAA,CAAU,CAAE,SAAA,CAAAL,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAyC,CAChF,OAAOC,6BAAAA,OAAC,CAAA,CAAM,SAAA,CAAWC,iCAAAA,uBAAG,CAAyBH,CAAS,CAAA,CAAG,WAAA,CAAU,YAAA,CAAc,GAAGC,CAAAA,CAAO,CACrG,CAMA,SAASK,CAAAA,CAAY,CAAE,SAAA,CAAAN,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAyC,CAClF,OACEC,6BAAAA,OAAC,CAAA,CACC,SAAA,CAAWC,iCAAAA,oFAAG,CAAsFH,CAAS,CAAA,CAC7G,WAAA,CAAU,cAAA,CACT,GAAGC,CAAAA,CACN,CAEJ,CAMA,SAASM,CAAAA,CAAS,CAAE,SAAA,CAAAP,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAsC,CAC5E,OACEC,6BAAAA,IAAC,CAAA,CACC,SAAA,CAAWC,iCAAAA,2GACT,CACAH,CACF,CAAA,CACA,WAAA,CAAU,WAAA,CACT,GAAGC,CAAAA,CACN,CAEJ,CAMA,SAASO,CAAAA,CAAU,CAAE,SAAA,CAAAR,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAsC,CAC7E,OAAOC,6BAAAA,IAAC,CAAA,CAAG,SAAA,CAAWC,iCAAAA,wCAAG,CAA0CH,CAAS,CAAA,CAAG,WAAA,CAAU,YAAA,CAAc,GAAGC,CAAAA,CAAO,CACnH,CAMA,SAASQ,CAAAA,CAAU,CAAE,SAAA,CAAAT,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAsC,CAC7E,OAAOC,6BAAAA,IAAC,CAAA,CAAG,SAAA,CAAWC,iCAAAA,kBAAG,CAAoBH,CAAS,CAAA,CAAG,WAAA,CAAU,YAAA,CAAc,GAAGC,CAAAA,CAAO,CAC7F,CAMA,SAASS,CAAAA,CAAa,CAAE,SAAA,CAAAV,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAA2C,CACrF,OACEC,6BAAAA,SAAC,CAAA,CAAQ,SAAA,CAAWC,iCAAAA,oCAAG,CAAsCH,CAAS,CAAA,CAAG,WAAA,CAAU,eAAA,CAAiB,GAAGC,CAAAA,CAAO,CAElH,CAAA,uHAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-US2PK6G5.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Table\n * -------------------------------------------------------------------------- */\n\nfunction Table({ className, ...props }: ComponentProps<'table'>): JSX.Element {\n return (\n <div className=\"relative w-full overflow-auto\" data-slot=\"table-cotainer\">\n <table className={cn('w-full caption-bottom text-sm', className)} data-slot=\"table\" {...props} />\n </div>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TableHeader\n * -------------------------------------------------------------------------- */\n\nfunction TableHeader({ className, ...props }: ComponentProps<'thead'>): JSX.Element {\n return (\n <thead\n className={cn('*:has-aria-expanded:bg-transparent *:border-b', className)}\n data-slot=\"table-header\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TableBody\n * -------------------------------------------------------------------------- */\n\nfunction TableBody({ className, ...props }: ComponentProps<'tbody'>): JSX.Element {\n return <tbody className={cn('*:last-child:border-0', className)} data-slot=\"table-body\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TableFooter\n * -------------------------------------------------------------------------- */\n\nfunction TableFooter({ className, ...props }: ComponentProps<'tfoot'>): JSX.Element {\n return (\n <tfoot\n className={cn('bg-muted/50 *:has-aria-expanded:bg-transparent font-medium *:border-b-0 *:border-t', className)}\n data-slot=\"table-footer\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TableRow\n * -------------------------------------------------------------------------- */\n\nfunction TableRow({ className, ...props }: ComponentProps<'tr'>): JSX.Element {\n return (\n <tr\n className={cn(\n 'hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors',\n className,\n )}\n data-slot=\"table-row\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TableHead\n * -------------------------------------------------------------------------- */\n\nfunction TableHead({ className, ...props }: ComponentProps<'th'>): JSX.Element {\n return <th className={cn('p-2 text-left align-middle font-medium', className)} data-slot=\"table-head\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TableCell\n * -------------------------------------------------------------------------- */\n\nfunction TableCell({ className, ...props }: ComponentProps<'td'>): JSX.Element {\n return <td className={cn('p-2 align-middle', className)} data-slot=\"table-cell\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TableCaption\n * -------------------------------------------------------------------------- */\n\nfunction TableCaption({ className, ...props }: ComponentProps<'caption'>): JSX.Element {\n return (\n <caption className={cn('text-muted-foreground mt-4 text-sm', className)} data-slot=\"table-caption\" {...props} />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/chunk-UYWVE5DL.cjs","../src/components/menubar.tsx"],"names":["Menubar","className","props","jsx","cn","MenubarMenu","MenubarGroup","MenubarSub","MenubarRadioGroup","MenubarTrigger","MenubarSubTrigger","children","inset","jsxs","ChevronRightIcon","MenubarSubContent","MenubarContent","align","alignOffset","sideOffset","MenubarItem","variant","MenubarCheckboxItem","checked","CheckIcon","MenubarRadioItem","DotIcon","MenubarLabel","MenubarSeparator","MenubarShortcut","MenubarArrow"],"mappings":"AAAA,mZAAwC,uGCEN,2CACmB,+CAUjD,SAFKA,CAAAA,CAAQ,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAA8D,CACnG,OACEC,6BAAAA,CAAkB,CAAA,IAAA,CAAjB,CACC,SAAA,CAAWC,iCAAAA,iEAAG,CAAmEH,CAAS,CAAA,CAC1F,WAAA,CAAU,SAAA,CACT,GAAGC,CAAAA,CACN,CAEJ,CAMA,SAASG,CAAAA,CAAY,CAAE,GAAGH,CAAM,CAAA,CAA8D,CAC5F,OAAOC,6BAAAA,CAAkB,CAAA,IAAA,CAAjB,CAAsB,WAAA,CAAU,cAAA,CAAgB,GAAGD,CAAAA,CAAO,CACpE,CAMA,SAASI,CAAAA,CAAa,CAAE,GAAGJ,CAAM,CAAA,CAA+D,CAC9F,OAAOC,6BAAAA,CAAkB,CAAA,KAAA,CAAjB,CAAuB,WAAA,CAAU,eAAA,CAAiB,GAAGD,CAAAA,CAAO,CACtE,CAMA,SAASK,CAAAA,CAAW,CAAE,GAAGL,CAAM,CAAA,CAA6D,CAC1F,OAAOC,6BAAAA,CAAkB,CAAA,GAAA,CAAjB,CAAqB,WAAA,CAAU,aAAA,CAAe,GAAG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BAAAA,MAAC,CAAA,CACC,SAAA,CAAWC,iCAAAA,yHACT,CACAH,CACF,CAAA,CACA,WAAA,CAAU,kBAAA,CACT,GAAGC,CAAAA,CACN,CAEJ,CAMA,SAAS4B,CAAAA,CAAa,CAAE,SAAA,CAAA7B,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAA+D,CACzG,OAAOC,6BAAAA,CAAkB,CAAA,KAAA,CAAjB,CAAuB,SAAA,CAAWC,iCAAAA,cAAG,CAAgBH,CAAS,CAAA,CAAG,WAAA,CAAU,eAAA,CAAiB,GAAGC,CAAAA,CAAO,CAChH,CAAA,+OAAA","file":"/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/chunk-UYWVE5DL.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\n\nimport * as MenubarPrimitive from '@radix-ui/react-menubar';\nimport { CheckIcon, ChevronRightIcon, DotIcon } from 'lucide-react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Menubar\n * -------------------------------------------------------------------------- */\n\nfunction Menubar({ className, ...props }: ComponentProps<typeof MenubarPrimitive.Root>): JSX.Element {\n return (\n <MenubarPrimitive.Root\n className={cn('bg-background flex items-center space-x-1 rounded-lg border p-1', className)}\n data-slot=\"menubar\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarMenu\n * -------------------------------------------------------------------------- */\n\nfunction MenubarMenu({ ...props }: ComponentProps<typeof MenubarPrimitive.Menu>): JSX.Element {\n return <MenubarPrimitive.Menu data-slot=\"menubar-menu\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarGroup\n * -------------------------------------------------------------------------- */\n\nfunction MenubarGroup({ ...props }: ComponentProps<typeof MenubarPrimitive.Group>): JSX.Element {\n return <MenubarPrimitive.Group data-slot=\"menubar-group\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarSub\n * -------------------------------------------------------------------------- */\n\nfunction MenubarSub({ ...props }: ComponentProps<typeof MenubarPrimitive.Sub>): JSX.Element {\n return <MenubarPrimitive.Sub data-slot=\"menubar-sub\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarRadioGroup\n * -------------------------------------------------------------------------- */\n\nfunction MenubarRadioGroup({ ...props }: ComponentProps<typeof MenubarPrimitive.RadioGroup>): JSX.Element {\n return <MenubarPrimitive.RadioGroup data-slot=\"menubar-radio-group\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarTrigger\n * -------------------------------------------------------------------------- */\n\nfunction MenubarTrigger({ className, ...props }: ComponentProps<typeof MenubarPrimitive.Trigger>): JSX.Element {\n return (\n <MenubarPrimitive.Trigger\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground outline-hidden flex select-none items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm font-medium',\n className,\n )}\n data-slot=\"menubar-trigger\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarSubTrigger\n * -------------------------------------------------------------------------- */\n\nfunction MenubarSubTrigger({\n children,\n className,\n inset,\n ...props\n}: ComponentProps<typeof MenubarPrimitive.SubTrigger> & {\n inset?: boolean;\n}): JSX.Element {\n return (\n <MenubarPrimitive.SubTrigger\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground data-inset:pl-8 outline-hidden flex cursor-default select-none items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm',\n className,\n )}\n data-inset={inset}\n data-slot=\"menubar-sub-trigger\"\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto size-4\" />\n </MenubarPrimitive.SubTrigger>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarSubContent\n * -------------------------------------------------------------------------- */\n\nfunction MenubarSubContent({ className, ...props }: ComponentProps<typeof MenubarPrimitive.SubContent>): JSX.Element {\n return (\n <MenubarPrimitive.Portal>\n <MenubarPrimitive.SubContent\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 z-50 min-w-32 rounded-lg border p-1 shadow-lg',\n className,\n )}\n data-slot=\"menubar-sub-content\"\n {...props}\n />\n </MenubarPrimitive.Portal>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarContent\n * -------------------------------------------------------------------------- */\n\nfunction MenubarContent({\n align = 'start',\n alignOffset = -4,\n className,\n sideOffset = 4,\n ...props\n}: ComponentProps<typeof MenubarPrimitive.Content>): JSX.Element {\n return (\n <MenubarPrimitive.Portal>\n <MenubarPrimitive.Content\n align={align}\n alignOffset={alignOffset}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 z-50 min-w-32 rounded-lg border p-1 shadow-lg',\n className,\n )}\n data-slot=\"menubar-content\"\n sideOffset={sideOffset}\n {...props}\n />\n </MenubarPrimitive.Portal>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarItem\n * -------------------------------------------------------------------------- */\n\nfunction MenubarItem({\n className,\n inset,\n variant,\n ...props\n}: ComponentProps<typeof MenubarPrimitive.Item> & {\n inset?: boolean;\n variant?: 'default' | 'destructive';\n}): JSX.Element {\n return (\n <MenubarPrimitive.Item\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground data-inset:pl-8 outline-hidden group/menubar-item data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:[&_svg:not([class*='text-'])]:text-destructive/80 [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default select-none items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0\",\n className,\n )}\n data-inset={inset}\n data-slot=\"menubar-item\"\n data-variant={variant}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarCheckboxItem\n * -------------------------------------------------------------------------- */\n\nfunction MenubarCheckboxItem({\n checked,\n children,\n className,\n ...props\n}: ComponentProps<typeof MenubarPrimitive.CheckboxItem>): JSX.Element {\n return (\n <MenubarPrimitive.CheckboxItem\n checked={checked}\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground outline-hidden group/menubar-item relative flex cursor-default select-none items-center gap-x-2 rounded-sm py-1.5 pl-8 pr-2 text-sm aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0\",\n className,\n )}\n data-slot=\"menubar-checkbox-item\"\n {...props}\n >\n <span className=\"absolute left-2 flex items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.CheckboxItem>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarRadioItem\n * -------------------------------------------------------------------------- */\n\nfunction MenubarRadioItem({\n children,\n className,\n ...props\n}: ComponentProps<typeof MenubarPrimitive.RadioItem>): JSX.Element {\n return (\n <MenubarPrimitive.RadioItem\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground outline-hidden group/menubar-item relative flex cursor-default select-none items-center gap-x-2 rounded-sm py-1.5 pl-8 pr-2 text-sm aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0\",\n className,\n )}\n data-slot=\"menubar-radio-item\"\n {...props}\n >\n <span className=\"absolute left-2 flex items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <DotIcon className=\"size-4 fill-current\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.RadioItem>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarLabel\n * -------------------------------------------------------------------------- */\n\nfunction MenubarLabel({\n className,\n inset,\n ...props\n}: ComponentProps<typeof MenubarPrimitive.Label> & {\n inset?: boolean;\n}): JSX.Element {\n return (\n <MenubarPrimitive.Label\n className={cn('data-inset:pl-8 flex items-center gap-x-2 px-2 py-1.5 text-sm font-semibold', className)}\n data-inset={inset}\n data-slot=\"menubar-label\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarSeparator\n * -------------------------------------------------------------------------- */\n\nfunction MenubarSeparator({ className, ...props }: ComponentProps<typeof MenubarPrimitive.Separator>): JSX.Element {\n return (\n <MenubarPrimitive.Separator\n className={cn('bg-border mx-2 my-1 h-px', className)}\n data-slot=\"menubar-separator\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarShortcut\n * -------------------------------------------------------------------------- */\n\nfunction MenubarShortcut({ className, ...props }: ComponentProps<'span'>): JSX.Element {\n return (\n <span\n className={cn(\n 'text-muted-foreground group-data-[variant=destructive]/menubar-item:text-destructive/80 ml-auto text-xs tracking-widest',\n className,\n )}\n data-slot=\"menubar-shortcut\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarArrow\n * -------------------------------------------------------------------------- */\n\nfunction MenubarArrow({ className, ...props }: ComponentProps<typeof MenubarPrimitive.Arrow>): JSX.Element {\n return <MenubarPrimitive.Arrow className={cn('fill-popover', className)} data-slot=\"menubar-arrow\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Menubar,\n MenubarArrow,\n MenubarCheckboxItem,\n MenubarContent,\n MenubarGroup,\n MenubarItem,\n MenubarLabel,\n MenubarMenu,\n MenubarRadioGroup,\n MenubarRadioItem,\n MenubarSeparator,\n MenubarShortcut,\n MenubarSub,\n MenubarSubContent,\n MenubarSubTrigger,\n MenubarTrigger,\n};\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-UYWVE5DL.cjs","../src/components/menubar.tsx"],"names":["Menubar","className","props","jsx","cn","MenubarMenu","MenubarGroup","MenubarSub","MenubarRadioGroup","MenubarTrigger","MenubarSubTrigger","children","inset","jsxs","ChevronRightIcon","MenubarSubContent","MenubarContent","align","alignOffset","sideOffset","MenubarItem","variant","MenubarCheckboxItem","checked","CheckIcon","MenubarRadioItem","DotIcon","MenubarLabel","MenubarSeparator","MenubarShortcut","MenubarArrow"],"mappings":"AAAA,mZAAwC,uGCEN,2CACmB,+CAUjD,SAFKA,CAAAA,CAAQ,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAA8D,CACnG,OACEC,6BAAAA,CAAkB,CAAA,IAAA,CAAjB,CACC,SAAA,CAAWC,iCAAAA,iEAAG,CAAmEH,CAAS,CAAA,CAC1F,WAAA,CAAU,SAAA,CACT,GAAGC,CAAAA,CACN,CAEJ,CAMA,SAASG,CAAAA,CAAY,CAAE,GAAGH,CAAM,CAAA,CAA8D,CAC5F,OAAOC,6BAAAA,CAAkB,CAAA,IAAA,CAAjB,CAAsB,WAAA,CAAU,cAAA,CAAgB,GAAGD,CAAAA,CAAO,CACpE,CAMA,SAASI,CAAAA,CAAa,CAAE,GAAGJ,CAAM,CAAA,CAA+D,CAC9F,OAAOC,6BAAAA,CAAkB,CAAA,K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,CACC,SAAA,CAAWC,iCAAAA,0BAAG,CAA4BH,CAAS,CAAA,CACnD,WAAA,CAAU,mBAAA,CACT,GAAGC,CAAAA,CACN,CAEJ,CAMA,SAAS2B,CAAAA,CAAgB,CAAE,SAAA,CAAA5B,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAwC,CACrF,OACEC,6BAAAA,MAAC,CAAA,CACC,SAAA,CAAWC,iCAAAA,yHACT,CACAH,CACF,CAAA,CACA,WAAA,CAAU,kBAAA,CACT,GAAGC,CAAAA,CACN,CAEJ,CAMA,SAAS4B,CAAAA,CAAa,CAAE,SAAA,CAAA7B,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAA+D,CACzG,OAAOC,6BAAAA,CAAkB,CAAA,KAAA,CAAjB,CAAuB,SAAA,CAAWC,iCAAAA,cAAG,CAAgBH,CAAS,CAAA,CAAG,WAAA,CAAU,eAAA,CAAiB,GAAGC,CAAAA,CAAO,CAChH,CAAA,+OAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-UYWVE5DL.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\n\nimport * as MenubarPrimitive from '@radix-ui/react-menubar';\nimport { CheckIcon, ChevronRightIcon, DotIcon } from 'lucide-react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Menubar\n * -------------------------------------------------------------------------- */\n\nfunction Menubar({ className, ...props }: ComponentProps<typeof MenubarPrimitive.Root>): JSX.Element {\n return (\n <MenubarPrimitive.Root\n className={cn('bg-background flex items-center space-x-1 rounded-lg border p-1', className)}\n data-slot=\"menubar\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarMenu\n * -------------------------------------------------------------------------- */\n\nfunction MenubarMenu({ ...props }: ComponentProps<typeof MenubarPrimitive.Menu>): JSX.Element {\n return <MenubarPrimitive.Menu data-slot=\"menubar-menu\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarGroup\n * -------------------------------------------------------------------------- */\n\nfunction MenubarGroup({ ...props }: ComponentProps<typeof MenubarPrimitive.Group>): JSX.Element {\n return <MenubarPrimitive.Group data-slot=\"menubar-group\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarSub\n * -------------------------------------------------------------------------- */\n\nfunction MenubarSub({ ...props }: ComponentProps<typeof MenubarPrimitive.Sub>): JSX.Element {\n return <MenubarPrimitive.Sub data-slot=\"menubar-sub\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarRadioGroup\n * -------------------------------------------------------------------------- */\n\nfunction MenubarRadioGroup({ ...props }: ComponentProps<typeof MenubarPrimitive.RadioGroup>): JSX.Element {\n return <MenubarPrimitive.RadioGroup data-slot=\"menubar-radio-group\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarTrigger\n * -------------------------------------------------------------------------- */\n\nfunction MenubarTrigger({ className, ...props }: ComponentProps<typeof MenubarPrimitive.Trigger>): JSX.Element {\n return (\n <MenubarPrimitive.Trigger\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground outline-hidden flex select-none items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm font-medium',\n className,\n )}\n data-slot=\"menubar-trigger\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarSubTrigger\n * -------------------------------------------------------------------------- */\n\nfunction MenubarSubTrigger({\n children,\n className,\n inset,\n ...props\n}: ComponentProps<typeof MenubarPrimitive.SubTrigger> & {\n inset?: boolean;\n}): JSX.Element {\n return (\n <MenubarPrimitive.SubTrigger\n className={cn(\n 'focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground data-inset:pl-8 outline-hidden flex cursor-default select-none items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm',\n className,\n )}\n data-inset={inset}\n data-slot=\"menubar-sub-trigger\"\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto size-4\" />\n </MenubarPrimitive.SubTrigger>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarSubContent\n * -------------------------------------------------------------------------- */\n\nfunction MenubarSubContent({ className, ...props }: ComponentProps<typeof MenubarPrimitive.SubContent>): JSX.Element {\n return (\n <MenubarPrimitive.Portal>\n <MenubarPrimitive.SubContent\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 z-50 min-w-32 rounded-lg border p-1 shadow-lg',\n className,\n )}\n data-slot=\"menubar-sub-content\"\n {...props}\n />\n </MenubarPrimitive.Portal>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarContent\n * -------------------------------------------------------------------------- */\n\nfunction MenubarContent({\n align = 'start',\n alignOffset = -4,\n className,\n sideOffset = 4,\n ...props\n}: ComponentProps<typeof MenubarPrimitive.Content>): JSX.Element {\n return (\n <MenubarPrimitive.Portal>\n <MenubarPrimitive.Content\n align={align}\n alignOffset={alignOffset}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 z-50 min-w-32 rounded-lg border p-1 shadow-lg',\n className,\n )}\n data-slot=\"menubar-content\"\n sideOffset={sideOffset}\n {...props}\n />\n </MenubarPrimitive.Portal>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarItem\n * -------------------------------------------------------------------------- */\n\nfunction MenubarItem({\n className,\n inset,\n variant,\n ...props\n}: ComponentProps<typeof MenubarPrimitive.Item> & {\n inset?: boolean;\n variant?: 'default' | 'destructive';\n}): JSX.Element {\n return (\n <MenubarPrimitive.Item\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground data-inset:pl-8 outline-hidden group/menubar-item data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:[&_svg:not([class*='text-'])]:text-destructive/80 [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default select-none items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0\",\n className,\n )}\n data-inset={inset}\n data-slot=\"menubar-item\"\n data-variant={variant}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarCheckboxItem\n * -------------------------------------------------------------------------- */\n\nfunction MenubarCheckboxItem({\n checked,\n children,\n className,\n ...props\n}: ComponentProps<typeof MenubarPrimitive.CheckboxItem>): JSX.Element {\n return (\n <MenubarPrimitive.CheckboxItem\n checked={checked}\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground outline-hidden group/menubar-item relative flex cursor-default select-none items-center gap-x-2 rounded-sm py-1.5 pl-8 pr-2 text-sm aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0\",\n className,\n )}\n data-slot=\"menubar-checkbox-item\"\n {...props}\n >\n <span className=\"absolute left-2 flex items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.CheckboxItem>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarRadioItem\n * -------------------------------------------------------------------------- */\n\nfunction MenubarRadioItem({\n children,\n className,\n ...props\n}: ComponentProps<typeof MenubarPrimitive.RadioItem>): JSX.Element {\n return (\n <MenubarPrimitive.RadioItem\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground outline-hidden group/menubar-item relative flex cursor-default select-none items-center gap-x-2 rounded-sm py-1.5 pl-8 pr-2 text-sm aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0\",\n className,\n )}\n data-slot=\"menubar-radio-item\"\n {...props}\n >\n <span className=\"absolute left-2 flex items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <DotIcon className=\"size-4 fill-current\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.RadioItem>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarLabel\n * -------------------------------------------------------------------------- */\n\nfunction MenubarLabel({\n className,\n inset,\n ...props\n}: ComponentProps<typeof MenubarPrimitive.Label> & {\n inset?: boolean;\n}): JSX.Element {\n return (\n <MenubarPrimitive.Label\n className={cn('data-inset:pl-8 flex items-center gap-x-2 px-2 py-1.5 text-sm font-semibold', className)}\n data-inset={inset}\n data-slot=\"menubar-label\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarSeparator\n * -------------------------------------------------------------------------- */\n\nfunction MenubarSeparator({ className, ...props }: ComponentProps<typeof MenubarPrimitive.Separator>): JSX.Element {\n return (\n <MenubarPrimitive.Separator\n className={cn('bg-border mx-2 my-1 h-px', className)}\n data-slot=\"menubar-separator\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarShortcut\n * -------------------------------------------------------------------------- */\n\nfunction MenubarShortcut({ className, ...props }: ComponentProps<'span'>): JSX.Element {\n return (\n <span\n className={cn(\n 'text-muted-foreground group-data-[variant=destructive]/menubar-item:text-destructive/80 ml-auto text-xs tracking-widest',\n className,\n )}\n data-slot=\"menubar-shortcut\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: MenubarArrow\n * -------------------------------------------------------------------------- */\n\nfunction MenubarArrow({ className, ...props }: ComponentProps<typeof MenubarPrimitive.Arrow>): JSX.Element {\n return <MenubarPrimitive.Arrow className={cn('fill-popover', className)} data-slot=\"menubar-arrow\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Menubar,\n MenubarArrow,\n MenubarCheckboxItem,\n MenubarContent,\n MenubarGroup,\n MenubarItem,\n MenubarLabel,\n MenubarMenu,\n MenubarRadioGroup,\n MenubarRadioItem,\n MenubarSeparator,\n MenubarShortcut,\n MenubarSub,\n MenubarSubContent,\n MenubarSubTrigger,\n MenubarTrigger,\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/heading.tsx"],"names":["Heading","Tag","asChild","props","jsx","Slot"],"mappings":"AAEA,0HAAqB,+CAgBZ,SAVAA,CAAAA,CAAQ,CACf,EAAA,CAAIC,CAAAA,CAAM,IAAA,CACV,OAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAGgB,CAGd,OAAOC,6BAAAA,CAFWF,CAAUG,eAAAA,CAAOJ,CAAAA,CAE3B,CAAU,WAAA,CAAU,SAAA,CAAW,GAAGE,CAAAA,CAAO,CACnD,CAAA,cAAA","file":"/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/chunk-WOGISN3L.cjs","sourcesContent":["import type { ComponentProps, JSX } from 'react';\n\nimport { Slot } from '@radix-ui/react-slot';\n\n/* -----------------------------------------------------------------------------\n * Component: Heading\n * -------------------------------------------------------------------------- */\n\nfunction Heading({\n as: Tag = 'h1',\n asChild,\n ...props\n}: ComponentProps<'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'> & {\n as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';\n asChild?: boolean;\n}): JSX.Element {\n const Component = asChild ? Slot : Tag;\n\n return <Component data-slot=\"heading\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Heading };\n"]}
1
+ {"version":3,"sources":["../src/components/heading.tsx"],"names":["Heading","Tag","asChild","props","jsx","Slot"],"mappings":"AAEA,0HAAqB,+CAgBZ,SAVAA,CAAAA,CAAQ,CACf,EAAA,CAAIC,CAAAA,CAAM,IAAA,CACV,OAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAGgB,CAGd,OAAOC,6BAAAA,CAFWF,CAAUG,eAAAA,CAAOJ,CAAAA,CAE3B,CAAU,WAAA,CAAU,SAAA,CAAW,GAAGE,CAAAA,CAAO,CACnD,CAAA,cAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-WOGISN3L.cjs","sourcesContent":["import type { ComponentProps, JSX } from 'react';\n\nimport { Slot } from '@radix-ui/react-slot';\n\n/* -----------------------------------------------------------------------------\n * Component: Heading\n * -------------------------------------------------------------------------- */\n\nfunction Heading({\n as: Tag = 'h1',\n asChild,\n ...props\n}: ComponentProps<'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'> & {\n as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';\n asChild?: boolean;\n}): JSX.Element {\n const Component = asChild ? Slot : Tag;\n\n return <Component data-slot=\"heading\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Heading };\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/chunk-X5CR4RIL.cjs","../src/components/skeleton.tsx"],"names":["Skeleton","className","props","jsx","cn"],"mappings":"AAAA,iIAAwC,+CCS/B,SADAA,CAAAA,CAAS,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAuC,CAC7E,OAAOC,6BAAAA,KAAC,CAAA,CAAI,SAAA,CAAWC,iCAAAA,mCAAG,CAAqCH,CAAS,CAAA,CAAG,WAAA,CAAU,UAAA,CAAY,GAAGC,CAAAA,CAAO,CAC7G,CAAA,cAAA","file":"/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/chunk-X5CR4RIL.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Skeleton\n * -------------------------------------------------------------------------- */\n\nfunction Skeleton({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return <div className={cn('bg-muted animate-pulse rounded-lg', className)} data-slot=\"skeleton\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Skeleton };\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-X5CR4RIL.cjs","../src/components/skeleton.tsx"],"names":["Skeleton","className","props","jsx","cn"],"mappings":"AAAA,iIAAwC,+CCS/B,SADAA,CAAAA,CAAS,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAuC,CAC7E,OAAOC,6BAAAA,KAAC,CAAA,CAAI,SAAA,CAAWC,iCAAAA,mCAAG,CAAqCH,CAAS,CAAA,CAAG,WAAA,CAAU,UAAA,CAAY,GAAGC,CAAAA,CAAO,CAC7G,CAAA,cAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-X5CR4RIL.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Skeleton\n * -------------------------------------------------------------------------- */\n\nfunction Skeleton({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return <div className={cn('bg-muted animate-pulse rounded-lg', className)} data-slot=\"skeleton\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Skeleton };\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/strong.tsx"],"names":["Strong","asChild","props","jsx","Slot"],"mappings":"AAEA,0HAAqB,+CAcZ,SARAA,CAAAA,CAAO,CACd,OAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAEgB,CAGd,OAAOC,6BAAAA,CAFWF,CAAUG,eAAAA,CAAO,QAAA,CAE3B,CAAU,WAAA,CAAU,QAAA,CAAU,GAAGF,CAAAA,CAAO,CAClD,CAAA,cAAA","file":"/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/chunk-XO4K654G.cjs","sourcesContent":["import type { ComponentProps, JSX } from 'react';\n\nimport { Slot } from '@radix-ui/react-slot';\n\n/* -----------------------------------------------------------------------------\n * Component: Strong\n * -------------------------------------------------------------------------- */\n\nfunction Strong({\n asChild,\n ...props\n}: ComponentProps<'strong'> & {\n asChild?: boolean;\n}): JSX.Element {\n const Component = asChild ? Slot : 'strong';\n\n return <Component data-slot=\"strong\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Strong };\n"]}
1
+ {"version":3,"sources":["../src/components/strong.tsx"],"names":["Strong","asChild","props","jsx","Slot"],"mappings":"AAEA,0HAAqB,+CAcZ,SARAA,CAAAA,CAAO,CACd,OAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAEgB,CAGd,OAAOC,6BAAAA,CAFWF,CAAUG,eAAAA,CAAO,QAAA,CAE3B,CAAU,WAAA,CAAU,QAAA,CAAU,GAAGF,CAAAA,CAAO,CAClD,CAAA,cAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-XO4K654G.cjs","sourcesContent":["import type { ComponentProps, JSX } from 'react';\n\nimport { Slot } from '@radix-ui/react-slot';\n\n/* -----------------------------------------------------------------------------\n * Component: Strong\n * -------------------------------------------------------------------------- */\n\nfunction Strong({\n asChild,\n ...props\n}: ComponentProps<'strong'> & {\n asChild?: boolean;\n}): JSX.Element {\n const Component = asChild ? Slot : 'strong';\n\n return <Component data-slot=\"strong\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Strong };\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/chunk-XXUOW3ID.cjs","../src/components/spinner.tsx"],"names":["SPINNER_COUNT","Spinner","children","className","loading","props","spinner","jsx","cn","_","i"],"mappings":"AAAA,iIAAwC,sECET,+CAyBvB,IAjBFA,CAAAA,CAAgB,CAAA,CAEtB,SAASC,CAAAA,CAAQ,CACf,QAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CAAU,CAAA,CAAA,CACV,GAAGC,CACL,CAAA,CAEc,CACZ,EAAA,CAAI,CAACD,CAAAA,CACH,OAAOF,CAAAA,CAGT,IAAMI,CAAAA,CACJC,6BAAAA,MAAC,CAAA,CAAK,SAAA,CAAWC,iCAAAA,6DAAG,CAA+DL,CAAS,CAAA,CAAI,GAAGE,CAAAA,CAChG,QAAA,CAAA,KAAA,CAAM,IAAA,CAAK,CAAE,MAAA,CAAQL,CAAc,CAAA,CAAG,CAACS,CAAAA,CAAGC,CAAAA,CAAAA,EACzCH,6BAAAA,MAAC,CAAA,CAEC,SAAA,CAAWC,iCAAAA,wRAEX,CAAA,CACA,KAAA,CACE,CACE,iBAAA,CAAmB,CAAA,CAAA,EAAA,CAAA,CAAMR,CAAAA,CAAgBU,CAAAA,CAAAA,CAAK,GAAA,CAAA,CAAK,QAAA,CAAS,CAAC,CAAA,EAAA,CAAA,CAC7D,oBAAA,CAAsB,CAAA,EAAA","file":"/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/chunk-XXUOW3ID.cjs","sourcesContent":[null,"import type { ComponentProps, CSSProperties, ReactNode } from 'react';\n\nimport { VisuallyHidden } from '@radix-ui/react-visually-hidden';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Spinner\n * -------------------------------------------------------------------------- */\n\nconst SPINNER_COUNT = 8;\n\nfunction Spinner({\n children,\n className,\n loading = true,\n ...props\n}: ComponentProps<'span'> & {\n loading?: boolean;\n}): ReactNode {\n if (!loading) {\n return children;\n }\n\n const spinner = (\n <span className={cn('relative flex size-4 items-center justify-center opacity-60', className)} {...props}>\n {Array.from({ length: SPINNER_COUNT }, (_, i) => (\n <span\n key={i}\n className={cn(\n 'rotate-(--spinner-rotate) before:animate-out before:fade-out-25 before:animation-repeat-infinite before:animation-delay-(--spinner-delay) before:animation-duration-(--spinner-duration) absolute h-full before:block before:h-1/3 before:w-full before:rounded-full before:bg-current',\n )}\n style={\n {\n '--spinner-delay': `-${((SPINNER_COUNT - i) * 100).toString()}ms`,\n '--spinner-duration': `${(SPINNER_COUNT * 100).toString()}ms`,\n '--spinner-rotate': `${((360 / SPINNER_COUNT) * i).toString()}deg`,\n width: `${(100 / SPINNER_COUNT).toString()}%`,\n } as CSSProperties\n }\n />\n ))}\n </span>\n );\n\n if (children === undefined) {\n return spinner;\n }\n\n return (\n <span className=\"relative\">\n <span aria-hidden className=\"invisible contents\">\n {children}\n </span>\n <VisuallyHidden>{children}</VisuallyHidden>\n <span className=\"absolute inset-0 flex items-center justify-center\">{spinner}</span>\n </span>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Spinner };\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-XXUOW3ID.cjs","../src/components/spinner.tsx"],"names":["SPINNER_COUNT","Spinner","children","className","loading","props","spinner","jsx","cn","_","i"],"mappings":"AAAA,iIAAwC,sECET,+CAyBvB,IAjBFA,CAAAA,CAAgB,CAAA,CAEtB,SAASC,CAAAA,CAAQ,CACf,QAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CAAU,CAAA,CAAA,CACV,GAAGC,CACL,CAAA,CAEc,CACZ,EAAA,CAAI,CAACD,CAAAA,CACH,OAAOF,CAAAA,CAGT,IAAMI,CAAAA,CACJC,6BAAAA,MAAC,CAAA,CAAK,SAAA,CAAWC,iCAAAA,6DAAG,CAA+DL,CAAS,CAAA,CAAI,GAAGE,CAAAA,CAChG,QAAA,CAAA,KAAA,CAAM,IAAA,CAAK,CAAE,MAAA,CAAQL,CAAc,CAAA,CAAG,CAACS,CAAAA,CAAGC,CAAAA,CAAAA,EACzCH,6BAAAA,MAAC,CAAA,CAEC,SAAA,CAAWC,iCAAAA,wRAEX,CAAA,CACA,KAAA,CACE,CACE,iBAAA,CAAmB,CAAA,CAAA,EAAA,CAAA,CAAMR,CAAAA,CAAgBU,CAAAA,CAAAA,CAAK,GAAA,CAAA,CAAK,QAAA,CAAS,CAAC,CAAA,EAAA,CAAA,CAC7D,oBAAA,CAAsB,CAAA,EAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-XXUOW3ID.cjs","sourcesContent":[null,"import type { ComponentProps, CSSProperties, ReactNode } from 'react';\n\nimport { VisuallyHidden } from '@radix-ui/react-visually-hidden';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Spinner\n * -------------------------------------------------------------------------- */\n\nconst SPINNER_COUNT = 8;\n\nfunction Spinner({\n children,\n className,\n loading = true,\n ...props\n}: ComponentProps<'span'> & {\n loading?: boolean;\n}): ReactNode {\n if (!loading) {\n return children;\n }\n\n const spinner = (\n <span className={cn('relative flex size-4 items-center justify-center opacity-60', className)} {...props}>\n {Array.from({ length: SPINNER_COUNT }, (_, i) => (\n <span\n key={i}\n className={cn(\n 'rotate-(--spinner-rotate) before:animate-out before:fade-out-25 before:animation-repeat-infinite before:animation-delay-(--spinner-delay) before:animation-duration-(--spinner-duration) absolute h-full before:block before:h-1/3 before:w-full before:rounded-full before:bg-current',\n )}\n style={\n {\n '--spinner-delay': `-${((SPINNER_COUNT - i) * 100).toString()}ms`,\n '--spinner-duration': `${(SPINNER_COUNT * 100).toString()}ms`,\n '--spinner-rotate': `${((360 / SPINNER_COUNT) * i).toString()}deg`,\n width: `${(100 / SPINNER_COUNT).toString()}%`,\n } as CSSProperties\n }\n />\n ))}\n </span>\n );\n\n if (children === undefined) {\n return spinner;\n }\n\n return (\n <span className=\"relative\">\n <span aria-hidden className=\"invisible contents\">\n {children}\n </span>\n <VisuallyHidden>{children}</VisuallyHidden>\n <span className=\"absolute inset-0 flex items-center justify-center\">{spinner}</span>\n </span>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Spinner };\n"]}
@@ -0,0 +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; } }var _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _reacttabs = require('@radix-ui/react-tabs'); var t = _interopRequireWildcard(_reacttabs);var _jsxruntime = require('react/jsx-runtime');function a({...e}){return _jsxruntime.jsx.call(void 0, t.Root,{"data-slot":"tabs",...e})}function s({className:e,...i}){return _jsxruntime.jsx.call(void 0, t.List,{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-muted text-muted-foreground inline-flex items-center justify-center gap-1 rounded-xl px-1 py-1",e),"data-slot":"tabs-list",...i})}function d({className:e,...i}){return _jsxruntime.jsx.call(void 0, t.Trigger,{className:_chunkSMJEDCFPcjs.a.call(void 0, "data-[state=active]:bg-background dark:data-[state=active]:bg-input/50 text-foreground dark:text-muted-foreground focus-visible:ring-ring/50 focus-visible:ring-3 dark:outline-ring not-dark:outline-hidden dark:data-[state=active]:text-foreground inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-lg px-2 py-1.5 text-sm font-medium transition disabled:opacity-50 data-[state=active]:shadow-sm dark:-outline-offset-1 dark:data-[state=active]:outline-1 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0",e),"data-slot":"tabs-trigger",...i})}function m({className:e,...i}){return _jsxruntime.jsx.call(void 0, t.Content,{className:_chunkSMJEDCFPcjs.a.call(void 0, "outline-ring ring-ring/50 mt-2 rounded-xl focus-visible:outline-1 focus-visible:ring-4",e),"data-slot":"tabs-content",...i})}exports.a = a; exports.b = s; exports.c = d; exports.d = m;
2
+ //# sourceMappingURL=chunk-Y3I5OCGY.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-Y3I5OCGY.cjs","../src/components/tabs.tsx"],"names":["Tabs","props","jsx","TabsList","className","cn","TabsTrigger","TabsContent"],"mappings":"AAAA,mZAAwC,8FCET,+CAStB,SADAA,CAAAA,CAAK,CAAE,GAAGC,CAAM,CAAA,CAA2D,CAClF,OAAOC,6BAAAA,CAAe,CAAA,IAAA,CAAd,CAAmB,WAAA,CAAU,MAAA,CAAQ,GAAGD,CAAAA,CAAO,CACzD,CAMA,SAASE,CAAAA,CAAS,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGH,CAAM,CAAA,CAA2D,CACjG,OACEC,6BAAAA,CAAe,CAAA,IAAA,CAAd,CACC,SAAA,CAAWG,iCAAAA,mGACT,CACAD,CACF,CAAA,CACA,WAAA,CAAU,WAAA,CACT,GAAGH,CAAAA,CACN,CAEJ,CAMA,SAASK,CAAAA,CAAY,CAAE,SAAA,CAAAF,CAAAA,CAAW,GAAGH,CAAM,CAAA,CAA8D,CACvG,OACEC,6BAAAA,CAAe,CAAA,OAAA,CAAd,CACC,SAAA,CAAWG,iCAAAA,ghBACT,CACAD,CACF,CAAA,CACA,WAAA,CAAU,cAAA,CACT,GAAGH,CAAAA,CACN,CAEJ,CAMA,SAASM,CAAAA,CAAY,CAAE,SAAA,CAAAH,CAAAA,CAAW,GAAGH,CAAM,CAAA,CAA8D,CACvG,OACEC,6BAAAA,CAAe,CAAA,OAAA,CAAd,CACC,SAAA,CAAWG,iCAAAA,wFACT,CACAD,CACF,CAAA,CACA,WAAA,CAAU,cAAA,CACT,GAAGH,CAAAA,CACN,CAEJ,CAAA,2DAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-Y3I5OCGY.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\n\nimport * as TabsPrimitive from '@radix-ui/react-tabs';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Tabs\n * -------------------------------------------------------------------------- */\n\nfunction Tabs({ ...props }: ComponentProps<typeof TabsPrimitive.Root>): JSX.Element {\n return <TabsPrimitive.Root data-slot=\"tabs\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TabsList\n * -------------------------------------------------------------------------- */\n\nfunction TabsList({ className, ...props }: ComponentProps<typeof TabsPrimitive.List>): JSX.Element {\n return (\n <TabsPrimitive.List\n className={cn(\n 'bg-muted text-muted-foreground inline-flex items-center justify-center gap-1 rounded-xl px-1 py-1',\n className,\n )}\n data-slot=\"tabs-list\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TabsTrigger\n * -------------------------------------------------------------------------- */\n\nfunction TabsTrigger({ className, ...props }: ComponentProps<typeof TabsPrimitive.Trigger>): JSX.Element {\n return (\n <TabsPrimitive.Trigger\n className={cn(\n \"data-[state=active]:bg-background dark:data-[state=active]:bg-input/50 text-foreground dark:text-muted-foreground focus-visible:ring-ring/50 focus-visible:ring-3 dark:outline-ring not-dark:outline-hidden dark:data-[state=active]:text-foreground inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-lg px-2 py-1.5 text-sm font-medium transition disabled:opacity-50 data-[state=active]:shadow-sm dark:-outline-offset-1 dark:data-[state=active]:outline-1 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0\",\n className,\n )}\n data-slot=\"tabs-trigger\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TabsContent\n * -------------------------------------------------------------------------- */\n\nfunction TabsContent({ className, ...props }: ComponentProps<typeof TabsPrimitive.Content>): JSX.Element {\n return (\n <TabsPrimitive.Content\n className={cn(\n 'outline-ring ring-ring/50 mt-2 rounded-xl focus-visible:outline-1 focus-visible:ring-4',\n className,\n )}\n data-slot=\"tabs-content\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Tabs, TabsContent, TabsList, TabsTrigger };\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/badge.tsx"],"names":["badgeVariants","tv","Badge","className","asChild","variant","props","jsx","Slot"],"mappings":"AAGA,0HAAqB,qDACF,+CAuCV,IAjCHA,CAAAA,CAAgBC,kCAAAA,CACpB,IAAA,CAAM,8OAAA,CACN,QAAA,CAAU,CACR,OAAA,CAAS,CACP,OAAA,CACE,iJAAA,CACF,SAAA,CAAW,sFAAA,CACX,WAAA,CACE,2KAAA,CACF,OAAA,CACE,6GACJ,CACF,CAAA,CACA,eAAA,CAAiB,CACf,OAAA,CAAS,SACX,CACF,CAAC,CAAA,CAMD,SAASC,CAAAA,CAAM,CACb,SAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAGkB,CAGhB,OAAOC,6BAAAA,CAFWH,CAAUI,eAAAA,CAAO,MAAA,CAE3B,CAAU,SAAA,CAAWR,CAAAA,CAAc,CAAE,SAAA,CAAAG,CAAAA,CAAW,OAAA,CAAAE,CAAQ,CAAC,CAAA,CAAG,WAAA,CAAU,OAAA,CAAS,GAAGC,CAAAA,CAAO,CACnG,CAAA,6BAAA","file":"/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/chunk-ZA36F2BJ.cjs","sourcesContent":["import type { ComponentProps, JSX } from 'react';\nimport type { VariantProps } from 'tailwind-variants';\n\nimport { Slot } from '@radix-ui/react-slot';\nimport { tv } from 'tailwind-variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: Badge\n * -------------------------------------------------------------------------- */\n\nconst badgeVariants = tv({\n base: 'focus-visible:ring-ring/50 focus-visible:ring-3 outline-hidden inline-flex w-fit shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md border px-1.5 py-0.5 text-xs font-medium transition [&>svg]:size-3 [&>svg]:shrink-0',\n variants: {\n variant: {\n default:\n 'bg-primary [a&]:hover:bg-primary/80 text-primary-foreground focus-visible:ring-primary/20 dark:focus-visible:ring-primary/40 border-transparent',\n secondary: 'bg-secondary [a&]:hover:bg-secondary/80 text-secondary-foreground border-transparent',\n destructive:\n 'bg-destructive dark:bg-destructive/60 [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 border-transparent text-white',\n outline:\n 'bg-background border-input [a&]:hover:bg-accent [a&]:hover:text-accent-foreground focus-visible:border-ring',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n});\n\n/* -----------------------------------------------------------------------------\n * Component: Badge\n * -------------------------------------------------------------------------- */\n\nfunction Badge({\n className,\n asChild,\n variant,\n ...props\n}: ComponentProps<'span'> &\n VariantProps<typeof badgeVariants> & {\n asChild?: boolean;\n }): JSX.Element {\n const Component = asChild ? Slot : 'span';\n\n return <Component className={badgeVariants({ className, variant })} data-slot=\"badge\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Badge, badgeVariants };\n"]}
1
+ {"version":3,"sources":["../src/components/badge.tsx"],"names":["badgeVariants","tv","Badge","className","asChild","variant","props","jsx","Slot"],"mappings":"AAGA,0HAAqB,qDACF,+CAuCV,IAjCHA,CAAAA,CAAgBC,kCAAAA,CACpB,IAAA,CAAM,8OAAA,CACN,QAAA,CAAU,CACR,OAAA,CAAS,CACP,OAAA,CACE,iJAAA,CACF,SAAA,CAAW,sFAAA,CACX,WAAA,CACE,2KAAA,CACF,OAAA,CACE,6GACJ,CACF,CAAA,CACA,eAAA,CAAiB,CACf,OAAA,CAAS,SACX,CACF,CAAC,CAAA,CAMD,SAASC,CAAAA,CAAM,CACb,SAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAGkB,CAGhB,OAAOC,6BAAAA,CAFWH,CAAUI,eAAAA,CAAO,MAAA,CAE3B,CAAU,SAAA,CAAWR,CAAAA,CAAc,CAAE,SAAA,CAAAG,CAAAA,CAAW,OAAA,CAAAE,CAAQ,CAAC,CAAA,CAAG,WAAA,CAAU,OAAA,CAAS,GAAGC,CAAAA,CAAO,CACnG,CAAA,6BAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-ZA36F2BJ.cjs","sourcesContent":["import type { ComponentProps, JSX } from 'react';\nimport type { VariantProps } from 'tailwind-variants';\n\nimport { Slot } from '@radix-ui/react-slot';\nimport { tv } from 'tailwind-variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: Badge\n * -------------------------------------------------------------------------- */\n\nconst badgeVariants = tv({\n base: 'focus-visible:ring-ring/50 focus-visible:ring-3 outline-hidden inline-flex w-fit shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md border px-1.5 py-0.5 text-xs font-medium transition [&>svg]:size-3 [&>svg]:shrink-0',\n variants: {\n variant: {\n default:\n 'bg-primary [a&]:hover:bg-primary/80 text-primary-foreground focus-visible:ring-primary/20 dark:focus-visible:ring-primary/40 border-transparent',\n secondary: 'bg-secondary [a&]:hover:bg-secondary/80 text-secondary-foreground border-transparent',\n destructive:\n 'bg-destructive dark:bg-destructive/60 [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 border-transparent text-white',\n outline:\n 'bg-background border-input [a&]:hover:bg-accent [a&]:hover:text-accent-foreground focus-visible:border-ring',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n});\n\n/* -----------------------------------------------------------------------------\n * Component: Badge\n * -------------------------------------------------------------------------- */\n\nfunction Badge({\n className,\n asChild,\n variant,\n ...props\n}: ComponentProps<'span'> &\n VariantProps<typeof badgeVariants> & {\n asChild?: boolean;\n }): JSX.Element {\n const Component = asChild ? Slot : 'span';\n\n return <Component className={badgeVariants({ className, variant })} data-slot=\"badge\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Badge, badgeVariants };\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/chunk-ZESL6WID.cjs","../src/components/chart.tsx"],"names":["RechartsPrimitive","createContext","useChart","children","className","props","uniqueId","useId","chartId","id","jsx","ChartContext"],"mappings":"AAAA,22BAAY,CAAC,wDCKJ,8BACGA,gFAkLI,+CA7KR,IAAA,CAAA,CAAA,CACN,IAAA,CAAA,OA4BmBC,CAAAA,KAA4C,CAAA,EAEjE,CAAA,CAAA,CAAA,CAAA,kCAAA,IAASC,CAA8B,CACrC,SAAuC,CAAA,CAEvC,CAAA,CAAA,IACE,CAAA,CAAA,+BAAA,CAAA,CAAM,CAAA,EAAA,CAAI,CAAA,CAAA,CAAA,MAAM,IAAA,KAAA,CAAA,mDAUpB,CAAA,CAAA,OAAwB,CACtB,CAAA,SACA,CAAA,CAAA,CAAA,EAAAC,CACA,CAAA,CAAA,QAAAC,CAAAA,CACA,CAAA,SACA,CAAA,CAAGC,CACL,MAIE,CAAMC,CAAAA,CAAWC,GAAM,CACjBC,CAAAA,CAAU,CAAA,IAAA,CAAA,CAAA,0BAAA,CAASC,CAAAA,CAAMH,CAAQ,CAAA,MAEvC,EAAA,CACEI,EAACC,CAAAA,CAAa,CAAA;AAmVK;AACvB","file":"/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/chunk-ZESL6WID.cjs","sourcesContent":[null,"'use client';\n\nimport type { ComponentProps, ComponentType, CSSProperties, JSX, ReactNode } from 'react';\nimport type { NameType, Payload, ValueType } from 'recharts/types/component/DefaultTooltipContent';\n\nimport { createContext, useContext, useId, useMemo } from 'react';\nimport * as RechartsPrimitive from 'recharts';\n\nimport { cn } from '@/lib/utils';\n\nconst THEMES = {\n dark: '.dark',\n light: '',\n} as const;\n\ntype Theme = keyof typeof THEMES;\n\ninterface IconLabelConfig {\n icon?: ComponentType;\n label?: ReactNode;\n}\n\ninterface ColorConfig {\n color?: string;\n theme?: never;\n}\n\ninterface ThemeConfig {\n theme: Record<Theme, string>;\n color?: never;\n}\n\ntype ChartConfigItem = (ColorConfig | ThemeConfig) & IconLabelConfig;\n\ntype ChartConfig = Record<string, ChartConfigItem | undefined>;\n\ninterface ChartContextProps {\n config: ChartConfig;\n}\n\nconst ChartContext = createContext<ChartContextProps | null>(null);\n\nfunction useChart(): ChartContextProps {\n const context = useContext(ChartContext);\n\n if (!context) {\n throw new Error('useChart must be used within a <ChartContainer />');\n }\n\n return context;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: Chart\n * -------------------------------------------------------------------------- */\n\nfunction ChartContainer({\n id,\n children,\n className,\n config,\n ...props\n}: ComponentProps<'div'> & {\n children: ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>['children'];\n config: ChartConfig;\n}): JSX.Element {\n const uniqueId = useId();\n const chartId = `chart-${id || uniqueId}`;\n\n return (\n <ChartContext.Provider value={{ config }}>\n <div\n className={cn(\n \"[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-surface]:outline-hidden flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-sector[stroke='#fff']]:stroke-transparent\",\n className,\n )}\n data-chart={chartId}\n data-slot=\"chart\"\n {...props}\n >\n <ChartStyle config={config} id={chartId} />\n <RechartsPrimitive.ResponsiveContainer>{children}</RechartsPrimitive.ResponsiveContainer>\n </div>\n </ChartContext.Provider>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ChartStyle\n * -------------------------------------------------------------------------- */\n\nfunction ChartStyle({ id, config }: { config: ChartConfig; id: string }): ReactNode {\n const cssString = useMemo(() => generateCSS(id, config), [id, config]);\n\n return <style dangerouslySetInnerHTML={{ __html: cssString }} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ChartTooltip\n * -------------------------------------------------------------------------- */\n\nconst ChartTooltip = RechartsPrimitive.Tooltip;\n\n/* -----------------------------------------------------------------------------\n * Component: ChartTooltipContent\n * -------------------------------------------------------------------------- */\n\nfunction ChartTooltipContent({\n active,\n className,\n color,\n formatter,\n hideIndicator = false,\n hideLabel = false,\n indicator = 'dot',\n label,\n labelClassName,\n labelFormatter,\n labelKey,\n nameKey,\n payload,\n}: ComponentProps<typeof RechartsPrimitive.Tooltip> &\n Omit<ComponentProps<'div'>, 'content'> & {\n hideIndicator?: boolean;\n hideLabel?: boolean;\n indicator?: 'dashed' | 'dot' | 'line';\n labelKey?: string;\n nameKey?: string;\n }): ReactNode {\n const { config } = useChart();\n\n const tooltipLabel = useMemo(() => {\n if (hideLabel || !payload?.length) {\n return null;\n }\n\n const [item] = payload;\n\n const key = `${labelKey || item.dataKey || item.name || 'value'}`;\n const itemConfig = getPayloadConfigFromPayload(config, item, key);\n const value = !labelKey && typeof label === 'string' ? config[label]?.label || label : itemConfig?.label;\n\n if (labelFormatter) {\n return <div className={cn('font-medium', labelClassName)}>{labelFormatter(value, payload)}</div>;\n }\n\n if (!value) {\n return null;\n }\n\n return <div className={cn('font-medium', labelClassName)}>{value}</div>;\n }, [config, hideLabel, label, labelClassName, labelFormatter, labelKey, payload]);\n\n if (!active || !payload?.length) {\n return null;\n }\n\n const nestLabel = payload.length === 1 && indicator !== 'dot';\n\n return (\n <div\n className={cn(\n 'bg-background grid min-w-32 items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl',\n className,\n )}\n >\n {nestLabel ? null : tooltipLabel}\n <div className=\"grid gap-1.5\">\n {payload.map((item, index) => {\n const key = `${nameKey || item.name || item.dataKey || 'value'}`;\n const itemConfig = getPayloadConfigFromPayload(config, item, key);\n const indicatorColor = color || (item.payload as { fill?: string }).fill || item.color;\n\n return (\n <div\n key={item.dataKey}\n className={cn(\n '[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:size-2.5',\n indicator === 'dot' && 'items-center',\n )}\n >\n {formatter && item.value !== undefined && item.name ? (\n formatter(item.value, item.name, item, index, item.payload as Payload<ValueType, NameType>[])\n ) : (\n <>\n {itemConfig?.icon ? (\n <itemConfig.icon />\n ) : (\n !hideIndicator && (\n <div\n className={cn('border-(--color-border) bg-(--color-bg) rounded-xs shrink-0', {\n 'h-2.5 w-2.5': indicator === 'dot',\n 'my-0.5': nestLabel && indicator === 'dashed',\n 'w-0 border border-dashed bg-transparent': indicator === 'dashed',\n 'w-1': indicator === 'line',\n })}\n style={\n {\n '--color-bg': indicatorColor,\n '--color-border': indicatorColor,\n } as CSSProperties\n }\n />\n )\n )}\n <div\n className={cn('flex flex-1 justify-between leading-none', nestLabel ? 'items-end' : 'items-center')}\n >\n <div className=\"grid gap-1.5\">\n {nestLabel ? tooltipLabel : null}\n <span className=\"text-muted-foreground\">{itemConfig?.label || item.name}</span>\n </div>\n {item.value ? (\n <span className=\"text-foreground font-mono font-medium tabular-nums\">\n {item.value.toLocaleString()}\n </span>\n ) : null}\n </div>\n </>\n )}\n </div>\n );\n })}\n </div>\n </div>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ChartLegend\n * -------------------------------------------------------------------------- */\n\nconst ChartLegend = RechartsPrimitive.Legend;\n\n/* -----------------------------------------------------------------------------\n * Component: ChartLegendContent\n * -------------------------------------------------------------------------- */\n\nfunction ChartLegendContent({\n className,\n hideIcon = false,\n nameKey,\n payload,\n verticalAlign = 'bottom',\n}: ComponentProps<'div'> &\n Pick<RechartsPrimitive.LegendProps, 'payload' | 'verticalAlign'> & {\n hideIcon?: boolean;\n nameKey?: string;\n }): ReactNode {\n const { config } = useChart();\n\n if (!payload?.length) {\n return null;\n }\n\n return (\n <div className={cn('flex items-center justify-center gap-4', verticalAlign === 'top' ? 'pb-3' : 'pt-3', className)}>\n {payload.map((item) => {\n let key = 'value';\n\n if (nameKey) {\n key = nameKey;\n } else if (item.dataKey) {\n key = String(item.dataKey);\n }\n\n const itemConfig = getPayloadConfigFromPayload(config, item, key);\n\n return (\n <div\n key={String(item.value)}\n className={cn('[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:size-3')}\n >\n {itemConfig?.icon && !hideIcon ? (\n <itemConfig.icon />\n ) : (\n <div\n className=\"size-2 shrink-0 rounded-md\"\n style={{\n backgroundColor: item.color,\n }}\n />\n )}\n {itemConfig?.label}\n </div>\n );\n })}\n </div>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Helpers\n * -------------------------------------------------------------------------- */\n\n/**\n * Extracts and returns the appropriate configuration object from\n * the payload based on the specified key.\n *\n * @param config - The chart configuration object that contains various\n * settings.\n * @param payload - The payload object that might contain nested payload data.\n * @param key - The key used to retrieve the specific configuration from the\n * chart config.\n * @returns Returns a configuration object with optional properties `icon`,\n * `label`, `color` or `theme`, or `undefined` if the payload is invalid or\n * no configuration is found for the provided key.\n */\nfunction getPayloadConfigFromPayload(config: ChartConfig, payload: unknown, key: string): ChartConfigItem | undefined {\n if (!isValidObject(payload)) {\n return undefined;\n }\n\n const nestedPayload = 'payload' in payload && isValidObject(payload.payload) ? payload.payload : undefined;\n\n const configLabelKey = getConfigLabelKey(payload, nestedPayload, key);\n\n return configLabelKey in config ? config[configLabelKey] : config[key];\n}\n\n/**\n * Checks if the provided value is a valid object.\n *\n * @param obj - The value to check.\n * @returns - Returns true if the value is an object and not null, false\n * otherwise.\n */\nfunction isValidObject(obj: unknown): obj is Record<string, unknown> {\n return typeof obj === 'object' && obj !== null;\n}\n\n/**\n * Retrieves the configuration label key from either the payload or\n * nestedPayload. If the key exists in the payload and is a string, the\n * corresponding value is returned. Otherwise, if the key exists in the\n * nestedPayload and is a string, its value is returned. If the key is not\n * found as a string in either object, the key itself is returned.\n *\n * @param payload - The primary payload containing key-value pairs.\n * @param nestedPayload - An optional nested payload containing additional\n * key-value pairs.\n * @param key - The key to search for within the payload and nestedPayload.\n *\n * @returns The string value associated with the key if found; otherwise, the\n * key itself.\n */\nfunction getConfigLabelKey(\n payload: Record<string, unknown>,\n nestedPayload: Record<string, unknown> | undefined,\n key: string,\n): string {\n if (key in payload && typeof payload[key] === 'string') {\n return payload[key];\n }\n\n if (nestedPayload && key in nestedPayload && typeof nestedPayload[key] === 'string') {\n return nestedPayload[key];\n }\n\n return key;\n}\n\n/**\n * Generates CSS for a specified theme and chart configuration.\n *\n * @param theme - The theme to be used (for example, 'light', 'dark').\n * @param id - The unique identifier of the chart.\n * @param configEntries - A list of configuration entries, each containing a\n * key and a chart configuration.\n * @returns The generated CSS as a string.\n */\nfunction generateThemeCSS(theme: Theme, id: string, configEntries: [string, ChartConfig[string]][]): string {\n const rules: string[] = [];\n\n rules.push(`${THEMES[theme]} [data-chart=${id}] {`);\n\n for (const [key, itemConfig] of configEntries) {\n const color = itemConfig?.theme?.[theme] || itemConfig?.color;\n\n if (color) {\n rules.push(` --color-${key}: ${color};`);\n }\n }\n\n rules.push('}');\n\n return rules.join('\\n');\n}\n\n/**\n * Generates CSS styles for a chart based on the provided configuration and\n * themes.\n *\n * @param id - The unique identifier for the chart element.\n * @param config - Configuration object for the chart. This includes theme and\n * color settings.\n * @returns A string containing the generated CSS rules.\n */\nfunction generateCSS(id: string, config: ChartConfig): string {\n const themeOrColorConfig = Object.entries(config).filter(([_, itemConfig]) => itemConfig?.theme || itemConfig?.color);\n\n const allRules: string[] = [];\n\n for (const theme of Object.keys(THEMES)) {\n const themeCSS = generateThemeCSS(theme as Theme, id, themeOrColorConfig);\n\n allRules.push(themeCSS);\n }\n\n return allRules.join('\\n');\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { ChartConfig };\nexport { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent };\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-ZESL6WID.cjs","../src/components/chart.tsx"],"names":["RechartsPrimitive","createContext","useChart","children","className","props","uniqueId","useId","chartId","id","jsx","ChartContext"],"mappings":"AAAA,22BAAY,CAAC,wDCKJ,8BACGA,gFAkLI,+CA7KR,IAAA,CAAA,CAAA,CACN,IAAA,CAAA,OA4BmBC,CAAAA,KAA4C,CAAA,EAEjE,CAAA,CAAA,CAAA,CAAA,kCAAA,IAASC,CAA8B,CACrC,SAAuC,CAAA,CAEvC,CAAA,CAAA,IACE,CAAA,CAAA,+BAAA,CAAA,CAAM,CAAA,EAAA,CAAI,CAAA,CAAA,CAAA,MAAM,IAAA,KAAA,CAAA,mDAUpB,CAAA,CAAA,OAAwB,CACtB,CAAA,SACA,CAAA,CAAA,CAAA,EAAAC,CACA,CAAA,CAAA,QAAAC,CAAAA,CACA,CAAA,SACA,CAAA,CAAGC,CACL,MAIE,CAAMC,CAAAA,CAAWC,GAAM,CACjBC,CAAAA,CAAU,CAAA,IAAA,CAAA,CAAA,0BAAA,CAASC,CAAAA,CAAMH,CAAQ,CAAA,MAEvC,EAAA,CACEI,EAACC,CAAAA,CAAa,CAAA;AAmVK;AACvB","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-ZESL6WID.cjs","sourcesContent":[null,"'use client';\n\nimport type { ComponentProps, ComponentType, CSSProperties, JSX, ReactNode } from 'react';\nimport type { NameType, Payload, ValueType } from 'recharts/types/component/DefaultTooltipContent';\n\nimport { createContext, useContext, useId, useMemo } from 'react';\nimport * as RechartsPrimitive from 'recharts';\n\nimport { cn } from '@/lib/utils';\n\nconst THEMES = {\n dark: '.dark',\n light: '',\n} as const;\n\ntype Theme = keyof typeof THEMES;\n\ninterface IconLabelConfig {\n icon?: ComponentType;\n label?: ReactNode;\n}\n\ninterface ColorConfig {\n color?: string;\n theme?: never;\n}\n\ninterface ThemeConfig {\n theme: Record<Theme, string>;\n color?: never;\n}\n\ntype ChartConfigItem = (ColorConfig | ThemeConfig) & IconLabelConfig;\n\ntype ChartConfig = Record<string, ChartConfigItem | undefined>;\n\ninterface ChartContextProps {\n config: ChartConfig;\n}\n\nconst ChartContext = createContext<ChartContextProps | null>(null);\n\nfunction useChart(): ChartContextProps {\n const context = useContext(ChartContext);\n\n if (!context) {\n throw new Error('useChart must be used within a <ChartContainer />');\n }\n\n return context;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: Chart\n * -------------------------------------------------------------------------- */\n\nfunction ChartContainer({\n id,\n children,\n className,\n config,\n ...props\n}: ComponentProps<'div'> & {\n children: ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>['children'];\n config: ChartConfig;\n}): JSX.Element {\n const uniqueId = useId();\n const chartId = `chart-${id || uniqueId}`;\n\n return (\n <ChartContext.Provider value={{ config }}>\n <div\n className={cn(\n \"[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-surface]:outline-hidden flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-sector[stroke='#fff']]:stroke-transparent\",\n className,\n )}\n data-chart={chartId}\n data-slot=\"chart\"\n {...props}\n >\n <ChartStyle config={config} id={chartId} />\n <RechartsPrimitive.ResponsiveContainer>{children}</RechartsPrimitive.ResponsiveContainer>\n </div>\n </ChartContext.Provider>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ChartStyle\n * -------------------------------------------------------------------------- */\n\nfunction ChartStyle({ id, config }: { config: ChartConfig; id: string }): ReactNode {\n const cssString = useMemo(() => generateCSS(id, config), [id, config]);\n\n return <style dangerouslySetInnerHTML={{ __html: cssString }} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ChartTooltip\n * -------------------------------------------------------------------------- */\n\nconst ChartTooltip = RechartsPrimitive.Tooltip;\n\n/* -----------------------------------------------------------------------------\n * Component: ChartTooltipContent\n * -------------------------------------------------------------------------- */\n\nfunction ChartTooltipContent({\n active,\n className,\n color,\n formatter,\n hideIndicator = false,\n hideLabel = false,\n indicator = 'dot',\n label,\n labelClassName,\n labelFormatter,\n labelKey,\n nameKey,\n payload,\n}: ComponentProps<typeof RechartsPrimitive.Tooltip> &\n Omit<ComponentProps<'div'>, 'content'> & {\n hideIndicator?: boolean;\n hideLabel?: boolean;\n indicator?: 'dashed' | 'dot' | 'line';\n labelKey?: string;\n nameKey?: string;\n }): ReactNode {\n const { config } = useChart();\n\n const tooltipLabel = useMemo(() => {\n if (hideLabel || !payload?.length) {\n return null;\n }\n\n const [item] = payload;\n\n const key = `${labelKey || item.dataKey || item.name || 'value'}`;\n const itemConfig = getPayloadConfigFromPayload(config, item, key);\n const value = !labelKey && typeof label === 'string' ? config[label]?.label || label : itemConfig?.label;\n\n if (labelFormatter) {\n return <div className={cn('font-medium', labelClassName)}>{labelFormatter(value, payload)}</div>;\n }\n\n if (!value) {\n return null;\n }\n\n return <div className={cn('font-medium', labelClassName)}>{value}</div>;\n }, [config, hideLabel, label, labelClassName, labelFormatter, labelKey, payload]);\n\n if (!active || !payload?.length) {\n return null;\n }\n\n const nestLabel = payload.length === 1 && indicator !== 'dot';\n\n return (\n <div\n className={cn(\n 'bg-background grid min-w-32 items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl',\n className,\n )}\n >\n {nestLabel ? null : tooltipLabel}\n <div className=\"grid gap-1.5\">\n {payload.map((item, index) => {\n const key = `${nameKey || item.name || item.dataKey || 'value'}`;\n const itemConfig = getPayloadConfigFromPayload(config, item, key);\n const indicatorColor = color || (item.payload as { fill?: string }).fill || item.color;\n\n return (\n <div\n key={item.dataKey}\n className={cn(\n '[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:size-2.5',\n indicator === 'dot' && 'items-center',\n )}\n >\n {formatter && item.value !== undefined && item.name ? (\n formatter(item.value, item.name, item, index, item.payload as Payload<ValueType, NameType>[])\n ) : (\n <>\n {itemConfig?.icon ? (\n <itemConfig.icon />\n ) : (\n !hideIndicator && (\n <div\n className={cn('border-(--color-border) bg-(--color-bg) rounded-xs shrink-0', {\n 'h-2.5 w-2.5': indicator === 'dot',\n 'my-0.5': nestLabel && indicator === 'dashed',\n 'w-0 border border-dashed bg-transparent': indicator === 'dashed',\n 'w-1': indicator === 'line',\n })}\n style={\n {\n '--color-bg': indicatorColor,\n '--color-border': indicatorColor,\n } as CSSProperties\n }\n />\n )\n )}\n <div\n className={cn('flex flex-1 justify-between leading-none', nestLabel ? 'items-end' : 'items-center')}\n >\n <div className=\"grid gap-1.5\">\n {nestLabel ? tooltipLabel : null}\n <span className=\"text-muted-foreground\">{itemConfig?.label || item.name}</span>\n </div>\n {item.value ? (\n <span className=\"text-foreground font-mono font-medium tabular-nums\">\n {item.value.toLocaleString()}\n </span>\n ) : null}\n </div>\n </>\n )}\n </div>\n );\n })}\n </div>\n </div>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ChartLegend\n * -------------------------------------------------------------------------- */\n\nconst ChartLegend = RechartsPrimitive.Legend;\n\n/* -----------------------------------------------------------------------------\n * Component: ChartLegendContent\n * -------------------------------------------------------------------------- */\n\nfunction ChartLegendContent({\n className,\n hideIcon = false,\n nameKey,\n payload,\n verticalAlign = 'bottom',\n}: ComponentProps<'div'> &\n Pick<RechartsPrimitive.LegendProps, 'payload' | 'verticalAlign'> & {\n hideIcon?: boolean;\n nameKey?: string;\n }): ReactNode {\n const { config } = useChart();\n\n if (!payload?.length) {\n return null;\n }\n\n return (\n <div className={cn('flex items-center justify-center gap-4', verticalAlign === 'top' ? 'pb-3' : 'pt-3', className)}>\n {payload.map((item) => {\n let key = 'value';\n\n if (nameKey) {\n key = nameKey;\n } else if (item.dataKey) {\n key = String(item.dataKey);\n }\n\n const itemConfig = getPayloadConfigFromPayload(config, item, key);\n\n return (\n <div\n key={String(item.value)}\n className={cn('[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:size-3')}\n >\n {itemConfig?.icon && !hideIcon ? (\n <itemConfig.icon />\n ) : (\n <div\n className=\"size-2 shrink-0 rounded-md\"\n style={{\n backgroundColor: item.color,\n }}\n />\n )}\n {itemConfig?.label}\n </div>\n );\n })}\n </div>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Helpers\n * -------------------------------------------------------------------------- */\n\n/**\n * Extracts and returns the appropriate configuration object from\n * the payload based on the specified key.\n *\n * @param config - The chart configuration object that contains various\n * settings.\n * @param payload - The payload object that might contain nested payload data.\n * @param key - The key used to retrieve the specific configuration from the\n * chart config.\n * @returns Returns a configuration object with optional properties `icon`,\n * `label`, `color` or `theme`, or `undefined` if the payload is invalid or\n * no configuration is found for the provided key.\n */\nfunction getPayloadConfigFromPayload(config: ChartConfig, payload: unknown, key: string): ChartConfigItem | undefined {\n if (!isValidObject(payload)) {\n return undefined;\n }\n\n const nestedPayload = 'payload' in payload && isValidObject(payload.payload) ? payload.payload : undefined;\n\n const configLabelKey = getConfigLabelKey(payload, nestedPayload, key);\n\n return configLabelKey in config ? config[configLabelKey] : config[key];\n}\n\n/**\n * Checks if the provided value is a valid object.\n *\n * @param obj - The value to check.\n * @returns - Returns true if the value is an object and not null, false\n * otherwise.\n */\nfunction isValidObject(obj: unknown): obj is Record<string, unknown> {\n return typeof obj === 'object' && obj !== null;\n}\n\n/**\n * Retrieves the configuration label key from either the payload or\n * nestedPayload. If the key exists in the payload and is a string, the\n * corresponding value is returned. Otherwise, if the key exists in the\n * nestedPayload and is a string, its value is returned. If the key is not\n * found as a string in either object, the key itself is returned.\n *\n * @param payload - The primary payload containing key-value pairs.\n * @param nestedPayload - An optional nested payload containing additional\n * key-value pairs.\n * @param key - The key to search for within the payload and nestedPayload.\n *\n * @returns The string value associated with the key if found; otherwise, the\n * key itself.\n */\nfunction getConfigLabelKey(\n payload: Record<string, unknown>,\n nestedPayload: Record<string, unknown> | undefined,\n key: string,\n): string {\n if (key in payload && typeof payload[key] === 'string') {\n return payload[key];\n }\n\n if (nestedPayload && key in nestedPayload && typeof nestedPayload[key] === 'string') {\n return nestedPayload[key];\n }\n\n return key;\n}\n\n/**\n * Generates CSS for a specified theme and chart configuration.\n *\n * @param theme - The theme to be used (for example, 'light', 'dark').\n * @param id - The unique identifier of the chart.\n * @param configEntries - A list of configuration entries, each containing a\n * key and a chart configuration.\n * @returns The generated CSS as a string.\n */\nfunction generateThemeCSS(theme: Theme, id: string, configEntries: [string, ChartConfig[string]][]): string {\n const rules: string[] = [];\n\n rules.push(`${THEMES[theme]} [data-chart=${id}] {`);\n\n for (const [key, itemConfig] of configEntries) {\n const color = itemConfig?.theme?.[theme] || itemConfig?.color;\n\n if (color) {\n rules.push(` --color-${key}: ${color};`);\n }\n }\n\n rules.push('}');\n\n return rules.join('\\n');\n}\n\n/**\n * Generates CSS styles for a chart based on the provided configuration and\n * themes.\n *\n * @param id - The unique identifier for the chart element.\n * @param config - Configuration object for the chart. This includes theme and\n * color settings.\n * @returns A string containing the generated CSS rules.\n */\nfunction generateCSS(id: string, config: ChartConfig): string {\n const themeOrColorConfig = Object.entries(config).filter(([_, itemConfig]) => itemConfig?.theme || itemConfig?.color);\n\n const allRules: string[] = [];\n\n for (const theme of Object.keys(THEMES)) {\n const themeCSS = generateThemeCSS(theme as Theme, id, themeOrColorConfig);\n\n allRules.push(themeCSS);\n }\n\n return allRules.join('\\n');\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport type { ChartConfig };\nexport { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent };\n"]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunk5NGAG7ZWcjs = require('./chunk-5NGAG7ZW.cjs');var _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _reactvisuallyhidden = require('@radix-ui/react-visually-hidden');var _cmdk = require('cmdk');var _lucidereact = require('lucide-react');var _jsxruntime = require('react/jsx-runtime');function c({className:e,...o}){return _jsxruntime.jsx.call(void 0, _cmdk.Command,{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-popover text-popover-foreground outline-hidden flex flex-col overflow-hidden rounded-[inherit]",e),"data-slot":"command",...o})}function h({children:e,...o}){return _jsxruntime.jsx.call(void 0, _chunk5NGAG7ZWcjs.a,{"data-slot":"command-dialog",...o,children:_jsxruntime.jsxs.call(void 0, _chunk5NGAG7ZWcjs.c,{className:"rounded-t-lg sm:rounded-lg","data-slot":"command-dialog-content",children:[_jsxruntime.jsxs.call(void 0, _reactvisuallyhidden.VisuallyHidden,{children:[_jsxruntime.jsx.call(void 0, _chunk5NGAG7ZWcjs.g,{children:"Search command"}),_jsxruntime.jsx.call(void 0, _chunk5NGAG7ZWcjs.h,{children:"Use the search bar to find and select the desired command."})]}),_jsxruntime.jsx.call(void 0, c,{className:"[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input]]:h-12",children:e})]})})}function y({className:e,...o}){return _jsxruntime.jsxs.call(void 0, "div",{className:"flex items-center gap-2 border-b px-3","cmdk-input-wrapper":"","data-slot":"command-input-wrapper",children:[_jsxruntime.jsx.call(void 0, _lucidereact.SearchIcon,{className:"size-4 shrink-0 opacity-50"}),_jsxruntime.jsx.call(void 0, _cmdk.Command.Input,{className:_chunkSMJEDCFPcjs.a.call(void 0, "placeholder:text-muted-foreground outline-hidden flex h-10 w-full text-base disabled:opacity-50 md:text-sm",e),"data-slot":"command-input",...o})]})}function v({className:e,...o}){return _jsxruntime.jsx.call(void 0, _cmdk.Command.List,{className:_chunkSMJEDCFPcjs.a.call(void 0, "max-h-75 overflow-y-auto overflow-x-hidden",e),"data-slot":"command-list",...o})}function P({className:e,...o}){return _jsxruntime.jsx.call(void 0, _cmdk.Command.Empty,{className:_chunkSMJEDCFPcjs.a.call(void 0, "py-6 text-center text-sm",e),"data-slot":"command-empty",...o})}function S({className:e,...o}){return _jsxruntime.jsx.call(void 0, _cmdk.Command.Group,{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),"data-slot":"command-group",...o})}function k({className:e,...o}){return _jsxruntime.jsx.call(void 0, _cmdk.Command.Separator,{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-border -mx-1 h-px",e),"data-slot":"command-separator",...o})}function _({className:e,...o}){return _jsxruntime.jsx.call(void 0, _cmdk.Command.Item,{className:_chunkSMJEDCFPcjs.a.call(void 0, "aria-selected:bg-accent aria-selected:text-accent-foreground outline-hidden group/command-item [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default select-none items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0",e),"data-slot":"command-item",...o})}function E({className:e,...o}){return _jsxruntime.jsx.call(void 0, _cmdk.Command.Loading,{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex justify-center p-2",e),"data-slot":"command-loading",...o})}function N({className:e,...o}){return _jsxruntime.jsx.call(void 0, "span",{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-muted-foreground ml-auto text-xs tracking-widest group-aria-selected/command-item:text-current",e),"data-slot":"command-shortcut",...o})}exports.a = c; exports.b = h; exports.c = y; exports.d = v; exports.e = P; exports.f = S; exports.g = k; exports.h = _; exports.i = E; exports.j = N;
2
- //# sourceMappingURL=chunk-K3WFUR2W.cjs.map
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunk62FSD36Vcjs = require('./chunk-62FSD36V.cjs');var _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _reactvisuallyhidden = require('@radix-ui/react-visually-hidden');var _cmdk = require('cmdk');var _lucidereact = require('lucide-react');var _jsxruntime = require('react/jsx-runtime');function c({className:e,...o}){return _jsxruntime.jsx.call(void 0, _cmdk.Command,{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-popover text-popover-foreground outline-hidden flex flex-col overflow-hidden rounded-[inherit]",e),"data-slot":"command",...o})}function h({children:e,...o}){return _jsxruntime.jsx.call(void 0, _chunk62FSD36Vcjs.a,{"data-slot":"command-dialog",...o,children:_jsxruntime.jsxs.call(void 0, _chunk62FSD36Vcjs.c,{className:"rounded-t-lg sm:rounded-lg","data-slot":"command-dialog-content",children:[_jsxruntime.jsxs.call(void 0, _reactvisuallyhidden.VisuallyHidden,{children:[_jsxruntime.jsx.call(void 0, _chunk62FSD36Vcjs.g,{children:"Search command"}),_jsxruntime.jsx.call(void 0, _chunk62FSD36Vcjs.h,{children:"Use the search bar to find and select the desired command."})]}),_jsxruntime.jsx.call(void 0, c,{className:"[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input]]:h-12",children:e})]})})}function y({className:e,...o}){return _jsxruntime.jsxs.call(void 0, "div",{className:"flex items-center gap-2 border-b px-3","cmdk-input-wrapper":"","data-slot":"command-input-wrapper",children:[_jsxruntime.jsx.call(void 0, _lucidereact.SearchIcon,{className:"size-4 shrink-0 opacity-50"}),_jsxruntime.jsx.call(void 0, _cmdk.Command.Input,{className:_chunkSMJEDCFPcjs.a.call(void 0, "placeholder:text-muted-foreground outline-hidden flex h-10 w-full text-base disabled:opacity-50 md:text-sm",e),"data-slot":"command-input",...o})]})}function v({className:e,...o}){return _jsxruntime.jsx.call(void 0, _cmdk.Command.List,{className:_chunkSMJEDCFPcjs.a.call(void 0, "max-h-75 overflow-y-auto overflow-x-hidden",e),"data-slot":"command-list",...o})}function P({className:e,...o}){return _jsxruntime.jsx.call(void 0, _cmdk.Command.Empty,{className:_chunkSMJEDCFPcjs.a.call(void 0, "py-6 text-center text-sm",e),"data-slot":"command-empty",...o})}function S({className:e,...o}){return _jsxruntime.jsx.call(void 0, _cmdk.Command.Group,{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),"data-slot":"command-group",...o})}function k({className:e,...o}){return _jsxruntime.jsx.call(void 0, _cmdk.Command.Separator,{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-border -mx-1 h-px",e),"data-slot":"command-separator",...o})}function _({className:e,...o}){return _jsxruntime.jsx.call(void 0, _cmdk.Command.Item,{className:_chunkSMJEDCFPcjs.a.call(void 0, "aria-selected:bg-accent aria-selected:text-accent-foreground outline-hidden group/command-item [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default select-none items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0",e),"data-slot":"command-item",...o})}function E({className:e,...o}){return _jsxruntime.jsx.call(void 0, _cmdk.Command.Loading,{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex justify-center p-2",e),"data-slot":"command-loading",...o})}function N({className:e,...o}){return _jsxruntime.jsx.call(void 0, "span",{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-muted-foreground ml-auto text-xs tracking-widest group-aria-selected/command-item:text-current",e),"data-slot":"command-shortcut",...o})}exports.a = c; exports.b = h; exports.c = y; exports.d = v; exports.e = P; exports.f = S; exports.g = k; exports.h = _; exports.i = E; exports.j = N;
2
+ //# sourceMappingURL=chunk-ZICEZCOU.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-ZICEZCOU.cjs","../src/components/command.tsx"],"names":["className","CommandPrimitive","cn","props","CommandDialog","children","Dialog","DialogContent","VisuallyHidden","jsx","DialogTitle","CommandInput","SearchIcon","CommandList","CommandEmpty","CommandGroup","CommandSeparator","CommandItem","CommandLoading","CommandShortcut"],"mappings":"AAAA,qFAAY,CAAC,wDAA6D,wDCIjE,sEACA,4BACA,2CAWL,+CAFe,SAAAA,CAAAA,CAAW,CAAA,SAC5B,CAAA,CAAA,CAAA,GACGC,CAAAA,CAAA,CACC,CAAA,OAAA,6BAAA,aAAWC,CACT,CAAA,SAAA,CAAA,iCAAA,mGAGF,CAAA,CAAA,CAAU,CAAA,WACT,CAAGC,SASV,CAAA,GAASC,CAAAA,CAAc,CAAE,CAAA,SAAAC,CAAU,CAAA,CAAA,QACjC,CAAA,CAAA,CAAA,GACGC,CAAAA,CAAA,CAAO,CAAA,OAAA,6BAAA,mBAAA,CAAU,CAAA,WAAA,CAAA,gBAChB,CAAA,GAACC,CAAAA,CAAA,QAAc,CAAA,8B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,CAAA,qJAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-ZICEZCOU.cjs","sourcesContent":[null,"'use client';\n\nimport type { ComponentProps, JSX } from 'react';\n\nimport { VisuallyHidden } from '@radix-ui/react-visually-hidden';\nimport { Command as CommandPrimitive } from 'cmdk';\nimport { SearchIcon } from 'lucide-react';\n\nimport { Dialog, DialogContent, DialogDescription, DialogTitle } from '@/components/dialog';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Command\n * -------------------------------------------------------------------------- */\n\nfunction Command({ className, ...props }: ComponentProps<typeof CommandPrimitive>): JSX.Element {\n return (\n <CommandPrimitive\n className={cn(\n 'bg-popover text-popover-foreground outline-hidden flex flex-col overflow-hidden rounded-[inherit]',\n className,\n )}\n data-slot=\"command\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandDialog\n * -------------------------------------------------------------------------- */\n\nfunction CommandDialog({ children, ...props }: ComponentProps<typeof Dialog>): JSX.Element {\n return (\n <Dialog data-slot=\"command-dialog\" {...props}>\n <DialogContent className=\"rounded-t-lg sm:rounded-lg\" data-slot=\"command-dialog-content\">\n <VisuallyHidden>\n <DialogTitle>Search command</DialogTitle>\n <DialogDescription>Use the search bar to find and select the desired command.</DialogDescription>\n </VisuallyHidden>\n <Command className=\"[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input]]:h-12\">\n {children}\n </Command>\n </DialogContent>\n </Dialog>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandInput\n * -------------------------------------------------------------------------- */\n\nfunction CommandInput({ className, ...props }: ComponentProps<typeof CommandPrimitive.Input>): JSX.Element {\n return (\n <div className=\"flex items-center gap-2 border-b px-3\" cmdk-input-wrapper=\"\" data-slot=\"command-input-wrapper\">\n <SearchIcon className=\"size-4 shrink-0 opacity-50\" />\n <CommandPrimitive.Input\n className={cn(\n 'placeholder:text-muted-foreground outline-hidden flex h-10 w-full text-base disabled:opacity-50 md:text-sm',\n className,\n )}\n data-slot=\"command-input\"\n {...props}\n />\n </div>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandList\n * -------------------------------------------------------------------------- */\n\nfunction CommandList({ className, ...props }: ComponentProps<typeof CommandPrimitive.List>): JSX.Element {\n return (\n <CommandPrimitive.List\n className={cn('max-h-75 overflow-y-auto overflow-x-hidden', className)}\n data-slot=\"command-list\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandEmpty\n * -------------------------------------------------------------------------- */\n\nfunction CommandEmpty({ className, ...props }: ComponentProps<typeof CommandPrimitive.Empty>): JSX.Element {\n return (\n <CommandPrimitive.Empty\n className={cn('py-6 text-center text-sm', className)}\n data-slot=\"command-empty\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandGroup\n * -------------------------------------------------------------------------- */\n\nfunction CommandGroup({ className, ...props }: ComponentProps<typeof CommandPrimitive.Group>): JSX.Element {\n return (\n <CommandPrimitive.Group\n className={cn(\n 'text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium',\n className,\n )}\n data-slot=\"command-group\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandSeparator\n * -------------------------------------------------------------------------- */\n\nfunction CommandSeparator({ className, ...props }: ComponentProps<typeof CommandPrimitive.Separator>): JSX.Element {\n return (\n <CommandPrimitive.Separator\n className={cn('bg-border -mx-1 h-px', className)}\n data-slot=\"command-separator\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandItem\n * -------------------------------------------------------------------------- */\n\nfunction CommandItem({ className, ...props }: ComponentProps<typeof CommandPrimitive.Item>): JSX.Element {\n return (\n <CommandPrimitive.Item\n className={cn(\n \"aria-selected:bg-accent aria-selected:text-accent-foreground outline-hidden group/command-item [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default select-none items-center gap-x-2 rounded-sm px-2 py-1.5 text-sm aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0\",\n className,\n )}\n data-slot=\"command-item\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandLoading\n * -------------------------------------------------------------------------- */\n\nfunction CommandLoading({ className, ...props }: ComponentProps<typeof CommandPrimitive.Loading>): JSX.Element {\n return (\n <CommandPrimitive.Loading\n className={cn('flex justify-center p-2', className)}\n data-slot=\"command-loading\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandShortcut\n * -------------------------------------------------------------------------- */\n\nfunction CommandShortcut({ className, ...props }: ComponentProps<'span'>): JSX.Element {\n return (\n <span\n className={cn(\n 'text-muted-foreground ml-auto text-xs tracking-widest group-aria-selected/command-item:text-current',\n className,\n )}\n data-slot=\"command-shortcut\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Command,\n CommandDialog,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n CommandLoading,\n CommandSeparator,\n CommandShortcut,\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/components/accordion.cjs"],"names":[],"mappings":"AAAA,kIAA4C,iCAA8B,kOAAyG","file":"/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/components/accordion.cjs"}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/components/accordion.cjs"],"names":[],"mappings":"AAAA,kIAA4C,iCAA8B,kOAAyG","file":"/home/runner/work/codefast/codefast/packages/ui/dist/components/accordion.cjs"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2EVCRJIDcjs = require('../chunk-2EVCRJID.cjs');require('../chunk-TNP6NVCR.cjs');require('../chunk-XXUOW3ID.cjs');require('../chunk-SMJEDCFP.cjs');exports.AlertDialog = _chunk2EVCRJIDcjs.a; exports.AlertDialogAction = _chunk2EVCRJIDcjs.i; exports.AlertDialogBody = _chunk2EVCRJIDcjs.e; exports.AlertDialogCancel = _chunk2EVCRJIDcjs.j; exports.AlertDialogContent = _chunk2EVCRJIDcjs.c; exports.AlertDialogDescription = _chunk2EVCRJIDcjs.h; exports.AlertDialogFooter = _chunk2EVCRJIDcjs.f; exports.AlertDialogHeader = _chunk2EVCRJIDcjs.d; exports.AlertDialogTitle = _chunk2EVCRJIDcjs.g; exports.AlertDialogTrigger = _chunk2EVCRJIDcjs.b;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkM5WBW5H3cjs = require('../chunk-M5WBW5H3.cjs');require('../chunk-TNP6NVCR.cjs');require('../chunk-XXUOW3ID.cjs');require('../chunk-SMJEDCFP.cjs');exports.AlertDialog = _chunkM5WBW5H3cjs.a; exports.AlertDialogAction = _chunkM5WBW5H3cjs.i; exports.AlertDialogBody = _chunkM5WBW5H3cjs.e; exports.AlertDialogCancel = _chunkM5WBW5H3cjs.j; exports.AlertDialogContent = _chunkM5WBW5H3cjs.c; exports.AlertDialogDescription = _chunkM5WBW5H3cjs.h; exports.AlertDialogFooter = _chunkM5WBW5H3cjs.f; exports.AlertDialogHeader = _chunkM5WBW5H3cjs.d; exports.AlertDialogTitle = _chunkM5WBW5H3cjs.g; exports.AlertDialogTrigger = _chunkM5WBW5H3cjs.b;
2
2
  //# sourceMappingURL=alert-dialog.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/components/alert-dialog.cjs"],"names":[],"mappings":"AAAA,kIAAsD,iCAA8B,iCAA8B,iCAA8B,ueAA4O","file":"/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/components/alert-dialog.cjs"}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/components/alert-dialog.cjs"],"names":[],"mappings":"AAAA,kIAAsD,iCAA8B,iCAA8B,iCAA8B,ueAA4O","file":"/home/runner/work/codefast/codefast/packages/ui/dist/components/alert-dialog.cjs"}
@@ -1,2 +1,2 @@
1
- import{a,b,c,d,e,f,g,h,i,j}from"../chunk-UCRTI76K.js";import"../chunk-ZFCLI44C.js";import"../chunk-FR7P352M.js";import"../chunk-OKUFCFYT.js";export{a as AlertDialog,i as AlertDialogAction,e as AlertDialogBody,j as AlertDialogCancel,c as AlertDialogContent,h as AlertDialogDescription,f as AlertDialogFooter,d as AlertDialogHeader,g as AlertDialogTitle,b as AlertDialogTrigger};
1
+ import{a,b,c,d,e,f,g,h,i,j}from"../chunk-FKBFCM7D.js";import"../chunk-ZFCLI44C.js";import"../chunk-FR7P352M.js";import"../chunk-OKUFCFYT.js";export{a as AlertDialog,i as AlertDialogAction,e as AlertDialogBody,j as AlertDialogCancel,c as AlertDialogContent,h as AlertDialogDescription,f as AlertDialogFooter,d as AlertDialogHeader,g as AlertDialogTitle,b as AlertDialogTrigger};
2
2
  //# sourceMappingURL=alert-dialog.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/components/alert.cjs"],"names":[],"mappings":"AAAA,kIAAwC,iCAA8B,8HAAyD","file":"/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/components/alert.cjs"}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/components/alert.cjs"],"names":[],"mappings":"AAAA,kIAAwC,iCAA8B,8HAAyD","file":"/home/runner/work/codefast/codefast/packages/ui/dist/components/alert.cjs"}
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/components/aspect-ratio.cjs"],"names":[],"mappings":"AAAA,kIAAoC,0CAAyB","file":"/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/components/aspect-ratio.cjs"}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/components/aspect-ratio.cjs"],"names":[],"mappings":"AAAA,kIAAoC,0CAAyB","file":"/home/runner/work/codefast/codefast/packages/ui/dist/components/aspect-ratio.cjs"}
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/components/avatar.cjs"],"names":[],"mappings":"AAAA,kIAAwC,iCAA8B,8HAAyD","file":"/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/components/avatar.cjs"}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/components/avatar.cjs"],"names":[],"mappings":"AAAA,kIAAwC,iCAA8B,8HAAyD","file":"/home/runner/work/codefast/codefast/packages/ui/dist/components/avatar.cjs"}
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/components/badge.cjs"],"names":[],"mappings":"AAAA,kIAAsC,iFAAsC","file":"/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/components/badge.cjs"}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/components/badge.cjs"],"names":[],"mappings":"AAAA,kIAAsC,iFAAsC","file":"/home/runner/work/codefast/codefast/packages/ui/dist/components/badge.cjs"}
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/components/blockquote.cjs"],"names":[],"mappings":"AAAA,kIAAoC,yCAAwB","file":"/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/components/blockquote.cjs"}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/components/blockquote.cjs"],"names":[],"mappings":"AAAA,kIAAoC,yCAAwB","file":"/home/runner/work/codefast/codefast/packages/ui/dist/components/blockquote.cjs"}
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/components/box.cjs"],"names":[],"mappings":"AAAA,kIAAoC,kCAAiB","file":"/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/components/box.cjs"}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/components/box.cjs"],"names":[],"mappings":"AAAA,kIAAoC,kCAAiB","file":"/home/runner/work/codefast/codefast/packages/ui/dist/components/box.cjs"}
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/components/breadcrumb.cjs"],"names":[],"mappings":"AAAA,kIAAgD,iCAA8B,sUAAyJ","file":"/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/components/breadcrumb.cjs"}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/components/breadcrumb.cjs"],"names":[],"mappings":"AAAA,kIAAgD,iCAA8B,sUAAyJ","file":"/home/runner/work/codefast/codefast/packages/ui/dist/components/breadcrumb.cjs"}
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/components/button.cjs"],"names":[],"mappings":"AAAA,kIAAsC,iCAA8B,iCAA8B,mFAAwC","file":"/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/components/button.cjs"}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/components/button.cjs"],"names":[],"mappings":"AAAA,kIAAsC,iCAA8B,iCAA8B,mFAAwC","file":"/home/runner/work/codefast/codefast/packages/ui/dist/components/button.cjs"}
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/components/calendar.cjs"],"names":[],"mappings":"AAAA,qFAAY,CAAC,yDAAwC,iCAA8B,iCAA8B,iCAA8B,sIAAiE","file":"/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/components/calendar.cjs"}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/components/calendar.cjs"],"names":[],"mappings":"AAAA,qFAAY,CAAC,yDAAwC,iCAA8B,iCAA8B,iCAA8B,sIAAiE","file":"/home/runner/work/codefast/codefast/packages/ui/dist/components/calendar.cjs"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkCEK2UYDPcjs = require('../chunk-CEK2UYDP.cjs');require('../chunk-SMJEDCFP.cjs');exports.Card = _chunkCEK2UYDPcjs.a; exports.CardContent = _chunkCEK2UYDPcjs.e; exports.CardDescription = _chunkCEK2UYDPcjs.d; exports.CardFooter = _chunkCEK2UYDPcjs.f; exports.CardHeader = _chunkCEK2UYDPcjs.b; exports.CardTitle = _chunkCEK2UYDPcjs.c;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkNBKDS5DFcjs = require('../chunk-NBKDS5DF.cjs');require('../chunk-SMJEDCFP.cjs');exports.Card = _chunkNBKDS5DFcjs.a; exports.CardAction = _chunkNBKDS5DFcjs.g; exports.CardContent = _chunkNBKDS5DFcjs.e; exports.CardDescription = _chunkNBKDS5DFcjs.d; exports.CardFooter = _chunkNBKDS5DFcjs.f; exports.CardHeader = _chunkNBKDS5DFcjs.b; exports.CardTitle = _chunkNBKDS5DFcjs.c;
2
2
  //# sourceMappingURL=card.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/components/card.cjs"],"names":[],"mappings":"AAAA,kIAA8C,iCAA8B,0PAAuG","file":"/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/components/card.cjs"}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/components/card.cjs"],"names":[],"mappings":"AAAA,kIAAgD,iCAA8B,oSAAuH","file":"/home/runner/work/codefast/codefast/packages/ui/dist/components/card.cjs"}
@@ -6,5 +6,6 @@ declare function CardTitle({ children, className, ...props }: ComponentProps<'di
6
6
  declare function CardDescription({ className, ...props }: ComponentProps<'div'>): JSX.Element;
7
7
  declare function CardContent({ className, ...props }: ComponentProps<'div'>): JSX.Element;
8
8
  declare function CardFooter({ className, ...props }: ComponentProps<'div'>): JSX.Element;
9
+ declare function CardAction({ className, ...props }: ComponentProps<'div'>): JSX.Element;
9
10
 
10
- export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
11
+ export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
@@ -6,5 +6,6 @@ declare function CardTitle({ children, className, ...props }: ComponentProps<'di
6
6
  declare function CardDescription({ className, ...props }: ComponentProps<'div'>): JSX.Element;
7
7
  declare function CardContent({ className, ...props }: ComponentProps<'div'>): JSX.Element;
8
8
  declare function CardFooter({ className, ...props }: ComponentProps<'div'>): JSX.Element;
9
+ declare function CardAction({ className, ...props }: ComponentProps<'div'>): JSX.Element;
9
10
 
10
- export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
11
+ export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
@@ -1,2 +1,2 @@
1
- import{a,b,c,d,e,f}from"../chunk-AHHONQBW.js";import"../chunk-OKUFCFYT.js";export{a as Card,e as CardContent,d as CardDescription,f as CardFooter,b as CardHeader,c as CardTitle};
1
+ import{a,b,c,d,e,f,g}from"../chunk-CGU7BQSL.js";import"../chunk-OKUFCFYT.js";export{a as Card,g as CardAction,e as CardContent,d as CardDescription,f as CardFooter,b as CardHeader,c as CardTitle};
2
2
  //# sourceMappingURL=card.js.map