@codefast/ui 0.1.55 → 0.1.56

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 (228) hide show
  1. package/dist/chunk-2D4K3VN5.js +2 -0
  2. package/dist/chunk-2D4K3VN5.js.map +1 -0
  3. package/dist/chunk-2ZV3RRUF.js +2 -0
  4. package/dist/chunk-2ZV3RRUF.js.map +1 -0
  5. package/dist/chunk-36JL64WE.js +2 -0
  6. package/dist/chunk-36JL64WE.js.map +1 -0
  7. package/dist/{chunk-EEDKRHHZ.cjs → chunk-4KP3LG6P.cjs} +2 -2
  8. package/dist/chunk-4KP3LG6P.cjs.map +1 -0
  9. package/dist/chunk-6AI2HSG6.js +2 -0
  10. package/dist/chunk-6AI2HSG6.js.map +1 -0
  11. package/dist/chunk-6IKJWYUQ.cjs +2 -0
  12. package/dist/chunk-6IKJWYUQ.cjs.map +1 -0
  13. package/dist/chunk-7D25EXRF.cjs +2 -0
  14. package/dist/chunk-7D25EXRF.cjs.map +1 -0
  15. package/dist/chunk-7G7GY6WB.cjs +2 -0
  16. package/dist/chunk-7G7GY6WB.cjs.map +1 -0
  17. package/dist/chunk-7GOKKSQ2.js +2 -0
  18. package/dist/chunk-7GOKKSQ2.js.map +1 -0
  19. package/dist/chunk-7M3I7GAI.cjs +2 -0
  20. package/dist/chunk-7M3I7GAI.cjs.map +1 -0
  21. package/dist/chunk-ANFCBS2Z.cjs +2 -0
  22. package/dist/chunk-ANFCBS2Z.cjs.map +1 -0
  23. package/dist/chunk-BBVYRCKN.cjs +2 -0
  24. package/dist/chunk-BBVYRCKN.cjs.map +1 -0
  25. package/dist/chunk-BP2FRPTA.js +2 -0
  26. package/dist/chunk-BP2FRPTA.js.map +1 -0
  27. package/dist/chunk-CFXQ7IR4.js +2 -0
  28. package/dist/chunk-CFXQ7IR4.js.map +1 -0
  29. package/dist/chunk-DRLZ27WH.cjs +2 -0
  30. package/dist/chunk-DRLZ27WH.cjs.map +1 -0
  31. package/dist/chunk-GAIGLFOT.js +2 -0
  32. package/dist/chunk-GAIGLFOT.js.map +1 -0
  33. package/dist/chunk-GBCWWLEX.js +2 -0
  34. package/dist/chunk-GBCWWLEX.js.map +1 -0
  35. package/dist/chunk-GCXQJEFZ.cjs +2 -0
  36. package/dist/chunk-GCXQJEFZ.cjs.map +1 -0
  37. package/dist/chunk-GDEO256Z.js +2 -0
  38. package/dist/chunk-GDEO256Z.js.map +1 -0
  39. package/dist/chunk-HXMLYPF5.js +2 -0
  40. package/dist/chunk-HXMLYPF5.js.map +1 -0
  41. package/dist/chunk-IDSE6FJ7.cjs +2 -0
  42. package/dist/chunk-IDSE6FJ7.cjs.map +1 -0
  43. package/dist/chunk-ITSIGICG.js +2 -0
  44. package/dist/chunk-ITSIGICG.js.map +1 -0
  45. package/dist/chunk-J7QU6N2U.js +2 -0
  46. package/dist/chunk-J7QU6N2U.js.map +1 -0
  47. package/dist/chunk-K32V3MHQ.cjs +2 -0
  48. package/dist/chunk-K32V3MHQ.cjs.map +1 -0
  49. package/dist/chunk-KEAW3ISB.cjs +2 -0
  50. package/dist/chunk-KEAW3ISB.cjs.map +1 -0
  51. package/dist/{chunk-E2QRPDUI.cjs → chunk-KFX5L3AF.cjs} +2 -2
  52. package/dist/{chunk-E2QRPDUI.cjs.map → chunk-KFX5L3AF.cjs.map} +1 -1
  53. package/dist/chunk-KYZ6DEDI.cjs +2 -0
  54. package/dist/chunk-KYZ6DEDI.cjs.map +1 -0
  55. package/dist/chunk-LQRU5KEQ.js +2 -0
  56. package/dist/chunk-LQRU5KEQ.js.map +1 -0
  57. package/dist/chunk-LUQA5J5W.cjs +2 -0
  58. package/dist/chunk-LUQA5J5W.cjs.map +1 -0
  59. package/dist/chunk-M25UFVFW.cjs +2 -0
  60. package/dist/chunk-M25UFVFW.cjs.map +1 -0
  61. package/dist/chunk-OIF6PONX.cjs +2 -0
  62. package/dist/chunk-OIF6PONX.cjs.map +1 -0
  63. package/dist/{chunk-FSXJI6UE.js → chunk-PP6Z3U6S.js} +2 -2
  64. package/dist/chunk-QISUHNKM.cjs +2 -0
  65. package/dist/chunk-QISUHNKM.cjs.map +1 -0
  66. package/dist/chunk-QUMY3I5T.js +2 -0
  67. package/dist/chunk-QUMY3I5T.js.map +1 -0
  68. package/dist/chunk-RNWK4YZ2.js +2 -0
  69. package/dist/chunk-RNWK4YZ2.js.map +1 -0
  70. package/dist/chunk-T2EOHTGR.js +2 -0
  71. package/dist/chunk-T2EOHTGR.js.map +1 -0
  72. package/dist/chunk-W3UMO54G.js +2 -0
  73. package/dist/chunk-W3UMO54G.js.map +1 -0
  74. package/dist/chunk-WNEFXTN4.cjs +2 -0
  75. package/dist/chunk-WNEFXTN4.cjs.map +1 -0
  76. package/dist/chunk-WZSVJ7BS.js +2 -0
  77. package/dist/chunk-WZSVJ7BS.js.map +1 -0
  78. package/dist/chunk-XEGQBIJR.cjs +2 -0
  79. package/dist/chunk-XEGQBIJR.cjs.map +1 -0
  80. package/dist/chunk-XRJ3USVN.js +2 -0
  81. package/dist/chunk-XRJ3USVN.js.map +1 -0
  82. package/dist/chunk-YEINLNE5.js +2 -0
  83. package/dist/chunk-YEINLNE5.js.map +1 -0
  84. package/dist/chunk-YMXAFSOU.cjs +2 -0
  85. package/dist/chunk-YMXAFSOU.cjs.map +1 -0
  86. package/dist/chunk-YQWAU4NX.cjs +2 -0
  87. package/dist/chunk-YQWAU4NX.cjs.map +1 -0
  88. package/dist/chunk-YSVRLPUL.js +2 -0
  89. package/dist/chunk-YSVRLPUL.js.map +1 -0
  90. package/dist/chunk-ZK6QHQWT.cjs +2 -0
  91. package/dist/chunk-ZK6QHQWT.cjs.map +1 -0
  92. package/dist/components/accordion.cjs +1 -1
  93. package/dist/components/accordion.js +1 -1
  94. package/dist/components/breadcrumb.cjs +1 -1
  95. package/dist/components/breadcrumb.js +1 -1
  96. package/dist/components/calendar.cjs +1 -1
  97. package/dist/components/calendar.js +1 -1
  98. package/dist/components/carousel.cjs +1 -1
  99. package/dist/components/carousel.js +1 -1
  100. package/dist/components/checkbox-cards.cjs +1 -1
  101. package/dist/components/checkbox-cards.js +1 -1
  102. package/dist/components/checkbox-group.cjs +1 -1
  103. package/dist/components/checkbox-group.js +1 -1
  104. package/dist/components/checkbox.cjs +1 -1
  105. package/dist/components/checkbox.js +1 -1
  106. package/dist/components/command.cjs +1 -1
  107. package/dist/components/command.js +1 -1
  108. package/dist/components/context-menu.cjs +1 -1
  109. package/dist/components/context-menu.js +1 -1
  110. package/dist/components/data-table.cjs +1 -1
  111. package/dist/components/data-table.js +1 -1
  112. package/dist/components/dialog.cjs +1 -1
  113. package/dist/components/dialog.js +1 -1
  114. package/dist/components/dropdown-menu.cjs +1 -1
  115. package/dist/components/dropdown-menu.js +1 -1
  116. package/dist/components/input-otp.cjs +1 -1
  117. package/dist/components/input-otp.js +1 -1
  118. package/dist/components/menubar.cjs +1 -1
  119. package/dist/components/menubar.js +1 -1
  120. package/dist/components/navigation-menu.cjs +1 -1
  121. package/dist/components/navigation-menu.js +1 -1
  122. package/dist/components/number-input.cjs +1 -1
  123. package/dist/components/number-input.js +1 -1
  124. package/dist/components/pagination.cjs +1 -1
  125. package/dist/components/pagination.js +1 -1
  126. package/dist/components/password-input.cjs +1 -1
  127. package/dist/components/password-input.js +1 -1
  128. package/dist/components/resizable.cjs +1 -1
  129. package/dist/components/resizable.js +1 -1
  130. package/dist/components/search-input.cjs +1 -1
  131. package/dist/components/search-input.js +1 -1
  132. package/dist/components/select.cjs +1 -1
  133. package/dist/components/select.js +1 -1
  134. package/dist/components/sheet.cjs +1 -1
  135. package/dist/components/sheet.js +1 -1
  136. package/dist/components/sidebar.cjs +1 -1
  137. package/dist/components/sidebar.js +1 -1
  138. package/dist/index.cjs +1 -1
  139. package/dist/index.js +1 -1
  140. package/package.json +9 -10
  141. package/dist/chunk-4PL3DAT2.cjs +0 -2
  142. package/dist/chunk-4PL3DAT2.cjs.map +0 -1
  143. package/dist/chunk-5I7UA4HT.js +0 -2
  144. package/dist/chunk-5I7UA4HT.js.map +0 -1
  145. package/dist/chunk-5LM6T7Z5.js +0 -2
  146. package/dist/chunk-5LM6T7Z5.js.map +0 -1
  147. package/dist/chunk-B5V32KRW.cjs +0 -2
  148. package/dist/chunk-B5V32KRW.cjs.map +0 -1
  149. package/dist/chunk-BAOFKRE7.cjs +0 -2
  150. package/dist/chunk-BAOFKRE7.cjs.map +0 -1
  151. package/dist/chunk-BHLW3MWI.js +0 -2
  152. package/dist/chunk-BHLW3MWI.js.map +0 -1
  153. package/dist/chunk-C4SXNTCJ.js +0 -2
  154. package/dist/chunk-C4SXNTCJ.js.map +0 -1
  155. package/dist/chunk-CRQ5URNB.js +0 -2
  156. package/dist/chunk-CRQ5URNB.js.map +0 -1
  157. package/dist/chunk-DIYHARQU.cjs +0 -2
  158. package/dist/chunk-DIYHARQU.cjs.map +0 -1
  159. package/dist/chunk-DQBQF25F.cjs +0 -2
  160. package/dist/chunk-DQBQF25F.cjs.map +0 -1
  161. package/dist/chunk-DUDXLCPG.js +0 -2
  162. package/dist/chunk-DUDXLCPG.js.map +0 -1
  163. package/dist/chunk-EEDKRHHZ.cjs.map +0 -1
  164. package/dist/chunk-GUOQM6BL.cjs +0 -2
  165. package/dist/chunk-GUOQM6BL.cjs.map +0 -1
  166. package/dist/chunk-GV5FQF4J.js +0 -2
  167. package/dist/chunk-GV5FQF4J.js.map +0 -1
  168. package/dist/chunk-I6LNZ6KP.cjs +0 -2
  169. package/dist/chunk-I6LNZ6KP.cjs.map +0 -1
  170. package/dist/chunk-IPRXHJQ5.cjs +0 -2
  171. package/dist/chunk-IPRXHJQ5.cjs.map +0 -1
  172. package/dist/chunk-JMYWGU6A.js +0 -2
  173. package/dist/chunk-JMYWGU6A.js.map +0 -1
  174. package/dist/chunk-KASTA74M.cjs +0 -2
  175. package/dist/chunk-KASTA74M.cjs.map +0 -1
  176. package/dist/chunk-LGRBBJSZ.js +0 -2
  177. package/dist/chunk-LGRBBJSZ.js.map +0 -1
  178. package/dist/chunk-LJPFJ6NG.js +0 -2
  179. package/dist/chunk-LJPFJ6NG.js.map +0 -1
  180. package/dist/chunk-MHH6QORE.cjs +0 -2
  181. package/dist/chunk-MHH6QORE.cjs.map +0 -1
  182. package/dist/chunk-MO7TQSRR.js +0 -2
  183. package/dist/chunk-MO7TQSRR.js.map +0 -1
  184. package/dist/chunk-MYT23AOL.js +0 -2
  185. package/dist/chunk-MYT23AOL.js.map +0 -1
  186. package/dist/chunk-O632SAUI.js +0 -2
  187. package/dist/chunk-O632SAUI.js.map +0 -1
  188. package/dist/chunk-OH3BXT6D.js +0 -2
  189. package/dist/chunk-OH3BXT6D.js.map +0 -1
  190. package/dist/chunk-OOEZEXWK.cjs +0 -2
  191. package/dist/chunk-OOEZEXWK.cjs.map +0 -1
  192. package/dist/chunk-OUWUINGX.cjs +0 -2
  193. package/dist/chunk-OUWUINGX.cjs.map +0 -1
  194. package/dist/chunk-P3YLZBAU.js +0 -2
  195. package/dist/chunk-P3YLZBAU.js.map +0 -1
  196. package/dist/chunk-PCKCN7MO.js +0 -2
  197. package/dist/chunk-PCKCN7MO.js.map +0 -1
  198. package/dist/chunk-PYKB3C2F.cjs +0 -2
  199. package/dist/chunk-PYKB3C2F.cjs.map +0 -1
  200. package/dist/chunk-Q7IH47TY.js +0 -2
  201. package/dist/chunk-Q7IH47TY.js.map +0 -1
  202. package/dist/chunk-QEIZTAWS.js +0 -2
  203. package/dist/chunk-QEIZTAWS.js.map +0 -1
  204. package/dist/chunk-R5235IUC.cjs +0 -2
  205. package/dist/chunk-R5235IUC.cjs.map +0 -1
  206. package/dist/chunk-RAOQ5OMD.cjs +0 -2
  207. package/dist/chunk-RAOQ5OMD.cjs.map +0 -1
  208. package/dist/chunk-SDGFNHJP.cjs +0 -2
  209. package/dist/chunk-SDGFNHJP.cjs.map +0 -1
  210. package/dist/chunk-TTKMKXCU.js +0 -2
  211. package/dist/chunk-TTKMKXCU.js.map +0 -1
  212. package/dist/chunk-UHHMORLE.js +0 -2
  213. package/dist/chunk-UHHMORLE.js.map +0 -1
  214. package/dist/chunk-UIVPC5TQ.cjs +0 -2
  215. package/dist/chunk-UIVPC5TQ.cjs.map +0 -1
  216. package/dist/chunk-UQWSMTYF.js +0 -2
  217. package/dist/chunk-UQWSMTYF.js.map +0 -1
  218. package/dist/chunk-VBE6D4FZ.cjs +0 -2
  219. package/dist/chunk-VBE6D4FZ.cjs.map +0 -1
  220. package/dist/chunk-VFOMCFSG.cjs +0 -2
  221. package/dist/chunk-VFOMCFSG.cjs.map +0 -1
  222. package/dist/chunk-YORY32TX.cjs +0 -2
  223. package/dist/chunk-YORY32TX.cjs.map +0 -1
  224. package/dist/chunk-YTSBANYY.js +0 -2
  225. package/dist/chunk-YTSBANYY.js.map +0 -1
  226. package/dist/chunk-Z7U5IONC.cjs +0 -2
  227. package/dist/chunk-Z7U5IONC.cjs.map +0 -1
  228. /package/dist/{chunk-FSXJI6UE.js.map → chunk-PP6Z3U6S.js.map} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-UIVPC5TQ.cjs","../src/components/checkbox-cards.tsx"],"names":["CheckboxCards","forwardRef","className","props","forwardedRef","jsx","cn","CheckboxCardsItem","children","checkboxClassName","jsxs","CheckIcon"],"mappings":"AAAA,mZAAwC,6GCAA,mDACd,8BACmD,+CAY3E,IADIA,CAAAA,CAAgBC,+BAAAA,CAAsD,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACnGC,6BAAAA,CAAwB,CAAA,IAAA,CAAvB,CAA4B,SAAA,CAAWC,iCAAAA,YAAG,CAAcJ,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,GAAA,CAAKC,CAAAA,CAAc,CACpG,CAAA,CAEDJ,CAAAA,CAAc,WAAA,CAAqC,CAAA,CAAA,IAAA,CAAK,WAAA,CAYxD,IAAMO,CAAAA,CAAoBN,+BAAAA,CACvB,CAAE,QAAA,CAAAO,CAAAA,CAAU,SAAA,CAAAN,CAAAA,CAAW,iBAAA,CAAAO,CAAAA,CAAmB,GAAGN,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACrDM,8BAAAA,OAAC,CAAA,CAAM,SAAA,CAAWJ,iCAAAA,oEAAG,CAAsEJ,CAAS,CAAA,CACjG,QAAA,CAAA,CAAAM,CAAAA,CACDH,6BAAAA,CAAwB,CAAA,IAAA,CAAvB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,mHACT,CACA,4BAAA,CACA,qDAAA,CACA,qGAAA,CACA,6CAAA,CACAG,CACF,CAAA,CACC,GAAGN,CAAAA,CAEJ,QAAA,CAAAE,6BAAAA,CAAwB,CAAA,sBAAA,CAAvB,CACC,QAAA,CAAAA,6BAAAA,qBAACM,CAAA,CAAU,SAAA,CAAU,UAAA,CAAW,CAAA,CAClC,CAAA,CACF,CAAA,CAAA,CACF,CAEJ,CAAA,CAEAJ,CAAAA,CAAkB,WAAA,CAAqC,CAAA,CAAA,IAAA,CAAK,WAAA,CAAA,6BAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-UIVPC5TQ.cjs","sourcesContent":[null,"import * as CheckboxGroupPrimitive from '@codefast-ui/checkbox-group';\nimport { CheckIcon } from '@radix-ui/react-icons';\nimport { type ComponentPropsWithoutRef, type ComponentRef, forwardRef } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxCards\n * -------------------------------------------------------------------------- */\n\ntype CheckboxCardsElement = ComponentRef<typeof CheckboxGroupPrimitive.Root>;\ntype CheckboxCardsProps = ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Root>;\n\nconst CheckboxCards = forwardRef<CheckboxCardsElement, CheckboxCardsProps>(({ className, ...props }, forwardedRef) => (\n <CheckboxGroupPrimitive.Root className={cn('grid gap-2', className)} {...props} ref={forwardedRef} />\n));\n\nCheckboxCards.displayName = CheckboxGroupPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxCardsItem\n * -------------------------------------------------------------------------- */\n\ntype CheckboxCardsItemElement = ComponentRef<typeof CheckboxGroupPrimitive.Item>;\n\ninterface CheckboxCardsItemProps extends ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Item> {\n checkboxClassName?: string;\n}\n\nconst CheckboxCardsItem = forwardRef<CheckboxCardsItemElement, CheckboxCardsItemProps>(\n ({ children, className, checkboxClassName, ...props }, forwardedRef) => (\n <label className={cn('group flex items-center justify-center gap-4 rounded-md border p-4', className)}>\n {children}\n <CheckboxGroupPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'border-input text-primary-foreground peer flex size-4 shrink-0 cursor-pointer rounded border shadow-sm transition',\n 'group-hover:border-primary',\n 'aria-checked:border-primary aria-checked:bg-primary',\n 'focus-visible:ring-ring focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2',\n 'disabled:cursor-default disabled:opacity-50',\n checkboxClassName,\n )}\n {...props}\n >\n <CheckboxGroupPrimitive.CheckboxGroupIndicator>\n <CheckIcon className=\"size-3.5\" />\n </CheckboxGroupPrimitive.CheckboxGroupIndicator>\n </CheckboxGroupPrimitive.Item>\n </label>\n ),\n);\n\nCheckboxCardsItem.displayName = CheckboxGroupPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { CheckboxCards, CheckboxCardsItem, type CheckboxCardsItemProps, type CheckboxCardsProps };\n"]}
@@ -1,2 +0,0 @@
1
- import{a as t}from"./chunk-VPYH6JWS.js";import*as o from"@radix-ui/react-accordion";import{ChevronRightIcon as d}from"@radix-ui/react-icons";import{Slot as m}from"@radix-ui/react-slot";import{forwardRef as c}from"react";import{jsx as i}from"react/jsx-runtime";var C=o.Root,v=o.Item;function u({asChild:r,className:e,...n}){return r?i(m,{className:t("text-muted-foreground size-4 shrink-0 transition","group-data-[state=open]:rotate-90",e),...n}):i(d,{"aria-hidden":!0,className:t("text-muted-foreground size-4 shrink-0 transition","group-data-[state=open]:rotate-90",e)})}var s=c(({className:r,...e},n)=>i(o.Header,{className:"flex",children:i(o.Trigger,{ref:n,className:t("group flex grow items-center gap-2 py-4 text-left text-sm font-medium",r),...e})}));s.displayName=o.Trigger.displayName;var a=c(({children:r,className:e,...n},p)=>i(o.Content,{ref:p,className:t("overflow-hidden text-sm","data-[state=open]:animate-collapsible-open data-[state=closed]:animate-collapsible-closed"),...n,children:i("div",{className:t("pb-4 pt-0",e),children:r})}));a.displayName=o.Content.displayName;export{C as a,v as b,u as c,s as d,a as e};
2
- //# sourceMappingURL=chunk-UQWSMTYF.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/accordion.tsx"],"names":["AccordionPrimitive","ChevronRightIcon","Slot","forwardRef","jsx","Accordion","AccordionItem","AccordionIcon","asChild","className","props","cn","AccordionTrigger","forwardedRef","AccordionContent","children"],"mappings":"wCAAA,UAAYA,MAAwB,4BACpC,OAAS,oBAAAC,MAAwB,wBACjC,OAAS,QAAAC,MAAY,uBACrB,OAA2D,cAAAC,MAA4B,QA8BjF,cAAAC,MAAA,oBArBN,IAAMC,EAA+B,OAO/BC,EAAmC,OAWzC,SAASC,EAAc,CAAE,QAAAC,EAAS,UAAAC,EAAW,GAAGC,CAAM,EAAoC,CACxF,OAAIF,EAEAJ,EAACF,EAAA,CACC,UAAWS,EACT,mDACA,oCACAF,CACF,EACC,GAAGC,EACN,EAKFN,EAACH,EAAA,CACC,cAAW,GACX,UAAWU,EAAG,mDAAoD,oCAAqCF,CAAS,EAClH,CAEJ,CASA,IAAMG,EAAmBT,EACvB,CAAC,CAAE,UAAAM,EAAW,GAAGC,CAAM,EAAGG,IACxBT,EAAoB,SAAnB,CAA0B,UAAU,OACnC,SAAAA,EAAoB,UAAnB,CACC,IAAKS,EACL,UAAWF,EAAG,wEAAyEF,CAAS,EAC/F,GAAGC,EACN,EACF,CAEJ,EAEAE,EAAiB,YAAiC,UAAQ,YAS1D,IAAME,EAAmBX,EACvB,CAAC,CAAE,SAAAY,EAAU,UAAAN,EAAW,GAAGC,CAAM,EAAGG,IAClCT,EAAoB,UAAnB,CACC,IAAKS,EACL,UAAWF,EACT,0BACA,2FACF,EACC,GAAGD,EAEJ,SAAAN,EAAC,OAAI,UAAWO,EAAG,YAAaF,CAAS,EAAI,SAAAM,EAAS,EACxD,CAEJ,EAEAD,EAAiB,YAAiC,UAAQ","sourcesContent":["import * as AccordionPrimitive from '@radix-ui/react-accordion';\nimport { ChevronRightIcon } from '@radix-ui/react-icons';\nimport { Slot } from '@radix-ui/react-slot';\nimport { type ComponentPropsWithoutRef, type ComponentRef, forwardRef, type JSX } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Accordion\n * -------------------------------------------------------------------------- */\n\ntype AccordionProps = ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>;\nconst Accordion = AccordionPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionItem\n * -------------------------------------------------------------------------- */\n\ntype AccordionItemProps = ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>;\nconst AccordionItem = AccordionPrimitive.Item;\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionIcon\n * -------------------------------------------------------------------------- */\n\ninterface AccordionIconProps extends ComponentPropsWithoutRef<typeof Slot> {\n asChild?: boolean;\n className?: string;\n}\n\nfunction AccordionIcon({ asChild, className, ...props }: AccordionIconProps): JSX.Element {\n if (asChild) {\n return (\n <Slot\n className={cn(\n 'text-muted-foreground size-4 shrink-0 transition',\n 'group-data-[state=open]:rotate-90',\n className,\n )}\n {...props}\n />\n );\n }\n\n return (\n <ChevronRightIcon\n aria-hidden\n className={cn('text-muted-foreground size-4 shrink-0 transition', 'group-data-[state=open]:rotate-90', className)}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionTrigger\n * -------------------------------------------------------------------------- */\n\ntype AccordionTriggerElement = ComponentRef<typeof AccordionPrimitive.Trigger>;\ntype AccordionTriggerProps = ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>;\n\nconst AccordionTrigger = forwardRef<AccordionTriggerElement, AccordionTriggerProps>(\n ({ className, ...props }, forwardedRef) => (\n <AccordionPrimitive.Header className=\"flex\">\n <AccordionPrimitive.Trigger\n ref={forwardedRef}\n className={cn('group flex grow items-center gap-2 py-4 text-left text-sm font-medium', className)}\n {...props}\n />\n </AccordionPrimitive.Header>\n ),\n);\n\nAccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: AccordionContent\n * -------------------------------------------------------------------------- */\n\ntype AccordionContentElement = ComponentRef<typeof AccordionPrimitive.Content>;\ntype AccordionContentProps = ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>;\n\nconst AccordionContent = forwardRef<AccordionContentElement, AccordionContentProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <AccordionPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'overflow-hidden text-sm',\n 'data-[state=open]:animate-collapsible-open data-[state=closed]:animate-collapsible-closed',\n )}\n {...props}\n >\n <div className={cn('pb-4 pt-0', className)}>{children}</div>\n </AccordionPrimitive.Content>\n ),\n);\n\nAccordionContent.displayName = AccordionPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Accordion,\n AccordionContent,\n AccordionIcon,\n AccordionItem,\n AccordionTrigger,\n type AccordionContentProps,\n type AccordionIconProps,\n type AccordionItemProps,\n type AccordionProps,\n type AccordionTriggerProps,\n};\n"]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _reactcontextmenu = require('@radix-ui/react-context-menu'); var e = _interopRequireWildcard(_reactcontextmenu);var _reacticons = require('@radix-ui/react-icons');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var h=e.Root,N= exports.b =e.Trigger,E= exports.c =e.Group,T= exports.d =e.Sub,w= exports.e =e.RadioGroup,d= exports.f =_react.forwardRef.call(void 0, ({children:t,className:o,inset:n,...a},s)=>_jsxruntime.jsxs.call(void 0, e.SubTrigger,{ref:s,className:_chunkDD6AVCRHcjs.a.call(void 0, "gap-x-2 px-3 py-1.5","flex cursor-pointer select-none items-center rounded text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",n&&"pl-8",o),...a,children:[t,_jsxruntime.jsx.call(void 0, _reacticons.ChevronRightIcon,{className:"ml-auto size-4"})]}));d.displayName=e.SubTrigger.displayName;var l=_react.forwardRef.call(void 0, ({className:t,...o},n)=>_jsxruntime.jsx.call(void 0, e.Portal,{children:_jsxruntime.jsx.call(void 0, e.SubContent,{ref:n,className:_chunkDD6AVCRHcjs.a.call(void 0, "bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95","data-[state=open]:data-[side=top]:slide-in-from-bottom-2","data-[state=open]:data-[side=right]:slide-in-from-left-2","data-[state=open]:data-[side=bottom]:slide-in-from-top-2","data-[state=open]:data-[side=left]:slide-in-from-right-2","data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95","data-[state=closed]:data-[side=top]:slide-out-to-bottom-2","data-[state=closed]:data-[side=right]:slide-out-to-left-2","data-[state=closed]:data-[side=bottom]:slide-out-to-top-2","data-[state=closed]:data-[side=left]:slide-out-to-right-2",t),...o})}));l.displayName=e.SubContent.displayName;var M=_react.forwardRef.call(void 0, ({className:t,...o},n)=>_jsxruntime.jsx.call(void 0, e.Portal,{children:_jsxruntime.jsx.call(void 0, e.Content,{ref:n,className:_chunkDD6AVCRHcjs.a.call(void 0, "bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95","data-[state=open]:data-[side=top]:slide-in-from-bottom-2","data-[state=open]:data-[side=right]:slide-in-from-left-2","data-[state=open]:data-[side=bottom]:slide-in-from-top-2","data-[state=open]:data-[side=left]:slide-in-from-right-2",t),...o})}));M.displayName=e.Content.displayName;var c=_react.forwardRef.call(void 0, ({className:t,inset:o,...n},a)=>_jsxruntime.jsx.call(void 0, e.Item,{ref:a,className:_chunkDD6AVCRHcjs.a.call(void 0, "gap-x-2 px-3 py-1.5","relative flex cursor-pointer select-none items-center rounded text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","aria-disabled:pointer-events-none aria-disabled:opacity-50",o&&"pl-8",t),...n}));c.displayName=e.Item.displayName;var P=_react.forwardRef.call(void 0, ({children:t,className:o,checked:n,...a},s)=>_jsxruntime.jsxs.call(void 0, e.CheckboxItem,{ref:s,checked:n,className:_chunkDD6AVCRHcjs.a.call(void 0, "gap-x-2 px-3 py-1.5","pl-8","relative flex cursor-pointer select-none items-center rounded text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","aria-disabled:pointer-events-none aria-disabled:opacity-50",o),...a,children:[_jsxruntime.jsx.call(void 0, "span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:_jsxruntime.jsx.call(void 0, e.ItemIndicator,{children:_jsxruntime.jsx.call(void 0, _reacticons.CheckIcon,{className:"size-4"})})}),t]}));P.displayName=e.CheckboxItem.displayName;var f=_react.forwardRef.call(void 0, ({children:t,className:o,...n},a)=>_jsxruntime.jsxs.call(void 0, e.RadioItem,{ref:a,className:_chunkDD6AVCRHcjs.a.call(void 0, "gap-x-2 px-3 py-1.5","pl-8","relative flex cursor-pointer select-none items-center rounded text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","aria-disabled:pointer-events-none aria-disabled:opacity-50",o),...n,children:[_jsxruntime.jsx.call(void 0, "span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:_jsxruntime.jsx.call(void 0, e.ItemIndicator,{children:_jsxruntime.jsx.call(void 0, _reacticons.DotFilledIcon,{className:"size-4 fill-current"})})}),t]}));f.displayName=e.RadioItem.displayName;var y=_react.forwardRef.call(void 0, ({className:t,inset:o,...n},a)=>_jsxruntime.jsx.call(void 0, e.Label,{ref:a,className:_chunkDD6AVCRHcjs.a.call(void 0, "gap-x-2 px-3 py-1.5","flex items-center text-sm font-semibold",o&&"pl-8",t),...n}));y.displayName=e.Label.displayName;var b=_react.forwardRef.call(void 0, ({className:t,...o},n)=>_jsxruntime.jsx.call(void 0, e.Separator,{ref:n,className:_chunkDD6AVCRHcjs.a.call(void 0, "bg-muted mx-2 my-1 h-px",t),...o}));b.displayName=e.Separator.displayName;function k({className:t,...o}){return _jsxruntime.jsx.call(void 0, "span",{className:_chunkDD6AVCRHcjs.a.call(void 0, "text-muted-foreground ml-auto text-xs tracking-widest",t),...o})}var v=_react.forwardRef.call(void 0, ({className:t,...o},n)=>_jsxruntime.jsx.call(void 0, e.Arrow,{ref:n,className:_chunkDD6AVCRHcjs.a.call(void 0, "fill-popover",t),...o}));v.displayName=e.Arrow.displayName;exports.a = h; exports.b = N; exports.c = E; exports.d = T; exports.e = w; exports.f = d; exports.g = l; exports.h = M; exports.i = c; exports.j = P; exports.k = f; exports.l = y; exports.m = b; exports.n = k; exports.o = v;
2
- //# sourceMappingURL=chunk-VBE6D4FZ.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-VBE6D4FZ.cjs","../src/components/context-menu.tsx"],"names":["ContextMenu","ContextMenuTrigger","ContextMenuGroup","ContextMenuSub","ContextMenuRadioGroup","ContextMenuSubTrigger","forwardRef","children","className","inset","props","forwardedRef","jsxs","cn","jsx","ChevronRightIcon","ContextMenuSubContent","ContextMenuContent","ContextMenuItem","ContextMenuCheckboxItem","checked","CheckIcon","ContextMenuRadioItem","DotFilledIcon","ContextMenuLabel","ContextMenuSeparator","ContextMenuShortcut","ContextMenuArrow"],"mappings":"AAAA,mZAAwC,oHCAF,mDACqB,8BAQpD,+CAkDH,IAzCEA,CAAAA,CAAmC,CAAA,CAAA,IAAA,CAOnCC,CAAAA,aAA0C,CAAA,CAAA,OAAA,CAO1CC,CAAAA,aAAwC,CAAA,CAAA,KAAA,CAOxCC,CAAAA,aAAsC,CAAA,CAAA,GAAA,CAOtCC,CAAAA,aAA6C,CAAA,CAAA,UAAA,CAW7CC,CAAAA,aAAwBC,+BAAAA,CAC3B,CAAE,QAAA,CAAAC,CAAAA,CAAU,SAAA,CAAAC,CAAAA,CAAW,KAAA,CAAAC,CAAAA,CAAO,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACzCC,8BAAAA,CAAsB,CAAA,UAAA,CAArB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,qBACT,CACA,8DAAA,CACA,iEAAA,CACA,sEAAA,CACAJ,CAAAA,EAAS,MAAA,CACTD,CACF,CAAA,CACC,GAAGE,CAAAA,CAEH,QAAA,CAAA,CAAAH,CAAAA,CACDO,6BAAAA,4BAACC,CAAA,CAAiB,SAAA,CAAU,gBAAA,CAAiB,CAAA,CAAA,CAC/C,CAEJ,CAAA,CAEAV,CAAAA,CAAsB,WAAA,CAAmC,CAAA,CAAA,UAAA,CAAW,WAAA,CASpE,IAAMW,CAAAA,CAAwBV,+BAAAA,CAC3B,CAAE,SAAA,CAAAE,CAAAA,CAAW,GAAGE,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBG,6BAAAA,CAAsB,CAAA,MAAA,CAArB,CACC,QAAA,CAAAA,6BAAAA,CAAsB,CAAA,UAAA,CAArB,CACC,GAAA,CAAKH,CAAAA,CACL,SAAA,CAAWE,iCAAAA,kF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,CAAS,CAAA,CAAI,GAAGE,CAAAA,CAAO,CAExG,CAAA,CAEAiB,CAAAA,CAAiB,WAAA,CAAmC,CAAA,CAAA,KAAA,CAAM,WAAA,CAAA,gOAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-VBE6D4FZ.cjs","sourcesContent":[null,"import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';\nimport { CheckIcon, ChevronRightIcon, DotFilledIcon } from '@radix-ui/react-icons';\nimport {\n type ComponentProps,\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n type HTMLAttributes,\n type JSX,\n} from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenu\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuProps = ComponentProps<typeof ContextMenuPrimitive.Root>;\nconst ContextMenu = ContextMenuPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuTrigger\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuTriggerProps = ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Trigger>;\nconst ContextMenuTrigger = ContextMenuPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuGroup\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuGroupProps = ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Group>;\nconst ContextMenuGroup = ContextMenuPrimitive.Group;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuSub\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuSubProps = ComponentProps<typeof ContextMenuPrimitive.Sub>;\nconst ContextMenuSub = ContextMenuPrimitive.Sub;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuRadioGroup\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuRadioGroupProps = ComponentPropsWithoutRef<typeof ContextMenuPrimitive.RadioGroup>;\nconst ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuSubTrigger\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuSubTriggerElement = ComponentRef<typeof ContextMenuPrimitive.SubTrigger>;\ninterface ContextMenuSubTriggerProps extends ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubTrigger> {\n inset?: boolean;\n}\n\nconst ContextMenuSubTrigger = forwardRef<ContextMenuSubTriggerElement, ContextMenuSubTriggerProps>(\n ({ children, className, inset, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.SubTrigger\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'flex cursor-pointer select-none items-center rounded text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'data-[state=open]:bg-accent data-[state=open]:text-accent-foreground',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto size-4\" />\n </ContextMenuPrimitive.SubTrigger>\n ),\n);\n\nContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuSubContent\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuSubContentElement = ComponentRef<typeof ContextMenuPrimitive.SubContent>;\ntype ContextMenuSubContentProps = ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubContent>;\n\nconst ContextMenuSubContent = forwardRef<ContextMenuSubContentElement, ContextMenuSubContentProps>(\n ({ className, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.Portal>\n <ContextMenuPrimitive.SubContent\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md',\n 'data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95',\n 'data-[state=open]:data-[side=top]:slide-in-from-bottom-2',\n 'data-[state=open]:data-[side=right]:slide-in-from-left-2',\n 'data-[state=open]:data-[side=bottom]:slide-in-from-top-2',\n 'data-[state=open]:data-[side=left]:slide-in-from-right-2',\n 'data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95',\n 'data-[state=closed]:data-[side=top]:slide-out-to-bottom-2',\n 'data-[state=closed]:data-[side=right]:slide-out-to-left-2',\n 'data-[state=closed]:data-[side=bottom]:slide-out-to-top-2',\n 'data-[state=closed]:data-[side=left]:slide-out-to-right-2',\n className,\n )}\n {...props}\n />\n </ContextMenuPrimitive.Portal>\n ),\n);\n\nContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuContent\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuContentElement = ComponentRef<typeof ContextMenuPrimitive.Content>;\ntype ContextMenuContentProps = ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Content>;\n\nconst ContextMenuContent = forwardRef<ContextMenuContentElement, ContextMenuContentProps>(\n ({ className, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.Portal>\n <ContextMenuPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md',\n 'data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95',\n 'data-[state=open]:data-[side=top]:slide-in-from-bottom-2',\n 'data-[state=open]:data-[side=right]:slide-in-from-left-2',\n 'data-[state=open]:data-[side=bottom]:slide-in-from-top-2',\n 'data-[state=open]:data-[side=left]:slide-in-from-right-2',\n className,\n )}\n {...props}\n />\n </ContextMenuPrimitive.Portal>\n ),\n);\n\nContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuItem\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuItemElement = ComponentRef<typeof ContextMenuPrimitive.Item>;\ninterface ContextMenuItemProps extends ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Item> {\n inset?: boolean;\n}\n\nconst ContextMenuItem = forwardRef<ContextMenuItemElement, ContextMenuItemProps>(\n ({ className, inset, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'relative flex cursor-pointer select-none items-center rounded text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n ),\n);\n\nContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuCheckboxItem\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuCheckboxItemElement = ComponentRef<typeof ContextMenuPrimitive.CheckboxItem>;\ntype ContextMenuCheckboxItemProps = ComponentPropsWithoutRef<typeof ContextMenuPrimitive.CheckboxItem>;\n\nconst ContextMenuCheckboxItem = forwardRef<ContextMenuCheckboxItemElement, ContextMenuCheckboxItemProps>(\n ({ children, className, checked, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.CheckboxItem\n ref={forwardedRef}\n checked={checked}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'pl-8',\n 'relative flex cursor-pointer select-none items-center rounded text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <ContextMenuPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </ContextMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </ContextMenuPrimitive.CheckboxItem>\n ),\n);\n\nContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuRadioItem\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuRadioItemElement = ComponentRef<typeof ContextMenuPrimitive.RadioItem>;\ntype ContextMenuRadioItemProps = ComponentPropsWithoutRef<typeof ContextMenuPrimitive.RadioItem>;\n\nconst ContextMenuRadioItem = forwardRef<ContextMenuRadioItemElement, ContextMenuRadioItemProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.RadioItem\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'pl-8',\n 'relative flex cursor-pointer select-none items-center rounded text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <ContextMenuPrimitive.ItemIndicator>\n <DotFilledIcon className=\"size-4 fill-current\" />\n </ContextMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </ContextMenuPrimitive.RadioItem>\n ),\n);\n\nContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuLabel\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuLabelElement = ComponentRef<typeof ContextMenuPrimitive.Label>;\ninterface ContextMenuLabelProps extends ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Label> {\n inset?: boolean;\n}\n\nconst ContextMenuLabel = forwardRef<ContextMenuLabelElement, ContextMenuLabelProps>(\n ({ className, inset, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.Label\n ref={forwardedRef}\n className={cn('gap-x-2 px-3 py-1.5', 'flex items-center text-sm font-semibold', inset && 'pl-8', className)}\n {...props}\n />\n ),\n);\n\nContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuSeparator\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuSeparatorElement = ComponentRef<typeof ContextMenuPrimitive.Separator>;\ntype ContextMenuSeparatorProps = ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Separator>;\n\nconst ContextMenuSeparator = forwardRef<ContextMenuSeparatorElement, ContextMenuSeparatorProps>(\n ({ className, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.Separator\n ref={forwardedRef}\n className={cn('bg-muted mx-2 my-1 h-px', className)}\n {...props}\n />\n ),\n);\n\nContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuShortcut\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuShortcutProps = HTMLAttributes<HTMLSpanElement>;\n\nfunction ContextMenuShortcut({ className, ...props }: ContextMenuShortcutProps): JSX.Element {\n return <span className={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuArrow\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuArrowElement = ComponentRef<typeof ContextMenuPrimitive.Arrow>;\ntype ContextMenuArrowProps = ContextMenuPrimitive.ContextMenuArrowProps;\n\nconst ContextMenuArrow = forwardRef<ContextMenuArrowElement, ContextMenuArrowProps>(\n ({ className, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.Arrow ref={forwardedRef} className={cn('fill-popover', className)} {...props} />\n ),\n);\n\nContextMenuArrow.displayName = ContextMenuPrimitive.Arrow.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n ContextMenu,\n ContextMenuArrow,\n ContextMenuCheckboxItem,\n ContextMenuContent,\n ContextMenuGroup,\n ContextMenuItem,\n ContextMenuLabel,\n ContextMenuRadioGroup,\n ContextMenuRadioItem,\n ContextMenuSeparator,\n ContextMenuShortcut,\n ContextMenuSub,\n ContextMenuSubContent,\n ContextMenuSubTrigger,\n ContextMenuTrigger,\n type ContextMenuArrowProps,\n type ContextMenuCheckboxItemProps,\n type ContextMenuContentProps,\n type ContextMenuGroupProps,\n type ContextMenuItemProps,\n type ContextMenuLabelProps,\n type ContextMenuProps,\n type ContextMenuRadioGroupProps,\n type ContextMenuRadioItemProps,\n type ContextMenuSeparatorProps,\n type ContextMenuShortcutProps,\n type ContextMenuSubContentProps,\n type ContextMenuSubProps,\n type ContextMenuSubTriggerProps,\n type ContextMenuTriggerProps,\n};\n"]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _checkboxgroup = require('@codefast-ui/checkbox-group'); var o = _interopRequireWildcard(_checkboxgroup);var _reacticons = require('@radix-ui/react-icons');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var n=_react.forwardRef.call(void 0, ({className:r,...i},p)=>_jsxruntime.jsx.call(void 0, o.Root,{ref:p,className:_chunkDD6AVCRHcjs.a.call(void 0, "grid gap-2",r),...i}));n.displayName="CheckboxGroup";var b=_react.forwardRef.call(void 0, ({className:r,...i},p)=>_jsxruntime.jsx.call(void 0, o.Item,{ref:p,className:_chunkDD6AVCRHcjs.a.call(void 0, ["border-input text-primary-foreground peer flex size-4 shrink-0 rounded border shadow-sm transition","hover:border-primary","aria-checked:border-primary aria-checked:bg-primary","focus-visible:ring-ring focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50"],r),...i,children:_jsxruntime.jsx.call(void 0, o.CheckboxGroupIndicator,{children:_jsxruntime.jsx.call(void 0, _reacticons.CheckIcon,{className:"size-3.5"})})}));b.displayName="CheckboxGroupItem";exports.a = n; exports.b = b;
2
- //# sourceMappingURL=chunk-VFOMCFSG.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-VFOMCFSG.cjs","../src/components/checkbox-group.tsx"],"names":["CheckboxGroup","forwardRef","className","props","forwardedRef","jsx","cn","CheckboxGroupItem","CheckIcon"],"mappings":"AAAA,mZAAwC,6GCAA,mDACd,8BACmD,+CAY3E,IADIA,CAAAA,CAAgBC,+BAAAA,CAAsD,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACnGC,6BAAAA,CAAwB,CAAA,IAAA,CAAvB,CAA4B,GAAA,CAAKD,CAAAA,CAAc,SAAA,CAAWE,iCAAAA,YAAG,CAAcJ,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,CACpG,CAAA,CAEDH,CAAAA,CAAc,WAAA,CAAc,eAAA,CAS5B,IAAMO,CAAAA,CAAoBN,+BAAAA,CACvB,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBC,6BAAAA,CAAwB,CAAA,IAAA,CAAvB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,CAEP,oGAAA,CACA,sBAAA,CACA,qDAAA,CACA,qGAAA,CACA,kDACF,CAAA,CACAJ,CACF,CAAA,CACC,GAAGC,CAAAA,CAEJ,QAAA,CAAAE,6BAAAA,CAAwB,CAAA,sBAAA,CAAvB,CACC,QAAA,CAAAA,6BAAAA,qBAACG,CAAA,CAAU,SAAA,CAAU,UAAA,CAAW,CAAA,CAClC,CAAA,CACF,CAEJ,CAAA,CAEAD,CAAAA,CAAkB,WAAA,CAAc,mBAAA,CAAA,6BAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-VFOMCFSG.cjs","sourcesContent":[null,"import * as CheckboxGroupPrimitive from '@codefast-ui/checkbox-group';\nimport { CheckIcon } from '@radix-ui/react-icons';\nimport { type ComponentPropsWithoutRef, type ComponentRef, forwardRef } from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroup\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupElement = ComponentRef<typeof CheckboxGroupPrimitive.Root>;\ntype CheckboxGroupProps = ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Root>;\n\nconst CheckboxGroup = forwardRef<CheckboxGroupElement, CheckboxGroupProps>(({ className, ...props }, forwardedRef) => (\n <CheckboxGroupPrimitive.Root ref={forwardedRef} className={cn('grid gap-2', className)} {...props} />\n));\n\nCheckboxGroup.displayName = 'CheckboxGroup';\n\n/* -----------------------------------------------------------------------------\n * Component: CheckboxGroupItem\n * -------------------------------------------------------------------------- */\n\ntype CheckboxGroupItemElement = ComponentRef<typeof CheckboxGroupPrimitive.Item>;\ntype CheckboxGroupItemProps = ComponentPropsWithoutRef<typeof CheckboxGroupPrimitive.Item>;\n\nconst CheckboxGroupItem = forwardRef<CheckboxGroupItemElement, CheckboxGroupItemProps>(\n ({ className, ...props }, forwardedRef) => (\n <CheckboxGroupPrimitive.Item\n ref={forwardedRef}\n className={cn(\n [\n 'border-input text-primary-foreground peer flex size-4 shrink-0 rounded border shadow-sm transition',\n 'hover:border-primary',\n 'aria-checked:border-primary aria-checked:bg-primary',\n 'focus-visible:ring-ring focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2',\n 'disabled:pointer-events-none disabled:opacity-50',\n ],\n className,\n )}\n {...props}\n >\n <CheckboxGroupPrimitive.CheckboxGroupIndicator>\n <CheckIcon className=\"size-3.5\" />\n </CheckboxGroupPrimitive.CheckboxGroupIndicator>\n </CheckboxGroupPrimitive.Item>\n ),\n);\n\nCheckboxGroupItem.displayName = 'CheckboxGroupItem';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { CheckboxGroup, CheckboxGroupItem, type CheckboxGroupItemProps, type CheckboxGroupProps };\n"]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunkDD6AVCRHcjs = require('./chunk-DD6AVCRH.cjs');var _reactdropdownmenu = require('@radix-ui/react-dropdown-menu'); var e = _interopRequireWildcard(_reactdropdownmenu);var _reacticons = require('@radix-ui/react-icons');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var h=e.Root,R= exports.b =e.Trigger,S= exports.c =e.Group,N= exports.d =e.Sub,T= exports.e =e.RadioGroup,w= exports.f =_react.forwardRef.call(void 0, ({children:o,className:t,inset:n,...p},d)=>_jsxruntime.jsxs.call(void 0, e.SubTrigger,{ref:d,className:_chunkDD6AVCRHcjs.a.call(void 0, "gap-x-2 px-3 py-1.5","flex cursor-pointer select-none items-center rounded text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",n&&"pl-8",t),...p,children:[o,_jsxruntime.jsx.call(void 0, _reacticons.ChevronRightIcon,{className:"ml-auto size-4"})]}));w.displayName=e.SubTrigger.displayName;var M=_react.forwardRef.call(void 0, ({className:o,...t},n)=>_jsxruntime.jsx.call(void 0, e.Portal,{children:_jsxruntime.jsx.call(void 0, e.SubContent,{ref:n,className:_chunkDD6AVCRHcjs.a.call(void 0, "bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95","data-[state=open]:data-[side=top]:slide-in-from-bottom-2","data-[state=open]:data-[side=right]:slide-in-from-left-2","data-[state=open]:data-[side=bottom]:slide-in-from-top-2","data-[state=open]:data-[side=left]:slide-in-from-right-2","data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95","data-[state=closed]:data-[side=top]:slide-out-to-bottom-2","data-[state=closed]:data-[side=right]:slide-out-to-left-2","data-[state=closed]:data-[side=bottom]:slide-out-to-top-2","data-[state=closed]:data-[side=left]:slide-out-to-right-2",o),...t})}));M.displayName=e.SubContent.displayName;var D=_react.forwardRef.call(void 0, ({className:o,sideOffset:t=6,...n},p)=>_jsxruntime.jsx.call(void 0, e.Portal,{children:_jsxruntime.jsx.call(void 0, e.Content,{ref:p,className:_chunkDD6AVCRHcjs.a.call(void 0, "bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95","data-[state=open]:data-[side=top]:slide-in-from-bottom-2","data-[state=open]:data-[side=right]:slide-in-from-left-2","data-[state=open]:data-[side=bottom]:slide-in-from-top-2","data-[state=open]:data-[side=left]:slide-in-from-right-2","data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95","data-[state=closed]:data-[side=top]:slide-out-to-bottom-2","data-[state=closed]:data-[side=right]:slide-out-to-left-2","data-[state=closed]:data-[side=bottom]:slide-out-to-top-2","data-[state=closed]:data-[side=left]:slide-out-to-right-2",o),sideOffset:t,...n})}));D.displayName=e.Content.displayName;var c=_react.forwardRef.call(void 0, ({className:o,inset:t,...n},p)=>_jsxruntime.jsx.call(void 0, e.Item,{ref:p,className:_chunkDD6AVCRHcjs.a.call(void 0, "gap-x-2 px-3 py-1.5","relative flex cursor-pointer select-none items-center rounded text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","aria-disabled:pointer-events-none aria-disabled:opacity-50",t&&"pl-8",o),...n}));c.displayName=e.Item.displayName;var P=_react.forwardRef.call(void 0, ({children:o,className:t,checked:n,...p},d)=>_jsxruntime.jsxs.call(void 0, e.CheckboxItem,{ref:d,checked:n,className:_chunkDD6AVCRHcjs.a.call(void 0, "gap-x-2 px-3 py-1.5","pl-8","relative flex cursor-pointer select-none items-center rounded text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","aria-disabled:pointer-events-none aria-disabled:opacity-50",t),...p,children:[_jsxruntime.jsx.call(void 0, "span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:_jsxruntime.jsx.call(void 0, e.ItemIndicator,{children:_jsxruntime.jsx.call(void 0, _reacticons.CheckIcon,{className:"size-4"})})}),o]}));P.displayName=e.CheckboxItem.displayName;var f=_react.forwardRef.call(void 0, ({children:o,className:t,...n},p)=>_jsxruntime.jsxs.call(void 0, e.RadioItem,{ref:p,className:_chunkDD6AVCRHcjs.a.call(void 0, "gap-x-2 px-3 py-1.5","pl-8","relative flex cursor-pointer select-none items-center rounded text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","aria-disabled:pointer-events-none aria-disabled:opacity-50",t),...n,children:[_jsxruntime.jsx.call(void 0, "span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:_jsxruntime.jsx.call(void 0, e.ItemIndicator,{children:_jsxruntime.jsx.call(void 0, _reacticons.DotFilledIcon,{className:"size-4 fill-current"})})}),o]}));f.displayName=e.RadioItem.displayName;var y=_react.forwardRef.call(void 0, ({className:o,inset:t,...n},p)=>_jsxruntime.jsx.call(void 0, e.Label,{ref:p,className:_chunkDD6AVCRHcjs.a.call(void 0, "gap-x-2 px-3 py-1.5","flex items-center text-sm font-semibold",t&&"pl-8",o),...n}));y.displayName=e.Label.displayName;var b=_react.forwardRef.call(void 0, ({className:o,...t},n)=>_jsxruntime.jsx.call(void 0, e.Separator,{ref:n,className:_chunkDD6AVCRHcjs.a.call(void 0, "bg-muted mx-2 my-1 h-px",o),...t}));b.displayName=e.Separator.displayName;function E({className:o,...t}){return _jsxruntime.jsx.call(void 0, "span",{className:_chunkDD6AVCRHcjs.a.call(void 0, "ml-auto text-xs tracking-widest opacity-60",o),...t})}var v=_react.forwardRef.call(void 0, ({className:o,...t},n)=>_jsxruntime.jsx.call(void 0, e.Arrow,{ref:n,className:_chunkDD6AVCRHcjs.a.call(void 0, "fill-popover",o),...t}));v.displayName=e.Arrow.displayName;exports.a = h; exports.b = R; exports.c = S; exports.d = N; exports.e = T; exports.f = w; exports.g = M; exports.h = D; exports.i = c; exports.j = P; exports.k = f; exports.l = y; exports.m = b; exports.n = E; exports.o = v;
2
- //# sourceMappingURL=chunk-YORY32TX.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-YORY32TX.cjs","../src/components/dropdown-menu.tsx"],"names":["DropdownMenu","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuSub","DropdownMenuRadioGroup","DropdownMenuSubTrigger","forwardRef","children","className","inset","props","forwardedRef","jsxs","cn","jsx","ChevronRightIcon","DropdownMenuSubContent","DropdownMenuContent","sideOffset","DropdownMenuItem","DropdownMenuCheckboxItem","checked","CheckIcon","DropdownMenuRadioItem","DotFilledIcon","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuShortcut","DropdownMenuArrow"],"mappings":"AAAA,mZAAwC,uHCAD,mDACoB,8BAQpD,+CAkDH,IAzCEA,CAAAA,CAAqC,CAAA,CAAA,IAAA,CAOrCC,CAAAA,aAA4C,CAAA,CAAA,OAAA,CAO5CC,CAAAA,aAA0C,CAAA,CAAA,KAAA,CAO1CC,CAAAA,aAAwC,CAAA,CAAA,GAAA,CAOxCC,CAAAA,aAA+C,CAAA,CAAA,UAAA,CAW/CC,CAAAA,aAAyBC,+BAAAA,CAC5B,CAAE,QAAA,CAAAC,CAAAA,CAAU,SAAA,CAAAC,CAAAA,CAAW,KAAA,CAAAC,CAAAA,CAAO,GAAGC,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACzCC,8BAAAA,CAAuB,CAAA,UAAA,CAAtB,CACC,GAAA,CAAKD,CAAAA,CACL,SAAA,CAAWE,iCAAAA,qBACT,CACA,8DAAA,CACA,iEAAA,CACA,sEAAA,CACAJ,CAAAA,EAAS,MAAA,CACTD,CACF,CAAA,CACC,GAAGE,CAAAA,CAEH,QAAA,CAAA,CAAAH,CAAAA,CACDO,6BAAAA,4BAACC,CAAA,CAAiB,SAAA,CAAU,gBAAA,CAAiB,CAAA,CAAA,CAC/C,CAEJ,CAAA,CAEAV,CAAAA,CAAuB,WAAA,CAAoC,CAAA,CAAA,UAAA,CAAW,WAAA,CAQtE,IAAMW,CAAAA,CAAyBV,+BAAAA,CAG5B,CAAE,SA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CAC7F,OAAOI,6BAAAA,MAAC,CAAA,CAAK,SAAA,CAAWD,iCAAAA,4CAAG,CAA8CL,CAAS,CAAA,CAAI,GAAGE,CAAAA,CAAO,CAClG,CASA,IAAMkB,CAAAA,CAAoBtB,+BAAAA,CACvB,CAAE,SAAA,CAAAE,CAAAA,CAAW,GAAGE,CAAM,CAAA,CAAGC,CAAAA,CAAAA,EACxBG,6BAAAA,CAAuB,CAAA,KAAA,CAAtB,CAA4B,GAAA,CAAKH,CAAAA,CAAc,SAAA,CAAWE,iCAAAA,cAAG,CAAgBL,CAAS,CAAA,CAAI,GAAGE,CAAAA,CAAO,CAEzG,CAAA,CAEAkB,CAAAA,CAAkB,WAAA,CAAoC,CAAA,CAAA,KAAA,CAAM,WAAA,CAAA,gOAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-YORY32TX.cjs","sourcesContent":[null,"import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';\nimport { CheckIcon, ChevronRightIcon, DotFilledIcon } from '@radix-ui/react-icons';\nimport {\n type ComponentProps,\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n type HTMLAttributes,\n type JSX,\n} from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenu\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuProps = ComponentProps<typeof DropdownMenuPrimitive.Root>;\nconst DropdownMenu = DropdownMenuPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuTrigger\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuTriggerProps = ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Trigger>;\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuGroup\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuGroupProps = ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Group>;\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuSub\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuSubProps = ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Sub>;\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuSubTrigger\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuRadioGroupProps = ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioGroup>;\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuSubTrigger\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuSubTriggerElement = ComponentRef<typeof DropdownMenuPrimitive.SubTrigger>;\ninterface DropdownMenuSubTriggerProps extends ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> {\n inset?: boolean;\n}\n\nconst DropdownMenuSubTrigger = forwardRef<DropdownMenuSubTriggerElement, DropdownMenuSubTriggerProps>(\n ({ children, className, inset, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'flex cursor-pointer select-none items-center rounded text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'data-[state=open]:bg-accent data-[state=open]:text-accent-foreground',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto size-4\" />\n </DropdownMenuPrimitive.SubTrigger>\n ),\n);\n\nDropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuSubContent\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuSubContentProps = DropdownMenuPrimitive.DropdownMenuSubContentProps;\n\nconst DropdownMenuSubContent = forwardRef<\n ComponentRef<typeof DropdownMenuPrimitive.SubContent>,\n DropdownMenuSubContentProps\n>(({ className, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.SubContent\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md',\n 'data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95',\n 'data-[state=open]:data-[side=top]:slide-in-from-bottom-2',\n 'data-[state=open]:data-[side=right]:slide-in-from-left-2',\n 'data-[state=open]:data-[side=bottom]:slide-in-from-top-2',\n 'data-[state=open]:data-[side=left]:slide-in-from-right-2',\n 'data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95',\n 'data-[state=closed]:data-[side=top]:slide-out-to-bottom-2',\n 'data-[state=closed]:data-[side=right]:slide-out-to-left-2',\n 'data-[state=closed]:data-[side=bottom]:slide-out-to-top-2',\n 'data-[state=closed]:data-[side=left]:slide-out-to-right-2',\n className,\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\n\nDropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuContent\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuContentElement = ComponentRef<typeof DropdownMenuPrimitive.Content>;\ntype DropdownMenuContentProps = ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>;\n\nconst DropdownMenuContent = forwardRef<DropdownMenuContentElement, DropdownMenuContentProps>(\n ({ className, sideOffset = 6, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md',\n 'data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95',\n 'data-[state=open]:data-[side=top]:slide-in-from-bottom-2',\n 'data-[state=open]:data-[side=right]:slide-in-from-left-2',\n 'data-[state=open]:data-[side=bottom]:slide-in-from-top-2',\n 'data-[state=open]:data-[side=left]:slide-in-from-right-2',\n 'data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95',\n 'data-[state=closed]:data-[side=top]:slide-out-to-bottom-2',\n 'data-[state=closed]:data-[side=right]:slide-out-to-left-2',\n 'data-[state=closed]:data-[side=bottom]:slide-out-to-top-2',\n 'data-[state=closed]:data-[side=left]:slide-out-to-right-2',\n className,\n )}\n sideOffset={sideOffset}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n ),\n);\n\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuItem\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuItemElement = ComponentRef<typeof DropdownMenuPrimitive.Item>;\ninterface DropdownMenuItemProps extends ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> {\n inset?: boolean;\n}\n\nconst DropdownMenuItem = forwardRef<DropdownMenuItemElement, DropdownMenuItemProps>(\n ({ className, inset, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'relative flex cursor-pointer select-none items-center rounded text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n ),\n);\n\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuCheckboxItem\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuCheckboxItemElement = ComponentRef<typeof DropdownMenuPrimitive.CheckboxItem>;\ntype DropdownMenuCheckboxItemProps = ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>;\n\nconst DropdownMenuCheckboxItem = forwardRef<DropdownMenuCheckboxItemElement, DropdownMenuCheckboxItemProps>(\n ({ children, className, checked, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.CheckboxItem\n ref={forwardedRef}\n checked={checked}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'pl-8',\n 'relative flex cursor-pointer select-none items-center rounded text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n ),\n);\n\nDropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuRadioItem\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuRadioItemElement = ComponentRef<typeof DropdownMenuPrimitive.RadioItem>;\ntype DropdownMenuRadioItemProps = ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>;\n\nconst DropdownMenuRadioItem = forwardRef<DropdownMenuRadioItemElement, DropdownMenuRadioItemProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.RadioItem\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'pl-8',\n 'relative flex cursor-pointer select-none items-center rounded text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <DotFilledIcon className=\"size-4 fill-current\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n ),\n);\n\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuLabel\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuLabelElement = ComponentRef<typeof DropdownMenuPrimitive.Label>;\n\ninterface DropdownMenuLabelProps extends ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> {\n inset?: boolean;\n}\n\nconst DropdownMenuLabel = forwardRef<DropdownMenuLabelElement, DropdownMenuLabelProps>(\n ({ className, inset, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.Label\n ref={forwardedRef}\n className={cn('gap-x-2 px-3 py-1.5', 'flex items-center text-sm font-semibold', inset && 'pl-8', className)}\n {...props}\n />\n ),\n);\n\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuSeparator\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuSeparatorElement = ComponentRef<typeof DropdownMenuPrimitive.Separator>;\ntype DropdownMenuSeparatorProps = ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>;\n\nconst DropdownMenuSeparator = forwardRef<DropdownMenuSeparatorElement, DropdownMenuSeparatorProps>(\n ({ className, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.Separator\n ref={forwardedRef}\n className={cn('bg-muted mx-2 my-1 h-px', className)}\n {...props}\n />\n ),\n);\n\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuShortcut\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuShortcutProps = HTMLAttributes<HTMLSpanElement>;\n\nfunction DropdownMenuShortcut({ className, ...props }: DropdownMenuShortcutProps): JSX.Element {\n return <span className={cn('ml-auto text-xs tracking-widest opacity-60', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: DropdownMenuArrow\n * -------------------------------------------------------------------------- */\n\ntype DropdownMenuArrowElement = ComponentRef<typeof DropdownMenuPrimitive.Arrow>;\ntype DropdownMenuArrowProps = DropdownMenuPrimitive.DropdownMenuArrowProps;\n\nconst DropdownMenuArrow = forwardRef<DropdownMenuArrowElement, DropdownMenuArrowProps>(\n ({ className, ...props }, forwardedRef) => (\n <DropdownMenuPrimitive.Arrow ref={forwardedRef} className={cn('fill-popover', className)} {...props} />\n ),\n);\n\nDropdownMenuArrow.displayName = DropdownMenuPrimitive.Arrow.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n DropdownMenu,\n DropdownMenuArrow,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n type DropdownMenuArrowProps,\n type DropdownMenuCheckboxItemProps,\n type DropdownMenuContentProps,\n type DropdownMenuGroupProps,\n type DropdownMenuItemProps,\n type DropdownMenuLabelProps,\n type DropdownMenuProps,\n type DropdownMenuRadioGroupProps,\n type DropdownMenuRadioItemProps,\n type DropdownMenuSeparatorProps,\n type DropdownMenuShortcutProps,\n type DropdownMenuSubContentProps,\n type DropdownMenuSubProps,\n type DropdownMenuSubTriggerProps,\n type DropdownMenuTriggerProps,\n};\n"]}
@@ -1,2 +0,0 @@
1
- import{a as r}from"./chunk-VPYH6JWS.js";import*as e from"@radix-ui/react-context-menu";import{CheckIcon as m,ChevronRightIcon as C,DotFilledIcon as x}from"@radix-ui/react-icons";import{forwardRef as p}from"react";import{jsx as i,jsxs as u}from"react/jsx-runtime";var N=e.Root,E=e.Trigger,T=e.Group,w=e.Sub,k=e.RadioGroup,d=p(({children:t,className:o,inset:n,...a},s)=>u(e.SubTrigger,{ref:s,className:r("gap-x-2 px-3 py-1.5","flex cursor-pointer select-none items-center rounded text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",n&&"pl-8",o),...a,children:[t,i(C,{className:"ml-auto size-4"})]}));d.displayName=e.SubTrigger.displayName;var l=p(({className:t,...o},n)=>i(e.Portal,{children:i(e.SubContent,{ref:n,className:r("bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95","data-[state=open]:data-[side=top]:slide-in-from-bottom-2","data-[state=open]:data-[side=right]:slide-in-from-left-2","data-[state=open]:data-[side=bottom]:slide-in-from-top-2","data-[state=open]:data-[side=left]:slide-in-from-right-2","data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95","data-[state=closed]:data-[side=top]:slide-out-to-bottom-2","data-[state=closed]:data-[side=right]:slide-out-to-left-2","data-[state=closed]:data-[side=bottom]:slide-out-to-top-2","data-[state=closed]:data-[side=left]:slide-out-to-right-2",t),...o})}));l.displayName=e.SubContent.displayName;var M=p(({className:t,...o},n)=>i(e.Portal,{children:i(e.Content,{ref:n,className:r("bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md","data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95","data-[state=open]:data-[side=top]:slide-in-from-bottom-2","data-[state=open]:data-[side=right]:slide-in-from-left-2","data-[state=open]:data-[side=bottom]:slide-in-from-top-2","data-[state=open]:data-[side=left]:slide-in-from-right-2",t),...o})}));M.displayName=e.Content.displayName;var c=p(({className:t,inset:o,...n},a)=>i(e.Item,{ref:a,className:r("gap-x-2 px-3 py-1.5","relative flex cursor-pointer select-none items-center rounded text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","aria-disabled:pointer-events-none aria-disabled:opacity-50",o&&"pl-8",t),...n}));c.displayName=e.Item.displayName;var P=p(({children:t,className:o,checked:n,...a},s)=>u(e.CheckboxItem,{ref:s,checked:n,className:r("gap-x-2 px-3 py-1.5","pl-8","relative flex cursor-pointer select-none items-center rounded text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","aria-disabled:pointer-events-none aria-disabled:opacity-50",o),...a,children:[i("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:i(e.ItemIndicator,{children:i(m,{className:"size-4"})})}),t]}));P.displayName=e.CheckboxItem.displayName;var f=p(({children:t,className:o,...n},a)=>u(e.RadioItem,{ref:a,className:r("gap-x-2 px-3 py-1.5","pl-8","relative flex cursor-pointer select-none items-center rounded text-sm","focus:bg-accent focus:text-accent-foreground focus:outline-none","aria-disabled:pointer-events-none aria-disabled:opacity-50",o),...n,children:[i("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:i(e.ItemIndicator,{children:i(x,{className:"size-4 fill-current"})})}),t]}));f.displayName=e.RadioItem.displayName;var y=p(({className:t,inset:o,...n},a)=>i(e.Label,{ref:a,className:r("gap-x-2 px-3 py-1.5","flex items-center text-sm font-semibold",o&&"pl-8",t),...n}));y.displayName=e.Label.displayName;var b=p(({className:t,...o},n)=>i(e.Separator,{ref:n,className:r("bg-muted mx-2 my-1 h-px",t),...o}));b.displayName=e.Separator.displayName;function L({className:t,...o}){return i("span",{className:r("text-muted-foreground ml-auto text-xs tracking-widest",t),...o})}var v=p(({className:t,...o},n)=>i(e.Arrow,{ref:n,className:r("fill-popover",t),...o}));v.displayName=e.Arrow.displayName;export{N as a,E as b,T as c,w as d,k as e,d as f,l as g,M as h,c as i,P as j,f as k,y as l,b as m,L as n,v as o};
2
- //# sourceMappingURL=chunk-YTSBANYY.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/context-menu.tsx"],"names":["ContextMenuPrimitive","CheckIcon","ChevronRightIcon","DotFilledIcon","forwardRef","jsx","jsxs","ContextMenu","ContextMenuTrigger","ContextMenuGroup","ContextMenuSub","ContextMenuRadioGroup","ContextMenuSubTrigger","children","className","inset","props","forwardedRef","cn","ContextMenuSubContent","ContextMenuContent","ContextMenuItem","ContextMenuCheckboxItem","checked","ContextMenuRadioItem","ContextMenuLabel","ContextMenuSeparator","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YAAmC,YAAU,YAQlE,SAASC,EAAoB,CAAE,UAAAb,EAAW,GAAGE,CAAM,EAA0C,CAC3F,OAAOX,EAAC,QAAK,UAAWa,EAAG,wDAAyDJ,CAAS,EAAI,GAAGE,EAAO,CAC7G,CASA,IAAMY,EAAmBxB,EACvB,CAAC,CAAE,UAAAU,EAAW,GAAGE,CAAM,EAAGC,IACxBZ,EAAsB,QAArB,CAA2B,IAAKY,EAAc,UAAWC,EAAG,eAAgBJ,CAAS,EAAI,GAAGE,EAAO,CAExG,EAEAY,EAAiB,YAAmC,QAAM","sourcesContent":["import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';\nimport { CheckIcon, ChevronRightIcon, DotFilledIcon } from '@radix-ui/react-icons';\nimport {\n type ComponentProps,\n type ComponentPropsWithoutRef,\n type ComponentRef,\n forwardRef,\n type HTMLAttributes,\n type JSX,\n} from 'react';\n\nimport { cn } from '@/lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenu\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuProps = ComponentProps<typeof ContextMenuPrimitive.Root>;\nconst ContextMenu = ContextMenuPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuTrigger\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuTriggerProps = ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Trigger>;\nconst ContextMenuTrigger = ContextMenuPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuGroup\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuGroupProps = ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Group>;\nconst ContextMenuGroup = ContextMenuPrimitive.Group;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuSub\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuSubProps = ComponentProps<typeof ContextMenuPrimitive.Sub>;\nconst ContextMenuSub = ContextMenuPrimitive.Sub;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuRadioGroup\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuRadioGroupProps = ComponentPropsWithoutRef<typeof ContextMenuPrimitive.RadioGroup>;\nconst ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuSubTrigger\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuSubTriggerElement = ComponentRef<typeof ContextMenuPrimitive.SubTrigger>;\ninterface ContextMenuSubTriggerProps extends ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubTrigger> {\n inset?: boolean;\n}\n\nconst ContextMenuSubTrigger = forwardRef<ContextMenuSubTriggerElement, ContextMenuSubTriggerProps>(\n ({ children, className, inset, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.SubTrigger\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'flex cursor-pointer select-none items-center rounded text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'data-[state=open]:bg-accent data-[state=open]:text-accent-foreground',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto size-4\" />\n </ContextMenuPrimitive.SubTrigger>\n ),\n);\n\nContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuSubContent\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuSubContentElement = ComponentRef<typeof ContextMenuPrimitive.SubContent>;\ntype ContextMenuSubContentProps = ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubContent>;\n\nconst ContextMenuSubContent = forwardRef<ContextMenuSubContentElement, ContextMenuSubContentProps>(\n ({ className, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.Portal>\n <ContextMenuPrimitive.SubContent\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md',\n 'data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95',\n 'data-[state=open]:data-[side=top]:slide-in-from-bottom-2',\n 'data-[state=open]:data-[side=right]:slide-in-from-left-2',\n 'data-[state=open]:data-[side=bottom]:slide-in-from-top-2',\n 'data-[state=open]:data-[side=left]:slide-in-from-right-2',\n 'data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95',\n 'data-[state=closed]:data-[side=top]:slide-out-to-bottom-2',\n 'data-[state=closed]:data-[side=right]:slide-out-to-left-2',\n 'data-[state=closed]:data-[side=bottom]:slide-out-to-top-2',\n 'data-[state=closed]:data-[side=left]:slide-out-to-right-2',\n className,\n )}\n {...props}\n />\n </ContextMenuPrimitive.Portal>\n ),\n);\n\nContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuContent\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuContentElement = ComponentRef<typeof ContextMenuPrimitive.Content>;\ntype ContextMenuContentProps = ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Content>;\n\nconst ContextMenuContent = forwardRef<ContextMenuContentElement, ContextMenuContentProps>(\n ({ className, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.Portal>\n <ContextMenuPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-md',\n 'data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:zoom-in-95',\n 'data-[state=open]:data-[side=top]:slide-in-from-bottom-2',\n 'data-[state=open]:data-[side=right]:slide-in-from-left-2',\n 'data-[state=open]:data-[side=bottom]:slide-in-from-top-2',\n 'data-[state=open]:data-[side=left]:slide-in-from-right-2',\n className,\n )}\n {...props}\n />\n </ContextMenuPrimitive.Portal>\n ),\n);\n\nContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuItem\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuItemElement = ComponentRef<typeof ContextMenuPrimitive.Item>;\ninterface ContextMenuItemProps extends ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Item> {\n inset?: boolean;\n}\n\nconst ContextMenuItem = forwardRef<ContextMenuItemElement, ContextMenuItemProps>(\n ({ className, inset, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'relative flex cursor-pointer select-none items-center rounded text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n ),\n);\n\nContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuCheckboxItem\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuCheckboxItemElement = ComponentRef<typeof ContextMenuPrimitive.CheckboxItem>;\ntype ContextMenuCheckboxItemProps = ComponentPropsWithoutRef<typeof ContextMenuPrimitive.CheckboxItem>;\n\nconst ContextMenuCheckboxItem = forwardRef<ContextMenuCheckboxItemElement, ContextMenuCheckboxItemProps>(\n ({ children, className, checked, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.CheckboxItem\n ref={forwardedRef}\n checked={checked}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'pl-8',\n 'relative flex cursor-pointer select-none items-center rounded text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <ContextMenuPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </ContextMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </ContextMenuPrimitive.CheckboxItem>\n ),\n);\n\nContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuRadioItem\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuRadioItemElement = ComponentRef<typeof ContextMenuPrimitive.RadioItem>;\ntype ContextMenuRadioItemProps = ComponentPropsWithoutRef<typeof ContextMenuPrimitive.RadioItem>;\n\nconst ContextMenuRadioItem = forwardRef<ContextMenuRadioItemElement, ContextMenuRadioItemProps>(\n ({ children, className, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.RadioItem\n ref={forwardedRef}\n className={cn(\n 'gap-x-2 px-3 py-1.5',\n 'pl-8',\n 'relative flex cursor-pointer select-none items-center rounded text-sm',\n 'focus:bg-accent focus:text-accent-foreground focus:outline-none',\n 'aria-disabled:pointer-events-none aria-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <ContextMenuPrimitive.ItemIndicator>\n <DotFilledIcon className=\"size-4 fill-current\" />\n </ContextMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </ContextMenuPrimitive.RadioItem>\n ),\n);\n\nContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuLabel\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuLabelElement = ComponentRef<typeof ContextMenuPrimitive.Label>;\ninterface ContextMenuLabelProps extends ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Label> {\n inset?: boolean;\n}\n\nconst ContextMenuLabel = forwardRef<ContextMenuLabelElement, ContextMenuLabelProps>(\n ({ className, inset, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.Label\n ref={forwardedRef}\n className={cn('gap-x-2 px-3 py-1.5', 'flex items-center text-sm font-semibold', inset && 'pl-8', className)}\n {...props}\n />\n ),\n);\n\nContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuSeparator\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuSeparatorElement = ComponentRef<typeof ContextMenuPrimitive.Separator>;\ntype ContextMenuSeparatorProps = ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Separator>;\n\nconst ContextMenuSeparator = forwardRef<ContextMenuSeparatorElement, ContextMenuSeparatorProps>(\n ({ className, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.Separator\n ref={forwardedRef}\n className={cn('bg-muted mx-2 my-1 h-px', className)}\n {...props}\n />\n ),\n);\n\nContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuShortcut\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuShortcutProps = HTMLAttributes<HTMLSpanElement>;\n\nfunction ContextMenuShortcut({ className, ...props }: ContextMenuShortcutProps): JSX.Element {\n return <span className={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: ContextMenuArrow\n * -------------------------------------------------------------------------- */\n\ntype ContextMenuArrowElement = ComponentRef<typeof ContextMenuPrimitive.Arrow>;\ntype ContextMenuArrowProps = ContextMenuPrimitive.ContextMenuArrowProps;\n\nconst ContextMenuArrow = forwardRef<ContextMenuArrowElement, ContextMenuArrowProps>(\n ({ className, ...props }, forwardedRef) => (\n <ContextMenuPrimitive.Arrow ref={forwardedRef} className={cn('fill-popover', className)} {...props} />\n ),\n);\n\nContextMenuArrow.displayName = ContextMenuPrimitive.Arrow.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n ContextMenu,\n ContextMenuArrow,\n ContextMenuCheckboxItem,\n ContextMenuContent,\n ContextMenuGroup,\n ContextMenuItem,\n ContextMenuLabel,\n ContextMenuRadioGroup,\n ContextMenuRadioItem,\n ContextMenuSeparator,\n ContextMenuShortcut,\n ContextMenuSub,\n ContextMenuSubContent,\n ContextMenuSubTrigger,\n ContextMenuTrigger,\n type ContextMenuArrowProps,\n type ContextMenuCheckboxItemProps,\n type ContextMenuContentProps,\n type ContextMenuGroupProps,\n type ContextMenuItemProps,\n type ContextMenuLabelProps,\n type ContextMenuProps,\n type ContextMenuRadioGroupProps,\n type ContextMenuRadioItemProps,\n type ContextMenuSeparatorProps,\n type ContextMenuShortcutProps,\n type ContextMenuSubContentProps,\n type ContextMenuSubProps,\n type ContextMenuSubTriggerProps,\n type ContextMenuTriggerProps,\n};\n"]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";var _chunk7XV37NAWcjs = require('./chunk-7XV37NAW.cjs');var _chunkFINPFQTZcjs = require('./chunk-FINPFQTZ.cjs');var _chunk7R4FFNVEcjs = require('./chunk-7R4FFNVE.cjs');var _input = require('@codefast-ui/input'); var t = _interopRequireWildcard(_input);var _reacticons = require('@radix-ui/react-icons');var _reactusecontrollablestate = require('@radix-ui/react-use-controllable-state');var _react = require('react');var _jsxruntime = require('react/jsx-runtime');var{root:V,input:x}=_chunk7XV37NAWcjs.a.call(void 0, ),b= exports.a =_react.forwardRef.call(void 0, ({className:u,inputSize:o,loaderPosition:l,loading:m,prefix:f,spinner:I,suffix:c,value:P,defaultValue:d,onChange:v,...n},h)=>{let[r,i]=_reactusecontrollablestate.useControllableState.call(void 0, {prop:P,defaultProp:d,onChange:v});return _jsxruntime.jsxs.call(void 0, t.Root,{className:V({inputSize:o,className:u}),loaderPosition:l,loading:m,prefix:f||_jsxruntime.jsx.call(void 0, _reacticons.MagnifyingGlassIcon,{}),spinner:I||_jsxruntime.jsx.call(void 0, _chunk7R4FFNVEcjs.a,{}),suffix:c,children:[_jsxruntime.jsx.call(void 0, t.Item,{ref:h,className:x({inputSize:o}),type:"search",value:r,onChange:y=>{i(y.target.value)},...n}),r?_jsxruntime.jsx.call(void 0, _chunkFINPFQTZcjs.a,{icon:!0,inside:!0,"aria-label":"Clear search",className:"rounded-full",disabled:n.disabled,size:o,suffix:_jsxruntime.jsx.call(void 0, _reacticons.Cross2Icon,{}),variant:"ghost",onClick:()=>{i("")}}):null]})});b.displayName="SearchInput";exports.a = b;
2
- //# sourceMappingURL=chunk-Z7U5IONC.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/codefast/codefast/packages/ui/dist/chunk-Z7U5IONC.cjs","../src/components/search-input.tsx"],"names":["InputPrimitive","input","inputVariants","SearchInput","className","inputSize","defaultValue","onChange","value","setValue","useControllableState","valueProp","jsxs","root","jsx","MagnifyingGlassIcon","spinner","Spinner","suffix","forwardedRef","event","props","Button","Cross2Icon"],"mappings":"AAAA,uWAAY,CAAC,wDAAmC,wDAAyC,wDCE7EA,oFACH,mDACA,mFACuE,8BAqDtD,+CA3CZ,GAAA,CAAAC,IAAUC,CAAc,CAAA,CAehCC,KAEF,CACE,CAAA,CAAA,CAAA,iCAAA,CAAA,CAAA,CAAA,aAAA,+BAAAC,CACA,CAAA,SAAAC,CAAAA,CACA,CAAA,SAAA,CAAA,CAAA,CAAA,cAEA,CAAA,CAAA,CAAA,OACA,CAAA,CAAA,CAAA,MACA,CAAA,CAAA,CAAA,OACA,CAAA,CAAA,CAAA,MACA,CAAA,CAAA,CAAA,KAAA,CAAA,CAAA,CAAAC,YACAC,CACA,CAAA,CAAA,QAGC,CACH,CAAA,CAAA,GAAOC,CAAOC,CAAQ,CAAA,CAAIC,CAAAA,EACxB,CAAA,GAAA,CAAMC,CAAAA,CACN,CAAA,CAAA,CAAA,6DAAA,CAAA,IAAA,CAAA,CAAaL,CAAAA,WAEf,CAAC,CAAA,CAED,QACEM,CAAgB,CAAA,CAAA,CAAA,CAAA,OACd,8BAAA,CAAA,CAAA,IAAWC,CAAK,CAAE,SAAA,CAAAR,CAAAA,CAAW,CAAA,SAAAD,CAAU,CAAC,CAAA,SACxC,CAAA,CAAA,CAAA,CAAA,CAAA,cAEA,CAAA,CAAA,CAAA,OAAkBU,CAAAA,CAACC,CAAAA,MACnB,CAAA,CAAA,EAAA,6BAAA,+BAASC,CAAAA,CAAAA,CAAWF,CAAAA,CAACG,OACrB,CAAA,CAAA,EAAA,6BAAA,mBAAQC,CAER,CAAA,CAAA,CAAA,CAAA,MAAAJ,CAAAA,CAAgB,CAAA,QACd,CAAA,CAAA,6BAAKK,CACL,CAAA,IAAA,CAAA,CAAA,GAAWlB,CAAAA,CAAM,CAAE,SAAA,CAAAI,CAAU,CAAC,CAAA,SACzB,CAAA,CAAA,CAAA,CAAA,CAAA,IACL,CAAA,QACA,CAAA,KAAWe,CAAAA,CAAU,CACnBX,QAAe,CAAA,CAAA,EAAO,CAAA,CAAA,CAAA,CAAK,CAC7B,MACIY,CACN,KAEEP,CAACQ,CAAAA,CAAA,GACC,CAAA,CAAA,CAAI,CAAA,CAAA,CACJ,6BAAA,mBAAA,CAAA,CAAA,IAAM,CACN,CAAA,CAAA,CAAA,MAAA,CAAA,CAAA,CAAA,CAAW,YAAA,CAAA,cACD,CAAA,SAAA,CAAA,cACM,CAAA,QAChB,CAAA,CAAA,CAAA,QACA,CAAA,IAASC,CAAA,CAAA,CAAW,MACpB,CAAA,6BAAA,sBAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,OACR,CAAA,OAAe,CACbd,OAEJ,CAAA,CACE,CAAA,EAAA,CAAA,CAAA,CACN,EAGN,CAAA,CAEAN,CAAAA,CAAY,CAAA,IAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAA,WAAA,CAAA,aAAA,CAAA,cAAA","file":"/home/runner/work/codefast/codefast/packages/ui/dist/chunk-Z7U5IONC.cjs","sourcesContent":[null,"'use client';\n\nimport * as InputPrimitive from '@codefast-ui/input';\nimport { Cross2Icon, MagnifyingGlassIcon } from '@radix-ui/react-icons';\nimport { useControllableState } from '@radix-ui/react-use-controllable-state';\nimport { type ComponentProps, type ComponentPropsWithoutRef, type ComponentRef, forwardRef } from 'react';\n\nimport { Button } from '@/components/button';\nimport { Spinner } from '@/components/spinner';\nimport { inputVariants, type InputVariantsProps } from '@/styles/input-variants';\n\n/* -----------------------------------------------------------------------------\n * Component: SearchInput\n * -------------------------------------------------------------------------- */\n\nconst { root, input } = inputVariants();\n\ntype SearchInputElement = ComponentRef<typeof InputPrimitive.Item>;\ninterface SearchInputProps\n extends InputVariantsProps,\n ComponentProps<typeof InputPrimitive.Root>,\n Omit<\n ComponentPropsWithoutRef<typeof InputPrimitive.Item>,\n 'defaultValue' | 'onChange' | 'prefix' | 'type' | 'value'\n > {\n defaultValue?: string;\n onChange?: (value: string) => void;\n value?: string;\n}\n\nconst SearchInput = forwardRef<SearchInputElement, SearchInputProps>(\n (\n {\n className,\n inputSize,\n loaderPosition,\n loading,\n prefix,\n spinner,\n suffix,\n value: valueProp,\n defaultValue,\n onChange,\n ...props\n },\n forwardedRef,\n ) => {\n const [value, setValue] = useControllableState({\n prop: valueProp,\n defaultProp: defaultValue,\n onChange,\n });\n\n return (\n <InputPrimitive.Root\n className={root({ inputSize, className })}\n loaderPosition={loaderPosition}\n loading={loading}\n prefix={prefix || <MagnifyingGlassIcon />}\n spinner={spinner || <Spinner />}\n suffix={suffix}\n >\n <InputPrimitive.Item\n ref={forwardedRef}\n className={input({ inputSize })}\n type=\"search\"\n value={value}\n onChange={(event) => {\n setValue(event.target.value);\n }}\n {...props}\n />\n {value ? (\n <Button\n icon\n inside\n aria-label=\"Clear search\"\n className=\"rounded-full\"\n disabled={props.disabled}\n size={inputSize}\n suffix={<Cross2Icon />}\n variant=\"ghost\"\n onClick={() => {\n setValue('');\n }}\n />\n ) : null}\n </InputPrimitive.Root>\n );\n },\n);\n\nSearchInput.displayName = 'SearchInput';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { SearchInput, type SearchInputProps };\n"]}