@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-GDOXPS6I.cjs","../src/components/resizable.tsx"],"names":["ResizablePrimitive","className","cn","ResizablePanel","ResizableHandle","withHandle","jsx","GripVerticalIcon"],"mappings":"AAAA,uWAAY,CAAC,wDCIJ,2CACGA,sHAaR,+CAJF,SAAAC,CAAAA,CACA,CAAA,SAEA,CAAA,CAAA,CAAA,GACsB,CAAA,CAAA,CAAA,CAAA,OAAA,6BAAA,CAClB,CAAA,UAAWC,CAAG,CAAA,SAAA,CAAA,iCAAA,+DACd,CAAA,CAAA,CAAU,CAAA,WAAA,CAAA,uBAUhB,CAAA,GAASC,CAAAA,CAAe,CAAE,CAAA,SACxB,CAAA,CAAA,CAAA,GAA2B,CAAA,CAAA,CAAA,CAAA,OAAM,6BAAA,CAAA,CAAA,KAAA,CAAU,CAAA,WAAA,CAAA,iBAO7C,CAAA,GAASC,CAAAA,CAAgB,CACvB,CAAA,SAAAH,CAAAA,CACA,CAAA,SAAA,CAAAI,CAAAA,CACA,UAIA,CAAA,CAAA,CAAA,GACsB,CAAA,CAAA,CAAA,CAAA,OAAA,6BAAA,CAAA,CAAA,iBACPH,CACT,CAAA,SAAA,CAAA,iCAAA,0nBAGF,CAAA,CAAA,CAAU,CAAA,WAAA,CAAA,kBAGT,CAAA,GACCI,CAAAA,CAAC,QAAI,CAAA,CAAA,CAAA,6BAAA,KAAU,CAAA,CAAA,SAAA,CAAA,2EACZC,CAAA,QAAiB,CAAA,6BAAA,6BAAU,CAAA,CAAA,SAAW,CACzC,UAIR,CAAA,CAAA,CAAA,CAAA,CAAA,IAAA,CAAA,CAAA,CAAA,4CAAA","file":"/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/chunk-GDOXPS6I.cjs","sourcesContent":[null,"'use client';\n\nimport type { ComponentProps, JSX } from 'react';\n\nimport { GripVerticalIcon } from 'lucide-react';\nimport * as ResizablePrimitive from 'react-resizable-panels';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: ResizablePanelGroup\n * -------------------------------------------------------------------------- */\n\nfunction ResizablePanelGroup({\n className,\n ...props\n}: ComponentProps<typeof ResizablePrimitive.PanelGroup>): JSX.Element {\n return (\n <ResizablePrimitive.PanelGroup\n className={cn('flex size-full data-[panel-group-direction=vertical]:flex-col', className)}\n data-slot=\"resizable-panel-group\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ResizablePanel\n * -------------------------------------------------------------------------- */\n\nfunction ResizablePanel({ ...props }: ComponentProps<typeof ResizablePrimitive.Panel>): JSX.Element {\n return <ResizablePrimitive.Panel data-slot=\"resizable-panel\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ResizableHandle\n * -------------------------------------------------------------------------- */\n\nfunction ResizableHandle({\n className,\n withHandle,\n ...props\n}: ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {\n withHandle?: boolean;\n}): JSX.Element {\n return (\n <ResizablePrimitive.PanelResizeHandle\n className={cn(\n 'bg-border focus-visible:bg-ring focus-visible:ring-ring/50 focus-visible:ring-3 outline-hidden relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90',\n className,\n )}\n data-slot=\"resizable-handle\"\n {...props}\n >\n {withHandle ? (\n <div className=\"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-sm border\">\n <GripVerticalIcon className=\"size-2.5\" />\n </div>\n ) : null}\n </ResizablePrimitive.PanelResizeHandle>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { ResizableHandle, ResizablePanel, ResizablePanelGroup };\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-GDOXPS6I.cjs","../src/components/resizable.tsx"],"names":["ResizablePrimitive","className","cn","ResizablePanel","ResizableHandle","withHandle","jsx","GripVerticalIcon"],"mappings":"AAAA,uWAAY,CAAC,wDCIJ,2CACGA,sHAaR,+CAJF,SAAAC,CAAAA,CACA,CAAA,SAEA,CAAA,CAAA,CAAA,GACsB,CAAA,CAAA,CAAA,CAAA,OAAA,6BAAA,CAClB,CAAA,UAAWC,CAAG,CAAA,SAAA,CAAA,iCAAA,+DACd,CAAA,CAAA,CAAU,CAAA,WAAA,CAAA,uBAUhB,CAAA,GAASC,CAAAA,CAAe,CAAE,CAAA,SACxB,CAAA,CAAA,CAAA,GAA2B,CAAA,CAAA,CAAA,CAAA,OAAM,6BAAA,CAAA,CAAA,KAAA,CAAU,CAAA,WAAA,CAAA,iBAO7C,CAAA,GAASC,CAAAA,CAAgB,CACvB,CAAA,SAAAH,CAAAA,CACA,CAAA,SAAA,CAAAI,CAAAA,CACA,UAIA,CAAA,CAAA,CAAA,GACsB,CAAA,CAAA,CAAA,CAAA,OAAA,6BAAA,CAAA,CAAA,iBACPH,CACT,CAAA,SAAA,CAAA,iCAAA,0nBAGF,CAAA,CAAA,CAAU,CAAA,WAAA,CAAA,kBAGT,CAAA,GACCI,CAAAA,CAAC,QAAI,CAAA,CAAA,CAAA,6BAAA,KAAU,CAAA,CAAA,SAAA,CAAA,2EACZC,CAAA,QAAiB,CAAA,6BAAA,6BAAU,CAAA,CAAA,SAAW,CACzC,UAIR,CAAA,CAAA,CAAA,CAAA,CAAA,IAAA,CAAA,CAAA,CAAA,4CAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-GDOXPS6I.cjs","sourcesContent":[null,"'use client';\n\nimport type { ComponentProps, JSX } from 'react';\n\nimport { GripVerticalIcon } from 'lucide-react';\nimport * as ResizablePrimitive from 'react-resizable-panels';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: ResizablePanelGroup\n * -------------------------------------------------------------------------- */\n\nfunction ResizablePanelGroup({\n className,\n ...props\n}: ComponentProps<typeof ResizablePrimitive.PanelGroup>): JSX.Element {\n return (\n <ResizablePrimitive.PanelGroup\n className={cn('flex size-full data-[panel-group-direction=vertical]:flex-col', className)}\n data-slot=\"resizable-panel-group\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ResizablePanel\n * -------------------------------------------------------------------------- */\n\nfunction ResizablePanel({ ...props }: ComponentProps<typeof ResizablePrimitive.Panel>): JSX.Element {\n return <ResizablePrimitive.Panel data-slot=\"resizable-panel\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ResizableHandle\n * -------------------------------------------------------------------------- */\n\nfunction ResizableHandle({\n className,\n withHandle,\n ...props\n}: ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {\n withHandle?: boolean;\n}): JSX.Element {\n return (\n <ResizablePrimitive.PanelResizeHandle\n className={cn(\n 'bg-border focus-visible:bg-ring focus-visible:ring-ring/50 focus-visible:ring-3 outline-hidden relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90',\n className,\n )}\n data-slot=\"resizable-handle\"\n {...props}\n >\n {withHandle ? (\n <div className=\"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-sm border\">\n <GripVerticalIcon className=\"size-2.5\" />\n </div>\n ) : null}\n </ResizablePrimitive.PanelResizeHandle>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { ResizableHandle, ResizablePanel, ResizablePanelGroup };\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/chunk-GGIVV535.cjs","../src/components/input-otp.tsx"],"names":["className","OTPInput","InputOTPGroup","cn","props","InputOTPSlot","inputOTPContext","useContext","isActive","hasFakeCaret","char","InputOTPSeparator","MinusIcon"],"mappings":"AAAA,qFAAY,CAAC,wDCIJ,qCACA,2CACA,8BAqFA,+CA7EW,SAAAA,CAAAA,CAAW,CAAA,SAAA,CAAA,CAAA,CAAA,kBAC7B,CAAA,CAAA,CAAA,GACGC,CAAAA,CAAA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,GAACC,CAAAA,CAAA,QAGP,CAAA,6BAAA,sBAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,kMAAA","file":"/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/chunk-GGIVV535.cjs","sourcesContent":[null,"'use client';\n\nimport type { ComponentProps, JSX } from 'react';\n\nimport { OTPInput, OTPInputContext } from 'input-otp';\nimport { MinusIcon } from 'lucide-react';\nimport { useContext } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: InputOtp\n * -------------------------------------------------------------------------- */\n\nfunction InputOTP({ className, containerClassName, ...props }: ComponentProps<typeof OTPInput>): JSX.Element {\n return (\n <OTPInput\n aria-label=\"One-time password\"\n className={cn(className)}\n containerClassName={cn('flex items-center gap-2 has-disabled:opacity-50', containerClassName)}\n data-slot=\"input-otp\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: InputOTPGroup\n * -------------------------------------------------------------------------- */\n\nfunction InputOTPGroup({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <div\n className={cn('flex items-center -space-x-px', className)}\n data-slot=\"input-otp-group\"\n role=\"group\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: InputOTPSlot\n * -------------------------------------------------------------------------- */\n\nfunction InputOTPSlot({\n className,\n index,\n ...props\n}: ComponentProps<'div'> & {\n index: number;\n}): JSX.Element {\n const inputOTPContext = useContext(OTPInputContext);\n const { isActive, char, hasFakeCaret } = inputOTPContext.slots[index];\n\n return (\n <div\n className={cn(\n 'border-input data-[active=true]:ring-3 data-[active=true]:border-ring data-[active=true]:ring-ring/50 not-has-disabled:shadow-xs outline-hidden data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 relative flex size-9 items-center justify-center border text-sm transition-all first:rounded-l-lg last:rounded-r-lg data-[active=true]:z-10',\n className,\n )}\n data-active={isActive}\n data-slot=\"input-otp-slot\"\n {...props}\n >\n {char}\n {hasFakeCaret ? (\n <div className=\"pointer-events-none absolute inset-0 flex items-center justify-center\">\n <div className=\"animate-caret-blink bg-foreground animation-duration-1000 h-4 w-px\" />\n </div>\n ) : null}\n </div>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: InputOTPSeparator\n * -------------------------------------------------------------------------- */\n\nfunction InputOTPSeparator({ ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <div data-slot=\"input-otp-separator\" role=\"separator\" {...props}>\n <MinusIcon />\n </div>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS } from 'input-otp';\nexport { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-GGIVV535.cjs","../src/components/input-otp.tsx"],"names":["className","OTPInput","InputOTPGroup","cn","props","InputOTPSlot","inputOTPContext","useContext","isActive","hasFakeCaret","char","InputOTPSeparator","MinusIcon"],"mappings":"AAAA,qFAAY,CAAC,wDCIJ,qCACA,2CACA,8BAqFA,+CA7EW,SAAAA,CAAAA,CAAW,CAAA,SAAA,CAAA,CAAA,CAAA,kBAC7B,CAAA,CAAA,CAAA,GACGC,CAAAA,CAAA,CACC,CAAA,OAAA,6BAAA,kBAAA,CAAA,CAAW,YAAA,CAAA,mBACGD,CAAS,SACvB,CAAA,iCAAA,CAAA,CAAA,CAAA,kBAAuB,CAAA,iCAAA,iDACvB,CAAA,CAAA,CAAU,CAAA,WACT,CAAA,WASP,CAAA,GAASE,CAAAA,CAAc,CAAE,CAAA,SAAAF,CAAAA,CAAW,CAAA,SAClC,CAAA,CAAA,CAAA,GACG,CAAA,CAAA,CAAA,CAAA,OACC,6BAAA,KAAWG,CAAG,CAAA,SAAA,CAAA,iCAAA,+BACd,CAAA,CAAA,CAAU,CAAA,WAAA,CAAA,iBACL,CACJ,IAAGC,CACN,OAQJ,CAAA,GAASC,CAAAA,CAAa,CACpB,CAAA,SAAAL,CAAAA,CACA,CAAA,SACA,CAAGI,CACL,CAAA,KAGE,CAAME,CAAAA,CAAkBC,GAA0B,CAAA,CAC5C,CAAE,CAAA,IAAA,CAAA,CAAA,+BAAA,yBAAAC,CAAU,CAAA,CAAA,QAAM,CAAA,CAAA,CAAA,IAAA,CAAA,CAAA,CAAAC,YAA4C,CAAA,CAEpE,CAAA,CAAA,CAAA,CAAA,KACG,CAAA,CAAA,CAAA,CAAA,OACC,8BAAA,KAAWN,CACT,CAAA,SAAA,CAAA,iCAAA,8eAGF,CAAA,CAAA,CAAA,CAAA,aACA,CAAA,CAAU,CAAA,WAAA,CAAA,gBAGT,CAAA,GAAAO,CACAD,CAAAA,QACE,CAAA,CAAI,CAAA,CAAA,CAAA,CAAA,6BAAA,KAAU,CAAA,CAAA,SAAA,CAAA,uEACZ,CAAA,QAAI,CAAA,6BAAA,KAAU,CAAA,CAAA,SAAA,CAAA,oEAWzB,CAAA,CAAA,CAAA,CAAA,CAAA,IAASE,CAAAA,CAAkB,CAAE,CAAA,SAC3B,CAAA,CAAA,CAAA,GACG,CAAA,CAAA,CAAA,CAAA,OAAI,6BAAA,KAAA,CAAU,CAAA,WAAA,CAAA,qBAA2B,CAAA,IAAa,CAAA,WACrD,CAAA,GAACC,CAAAA,CAAA,QAGP,CAAA,6BAAA,sBAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,kMAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-GGIVV535.cjs","sourcesContent":[null,"'use client';\n\nimport type { ComponentProps, JSX } from 'react';\n\nimport { OTPInput, OTPInputContext } from 'input-otp';\nimport { MinusIcon } from 'lucide-react';\nimport { useContext } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: InputOtp\n * -------------------------------------------------------------------------- */\n\nfunction InputOTP({ className, containerClassName, ...props }: ComponentProps<typeof OTPInput>): JSX.Element {\n return (\n <OTPInput\n aria-label=\"One-time password\"\n className={cn(className)}\n containerClassName={cn('flex items-center gap-2 has-disabled:opacity-50', containerClassName)}\n data-slot=\"input-otp\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: InputOTPGroup\n * -------------------------------------------------------------------------- */\n\nfunction InputOTPGroup({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <div\n className={cn('flex items-center -space-x-px', className)}\n data-slot=\"input-otp-group\"\n role=\"group\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: InputOTPSlot\n * -------------------------------------------------------------------------- */\n\nfunction InputOTPSlot({\n className,\n index,\n ...props\n}: ComponentProps<'div'> & {\n index: number;\n}): JSX.Element {\n const inputOTPContext = useContext(OTPInputContext);\n const { isActive, char, hasFakeCaret } = inputOTPContext.slots[index];\n\n return (\n <div\n className={cn(\n 'border-input data-[active=true]:ring-3 data-[active=true]:border-ring data-[active=true]:ring-ring/50 not-has-disabled:shadow-xs outline-hidden data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 relative flex size-9 items-center justify-center border text-sm transition-all first:rounded-l-lg last:rounded-r-lg data-[active=true]:z-10',\n className,\n )}\n data-active={isActive}\n data-slot=\"input-otp-slot\"\n {...props}\n >\n {char}\n {hasFakeCaret ? (\n <div className=\"pointer-events-none absolute inset-0 flex items-center justify-center\">\n <div className=\"animate-caret-blink bg-foreground animation-duration-1000 h-4 w-px\" />\n </div>\n ) : null}\n </div>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: InputOTPSeparator\n * -------------------------------------------------------------------------- */\n\nfunction InputOTPSeparator({ ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <div data-slot=\"input-otp-separator\" role=\"separator\" {...props}>\n <MinusIcon />\n </div>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS } from 'input-otp';\nexport { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };\n"]}
@@ -1,2 +1,2 @@
1
1
  import{a as o}from"./chunk-OKUFCFYT.js";import*as i from"@radix-ui/react-slider";import{useMemo as f}from"react";import{jsx as l,jsxs as c}from"react/jsx-runtime";function p({className:n,defaultValue:r,value:t,min:e=0,max:a=100,...d}){let s=f(()=>Array.isArray(t)?t:Array.isArray(r)?r:[e,a],[t,r,e,a]);return c(i.Root,{className:o("data-disabled:opacity-50 relative flex w-full touch-none select-none items-center data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",n),"data-slot":"slider",defaultValue:r,max:a,min:e,value:t,...d,children:[l(i.Track,{className:"bg-input relative w-full grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1 data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-1","data-slot":"slider-track",children:l(i.Range,{className:"bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full","data-slot":"slider-range"})}),Array.from({length:s.length},(u,m)=>l(i.Thumb,{"aria-label":"Volume",className:o("border-primary bg-primary after:bg-background active:not-data-disabled:after:size-1 focus-visible:ring-primary/20 dark:focus-visible:ring-primary/40 outline-hidden flex size-4 items-center justify-center rounded-full border-2 shadow-sm after:size-full after:rounded-full after:transition-[width,height] focus-visible:ring-4"),"data-slot":"slider-thumb"},m))]})}export{p as a};
2
- //# sourceMappingURL=chunk-HEK7QLFR.js.map
2
+ //# sourceMappingURL=chunk-GIPFEUMD.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/slider.tsx"],"names":["SliderPrimitive","useMemo","jsx","jsxs","Slider","className","defaultValue","value","min","max","props","_values","cn","_","index"],"mappings":"wCAAA,UAAYA,MAAqB,yBACjC,OAAwC,WAAAC,MAAe,QAyBnD,OAgBI,OAAAC,EAhBJ,QAAAC,MAAA,oBAjBJ,SAASC,EAAO,CACd,UAAAC,EACA,aAAAC,EACA,MAAAC,EACA,IAAAC,EAAM,EACN,IAAAC,EAAM,IACN,GAAGC,CACL,EAA6D,CAC3D,IAAMC,EAAUV,EAAQ,IAClB,MAAM,QAAQM,CAAK,EACdA,EAGF,MAAM,QAAQD,CAAY,EAAIA,EAAe,CAACE,EAAKC,CAAG,EAC5D,CAACF,EAAOD,EAAcE,EAAKC,CAAG,CAAC,EAElC,OACEN,EAAiB,OAAhB,CACC,UAAWS,EACT,oOACAP,CACF,EACA,YAAU,SACV,aAAcC,EACd,IAAKG,EACL,IAAKD,EACL,MAAOD,EACN,GAAGG,EAEJ,UAAAR,EAAiB,QAAhB,CACC,UAAU,uMACV,YAAU,eAEV,SAAAA,EAAiB,QAAhB,CACC,UAAU,8FACV,YAAU,eACZ,EACF,EAEC,MAAM,KAAK,CAAE,OAAQS,EAAQ,MAAO,EAAG,CAACE,EAAGC,IAC1CZ,EAAiB,QAAhB,CAEC,aAAW,SACX,UAAWU,EACT,qUACF,EACA,YAAU,gBALLE,CAMP,CACD,GACH,CAEJ","sourcesContent":["import * as SliderPrimitive from '@radix-ui/react-slider';\nimport { type ComponentProps, type JSX, useMemo } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Slider\n * -------------------------------------------------------------------------- */\n\nfunction Slider({\n className,\n defaultValue,\n value,\n min = 0,\n max = 100,\n ...props\n}: ComponentProps<typeof SliderPrimitive.Root>): JSX.Element {\n const _values = useMemo(() => {\n if (Array.isArray(value)) {\n return value;\n }\n\n return Array.isArray(defaultValue) ? defaultValue : [min, max];\n }, [value, defaultValue, min, max]);\n\n return (\n <SliderPrimitive.Root\n className={cn(\n 'data-disabled:opacity-50 relative flex w-full touch-none select-none items-center data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col',\n className,\n )}\n data-slot=\"slider\"\n defaultValue={defaultValue}\n max={max}\n min={min}\n value={value}\n {...props}\n >\n <SliderPrimitive.Track\n className=\"bg-input relative w-full grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1 data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-1\"\n data-slot=\"slider-track\"\n >\n <SliderPrimitive.Range\n className=\"bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full\"\n data-slot=\"slider-range\"\n />\n </SliderPrimitive.Track>\n\n {Array.from({ length: _values.length }, (_, index) => (\n <SliderPrimitive.Thumb\n key={index}\n aria-label=\"Volume\"\n className={cn(\n 'border-primary bg-primary after:bg-background active:not-data-disabled:after:size-1 focus-visible:ring-primary/20 dark:focus-visible:ring-primary/40 outline-hidden flex size-4 items-center justify-center rounded-full border-2 shadow-sm after:size-full after:rounded-full after:transition-[width,height] focus-visible:ring-4',\n )}\n data-slot=\"slider-thumb\"\n />\n ))}\n </SliderPrimitive.Root>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Slider };\n"]}
1
+ {"version":3,"sources":["../src/components/slider.tsx"],"names":["SliderPrimitive","useMemo","jsx","jsxs","Slider","className","defaultValue","value","min","max","props","_values","cn","_","index"],"mappings":"wCAAA,UAAYA,MAAqB,yBACjC,OAAwC,WAAAC,MAAe,QAyBnD,OAgBI,OAAAC,EAhBJ,QAAAC,MAAA,oBAjBJ,SAASC,EAAO,CACd,UAAAC,EACA,aAAAC,EACA,MAAAC,EACA,IAAAC,EAAM,EACN,IAAAC,EAAM,IACN,GAAGC,CACL,EAA6D,CAC3D,IAAMC,EAAUV,EAAQ,IAClB,MAAM,QAAQM,CAAK,EACdA,EAGF,MAAM,QAAQD,CAAY,EAAIA,EAAe,CAACE,EAAKC,CAAG,EAC5D,CAACF,EAAOD,EAAcE,EAAKC,CAAG,CAAC,EAElC,OACEN,EAAiB,OAAhB,CACC,UAAWS,EACT,oOACAP,CACF,EACA,YAAU,SACV,aAAcC,EACd,IAAKG,EACL,IAAKD,EACL,MAAOD,EACN,GAAGG,EAEJ,UAAAR,EAAiB,QAAhB,CACC,UAAU,uMACV,YAAU,eAEV,SAAAA,EAAiB,QAAhB,CACC,UAAU,8FACV,YAAU,eACZ,EACF,EACC,MAAM,KAAK,CAAE,OAAQS,EAAQ,MAAO,EAAG,CAACE,EAAGC,IAC1CZ,EAAiB,QAAhB,CAEC,aAAW,SACX,UAAWU,EACT,qUACF,EACA,YAAU,gBALLE,CAMP,CACD,GACH,CAEJ","sourcesContent":["import * as SliderPrimitive from '@radix-ui/react-slider';\nimport { type ComponentProps, type JSX, useMemo } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Slider\n * -------------------------------------------------------------------------- */\n\nfunction Slider({\n className,\n defaultValue,\n value,\n min = 0,\n max = 100,\n ...props\n}: ComponentProps<typeof SliderPrimitive.Root>): JSX.Element {\n const _values = useMemo(() => {\n if (Array.isArray(value)) {\n return value;\n }\n\n return Array.isArray(defaultValue) ? defaultValue : [min, max];\n }, [value, defaultValue, min, max]);\n\n return (\n <SliderPrimitive.Root\n className={cn(\n 'data-disabled:opacity-50 relative flex w-full touch-none select-none items-center data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col',\n className,\n )}\n data-slot=\"slider\"\n defaultValue={defaultValue}\n max={max}\n min={min}\n value={value}\n {...props}\n >\n <SliderPrimitive.Track\n className=\"bg-input relative w-full grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1 data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-1\"\n data-slot=\"slider-track\"\n >\n <SliderPrimitive.Range\n className=\"bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full\"\n data-slot=\"slider-range\"\n />\n </SliderPrimitive.Track>\n {Array.from({ length: _values.length }, (_, index) => (\n <SliderPrimitive.Thumb\n key={index}\n aria-label=\"Volume\"\n className={cn(\n 'border-primary bg-primary after:bg-background active:not-data-disabled:after:size-1 focus-visible:ring-primary/20 dark:focus-visible:ring-primary/40 outline-hidden flex size-4 items-center justify-center rounded-full border-2 shadow-sm after:size-full after:rounded-full after:transition-[width,height] focus-visible:ring-4',\n )}\n data-slot=\"slider-thumb\"\n />\n ))}\n </SliderPrimitive.Root>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Slider };\n"]}
@@ -0,0 +1,2 @@
1
+ "use client";import{a as d}from"./chunk-ZFCLI44C.js";import{a}from"./chunk-OKUFCFYT.js";import{Drawer as o}from"vaul";import{jsx as e,jsxs as l}from"react/jsx-runtime";function u({shouldScaleBackground:t=!0,...r}){return e(o.Root,{"data-slot":"drawer",shouldScaleBackground:t,...r})}function w({...t}){return e(o.Trigger,{"data-slot":"drawer-trigger",...t})}function c({children:t,className:r,classNames:i,...n}){return l(o.Portal,{children:[e(o.Overlay,{className:a("bg-popover-overlay fixed inset-0 z-50",i?.overlay),"data-slot":"drawer-overlay"}),l(o.Content,{className:a("group/drawer-content bg-background fixed z-50 flex h-auto flex-col data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm",i?.content,r),"data-slot":"drawer-content",...n,children:[e("div",{className:a("bg-muted mx-auto mt-4 hidden h-1.5 w-12 shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block",i?.handle)}),t]})]})}function v({className:t,...r}){return e("div",{className:a("flex flex-col gap-1.5 p-4",t),"data-slot":"drawer-header",...r})}function f({className:t,...r}){return e("main",{className:a("overflow-auto px-4 py-2",t),"data-slot":"drawer-body",...r})}function g({className:t,...r}){return e("div",{className:a("mt-auto flex flex-col gap-2 p-4",t),"data-slot":"drawer-footer",...r})}function P({className:t,...r}){return e(o.Title,{className:a("text-foreground font-semibold",t),"data-slot":"drawer-title",...r})}function D({className:t,...r}){return e(o.Description,{className:a("text-muted-foreground text-sm",t),"data-slot":"drawer-description",...r})}function y({className:t,size:r,variant:i="outline",...n}){return e(o.Close,{className:d({className:t,size:r,variant:i}),"data-slot":"drawer-close",...n})}export{u as a,w as b,c,v as d,f as e,g as f,P as g,D as h,y as i};
2
+ //# sourceMappingURL=chunk-GL6VRBO4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/drawer.tsx"],"names":["DrawerPrimitive","jsx","jsxs","Drawer","shouldScaleBackground","props","DrawerTrigger","DrawerContent","children","className","classNames","cn","DrawerHeader","DrawerBody","DrawerFooter","DrawerTitle","DrawerDescription","DrawerClose","size","variant","buttonVariants"],"mappings":"2EAKA,OAAS,UAAUA,MAAuB,OAUjC,cAAAC,EAiCH,QAAAC,MAjCG,oBADT,SAASC,EAAO,CAAE,sBAAAC,EAAwB,GAAM,GAAGC,CAAM,EAA6D,CACpH,OAAOJ,EAACD,EAAgB,KAAhB,CAAqB,YAAU,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oE,CACnH,OACEJ,EAACD,EAAgB,YAAhB,CACC,UAAWW,EAAG,gCAAiCF,CAAS,EACxD,YAAU,qBACT,GAAGJ,EACN,CAEJ,CAMA,SAASY,EAAY,CACnB,UAAAR,EACA,KAAAS,EACA,QAAAC,EAAU,UACV,GAAGd,CACL,EAGgB,CACd,OACEJ,EAACD,EAAgB,MAAhB,CACC,UAAWoB,EAAe,CAAE,UAAAX,EAAW,KAAAS,EAAM,QAAAC,CAAQ,CAAC,EACtD,YAAU,eACT,GAAGd,EACN,CAEJ","sourcesContent":["'use client';\n\nimport type { ComponentProps, JSX } from 'react';\nimport type { VariantProps } from 'tailwind-variants';\n\nimport { Drawer as DrawerPrimitive } from 'vaul';\n\nimport { buttonVariants } from '@/components/button';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Drawer\n * -------------------------------------------------------------------------- */\n\nfunction Drawer({ shouldScaleBackground = true, ...props }: ComponentProps<typeof DrawerPrimitive.Root>): JSX.Element {\n return <DrawerPrimitive.Root data-slot=\"drawer\" shouldScaleBackground={shouldScaleBackground} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerTrigger\n * -------------------------------------------------------------------------- */\n\nfunction DrawerTrigger({ ...props }: ComponentProps<typeof DrawerPrimitive.Trigger>): JSX.Element {\n return <DrawerPrimitive.Trigger data-slot=\"drawer-trigger\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerContent\n * -------------------------------------------------------------------------- */\n\nfunction DrawerContent({\n children,\n className,\n classNames,\n ...props\n}: ComponentProps<typeof DrawerPrimitive.Content> & {\n classNames?: {\n content?: string;\n handle?: string;\n overlay?: string;\n };\n}): JSX.Element {\n return (\n <DrawerPrimitive.Portal>\n <DrawerPrimitive.Overlay\n className={cn('bg-popover-overlay fixed inset-0 z-50', classNames?.overlay)}\n data-slot=\"drawer-overlay\"\n />\n <DrawerPrimitive.Content\n className={cn(\n 'group/drawer-content bg-background fixed z-50 flex h-auto flex-col data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm',\n classNames?.content,\n className,\n )}\n data-slot=\"drawer-content\"\n {...props}\n >\n <div\n className={cn(\n 'bg-muted mx-auto mt-4 hidden h-1.5 w-12 shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block',\n classNames?.handle,\n )}\n />\n {children}\n </DrawerPrimitive.Content>\n </DrawerPrimitive.Portal>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerHeader\n * -------------------------------------------------------------------------- */\n\nfunction DrawerHeader({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return <div className={cn('flex flex-col gap-1.5 p-4', className)} data-slot=\"drawer-header\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerBody\n * -------------------------------------------------------------------------- */\n\nfunction DrawerBody({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return <main className={cn('overflow-auto px-4 py-2', className)} data-slot=\"drawer-body\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerFooter\n * -------------------------------------------------------------------------- */\n\nfunction DrawerFooter({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return <div className={cn('mt-auto flex flex-col gap-2 p-4', className)} data-slot=\"drawer-footer\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerTitle\n * -------------------------------------------------------------------------- */\n\nfunction DrawerTitle({ className, ...props }: ComponentProps<typeof DrawerPrimitive.Title>): JSX.Element {\n return (\n <DrawerPrimitive.Title\n className={cn('text-foreground font-semibold', className)}\n data-slot=\"drawer-title\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerDescription\n * -------------------------------------------------------------------------- */\n\nfunction DrawerDescription({ className, ...props }: ComponentProps<typeof DrawerPrimitive.Description>): JSX.Element {\n return (\n <DrawerPrimitive.Description\n className={cn('text-muted-foreground text-sm', className)}\n data-slot=\"drawer-description\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerClose\n * -------------------------------------------------------------------------- */\n\nfunction DrawerClose({\n className,\n size,\n variant = 'outline',\n ...props\n}: ComponentProps<typeof DrawerPrimitive.Close> & {\n size?: VariantProps<typeof buttonVariants>['size'];\n variant?: VariantProps<typeof buttonVariants>['variant'];\n}): JSX.Element {\n return (\n <DrawerPrimitive.Close\n className={buttonVariants({ className, size, variant })}\n data-slot=\"drawer-close\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Drawer,\n DrawerBody,\n DrawerClose,\n DrawerContent,\n DrawerDescription,\n DrawerFooter,\n DrawerHeader,\n DrawerTitle,\n DrawerTrigger,\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/chunk-GPPLLR2C.cjs","../src/components/textarea.tsx"],"names":["Textarea","className","props","jsx","cn"],"mappings":"AAAA,iIAAwC,+CCUpC,SAFKA,CAAAA,CAAS,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAA4C,CAClF,OACEC,6BAAAA,UAAC,CAAA,CACC,SAAA,CAAWC,iCAAAA,0gBACT,CACAH,CACF,CAAA,CACA,WAAA,CAAU,UAAA,CACT,GAAGC,CAAAA,CACN,CAEJ,CAAA,cAAA","file":"/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/chunk-GPPLLR2C.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Textarea\n * -------------------------------------------------------------------------- */\n\nfunction Textarea({ className, ...props }: ComponentProps<'textarea'>): JSX.Element {\n return (\n <textarea\n className={cn(\n 'border-input hover:not-disabled:not-focus-visible:border-ring/60 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-3 placeholder:text-muted-foreground shadow-xs outline-hidden aria-invalid:border-destructive hover:not-disabled:not-focus-within:aria-invalid:border-destructive/60 focus-within:aria-invalid:ring-destructive/20 dark:focus-within:aria-invalid:ring-destructive/40 dark:bg-input/30 flex min-h-16 w-full grow rounded-lg border px-3 py-2 text-base transition disabled:opacity-50 md:text-sm',\n className,\n )}\n data-slot=\"textarea\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Textarea };\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-GPPLLR2C.cjs","../src/components/textarea.tsx"],"names":["Textarea","className","props","jsx","cn"],"mappings":"AAAA,iIAAwC,+CCUpC,SAFKA,CAAAA,CAAS,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAA4C,CAClF,OACEC,6BAAAA,UAAC,CAAA,CACC,SAAA,CAAWC,iCAAAA,0gBACT,CACAH,CACF,CAAA,CACA,WAAA,CAAU,UAAA,CACT,GAAGC,CAAAA,CACN,CAEJ,CAAA,cAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-GPPLLR2C.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Textarea\n * -------------------------------------------------------------------------- */\n\nfunction Textarea({ className, ...props }: ComponentProps<'textarea'>): JSX.Element {\n return (\n <textarea\n className={cn(\n 'border-input hover:not-disabled:not-focus-visible:border-ring/60 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-3 placeholder:text-muted-foreground shadow-xs outline-hidden aria-invalid:border-destructive hover:not-disabled:not-focus-within:aria-invalid:border-destructive/60 focus-within:aria-invalid:ring-destructive/20 dark:focus-within:aria-invalid:ring-destructive/40 dark:bg-input/30 flex min-h-16 w-full grow rounded-lg border px-3 py-2 text-base transition disabled:opacity-50 md:text-sm',\n className,\n )}\n data-slot=\"textarea\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Textarea };\n"]}
@@ -1,2 +1,2 @@
1
- "use client";import{a as r,c as d,g as i,h as p}from"./chunk-MRIHA5JJ.js";import{a as n}from"./chunk-OKUFCFYT.js";import{VisuallyHidden as s}from"@radix-ui/react-visually-hidden";import{Command as m}from"cmdk";import{SearchIcon as l}from"lucide-react";import{jsx as t,jsxs as a}from"react/jsx-runtime";function c({className:e,...o}){return t(m,{className:n("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 t(r,{"data-slot":"command-dialog",...o,children:a(d,{className:"rounded-t-lg sm:rounded-lg","data-slot":"command-dialog-content",children:[a(s,{children:[t(i,{children:"Search command"}),t(p,{children:"Use the search bar to find and select the desired command."})]}),t(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 a("div",{className:"flex items-center gap-2 border-b px-3","cmdk-input-wrapper":"","data-slot":"command-input-wrapper",children:[t(l,{className:"size-4 shrink-0 opacity-50"}),t(m.Input,{className:n("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 t(m.List,{className:n("max-h-75 overflow-y-auto overflow-x-hidden",e),"data-slot":"command-list",...o})}function P({className:e,...o}){return t(m.Empty,{className:n("py-6 text-center text-sm",e),"data-slot":"command-empty",...o})}function S({className:e,...o}){return t(m.Group,{className: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",e),"data-slot":"command-group",...o})}function k({className:e,...o}){return t(m.Separator,{className:n("bg-border -mx-1 h-px",e),"data-slot":"command-separator",...o})}function _({className:e,...o}){return t(m.Item,{className: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",e),"data-slot":"command-item",...o})}function E({className:e,...o}){return t(m.Loading,{className:n("flex justify-center p-2",e),"data-slot":"command-loading",...o})}function N({className:e,...o}){return t("span",{className:n("text-muted-foreground ml-auto text-xs tracking-widest group-aria-selected/command-item:text-current",e),"data-slot":"command-shortcut",...o})}export{c as a,h as b,y as c,v as d,P as e,S as f,k as g,_ as h,E as i,N as j};
2
- //# sourceMappingURL=chunk-HVGYQUXR.js.map
1
+ "use client";import{a as r,c as d,g as i,h as p}from"./chunk-SQLHRPWG.js";import{a as n}from"./chunk-OKUFCFYT.js";import{VisuallyHidden as s}from"@radix-ui/react-visually-hidden";import{Command as m}from"cmdk";import{SearchIcon as l}from"lucide-react";import{jsx as t,jsxs as a}from"react/jsx-runtime";function c({className:e,...o}){return t(m,{className:n("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 t(r,{"data-slot":"command-dialog",...o,children:a(d,{className:"rounded-t-lg sm:rounded-lg","data-slot":"command-dialog-content",children:[a(s,{children:[t(i,{children:"Search command"}),t(p,{children:"Use the search bar to find and select the desired command."})]}),t(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 a("div",{className:"flex items-center gap-2 border-b px-3","cmdk-input-wrapper":"","data-slot":"command-input-wrapper",children:[t(l,{className:"size-4 shrink-0 opacity-50"}),t(m.Input,{className:n("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 t(m.List,{className:n("max-h-75 overflow-y-auto overflow-x-hidden",e),"data-slot":"command-list",...o})}function P({className:e,...o}){return t(m.Empty,{className:n("py-6 text-center text-sm",e),"data-slot":"command-empty",...o})}function S({className:e,...o}){return t(m.Group,{className: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",e),"data-slot":"command-group",...o})}function k({className:e,...o}){return t(m.Separator,{className:n("bg-border -mx-1 h-px",e),"data-slot":"command-separator",...o})}function _({className:e,...o}){return t(m.Item,{className: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",e),"data-slot":"command-item",...o})}function E({className:e,...o}){return t(m.Loading,{className:n("flex justify-center p-2",e),"data-slot":"command-loading",...o})}function N({className:e,...o}){return t("span",{className:n("text-muted-foreground ml-auto text-xs tracking-widest group-aria-selected/command-item:text-current",e),"data-slot":"command-shortcut",...o})}export{c as a,h as b,y as c,v as d,P as e,S as f,k as g,_ as h,E as i,N as j};
2
+ //# sourceMappingURL=chunk-GXFGJ53T.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/chunk-HD2FCRL3.cjs","../src/components/avatar.tsx"],"names":["Avatar","className","props","jsx","cn","AvatarImage","AvatarFallback"],"mappings":"AAAA,mZAAwC,oGCEP,+CAU7B,SAFKA,CAAAA,CAAO,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAA6D,CACjG,OACEC,6BAAAA,CAAiB,CAAA,IAAA,CAAhB,CACC,SAAA,CAAWC,iCAAAA,4DAAG,CAA8DH,CAAS,CAAA,CACrF,WAAA,CAAU,QAAA,CACT,GAAGC,CAAAA,CACN,CAEJ,CAMA,SAASG,CAAAA,CAAY,CAAE,SAAA,CAAAJ,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAA8D,CACvG,OACEC,6BAAAA,CAAiB,CAAA,KAAA,CAAhB,CAAsB,SAAA,CAAWC,iCAAAA,yBAAG,CAA2BH,CAAS,CAAA,CAAG,WAAA,CAAU,cAAA,CAAgB,GAAGC,CAAAA,CAAO,CAEpH,CAMA,SAASI,CAAAA,CAAe,CAAE,SAAA,CAAAL,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAiE,CAC7G,OACEC,6BAAAA,CAAiB,CAAA,QAAA,CAAhB,CACC,SAAA,CAAWC,iCAAAA,kEAAG,CAAoEH,CAAS,CAAA,CAC3F,WAAA,CAAU,iBAAA,CACT,GAAGC,CAAAA,CACN,CAEJ,CAAA,4CAAA","file":"/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/chunk-HD2FCRL3.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\n\nimport * as AvatarPrimitive from '@radix-ui/react-avatar';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Avatar\n * -------------------------------------------------------------------------- */\n\nfunction Avatar({ className, ...props }: ComponentProps<typeof AvatarPrimitive.Root>): JSX.Element {\n return (\n <AvatarPrimitive.Root\n className={cn('relative flex size-8 shrink-0 overflow-hidden rounded-full', className)}\n data-slot=\"avatar\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AvatarImage\n * -------------------------------------------------------------------------- */\n\nfunction AvatarImage({ className, ...props }: ComponentProps<typeof AvatarPrimitive.Image>): JSX.Element {\n return (\n <AvatarPrimitive.Image className={cn('aspect-square size-full', className)} data-slot=\"avatar-image\" {...props} />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AvatarFallback\n * -------------------------------------------------------------------------- */\n\nfunction AvatarFallback({ className, ...props }: ComponentProps<typeof AvatarPrimitive.Fallback>): JSX.Element {\n return (\n <AvatarPrimitive.Fallback\n className={cn('bg-muted flex size-full items-center justify-center rounded-full', className)}\n data-slot=\"avatar-fallback\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Avatar, AvatarFallback, AvatarImage };\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-HD2FCRL3.cjs","../src/components/avatar.tsx"],"names":["Avatar","className","props","jsx","cn","AvatarImage","AvatarFallback"],"mappings":"AAAA,mZAAwC,oGCEP,+CAU7B,SAFKA,CAAAA,CAAO,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAA6D,CACjG,OACEC,6BAAAA,CAAiB,CAAA,IAAA,CAAhB,CACC,SAAA,CAAWC,iCAAAA,4DAAG,CAA8DH,CAAS,CAAA,CACrF,WAAA,CAAU,QAAA,CACT,GAAGC,CAAAA,CACN,CAEJ,CAMA,SAASG,CAAAA,CAAY,CAAE,SAAA,CAAAJ,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAA8D,CACvG,OACEC,6BAAAA,CAAiB,CAAA,KAAA,CAAhB,CAAsB,SAAA,CAAWC,iCAAAA,yBAAG,CAA2BH,CAAS,CAAA,CAAG,WAAA,CAAU,cAAA,CAAgB,GAAGC,CAAAA,CAAO,CAEpH,CAMA,SAASI,CAAAA,CAAe,CAAE,SAAA,CAAAL,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAiE,CAC7G,OACEC,6BAAAA,CAAiB,CAAA,QAAA,CAAhB,CACC,SAAA,CAAWC,iCAAAA,kEAAG,CAAoEH,CAAS,CAAA,CAC3F,WAAA,CAAU,iBAAA,CACT,GAAGC,CAAAA,CACN,CAEJ,CAAA,4CAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-HD2FCRL3.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\n\nimport * as AvatarPrimitive from '@radix-ui/react-avatar';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Avatar\n * -------------------------------------------------------------------------- */\n\nfunction Avatar({ className, ...props }: ComponentProps<typeof AvatarPrimitive.Root>): JSX.Element {\n return (\n <AvatarPrimitive.Root\n className={cn('relative flex size-8 shrink-0 overflow-hidden rounded-full', className)}\n data-slot=\"avatar\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AvatarImage\n * -------------------------------------------------------------------------- */\n\nfunction AvatarImage({ className, ...props }: ComponentProps<typeof AvatarPrimitive.Image>): JSX.Element {\n return (\n <AvatarPrimitive.Image className={cn('aspect-square size-full', className)} data-slot=\"avatar-image\" {...props} />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AvatarFallback\n * -------------------------------------------------------------------------- */\n\nfunction AvatarFallback({ className, ...props }: ComponentProps<typeof AvatarPrimitive.Fallback>): JSX.Element {\n return (\n <AvatarPrimitive.Fallback\n className={cn('bg-muted flex size-full items-center justify-center rounded-full', className)}\n data-slot=\"avatar-fallback\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Avatar, AvatarFallback, AvatarImage };\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/chunk-HFJKDL4E.cjs","../src/components/kbd.tsx"],"names":["Kbd","asChild","className","props","jsx","Slot","cn"],"mappings":"AAAA,iIAAwC,iDCEnB,+CAkBjB,SAVKA,CAAAA,CAAI,CACX,OAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAEgB,CAGd,OACEC,6BAAAA,CAHgBH,CAAUI,eAAAA,CAAO,KAAA,CAGhC,CACC,SAAA,CAAWC,iCAAAA,sIACT,CACAJ,CACF,CAAA,CACA,WAAA,CAAU,KAAA,CACT,GAAGC,CAAAA,CACN,CAEJ,CAAA,cAAA","file":"/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/chunk-HFJKDL4E.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\n\nimport { Slot } from '@radix-ui/react-slot';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Kbd\n * -------------------------------------------------------------------------- */\n\nfunction Kbd({\n asChild,\n className,\n ...props\n}: ComponentProps<'kbd'> & {\n asChild?: boolean;\n}): JSX.Element {\n const Component = asChild ? Slot : 'kbd';\n\n return (\n <Component\n className={cn(\n 'bg-muted text-muted-foreground inline-flex h-5 select-none items-center gap-1 rounded-sm border px-1.5 font-mono text-xs font-medium',\n className,\n )}\n data-slot=\"kbd\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Kbd };\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-HFJKDL4E.cjs","../src/components/kbd.tsx"],"names":["Kbd","asChild","className","props","jsx","Slot","cn"],"mappings":"AAAA,iIAAwC,iDCEnB,+CAkBjB,SAVKA,CAAAA,CAAI,CACX,OAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAEgB,CAGd,OACEC,6BAAAA,CAHgBH,CAAUI,eAAAA,CAAO,KAAA,CAGhC,CACC,SAAA,CAAWC,iCAAAA,sIACT,CACAJ,CACF,CAAA,CACA,WAAA,CAAU,KAAA,CACT,GAAGC,CAAAA,CACN,CAEJ,CAAA,cAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-HFJKDL4E.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\n\nimport { Slot } from '@radix-ui/react-slot';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Kbd\n * -------------------------------------------------------------------------- */\n\nfunction Kbd({\n asChild,\n className,\n ...props\n}: ComponentProps<'kbd'> & {\n asChild?: boolean;\n}): JSX.Element {\n const Component = asChild ? Slot : 'kbd';\n\n return (\n <Component\n className={cn(\n 'bg-muted text-muted-foreground inline-flex h-5 select-none items-center gap-1 rounded-sm border px-1.5 font-mono text-xs font-medium',\n className,\n )}\n data-slot=\"kbd\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Kbd };\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/chunk-HSMBTYPE.cjs","../src/components/scroll-area.tsx"],"names":["ScrollAreaPrimitive","useCarouselContext","createCarouselContext","SCROLL_AREA_NAME","ScrollArea","children","className","props","CarouselProvider","size","jsxs","cn","jsx","ScrollAreaScrollbar","orientation","__scopeScrollArea","scrollAreaScrollbarVariants"],"mappings":"AAAA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use client';\n\nimport type { Scope } from '@radix-ui/react-context';\nimport type { ComponentProps, JSX } from 'react';\nimport type { VariantProps } from 'tailwind-variants';\n\nimport { createContextScope } from '@radix-ui/react-context';\nimport * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';\nimport { tv } from 'tailwind-variants';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Variant: ScrollAreaScrollbar\n * -------------------------------------------------------------------------- */\n\nconst scrollAreaScrollbarVariants = tv({\n base: 'flex touch-none select-none p-px transition-colors',\n compoundVariants: [\n {\n className: 'w-1.5',\n orientation: 'vertical',\n size: 'sm',\n },\n {\n className: 'w-2',\n orientation: 'vertical',\n size: 'md',\n },\n {\n className: 'w-2.5',\n orientation: 'vertical',\n size: 'lg',\n },\n {\n className: 'h-1.5',\n orientation: 'horizontal',\n size: 'sm',\n },\n {\n className: 'h-2',\n orientation: 'horizontal',\n size: 'md',\n },\n {\n className: 'h-2.5',\n orientation: 'horizontal',\n size: 'lg',\n },\n ],\n variants: {\n orientation: {\n horizontal: 'w-full flex-col border-t border-t-transparent',\n vertical: 'h-full flex-row border-l border-l-transparent',\n },\n size: {\n none: '',\n sm: '',\n md: '',\n lg: '',\n },\n },\n defaultVariants: {\n size: 'md',\n vertical: 'vertical',\n },\n});\n\n/* -----------------------------------------------------------------------------\n * Context: ScrollArea\n * -------------------------------------------------------------------------- */\n\nconst SCROLL_AREA_NAME = 'ScrollArea';\n\ntype ScopedProps<P> = P & { __scopeScrollArea?: Scope };\n\nconst [createCarouselContext] = createContextScope(SCROLL_AREA_NAME);\n\ntype ScrollAreaContextValue = Pick<VariantProps<typeof scrollAreaScrollbarVariants>, 'size'>;\n\nconst [CarouselProvider, useCarouselContext] = createCarouselContext<ScrollAreaContextValue>(SCROLL_AREA_NAME);\n\n/* -----------------------------------------------------------------------------\n * Component: ScrollArea\n * -------------------------------------------------------------------------- */\n\nfunction ScrollArea({\n __scopeScrollArea,\n children,\n className,\n size,\n ...props\n}: ScopedProps<ComponentProps<typeof ScrollAreaPrimitive.Root> & ScrollAreaContextValue>): JSX.Element {\n return (\n <CarouselProvider scope={__scopeScrollArea} size={size}>\n <ScrollAreaPrimitive.Root className={cn('relative', className)} data-slot=\"scroll-area\" {...props}>\n <ScrollAreaPrimitive.Viewport\n className=\"outline-ring ring-ring/50 size-full rounded-[inherit] transition focus-visible:outline-1 focus-visible:ring-4 [&>*]:h-full\"\n data-slot=\"scroll-area-viewport\"\n >\n {children}\n </ScrollAreaPrimitive.Viewport>\n <ScrollAreaScrollbar orientation=\"vertical\" />\n <ScrollAreaScrollbar orientation=\"horizontal\" />\n <ScrollAreaPrimitive.Corner />\n </ScrollAreaPrimitive.Root>\n </CarouselProvider>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ScrollAreaScrollbar\n * -------------------------------------------------------------------------- */\n\nfunction ScrollAreaScrollbar({\n __scopeScrollArea,\n className,\n orientation,\n ...props\n}: ScopedProps<ComponentProps<typeof ScrollAreaPrimitive.Scrollbar>>): JSX.Element {\n const { size } = useCarouselContext(SCROLL_AREA_NAME, __scopeScrollArea);\n\n return (\n <ScrollAreaPrimitive.Scrollbar\n className={scrollAreaScrollbarVariants({ className, orientation, size })}\n data-slot=\"scroll-area-scrollbar\"\n orientation={orientation}\n {...props}\n >\n <ScrollAreaPrimitive.ScrollAreaThumb className=\"bg-border relative flex-1 rounded-full\" />\n </ScrollAreaPrimitive.Scrollbar>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { ScrollArea, ScrollAreaScrollbar };\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-HSMBTYPE.cjs","../src/components/scroll-area.tsx"],"names":["ScrollAreaPrimitive","useCarouselContext","createCarouselContext","SCROLL_AREA_NAME","ScrollArea","children","className","props","CarouselProvider","size","jsxs","cn","jsx","ScrollAreaScrollbar","orientation","__scopeScrollArea","scrollAreaScrollbarVariants"],"m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client';\n\nimport type { Scope } from '@radix-ui/react-context';\nimport type { ComponentProps, JSX } from 'react';\nimport type { VariantProps } from 'tailwind-variants';\n\nimport { createContextScope } from '@radix-ui/react-context';\nimport * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';\nimport { tv } from 'tailwind-variants';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Variant: ScrollAreaScrollbar\n * -------------------------------------------------------------------------- */\n\nconst scrollAreaScrollbarVariants = tv({\n base: 'flex touch-none select-none p-px transition-colors',\n compoundVariants: [\n {\n className: 'w-1.5',\n orientation: 'vertical',\n size: 'sm',\n },\n {\n className: 'w-2',\n orientation: 'vertical',\n size: 'md',\n },\n {\n className: 'w-2.5',\n orientation: 'vertical',\n size: 'lg',\n },\n {\n className: 'h-1.5',\n orientation: 'horizontal',\n size: 'sm',\n },\n {\n className: 'h-2',\n orientation: 'horizontal',\n size: 'md',\n },\n {\n className: 'h-2.5',\n orientation: 'horizontal',\n size: 'lg',\n },\n ],\n variants: {\n orientation: {\n horizontal: 'w-full flex-col border-t border-t-transparent',\n vertical: 'h-full flex-row border-l border-l-transparent',\n },\n size: {\n none: '',\n sm: '',\n md: '',\n lg: '',\n },\n },\n defaultVariants: {\n size: 'md',\n vertical: 'vertical',\n },\n});\n\n/* -----------------------------------------------------------------------------\n * Context: ScrollArea\n * -------------------------------------------------------------------------- */\n\nconst SCROLL_AREA_NAME = 'ScrollArea';\n\ntype ScopedProps<P> = P & { __scopeScrollArea?: Scope };\n\nconst [createCarouselContext] = createContextScope(SCROLL_AREA_NAME);\n\ntype ScrollAreaContextValue = Pick<VariantProps<typeof scrollAreaScrollbarVariants>, 'size'>;\n\nconst [CarouselProvider, useCarouselContext] = createCarouselContext<ScrollAreaContextValue>(SCROLL_AREA_NAME);\n\n/* -----------------------------------------------------------------------------\n * Component: ScrollArea\n * -------------------------------------------------------------------------- */\n\nfunction ScrollArea({\n __scopeScrollArea,\n children,\n className,\n size,\n ...props\n}: ScopedProps<ComponentProps<typeof ScrollAreaPrimitive.Root> & ScrollAreaContextValue>): JSX.Element {\n return (\n <CarouselProvider scope={__scopeScrollArea} size={size}>\n <ScrollAreaPrimitive.Root className={cn('relative', className)} data-slot=\"scroll-area\" {...props}>\n <ScrollAreaPrimitive.Viewport\n className=\"outline-ring ring-ring/50 size-full rounded-[inherit] transition focus-visible:outline-1 focus-visible:ring-4 [&>*]:h-full\"\n data-slot=\"scroll-area-viewport\"\n >\n {children}\n </ScrollAreaPrimitive.Viewport>\n <ScrollAreaScrollbar orientation=\"vertical\" />\n <ScrollAreaScrollbar orientation=\"horizontal\" />\n <ScrollAreaPrimitive.Corner />\n </ScrollAreaPrimitive.Root>\n </CarouselProvider>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ScrollAreaScrollbar\n * -------------------------------------------------------------------------- */\n\nfunction ScrollAreaScrollbar({\n __scopeScrollArea,\n className,\n orientation,\n ...props\n}: ScopedProps<ComponentProps<typeof ScrollAreaPrimitive.Scrollbar>>): JSX.Element {\n const { size } = useCarouselContext(SCROLL_AREA_NAME, __scopeScrollArea);\n\n return (\n <ScrollAreaPrimitive.Scrollbar\n className={scrollAreaScrollbarVariants({ className, orientation, size })}\n data-slot=\"scroll-area-scrollbar\"\n orientation={orientation}\n {...props}\n >\n <ScrollAreaPrimitive.ScrollAreaThumb className=\"bg-border relative flex-1 rounded-full\" />\n </ScrollAreaPrimitive.Scrollbar>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { ScrollArea, ScrollAreaScrollbar };\n"]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";var _chunkIDELSFHCcjs = require('./chunk-IDELSFHC.cjs');var _chunkEBHV6RMBcjs = require('./chunk-EBHV6RMB.cjs');var _chunkX5CR4RILcjs = require('./chunk-X5CR4RIL.cjs');var _chunkSRP463XHcjs = require('./chunk-SRP463XH.cjs');var _chunkPOJOZ7HMcjs = require('./chunk-POJOZ7HM.cjs');var _chunkTNP6NVCRcjs = require('./chunk-TNP6NVCR.cjs');var _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _hooks = require('@codefast/hooks');var _reactslot = require('@radix-ui/react-slot');var _lucidereact = require('lucide-react');var _react = require('react');var _tailwindvariants = require('tailwind-variants');var _jsxruntime = require('react/jsx-runtime');var j="sidebar_state",q=60*60*24*7,F="16rem",U="18rem",Y="3.0625rem",Q="b",A=_react.createContext.call(void 0, null);function S(){let t=_react.useContext.call(void 0, A);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function ce({defaultOpen:t=!0,open:e,onOpenChange:n,className:r,style:i,children:l,...m}){let d=_hooks.useIsMobile.call(void 0, ),[c,b]=_react.useState.call(void 0, !1),[v,R]=_react.useState.call(void 0, t),f=_nullishCoalesce(e, () => (v)),h=_react.useCallback.call(void 0, s=>{let u=typeof s=="function"?s(f):s;n?n(u):R(u),document.cookie=`${j}=${u}; path=/; max-age=${q}`},[n,f]),x=_react.useCallback.call(void 0, ()=>{d?b(s=>!s):h(s=>!s)},[d,h,b]);_react.useEffect.call(void 0, ()=>{let s=u=>{u.key===Q&&(u.metaKey||u.ctrlKey)&&(u.preventDefault(),x())};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[x]);let C=f?"expanded":"collapsed",H=_react.useMemo.call(void 0, ()=>({state:C,open:f,setOpen:h,isMobile:d,openMobile:c,setOpenMobile:b,toggleSidebar:x}),[C,f,h,d,c,b,x]);return _jsxruntime.jsx.call(void 0, A.Provider,{value:H,children:_jsxruntime.jsx.call(void 0, _chunkIDELSFHCcjs.a,{delayDuration:0,children:_jsxruntime.jsx.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",r),"data-slot":"sidebar-wrapper",style:{"--sidebar-width":F,"--sidebar-width-icon":Y,...i},...m,children:l})})})}function pe({side:t="left",variant:e="sidebar",collapsible:n="offcanvas",className:r,children:i,...l}){let{isMobile:m,state:d,openMobile:c,setOpenMobile:b}=S();return n==="none"?_jsxruntime.jsx.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-sidebar text-sidebar-foreground w-(--sidebar-width) flex h-full flex-col",r),"data-slot":"sidebar",...l,children:i}):m?_jsxruntime.jsx.call(void 0, _chunkEBHV6RMBcjs.a,{open:c,onOpenChange:b,...l,children:_jsxruntime.jsxs.call(void 0, _chunkEBHV6RMBcjs.c,{className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden","data-mobile":"true","data-sidebar":"sidebar","data-slot":"sidebar",side:t,style:{"--sidebar-width":U},children:[_jsxruntime.jsxs.call(void 0, _chunkEBHV6RMBcjs.d,{className:"sr-only",children:[_jsxruntime.jsx.call(void 0, _chunkEBHV6RMBcjs.g,{children:"Sidebar"}),_jsxruntime.jsx.call(void 0, _chunkEBHV6RMBcjs.h,{children:"Displays the mobile sidebar."})]}),_jsxruntime.jsx.call(void 0, "div",{className:"flex h-full w-full flex-col",children:i})]})}):_jsxruntime.jsxs.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-sidebar-foreground group peer hidden md:block",r),"data-collapsible":d==="collapsed"?n:"","data-side":t,"data-slot":"sidebar","data-state":d,"data-variant":e,children:[_jsxruntime.jsx.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "w-(--sidebar-width) relative bg-transparent transition-[width] duration-200 ease-linear group-data-[collapsible=offcanvas]:w-0 group-data-[side=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)"),"data-slot":"sidebar-gap"}),_jsxruntime.jsx.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "w-(--sidebar-width) fixed inset-y-0 z-10 hidden h-svh transition-[left,right,width] duration-200 ease-linear md:flex",t==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",r),"data-slot":"sidebar-container",...l,children:_jsxruntime.jsx.call(void 0, "div",{className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm","data-sidebar":"sidebar","data-slot":"sidebar-inner",children:i})})]})}function me({className:t,onClick:e,...n}){let{toggleSidebar:r}=S();return _jsxruntime.jsxs.call(void 0, _chunkTNP6NVCRcjs.b,{className:_chunkSMJEDCFPcjs.a.call(void 0, "size-7",t),"data-sidebar":"trigger","data-slot":"sidebar-trigger",size:"icon",variant:"ghost",onClick:i=>{_optionalChain([e, 'optionalCall', _2 => _2(i)]),r()},...n,children:[_jsxruntime.jsx.call(void 0, _lucidereact.PanelLeftIcon,{}),_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"Toggle Sidebar"})]})}function fe({className:t,...e}){let{toggleSidebar:n}=S();return _jsxruntime.jsx.call(void 0, "button",{className:_chunkSMJEDCFPcjs.a.call(void 0, "hover:after:bg-sidebar-border in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize hover:group-data-[collapsible=offcanvas]:bg-sidebar absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] group-data-[side=left]:-right-4 group-data-[side=right]:left-0 group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full sm:flex [[data-side=left][data-collapsible=offcanvas]_&]:-right-2 [[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-collapsible=offcanvas]_&]:-left-2 [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",t),"data-sidebar":"rail","data-slot":"sidebar-rail",title:"Toggle Sidebar",type:"button",onClick:n,...e})}function ge({className:t,...e}){return _jsxruntime.jsx.call(void 0, "main",{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-background relative flex w-full flex-1 flex-col md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",t),"data-slot":"sidebar-inset",...e})}function ve({className:t,...e}){return _jsxruntime.jsx.call(void 0, _chunkPOJOZ7HMcjs.b,{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-background h-8 w-full shadow-none",t),"data-sidebar":"input","data-slot":"sidebar-input",...e})}function he({className:t,...e}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex flex-col gap-2 p-2",t),"data-sidebar":"header","data-slot":"sidebar-header",...e})}function xe({className:t,...e}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex flex-col gap-2 p-2",t),"data-sidebar":"footer","data-slot":"sidebar-footer",...e})}function Se({className:t,...e}){return _jsxruntime.jsx.call(void 0, _chunkSRP463XHcjs.a,{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-sidebar-border mx-2 w-auto",t),"data-sidebar":"separator","data-slot":"sidebar-separator",...e})}function we({className:t,...e}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",t),"data-sidebar":"content","data-slot":"sidebar-content",...e})}function Ce({className:t,...e}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "relative flex w-full min-w-0 flex-col p-2",t),"data-sidebar":"group","data-slot":"sidebar-group",...e})}function ye({className:t,asChild:e=!1,...n}){return _jsxruntime.jsx.call(void 0, e?_reactslot.Slot:"div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-sidebar-foreground/70 ring-sidebar-ring outline-hidden focus-visible:ring-3 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 [&>svg]:size-4 [&>svg]:shrink-0",t),"data-sidebar":"group-label","data-slot":"sidebar-group-label",...n})}function Ee({className:t,asChild:e=!1,...n}){return _jsxruntime.jsx.call(void 0, e?_reactslot.Slot:"button",{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground outline-hidden focus-visible:ring-3 absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 transition-transform after:absolute after:-inset-2 group-data-[collapsible=icon]:hidden md:after:hidden [&>svg]:size-4 [&>svg]:shrink-0",t),"data-sidebar":"group-action","data-slot":"sidebar-group-action",...n})}function Pe({className:t,...e}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "w-full text-sm",t),"data-sidebar":"group-content","data-slot":"sidebar-group-content",...e})}function Ne({className:t,...e}){return _jsxruntime.jsx.call(void 0, "ul",{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex w-full min-w-0 flex-col gap-1",t),"data-sidebar":"menu","data-slot":"sidebar-menu",...e})}function Me({className:t,...e}){return _jsxruntime.jsx.call(void 0, "li",{className:_chunkSMJEDCFPcjs.a.call(void 0, "group/menu-item relative",t),"data-sidebar":"menu-item","data-slot":"sidebar-menu-item",...e})}var Z=_tailwindvariants.tv.call(void 0, {base:"peer/menu-button outline-hidden ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground group-has-data-[sidebar=menu-action]/menu-item:pr-8 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! focus-visible:ring-3 flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm transition-[width,height,padding] disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:font-medium [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{sm:"h-7 text-xs",md:"h-8 text-sm",lg:"group-data-[collapsible=icon]:p-0! h-12 text-sm"}},defaultVariants:{variant:"default",size:"md"}});function ke({asChild:t=!1,isActive:e=!1,variant:n="default",size:r="md",tooltip:i,className:l,...m}){let d=t?_reactslot.Slot:"button",{isMobile:c,state:b}=S(),v=_jsxruntime.jsx.call(void 0, d,{className:_chunkSMJEDCFPcjs.a.call(void 0, Z({variant:n,size:r}),l),"data-active":e,"data-sidebar":"menu-button","data-size":r,"data-slot":"sidebar-menu-button",...m});return i?(typeof i=="string"&&(i={children:i}),_jsxruntime.jsxs.call(void 0, _chunkIDELSFHCcjs.b,{children:[_jsxruntime.jsx.call(void 0, _chunkIDELSFHCcjs.c,{asChild:!0,children:v}),_jsxruntime.jsx.call(void 0, _chunkIDELSFHCcjs.d,{align:"center",hidden:b!=="collapsed"||c,side:"right",...i})]})):v}function Xe({className:t,asChild:e=!1,showOnHover:n=!1,...r}){return _jsxruntime.jsx.call(void 0, e?_reactslot.Slot:"button",{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground outline-hidden focus-visible:ring-3 absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 transition-transform after:absolute after:-inset-2 group-data-[collapsible=icon]:hidden peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 md:after:hidden [&>svg]:size-4 [&>svg]:shrink-0",n&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",t),"data-sidebar":"menu-action","data-slot":"sidebar-menu-action",...r})}function _e({className:t,...e}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-sidebar-foreground peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums group-data-[collapsible=icon]:hidden peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1",t),"data-sidebar":"menu-badge","data-slot":"sidebar-menu-badge",...e})}function Je({className:t,showIcon:e=!1,...n}){let r=_react.useMemo.call(void 0, ()=>`${Math.floor(Math.random()*40)+50}%`,[]);return _jsxruntime.jsxs.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex h-8 items-center gap-2 rounded-md px-2",t),"data-sidebar":"menu-skeleton","data-slot":"sidebar-menu-skeleton",...n,children:[e?_jsxruntime.jsx.call(void 0, _chunkX5CR4RILcjs.a,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}):null,_jsxruntime.jsx.call(void 0, _chunkX5CR4RILcjs.a,{className:"max-w-(--skeleton-width) h-4 flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})}function ze({className:t,...e}){return _jsxruntime.jsx.call(void 0, "ul",{className:_chunkSMJEDCFPcjs.a.call(void 0, "border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5 group-data-[collapsible=icon]:hidden",t),"data-sidebar":"menu-sub","data-slot":"sidebar-menu-sub",...e})}function Ie({className:t,...e}){return _jsxruntime.jsx.call(void 0, "li",{className:_chunkSMJEDCFPcjs.a.call(void 0, "group/menu-sub-item relative",t),"data-sidebar":"menu-sub-item","data-slot":"sidebar-menu-sub-item",...e})}function Te({asChild:t=!1,size:e="md",isActive:n=!1,className:r,...i}){return _jsxruntime.jsx.call(void 0, t?_reactslot.Slot:"a",{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground outline-hidden focus-visible:ring-3 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",e==="sm"&&"text-xs",e==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),"data-active":n,"data-sidebar":"menu-sub-button","data-size":e,"data-slot":"sidebar-menu-sub-button",...i})}exports.a = S; exports.b = ce; exports.c = pe; exports.d = me; exports.e = fe; exports.f = ge; exports.g = ve; exports.h = he; exports.i = xe; exports.j = Se; exports.k = we; exports.l = Ce; exports.m = ye; exports.n = Ee; exports.o = Pe; exports.p = Ne; exports.q = Me; exports.r = ke; exports.s = Xe; exports.t = _e; exports.u = Je; exports.v = ze; exports.w = Ie; exports.x = Te;
2
+ //# sourceMappingURL=chunk-ICLHBN2W.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-ICLHBN2W.cjs","../src/components/sidebar.tsx"],"names":["SIDEBAR_WIDTH","SIDEBAR_WIDTH_MOBILE","SIDEBAR_KEYBOARD_SHORTCUT","useSidebar","SidebarProvider","defaultOpen","setOpenProp","className","children","isMobile","useIsMobile","openMobile","setOpenMobile","useState","isOpen","setIsOpen","open","openProp","setOpen","useCallback","value","openState"],"mappings":"AAAA,6rBAAY,CAAC,wDAA6D,wDAAqE,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDCK1S,wCACA,iDACA,2CACA,8BACA,qDA4HD,+CAlHoB,IAAA,CAAA,CAAA,eACkB,CACxCA,CAAAA,CAAgB,EAAA,CAAA,EAAA,CAAA,EAChBC,CAAAA,CAAuB,CAAA,CAAA,CAAA,OACF,CAAA,CAAA,CAAA,OAAA,CAAA,CACrBC,CAAAA,WAY2D,CAAA,CAAI,CAAA,GAErE,CAAA,CAAA,CAAA,kCAAA,IAASC,CAAkC,CACzC,SAAyC,CAAA,CAEzC,CAAA,CAAA,IACE,CAAA,CAAA,+BAAA,CAAA,CAAM,CAAA,EAAA,CAAI,CAAA,CAAA,CAAA,MAAM,IAAA,KAAA,CAAA,mDAUpB,CAAA,CAAA,OAASC,CAAgB,CACvB,SAAA,EAAA,CAAAC,CAAAA,WAEA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,IAAA,CAAA,CAAA,CAAcC,YACdC,CAAAA,CACA,CAAA,SACA,CAAA,CAAA,CAAA,KAAAC,CACA,CAAA,CAAA,QAMA,CAAMC,CAAAA,CAAWC,GAAY,CACvB,CAACC,CAAAA,CAAYC,IAAiBC,CAAS,CAAA,gCAAK,CAI5C,CAACC,CAAAA,CAAQC,CAAS,CAAA,CAAIF,CAAAA,6BAASR,CAAW,CAC1CW,CAAAA,CAAOC,CAAAA,CAAAA,CAAYH,CAAAA,CACnBI,CAAAA,6BAAUC,CACbC,CAAAA,CAAAA,CAAmD,kBAClD,CAAA,SAAA,GAAMC,CAAAA,CAAY,CAAA,gCAAA,CAAA,EAAA,CAAOD,IAAU,CAAA,CAAA,OAAA,CAAaA,EAAMJ,UAG/B,CAAA,CAErBD,CAAAA,CAAUM,CAAS,CAAA,CAIrB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAA,CAAA,CAAA,CAAA,QAA+B,CAAA,MAAa,CAAA,CAAA,EAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-ICLHBN2W.cjs","sourcesContent":[null,"'use client';\n\nimport type { ComponentProps, CSSProperties, JSX } from 'react';\nimport type { VariantProps } from 'tailwind-variants';\n\nimport { useIsMobile } from '@codefast/hooks';\nimport { Slot } from '@radix-ui/react-slot';\nimport { PanelLeftIcon } from 'lucide-react';\nimport { createContext, useCallback, useContext, useEffect, useMemo, useState } from 'react';\nimport { tv } from 'tailwind-variants';\n\nimport { Button } from '@/components/button';\nimport { Input } from '@/components/input';\nimport { Separator } from '@/components/separator';\nimport { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle } from '@/components/sheet';\nimport { Skeleton } from '@/components/skeleton';\nimport { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/tooltip';\nimport { cn } from '@/lib/utils';\n\nconst SIDEBAR_COOKIE_NAME = 'sidebar_state';\nconst SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;\nconst SIDEBAR_WIDTH = '16rem';\nconst SIDEBAR_WIDTH_MOBILE = '18rem';\nconst SIDEBAR_WIDTH_ICON = '3.0625rem';\nconst SIDEBAR_KEYBOARD_SHORTCUT = 'b';\n\ninterface SidebarContextProps {\n isMobile: boolean;\n open: boolean;\n openMobile: boolean;\n setOpen: (open: boolean) => void;\n setOpenMobile: (open: boolean) => void;\n state: 'collapsed' | 'expanded';\n toggleSidebar: () => void;\n}\n\nconst SidebarContext = createContext<null | SidebarContextProps>(null);\n\nfunction useSidebar(): SidebarContextProps {\n const context = useContext(SidebarContext);\n\n if (!context) {\n throw new Error('useSidebar must be used within a SidebarProvider.');\n }\n\n return context;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarProvider\n * -------------------------------------------------------------------------- */\n\nfunction SidebarProvider({\n defaultOpen = true,\n open: openProp,\n onOpenChange: setOpenProp,\n className,\n style,\n children,\n ...props\n}: ComponentProps<'div'> & {\n defaultOpen?: boolean;\n onOpenChange?: (open: boolean) => void;\n open?: boolean;\n}): JSX.Element {\n const isMobile = useIsMobile();\n const [openMobile, setOpenMobile] = useState(false);\n\n // This is the internal state of the sidebar.\n // We use openProp and setOpenProp for control from outside the component.\n const [isOpen, setIsOpen] = useState(defaultOpen);\n const open = openProp ?? isOpen;\n const setOpen = useCallback(\n (value: ((value: boolean) => boolean) | boolean) => {\n const openState = typeof value === 'function' ? value(open) : value;\n\n if (setOpenProp) {\n setOpenProp(openState);\n } else {\n setIsOpen(openState);\n }\n\n // eslint-disable-next-line unicorn/no-document-cookie -- This sets the cookie to keep the sidebar state.\n document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;\n },\n [setOpenProp, open],\n );\n\n // Helper to toggle the sidebar.\n const toggleSidebar = useCallback(() => {\n if (isMobile) {\n setOpenMobile((currentValue) => !currentValue);\n } else {\n setOpen((currentValue) => !currentValue);\n }\n }, [isMobile, setOpen, setOpenMobile]);\n\n // Adds a keyboard shortcut to toggle the sidebar.\n useEffect(() => {\n const handleKeyDown: (event: KeyboardEvent) => void = (event: KeyboardEvent) => {\n if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {\n event.preventDefault();\n toggleSidebar();\n }\n };\n\n window.addEventListener('keydown', handleKeyDown);\n\n return () => {\n window.removeEventListener('keydown', handleKeyDown);\n };\n }, [toggleSidebar]);\n\n // We add a state so that we can do data-state=\"expanded\" or \"collapsed\".\n // This makes it easier to style the sidebar with Tailwind classes.\n const state = open ? 'expanded' : 'collapsed';\n\n const contextValue = useMemo<SidebarContextProps>(\n () => ({\n state,\n open,\n setOpen,\n isMobile,\n openMobile,\n setOpenMobile,\n toggleSidebar,\n }),\n [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar],\n );\n\n return (\n <SidebarContext.Provider value={contextValue}>\n <TooltipProvider delayDuration={0}>\n <div\n className={cn('group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full', className)}\n data-slot=\"sidebar-wrapper\"\n style={\n {\n '--sidebar-width': SIDEBAR_WIDTH,\n '--sidebar-width-icon': SIDEBAR_WIDTH_ICON,\n ...style,\n } as CSSProperties\n }\n {...props}\n >\n {children}\n </div>\n </TooltipProvider>\n </SidebarContext.Provider>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: Sidebar\n * -------------------------------------------------------------------------- */\n\nfunction Sidebar({\n side = 'left',\n variant = 'sidebar',\n collapsible = 'offcanvas',\n className,\n children,\n ...props\n}: ComponentProps<'div'> & {\n collapsible?: 'icon' | 'none' | 'offcanvas';\n side?: 'left' | 'right';\n variant?: 'floating' | 'inset' | 'sidebar';\n}): JSX.Element {\n const { isMobile, state, openMobile, setOpenMobile } = useSidebar();\n\n if (collapsible === 'none') {\n return (\n <div\n className={cn('bg-sidebar text-sidebar-foreground w-(--sidebar-width) flex h-full flex-col', className)}\n data-slot=\"sidebar\"\n {...props}\n >\n {children}\n </div>\n );\n }\n\n if (isMobile) {\n return (\n <Sheet open={openMobile} onOpenChange={setOpenMobile} {...props}>\n <SheetContent\n className=\"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden\"\n data-mobile=\"true\"\n data-sidebar=\"sidebar\"\n data-slot=\"sidebar\"\n side={side}\n style={\n {\n '--sidebar-width': SIDEBAR_WIDTH_MOBILE,\n } as CSSProperties\n }\n >\n <SheetHeader className=\"sr-only\">\n <SheetTitle>Sidebar</SheetTitle>\n <SheetDescription>Displays the mobile sidebar.</SheetDescription>\n </SheetHeader>\n <div className=\"flex h-full w-full flex-col\">{children}</div>\n </SheetContent>\n </Sheet>\n );\n }\n\n return (\n <div\n className={cn('text-sidebar-foreground group peer hidden md:block', className)}\n data-collapsible={state === 'collapsed' ? collapsible : ''}\n data-side={side}\n data-slot=\"sidebar\"\n data-state={state}\n data-variant={variant}\n >\n {/* This is what handles the sidebar gap on desktop */}\n <div\n className={cn(\n 'w-(--sidebar-width) relative bg-transparent transition-[width] duration-200 ease-linear group-data-[collapsible=offcanvas]:w-0 group-data-[side=right]:rotate-180',\n variant === 'floating' || variant === 'inset'\n ? 'group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]'\n : 'group-data-[collapsible=icon]:w-(--sidebar-width-icon)',\n )}\n data-slot=\"sidebar-gap\"\n />\n <div\n className={cn(\n 'w-(--sidebar-width) fixed inset-y-0 z-10 hidden h-svh transition-[left,right,width] duration-200 ease-linear md:flex',\n side === 'left'\n ? 'left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]'\n : 'right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]',\n // Adjust the padding for floating and inset variants.\n variant === 'floating' || variant === 'inset'\n ? 'p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]'\n : 'group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l',\n className,\n )}\n data-slot=\"sidebar-container\"\n {...props}\n >\n <div\n className=\"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm\"\n data-sidebar=\"sidebar\"\n data-slot=\"sidebar-inner\"\n >\n {children}\n </div>\n </div>\n </div>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarTrigger\n * -------------------------------------------------------------------------- */\n\nfunction SidebarTrigger({ className, onClick, ...props }: ComponentProps<typeof Button>): JSX.Element {\n const { toggleSidebar } = useSidebar();\n\n return (\n <Button\n className={cn('size-7', className)}\n data-sidebar=\"trigger\"\n data-slot=\"sidebar-trigger\"\n size=\"icon\"\n variant=\"ghost\"\n onClick={(event) => {\n onClick?.(event);\n toggleSidebar();\n }}\n {...props}\n >\n <PanelLeftIcon />\n <span className=\"sr-only\">Toggle Sidebar</span>\n </Button>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarRail\n * -------------------------------------------------------------------------- */\n\nfunction SidebarRail({ className, ...props }: ComponentProps<'button'>): JSX.Element {\n const { toggleSidebar } = useSidebar();\n\n return (\n <button\n className={cn(\n 'hover:after:bg-sidebar-border in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize hover:group-data-[collapsible=offcanvas]:bg-sidebar absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] group-data-[side=left]:-right-4 group-data-[side=right]:left-0 group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full sm:flex [[data-side=left][data-collapsible=offcanvas]_&]:-right-2 [[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-collapsible=offcanvas]_&]:-left-2 [[data-side=right][data-state=collapsed]_&]:cursor-w-resize',\n className,\n )}\n data-sidebar=\"rail\"\n data-slot=\"sidebar-rail\"\n title=\"Toggle Sidebar\"\n type=\"button\"\n onClick={toggleSidebar}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarInset\n * -------------------------------------------------------------------------- */\n\nfunction SidebarInset({ className, ...props }: ComponentProps<'main'>): JSX.Element {\n return (\n <main\n className={cn(\n 'bg-background relative flex w-full flex-1 flex-col md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm',\n className,\n )}\n data-slot=\"sidebar-inset\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarInput\n * -------------------------------------------------------------------------- */\n\nfunction SidebarInput({ className, ...props }: ComponentProps<typeof Input>): JSX.Element {\n return (\n <Input\n className={cn('bg-background h-8 w-full shadow-none', className)}\n data-sidebar=\"input\"\n data-slot=\"sidebar-input\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarHeader\n * -------------------------------------------------------------------------- */\n\nfunction SidebarHeader({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <div\n className={cn('flex flex-col gap-2 p-2', className)}\n data-sidebar=\"header\"\n data-slot=\"sidebar-header\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarFooter\n * -------------------------------------------------------------------------- */\n\nfunction SidebarFooter({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <div\n className={cn('flex flex-col gap-2 p-2', className)}\n data-sidebar=\"footer\"\n data-slot=\"sidebar-footer\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarSeparator\n * -------------------------------------------------------------------------- */\n\nfunction SidebarSeparator({ className, ...props }: ComponentProps<typeof Separator>): JSX.Element {\n return (\n <Separator\n className={cn('bg-sidebar-border mx-2 w-auto', className)}\n data-sidebar=\"separator\"\n data-slot=\"sidebar-separator\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarContent\n * -------------------------------------------------------------------------- */\n\nfunction SidebarContent({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <div\n className={cn(\n 'flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden',\n className,\n )}\n data-sidebar=\"content\"\n data-slot=\"sidebar-content\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarGroup\n * -------------------------------------------------------------------------- */\n\nfunction SidebarGroup({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <div\n className={cn('relative flex w-full min-w-0 flex-col p-2', className)}\n data-sidebar=\"group\"\n data-slot=\"sidebar-group\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarGroupLabel\n * -------------------------------------------------------------------------- */\n\nfunction SidebarGroupLabel({\n className,\n asChild = false,\n ...props\n}: ComponentProps<'div'> & {\n asChild?: boolean;\n}): JSX.Element {\n const Component = asChild ? Slot : 'div';\n\n return (\n <Component\n className={cn(\n 'text-sidebar-foreground/70 ring-sidebar-ring outline-hidden focus-visible:ring-3 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 [&>svg]:size-4 [&>svg]:shrink-0',\n className,\n )}\n data-sidebar=\"group-label\"\n data-slot=\"sidebar-group-label\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarGroupAction\n * -------------------------------------------------------------------------- */\n\nfunction SidebarGroupAction({\n className,\n asChild = false,\n ...props\n}: ComponentProps<'button'> & {\n asChild?: boolean;\n}): JSX.Element {\n const Component = asChild ? Slot : 'button';\n\n return (\n <Component\n className={cn(\n 'text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground outline-hidden focus-visible:ring-3 absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 transition-transform after:absolute after:-inset-2 group-data-[collapsible=icon]:hidden md:after:hidden [&>svg]:size-4 [&>svg]:shrink-0',\n className,\n )}\n data-sidebar=\"group-action\"\n data-slot=\"sidebar-group-action\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarGroupContent\n * -------------------------------------------------------------------------- */\n\nfunction SidebarGroupContent({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <div\n className={cn('w-full text-sm', className)}\n data-sidebar=\"group-content\"\n data-slot=\"sidebar-group-content\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenu\n * -------------------------------------------------------------------------- */\n\nfunction SidebarMenu({ className, ...props }: ComponentProps<'ul'>): JSX.Element {\n return (\n <ul\n className={cn('flex w-full min-w-0 flex-col gap-1', className)}\n data-sidebar=\"menu\"\n data-slot=\"sidebar-menu\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenuItem\n * -------------------------------------------------------------------------- */\n\nfunction SidebarMenuItem({ className, ...props }: ComponentProps<'li'>): JSX.Element {\n return (\n <li\n className={cn('group/menu-item relative', className)}\n data-sidebar=\"menu-item\"\n data-slot=\"sidebar-menu-item\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Variant: SidebarMenuButton\n * -------------------------------------------------------------------------- */\n\nconst sidebarMenuButtonVariants = tv({\n base: 'peer/menu-button outline-hidden ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground group-has-data-[sidebar=menu-action]/menu-item:pr-8 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! focus-visible:ring-3 flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm transition-[width,height,padding] disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:font-medium [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0',\n variants: {\n variant: {\n default: 'hover:bg-sidebar-accent hover:text-sidebar-accent-foreground',\n outline:\n 'bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]',\n },\n size: {\n sm: 'h-7 text-xs',\n md: 'h-8 text-sm',\n lg: 'group-data-[collapsible=icon]:p-0! h-12 text-sm',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'md',\n },\n});\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenuButton\n * -------------------------------------------------------------------------- */\n\nfunction SidebarMenuButton({\n asChild = false,\n isActive = false,\n variant = 'default',\n size = 'md',\n tooltip,\n className,\n ...props\n}: ComponentProps<'button'> &\n VariantProps<typeof sidebarMenuButtonVariants> & {\n asChild?: boolean;\n isActive?: boolean;\n tooltip?: ComponentProps<typeof TooltipContent> | string;\n }): JSX.Element {\n const Component = asChild ? Slot : 'button';\n const { isMobile, state } = useSidebar();\n\n const button = (\n <Component\n className={cn(sidebarMenuButtonVariants({ variant, size }), className)}\n data-active={isActive}\n data-sidebar=\"menu-button\"\n data-size={size}\n data-slot=\"sidebar-menu-button\"\n {...props}\n />\n );\n\n if (!tooltip) {\n return button;\n }\n\n if (typeof tooltip === 'string') {\n // eslint-disable-next-line no-param-reassign -- convert it to an object with default properties\n tooltip = {\n children: tooltip,\n };\n }\n\n return (\n <Tooltip>\n <TooltipTrigger asChild>{button}</TooltipTrigger>\n <TooltipContent align=\"center\" hidden={state !== 'collapsed' || isMobile} side=\"right\" {...tooltip} />\n </Tooltip>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenuAction\n * -------------------------------------------------------------------------- */\n\nfunction SidebarMenuAction({\n className,\n asChild = false,\n showOnHover = false,\n ...props\n}: ComponentProps<'button'> & {\n asChild?: boolean;\n showOnHover?: boolean;\n}): JSX.Element {\n const Component = asChild ? Slot : 'button';\n\n return (\n <Component\n className={cn(\n 'text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground outline-hidden focus-visible:ring-3 absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 transition-transform after:absolute after:-inset-2 group-data-[collapsible=icon]:hidden peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 md:after:hidden [&>svg]:size-4 [&>svg]:shrink-0',\n showOnHover &&\n 'peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0',\n className,\n )}\n data-sidebar=\"menu-action\"\n data-slot=\"sidebar-menu-action\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenuBadge\n * -------------------------------------------------------------------------- */\n\nfunction SidebarMenuBadge({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <div\n className={cn(\n 'text-sidebar-foreground peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums group-data-[collapsible=icon]:hidden peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1',\n className,\n )}\n data-sidebar=\"menu-badge\"\n data-slot=\"sidebar-menu-badge\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenuSkeleton\n * -------------------------------------------------------------------------- */\n\nfunction SidebarMenuSkeleton({\n className,\n showIcon = false,\n ...props\n}: ComponentProps<'div'> & {\n showIcon?: boolean;\n}): JSX.Element {\n // Random width between 50 to 90%.\n const width = useMemo(() => {\n return `${Math.floor(Math.random() * 40) + 50}%`;\n }, []);\n\n return (\n <div\n className={cn('flex h-8 items-center gap-2 rounded-md px-2', className)}\n data-sidebar=\"menu-skeleton\"\n data-slot=\"sidebar-menu-skeleton\"\n {...props}\n >\n {showIcon ? <Skeleton className=\"size-4 rounded-md\" data-sidebar=\"menu-skeleton-icon\" /> : null}\n <Skeleton\n className=\"max-w-(--skeleton-width) h-4 flex-1\"\n data-sidebar=\"menu-skeleton-text\"\n style={\n {\n '--skeleton-width': width,\n } as CSSProperties\n }\n />\n </div>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenuSub\n * -------------------------------------------------------------------------- */\n\nfunction SidebarMenuSub({ className, ...props }: ComponentProps<'ul'>): JSX.Element {\n return (\n <ul\n className={cn(\n 'border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5 group-data-[collapsible=icon]:hidden',\n className,\n )}\n data-sidebar=\"menu-sub\"\n data-slot=\"sidebar-menu-sub\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenuSubItem\n * -------------------------------------------------------------------------- */\n\nfunction SidebarMenuSubItem({ className, ...props }: ComponentProps<'li'>): JSX.Element {\n return (\n <li\n className={cn('group/menu-sub-item relative', className)}\n data-sidebar=\"menu-sub-item\"\n data-slot=\"sidebar-menu-sub-item\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenuSubButton\n * -------------------------------------------------------------------------- */\n\nfunction SidebarMenuSubButton({\n asChild = false,\n size = 'md',\n isActive = false,\n className,\n ...props\n}: ComponentProps<'a'> & {\n asChild?: boolean;\n isActive?: boolean;\n size?: 'md' | 'sm';\n}): JSX.Element {\n const Component = asChild ? Slot : 'a';\n\n return (\n <Component\n className={cn(\n 'text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground outline-hidden focus-visible:ring-3 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0',\n size === 'sm' && 'text-xs',\n size === 'md' && 'text-sm',\n 'group-data-[collapsible=icon]:hidden',\n className,\n )}\n data-active={isActive}\n data-sidebar=\"menu-sub-button\"\n data-size={size}\n data-slot=\"sidebar-menu-sub-button\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Sidebar,\n SidebarContent,\n SidebarFooter,\n SidebarGroup,\n SidebarGroupAction,\n SidebarGroupContent,\n SidebarGroupLabel,\n SidebarHeader,\n SidebarInput,\n SidebarInset,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuBadge,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSkeleton,\n SidebarMenuSub,\n SidebarMenuSubButton,\n SidebarMenuSubItem,\n SidebarProvider,\n SidebarRail,\n SidebarSeparator,\n SidebarTrigger,\n useSidebar,\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/chunk-IDELSFHC.cjs","../src/components/tooltip.tsx"],"names":["TooltipProvider","props","jsx","Tooltip","TooltipTrigger","TooltipContent","className","children","sideOffset","jsxs","cn","TooltipArrow"],"mappings":"AAAA,mZAAmC,uGCED,+CASzB,SADAA,CAAAA,CAAgB,CAAE,GAAGC,CAAM,CAAA,CAAkE,CACpG,OAAOC,6BAAAA,CAAkB,CAAA,QAAA,CAAj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","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\n\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: TooltipProvider\n * -------------------------------------------------------------------------- */\n\nfunction TooltipProvider({ ...props }: ComponentProps<typeof TooltipPrimitive.Provider>): JSX.Element {\n return <TooltipPrimitive.Provider data-slot=\"tooltip-provider\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: Tooltip\n * -------------------------------------------------------------------------- */\n\nfunction Tooltip({ ...props }: ComponentProps<typeof TooltipPrimitive.Root>): JSX.Element {\n return <TooltipPrimitive.Root data-slot=\"tooltip\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TooltipTrigger\n * -------------------------------------------------------------------------- */\n\nfunction TooltipTrigger({ ...props }: ComponentProps<typeof TooltipPrimitive.Trigger>): JSX.Element {\n return <TooltipPrimitive.Trigger data-slot=\"tooltip-trigger\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TooltipContent\n * -------------------------------------------------------------------------- */\n\nfunction TooltipContent({\n className,\n children,\n sideOffset = 4,\n ...props\n}: ComponentProps<typeof TooltipPrimitive.Content>): JSX.Element {\n return (\n <TooltipPrimitive.Portal>\n <TooltipPrimitive.Content\n className={cn(\n 'bg-primary text-primary-foreground data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-[state=delayed-open]:data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:data-[side=right]:slide-in-from-left-2 data-[state=delayed-open]:data-[side=bottom]:slide-in-from-top-2 data-[state=delayed-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 rounded-md px-3 py-1.5 text-xs',\n 'max-w-(--radix-tooltip-content-available-width)',\n className,\n )}\n collisionPadding={8}\n data-slot=\"tooltip-content\"\n sideOffset={sideOffset}\n {...props}\n >\n {children}\n <TooltipArrow />\n </TooltipPrimitive.Content>\n </TooltipPrimitive.Portal>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TooltipArrow\n * -------------------------------------------------------------------------- */\n\nfunction TooltipArrow({ className, ...props }: ComponentProps<typeof TooltipPrimitive.Arrow>): JSX.Element {\n return <TooltipPrimitive.Arrow className={cn('fill-primary', className)} data-slot=\"tooltip-arrow\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-IDELSFHC.cjs","../src/components/tooltip.tsx"],"names":["TooltipProvider","props","jsx","Tooltip","TooltipTrigger","TooltipContent","className","children","sideOffset","jsxs","cn","TooltipArrow"],"mappings":"AAAA,mZAAmC,uGCED,+CASzB,SADAA,CAAAA,CAAgB,CAAE,GAAGC,CAAM,CAAA,CAAkE,CACpG,OAAOC,6BAAAA,CAAkB,CAAA,QAAA,CAAjB,CAA0B,WAAA,CAAU,kBAAA,CAAoB,GAAGD,CAAAA,CAAO,CAC5E,CAMA,SAASE,CAAAA,CAAQ,CAAE,GAAGF,CAAM,CAAA,CAA8D,CACxF,OAAOC,6BAAAA,CAAkB,CAAA,IAAA,CAAjB,CAAsB,WAAA,CAAU,SAAA,CAAW,GAAGD,CAAAA,CAAO,CAC/D,CAMA,SAASG,CAAAA,CAAe,CAAE,GAAGH,CAAM,CAAA,CAAiE,CAClG,OAAOC,6BAAAA,CAAkB,CAAA,OAAA,CAAjB,CAAyB,WAAA,CAAU,iBAAA,CAAmB,GAAGD,CAAAA,CAAO,CAC1E,CAMA,SAASI,CAAAA,CAAe,CACtB,SAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CAAa,CAAA,CACb,GAAGP,CACL,CAAA,CAAiE,CAC/D,OACEC,6BAAAA,CAAkB,CAAA,MAAA,CAAjB,CACC,QAAA,CAAAO,8BAAAA,CAAkB,CAAA,OAAA,CAAjB,CACC,SAAA,CAAWC,iCAAAA,iwBACT,CACA,iDAAA,CACAJ,CACF,CAAA,CACA,gBAAA,CAAkB,CAAA,CAClB,WAAA,CAAU,iBAAA,CACV,UAAA,CAAYE,CAAAA,CACX,GAAGP,CAAAA,CAEH,QAAA,CAAA,CAAAM,CAAAA,CACDL,6BAAAA,CAACS,CAAA,CAAA,CAAa,CAAA,CAAA,CAChB,CAAA,CACF,CAEJ,CAMA,SAASA,CAAAA,CAAa,CAAE,SAAA,CAAAL,CAAAA,CAAW,GAAGL,CAAM,CAAA,CAA+D,CACzG,OAAOC,6BAAAA,CAAkB,CAAA,KAAA,CAAjB,CAAuB,SAAA,CAAWQ,iCAAAA,cAAG,CAAgBJ,CAAS,CAAA,CAAG,WAAA,CAAU,eAAA,CAAiB,GAAGL,CAAAA,CAAO,CAChH,CAAA,2DAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-IDELSFHC.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\n\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: TooltipProvider\n * -------------------------------------------------------------------------- */\n\nfunction TooltipProvider({ ...props }: ComponentProps<typeof TooltipPrimitive.Provider>): JSX.Element {\n return <TooltipPrimitive.Provider data-slot=\"tooltip-provider\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: Tooltip\n * -------------------------------------------------------------------------- */\n\nfunction Tooltip({ ...props }: ComponentProps<typeof TooltipPrimitive.Root>): JSX.Element {\n return <TooltipPrimitive.Root data-slot=\"tooltip\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TooltipTrigger\n * -------------------------------------------------------------------------- */\n\nfunction TooltipTrigger({ ...props }: ComponentProps<typeof TooltipPrimitive.Trigger>): JSX.Element {\n return <TooltipPrimitive.Trigger data-slot=\"tooltip-trigger\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TooltipContent\n * -------------------------------------------------------------------------- */\n\nfunction TooltipContent({\n className,\n children,\n sideOffset = 4,\n ...props\n}: ComponentProps<typeof TooltipPrimitive.Content>): JSX.Element {\n return (\n <TooltipPrimitive.Portal>\n <TooltipPrimitive.Content\n className={cn(\n 'bg-primary text-primary-foreground data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-[state=delayed-open]:data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:data-[side=right]:slide-in-from-left-2 data-[state=delayed-open]:data-[side=bottom]:slide-in-from-top-2 data-[state=delayed-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 rounded-md px-3 py-1.5 text-xs',\n 'max-w-(--radix-tooltip-content-available-width)',\n className,\n )}\n collisionPadding={8}\n data-slot=\"tooltip-content\"\n sideOffset={sideOffset}\n {...props}\n >\n {children}\n <TooltipArrow />\n </TooltipPrimitive.Content>\n </TooltipPrimitive.Portal>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TooltipArrow\n * -------------------------------------------------------------------------- */\n\nfunction TooltipArrow({ className, ...props }: ComponentProps<typeof TooltipPrimitive.Arrow>): JSX.Element {\n return <TooltipPrimitive.Arrow className={cn('fill-primary', className)} data-slot=\"tooltip-arrow\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/chunk-IK76PHGB.cjs","../src/components/label.tsx"],"names":["Label","className","props","jsx","cn"],"mappings":"AAAA,mZAAwC,iGCER,+CAU5B,SAFKA,CAAAA,CAAM,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAA4D,CAC/F,OACEC,6BAAAA,CAAgB,CAAA,IAAA,CAAf,CACC,SAAA,CAAWC,iCAAAA,sMACT,CACAH,CACF,CAAA,CACA,WAAA,CAAU,OAAA,CACT,GAAGC,CAAAA,CACN,CAEJ,CAAA,cAAA","file":"/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/chunk-IK76PHGB.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\n\nimport * as LabelPrimitive from '@radix-ui/react-label';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Label\n * -------------------------------------------------------------------------- */\n\nfunction Label({ className, ...props }: ComponentProps<typeof LabelPrimitive.Root>): JSX.Element {\n return (\n <LabelPrimitive.Root\n className={cn(\n 'peer-data-disabled:opacity-50 group-data-disabled:opacity-50 data-invalid:text-destructive peer-aria-invalid:text-destructive inline-block text-sm font-medium leading-none peer-disabled:opacity-50',\n className,\n )}\n data-slot=\"label\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Label };\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-IK76PHGB.cjs","../src/components/label.tsx"],"names":["Label","className","props","jsx","cn"],"mappings":"AAAA,mZAAwC,iGCER,+CAU5B,SAFKA,CAAAA,CAAM,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAA4D,CAC/F,OACEC,6BAAAA,CAAgB,CAAA,IAAA,CAAf,CACC,SAAA,CAAWC,iCAAAA,sMACT,CACAH,CACF,CAAA,CACA,WAAA,CAAU,OAAA,CACT,GAAGC,CAAAA,CACN,CAEJ,CAAA,cAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-IK76PHGB.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\n\nimport * as LabelPrimitive from '@radix-ui/react-label';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Label\n * -------------------------------------------------------------------------- */\n\nfunction Label({ className, ...props }: ComponentProps<typeof LabelPrimitive.Root>): JSX.Element {\n return (\n <LabelPrimitive.Root\n className={cn(\n 'peer-data-disabled:opacity-50 group-data-disabled:opacity-50 data-invalid:text-destructive peer-aria-invalid:text-destructive inline-block text-sm font-medium leading-none peer-disabled:opacity-50',\n className,\n )}\n data-slot=\"label\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Label };\n"]}
@@ -0,0 +1,2 @@
1
+ import{a as n}from"./chunk-OKUFCFYT.js";import*as t from"@radix-ui/react-tabs";import{jsx as o}from"react/jsx-runtime";function a({...e}){return o(t.Root,{"data-slot":"tabs",...e})}function s({className:e,...i}){return o(t.List,{className:n("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 o(t.Trigger,{className: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",e),"data-slot":"tabs-trigger",...i})}function m({className:e,...i}){return o(t.Content,{className:n("outline-ring ring-ring/50 mt-2 rounded-xl focus-visible:outline-1 focus-visible:ring-4",e),"data-slot":"tabs-content",...i})}export{a,s as b,d as c,m as d};
2
+ //# sourceMappingURL=chunk-IU3UVNAL.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/tabs.tsx"],"names":["TabsPrimitive","jsx","Tabs","props","TabsList","className","cn","TabsTrigger","TabsContent"],"mappings":"wCAEA,UAAYA,MAAmB,uBAStB,cAAAC,MAAA,oBADT,SAASC,EAAK,CAAE,GAAGC,CAAM,EAA2D,CAClF,OAAOF,EAAe,OAAd,CAAmB,YAAU,OAAQ,GAAGE,EAAO,CACzD,CAMA,SAASC,EAAS,CAAE,UAAAC,EAAW,GAAGF,CAAM,EAA2D,CACjG,OACEF,EAAe,OAAd,CACC,UAAWK,EACT,oGACAD,CACF,EACA,YAAU,YACT,GAAGF,EACN,CAEJ,CAMA,SAASI,EAAY,CAAE,UAAAF,EAAW,GAAGF,CAAM,EAA8D,CACvG,OACEF,EAAe,UAAd,CACC,UAAWK,EACT,ihBACAD,CACF,EACA,YAAU,eACT,GAAGF,EACN,CAEJ,CAMA,SAASK,EAAY,CAAE,UAAAH,EAAW,GAAGF,CAAM,EAA8D,CACvG,OACEF,EAAe,UAAd,CACC,UAAWK,EACT,yFACAD,CACF,EACA,YAAU,eACT,GAAGF,EACN,CAEJ","sourcesContent":["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/collapsible.tsx"],"names":["Collapsible","props","jsx","CollapsibleTrigger","CollapsibleContent"],"mappings":"AAEA,8cAAsC,+CAO7B,SADAA,CAAAA,CAAY,CAAE,GAAGC,CAAM,CAAA,CAAkE,CAChG,OAAOC,6BAAAA,CAAsB,CAAA,IAAA,CAArB,CAA0B,WAAA,CAAU,aAAA,CAAe,GAAGD,CAAAA,CAAO,CACvE,CAMA,SAASE,CAAAA,CAAmB,CAAE,GAAGF,CAAM,CAAA,CAAgF,CACrH,OAAOC,6BAAAA,CAAsB,CAAA,kBAAA,CAArB,CAAwC,WAAA,CAAU,qBAAA,CAAuB,GAAGD,CAAAA,CAAO,CAC7F,CAMA,SAASG,CAAAA,CAAmB,CAAE,GAAGH,CAAM,CAAA,CAAgF,CACrH,OAAOC,6BAAAA,CAAsB,CAAA,kBAAA,CAArB,CAAwC,WAAA,CAAU,qBAAA,CAAuB,GAAGD,CAAAA,CAAO,CAC7F,CAAA,4CAAA","file":"/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/chunk-J7FLM6VE.cjs","sourcesContent":["import type { ComponentProps, JSX } from 'react';\n\nimport * as CollapsiblePrimitive from '@radix-ui/react-collapsible';\n\n/* -----------------------------------------------------------------------------\n * Component: Collapsible\n * -------------------------------------------------------------------------- */\n\nfunction Collapsible({ ...props }: ComponentProps<typeof CollapsiblePrimitive.Root>): JSX.Element {\n return <CollapsiblePrimitive.Root data-slot=\"collapsible\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CollapsibleTrigger\n * -------------------------------------------------------------------------- */\n\nfunction CollapsibleTrigger({ ...props }: ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): JSX.Element {\n return <CollapsiblePrimitive.CollapsibleTrigger data-slot=\"collapsible-trigger\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CollapsibleContent\n * -------------------------------------------------------------------------- */\n\nfunction CollapsibleContent({ ...props }: ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): JSX.Element {\n return <CollapsiblePrimitive.CollapsibleContent data-slot=\"collapsible-content\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Collapsible, CollapsibleContent, CollapsibleTrigger };\n"]}
1
+ {"version":3,"sources":["../src/components/collapsible.tsx"],"names":["Collapsible","props","jsx","CollapsibleTrigger","CollapsibleContent"],"mappings":"AAEA,8cAAsC,+CAO7B,SADAA,CAAAA,CAAY,CAAE,GAAGC,CAAM,CAAA,CAAkE,CAChG,OAAOC,6BAAAA,CAAsB,CAAA,IAAA,CAArB,CAA0B,WAAA,CAAU,aAAA,CAAe,GAAGD,CAAAA,CAAO,CACvE,CAMA,SAASE,CAAAA,CAAmB,CAAE,GAAGF,CAAM,CAAA,CAAgF,CACrH,OAAOC,6BAAAA,CAAsB,CAAA,kBAAA,CAArB,CAAwC,WAAA,CAAU,qBAAA,CAAuB,GAAGD,CAAAA,CAAO,CAC7F,CAMA,SAASG,CAAAA,CAAmB,CAAE,GAAGH,CAAM,CAAA,CAAgF,CACrH,OAAOC,6BAAAA,CAAsB,CAAA,kBAAA,CAArB,CAAwC,WAAA,CAAU,qBAAA,CAAuB,GAAGD,CAAAA,CAAO,CAC7F,CAAA,4CAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-J7FLM6VE.cjs","sourcesContent":["import type { ComponentProps, JSX } from 'react';\n\nimport * as CollapsiblePrimitive from '@radix-ui/react-collapsible';\n\n/* -----------------------------------------------------------------------------\n * Component: Collapsible\n * -------------------------------------------------------------------------- */\n\nfunction Collapsible({ ...props }: ComponentProps<typeof CollapsiblePrimitive.Root>): JSX.Element {\n return <CollapsiblePrimitive.Root data-slot=\"collapsible\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CollapsibleTrigger\n * -------------------------------------------------------------------------- */\n\nfunction CollapsibleTrigger({ ...props }: ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): JSX.Element {\n return <CollapsiblePrimitive.CollapsibleTrigger data-slot=\"collapsible-trigger\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CollapsibleContent\n * -------------------------------------------------------------------------- */\n\nfunction CollapsibleContent({ ...props }: ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): JSX.Element {\n return <CollapsiblePrimitive.CollapsibleContent data-slot=\"collapsible-content\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Collapsible, CollapsibleContent, CollapsibleTrigger };\n"]}
@@ -0,0 +1,2 @@
1
+ import{a as r}from"./chunk-ZFCLI44C.js";import{a as i}from"./chunk-OKUFCFYT.js";import*as e from"@radix-ui/react-dialog";import{XIcon as d}from"lucide-react";import{tv as p}from"tailwind-variants";import{jsx as a,jsxs as l}from"react/jsx-runtime";var h=p({base:"bg-background animation-ease-in-out data-[state=open]:animate-in data-[state=open]:animation-duration-500 data-[state=closed]:animate-out data-[state=closed]:animation-duration-500 fixed z-50 flex flex-col overflow-auto shadow-lg",variants:{side:{bottom:"data-[state=open]:slide-in-from-bottom data-[state=closed]:slide-out-to-bottom inset-x-0 bottom-0 max-h-[80vh] border-t",left:"data-[state=open]:slide-in-from-left data-[state=closed]:slide-out-to-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",right:"data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",top:"data-[state=open]:slide-in-from-top data-[state=closed]:slide-out-to-top inset-x-0 top-0 max-h-[80vh] border-b"}},defaultVariants:{side:"right"}});function S({children:t,...o}){return a(e.Root,{"data-slot":"sheet",...o,children:t})}function P({...t}){return a(e.Trigger,{"data-slot":"sheet-trigger",...t})}function g({children:t,className:o,classNames:n,side:s="right",...m}){return l(e.Portal,{children:[a(e.Overlay,{className:i("bg-popover-overlay data-[state=open]:animate-fade-in data-[state=open]:animation-duration-500 data-[state=closed]:animate-fade-out data-[state=closed]:animation-duration-500 fixed inset-0 z-50",n?.overlay),"data-slot":"sheet-overlay"}),l(e.Content,{className:h({className:[n?.content,o],side:s}),"data-slot":"sheet-content",...m,children:[t,l(e.Close,{className:r({className:["absolute right-4 top-4 size-7",n?.close],size:"icon",variant:"ghost"}),"data-slot":"sheet-close",children:[a(d,{className:"size-4"}),a("span",{className:"sr-only",children:"Close"})]})]})]})}function x({className:t,...o}){return a("header",{className:i("flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left",t),"data-slot":"sheet-header",...o})}function y({className:t,...o}){return a("main",{className:i("px-6 py-2",t),"data-slot":"sheet-body",...o})}function C({className:t,...o}){return a("footer",{className:i("flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end",t),"data-slot":"sheet-footer",...o})}function b({className:t,...o}){return a(e.Title,{className:i("text-foreground text-lg font-semibold",t),"data-slot":"sheet-title",...o})}function N({className:t,...o}){return a(e.Description,{className:i("text-muted-foreground text-sm",t),"data-slot":"sheet-description",...o})}function X({className:t,size:o,variant:n="outline",...s}){return a(e.Close,{className:r({className:t,size:o,variant:n}),"data-slot":"sheet-close",...s})}export{S as a,P as b,g as c,x as d,y as e,C as f,b as g,N as h,X as i};
2
+ //# sourceMappingURL=chunk-JFPE2M2V.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/sheet.tsx"],"names":["SheetPrimitive","XIcon","tv","jsx","jsxs","sheetContentVariants","Sheet","children","props","SheetTrigger","SheetContent","className","classNames","side","cn","buttonVariants","SheetHeader","SheetBody","SheetFooter","SheetTitle","SheetDescription","SheetClose","size","variant"],"mappings":"gFAGA,UAAYA,MAAoB,yBAChC,OAAS,SAAAC,MAAa,eACtB,OAAS,MAAAC,MAAU,oBAgCf,cAAAC,EA+CI,QAAAC,MA/CJ,oBAvBJ,IAAMC,EAAuBH,EAAG,CAC9B,KAAM,wOACN,SAAU,CACR,KAAM,CACJ,OACE,0HACF,KAAM,gIACN,MACE,mIACF,IAAK,gHACP,CACF,EACA,gBAAiB,CACf,KAAM,OACR,CACF,CAAC,EAMD,SAASI,EAAM,CAAE,SAAAC,EAAU,GAAGC,CAAM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UAAAR,EAAW,GAAGH,CAAM,EAA6D,CACrG,OACEL,EAAgB,QAAf,CACC,UAAWW,EAAG,wCAAyCH,CAAS,EAChE,YAAU,cACT,GAAGH,EACN,CAEJ,CAMA,SAASY,EAAiB,CAAE,UAAAT,EAAW,GAAGH,CAAM,EAAmE,CACjH,OACEL,EAAgB,cAAf,CACC,UAAWW,EAAG,gCAAiCH,CAAS,EACxD,YAAU,oBACT,GAAGH,EACN,CAEJ,CAMA,SAASa,EAAW,CAClB,UAAAV,EACA,KAAAW,EACA,QAAAC,EAAU,UACV,GAAGf,CACL,EAGgB,CACd,OACEL,EAAgB,QAAf,CAAqB,UAAWY,EAAe,CAAE,UAAAJ,EAAW,KAAAW,EAAM,QAAAC,CAAQ,CAAC,EAAG,YAAU,cAAe,GAAGf,EAAO,CAEtH","sourcesContent":["import type { ComponentProps, JSX } from 'react';\nimport type { VariantProps } from 'tailwind-variants';\n\nimport * as SheetPrimitive from '@radix-ui/react-dialog';\nimport { XIcon } from 'lucide-react';\nimport { tv } from 'tailwind-variants';\n\nimport { buttonVariants } from '@/components/button';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Variant: SheetContent\n * -------------------------------------------------------------------------- */\n\nconst sheetContentVariants = tv({\n base: 'bg-background animation-ease-in-out data-[state=open]:animate-in data-[state=open]:animation-duration-500 data-[state=closed]:animate-out data-[state=closed]:animation-duration-500 fixed z-50 flex flex-col overflow-auto shadow-lg',\n variants: {\n side: {\n bottom:\n 'data-[state=open]:slide-in-from-bottom data-[state=closed]:slide-out-to-bottom inset-x-0 bottom-0 max-h-[80vh] border-t',\n left: 'data-[state=open]:slide-in-from-left data-[state=closed]:slide-out-to-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm',\n right:\n 'data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm',\n top: 'data-[state=open]:slide-in-from-top data-[state=closed]:slide-out-to-top inset-x-0 top-0 max-h-[80vh] border-b',\n },\n },\n defaultVariants: {\n side: 'right',\n },\n});\n\n/* -----------------------------------------------------------------------------\n * Component: Sheet\n * -------------------------------------------------------------------------- */\n\nfunction Sheet({ children, ...props }: ComponentProps<typeof SheetPrimitive.Root>): JSX.Element {\n return (\n <SheetPrimitive.Root data-slot=\"sheet\" {...props}>\n {children}\n </SheetPrimitive.Root>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetTrigger\n * -------------------------------------------------------------------------- */\n\nfunction SheetTrigger({ ...props }: ComponentProps<typeof SheetPrimitive.Trigger>): JSX.Element {\n return <SheetPrimitive.Trigger data-slot=\"sheet-trigger\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetContent\n * -------------------------------------------------------------------------- */\n\nfunction SheetContent({\n children,\n className,\n classNames,\n side = 'right',\n ...props\n}: ComponentProps<typeof SheetPrimitive.Content> &\n VariantProps<typeof sheetContentVariants> & {\n classNames?: {\n close?: string;\n content?: string;\n overlay?: string;\n };\n }): JSX.Element {\n return (\n <SheetPrimitive.Portal>\n <SheetPrimitive.Overlay\n className={cn(\n 'bg-popover-overlay data-[state=open]:animate-fade-in data-[state=open]:animation-duration-500 data-[state=closed]:animate-fade-out data-[state=closed]:animation-duration-500 fixed inset-0 z-50',\n classNames?.overlay,\n )}\n data-slot=\"sheet-overlay\"\n />\n <SheetPrimitive.Content\n className={sheetContentVariants({ className: [classNames?.content, className], side })}\n data-slot=\"sheet-content\"\n {...props}\n >\n {children}\n <SheetPrimitive.Close\n className={buttonVariants({\n className: ['absolute right-4 top-4 size-7', classNames?.close],\n size: 'icon',\n variant: 'ghost',\n })}\n data-slot=\"sheet-close\"\n >\n <XIcon className=\"size-4\" />\n <span className=\"sr-only\">Close</span>\n </SheetPrimitive.Close>\n </SheetPrimitive.Content>\n </SheetPrimitive.Portal>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetHeader\n * -------------------------------------------------------------------------- */\n\nfunction SheetHeader({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <header\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left', className)}\n data-slot=\"sheet-header\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetBody\n * -------------------------------------------------------------------------- */\n\nfunction SheetBody({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return <main className={cn('px-6 py-2', className)} data-slot=\"sheet-body\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetFooter\n * -------------------------------------------------------------------------- */\n\nfunction SheetFooter({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <footer\n className={cn('flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end', className)}\n data-slot=\"sheet-footer\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetTitle\n * -------------------------------------------------------------------------- */\n\nfunction SheetTitle({ className, ...props }: ComponentProps<typeof SheetPrimitive.Title>): JSX.Element {\n return (\n <SheetPrimitive.Title\n className={cn('text-foreground text-lg font-semibold', className)}\n data-slot=\"sheet-title\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetDescription\n * -------------------------------------------------------------------------- */\n\nfunction SheetDescription({ className, ...props }: ComponentProps<typeof SheetPrimitive.Description>): JSX.Element {\n return (\n <SheetPrimitive.Description\n className={cn('text-muted-foreground text-sm', className)}\n data-slot=\"sheet-description\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetClose\n * -------------------------------------------------------------------------- */\n\nfunction SheetClose({\n className,\n size,\n variant = 'outline',\n ...props\n}: ComponentProps<typeof SheetPrimitive.Close> & {\n size?: VariantProps<typeof buttonVariants>['size'];\n variant?: VariantProps<typeof buttonVariants>['variant'];\n}): JSX.Element {\n return (\n <SheetPrimitive.Close className={buttonVariants({ className, size, variant })} data-slot=\"sheet-close\" {...props} />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Sheet,\n SheetBody,\n SheetClose,\n SheetContent,\n SheetDescription,\n SheetFooter,\n SheetHeader,\n SheetTitle,\n SheetTrigger,\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/chunk-JIF3ESOX.cjs","../src/components/input-number.tsx"],"names":["input","root","inputVariants","InputNumber","id","ariaDecrementLabel","ariaIncrementLabel","className","defaultValue","disabled","formatOptions","loaderPosition","loading","max","min","onChange","prefix","readOnly","spinner","step","suffix","value","props","jsxs","jsx","Spinner","cn","buttonVariants","ChevronUpIcon","ChevronDownIcon","NumberInput"],"mappings":"AAAA,mZAAwC,wDAAyC,wDAAyC,wDAAyC,uGCG7H,2CACS,+CAoDrB,GA7CpB,CAAE,KAAA,CAAAA,CAAAA,CAAO,IAAA,CAAAC,CAAK,CAAA,CAAIC,iCAAAA,CAAc,CAMtC,SAASC,CAAAA,CAAY,CACnB,EAAA,CAAAC,CAAAA,CACA,kBAAA,CAAAC,CAAAA,CACA,kBAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,aAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,GAAA,CAAAC,CAAAA,CACA,GAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,MAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,MAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAEmD,CACjD,OACEC,8BAAAA,CAAsB,CAAA,IAAA,CAArB,CACC,kBAAA,CAAoBlB,CAAAA,CACpB,kBAAA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CAAAA,CACT,SAAA,CAAW,mFAAA,CACX,OAAA,CAAS,OACX,CAAC,CAAA,CACD,WAAA,CAAU,+BAAA,CAEV,QAAA,CAAAH,6BAAAA,4BAACK,CAAA,CAAA,CAAgB,CAAA,CACnB,CAAA,CAAA,CACF,CAAA,CAAA,CACF,CAEJ,CAWA,IAAMC,CAAAA,CAAc3B,CAAAA,CAAAA,6BAAAA","file":"/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/chunk-JIF3ESOX.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\nimport type { VariantProps } from 'tailwind-variants';\n\nimport * as InputNumberPrimitive from '@codefast-ui/input-number';\nimport { ChevronDownIcon, ChevronUpIcon } from 'lucide-react';\n\nimport { buttonVariants } from '@/components/button';\nimport { inputVariants } from '@/components/input';\nimport { Spinner } from '@/components/spinner';\nimport { cn } from '@/lib/utils';\n\nconst { input, root } = inputVariants();\n\n/* -----------------------------------------------------------------------------\n * Component: InputNumber\n * -------------------------------------------------------------------------- */\n\nfunction InputNumber({\n id,\n ariaDecrementLabel,\n ariaIncrementLabel,\n className,\n defaultValue,\n disabled,\n formatOptions,\n loaderPosition,\n loading,\n max,\n min,\n onChange,\n prefix,\n readOnly,\n spinner,\n step,\n suffix,\n value,\n ...props\n}: ComponentProps<typeof InputNumberPrimitive.Item> &\n ComponentProps<typeof InputNumberPrimitive.Root> &\n VariantProps<typeof inputVariants>): JSX.Element {\n return (\n <InputNumberPrimitive.Root\n ariaDecrementLabel={ariaDecrementLabel}\n ariaIncrementLabel={ariaIncrementLabel}\n className={root({ className: ['group pr-0', className] })}\n data-slot=\"input-number\"\n defaultValue={defaultValue}\n disabled={disabled}\n formatOptions={formatOptions}\n id={id}\n loaderPosition={loaderPosition}\n loading={loading}\n max={max}\n min={min}\n prefix={prefix}\n readOnly={readOnly}\n spinner={spinner || <Spinner />}\n step={step}\n suffix={suffix}\n value={value}\n onChange={onChange}\n >\n <InputNumberPrimitive.Item\n autoCapitalize=\"none\"\n autoComplete=\"off\"\n autoCorrect=\"off\"\n className={input()}\n spellCheck=\"false\"\n {...props}\n />\n <div\n className={cn(\n 'divide-input border-l-input group-hover:not-group-focus-within:not-has-disabled:border-l-border-ring/60 group-hover:not-group-focus-within:not-has-disabled:divide-border-ring/60 group-focus-within:border-l-ring group-focus-within:divide-ring group-has-aria-invalid:border-l-destructive group-has-aria-invalid:divide-destructive group-hover:group-has-aria-invalid:not-group-focus-within:not-has-disabled:border-l-destructive/60 group-hover:group-has-aria-invalid:not-group-focus-within:not-has-disabled:divide-destructive/60 order-last ml-auto grid h-full shrink-0 divide-y border-l transition',\n '*:[button]:focus-visible:ring-0 *:[button]:focus-visible:bg-ring/50 group-has-aria-invalid:*:[button]:focus-visible:bg-destructive/20 dark:group-has-aria-invalid:*:[button]:focus-visible:bg-destructive/40',\n )}\n data-slot=\"input-number-buttons\"\n >\n <InputNumberPrimitive.IncrementButton\n aria-label=\"Increment\"\n className={buttonVariants({\n className: 'text-muted-foreground h-auto rounded-none rounded-tr-[calc(var(--radius-lg)-1px)]',\n variant: 'ghost',\n })}\n data-slot=\"input-number-increment-button\"\n >\n <ChevronUpIcon />\n </InputNumberPrimitive.IncrementButton>\n <InputNumberPrimitive.DecrementButton\n aria-label=\"Decrement\"\n className={buttonVariants({\n className: 'text-muted-foreground h-auto rounded-none rounded-br-[calc(var(--radius-lg)-1px)]',\n variant: 'ghost',\n })}\n data-slot=\"input-number-decrement-button\"\n >\n <ChevronDownIcon />\n </InputNumberPrimitive.DecrementButton>\n </div>\n </InputNumberPrimitive.Root>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Deprecated\n * -------------------------------------------------------------------------- */\n\n/**\n * @deprecated\n * This component is an alias of the Input component.\n * Please use the Input component instead to ensure consistency.\n */\nconst NumberInput = InputNumber;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { InputNumber, NumberInput };\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-JIF3ESOX.cjs","../src/components/input-number.tsx"],"names":["input","root","inputVariants","InputNumber","id","ariaDecrementLabel","ariaIncrementLabel","className","defaultValue","disabled","formatOptions","loaderPosition","loading","max","min","onChange","prefix","readOnly","spinner","step","suffix","value","props","jsxs","jsx","Spinner","cn","buttonVariants","ChevronUpIcon","ChevronDownIcon","NumberInput"],"mappings":"AAAA,mZAAwC,wDAAyC,wDAAyC,wDAAyC,uGCG7H,2CACS,+CAoDrB,GA7CpB,CAAE,KAAA,CAAAA,CAAAA,CAAO,IAAA,CAAAC,CAAK,CAAA,CAAIC,iCAAAA,CAAc,CAMtC,SAASC,CAAAA,CAAY,CACnB,EAAA,CAAAC,CAAAA,CACA,kBAAA,CAAAC,CAAAA,CACA,kBAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,aAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,GAAA,CAAAC,CAAAA,CACA,GAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,MAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,MAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAEmD,CACjD,OACEC,8BAAAA,CAAsB,CAAA,IAAA,CAArB,CACC,kBAAA,CAAoBlB,CAAAA,CACpB,kBAAA,CAAoBC,CAAAA,CACpB,SAAA,CAAWL,CAAAA,CAAK,CAAE,SAAA,CAAW,CAAC,YAAA,CAAcM,CAAS,CAAE,CAAC,CAAA,CACxD,WAAA,CAAU,cAAA,CACV,YAAA,CAAcC,CAAAA,CACd,QAAA,CAAUC,CAAAA,CACV,aAAA,CAAeC,CAAAA,CACf,EAAA,CAAIN,CAA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CAAAA,6BAAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-JIF3ESOX.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\nimport type { VariantProps } from 'tailwind-variants';\n\nimport * as InputNumberPrimitive from '@codefast-ui/input-number';\nimport { ChevronDownIcon, ChevronUpIcon } from 'lucide-react';\n\nimport { buttonVariants } from '@/components/button';\nimport { inputVariants } from '@/components/input';\nimport { Spinner } from '@/components/spinner';\nimport { cn } from '@/lib/utils';\n\nconst { input, root } = inputVariants();\n\n/* -----------------------------------------------------------------------------\n * Component: InputNumber\n * -------------------------------------------------------------------------- */\n\nfunction InputNumber({\n id,\n ariaDecrementLabel,\n ariaIncrementLabel,\n className,\n defaultValue,\n disabled,\n formatOptions,\n loaderPosition,\n loading,\n max,\n min,\n onChange,\n prefix,\n readOnly,\n spinner,\n step,\n suffix,\n value,\n ...props\n}: ComponentProps<typeof InputNumberPrimitive.Item> &\n ComponentProps<typeof InputNumberPrimitive.Root> &\n VariantProps<typeof inputVariants>): JSX.Element {\n return (\n <InputNumberPrimitive.Root\n ariaDecrementLabel={ariaDecrementLabel}\n ariaIncrementLabel={ariaIncrementLabel}\n className={root({ className: ['group pr-0', className] })}\n data-slot=\"input-number\"\n defaultValue={defaultValue}\n disabled={disabled}\n formatOptions={formatOptions}\n id={id}\n loaderPosition={loaderPosition}\n loading={loading}\n max={max}\n min={min}\n prefix={prefix}\n readOnly={readOnly}\n spinner={spinner || <Spinner />}\n step={step}\n suffix={suffix}\n value={value}\n onChange={onChange}\n >\n <InputNumberPrimitive.Item\n autoCapitalize=\"none\"\n autoComplete=\"off\"\n autoCorrect=\"off\"\n className={input()}\n spellCheck=\"false\"\n {...props}\n />\n <div\n className={cn(\n 'divide-input border-l-input group-hover:not-group-focus-within:not-has-disabled:border-l-border-ring/60 group-hover:not-group-focus-within:not-has-disabled:divide-border-ring/60 group-focus-within:border-l-ring group-focus-within:divide-ring group-has-aria-invalid:border-l-destructive group-has-aria-invalid:divide-destructive group-hover:group-has-aria-invalid:not-group-focus-within:not-has-disabled:border-l-destructive/60 group-hover:group-has-aria-invalid:not-group-focus-within:not-has-disabled:divide-destructive/60 order-last ml-auto grid h-full shrink-0 divide-y border-l transition',\n '*:[button]:focus-visible:ring-0 *:[button]:focus-visible:bg-ring/50 group-has-aria-invalid:*:[button]:focus-visible:bg-destructive/20 dark:group-has-aria-invalid:*:[button]:focus-visible:bg-destructive/40',\n )}\n data-slot=\"input-number-buttons\"\n >\n <InputNumberPrimitive.IncrementButton\n aria-label=\"Increment\"\n className={buttonVariants({\n className: 'text-muted-foreground h-auto rounded-none rounded-tr-[calc(var(--radius-lg)-1px)]',\n variant: 'ghost',\n })}\n data-slot=\"input-number-increment-button\"\n >\n <ChevronUpIcon />\n </InputNumberPrimitive.IncrementButton>\n <InputNumberPrimitive.DecrementButton\n aria-label=\"Decrement\"\n className={buttonVariants({\n className: 'text-muted-foreground h-auto rounded-none rounded-br-[calc(var(--radius-lg)-1px)]',\n variant: 'ghost',\n })}\n data-slot=\"input-number-decrement-button\"\n >\n <ChevronDownIcon />\n </InputNumberPrimitive.DecrementButton>\n </div>\n </InputNumberPrimitive.Root>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Deprecated\n * -------------------------------------------------------------------------- */\n\n/**\n * @deprecated\n * This component is an alias of the Input component.\n * Please use the Input component instead to ensure consistency.\n */\nconst NumberInput = InputNumber;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { InputNumber, NumberInput };\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/chunk-JW6C57Y5.cjs","../src/components/progress.tsx"],"names":["Progress","className","value","props","jsx","cn"],"mappings":"AAAA,ufAAwC,0GCEL,+CAe7B,SAPGA,CAAAA,CAAS,CAAE,SAAA,CAAAC,CAAAA,CAAW,KAAA,CAAAC,CAAAA,CAAO,GAAGC,CAAM,CAAA,CAA+D,CAC5G,OACEC,6BAAAA,CAAmB,CAAA,IAAA,CAAlB,CACC,SAAA,CAAWC,iCAAAA,gEAAG,CAAkEJ,CAAS,CAAA,CACzF,WAAA,CAAU,UAAA,CACT,GAAGE,CAAAA,CAEJ,QAAA,CAAAC,6BAAAA,CAAmB,CAAA,SAAA,CAAlB,CACC,SAAA,CAAU,4CAAA,CACV,WAAA,CAAU,oBAAA,CACV,KAAA,CAAO,CACL,SAAA,CAAW,CAAA,YAAA,EAAe,MAAA,CAAO,GAAA,CAAA,kBAAOF,CAAAA,SAAS,GAAA,CAAE,CAAC,CAAA,EAAA,CACtD,CAAA,CACF,CAAA,CACF,CAEJ,CAAA,cAAA","file":"/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/chunk-JW6C57Y5.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\n\nimport * as ProgressPrimitive from '@radix-ui/react-progress';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Progress\n * -------------------------------------------------------------------------- */\n\nfunction Progress({ className, value, ...props }: ComponentProps<typeof ProgressPrimitive.Root>): JSX.Element {\n return (\n <ProgressPrimitive.Root\n className={cn('bg-primary/20 relative h-2 w-full overflow-hidden rounded-full', className)}\n data-slot=\"progress\"\n {...props}\n >\n <ProgressPrimitive.Indicator\n className=\"bg-primary size-full flex-1 transition-all\"\n data-slot=\"progress-indicator\"\n style={{\n transform: `translateX(-${String(100 - (value ?? 0))}%)`,\n }}\n />\n </ProgressPrimitive.Root>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Progress };\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-JW6C57Y5.cjs","../src/components/progress.tsx"],"names":["Progress","className","value","props","jsx","cn"],"mappings":"AAAA,ufAAwC,0GCEL,+CAe7B,SAPGA,CAAAA,CAAS,CAAE,SAAA,CAAAC,CAAAA,CAAW,KAAA,CAAAC,CAAAA,CAAO,GAAGC,CAAM,CAAA,CAA+D,CAC5G,OACEC,6BAAAA,CAAmB,CAAA,IAAA,CAAlB,CACC,SAAA,CAAWC,iCAAAA,gEAAG,CAAkEJ,CAAS,CAAA,CACzF,WAAA,CAAU,UAAA,CACT,GAAGE,CAAAA,CAEJ,QAAA,CAAAC,6BAAAA,CAAmB,CAAA,SAAA,CAAlB,CACC,SAAA,CAAU,4CAAA,CACV,WAAA,CAAU,oBAAA,CACV,KAAA,CAAO,CACL,SAAA,CAAW,CAAA,YAAA,EAAe,MAAA,CAAO,GAAA,CAAA,kBAAOF,CAAAA,SAAS,GAAA,CAAE,CAAC,CAAA,EAAA,CACtD,CAAA,CACF,CAAA,CACF,CAEJ,CAAA,cAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-JW6C57Y5.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\n\nimport * as ProgressPrimitive from '@radix-ui/react-progress';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Progress\n * -------------------------------------------------------------------------- */\n\nfunction Progress({ className, value, ...props }: ComponentProps<typeof ProgressPrimitive.Root>): JSX.Element {\n return (\n <ProgressPrimitive.Root\n className={cn('bg-primary/20 relative h-2 w-full overflow-hidden rounded-full', className)}\n data-slot=\"progress\"\n {...props}\n >\n <ProgressPrimitive.Indicator\n className=\"bg-primary size-full flex-1 transition-all\"\n data-slot=\"progress-indicator\"\n style={{\n transform: `translateX(-${String(100 - (value ?? 0))}%)`,\n }}\n />\n </ProgressPrimitive.Root>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Progress };\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/box.tsx"],"names":["Box","asChild","props","jsx","Slot"],"mappings":"AAEA,0HAAqB,+CAcZ,SARAA,CAAAA,CAAI,CACX,OAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAEgB,CAGd,OAAOC,6BAAAA,CAFWF,CAAUG,eAAAA,CAAO,KAAA,CAE3B,CAAU,WAAA,CAAU,KAAA,CAAO,GAAGF,CAAAA,CAAO,CAC/C,CAAA,cAAA","file":"/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/chunk-KEF3RCSW.cjs","sourcesContent":["import type { ComponentProps, JSX } from 'react';\n\nimport { Slot } from '@radix-ui/react-slot';\n\n/* -----------------------------------------------------------------------------\n * Component: Box\n * -------------------------------------------------------------------------- */\n\nfunction Box({\n asChild,\n ...props\n}: ComponentProps<'div'> & {\n asChild?: boolean;\n}): JSX.Element {\n const Component = asChild ? Slot : 'div';\n\n return <Component data-slot=\"box\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Box };\n"]}
1
+ {"version":3,"sources":["../src/components/box.tsx"],"names":["Box","asChild","props","jsx","Slot"],"mappings":"AAEA,0HAAqB,+CAcZ,SARAA,CAAAA,CAAI,CACX,OAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAEgB,CAGd,OAAOC,6BAAAA,CAFWF,CAAUG,eAAAA,CAAO,KAAA,CAE3B,CAAU,WAAA,CAAU,KAAA,CAAO,GAAGF,CAAAA,CAAO,CAC/C,CAAA,cAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-KEF3RCSW.cjs","sourcesContent":["import type { ComponentProps, JSX } from 'react';\n\nimport { Slot } from '@radix-ui/react-slot';\n\n/* -----------------------------------------------------------------------------\n * Component: Box\n * -------------------------------------------------------------------------- */\n\nfunction Box({\n asChild,\n ...props\n}: ComponentProps<'div'> & {\n asChild?: boolean;\n}): JSX.Element {\n const Component = asChild ? Slot : 'div';\n\n return <Component data-slot=\"box\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Box };\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/chunk-KOVXL4P6.cjs","../src/components/toggle-group.tsx"],"names":["ToggleGroupPrimitive","useToggleGroupScope","createToggleGroupScope","ToggleGroupProvider","useToggleGroupContext","createToggleGroupContext","TOGGLE_GROUP_NAME","ToggleGroup","children","className","props","toggleGroupScope","jsx","size","cn","variant","TOGGLE_GROUP_ITEM_NAME","__scopeToggleGroup","jsxs","toggleVariants","prefix"],"mappings":"AAAA,uWAAY,CAAC,wDAAwC,wDCM5C,uDACGA,oHACH,+CASiB,IAAA,CAAA,CAAA,aAIuE,CAE3FC,CAAAA,CAAsBC,CAAAA,CAAuB,8CAAA,CAE5CC,CAAAA,CAAqBC,wCAAqB,CAAA,CAC/CC,CAAAA,CAA8DC,CAAiB,sDAAA,CAMjF,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAASC,CAAAA,CAAY,CACnB,CAAA,SAAA,CAAA,CAAA,CAAA,kBACAC,CACA,CAAA,CAAA,QAAAC,CAAAA,CACA,CAAA,SACA,CAAA,CAAA,CAAA,IACA,CAAA,CAAA,CAAGC,OAEH,CAAMC,CAAAA,CAAmBV,GAAsC,CAAA,CAE/D,CAAA,CAAA,IAAA,CACEW,CAAAA,CAACT,CAAAA,CAAA,CAAoB,CAAA,OAA2B,6BAAA,CAAA,CAAA,CAAMU,KAAM,CAAA,CAAA,CAAA,IAC1D,CAAA,CAAA,CAAA,OAAAD,CAAsB,CAAA,CAAA,QACpB,CAAA,6BAAA,CAAA,CAAA,IAAWE,CAAG,CAAA,SAAA,CAAA,iCAAA,mEACd,CAAA,CAAA,CAAWD,CAAAA,WACX,CAAA,CAAU,CAAA,WAAA,CAAA,cACV,CAAA,cAIC,CAAA,CAAA,CAAA,GAAA,CAAA,CAAA,GACH,CAAA,CACF,QAQ2B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,IAAA,CAAA,CAAA,iBAG7B,CAAA,SAAA,CAAA,CAAA,CAAA,kBACAL,CACA,CAAA,CAAA,QAAAC,CAAAA,CACA,CAAA,SACA,CAAA,CAAA,CAAA,MACA,CAAA,CAAGC,CACL,MAMQ,CAAE,CAAA,CAAA,GAAA,CAAA,CAAA,CAAAK,CAAAA,GAAS,CAAA,OAA+BC,CAAAA,CAAwBC,CAAkB,IACjEhB,CAAAA,CAAoBgB,CAAkB,CAAA,CAE/D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACEC,CAAAA,CAAsB,CAAA,CAAA,CAAA,CAAA,OACpB,8BAAA,CAAA,CAAA,IAAWC,CAAe,CACxB,SAAA,CAAW,iCACT,CAAA,SAAA,CAAA,CAAA,qHAIF,CAAA,CAAA,CAAA,CAAA,IACD,CAAA,CACD,CAAA,OAAA,CAAA,CAAA,CAAA,CAAU,CAAA,WAAA,CAAA,mBACV,CAAA,cAIC,CAAA,CAAA,CAAA,GAAA,CAAA,CAAA,GAAAC,CACAZ,CAAAA,QAIP,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,6BAAA","file":"/Users/vuongphan/Projects/codefastlabs/codefast/packages/ui/dist/chunk-KOVXL4P6.cjs","sourcesContent":[null,"'use client';\n\nimport type { Scope } from '@radix-ui/react-context';\nimport type { ComponentProps, JSX, ReactNode } from 'react';\nimport type { VariantProps } from 'tailwind-variants';\n\nimport { createContextScope } from '@radix-ui/react-context';\nimport * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';\nimport { createToggleGroupScope } from '@radix-ui/react-toggle-group';\n\nimport { toggleVariants } from '@/components/toggle';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Context: ToggleGroup\n * -------------------------------------------------------------------------- */\n\nconst TOGGLE_GROUP_NAME = 'ToggleGroup';\n\ntype ScopedProps<P> = P & { __scopeToggleGroup?: Scope };\n\nconst [createToggleGroupContext] = createContextScope(TOGGLE_GROUP_NAME, [createToggleGroupScope]);\n\nconst useToggleGroupScope = createToggleGroupScope();\n\nconst [ToggleGroupProvider, useToggleGroupContext] =\n createToggleGroupContext<VariantProps<typeof toggleVariants>>(TOGGLE_GROUP_NAME);\n\n/* -----------------------------------------------------------------------------\n * Component: ToggleGroup\n * -------------------------------------------------------------------------- */\n\nfunction ToggleGroup({\n __scopeToggleGroup,\n children,\n className,\n size,\n variant,\n ...props\n}: ScopedProps<ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants>>): JSX.Element {\n const toggleGroupScope = useToggleGroupScope(__scopeToggleGroup);\n\n return (\n <ToggleGroupProvider scope={__scopeToggleGroup} size={size} variant={variant}>\n <ToggleGroupPrimitive.Root\n className={cn('group/toggle-group flex w-fit items-center -space-x-px rounded-md', className)}\n data-size={size}\n data-slot=\"toggle-group\"\n data-variant={variant}\n {...toggleGroupScope}\n {...props}\n >\n {children}\n </ToggleGroupPrimitive.Root>\n </ToggleGroupProvider>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ToggleGroupItem\n * -------------------------------------------------------------------------- */\n\nconst TOGGLE_GROUP_ITEM_NAME = 'ToggleGroupItem';\n\nfunction ToggleGroupItem({\n __scopeToggleGroup,\n children,\n className,\n prefix,\n suffix,\n ...props\n}: ScopedProps<\n Omit<ComponentProps<typeof ToggleGroupPrimitive.Item>, 'prefix'> & {\n prefix?: ReactNode;\n suffix?: ReactNode;\n }\n>): JSX.Element {\n const { variant, size } = useToggleGroupContext(TOGGLE_GROUP_ITEM_NAME, __scopeToggleGroup);\n const toggleGroupScope = useToggleGroupScope(__scopeToggleGroup);\n\n return (\n <ToggleGroupPrimitive.Item\n className={toggleVariants({\n className: [\n 'min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10',\n className,\n ],\n size,\n variant,\n })}\n data-slot=\"toggle-group-item\"\n data-variant={variant}\n {...toggleGroupScope}\n {...props}\n >\n {prefix}\n {children}\n {suffix}\n </ToggleGroupPrimitive.Item>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { ToggleGroup, ToggleGroupItem };\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-KOVXL4P6.cjs","../src/components/toggle-group.tsx"],"names":["ToggleGroupPrimitive","useToggleGroupScope","createToggleGroupScope","ToggleGroupProvider","useToggleGroupContext","createToggleGroupContext","TOGGLE_GROUP_NAME","ToggleGroup","children","className","props","toggleGroupScope","jsx","size","cn","variant","TOGGLE_GROUP_ITEM_NAME","__scopeToggleGroup","jsxs","toggleVariants","prefix"],"mappings":"AAAA,uWAAY,CAAC,wDAAwC,wDCM5C,uDACGA,oHACH,+CASiB,IAAA,CAAA,CAAA,aAIuE,CAE3FC,CAAAA,CAAsBC,CAAAA,CAAuB,8CAAA,CAE5CC,CAAAA,CAAqBC,wCAAqB,CAAA,CAC/CC,CAAAA,CAA8DC,CAAiB,sDAAA,CAMjF,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAASC,CAAAA,CAAY,CACnB,CAAA,SAAA,CAAA,CAAA,CAAA,kBACAC,CACA,CAAA,CAAA,QAAAC,CAAAA,CACA,CAAA,SACA,CAAA,CAAA,CAAA,IACA,CAAA,CAAA,CAAGC,OAEH,CAAMC,CAAAA,CAAmBV,GAAsC,CAAA,CAE/D,CAAA,CAAA,IAAA,CACEW,CAAAA,CAACT,CAAAA,CAAA,CAAoB,CAAA,OAA2B,6BAAA,CAAA,CAAA,CAAMU,KAAM,CAAA,CAAA,CAAA,IAC1D,CAAA,CAAA,CAAA,OAAAD,CAAsB,CAAA,CAAA,QACpB,CAAA,6BAAA,CAAA,CAAA,IAAWE,CAAG,CAAA,SAAA,CAAA,iCAAA,mEACd,CAAA,CAAA,CAAWD,CAAAA,WACX,CAAA,CAAU,CAAA,WAAA,CAAA,cACV,CAAA,cAIC,CAAA,CAAA,CAAA,GAAA,CAAA,CAAA,GACH,CAAA,CACF,QAQ2B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,IAAA,CAAA,CAAA,iBAG7B,CAAA,SAAA,CAAA,CAAA,CAAA,kBACAL,CACA,CAAA,CAAA,QAAAC,CAAAA,CACA,CAAA,SACA,CAAA,CAAA,CAAA,MACA,CAAA,CAAGC,CACL,MAMQ,CAAE,CAAA,CAAA,GAAA,CAAA,CAAA,CAAAK,CAAAA,GAAS,CAAA,OAA+BC,CAAAA,CAAwBC,CAAkB,IACjEhB,CAAAA,CAAoBgB,CAAkB,CAAA,CAE/D,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACEC,CAAAA,CAAsB,CAAA,CAAA,CAAA,CAAA,OACpB,8BAAA,CAAA,CAAA,IAAWC,CAAe,CACxB,SAAA,CAAW,iCACT,CAAA,SAAA,CAAA,CAAA,qHAIF,CAAA,CAAA,CAAA,CAAA,IACD,CAAA,CACD,CAAA,OAAA,CAAA,CAAA,CAAA,CAAU,CAAA,WAAA,CAAA,mBACV,CAAA,cAIC,CAAA,CAAA,CAAA,GAAA,CAAA,CAAA,GAAAC,CACAZ,CAAAA,QAIP,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,6BAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-KOVXL4P6.cjs","sourcesContent":[null,"'use client';\n\nimport type { Scope } from '@radix-ui/react-context';\nimport type { ComponentProps, JSX, ReactNode } from 'react';\nimport type { VariantProps } from 'tailwind-variants';\n\nimport { createContextScope } from '@radix-ui/react-context';\nimport * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';\nimport { createToggleGroupScope } from '@radix-ui/react-toggle-group';\n\nimport { toggleVariants } from '@/components/toggle';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Context: ToggleGroup\n * -------------------------------------------------------------------------- */\n\nconst TOGGLE_GROUP_NAME = 'ToggleGroup';\n\ntype ScopedProps<P> = P & { __scopeToggleGroup?: Scope };\n\nconst [createToggleGroupContext] = createContextScope(TOGGLE_GROUP_NAME, [createToggleGroupScope]);\n\nconst useToggleGroupScope = createToggleGroupScope();\n\nconst [ToggleGroupProvider, useToggleGroupContext] =\n createToggleGroupContext<VariantProps<typeof toggleVariants>>(TOGGLE_GROUP_NAME);\n\n/* -----------------------------------------------------------------------------\n * Component: ToggleGroup\n * -------------------------------------------------------------------------- */\n\nfunction ToggleGroup({\n __scopeToggleGroup,\n children,\n className,\n size,\n variant,\n ...props\n}: ScopedProps<ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants>>): JSX.Element {\n const toggleGroupScope = useToggleGroupScope(__scopeToggleGroup);\n\n return (\n <ToggleGroupProvider scope={__scopeToggleGroup} size={size} variant={variant}>\n <ToggleGroupPrimitive.Root\n className={cn('group/toggle-group flex w-fit items-center -space-x-px rounded-md', className)}\n data-size={size}\n data-slot=\"toggle-group\"\n data-variant={variant}\n {...toggleGroupScope}\n {...props}\n >\n {children}\n </ToggleGroupPrimitive.Root>\n </ToggleGroupProvider>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ToggleGroupItem\n * -------------------------------------------------------------------------- */\n\nconst TOGGLE_GROUP_ITEM_NAME = 'ToggleGroupItem';\n\nfunction ToggleGroupItem({\n __scopeToggleGroup,\n children,\n className,\n prefix,\n suffix,\n ...props\n}: ScopedProps<\n Omit<ComponentProps<typeof ToggleGroupPrimitive.Item>, 'prefix'> & {\n prefix?: ReactNode;\n suffix?: ReactNode;\n }\n>): JSX.Element {\n const { variant, size } = useToggleGroupContext(TOGGLE_GROUP_ITEM_NAME, __scopeToggleGroup);\n const toggleGroupScope = useToggleGroupScope(__scopeToggleGroup);\n\n return (\n <ToggleGroupPrimitive.Item\n className={toggleVariants({\n className: [\n 'min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10',\n className,\n ],\n size,\n variant,\n })}\n data-slot=\"toggle-group-item\"\n data-variant={variant}\n {...toggleGroupScope}\n {...props}\n >\n {prefix}\n {children}\n {suffix}\n </ToggleGroupPrimitive.Item>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { ToggleGroup, ToggleGroupItem };\n"]}