@codefast/ui 0.1.36 → 0.1.37

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 (182) hide show
  1. package/dist/{chunk-UFXEVSU6.cjs → chunk-277MGUJU.cjs} +2 -2
  2. package/dist/{chunk-UFXEVSU6.cjs.map → chunk-277MGUJU.cjs.map} +1 -1
  3. package/dist/{chunk-KBPTF6BB.js → chunk-2L2JOHZX.js} +2 -2
  4. package/dist/chunk-2LKWUAEG.js +2 -0
  5. package/dist/chunk-2LKWUAEG.js.map +1 -0
  6. package/dist/{chunk-I5QVTZ6O.cjs → chunk-3X6EEYS3.cjs} +2 -2
  7. package/dist/{chunk-I5QVTZ6O.cjs.map → chunk-3X6EEYS3.cjs.map} +1 -1
  8. package/dist/{chunk-SONWHTU3.cjs → chunk-4EPZJQXB.cjs} +2 -2
  9. package/dist/{chunk-SONWHTU3.cjs.map → chunk-4EPZJQXB.cjs.map} +1 -1
  10. package/dist/{chunk-5REZ5BVP.cjs → chunk-4GFRDE44.cjs} +2 -2
  11. package/dist/{chunk-5REZ5BVP.cjs.map → chunk-4GFRDE44.cjs.map} +1 -1
  12. package/dist/{chunk-5LLPQFUS.js → chunk-4MEKIJBX.js} +2 -2
  13. package/dist/{chunk-VGV2WASA.cjs → chunk-4NUC23C3.cjs} +2 -2
  14. package/dist/{chunk-VGV2WASA.cjs.map → chunk-4NUC23C3.cjs.map} +1 -1
  15. package/dist/{chunk-VIL5XAJ2.js → chunk-5NHYXWLY.js} +2 -2
  16. package/dist/{chunk-JNLGUTYE.js → chunk-5WJRJGUS.js} +2 -2
  17. package/dist/{chunk-SJNWC7WS.js → chunk-5ZLLY3TV.js} +2 -2
  18. package/dist/{chunk-3CDTMAHF.cjs → chunk-6JVA5L6F.cjs} +2 -2
  19. package/dist/{chunk-3CDTMAHF.cjs.map → chunk-6JVA5L6F.cjs.map} +1 -1
  20. package/dist/{chunk-6OVKYA6N.cjs → chunk-6WG2BQFJ.cjs} +2 -2
  21. package/dist/{chunk-6OVKYA6N.cjs.map → chunk-6WG2BQFJ.cjs.map} +1 -1
  22. package/dist/{chunk-N422I4LM.cjs → chunk-7K56G3OS.cjs} +2 -2
  23. package/dist/{chunk-N422I4LM.cjs.map → chunk-7K56G3OS.cjs.map} +1 -1
  24. package/dist/{chunk-LCIAEPHS.cjs → chunk-AIMWT5FF.cjs} +2 -2
  25. package/dist/{chunk-LCIAEPHS.cjs.map → chunk-AIMWT5FF.cjs.map} +1 -1
  26. package/dist/chunk-AWEJTVM3.js +2 -0
  27. package/dist/chunk-AWEJTVM3.js.map +1 -0
  28. package/dist/{chunk-NEUH7LBS.cjs → chunk-B2ANDYCK.cjs} +2 -2
  29. package/dist/{chunk-NEUH7LBS.cjs.map → chunk-B2ANDYCK.cjs.map} +1 -1
  30. package/dist/chunk-B3N66CDR.js +2 -0
  31. package/dist/chunk-B3N66CDR.js.map +1 -0
  32. package/dist/chunk-B6QFTT55.js +2 -0
  33. package/dist/{chunk-PNAKTM3B.js.map → chunk-B6QFTT55.js.map} +1 -1
  34. package/dist/chunk-CQUPWL67.js +2 -0
  35. package/dist/chunk-CQUPWL67.js.map +1 -0
  36. package/dist/{chunk-WQ3FICST.cjs → chunk-DDUYQ6R3.cjs} +2 -2
  37. package/dist/chunk-DDUYQ6R3.cjs.map +1 -0
  38. package/dist/{chunk-O4H3WFSF.js → chunk-DQYZFLAN.js} +2 -2
  39. package/dist/{chunk-QIW5RBHT.js → chunk-ER57BTKA.js} +2 -2
  40. package/dist/{chunk-WN4T6UM3.js → chunk-ESGJD3EH.js} +2 -2
  41. package/dist/chunk-FOCRCGCP.cjs +2 -0
  42. package/dist/chunk-FOCRCGCP.cjs.map +1 -0
  43. package/dist/{chunk-B644MBBG.cjs → chunk-GLTHRHLI.cjs} +2 -2
  44. package/dist/{chunk-B644MBBG.cjs.map → chunk-GLTHRHLI.cjs.map} +1 -1
  45. package/dist/{chunk-O64TC5AF.js → chunk-HO75YBHT.js} +2 -2
  46. package/dist/{chunk-MWADNAZB.js → chunk-IHEIUFFB.js} +2 -2
  47. package/dist/{chunk-FVB3KM64.js → chunk-JNSAIWYA.js} +2 -2
  48. package/dist/{chunk-B4Y4AQPU.cjs → chunk-JO3GWI7Z.cjs} +2 -2
  49. package/dist/{chunk-B4Y4AQPU.cjs.map → chunk-JO3GWI7Z.cjs.map} +1 -1
  50. package/dist/{chunk-EH3IHQRL.cjs → chunk-KU2TWJO6.cjs} +2 -2
  51. package/dist/{chunk-EH3IHQRL.cjs.map → chunk-KU2TWJO6.cjs.map} +1 -1
  52. package/dist/chunk-L7HMJMCP.js +2 -0
  53. package/dist/{chunk-N5U7MKXK.js.map → chunk-L7HMJMCP.js.map} +1 -1
  54. package/dist/{chunk-D3YTCKUH.js → chunk-MS6HNR34.js} +2 -2
  55. package/dist/{chunk-WLOZYBMB.cjs → chunk-NBQOSKVV.cjs} +2 -2
  56. package/dist/{chunk-WLOZYBMB.cjs.map → chunk-NBQOSKVV.cjs.map} +1 -1
  57. package/dist/chunk-NSA7UBGF.cjs +2 -0
  58. package/dist/chunk-NSA7UBGF.cjs.map +1 -0
  59. package/dist/chunk-PCEPHQF4.js +2 -0
  60. package/dist/chunk-PCEPHQF4.js.map +1 -0
  61. package/dist/{chunk-B3NICH7Q.js → chunk-PFJKZSJ6.js} +2 -2
  62. package/dist/{chunk-TI7JQNNN.js → chunk-PHNUQKIK.js} +2 -2
  63. package/dist/{chunk-SEEK7N3Y.cjs → chunk-QGXJIDRM.cjs} +2 -2
  64. package/dist/{chunk-SEEK7N3Y.cjs.map → chunk-QGXJIDRM.cjs.map} +1 -1
  65. package/dist/chunk-QJGSGK2F.cjs +2 -0
  66. package/dist/chunk-QJGSGK2F.cjs.map +1 -0
  67. package/dist/{chunk-XZ7TLHX3.js → chunk-RPUH3ITJ.js} +2 -2
  68. package/dist/chunk-RY34IJ6J.cjs +2 -0
  69. package/dist/chunk-RY34IJ6J.cjs.map +1 -0
  70. package/dist/{chunk-HNQ6FIEB.js → chunk-T3UMGRIG.js} +2 -2
  71. package/dist/{chunk-4KZKY2CG.js → chunk-TSLTPMZG.js} +2 -2
  72. package/dist/chunk-UF5YIM7L.cjs +2 -0
  73. package/dist/chunk-UF5YIM7L.cjs.map +1 -0
  74. package/dist/{chunk-YN4PRPM2.cjs → chunk-UFTG26DA.cjs} +2 -2
  75. package/dist/{chunk-YN4PRPM2.cjs.map → chunk-UFTG26DA.cjs.map} +1 -1
  76. package/dist/chunk-VPPKOHWH.js +2 -0
  77. package/dist/chunk-VPPKOHWH.js.map +1 -0
  78. package/dist/{chunk-XPXTRWKN.cjs → chunk-Y46KHJVE.cjs} +2 -2
  79. package/dist/{chunk-XPXTRWKN.cjs.map → chunk-Y46KHJVE.cjs.map} +1 -1
  80. package/dist/{chunk-4JENRUBJ.cjs → chunk-YP7NF7KY.cjs} +2 -2
  81. package/dist/{chunk-4JENRUBJ.cjs.map → chunk-YP7NF7KY.cjs.map} +1 -1
  82. package/dist/{chunk-HT6KARNV.cjs → chunk-YUJO6FOF.cjs} +2 -2
  83. package/dist/{chunk-HT6KARNV.cjs.map → chunk-YUJO6FOF.cjs.map} +1 -1
  84. package/dist/components/alert-dialog.cjs +1 -1
  85. package/dist/components/alert-dialog.js +1 -1
  86. package/dist/components/badge.cjs +1 -1
  87. package/dist/components/badge.d.cts +35 -35
  88. package/dist/components/badge.d.ts +35 -35
  89. package/dist/components/badge.js +1 -1
  90. package/dist/components/button.cjs +1 -1
  91. package/dist/components/button.js +1 -1
  92. package/dist/components/calendar.cjs +1 -1
  93. package/dist/components/calendar.js +1 -1
  94. package/dist/components/carousel.cjs +1 -1
  95. package/dist/components/carousel.js +1 -1
  96. package/dist/components/checkbox-cards.cjs +1 -1
  97. package/dist/components/checkbox-cards.js +1 -1
  98. package/dist/components/checkbox-group.cjs +1 -1
  99. package/dist/components/checkbox-group.js +1 -1
  100. package/dist/components/checkbox.cjs +1 -1
  101. package/dist/components/checkbox.js +1 -1
  102. package/dist/components/command.cjs +1 -1
  103. package/dist/components/command.js +1 -1
  104. package/dist/components/data-table.cjs +1 -1
  105. package/dist/components/data-table.d.cts +2 -2
  106. package/dist/components/data-table.d.ts +2 -2
  107. package/dist/components/data-table.js +1 -1
  108. package/dist/components/dialog.cjs +1 -1
  109. package/dist/components/dialog.js +1 -1
  110. package/dist/components/drawer.cjs +1 -1
  111. package/dist/components/drawer.js +1 -1
  112. package/dist/components/navigation-menu.cjs +1 -1
  113. package/dist/components/navigation-menu.js +1 -1
  114. package/dist/components/number-input.cjs +1 -1
  115. package/dist/components/number-input.js +1 -1
  116. package/dist/components/pagination.cjs +1 -1
  117. package/dist/components/pagination.js +1 -1
  118. package/dist/components/password-input.cjs +1 -1
  119. package/dist/components/password-input.js +1 -1
  120. package/dist/components/search-input.cjs +1 -1
  121. package/dist/components/search-input.js +1 -1
  122. package/dist/components/select.cjs +1 -1
  123. package/dist/components/select.js +1 -1
  124. package/dist/components/sheet.cjs +1 -1
  125. package/dist/components/sheet.js +1 -1
  126. package/dist/components/text-input.cjs +1 -1
  127. package/dist/components/text-input.js +1 -1
  128. package/dist/components/toggle-group.cjs +1 -1
  129. package/dist/components/toggle-group.js +1 -1
  130. package/dist/components/toggle.cjs +1 -1
  131. package/dist/components/toggle.js +1 -1
  132. package/dist/index.cjs +1 -1
  133. package/dist/index.js +1 -1
  134. package/dist/styles/button-variants.cjs +1 -1
  135. package/dist/styles/button-variants.js +1 -1
  136. package/dist/styles/input-variants.cjs +1 -1
  137. package/dist/styles/input-variants.js +1 -1
  138. package/dist/styles/toggle-variants.cjs +1 -1
  139. package/dist/styles/toggle-variants.js +1 -1
  140. package/package.json +7 -7
  141. package/dist/chunk-4MCFTJLN.js +0 -2
  142. package/dist/chunk-4MCFTJLN.js.map +0 -1
  143. package/dist/chunk-A2EUTK2D.js +0 -2
  144. package/dist/chunk-A2EUTK2D.js.map +0 -1
  145. package/dist/chunk-A3ZDFV2H.cjs +0 -2
  146. package/dist/chunk-A3ZDFV2H.cjs.map +0 -1
  147. package/dist/chunk-ADFKIZNP.cjs +0 -2
  148. package/dist/chunk-ADFKIZNP.cjs.map +0 -1
  149. package/dist/chunk-C2Y6C7SL.cjs +0 -2
  150. package/dist/chunk-C2Y6C7SL.cjs.map +0 -1
  151. package/dist/chunk-IC5KT4AY.js +0 -2
  152. package/dist/chunk-IC5KT4AY.js.map +0 -1
  153. package/dist/chunk-IYSTGLX3.cjs +0 -2
  154. package/dist/chunk-IYSTGLX3.cjs.map +0 -1
  155. package/dist/chunk-N5U7MKXK.js +0 -2
  156. package/dist/chunk-PNAKTM3B.js +0 -2
  157. package/dist/chunk-PTBFXCEO.js +0 -2
  158. package/dist/chunk-PTBFXCEO.js.map +0 -1
  159. package/dist/chunk-RA4YLL7D.cjs +0 -2
  160. package/dist/chunk-RA4YLL7D.cjs.map +0 -1
  161. package/dist/chunk-RR2V6HKV.js +0 -2
  162. package/dist/chunk-RR2V6HKV.js.map +0 -1
  163. package/dist/chunk-WQ3FICST.cjs.map +0 -1
  164. package/dist/chunk-XAAC6A6T.js +0 -2
  165. package/dist/chunk-XAAC6A6T.js.map +0 -1
  166. /package/dist/{chunk-KBPTF6BB.js.map → chunk-2L2JOHZX.js.map} +0 -0
  167. /package/dist/{chunk-5LLPQFUS.js.map → chunk-4MEKIJBX.js.map} +0 -0
  168. /package/dist/{chunk-VIL5XAJ2.js.map → chunk-5NHYXWLY.js.map} +0 -0
  169. /package/dist/{chunk-JNLGUTYE.js.map → chunk-5WJRJGUS.js.map} +0 -0
  170. /package/dist/{chunk-SJNWC7WS.js.map → chunk-5ZLLY3TV.js.map} +0 -0
  171. /package/dist/{chunk-O4H3WFSF.js.map → chunk-DQYZFLAN.js.map} +0 -0
  172. /package/dist/{chunk-QIW5RBHT.js.map → chunk-ER57BTKA.js.map} +0 -0
  173. /package/dist/{chunk-WN4T6UM3.js.map → chunk-ESGJD3EH.js.map} +0 -0
  174. /package/dist/{chunk-O64TC5AF.js.map → chunk-HO75YBHT.js.map} +0 -0
  175. /package/dist/{chunk-MWADNAZB.js.map → chunk-IHEIUFFB.js.map} +0 -0
  176. /package/dist/{chunk-FVB3KM64.js.map → chunk-JNSAIWYA.js.map} +0 -0
  177. /package/dist/{chunk-D3YTCKUH.js.map → chunk-MS6HNR34.js.map} +0 -0
  178. /package/dist/{chunk-B3NICH7Q.js.map → chunk-PFJKZSJ6.js.map} +0 -0
  179. /package/dist/{chunk-TI7JQNNN.js.map → chunk-PHNUQKIK.js.map} +0 -0
  180. /package/dist/{chunk-XZ7TLHX3.js.map → chunk-RPUH3ITJ.js.map} +0 -0
  181. /package/dist/{chunk-HNQ6FIEB.js.map → chunk-T3UMGRIG.js.map} +0 -0
  182. /package/dist/{chunk-4KZKY2CG.js.map → chunk-TSLTPMZG.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-B4Y4AQPU.cjs","../src/components/toggle.tsx"],"names":["Toggle","forwardRef","className","size","icon","variant","prefix","children","suffix","props","forwardedRef","jsxs","toggleVariants","jsx"],"mappings":"AAAA,mZAAwC,oGCAP,8BAM1B,+CAuBH,IALEA,CAAAA,CAASC,+BAAAA,CAEX,CAAE,SAAA,CAAAC,CAAAA,CAAW,IAAA,CAAAC,CAAAA,CAAM,IAAA,CAAAC,CAAAA,CAAM,OAAA,CAAAC,CAAAA,CAAS,MAAA,CAAAC,CAAAA,CAAQ,QAAA,CAAAC,CAAAA,CAAU,MAAA,CAAAC,CAAAA,CAAQ,GAAGC,CAAM,CAAA,CACrEC,CAAAA,CAAAA,EAEAC,8BAAAA,CAAiB,CAAA,IAAA,CAAhB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,CAAiB,SAAA,CAAAV,CAAAA,CAAW,IAAA,CAAAE,CAAAA,CAAM,IAAA,CAAAD,CAAAA,CAAM,OAAA,CAAAE,CAAQ,CAAC,CAAA,CAC3D,GAAGI,CAAAA,CAEH,QAAA,CAAA,CAAAH,CAAAA,CACA,OAAOC,CAAAA,EAAa,QAAA,CACnBM,6BAAAA,MAAC,CAAA,CAAK,SAAA,CAAU,UAAA,CAAY,QAAA,CAAAN,CAAAA,CAAS,CAAA,CAErCA,CAAAA,CAEDC,CAAAA,CAAAA,CACH,CAEJ,CAAA,CAEAR,CAAAA,CAAO,WAAA,CAA8B,CAAA,CAAA,IAAA,CAAK,WAAA,CAAA,cAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-B4Y4AQPU.cjs","sourcesContent":[null,"import * as TogglePrimitive from '@radix-ui/react-toggle';\nimport {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n type ReactNode,\n} from 'react';\nimport {\n toggleVariants,\n type ToggleVariantsProps,\n} from '@/styles/toggle-variants';\n\n/* -----------------------------------------------------------------------------\n * Component: Toggle\n * -------------------------------------------------------------------------- */\n\ntype ToggleElement = ComponentRef<typeof TogglePrimitive.Root>;\ninterface ToggleProps\n extends Omit<ComponentPropsWithoutRef<typeof TogglePrimitive.Root>, 'prefix'>,\n ToggleVariantsProps {\n prefix?: ReactNode;\n suffix?: ReactNode;\n}\n\nconst Toggle = forwardRef<ToggleElement, ToggleProps>(\n (\n { className, size, icon, variant, prefix, children, suffix, ...props },\n forwardedRef,\n ) => (\n <TogglePrimitive.Root\n ref={forwardedRef}\n className={toggleVariants({ className, icon, size, variant })}\n {...props}\n >\n {prefix}\n {typeof children === 'string' ? (\n <span className=\"truncate\">{children}</span>\n ) : (\n children\n )}\n {suffix}\n </TogglePrimitive.Root>\n ),\n);\n\nToggle.displayName = TogglePrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Toggle, type ToggleProps };\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-JO3GWI7Z.cjs","../src/components/toggle.tsx"],"names":["Toggle","forwardRef","className","size","icon","variant","prefix","children","suffix","props","forwardedRef","jsxs","toggleVariants","jsx"],"mappings":"AAAA,mZAAwC,oGCAP,8BAM1B,+CAuBH,IALEA,CAAAA,CAASC,+BAAAA,CAEX,CAAE,SAAA,CAAAC,CAAAA,CAAW,IAAA,CAAAC,CAAAA,CAAM,IAAA,CAAAC,CAAAA,CAAM,OAAA,CAAAC,CAAAA,CAAS,MAAA,CAAAC,CAAAA,CAAQ,QAAA,CAAAC,CAAAA,CAAU,MAAA,CAAAC,CAAAA,CAAQ,GAAGC,CAAM,CAAA,CACrEC,CAAAA,CAAAA,EAEAC,8BAAAA,CAAiB,CAAA,IAAA,CAAhB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,CAAiB,SAAA,CAAAV,CAAAA,CAAW,IAAA,CAAAE,CAAAA,CAAM,IAAA,CAAAD,CAAAA,CAAM,OAAA,CAAAE,CAAQ,CAAC,CAAA,CAC3D,GAAGI,CAAAA,CAEH,QAAA,CAAA,CAAAH,CAAAA,CACA,OAAOC,CAAAA,EAAa,QAAA,CACnBM,6BAAAA,MAAC,CAAA,CAAK,SAAA,CAAU,UAAA,CAAY,QAAA,CAAAN,CAAAA,CAAS,CAAA,CAErCA,CAAAA,CAEDC,CAAAA,CAAAA,CACH,CAEJ,CAAA,CAEAR,CAAAA,CAAO,WAAA,CAA8B,CAAA,CAAA,IAAA,CAAK,WAAA,CAAA,cAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-JO3GWI7Z.cjs","sourcesContent":[null,"import * as TogglePrimitive from '@radix-ui/react-toggle';\nimport {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n type ReactNode,\n} from 'react';\nimport {\n toggleVariants,\n type ToggleVariantsProps,\n} from '@/styles/toggle-variants';\n\n/* -----------------------------------------------------------------------------\n * Component: Toggle\n * -------------------------------------------------------------------------- */\n\ntype ToggleElement = ComponentRef<typeof TogglePrimitive.Root>;\ninterface ToggleProps\n extends Omit<ComponentPropsWithoutRef<typeof TogglePrimitive.Root>, 'prefix'>,\n ToggleVariantsProps {\n prefix?: ReactNode;\n suffix?: ReactNode;\n}\n\nconst Toggle = forwardRef<ToggleElement, ToggleProps>(\n (\n { className, size, icon, variant, prefix, children, suffix, ...props },\n forwardedRef,\n ) => (\n <TogglePrimitive.Root\n ref={forwardedRef}\n className={toggleVariants({ className, icon, size, variant })}\n {...props}\n >\n {prefix}\n {typeof children === 'string' ? (\n <span className=\"truncate\">{children}</span>\n ) : (\n children\n )}\n {suffix}\n </TogglePrimitive.Root>\n ),\n);\n\nToggle.displayName = TogglePrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Toggle, type ToggleProps };\n"]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunkIYSTGLX3cjs = require('./chunk-IYSTGLX3.cjs');var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _react = require('react');var _vaul = require('vaul');var _jsxruntime = require('react/jsx-runtime');function v({shouldScaleBackground:e=!0,...r}){return _jsxruntime.jsx.call(void 0, _vaul.Drawer.Root,{shouldScaleBackground:e,...r})}var g=_vaul.Drawer.Trigger,D= exports.c =_react.forwardRef.call(void 0, ({children:e,className:r,...i},p)=>_jsxruntime.jsxs.call(void 0, _vaul.Drawer.Portal,{children:[_jsxruntime.jsx.call(void 0, _vaul.Drawer.Overlay,{className:"fixed inset-0 z-50 bg-black/80"}),_jsxruntime.jsxs.call(void 0, _vaul.Drawer.Content,{ref:p,className:_chunkDD6AVCRHcjs.a.call(void 0, "bg-background fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-xl border",r),...i,children:[_jsxruntime.jsx.call(void 0, "div",{className:"bg-muted mx-auto mt-4 h-2 w-24 rounded-full"}),e]})]}));D.displayName="DrawerContent";function T({className:e,...r}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunkDD6AVCRHcjs.a.call(void 0, "grid gap-1.5 p-4 text-center sm:text-left",e),...r})}function x({className:e,...r}){return _jsxruntime.jsx.call(void 0, "main",{className:_chunkDD6AVCRHcjs.a.call(void 0, "overflow-auto px-4 py-2",e),...r})}function N({className:e,...r}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunkDD6AVCRHcjs.a.call(void 0, "mt-auto flex flex-col-reverse gap-2 p-4",e),...r})}var w=_react.forwardRef.call(void 0, ({className:e,...r},i)=>_jsxruntime.jsx.call(void 0, _vaul.Drawer.Title,{ref:i,className:_chunkDD6AVCRHcjs.a.call(void 0, "text-lg font-semibold leading-none tracking-tight",e),...r}));w.displayName=_vaul.Drawer.Title.displayName;var P=_react.forwardRef.call(void 0, ({className:e,...r},i)=>_jsxruntime.jsx.call(void 0, _vaul.Drawer.Description,{ref:i,className:_chunkDD6AVCRHcjs.a.call(void 0, "text-muted-foreground text-sm",e),...r}));P.displayName=_vaul.Drawer.Description.displayName;var y=_react.forwardRef.call(void 0, ({className:e,size:r,variant:i="outline",...p},l)=>_jsxruntime.jsx.call(void 0, _vaul.Drawer.Close,{ref:l,className:_chunkIYSTGLX3cjs.a.call(void 0, {className:e,size:r,variant:i}),...p}));y.displayName=_vaul.Drawer.Close.displayName;exports.a = v; exports.b = g; exports.c = D; exports.d = T; exports.e = x; exports.f = N; exports.g = w; exports.h = P; exports.i = y;
2
- //# sourceMappingURL=chunk-EH3IHQRL.cjs.map
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunkUF5YIM7Lcjs = require('./chunk-UF5YIM7L.cjs');var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _react = require('react');var _vaul = require('vaul');var _jsxruntime = require('react/jsx-runtime');function v({shouldScaleBackground:e=!0,...r}){return _jsxruntime.jsx.call(void 0, _vaul.Drawer.Root,{shouldScaleBackground:e,...r})}var g=_vaul.Drawer.Trigger,D= exports.c =_react.forwardRef.call(void 0, ({children:e,className:r,...i},p)=>_jsxruntime.jsxs.call(void 0, _vaul.Drawer.Portal,{children:[_jsxruntime.jsx.call(void 0, _vaul.Drawer.Overlay,{className:"fixed inset-0 z-50 bg-black/80"}),_jsxruntime.jsxs.call(void 0, _vaul.Drawer.Content,{ref:p,className:_chunkDD6AVCRHcjs.a.call(void 0, "bg-background fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-xl border",r),...i,children:[_jsxruntime.jsx.call(void 0, "div",{className:"bg-muted mx-auto mt-4 h-2 w-24 rounded-full"}),e]})]}));D.displayName="DrawerContent";function T({className:e,...r}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunkDD6AVCRHcjs.a.call(void 0, "grid gap-1.5 p-4 text-center sm:text-left",e),...r})}function x({className:e,...r}){return _jsxruntime.jsx.call(void 0, "main",{className:_chunkDD6AVCRHcjs.a.call(void 0, "overflow-auto px-4 py-2",e),...r})}function N({className:e,...r}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunkDD6AVCRHcjs.a.call(void 0, "mt-auto flex flex-col-reverse gap-2 p-4",e),...r})}var w=_react.forwardRef.call(void 0, ({className:e,...r},i)=>_jsxruntime.jsx.call(void 0, _vaul.Drawer.Title,{ref:i,className:_chunkDD6AVCRHcjs.a.call(void 0, "text-lg font-semibold leading-none tracking-tight",e),...r}));w.displayName=_vaul.Drawer.Title.displayName;var P=_react.forwardRef.call(void 0, ({className:e,...r},i)=>_jsxruntime.jsx.call(void 0, _vaul.Drawer.Description,{ref:i,className:_chunkDD6AVCRHcjs.a.call(void 0, "text-muted-foreground text-sm",e),...r}));P.displayName=_vaul.Drawer.Description.displayName;var y=_react.forwardRef.call(void 0, ({className:e,size:r,variant:i="outline",...p},l)=>_jsxruntime.jsx.call(void 0, _vaul.Drawer.Close,{ref:l,className:_chunkUF5YIM7Lcjs.a.call(void 0, {className:e,size:r,variant:i}),...p}));y.displayName=_vaul.Drawer.Close.displayName;exports.a = v; exports.b = g; exports.c = D; exports.d = T; exports.e = x; exports.f = N; exports.g = w; exports.h = P; exports.i = y;
2
+ //# sourceMappingURL=chunk-KU2TWJO6.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-EH3IHQRL.cjs","../src/components/drawer.tsx"],"names":["DrawerPrimitive","DrawerTrigger","DrawerContent","forwardRef","children","className","jsxs","jsx","forwardedRef","cn","DrawerBody","DrawerFooter","DrawerTitle","DrawerDescription","props","buttonVariants","DrawerClose"],"mappings":"AAAA,qFAAY,CAAC,wDAAwC,wDCMnD,8BAIO,4BAkBL,+CAJF,SAAA,CAAA,CAAA,CAAA,qBAGA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GACGA,CAAAA,CAAgB,CAAA,CAAA,OACf,6BAAA,YAAA,CAAA,IAAA,CAAA,CAAA,qBAaN,CAAMC,CAAAA,CAAgBD,GAAgB,CAAA,CAAA,CAAA,CAAA,IAWhCE,CAAgBC,CAAAA,YACpB,CAAC,OAAE,CAAA,CAAA,aAAAC,+BAAAA,CAAU,CAAA,QAAAC,CAAAA,CAAW,CAAA,SACtBC,CAAAA,CAACN,CAAAA,GAAgB,CAAA,CAAA,CAAA,CAAA,CAAhB,EACC,8BAAA,YAAA,CAAA,MAAAO,CAACP,CAAAA,QAAgB,CAAhB,CAAwB,6BAAA,YAAA,CAAA,OAAU,CAAA,CAAA,SAAA,CAAA,gCAClB,CAAA,CAAhB,CACC,8BAAA,YAAA,CAAKQ,OACL,CAAA,CAAA,GAAWC,CAAAA,CACT,CAAA,SAAA,CAAA,iCAAA,4FAKF,CAAA,CAAA,CAAA,CAAA,GAAAF,CAAC,CAAA,QAAI,CAAA,CAAA,6BAAA,KAAU,CAAA,CAAA,SAAA,CAAA,6CAOvBL,CAAc,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAA,WAAA,CAAA,eAQJ,CAAA,SAAAG,CAAAA,CAAW,CAAA,SACjC,CAAA,CAAA,CAAA,GACG,CAAA,CAAA,CAAA,C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A,CAAA,CAAA,OAAW,CAAA,CAAA,CAAGS,SACzCd,CAAAA,GAAgB,CAAA,CAAA,CAAA,CAAhB,CACC,EAAA,6BAAA,YAAKQ,CACL,KAAA,CAAA,CAAA,GAAWO,CAAAA,CAAe,CAAE,SAAA,CAAAV,iCAAAA,CAAW,SAAM,CAAA,CAAA,CAAA,IAAS,CAAA,CACrD,CAAA,OAKPW,CAAAA,CAAY,CAAA,CAAA,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAchB,CAAAA,WAAsB,CAAA,YAAA,CAAA,KAAA,CAAA,WAAA,CAAA,sIAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-EH3IHQRL.cjs","sourcesContent":[null,"'use client';\n\nimport {\n type ComponentProps,\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n type HTMLAttributes,\n type JSX,\n} from 'react';\nimport { Drawer as DrawerPrimitive } from 'vaul';\nimport { cn } from '@/lib/utils';\nimport {\n buttonVariants,\n type ButtonVariantsProps,\n} from '@/styles/button-variants';\n\n/* -----------------------------------------------------------------------------\n * Component: Drawer\n * -------------------------------------------------------------------------- */\n\ntype DrawerProps = ComponentProps<typeof DrawerPrimitive.Root>;\n\nfunction Drawer({\n shouldScaleBackground = true,\n ...props\n}: DrawerProps): JSX.Element {\n return (\n <DrawerPrimitive.Root\n shouldScaleBackground={shouldScaleBackground}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerTrigger\n * -------------------------------------------------------------------------- */\n\ntype DrawerTriggerProps = ComponentPropsWithoutRef<\n typeof DrawerPrimitive.Trigger\n>;\nconst DrawerTrigger = DrawerPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerContent\n * -------------------------------------------------------------------------- */\n\ntype DrawerContentElement = ComponentRef<typeof DrawerPrimitive.Content>;\ntype DrawerContentProps = ComponentPropsWithoutRef<\n typeof DrawerPrimitive.Content\n>;\n\nconst DrawerContent = forwardRef<DrawerContentElement, DrawerContentProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <DrawerPrimitive.Portal>\n <DrawerPrimitive.Overlay className=\"fixed inset-0 z-50 bg-black/80\" />\n <DrawerPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-background fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-xl border',\n className,\n )}\n {...props}\n >\n <div className=\"bg-muted mx-auto mt-4 h-2 w-24 rounded-full\" />\n {children}\n </DrawerPrimitive.Content>\n </DrawerPrimitive.Portal>\n ),\n);\n\nDrawerContent.displayName = 'DrawerContent';\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerHeader\n * -------------------------------------------------------------------------- */\n\ntype DrawerHeaderProps = HTMLAttributes<HTMLDivElement>;\n\nfunction DrawerHeader({ className, ...props }: DrawerHeaderProps): JSX.Element {\n return (\n <div\n className={cn('grid gap-1.5 p-4 text-center sm:text-left', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerBody\n * -------------------------------------------------------------------------- */\n\ntype DrawerBodyProps = HTMLAttributes<HTMLDivElement>;\n\nfunction DrawerBody({ className, ...props }: DrawerBodyProps): JSX.Element {\n return (\n <main className={cn('overflow-auto px-4 py-2', className)} {...props} />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerFooter\n * -------------------------------------------------------------------------- */\n\ntype DrawerFooterProps = HTMLAttributes<HTMLDivElement>;\n\nfunction DrawerFooter({ className, ...props }: DrawerFooterProps): JSX.Element {\n return (\n <div\n className={cn('mt-auto flex flex-col-reverse gap-2 p-4', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerTitle\n * -------------------------------------------------------------------------- */\n\ntype DrawerTitleElement = ComponentRef<typeof DrawerPrimitive.Title>;\ntype DrawerTitleProps = ComponentPropsWithoutRef<typeof DrawerPrimitive.Title>;\n\nconst DrawerTitle = forwardRef<DrawerTitleElement, DrawerTitleProps>(\n ({ className, ...props }, forwardedRef) => (\n <DrawerPrimitive.Title\n ref={forwardedRef}\n className={cn(\n 'text-lg font-semibold leading-none tracking-tight',\n className,\n )}\n {...props}\n />\n ),\n);\n\nDrawerTitle.displayName = DrawerPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerDescription\n * -------------------------------------------------------------------------- */\n\ntype DrawerDescriptionElement = ComponentRef<\n typeof DrawerPrimitive.Description\n>;\ntype DrawerDescriptionProps = ComponentPropsWithoutRef<\n typeof DrawerPrimitive.Description\n>;\n\nconst DrawerDescription = forwardRef<\n DrawerDescriptionElement,\n DrawerDescriptionProps\n>(({ className, ...props }, forwardedRef) => (\n <DrawerPrimitive.Description\n ref={forwardedRef}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n));\n\nDrawerDescription.displayName = DrawerPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerClose\n * -------------------------------------------------------------------------- */\n\ntype DrawerCloseElement = ComponentRef<typeof DrawerPrimitive.Close>;\n\ninterface DrawerCloseProps\n extends ComponentPropsWithoutRef<typeof DrawerPrimitive.Close> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst DrawerClose = forwardRef<DrawerCloseElement, DrawerCloseProps>(\n ({ className, size, variant = 'outline', ...props }, forwardedRef) => (\n <DrawerPrimitive.Close\n ref={forwardedRef}\n className={buttonVariants({ className, size, variant })}\n {...props}\n />\n ),\n);\n\nDrawerClose.displayName = DrawerPrimitive.Close.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Drawer,\n DrawerBody,\n type DrawerBodyProps,\n DrawerClose,\n type DrawerCloseProps,\n DrawerContent,\n type DrawerContentProps,\n DrawerDescription,\n type DrawerDescriptionProps,\n DrawerFooter,\n type DrawerFooterProps,\n DrawerHeader,\n type DrawerHeaderProps,\n type DrawerProps,\n DrawerTitle,\n type DrawerTitleProps,\n DrawerTrigger,\n type DrawerTriggerProps,\n};\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-KU2TWJO6.cjs","../src/components/drawer.tsx"],"names":["DrawerPrimitive","DrawerTrigger","DrawerContent","forwardRef","children","className","jsxs","jsx","forwardedRef","cn","DrawerBody","DrawerFooter","DrawerTitle","DrawerDescription","props","buttonVariants","DrawerClose"],"mappings":"AAAA,qFAAY,CAAC,wDAAwC,wDCMnD,8BAIO,4BAkBL,+CAJF,SAAA,CAAA,CAAA,CAAA,qBAGA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GACGA,CAAAA,CAAgB,CAAA,CAAA,OACf,6BAAA,YAAA,CAAA,IAAA,CAAA,CAAA,qBAaN,CAAMC,CAAAA,CAAgBD,GAAgB,CAAA,CAAA,CAAA,CAAA,IAWhCE,CAAgBC,CAAAA,YACpB,CAAC,OAAE,CAAA,CAAA,aAAAC,+BAAAA,CAAU,CAAA,QAAAC,CAAAA,CAAW,CAAA,SACtBC,CAAAA,CAACN,CAAAA,GAAgB,CAAA,CAAA,CAAA,CAAA,CAAhB,EACC,8BAAA,YAAA,CAAA,MAAAO,CAACP,CAAAA,QAAgB,CAAhB,CAAwB,6BAAA,YAAA,CAAA,OAAU,CAAA,CAAA,SAAA,CAAA,gCAClB,CAAA,CAAhB,CACC,8BAAA,YAAA,CAAKQ,OACL,CAAA,CAAA,GAAWC,CAAAA,CACT,CAAA,SAAA,CAAA,iCAAA,4FAKF,CAAA,CAAA,CAAA,CAAA,GAAAF,CAAC,CAAA,QAAI,CAAA,CAAA,6BAAA,KAAU,CAAA,CAAA,SAAA,CAAA,6CAOvBL,CAAc,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAA,WAAA,CAAA,eAQJ,CAAA,SAAAG,CAAAA,CAAW,CAAA,SACjC,CAAA,CAAA,CAAA,GACG,CAAA,CAAA,CAAA,CAAA,OAC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,CAAA,OAAW,CAAA,CAAA,CAAGS,SACzCd,CAAAA,GAAgB,CAAA,CAAA,CAAA,CAAhB,CACC,EAAA,6BAAA,YAAKQ,CACL,KAAA,CAAA,CAAA,GAAWO,CAAAA,CAAe,CAAE,SAAA,CAAAV,iCAAAA,CAAW,SAAM,CAAA,CAAA,CAAA,IAAS,CAAA,CACrD,CAAA,OAKPW,CAAAA,CAAY,CAAA,CAAA,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAchB,CAAAA,WAAsB,CAAA,YAAA,CAAA,KAAA,CAAA,WAAA,CAAA,sIAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-KU2TWJO6.cjs","sourcesContent":[null,"'use client';\n\nimport {\n type ComponentProps,\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n type HTMLAttributes,\n type JSX,\n} from 'react';\nimport { Drawer as DrawerPrimitive } from 'vaul';\nimport { cn } from '@/lib/utils';\nimport {\n buttonVariants,\n type ButtonVariantsProps,\n} from '@/styles/button-variants';\n\n/* -----------------------------------------------------------------------------\n * Component: Drawer\n * -------------------------------------------------------------------------- */\n\ntype DrawerProps = ComponentProps<typeof DrawerPrimitive.Root>;\n\nfunction Drawer({\n shouldScaleBackground = true,\n ...props\n}: DrawerProps): JSX.Element {\n return (\n <DrawerPrimitive.Root\n shouldScaleBackground={shouldScaleBackground}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerTrigger\n * -------------------------------------------------------------------------- */\n\ntype DrawerTriggerProps = ComponentPropsWithoutRef<\n typeof DrawerPrimitive.Trigger\n>;\nconst DrawerTrigger = DrawerPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerContent\n * -------------------------------------------------------------------------- */\n\ntype DrawerContentElement = ComponentRef<typeof DrawerPrimitive.Content>;\ntype DrawerContentProps = ComponentPropsWithoutRef<\n typeof DrawerPrimitive.Content\n>;\n\nconst DrawerContent = forwardRef<DrawerContentElement, DrawerContentProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <DrawerPrimitive.Portal>\n <DrawerPrimitive.Overlay className=\"fixed inset-0 z-50 bg-black/80\" />\n <DrawerPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-background fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-xl border',\n className,\n )}\n {...props}\n >\n <div className=\"bg-muted mx-auto mt-4 h-2 w-24 rounded-full\" />\n {children}\n </DrawerPrimitive.Content>\n </DrawerPrimitive.Portal>\n ),\n);\n\nDrawerContent.displayName = 'DrawerContent';\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerHeader\n * -------------------------------------------------------------------------- */\n\ntype DrawerHeaderProps = HTMLAttributes<HTMLDivElement>;\n\nfunction DrawerHeader({ className, ...props }: DrawerHeaderProps): JSX.Element {\n return (\n <div\n className={cn('grid gap-1.5 p-4 text-center sm:text-left', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerBody\n * -------------------------------------------------------------------------- */\n\ntype DrawerBodyProps = HTMLAttributes<HTMLDivElement>;\n\nfunction DrawerBody({ className, ...props }: DrawerBodyProps): JSX.Element {\n return (\n <main className={cn('overflow-auto px-4 py-2', className)} {...props} />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerFooter\n * -------------------------------------------------------------------------- */\n\ntype DrawerFooterProps = HTMLAttributes<HTMLDivElement>;\n\nfunction DrawerFooter({ className, ...props }: DrawerFooterProps): JSX.Element {\n return (\n <div\n className={cn('mt-auto flex flex-col-reverse gap-2 p-4', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerTitle\n * -------------------------------------------------------------------------- */\n\ntype DrawerTitleElement = ComponentRef<typeof DrawerPrimitive.Title>;\ntype DrawerTitleProps = ComponentPropsWithoutRef<typeof DrawerPrimitive.Title>;\n\nconst DrawerTitle = forwardRef<DrawerTitleElement, DrawerTitleProps>(\n ({ className, ...props }, forwardedRef) => (\n <DrawerPrimitive.Title\n ref={forwardedRef}\n className={cn(\n 'text-lg font-semibold leading-none tracking-tight',\n className,\n )}\n {...props}\n />\n ),\n);\n\nDrawerTitle.displayName = DrawerPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerDescription\n * -------------------------------------------------------------------------- */\n\ntype DrawerDescriptionElement = ComponentRef<\n typeof DrawerPrimitive.Description\n>;\ntype DrawerDescriptionProps = ComponentPropsWithoutRef<\n typeof DrawerPrimitive.Description\n>;\n\nconst DrawerDescription = forwardRef<\n DrawerDescriptionElement,\n DrawerDescriptionProps\n>(({ className, ...props }, forwardedRef) => (\n <DrawerPrimitive.Description\n ref={forwardedRef}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n));\n\nDrawerDescription.displayName = DrawerPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DrawerClose\n * -------------------------------------------------------------------------- */\n\ntype DrawerCloseElement = ComponentRef<typeof DrawerPrimitive.Close>;\n\ninterface DrawerCloseProps\n extends ComponentPropsWithoutRef<typeof DrawerPrimitive.Close> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst DrawerClose = forwardRef<DrawerCloseElement, DrawerCloseProps>(\n ({ className, size, variant = 'outline', ...props }, forwardedRef) => (\n <DrawerPrimitive.Close\n ref={forwardedRef}\n className={buttonVariants({ className, size, variant })}\n {...props}\n />\n ),\n);\n\nDrawerClose.displayName = DrawerPrimitive.Close.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Drawer,\n DrawerBody,\n type DrawerBodyProps,\n DrawerClose,\n type DrawerCloseProps,\n DrawerContent,\n type DrawerContentProps,\n DrawerDescription,\n type DrawerDescriptionProps,\n DrawerFooter,\n type DrawerFooterProps,\n DrawerHeader,\n type DrawerHeaderProps,\n type DrawerProps,\n DrawerTitle,\n type DrawerTitleProps,\n DrawerTrigger,\n type DrawerTriggerProps,\n};\n"]}
@@ -0,0 +1,2 @@
1
+ import{a as i}from"./chunk-VPYH6JWS.js";import*as e from"@codefast-ui/checkbox-group";import{CheckIcon as c}from"@radix-ui/react-icons";import{forwardRef as m}from"react";import{jsx as o}from"react/jsx-runtime";var u=m(({className:r,...t},p)=>o(e.Root,{ref:p,className:i("grid gap-2",r),...t}));u.displayName="CheckboxGroup";var s=m(({className:r,...t},p)=>o(e.Item,{ref:p,className:i(["border-input peer flex size-4 shrink-0 rounded border shadow-sm","hover:border-primary","aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground","focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-1","disabled:pointer-events-none disabled:opacity-50"],r),...t,children:o(e.CheckboxGroupIndicator,{className:"flex size-full items-center justify-center text-current",children:o(c,{className:"size-3.5"})})}));s.displayName="CheckboxGroupItem";export{u as a,s as b};
2
+ //# sourceMappingURL=chunk-L7HMJMCP.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/checkbox-group.tsx"],"names":["CheckboxGroupPrimitive","CheckIcon","forwardRef","jsx","CheckboxGroup","className","props","forwardedRef","cn","CheckboxGroupItem"],"mappings":"wCAAA,UAAYA,MAA4B,8BACxC,OAAS,aAAAC,MAAiB,wBAC1B,OAGE,cAAAC,MACK,QAcH,cAAAC,MAAA,oBAFJ,IAAMC,EAAgBF,EACpB,CAAC,CAAE,UAAAG,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAwB,OAAvB,CACC,IAAKI,EACL,UAAWC,EAAG,aAAcH,CAAS,EACpC,GAAGC,EACN,CAEJ,EAEAF,EAAc,YAAc,gBAa5B,IAAMK,EAAoBP,EAGxB,CAAC,CAAE,UAAAG,EAAW,GAAGC,CAAM,EAAGC,IAC1BJ,EAAwB,OAAvB,CACC,IAAKI,EACL,UAAWC,EACT,CACE,qEACA,uBACA,2FACA,gFACA,kDACF,EACAH,CACF,EACC,GAAGC,EAEJ,SAAAH,EAAwB,yBAAvB,CAA8C,UAAU,0DACvD,SAAAA,EAACF,EAAA,CAAU,UAAU,WAAW,EAClC,EACF,CACD,EAEDQ,EAAkB,YAAc","sourcesContent":["import * as CheckboxGroupPrimitive from '@codefast-ui/checkbox-group';\nimport { CheckIcon } from '@radix-ui/react-icons';\nimport {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from 'react';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroup\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupElement = ComponentRef<typeof CheckboxGroupPrimitive.Root>;\ntype CheckboxGroupProps = ComponentPropsWithoutRef<\n typeof CheckboxGroupPrimitive.Root\n>;\n\nconst CheckboxGroup = forwardRef<CheckboxGroupElement, CheckboxGroupProps>(\n ({ className, ...props }, forwardedRef) => (\n <CheckboxGroupPrimitive.Root\n ref={forwardedRef}\n className={cn('grid gap-2', className)}\n {...props}\n />\n ),\n);\n\nCheckboxGroup.displayName = 'CheckboxGroup';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroupItem\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupItemElement = ComponentRef<\n typeof CheckboxGroupPrimitive.Item\n>;\ntype CheckboxGroupItemProps = ComponentPropsWithoutRef<\n typeof CheckboxGroupPrimitive.Item\n>;\n\nconst CheckboxGroupItem = forwardRef<\n CheckboxGroupItemElement,\n CheckboxGroupItemProps\n>(({ className, ...props }, forwardedRef) => (\n <CheckboxGroupPrimitive.Item\n ref={forwardedRef}\n className={cn(\n [\n 'border-input peer flex size-4 shrink-0 rounded-sm border shadow-sm',\n 'hover:border-primary',\n 'aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground',\n 'focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-1',\n 'disabled:pointer-events-none disabled:opacity-50',\n ],\n className,\n )}\n {...props}\n >\n <CheckboxGroupPrimitive.CheckboxGroupIndicator className=\"flex size-full items-center justify-center text-current\">\n <CheckIcon className=\"size-3.5\" />\n </CheckboxGroupPrimitive.CheckboxGroupIndicator>\n </CheckboxGroupPrimitive.Item>\n));\n\nCheckboxGroupItem.displayName = 'CheckboxGroupItem';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n CheckboxGroup,\n CheckboxGroupItem,\n type CheckboxGroupItemProps,\n type CheckboxGroupProps,\n};\n"]}
1
+ {"version":3,"sources":["../src/components/checkbox-group.tsx"],"names":["CheckboxGroupPrimitive","CheckIcon","forwardRef","jsx","CheckboxGroup","className","props","forwardedRef","cn","CheckboxGroupItem"],"mappings":"wCAAA,UAAYA,MAA4B,8BACxC,OAAS,aAAAC,MAAiB,wBAC1B,OAGE,cAAAC,MACK,QAcH,cAAAC,MAAA,oBAFJ,IAAMC,EAAgBF,EACpB,CAAC,CAAE,UAAAG,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAwB,OAAvB,CACC,IAAKI,EACL,UAAWC,EAAG,aAAcH,CAAS,EACpC,GAAGC,EACN,CAEJ,EAEAF,EAAc,YAAc,gBAa5B,IAAMK,EAAoBP,EAGxB,CAAC,CAAE,UAAAG,EAAW,GAAGC,CAAM,EAAGC,IAC1BJ,EAAwB,OAAvB,CACC,IAAKI,EACL,UAAWC,EACT,CACE,kEACA,uBACA,2FACA,gFACA,kDACF,EACAH,CACF,EACC,GAAGC,EAEJ,SAAAH,EAAwB,yBAAvB,CAA8C,UAAU,0DACvD,SAAAA,EAACF,EAAA,CAAU,UAAU,WAAW,EAClC,EACF,CACD,EAEDQ,EAAkB,YAAc","sourcesContent":["import * as CheckboxGroupPrimitive from '@codefast-ui/checkbox-group';\nimport { CheckIcon } from '@radix-ui/react-icons';\nimport {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from 'react';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroup\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupElement = ComponentRef<typeof CheckboxGroupPrimitive.Root>;\ntype CheckboxGroupProps = ComponentPropsWithoutRef<\n typeof CheckboxGroupPrimitive.Root\n>;\n\nconst CheckboxGroup = forwardRef<CheckboxGroupElement, CheckboxGroupProps>(\n ({ className, ...props }, forwardedRef) => (\n <CheckboxGroupPrimitive.Root\n ref={forwardedRef}\n className={cn('grid gap-2', className)}\n {...props}\n />\n ),\n);\n\nCheckboxGroup.displayName = 'CheckboxGroup';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroupItem\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupItemElement = ComponentRef<\n typeof CheckboxGroupPrimitive.Item\n>;\ntype CheckboxGroupItemProps = ComponentPropsWithoutRef<\n typeof CheckboxGroupPrimitive.Item\n>;\n\nconst CheckboxGroupItem = forwardRef<\n CheckboxGroupItemElement,\n CheckboxGroupItemProps\n>(({ className, ...props }, forwardedRef) => (\n <CheckboxGroupPrimitive.Item\n ref={forwardedRef}\n className={cn(\n [\n 'border-input peer flex size-4 shrink-0 rounded border shadow-sm',\n 'hover:border-primary',\n 'aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground',\n 'focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-1',\n 'disabled:pointer-events-none disabled:opacity-50',\n ],\n className,\n )}\n {...props}\n >\n <CheckboxGroupPrimitive.CheckboxGroupIndicator className=\"flex size-full items-center justify-center text-current\">\n <CheckIcon className=\"size-3.5\" />\n </CheckboxGroupPrimitive.CheckboxGroupIndicator>\n </CheckboxGroupPrimitive.Item>\n));\n\nCheckboxGroupItem.displayName = 'CheckboxGroupItem';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n CheckboxGroup,\n CheckboxGroupItem,\n type CheckboxGroupItemProps,\n type CheckboxGroupProps,\n};\n"]}
@@ -1,2 +1,2 @@
1
- import{a as o}from"./chunk-QOOHNPY5.js";import{a as s}from"./chunk-PTBFXCEO.js";import{forwardRef as c}from"react";import{jsx as n,jsxs as l}from"react/jsx-runtime";var d=c(({children:t,className:u,variant:a,size:f,icon:i,inside:m,disabled:B,loading:e,prefix:x,suffix:b,loaderPosition:p="prefix",spinner:r,...y},N)=>l("button",{ref:N,className:s({className:u,icon:i,inside:m,size:f,variant:a}),disabled:e||B,type:"button",...y,children:[e&&p==="prefix"?r||n(o,{}):x,typeof t=="string"?n("span",{className:"truncate",children:t}):t,e&&p==="suffix"?r||n(o,{}):b]}));d.displayName="Button";export{d as a};
2
- //# sourceMappingURL=chunk-D3YTCKUH.js.map
1
+ import{a as o}from"./chunk-QOOHNPY5.js";import{a as s}from"./chunk-2LKWUAEG.js";import{forwardRef as c}from"react";import{jsx as n,jsxs as l}from"react/jsx-runtime";var d=c(({children:t,className:u,variant:a,size:f,icon:i,inside:m,disabled:B,loading:e,prefix:x,suffix:b,loaderPosition:p="prefix",spinner:r,...y},N)=>l("button",{ref:N,className:s({className:u,icon:i,inside:m,size:f,variant:a}),disabled:e||B,type:"button",...y,children:[e&&p==="prefix"?r||n(o,{}):x,typeof t=="string"?n("span",{className:"truncate",children:t}):t,e&&p==="suffix"?r||n(o,{}):b]}));d.displayName="Button";export{d as a};
2
+ //# sourceMappingURL=chunk-MS6HNR34.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkIYSTGLX3cjs = require('./chunk-IYSTGLX3.cjs');var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _reacticons = require('@radix-ui/react-icons');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');function N({className:n,...i}){return _jsxruntime.jsx.call(void 0, "nav",{"aria-label":"pagination",className:_chunkDD6AVCRHcjs.a.call(void 0, "mx-auto flex w-full justify-center",n),role:"navigation",...i})}var L=_react.forwardRef.call(void 0, ({className:n,...i},a)=>_jsxruntime.jsx.call(void 0, "ul",{ref:a,className:_chunkDD6AVCRHcjs.a.call(void 0, "flex flex-row items-center gap-1",n),...i}));L.displayName="PaginationContent";var f=_react.forwardRef.call(void 0, (n,i)=>_jsxruntime.jsx.call(void 0, "li",{ref:i,...n}));f.displayName="PaginationItem";function P({children:n,className:i,icon:a=!0,isActive:s,size:l,...g}){return _jsxruntime.jsx.call(void 0, "a",{"aria-current":s?"page":void 0,className:_chunkIYSTGLX3cjs.a.call(void 0, {className:i,icon:a,size:l,variant:s?"outline":"ghost"}),...g,children:n})}function b({...n}){return _jsxruntime.jsxs.call(void 0, P,{"aria-label":"Go to previous page",icon:!1,...n,children:[_jsxruntime.jsx.call(void 0, _reacticons.ChevronLeftIcon,{className:"size-4"}),_jsxruntime.jsx.call(void 0, "span",{children:"Previous"})]})}function x({...n}){return _jsxruntime.jsxs.call(void 0, P,{"aria-label":"Go to next page",icon:!1,...n,children:[_jsxruntime.jsx.call(void 0, "span",{children:"Next"}),_jsxruntime.jsx.call(void 0, _reacticons.ChevronRightIcon,{})]})}function I({className:n,...i}){return _jsxruntime.jsxs.call(void 0, "span",{"aria-hidden":!0,className:_chunkDD6AVCRHcjs.a.call(void 0, "flex size-10 items-center justify-center",n),...i,children:[_jsxruntime.jsx.call(void 0, _reacticons.DotsHorizontalIcon,{className:"size-4"}),_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"More pages"})]})}exports.a = N; exports.b = L; exports.c = f; exports.d = P; exports.e = b; exports.f = x; exports.g = I;
2
- //# sourceMappingURL=chunk-WLOZYBMB.cjs.map
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkUF5YIM7Lcjs = require('./chunk-UF5YIM7L.cjs');var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _reacticons = require('@radix-ui/react-icons');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');function N({className:n,...i}){return _jsxruntime.jsx.call(void 0, "nav",{"aria-label":"pagination",className:_chunkDD6AVCRHcjs.a.call(void 0, "mx-auto flex w-full justify-center",n),role:"navigation",...i})}var L=_react.forwardRef.call(void 0, ({className:n,...i},a)=>_jsxruntime.jsx.call(void 0, "ul",{ref:a,className:_chunkDD6AVCRHcjs.a.call(void 0, "flex flex-row items-center gap-1",n),...i}));L.displayName="PaginationContent";var f=_react.forwardRef.call(void 0, (n,i)=>_jsxruntime.jsx.call(void 0, "li",{ref:i,...n}));f.displayName="PaginationItem";function P({children:n,className:i,icon:a=!0,isActive:s,size:l,...g}){return _jsxruntime.jsx.call(void 0, "a",{"aria-current":s?"page":void 0,className:_chunkUF5YIM7Lcjs.a.call(void 0, {className:i,icon:a,size:l,variant:s?"outline":"ghost"}),...g,children:n})}function b({...n}){return _jsxruntime.jsxs.call(void 0, P,{"aria-label":"Go to previous page",icon:!1,...n,children:[_jsxruntime.jsx.call(void 0, _reacticons.ChevronLeftIcon,{className:"size-4"}),_jsxruntime.jsx.call(void 0, "span",{children:"Previous"})]})}function x({...n}){return _jsxruntime.jsxs.call(void 0, P,{"aria-label":"Go to next page",icon:!1,...n,children:[_jsxruntime.jsx.call(void 0, "span",{children:"Next"}),_jsxruntime.jsx.call(void 0, _reacticons.ChevronRightIcon,{})]})}function I({className:n,...i}){return _jsxruntime.jsxs.call(void 0, "span",{"aria-hidden":!0,className:_chunkDD6AVCRHcjs.a.call(void 0, "flex size-10 items-center justify-center",n),...i,children:[_jsxruntime.jsx.call(void 0, _reacticons.DotsHorizontalIcon,{className:"size-4"}),_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"More pages"})]})}exports.a = N; exports.b = L; exports.c = f; exports.d = P; exports.e = b; exports.f = x; exports.g = I;
2
+ //# sourceMappingURL=chunk-NBQOSKVV.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-WLOZYBMB.cjs","../src/components/pagination.tsx"],"names":["Pagination","className","props","jsx","cn","PaginationContent","forwardRef","forwardedRef","PaginationItem","PaginationLink","children","icon","isActive","size","buttonVariants","PaginationPrevious","jsxs","ChevronLeftIcon","PaginationNext","ChevronRight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/codefast/packages/ui/dist/chunk-WLOZYBMB.cjs","sourcesContent":[null,"import {\n ChevronLeftIcon,\n ChevronRightIcon,\n DotsHorizontalIcon,\n} from '@radix-ui/react-icons';\nimport {\n type AnchorHTMLAttributes,\n forwardRef,\n type HTMLAttributes,\n type JSX,\n type LiHTMLAttributes,\n} from 'react';\nimport { cn } from '@/lib/utils';\nimport {\n buttonVariants,\n type ButtonVariantsProps,\n} from '@/styles/button-variants';\n\n/* -----------------------------------------------------------------------------\n * Component: Pagination\n * -------------------------------------------------------------------------- */\n\ntype PaginationProps = HTMLAttributes<HTMLElement>;\n\nfunction Pagination({ className, ...props }: PaginationProps): JSX.Element {\n return (\n <nav\n aria-label=\"pagination\"\n className={cn('mx-auto flex w-full justify-center', className)}\n role=\"navigation\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationContent\n * -------------------------------------------------------------------------- */\n\ntype PaginationContentElement = HTMLUListElement;\ntype PaginationContentProps = HTMLAttributes<HTMLUListElement>;\n\nconst PaginationContent = forwardRef<\n PaginationContentElement,\n PaginationContentProps\n>(({ className, ...props }, forwardedRef) => (\n <ul\n ref={forwardedRef}\n className={cn('flex flex-row items-center gap-1', className)}\n {...props}\n />\n));\n\nPaginationContent.displayName = 'PaginationContent';\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationItem\n * -------------------------------------------------------------------------- */\n\ntype PaginationItemElement = HTMLLIElement;\ntype PaginationItemProps = LiHTMLAttributes<HTMLLIElement>;\n\nconst PaginationItem = forwardRef<PaginationItemElement, PaginationItemProps>(\n (props, forwardedRef) => <li ref={forwardedRef} {...props} />,\n);\n\nPaginationItem.displayName = 'PaginationItem';\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationLink\n * -------------------------------------------------------------------------- */\n\ninterface PaginationLinkProps\n extends AnchorHTMLAttributes<HTMLAnchorElement>,\n Pick<ButtonVariantsProps, 'size' | 'icon'> {\n isActive?: boolean;\n}\n\nfunction PaginationLink({\n children,\n className,\n icon = true,\n isActive,\n size,\n ...props\n}: PaginationLinkProps): JSX.Element {\n return (\n <a\n aria-current={isActive ? 'page' : undefined}\n className={buttonVariants({\n className,\n icon,\n size,\n variant: isActive ? 'outline' : 'ghost',\n })}\n {...props}\n >\n {children}\n </a>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationPrevious\n * -------------------------------------------------------------------------- */\n\ntype PaginationPreviousProps = PaginationLinkProps;\n\nfunction PaginationPrevious({\n ...props\n}: PaginationPreviousProps): JSX.Element {\n return (\n <PaginationLink aria-label=\"Go to previous page\" icon={false} {...props}>\n <ChevronLeftIcon className=\"size-4\" />\n <span>Previous</span>\n </PaginationLink>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationNext\n * -------------------------------------------------------------------------- */\n\ntype PaginationNextProps = PaginationLinkProps;\n\nfunction PaginationNext({ ...props }: PaginationNextProps): JSX.Element {\n return (\n <PaginationLink aria-label=\"Go to next page\" icon={false} {...props}>\n <span>Next</span>\n <ChevronRightIcon />\n </PaginationLink>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationEllipsis\n * -------------------------------------------------------------------------- */\n\ntype PaginationEllipsisProps = HTMLAttributes<HTMLSpanElement>;\n\nfunction PaginationEllipsis({\n className,\n ...props\n}: PaginationEllipsisProps): JSX.Element {\n return (\n <span\n aria-hidden\n className={cn('flex size-10 items-center justify-center', className)}\n {...props}\n >\n <DotsHorizontalIcon className=\"size-4\" />\n <span className=\"sr-only\">More pages</span>\n </span>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Pagination,\n PaginationContent,\n type PaginationContentProps,\n PaginationEllipsis,\n type PaginationEllipsisProps,\n PaginationItem,\n type PaginationItemProps,\n PaginationLink,\n type PaginationLinkProps,\n PaginationNext,\n type PaginationNextProps,\n PaginationPrevious,\n type PaginationPreviousProps,\n type PaginationProps,\n};\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-NBQOSKVV.cjs","../src/components/pagination.tsx"],"names":["Pagination","className","props","jsx","cn","PaginationContent","forwardRef","forwardedRef","PaginationItem","PaginationLink","children","icon","isActive","size","buttonVariants","PaginationPrevious","jsxs","ChevronLeftIcon","PaginationNext","ChevronRightIcon","PaginationEllipsis","DotsHorizontalIcon"],"mappings":"AAAA,iIAAwC,wDAAyC,mDCI1E,8BAOA,+CAeH,SAFKA,CAAAA,CAAW,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAiC,CACzE,OACEC,6BAAAA,KAAC,CAAA,CACC,YAAA,CAAW,YAAA,CACX,SAAA,CAAWC,iCAAAA,oCAAG,CAAsCH,CAAS,CAAA,CAC7D,IAAA,CAAK,YAAA,CACJ,GAAGC,CAAAA,CACN,CAEJ,CASA,IAAMG,CAAAA,CAAoBC,+BAAAA,CAGvB,CAAE,SAAA,CAAAL,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGK,CAAAA,CAAAA,EAC1BJ,6BAAAA,IAAC,CAAA,CACC,GAAA,CAAKI,CAAAA,CACL,SAAA,CAAWH,iCAAAA,kCAAG,CAAoCH,CAAS,CAAA,CAC1D,GAAGC,CAAAA,CACN,CACD,CAAA,CAEDG,CAAAA,CAAkB,WAAA,CAAc,mBAAA,CAShC,IAAMG,CAAAA,CAAiBF,+BAAAA,CACpBJ,CAAAA,CAAOK,CAAAA,CAAAA,EAAiBJ,6BAAAA,IAAC,CAAA,CAAG,GAAA,CAAKI,CAAAA,CAAe,GAAGL,CAAAA,CAAO,CAC7D,CAAA,CAEAM,CAAAA,CAAe,WAAA,CAAc,gBAAA,CAY7B,SAASC,CAAAA,CAAe,CACtB,QAAA,CAAAC,CAAAA,CACA,SAAA,CAAAT,CAAAA,CACA,IAAA,CAAAU,CAAAA,CAAO,CAAA,CAAA,CACP,QAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,GAAGX,CACL,CA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AAA,8BAACkB,CAAA,CAAmB,SAAA,CAAU,QAAA,CAAS,CAAA,CACvClB,6BAAAA,MAAC,CAAA,CAAK,SAAA,CAAU,SAAA,CAAU,QAAA,CAAA,YAAA,CAAU,CAAA,CAAA,CACtC,CAEJ,CAAA,wGAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-NBQOSKVV.cjs","sourcesContent":[null,"import {\n ChevronLeftIcon,\n ChevronRightIcon,\n DotsHorizontalIcon,\n} from '@radix-ui/react-icons';\nimport {\n type AnchorHTMLAttributes,\n forwardRef,\n type HTMLAttributes,\n type JSX,\n type LiHTMLAttributes,\n} from 'react';\nimport { cn } from '@/lib/utils';\nimport {\n buttonVariants,\n type ButtonVariantsProps,\n} from '@/styles/button-variants';\n\n/* -----------------------------------------------------------------------------\n * Component: Pagination\n * -------------------------------------------------------------------------- */\n\ntype PaginationProps = HTMLAttributes<HTMLElement>;\n\nfunction Pagination({ className, ...props }: PaginationProps): JSX.Element {\n return (\n <nav\n aria-label=\"pagination\"\n className={cn('mx-auto flex w-full justify-center', className)}\n role=\"navigation\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationContent\n * -------------------------------------------------------------------------- */\n\ntype PaginationContentElement = HTMLUListElement;\ntype PaginationContentProps = HTMLAttributes<HTMLUListElement>;\n\nconst PaginationContent = forwardRef<\n PaginationContentElement,\n PaginationContentProps\n>(({ className, ...props }, forwardedRef) => (\n <ul\n ref={forwardedRef}\n className={cn('flex flex-row items-center gap-1', className)}\n {...props}\n />\n));\n\nPaginationContent.displayName = 'PaginationContent';\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationItem\n * -------------------------------------------------------------------------- */\n\ntype PaginationItemElement = HTMLLIElement;\ntype PaginationItemProps = LiHTMLAttributes<HTMLLIElement>;\n\nconst PaginationItem = forwardRef<PaginationItemElement, PaginationItemProps>(\n (props, forwardedRef) => <li ref={forwardedRef} {...props} />,\n);\n\nPaginationItem.displayName = 'PaginationItem';\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationLink\n * -------------------------------------------------------------------------- */\n\ninterface PaginationLinkProps\n extends AnchorHTMLAttributes<HTMLAnchorElement>,\n Pick<ButtonVariantsProps, 'size' | 'icon'> {\n isActive?: boolean;\n}\n\nfunction PaginationLink({\n children,\n className,\n icon = true,\n isActive,\n size,\n ...props\n}: PaginationLinkProps): JSX.Element {\n return (\n <a\n aria-current={isActive ? 'page' : undefined}\n className={buttonVariants({\n className,\n icon,\n size,\n variant: isActive ? 'outline' : 'ghost',\n })}\n {...props}\n >\n {children}\n </a>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationPrevious\n * -------------------------------------------------------------------------- */\n\ntype PaginationPreviousProps = PaginationLinkProps;\n\nfunction PaginationPrevious({\n ...props\n}: PaginationPreviousProps): JSX.Element {\n return (\n <PaginationLink aria-label=\"Go to previous page\" icon={false} {...props}>\n <ChevronLeftIcon className=\"size-4\" />\n <span>Previous</span>\n </PaginationLink>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationNext\n * -------------------------------------------------------------------------- */\n\ntype PaginationNextProps = PaginationLinkProps;\n\nfunction PaginationNext({ ...props }: PaginationNextProps): JSX.Element {\n return (\n <PaginationLink aria-label=\"Go to next page\" icon={false} {...props}>\n <span>Next</span>\n <ChevronRightIcon />\n </PaginationLink>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: PaginationEllipsis\n * -------------------------------------------------------------------------- */\n\ntype PaginationEllipsisProps = HTMLAttributes<HTMLSpanElement>;\n\nfunction PaginationEllipsis({\n className,\n ...props\n}: PaginationEllipsisProps): JSX.Element {\n return (\n <span\n aria-hidden\n className={cn('flex size-10 items-center justify-center', className)}\n {...props}\n >\n <DotsHorizontalIcon className=\"size-4\" />\n <span className=\"sr-only\">More pages</span>\n </span>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Pagination,\n PaginationContent,\n type PaginationContentProps,\n PaginationEllipsis,\n type PaginationEllipsisProps,\n PaginationItem,\n type PaginationItemProps,\n PaginationLink,\n type PaginationLinkProps,\n PaginationNext,\n type PaginationNextProps,\n PaginationPrevious,\n type PaginationPreviousProps,\n type PaginationProps,\n};\n"]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _tailwindvariants = require('tailwind-variants');var _jsxruntime = require('react/jsx-runtime');var d=_tailwindvariants.tv.call(void 0, {base:["inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md px-2.5 text-sm font-medium","[&>svg]:shrink-0"],compoundVariants:[{className:"w-8",icon:!0,size:"sm"},{className:"w-9",icon:!0,size:"md"},{className:"w-10",icon:!0,size:"lg"},{className:"w-11",icon:!0,size:"xl"},{className:"w-12",icon:!0,size:"2xl"}],defaultVariants:{icon:!1,size:"md",variant:"default"},variants:{icon:{false:"",true:"px-0"},size:{sm:"h-5 [&>svg]:size-3",md:"h-6 [&>svg]:size-3",lg:"h-7 [&>svg]:size-4",xl:"h-8 [&>svg]:size-5","2xl":"h-9 [&>svg]:size-5"},variant:{default:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",info:"bg-info text-info-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",destructive:"bg-destructive text-destructive-foreground",outline:"bg-background border-input border"}}});function f({className:s,variant:t,size:r,prefix:a,suffix:i,children:e,...n}){return _jsxruntime.jsxs.call(void 0, "div",{className:d({variant:t,className:s,size:r}),...n,children:[a,typeof e=="string"?_jsxruntime.jsx.call(void 0, "span",{className:"truncate",children:e}):e,i]})}exports.a = f;
2
+ //# sourceMappingURL=chunk-NSA7UBGF.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/badge.tsx"],"names":["badgeVariants","tv","Badge","className","variant","size","prefix","suffix","children","props","jsxs","jsx"],"mappings":"AACA,8HAAsC,+CAmElC,IA7DEA,CAAAA,CAAgBC,kCAAAA,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AAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAA4B,CAC1B,OACEC,8BAAAA,KAAC,CAAA,CAAI,SAAA,CAAWV,CAAAA,CAAc,CAAE,OAAA,CAAAI,CAAAA,CAAS,SAAA,CAAAD,CAAAA,CAAW,IAAA,CAAAE,CAAK,CAAC,CAAA,CAAI,GAAGI,CAAAA,CAC9D,QAAA,CAAA,CAAAH,CAAAA,CACA,OAAOE,CAAAA,EAAa,QAAA,CACnBG,6BAAAA,MAAC,CAAA,CAAK,SAAA,CAAU,UAAA,CAAY,QAAA,CAAAH,CAAAA,CAAS,CAAA,CAErCA,CAAAA,CAEDD,CAAAA,CAAAA,CACH,CAEJ,CAAA,cAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-NSA7UBGF.cjs","sourcesContent":["import { type HTMLAttributes, type JSX, type ReactNode } from 'react';\nimport { tv, type VariantProps } from 'tailwind-variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: Badge\n * -------------------------------------------------------------------------- */\n\nconst badgeVariants = tv({\n base: [\n 'inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md px-2.5 text-sm font-medium',\n '[&>svg]:shrink-0',\n ],\n compoundVariants: [\n { className: 'w-8', icon: true, size: 'sm' },\n { className: 'w-9', icon: true, size: 'md' },\n { className: 'w-10', icon: true, size: 'lg' },\n { className: 'w-11', icon: true, size: 'xl' },\n { className: 'w-12', icon: true, size: '2xl' },\n ],\n defaultVariants: {\n icon: false,\n size: 'md',\n variant: 'default',\n },\n variants: {\n icon: { false: '', true: 'px-0' },\n size: {\n sm: 'h-5 [&>svg]:size-3', // 20px\n md: 'h-6 [&>svg]:size-3', // 24px\n lg: 'h-7 [&>svg]:size-4', // 28px\n xl: 'h-8 [&>svg]:size-5', // 32px\n '2xl': 'h-9 [&>svg]:size-5', // 36px\n },\n variant: {\n default: 'bg-primary text-primary-foreground',\n secondary: 'bg-secondary text-secondary-foreground',\n info: 'bg-info text-info-foreground',\n success: 'bg-success text-success-foreground',\n warning: 'bg-warning text-warning-foreground',\n destructive: 'bg-destructive text-destructive-foreground',\n outline: 'bg-background border-input border',\n },\n },\n});\n\ntype BadgeVariantsProps = VariantProps<typeof badgeVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: Badge\n * -------------------------------------------------------------------------- */\n\ninterface BadgeProps\n extends Omit<HTMLAttributes<HTMLDivElement>, 'prefix'>,\n BadgeVariantsProps {\n prefix?: ReactNode;\n suffix?: ReactNode;\n}\n\nfunction Badge({\n className,\n variant,\n size,\n prefix,\n suffix,\n children,\n ...props\n}: BadgeProps): JSX.Element {\n return (\n <div className={badgeVariants({ variant, className, size })} {...props}>\n {prefix}\n {typeof children === 'string' ? (\n <span className=\"truncate\">{children}</span>\n ) : (\n children\n )}\n {suffix}\n </div>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Badge, type BadgeProps };\n"]}
@@ -0,0 +1,2 @@
1
+ import{tv as o}from"tailwind-variants";import{jsx as c,jsxs as g}from"react/jsx-runtime";var d=o({base:["inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md px-2.5 text-sm font-medium","[&>svg]:shrink-0"],compoundVariants:[{className:"w-8",icon:!0,size:"sm"},{className:"w-9",icon:!0,size:"md"},{className:"w-10",icon:!0,size:"lg"},{className:"w-11",icon:!0,size:"xl"},{className:"w-12",icon:!0,size:"2xl"}],defaultVariants:{icon:!1,size:"md",variant:"default"},variants:{icon:{false:"",true:"px-0"},size:{sm:"h-5 [&>svg]:size-3",md:"h-6 [&>svg]:size-3",lg:"h-7 [&>svg]:size-4",xl:"h-8 [&>svg]:size-5","2xl":"h-9 [&>svg]:size-5"},variant:{default:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",info:"bg-info text-info-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",destructive:"bg-destructive text-destructive-foreground",outline:"bg-background border-input border"}}});function m({className:s,variant:t,size:r,prefix:a,suffix:i,children:e,...n}){return g("div",{className:d({variant:t,className:s,size:r}),...n,children:[a,typeof e=="string"?c("span",{className:"truncate",children:e}):e,i]})}export{m as a};
2
+ //# sourceMappingURL=chunk-PCEPHQF4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/badge.tsx"],"names":["tv","jsx","jsxs","badgeVariants","Badge","className","variant","size","prefix","suffix","children","props"],"mappings":"AACA,OAAS,MAAAA,MAA6B,oBAmElC,OAGI,OAAAC,EAHJ,QAAAC,MAAA,oBA7DJ,IAAMC,EAAgBH,EAAG,CACvB,KAAM,CACJ,iHACA,kBACF,EACA,iBAAkB,CAChB,CAAE,UAAW,MAAO,KAAM,GAAM,KAAM,IAAK,EAC3C,CAAE,UAAW,MAAO,KAAM,GAAM,KAAM,IAAK,EAC3C,CAAE,UAAW,OAAQ,KAAM,GAAM,KAAM,IAAK,EAC5C,CAAE,UAAW,OAAQ,KAAM,GAAM,KAAM,IAAK,EAC5C,CAAE,UAAW,OAAQ,KAAM,GAAM,KAAM,KAAM,CAC/C,EACA,gBAAiB,CACf,KAAM,GACN,KAAM,KACN,QAAS,SACX,EACA,SAAU,CACR,KAAM,CAAE,MAAO,GAAI,KAAM,MAAO,EAChC,KAAM,CACJ,GAAI,qBACJ,GAAI,qBACJ,GAAI,qBACJ,GAAI,qBACJ,MAAO,oBACT,EACA,QAAS,CACP,QAAS,qCACT,UAAW,yCACX,KAAM,+BACN,QAAS,qCACT,QAAS,qCACT,YAAa,6CACb,QAAS,mCACX,CACF,CACF,CAAC,EAeD,SAASI,EAAM,CACb,UAAAC,EACA,QAAAC,EACA,KAAAC,EACA,OAAAC,EACA,OAAAC,EACA,SAAAC,EACA,GAAGC,CACL,EAA4B,CAC1B,OACET,EAAC,OAAI,UAAWC,EAAc,CAAE,QAAAG,EAAS,UAAAD,EAAW,KAAAE,CAAK,CAAC,EAAI,GAAGI,EAC9D,UAAAH,EACA,OAAOE,GAAa,SACnBT,EAAC,QAAK,UAAU,WAAY,SAAAS,EAAS,EAErCA,EAEDD,GACH,CAEJ","sourcesContent":["import { type HTMLAttributes, type JSX, type ReactNode } from 'react';\nimport { tv, type VariantProps } from 'tailwind-variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: Badge\n * -------------------------------------------------------------------------- */\n\nconst badgeVariants = tv({\n base: [\n 'inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md px-2.5 text-sm font-medium',\n '[&>svg]:shrink-0',\n ],\n compoundVariants: [\n { className: 'w-8', icon: true, size: 'sm' },\n { className: 'w-9', icon: true, size: 'md' },\n { className: 'w-10', icon: true, size: 'lg' },\n { className: 'w-11', icon: true, size: 'xl' },\n { className: 'w-12', icon: true, size: '2xl' },\n ],\n defaultVariants: {\n icon: false,\n size: 'md',\n variant: 'default',\n },\n variants: {\n icon: { false: '', true: 'px-0' },\n size: {\n sm: 'h-5 [&>svg]:size-3', // 20px\n md: 'h-6 [&>svg]:size-3', // 24px\n lg: 'h-7 [&>svg]:size-4', // 28px\n xl: 'h-8 [&>svg]:size-5', // 32px\n '2xl': 'h-9 [&>svg]:size-5', // 36px\n },\n variant: {\n default: 'bg-primary text-primary-foreground',\n secondary: 'bg-secondary text-secondary-foreground',\n info: 'bg-info text-info-foreground',\n success: 'bg-success text-success-foreground',\n warning: 'bg-warning text-warning-foreground',\n destructive: 'bg-destructive text-destructive-foreground',\n outline: 'bg-background border-input border',\n },\n },\n});\n\ntype BadgeVariantsProps = VariantProps<typeof badgeVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: Badge\n * -------------------------------------------------------------------------- */\n\ninterface BadgeProps\n extends Omit<HTMLAttributes<HTMLDivElement>, 'prefix'>,\n BadgeVariantsProps {\n prefix?: ReactNode;\n suffix?: ReactNode;\n}\n\nfunction Badge({\n className,\n variant,\n size,\n prefix,\n suffix,\n children,\n ...props\n}: BadgeProps): JSX.Element {\n return (\n <div className={badgeVariants({ variant, className, size })} {...props}>\n {prefix}\n {typeof children === 'string' ? (\n <span className=\"truncate\">{children}</span>\n ) : (\n children\n )}\n {suffix}\n </div>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Badge, type BadgeProps };\n"]}
@@ -1,2 +1,2 @@
1
- "use client";import{a as r,c as d}from"./chunk-VIL5XAJ2.js";import{a as p}from"./chunk-VPYH6JWS.js";import{MagnifyingGlassIcon as s}from"@radix-ui/react-icons";import{Command as m}from"cmdk";import{forwardRef as a}from"react";import{jsx as n,jsxs as g}from"react/jsx-runtime";var i=a(({className:e,...o},t)=>n(m,{ref:t,className:p("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...o}));i.displayName=m.displayName;function k({children:e,...o}){return n(r,{...o,children:n(d,{className:"p-0",children:n(i,{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-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:size-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:size-5",children:e})})})}var C=a(({className:e,...o},t)=>g("div",{className:"flex items-center gap-2 border-b px-3","cmdk-input-wrapper":"",children:[n(s,{className:"size-5 shrink-0 opacity-50"}),n(m.Input,{ref:t,className:p("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent text-sm outline-none disabled:cursor-default disabled:opacity-50",e),...o})]}));C.displayName=m.Input.displayName;var l=a(({className:e,...o},t)=>n(m.List,{ref:t,className:p("max-h-72 overflow-y-auto overflow-x-hidden",e),...o}));l.displayName=m.List.displayName;var y=a((e,o)=>n(m.Empty,{ref:o,className:"py-6 text-center text-sm",...e}));y.displayName=m.Empty.displayName;var u=a(({className:e,...o},t)=>n(m.Group,{ref:t,className:p("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),...o}));u.displayName=m.Group.displayName;var f=a(({className:e,...o},t)=>n(m.Separator,{ref:t,className:p("bg-border -mx-1 h-px",e),...o}));f.displayName=m.Separator.displayName;var c=a(({className:e,...o},t)=>n(m.Item,{ref:t,className:p("gap-x-2 px-3 py-1.5","relative flex cursor-pointer select-none items-center rounded-sm text-sm","aria-disabled:pointer-events-none aria-disabled:opacity-50","aria-selected:bg-accent aria-selected:text-accent-foreground aria-selected:outline-none",e),...o}));c.displayName=m.Item.displayName;var P=a(({className:e,...o},t)=>n(m.Loading,{ref:t,className:p("flex justify-center p-2",e),...o}));P.displayName=m.Loading.displayName;function R({className:e,...o}){return n("span",{className:p("text-muted-foreground ml-auto text-xs tracking-widest",e),...o})}export{i as a,k as b,C as c,l as d,y as e,u as f,f as g,c as h,P as i,R as j};
2
- //# sourceMappingURL=chunk-B3NICH7Q.js.map
1
+ "use client";import{a as r,c as d}from"./chunk-5NHYXWLY.js";import{a as p}from"./chunk-VPYH6JWS.js";import{MagnifyingGlassIcon as s}from"@radix-ui/react-icons";import{Command as m}from"cmdk";import{forwardRef as a}from"react";import{jsx as n,jsxs as g}from"react/jsx-runtime";var i=a(({className:e,...o},t)=>n(m,{ref:t,className:p("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...o}));i.displayName=m.displayName;function k({children:e,...o}){return n(r,{...o,children:n(d,{className:"p-0",children:n(i,{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-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:size-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:size-5",children:e})})})}var C=a(({className:e,...o},t)=>g("div",{className:"flex items-center gap-2 border-b px-3","cmdk-input-wrapper":"",children:[n(s,{className:"size-5 shrink-0 opacity-50"}),n(m.Input,{ref:t,className:p("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent text-sm outline-none disabled:cursor-default disabled:opacity-50",e),...o})]}));C.displayName=m.Input.displayName;var l=a(({className:e,...o},t)=>n(m.List,{ref:t,className:p("max-h-72 overflow-y-auto overflow-x-hidden",e),...o}));l.displayName=m.List.displayName;var y=a((e,o)=>n(m.Empty,{ref:o,className:"py-6 text-center text-sm",...e}));y.displayName=m.Empty.displayName;var u=a(({className:e,...o},t)=>n(m.Group,{ref:t,className:p("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),...o}));u.displayName=m.Group.displayName;var f=a(({className:e,...o},t)=>n(m.Separator,{ref:t,className:p("bg-border -mx-1 h-px",e),...o}));f.displayName=m.Separator.displayName;var c=a(({className:e,...o},t)=>n(m.Item,{ref:t,className:p("gap-x-2 px-3 py-1.5","relative flex cursor-pointer select-none items-center rounded-sm text-sm","aria-disabled:pointer-events-none aria-disabled:opacity-50","aria-selected:bg-accent aria-selected:text-accent-foreground aria-selected:outline-none",e),...o}));c.displayName=m.Item.displayName;var P=a(({className:e,...o},t)=>n(m.Loading,{ref:t,className:p("flex justify-center p-2",e),...o}));P.displayName=m.Loading.displayName;function R({className:e,...o}){return n("span",{className:p("text-muted-foreground ml-auto text-xs tracking-widest",e),...o})}export{i as a,k as b,C as c,l as d,y as e,u as f,f as g,c as h,P as i,R as j};
2
+ //# sourceMappingURL=chunk-PFJKZSJ6.js.map
@@ -1,2 +1,2 @@
1
- "use client";import{a as d}from"./chunk-D3YTCKUH.js";import{a as i}from"./chunk-VPYH6JWS.js";import{createContextScope as g}from"@radix-ui/react-context";import{ArrowLeftIcon as B,ArrowRightIcon as D}from"@radix-ui/react-icons";import U from"embla-carousel-react";import{forwardRef as y,useCallback as f,useEffect as S,useState as b}from"react";import{jsx as s}from"react/jsx-runtime";var x="Carousel",[_,$]=g(x),[O,v]=_(x),z=y(({__scopeCarousel:l,children:a,orientation:o,opts:r,setApi:t,plugins:u,className:p,...c},C)=>{let[m,e]=U({...r,axis:o==="vertical"?"y":"x"},u),[R,H]=b(!1),[I,h]=b(!1),P=f(n=>{n&&(H(n.canScrollPrev()),h(n.canScrollNext()))},[]),E=f(()=>{e?.scrollPrev()},[e]),N=f(()=>{e?.scrollNext()},[e]),w=f(n=>{n.key==="ArrowLeft"?(n.preventDefault(),E()):n.key==="ArrowRight"&&(n.preventDefault(),N())},[E,N]);return S(()=>{!e||!t||t(e)},[e,t]),S(()=>{if(e)return P(e),e.on("reInit",P),e.on("select",P),()=>{e.off("select",P)}},[e,P]),s(O,{api:e,canScrollNext:I,canScrollPrev:R,carouselRef:m,opts:r,orientation:o??(r?.axis==="y"?"vertical":"horizontal"),scope:l,scrollNext:N,scrollPrev:E,children:s("div",{ref:C,"aria-roledescription":"carousel",className:i("relative",p),role:"region",onKeyDownCapture:w,...c,children:a})})});z.displayName=x;var T="CarouselContent",k=y(({__scopeCarousel:l,className:a,classNames:o,...r},t)=>{let{carouselRef:u,orientation:p}=v(T,l);return s("div",{ref:u,className:i("overflow-hidden",o?.wrapper),children:s("div",{ref:t,className:i("flex",p==="horizontal"?"-ml-4":"-mt-4 flex-col",o?.content,a),...r})})});k.displayName=T;var L="CarouselItem",K=y(({__scopeCarousel:l,className:a,...o},r)=>{let{orientation:t}=v(L,l);return s("div",{ref:r,"aria-roledescription":"slide",className:i("min-w-0 shrink-0 grow-0 basis-full",t==="horizontal"?"pl-4":"pt-4",a),role:"group",...o})});K.displayName=L;var A="CarouselPrevious",V=y(({__scopeCarousel:l,className:a,icon:o=!0,size:r="sm",variant:t="outline",...u},p)=>{let{orientation:c,scrollPrev:C,canScrollPrev:m}=v(A,l);return s(d,{ref:p,className:i("absolute",c==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",a),disabled:!m,icon:o,prefix:s(B,{}),size:r,variant:t,onClick:C,...u,children:s("span",{className:"sr-only",children:"Previous slide"})})});V.displayName=A;var M="CarouselNext",X=y(({__scopeCarousel:l,className:a,icon:o=!0,size:r="sm",variant:t="outline",...u},p)=>{let{orientation:c,scrollNext:C,canScrollNext:m}=v(M,l);return s(d,{ref:p,className:i("absolute",c==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",a),disabled:!m,icon:o,prefix:s(D,{}),size:r,variant:t,onClick:C,...u,children:s("span",{className:"sr-only",children:"Next slide"})})});X.displayName=M;export{$ as a,z as b,k as c,K as d,V as e,X as f};
2
- //# sourceMappingURL=chunk-TI7JQNNN.js.map
1
+ "use client";import{a as d}from"./chunk-MS6HNR34.js";import{a as i}from"./chunk-VPYH6JWS.js";import{createContextScope as g}from"@radix-ui/react-context";import{ArrowLeftIcon as B,ArrowRightIcon as D}from"@radix-ui/react-icons";import U from"embla-carousel-react";import{forwardRef as y,useCallback as f,useEffect as S,useState as b}from"react";import{jsx as s}from"react/jsx-runtime";var x="Carousel",[_,$]=g(x),[O,v]=_(x),z=y(({__scopeCarousel:l,children:a,orientation:o,opts:r,setApi:t,plugins:u,className:p,...c},C)=>{let[m,e]=U({...r,axis:o==="vertical"?"y":"x"},u),[R,H]=b(!1),[I,h]=b(!1),P=f(n=>{n&&(H(n.canScrollPrev()),h(n.canScrollNext()))},[]),E=f(()=>{e?.scrollPrev()},[e]),N=f(()=>{e?.scrollNext()},[e]),w=f(n=>{n.key==="ArrowLeft"?(n.preventDefault(),E()):n.key==="ArrowRight"&&(n.preventDefault(),N())},[E,N]);return S(()=>{!e||!t||t(e)},[e,t]),S(()=>{if(e)return P(e),e.on("reInit",P),e.on("select",P),()=>{e.off("select",P)}},[e,P]),s(O,{api:e,canScrollNext:I,canScrollPrev:R,carouselRef:m,opts:r,orientation:o??(r?.axis==="y"?"vertical":"horizontal"),scope:l,scrollNext:N,scrollPrev:E,children:s("div",{ref:C,"aria-roledescription":"carousel",className:i("relative",p),role:"region",onKeyDownCapture:w,...c,children:a})})});z.displayName=x;var T="CarouselContent",k=y(({__scopeCarousel:l,className:a,classNames:o,...r},t)=>{let{carouselRef:u,orientation:p}=v(T,l);return s("div",{ref:u,className:i("overflow-hidden",o?.wrapper),children:s("div",{ref:t,className:i("flex",p==="horizontal"?"-ml-4":"-mt-4 flex-col",o?.content,a),...r})})});k.displayName=T;var L="CarouselItem",K=y(({__scopeCarousel:l,className:a,...o},r)=>{let{orientation:t}=v(L,l);return s("div",{ref:r,"aria-roledescription":"slide",className:i("min-w-0 shrink-0 grow-0 basis-full",t==="horizontal"?"pl-4":"pt-4",a),role:"group",...o})});K.displayName=L;var A="CarouselPrevious",V=y(({__scopeCarousel:l,className:a,icon:o=!0,size:r="sm",variant:t="outline",...u},p)=>{let{orientation:c,scrollPrev:C,canScrollPrev:m}=v(A,l);return s(d,{ref:p,className:i("absolute",c==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",a),disabled:!m,icon:o,prefix:s(B,{}),size:r,variant:t,onClick:C,...u,children:s("span",{className:"sr-only",children:"Previous slide"})})});V.displayName=A;var M="CarouselNext",X=y(({__scopeCarousel:l,className:a,icon:o=!0,size:r="sm",variant:t="outline",...u},p)=>{let{orientation:c,scrollNext:C,canScrollNext:m}=v(M,l);return s(d,{ref:p,className:i("absolute",c==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",a),disabled:!m,icon:o,prefix:s(D,{}),size:r,variant:t,onClick:C,...u,children:s("span",{className:"sr-only",children:"Next slide"})})});X.displayName=M;export{$ as a,z as b,k as c,K as d,V as e,X as f};
2
+ //# sourceMappingURL=chunk-PHNUQKIK.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunkSONWHTU3cjs = require('./chunk-SONWHTU3.cjs');var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _reacticons = require('@radix-ui/react-icons');var _cmdk = require('cmdk');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var i=_react.forwardRef.call(void 0, ({className:e,...o},t)=>_jsxruntime.jsx.call(void 0, _cmdk.Command,{ref:t,className:_chunkDD6AVCRHcjs.a.call(void 0, "bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...o}));i.displayName=_cmdk.Command.displayName;function I({children:e,...o}){return _jsxruntime.jsx.call(void 0, _chunkSONWHTU3cjs.a,{...o,children:_jsxruntime.jsx.call(void 0, _chunkSONWHTU3cjs.c,{className:"p-0",children:_jsxruntime.jsx.call(void 0, i,{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-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:size-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:size-5",children:e})})})}var C=_react.forwardRef.call(void 0, ({className:e,...o},t)=>_jsxruntime.jsxs.call(void 0, "div",{className:"flex items-center gap-2 border-b px-3","cmdk-input-wrapper":"",children:[_jsxruntime.jsx.call(void 0, _reacticons.MagnifyingGlassIcon,{className:"size-5 shrink-0 opacity-50"}),_jsxruntime.jsx.call(void 0, _cmdk.Command.Input,{ref:t,className:_chunkDD6AVCRHcjs.a.call(void 0, "placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent text-sm outline-none disabled:cursor-default disabled:opacity-50",e),...o})]}));C.displayName=_cmdk.Command.Input.displayName;var l=_react.forwardRef.call(void 0, ({className:e,...o},t)=>_jsxruntime.jsx.call(void 0, _cmdk.Command.List,{ref:t,className:_chunkDD6AVCRHcjs.a.call(void 0, "max-h-72 overflow-y-auto overflow-x-hidden",e),...o}));l.displayName=_cmdk.Command.List.displayName;var y=_react.forwardRef.call(void 0, (e,o)=>_jsxruntime.jsx.call(void 0, _cmdk.Command.Empty,{ref:o,className:"py-6 text-center text-sm",...e}));y.displayName=_cmdk.Command.Empty.displayName;var u=_react.forwardRef.call(void 0, ({className:e,...o},t)=>_jsxruntime.jsx.call(void 0, _cmdk.Command.Group,{ref:t,className:_chunkDD6AVCRHcjs.a.call(void 0, "text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...o}));u.displayName=_cmdk.Command.Group.displayName;var f=_react.forwardRef.call(void 0, ({className:e,...o},t)=>_jsxruntime.jsx.call(void 0, _cmdk.Command.Separator,{ref:t,className:_chunkDD6AVCRHcjs.a.call(void 0, "bg-border -mx-1 h-px",e),...o}));f.displayName=_cmdk.Command.Separator.displayName;var c=_react.forwardRef.call(void 0, ({className:e,...o},t)=>_jsxruntime.jsx.call(void 0, _cmdk.Command.Item,{ref:t,className:_chunkDD6AVCRHcjs.a.call(void 0, "gap-x-2 px-3 py-1.5","relative flex cursor-pointer select-none items-center rounded-sm text-sm","aria-disabled:pointer-events-none aria-disabled:opacity-50","aria-selected:bg-accent aria-selected:text-accent-foreground aria-selected:outline-none",e),...o}));c.displayName=_cmdk.Command.Item.displayName;var P=_react.forwardRef.call(void 0, ({className:e,...o},t)=>_jsxruntime.jsx.call(void 0, _cmdk.Command.Loading,{ref:t,className:_chunkDD6AVCRHcjs.a.call(void 0, "flex justify-center p-2",e),...o}));P.displayName=_cmdk.Command.Loading.displayName;function k({className:e,...o}){return _jsxruntime.jsx.call(void 0, "span",{className:_chunkDD6AVCRHcjs.a.call(void 0, "text-muted-foreground ml-auto text-xs tracking-widest",e),...o})}exports.a = i; exports.b = I; exports.c = C; exports.d = l; exports.e = y; exports.f = u; exports.g = f; exports.h = c; exports.i = P; exports.j = k;
2
- //# sourceMappingURL=chunk-SEEK7N3Y.cjs.map
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunk4EPZJQXBcjs = require('./chunk-4EPZJQXB.cjs');var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _reacticons = require('@radix-ui/react-icons');var _cmdk = require('cmdk');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var i=_react.forwardRef.call(void 0, ({className:e,...o},t)=>_jsxruntime.jsx.call(void 0, _cmdk.Command,{ref:t,className:_chunkDD6AVCRHcjs.a.call(void 0, "bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...o}));i.displayName=_cmdk.Command.displayName;function I({children:e,...o}){return _jsxruntime.jsx.call(void 0, _chunk4EPZJQXBcjs.a,{...o,children:_jsxruntime.jsx.call(void 0, _chunk4EPZJQXBcjs.c,{className:"p-0",children:_jsxruntime.jsx.call(void 0, i,{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-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:size-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:size-5",children:e})})})}var C=_react.forwardRef.call(void 0, ({className:e,...o},t)=>_jsxruntime.jsxs.call(void 0, "div",{className:"flex items-center gap-2 border-b px-3","cmdk-input-wrapper":"",children:[_jsxruntime.jsx.call(void 0, _reacticons.MagnifyingGlassIcon,{className:"size-5 shrink-0 opacity-50"}),_jsxruntime.jsx.call(void 0, _cmdk.Command.Input,{ref:t,className:_chunkDD6AVCRHcjs.a.call(void 0, "placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent text-sm outline-none disabled:cursor-default disabled:opacity-50",e),...o})]}));C.displayName=_cmdk.Command.Input.displayName;var l=_react.forwardRef.call(void 0, ({className:e,...o},t)=>_jsxruntime.jsx.call(void 0, _cmdk.Command.List,{ref:t,className:_chunkDD6AVCRHcjs.a.call(void 0, "max-h-72 overflow-y-auto overflow-x-hidden",e),...o}));l.displayName=_cmdk.Command.List.displayName;var y=_react.forwardRef.call(void 0, (e,o)=>_jsxruntime.jsx.call(void 0, _cmdk.Command.Empty,{ref:o,className:"py-6 text-center text-sm",...e}));y.displayName=_cmdk.Command.Empty.displayName;var u=_react.forwardRef.call(void 0, ({className:e,...o},t)=>_jsxruntime.jsx.call(void 0, _cmdk.Command.Group,{ref:t,className:_chunkDD6AVCRHcjs.a.call(void 0, "text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...o}));u.displayName=_cmdk.Command.Group.displayName;var f=_react.forwardRef.call(void 0, ({className:e,...o},t)=>_jsxruntime.jsx.call(void 0, _cmdk.Command.Separator,{ref:t,className:_chunkDD6AVCRHcjs.a.call(void 0, "bg-border -mx-1 h-px",e),...o}));f.displayName=_cmdk.Command.Separator.displayName;var c=_react.forwardRef.call(void 0, ({className:e,...o},t)=>_jsxruntime.jsx.call(void 0, _cmdk.Command.Item,{ref:t,className:_chunkDD6AVCRHcjs.a.call(void 0, "gap-x-2 px-3 py-1.5","relative flex cursor-pointer select-none items-center rounded-sm text-sm","aria-disabled:pointer-events-none aria-disabled:opacity-50","aria-selected:bg-accent aria-selected:text-accent-foreground aria-selected:outline-none",e),...o}));c.displayName=_cmdk.Command.Item.displayName;var P=_react.forwardRef.call(void 0, ({className:e,...o},t)=>_jsxruntime.jsx.call(void 0, _cmdk.Command.Loading,{ref:t,className:_chunkDD6AVCRHcjs.a.call(void 0, "flex justify-center p-2",e),...o}));P.displayName=_cmdk.Command.Loading.displayName;function k({className:e,...o}){return _jsxruntime.jsx.call(void 0, "span",{className:_chunkDD6AVCRHcjs.a.call(void 0, "text-muted-foreground ml-auto text-xs tracking-widest",e),...o})}exports.a = i; exports.b = I; exports.c = C; exports.d = l; exports.e = y; exports.f = u; exports.g = f; exports.h = c; exports.i = P; exports.j = k;
2
+ //# sourceMappingURL=chunk-QGXJIDRM.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-SEEK7N3Y.cjs","../src/components/command.tsx"],"names":["className","jsx","CommandPrimitive","forwardedRef","cn","Command","children","Dialog","DialogContent","CommandInput","forwardRef","jsxs","MagnifyingGlassIcon","CommandList","CommandGroup","CommandSeparator","CommandItem","CommandLoading"],"mappings":"AAAA,qFAAY,CAAC,wDAA+C,wDCEnD,mDACA,4BAKP,8BAgBE,+CADC,IAAA,CAAA,CAAA,+BAAAA,CAAW,CAAA,SACZC,CAAAA,CAACC,CAAAA,GACC,CAAA,CAAA,CAAKC,CAAAA,CACL,EAAA,6BAAA,aAAA,CAAA,CAAA,GAAWC,CAAAA,CACT,CAAA,SAAA,CAAA,iCAAA,2FAQRC,CAAQ,CAAA,CAAA,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAcH,CAAAA,WAAiB,CAAA,aAQvC,CAAA,WACE,CAAA,SAAAI,CACA,CAAA,CAAA,QAEA,CAAA,CAAA,CAAA,GACGC,CAAAA,CAAA,CAAQ,CAAA,OACP,6BAAA,mBAAA,CAAA,CAAA,GAACC,CAAAA,CAAA,QAAc,CAAA,6BAAA,mBAAU,CAAA,CAAA,SACvB,CAAA,KAACH,CAAA,QAAQ,CAAA,6BAAA,CAAU,CAAA,CAAA,SAAA,CAAA,0TAEnB,CACF,QAcAI,CAAAA,CAAeC,CAAAA,CACnB,CAAC,CA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A,CAAA,CAAA,GACG,CAAA,CAAA,CAAA,CAAA,OACC,6BAAA,MAAWI,CACT,CAAA,SAAA,CAAA,iCAAA,uDAMR,CAAA,CAAA,CAAA,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA,qJAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-SEEK7N3Y.cjs","sourcesContent":[null,"'use client';\n\nimport { MagnifyingGlassIcon } from '@radix-ui/react-icons';\nimport { Command as CommandPrimitive } from 'cmdk';\nimport {\n type ComponentProps,\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n type HTMLAttributes,\n type JSX,\n} from 'react';\nimport { Dialog, DialogContent } from '@/components/dialog';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Command\n * -------------------------------------------------------------------------- */\n\ntype CommandElement = ComponentRef<typeof CommandPrimitive>;\ntype CommandProps = ComponentPropsWithoutRef<typeof CommandPrimitive>;\n\nconst Command = forwardRef<CommandElement, CommandProps>(\n ({ className, ...props }, forwardedRef) => (\n <CommandPrimitive\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md',\n className,\n )}\n {...props}\n />\n ),\n);\n\nCommand.displayName = CommandPrimitive.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CommandDialog\n * -------------------------------------------------------------------------- */\n\ntype CommandDialogProps = ComponentProps<typeof Dialog>;\n\nfunction CommandDialog({\n children,\n ...props\n}: CommandDialogProps): JSX.Element {\n return (\n <Dialog {...props}>\n <DialogContent className=\"p-0\">\n <Command className=\"[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:size-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:size-5\">\n {children}\n </Command>\n </DialogContent>\n </Dialog>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandInput\n * -------------------------------------------------------------------------- */\n\ntype CommandInputElement = ComponentRef<typeof CommandPrimitive.Input>;\ntype CommandInputProps = ComponentPropsWithoutRef<\n typeof CommandPrimitive.Input\n>;\n\nconst CommandInput = forwardRef<CommandInputElement, CommandInputProps>(\n ({ className, ...props }, forwardedRef) => (\n <div\n className=\"flex items-center gap-2 border-b px-3\"\n cmdk-input-wrapper=\"\"\n >\n <MagnifyingGlassIcon className=\"size-5 shrink-0 opacity-50\" />\n <CommandPrimitive.Input\n ref={forwardedRef}\n className={cn(\n 'placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent text-sm outline-none disabled:cursor-default disabled:opacity-50',\n className,\n )}\n {...props}\n />\n </div>\n ),\n);\n\nCommandInput.displayName = CommandPrimitive.Input.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CommandList\n * -------------------------------------------------------------------------- */\n\ntype CommandListElement = ComponentRef<typeof CommandPrimitive.List>;\ntype CommandListProps = ComponentPropsWithoutRef<typeof CommandPrimitive.List>;\n\nconst CommandList = forwardRef<CommandListElement, CommandListProps>(\n ({ className, ...props }, forwardedRef) => (\n <CommandPrimitive.List\n ref={forwardedRef}\n className={cn('max-h-72 overflow-y-auto overflow-x-hidden', className)}\n {...props}\n />\n ),\n);\n\nCommandList.displayName = CommandPrimitive.List.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CommandEmpty\n * -------------------------------------------------------------------------- */\n\ntype CommandEmptyElement = ComponentRef<typeof CommandPrimitive.Empty>;\ntype CommandEmptyProps = ComponentPropsWithoutRef<\n typeof CommandPrimitive.Empty\n>;\n\nconst CommandEmpty = forwardRef<CommandEmptyElement, CommandEmptyProps>(\n (props, forwardedRef) => (\n <CommandPrimitive.Empty\n ref={forwardedRef}\n className=\"py-6 text-center text-sm\"\n {...props}\n />\n ),\n);\n\nCommandEmpty.displayName = CommandPrimitive.Empty.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CommandGroup\n * -------------------------------------------------------------------------- */\n\ntype CommandGroupElement = ComponentRef<typeof CommandPrimitive.Group>;\ntype CommandGroupProps = ComponentPropsWithoutRef<\n typeof CommandPrimitive.Group\n>;\n\nconst CommandGroup = forwardRef<CommandGroupElement, CommandGroupProps>(\n ({ className, ...props }, forwardedRef) => (\n <CommandPrimitive.Group\n ref={forwardedRef}\n className={cn(\n 'text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium',\n className,\n )}\n {...props}\n />\n ),\n);\n\nCommandGroup.displayName = CommandPrimitive.Group.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CommandSeparator\n * -------------------------------------------------------------------------- */\n\ntype CommandSeparatorElement = ComponentRef<typeof CommandPrimitive.Separator>;\ntype CommandSeparatorProps = ComponentPropsWithoutRef<\n typeof CommandPrimitive.Separator\n>;\n\nconst CommandSeparator = forwardRef<\n CommandSeparatorElement,\n CommandSeparatorProps\n>(({ className, ...props }, forwardedRef) => (\n <CommandPrimitive.Separator\n ref={forwardedRef}\n className={cn('bg-border -mx-1 h-px', className)}\n {...props}\n />\n));\n\nCommandSeparator.displayName = CommandPrimitive.Separator.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CommandItem\n * -------------------------------------------------------------------------- */\n\ntype CommandItemElement = ComponentRef<typeof CommandPrimitive.Item>;\ntype CommandItemProps = ComponentPropsWithoutRef<typeof CommandPrimitive.Item>;\n\nconst CommandItem = forwardRef<CommandItemElement, CommandItemProps>(\n ({ className, ...props }, forwardedRef) => (\n <CommandPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'relative flex cursor-pointer select-none items-center rounded-sm text-sm',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n 'aria-selected:bg-accent aria-selected:text-accent-foreground aria-selected:outline-none',\n className,\n )}\n {...props}\n />\n ),\n);\n\nCommandItem.displayName = CommandPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CommandLoading\n * -------------------------------------------------------------------------- */\n\ntype CommandLoadingElement = ComponentRef<typeof CommandPrimitive.Loading>;\ntype CommandLoadingProps = ComponentPropsWithoutRef<\n typeof CommandPrimitive.Loading\n>;\n\nconst CommandLoading = forwardRef<CommandLoadingElement, CommandLoadingProps>(\n ({ className, ...props }, forwardedRef) => (\n <CommandPrimitive.Loading\n ref={forwardedRef}\n className={cn('flex justify-center p-2', className)}\n {...props}\n />\n ),\n);\n\nCommandLoading.displayName = CommandPrimitive.Loading.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CommandShortcut\n * -------------------------------------------------------------------------- */\n\ntype CommandShortcutProps = HTMLAttributes<HTMLSpanElement>;\n\nfunction CommandShortcut({\n className,\n ...props\n}: CommandShortcutProps): JSX.Element {\n return (\n <span\n className={cn(\n 'text-muted-foreground ml-auto text-xs tracking-widest',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Command,\n CommandDialog,\n type CommandDialogProps,\n CommandEmpty,\n type CommandEmptyProps,\n CommandGroup,\n type CommandGroupProps,\n CommandInput,\n type CommandInputProps,\n CommandItem,\n type CommandItemProps,\n CommandList,\n type CommandListProps,\n CommandLoading,\n type CommandLoadingProps,\n type CommandProps,\n CommandSeparator,\n type CommandSeparatorProps,\n CommandShortcut,\n type CommandShortcutProps,\n};\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-QGXJIDRM.cjs","../src/components/command.tsx"],"names":["className","jsx","CommandPrimitive","forwardedRef","cn","Command","children","Dialog","DialogContent","CommandInput","forwardRef","jsxs","MagnifyingGlassIcon","CommandList","CommandGroup","Command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,CAAW,CAAA,SACZC,CAAAA,CAACC,CAAAA,GAAiB,CAAA,CAAA,CAAjB,CACC,CAAA,EAAA,6BAAKC,aACL,CAAA,IAAA,CAAA,CAAA,GAAWC,CAAAA,CACT,CAAA,SAAA,CAAA,iCAAA,qBACA,CAAA,0EACA,CAAA,4DACA,CAAA,yFAQRY,CAAY,CAAA,CAAA,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAcd,CAAAA,WAAsB,CAAA,aAAA,CAAA,IAWhD,CAAA,WACK,CAAA,IAAA,CAAA,CAAA,+BAAAF,CAAW,CAAA,SACZC,CAAAA,CAACC,CAAAA,GAAiB,CAAA,CAAA,CAAA,CAAA,CAAA,EAChB,6BAAA,aAAA,CAAKC,OACL,CAAA,CAAA,GAAWC,CAAAA,CAAG,CAAA,SAAA,CAAA,iCAAA,yBAMpBa,CAAe,CAAA,CAAA,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAcf,CAAAA,WAAyB,CAAA,aAAA,CAAA,OAQtD,CAAA,WACE,CAAA,SAAAF,CAAAA,CACA,CAAA,SAEA,CAAA,CAAA,CAAA,GACG,CAAA,CAAA,CAAA,CAAA,OACC,6BAAA,MAAWI,CACT,CAAA,SAAA,CAAA,iCAAA,uDAMR,CAAA,CAAA,CAAA,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA,qJAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-QGXJIDRM.cjs","sourcesContent":[null,"'use client';\n\nimport { MagnifyingGlassIcon } from '@radix-ui/react-icons';\nimport { Command as CommandPrimitive } from 'cmdk';\nimport {\n type ComponentProps,\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n type HTMLAttributes,\n type JSX,\n} from 'react';\nimport { Dialog, DialogContent } from '@/components/dialog';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Command\n * -------------------------------------------------------------------------- */\n\ntype CommandElement = ComponentRef<typeof CommandPrimitive>;\ntype CommandProps = ComponentPropsWithoutRef<typeof CommandPrimitive>;\n\nconst Command = forwardRef<CommandElement, CommandProps>(\n ({ className, ...props }, forwardedRef) => (\n <CommandPrimitive\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md',\n className,\n )}\n {...props}\n />\n ),\n);\n\nCommand.displayName = CommandPrimitive.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CommandDialog\n * -------------------------------------------------------------------------- */\n\ntype CommandDialogProps = ComponentProps<typeof Dialog>;\n\nfunction CommandDialog({\n children,\n ...props\n}: CommandDialogProps): JSX.Element {\n return (\n <Dialog {...props}>\n <DialogContent className=\"p-0\">\n <Command className=\"[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:size-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:size-5\">\n {children}\n </Command>\n </DialogContent>\n </Dialog>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CommandInput\n * -------------------------------------------------------------------------- */\n\ntype CommandInputElement = ComponentRef<typeof CommandPrimitive.Input>;\ntype CommandInputProps = ComponentPropsWithoutRef<\n typeof CommandPrimitive.Input\n>;\n\nconst CommandInput = forwardRef<CommandInputElement, CommandInputProps>(\n ({ className, ...props }, forwardedRef) => (\n <div\n className=\"flex items-center gap-2 border-b px-3\"\n cmdk-input-wrapper=\"\"\n >\n <MagnifyingGlassIcon className=\"size-5 shrink-0 opacity-50\" />\n <CommandPrimitive.Input\n ref={forwardedRef}\n className={cn(\n 'placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent text-sm outline-none disabled:cursor-default disabled:opacity-50',\n className,\n )}\n {...props}\n />\n </div>\n ),\n);\n\nCommandInput.displayName = CommandPrimitive.Input.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CommandList\n * -------------------------------------------------------------------------- */\n\ntype CommandListElement = ComponentRef<typeof CommandPrimitive.List>;\ntype CommandListProps = ComponentPropsWithoutRef<typeof CommandPrimitive.List>;\n\nconst CommandList = forwardRef<CommandListElement, CommandListProps>(\n ({ className, ...props }, forwardedRef) => (\n <CommandPrimitive.List\n ref={forwardedRef}\n className={cn('max-h-72 overflow-y-auto overflow-x-hidden', className)}\n {...props}\n />\n ),\n);\n\nCommandList.displayName = CommandPrimitive.List.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CommandEmpty\n * -------------------------------------------------------------------------- */\n\ntype CommandEmptyElement = ComponentRef<typeof CommandPrimitive.Empty>;\ntype CommandEmptyProps = ComponentPropsWithoutRef<\n typeof CommandPrimitive.Empty\n>;\n\nconst CommandEmpty = forwardRef<CommandEmptyElement, CommandEmptyProps>(\n (props, forwardedRef) => (\n <CommandPrimitive.Empty\n ref={forwardedRef}\n className=\"py-6 text-center text-sm\"\n {...props}\n />\n ),\n);\n\nCommandEmpty.displayName = CommandPrimitive.Empty.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CommandGroup\n * -------------------------------------------------------------------------- */\n\ntype CommandGroupElement = ComponentRef<typeof CommandPrimitive.Group>;\ntype CommandGroupProps = ComponentPropsWithoutRef<\n typeof CommandPrimitive.Group\n>;\n\nconst CommandGroup = forwardRef<CommandGroupElement, CommandGroupProps>(\n ({ className, ...props }, forwardedRef) => (\n <CommandPrimitive.Group\n ref={forwardedRef}\n className={cn(\n 'text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium',\n className,\n )}\n {...props}\n />\n ),\n);\n\nCommandGroup.displayName = CommandPrimitive.Group.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CommandSeparator\n * -------------------------------------------------------------------------- */\n\ntype CommandSeparatorElement = ComponentRef<typeof CommandPrimitive.Separator>;\ntype CommandSeparatorProps = ComponentPropsWithoutRef<\n typeof CommandPrimitive.Separator\n>;\n\nconst CommandSeparator = forwardRef<\n CommandSeparatorElement,\n CommandSeparatorProps\n>(({ className, ...props }, forwardedRef) => (\n <CommandPrimitive.Separator\n ref={forwardedRef}\n className={cn('bg-border -mx-1 h-px', className)}\n {...props}\n />\n));\n\nCommandSeparator.displayName = CommandPrimitive.Separator.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CommandItem\n * -------------------------------------------------------------------------- */\n\ntype CommandItemElement = ComponentRef<typeof CommandPrimitive.Item>;\ntype CommandItemProps = ComponentPropsWithoutRef<typeof CommandPrimitive.Item>;\n\nconst CommandItem = forwardRef<CommandItemElement, CommandItemProps>(\n ({ className, ...props }, forwardedRef) => (\n <CommandPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'relative flex cursor-pointer select-none items-center rounded-sm text-sm',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n 'aria-selected:bg-accent aria-selected:text-accent-foreground aria-selected:outline-none',\n className,\n )}\n {...props}\n />\n ),\n);\n\nCommandItem.displayName = CommandPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CommandLoading\n * -------------------------------------------------------------------------- */\n\ntype CommandLoadingElement = ComponentRef<typeof CommandPrimitive.Loading>;\ntype CommandLoadingProps = ComponentPropsWithoutRef<\n typeof CommandPrimitive.Loading\n>;\n\nconst CommandLoading = forwardRef<CommandLoadingElement, CommandLoadingProps>(\n ({ className, ...props }, forwardedRef) => (\n <CommandPrimitive.Loading\n ref={forwardedRef}\n className={cn('flex justify-center p-2', className)}\n {...props}\n />\n ),\n);\n\nCommandLoading.displayName = CommandPrimitive.Loading.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CommandShortcut\n * -------------------------------------------------------------------------- */\n\ntype CommandShortcutProps = HTMLAttributes<HTMLSpanElement>;\n\nfunction CommandShortcut({\n className,\n ...props\n}: CommandShortcutProps): JSX.Element {\n return (\n <span\n className={cn(\n 'text-muted-foreground ml-auto text-xs tracking-widest',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Command,\n CommandDialog,\n type CommandDialogProps,\n CommandEmpty,\n type CommandEmptyProps,\n CommandGroup,\n type CommandGroupProps,\n CommandInput,\n type CommandInputProps,\n CommandItem,\n type CommandItemProps,\n CommandList,\n type CommandListProps,\n CommandLoading,\n type CommandLoadingProps,\n type CommandProps,\n CommandSeparator,\n type CommandSeparatorProps,\n CommandShortcut,\n type CommandShortcutProps,\n};\n"]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _tailwindvariants = require('tailwind-variants');var o=_tailwindvariants.tv.call(void 0, {slots:{root:["border-input bg-background flex w-full grow cursor-text items-center gap-2 rounded-md border px-3 text-sm shadow-sm transition","[&>svg]:text-muted-foreground [&>svg]:shrink-0","focus-within:outline focus-within:outline-2 focus-within:-outline-offset-1","has-[input:disabled]:cursor-default has-[input:disabled]:opacity-50"],input:["peer size-full rounded-[inherit] bg-inherit outline-none","file:cursor-pointer file:border-0 file:bg-transparent file:font-medium","placeholder:text-muted-foreground","disabled:cursor-default"]},variants:{inputSize:{xxs:{root:"h-7 [&>svg]:size-3",input:"file:py-0.75"},xs:{root:"h-8 [&>svg]:size-3.5",input:"file:py-1.25"},sm:{root:"h-9 [&>svg]:size-4",input:"file:py-1.75"},md:{root:"h-10 [&>svg]:size-4",input:"file:py-2.25"},lg:{root:"h-11 [&>svg]:size-5",input:"file:py-2.75"},xl:{root:"h-12 [&>svg]:size-5",input:"file:py-3.25"}}},defaultVariants:{inputSize:"md"}});exports.a = o;
2
+ //# sourceMappingURL=chunk-QJGSGK2F.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/styles/input-variants.ts"],"names":["inputVariants","tv"],"mappings":"AAAA,8HAAsC,IAEhCA,CAAAA,CAAgBC,kCAAAA,CACpB,KAAA,CAAO,CACL,IAAA,CAAM,CACJ,gIAAA,CACA,gDAAA,CACA,4EAAA,CACA,qEACF,CAAA,CACA,KAAA,CAAO,CACL,0DAAA,CACA,wEAAA,CACA,mCAAA,CACA,yBACF,CACF,CAAA,CACA,QAAA,CAAU,CACR,SAAA,CAAW,CACT,GAAA,CAAK,CAAE,IAAA,CAAM,oBAAA,CAAsB,KAAA,CAAO,cAAe,CAAA,CACzD,EAAA,CAAI,CAAE,IAAA,CAAM,sBAAA,CAAwB,KAAA,CAAO,cAAe,CAAA,CAC1D,EAAA,CAAI,CAAE,IAAA,CAAM,oBAAA,CAAsB,KAAA,CAAO,cAAe,CAAA,CACxD,EAAA,CAAI,CAAE,IAAA,CAAM,qBAAA,CAAuB,KAAA,CAAO,cAAe,CAAA,CACzD,EAAA,CAAI,CAAE,IAAA,CAAM,qBAAA,CAAuB,KAAA,CAAO,cAAe,CAAA,CACzD,EAAA,CAAI,CAAE,IAAA,CAAM,qBAAA,CAAuB,KAAA,CAAO,cAAe,CAC3D,CACF,CAAA,CACA,eAAA,CAAiB,CACf,SAAA,CAAW,IACb,CACF,CAAC,CAAA,CAAA,cAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-QJGSGK2F.cjs","sourcesContent":["import { tv, type VariantProps } from 'tailwind-variants';\n\nconst inputVariants = tv({\n slots: {\n root: [\n 'border-input bg-background flex w-full grow cursor-text items-center gap-2 rounded-md border px-3 text-sm shadow-sm transition',\n '[&>svg]:text-muted-foreground [&>svg]:shrink-0',\n 'focus-within:outline focus-within:outline-2 focus-within:-outline-offset-1',\n 'has-[input:disabled]:cursor-default has-[input:disabled]:opacity-50',\n ],\n input: [\n 'peer size-full rounded-[inherit] bg-inherit outline-none',\n 'file:cursor-pointer file:border-0 file:bg-transparent file:font-medium',\n 'placeholder:text-muted-foreground',\n 'disabled:cursor-default',\n ],\n },\n variants: {\n inputSize: {\n xxs: { root: 'h-7 [&>svg]:size-3', input: 'file:py-0.75' }, // 28px\n xs: { root: 'h-8 [&>svg]:size-3.5', input: 'file:py-1.25' }, // 32px\n sm: { root: 'h-9 [&>svg]:size-4', input: 'file:py-1.75' }, // 36px\n md: { root: 'h-10 [&>svg]:size-4', input: 'file:py-2.25' }, // 40px\n lg: { root: 'h-11 [&>svg]:size-5', input: 'file:py-2.75' }, // 44px\n xl: { root: 'h-12 [&>svg]:size-5', input: 'file:py-3.25' }, // 48px\n },\n },\n defaultVariants: {\n inputSize: 'md',\n },\n});\n\ntype InputVariantsProps = VariantProps<typeof inputVariants>;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { inputVariants, type InputVariantsProps };\n"]}
@@ -1,2 +1,2 @@
1
- "use client";import{a}from"./chunk-RR2V6HKV.js";import{a as s}from"./chunk-D3YTCKUH.js";import{a as p}from"./chunk-QOOHNPY5.js";import*as t from"@codefast-ui/input";import{Cross2Icon as C,MagnifyingGlassIcon as g}from"@radix-ui/react-icons";import{useControllableState as R}from"@radix-ui/react-use-controllable-state";import{forwardRef as S}from"react";import{jsx as e,jsxs as N}from"react/jsx-runtime";var{root:V,input:x}=a(),b=S(({className:u,inputSize:o,loaderPosition:l,loading:m,prefix:f,spinner:I,suffix:c,value:P,defaultValue:d,onChange:v,...n},h)=>{let[r,i]=R({prop:P,defaultProp:d,onChange:v});return N(t.Root,{className:V({inputSize:o,className:u}),loaderPosition:l,loading:m,prefix:f||e(g,{}),spinner:I||e(p,{}),suffix:c,children:[e(t.Item,{ref:h,className:x({inputSize:o}),type:"search",value:r,onChange:y=>{i(y.target.value)},...n}),r?e(s,{icon:!0,inside:!0,"aria-label":"Clear search",className:"rounded-full",disabled:n.disabled,size:o,suffix:e(C,{}),variant:"ghost",onClick:()=>{i("")}}):null]})});b.displayName="SearchInput";export{b as a};
2
- //# sourceMappingURL=chunk-XZ7TLHX3.js.map
1
+ "use client";import{a}from"./chunk-B3N66CDR.js";import{a as s}from"./chunk-MS6HNR34.js";import{a as p}from"./chunk-QOOHNPY5.js";import*as t from"@codefast-ui/input";import{Cross2Icon as C,MagnifyingGlassIcon as g}from"@radix-ui/react-icons";import{useControllableState as R}from"@radix-ui/react-use-controllable-state";import{forwardRef as S}from"react";import{jsx as e,jsxs as N}from"react/jsx-runtime";var{root:V,input:x}=a(),b=S(({className:u,inputSize:o,loaderPosition:l,loading:m,prefix:f,spinner:I,suffix:c,value:P,defaultValue:d,onChange:v,...n},h)=>{let[r,i]=R({prop:P,defaultProp:d,onChange:v});return N(t.Root,{className:V({inputSize:o,className:u}),loaderPosition:l,loading:m,prefix:f||e(g,{}),spinner:I||e(p,{}),suffix:c,children:[e(t.Item,{ref:h,className:x({inputSize:o}),type:"search",value:r,onChange:y=>{i(y.target.value)},...n}),r?e(s,{icon:!0,inside:!0,"aria-label":"Clear search",className:"rounded-full",disabled:n.disabled,size:o,suffix:e(C,{}),variant:"ghost",onClick:()=>{i("")}}):null]})});b.displayName="SearchInput";export{b as a};
2
+ //# sourceMappingURL=chunk-RPUH3ITJ.js.map
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _checkboxgroup = require('@codefast-ui/checkbox-group'); var e = _interopRequireWildcard(_checkboxgroup);var _reacticons = require('@radix-ui/react-icons');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var C=_react.forwardRef.call(void 0, ({className:t,...i},p)=>_jsxruntime.jsx.call(void 0, e.Root,{className:_chunkDD6AVCRHcjs.a.call(void 0, "grid gap-2",t),...i,ref:p}));C.displayName=e.Root.displayName;var d=_react.forwardRef.call(void 0, ({children:t,className:i,checkboxClassName:p,...m},c)=>_jsxruntime.jsxs.call(void 0, "label",{className:_chunkDD6AVCRHcjs.a.call(void 0, "group flex items-center justify-center gap-4 rounded-md border p-4",i),children:[t,_jsxruntime.jsx.call(void 0, e.Item,{ref:c,className:_chunkDD6AVCRHcjs.a.call(void 0, "border-input peer flex size-4 shrink-0 cursor-pointer rounded border shadow-sm","group-hover:border-primary","aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground","focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-1","disabled:cursor-default disabled:opacity-50",p),...m,children:_jsxruntime.jsx.call(void 0, e.CheckboxGroupIndicator,{className:"flex size-full items-center justify-center text-current",children:_jsxruntime.jsx.call(void 0, _reacticons.CheckIcon,{className:"size-3.5"})})})]}));d.displayName=e.Item.displayName;exports.a = C; exports.b = d;
2
+ //# sourceMappingURL=chunk-RY34IJ6J.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-RY34IJ6J.cjs","../src/components/checkbox-cards.tsx"],"names":["CheckboxCards","forwardRef","className","props","forwardedRef","jsx","cn","CheckboxCardsItem","children","checkboxClassName","jsxs","CheckIcon"],"mappings":"AAAA,mZAAwC,6GCAA,mDACd,8BAKnB,+CAcH,IAFEA,CAAAA,CAAgBC,+BAAAA,CACnB,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,CAAwB,CAAA,IAAA,CAAvB,CACC,SAAA,CAAWC,iCAAAA,YAAG,CAAcJ,CAAS,CAAA,CACpC,GAAGC,CAAAA,CACJ,GAAA,CAAKC,CAAAA,CACP,CAEJ,CAAA,CAEAJ,CAAAA,CAAc,WAAA,CAAqC,CAAA,CAAA,IAAA,CAAK,WAAA,CAexD,IAAMO,CAAAA,CAAoBN,+BAAAA,CAGvB,CAAE,QAAA,CAAAO,CAAAA,CAAU,SAAA,CAAAN,CAAAA,CAAW,iBAAA,CAAAO,CAAAA,CAAmB,GAAGN,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACvDM,8BAAAA,OAAC,CAAA,CACC,SAAA,CAAWJ,iCAAAA,oEACT,CACAJ,CACF,CAAA,CAEC,QAAA,CAAA,CAAAM,CAAAA,CACDH,6BAAAA,CAAwB,CAAA,IAAA,CAAvB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,gFACT,CACA,4BAAA,CACA,0FAAA,CACA,+EAAA,CACA,6CAAA,CACAG,CACF,CAAA,CACC,GAAGN,CAAAA,CAEJ,QAAA,CAAAE,6BAAAA,CAAwB,CAAA,sBAAA,CAAvB,CAA8C,SAAA,CAAU,yDAAA,CACvD,QAAA,CAAAA,6BAAAA,qBAACM,CAAA,CAAU,SAAA,CAAU,UAAA,CAAW,CAAA,CAClC,CAAA,CACF,CAAA,CAAA,CACF,CACD,CAAA,CAEDJ,CAAAA,CAAkB,WAAA,CAAqC,CAAA,CAAA,IAAA,CAAK,WAAA,CAAA,6BAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-RY34IJ6J.cjs","sourcesContent":[null,"import * as CheckboxGroupPrimitive from '@codefast-ui/checkbox-group';\nimport { CheckIcon } from '@radix-ui/react-icons';\nimport {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from 'react';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxCards\n * -------------------------------------------------------------------------- */\n\ntype CheckboxCardsElement = ComponentRef<typeof CheckboxGroupPrimitive.Root>;\ntype CheckboxCardsProps = ComponentPropsWithoutRef<\n typeof CheckboxGroupPrimitive.Root\n>;\n\nconst CheckboxCards = forwardRef<CheckboxCardsElement, CheckboxCardsProps>(\n ({ className, ...props }, forwardedRef) => (\n <CheckboxGroupPrimitive.Root\n className={cn('grid gap-2', className)}\n {...props}\n ref={forwardedRef}\n />\n ),\n);\n\nCheckboxCards.displayName = CheckboxGroupPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxCardsItem\n * -------------------------------------------------------------------------- */\n\ntype CheckboxCardsItemElement = ComponentRef<\n typeof CheckboxGroupPrimitive.Item\n>;\n\ninterface CheckboxCardsItemProps\n extends ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Item> {\n checkboxClassName?: string;\n}\n\nconst CheckboxCardsItem = forwardRef<\n CheckboxCardsItemElement,\n CheckboxCardsItemProps\n>(({ children, className, checkboxClassName, ...props }, forwardedRef) => (\n <label\n className={cn(\n 'group flex items-center justify-center gap-4 rounded-md border p-4',\n className,\n )}\n >\n {children}\n <CheckboxGroupPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'border-input peer flex size-4 shrink-0 cursor-pointer rounded border shadow-sm',\n 'group-hover:border-primary',\n 'aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground',\n 'focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-1',\n 'disabled:cursor-default disabled:opacity-50',\n checkboxClassName,\n )}\n {...props}\n >\n <CheckboxGroupPrimitive.CheckboxGroupIndicator className=\"flex size-full items-center justify-center text-current\">\n <CheckIcon className=\"size-3.5\" />\n </CheckboxGroupPrimitive.CheckboxGroupIndicator>\n </CheckboxGroupPrimitive.Item>\n </label>\n));\n\nCheckboxCardsItem.displayName = CheckboxGroupPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n CheckboxCards,\n CheckboxCardsItem,\n type CheckboxCardsItemProps,\n type CheckboxCardsProps,\n};\n"]}
@@ -1,2 +1,2 @@
1
- import{a as m}from"./chunk-PTBFXCEO.js";import{a as r}from"./chunk-VPYH6JWS.js";import*as e from"@radix-ui/react-dialog";import{Cross2Icon as h}from"@radix-ui/react-icons";import{forwardRef as a}from"react";import{tv as S}from"tailwind-variants";import{jsx as i,jsxs as l}from"react/jsx-runtime";var d=S({base:["bg-background animate-ease-in-out fixed z-50 flex flex-col overflow-auto shadow-lg","data-[state=open]:animate-in data-[state=open]:animate-duration-500","data-[state=closed]:animate-out data-[state=closed]:animate-duration-300"],defaultVariants:{side:"right"},variants:{side:{top:["inset-x-0 top-0 max-h-screen border-b","data-[state=open]:slide-in-from-top","data-[state=closed]:slide-out-to-top"],bottom:["inset-x-0 bottom-0 max-h-screen border-t","data-[state=open]:slide-in-from-bottom","data-[state=closed]:slide-out-to-bottom"],left:["inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm","data-[state=open]:slide-in-from-left","data-[state=closed]:slide-out-to-left"],right:["inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm","data-[state=open]:slide-in-from-right","data-[state=closed]:slide-out-to-right"]}}}),E=e.Root,R=e.Trigger,P=a(({children:t,side:o="right",className:s,...n},p)=>l(e.Portal,{children:[i(e.Overlay,{className:r("fixed inset-0 z-50 bg-black/80","data-[state=open]:animate-duration-500 data-[state=open]:animate-fade-in","data-[state=closed]:animate-duration-300 data-[state=closed]:animate-fade-out")}),l(e.Content,{ref:p,className:d({side:o,className:s}),...n,children:[t,l(e.Close,{className:m({className:"absolute right-4 top-4",icon:!0,size:"xxs",variant:"ghost"}),children:[i(h,{className:"size-4"}),i("span",{className:"sr-only",children:"Close"})]})]})]}));P.displayName=e.Content.displayName;function D({className:t,...o}){return i("header",{className:r("flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left",t),...o})}function H({className:t,...o}){return i("main",{className:r("px-6 py-2",t),...o})}function f({className:t,...o}){return i("footer",{className:r("flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end",t),...o})}f.displayName="SheetFooter";var y=a(({className:t,...o},s)=>i(e.Title,{ref:s,className:r("text-foreground text-lg font-semibold",t),...o}));y.displayName=e.Title.displayName;var c=a(({className:t,...o},s)=>i(e.Description,{ref:s,className:r("text-muted-foreground text-sm",t),...o}));c.displayName=e.Description.displayName;var u=a(({className:t,size:o,variant:s="outline",...n},p)=>i(e.Close,{ref:p,className:m({variant:s,size:o,className:t}),...n}));u.displayName=e.Close.displayName;export{E as a,R as b,P as c,D as d,H as e,f,y as g,c as h,u as i};
2
- //# sourceMappingURL=chunk-HNQ6FIEB.js.map
1
+ import{a as m}from"./chunk-2LKWUAEG.js";import{a as r}from"./chunk-VPYH6JWS.js";import*as e from"@radix-ui/react-dialog";import{Cross2Icon as h}from"@radix-ui/react-icons";import{forwardRef as a}from"react";import{tv as S}from"tailwind-variants";import{jsx as i,jsxs as l}from"react/jsx-runtime";var d=S({base:["bg-background animate-ease-in-out fixed z-50 flex flex-col overflow-auto shadow-lg","data-[state=open]:animate-in data-[state=open]:animate-duration-500","data-[state=closed]:animate-out data-[state=closed]:animate-duration-300"],defaultVariants:{side:"right"},variants:{side:{top:["inset-x-0 top-0 max-h-screen border-b","data-[state=open]:slide-in-from-top","data-[state=closed]:slide-out-to-top"],bottom:["inset-x-0 bottom-0 max-h-screen border-t","data-[state=open]:slide-in-from-bottom","data-[state=closed]:slide-out-to-bottom"],left:["inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm","data-[state=open]:slide-in-from-left","data-[state=closed]:slide-out-to-left"],right:["inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm","data-[state=open]:slide-in-from-right","data-[state=closed]:slide-out-to-right"]}}}),E=e.Root,R=e.Trigger,P=a(({children:t,side:o="right",className:s,...n},p)=>l(e.Portal,{children:[i(e.Overlay,{className:r("fixed inset-0 z-50 bg-black/80","data-[state=open]:animate-duration-500 data-[state=open]:animate-fade-in","data-[state=closed]:animate-duration-300 data-[state=closed]:animate-fade-out")}),l(e.Content,{ref:p,className:d({side:o,className:s}),...n,children:[t,l(e.Close,{className:m({className:"absolute right-4 top-4",icon:!0,size:"xxs",variant:"ghost"}),children:[i(h,{className:"size-4"}),i("span",{className:"sr-only",children:"Close"})]})]})]}));P.displayName=e.Content.displayName;function D({className:t,...o}){return i("header",{className:r("flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left",t),...o})}function H({className:t,...o}){return i("main",{className:r("px-6 py-2",t),...o})}function f({className:t,...o}){return i("footer",{className:r("flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end",t),...o})}f.displayName="SheetFooter";var y=a(({className:t,...o},s)=>i(e.Title,{ref:s,className:r("text-foreground text-lg font-semibold",t),...o}));y.displayName=e.Title.displayName;var c=a(({className:t,...o},s)=>i(e.Description,{ref:s,className:r("text-muted-foreground text-sm",t),...o}));c.displayName=e.Description.displayName;var u=a(({className:t,size:o,variant:s="outline",...n},p)=>i(e.Close,{ref:p,className:m({variant:s,size:o,className:t}),...n}));u.displayName=e.Close.displayName;export{E as a,R as b,P as c,D as d,H as e,f,y as g,c as h,u as i};
2
+ //# sourceMappingURL=chunk-T3UMGRIG.js.map
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-XAAC6A6T.js";import*as o from"@radix-ui/react-toggle";import{forwardRef as f}from"react";import{jsx as T,jsxs as P}from"react/jsx-runtime";var n=f(({className:g,size:i,icon:p,variant:r,prefix:a,children:e,suffix:m,...s},l)=>P(o.Root,{ref:l,className:t({className:g,icon:p,size:i,variant:r}),...s,children:[a,typeof e=="string"?T("span",{className:"truncate",children:e}):e,m]}));n.displayName=o.Root.displayName;export{n as a};
2
- //# sourceMappingURL=chunk-4KZKY2CG.js.map
1
+ import{a as t}from"./chunk-CQUPWL67.js";import*as o from"@radix-ui/react-toggle";import{forwardRef as f}from"react";import{jsx as T,jsxs as P}from"react/jsx-runtime";var n=f(({className:g,size:i,icon:p,variant:r,prefix:a,children:e,suffix:m,...s},l)=>P(o.Root,{ref:l,className:t({className:g,icon:p,size:i,variant:r}),...s,children:[a,typeof e=="string"?T("span",{className:"truncate",children:e}):e,m]}));n.displayName=o.Root.displayName;export{n as a};
2
+ //# sourceMappingURL=chunk-TSLTPMZG.js.map
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _tailwindvariants = require('tailwind-variants');var t=_tailwindvariants.tv.call(void 0, {base:["inline-flex shrink-0 select-none items-center justify-center gap-2 whitespace-nowrap rounded-md px-4 text-sm font-medium transition","[&>svg]:shrink-0","focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-1","disabled:pointer-events-none disabled:opacity-50"],compoundVariants:[{className:"w-7",icon:!0,size:"xxs"},{className:"w-8",icon:!0,size:"xs"},{className:"w-9",icon:!0,size:"sm"},{className:"w-10",icon:!0,size:"md"},{className:"w-11",icon:!0,size:"lg"},{className:"w-12",icon:!0,size:"xl"},{className:"h-6",inside:!0,size:"xxs"},{className:"h-6",inside:!0,size:"xs"},{className:"h-7",inside:!0,size:"sm"},{className:"h-8",inside:!0,size:"md"},{className:"h-9",inside:!0,size:"lg"},{className:"h-10",inside:!0,size:"xl"},{className:"w-6",icon:!0,inside:!0,size:"xxs"},{className:"w-6",icon:!0,inside:!0,size:"xs"},{className:"w-7",icon:!0,inside:!0,size:"sm"},{className:"w-8",icon:!0,inside:!0,size:"md"},{className:"w-9",icon:!0,inside:!0,size:"lg"},{className:"w-10",icon:!0,inside:!0,size:"xl"}],defaultVariants:{icon:!1,inside:!1,size:"md",variant:"default"},variants:{icon:{false:"",true:"px-0"},inside:{false:"",true:""},size:{xxs:"h-7 [&>svg]:size-3",xs:"h-8 [&>svg]:size-3.5",sm:"h-9 [&>svg]:size-4",md:"h-10 [&>svg]:size-4",lg:"h-11 [&>svg]:size-5",xl:"h-12 [&>svg]:size-5"},variant:{default:["bg-primary text-primary-foreground shadow-sm","hover:bg-primary/80","focus-visible:bg-primary/80"],secondary:["bg-secondary text-secondary-foreground shadow-sm","hover:bg-secondary/80","focus-visible:bg-secondary/80"],info:["bg-info text-info-foreground shadow-sm","hover:bg-info/80","focus-visible:bg-info/80"],success:["bg-success text-success-foreground shadow-sm","hover:bg-success/80","focus-visible:bg-success/80"],warning:["bg-warning text-warning-foreground shadow-sm","hover:bg-warning/80","focus-visible:bg-warning/80"],destructive:["bg-destructive text-destructive-foreground shadow-sm","hover:bg-destructive/80","focus-visible:bg-destructive/80"],outline:["text-foreground border-input border shadow-sm","hover:bg-accent hover:text-accent-foreground","focus-visible:bg-accent focus-visible:text-accent-foreground"],ghost:["text-foreground","hover:bg-accent hover:text-accent-foreground","focus-visible:bg-accent focus-visible:text-accent-foreground"],link:["text-primary underline-offset-4","hover:underline","focus-visible:underline"]}}});exports.a = t;
2
+ //# sourceMappingURL=chunk-UF5YIM7L.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/styles/button-variants.ts"],"names":["buttonVariants","tv"],"mappings":"AAAA,8HAAsC,IAEhCA,CAAAA,CAAiBC,kCAAAA,CACrB,IAAA,CAAM,CACJ,qIAAA,CACA,kBAAA,CACA,+EAAA,CACA,kDACF,CAAA,CACA,gBAAA,CAAkB,CAEhB,CAAE,SAAA,CAAW,KAAA,CAAO,IAAA,CAAM,CAAA,CAAA,CAAM,IAAA,CAAM,KAAM,CAAA,CAC5C,CAAE,SAAA,CAAW,KAAA,CAAO,IAAA,CAAM,CAAA,CAAA,CAAM,IAAA,CAAM,IAAK,CAAA,CAC3C,CAAE,SAAA,CAAW,KAAA,CAAO,IAAA,CAAM,CAAA,CAAA,CAAM,IAAA,CAAM,IAAK,CAAA,CAC3C,CAAE,SAAA,CAAW,MAAA,CAAQ,IAAA,CAAM,CAAA,CAAA,CAAM,IAAA,CAAM,IAAK,CAAA,CAC5C,CAAE,SAAA,CAAW,MAAA,CAAQ,IAAA,CAAM,CAAA,CAAA,CAAM,IAAA,CAAM,IAAK,CAAA,CAC5C,CAAE,SAAA,CAAW,MAAA,CAAQ,IAAA,CAAM,CAAA,CAAA,CAAM,IAAA,CAAM,IAAK,CAAA,CAE5C,CAAE,SAAA,CAAW,KAAA,CAAO,MAAA,CAAQ,CAAA,CAAA,CAAM,IAA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AA,CAAiB,CACf,IAAA,CAAM,CAAA,CAAA,CACN,MAAA,CAAQ,CAAA,CAAA,CACR,IAAA,CAAM,IAAA,CACN,OAAA,CAAS,SACX,CAAA,CACA,QAAA,CAAU,CACR,IAAA,CAAM,CAAE,KAAA,CAAO,EAAA,CAAI,IAAA,CAAM,MAAO,CAAA,CAChC,MAAA,CAAQ,CAAE,KAAA,CAAO,EAAA,CAAI,IAAA,CAAM,EAAG,CAAA,CAC9B,IAAA,CAAM,CACJ,GAAA,CAAK,oBAAA,CACL,EAAA,CAAI,sBAAA,CACJ,EAAA,CAAI,oBAAA,CACJ,EAAA,CAAI,qBAAA,CACJ,EAAA,CAAI,qBAAA,CACJ,EAAA,CAAI,qBACN,CAAA,CACA,OAAA,CAAS,CACP,OAAA,CAAS,CACP,8CAAA,CACA,qBAAA,CACA,6BACF,CAAA,CACA,SAAA,CAAW,CACT,kDAAA,CACA,uBAAA,CACA,+BACF,CAAA,CACA,IAAA,CAAM,CACJ,wCAAA,CACA,kBAAA,CACA,0BACF,CAAA,CACA,OAAA,CAAS,CACP,8CAAA,CACA,qBAAA,CACA,6BACF,CAAA,CACA,OAAA,CAAS,CACP,8CAAA,CACA,qBAAA,CACA,6BACF,CAAA,CACA,WAAA,CAAa,CACX,sDAAA,CACA,yBAAA,CACA,iCACF,CAAA,CACA,OAAA,CAAS,CACP,+CAAA,CACA,8CAAA,CACA,8DACF,CAAA,CACA,KAAA,CAAO,CACL,iBAAA,CACA,8CAAA,CACA,8DACF,CAAA,CACA,IAAA,CAAM,CACJ,iCAAA,CACA,iBAAA,CACA,yBACF,CACF,CACF,CACF,CAAC,CAAA,CAAA,cAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-UF5YIM7L.cjs","sourcesContent":["import { tv, type VariantProps } from 'tailwind-variants';\n\nconst buttonVariants = tv({\n base: [\n 'inline-flex shrink-0 select-none items-center justify-center gap-2 whitespace-nowrap rounded-md px-4 text-sm font-medium transition',\n '[&>svg]:shrink-0',\n 'focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-1',\n 'disabled:pointer-events-none disabled:opacity-50',\n ],\n compoundVariants: [\n // --\n { className: 'w-7', icon: true, size: 'xxs' },\n { className: 'w-8', icon: true, size: 'xs' },\n { className: 'w-9', icon: true, size: 'sm' },\n { className: 'w-10', icon: true, size: 'md' },\n { className: 'w-11', icon: true, size: 'lg' },\n { className: 'w-12', icon: true, size: 'xl' },\n // --\n { className: 'h-6', inside: true, size: 'xxs' },\n { className: 'h-6', inside: true, size: 'xs' },\n { className: 'h-7', inside: true, size: 'sm' },\n { className: 'h-8', inside: true, size: 'md' },\n { className: 'h-9', inside: true, size: 'lg' },\n { className: 'h-10', inside: true, size: 'xl' },\n // --\n { className: 'w-6', icon: true, inside: true, size: 'xxs' },\n { className: 'w-6', icon: true, inside: true, size: 'xs' },\n { className: 'w-7', icon: true, inside: true, size: 'sm' },\n { className: 'w-8', icon: true, inside: true, size: 'md' },\n { className: 'w-9', icon: true, inside: true, size: 'lg' },\n { className: 'w-10', icon: true, inside: true, size: 'xl' },\n ],\n defaultVariants: {\n icon: false,\n inside: false,\n size: 'md',\n variant: 'default',\n },\n variants: {\n icon: { false: '', true: 'px-0' },\n inside: { false: '', true: '' },\n size: {\n xxs: 'h-7 [&>svg]:size-3', // 28px\n xs: 'h-8 [&>svg]:size-3.5', // 32px\n sm: 'h-9 [&>svg]:size-4', // 36px\n md: 'h-10 [&>svg]:size-4', // 40px\n lg: 'h-11 [&>svg]:size-5', // 44px\n xl: 'h-12 [&>svg]:size-5', // 48px\n },\n variant: {\n default: [\n 'bg-primary text-primary-foreground shadow-sm',\n 'hover:bg-primary/80',\n 'focus-visible:bg-primary/80',\n ],\n secondary: [\n 'bg-secondary text-secondary-foreground shadow-sm',\n 'hover:bg-secondary/80',\n 'focus-visible:bg-secondary/80',\n ],\n info: [\n 'bg-info text-info-foreground shadow-sm',\n 'hover:bg-info/80',\n 'focus-visible:bg-info/80',\n ],\n success: [\n 'bg-success text-success-foreground shadow-sm',\n 'hover:bg-success/80',\n 'focus-visible:bg-success/80',\n ],\n warning: [\n 'bg-warning text-warning-foreground shadow-sm',\n 'hover:bg-warning/80',\n 'focus-visible:bg-warning/80',\n ],\n destructive: [\n 'bg-destructive text-destructive-foreground shadow-sm',\n 'hover:bg-destructive/80',\n 'focus-visible:bg-destructive/80',\n ],\n outline: [\n 'text-foreground border-input border shadow-sm',\n 'hover:bg-accent hover:text-accent-foreground',\n 'focus-visible:bg-accent focus-visible:text-accent-foreground',\n ],\n ghost: [\n 'text-foreground',\n 'hover:bg-accent hover:text-accent-foreground',\n 'focus-visible:bg-accent focus-visible:text-accent-foreground',\n ],\n link: [\n 'text-primary underline-offset-4',\n 'hover:underline',\n 'focus-visible:underline',\n ],\n },\n },\n});\n\ntype ButtonVariantsProps = VariantProps<typeof buttonVariants>;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { buttonVariants, type ButtonVariantsProps };\n"]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunkIYSTGLX3cjs = require('./chunk-IYSTGLX3.cjs');var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _reactalertdialog = require('@radix-ui/react-alert-dialog'); var t = _interopRequireWildcard(_reactalertdialog);var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var v=t.Root,u= exports.b =t.Trigger,m= exports.c =_react.forwardRef.call(void 0, ({className:e,...i},l)=>_jsxruntime.jsx.call(void 0, t.Portal,{children:_jsxruntime.jsx.call(void 0, t.Overlay,{className:_chunkDD6AVCRHcjs.a.call(void 0, "fixed inset-0 z-50 grid place-items-center overflow-auto bg-black/80 p-4 sm:pb-12 sm:pt-8","data-[state=open]:animate-duration-200 data-[state=open]:animate-fade-in","data-[state=closed]:animate-duration-200 data-[state=closed]:animate-fade-out"),children:_jsxruntime.jsx.call(void 0, t.Content,{ref:l,className:_chunkDD6AVCRHcjs.a.call(void 0, "bg-background relative z-50 flex w-full max-w-lg flex-col rounded-lg border shadow-lg","data-[state=open]:animate-in data-[state=open]:zoom-in-95 data-[state=open]:animate-duration-200 data-[state=open]:fade-in","data-[state=closed]:zoom-out-95 data-[state=closed]:animate-duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out",e),...i})})}));m.displayName=t.Content.displayName;function C({className:e,...i}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunkDD6AVCRHcjs.a.call(void 0, "flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left",e),...i})}function T({className:e,...i}){return _jsxruntime.jsx.call(void 0, "main",{className:_chunkDD6AVCRHcjs.a.call(void 0, "overflow-auto px-6 py-2",e),...i})}function x({className:e,...i}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunkDD6AVCRHcjs.a.call(void 0, "flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end",e),...i})}var g=_react.forwardRef.call(void 0, ({className:e,...i},l)=>_jsxruntime.jsx.call(void 0, t.Title,{ref:l,className:_chunkDD6AVCRHcjs.a.call(void 0, "text-lg font-semibold leading-none tracking-tight",e),...i}));g.displayName=t.Title.displayName;var A=_react.forwardRef.call(void 0, ({className:e,...i},l)=>_jsxruntime.jsx.call(void 0, t.Description,{ref:l,className:_chunkDD6AVCRHcjs.a.call(void 0, "text-muted-foreground text-sm",e),...i}));A.displayName=t.Description.displayName;var D=_react.forwardRef.call(void 0, ({className:e,size:i,variant:l,...n},p)=>_jsxruntime.jsx.call(void 0, t.Action,{ref:p,className:_chunkIYSTGLX3cjs.a.call(void 0, {className:e,size:i,variant:l}),...n}));D.displayName=t.Action.displayName;var P=_react.forwardRef.call(void 0, ({className:e,size:i,variant:l="outline",...n},p)=>_jsxruntime.jsx.call(void 0, t.Cancel,{ref:p,className:_chunkIYSTGLX3cjs.a.call(void 0, {className:e,size:i,variant:l}),...n}));P.displayName=t.Cancel.displayName;exports.a = v; exports.b = u; exports.c = m; exports.d = C; exports.e = T; exports.f = x; exports.g = g; exports.h = A; exports.i = D; exports.j = P;
2
- //# sourceMappingURL=chunk-YN4PRPM2.cjs.map
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunkUF5YIM7Lcjs = require('./chunk-UF5YIM7L.cjs');var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _reactalertdialog = require('@radix-ui/react-alert-dialog'); var t = _interopRequireWildcard(_reactalertdialog);var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var v=t.Root,u= exports.b =t.Trigger,m= exports.c =_react.forwardRef.call(void 0, ({className:e,...i},l)=>_jsxruntime.jsx.call(void 0, t.Portal,{children:_jsxruntime.jsx.call(void 0, t.Overlay,{className:_chunkDD6AVCRHcjs.a.call(void 0, "fixed inset-0 z-50 grid place-items-center overflow-auto bg-black/80 p-4 sm:pb-12 sm:pt-8","data-[state=open]:animate-duration-200 data-[state=open]:animate-fade-in","data-[state=closed]:animate-duration-200 data-[state=closed]:animate-fade-out"),children:_jsxruntime.jsx.call(void 0, t.Content,{ref:l,className:_chunkDD6AVCRHcjs.a.call(void 0, "bg-background relative z-50 flex w-full max-w-lg flex-col rounded-lg border shadow-lg","data-[state=open]:animate-in data-[state=open]:zoom-in-95 data-[state=open]:animate-duration-200 data-[state=open]:fade-in","data-[state=closed]:zoom-out-95 data-[state=closed]:animate-duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out",e),...i})})}));m.displayName=t.Content.displayName;function C({className:e,...i}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunkDD6AVCRHcjs.a.call(void 0, "flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left",e),...i})}function T({className:e,...i}){return _jsxruntime.jsx.call(void 0, "main",{className:_chunkDD6AVCRHcjs.a.call(void 0, "overflow-auto px-6 py-2",e),...i})}function x({className:e,...i}){return _jsxruntime.jsx.call(void 0, "div",{className:_chunkDD6AVCRHcjs.a.call(void 0, "flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end",e),...i})}var g=_react.forwardRef.call(void 0, ({className:e,...i},l)=>_jsxruntime.jsx.call(void 0, t.Title,{ref:l,className:_chunkDD6AVCRHcjs.a.call(void 0, "text-lg font-semibold leading-none tracking-tight",e),...i}));g.displayName=t.Title.displayName;var A=_react.forwardRef.call(void 0, ({className:e,...i},l)=>_jsxruntime.jsx.call(void 0, t.Description,{ref:l,className:_chunkDD6AVCRHcjs.a.call(void 0, "text-muted-foreground text-sm",e),...i}));A.displayName=t.Description.displayName;var D=_react.forwardRef.call(void 0, ({className:e,size:i,variant:l,...n},p)=>_jsxruntime.jsx.call(void 0, t.Action,{ref:p,className:_chunkUF5YIM7Lcjs.a.call(void 0, {className:e,size:i,variant:l}),...n}));D.displayName=t.Action.displayName;var P=_react.forwardRef.call(void 0, ({className:e,size:i,variant:l="outline",...n},p)=>_jsxruntime.jsx.call(void 0, t.Cancel,{ref:p,className:_chunkUF5YIM7Lcjs.a.call(void 0, {className:e,size:i,variant:l}),...n}));P.displayName=t.Cancel.displayName;exports.a = v; exports.b = u; exports.c = m; exports.d = C; exports.e = T; exports.f = x; exports.g = g; exports.h = A; exports.i = D; exports.j = P;
2
+ //# sourceMappingURL=chunk-UFTG26DA.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-YN4PRPM2.cjs","../src/components/alert-dialog.tsx"],"names":["AlertDialog","AlertDialogTrigger","AlertDialogContent","forwardRef","className","props","forwardedRef","jsx","cn","AlertDialogHeader","AlertDialogBody","AlertDialogFooter","AlertDialogTitle","AlertDialogDescription","AlertDialogAction","size","variant","buttonVariants","AlertDialogCancel"],"mappings":"AAAA,mZAAwC,wDAAyC,oHCA3C,8BAQ/B,+CA8CD,IAlCAA,CAAAA,CAAmC,CAAA,CAAA,IAAA,CASnCC,CAAAA,aAA0C,CAAA,CAAA,OAAA,CAa1CC,CAAAA,aAAqBC,+BAAAA,CAGxB,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAC1BC,6BAAAA,CAAsB,CAAA,MAAA,CAArB,CACC,QAAA,CAAAA,6BAAAA,CAAsB,CAAA,OAAA,CAArB,CACC,SAAA,CAAWC,iCAAAA,2FACT,CACA,0EAAA,CACA,+EACF,CAAA,CAEA,QAAA,CAAAD,6BAAAA,CAAsB,CAAA,OAAA,CAArB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,uFACT,CACA,4HAAA,CACA,uIAAA,CACAJ,CACF,CAAA,CACC,GAAGC,CAAAA,CACN,CAAA,CACF,CAAA,CACF,CACD,CAAA,CAEDH,CAAAA,CAAmB,WAAA,CAAmC,CAAA,CAAA,OAAA,CAAQ,WAAA,CAQ9D,SAASO,CAAAA,CAAkB,CACzB,SAAA,CAAAL,CAAAA,CACA,GAAGC,CACL,CAAA,CAAwC,CACtC,OACEE,6BAAAA,KAAC,CAAA,CACC,SAAA,CAAWC,iCAAAA,wEACT,CACAJ,CACF,CAAA,CACC,GAAGC,CAAAA,CACN,CAEJ,CAQA,SAASK,CAAAA,CAAgB,CACvB,SAAA,CAAAN,CAAAA,CACA,GAAGC,CACL,CAAA,CAAsC,CACpC,OACEE,6BAAAA,MAAC,CAAA,CAAK,SAAA,CAAWC,iCAAAA,yBAAG,CAA2BJ,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,CAE1E,CAQA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D,GAAGX,CAAAA,CACN,CACD,CAAA,CAEDS,CAAAA,CAAkB,WAAA,CAAmC,CAAA,CAAA,MAAA,CAAO,WAAA,CAgB5D,IAAMI,CAAAA,CAAoBf,+BAAAA,CAGvB,CAAE,SAAA,CAAAC,CAAAA,CAAW,IAAA,CAAAW,CAAAA,CAAM,OAAA,CAAAC,CAAAA,CAAU,SAAA,CAAW,GAAGX,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACrDC,6BAAAA,CAAsB,CAAA,MAAA,CAArB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWW,iCAAAA,CAAiB,SAAA,CAAAb,CAAAA,CAAW,IAAA,CAAAW,CAAAA,CAAM,OAAA,CAAAC,CAAQ,CAAC,CAAA,CACrD,GAAGX,CAAAA,CACN,CACD,CAAA,CAEDa,CAAAA,CAAkB,WAAA,CAAmC,CAAA,CAAA,MAAA,CAAO,WAAA,CAAA,qJAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-YN4PRPM2.cjs","sourcesContent":[null,"import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';\nimport {\n type ComponentProps,\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n type HTMLAttributes,\n type JSX,\n} from 'react';\nimport { cn } from '@/lib/utils';\nimport {\n buttonVariants,\n type ButtonVariantsProps,\n} from '@/styles/button-variants';\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialog\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogProps = ComponentProps<typeof AlertDialogPrimitive.Root>;\nconst AlertDialog = AlertDialogPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTrigger\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTriggerProps = ComponentPropsWithoutRef<\n typeof AlertDialogPrimitive.Trigger\n>;\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogContent\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogContentElement = ComponentRef<\n typeof AlertDialogPrimitive.Content\n>;\ntype AlertDialogContentProps = ComponentPropsWithoutRef<\n typeof AlertDialogPrimitive.Content\n>;\n\nconst AlertDialogContent = forwardRef<\n AlertDialogContentElement,\n AlertDialogContentProps\n>(({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Portal>\n <AlertDialogPrimitive.Overlay\n className={cn(\n 'fixed inset-0 z-50 grid place-items-center overflow-auto bg-black/80 p-4 sm:pb-12 sm:pt-8',\n 'data-[state=open]:animate-duration-200 data-[state=open]:animate-fade-in',\n 'data-[state=closed]:animate-duration-200 data-[state=closed]:animate-fade-out',\n )}\n >\n <AlertDialogPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-background relative z-50 flex w-full max-w-lg flex-col rounded-lg border shadow-lg',\n 'data-[state=open]:animate-in data-[state=open]:zoom-in-95 data-[state=open]:animate-duration-200 data-[state=open]:fade-in',\n 'data-[state=closed]:zoom-out-95 data-[state=closed]:animate-duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out',\n className,\n )}\n {...props}\n />\n </AlertDialogPrimitive.Overlay>\n </AlertDialogPrimitive.Portal>\n));\n\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogHeader\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogHeaderProps = HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogHeader({\n className,\n ...props\n}: AlertDialogHeaderProps): JSX.Element {\n return (\n <div\n className={cn(\n 'flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogBody\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogBodyProps = HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogBody({\n className,\n ...props\n}: AlertDialogBodyProps): JSX.Element {\n return (\n <main className={cn('overflow-auto px-6 py-2', className)} {...props} />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogFooter\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogFooterProps = HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogFooter({\n className,\n ...props\n}: AlertDialogFooterProps): JSX.Element {\n return (\n <div\n className={cn(\n 'flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTitle\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTitleElement = ComponentRef<typeof AlertDialogPrimitive.Title>;\ntype AlertDialogTitleProps = ComponentPropsWithoutRef<\n typeof AlertDialogPrimitive.Title\n>;\n\nconst AlertDialogTitle = forwardRef<\n AlertDialogTitleElement,\n AlertDialogTitleProps\n>(({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Title\n ref={forwardedRef}\n className={cn(\n 'text-lg font-semibold leading-none tracking-tight',\n className,\n )}\n {...props}\n />\n));\n\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogDescription\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogDescriptionElement = ComponentRef<\n typeof AlertDialogPrimitive.Description\n>;\ntype AlertDialogDescriptionProps = ComponentPropsWithoutRef<\n typeof AlertDialogPrimitive.Description\n>;\n\nconst AlertDialogDescription = forwardRef<\n AlertDialogDescriptionElement,\n AlertDialogDescriptionProps\n>(({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Description\n ref={forwardedRef}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n));\n\nAlertDialogDescription.displayName =\n AlertDialogPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogAction\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogActionElement = ComponentRef<\n typeof AlertDialogPrimitive.Action\n>;\n\ninterface AlertDialogActionProps\n extends ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst AlertDialogAction = forwardRef<\n AlertDialogActionElement,\n AlertDialogActionProps\n>(({ className, size, variant, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Action\n ref={forwardedRef}\n className={buttonVariants({ className, size, variant })}\n {...props}\n />\n));\n\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogCancel\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogCancelElement = ComponentRef<\n typeof AlertDialogPrimitive.Cancel\n>;\n\ninterface AlertDialogCancelProps\n extends ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst AlertDialogCancel = forwardRef<\n AlertDialogCancelElement,\n AlertDialogCancelProps\n>(({ className, size, variant = 'outline', ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Cancel\n ref={forwardedRef}\n className={buttonVariants({ className, size, variant })}\n {...props}\n />\n));\n\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n AlertDialog,\n AlertDialogAction,\n type AlertDialogActionProps,\n AlertDialogBody,\n type AlertDialogBodyProps,\n AlertDialogCancel,\n type AlertDialogCancelProps,\n AlertDialogContent,\n type AlertDialogContentProps,\n AlertDialogDescription,\n type AlertDialogDescriptionProps,\n AlertDialogFooter,\n type AlertDialogFooterProps,\n AlertDialogHeader,\n type AlertDialogHeaderProps,\n type AlertDialogProps,\n AlertDialogTitle,\n type AlertDialogTitleProps,\n AlertDialogTrigger,\n type AlertDialogTriggerProps,\n};\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-UFTG26DA.cjs","../src/components/alert-dialog.tsx"],"names":["AlertDialog","AlertDialogTrigger","AlertDialogContent","forwardRef","className","props","forwardedRef","jsx","cn","AlertDialogHeader","AlertDialogBody","AlertDialogFooter","AlertDialogTitle","AlertDialogDescription","AlertDialogAction","size","variant","buttonVariants","AlertDialogCancel"],"mappings":"AAAA,mZAAwC,wDAAyC,oHCA3C,8BAQ/B,+CA8CD,IAlCAA,CAAAA,CAAmC,CAAA,CAAA,IAAA,CASnCC,CAAAA,aAA0C,CAAA,CAAA,OAAA,CAa1CC,CAAAA,aAAqBC,+BAAAA,CAGxB,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EAC1BC,6BAAAA,CAAsB,CAAA,MAAA,CAArB,CACC,QAAA,CAAAA,6BAAAA,CAAsB,CAAA,OAAA,CAArB,CACC,SAAA,CAAWC,iCAAAA,2FACT,CACA,0EAAA,CACA,+EACF,CAAA,CAEA,QAAA,CAAAD,6BAAAA,CAAsB,CAAA,OAAA,CAArB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,uFACT,CACA,4HAAA,CACA,uIAAA,CACAJ,CACF,CAAA,CACC,GAAGC,CAAAA,CACN,CAAA,CACF,CAAA,CACF,CACD,CAAA,CAEDH,CAAAA,CAAmB,WAAA,CAAmC,CAAA,CAAA,OAAA,CAAQ,WAAA,CAQ9D,SAASO,CAAAA,CAAkB,CACzB,SAAA,CAAAL,CAAAA,CACA,GAAGC,CACL,CAAA,CAAwC,CACtC,OACEE,6BAAAA,KAAC,CAAA,CACC,SAAA,CAAWC,iCAAAA,wEACT,CACAJ,CACF,CAAA,CACC,GAAGC,CAAAA,CACN,CAEJ,CAQA,SAASK,CAAAA,CAAgB,CACvB,SAAA,CAAAN,CAAAA,CACA,GAAGC,CACL,CAAA,CAAsC,CACpC,OACEE,6BAAAA,MAAC,CAAA,CAAK,SAAA,CAAWC,iCAAAA,yBAAG,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AA,CAAAW,CAAAA,CAAM,OAAA,CAAAC,CAAQ,CAAC,CAAA,CACrD,GAAGX,CAAAA,CACN,CACD,CAAA,CAEDS,CAAAA,CAAkB,WAAA,CAAmC,CAAA,CAAA,MAAA,CAAO,WAAA,CAgB5D,IAAMI,CAAAA,CAAoBf,+BAAAA,CAGvB,CAAE,SAAA,CAAAC,CAAAA,CAAW,IAAA,CAAAW,CAAAA,CAAM,OAAA,CAAAC,CAAAA,CAAU,SAAA,CAAW,GAAGX,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACrDC,6BAAAA,CAAsB,CAAA,MAAA,CAArB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWW,iCAAAA,CAAiB,SAAA,CAAAb,CAAAA,CAAW,IAAA,CAAAW,CAAAA,CAAM,OAAA,CAAAC,CAAQ,CAAC,CAAA,CACrD,GAAGX,CAAAA,CACN,CACD,CAAA,CAEDa,CAAAA,CAAkB,WAAA,CAAmC,CAAA,CAAA,MAAA,CAAO,WAAA,CAAA,qJAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-UFTG26DA.cjs","sourcesContent":[null,"import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';\nimport {\n type ComponentProps,\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n type HTMLAttributes,\n type JSX,\n} from 'react';\nimport { cn } from '@/lib/utils';\nimport {\n buttonVariants,\n type ButtonVariantsProps,\n} from '@/styles/button-variants';\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialog\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogProps = ComponentProps<typeof AlertDialogPrimitive.Root>;\nconst AlertDialog = AlertDialogPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTrigger\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTriggerProps = ComponentPropsWithoutRef<\n typeof AlertDialogPrimitive.Trigger\n>;\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogContent\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogContentElement = ComponentRef<\n typeof AlertDialogPrimitive.Content\n>;\ntype AlertDialogContentProps = ComponentPropsWithoutRef<\n typeof AlertDialogPrimitive.Content\n>;\n\nconst AlertDialogContent = forwardRef<\n AlertDialogContentElement,\n AlertDialogContentProps\n>(({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Portal>\n <AlertDialogPrimitive.Overlay\n className={cn(\n 'fixed inset-0 z-50 grid place-items-center overflow-auto bg-black/80 p-4 sm:pb-12 sm:pt-8',\n 'data-[state=open]:animate-duration-200 data-[state=open]:animate-fade-in',\n 'data-[state=closed]:animate-duration-200 data-[state=closed]:animate-fade-out',\n )}\n >\n <AlertDialogPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-background relative z-50 flex w-full max-w-lg flex-col rounded-lg border shadow-lg',\n 'data-[state=open]:animate-in data-[state=open]:zoom-in-95 data-[state=open]:animate-duration-200 data-[state=open]:fade-in',\n 'data-[state=closed]:zoom-out-95 data-[state=closed]:animate-duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out',\n className,\n )}\n {...props}\n />\n </AlertDialogPrimitive.Overlay>\n </AlertDialogPrimitive.Portal>\n));\n\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogHeader\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogHeaderProps = HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogHeader({\n className,\n ...props\n}: AlertDialogHeaderProps): JSX.Element {\n return (\n <div\n className={cn(\n 'flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogBody\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogBodyProps = HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogBody({\n className,\n ...props\n}: AlertDialogBodyProps): JSX.Element {\n return (\n <main className={cn('overflow-auto px-6 py-2', className)} {...props} />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogFooter\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogFooterProps = HTMLAttributes<HTMLDivElement>;\n\nfunction AlertDialogFooter({\n className,\n ...props\n}: AlertDialogFooterProps): JSX.Element {\n return (\n <div\n className={cn(\n 'flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end',\n className,\n )}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTitle\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogTitleElement = ComponentRef<typeof AlertDialogPrimitive.Title>;\ntype AlertDialogTitleProps = ComponentPropsWithoutRef<\n typeof AlertDialogPrimitive.Title\n>;\n\nconst AlertDialogTitle = forwardRef<\n AlertDialogTitleElement,\n AlertDialogTitleProps\n>(({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Title\n ref={forwardedRef}\n className={cn(\n 'text-lg font-semibold leading-none tracking-tight',\n className,\n )}\n {...props}\n />\n));\n\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogDescription\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogDescriptionElement = ComponentRef<\n typeof AlertDialogPrimitive.Description\n>;\ntype AlertDialogDescriptionProps = ComponentPropsWithoutRef<\n typeof AlertDialogPrimitive.Description\n>;\n\nconst AlertDialogDescription = forwardRef<\n AlertDialogDescriptionElement,\n AlertDialogDescriptionProps\n>(({ className, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Description\n ref={forwardedRef}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n));\n\nAlertDialogDescription.displayName =\n AlertDialogPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogAction\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogActionElement = ComponentRef<\n typeof AlertDialogPrimitive.Action\n>;\n\ninterface AlertDialogActionProps\n extends ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst AlertDialogAction = forwardRef<\n AlertDialogActionElement,\n AlertDialogActionProps\n>(({ className, size, variant, ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Action\n ref={forwardedRef}\n className={buttonVariants({ className, size, variant })}\n {...props}\n />\n));\n\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogCancel\n * -------------------------------------------------------------------------- */\n\ntype AlertDialogCancelElement = ComponentRef<\n typeof AlertDialogPrimitive.Cancel\n>;\n\ninterface AlertDialogCancelProps\n extends ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel> {\n size?: ButtonVariantsProps['size'];\n variant?: ButtonVariantsProps['variant'];\n}\n\nconst AlertDialogCancel = forwardRef<\n AlertDialogCancelElement,\n AlertDialogCancelProps\n>(({ className, size, variant = 'outline', ...props }, forwardedRef) => (\n <AlertDialogPrimitive.Cancel\n ref={forwardedRef}\n className={buttonVariants({ className, size, variant })}\n {...props}\n />\n));\n\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n AlertDialog,\n AlertDialogAction,\n type AlertDialogActionProps,\n AlertDialogBody,\n type AlertDialogBodyProps,\n AlertDialogCancel,\n type AlertDialogCancelProps,\n AlertDialogContent,\n type AlertDialogContentProps,\n AlertDialogDescription,\n type AlertDialogDescriptionProps,\n AlertDialogFooter,\n type AlertDialogFooterProps,\n AlertDialogHeader,\n type AlertDialogHeaderProps,\n type AlertDialogProps,\n AlertDialogTitle,\n type AlertDialogTitleProps,\n AlertDialogTrigger,\n type AlertDialogTriggerProps,\n};\n"]}
@@ -0,0 +1,2 @@
1
+ import{a as o}from"./chunk-VPYH6JWS.js";import*as e from"@codefast-ui/checkbox-group";import{CheckIcon as a}from"@radix-ui/react-icons";import{forwardRef as s}from"react";import{jsx as r,jsxs as b}from"react/jsx-runtime";var C=s(({className:t,...i},p)=>r(e.Root,{className:o("grid gap-2",t),...i,ref:p}));C.displayName=e.Root.displayName;var d=s(({children:t,className:i,checkboxClassName:p,...m},c)=>b("label",{className:o("group flex items-center justify-center gap-4 rounded-md border p-4",i),children:[t,r(e.Item,{ref:c,className:o("border-input peer flex size-4 shrink-0 cursor-pointer rounded border shadow-sm","group-hover:border-primary","aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground","focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-1","disabled:cursor-default disabled:opacity-50",p),...m,children:r(e.CheckboxGroupIndicator,{className:"flex size-full items-center justify-center text-current",children:r(a,{className:"size-3.5"})})})]}));d.displayName=e.Item.displayName;export{C as a,d as b};
2
+ //# sourceMappingURL=chunk-VPPKOHWH.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/checkbox-cards.tsx"],"names":["CheckboxGroupPrimitive","CheckIcon","forwardRef","jsx","jsxs","CheckboxCards","className","props","forwardedRef","cn","CheckboxCardsItem","children","checkboxClassName"],"mappings":"wCAAA,UAAYA,MAA4B,8BACxC,OAAS,aAAAC,MAAiB,wBAC1B,OAGE,cAAAC,MACK,QAcH,cAAAC,EA2BF,QAAAC,MA3BE,oBAFJ,IAAMC,EAAgBH,EACpB,CAAC,CAAE,UAAAI,EAAW,GAAGC,CAAM,EAAGC,IACxBL,EAAwB,OAAvB,CACC,UAAWM,EAAG,aAAcH,CAAS,EACpC,GAAGC,EACJ,IAAKC,EACP,CAEJ,EAEAH,EAAc,YAAqC,OAAK,YAexD,IAAMK,EAAoBR,EAGxB,CAAC,CAAE,SAAAS,EAAU,UAAAL,EAAW,kBAAAM,EAAmB,GAAGL,CAAM,EAAGC,IACvDJ,EAAC,SACC,UAAWK,EACT,qEACAH,CACF,EAEC,UAAAK,EACDR,EAAwB,OAAvB,CACC,IAAKK,EACL,UAAWC,EACT,iFACA,6BACA,2FACA,gFACA,8CACAG,CACF,EACC,GAAGL,EAEJ,SAAAJ,EAAwB,yBAAvB,CAA8C,UAAU,0DACvD,SAAAA,EAACF,EAAA,CAAU,UAAU,WAAW,EAClC,EACF,GACF,CACD,EAEDS,EAAkB,YAAqC,OAAK","sourcesContent":["import * as CheckboxGroupPrimitive from '@codefast-ui/checkbox-group';\nimport { CheckIcon } from '@radix-ui/react-icons';\nimport {\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n} from 'react';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxCards\n * -------------------------------------------------------------------------- */\n\ntype CheckboxCardsElement = ComponentRef<typeof CheckboxGroupPrimitive.Root>;\ntype CheckboxCardsProps = ComponentPropsWithoutRef<\n typeof CheckboxGroupPrimitive.Root\n>;\n\nconst CheckboxCards = forwardRef<CheckboxCardsElement, CheckboxCardsProps>(\n ({ className, ...props }, forwardedRef) => (\n <CheckboxGroupPrimitive.Root\n className={cn('grid gap-2', className)}\n {...props}\n ref={forwardedRef}\n />\n ),\n);\n\nCheckboxCards.displayName = CheckboxGroupPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxCardsItem\n * -------------------------------------------------------------------------- */\n\ntype CheckboxCardsItemElement = ComponentRef<\n typeof CheckboxGroupPrimitive.Item\n>;\n\ninterface CheckboxCardsItemProps\n extends ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Item> {\n checkboxClassName?: string;\n}\n\nconst CheckboxCardsItem = forwardRef<\n CheckboxCardsItemElement,\n CheckboxCardsItemProps\n>(({ children, className, checkboxClassName, ...props }, forwardedRef) => (\n <label\n className={cn(\n 'group flex items-center justify-center gap-4 rounded-md border p-4',\n className,\n )}\n >\n {children}\n <CheckboxGroupPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'border-input peer flex size-4 shrink-0 cursor-pointer rounded border shadow-sm',\n 'group-hover:border-primary',\n 'aria-checked:border-primary aria-checked:bg-primary aria-checked:text-primary-foreground',\n 'focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-1',\n 'disabled:cursor-default disabled:opacity-50',\n checkboxClassName,\n )}\n {...props}\n >\n <CheckboxGroupPrimitive.CheckboxGroupIndicator className=\"flex size-full items-center justify-center text-current\">\n <CheckIcon className=\"size-3.5\" />\n </CheckboxGroupPrimitive.CheckboxGroupIndicator>\n </CheckboxGroupPrimitive.Item>\n </label>\n));\n\nCheckboxCardsItem.displayName = CheckboxGroupPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n CheckboxCards,\n CheckboxCardsItem,\n type CheckboxCardsItemProps,\n type CheckboxCardsProps,\n};\n"]}