@codefast/ui 0.2.33 → 0.2.35

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 (169) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/README.md +33 -3
  3. package/dist/{chunk-ZFCLI44C.js → chunk-3E3ZQIUX.js} +2 -2
  4. package/dist/{chunk-ZFCLI44C.js.map → chunk-3E3ZQIUX.js.map} +1 -1
  5. package/dist/{chunk-EBHV6RMB.cjs → chunk-3H3UNZUP.cjs} +2 -2
  6. package/dist/{chunk-EBHV6RMB.cjs.map → chunk-3H3UNZUP.cjs.map} +1 -1
  7. package/dist/chunk-3KHRUHYT.cjs +2 -0
  8. package/dist/chunk-3KHRUHYT.cjs.map +1 -0
  9. package/dist/{chunk-5GIH633S.js → chunk-3R2TIION.js} +2 -2
  10. package/dist/{chunk-5GIH633S.js.map → chunk-3R2TIION.js.map} +1 -1
  11. package/dist/chunk-3XOJLY6Y.js +2 -0
  12. package/dist/chunk-3XOJLY6Y.js.map +1 -0
  13. package/dist/chunk-3Z67RHJ3.js +2 -0
  14. package/dist/chunk-3Z67RHJ3.js.map +1 -0
  15. package/dist/{chunk-GDO6H6FE.cjs → chunk-4SZM4OZX.cjs} +2 -2
  16. package/dist/{chunk-GDO6H6FE.cjs.map → chunk-4SZM4OZX.cjs.map} +1 -1
  17. package/dist/chunk-64QR6CGF.js +2 -0
  18. package/dist/chunk-64QR6CGF.js.map +1 -0
  19. package/dist/{chunk-6Y3TATEU.cjs → chunk-BGHCFQCV.cjs} +2 -2
  20. package/dist/{chunk-6Y3TATEU.cjs.map → chunk-BGHCFQCV.cjs.map} +1 -1
  21. package/dist/{chunk-ZO2D5OMQ.js → chunk-BH3PX3OD.js} +2 -2
  22. package/dist/{chunk-XTJ46ZVA.js → chunk-D6Q6LYOK.js} +2 -2
  23. package/dist/{chunk-HF2JXACR.js → chunk-E3QLJTUQ.js} +2 -2
  24. package/dist/{chunk-NF7IJIGR.js → chunk-FF7RJQ5V.js} +2 -2
  25. package/dist/{chunk-SQLHRPWG.js → chunk-FPZHSVY3.js} +2 -2
  26. package/dist/{chunk-TT7ESDY6.cjs → chunk-GBDXWKYX.cjs} +2 -2
  27. package/dist/{chunk-TT7ESDY6.cjs.map → chunk-GBDXWKYX.cjs.map} +1 -1
  28. package/dist/{chunk-HSMBTYPE.cjs → chunk-HPWHFFV6.cjs} +2 -2
  29. package/dist/chunk-HPWHFFV6.cjs.map +1 -0
  30. package/dist/chunk-HWMTCBJN.js +2 -0
  31. package/dist/chunk-HWMTCBJN.js.map +1 -0
  32. package/dist/chunk-IP3FM7M3.cjs +2 -0
  33. package/dist/chunk-IP3FM7M3.cjs.map +1 -0
  34. package/dist/{chunk-AZFVCNWH.cjs → chunk-JJW4VWZS.cjs} +2 -2
  35. package/dist/{chunk-AZFVCNWH.cjs.map → chunk-JJW4VWZS.cjs.map} +1 -1
  36. package/dist/{chunk-DD4HTA6V.cjs → chunk-K4Y4Y2YP.cjs} +2 -2
  37. package/dist/{chunk-DD4HTA6V.cjs.map → chunk-K4Y4Y2YP.cjs.map} +1 -1
  38. package/dist/chunk-K73VMNRR.js +2 -0
  39. package/dist/{chunk-GL6VRBO4.js.map → chunk-K73VMNRR.js.map} +1 -1
  40. package/dist/{chunk-VSJCB3W5.js → chunk-KZTYZ4SE.js} +2 -2
  41. package/dist/{chunk-VSJCB3W5.js.map → chunk-KZTYZ4SE.js.map} +1 -1
  42. package/dist/{chunk-OX5BQP42.js → chunk-LEHRUJ2L.js} +2 -2
  43. package/dist/{chunk-KE6SQA2Z.js → chunk-MCQAUDRK.js} +2 -2
  44. package/dist/{chunk-6Z2OPAPQ.cjs → chunk-NJZ3TDB6.cjs} +2 -2
  45. package/dist/{chunk-6Z2OPAPQ.cjs.map → chunk-NJZ3TDB6.cjs.map} +1 -1
  46. package/dist/{chunk-5M632OZ3.cjs → chunk-OBHL2EPC.cjs} +2 -2
  47. package/dist/{chunk-5M632OZ3.cjs.map → chunk-OBHL2EPC.cjs.map} +1 -1
  48. package/dist/{chunk-TNP6NVCR.cjs → chunk-OSBDYGS3.cjs} +2 -2
  49. package/dist/{chunk-TNP6NVCR.cjs.map → chunk-OSBDYGS3.cjs.map} +1 -1
  50. package/dist/{chunk-ZICEZCOU.cjs → chunk-OT65LUKH.cjs} +2 -2
  51. package/dist/{chunk-ZICEZCOU.cjs.map → chunk-OT65LUKH.cjs.map} +1 -1
  52. package/dist/{chunk-ECCL4WBE.cjs → chunk-P6OP3EXT.cjs} +2 -2
  53. package/dist/{chunk-ECCL4WBE.cjs.map → chunk-P6OP3EXT.cjs.map} +1 -1
  54. package/dist/chunk-PQPCVOZX.cjs +2 -0
  55. package/dist/chunk-PQPCVOZX.cjs.map +1 -0
  56. package/dist/{chunk-M5WBW5H3.cjs → chunk-QHTSSIGW.cjs} +2 -2
  57. package/dist/{chunk-M5WBW5H3.cjs.map → chunk-QHTSSIGW.cjs.map} +1 -1
  58. package/dist/{chunk-ZA36F2BJ.cjs → chunk-R4SOGOXT.cjs} +2 -2
  59. package/dist/{chunk-ZA36F2BJ.cjs.map → chunk-R4SOGOXT.cjs.map} +1 -1
  60. package/dist/{chunk-JFPE2M2V.js → chunk-RBIJMA3G.js} +2 -2
  61. package/dist/chunk-TCK3JQ5Q.js +2 -0
  62. package/dist/chunk-TCK3JQ5Q.js.map +1 -0
  63. package/dist/chunk-VR6XYLVU.js +2 -0
  64. package/dist/chunk-VR6XYLVU.js.map +1 -0
  65. package/dist/{chunk-Y3I5OCGY.cjs → chunk-VSTEK27Z.cjs} +2 -2
  66. package/dist/{chunk-Y3I5OCGY.cjs.map → chunk-VSTEK27Z.cjs.map} +1 -1
  67. package/dist/{chunk-TKFPSQNE.js → chunk-W22VAO5F.js} +2 -2
  68. package/dist/{chunk-62FSD36V.cjs → chunk-W7IUS6U5.cjs} +2 -2
  69. package/dist/{chunk-62FSD36V.cjs.map → chunk-W7IUS6U5.cjs.map} +1 -1
  70. package/dist/chunk-WBNOGWR4.js +2 -0
  71. package/dist/{chunk-IU3UVNAL.js.map → chunk-WBNOGWR4.js.map} +1 -1
  72. package/dist/{chunk-JIF3ESOX.cjs → chunk-XRB4CGMN.cjs} +2 -2
  73. package/dist/{chunk-JIF3ESOX.cjs.map → chunk-XRB4CGMN.cjs.map} +1 -1
  74. package/dist/{chunk-FKBFCM7D.js → chunk-Y3I5EBH6.js} +2 -2
  75. package/dist/{chunk-HFQ4PJLQ.js → chunk-YLVYJ4QQ.js} +2 -2
  76. package/dist/chunk-YQARPTSR.cjs +2 -0
  77. package/dist/chunk-YQARPTSR.cjs.map +1 -0
  78. package/dist/{chunk-LOMEOK37.cjs → chunk-YX4V3LJU.cjs} +2 -2
  79. package/dist/{chunk-LOMEOK37.cjs.map → chunk-YX4V3LJU.cjs.map} +1 -1
  80. package/dist/components/alert-dialog.cjs +1 -1
  81. package/dist/components/alert-dialog.js +1 -1
  82. package/dist/components/alert.cjs +1 -1
  83. package/dist/components/alert.d.cts +2 -2
  84. package/dist/components/alert.d.ts +2 -2
  85. package/dist/components/alert.js +1 -1
  86. package/dist/components/badge.cjs +1 -1
  87. package/dist/components/badge.js +1 -1
  88. package/dist/components/button.cjs +1 -1
  89. package/dist/components/button.js +1 -1
  90. package/dist/components/calendar.cjs +1 -1
  91. package/dist/components/calendar.js +1 -1
  92. package/dist/components/card.cjs +1 -1
  93. package/dist/components/card.js +1 -1
  94. package/dist/components/carousel.cjs +1 -1
  95. package/dist/components/carousel.js +1 -1
  96. package/dist/components/command.cjs +1 -1
  97. package/dist/components/command.js +1 -1
  98. package/dist/components/data-table.cjs +1 -1
  99. package/dist/components/data-table.js +1 -1
  100. package/dist/components/dialog.cjs +1 -1
  101. package/dist/components/dialog.js +1 -1
  102. package/dist/components/drawer.cjs +1 -1
  103. package/dist/components/drawer.js +1 -1
  104. package/dist/components/input-number.cjs +1 -1
  105. package/dist/components/input-number.js +1 -1
  106. package/dist/components/input-password.cjs +1 -1
  107. package/dist/components/input-password.js +1 -1
  108. package/dist/components/input-search.cjs +1 -1
  109. package/dist/components/input-search.js +1 -1
  110. package/dist/components/navigation-menu.cjs +1 -1
  111. package/dist/components/navigation-menu.js +1 -1
  112. package/dist/components/pagination.cjs +1 -1
  113. package/dist/components/pagination.js +1 -1
  114. package/dist/components/progress-circle.cjs +2 -0
  115. package/dist/components/progress-circle.cjs.map +1 -0
  116. package/dist/components/progress-circle.d.cts +184 -0
  117. package/dist/components/progress-circle.d.ts +184 -0
  118. package/dist/components/progress-circle.js +2 -0
  119. package/dist/components/progress-circle.js.map +1 -0
  120. package/dist/components/scroll-area.cjs +1 -1
  121. package/dist/components/scroll-area.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/sidebar.cjs +1 -1
  127. package/dist/components/sidebar.d.cts +2 -2
  128. package/dist/components/sidebar.d.ts +2 -2
  129. package/dist/components/sidebar.js +1 -1
  130. package/dist/components/tabs.cjs +1 -1
  131. package/dist/components/tabs.js +1 -1
  132. package/dist/index.cjs +1 -1
  133. package/dist/index.cjs.map +1 -1
  134. package/dist/index.css +1 -1
  135. package/dist/index.css.map +1 -1
  136. package/dist/index.d.cts +2 -0
  137. package/dist/index.d.ts +2 -0
  138. package/dist/index.js +1 -1
  139. package/package.json +12 -11
  140. package/dist/chunk-55UJC5G4.js +0 -2
  141. package/dist/chunk-55UJC5G4.js.map +0 -1
  142. package/dist/chunk-CGU7BQSL.js +0 -2
  143. package/dist/chunk-CGU7BQSL.js.map +0 -1
  144. package/dist/chunk-GL6VRBO4.js +0 -2
  145. package/dist/chunk-GXFGJ53T.js +0 -2
  146. package/dist/chunk-GXFGJ53T.js.map +0 -1
  147. package/dist/chunk-HSMBTYPE.cjs.map +0 -1
  148. package/dist/chunk-ICLHBN2W.cjs +0 -2
  149. package/dist/chunk-ICLHBN2W.cjs.map +0 -1
  150. package/dist/chunk-IU3UVNAL.js +0 -2
  151. package/dist/chunk-NBKDS5DF.cjs +0 -2
  152. package/dist/chunk-NBKDS5DF.cjs.map +0 -1
  153. package/dist/chunk-PCH5RP2Y.cjs +0 -2
  154. package/dist/chunk-PCH5RP2Y.cjs.map +0 -1
  155. package/dist/chunk-QL645745.js +0 -2
  156. package/dist/chunk-QL645745.js.map +0 -1
  157. package/dist/chunk-RKNDEVL3.js +0 -2
  158. package/dist/chunk-RKNDEVL3.js.map +0 -1
  159. /package/dist/{chunk-ZO2D5OMQ.js.map → chunk-BH3PX3OD.js.map} +0 -0
  160. /package/dist/{chunk-XTJ46ZVA.js.map → chunk-D6Q6LYOK.js.map} +0 -0
  161. /package/dist/{chunk-HF2JXACR.js.map → chunk-E3QLJTUQ.js.map} +0 -0
  162. /package/dist/{chunk-NF7IJIGR.js.map → chunk-FF7RJQ5V.js.map} +0 -0
  163. /package/dist/{chunk-SQLHRPWG.js.map → chunk-FPZHSVY3.js.map} +0 -0
  164. /package/dist/{chunk-OX5BQP42.js.map → chunk-LEHRUJ2L.js.map} +0 -0
  165. /package/dist/{chunk-KE6SQA2Z.js.map → chunk-MCQAUDRK.js.map} +0 -0
  166. /package/dist/{chunk-JFPE2M2V.js.map → chunk-RBIJMA3G.js.map} +0 -0
  167. /package/dist/{chunk-TKFPSQNE.js.map → chunk-W22VAO5F.js.map} +0 -0
  168. /package/dist/{chunk-FKBFCM7D.js.map → chunk-Y3I5EBH6.js.map} +0 -0
  169. /package/dist/{chunk-HFQ4PJLQ.js.map → chunk-YLVYJ4QQ.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-M5WBW5H3.cjs","../src/components/alert-dialog.tsx"],"names":["AlertDialog","props","jsx","AlertDialogTrigger","AlertDialogContent","children","className","classNames","jsxs","cn","AlertDialogHeader","AlertDialogBody","AlertDialogFooter","AlertDialogTitle","AlertDialogDescription","AlertDialogAction","size","variant","buttonVariants","AlertDialogCancel"],"m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AZ,CAAAA,CAAW,IAAA,CAAAU,CAAAA,CAAM,OAAA,CAAAC,CAAQ,CAAC,CAAA,CACtD,WAAA,CAAU,qBAAA,CACT,GAAGhB,CAAAA,CACN,CAEJ,CAMA,SAASkB,CAAAA,CAAkB,CACzB,SAAA,CAAAb,CAAAA,CACA,IAAA,CAAAU,CAAAA,CACA,OAAA,CAAAC,CAAAA,CAAU,SAAA,CACV,GAAGhB,CACL,CAAA,CAGgB,CACd,OACEC,6BAAAA,CAAsB,CAAA,MAAA,CAArB,CACC,SAAA,CAAWgB,iCAAAA,CAAiB,SAAA,CAAAZ,CAAAA,CAAW,IAAA,CAAAU,CAAAA,CAAM,OAAA,CAAAC,CAAQ,CAAC,CAAA,CACtD,WAAA,CAAU,qBAAA,CACT,GAAGhB,CAAAA,CACN,CAEJ,CAAA,qJAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-M5WBW5H3.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\nimport type { VariantProps } from 'tailwind-variants';\n\nimport * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';\n\nimport { buttonVariants } from '@/components/button';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialog\n * -------------------------------------------------------------------------- */\n\nfunction AlertDialog({ ...props }: ComponentProps<typeof AlertDialogPrimitive.Root>): JSX.Element {\n return <AlertDialogPrimitive.Root data-slot=\"alert-dialog\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTrigger\n * -------------------------------------------------------------------------- */\n\nfunction AlertDialogTrigger({ ...props }: ComponentProps<typeof AlertDialogPrimitive.Trigger>): JSX.Element {\n return <AlertDialogPrimitive.Trigger data-slot=\"alert-dialog-trigger\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogContent\n * -------------------------------------------------------------------------- */\n\nfunction AlertDialogContent({\n children,\n className,\n classNames,\n ...props\n}: ComponentProps<typeof AlertDialogPrimitive.Content> & {\n classNames?: {\n content?: string;\n overlay?: string;\n wrapper?: string;\n };\n}): JSX.Element {\n return (\n <AlertDialogPrimitive.Portal>\n <AlertDialogPrimitive.Overlay\n className={cn(\n 'bg-popover-overlay data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50',\n classNames?.overlay,\n )}\n data-slot=\"alert-dialog-overlay\"\n />\n <AlertDialogPrimitive.Content\n className={cn(\n 'data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 fixed inset-0 z-50 grid grid-rows-[1fr_auto_1fr] justify-items-center overflow-auto p-8 sm:grid-rows-[1fr_auto_3fr] sm:p-4',\n classNames?.wrapper,\n )}\n data-slot=\"alert-dialog-content-wrapper\"\n {...props}\n >\n <div\n className={cn(\n 'bg-popover text-popover-foreground relative row-start-2 flex w-full max-w-lg flex-col rounded-2xl border shadow-lg',\n classNames?.content,\n className,\n )}\n data-slot=\"alert-dialog-content\"\n >\n {children}\n </div>\n </AlertDialogPrimitive.Content>\n </AlertDialogPrimitive.Portal>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogHeader\n * -------------------------------------------------------------------------- */\n\nfunction AlertDialogHeader({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <div\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left', className)}\n data-slot=\"alert-dialog-header\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogBody\n * -------------------------------------------------------------------------- */\n\nfunction AlertDialogBody({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return <main className={cn('overflow-auto px-6 py-2', className)} data-slot=\"alert-dialog-body\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogFooter\n * -------------------------------------------------------------------------- */\n\nfunction AlertDialogFooter({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <div\n className={cn('flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end', className)}\n data-slot=\"alert-dialog-footer\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTitle\n * -------------------------------------------------------------------------- */\n\nfunction AlertDialogTitle({ className, ...props }: ComponentProps<typeof AlertDialogPrimitive.Title>): JSX.Element {\n return (\n <AlertDialogPrimitive.Title\n className={cn('text-lg font-semibold leading-none tracking-tight', className)}\n data-slot=\"alert-dialog-title\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogDescription\n * -------------------------------------------------------------------------- */\n\nfunction AlertDialogDescription({\n className,\n ...props\n}: ComponentProps<typeof AlertDialogPrimitive.Description>): JSX.Element {\n return (\n <AlertDialogPrimitive.Description\n className={cn('text-muted-foreground text-sm', className)}\n data-slot=\"alert-dialog-description\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogAction\n * -------------------------------------------------------------------------- */\n\nfunction AlertDialogAction({\n className,\n size,\n variant,\n ...props\n}: ComponentProps<typeof AlertDialogPrimitive.Action> & {\n size?: VariantProps<typeof buttonVariants>['size'];\n variant?: VariantProps<typeof buttonVariants>['variant'];\n}): JSX.Element {\n return (\n <AlertDialogPrimitive.Action\n className={buttonVariants({ className, size, variant })}\n data-slot=\"alert-dialog-action\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogCancel\n * -------------------------------------------------------------------------- */\n\nfunction AlertDialogCancel({\n className,\n size,\n variant = 'outline',\n ...props\n}: ComponentProps<typeof AlertDialogPrimitive.Cancel> & {\n size?: VariantProps<typeof buttonVariants>['size'];\n variant?: VariantProps<typeof buttonVariants>['variant'];\n}): JSX.Element {\n return (\n <AlertDialogPrimitive.Cancel\n className={buttonVariants({ className, size, variant })}\n data-slot=\"alert-dialog-cancel\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n AlertDialog,\n AlertDialogAction,\n AlertDialogBody,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogTitle,\n AlertDialogTrigger,\n};\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-QHTSSIGW.cjs","../src/components/alert-dialog.tsx"],"names":["AlertDialog","props","jsx","AlertDialogTrigger","AlertDialogContent","children","className","classNames","jsxs","cn","AlertDialogHeader","AlertDialogBody","AlertDialogFooter","AlertDialogTitle","AlertDialogDescription","AlertDialogAction","size","variant","buttonVariants","AlertDialogCancel"],"mappings":"AAAA,u5BAAwC,wDAAyC,oHCG3C,+CAU7B,SADAA,CAAAA,CAAY,CAAE,GAAGC,CAAM,CAAA,CAAkE,CAChG,OAAOC,6BAAAA,CAAsB,CAAA,IAAA,CAArB,CAA0B,WAAA,CAAU,cAAA,CAAgB,GAAGD,CAAAA,CAAO,CACxE,CAMA,SAASE,CAAAA,CAAmB,CAAE,GAAGF,CAAM,CAAA,CAAqE,CAC1G,OAAOC,6BAAAA,CAAsB,CAAA,OAAA,CAArB,CAA6B,WAAA,CAAU,sBAAA,CAAwB,GAAGD,CAAAA,CAAO,CACnF,CAMA,SAASG,CAAAA,CAAmB,CAC1B,QAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,GAAGN,CACL,CAAA,CAMgB,CACd,OACEO,8BAAAA,CAAsB,CAAA,MAAA,CAArB,CACC,QAAA,CAAA,CAAAN,6BAAAA,CAAsB,CAAA,OAAA,CAArB,CACC,SAAA,CAAWO,iCAAAA,8GACT,iBACAF,CAAAA,2BAAY,SACd,CAAA,CACA,WAAA,CAAU,sBAAA,CACZ,CAAA,CACAL,6BAAAA,CAAsB,CAAA,OAAA,CAArB,CACC,SAAA,CAAWO,i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CAMA,SAASa,CAAAA,CAAuB,CAC9B,SAAA,CAAAR,CAAAA,CACA,GAAGL,CACL,CAAA,CAAyE,CACvE,OACEC,6BAAAA,CAAsB,CAAA,WAAA,CAArB,CACC,SAAA,CAAWO,iCAAAA,+BAAG,CAAiCH,CAAS,CAAA,CACxD,WAAA,CAAU,0BAAA,CACT,GAAGL,CAAAA,CACN,CAEJ,CAMA,SAASc,CAAAA,CAAkB,CACzB,SAAA,CAAAT,CAAAA,CACA,IAAA,CAAAU,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,GAAGhB,CACL,CAAA,CAGgB,CACd,OACEC,6BAAAA,CAAsB,CAAA,MAAA,CAArB,CACC,SAAA,CAAWgB,iCAAAA,CAAiB,SAAA,CAAAZ,CAAAA,CAAW,IAAA,CAAAU,CAAAA,CAAM,OAAA,CAAAC,CAAQ,CAAC,CAAA,CACtD,WAAA,CAAU,qBAAA,CACT,GAAGhB,CAAAA,CACN,CAEJ,CAMA,SAASkB,CAAAA,CAAkB,CACzB,SAAA,CAAAb,CAAAA,CACA,IAAA,CAAAU,CAAAA,CACA,OAAA,CAAAC,CAAAA,CAAU,SAAA,CACV,GAAGhB,CACL,CAAA,CAGgB,CACd,OACEC,6BAAAA,CAAsB,CAAA,MAAA,CAArB,CACC,SAAA,CAAWgB,iCAAAA,CAAiB,SAAA,CAAAZ,CAAAA,CAAW,IAAA,CAAAU,CAAAA,CAAM,OAAA,CAAAC,CAAQ,CAAC,CAAA,CACtD,WAAA,CAAU,qBAAA,CACT,GAAGhB,CAAAA,CACN,CAEJ,CAAA,qJAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-QHTSSIGW.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\nimport type { VariantProps } from 'tailwind-variants';\n\nimport * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';\n\nimport { buttonVariants } from '@/components/button';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialog\n * -------------------------------------------------------------------------- */\n\nfunction AlertDialog({ ...props }: ComponentProps<typeof AlertDialogPrimitive.Root>): JSX.Element {\n return <AlertDialogPrimitive.Root data-slot=\"alert-dialog\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTrigger\n * -------------------------------------------------------------------------- */\n\nfunction AlertDialogTrigger({ ...props }: ComponentProps<typeof AlertDialogPrimitive.Trigger>): JSX.Element {\n return <AlertDialogPrimitive.Trigger data-slot=\"alert-dialog-trigger\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogContent\n * -------------------------------------------------------------------------- */\n\nfunction AlertDialogContent({\n children,\n className,\n classNames,\n ...props\n}: ComponentProps<typeof AlertDialogPrimitive.Content> & {\n classNames?: {\n content?: string;\n overlay?: string;\n wrapper?: string;\n };\n}): JSX.Element {\n return (\n <AlertDialogPrimitive.Portal>\n <AlertDialogPrimitive.Overlay\n className={cn(\n 'bg-popover-overlay data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50',\n classNames?.overlay,\n )}\n data-slot=\"alert-dialog-overlay\"\n />\n <AlertDialogPrimitive.Content\n className={cn(\n 'data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 fixed inset-0 z-50 grid grid-rows-[1fr_auto_1fr] justify-items-center overflow-auto p-8 sm:grid-rows-[1fr_auto_3fr] sm:p-4',\n classNames?.wrapper,\n )}\n data-slot=\"alert-dialog-content-wrapper\"\n {...props}\n >\n <div\n className={cn(\n 'bg-popover text-popover-foreground relative row-start-2 flex w-full max-w-lg flex-col rounded-2xl border shadow-lg',\n classNames?.content,\n className,\n )}\n data-slot=\"alert-dialog-content\"\n >\n {children}\n </div>\n </AlertDialogPrimitive.Content>\n </AlertDialogPrimitive.Portal>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogHeader\n * -------------------------------------------------------------------------- */\n\nfunction AlertDialogHeader({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <div\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left', className)}\n data-slot=\"alert-dialog-header\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogBody\n * -------------------------------------------------------------------------- */\n\nfunction AlertDialogBody({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return <main className={cn('overflow-auto px-6 py-2', className)} data-slot=\"alert-dialog-body\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogFooter\n * -------------------------------------------------------------------------- */\n\nfunction AlertDialogFooter({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <div\n className={cn('flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end', className)}\n data-slot=\"alert-dialog-footer\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogTitle\n * -------------------------------------------------------------------------- */\n\nfunction AlertDialogTitle({ className, ...props }: ComponentProps<typeof AlertDialogPrimitive.Title>): JSX.Element {\n return (\n <AlertDialogPrimitive.Title\n className={cn('text-lg font-semibold leading-none tracking-tight', className)}\n data-slot=\"alert-dialog-title\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogDescription\n * -------------------------------------------------------------------------- */\n\nfunction AlertDialogDescription({\n className,\n ...props\n}: ComponentProps<typeof AlertDialogPrimitive.Description>): JSX.Element {\n return (\n <AlertDialogPrimitive.Description\n className={cn('text-muted-foreground text-sm', className)}\n data-slot=\"alert-dialog-description\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogAction\n * -------------------------------------------------------------------------- */\n\nfunction AlertDialogAction({\n className,\n size,\n variant,\n ...props\n}: ComponentProps<typeof AlertDialogPrimitive.Action> & {\n size?: VariantProps<typeof buttonVariants>['size'];\n variant?: VariantProps<typeof buttonVariants>['variant'];\n}): JSX.Element {\n return (\n <AlertDialogPrimitive.Action\n className={buttonVariants({ className, size, variant })}\n data-slot=\"alert-dialog-action\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AlertDialogCancel\n * -------------------------------------------------------------------------- */\n\nfunction AlertDialogCancel({\n className,\n size,\n variant = 'outline',\n ...props\n}: ComponentProps<typeof AlertDialogPrimitive.Cancel> & {\n size?: VariantProps<typeof buttonVariants>['size'];\n variant?: VariantProps<typeof buttonVariants>['variant'];\n}): JSX.Element {\n return (\n <AlertDialogPrimitive.Cancel\n className={buttonVariants({ className, size, variant })}\n data-slot=\"alert-dialog-cancel\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n AlertDialog,\n AlertDialogAction,\n AlertDialogBody,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogTitle,\n AlertDialogTrigger,\n};\n"]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _reactslot = require('@radix-ui/react-slot');var _tailwindvariants = require('tailwind-variants');var _jsxruntime = require('react/jsx-runtime');var o=_tailwindvariants.tv.call(void 0, {base:"focus-visible:ring-ring/50 focus-visible:ring-3 outline-hidden inline-flex w-fit shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md border px-1.5 py-0.5 text-xs font-medium transition [&>svg]:size-3 [&>svg]:shrink-0",variants:{variant:{default:"bg-primary [a&]:hover:bg-primary/80 text-primary-foreground focus-visible:ring-primary/20 dark:focus-visible:ring-primary/40 border-transparent",secondary:"bg-secondary [a&]:hover:bg-secondary/80 text-secondary-foreground border-transparent",destructive:"bg-destructive dark:bg-destructive/60 [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 border-transparent text-white",outline:"bg-background border-input [a&]:hover:bg-accent [a&]:hover:text-accent-foreground focus-visible:border-ring"}},defaultVariants:{variant:"default"}});function b({className:r,asChild:e,variant:t,...i}){return _jsxruntime.jsx.call(void 0, e?_reactslot.Slot:"span",{className:o({className:r,variant:t}),"data-slot":"badge",...i})}exports.a = o; exports.b = b;
2
- //# sourceMappingURL=chunk-ZA36F2BJ.cjs.map
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _reactslot = require('@radix-ui/react-slot');var _tailwindvariants = require('tailwind-variants');var _jsxruntime = require('react/jsx-runtime');var o=_tailwindvariants.tv.call(void 0, {base:"focus-visible:ring-ring/50 focus-visible:ring-3 outline-hidden inline-flex w-fit shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md border px-1.5 py-0.5 text-xs font-medium transition [&>svg]:size-3 [&>svg]:shrink-0",variants:{variant:{default:"bg-primary [a&]:hover:bg-primary/80 text-primary-foreground focus-visible:ring-primary/20 dark:focus-visible:ring-primary/40 border-transparent",secondary:"bg-secondary [a&]:hover:bg-secondary/80 text-secondary-foreground border-transparent",destructive:"bg-destructive dark:bg-destructive/60 [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 border-transparent text-white",outline:"bg-background border-input [a&]:hover:bg-accent [a&]:hover:text-accent-foreground [a&]:hover:border-ring/60 focus-visible:border-ring"}},defaultVariants:{variant:"default"}});function c({className:r,asChild:e,variant:t,...i}){return _jsxruntime.jsx.call(void 0, e?_reactslot.Slot:"span",{className:o({className:r,variant:t}),"data-slot":"badge",...i})}exports.a = o; exports.b = c;
2
+ //# sourceMappingURL=chunk-R4SOGOXT.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/badge.tsx"],"names":["badgeVariants","tv","Badge","className","asChild","variant","props","jsx","Slot"],"mappings":"AAGA,0HAAqB,qDACF,+CAuCV,IAjCHA,CAAAA,CAAgBC,kCAAAA,CACpB,IAAA,CAAM,8OAAA,CACN,QAAA,CAAU,CACR,OAAA,CAAS,CACP,OAAA,CACE,iJAAA,CACF,SAAA,CAAW,sFAAA,CACX,WAAA,CACE,2KAAA,CACF,OAAA,CACE,6GACJ,CACF,CAAA,CACA,eAAA,CAAiB,CACf,OAAA,CAAS,SACX,CACF,CAAC,CAAA,CAMD,SAASC,CAAAA,CAAM,CACb,SAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAGkB,CAGhB,OAAOC,6BAAAA,CAFWH,CAAUI,eAAAA,CAAO,MAAA,CAE3B,CAAU,SAAA,CAAWR,CAAAA,CAAc,CAAE,SAAA,CAAAG,CAAAA,CAAW,OAAA,CAAAE,CAAQ,CAAC,CAAA,CAAG,WAAA,CAAU,OAAA,CAAS,GAAGC,CAAAA,CAAO,CACnG,CAAA,6BAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-ZA36F2BJ.cjs","sourcesContent":["import type { ComponentProps, JSX } from 'react';\nimport type { VariantProps } from 'tailwind-variants';\n\nimport { Slot } from '@radix-ui/react-slot';\nimport { tv } from 'tailwind-variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: Badge\n * -------------------------------------------------------------------------- */\n\nconst badgeVariants = tv({\n base: 'focus-visible:ring-ring/50 focus-visible:ring-3 outline-hidden inline-flex w-fit shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md border px-1.5 py-0.5 text-xs font-medium transition [&>svg]:size-3 [&>svg]:shrink-0',\n variants: {\n variant: {\n default:\n 'bg-primary [a&]:hover:bg-primary/80 text-primary-foreground focus-visible:ring-primary/20 dark:focus-visible:ring-primary/40 border-transparent',\n secondary: 'bg-secondary [a&]:hover:bg-secondary/80 text-secondary-foreground border-transparent',\n destructive:\n 'bg-destructive dark:bg-destructive/60 [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 border-transparent text-white',\n outline:\n 'bg-background border-input [a&]:hover:bg-accent [a&]:hover:text-accent-foreground focus-visible:border-ring',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n});\n\n/* -----------------------------------------------------------------------------\n * Component: Badge\n * -------------------------------------------------------------------------- */\n\nfunction Badge({\n className,\n asChild,\n variant,\n ...props\n}: ComponentProps<'span'> &\n VariantProps<typeof badgeVariants> & {\n asChild?: boolean;\n }): JSX.Element {\n const Component = asChild ? Slot : 'span';\n\n return <Component className={badgeVariants({ className, variant })} data-slot=\"badge\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Badge, badgeVariants };\n"]}
1
+ {"version":3,"sources":["../src/components/badge.tsx"],"names":["badgeVariants","tv","Badge","className","asChild","variant","props","jsx","Slot"],"mappings":"AAGA,0HAAqB,qDACF,+CAuCV,IAjCHA,CAAAA,CAAgBC,kCAAAA,CACpB,IAAA,CAAM,8OAAA,CACN,QAAA,CAAU,CACR,OAAA,CAAS,CACP,OAAA,CACE,iJAAA,CACF,SAAA,CAAW,sFAAA,CACX,WAAA,CACE,2KAAA,CACF,OAAA,CACE,uIACJ,CACF,CAAA,CACA,eAAA,CAAiB,CACf,OAAA,CAAS,SACX,CACF,CAAC,CAAA,CAMD,SAASC,CAAAA,CAAM,CACb,SAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAGkB,CAGhB,OAAOC,6BAAAA,CAFWH,CAAUI,eAAAA,CAAO,MAAA,CAE3B,CAAU,SAAA,CAAWR,CAAAA,CAAc,CAAE,SAAA,CAAAG,CAAAA,CAAW,OAAA,CAAAE,CAAQ,CAAC,CAAA,CAAG,WAAA,CAAU,OAAA,CAAS,GAAGC,CAAAA,CAAO,CACnG,CAAA,6BAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-R4SOGOXT.cjs","sourcesContent":["import type { ComponentProps, JSX } from 'react';\nimport type { VariantProps } from 'tailwind-variants';\n\nimport { Slot } from '@radix-ui/react-slot';\nimport { tv } from 'tailwind-variants';\n\n/* -----------------------------------------------------------------------------\n * Variant: Badge\n * -------------------------------------------------------------------------- */\n\nconst badgeVariants = tv({\n base: 'focus-visible:ring-ring/50 focus-visible:ring-3 outline-hidden inline-flex w-fit shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md border px-1.5 py-0.5 text-xs font-medium transition [&>svg]:size-3 [&>svg]:shrink-0',\n variants: {\n variant: {\n default:\n 'bg-primary [a&]:hover:bg-primary/80 text-primary-foreground focus-visible:ring-primary/20 dark:focus-visible:ring-primary/40 border-transparent',\n secondary: 'bg-secondary [a&]:hover:bg-secondary/80 text-secondary-foreground border-transparent',\n destructive:\n 'bg-destructive dark:bg-destructive/60 [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 border-transparent text-white',\n outline:\n 'bg-background border-input [a&]:hover:bg-accent [a&]:hover:text-accent-foreground [a&]:hover:border-ring/60 focus-visible:border-ring',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n});\n\n/* -----------------------------------------------------------------------------\n * Component: Badge\n * -------------------------------------------------------------------------- */\n\nfunction Badge({\n className,\n asChild,\n variant,\n ...props\n}: ComponentProps<'span'> &\n VariantProps<typeof badgeVariants> & {\n asChild?: boolean;\n }): JSX.Element {\n const Component = asChild ? Slot : 'span';\n\n return <Component className={badgeVariants({ className, variant })} data-slot=\"badge\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Badge, badgeVariants };\n"]}
@@ -1,2 +1,2 @@
1
- import{a as r}from"./chunk-ZFCLI44C.js";import{a as i}from"./chunk-OKUFCFYT.js";import*as e from"@radix-ui/react-dialog";import{XIcon as d}from"lucide-react";import{tv as p}from"tailwind-variants";import{jsx as a,jsxs as l}from"react/jsx-runtime";var h=p({base:"bg-background animation-ease-in-out data-[state=open]:animate-in data-[state=open]:animation-duration-500 data-[state=closed]:animate-out data-[state=closed]:animation-duration-500 fixed z-50 flex flex-col overflow-auto shadow-lg",variants:{side:{bottom:"data-[state=open]:slide-in-from-bottom data-[state=closed]:slide-out-to-bottom inset-x-0 bottom-0 max-h-[80vh] border-t",left:"data-[state=open]:slide-in-from-left data-[state=closed]:slide-out-to-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",right:"data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",top:"data-[state=open]:slide-in-from-top data-[state=closed]:slide-out-to-top inset-x-0 top-0 max-h-[80vh] border-b"}},defaultVariants:{side:"right"}});function S({children:t,...o}){return a(e.Root,{"data-slot":"sheet",...o,children:t})}function P({...t}){return a(e.Trigger,{"data-slot":"sheet-trigger",...t})}function g({children:t,className:o,classNames:n,side:s="right",...m}){return l(e.Portal,{children:[a(e.Overlay,{className:i("bg-popover-overlay data-[state=open]:animate-fade-in data-[state=open]:animation-duration-500 data-[state=closed]:animate-fade-out data-[state=closed]:animation-duration-500 fixed inset-0 z-50",n?.overlay),"data-slot":"sheet-overlay"}),l(e.Content,{className:h({className:[n?.content,o],side:s}),"data-slot":"sheet-content",...m,children:[t,l(e.Close,{className:r({className:["absolute right-4 top-4 size-7",n?.close],size:"icon",variant:"ghost"}),"data-slot":"sheet-close",children:[a(d,{className:"size-4"}),a("span",{className:"sr-only",children:"Close"})]})]})]})}function x({className:t,...o}){return a("header",{className:i("flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left",t),"data-slot":"sheet-header",...o})}function y({className:t,...o}){return a("main",{className:i("px-6 py-2",t),"data-slot":"sheet-body",...o})}function C({className:t,...o}){return a("footer",{className:i("flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end",t),"data-slot":"sheet-footer",...o})}function b({className:t,...o}){return a(e.Title,{className:i("text-foreground text-lg font-semibold",t),"data-slot":"sheet-title",...o})}function N({className:t,...o}){return a(e.Description,{className:i("text-muted-foreground text-sm",t),"data-slot":"sheet-description",...o})}function X({className:t,size:o,variant:n="outline",...s}){return a(e.Close,{className:r({className:t,size:o,variant:n}),"data-slot":"sheet-close",...s})}export{S as a,P as b,g as c,x as d,y as e,C as f,b as g,N as h,X as i};
2
- //# sourceMappingURL=chunk-JFPE2M2V.js.map
1
+ import{a as r}from"./chunk-3E3ZQIUX.js";import{a as i}from"./chunk-OKUFCFYT.js";import*as e from"@radix-ui/react-dialog";import{XIcon as d}from"lucide-react";import{tv as p}from"tailwind-variants";import{jsx as a,jsxs as l}from"react/jsx-runtime";var h=p({base:"bg-background animation-ease-in-out data-[state=open]:animate-in data-[state=open]:animation-duration-500 data-[state=closed]:animate-out data-[state=closed]:animation-duration-500 fixed z-50 flex flex-col overflow-auto shadow-lg",variants:{side:{bottom:"data-[state=open]:slide-in-from-bottom data-[state=closed]:slide-out-to-bottom inset-x-0 bottom-0 max-h-[80vh] border-t",left:"data-[state=open]:slide-in-from-left data-[state=closed]:slide-out-to-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",right:"data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",top:"data-[state=open]:slide-in-from-top data-[state=closed]:slide-out-to-top inset-x-0 top-0 max-h-[80vh] border-b"}},defaultVariants:{side:"right"}});function S({children:t,...o}){return a(e.Root,{"data-slot":"sheet",...o,children:t})}function P({...t}){return a(e.Trigger,{"data-slot":"sheet-trigger",...t})}function g({children:t,className:o,classNames:n,side:s="right",...m}){return l(e.Portal,{children:[a(e.Overlay,{className:i("bg-popover-overlay data-[state=open]:animate-fade-in data-[state=open]:animation-duration-500 data-[state=closed]:animate-fade-out data-[state=closed]:animation-duration-500 fixed inset-0 z-50",n?.overlay),"data-slot":"sheet-overlay"}),l(e.Content,{className:h({className:[n?.content,o],side:s}),"data-slot":"sheet-content",...m,children:[t,l(e.Close,{className:r({className:["absolute right-4 top-4 size-7",n?.close],size:"icon",variant:"ghost"}),"data-slot":"sheet-close",children:[a(d,{className:"size-4"}),a("span",{className:"sr-only",children:"Close"})]})]})]})}function x({className:t,...o}){return a("header",{className:i("flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left",t),"data-slot":"sheet-header",...o})}function y({className:t,...o}){return a("main",{className:i("px-6 py-2",t),"data-slot":"sheet-body",...o})}function C({className:t,...o}){return a("footer",{className:i("flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end",t),"data-slot":"sheet-footer",...o})}function b({className:t,...o}){return a(e.Title,{className:i("text-foreground text-lg font-semibold",t),"data-slot":"sheet-title",...o})}function N({className:t,...o}){return a(e.Description,{className:i("text-muted-foreground text-sm",t),"data-slot":"sheet-description",...o})}function X({className:t,size:o,variant:n="outline",...s}){return a(e.Close,{className:r({className:t,size:o,variant:n}),"data-slot":"sheet-close",...s})}export{S as a,P as b,g as c,x as d,y as e,C as f,b as g,N as h,X as i};
2
+ //# sourceMappingURL=chunk-RBIJMA3G.js.map
@@ -0,0 +1,2 @@
1
+ "use client";import{a as J,b as z,c as I,d as T}from"./chunk-SSNF4WDW.js";import{a as P}from"./chunk-MKTUHVAW.js";import{a as N,c as M,d as k,g as X,h as _}from"./chunk-RBIJMA3G.js";import{a as w}from"./chunk-HODP3L6K.js";import{b as E}from"./chunk-B74UCONC.js";import{b as y}from"./chunk-3E3ZQIUX.js";import{a as o}from"./chunk-OKUFCFYT.js";import{useIsMobile as K}from"@codefast/hooks";import{Slot as g}from"@radix-ui/react-slot";import{PanelLeftIcon as V}from"lucide-react";import{createContext as G,useCallback as D,useContext as L,useEffect as $,useMemo as A,useState as O}from"react";import{tv as W}from"tailwind-variants";import{jsx as a,jsxs as p}from"react/jsx-runtime";var j="sidebar_state",q=60*60*24*7,F="16rem",U="18rem",Y="3.0625rem",Q="b",B=G(null);function S(){let t=L(B);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function ce({defaultOpen:t=!0,open:e,onOpenChange:n,className:r,style:i,children:l,...m}){let d=K(),[c,b]=O(!1),[h,R]=O(t),f=e??h,v=D(s=>{let u=typeof s=="function"?s(f):s;n?n(u):R(u),document.cookie=`${j}=${u}; path=/; max-age=${q}`},[n,f]),x=D(()=>{d?b(s=>!s):v(s=>!s)},[d,v,b]);$(()=>{let s=u=>{u.key===Q&&(u.metaKey||u.ctrlKey)&&(u.preventDefault(),x())};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[x]);let C=f?"expanded":"collapsed",H=A(()=>({state:C,open:f,setOpen:v,isMobile:d,openMobile:c,setOpenMobile:b,toggleSidebar:x}),[C,f,v,d,c,b,x]);return a(B.Provider,{value:H,children:a(J,{delayDuration:0,children:a("div",{className:o("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",r),"data-slot":"sidebar-wrapper",style:{"--sidebar-width":F,"--sidebar-width-icon":Y,...i},...m,children:l})})})}function pe({side:t="left",variant:e="sidebar",collapsible:n="offcanvas",className:r,children:i,...l}){let{isMobile:m,state:d,openMobile:c,setOpenMobile:b}=S();return n==="none"?a("div",{className:o("bg-sidebar text-sidebar-foreground w-(--sidebar-width) flex h-full flex-col",r),"data-slot":"sidebar",...l,children:i}):m?a(N,{open:c,onOpenChange:b,...l,children:p(M,{className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden","data-mobile":"true","data-sidebar":"sidebar","data-slot":"sidebar",side:t,style:{"--sidebar-width":U},children:[p(k,{className:"sr-only",children:[a(X,{children:"Sidebar"}),a(_,{children:"Displays the mobile sidebar."})]}),a("div",{className:"flex h-full w-full flex-col",children:i})]})}):p("div",{className:o("text-sidebar-foreground group peer hidden md:block",r),"data-collapsible":d==="collapsed"?n:"","data-side":t,"data-slot":"sidebar","data-state":d,"data-variant":e,children:[a("div",{className:o("w-(--sidebar-width) relative bg-transparent transition-[width] duration-200 ease-linear group-data-[collapsible=offcanvas]:w-0 group-data-[side=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)"),"data-slot":"sidebar-gap"}),a("div",{className:o("w-(--sidebar-width) fixed inset-y-0 z-10 hidden h-svh transition-[left,right,width] duration-200 ease-linear md:flex",t==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",r),"data-slot":"sidebar-container",...l,children:a("div",{className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm","data-sidebar":"sidebar","data-slot":"sidebar-inner",children:i})})]})}function me({className:t,onClick:e,...n}){let{toggleSidebar:r}=S();return p(y,{className:o("size-7",t),"data-sidebar":"trigger","data-slot":"sidebar-trigger",size:"icon",variant:"ghost",onClick:i=>{e?.(i),r()},...n,children:[a(V,{}),a("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function fe({className:t,...e}){let{toggleSidebar:n}=S();return a("button",{className:o("hover:after:bg-sidebar-border in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize hover:group-data-[collapsible=offcanvas]:bg-sidebar absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] group-data-[side=left]:-right-4 group-data-[side=right]:left-0 group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full sm:flex [[data-side=left][data-collapsible=offcanvas]_&]:-right-2 [[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-collapsible=offcanvas]_&]:-left-2 [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",t),"data-sidebar":"rail","data-slot":"sidebar-rail",title:"Toggle Sidebar",type:"button",onClick:n,...e})}function ge({className:t,...e}){return a("main",{className:o("bg-background relative flex w-full flex-1 flex-col md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",t),"data-slot":"sidebar-inset",...e})}function he({className:t,...e}){return a(E,{className:o("bg-background h-8 w-full shadow-none",t),"data-sidebar":"input","data-slot":"sidebar-input",...e})}function ve({className:t,...e}){return a("div",{className:o("flex flex-col gap-2 p-2",t),"data-sidebar":"header","data-slot":"sidebar-header",...e})}function xe({className:t,...e}){return a("div",{className:o("flex flex-col gap-2 p-2",t),"data-sidebar":"footer","data-slot":"sidebar-footer",...e})}function Se({className:t,...e}){return a(P,{className:o("bg-sidebar-border mx-2 w-auto",t),"data-sidebar":"separator","data-slot":"sidebar-separator",...e})}function we({className:t,...e}){return a("div",{className:o("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",t),"data-sidebar":"content","data-slot":"sidebar-content",...e})}function Ce({className:t,...e}){return a("div",{className:o("relative flex w-full min-w-0 flex-col p-2",t),"data-sidebar":"group","data-slot":"sidebar-group",...e})}function ye({className:t,asChild:e=!1,...n}){return a(e?g:"div",{className:o("text-sidebar-foreground/70 ring-sidebar-ring outline-hidden focus-visible:ring-3 flex h-8 shrink-0 items-center truncate rounded-md px-2 text-xs font-medium transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 [&>svg]:size-4 [&>svg]:shrink-0",t),"data-sidebar":"group-label","data-slot":"sidebar-group-label",...n})}function Ee({className:t,asChild:e=!1,...n}){return a(e?g:"button",{className:o("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground outline-hidden focus-visible:ring-3 absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 transition-transform after:absolute after:-inset-2 group-data-[collapsible=icon]:hidden md:after:hidden [&>svg]:size-4 [&>svg]:shrink-0",t),"data-sidebar":"group-action","data-slot":"sidebar-group-action",...n})}function Pe({className:t,...e}){return a("div",{className:o("w-full text-sm",t),"data-sidebar":"group-content","data-slot":"sidebar-group-content",...e})}function Ne({className:t,...e}){return a("ul",{className:o("flex w-full min-w-0 flex-col gap-1",t),"data-sidebar":"menu","data-slot":"sidebar-menu",...e})}function Me({className:t,...e}){return a("li",{className:o("group/menu-item relative",t),"data-sidebar":"menu-item","data-slot":"sidebar-menu-item",...e})}var Z=W({base:"peer/menu-button outline-hidden ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground group-has-data-[sidebar=menu-action]/menu-item:pr-8 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! focus-visible:ring-3 flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm transition-[width,height,padding] disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:font-medium [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{sm:"h-7 text-xs",md:"h-8 text-sm",lg:"group-data-[collapsible=icon]:p-0! h-12 text-sm"}},defaultVariants:{variant:"default",size:"md"}});function ke({asChild:t=!1,isActive:e=!1,variant:n="default",size:r="md",tooltip:i,className:l,...m}){let d=t?g:"button",{isMobile:c,state:b}=S(),h=a(d,{className:o(Z({variant:n,size:r}),l),"data-active":e,"data-sidebar":"menu-button","data-size":r,"data-slot":"sidebar-menu-button",...m});return i?(typeof i=="string"&&(i={children:i}),p(z,{children:[a(I,{asChild:!0,children:h}),a(T,{align:"center",hidden:b!=="collapsed"||c,side:"right",...i})]})):h}function Xe({className:t,asChild:e=!1,showOnHover:n=!1,...r}){return a(e?g:"button",{className:o("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground outline-hidden focus-visible:ring-3 absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 transition-transform after:absolute after:-inset-2 group-data-[collapsible=icon]:hidden peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 md:after:hidden [&>svg]:size-4 [&>svg]:shrink-0",n&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",t),"data-sidebar":"menu-action","data-slot":"sidebar-menu-action",...r})}function _e({className:t,...e}){return a("div",{className:o("text-sidebar-foreground peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums group-data-[collapsible=icon]:hidden peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1",t),"data-sidebar":"menu-badge","data-slot":"sidebar-menu-badge",...e})}function Je({className:t,showIcon:e=!1,...n}){let r=A(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return p("div",{className:o("flex h-8 items-center gap-2 rounded-md px-2",t),"data-sidebar":"menu-skeleton","data-slot":"sidebar-menu-skeleton",...n,children:[e?a(w,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}):null,a(w,{className:"max-w-(--skeleton-width) h-4 flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})}function ze({className:t,...e}){return a("ul",{className:o("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5 group-data-[collapsible=icon]:hidden",t),"data-sidebar":"menu-sub","data-slot":"sidebar-menu-sub",...e})}function Ie({className:t,...e}){return a("li",{className:o("group/menu-sub-item relative",t),"data-sidebar":"menu-sub-item","data-slot":"sidebar-menu-sub-item",...e})}function Te({asChild:t=!1,size:e="md",isActive:n=!1,className:r,...i}){return a(t?g:"a",{className:o("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground outline-hidden focus-visible:ring-3 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",e==="sm"&&"text-xs",e==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),"data-active":n,"data-sidebar":"menu-sub-button","data-size":e,"data-slot":"sidebar-menu-sub-button",...i})}export{S as a,ce as b,pe as c,me as d,fe as e,ge as f,he as g,ve as h,xe as i,Se as j,we as k,Ce as l,ye as m,Ee as n,Pe as o,Ne as p,Me as q,ke as r,Xe as s,_e as t,Je as u,ze as v,Ie as w,Te as x};
2
+ //# sourceMappingURL=chunk-TCK3JQ5Q.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/sidebar.tsx"],"names":["useIsMobile","Slot","PanelLeftIcon","createContext","useCallback","useContext","useEffect","useMemo","useState","tv","jsx","jsxs","SIDEBAR_COOKIE_NAME","SIDEBAR_COOKIE_MAX_AGE","SIDEBAR_WIDTH","SIDEBAR_WIDTH_MOBILE","SIDEBAR_WIDTH_ICON","SIDEBAR_KEYBOARD_SHORTCUT","SidebarContext","useSidebar","context","SidebarProvider","defaultOpen","openProp","setOpenProp","className","style","children","props","isMobile","openMobile","setOpenMobile","isOpen","setIsOpen","open","setOpen","value","openState","toggleSidebar","currentValue","handleKeyDown","event","state","contextValue","TooltipProvider","cn","Sidebar","side","variant","collapsible","Sheet","SheetContent","SheetHeader","SheetTitle","SheetDescription","SidebarTrigger","onClick","Button","SidebarRail","SidebarInset","SidebarInput","Input","SidebarHeader","SidebarFooter","SidebarSeparator","Separator","SidebarContent","SidebarGroup","SidebarGroupLabel","asChild","SidebarGroupAction","SidebarGroupContent","SidebarMenu","SidebarMenuItem","sidebarMenuButtonVariants","SidebarMenuButton","isActive","size","tooltip","Component","button","Tooltip","TooltipTrigger","TooltipContent","SidebarMenuAction","showOnHover","SidebarMenuBadge","SidebarMenuSkeleton","showIcon","width","Skeleton","SidebarMenuSub","SidebarMenuSubItem","SidebarMenuSubButton"],"mappings":"yUAKA,OAAS,eAAAA,MAAmB,kBAC5B,OAAS,QAAAC,MAAY,uBACrB,OAAS,iBAAAC,MAAqB,eAC9B,OAAS,iBAAAC,EAAe,eAAAC,EAAa,cAAAC,EAAY,aAAAC,EAAW,WAAAC,EAAS,YAAAC,MAAgB,QACrF,OAAS,MAAAC,MAAU,oBA4HX,cAAAC,EAgEE,QAAAC,MAhEF,oBAlHR,IAAMC,EAAsB,gBACtBC,EAAyB,GAAK,GAAK,GAAK,EACxCC,EAAgB,QAChBC,EAAuB,QACvBC,EAAqB,YACrBC,EAA4B,IAY5BC,EAAiBf,EAA0C,IAAI,EAErE,SAASgB,GAAkC,CACzC,IAAMC,EAAUf,EAAWa,CAAc,EAEzC,GAAI,CAACE,EACH,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AAGG,CACL,EAIgB,CAGd,OACElB,EAHgB2D,EAAUpE,EAAO,IAGhC,CACC,UAAW4C,EACT,ukBACAgC,IAAS,MAAQ,UACjBA,IAAS,MAAQ,UACjB,uCACApD,CACF,EACA,cAAamD,EACb,eAAa,kBACb,YAAWC,EACX,YAAU,0BACT,GAAGjD,EACN,CAEJ","sourcesContent":["'use client';\n\nimport type { ComponentProps, CSSProperties, Dispatch, JSX, SetStateAction } from 'react';\nimport type { VariantProps } from 'tailwind-variants';\n\nimport { useIsMobile } from '@codefast/hooks';\nimport { Slot } from '@radix-ui/react-slot';\nimport { PanelLeftIcon } from 'lucide-react';\nimport { createContext, useCallback, useContext, useEffect, useMemo, useState } from 'react';\nimport { tv } from 'tailwind-variants';\n\nimport { Button } from '@/components/button';\nimport { Input } from '@/components/input';\nimport { Separator } from '@/components/separator';\nimport { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle } from '@/components/sheet';\nimport { Skeleton } from '@/components/skeleton';\nimport { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/tooltip';\nimport { cn } from '@/lib/utils';\n\nconst SIDEBAR_COOKIE_NAME = 'sidebar_state';\nconst SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;\nconst SIDEBAR_WIDTH = '16rem';\nconst SIDEBAR_WIDTH_MOBILE = '18rem';\nconst SIDEBAR_WIDTH_ICON = '3.0625rem';\nconst SIDEBAR_KEYBOARD_SHORTCUT = 'b';\n\ninterface SidebarContextProps {\n isMobile: boolean;\n open: boolean;\n openMobile: boolean;\n setOpen: (open: boolean) => void;\n setOpenMobile: Dispatch<SetStateAction<boolean>>;\n state: 'collapsed' | 'expanded';\n toggleSidebar: () => void;\n}\n\nconst SidebarContext = createContext<null | SidebarContextProps>(null);\n\nfunction useSidebar(): SidebarContextProps {\n const context = useContext(SidebarContext);\n\n if (!context) {\n throw new Error('useSidebar must be used within a SidebarProvider.');\n }\n\n return context;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarProvider\n * -------------------------------------------------------------------------- */\n\nfunction SidebarProvider({\n defaultOpen = true,\n open: openProp,\n onOpenChange: setOpenProp,\n className,\n style,\n children,\n ...props\n}: ComponentProps<'div'> & {\n defaultOpen?: boolean;\n onOpenChange?: (open: boolean) => void;\n open?: boolean;\n}): JSX.Element {\n const isMobile = useIsMobile();\n const [openMobile, setOpenMobile] = useState(false);\n\n // This is the internal state of the sidebar.\n // We use openProp and setOpenProp for control from outside the component.\n const [isOpen, setIsOpen] = useState(defaultOpen);\n const open = openProp ?? isOpen;\n const setOpen = useCallback(\n (value: ((value: boolean) => boolean) | boolean) => {\n const openState = typeof value === 'function' ? value(open) : value;\n\n if (setOpenProp) {\n setOpenProp(openState);\n } else {\n setIsOpen(openState);\n }\n\n // eslint-disable-next-line unicorn/no-document-cookie -- This sets the cookie to keep the sidebar state.\n document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;\n },\n [setOpenProp, open],\n );\n\n // Helper to toggle the sidebar.\n const toggleSidebar = useCallback(() => {\n if (isMobile) {\n setOpenMobile((currentValue) => !currentValue);\n } else {\n setOpen((currentValue) => !currentValue);\n }\n }, [isMobile, setOpen, setOpenMobile]);\n\n // Adds a keyboard shortcut to toggle the sidebar.\n useEffect(() => {\n const handleKeyDown: (event: KeyboardEvent) => void = (event: KeyboardEvent) => {\n if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {\n event.preventDefault();\n toggleSidebar();\n }\n };\n\n window.addEventListener('keydown', handleKeyDown);\n\n return () => {\n window.removeEventListener('keydown', handleKeyDown);\n };\n }, [toggleSidebar]);\n\n // We add a state so that we can do data-state=\"expanded\" or \"collapsed\".\n // This makes it easier to style the sidebar with Tailwind classes.\n const state = open ? 'expanded' : 'collapsed';\n\n const contextValue = useMemo<SidebarContextProps>(\n () => ({\n state,\n open,\n setOpen,\n isMobile,\n openMobile,\n setOpenMobile,\n toggleSidebar,\n }),\n [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar],\n );\n\n return (\n <SidebarContext.Provider value={contextValue}>\n <TooltipProvider delayDuration={0}>\n <div\n className={cn('group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full', className)}\n data-slot=\"sidebar-wrapper\"\n style={\n {\n '--sidebar-width': SIDEBAR_WIDTH,\n '--sidebar-width-icon': SIDEBAR_WIDTH_ICON,\n ...style,\n } as CSSProperties\n }\n {...props}\n >\n {children}\n </div>\n </TooltipProvider>\n </SidebarContext.Provider>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: Sidebar\n * -------------------------------------------------------------------------- */\n\nfunction Sidebar({\n side = 'left',\n variant = 'sidebar',\n collapsible = 'offcanvas',\n className,\n children,\n ...props\n}: ComponentProps<'div'> & {\n collapsible?: 'icon' | 'none' | 'offcanvas';\n side?: 'left' | 'right';\n variant?: 'floating' | 'inset' | 'sidebar';\n}): JSX.Element {\n const { isMobile, state, openMobile, setOpenMobile } = useSidebar();\n\n if (collapsible === 'none') {\n return (\n <div\n className={cn('bg-sidebar text-sidebar-foreground w-(--sidebar-width) flex h-full flex-col', className)}\n data-slot=\"sidebar\"\n {...props}\n >\n {children}\n </div>\n );\n }\n\n if (isMobile) {\n return (\n <Sheet open={openMobile} onOpenChange={setOpenMobile} {...props}>\n <SheetContent\n className=\"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden\"\n data-mobile=\"true\"\n data-sidebar=\"sidebar\"\n data-slot=\"sidebar\"\n side={side}\n style={\n {\n '--sidebar-width': SIDEBAR_WIDTH_MOBILE,\n } as CSSProperties\n }\n >\n <SheetHeader className=\"sr-only\">\n <SheetTitle>Sidebar</SheetTitle>\n <SheetDescription>Displays the mobile sidebar.</SheetDescription>\n </SheetHeader>\n <div className=\"flex h-full w-full flex-col\">{children}</div>\n </SheetContent>\n </Sheet>\n );\n }\n\n return (\n <div\n className={cn('text-sidebar-foreground group peer hidden md:block', className)}\n data-collapsible={state === 'collapsed' ? collapsible : ''}\n data-side={side}\n data-slot=\"sidebar\"\n data-state={state}\n data-variant={variant}\n >\n {/* This is what handles the sidebar gap on desktop */}\n <div\n className={cn(\n 'w-(--sidebar-width) relative bg-transparent transition-[width] duration-200 ease-linear group-data-[collapsible=offcanvas]:w-0 group-data-[side=right]:rotate-180',\n variant === 'floating' || variant === 'inset'\n ? 'group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]'\n : 'group-data-[collapsible=icon]:w-(--sidebar-width-icon)',\n )}\n data-slot=\"sidebar-gap\"\n />\n <div\n className={cn(\n 'w-(--sidebar-width) fixed inset-y-0 z-10 hidden h-svh transition-[left,right,width] duration-200 ease-linear md:flex',\n side === 'left'\n ? 'left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]'\n : 'right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]',\n // Adjust the padding for floating and inset variants.\n variant === 'floating' || variant === 'inset'\n ? 'p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]'\n : 'group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l',\n className,\n )}\n data-slot=\"sidebar-container\"\n {...props}\n >\n <div\n className=\"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm\"\n data-sidebar=\"sidebar\"\n data-slot=\"sidebar-inner\"\n >\n {children}\n </div>\n </div>\n </div>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarTrigger\n * -------------------------------------------------------------------------- */\n\nfunction SidebarTrigger({ className, onClick, ...props }: ComponentProps<typeof Button>): JSX.Element {\n const { toggleSidebar } = useSidebar();\n\n return (\n <Button\n className={cn('size-7', className)}\n data-sidebar=\"trigger\"\n data-slot=\"sidebar-trigger\"\n size=\"icon\"\n variant=\"ghost\"\n onClick={(event) => {\n onClick?.(event);\n toggleSidebar();\n }}\n {...props}\n >\n <PanelLeftIcon />\n <span className=\"sr-only\">Toggle Sidebar</span>\n </Button>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarRail\n * -------------------------------------------------------------------------- */\n\nfunction SidebarRail({ className, ...props }: ComponentProps<'button'>): JSX.Element {\n const { toggleSidebar } = useSidebar();\n\n return (\n <button\n className={cn(\n 'hover:after:bg-sidebar-border in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize hover:group-data-[collapsible=offcanvas]:bg-sidebar absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] group-data-[side=left]:-right-4 group-data-[side=right]:left-0 group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full sm:flex [[data-side=left][data-collapsible=offcanvas]_&]:-right-2 [[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-collapsible=offcanvas]_&]:-left-2 [[data-side=right][data-state=collapsed]_&]:cursor-w-resize',\n className,\n )}\n data-sidebar=\"rail\"\n data-slot=\"sidebar-rail\"\n title=\"Toggle Sidebar\"\n type=\"button\"\n onClick={toggleSidebar}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarInset\n * -------------------------------------------------------------------------- */\n\nfunction SidebarInset({ className, ...props }: ComponentProps<'main'>): JSX.Element {\n return (\n <main\n className={cn(\n 'bg-background relative flex w-full flex-1 flex-col md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm',\n className,\n )}\n data-slot=\"sidebar-inset\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarInput\n * -------------------------------------------------------------------------- */\n\nfunction SidebarInput({ className, ...props }: ComponentProps<typeof Input>): JSX.Element {\n return (\n <Input\n className={cn('bg-background h-8 w-full shadow-none', className)}\n data-sidebar=\"input\"\n data-slot=\"sidebar-input\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarHeader\n * -------------------------------------------------------------------------- */\n\nfunction SidebarHeader({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <div\n className={cn('flex flex-col gap-2 p-2', className)}\n data-sidebar=\"header\"\n data-slot=\"sidebar-header\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarFooter\n * -------------------------------------------------------------------------- */\n\nfunction SidebarFooter({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <div\n className={cn('flex flex-col gap-2 p-2', className)}\n data-sidebar=\"footer\"\n data-slot=\"sidebar-footer\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarSeparator\n * -------------------------------------------------------------------------- */\n\nfunction SidebarSeparator({ className, ...props }: ComponentProps<typeof Separator>): JSX.Element {\n return (\n <Separator\n className={cn('bg-sidebar-border mx-2 w-auto', className)}\n data-sidebar=\"separator\"\n data-slot=\"sidebar-separator\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarContent\n * -------------------------------------------------------------------------- */\n\nfunction SidebarContent({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <div\n className={cn(\n 'flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden',\n className,\n )}\n data-sidebar=\"content\"\n data-slot=\"sidebar-content\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarGroup\n * -------------------------------------------------------------------------- */\n\nfunction SidebarGroup({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <div\n className={cn('relative flex w-full min-w-0 flex-col p-2', className)}\n data-sidebar=\"group\"\n data-slot=\"sidebar-group\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarGroupLabel\n * -------------------------------------------------------------------------- */\n\nfunction SidebarGroupLabel({\n className,\n asChild = false,\n ...props\n}: ComponentProps<'div'> & {\n asChild?: boolean;\n}): JSX.Element {\n const Component = asChild ? Slot : 'div';\n\n return (\n <Component\n className={cn(\n 'text-sidebar-foreground/70 ring-sidebar-ring outline-hidden focus-visible:ring-3 flex h-8 shrink-0 items-center truncate rounded-md px-2 text-xs font-medium transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 [&>svg]:size-4 [&>svg]:shrink-0',\n className,\n )}\n data-sidebar=\"group-label\"\n data-slot=\"sidebar-group-label\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarGroupAction\n * -------------------------------------------------------------------------- */\n\nfunction SidebarGroupAction({\n className,\n asChild = false,\n ...props\n}: ComponentProps<'button'> & {\n asChild?: boolean;\n}): JSX.Element {\n const Component = asChild ? Slot : 'button';\n\n return (\n <Component\n className={cn(\n 'text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground outline-hidden focus-visible:ring-3 absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 transition-transform after:absolute after:-inset-2 group-data-[collapsible=icon]:hidden md:after:hidden [&>svg]:size-4 [&>svg]:shrink-0',\n className,\n )}\n data-sidebar=\"group-action\"\n data-slot=\"sidebar-group-action\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarGroupContent\n * -------------------------------------------------------------------------- */\n\nfunction SidebarGroupContent({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <div\n className={cn('w-full text-sm', className)}\n data-sidebar=\"group-content\"\n data-slot=\"sidebar-group-content\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenu\n * -------------------------------------------------------------------------- */\n\nfunction SidebarMenu({ className, ...props }: ComponentProps<'ul'>): JSX.Element {\n return (\n <ul\n className={cn('flex w-full min-w-0 flex-col gap-1', className)}\n data-sidebar=\"menu\"\n data-slot=\"sidebar-menu\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenuItem\n * -------------------------------------------------------------------------- */\n\nfunction SidebarMenuItem({ className, ...props }: ComponentProps<'li'>): JSX.Element {\n return (\n <li\n className={cn('group/menu-item relative', className)}\n data-sidebar=\"menu-item\"\n data-slot=\"sidebar-menu-item\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Variant: SidebarMenuButton\n * -------------------------------------------------------------------------- */\n\nconst sidebarMenuButtonVariants = tv({\n base: 'peer/menu-button outline-hidden ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground group-has-data-[sidebar=menu-action]/menu-item:pr-8 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! focus-visible:ring-3 flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm transition-[width,height,padding] disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:font-medium [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0',\n variants: {\n variant: {\n default: 'hover:bg-sidebar-accent hover:text-sidebar-accent-foreground',\n outline:\n 'bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]',\n },\n size: {\n sm: 'h-7 text-xs',\n md: 'h-8 text-sm',\n lg: 'group-data-[collapsible=icon]:p-0! h-12 text-sm',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'md',\n },\n});\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenuButton\n * -------------------------------------------------------------------------- */\n\nfunction SidebarMenuButton({\n asChild = false,\n isActive = false,\n variant = 'default',\n size = 'md',\n tooltip,\n className,\n ...props\n}: ComponentProps<'button'> &\n VariantProps<typeof sidebarMenuButtonVariants> & {\n asChild?: boolean;\n isActive?: boolean;\n tooltip?: ComponentProps<typeof TooltipContent> | string;\n }): JSX.Element {\n const Component = asChild ? Slot : 'button';\n const { isMobile, state } = useSidebar();\n\n const button = (\n <Component\n className={cn(sidebarMenuButtonVariants({ variant, size }), className)}\n data-active={isActive}\n data-sidebar=\"menu-button\"\n data-size={size}\n data-slot=\"sidebar-menu-button\"\n {...props}\n />\n );\n\n if (!tooltip) {\n return button;\n }\n\n if (typeof tooltip === 'string') {\n // eslint-disable-next-line no-param-reassign -- convert it to an object with default properties\n tooltip = {\n children: tooltip,\n };\n }\n\n return (\n <Tooltip>\n <TooltipTrigger asChild>{button}</TooltipTrigger>\n <TooltipContent align=\"center\" hidden={state !== 'collapsed' || isMobile} side=\"right\" {...tooltip} />\n </Tooltip>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenuAction\n * -------------------------------------------------------------------------- */\n\nfunction SidebarMenuAction({\n className,\n asChild = false,\n showOnHover = false,\n ...props\n}: ComponentProps<'button'> & {\n asChild?: boolean;\n showOnHover?: boolean;\n}): JSX.Element {\n const Component = asChild ? Slot : 'button';\n\n return (\n <Component\n className={cn(\n 'text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground outline-hidden focus-visible:ring-3 absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 transition-transform after:absolute after:-inset-2 group-data-[collapsible=icon]:hidden peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 md:after:hidden [&>svg]:size-4 [&>svg]:shrink-0',\n showOnHover &&\n 'peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0',\n className,\n )}\n data-sidebar=\"menu-action\"\n data-slot=\"sidebar-menu-action\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenuBadge\n * -------------------------------------------------------------------------- */\n\nfunction SidebarMenuBadge({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <div\n className={cn(\n 'text-sidebar-foreground peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums group-data-[collapsible=icon]:hidden peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1',\n className,\n )}\n data-sidebar=\"menu-badge\"\n data-slot=\"sidebar-menu-badge\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenuSkeleton\n * -------------------------------------------------------------------------- */\n\nfunction SidebarMenuSkeleton({\n className,\n showIcon = false,\n ...props\n}: ComponentProps<'div'> & {\n showIcon?: boolean;\n}): JSX.Element {\n // Random width between 50 to 90%.\n const width = useMemo(() => {\n return `${Math.floor(Math.random() * 40) + 50}%`;\n }, []);\n\n return (\n <div\n className={cn('flex h-8 items-center gap-2 rounded-md px-2', className)}\n data-sidebar=\"menu-skeleton\"\n data-slot=\"sidebar-menu-skeleton\"\n {...props}\n >\n {showIcon ? <Skeleton className=\"size-4 rounded-md\" data-sidebar=\"menu-skeleton-icon\" /> : null}\n <Skeleton\n className=\"max-w-(--skeleton-width) h-4 flex-1\"\n data-sidebar=\"menu-skeleton-text\"\n style={\n {\n '--skeleton-width': width,\n } as CSSProperties\n }\n />\n </div>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenuSub\n * -------------------------------------------------------------------------- */\n\nfunction SidebarMenuSub({ className, ...props }: ComponentProps<'ul'>): JSX.Element {\n return (\n <ul\n className={cn(\n 'border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5 group-data-[collapsible=icon]:hidden',\n className,\n )}\n data-sidebar=\"menu-sub\"\n data-slot=\"sidebar-menu-sub\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenuSubItem\n * -------------------------------------------------------------------------- */\n\nfunction SidebarMenuSubItem({ className, ...props }: ComponentProps<'li'>): JSX.Element {\n return (\n <li\n className={cn('group/menu-sub-item relative', className)}\n data-sidebar=\"menu-sub-item\"\n data-slot=\"sidebar-menu-sub-item\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SidebarMenuSubButton\n * -------------------------------------------------------------------------- */\n\nfunction SidebarMenuSubButton({\n asChild = false,\n size = 'md',\n isActive = false,\n className,\n ...props\n}: ComponentProps<'a'> & {\n asChild?: boolean;\n isActive?: boolean;\n size?: 'md' | 'sm';\n}): JSX.Element {\n const Component = asChild ? Slot : 'a';\n\n return (\n <Component\n className={cn(\n 'text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground outline-hidden focus-visible:ring-3 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0',\n size === 'sm' && 'text-xs',\n size === 'md' && 'text-sm',\n 'group-data-[collapsible=icon]:hidden',\n className,\n )}\n data-active={isActive}\n data-sidebar=\"menu-sub-button\"\n data-size={size}\n data-slot=\"sidebar-menu-sub-button\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Sidebar,\n SidebarContent,\n SidebarFooter,\n SidebarGroup,\n SidebarGroupAction,\n SidebarGroupContent,\n SidebarGroupLabel,\n SidebarHeader,\n SidebarInput,\n SidebarInset,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuBadge,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSkeleton,\n SidebarMenuSub,\n SidebarMenuSubButton,\n SidebarMenuSubItem,\n SidebarProvider,\n SidebarRail,\n SidebarSeparator,\n SidebarTrigger,\n useSidebar,\n};\n"]}
@@ -0,0 +1,2 @@
1
+ import{a as r}from"./chunk-OKUFCFYT.js";import{jsx as e}from"react/jsx-runtime";function d({className:t,...o}){return e("div",{className:r("bg-card text-card-foreground flex flex-col gap-6 overflow-auto rounded-xl border py-6 shadow-sm",t),"data-slot":"card",...o})}function s({className:t,...o}){return e("div",{className:r("@container/card-header [.border-b]:pb-6 grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-[data-slot=card-action]:grid-cols-[1fr_auto]",t),"data-slot":"card-header",...o})}function i({children:t,className:o,...a}){return e("div",{className:r("font-semibold leading-none",o),"data-slot":"card-title",...a,children:t})}function c({className:t,...o}){return e("div",{className:r("text-muted-foreground text-sm",t),"data-slot":"card-description",...o})}function l({className:t,...o}){return e("div",{className:r("px-6",t),"data-slot":"card-content",...o})}function m({className:t,...o}){return e("div",{className:r("[.border-t]:pt-6 flex items-center px-6",t),"data-slot":"card-footer",...o})}function p({className:t,...o}){return e("div",{className:r("col-start-2 row-span-2 row-start-1 self-start justify-self-end",t),"data-slot":"card-action",...o})}export{d as a,s as b,i as c,c as d,l as e,m as f,p as g};
2
+ //# sourceMappingURL=chunk-VR6XYLVU.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/card.tsx"],"names":["jsx","Card","className","props","cn","CardHeader","CardTitle","children","CardDescription","CardContent","CardFooter","CardAction"],"mappings":"wCAUI,cAAAA,MAAA,oBAFJ,SAASC,EAAK,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAuC,CACzE,OACEH,EAAC,OACC,UAAWI,EACT,kGACAF,CACF,EACA,YAAU,OACT,GAAGC,EACN,CAEJ,CAMA,SAASE,EAAW,CAAE,UAAAH,EAAW,GAAGC,CAAM,EAAuC,CAC/E,OACEH,EAAC,OACC,UAAWI,EACT,6JACAF,CACF,EACA,YAAU,cACT,GAAGC,EACN,CAEJ,CAMA,SAASG,EAAU,CAAE,SAAAC,EAAU,UAAAL,EAAW,GAAGC,CAAM,EAAuC,CACxF,OACEH,EAAC,OAAI,UAAWI,EAAG,6BAA8BF,CAAS,EAAG,YAAU,aAAc,GAAGC,EACrF,SAAAI,EACH,CAEJ,CAMA,SAASC,EAAgB,CAAE,UAAAN,EAAW,GAAGC,CAAM,EAAuC,CACpF,OAAOH,EAAC,OAAI,UAAWI,EAAG,gCAAiCF,CAAS,EAAG,YAAU,mBAAoB,GAAGC,EAAO,CACjH,CAMA,SAASM,EAAY,CAAE,UAAAP,EAAW,GAAGC,CAAM,EAAuC,CAChF,OAAOH,EAAC,OAAI,UAAWI,EAAG,OAAQF,CAAS,EAAG,YAAU,eAAgB,GAAGC,EAAO,CACpF,CAMA,SAASO,EAAW,CAAE,UAAAR,EAAW,GAAGC,CAAM,EAAuC,CAC/E,OACEH,EAAC,OAAI,UAAWI,EAAG,0CAA2CF,CAAS,EAAG,YAAU,cAAe,GAAGC,EAAO,CAEjH,CAMA,SAASQ,EAAW,CAAE,UAAAT,EAAW,GAAGC,CAAM,EAAuC,CAC/E,OACEH,EAAC,OACC,UAAWI,EAAG,iEAAkEF,CAAS,EACzF,YAAU,cACT,GAAGC,EACN,CAEJ","sourcesContent":["import type { ComponentProps, JSX } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Card\n * -------------------------------------------------------------------------- */\n\nfunction Card({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <div\n className={cn(\n 'bg-card text-card-foreground flex flex-col gap-6 overflow-auto rounded-xl border py-6 shadow-sm',\n className,\n )}\n data-slot=\"card\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CardHeader\n * -------------------------------------------------------------------------- */\n\nfunction CardHeader({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <div\n className={cn(\n '@container/card-header [.border-b]:pb-6 grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-[data-slot=card-action]:grid-cols-[1fr_auto]',\n className,\n )}\n data-slot=\"card-header\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CardTitle\n * -------------------------------------------------------------------------- */\n\nfunction CardTitle({ children, className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <div className={cn('font-semibold leading-none', className)} data-slot=\"card-title\" {...props}>\n {children}\n </div>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CardDescription\n * -------------------------------------------------------------------------- */\n\nfunction CardDescription({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return <div className={cn('text-muted-foreground text-sm', className)} data-slot=\"card-description\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CardContent\n * -------------------------------------------------------------------------- */\n\nfunction CardContent({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return <div className={cn('px-6', className)} data-slot=\"card-content\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CardFooter\n * -------------------------------------------------------------------------- */\n\nfunction CardFooter({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <div className={cn('[.border-t]:pt-6 flex items-center px-6', className)} data-slot=\"card-footer\" {...props} />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: CardAction\n * -------------------------------------------------------------------------- */\n\nfunction CardAction({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <div\n className={cn('col-start-2 row-span-2 row-start-1 self-start justify-self-end', className)}\n data-slot=\"card-action\"\n {...props}\n />\n );\n}\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };\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 _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _reacttabs = require('@radix-ui/react-tabs'); var t = _interopRequireWildcard(_reacttabs);var _jsxruntime = require('react/jsx-runtime');function a({...e}){return _jsxruntime.jsx.call(void 0, t.Root,{"data-slot":"tabs",...e})}function s({className:e,...i}){return _jsxruntime.jsx.call(void 0, t.List,{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-muted text-muted-foreground inline-flex items-center justify-center gap-1 rounded-xl px-1 py-1",e),"data-slot":"tabs-list",...i})}function d({className:e,...i}){return _jsxruntime.jsx.call(void 0, t.Trigger,{className:_chunkSMJEDCFPcjs.a.call(void 0, "data-[state=active]:bg-background dark:data-[state=active]:bg-input/50 text-foreground dark:text-muted-foreground focus-visible:ring-ring/50 focus-visible:ring-3 dark:outline-ring not-dark:outline-hidden dark:data-[state=active]:text-foreground inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-lg px-2 py-1.5 text-sm font-medium transition disabled:opacity-50 data-[state=active]:shadow-sm dark:-outline-offset-1 dark:data-[state=active]:outline-1 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0",e),"data-slot":"tabs-trigger",...i})}function m({className:e,...i}){return _jsxruntime.jsx.call(void 0, t.Content,{className:_chunkSMJEDCFPcjs.a.call(void 0, "outline-ring ring-ring/50 mt-2 rounded-xl focus-visible:outline-1 focus-visible:ring-4",e),"data-slot":"tabs-content",...i})}exports.a = a; exports.b = s; exports.c = d; exports.d = m;
2
- //# sourceMappingURL=chunk-Y3I5OCGY.cjs.map
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _reacttabs = require('@radix-ui/react-tabs'); var t = _interopRequireWildcard(_reacttabs);var _jsxruntime = require('react/jsx-runtime');function a({...e}){return _jsxruntime.jsx.call(void 0, t.Root,{"data-slot":"tabs",...e})}function s({className:e,...i}){return _jsxruntime.jsx.call(void 0, t.List,{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-muted text-muted-foreground inline-flex items-center justify-center gap-1 rounded-xl px-1 py-1",e),"data-slot":"tabs-list",...i})}function d({className:e,...i}){return _jsxruntime.jsx.call(void 0, t.Trigger,{className:_chunkSMJEDCFPcjs.a.call(void 0, "data-[state=active]:bg-background dark:data-[state=active]:bg-input/50 text-muted-foreground focus-visible:ring-ring/50 focus-visible:ring-3 dark:outline-ring not-dark:outline-hidden data-[state=active]:text-foreground hover:not-disabled:text-foreground inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-lg px-2 py-1.5 text-sm font-medium transition disabled:opacity-50 data-[state=active]:shadow-sm dark:-outline-offset-1 dark:data-[state=active]:outline-1 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0",e),"data-slot":"tabs-trigger",...i})}function m({className:e,...i}){return _jsxruntime.jsx.call(void 0, t.Content,{className:_chunkSMJEDCFPcjs.a.call(void 0, "outline-ring ring-ring/50 mt-2 rounded-xl focus-visible:outline-1 focus-visible:ring-4",e),"data-slot":"tabs-content",...i})}exports.a = a; exports.b = s; exports.c = d; exports.d = m;
2
+ //# sourceMappingURL=chunk-VSTEK27Z.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-Y3I5OCGY.cjs","../src/components/tabs.tsx"],"names":["Tabs","props","jsx","TabsList","className","cn","TabsTrigger","TabsContent"],"mappings":"AAAA,mZAAwC,8FCET,+CAStB,SADAA,CAAAA,CAAK,CAAE,GAAGC,CAAM,CAAA,CAA2D,CAClF,OAAOC,6BAAAA,CAAe,CAAA,IAAA,CAAd,CAAmB,WAAA,CAAU,MAAA,CAAQ,GAAGD,CAAAA,CAAO,CACzD,CAMA,SAASE,CAAAA,CAAS,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGH,CAAM,CAAA,CAA2D,CACjG,OACEC,6BAAAA,CAAe,CAAA,IAAA,CAAd,CACC,SAAA,CAAWG,iCAAAA,mGACT,CACAD,CACF,CAAA,CACA,WAAA,CAAU,WAAA,CACT,GAAGH,CAAAA,CACN,CAEJ,CAMA,SAASK,CAAAA,CAAY,CAAE,SAAA,CAAAF,CAAAA,CAAW,GAAGH,CAAM,CAAA,CAA8D,CACvG,OACEC,6BAAAA,CAAe,CAAA,OAAA,CAAd,CACC,SAAA,CAAWG,iCAAAA,ghBACT,CACAD,CACF,CAAA,CACA,WAAA,CAAU,cAAA,CACT,GAAGH,CAAAA,CACN,CAEJ,CAMA,SAASM,CAAAA,CAAY,CAAE,SAAA,CAAAH,CAAAA,CAAW,GAAGH,CAAM,CAAA,CAA8D,CACvG,OACEC,6BAAAA,CAAe,CAAA,OAAA,CAAd,CACC,SAAA,CAAWG,iCAAAA,wFACT,CACAD,CACF,CAAA,CACA,WAAA,CAAU,cAAA,CACT,GAAGH,CAAAA,CACN,CAEJ,CAAA,2DAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-Y3I5OCGY.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\n\nimport * as TabsPrimitive from '@radix-ui/react-tabs';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Tabs\n * -------------------------------------------------------------------------- */\n\nfunction Tabs({ ...props }: ComponentProps<typeof TabsPrimitive.Root>): JSX.Element {\n return <TabsPrimitive.Root data-slot=\"tabs\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TabsList\n * -------------------------------------------------------------------------- */\n\nfunction TabsList({ className, ...props }: ComponentProps<typeof TabsPrimitive.List>): JSX.Element {\n return (\n <TabsPrimitive.List\n className={cn(\n 'bg-muted text-muted-foreground inline-flex items-center justify-center gap-1 rounded-xl px-1 py-1',\n className,\n )}\n data-slot=\"tabs-list\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TabsTrigger\n * -------------------------------------------------------------------------- */\n\nfunction TabsTrigger({ className, ...props }: ComponentProps<typeof TabsPrimitive.Trigger>): JSX.Element {\n return (\n <TabsPrimitive.Trigger\n className={cn(\n \"data-[state=active]:bg-background dark:data-[state=active]:bg-input/50 text-foreground dark:text-muted-foreground focus-visible:ring-ring/50 focus-visible:ring-3 dark:outline-ring not-dark:outline-hidden dark:data-[state=active]:text-foreground inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-lg px-2 py-1.5 text-sm font-medium transition disabled:opacity-50 data-[state=active]:shadow-sm dark:-outline-offset-1 dark:data-[state=active]:outline-1 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0\",\n className,\n )}\n data-slot=\"tabs-trigger\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TabsContent\n * -------------------------------------------------------------------------- */\n\nfunction TabsContent({ className, ...props }: ComponentProps<typeof TabsPrimitive.Content>): JSX.Element {\n return (\n <TabsPrimitive.Content\n className={cn(\n 'outline-ring ring-ring/50 mt-2 rounded-xl focus-visible:outline-1 focus-visible:ring-4',\n className,\n )}\n data-slot=\"tabs-content\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Tabs, TabsContent, TabsList, TabsTrigger };\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-VSTEK27Z.cjs","../src/components/tabs.tsx"],"names":["Tabs","props","jsx","TabsList","className","cn","TabsTrigger","TabsContent"],"mappings":"AAAA,mZAAwC,8FCET,+CAStB,SADAA,CAAAA,CAAK,CAAE,GAAGC,CAAM,CAAA,CAA2D,CAClF,OAAOC,6BAAAA,CAAe,CAAA,IAAA,CAAd,CAAmB,WAAA,CAAU,MAAA,CAAQ,GAAGD,CAAAA,CAAO,CACzD,CAMA,SAASE,CAAAA,CAAS,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGH,CAAM,CAAA,CAA2D,CACjG,OACEC,6BAAAA,CAAe,CAAA,IAAA,CAAd,CACC,SAAA,CAAWG,iCAAAA,mGACT,CACAD,CACF,CAAA,CACA,WAAA,CAAU,WAAA,CACT,GAAGH,CAAAA,CACN,CAEJ,CAMA,SAASK,CAAAA,CAAY,CAAE,SAAA,CAAAF,CAAAA,CAAW,GAAGH,CAAM,CAAA,CAA8D,CACvG,OACEC,6BAAAA,CAAe,CAAA,OAAA,CAAd,CACC,SAAA,CAAWG,iCAAAA,yhBACT,CACAD,CACF,CAAA,CACA,WAAA,CAAU,cAAA,CACT,GAAGH,CAAAA,CACN,CAEJ,CAMA,SAASM,CAAAA,CAAY,CAAE,SAAA,CAAAH,CAAAA,CAAW,GAAGH,CAAM,CAAA,CAA8D,CACvG,OACEC,6BAAAA,CAAe,CAAA,OAAA,CAAd,CACC,SAAA,CAAWG,iCAAAA,wFACT,CACAD,CACF,CAAA,CACA,WAAA,CAAU,cAAA,CACT,GAAGH,CAAAA,CACN,CAEJ,CAAA,2DAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-VSTEK27Z.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\n\nimport * as TabsPrimitive from '@radix-ui/react-tabs';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Tabs\n * -------------------------------------------------------------------------- */\n\nfunction Tabs({ ...props }: ComponentProps<typeof TabsPrimitive.Root>): JSX.Element {\n return <TabsPrimitive.Root data-slot=\"tabs\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TabsList\n * -------------------------------------------------------------------------- */\n\nfunction TabsList({ className, ...props }: ComponentProps<typeof TabsPrimitive.List>): JSX.Element {\n return (\n <TabsPrimitive.List\n className={cn(\n 'bg-muted text-muted-foreground inline-flex items-center justify-center gap-1 rounded-xl px-1 py-1',\n className,\n )}\n data-slot=\"tabs-list\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TabsTrigger\n * -------------------------------------------------------------------------- */\n\nfunction TabsTrigger({ className, ...props }: ComponentProps<typeof TabsPrimitive.Trigger>): JSX.Element {\n return (\n <TabsPrimitive.Trigger\n className={cn(\n \"data-[state=active]:bg-background dark:data-[state=active]:bg-input/50 text-muted-foreground focus-visible:ring-ring/50 focus-visible:ring-3 dark:outline-ring not-dark:outline-hidden data-[state=active]:text-foreground hover:not-disabled:text-foreground inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-lg px-2 py-1.5 text-sm font-medium transition disabled:opacity-50 data-[state=active]:shadow-sm dark:-outline-offset-1 dark:data-[state=active]:outline-1 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0\",\n className,\n )}\n data-slot=\"tabs-trigger\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TabsContent\n * -------------------------------------------------------------------------- */\n\nfunction TabsContent({ className, ...props }: ComponentProps<typeof TabsPrimitive.Content>): JSX.Element {\n return (\n <TabsPrimitive.Content\n className={cn(\n 'outline-ring ring-ring/50 mt-2 rounded-xl focus-visible:outline-1 focus-visible:ring-4',\n className,\n )}\n data-slot=\"tabs-content\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Tabs, TabsContent, TabsList, TabsTrigger };\n"]}
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk-B74UCONC.js";import{a as i}from"./chunk-ZFCLI44C.js";import{a as o}from"./chunk-FR7P352M.js";import{a as e}from"./chunk-OKUFCFYT.js";import*as t from"@codefast-ui/input-number";import{ChevronDownIcon as V,ChevronUpIcon as D}from"lucide-react";import{jsx as r,jsxs as a}from"react/jsx-runtime";var{input:B,root:k}=n();function R({id:u,ariaDecrementLabel:s,ariaIncrementLabel:d,className:m,defaultValue:p,disabled:l,formatOptions:b,loaderPosition:c,loading:v,max:f,min:g,onChange:h,prefix:I,readOnly:N,spinner:P,step:C,suffix:w,value:x,...y}){return a(t.Root,{ariaDecrementLabel:s,ariaIncrementLabel:d,className:k({className:["group pr-0",m]}),"data-slot":"input-number",defaultValue:p,disabled:l,formatOptions:b,id:u,loaderPosition:c,loading:v,max:f,min:g,prefix:I,readOnly:N,spinner:P||r(o,{}),step:C,suffix:w,value:x,onChange:h,children:[r(t.Item,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",className:B(),spellCheck:"false",...y}),a("div",{className:e("divide-input border-l-input group-hover:not-group-focus-within:not-has-disabled:border-l-border-ring/60 group-hover:not-group-focus-within:not-has-disabled:divide-border-ring/60 group-focus-within:border-l-ring group-focus-within:divide-ring group-has-aria-invalid:border-l-destructive group-has-aria-invalid:divide-destructive group-hover:group-has-aria-invalid:not-group-focus-within:not-has-disabled:border-l-destructive/60 group-hover:group-has-aria-invalid:not-group-focus-within:not-has-disabled:divide-destructive/60 order-last ml-auto grid h-full shrink-0 divide-y border-l transition","*:[button]:focus-visible:ring-0 *:[button]:focus-visible:bg-ring/50 group-has-aria-invalid:*:[button]:focus-visible:bg-destructive/20 dark:group-has-aria-invalid:*:[button]:focus-visible:bg-destructive/40"),"data-slot":"input-number-buttons",children:[r(t.IncrementButton,{"aria-label":"Increment",className:i({className:"text-muted-foreground h-auto rounded-none rounded-tr-[calc(var(--radius-lg)-1px)]",variant:"ghost"}),"data-slot":"input-number-increment-button",children:r(D,{})}),r(t.DecrementButton,{"aria-label":"Decrement",className:i({className:"text-muted-foreground h-auto rounded-none rounded-br-[calc(var(--radius-lg)-1px)]",variant:"ghost"}),"data-slot":"input-number-decrement-button",children:r(V,{})})]})]})}var z=R;export{R as a,z as b};
2
- //# sourceMappingURL=chunk-TKFPSQNE.js.map
1
+ import{a as n}from"./chunk-B74UCONC.js";import{a as i}from"./chunk-3E3ZQIUX.js";import{a as o}from"./chunk-FR7P352M.js";import{a as e}from"./chunk-OKUFCFYT.js";import*as t from"@codefast-ui/input-number";import{ChevronDownIcon as V,ChevronUpIcon as D}from"lucide-react";import{jsx as r,jsxs as a}from"react/jsx-runtime";var{input:B,root:k}=n();function R({id:u,ariaDecrementLabel:s,ariaIncrementLabel:d,className:m,defaultValue:p,disabled:l,formatOptions:b,loaderPosition:c,loading:v,max:f,min:g,onChange:h,prefix:I,readOnly:N,spinner:P,step:C,suffix:w,value:x,...y}){return a(t.Root,{ariaDecrementLabel:s,ariaIncrementLabel:d,className:k({className:["group pr-0",m]}),"data-slot":"input-number",defaultValue:p,disabled:l,formatOptions:b,id:u,loaderPosition:c,loading:v,max:f,min:g,prefix:I,readOnly:N,spinner:P||r(o,{}),step:C,suffix:w,value:x,onChange:h,children:[r(t.Item,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",className:B(),spellCheck:"false",...y}),a("div",{className:e("divide-input border-l-input group-hover:not-group-focus-within:not-has-disabled:border-l-border-ring/60 group-hover:not-group-focus-within:not-has-disabled:divide-border-ring/60 group-focus-within:border-l-ring group-focus-within:divide-ring group-has-aria-invalid:border-l-destructive group-has-aria-invalid:divide-destructive group-hover:group-has-aria-invalid:not-group-focus-within:not-has-disabled:border-l-destructive/60 group-hover:group-has-aria-invalid:not-group-focus-within:not-has-disabled:divide-destructive/60 order-last ml-auto grid h-full shrink-0 divide-y border-l transition","*:[button]:focus-visible:ring-0 *:[button]:focus-visible:bg-ring/50 group-has-aria-invalid:*:[button]:focus-visible:bg-destructive/20 dark:group-has-aria-invalid:*:[button]:focus-visible:bg-destructive/40"),"data-slot":"input-number-buttons",children:[r(t.IncrementButton,{"aria-label":"Increment",className:i({className:"text-muted-foreground h-auto rounded-none rounded-tr-[calc(var(--radius-lg)-1px)]",variant:"ghost"}),"data-slot":"input-number-increment-button",children:r(D,{})}),r(t.DecrementButton,{"aria-label":"Decrement",className:i({className:"text-muted-foreground h-auto rounded-none rounded-br-[calc(var(--radius-lg)-1px)]",variant:"ghost"}),"data-slot":"input-number-decrement-button",children:r(V,{})})]})]})}var z=R;export{R as a,z as b};
2
+ //# sourceMappingURL=chunk-W22VAO5F.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkTNP6NVCRcjs = require('./chunk-TNP6NVCR.cjs');var _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _reactdialog = require('@radix-ui/react-dialog'); var o = _interopRequireWildcard(_reactdialog);var _lucidereact = require('lucide-react');var _jsxruntime = require('react/jsx-runtime');function f({...t}){return _jsxruntime.jsx.call(void 0, o.Root,{"data-slot":"dialog",...t})}function c({...t}){return _jsxruntime.jsx.call(void 0, o.Trigger,{"data-slot":"dialog-trigger",...t})}function u({children:t,className:e,classNames:r,...n}){return _jsxruntime.jsxs.call(void 0, o.Portal,{children:[_jsxruntime.jsx.call(void 0, o.Overlay,{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-popover-overlay data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50",_optionalChain([r, 'optionalAccess', _ => _.overlay])),"data-slot":"dialog-overlay"}),_jsxruntime.jsx.call(void 0, o.Content,{className:_chunkSMJEDCFPcjs.a.call(void 0, "data-[state=open]:animate-in max-sm:data-[state=open]:animation-duration-500 max-sm:data-[state=open]:slide-in-from-bottom sm:data-[state=open]:fade-in-0 sm:data-[state=open]:zoom-in-95 data-[state=closed]:animate-out max-sm:data-[state=closed]:animation-duration-500 max-sm:data-[state=closed]:slide-out-to-bottom sm:data-[state=closed]:fade-out-0 sm:data-[state=closed]:zoom-out-95 fixed inset-0 z-50 grid grid-rows-[1fr_auto] justify-items-center overflow-auto sm:grid-rows-[1fr_auto_3fr] sm:p-4",_optionalChain([r, 'optionalAccess', _2 => _2.wrapper])),"data-slot":"dialog-content-wrapper",...n,children:_jsxruntime.jsxs.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-popover text-popover-foreground relative row-start-2 flex w-full flex-col rounded-t-2xl border shadow-lg sm:max-w-lg sm:rounded-2xl",_optionalChain([r, 'optionalAccess', _3 => _3.content]),e),"data-slot":"dialog-content",children:[t,_jsxruntime.jsxs.call(void 0, o.Close,{className:_chunkTNP6NVCRcjs.a.call(void 0, {className:["absolute right-2.5 top-2.5 size-7",_optionalChain([r, 'optionalAccess', _4 => _4.close])],size:"icon",variant:"ghost"}),"data-slot":"dialog-close",children:[_jsxruntime.jsx.call(void 0, _lucidereact.XIcon,{className:"size-4"}),_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"Close"})]})]})})]})}function v({className:t,...e}){return _jsxruntime.jsx.call(void 0, "header",{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex shrink-0 flex-col gap-1.5 px-6 pb-2 pt-6 text-center sm:text-left",t),"data-slot":"dialog-header",...e})}function P({className:t,...e}){return _jsxruntime.jsx.call(void 0, "main",{className:_chunkSMJEDCFPcjs.a.call(void 0, "overflow-auto px-6 py-2",t),"data-slot":"dialog-body",...e})}function D({className:t,...e}){return _jsxruntime.jsx.call(void 0, "footer",{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-2 sm:flex-row sm:justify-end",t),"data-slot":"dialog-footer",...e})}function x({className:t,...e}){return _jsxruntime.jsx.call(void 0, o.Title,{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-lg font-semibold leading-none tracking-tight",t),"data-slot":"dialog-title",...e})}function y({className:t,...e}){return _jsxruntime.jsx.call(void 0, o.Description,{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-muted-foreground text-sm",t),"data-slot":"dialog-description",...e})}function C({className:t,size:e,variant:r="outline",...n}){return _jsxruntime.jsx.call(void 0, o.Close,{className:_chunkTNP6NVCRcjs.a.call(void 0, {className:t,size:e,variant:r}),"data-slot":"dialog-close",...n})}exports.a = f; exports.b = c; exports.c = u; exports.d = v; exports.e = P; exports.f = D; exports.g = x; exports.h = y; exports.i = C;
2
- //# sourceMappingURL=chunk-62FSD36V.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; } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkOSBDYGS3cjs = require('./chunk-OSBDYGS3.cjs');var _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _reactdialog = require('@radix-ui/react-dialog'); var o = _interopRequireWildcard(_reactdialog);var _lucidereact = require('lucide-react');var _jsxruntime = require('react/jsx-runtime');function f({...t}){return _jsxruntime.jsx.call(void 0, o.Root,{"data-slot":"dialog",...t})}function c({...t}){return _jsxruntime.jsx.call(void 0, o.Trigger,{"data-slot":"dialog-trigger",...t})}function u({children:t,className:e,classNames:r,...n}){return _jsxruntime.jsxs.call(void 0, o.Portal,{children:[_jsxruntime.jsx.call(void 0, o.Overlay,{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-popover-overlay data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50",_optionalChain([r, 'optionalAccess', _ => _.overlay])),"data-slot":"dialog-overlay"}),_jsxruntime.jsx.call(void 0, o.Content,{className:_chunkSMJEDCFPcjs.a.call(void 0, "data-[state=open]:animate-in max-sm:data-[state=open]:animation-duration-500 max-sm:data-[state=open]:slide-in-from-bottom sm:data-[state=open]:fade-in-0 sm:data-[state=open]:zoom-in-95 data-[state=closed]:animate-out max-sm:data-[state=closed]:animation-duration-500 max-sm:data-[state=closed]:slide-out-to-bottom sm:data-[state=closed]:fade-out-0 sm:data-[state=closed]:zoom-out-95 fixed inset-0 z-50 grid grid-rows-[1fr_auto] justify-items-center overflow-auto sm:grid-rows-[1fr_auto_3fr] sm:p-4",_optionalChain([r, 'optionalAccess', _2 => _2.wrapper])),"data-slot":"dialog-content-wrapper",...n,children:_jsxruntime.jsxs.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "bg-popover text-popover-foreground relative row-start-2 flex w-full flex-col rounded-t-2xl border shadow-lg sm:max-w-lg sm:rounded-2xl",_optionalChain([r, 'optionalAccess', _3 => _3.content]),e),"data-slot":"dialog-content",children:[t,_jsxruntime.jsxs.call(void 0, o.Close,{className:_chunkOSBDYGS3cjs.a.call(void 0, {className:["absolute right-2.5 top-2.5 size-7",_optionalChain([r, 'optionalAccess', _4 => _4.close])],size:"icon",variant:"ghost"}),"data-slot":"dialog-close",children:[_jsxruntime.jsx.call(void 0, _lucidereact.XIcon,{className:"size-4"}),_jsxruntime.jsx.call(void 0, "span",{className:"sr-only",children:"Close"})]})]})})]})}function v({className:t,...e}){return _jsxruntime.jsx.call(void 0, "header",{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex shrink-0 flex-col gap-1.5 px-6 pb-2 pt-6 text-center sm:text-left",t),"data-slot":"dialog-header",...e})}function P({className:t,...e}){return _jsxruntime.jsx.call(void 0, "main",{className:_chunkSMJEDCFPcjs.a.call(void 0, "overflow-auto px-6 py-2",t),"data-slot":"dialog-body",...e})}function D({className:t,...e}){return _jsxruntime.jsx.call(void 0, "footer",{className:_chunkSMJEDCFPcjs.a.call(void 0, "flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-2 sm:flex-row sm:justify-end",t),"data-slot":"dialog-footer",...e})}function x({className:t,...e}){return _jsxruntime.jsx.call(void 0, o.Title,{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-lg font-semibold leading-none tracking-tight",t),"data-slot":"dialog-title",...e})}function y({className:t,...e}){return _jsxruntime.jsx.call(void 0, o.Description,{className:_chunkSMJEDCFPcjs.a.call(void 0, "text-muted-foreground text-sm",t),"data-slot":"dialog-description",...e})}function C({className:t,size:e,variant:r="outline",...n}){return _jsxruntime.jsx.call(void 0, o.Close,{className:_chunkOSBDYGS3cjs.a.call(void 0, {className:t,size:e,variant:r}),"data-slot":"dialog-close",...n})}exports.a = f; exports.b = c; exports.c = u; exports.d = v; exports.e = P; exports.f = D; exports.g = x; exports.h = y; exports.i = C;
2
+ //# sourceMappingURL=chunk-W7IUS6U5.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-62FSD36V.cjs","../src/components/dialog.tsx"],"names":["Dialog","props","jsx","DialogTrigger","DialogContent","children","className","classNames","jsxs","cn","buttonVariants","XIcon","DialogHeader","DialogBody","DialogFooter","DialogTitle","DialogDescription","DialogClose","size","variant"],"mappings":"AAAA,u5BAAwC,wDAAyC,oGCGhD,2CACX,+CAUb,SADAA,CAAAA,CAAO,CAAE,GAAGC,CAAM,CAAA,CAA6D,CACtF,OAAOC,6BAAAA,CAAiB,CAAA,IAAA,CAAhB,CAAqB,WAAA,CAAU,QAAA,CAAU,GAAGD,CAAAA,CAAO,CAC7D,CAMA,SAASE,CAAAA,CAAc,CAAE,GAAGF,CAAM,CAAA,CAAgE,CAChG,OAAOC,6BAAAA,CAAiB,CAAA,OAAA,CAAhB,CAAwB,WAAA,CAAU,gBAAA,CAAkB,GAAGD,CAAAA,CAAO,CACxE,CAMA,SAASG,CAAAA,CAAc,CACrB,QAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,GAAGN,CACL,CAAA,CAOgB,CACd,OACEO,8BAAAA,CAAiB,CAAA,MAAA,CAAhB,CACC,QAAA,CAAA,CAAAN,6BAAAA,CAAiB,CAAA,OAAA,CAAhB,CACC,SAAA,CAAWO,iCAAAA,8GACT,iBACAF,CAAAA,2BAAY,SACd,CAAA,CACA,WAAA,CAAU,gBAAA,CACZ,CAAA,CACAL,6BAAAA,CAAiB,CAAA,OAAA,CAAhB,CACC,SAAA,CAAWO,iCAAAA,ofACT,iBACAF,CAAAA,6BAAY,SACd,CAAA,CACA,WAAA,CAAU,wBAAA,CACT,GAAGN,CAAAA,CAEJ,QAAA,CAAAO,8BAAAA,KAAC,CAAA,CACC,SAAA,CAAWC,iCAAAA,wIACT,iBACAF,CAAAA,6BAAY,SAAA,CACZD,CACF,CAAA,CACA,WAAA,CAAU,gBAAA,CAET,QAAA,CAAA,CAAAD,CAAAA,CACDG,8BAAAA,CAAiB,CAAA,KA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B,CACC,SAAA,CAAWO,iCAAAA,mDAAG,CAAqDH,CAAS,CAAA,CAC5E,WAAA,CAAU,cAAA,CACT,GAAGL,CAAAA,CACN,CAEJ,CAMA,SAASe,CAAAA,CAAkB,CAAE,SAAA,CAAAV,CAAAA,CAAW,GAAGL,CAAM,CAAA,CAAoE,CACnH,OACEC,6BAAAA,CAAiB,CAAA,WAAA,CAAhB,CACC,SAAA,CAAWO,iCAAAA,+BAAG,CAAiCH,CAAS,CAAA,CACxD,WAAA,CAAU,oBAAA,CACT,GAAGL,CAAAA,CACN,CAEJ,CAMA,SAASgB,CAAAA,CAAY,CACnB,SAAA,CAAAX,CAAAA,CACA,IAAA,CAAAY,CAAAA,CACA,OAAA,CAAAC,CAAAA,CAAU,SAAA,CACV,GAAGlB,CACL,CAAA,CAGgB,CACd,OACEC,6BAAAA,CAAiB,CAAA,KAAA,CAAhB,CACC,SAAA,CAAWQ,iCAAAA,CAAiB,SAAA,CAAAJ,CAAAA,CAAW,IAAA,CAAAY,CAAAA,CAAM,OAAA,CAAAC,CAAQ,CAAC,CAAA,CACtD,WAAA,CAAU,cAAA,CACT,GAAGlB,CAAAA,CACN,CAEJ,CAAA,sIAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-62FSD36V.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\nimport type { VariantProps } from 'tailwind-variants';\n\nimport * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { XIcon } from 'lucide-react';\n\nimport { buttonVariants } from '@/components/button';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Dialog\n * -------------------------------------------------------------------------- */\n\nfunction Dialog({ ...props }: ComponentProps<typeof DialogPrimitive.Root>): JSX.Element {\n return <DialogPrimitive.Root data-slot=\"dialog\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogTrigger\n * -------------------------------------------------------------------------- */\n\nfunction DialogTrigger({ ...props }: ComponentProps<typeof DialogPrimitive.Trigger>): JSX.Element {\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogContent\n * -------------------------------------------------------------------------- */\n\nfunction DialogContent({\n children,\n className,\n classNames,\n ...props\n}: ComponentProps<typeof DialogPrimitive.Content> & {\n classNames?: {\n close?: string;\n content?: string;\n overlay?: string;\n wrapper?: string;\n };\n}): JSX.Element {\n return (\n <DialogPrimitive.Portal>\n <DialogPrimitive.Overlay\n className={cn(\n 'bg-popover-overlay data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50',\n classNames?.overlay,\n )}\n data-slot=\"dialog-overlay\"\n />\n <DialogPrimitive.Content\n className={cn(\n 'data-[state=open]:animate-in max-sm:data-[state=open]:animation-duration-500 max-sm:data-[state=open]:slide-in-from-bottom sm:data-[state=open]:fade-in-0 sm:data-[state=open]:zoom-in-95 data-[state=closed]:animate-out max-sm:data-[state=closed]:animation-duration-500 max-sm:data-[state=closed]:slide-out-to-bottom sm:data-[state=closed]:fade-out-0 sm:data-[state=closed]:zoom-out-95 fixed inset-0 z-50 grid grid-rows-[1fr_auto] justify-items-center overflow-auto sm:grid-rows-[1fr_auto_3fr] sm:p-4',\n classNames?.wrapper,\n )}\n data-slot=\"dialog-content-wrapper\"\n {...props}\n >\n <div\n className={cn(\n 'bg-popover text-popover-foreground relative row-start-2 flex w-full flex-col rounded-t-2xl border shadow-lg sm:max-w-lg sm:rounded-2xl',\n classNames?.content,\n className,\n )}\n data-slot=\"dialog-content\"\n >\n {children}\n <DialogPrimitive.Close\n className={buttonVariants({\n className: ['absolute right-2.5 top-2.5 size-7', classNames?.close],\n size: 'icon',\n variant: 'ghost',\n })}\n data-slot=\"dialog-close\"\n >\n <XIcon className=\"size-4\" />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n </div>\n </DialogPrimitive.Content>\n </DialogPrimitive.Portal>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogHeader\n * -------------------------------------------------------------------------- */\n\nfunction DialogHeader({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <header\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-2 pt-6 text-center sm:text-left', className)}\n data-slot=\"dialog-header\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogBody\n * -------------------------------------------------------------------------- */\n\nfunction DialogBody({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return <main className={cn('overflow-auto px-6 py-2', className)} data-slot=\"dialog-body\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogFooter\n * -------------------------------------------------------------------------- */\n\nfunction DialogFooter({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <footer\n className={cn('flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-2 sm:flex-row sm:justify-end', className)}\n data-slot=\"dialog-footer\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogTitle\n * -------------------------------------------------------------------------- */\n\nfunction DialogTitle({ className, ...props }: ComponentProps<typeof DialogPrimitive.Title>): JSX.Element {\n return (\n <DialogPrimitive.Title\n className={cn('text-lg font-semibold leading-none tracking-tight', className)}\n data-slot=\"dialog-title\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogDescription\n * -------------------------------------------------------------------------- */\n\nfunction DialogDescription({ className, ...props }: ComponentProps<typeof DialogPrimitive.Description>): JSX.Element {\n return (\n <DialogPrimitive.Description\n className={cn('text-muted-foreground text-sm', className)}\n data-slot=\"dialog-description\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogClose\n * -------------------------------------------------------------------------- */\n\nfunction DialogClose({\n className,\n size,\n variant = 'outline',\n ...props\n}: Omit<ComponentProps<typeof DialogPrimitive.Close>, 'ref'> & {\n size?: VariantProps<typeof buttonVariants>['size'];\n variant?: VariantProps<typeof buttonVariants>['variant'];\n}): JSX.Element {\n return (\n <DialogPrimitive.Close\n className={buttonVariants({ className, size, variant })}\n data-slot=\"dialog-close\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Dialog,\n DialogBody,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n DialogTrigger,\n};\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-W7IUS6U5.cjs","../src/components/dialog.tsx"],"names":["Dialog","props","jsx","DialogTrigger","DialogContent","children","className","classNames","jsxs","cn","buttonVariants","XIcon","DialogHeader","DialogBody","DialogFooter","DialogTitle","DialogDescription","DialogClose","size","variant"],"mappings":"AAAA,u5BAAwC,wDAAyC,oGCGhD,2CACX,+CAUb,SADAA,CAAAA,CAAO,CAAE,GAAGC,CAAM,CAAA,CAA6D,CACtF,OAAOC,6BAAAA,CAAiB,CAAA,IAAA,CAAhB,CAAqB,WAAA,CAAU,QAAA,CAAU,GAAGD,CAAAA,CAAO,CAC7D,CAMA,SAASE,CAAAA,CAAc,CAAE,GAAGF,CAAM,CAAA,CAAgE,CAChG,OAAOC,6BAAAA,CAAiB,CAAA,OAAA,CAAhB,CAAwB,WAAA,CAAU,gBAAA,CAAkB,GAAGD,CAAAA,CAAO,CACxE,CAMA,SAASG,CAAAA,CAAc,CACrB,QAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,GAAGN,CACL,CAAA,CAOgB,CACd,OACEO,8BAAAA,CAAiB,CAAA,MAAA,CAAhB,CACC,QAAA,CAAA,CAAAN,6BAAAA,CAAiB,CAAA,OAAA,CAAhB,CACC,SAAA,CAAWO,iCAAAA,8GACT,iBACAF,CAAAA,2BAAY,SACd,CAAA,CACA,WAAA,CAAU,gBAAA,CACZ,CAAA,CACAL,6BAAAA,CAAiB,CAAA,OAAA,CAAhB,CACC,SAAA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AAW,GAAGL,CAAM,CAAA,CAAuC,CACjF,OACEC,6BAAAA,QAAC,CAAA,CACC,SAAA,CAAWO,iCAAAA,gFAAG,CAAkFH,CAAS,CAAA,CACzG,WAAA,CAAU,eAAA,CACT,GAAGL,CAAAA,CACN,CAEJ,CAMA,SAASc,CAAAA,CAAY,CAAE,SAAA,CAAAT,CAAAA,CAAW,GAAGL,CAAM,CAAA,CAA8D,CACvG,OACEC,6BAAAA,CAAiB,CAAA,KAAA,CAAhB,CACC,SAAA,CAAWO,iCAAAA,mDAAG,CAAqDH,CAAS,CAAA,CAC5E,WAAA,CAAU,cAAA,CACT,GAAGL,CAAAA,CACN,CAEJ,CAMA,SAASe,CAAAA,CAAkB,CAAE,SAAA,CAAAV,CAAAA,CAAW,GAAGL,CAAM,CAAA,CAAoE,CACnH,OACEC,6BAAAA,CAAiB,CAAA,WAAA,CAAhB,CACC,SAAA,CAAWO,iCAAAA,+BAAG,CAAiCH,CAAS,CAAA,CACxD,WAAA,CAAU,oBAAA,CACT,GAAGL,CAAAA,CACN,CAEJ,CAMA,SAASgB,CAAAA,CAAY,CACnB,SAAA,CAAAX,CAAAA,CACA,IAAA,CAAAY,CAAAA,CACA,OAAA,CAAAC,CAAAA,CAAU,SAAA,CACV,GAAGlB,CACL,CAAA,CAGgB,CACd,OACEC,6BAAAA,CAAiB,CAAA,KAAA,CAAhB,CACC,SAAA,CAAWQ,iCAAAA,CAAiB,SAAA,CAAAJ,CAAAA,CAAW,IAAA,CAAAY,CAAAA,CAAM,OAAA,CAAAC,CAAQ,CAAC,CAAA,CACtD,WAAA,CAAU,cAAA,CACT,GAAGlB,CAAAA,CACN,CAEJ,CAAA,sIAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-W7IUS6U5.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\nimport type { VariantProps } from 'tailwind-variants';\n\nimport * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { XIcon } from 'lucide-react';\n\nimport { buttonVariants } from '@/components/button';\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Dialog\n * -------------------------------------------------------------------------- */\n\nfunction Dialog({ ...props }: ComponentProps<typeof DialogPrimitive.Root>): JSX.Element {\n return <DialogPrimitive.Root data-slot=\"dialog\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogTrigger\n * -------------------------------------------------------------------------- */\n\nfunction DialogTrigger({ ...props }: ComponentProps<typeof DialogPrimitive.Trigger>): JSX.Element {\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogContent\n * -------------------------------------------------------------------------- */\n\nfunction DialogContent({\n children,\n className,\n classNames,\n ...props\n}: ComponentProps<typeof DialogPrimitive.Content> & {\n classNames?: {\n close?: string;\n content?: string;\n overlay?: string;\n wrapper?: string;\n };\n}): JSX.Element {\n return (\n <DialogPrimitive.Portal>\n <DialogPrimitive.Overlay\n className={cn(\n 'bg-popover-overlay data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50',\n classNames?.overlay,\n )}\n data-slot=\"dialog-overlay\"\n />\n <DialogPrimitive.Content\n className={cn(\n 'data-[state=open]:animate-in max-sm:data-[state=open]:animation-duration-500 max-sm:data-[state=open]:slide-in-from-bottom sm:data-[state=open]:fade-in-0 sm:data-[state=open]:zoom-in-95 data-[state=closed]:animate-out max-sm:data-[state=closed]:animation-duration-500 max-sm:data-[state=closed]:slide-out-to-bottom sm:data-[state=closed]:fade-out-0 sm:data-[state=closed]:zoom-out-95 fixed inset-0 z-50 grid grid-rows-[1fr_auto] justify-items-center overflow-auto sm:grid-rows-[1fr_auto_3fr] sm:p-4',\n classNames?.wrapper,\n )}\n data-slot=\"dialog-content-wrapper\"\n {...props}\n >\n <div\n className={cn(\n 'bg-popover text-popover-foreground relative row-start-2 flex w-full flex-col rounded-t-2xl border shadow-lg sm:max-w-lg sm:rounded-2xl',\n classNames?.content,\n className,\n )}\n data-slot=\"dialog-content\"\n >\n {children}\n <DialogPrimitive.Close\n className={buttonVariants({\n className: ['absolute right-2.5 top-2.5 size-7', classNames?.close],\n size: 'icon',\n variant: 'ghost',\n })}\n data-slot=\"dialog-close\"\n >\n <XIcon className=\"size-4\" />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n </div>\n </DialogPrimitive.Content>\n </DialogPrimitive.Portal>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogHeader\n * -------------------------------------------------------------------------- */\n\nfunction DialogHeader({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <header\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-2 pt-6 text-center sm:text-left', className)}\n data-slot=\"dialog-header\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogBody\n * -------------------------------------------------------------------------- */\n\nfunction DialogBody({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return <main className={cn('overflow-auto px-6 py-2', className)} data-slot=\"dialog-body\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogFooter\n * -------------------------------------------------------------------------- */\n\nfunction DialogFooter({ className, ...props }: ComponentProps<'div'>): JSX.Element {\n return (\n <footer\n className={cn('flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-2 sm:flex-row sm:justify-end', className)}\n data-slot=\"dialog-footer\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogTitle\n * -------------------------------------------------------------------------- */\n\nfunction DialogTitle({ className, ...props }: ComponentProps<typeof DialogPrimitive.Title>): JSX.Element {\n return (\n <DialogPrimitive.Title\n className={cn('text-lg font-semibold leading-none tracking-tight', className)}\n data-slot=\"dialog-title\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogDescription\n * -------------------------------------------------------------------------- */\n\nfunction DialogDescription({ className, ...props }: ComponentProps<typeof DialogPrimitive.Description>): JSX.Element {\n return (\n <DialogPrimitive.Description\n className={cn('text-muted-foreground text-sm', className)}\n data-slot=\"dialog-description\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DialogClose\n * -------------------------------------------------------------------------- */\n\nfunction DialogClose({\n className,\n size,\n variant = 'outline',\n ...props\n}: Omit<ComponentProps<typeof DialogPrimitive.Close>, 'ref'> & {\n size?: VariantProps<typeof buttonVariants>['size'];\n variant?: VariantProps<typeof buttonVariants>['variant'];\n}): JSX.Element {\n return (\n <DialogPrimitive.Close\n className={buttonVariants({ className, size, variant })}\n data-slot=\"dialog-close\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Dialog,\n DialogBody,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n DialogTrigger,\n};\n"]}
@@ -0,0 +1,2 @@
1
+ import{a as n}from"./chunk-OKUFCFYT.js";import*as t from"@radix-ui/react-tabs";import{jsx as o}from"react/jsx-runtime";function a({...e}){return o(t.Root,{"data-slot":"tabs",...e})}function s({className:e,...i}){return o(t.List,{className:n("bg-muted text-muted-foreground inline-flex items-center justify-center gap-1 rounded-xl px-1 py-1",e),"data-slot":"tabs-list",...i})}function d({className:e,...i}){return o(t.Trigger,{className:n("data-[state=active]:bg-background dark:data-[state=active]:bg-input/50 text-muted-foreground focus-visible:ring-ring/50 focus-visible:ring-3 dark:outline-ring not-dark:outline-hidden data-[state=active]:text-foreground hover:not-disabled:text-foreground inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-lg px-2 py-1.5 text-sm font-medium transition disabled:opacity-50 data-[state=active]:shadow-sm dark:-outline-offset-1 dark:data-[state=active]:outline-1 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0",e),"data-slot":"tabs-trigger",...i})}function m({className:e,...i}){return o(t.Content,{className:n("outline-ring ring-ring/50 mt-2 rounded-xl focus-visible:outline-1 focus-visible:ring-4",e),"data-slot":"tabs-content",...i})}export{a,s as b,d as c,m as d};
2
+ //# sourceMappingURL=chunk-WBNOGWR4.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/tabs.tsx"],"names":["TabsPrimitive","jsx","Tabs","props","TabsList","className","cn","TabsTrigger","TabsContent"],"mappings":"wCAEA,UAAYA,MAAmB,uBAStB,cAAAC,MAAA,oBADT,SAASC,EAAK,CAAE,GAAGC,CAAM,EAA2D,CAClF,OAAOF,EAAe,OAAd,CAAmB,YAAU,OAAQ,GAAGE,EAAO,CACzD,CAMA,SAASC,EAAS,CAAE,UAAAC,EAAW,GAAGF,CAAM,EAA2D,CACjG,OACEF,EAAe,OAAd,CACC,UAAWK,EACT,oGACAD,CACF,EACA,YAAU,YACT,GAAGF,EACN,CAEJ,CAMA,SAASI,EAAY,CAAE,UAAAF,EAAW,GAAGF,CAAM,EAA8D,CACvG,OACEF,EAAe,UAAd,CACC,UAAWK,EACT,ihBACAD,CACF,EACA,YAAU,eACT,GAAGF,EACN,CAEJ,CAMA,SAASK,EAAY,CAAE,UAAAH,EAAW,GAAGF,CAAM,EAA8D,CACvG,OACEF,EAAe,UAAd,CACC,UAAWK,EACT,yFACAD,CACF,EACA,YAAU,eACT,GAAGF,EACN,CAEJ","sourcesContent":["import type { ComponentProps, JSX } from 'react';\n\nimport * as TabsPrimitive from '@radix-ui/react-tabs';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Tabs\n * -------------------------------------------------------------------------- */\n\nfunction Tabs({ ...props }: ComponentProps<typeof TabsPrimitive.Root>): JSX.Element {\n return <TabsPrimitive.Root data-slot=\"tabs\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TabsList\n * -------------------------------------------------------------------------- */\n\nfunction TabsList({ className, ...props }: ComponentProps<typeof TabsPrimitive.List>): JSX.Element {\n return (\n <TabsPrimitive.List\n className={cn(\n 'bg-muted text-muted-foreground inline-flex items-center justify-center gap-1 rounded-xl px-1 py-1',\n className,\n )}\n data-slot=\"tabs-list\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TabsTrigger\n * -------------------------------------------------------------------------- */\n\nfunction TabsTrigger({ className, ...props }: ComponentProps<typeof TabsPrimitive.Trigger>): JSX.Element {\n return (\n <TabsPrimitive.Trigger\n className={cn(\n \"data-[state=active]:bg-background dark:data-[state=active]:bg-input/50 text-foreground dark:text-muted-foreground focus-visible:ring-ring/50 focus-visible:ring-3 dark:outline-ring not-dark:outline-hidden dark:data-[state=active]:text-foreground inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-lg px-2 py-1.5 text-sm font-medium transition disabled:opacity-50 data-[state=active]:shadow-sm dark:-outline-offset-1 dark:data-[state=active]:outline-1 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0\",\n className,\n )}\n data-slot=\"tabs-trigger\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TabsContent\n * -------------------------------------------------------------------------- */\n\nfunction TabsContent({ className, ...props }: ComponentProps<typeof TabsPrimitive.Content>): JSX.Element {\n return (\n <TabsPrimitive.Content\n className={cn(\n 'outline-ring ring-ring/50 mt-2 rounded-xl focus-visible:outline-1 focus-visible:ring-4',\n className,\n )}\n data-slot=\"tabs-content\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Tabs, TabsContent, TabsList, TabsTrigger };\n"]}
1
+ {"version":3,"sources":["../src/components/tabs.tsx"],"names":["TabsPrimitive","jsx","Tabs","props","TabsList","className","cn","TabsTrigger","TabsContent"],"mappings":"wCAEA,UAAYA,MAAmB,uBAStB,cAAAC,MAAA,oBADT,SAASC,EAAK,CAAE,GAAGC,CAAM,EAA2D,CAClF,OAAOF,EAAe,OAAd,CAAmB,YAAU,OAAQ,GAAGE,EAAO,CACzD,CAMA,SAASC,EAAS,CAAE,UAAAC,EAAW,GAAGF,CAAM,EAA2D,CACjG,OACEF,EAAe,OAAd,CACC,UAAWK,EACT,oGACAD,CACF,EACA,YAAU,YACT,GAAGF,EACN,CAEJ,CAMA,SAASI,EAAY,CAAE,UAAAF,EAAW,GAAGF,CAAM,EAA8D,CACvG,OACEF,EAAe,UAAd,CACC,UAAWK,EACT,0hBACAD,CACF,EACA,YAAU,eACT,GAAGF,EACN,CAEJ,CAMA,SAASK,EAAY,CAAE,UAAAH,EAAW,GAAGF,CAAM,EAA8D,CACvG,OACEF,EAAe,UAAd,CACC,UAAWK,EACT,yFACAD,CACF,EACA,YAAU,eACT,GAAGF,EACN,CAEJ","sourcesContent":["import type { ComponentProps, JSX } from 'react';\n\nimport * as TabsPrimitive from '@radix-ui/react-tabs';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Tabs\n * -------------------------------------------------------------------------- */\n\nfunction Tabs({ ...props }: ComponentProps<typeof TabsPrimitive.Root>): JSX.Element {\n return <TabsPrimitive.Root data-slot=\"tabs\" {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TabsList\n * -------------------------------------------------------------------------- */\n\nfunction TabsList({ className, ...props }: ComponentProps<typeof TabsPrimitive.List>): JSX.Element {\n return (\n <TabsPrimitive.List\n className={cn(\n 'bg-muted text-muted-foreground inline-flex items-center justify-center gap-1 rounded-xl px-1 py-1',\n className,\n )}\n data-slot=\"tabs-list\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TabsTrigger\n * -------------------------------------------------------------------------- */\n\nfunction TabsTrigger({ className, ...props }: ComponentProps<typeof TabsPrimitive.Trigger>): JSX.Element {\n return (\n <TabsPrimitive.Trigger\n className={cn(\n \"data-[state=active]:bg-background dark:data-[state=active]:bg-input/50 text-muted-foreground focus-visible:ring-ring/50 focus-visible:ring-3 dark:outline-ring not-dark:outline-hidden data-[state=active]:text-foreground hover:not-disabled:text-foreground inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-lg px-2 py-1.5 text-sm font-medium transition disabled:opacity-50 data-[state=active]:shadow-sm dark:-outline-offset-1 dark:data-[state=active]:outline-1 [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0\",\n className,\n )}\n data-slot=\"tabs-trigger\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: TabsContent\n * -------------------------------------------------------------------------- */\n\nfunction TabsContent({ className, ...props }: ComponentProps<typeof TabsPrimitive.Content>): JSX.Element {\n return (\n <TabsPrimitive.Content\n className={cn(\n 'outline-ring ring-ring/50 mt-2 rounded-xl focus-visible:outline-1 focus-visible:ring-4',\n className,\n )}\n data-slot=\"tabs-content\"\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Tabs, TabsContent, TabsList, TabsTrigger };\n"]}
@@ -1,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 _chunkPOJOZ7HMcjs = require('./chunk-POJOZ7HM.cjs');var _chunkTNP6NVCRcjs = require('./chunk-TNP6NVCR.cjs');var _chunkXXUOW3IDcjs = require('./chunk-XXUOW3ID.cjs');var _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _inputnumber = require('@codefast-ui/input-number'); var t = _interopRequireWildcard(_inputnumber);var _lucidereact = require('lucide-react');var _jsxruntime = require('react/jsx-runtime');var{input:B,root:k}=_chunkPOJOZ7HMcjs.a.call(void 0, );function R({id:u,ariaDecrementLabel:s,ariaIncrementLabel:d,className:m,defaultValue:p,disabled:l,formatOptions:b,loaderPosition:c,loading:v,max:f,min:g,onChange:h,prefix:I,readOnly:N,spinner:P,step:C,suffix:w,value:x,...y}){return _jsxruntime.jsxs.call(void 0, t.Root,{ariaDecrementLabel:s,ariaIncrementLabel:d,className:k({className:["group pr-0",m]}),"data-slot":"input-number",defaultValue:p,disabled:l,formatOptions:b,id:u,loaderPosition:c,loading:v,max:f,min:g,prefix:I,readOnly:N,spinner:P||_jsxruntime.jsx.call(void 0, _chunkXXUOW3IDcjs.a,{}),step:C,suffix:w,value:x,onChange:h,children:[_jsxruntime.jsx.call(void 0, t.Item,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",className:B(),spellCheck:"false",...y}),_jsxruntime.jsxs.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "divide-input border-l-input group-hover:not-group-focus-within:not-has-disabled:border-l-border-ring/60 group-hover:not-group-focus-within:not-has-disabled:divide-border-ring/60 group-focus-within:border-l-ring group-focus-within:divide-ring group-has-aria-invalid:border-l-destructive group-has-aria-invalid:divide-destructive group-hover:group-has-aria-invalid:not-group-focus-within:not-has-disabled:border-l-destructive/60 group-hover:group-has-aria-invalid:not-group-focus-within:not-has-disabled:divide-destructive/60 order-last ml-auto grid h-full shrink-0 divide-y border-l transition","*:[button]:focus-visible:ring-0 *:[button]:focus-visible:bg-ring/50 group-has-aria-invalid:*:[button]:focus-visible:bg-destructive/20 dark:group-has-aria-invalid:*:[button]:focus-visible:bg-destructive/40"),"data-slot":"input-number-buttons",children:[_jsxruntime.jsx.call(void 0, t.IncrementButton,{"aria-label":"Increment",className:_chunkTNP6NVCRcjs.a.call(void 0, {className:"text-muted-foreground h-auto rounded-none rounded-tr-[calc(var(--radius-lg)-1px)]",variant:"ghost"}),"data-slot":"input-number-increment-button",children:_jsxruntime.jsx.call(void 0, _lucidereact.ChevronUpIcon,{})}),_jsxruntime.jsx.call(void 0, t.DecrementButton,{"aria-label":"Decrement",className:_chunkTNP6NVCRcjs.a.call(void 0, {className:"text-muted-foreground h-auto rounded-none rounded-br-[calc(var(--radius-lg)-1px)]",variant:"ghost"}),"data-slot":"input-number-decrement-button",children:_jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon,{})})]})]})}var z=R;exports.a = R; exports.b = z;
2
- //# sourceMappingURL=chunk-JIF3ESOX.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 _chunkPOJOZ7HMcjs = require('./chunk-POJOZ7HM.cjs');var _chunkOSBDYGS3cjs = require('./chunk-OSBDYGS3.cjs');var _chunkXXUOW3IDcjs = require('./chunk-XXUOW3ID.cjs');var _chunkSMJEDCFPcjs = require('./chunk-SMJEDCFP.cjs');var _inputnumber = require('@codefast-ui/input-number'); var t = _interopRequireWildcard(_inputnumber);var _lucidereact = require('lucide-react');var _jsxruntime = require('react/jsx-runtime');var{input:B,root:k}=_chunkPOJOZ7HMcjs.a.call(void 0, );function R({id:u,ariaDecrementLabel:s,ariaIncrementLabel:d,className:m,defaultValue:p,disabled:l,formatOptions:b,loaderPosition:c,loading:v,max:f,min:g,onChange:h,prefix:I,readOnly:N,spinner:P,step:C,suffix:w,value:x,...y}){return _jsxruntime.jsxs.call(void 0, t.Root,{ariaDecrementLabel:s,ariaIncrementLabel:d,className:k({className:["group pr-0",m]}),"data-slot":"input-number",defaultValue:p,disabled:l,formatOptions:b,id:u,loaderPosition:c,loading:v,max:f,min:g,prefix:I,readOnly:N,spinner:P||_jsxruntime.jsx.call(void 0, _chunkXXUOW3IDcjs.a,{}),step:C,suffix:w,value:x,onChange:h,children:[_jsxruntime.jsx.call(void 0, t.Item,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",className:B(),spellCheck:"false",...y}),_jsxruntime.jsxs.call(void 0, "div",{className:_chunkSMJEDCFPcjs.a.call(void 0, "divide-input border-l-input group-hover:not-group-focus-within:not-has-disabled:border-l-border-ring/60 group-hover:not-group-focus-within:not-has-disabled:divide-border-ring/60 group-focus-within:border-l-ring group-focus-within:divide-ring group-has-aria-invalid:border-l-destructive group-has-aria-invalid:divide-destructive group-hover:group-has-aria-invalid:not-group-focus-within:not-has-disabled:border-l-destructive/60 group-hover:group-has-aria-invalid:not-group-focus-within:not-has-disabled:divide-destructive/60 order-last ml-auto grid h-full shrink-0 divide-y border-l transition","*:[button]:focus-visible:ring-0 *:[button]:focus-visible:bg-ring/50 group-has-aria-invalid:*:[button]:focus-visible:bg-destructive/20 dark:group-has-aria-invalid:*:[button]:focus-visible:bg-destructive/40"),"data-slot":"input-number-buttons",children:[_jsxruntime.jsx.call(void 0, t.IncrementButton,{"aria-label":"Increment",className:_chunkOSBDYGS3cjs.a.call(void 0, {className:"text-muted-foreground h-auto rounded-none rounded-tr-[calc(var(--radius-lg)-1px)]",variant:"ghost"}),"data-slot":"input-number-increment-button",children:_jsxruntime.jsx.call(void 0, _lucidereact.ChevronUpIcon,{})}),_jsxruntime.jsx.call(void 0, t.DecrementButton,{"aria-label":"Decrement",className:_chunkOSBDYGS3cjs.a.call(void 0, {className:"text-muted-foreground h-auto rounded-none rounded-br-[calc(var(--radius-lg)-1px)]",variant:"ghost"}),"data-slot":"input-number-decrement-button",children:_jsxruntime.jsx.call(void 0, _lucidereact.ChevronDownIcon,{})})]})]})}var z=R;exports.a = R; exports.b = z;
2
+ //# sourceMappingURL=chunk-XRB4CGMN.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-JIF3ESOX.cjs","../src/components/input-number.tsx"],"names":["input","root","inputVariants","InputNumber","id","ariaDecrementLabel","ariaIncrementLabel","className","defaultValue","disabled","formatOptions","loaderPosition","loading","max","min","onChange","prefix","readOnly","spinner","step","suffix","value","props","jsxs","jsx","Spinner","cn","buttonVariants","ChevronUpIcon","ChevronDownIcon","NumberInput"],"mappings":"AAAA,mZAAwC,wDAAyC,wDAAyC,wDAAyC,uGCG7H,2CACS,+CAoDrB,GA7CpB,CAAE,KAAA,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A,CAEV,QAAA,CAAA,CAAAS,6BAAAA,CAAsB,CAAA,IAAA,CAArB,CACC,cAAA,CAAe,MAAA,CACf,YAAA,CAAa,KAAA,CACb,WAAA,CAAY,KAAA,CACZ,SAAA,CAAWxB,CAAAA,CAAM,CAAA,CACjB,UAAA,CAAW,OAAA,CACV,GAAGsB,CAAAA,CACN,CAAA,CACAC,8BAAAA,KAAC,CAAA,CACC,SAAA,CAAWG,iCAAAA,klBACT,CACA,8MACF,CAAA,CACA,WAAA,CAAU,sBAAA,CAEV,QAAA,CAAA,CAAAF,6BAAAA,CAAsB,CAAA,eAAA,CAArB,CACC,YAAA,CAAW,WAAA,CACX,SAAA,CAAWG,iCAAAA,CACT,SAAA,CAAW,mFAAA,CACX,OAAA,CAAS,OACX,CAAC,CAAA,CACD,WAAA,CAAU,+BAAA,CAEV,QAAA,CAAAH,6BAAAA,0BAACI,CAAA,CAAA,CAAc,CAAA,CACjB,CAAA,CACAJ,6BAAAA,CAAsB,CAAA,eAAA,CAArB,CACC,YAAA,CAAW,WAAA,CACX,SAAA,CAAWG,iCAAAA,CACT,SAAA,CAAW,mFAAA,CACX,OAAA,CAAS,OACX,CAAC,CAAA,CACD,WAAA,CAAU,+BAAA,CAEV,QAAA,CAAAH,6BAAAA,4BAACK,CAAA,CAAA,CAAgB,CAAA,CACnB,CAAA,CAAA,CACF,CAAA,CAAA,CACF,CAEJ,CAWA,IAAMC,CAAAA,CAAc3B,CAAAA,CAAAA,6BAAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-JIF3ESOX.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\nimport type { VariantProps } from 'tailwind-variants';\n\nimport * as InputNumberPrimitive from '@codefast-ui/input-number';\nimport { ChevronDownIcon, ChevronUpIcon } from 'lucide-react';\n\nimport { buttonVariants } from '@/components/button';\nimport { inputVariants } from '@/components/input';\nimport { Spinner } from '@/components/spinner';\nimport { cn } from '@/lib/utils';\n\nconst { input, root } = inputVariants();\n\n/* -----------------------------------------------------------------------------\n * Component: InputNumber\n * -------------------------------------------------------------------------- */\n\nfunction InputNumber({\n id,\n ariaDecrementLabel,\n ariaIncrementLabel,\n className,\n defaultValue,\n disabled,\n formatOptions,\n loaderPosition,\n loading,\n max,\n min,\n onChange,\n prefix,\n readOnly,\n spinner,\n step,\n suffix,\n value,\n ...props\n}: ComponentProps<typeof InputNumberPrimitive.Item> &\n ComponentProps<typeof InputNumberPrimitive.Root> &\n VariantProps<typeof inputVariants>): JSX.Element {\n return (\n <InputNumberPrimitive.Root\n ariaDecrementLabel={ariaDecrementLabel}\n ariaIncrementLabel={ariaIncrementLabel}\n className={root({ className: ['group pr-0', className] })}\n data-slot=\"input-number\"\n defaultValue={defaultValue}\n disabled={disabled}\n formatOptions={formatOptions}\n id={id}\n loaderPosition={loaderPosition}\n loading={loading}\n max={max}\n min={min}\n prefix={prefix}\n readOnly={readOnly}\n spinner={spinner || <Spinner />}\n step={step}\n suffix={suffix}\n value={value}\n onChange={onChange}\n >\n <InputNumberPrimitive.Item\n autoCapitalize=\"none\"\n autoComplete=\"off\"\n autoCorrect=\"off\"\n className={input()}\n spellCheck=\"false\"\n {...props}\n />\n <div\n className={cn(\n 'divide-input border-l-input group-hover:not-group-focus-within:not-has-disabled:border-l-border-ring/60 group-hover:not-group-focus-within:not-has-disabled:divide-border-ring/60 group-focus-within:border-l-ring group-focus-within:divide-ring group-has-aria-invalid:border-l-destructive group-has-aria-invalid:divide-destructive group-hover:group-has-aria-invalid:not-group-focus-within:not-has-disabled:border-l-destructive/60 group-hover:group-has-aria-invalid:not-group-focus-within:not-has-disabled:divide-destructive/60 order-last ml-auto grid h-full shrink-0 divide-y border-l transition',\n '*:[button]:focus-visible:ring-0 *:[button]:focus-visible:bg-ring/50 group-has-aria-invalid:*:[button]:focus-visible:bg-destructive/20 dark:group-has-aria-invalid:*:[button]:focus-visible:bg-destructive/40',\n )}\n data-slot=\"input-number-buttons\"\n >\n <InputNumberPrimitive.IncrementButton\n aria-label=\"Increment\"\n className={buttonVariants({\n className: 'text-muted-foreground h-auto rounded-none rounded-tr-[calc(var(--radius-lg)-1px)]',\n variant: 'ghost',\n })}\n data-slot=\"input-number-increment-button\"\n >\n <ChevronUpIcon />\n </InputNumberPrimitive.IncrementButton>\n <InputNumberPrimitive.DecrementButton\n aria-label=\"Decrement\"\n className={buttonVariants({\n className: 'text-muted-foreground h-auto rounded-none rounded-br-[calc(var(--radius-lg)-1px)]',\n variant: 'ghost',\n })}\n data-slot=\"input-number-decrement-button\"\n >\n <ChevronDownIcon />\n </InputNumberPrimitive.DecrementButton>\n </div>\n </InputNumberPrimitive.Root>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Deprecated\n * -------------------------------------------------------------------------- */\n\n/**\n * @deprecated\n * This component is an alias of the Input component.\n * Please use the Input component instead to ensure consistency.\n */\nconst NumberInput = InputNumber;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { InputNumber, NumberInput };\n"]}
1
+ {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-XRB4CGMN.cjs","../src/components/input-number.tsx"],"names":["input","root","inputVariants","InputNumber","id","ariaDecrementLabel","ariaIncrementLabel","className","defaultValue","disabled","formatOptions","loaderPosition","loading","max","min","onChange","prefix","readOnly","spinner","step","suffix","value","props","jsxs","jsx","Spinner","cn","buttonVariants","ChevronUpIcon","ChevronDownIcon","NumberInput"],"mappings":"AAAA,mZAAwC,wDAAyC,wDAAyC,wDAAyC,uGCG7H,2CACS,+CAoDrB,GA7CpB,CAAE,KAAA,CAAAA,CAAAA,CAAO,IAAA,CAAAC,CAAK,CAAA,CAAIC,iCAAAA,CAAc,CAMtC,SAASC,CAAAA,CAAY,CACnB,EAAA,CAAAC,CAAAA,CACA,kBAAA,CAAAC,CAAAA,CACA,kBAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,C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C,CAAA,CACC,SAAA,CAAWG,iCAAAA,klBACT,CACA,8MACF,CAAA,CACA,WAAA,CAAU,sBAAA,CAEV,QAAA,CAAA,CAAAF,6BAAAA,CAAsB,CAAA,eAAA,CAArB,CACC,YAAA,CAAW,WAAA,CACX,SAAA,CAAWG,iCAAAA,CACT,SAAA,CAAW,mFAAA,CACX,OAAA,CAAS,OACX,CAAC,CAAA,CACD,WAAA,CAAU,+BAAA,CAEV,QAAA,CAAAH,6BAAAA,0BAACI,CAAA,CAAA,CAAc,CAAA,CACjB,CAAA,CACAJ,6BAAAA,CAAsB,CAAA,eAAA,CAArB,CACC,YAAA,CAAW,WAAA,CACX,SAAA,CAAWG,iCAAAA,CACT,SAAA,CAAW,mFAAA,CACX,OAAA,CAAS,OACX,CAAC,CAAA,CACD,WAAA,CAAU,+BAAA,CAEV,QAAA,CAAAH,6BAAAA,4BAACK,CAAA,CAAA,CAAgB,CAAA,CACnB,CAAA,CAAA,CACF,CAAA,CAAA,CACF,CAEJ,CAWA,IAAMC,CAAAA,CAAc3B,CAAAA,CAAAA,6BAAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-XRB4CGMN.cjs","sourcesContent":[null,"import type { ComponentProps, JSX } from 'react';\nimport type { VariantProps } from 'tailwind-variants';\n\nimport * as InputNumberPrimitive from '@codefast-ui/input-number';\nimport { ChevronDownIcon, ChevronUpIcon } from 'lucide-react';\n\nimport { buttonVariants } from '@/components/button';\nimport { inputVariants } from '@/components/input';\nimport { Spinner } from '@/components/spinner';\nimport { cn } from '@/lib/utils';\n\nconst { input, root } = inputVariants();\n\n/* -----------------------------------------------------------------------------\n * Component: InputNumber\n * -------------------------------------------------------------------------- */\n\nfunction InputNumber({\n id,\n ariaDecrementLabel,\n ariaIncrementLabel,\n className,\n defaultValue,\n disabled,\n formatOptions,\n loaderPosition,\n loading,\n max,\n min,\n onChange,\n prefix,\n readOnly,\n spinner,\n step,\n suffix,\n value,\n ...props\n}: ComponentProps<typeof InputNumberPrimitive.Item> &\n ComponentProps<typeof InputNumberPrimitive.Root> &\n VariantProps<typeof inputVariants>): JSX.Element {\n return (\n <InputNumberPrimitive.Root\n ariaDecrementLabel={ariaDecrementLabel}\n ariaIncrementLabel={ariaIncrementLabel}\n className={root({ className: ['group pr-0', className] })}\n data-slot=\"input-number\"\n defaultValue={defaultValue}\n disabled={disabled}\n formatOptions={formatOptions}\n id={id}\n loaderPosition={loaderPosition}\n loading={loading}\n max={max}\n min={min}\n prefix={prefix}\n readOnly={readOnly}\n spinner={spinner || <Spinner />}\n step={step}\n suffix={suffix}\n value={value}\n onChange={onChange}\n >\n <InputNumberPrimitive.Item\n autoCapitalize=\"none\"\n autoComplete=\"off\"\n autoCorrect=\"off\"\n className={input()}\n spellCheck=\"false\"\n {...props}\n />\n <div\n className={cn(\n 'divide-input border-l-input group-hover:not-group-focus-within:not-has-disabled:border-l-border-ring/60 group-hover:not-group-focus-within:not-has-disabled:divide-border-ring/60 group-focus-within:border-l-ring group-focus-within:divide-ring group-has-aria-invalid:border-l-destructive group-has-aria-invalid:divide-destructive group-hover:group-has-aria-invalid:not-group-focus-within:not-has-disabled:border-l-destructive/60 group-hover:group-has-aria-invalid:not-group-focus-within:not-has-disabled:divide-destructive/60 order-last ml-auto grid h-full shrink-0 divide-y border-l transition',\n '*:[button]:focus-visible:ring-0 *:[button]:focus-visible:bg-ring/50 group-has-aria-invalid:*:[button]:focus-visible:bg-destructive/20 dark:group-has-aria-invalid:*:[button]:focus-visible:bg-destructive/40',\n )}\n data-slot=\"input-number-buttons\"\n >\n <InputNumberPrimitive.IncrementButton\n aria-label=\"Increment\"\n className={buttonVariants({\n className: 'text-muted-foreground h-auto rounded-none rounded-tr-[calc(var(--radius-lg)-1px)]',\n variant: 'ghost',\n })}\n data-slot=\"input-number-increment-button\"\n >\n <ChevronUpIcon />\n </InputNumberPrimitive.IncrementButton>\n <InputNumberPrimitive.DecrementButton\n aria-label=\"Decrement\"\n className={buttonVariants({\n className: 'text-muted-foreground h-auto rounded-none rounded-br-[calc(var(--radius-lg)-1px)]',\n variant: 'ghost',\n })}\n data-slot=\"input-number-decrement-button\"\n >\n <ChevronDownIcon />\n </InputNumberPrimitive.DecrementButton>\n </div>\n </InputNumberPrimitive.Root>\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Deprecated\n * -------------------------------------------------------------------------- */\n\n/**\n * @deprecated\n * This component is an alias of the Input component.\n * Please use the Input component instead to ensure consistency.\n */\nconst NumberInput = InputNumber;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { InputNumber, NumberInput };\n"]}
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk-ZFCLI44C.js";import{a as i}from"./chunk-OKUFCFYT.js";import*as e from"@radix-ui/react-alert-dialog";import{jsx as a,jsxs as s}from"react/jsx-runtime";function d({...t}){return a(e.Root,{"data-slot":"alert-dialog",...t})}function g({...t}){return a(e.Trigger,{"data-slot":"alert-dialog-trigger",...t})}function f({children:t,className:o,classNames:r,...l}){return s(e.Portal,{children:[a(e.Overlay,{className:i("bg-popover-overlay data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50",r?.overlay),"data-slot":"alert-dialog-overlay"}),a(e.Content,{className:i("data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 fixed inset-0 z-50 grid grid-rows-[1fr_auto_1fr] justify-items-center overflow-auto p-8 sm:grid-rows-[1fr_auto_3fr] sm:p-4",r?.wrapper),"data-slot":"alert-dialog-content-wrapper",...l,children:a("div",{className:i("bg-popover text-popover-foreground relative row-start-2 flex w-full max-w-lg flex-col rounded-2xl border shadow-lg",r?.content,o),"data-slot":"alert-dialog-content",children:t})})]})}function c({className:t,...o}){return a("div",{className:i("flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left",t),"data-slot":"alert-dialog-header",...o})}function v({className:t,...o}){return a("main",{className:i("overflow-auto px-6 py-2",t),"data-slot":"alert-dialog-body",...o})}function u({className:t,...o}){return a("div",{className:i("flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end",t),"data-slot":"alert-dialog-footer",...o})}function P({className:t,...o}){return a(e.Title,{className:i("text-lg font-semibold leading-none tracking-tight",t),"data-slot":"alert-dialog-title",...o})}function A({className:t,...o}){return a(e.Description,{className:i("text-muted-foreground text-sm",t),"data-slot":"alert-dialog-description",...o})}function D({className:t,size:o,variant:r,...l}){return a(e.Action,{className:n({className:t,size:o,variant:r}),"data-slot":"alert-dialog-action",...l})}function y({className:t,size:o,variant:r="outline",...l}){return a(e.Cancel,{className:n({className:t,size:o,variant:r}),"data-slot":"alert-dialog-cancel",...l})}export{d as a,g as b,f as c,c as d,v as e,u as f,P as g,A as h,D as i,y as j};
2
- //# sourceMappingURL=chunk-FKBFCM7D.js.map
1
+ import{a as n}from"./chunk-3E3ZQIUX.js";import{a as i}from"./chunk-OKUFCFYT.js";import*as e from"@radix-ui/react-alert-dialog";import{jsx as a,jsxs as s}from"react/jsx-runtime";function d({...t}){return a(e.Root,{"data-slot":"alert-dialog",...t})}function g({...t}){return a(e.Trigger,{"data-slot":"alert-dialog-trigger",...t})}function f({children:t,className:o,classNames:r,...l}){return s(e.Portal,{children:[a(e.Overlay,{className:i("bg-popover-overlay data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50",r?.overlay),"data-slot":"alert-dialog-overlay"}),a(e.Content,{className:i("data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 fixed inset-0 z-50 grid grid-rows-[1fr_auto_1fr] justify-items-center overflow-auto p-8 sm:grid-rows-[1fr_auto_3fr] sm:p-4",r?.wrapper),"data-slot":"alert-dialog-content-wrapper",...l,children:a("div",{className:i("bg-popover text-popover-foreground relative row-start-2 flex w-full max-w-lg flex-col rounded-2xl border shadow-lg",r?.content,o),"data-slot":"alert-dialog-content",children:t})})]})}function c({className:t,...o}){return a("div",{className:i("flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left",t),"data-slot":"alert-dialog-header",...o})}function v({className:t,...o}){return a("main",{className:i("overflow-auto px-6 py-2",t),"data-slot":"alert-dialog-body",...o})}function u({className:t,...o}){return a("div",{className:i("flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end",t),"data-slot":"alert-dialog-footer",...o})}function P({className:t,...o}){return a(e.Title,{className:i("text-lg font-semibold leading-none tracking-tight",t),"data-slot":"alert-dialog-title",...o})}function A({className:t,...o}){return a(e.Description,{className:i("text-muted-foreground text-sm",t),"data-slot":"alert-dialog-description",...o})}function D({className:t,size:o,variant:r,...l}){return a(e.Action,{className:n({className:t,size:o,variant:r}),"data-slot":"alert-dialog-action",...l})}function y({className:t,size:o,variant:r="outline",...l}){return a(e.Cancel,{className:n({className:t,size:o,variant:r}),"data-slot":"alert-dialog-cancel",...l})}export{d as a,g as b,f as c,c as d,v as e,u as f,P as g,A as h,D as i,y as j};
2
+ //# sourceMappingURL=chunk-Y3I5EBH6.js.map
@@ -1,2 +1,2 @@
1
- "use client";import{a as g}from"./chunk-ZFCLI44C.js";import{a as o}from"./chunk-OKUFCFYT.js";import{format as p}from"date-fns";import{ChevronDownIcon as l,ChevronLeftIcon as f,ChevronRightIcon as c,ChevronUpIcon as m,DotIcon as y}from"lucide-react";import{DayFlag as d,DayPicker as h,SelectionState as a,UI as e}from"react-day-picker";import{jsx as i,jsxs as v}from"react/jsx-runtime";function b({orientation:n,className:t,...r}){switch(n){case"up":return i(m,{className:o("size-4",t),...r});case"down":return i(l,{className:o("size-4",t),...r});case"left":return i(f,{className:o("size-4",t),...r});case"right":return i(c,{className:o("size-4",t),...r});default:return i(y,{className:o("size-4",t),...r})}}function M({showOutsideDays:n=!0,classNames:t,...r}){let u=r.mode!==void 0||r.onDayClick!==void 0;return i(h,{classNames:{[e.Root]:o("p-3",t?.[e.Root]),[e.Chevron]:o(t?.[e.Chevron]),[e.Day]:o("grid place-items-center text-center text-sm",u?"min-w-8.5 has-focus-visible:z-20 group":"min-w-8.5 h-8",t?.[e.Day]),[e.DayButton]:o("group-[.is-outside]:text-muted-foreground hover:not-disabled:not-group-aria-selected:bg-secondary hover:not-disabled:not-group-aria-selected:text-secondary-foreground group-data-today:not-group-aria-selected:bg-secondary group-data-today:not-group-aria-selected:text-secondary-foreground group-aria-selected:not-group-[.is-range-middle]:bg-primary group-aria-selected:not-group-[.is-range-middle]:text-primary-foreground outline-hidden focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-3 group-[.is-selected]:not-group-[.is-range-middle]:focus-visible:ring-primary/20 dark:group-[.is-selected]:not-group-[.is-range-middle]:focus-visible:ring-primary/40 group-[.is-selected]:not-group-[.is-range-middle]:focus-visible:border-primary size-8 rounded-lg border border-transparent disabled:opacity-50",t?.[e.DayButton]),[e.CaptionLabel]:o("flex items-center gap-2 [&>svg]:opacity-50",t?.[e.CaptionLabel]),[e.Dropdowns]:o("flex gap-4",t?.[e.Dropdowns]),[e.Dropdown]:o("absolute opacity-0",t?.[e.Dropdown]),[e.DropdownRoot]:o("relative",t?.[e.DropdownRoot]),[e.Footer]:o(t?.[e.Footer]),[e.MonthGrid]:o(t?.[e.MonthGrid]),[e.MonthCaption]:o("py-1 text-sm font-medium",t?.[e.MonthCaption]),[e.MonthsDropdown]:o(t?.[e.MonthsDropdown]),[e.Month]:o("flex flex-col gap-4",t?.[e.Month]),[e.Months]:o("relative flex gap-4",t?.[e.Months]),[e.Nav]:o("absolute end-0 flex gap-2",t?.[e.Nav]),[e.NextMonthButton]:g({variant:"ghost",size:"icon",className:["size-7",t?.[e.NextMonthButton]]}),[e.PreviousMonthButton]:g({variant:"ghost",size:"icon",className:["size-7",t?.[e.PreviousMonthButton]]}),[e.Week]:o("mt-2 flex justify-between",t?.[e.Week]),[e.Weeks]:o(t?.[e.Weeks]),[e.Weekday]:o("text-muted-foreground min-w-8.5 text-xs font-medium",t?.[e.Weekday]),[e.Weekdays]:o("flex w-full justify-between",t?.[e.Weekdays]),[e.WeekNumber]:o("text-muted-foreground min-w-8.5 grid h-8 place-items-center text-xs font-normal [&+*]:rounded-l-lg",t?.[e.WeekNumber]),[e.WeekNumberHeader]:o("min-w-8.5",t?.[e.WeekNumberHeader]),[e.YearsDropdown]:o(t?.[e.YearsDropdown]),[a.range_end]:o("to-secondary is-range-end rounded-r-lg bg-gradient-to-l first:rounded-l-lg",t?.[a.range_end]),[a.range_middle]:o("is-range-middle bg-secondary text-secondary-foreground first:rounded-l-lg last:rounded-r-lg",t?.[a.range_middle]),[a.range_start]:o("to-secondary is-range-start rounded-l-lg bg-gradient-to-r last:rounded-r-lg",t?.[a.range_start]),[a.selected]:o("is-selected",t?.[a.selected]),[d.disabled]:o("is-disabled",t?.[d.disabled]),[d.focused]:o("is-focused",t?.[d.focused]),[d.hidden]:o("is-hidden size-8",t?.[d.hidden]),[d.outside]:o("is-outside",t?.[d.outside]),[d.today]:o("is-today",t?.[d.today])},components:{Chevron:b},showOutsideDays:n,...r})}function z({date:n,formatStr:t="LLL dd, y",placeholder:r="Pick a date"}){if(!n?.from)return i("span",{className:"truncate",children:r});let u=p(n.from,t);if(!n.to)return i("span",{className:"truncate",children:u});let s=p(n.to,t);return v("span",{className:"truncate",children:[u," - ",s]})}function P({date:n,formatStr:t="PPP",placeholder:r="Pick a date"}){return n?i("span",{className:"truncate",children:p(n,t)}):i("span",{className:"truncate",children:r})}export{M as a,z as b,P as c};
2
- //# sourceMappingURL=chunk-HFQ4PJLQ.js.map
1
+ "use client";import{a as g}from"./chunk-3E3ZQIUX.js";import{a as o}from"./chunk-OKUFCFYT.js";import{format as p}from"date-fns";import{ChevronDownIcon as l,ChevronLeftIcon as f,ChevronRightIcon as c,ChevronUpIcon as m,DotIcon as y}from"lucide-react";import{DayFlag as d,DayPicker as h,SelectionState as a,UI as e}from"react-day-picker";import{jsx as i,jsxs as v}from"react/jsx-runtime";function b({orientation:n,className:t,...r}){switch(n){case"up":return i(m,{className:o("size-4",t),...r});case"down":return i(l,{className:o("size-4",t),...r});case"left":return i(f,{className:o("size-4",t),...r});case"right":return i(c,{className:o("size-4",t),...r});default:return i(y,{className:o("size-4",t),...r})}}function M({showOutsideDays:n=!0,classNames:t,...r}){let u=r.mode!==void 0||r.onDayClick!==void 0;return i(h,{classNames:{[e.Root]:o("p-3",t?.[e.Root]),[e.Chevron]:o(t?.[e.Chevron]),[e.Day]:o("grid place-items-center text-center text-sm",u?"min-w-8.5 has-focus-visible:z-20 group":"min-w-8.5 h-8",t?.[e.Day]),[e.DayButton]:o("group-[.is-outside]:text-muted-foreground hover:not-disabled:not-group-aria-selected:bg-secondary hover:not-disabled:not-group-aria-selected:text-secondary-foreground group-data-today:not-group-aria-selected:bg-secondary group-data-today:not-group-aria-selected:text-secondary-foreground group-aria-selected:not-group-[.is-range-middle]:bg-primary group-aria-selected:not-group-[.is-range-middle]:text-primary-foreground outline-hidden focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-3 group-[.is-selected]:not-group-[.is-range-middle]:focus-visible:ring-primary/20 dark:group-[.is-selected]:not-group-[.is-range-middle]:focus-visible:ring-primary/40 group-[.is-selected]:not-group-[.is-range-middle]:focus-visible:border-primary size-8 rounded-lg border border-transparent disabled:opacity-50",t?.[e.DayButton]),[e.CaptionLabel]:o("flex items-center gap-2 [&>svg]:opacity-50",t?.[e.CaptionLabel]),[e.Dropdowns]:o("flex gap-4",t?.[e.Dropdowns]),[e.Dropdown]:o("absolute opacity-0",t?.[e.Dropdown]),[e.DropdownRoot]:o("relative",t?.[e.DropdownRoot]),[e.Footer]:o(t?.[e.Footer]),[e.MonthGrid]:o(t?.[e.MonthGrid]),[e.MonthCaption]:o("py-1 text-sm font-medium",t?.[e.MonthCaption]),[e.MonthsDropdown]:o(t?.[e.MonthsDropdown]),[e.Month]:o("flex flex-col gap-4",t?.[e.Month]),[e.Months]:o("relative flex gap-4",t?.[e.Months]),[e.Nav]:o("absolute end-0 flex gap-2",t?.[e.Nav]),[e.NextMonthButton]:g({variant:"ghost",size:"icon",className:["size-7",t?.[e.NextMonthButton]]}),[e.PreviousMonthButton]:g({variant:"ghost",size:"icon",className:["size-7",t?.[e.PreviousMonthButton]]}),[e.Week]:o("mt-2 flex justify-between",t?.[e.Week]),[e.Weeks]:o(t?.[e.Weeks]),[e.Weekday]:o("text-muted-foreground min-w-8.5 text-xs font-medium",t?.[e.Weekday]),[e.Weekdays]:o("flex w-full justify-between",t?.[e.Weekdays]),[e.WeekNumber]:o("text-muted-foreground min-w-8.5 grid h-8 place-items-center text-xs font-normal [&+*]:rounded-l-lg",t?.[e.WeekNumber]),[e.WeekNumberHeader]:o("min-w-8.5",t?.[e.WeekNumberHeader]),[e.YearsDropdown]:o(t?.[e.YearsDropdown]),[a.range_end]:o("to-secondary is-range-end rounded-r-lg bg-gradient-to-l first:rounded-l-lg",t?.[a.range_end]),[a.range_middle]:o("is-range-middle bg-secondary text-secondary-foreground first:rounded-l-lg last:rounded-r-lg",t?.[a.range_middle]),[a.range_start]:o("to-secondary is-range-start rounded-l-lg bg-gradient-to-r last:rounded-r-lg",t?.[a.range_start]),[a.selected]:o("is-selected",t?.[a.selected]),[d.disabled]:o("is-disabled",t?.[d.disabled]),[d.focused]:o("is-focused",t?.[d.focused]),[d.hidden]:o("is-hidden size-8",t?.[d.hidden]),[d.outside]:o("is-outside",t?.[d.outside]),[d.today]:o("is-today",t?.[d.today])},components:{Chevron:b},showOutsideDays:n,...r})}function z({date:n,formatStr:t="LLL dd, y",placeholder:r="Pick a date"}){if(!n?.from)return i("span",{className:"truncate",children:r});let u=p(n.from,t);if(!n.to)return i("span",{className:"truncate",children:u});let s=p(n.to,t);return v("span",{className:"truncate",children:[u," - ",s]})}function P({date:n,formatStr:t="PPP",placeholder:r="Pick a date"}){return n?i("span",{className:"truncate",children:p(n,t)}):i("span",{className:"truncate",children:r})}export{M as a,z as b,P as c};
2
+ //# sourceMappingURL=chunk-YLVYJ4QQ.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; } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";var _progresscircle = require('@codefast-ui/progress-circle'); var e = _interopRequireWildcard(_progresscircle);var _hooks = require('@codefast/hooks');var _react = require('react');var _tailwindvariants = require('tailwind-variants');var _jsxruntime = require('react/jsx-runtime');var S=_tailwindvariants.tv.call(void 0, {slots:{root:"relative inline-flex items-center justify-center",svg:"size-full",track:"origin-center",indicator:"origin-center",label:"absolute inset-0 flex items-center justify-center text-xs font-medium"},variants:{variant:{default:{indicator:"text-primary",track:"text-primary/20"},destructive:{indicator:"text-destructive",track:"text-destructive/20"}},size:{sm:{label:"text-[10px]"},md:{label:"text-xs"},lg:{label:"text-sm"},xl:{label:"text-base"},"2xl":{label:"text-lg"}},thickness:{thin:{},regular:{},thick:{}}},defaultVariants:{variant:"default",size:"md",thickness:"regular"}});function M({value:t=0,classNames:r,customLabel:i,showValue:v=!1,variant:u="default",size:a,sizeInPixels:g,thickness:o="regular",animate:f=!0,animationDuration:p=1e3,className:b,strokeWidth:P,...x}){let n=_hooks.useAnimatedValue.call(void 0, t,p,f),c=_react.useMemo.call(void 0, ()=>g||z(a),[g,a]),C=_react.useMemo.call(void 0, ()=>P||R(o,c),[P,o,c]),s=_react.useMemo.call(void 0, ()=>S({variant:u,size:a,thickness:o}),[u,a,o]),h=v||!!i,y=_react.useCallback.call(void 0, ()=>i?i({value:n}):`${n}%`,[i,n]);return _jsxruntime.jsx.call(void 0, e.Provider,{size:c,strokeWidth:C,value:t,...x,children:_jsxruntime.jsxs.call(void 0, e.Root,{className:s.root({className:[b,_optionalChain([r, 'optionalAccess', _ => _.root])]}),children:[_jsxruntime.jsxs.call(void 0, e.SVG,{className:s.svg({className:_optionalChain([r, 'optionalAccess', _2 => _2.svg])}),children:[_jsxruntime.jsx.call(void 0, e.Track,{className:s.track({className:_optionalChain([r, 'optionalAccess', _3 => _3.track])})}),_jsxruntime.jsx.call(void 0, e.Indicator,{className:s.indicator({className:_optionalChain([r, 'optionalAccess', _4 => _4.indicator])}),style:{transitionDuration:`${p}ms`,transitionProperty:"stroke-dashoffset"}})]}),h?_jsxruntime.jsx.call(void 0, e.Value,{className:s.label({className:_optionalChain([r, 'optionalAccess', _5 => _5.label])}),children:y()}):null]})})}M.displayName="ProgressCircle";var z=t=>t?{sm:32,md:48,lg:64,xl:96,"2xl":128}[t]:48,R=(t,r)=>{let i={thin:Math.max(2,r*.025),regular:Math.max(3,r*.05),thick:Math.max(4,r*.075)};return t?i[t]:Math.max(3,r*.05)};exports.a = M;
2
+ //# sourceMappingURL=chunk-YQARPTSR.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/progress-circle.tsx"],"names":["ProgressCirclePrimitive","ProgressCircle","classNames","customLabel","showValue","variant","sizeInPixels","thickness","strokeWidth","displayValue","useAnimatedValue","value","animationDuration","animate","useMemo","getActualSize","size","actualThickness","getStrokeWidth","actualSize","slots","progressCircleVariants","shouldShowLabel","renderLabel","useCallback"],"mappings":"AAKA,22BAAYA,CAAAA,gHACH,wCACA,8BACA,qDA2IC,+CApIR,IACE,CAAA,CAAA,kCAAA,CAAM,KA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C,GAAiBC,CAAOC,CAAAA,CAAmBC,CAAO,IAEpDC,CAAAA,CAAQ,qCAAA,CAAA,CAAMR,CAAAA,CAAAA,CAAgBS,CAAAA,CAAcC,CAAI,CAAA,4BAAG,CAACV,CAAcU,EAAK,CAAA,EAEpFC,CAAkBH,CAAAA,CACtB,CAAA,CAAA,CAAA,CAAMN,CAAAA,CAAAA,CAAeU,CAAAA,CAAeX,CAAAA,CAAWY,4BAAU,CACzD,CAACX,EAAaD,CAAAA,EAAqB,CACrC,CAAA,CAEMa,CAAAA,CAAQN,CAAAA,CAAQ,CAAA,CAAA,CAAA,CAAMO,CAAAA,CAAuB,CAAE,CAAA,CAAA,CAAA,CAAA,4BAAA,CAAA,CAAAhB,EAAS,CAAA,CAAA,CAAA,OAAM,CAAA,CAAA,CAAA,IAAAE,CAAU,CAAC,CAAA,SAA6B,CAEtGe,CAAAA,CAAkBlB,CAAAA,CAAAA,CAAa,CAAA,CAAQD,CAAAA,CAEvCoB,CAAAA,CAAcC,CAAAA,CAAY,CAAA,CAAA,CAAA,EAC1BrB,CACKA,CAAAA,CAAY,CAAE,CAAA,CAAA,gCAAA,CAAA,CAAOM,EAAc,CAAA,CAGrC,CAAA,CAAA,CAAGA,KACT,CAACN,CAAAA,CAAaM,CAAY,CAAC,CAAA,EAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-YQARPTSR.cjs","sourcesContent":["'use client';\n\nimport type { ComponentProps, CSSProperties, JSX } from 'react';\nimport type { VariantProps } from 'tailwind-variants';\n\nimport * as ProgressCirclePrimitive from '@codefast-ui/progress-circle';\nimport { useAnimatedValue } from '@codefast/hooks';\nimport { useCallback, useMemo } from 'react';\nimport { tv } from 'tailwind-variants';\n\n/* -------------------------------------------------------------------------------------------------\n * Variant: ProgressCircle\n * -----------------------------------------------------------------------------------------------*/\n\nconst progressCircleVariants = tv({\n slots: {\n root: 'relative inline-flex items-center justify-center',\n svg: 'size-full',\n track: 'origin-center',\n indicator: 'origin-center',\n label: 'absolute inset-0 flex items-center justify-center text-xs font-medium',\n },\n variants: {\n variant: {\n default: { indicator: 'text-primary', track: 'text-primary/20' },\n destructive: { indicator: 'text-destructive', track: 'text-destructive/20' },\n },\n size: {\n sm: { label: 'text-[10px]' },\n md: { label: 'text-xs' },\n lg: { label: 'text-sm' },\n xl: { label: 'text-base' },\n '2xl': { label: 'text-lg' },\n },\n thickness: { thin: {}, regular: {}, thick: {} },\n },\n defaultVariants: { variant: 'default', size: 'md', thickness: 'regular' },\n});\n\n/* -------------------------------------------------------------------------------------------------\n * Component: ProgressCircle\n * -----------------------------------------------------------------------------------------------*/\n\nfunction ProgressCircle({\n value = 0,\n classNames,\n customLabel,\n showValue = false,\n variant = 'default',\n size,\n sizeInPixels,\n thickness = 'regular',\n animate = true,\n animationDuration = 1000,\n className,\n strokeWidth,\n ...props\n}: Omit<ComponentProps<typeof ProgressCirclePrimitive.Provider>, 'children' | 'size'> &\n VariantProps<typeof progressCircleVariants> & {\n /**\n * Enables animation effect when value changes\n */\n animate?: boolean;\n\n /**\n * Duration of the animation in milliseconds\n */\n animationDuration?: number;\n\n /**\n * CSS class to customize the entire component\n */\n className?: string;\n\n /**\n * CSS classes to customize specific parts of the component\n */\n classNames?: {\n /**\n * Class for the progress indicator\n */\n indicator?: string;\n\n /**\n * Class for the label in the center of the circle\n */\n label?: string;\n\n /**\n * Class for the root element of the component\n */\n root?: string;\n\n /**\n * Class for the SVG element\n */\n svg?: string;\n\n /**\n * Class for the circle track\n */\n track?: string;\n };\n\n /**\n * Custom function to render content in the center of the circle\n * @param value - Current value of the component\n * @returns React element to display in the center of the circle\n */\n customLabel?: ({ value }: { value: number }) => JSX.Element;\n\n /**\n * Display the numeric value in the center of the circle\n */\n showValue?: boolean;\n\n /**\n * Custom size in pixels\n * When provided, this value overrides the size variant option\n */\n sizeInPixels?: number;\n }): JSX.Element {\n const displayValue = useAnimatedValue(value, animationDuration, animate);\n\n const actualSize = useMemo(() => sizeInPixels || getActualSize(size), [sizeInPixels, size]);\n\n const actualThickness = useMemo(\n () => strokeWidth || getStrokeWidth(thickness, actualSize),\n [strokeWidth, thickness, actualSize],\n );\n\n const slots = useMemo(() => progressCircleVariants({ variant, size, thickness }), [variant, size, thickness]);\n\n const shouldShowLabel = showValue || Boolean(customLabel);\n\n const renderLabel = useCallback(() => {\n if (customLabel) {\n return customLabel({ value: displayValue });\n }\n\n return `${displayValue}%`;\n }, [customLabel, displayValue]);\n\n return (\n <ProgressCirclePrimitive.Provider size={actualSize} strokeWidth={actualThickness} value={value} {...props}>\n <ProgressCirclePrimitive.Root className={slots.root({ className: [className, classNames?.root] })}>\n <ProgressCirclePrimitive.SVG className={slots.svg({ className: classNames?.svg })}>\n <ProgressCirclePrimitive.Track className={slots.track({ className: classNames?.track })} />\n <ProgressCirclePrimitive.Indicator\n className={slots.indicator({ className: classNames?.indicator })}\n style={\n {\n transitionDuration: `${animationDuration}ms`,\n transitionProperty: 'stroke-dashoffset',\n } as CSSProperties\n }\n />\n </ProgressCirclePrimitive.SVG>\n {shouldShowLabel ? (\n <ProgressCirclePrimitive.Value className={slots.label({ className: classNames?.label })}>\n {renderLabel()}\n </ProgressCirclePrimitive.Value>\n ) : null}\n </ProgressCirclePrimitive.Root>\n </ProgressCirclePrimitive.Provider>\n );\n}\n\nProgressCircle.displayName = 'ProgressCircle';\n\n/* -----------------------------------------------------------------------------\n * Helpers\n * -------------------------------------------------------------------------- */\n\n/**\n * Maps size variants to actual pixel sizes\n */\nconst getActualSize = (size?: VariantProps<typeof progressCircleVariants>['size']): number => {\n const sizeMap: Record<NonNullable<typeof size>, number> = {\n sm: 32,\n md: 48,\n lg: 64,\n xl: 96,\n '2xl': 128,\n };\n\n return size ? sizeMap[size] : 48;\n};\n\n/**\n * Calculates stroke width based on thickness variant and circle size\n */\nconst getStrokeWidth = (thickness: VariantProps<typeof progressCircleVariants>['thickness'], size: number): number => {\n const thicknessMap: Record<NonNullable<typeof thickness>, number> = {\n thin: Math.max(2, size * 0.025),\n regular: Math.max(3, size * 0.05),\n thick: Math.max(4, size * 0.075),\n };\n\n return thickness ? thicknessMap[thickness] : Math.max(3, size * 0.05);\n};\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { ProgressCircle };\n"]}