@codefast/ui 0.0.65 → 0.0.66

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 (266) hide show
  1. package/dist/{chunk-ZMF2SRE5.js → chunk-26W5NJTU.js} +1 -1
  2. package/dist/chunk-26W5NJTU.js.map +1 -0
  3. package/dist/chunk-3COHZ24E.cjs +2 -0
  4. package/dist/chunk-3COHZ24E.cjs.map +1 -0
  5. package/dist/{chunk-QEWITXOV.cjs → chunk-4MTN7WZ2.cjs} +1 -1
  6. package/dist/chunk-4MTN7WZ2.cjs.map +1 -0
  7. package/dist/chunk-5QETIFO4.js +2 -0
  8. package/dist/chunk-5QETIFO4.js.map +1 -0
  9. package/dist/{chunk-WECV77JD.cjs → chunk-5RJANBDJ.cjs} +1 -1
  10. package/dist/chunk-5RJANBDJ.cjs.map +1 -0
  11. package/dist/chunk-6UQKMUZG.cjs +2 -0
  12. package/dist/chunk-6UQKMUZG.cjs.map +1 -0
  13. package/dist/chunk-AVEDWLNQ.js +2 -0
  14. package/dist/chunk-AVEDWLNQ.js.map +1 -0
  15. package/dist/{chunk-YLE5XFEO.cjs → chunk-EW7DAPDC.cjs} +1 -1
  16. package/dist/chunk-EW7DAPDC.cjs.map +1 -0
  17. package/dist/{chunk-RSNKUKY7.js → chunk-HDHZESSG.js} +1 -1
  18. package/dist/chunk-HDHZESSG.js.map +1 -0
  19. package/dist/{chunk-GCHNSK5O.cjs → chunk-JMM2MTPI.cjs} +1 -1
  20. package/dist/chunk-JMM2MTPI.cjs.map +1 -0
  21. package/dist/{chunk-WRO3QIWH.js → chunk-JNOLIDCD.js} +1 -1
  22. package/dist/chunk-JNOLIDCD.js.map +1 -0
  23. package/dist/{chunk-F5TIIJJJ.cjs → chunk-LOJBMYTH.cjs} +1 -1
  24. package/dist/chunk-LOJBMYTH.cjs.map +1 -0
  25. package/dist/{chunk-A5ILA637.js → chunk-RBP4PBCK.js} +1 -1
  26. package/dist/chunk-RBP4PBCK.js.map +1 -0
  27. package/dist/{chunk-L7IASKCH.js → chunk-RVGKUNXC.js} +1 -1
  28. package/dist/{chunk-L7IASKCH.js.map → chunk-RVGKUNXC.js.map} +1 -1
  29. package/dist/{chunk-72NPDP3X.cjs → chunk-T3G5USVY.cjs} +1 -1
  30. package/dist/chunk-T3G5USVY.cjs.map +1 -0
  31. package/dist/chunk-VDVLCSO4.js +2 -0
  32. package/dist/chunk-VDVLCSO4.js.map +1 -0
  33. package/dist/{chunk-2OBTJ7SD.cjs → chunk-WKKCZQNO.cjs} +2 -2
  34. package/dist/chunk-WKKCZQNO.cjs.map +1 -0
  35. package/dist/{chunk-FNQFZJUG.js → chunk-WQFHFTYS.js} +1 -1
  36. package/dist/chunk-WQFHFTYS.js.map +1 -0
  37. package/dist/react/accordion.cjs.map +1 -1
  38. package/dist/react/accordion.js.map +1 -1
  39. package/dist/react/alert-dialog.cjs +1 -1
  40. package/dist/react/alert-dialog.cjs.map +1 -1
  41. package/dist/react/alert-dialog.js +1 -1
  42. package/dist/react/alert-dialog.js.map +1 -1
  43. package/dist/react/alert.cjs.map +1 -1
  44. package/dist/react/alert.js.map +1 -1
  45. package/dist/react/avatar.cjs.map +1 -1
  46. package/dist/react/avatar.js.map +1 -1
  47. package/dist/react/blockquote.cjs.map +1 -1
  48. package/dist/react/blockquote.js.map +1 -1
  49. package/dist/react/box.cjs.map +1 -1
  50. package/dist/react/box.js.map +1 -1
  51. package/dist/react/breadcrumb.cjs.map +1 -1
  52. package/dist/react/breadcrumb.js.map +1 -1
  53. package/dist/react/button.cjs +1 -1
  54. package/dist/react/button.js +1 -1
  55. package/dist/react/calendar.cjs +1 -1
  56. package/dist/react/calendar.js +1 -1
  57. package/dist/react/card.cjs.map +1 -1
  58. package/dist/react/card.js.map +1 -1
  59. package/dist/react/carousel.cjs +1 -1
  60. package/dist/react/carousel.cjs.map +1 -1
  61. package/dist/react/carousel.js +1 -1
  62. package/dist/react/carousel.js.map +1 -1
  63. package/dist/react/checkbox-cards.cjs +1 -1
  64. package/dist/react/checkbox-cards.cjs.map +1 -1
  65. package/dist/react/checkbox-cards.js +1 -1
  66. package/dist/react/checkbox-cards.js.map +1 -1
  67. package/dist/react/checkbox-group.cjs +1 -1
  68. package/dist/react/checkbox-group.cjs.map +1 -1
  69. package/dist/react/checkbox-group.js +1 -1
  70. package/dist/react/checkbox-group.js.map +1 -1
  71. package/dist/react/checkbox-group.primitive.cjs +1 -1
  72. package/dist/react/checkbox-group.primitive.js +1 -1
  73. package/dist/react/checkbox.cjs +1 -1
  74. package/dist/react/checkbox.cjs.map +1 -1
  75. package/dist/react/checkbox.js +1 -1
  76. package/dist/react/checkbox.js.map +1 -1
  77. package/dist/react/code.cjs.map +1 -1
  78. package/dist/react/code.js.map +1 -1
  79. package/dist/react/collapsible.cjs.map +1 -1
  80. package/dist/react/collapsible.js.map +1 -1
  81. package/dist/react/command.cjs +1 -1
  82. package/dist/react/command.cjs.map +1 -1
  83. package/dist/react/command.js +1 -1
  84. package/dist/react/command.js.map +1 -1
  85. package/dist/react/container.cjs.map +1 -1
  86. package/dist/react/container.js.map +1 -1
  87. package/dist/react/context-menu.cjs.map +1 -1
  88. package/dist/react/context-menu.js.map +1 -1
  89. package/dist/react/data-table.cjs +1 -1
  90. package/dist/react/data-table.js +1 -1
  91. package/dist/react/dialog.cjs +1 -1
  92. package/dist/react/dialog.js +1 -1
  93. package/dist/react/drawer.cjs.map +1 -1
  94. package/dist/react/drawer.js.map +1 -1
  95. package/dist/react/dropdown-menu.cjs +1 -1
  96. package/dist/react/dropdown-menu.js +1 -1
  97. package/dist/react/em.cjs.map +1 -1
  98. package/dist/react/em.js.map +1 -1
  99. package/dist/react/form.cjs +1 -1
  100. package/dist/react/form.cjs.map +1 -1
  101. package/dist/react/form.js +1 -1
  102. package/dist/react/form.js.map +1 -1
  103. package/dist/react/heading.cjs.map +1 -1
  104. package/dist/react/heading.js.map +1 -1
  105. package/dist/react/hover-card.cjs.map +1 -1
  106. package/dist/react/hover-card.js.map +1 -1
  107. package/dist/react/input-otp.cjs +1 -1
  108. package/dist/react/input-otp.cjs.map +1 -1
  109. package/dist/react/input-otp.js +1 -1
  110. package/dist/react/input-otp.js.map +1 -1
  111. package/dist/react/input.cjs +1 -1
  112. package/dist/react/input.cjs.map +1 -1
  113. package/dist/react/input.d.cts +113 -34
  114. package/dist/react/input.d.ts +113 -34
  115. package/dist/react/input.js +1 -1
  116. package/dist/react/input.js.map +1 -1
  117. package/dist/react/kbd.cjs.map +1 -1
  118. package/dist/react/kbd.js.map +1 -1
  119. package/dist/react/label.cjs +1 -1
  120. package/dist/react/label.js +1 -1
  121. package/dist/react/menubar.cjs.map +1 -1
  122. package/dist/react/menubar.js.map +1 -1
  123. package/dist/react/navigation-menu.cjs.map +1 -1
  124. package/dist/react/navigation-menu.js.map +1 -1
  125. package/dist/react/pagination.cjs +1 -1
  126. package/dist/react/pagination.cjs.map +1 -1
  127. package/dist/react/pagination.js +1 -1
  128. package/dist/react/pagination.js.map +1 -1
  129. package/dist/react/popover.cjs.map +1 -1
  130. package/dist/react/popover.js.map +1 -1
  131. package/dist/react/pre.cjs.map +1 -1
  132. package/dist/react/pre.js.map +1 -1
  133. package/dist/react/progress.cjs.map +1 -1
  134. package/dist/react/progress.js.map +1 -1
  135. package/dist/react/quote.cjs.map +1 -1
  136. package/dist/react/quote.js.map +1 -1
  137. package/dist/react/radio-cards.cjs +1 -1
  138. package/dist/react/radio-cards.cjs.map +1 -1
  139. package/dist/react/radio-cards.js +1 -1
  140. package/dist/react/radio-cards.js.map +1 -1
  141. package/dist/react/radio-group.cjs.map +1 -1
  142. package/dist/react/radio-group.js.map +1 -1
  143. package/dist/react/radio.cjs.map +1 -1
  144. package/dist/react/radio.js.map +1 -1
  145. package/dist/react/scroll-area.cjs.map +1 -1
  146. package/dist/react/scroll-area.js.map +1 -1
  147. package/dist/react/section.cjs.map +1 -1
  148. package/dist/react/section.js.map +1 -1
  149. package/dist/react/select.cjs +1 -1
  150. package/dist/react/select.js +1 -1
  151. package/dist/react/separator.cjs.map +1 -1
  152. package/dist/react/separator.js.map +1 -1
  153. package/dist/react/sheet.cjs.map +1 -1
  154. package/dist/react/sheet.js.map +1 -1
  155. package/dist/react/slider.cjs.map +1 -1
  156. package/dist/react/slider.js.map +1 -1
  157. package/dist/react/spinner.cjs +1 -1
  158. package/dist/react/spinner.js +1 -1
  159. package/dist/react/strong.cjs.map +1 -1
  160. package/dist/react/strong.js.map +1 -1
  161. package/dist/react/switch.cjs +1 -1
  162. package/dist/react/switch.cjs.map +1 -1
  163. package/dist/react/switch.js +1 -1
  164. package/dist/react/switch.js.map +1 -1
  165. package/dist/react/table.cjs.map +1 -1
  166. package/dist/react/table.js.map +1 -1
  167. package/dist/react/tabs.cjs.map +1 -1
  168. package/dist/react/tabs.js.map +1 -1
  169. package/dist/react/text-input.cjs +2 -0
  170. package/dist/react/text-input.cjs.map +1 -0
  171. package/dist/react/text-input.d.cts +11 -0
  172. package/dist/react/text-input.d.ts +11 -0
  173. package/dist/react/text-input.js +2 -0
  174. package/dist/react/text-input.js.map +1 -0
  175. package/dist/react/text.cjs.map +1 -1
  176. package/dist/react/text.js.map +1 -1
  177. package/dist/react/textarea.cjs +1 -1
  178. package/dist/react/textarea.cjs.map +1 -1
  179. package/dist/react/textarea.js +1 -1
  180. package/dist/react/textarea.js.map +1 -1
  181. package/dist/react/toggle-group.cjs +1 -1
  182. package/dist/react/toggle-group.cjs.map +1 -1
  183. package/dist/react/toggle-group.js +1 -1
  184. package/dist/react/toggle-group.js.map +1 -1
  185. package/dist/react/toggle.cjs +1 -1
  186. package/dist/react/toggle.js +1 -1
  187. package/dist/react/tooltip.cjs.map +1 -1
  188. package/dist/react/tooltip.js.map +1 -1
  189. package/dist/styles.css +1 -1
  190. package/dist/styles.css.map +1 -1
  191. package/package.json +10 -4
  192. package/src/react/accordion.tsx +9 -7
  193. package/src/react/alert-dialog.tsx +18 -10
  194. package/src/react/alert.tsx +11 -9
  195. package/src/react/avatar.tsx +13 -11
  196. package/src/react/blockquote.tsx +2 -2
  197. package/src/react/box.tsx +2 -2
  198. package/src/react/breadcrumb.tsx +33 -27
  199. package/src/react/button.tsx +3 -4
  200. package/src/react/card.tsx +21 -15
  201. package/src/react/carousel.tsx +10 -10
  202. package/src/react/checkbox-cards.tsx +8 -6
  203. package/src/react/checkbox-group.primitive.tsx +12 -6
  204. package/src/react/checkbox-group.tsx +7 -5
  205. package/src/react/checkbox.tsx +3 -3
  206. package/src/react/code.tsx +2 -2
  207. package/src/react/collapsible.tsx +2 -2
  208. package/src/react/command.tsx +46 -36
  209. package/src/react/container.tsx +6 -4
  210. package/src/react/context-menu.tsx +22 -18
  211. package/src/react/dialog.tsx +10 -6
  212. package/src/react/drawer.tsx +10 -6
  213. package/src/react/dropdown-menu.tsx +20 -16
  214. package/src/react/em.tsx +2 -2
  215. package/src/react/form.tsx +38 -22
  216. package/src/react/heading.tsx +6 -4
  217. package/src/react/hover-card.tsx +7 -5
  218. package/src/react/input-otp.tsx +40 -34
  219. package/src/react/input.tsx +115 -12
  220. package/src/react/kbd.tsx +2 -2
  221. package/src/react/label.tsx +2 -2
  222. package/src/react/menubar.tsx +48 -42
  223. package/src/react/navigation-menu.tsx +12 -12
  224. package/src/react/pagination.tsx +5 -5
  225. package/src/react/popover.tsx +7 -5
  226. package/src/react/pre.tsx +2 -2
  227. package/src/react/progress.tsx +2 -2
  228. package/src/react/quote.tsx +2 -2
  229. package/src/react/radio-cards.tsx +16 -14
  230. package/src/react/radio-group.tsx +18 -16
  231. package/src/react/radio.tsx +16 -14
  232. package/src/react/scroll-area.tsx +4 -4
  233. package/src/react/section.tsx +2 -2
  234. package/src/react/select.tsx +32 -30
  235. package/src/react/separator.tsx +2 -2
  236. package/src/react/sheet.tsx +14 -6
  237. package/src/react/slider.tsx +2 -2
  238. package/src/react/spinner.tsx +2 -2
  239. package/src/react/strong.tsx +2 -2
  240. package/src/react/switch.tsx +3 -3
  241. package/src/react/table.tsx +23 -17
  242. package/src/react/tabs.tsx +6 -6
  243. package/src/react/text-input.tsx +36 -0
  244. package/src/react/text.tsx +2 -2
  245. package/src/react/textarea.tsx +3 -3
  246. package/src/react/toggle-group.tsx +7 -4
  247. package/src/react/toggle.tsx +2 -2
  248. package/src/react/tooltip.tsx +7 -5
  249. package/dist/chunk-2OBTJ7SD.cjs.map +0 -1
  250. package/dist/chunk-3OEPCFBF.cjs +0 -2
  251. package/dist/chunk-3OEPCFBF.cjs.map +0 -1
  252. package/dist/chunk-6AFJCDFU.js +0 -2
  253. package/dist/chunk-6AFJCDFU.js.map +0 -1
  254. package/dist/chunk-72NPDP3X.cjs.map +0 -1
  255. package/dist/chunk-7CHCTEST.js +0 -2
  256. package/dist/chunk-7CHCTEST.js.map +0 -1
  257. package/dist/chunk-A5ILA637.js.map +0 -1
  258. package/dist/chunk-F5TIIJJJ.cjs.map +0 -1
  259. package/dist/chunk-FNQFZJUG.js.map +0 -1
  260. package/dist/chunk-GCHNSK5O.cjs.map +0 -1
  261. package/dist/chunk-QEWITXOV.cjs.map +0 -1
  262. package/dist/chunk-RSNKUKY7.js.map +0 -1
  263. package/dist/chunk-WECV77JD.cjs.map +0 -1
  264. package/dist/chunk-WRO3QIWH.js.map +0 -1
  265. package/dist/chunk-YLE5XFEO.cjs.map +0 -1
  266. package/dist/chunk-ZMF2SRE5.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/radio-cards.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: RadioCards\n * -------------------------------------------------------------------------- */\n\ntype RadioCardsElement = React.ElementRef<typeof RadioGroupPrimitive.Root>;\ntype RadioCardsProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>;\n\nconst RadioCards = React.forwardRef<RadioCardsElement, RadioCardsProps>(({ className, ...props }, ref) => {\n return <RadioGroupPrimitive.Root className={cn('grid gap-2', className)} {...props} ref={ref} />;\n});\n\nRadioCards.displayName = RadioGroupPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: RadioCardsItem\n * -------------------------------------------------------------------------- */\n\ntype RadioCardsItemElement = React.ElementRef<typeof RadioGroupPrimitive.Item>;\ntype RadioCardsItemProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>;\n\nconst RadioCardsItem = React.forwardRef<RadioCardsItemElement, RadioCardsItemProps>(({ className, ...props }, ref) => {\n return (\n <RadioGroupPrimitive.Item\n ref={ref}\n className={cn(\n 'text-foreground focus-visible:bg-primary/10 group peer flex cursor-pointer items-center justify-center rounded-md border p-4 focus-visible:outline focus-visible:outline-2 disabled:cursor-not-allowed disabled:opacity-50 aria-checked:outline aria-checked:outline-2',\n className,\n )}\n {...props}\n />\n );\n});\n\nRadioCardsItem.displayName = RadioGroupPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { RadioCards, RadioCardsItem, type RadioCardsProps, type RadioCardsItemProps };\n"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAyB,8BAW5B,cAAAC,MAAA,oBADT,IAAMC,EAAmB,aAA+C,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACzFJ,EAAqB,OAApB,CAAyB,UAAWK,EAAG,aAAcH,CAAS,EAAI,GAAGC,EAAO,IAAKC,EAAK,CAC/F,EAEDH,EAAW,YAAkC,OAAK,YASlD,IAAMK,EAAuB,aAAuD,CAAC,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAGC,IAE1GJ,EAAqB,OAApB,CACC,IAAKI,EACL,UAAWC,EACT,yQACAH,CACF,EACC,GAAGC,EACN,CAEH,EAEDG,EAAe,YAAkC,OAAK","names":["React","RadioGroupPrimitive","jsx","RadioCards","className","props","ref","cn","RadioCardsItem"]}
1
+ {"version":3,"sources":["../../src/react/radio-cards.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: RadioCards\n * -------------------------------------------------------------------------- */\n\ntype RadioCardsElement = React.ElementRef<typeof RadioGroupPrimitive.Root>;\ntype RadioCardsProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>;\n\nconst RadioCards = React.forwardRef<RadioCardsElement, RadioCardsProps>(({ className, ...props }, forwardedRef) => {\n return <RadioGroupPrimitive.Root className={cn('grid gap-2', className)} {...props} ref={forwardedRef} />;\n});\n\nRadioCards.displayName = RadioGroupPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: RadioCardsItem\n * -------------------------------------------------------------------------- */\n\ntype RadioCardsItemElement = React.ElementRef<typeof RadioGroupPrimitive.Item>;\ntype RadioCardsItemProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>;\n\nconst RadioCardsItem = React.forwardRef<RadioCardsItemElement, RadioCardsItemProps>(\n ({ className, ...props }, forwardedRef) => {\n return (\n <RadioGroupPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'text-foreground focus-visible:bg-primary/10 group peer flex cursor-pointer items-center justify-center rounded-md border p-4 focus-visible:outline focus-visible:outline-2 disabled:cursor-default disabled:opacity-50 aria-checked:outline aria-checked:outline-2',\n className,\n )}\n {...props}\n />\n );\n },\n);\n\nRadioCardsItem.displayName = RadioGroupPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { RadioCards, RadioCardsItem, type RadioCardsProps, type RadioCardsItemProps };\n"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAyB,8BAW5B,cAAAC,MAAA,oBADT,IAAMC,EAAmB,aAA+C,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACzFJ,EAAqB,OAApB,CAAyB,UAAWK,EAAG,aAAcH,CAAS,EAAI,GAAGC,EAAO,IAAKC,EAAc,CACxG,EAEDH,EAAW,YAAkC,OAAK,YASlD,IAAMK,EAAuB,aAC3B,CAAC,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAGC,IAEtBJ,EAAqB,OAApB,CACC,IAAKI,EACL,UAAWC,EACT,qQACAH,CACF,EACC,GAAGC,EACN,CAGN,EAEAG,EAAe,YAAkC,OAAK","names":["React","RadioGroupPrimitive","jsx","RadioCards","className","props","forwardedRef","cn","RadioCardsItem"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/radio-group.tsx"],"names":["React","RadioGroupPrimitive","jsx","RadioGroup","className","props","ref","cn","RadioGroupItem"],"mappings":"uDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAyB,8BAW5B,cAAAC,MAAA,oBADT,IAAMC,EAAmB,aAA+C,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACzFJ,EAAqB,OAApB,CAAyB,UAAWK,EAAG,aAAcH,CAAS,EAAI,GAAGC,EAAO,IAAKC,EAAK,CAC/F,EAEDH,EAAW,YAAkC,OAAK,YASlD,IAAMK,EAAuB,aAAuD,CAAC,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAGC,IAE1GJ,EAAqB,OAApB,CACC,IAAKI,EACL,UAAWC,EACT,kQACAH,CACF,EACC,GAAGC,EAEJ,SAAAH,EAAqB,YAApB,CAA8B,UAAU,qHAAqH,EAChK,CAEH,EAEDM,EAAe,YAAkC,OAAK","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: RadioGroup\n * -------------------------------------------------------------------------- */\n\ntype RadioGroupElement = React.ElementRef<typeof RadioGroupPrimitive.Root>;\ntype RadioGroupProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>;\n\nconst RadioGroup = React.forwardRef<RadioGroupElement, RadioGroupProps>(({ className, ...props }, ref) => {\n return <RadioGroupPrimitive.Root className={cn('grid gap-2', className)} {...props} ref={ref} />;\n});\n\nRadioGroup.displayName = RadioGroupPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: RadioGroupItem\n * -------------------------------------------------------------------------- */\n\ntype RadioGroupItemElement = React.ElementRef<typeof RadioGroupPrimitive.Item>;\ntype RadioGroupItemProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>;\n\nconst RadioGroupItem = React.forwardRef<RadioGroupItemElement, RadioGroupItemProps>(({ className, ...props }, ref) => {\n return (\n <RadioGroupPrimitive.Item\n ref={ref}\n className={cn(\n 'border-input hover:border-primary text-foreground aria-checked:border-primary group peer aspect-square size-4 rounded-full border focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <RadioGroupPrimitive.Indicator className=\"after:bg-primary relative flex size-full items-center justify-center after:block after:size-2.5 after:rounded-full\" />\n </RadioGroupPrimitive.Item>\n );\n});\n\nRadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { RadioGroup, RadioGroupItem, type RadioGroupProps, type RadioGroupItemProps };\n"]}
1
+ {"version":3,"sources":["../../src/react/radio-group.tsx"],"names":["React","RadioGroupPrimitive","jsx","RadioGroup","className","props","forwardedRef","cn","RadioGroupItem"],"mappings":"uDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAyB,8BAW5B,cAAAC,MAAA,oBADT,IAAMC,EAAmB,aAA+C,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACzFJ,EAAqB,OAApB,CAAyB,UAAWK,EAAG,aAAcH,CAAS,EAAI,GAAGC,EAAO,IAAKC,EAAc,CACxG,EAEDH,EAAW,YAAkC,OAAK,YASlD,IAAMK,EAAuB,aAC3B,CAAC,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAGC,IAEtBJ,EAAqB,OAApB,CACC,IAAKI,EACL,UAAWC,EACT,kQACAH,CACF,EACC,GAAGC,EAEJ,SAAAH,EAAqB,YAApB,CAA8B,UAAU,qHAAqH,EAChK,CAGN,EAEAM,EAAe,YAAkC,OAAK","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: RadioGroup\n * -------------------------------------------------------------------------- */\n\ntype RadioGroupElement = React.ElementRef<typeof RadioGroupPrimitive.Root>;\ntype RadioGroupProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>;\n\nconst RadioGroup = React.forwardRef<RadioGroupElement, RadioGroupProps>(({ className, ...props }, forwardedRef) => {\n return <RadioGroupPrimitive.Root className={cn('grid gap-2', className)} {...props} ref={forwardedRef} />;\n});\n\nRadioGroup.displayName = RadioGroupPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: RadioGroupItem\n * -------------------------------------------------------------------------- */\n\ntype RadioGroupItemElement = React.ElementRef<typeof RadioGroupPrimitive.Item>;\ntype RadioGroupItemProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>;\n\nconst RadioGroupItem = React.forwardRef<RadioGroupItemElement, RadioGroupItemProps>(\n ({ className, ...props }, forwardedRef) => {\n return (\n <RadioGroupPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'border-input hover:border-primary text-foreground aria-checked:border-primary group peer aspect-square size-4 rounded-full border focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <RadioGroupPrimitive.Indicator className=\"after:bg-primary relative flex size-full items-center justify-center after:block after:size-2.5 after:rounded-full\" />\n </RadioGroupPrimitive.Item>\n );\n },\n);\n\nRadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { RadioGroup, RadioGroupItem, type RadioGroupProps, type RadioGroupItemProps };\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/radio-group.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: RadioGroup\n * -------------------------------------------------------------------------- */\n\ntype RadioGroupElement = React.ElementRef<typeof RadioGroupPrimitive.Root>;\ntype RadioGroupProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>;\n\nconst RadioGroup = React.forwardRef<RadioGroupElement, RadioGroupProps>(({ className, ...props }, ref) => {\n return <RadioGroupPrimitive.Root className={cn('grid gap-2', className)} {...props} ref={ref} />;\n});\n\nRadioGroup.displayName = RadioGroupPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: RadioGroupItem\n * -------------------------------------------------------------------------- */\n\ntype RadioGroupItemElement = React.ElementRef<typeof RadioGroupPrimitive.Item>;\ntype RadioGroupItemProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>;\n\nconst RadioGroupItem = React.forwardRef<RadioGroupItemElement, RadioGroupItemProps>(({ className, ...props }, ref) => {\n return (\n <RadioGroupPrimitive.Item\n ref={ref}\n className={cn(\n 'border-input hover:border-primary text-foreground aria-checked:border-primary group peer aspect-square size-4 rounded-full border focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <RadioGroupPrimitive.Indicator className=\"after:bg-primary relative flex size-full items-center justify-center after:block after:size-2.5 after:rounded-full\" />\n </RadioGroupPrimitive.Item>\n );\n});\n\nRadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { RadioGroup, RadioGroupItem, type RadioGroupProps, type RadioGroupItemProps };\n"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAyB,8BAW5B,cAAAC,MAAA,oBADT,IAAMC,EAAmB,aAA+C,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACzFJ,EAAqB,OAApB,CAAyB,UAAWK,EAAG,aAAcH,CAAS,EAAI,GAAGC,EAAO,IAAKC,EAAK,CAC/F,EAEDH,EAAW,YAAkC,OAAK,YASlD,IAAMK,EAAuB,aAAuD,CAAC,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAGC,IAE1GJ,EAAqB,OAApB,CACC,IAAKI,EACL,UAAWC,EACT,kQACAH,CACF,EACC,GAAGC,EAEJ,SAAAH,EAAqB,YAApB,CAA8B,UAAU,qHAAqH,EAChK,CAEH,EAEDM,EAAe,YAAkC,OAAK","names":["React","RadioGroupPrimitive","jsx","RadioGroup","className","props","ref","cn","RadioGroupItem"]}
1
+ {"version":3,"sources":["../../src/react/radio-group.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: RadioGroup\n * -------------------------------------------------------------------------- */\n\ntype RadioGroupElement = React.ElementRef<typeof RadioGroupPrimitive.Root>;\ntype RadioGroupProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>;\n\nconst RadioGroup = React.forwardRef<RadioGroupElement, RadioGroupProps>(({ className, ...props }, forwardedRef) => {\n return <RadioGroupPrimitive.Root className={cn('grid gap-2', className)} {...props} ref={forwardedRef} />;\n});\n\nRadioGroup.displayName = RadioGroupPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: RadioGroupItem\n * -------------------------------------------------------------------------- */\n\ntype RadioGroupItemElement = React.ElementRef<typeof RadioGroupPrimitive.Item>;\ntype RadioGroupItemProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>;\n\nconst RadioGroupItem = React.forwardRef<RadioGroupItemElement, RadioGroupItemProps>(\n ({ className, ...props }, forwardedRef) => {\n return (\n <RadioGroupPrimitive.Item\n ref={forwardedRef}\n className={cn(\n 'border-input hover:border-primary text-foreground aria-checked:border-primary group peer aspect-square size-4 rounded-full border focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <RadioGroupPrimitive.Indicator className=\"after:bg-primary relative flex size-full items-center justify-center after:block after:size-2.5 after:rounded-full\" />\n </RadioGroupPrimitive.Item>\n );\n },\n);\n\nRadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { RadioGroup, RadioGroupItem, type RadioGroupProps, type RadioGroupItemProps };\n"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAyB,8BAW5B,cAAAC,MAAA,oBADT,IAAMC,EAAmB,aAA+C,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACzFJ,EAAqB,OAApB,CAAyB,UAAWK,EAAG,aAAcH,CAAS,EAAI,GAAGC,EAAO,IAAKC,EAAc,CACxG,EAEDH,EAAW,YAAkC,OAAK,YASlD,IAAMK,EAAuB,aAC3B,CAAC,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAGC,IAEtBJ,EAAqB,OAApB,CACC,IAAKI,EACL,UAAWC,EACT,kQACAH,CACF,EACC,GAAGC,EAEJ,SAAAH,EAAqB,YAApB,CAA8B,UAAU,qHAAqH,EAChK,CAGN,EAEAM,EAAe,YAAkC,OAAK","names":["React","RadioGroupPrimitive","jsx","RadioGroup","className","props","forwardedRef","cn","RadioGroupItem"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/radio.tsx"],"names":["React","composeEventHandlers","jsx","Radio","className","onValueChange","onChange","props","ref","cn","event"],"mappings":"uDAEA,UAAYA,MAAW,QACvB,OAAS,wBAAAC,MAA4B,sBAejC,cAAAC,MAAA,oBAFJ,IAAMC,EAAc,aAAqC,CAAC,CAAE,UAAAC,EAAW,cAAAC,EAAe,SAAAC,EAAU,GAAGC,CAAM,EAAGC,IAExGN,EAAC,SACC,IAAKM,EACL,UAAWC,EACT,4aACAL,CACF,EACA,KAAK,QACL,SAAUH,EAAqBK,EAAWI,GAAUL,IAAgBK,EAAM,cAAc,KAAK,CAAC,EAC7F,GAAGH,EACN,CAEH,EAEDJ,EAAM,YAAc","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { composeEventHandlers } from '@radix-ui/primitive';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Radio\n * -------------------------------------------------------------------------- */\n\ntype RadioElement = HTMLInputElement;\n\ninterface RadioProps extends React.InputHTMLAttributes<HTMLInputElement> {\n onValueChange?: (value: string) => void;\n}\n\nconst Radio = React.forwardRef<RadioElement, RadioProps>(({ className, onValueChange, onChange, ...props }, ref) => {\n return (\n <input\n ref={ref}\n className={cn(\n 'before:border-input hover:before:border-primary checked:before:border-primary checked:after:bg-primary peer relative flex appearance-none items-center justify-center rounded-full before:size-4 before:rounded-full before:border checked:after:absolute checked:after:size-2.5 checked:after:rounded-full focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50',\n className,\n )}\n type=\"radio\"\n onChange={composeEventHandlers(onChange, (event) => onValueChange?.(event.currentTarget.value))}\n {...props}\n />\n );\n});\n\nRadio.displayName = 'Radio';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Radio };\n"]}
1
+ {"version":3,"sources":["../../src/react/radio.tsx"],"names":["React","composeEventHandlers","jsx","Radio","className","onValueChange","onChange","props","forwardedRef","cn","event"],"mappings":"uDAEA,UAAYA,MAAW,QACvB,OAAS,wBAAAC,MAA4B,sBAgB/B,cAAAC,MAAA,oBAHN,IAAMC,EAAc,aAClB,CAAC,CAAE,UAAAC,EAAW,cAAAC,EAAe,SAAAC,EAAU,GAAGC,CAAM,EAAGC,IAE/CN,EAAC,SACC,IAAKM,EACL,UAAWC,EACT,4aACAL,CACF,EACA,KAAK,QACL,SAAUH,EAAqBK,EAAWI,GAAUL,IAAgBK,EAAM,cAAc,KAAK,CAAC,EAC7F,GAAGH,EACN,CAGN,EAEAJ,EAAM,YAAc","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { composeEventHandlers } from '@radix-ui/primitive';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Radio\n * -------------------------------------------------------------------------- */\n\ntype RadioElement = HTMLInputElement;\n\ninterface RadioProps extends React.InputHTMLAttributes<HTMLInputElement> {\n onValueChange?: (value: string) => void;\n}\n\nconst Radio = React.forwardRef<RadioElement, RadioProps>(\n ({ className, onValueChange, onChange, ...props }, forwardedRef) => {\n return (\n <input\n ref={forwardedRef}\n className={cn(\n 'before:border-input hover:before:border-primary checked:before:border-primary checked:after:bg-primary peer relative flex appearance-none items-center justify-center rounded-full before:size-4 before:rounded-full before:border checked:after:absolute checked:after:size-2.5 checked:after:rounded-full focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50',\n className,\n )}\n type=\"radio\"\n onChange={composeEventHandlers(onChange, (event) => onValueChange?.(event.currentTarget.value))}\n {...props}\n />\n );\n },\n);\n\nRadio.displayName = 'Radio';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Radio };\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/radio.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { composeEventHandlers } from '@radix-ui/primitive';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Radio\n * -------------------------------------------------------------------------- */\n\ntype RadioElement = HTMLInputElement;\n\ninterface RadioProps extends React.InputHTMLAttributes<HTMLInputElement> {\n onValueChange?: (value: string) => void;\n}\n\nconst Radio = React.forwardRef<RadioElement, RadioProps>(({ className, onValueChange, onChange, ...props }, ref) => {\n return (\n <input\n ref={ref}\n className={cn(\n 'before:border-input hover:before:border-primary checked:before:border-primary checked:after:bg-primary peer relative flex appearance-none items-center justify-center rounded-full before:size-4 before:rounded-full before:border checked:after:absolute checked:after:size-2.5 checked:after:rounded-full focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50',\n className,\n )}\n type=\"radio\"\n onChange={composeEventHandlers(onChange, (event) => onValueChange?.(event.currentTarget.value))}\n {...props}\n />\n );\n});\n\nRadio.displayName = 'Radio';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Radio };\n"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,OAAS,wBAAAC,MAA4B,sBAejC,cAAAC,MAAA,oBAFJ,IAAMC,EAAc,aAAqC,CAAC,CAAE,UAAAC,EAAW,cAAAC,EAAe,SAAAC,EAAU,GAAGC,CAAM,EAAGC,IAExGN,EAAC,SACC,IAAKM,EACL,UAAWC,EACT,4aACAL,CACF,EACA,KAAK,QACL,SAAUM,EAAqBJ,EAAWK,GAAUN,IAAgBM,EAAM,cAAc,KAAK,CAAC,EAC7F,GAAGJ,EACN,CAEH,EAEDJ,EAAM,YAAc","names":["React","composeEventHandlers","jsx","Radio","className","onValueChange","onChange","props","ref","cn","composeEventHandlers","event"]}
1
+ {"version":3,"sources":["../../src/react/radio.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { composeEventHandlers } from '@radix-ui/primitive';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Radio\n * -------------------------------------------------------------------------- */\n\ntype RadioElement = HTMLInputElement;\n\ninterface RadioProps extends React.InputHTMLAttributes<HTMLInputElement> {\n onValueChange?: (value: string) => void;\n}\n\nconst Radio = React.forwardRef<RadioElement, RadioProps>(\n ({ className, onValueChange, onChange, ...props }, forwardedRef) => {\n return (\n <input\n ref={forwardedRef}\n className={cn(\n 'before:border-input hover:before:border-primary checked:before:border-primary checked:after:bg-primary peer relative flex appearance-none items-center justify-center rounded-full before:size-4 before:rounded-full before:border checked:after:absolute checked:after:size-2.5 checked:after:rounded-full focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50',\n className,\n )}\n type=\"radio\"\n onChange={composeEventHandlers(onChange, (event) => onValueChange?.(event.currentTarget.value))}\n {...props}\n />\n );\n },\n);\n\nRadio.displayName = 'Radio';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Radio };\n"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,OAAS,wBAAAC,MAA4B,sBAgB/B,cAAAC,MAAA,oBAHN,IAAMC,EAAc,aAClB,CAAC,CAAE,UAAAC,EAAW,cAAAC,EAAe,SAAAC,EAAU,GAAGC,CAAM,EAAGC,IAE/CN,EAAC,SACC,IAAKM,EACL,UAAWC,EACT,4aACAL,CACF,EACA,KAAK,QACL,SAAUM,EAAqBJ,EAAWK,GAAUN,IAAgBM,EAAM,cAAc,KAAK,CAAC,EAC7F,GAAGJ,EACN,CAGN,EAEAJ,EAAM,YAAc","names":["React","composeEventHandlers","jsx","Radio","className","onValueChange","onChange","props","forwardedRef","cn","composeEventHandlers","event"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/scroll-area.tsx"],"names":["React","ScrollAreaPrimitive","createContextScope","tv","jsx","jsxs","SCROLL_AREA_NAME","createCarouselContext","CarouselProvider","useCarouselContext","ScrollArea","__scopeScrollArea","children","className","size","props","ref","cn","ScrollAreaScrollbar","scrollAreaScrollbarVariants","orientation"],"mappings":"uDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAyB,8BACrC,OAAS,sBAAAC,MAAsC,0BAC/C,OAAS,MAAAC,MAA6B,oBAuBhC,OACE,OAAAC,EADF,QAAAC,MAAA,oBAhBN,IAAMC,EAAmB,aAInB,CAACC,CAAqB,EAAIL,EAAmBI,CAAgB,EAI7D,CAACE,EAAkBC,CAAkB,EAAIF,EAA8CD,CAAgB,EAKvGI,EAAmB,aACvB,CAAC,CAAE,kBAAAC,EAAmB,SAAAC,EAAU,UAAAC,EAAW,KAAAC,EAAO,IAAK,GAAGC,CAAM,EAAiCC,IAC/FZ,EAACI,EAAA,CAAiB,MAAOG,EAAmB,KAAMG,EAChD,SAAAT,EAAqB,OAApB,CAAyB,IAAKW,EAAK,UAAWC,EAAG,2BAA4BJ,CAAS,EAAI,GAAGE,EAC5F,UAAAX,EAAqB,WAApB,CAA6B,UAAU,2CACrC,SAAAQ,EACH,EACAR,EAACc,EAAA,CAAoB,YAAY,WAAW,EAC5Cd,EAACc,EAAA,CAAoB,YAAY,aAAa,EAC9Cd,EAAqB,SAApB,EAA2B,GAC9B,EACF,CAEJ,EAEAM,EAAW,YAAkC,OAAK,YAMlD,IAAMS,EAA8BhB,EAAG,CACrC,KAAM,8CACN,SAAU,CACR,YAAa,CACX,SAAU,gDACV,WAAY,+CACd,EACA,KAAM,CACJ,KAAM,GACN,EAAK,GACL,EAAK,GACL,EAAK,EACP,CACF,EACA,iBAAkB,CAChB,CAAE,YAAa,WAAY,KAAM,IAAK,UAAW,OAAQ,EACzD,CAAE,YAAa,WAAY,KAAM,IAAK,UAAW,KAAM,EACvD,CAAE,YAAa,WAAY,KAAM,IAAK,UAAW,OAAQ,EACzD,CAAE,YAAa,aAAc,KAAM,IAAK,UAAW,OAAQ,EAC3D,CAAE,YAAa,aAAc,KAAM,IAAK,UAAW,KAAM,EACzD,CAAE,YAAa,aAAc,KAAM,IAAK,UAAW,OAAQ,CAC7D,CACF,CAAC,EAWKe,EAA4B,aAChC,CACE,CAAE,kBAAAP,EAAmB,UAAAE,EAAW,YAAAO,EAAc,WAAY,GAAGL,CAAM,EACnEC,IACG,CACH,GAAM,CAAE,KAAAF,CAAK,EAAIL,EAAmBH,EAAkBK,CAAiB,EAEvE,OACEP,EAAqB,YAApB,CACC,IAAKY,EACL,UAAWG,EAA4B,CAAE,YAAAC,EAAa,KAAAN,EAAM,UAAAD,CAAU,CAAC,EACvE,YAAaO,EACZ,GAAGL,EAEJ,SAAAX,EAAqB,kBAApB,CAAoC,UAAU,yCAAyC,EAC1F,CAEJ,CACF,EAEAc,EAAoB,YAAkC,YAAU","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';\nimport { createContextScope, type Scope } from '@radix-ui/react-context';\nimport { tv, type VariantProps } from 'tailwind-variants';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: ScrollArea\n * -------------------------------------------------------------------------- */\n\nconst SCROLL_AREA_NAME = 'ScrollArea';\n\ntype ScopedProps<P> = P & { __scopeScrollArea?: Scope };\n\nconst [createCarouselContext] = createContextScope(SCROLL_AREA_NAME);\n\ntype ScrollAreaContextValue = Pick<ScrollAreaScrollbarVariantsProps, 'size'>;\n\nconst [CarouselProvider, useCarouselContext] = createCarouselContext<ScrollAreaContextValue>(SCROLL_AREA_NAME);\n\ntype ScrollAreaElement = React.ElementRef<typeof ScrollAreaPrimitive.Root>;\ntype ScrollAreaProps = React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root> & ScrollAreaContextValue;\n\nconst ScrollArea = React.forwardRef<ScrollAreaElement, ScrollAreaProps>(\n ({ __scopeScrollArea, children, className, size = '2', ...props }: ScopedProps<ScrollAreaProps>, ref) => (\n <CarouselProvider scope={__scopeScrollArea} size={size}>\n <ScrollAreaPrimitive.Root ref={ref} className={cn('relative overflow-hidden', className)} {...props}>\n <ScrollAreaPrimitive.Viewport className=\"size-full rounded-[inherit] [&>*]:h-full\">\n {children}\n </ScrollAreaPrimitive.Viewport>\n <ScrollAreaScrollbar orientation=\"vertical\" />\n <ScrollAreaScrollbar orientation=\"horizontal\" />\n <ScrollAreaPrimitive.Corner />\n </ScrollAreaPrimitive.Root>\n </CarouselProvider>\n ),\n);\n\nScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Variant: ScrollAreaScrollbar\n * -------------------------------------------------------------------------- */\n\nconst scrollAreaScrollbarVariants = tv({\n base: 'flex touch-none select-none p-px transition',\n variants: {\n orientation: {\n vertical: 'h-full flex-row border-l border-l-transparent',\n horizontal: 'w-full flex-col border-t border-t-transparent',\n },\n size: {\n none: '',\n '1': '',\n '2': '',\n '3': '',\n },\n },\n compoundVariants: [\n { orientation: 'vertical', size: '1', className: 'w-1.5' },\n { orientation: 'vertical', size: '2', className: 'w-2' },\n { orientation: 'vertical', size: '3', className: 'w-2.5' },\n { orientation: 'horizontal', size: '1', className: 'h-1.5' },\n { orientation: 'horizontal', size: '2', className: 'h-2' },\n { orientation: 'horizontal', size: '3', className: 'h-2.5' },\n ],\n});\n\ntype ScrollAreaScrollbarVariantsProps = VariantProps<typeof scrollAreaScrollbarVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: ScrollAreaScrollbar\n * -------------------------------------------------------------------------- */\n\ntype ScrollAreaScrollbarElement = React.ElementRef<typeof ScrollAreaPrimitive.Scrollbar>;\ntype ScrollAreaScrollbarProps = React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Scrollbar>;\n\nconst ScrollAreaScrollbar = React.forwardRef<ScrollAreaScrollbarElement, ScrollAreaScrollbarProps>(\n (\n { __scopeScrollArea, className, orientation = 'vertical', ...props }: ScopedProps<ScrollAreaScrollbarProps>,\n ref,\n ) => {\n const { size } = useCarouselContext(SCROLL_AREA_NAME, __scopeScrollArea);\n\n return (\n <ScrollAreaPrimitive.Scrollbar\n ref={ref}\n className={scrollAreaScrollbarVariants({ orientation, size, className })}\n orientation={orientation}\n {...props}\n >\n <ScrollAreaPrimitive.ScrollAreaThumb className=\"bg-border relative flex-1 rounded-full\" />\n </ScrollAreaPrimitive.Scrollbar>\n );\n },\n);\n\nScrollAreaScrollbar.displayName = ScrollAreaPrimitive.Scrollbar.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { ScrollArea, ScrollAreaScrollbar, type ScrollAreaProps, type ScrollAreaScrollbarProps };\n"]}
1
+ {"version":3,"sources":["../../src/react/scroll-area.tsx"],"names":["React","ScrollAreaPrimitive","createContextScope","tv","jsx","jsxs","SCROLL_AREA_NAME","createCarouselContext","CarouselProvider","useCarouselContext","ScrollArea","__scopeScrollArea","children","className","size","props","forwardedRef","cn","ScrollAreaScrollbar","scrollAreaScrollbarVariants","orientation"],"mappings":"uDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAyB,8BACrC,OAAS,sBAAAC,MAAsC,0BAC/C,OAAS,MAAAC,MAA6B,oBAuBhC,OACE,OAAAC,EADF,QAAAC,MAAA,oBAhBN,IAAMC,EAAmB,aAInB,CAACC,CAAqB,EAAIL,EAAmBI,CAAgB,EAI7D,CAACE,EAAkBC,CAAkB,EAAIF,EAA8CD,CAAgB,EAKvGI,EAAmB,aACvB,CAAC,CAAE,kBAAAC,EAAmB,SAAAC,EAAU,UAAAC,EAAW,KAAAC,EAAO,IAAK,GAAGC,CAAM,EAAiCC,IAC/FZ,EAACI,EAAA,CAAiB,MAAOG,EAAmB,KAAMG,EAChD,SAAAT,EAAqB,OAApB,CAAyB,IAAKW,EAAc,UAAWC,EAAG,2BAA4BJ,CAAS,EAAI,GAAGE,EACrG,UAAAX,EAAqB,WAApB,CAA6B,UAAU,2CACrC,SAAAQ,EACH,EACAR,EAACc,EAAA,CAAoB,YAAY,WAAW,EAC5Cd,EAACc,EAAA,CAAoB,YAAY,aAAa,EAC9Cd,EAAqB,SAApB,EAA2B,GAC9B,EACF,CAEJ,EAEAM,EAAW,YAAkC,OAAK,YAMlD,IAAMS,EAA8BhB,EAAG,CACrC,KAAM,8CACN,SAAU,CACR,YAAa,CACX,SAAU,gDACV,WAAY,+CACd,EACA,KAAM,CACJ,KAAM,GACN,EAAK,GACL,EAAK,GACL,EAAK,EACP,CACF,EACA,iBAAkB,CAChB,CAAE,YAAa,WAAY,KAAM,IAAK,UAAW,OAAQ,EACzD,CAAE,YAAa,WAAY,KAAM,IAAK,UAAW,KAAM,EACvD,CAAE,YAAa,WAAY,KAAM,IAAK,UAAW,OAAQ,EACzD,CAAE,YAAa,aAAc,KAAM,IAAK,UAAW,OAAQ,EAC3D,CAAE,YAAa,aAAc,KAAM,IAAK,UAAW,KAAM,EACzD,CAAE,YAAa,aAAc,KAAM,IAAK,UAAW,OAAQ,CAC7D,CACF,CAAC,EAWKe,EAA4B,aAChC,CACE,CAAE,kBAAAP,EAAmB,UAAAE,EAAW,YAAAO,EAAc,WAAY,GAAGL,CAAM,EACnEC,IACG,CACH,GAAM,CAAE,KAAAF,CAAK,EAAIL,EAAmBH,EAAkBK,CAAiB,EAEvE,OACEP,EAAqB,YAApB,CACC,IAAKY,EACL,UAAWG,EAA4B,CAAE,YAAAC,EAAa,KAAAN,EAAM,UAAAD,CAAU,CAAC,EACvE,YAAaO,EACZ,GAAGL,EAEJ,SAAAX,EAAqB,kBAApB,CAAoC,UAAU,yCAAyC,EAC1F,CAEJ,CACF,EAEAc,EAAoB,YAAkC,YAAU","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';\nimport { createContextScope, type Scope } from '@radix-ui/react-context';\nimport { tv, type VariantProps } from 'tailwind-variants';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: ScrollArea\n * -------------------------------------------------------------------------- */\n\nconst SCROLL_AREA_NAME = 'ScrollArea';\n\ntype ScopedProps<P> = P & { __scopeScrollArea?: Scope };\n\nconst [createCarouselContext] = createContextScope(SCROLL_AREA_NAME);\n\ntype ScrollAreaContextValue = Pick<ScrollAreaScrollbarVariantsProps, 'size'>;\n\nconst [CarouselProvider, useCarouselContext] = createCarouselContext<ScrollAreaContextValue>(SCROLL_AREA_NAME);\n\ntype ScrollAreaElement = React.ElementRef<typeof ScrollAreaPrimitive.Root>;\ntype ScrollAreaProps = React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root> & ScrollAreaContextValue;\n\nconst ScrollArea = React.forwardRef<ScrollAreaElement, ScrollAreaProps>(\n ({ __scopeScrollArea, children, className, size = '2', ...props }: ScopedProps<ScrollAreaProps>, forwardedRef) => (\n <CarouselProvider scope={__scopeScrollArea} size={size}>\n <ScrollAreaPrimitive.Root ref={forwardedRef} className={cn('relative overflow-hidden', className)} {...props}>\n <ScrollAreaPrimitive.Viewport className=\"size-full rounded-[inherit] [&>*]:h-full\">\n {children}\n </ScrollAreaPrimitive.Viewport>\n <ScrollAreaScrollbar orientation=\"vertical\" />\n <ScrollAreaScrollbar orientation=\"horizontal\" />\n <ScrollAreaPrimitive.Corner />\n </ScrollAreaPrimitive.Root>\n </CarouselProvider>\n ),\n);\n\nScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Variant: ScrollAreaScrollbar\n * -------------------------------------------------------------------------- */\n\nconst scrollAreaScrollbarVariants = tv({\n base: 'flex touch-none select-none p-px transition',\n variants: {\n orientation: {\n vertical: 'h-full flex-row border-l border-l-transparent',\n horizontal: 'w-full flex-col border-t border-t-transparent',\n },\n size: {\n none: '',\n '1': '',\n '2': '',\n '3': '',\n },\n },\n compoundVariants: [\n { orientation: 'vertical', size: '1', className: 'w-1.5' },\n { orientation: 'vertical', size: '2', className: 'w-2' },\n { orientation: 'vertical', size: '3', className: 'w-2.5' },\n { orientation: 'horizontal', size: '1', className: 'h-1.5' },\n { orientation: 'horizontal', size: '2', className: 'h-2' },\n { orientation: 'horizontal', size: '3', className: 'h-2.5' },\n ],\n});\n\ntype ScrollAreaScrollbarVariantsProps = VariantProps<typeof scrollAreaScrollbarVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: ScrollAreaScrollbar\n * -------------------------------------------------------------------------- */\n\ntype ScrollAreaScrollbarElement = React.ElementRef<typeof ScrollAreaPrimitive.Scrollbar>;\ntype ScrollAreaScrollbarProps = React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Scrollbar>;\n\nconst ScrollAreaScrollbar = React.forwardRef<ScrollAreaScrollbarElement, ScrollAreaScrollbarProps>(\n (\n { __scopeScrollArea, className, orientation = 'vertical', ...props }: ScopedProps<ScrollAreaScrollbarProps>,\n forwardedRef,\n ) => {\n const { size } = useCarouselContext(SCROLL_AREA_NAME, __scopeScrollArea);\n\n return (\n <ScrollAreaPrimitive.Scrollbar\n ref={forwardedRef}\n className={scrollAreaScrollbarVariants({ orientation, size, className })}\n orientation={orientation}\n {...props}\n >\n <ScrollAreaPrimitive.ScrollAreaThumb className=\"bg-border relative flex-1 rounded-full\" />\n </ScrollAreaPrimitive.Scrollbar>\n );\n },\n);\n\nScrollAreaScrollbar.displayName = ScrollAreaPrimitive.Scrollbar.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { ScrollArea, ScrollAreaScrollbar, type ScrollAreaProps, type ScrollAreaScrollbarProps };\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/scroll-area.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';\nimport { createContextScope, type Scope } from '@radix-ui/react-context';\nimport { tv, type VariantProps } from 'tailwind-variants';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: ScrollArea\n * -------------------------------------------------------------------------- */\n\nconst SCROLL_AREA_NAME = 'ScrollArea';\n\ntype ScopedProps<P> = P & { __scopeScrollArea?: Scope };\n\nconst [createCarouselContext] = createContextScope(SCROLL_AREA_NAME);\n\ntype ScrollAreaContextValue = Pick<ScrollAreaScrollbarVariantsProps, 'size'>;\n\nconst [CarouselProvider, useCarouselContext] = createCarouselContext<ScrollAreaContextValue>(SCROLL_AREA_NAME);\n\ntype ScrollAreaElement = React.ElementRef<typeof ScrollAreaPrimitive.Root>;\ntype ScrollAreaProps = React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root> & ScrollAreaContextValue;\n\nconst ScrollArea = React.forwardRef<ScrollAreaElement, ScrollAreaProps>(\n ({ __scopeScrollArea, children, className, size = '2', ...props }: ScopedProps<ScrollAreaProps>, ref) => (\n <CarouselProvider scope={__scopeScrollArea} size={size}>\n <ScrollAreaPrimitive.Root ref={ref} className={cn('relative overflow-hidden', className)} {...props}>\n <ScrollAreaPrimitive.Viewport className=\"size-full rounded-[inherit] [&>*]:h-full\">\n {children}\n </ScrollAreaPrimitive.Viewport>\n <ScrollAreaScrollbar orientation=\"vertical\" />\n <ScrollAreaScrollbar orientation=\"horizontal\" />\n <ScrollAreaPrimitive.Corner />\n </ScrollAreaPrimitive.Root>\n </CarouselProvider>\n ),\n);\n\nScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Variant: ScrollAreaScrollbar\n * -------------------------------------------------------------------------- */\n\nconst scrollAreaScrollbarVariants = tv({\n base: 'flex touch-none select-none p-px transition',\n variants: {\n orientation: {\n vertical: 'h-full flex-row border-l border-l-transparent',\n horizontal: 'w-full flex-col border-t border-t-transparent',\n },\n size: {\n none: '',\n '1': '',\n '2': '',\n '3': '',\n },\n },\n compoundVariants: [\n { orientation: 'vertical', size: '1', className: 'w-1.5' },\n { orientation: 'vertical', size: '2', className: 'w-2' },\n { orientation: 'vertical', size: '3', className: 'w-2.5' },\n { orientation: 'horizontal', size: '1', className: 'h-1.5' },\n { orientation: 'horizontal', size: '2', className: 'h-2' },\n { orientation: 'horizontal', size: '3', className: 'h-2.5' },\n ],\n});\n\ntype ScrollAreaScrollbarVariantsProps = VariantProps<typeof scrollAreaScrollbarVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: ScrollAreaScrollbar\n * -------------------------------------------------------------------------- */\n\ntype ScrollAreaScrollbarElement = React.ElementRef<typeof ScrollAreaPrimitive.Scrollbar>;\ntype ScrollAreaScrollbarProps = React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Scrollbar>;\n\nconst ScrollAreaScrollbar = React.forwardRef<ScrollAreaScrollbarElement, ScrollAreaScrollbarProps>(\n (\n { __scopeScrollArea, className, orientation = 'vertical', ...props }: ScopedProps<ScrollAreaScrollbarProps>,\n ref,\n ) => {\n const { size } = useCarouselContext(SCROLL_AREA_NAME, __scopeScrollArea);\n\n return (\n <ScrollAreaPrimitive.Scrollbar\n ref={ref}\n className={scrollAreaScrollbarVariants({ orientation, size, className })}\n orientation={orientation}\n {...props}\n >\n <ScrollAreaPrimitive.ScrollAreaThumb className=\"bg-border relative flex-1 rounded-full\" />\n </ScrollAreaPrimitive.Scrollbar>\n );\n },\n);\n\nScrollAreaScrollbar.displayName = ScrollAreaPrimitive.Scrollbar.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { ScrollArea, ScrollAreaScrollbar, type ScrollAreaProps, type ScrollAreaScrollbarProps };\n"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAyB,8BACrC,OAAS,sBAAAC,MAAsC,0BAC/C,OAAS,MAAAC,MAA6B,oBAuBhC,OACE,OAAAC,EADF,QAAAC,MAAA,oBAhBN,IAAMC,EAAmB,aAInB,CAACC,CAAqB,EAAIC,EAAmBF,CAAgB,EAI7D,CAACG,EAAkBC,CAAkB,EAAIH,EAA8CD,CAAgB,EAKvGK,EAAmB,aACvB,CAAC,CAAE,kBAAAC,EAAmB,SAAAC,EAAU,UAAAC,EAAW,KAAAC,EAAO,IAAK,GAAGC,CAAM,EAAiCC,IAC/Fb,EAACK,EAAA,CAAiB,MAAOG,EAAmB,KAAMG,EAChD,SAAAV,EAAqB,OAApB,CAAyB,IAAKY,EAAK,UAAWC,EAAG,2BAA4BJ,CAAS,EAAI,GAAGE,EAC5F,UAAAZ,EAAqB,WAApB,CAA6B,UAAU,2CACrC,SAAAS,EACH,EACAT,EAACe,EAAA,CAAoB,YAAY,WAAW,EAC5Cf,EAACe,EAAA,CAAoB,YAAY,aAAa,EAC9Cf,EAAqB,SAApB,EAA2B,GAC9B,EACF,CAEJ,EAEAO,EAAW,YAAkC,OAAK,YAMlD,IAAMS,EAA8BC,EAAG,CACrC,KAAM,8CACN,SAAU,CACR,YAAa,CACX,SAAU,gDACV,WAAY,+CACd,EACA,KAAM,CACJ,KAAM,GACN,EAAK,GACL,EAAK,GACL,EAAK,EACP,CACF,EACA,iBAAkB,CAChB,CAAE,YAAa,WAAY,KAAM,IAAK,UAAW,OAAQ,EACzD,CAAE,YAAa,WAAY,KAAM,IAAK,UAAW,KAAM,EACvD,CAAE,YAAa,WAAY,KAAM,IAAK,UAAW,OAAQ,EACzD,CAAE,YAAa,aAAc,KAAM,IAAK,UAAW,OAAQ,EAC3D,CAAE,YAAa,aAAc,KAAM,IAAK,UAAW,KAAM,EACzD,CAAE,YAAa,aAAc,KAAM,IAAK,UAAW,OAAQ,CAC7D,CACF,CAAC,EAWKF,EAA4B,aAChC,CACE,CAAE,kBAAAP,EAAmB,UAAAE,EAAW,YAAAQ,EAAc,WAAY,GAAGN,CAAM,EACnEC,IACG,CACH,GAAM,CAAE,KAAAF,CAAK,EAAIL,EAAmBJ,EAAkBM,CAAiB,EAEvE,OACER,EAAqB,YAApB,CACC,IAAKa,EACL,UAAWG,EAA4B,CAAE,YAAAE,EAAa,KAAAP,EAAM,UAAAD,CAAU,CAAC,EACvE,YAAaQ,EACZ,GAAGN,EAEJ,SAAAZ,EAAqB,kBAApB,CAAoC,UAAU,yCAAyC,EAC1F,CAEJ,CACF,EAEAe,EAAoB,YAAkC,YAAU","names":["React","ScrollAreaPrimitive","createContextScope","tv","jsx","jsxs","SCROLL_AREA_NAME","createCarouselContext","createContextScope","CarouselProvider","useCarouselContext","ScrollArea","__scopeScrollArea","children","className","size","props","ref","cn","ScrollAreaScrollbar","scrollAreaScrollbarVariants","tv","orientation"]}
1
+ {"version":3,"sources":["../../src/react/scroll-area.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';\nimport { createContextScope, type Scope } from '@radix-ui/react-context';\nimport { tv, type VariantProps } from 'tailwind-variants';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: ScrollArea\n * -------------------------------------------------------------------------- */\n\nconst SCROLL_AREA_NAME = 'ScrollArea';\n\ntype ScopedProps<P> = P & { __scopeScrollArea?: Scope };\n\nconst [createCarouselContext] = createContextScope(SCROLL_AREA_NAME);\n\ntype ScrollAreaContextValue = Pick<ScrollAreaScrollbarVariantsProps, 'size'>;\n\nconst [CarouselProvider, useCarouselContext] = createCarouselContext<ScrollAreaContextValue>(SCROLL_AREA_NAME);\n\ntype ScrollAreaElement = React.ElementRef<typeof ScrollAreaPrimitive.Root>;\ntype ScrollAreaProps = React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root> & ScrollAreaContextValue;\n\nconst ScrollArea = React.forwardRef<ScrollAreaElement, ScrollAreaProps>(\n ({ __scopeScrollArea, children, className, size = '2', ...props }: ScopedProps<ScrollAreaProps>, forwardedRef) => (\n <CarouselProvider scope={__scopeScrollArea} size={size}>\n <ScrollAreaPrimitive.Root ref={forwardedRef} className={cn('relative overflow-hidden', className)} {...props}>\n <ScrollAreaPrimitive.Viewport className=\"size-full rounded-[inherit] [&>*]:h-full\">\n {children}\n </ScrollAreaPrimitive.Viewport>\n <ScrollAreaScrollbar orientation=\"vertical\" />\n <ScrollAreaScrollbar orientation=\"horizontal\" />\n <ScrollAreaPrimitive.Corner />\n </ScrollAreaPrimitive.Root>\n </CarouselProvider>\n ),\n);\n\nScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Variant: ScrollAreaScrollbar\n * -------------------------------------------------------------------------- */\n\nconst scrollAreaScrollbarVariants = tv({\n base: 'flex touch-none select-none p-px transition',\n variants: {\n orientation: {\n vertical: 'h-full flex-row border-l border-l-transparent',\n horizontal: 'w-full flex-col border-t border-t-transparent',\n },\n size: {\n none: '',\n '1': '',\n '2': '',\n '3': '',\n },\n },\n compoundVariants: [\n { orientation: 'vertical', size: '1', className: 'w-1.5' },\n { orientation: 'vertical', size: '2', className: 'w-2' },\n { orientation: 'vertical', size: '3', className: 'w-2.5' },\n { orientation: 'horizontal', size: '1', className: 'h-1.5' },\n { orientation: 'horizontal', size: '2', className: 'h-2' },\n { orientation: 'horizontal', size: '3', className: 'h-2.5' },\n ],\n});\n\ntype ScrollAreaScrollbarVariantsProps = VariantProps<typeof scrollAreaScrollbarVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: ScrollAreaScrollbar\n * -------------------------------------------------------------------------- */\n\ntype ScrollAreaScrollbarElement = React.ElementRef<typeof ScrollAreaPrimitive.Scrollbar>;\ntype ScrollAreaScrollbarProps = React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Scrollbar>;\n\nconst ScrollAreaScrollbar = React.forwardRef<ScrollAreaScrollbarElement, ScrollAreaScrollbarProps>(\n (\n { __scopeScrollArea, className, orientation = 'vertical', ...props }: ScopedProps<ScrollAreaScrollbarProps>,\n forwardedRef,\n ) => {\n const { size } = useCarouselContext(SCROLL_AREA_NAME, __scopeScrollArea);\n\n return (\n <ScrollAreaPrimitive.Scrollbar\n ref={forwardedRef}\n className={scrollAreaScrollbarVariants({ orientation, size, className })}\n orientation={orientation}\n {...props}\n >\n <ScrollAreaPrimitive.ScrollAreaThumb className=\"bg-border relative flex-1 rounded-full\" />\n </ScrollAreaPrimitive.Scrollbar>\n );\n },\n);\n\nScrollAreaScrollbar.displayName = ScrollAreaPrimitive.Scrollbar.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { ScrollArea, ScrollAreaScrollbar, type ScrollAreaProps, type ScrollAreaScrollbarProps };\n"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAyB,8BACrC,OAAS,sBAAAC,MAAsC,0BAC/C,OAAS,MAAAC,MAA6B,oBAuBhC,OACE,OAAAC,EADF,QAAAC,MAAA,oBAhBN,IAAMC,EAAmB,aAInB,CAACC,CAAqB,EAAIC,EAAmBF,CAAgB,EAI7D,CAACG,EAAkBC,CAAkB,EAAIH,EAA8CD,CAAgB,EAKvGK,EAAmB,aACvB,CAAC,CAAE,kBAAAC,EAAmB,SAAAC,EAAU,UAAAC,EAAW,KAAAC,EAAO,IAAK,GAAGC,CAAM,EAAiCC,IAC/Fb,EAACK,EAAA,CAAiB,MAAOG,EAAmB,KAAMG,EAChD,SAAAV,EAAqB,OAApB,CAAyB,IAAKY,EAAc,UAAWC,EAAG,2BAA4BJ,CAAS,EAAI,GAAGE,EACrG,UAAAZ,EAAqB,WAApB,CAA6B,UAAU,2CACrC,SAAAS,EACH,EACAT,EAACe,EAAA,CAAoB,YAAY,WAAW,EAC5Cf,EAACe,EAAA,CAAoB,YAAY,aAAa,EAC9Cf,EAAqB,SAApB,EAA2B,GAC9B,EACF,CAEJ,EAEAO,EAAW,YAAkC,OAAK,YAMlD,IAAMS,EAA8BC,EAAG,CACrC,KAAM,8CACN,SAAU,CACR,YAAa,CACX,SAAU,gDACV,WAAY,+CACd,EACA,KAAM,CACJ,KAAM,GACN,EAAK,GACL,EAAK,GACL,EAAK,EACP,CACF,EACA,iBAAkB,CAChB,CAAE,YAAa,WAAY,KAAM,IAAK,UAAW,OAAQ,EACzD,CAAE,YAAa,WAAY,KAAM,IAAK,UAAW,KAAM,EACvD,CAAE,YAAa,WAAY,KAAM,IAAK,UAAW,OAAQ,EACzD,CAAE,YAAa,aAAc,KAAM,IAAK,UAAW,OAAQ,EAC3D,CAAE,YAAa,aAAc,KAAM,IAAK,UAAW,KAAM,EACzD,CAAE,YAAa,aAAc,KAAM,IAAK,UAAW,OAAQ,CAC7D,CACF,CAAC,EAWKF,EAA4B,aAChC,CACE,CAAE,kBAAAP,EAAmB,UAAAE,EAAW,YAAAQ,EAAc,WAAY,GAAGN,CAAM,EACnEC,IACG,CACH,GAAM,CAAE,KAAAF,CAAK,EAAIL,EAAmBJ,EAAkBM,CAAiB,EAEvE,OACER,EAAqB,YAApB,CACC,IAAKa,EACL,UAAWG,EAA4B,CAAE,YAAAE,EAAa,KAAAP,EAAM,UAAAD,CAAU,CAAC,EACvE,YAAaQ,EACZ,GAAGN,EAEJ,SAAAZ,EAAqB,kBAApB,CAAoC,UAAU,yCAAyC,EAC1F,CAEJ,CACF,EAEAe,EAAoB,YAAkC,YAAU","names":["React","ScrollAreaPrimitive","createContextScope","tv","jsx","jsxs","SCROLL_AREA_NAME","createCarouselContext","createContextScope","CarouselProvider","useCarouselContext","ScrollArea","__scopeScrollArea","children","className","size","props","forwardedRef","cn","ScrollAreaScrollbar","scrollAreaScrollbarVariants","tv","orientation"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/section.tsx"],"names":["React","Slot","jsx","Section","asChild","props","ref"],"mappings":"AAAA,UAAYA,MAAW,QACvB,OAAS,QAAAC,MAAY,uBAeZ,cAAAC,MAAA,oBAHT,IAAMC,EAAgB,aAAyC,CAAC,CAAE,QAAAC,EAAS,GAAGC,CAAM,EAAGC,IAG9EJ,EAFWE,EAAUH,EAAO,UAE3B,CAAU,IAAKK,EAAM,GAAGD,EAAO,CACxC,EAEDF,EAAQ,YAAc","sourcesContent":["import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\n\n/* -----------------------------------------------------------------------------\n * Component: Section\n * -------------------------------------------------------------------------- */\n\ntype SectionElement = HTMLElement;\n\ninterface SectionProps extends React.HTMLAttributes<HTMLElement> {\n asChild?: boolean;\n}\n\nconst Section = React.forwardRef<SectionElement, SectionProps>(({ asChild, ...props }, ref) => {\n const Component = asChild ? Slot : 'section';\n\n return <Component ref={ref} {...props} />;\n});\n\nSection.displayName = 'Section';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Section, type SectionProps };\n"]}
1
+ {"version":3,"sources":["../../src/react/section.tsx"],"names":["React","Slot","jsx","Section","asChild","props","forwardedRef"],"mappings":"AAAA,UAAYA,MAAW,QACvB,OAAS,QAAAC,MAAY,uBAeZ,cAAAC,MAAA,oBAHT,IAAMC,EAAgB,aAAyC,CAAC,CAAE,QAAAC,EAAS,GAAGC,CAAM,EAAGC,IAG9EJ,EAFWE,EAAUH,EAAO,UAE3B,CAAU,IAAKK,EAAe,GAAGD,EAAO,CACjD,EAEDF,EAAQ,YAAc","sourcesContent":["import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\n\n/* -----------------------------------------------------------------------------\n * Component: Section\n * -------------------------------------------------------------------------- */\n\ntype SectionElement = HTMLElement;\n\ninterface SectionProps extends React.HTMLAttributes<HTMLElement> {\n asChild?: boolean;\n}\n\nconst Section = React.forwardRef<SectionElement, SectionProps>(({ asChild, ...props }, forwardedRef) => {\n const Component = asChild ? Slot : 'section';\n\n return <Component ref={forwardedRef} {...props} />;\n});\n\nSection.displayName = 'Section';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Section, type SectionProps };\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/section.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\n\n/* -----------------------------------------------------------------------------\n * Component: Section\n * -------------------------------------------------------------------------- */\n\ntype SectionElement = HTMLElement;\n\ninterface SectionProps extends React.HTMLAttributes<HTMLElement> {\n asChild?: boolean;\n}\n\nconst Section = React.forwardRef<SectionElement, SectionProps>(({ asChild, ...props }, ref) => {\n const Component = asChild ? Slot : 'section';\n\n return <Component ref={ref} {...props} />;\n});\n\nSection.displayName = 'Section';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Section, type SectionProps };\n"],"mappings":"AAAA,UAAYA,MAAW,QACvB,OAAS,QAAAC,MAAY,uBAeZ,cAAAC,MAAA,oBAHT,IAAMC,EAAgB,aAAyC,CAAC,CAAE,QAAAC,EAAS,GAAGC,CAAM,EAAGC,IAG9EJ,EAFWE,EAAUH,EAAO,UAE3B,CAAU,IAAKK,EAAM,GAAGD,EAAO,CACxC,EAEDF,EAAQ,YAAc","names":["React","Slot","jsx","Section","asChild","props","ref"]}
1
+ {"version":3,"sources":["../../src/react/section.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\n\n/* -----------------------------------------------------------------------------\n * Component: Section\n * -------------------------------------------------------------------------- */\n\ntype SectionElement = HTMLElement;\n\ninterface SectionProps extends React.HTMLAttributes<HTMLElement> {\n asChild?: boolean;\n}\n\nconst Section = React.forwardRef<SectionElement, SectionProps>(({ asChild, ...props }, forwardedRef) => {\n const Component = asChild ? Slot : 'section';\n\n return <Component ref={forwardedRef} {...props} />;\n});\n\nSection.displayName = 'Section';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Section, type SectionProps };\n"],"mappings":"AAAA,UAAYA,MAAW,QACvB,OAAS,QAAAC,MAAY,uBAeZ,cAAAC,MAAA,oBAHT,IAAMC,EAAgB,aAAyC,CAAC,CAAE,QAAAC,EAAS,GAAGC,CAAM,EAAGC,IAG9EJ,EAFWE,EAAUH,EAAO,UAE3B,CAAU,IAAKK,EAAe,GAAGD,EAAO,CACjD,EAEDF,EAAQ,YAAc","names":["React","Slot","jsx","Section","asChild","props","forwardedRef"]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunk3OEPCFBFcjs = require('../chunk-3OEPCFBF.cjs');require('../chunk-NU6SK3FC.cjs');exports.Select = _chunk3OEPCFBFcjs.a; exports.SelectContent = _chunk3OEPCFBFcjs.g; exports.SelectGroup = _chunk3OEPCFBFcjs.b; exports.SelectItem = _chunk3OEPCFBFcjs.i; exports.SelectLabel = _chunk3OEPCFBFcjs.h; exports.SelectScrollDownButton = _chunk3OEPCFBFcjs.f; exports.SelectScrollUpButton = _chunk3OEPCFBFcjs.e; exports.SelectSeparator = _chunk3OEPCFBFcjs.j; exports.SelectTrigger = _chunk3OEPCFBFcjs.d; exports.SelectValue = _chunk3OEPCFBFcjs.c;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunk6UQKMUZGcjs = require('../chunk-6UQKMUZG.cjs');require('../chunk-NU6SK3FC.cjs');exports.Select = _chunk6UQKMUZGcjs.a; exports.SelectContent = _chunk6UQKMUZGcjs.g; exports.SelectGroup = _chunk6UQKMUZGcjs.b; exports.SelectItem = _chunk6UQKMUZGcjs.i; exports.SelectLabel = _chunk6UQKMUZGcjs.h; exports.SelectScrollDownButton = _chunk6UQKMUZGcjs.f; exports.SelectScrollUpButton = _chunk6UQKMUZGcjs.e; exports.SelectSeparator = _chunk6UQKMUZGcjs.j; exports.SelectTrigger = _chunk6UQKMUZGcjs.d; exports.SelectValue = _chunk6UQKMUZGcjs.c;
2
2
  //# sourceMappingURL=select.cjs.map
@@ -1,2 +1,2 @@
1
- "use client";import{a,b,c,d,e,f,g,h,i,j}from"../chunk-7CHCTEST.js";import"../chunk-5UXVZTFG.js";export{a as Select,g as SelectContent,b as SelectGroup,i as SelectItem,h as SelectLabel,f as SelectScrollDownButton,e as SelectScrollUpButton,j as SelectSeparator,d as SelectTrigger,c as SelectValue};
1
+ "use client";import{a,b,c,d,e,f,g,h,i,j}from"../chunk-5QETIFO4.js";import"../chunk-5UXVZTFG.js";export{a as Select,g as SelectContent,b as SelectGroup,i as SelectItem,h as SelectLabel,f as SelectScrollDownButton,e as SelectScrollUpButton,j as SelectSeparator,d as SelectTrigger,c as SelectValue};
2
2
  //# sourceMappingURL=select.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/separator.tsx"],"names":["React","SeparatorPrimitive","jsx","Separator","className","orientation","decorative","props","ref","cn"],"mappings":"uDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAwB,4BAYhC,cAAAC,MAAA,oBAFJ,IAAMC,EAAkB,aACtB,CAAC,CAAE,UAAAC,EAAW,YAAAC,EAAc,aAAc,WAAAC,EAAa,GAAM,GAAGC,CAAM,EAAGC,IACvEN,EAAoB,OAAnB,CACC,IAAKM,EACL,UAAWC,EAAG,qBAAsBJ,IAAgB,aAAe,cAAgB,cAAeD,CAAS,EAC3G,WAAYE,EACZ,YAAaD,EACZ,GAAGE,EACN,CAEJ,EAEAJ,EAAU,YAAiC,OAAK","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as SeparatorPrimitive from '@radix-ui/react-separator';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Separator\n * -------------------------------------------------------------------------- */\n\ntype SeparatorElement = React.ElementRef<typeof SeparatorPrimitive.Root>;\ntype SeparatorProps = React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>;\n\nconst Separator = React.forwardRef<SeparatorElement, SeparatorProps>(\n ({ className, orientation = 'horizontal', decorative = true, ...props }, ref) => (\n <SeparatorPrimitive.Root\n ref={ref}\n className={cn('bg-border shrink-0', orientation === 'horizontal' ? 'h-px w-full' : 'h-full w-px', className)}\n decorative={decorative}\n orientation={orientation}\n {...props}\n />\n ),\n);\n\nSeparator.displayName = SeparatorPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Separator, type SeparatorProps };\n"]}
1
+ {"version":3,"sources":["../../src/react/separator.tsx"],"names":["React","SeparatorPrimitive","jsx","Separator","className","orientation","decorative","props","forwardedRef","cn"],"mappings":"uDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAwB,4BAYhC,cAAAC,MAAA,oBAFJ,IAAMC,EAAkB,aACtB,CAAC,CAAE,UAAAC,EAAW,YAAAC,EAAc,aAAc,WAAAC,EAAa,GAAM,GAAGC,CAAM,EAAGC,IACvEN,EAAoB,OAAnB,CACC,IAAKM,EACL,UAAWC,EAAG,qBAAsBJ,IAAgB,aAAe,cAAgB,cAAeD,CAAS,EAC3G,WAAYE,EACZ,YAAaD,EACZ,GAAGE,EACN,CAEJ,EAEAJ,EAAU,YAAiC,OAAK","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as SeparatorPrimitive from '@radix-ui/react-separator';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Separator\n * -------------------------------------------------------------------------- */\n\ntype SeparatorElement = React.ElementRef<typeof SeparatorPrimitive.Root>;\ntype SeparatorProps = React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>;\n\nconst Separator = React.forwardRef<SeparatorElement, SeparatorProps>(\n ({ className, orientation = 'horizontal', decorative = true, ...props }, forwardedRef) => (\n <SeparatorPrimitive.Root\n ref={forwardedRef}\n className={cn('bg-border shrink-0', orientation === 'horizontal' ? 'h-px w-full' : 'h-full w-px', className)}\n decorative={decorative}\n orientation={orientation}\n {...props}\n />\n ),\n);\n\nSeparator.displayName = SeparatorPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Separator, type SeparatorProps };\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/separator.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as SeparatorPrimitive from '@radix-ui/react-separator';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Separator\n * -------------------------------------------------------------------------- */\n\ntype SeparatorElement = React.ElementRef<typeof SeparatorPrimitive.Root>;\ntype SeparatorProps = React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>;\n\nconst Separator = React.forwardRef<SeparatorElement, SeparatorProps>(\n ({ className, orientation = 'horizontal', decorative = true, ...props }, ref) => (\n <SeparatorPrimitive.Root\n ref={ref}\n className={cn('bg-border shrink-0', orientation === 'horizontal' ? 'h-px w-full' : 'h-full w-px', className)}\n decorative={decorative}\n orientation={orientation}\n {...props}\n />\n ),\n);\n\nSeparator.displayName = SeparatorPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Separator, type SeparatorProps };\n"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAwB,4BAYhC,cAAAC,MAAA,oBAFJ,IAAMC,EAAkB,aACtB,CAAC,CAAE,UAAAC,EAAW,YAAAC,EAAc,aAAc,WAAAC,EAAa,GAAM,GAAGC,CAAM,EAAGC,IACvEN,EAAoB,OAAnB,CACC,IAAKM,EACL,UAAWC,EAAG,qBAAsBJ,IAAgB,aAAe,cAAgB,cAAeD,CAAS,EAC3G,WAAYE,EACZ,YAAaD,EACZ,GAAGE,EACN,CAEJ,EAEAJ,EAAU,YAAiC,OAAK","names":["React","SeparatorPrimitive","jsx","Separator","className","orientation","decorative","props","ref","cn"]}
1
+ {"version":3,"sources":["../../src/react/separator.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as SeparatorPrimitive from '@radix-ui/react-separator';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Separator\n * -------------------------------------------------------------------------- */\n\ntype SeparatorElement = React.ElementRef<typeof SeparatorPrimitive.Root>;\ntype SeparatorProps = React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>;\n\nconst Separator = React.forwardRef<SeparatorElement, SeparatorProps>(\n ({ className, orientation = 'horizontal', decorative = true, ...props }, forwardedRef) => (\n <SeparatorPrimitive.Root\n ref={forwardedRef}\n className={cn('bg-border shrink-0', orientation === 'horizontal' ? 'h-px w-full' : 'h-full w-px', className)}\n decorative={decorative}\n orientation={orientation}\n {...props}\n />\n ),\n);\n\nSeparator.displayName = SeparatorPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Separator, type SeparatorProps };\n"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAwB,4BAYhC,cAAAC,MAAA,oBAFJ,IAAMC,EAAkB,aACtB,CAAC,CAAE,UAAAC,EAAW,YAAAC,EAAc,aAAc,WAAAC,EAAa,GAAM,GAAGC,CAAM,EAAGC,IACvEN,EAAoB,OAAnB,CACC,IAAKM,EACL,UAAWC,EAAG,qBAAsBJ,IAAgB,aAAe,cAAgB,cAAeD,CAAS,EAC3G,WAAYE,EACZ,YAAaD,EACZ,GAAGE,EACN,CAEJ,EAEAJ,EAAU,YAAiC,OAAK","names":["React","SeparatorPrimitive","jsx","Separator","className","orientation","decorative","props","forwardedRef","cn"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/sheet.tsx"],"names":["React","SheetPrimitive","Cross2Icon","tv","jsx","jsxs","Sheet","SheetTrigger","SheetClose","sheetContentVariants","SheetContent","children","side","className","props","ref","SheetHeader","cn","SheetBody","SheetFooter","SheetTitle","SheetDescription"],"mappings":"kDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAoB,yBAChC,OAAS,cAAAC,MAAkB,wBAC3B,OAAS,MAAAC,MAA6B,oBAyDhC,cAAAC,EAGE,QAAAC,MAHF,oBAjDN,IAAMC,EAAuB,OAOvBC,EAA8B,UAO9BC,EAA4B,QAM5BC,EAAuBN,EAAG,CAC9B,KAAM,kOACN,SAAU,CACR,KAAM,CACJ,IAAK,iHACL,OACE,0HACF,KAAM,gIACN,MACE,kIACJ,CACF,EACA,gBAAiB,CACf,KAAM,OACR,CACF,CAAC,EAWKO,EAAqB,aACzB,CAAC,CAAE,SAAAC,EAAU,KAAAC,EAAO,QAAS,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAClDV,EAAgB,SAAf,CACC,UAAAD,EAAgB,UAAf,CAAuB,UAAU,wLAAwL,EAC1NC,EAAgB,UAAf,CAAuB,IAAKU,EAAK,UAAWN,EAAqB,CAAE,KAAAG,EAAM,UAAAC,CAAU,CAAC,EAAI,GAAGC,EACzF,UAAAH,EACDN,EAAgB,QAAf,CAAqB,UAAU,yNAC9B,UAAAD,EAACF,EAAA,CAAW,UAAU,SAAS,EAC/BE,EAAC,QAAK,UAAU,UAAU,iBAAK,GACjC,GACF,GACF,CAEJ,EAEAM,EAAa,YAA6B,UAAQ,YAQlD,SAASM,EAAY,CAAE,UAAAH,EAAW,GAAGC,CAAM,EAAwC,CACjF,OACEV,EAAC,UACC,UAAWa,EAAG,yEAA0EJ,CAAS,EAChG,GAAGC,EACN,CAEJ,CAQA,SAASI,EAAU,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAAwC,CAC/E,OAAOV,EAAC,QAAK,UAAWa,EAAG,YAAaJ,CAAS,EAAI,GAAGC,EAAO,CACjE,CAQA,SAASK,EAAY,CAAE,UAAAN,EAAW,GAAGC,CAAM,EAAwC,CACjF,OACEV,EAAC,UACC,UAAWa,EAAG,iFAAkFJ,CAAS,EACxG,GAAGC,EACN,CAEJ,CAEAK,EAAY,YAAc,cAS1B,IAAMC,EAAmB,aAA+C,CAAC,CAAE,UAAAP,EAAW,GAAGC,CAAM,EAAGC,IAChGX,EAAgB,QAAf,CAAqB,IAAKW,EAAK,UAAWE,EAAG,wCAAyCJ,CAAS,EAAI,GAAGC,EAAO,CAC/G,EAEDM,EAAW,YAA6B,QAAM,YAS9C,IAAMC,EAAyB,aAC7B,CAAC,CAAE,UAAAR,EAAW,GAAGC,CAAM,EAAGC,IACxBX,EAAgB,cAAf,CAA2B,IAAKW,EAAK,UAAWE,EAAG,gCAAiCJ,CAAS,EAAI,GAAGC,EAAO,CAEhH,EAEAO,EAAiB,YAA6B,cAAY","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as SheetPrimitive from '@radix-ui/react-dialog';\nimport { Cross2Icon } from '@radix-ui/react-icons';\nimport { tv, type VariantProps } from 'tailwind-variants';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Sheet\n * -------------------------------------------------------------------------- */\n\ntype SheetProps = React.ComponentProps<typeof SheetPrimitive.Root>;\nconst Sheet = SheetPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetTrigger\n * -------------------------------------------------------------------------- */\n\ntype SheetTriggerProps = React.ComponentPropsWithoutRef<typeof SheetPrimitive.Trigger>;\nconst SheetTrigger = SheetPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetClose\n * -------------------------------------------------------------------------- */\n\ntype SheetCloseProps = React.ComponentPropsWithoutRef<typeof SheetPrimitive.Close>;\nconst SheetClose = SheetPrimitive.Close;\n\n/* -----------------------------------------------------------------------------\n * Variant: SheetContent\n * -------------------------------------------------------------------------- */\n\nconst sheetContentVariants = tv({\n base: 'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:animate-duration-300 data-[state=open]:animate-duration-500 animate-ease-in-out fixed z-50 flex flex-col overflow-auto shadow-lg',\n variants: {\n side: {\n top: 'data-[state=open]:slide-in-from-top data-[state=closed]:slide-out-to-top inset-x-0 top-0 max-h-screen border-b',\n bottom:\n 'data-[state=open]:slide-in-from-bottom data-[state=closed]:slide-out-to-bottom inset-x-0 bottom-0 max-h-screen border-t',\n left: 'data-[state=open]:slide-in-from-left data-[state=closed]:slide-out-to-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm',\n right:\n 'data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm',\n },\n },\n defaultVariants: {\n side: 'right',\n },\n});\n\ntype SheetContentVariantsProps = VariantProps<typeof sheetContentVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetContent\n * -------------------------------------------------------------------------- */\n\ntype SheetContentElement = React.ElementRef<typeof SheetPrimitive.Content>;\ntype SheetContentProps = React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content> & SheetContentVariantsProps;\n\nconst SheetContent = React.forwardRef<SheetContentElement, SheetContentProps>(\n ({ children, side = 'right', className, ...props }, ref) => (\n <SheetPrimitive.Portal>\n <SheetPrimitive.Overlay className=\"data-[state=closed]:animate-duration-300 data-[state=open]:animate-duration-500 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 bg-black/80\" />\n <SheetPrimitive.Content ref={ref} className={sheetContentVariants({ side, className })} {...props}>\n {children}\n <SheetPrimitive.Close className=\"data-[state=open]:bg-secondary absolute right-4 top-4 rounded-sm p-1 opacity-70 transition hover:opacity-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none\">\n <Cross2Icon className=\"size-4\" />\n <span className=\"sr-only\">Close</span>\n </SheetPrimitive.Close>\n </SheetPrimitive.Content>\n </SheetPrimitive.Portal>\n ),\n);\n\nSheetContent.displayName = SheetPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetHeader\n * -------------------------------------------------------------------------- */\n\ntype SheetHeaderProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction SheetHeader({ className, ...props }: SheetHeaderProps): React.JSX.Element {\n return (\n <header\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetBody\n * -------------------------------------------------------------------------- */\n\ntype SheetBodyProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction SheetBody({ className, ...props }: SheetHeaderProps): React.JSX.Element {\n return <main className={cn('px-6 py-2', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetFooter\n * -------------------------------------------------------------------------- */\n\ntype SheetFooterProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction SheetFooter({ className, ...props }: SheetFooterProps): React.JSX.Element {\n return (\n <footer\n className={cn('flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end', className)}\n {...props}\n />\n );\n}\n\nSheetFooter.displayName = 'SheetFooter';\n\n/* -----------------------------------------------------------------------------\n * Component: SheetTitle\n * -------------------------------------------------------------------------- */\n\ntype SheetTitleElement = React.ElementRef<typeof SheetPrimitive.Title>;\ntype SheetTitleProps = React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>;\n\nconst SheetTitle = React.forwardRef<SheetTitleElement, SheetTitleProps>(({ className, ...props }, ref) => (\n <SheetPrimitive.Title ref={ref} className={cn('text-foreground text-lg font-semibold', className)} {...props} />\n));\n\nSheetTitle.displayName = SheetPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetDescription\n * -------------------------------------------------------------------------- */\n\ntype SheetDescriptionElement = React.ElementRef<typeof SheetPrimitive.Description>;\ntype SheetDescriptionProps = React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>;\n\nconst SheetDescription = React.forwardRef<SheetDescriptionElement, SheetDescriptionProps>(\n ({ className, ...props }, ref) => (\n <SheetPrimitive.Description ref={ref} className={cn('text-muted-foreground text-sm', className)} {...props} />\n ),\n);\n\nSheetDescription.displayName = SheetPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Sheet,\n SheetTrigger,\n SheetClose,\n SheetContent,\n SheetHeader,\n SheetBody,\n SheetFooter,\n SheetTitle,\n SheetDescription,\n type SheetProps,\n type SheetTriggerProps,\n type SheetCloseProps,\n type SheetContentProps,\n type SheetHeaderProps,\n type SheetBodyProps,\n type SheetFooterProps,\n type SheetTitleProps,\n type SheetDescriptionProps,\n};\n"]}
1
+ {"version":3,"sources":["../../src/react/sheet.tsx"],"names":["React","SheetPrimitive","Cross2Icon","tv","jsx","jsxs","Sheet","SheetTrigger","SheetClose","sheetContentVariants","SheetContent","children","side","className","props","forwardedRef","SheetHeader","cn","SheetBody","SheetFooter","SheetTitle","SheetDescription"],"mappings":"kDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAoB,yBAChC,OAAS,cAAAC,MAAkB,wBAC3B,OAAS,MAAAC,MAA6B,oBAyDhC,cAAAC,EAGE,QAAAC,MAHF,oBAjDN,IAAMC,EAAuB,OAOvBC,EAA8B,UAO9BC,EAA4B,QAM5BC,EAAuBN,EAAG,CAC9B,KAAM,kOACN,SAAU,CACR,KAAM,CACJ,IAAK,iHACL,OACE,0HACF,KAAM,gIACN,MACE,kIACJ,CACF,EACA,gBAAiB,CACf,KAAM,OACR,CACF,CAAC,EAWKO,EAAqB,aACzB,CAAC,CAAE,SAAAC,EAAU,KAAAC,EAAO,QAAS,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAClDV,EAAgB,SAAf,CACC,UAAAD,EAAgB,UAAf,CAAuB,UAAU,wLAAwL,EAC1NC,EAAgB,UAAf,CAAuB,IAAKU,EAAc,UAAWN,EAAqB,CAAE,KAAAG,EAAM,UAAAC,CAAU,CAAC,EAAI,GAAGC,EAClG,UAAAH,EACDN,EAAgB,QAAf,CAAqB,UAAU,yNAC9B,UAAAD,EAACF,EAAA,CAAW,UAAU,SAAS,EAC/BE,EAAC,QAAK,UAAU,UAAU,iBAAK,GACjC,GACF,GACF,CAEJ,EAEAM,EAAa,YAA6B,UAAQ,YAQlD,SAASM,EAAY,CAAE,UAAAH,EAAW,GAAGC,CAAM,EAAwC,CACjF,OACEV,EAAC,UACC,UAAWa,EAAG,yEAA0EJ,CAAS,EAChG,GAAGC,EACN,CAEJ,CAQA,SAASI,EAAU,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAAwC,CAC/E,OAAOV,EAAC,QAAK,UAAWa,EAAG,YAAaJ,CAAS,EAAI,GAAGC,EAAO,CACjE,CAQA,SAASK,EAAY,CAAE,UAAAN,EAAW,GAAGC,CAAM,EAAwC,CACjF,OACEV,EAAC,UACC,UAAWa,EAAG,iFAAkFJ,CAAS,EACxG,GAAGC,EACN,CAEJ,CAEAK,EAAY,YAAc,cAS1B,IAAMC,EAAmB,aAA+C,CAAC,CAAE,UAAAP,EAAW,GAAGC,CAAM,EAAGC,IAChGX,EAAgB,QAAf,CACC,IAAKW,EACL,UAAWE,EAAG,wCAAyCJ,CAAS,EAC/D,GAAGC,EACN,CACD,EAEDM,EAAW,YAA6B,QAAM,YAS9C,IAAMC,EAAyB,aAC7B,CAAC,CAAE,UAAAR,EAAW,GAAGC,CAAM,EAAGC,IACxBX,EAAgB,cAAf,CACC,IAAKW,EACL,UAAWE,EAAG,gCAAiCJ,CAAS,EACvD,GAAGC,EACN,CAEJ,EAEAO,EAAiB,YAA6B,cAAY","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as SheetPrimitive from '@radix-ui/react-dialog';\nimport { Cross2Icon } from '@radix-ui/react-icons';\nimport { tv, type VariantProps } from 'tailwind-variants';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Sheet\n * -------------------------------------------------------------------------- */\n\ntype SheetProps = React.ComponentProps<typeof SheetPrimitive.Root>;\nconst Sheet = SheetPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetTrigger\n * -------------------------------------------------------------------------- */\n\ntype SheetTriggerProps = React.ComponentPropsWithoutRef<typeof SheetPrimitive.Trigger>;\nconst SheetTrigger = SheetPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetClose\n * -------------------------------------------------------------------------- */\n\ntype SheetCloseProps = React.ComponentPropsWithoutRef<typeof SheetPrimitive.Close>;\nconst SheetClose = SheetPrimitive.Close;\n\n/* -----------------------------------------------------------------------------\n * Variant: SheetContent\n * -------------------------------------------------------------------------- */\n\nconst sheetContentVariants = tv({\n base: 'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:animate-duration-300 data-[state=open]:animate-duration-500 animate-ease-in-out fixed z-50 flex flex-col overflow-auto shadow-lg',\n variants: {\n side: {\n top: 'data-[state=open]:slide-in-from-top data-[state=closed]:slide-out-to-top inset-x-0 top-0 max-h-screen border-b',\n bottom:\n 'data-[state=open]:slide-in-from-bottom data-[state=closed]:slide-out-to-bottom inset-x-0 bottom-0 max-h-screen border-t',\n left: 'data-[state=open]:slide-in-from-left data-[state=closed]:slide-out-to-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm',\n right:\n 'data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm',\n },\n },\n defaultVariants: {\n side: 'right',\n },\n});\n\ntype SheetContentVariantsProps = VariantProps<typeof sheetContentVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetContent\n * -------------------------------------------------------------------------- */\n\ntype SheetContentElement = React.ElementRef<typeof SheetPrimitive.Content>;\ntype SheetContentProps = React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content> & SheetContentVariantsProps;\n\nconst SheetContent = React.forwardRef<SheetContentElement, SheetContentProps>(\n ({ children, side = 'right', className, ...props }, forwardedRef) => (\n <SheetPrimitive.Portal>\n <SheetPrimitive.Overlay className=\"data-[state=closed]:animate-duration-300 data-[state=open]:animate-duration-500 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 bg-black/80\" />\n <SheetPrimitive.Content ref={forwardedRef} className={sheetContentVariants({ side, className })} {...props}>\n {children}\n <SheetPrimitive.Close className=\"data-[state=open]:bg-secondary absolute right-4 top-4 rounded-sm p-1 opacity-70 transition hover:opacity-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none\">\n <Cross2Icon className=\"size-4\" />\n <span className=\"sr-only\">Close</span>\n </SheetPrimitive.Close>\n </SheetPrimitive.Content>\n </SheetPrimitive.Portal>\n ),\n);\n\nSheetContent.displayName = SheetPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetHeader\n * -------------------------------------------------------------------------- */\n\ntype SheetHeaderProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction SheetHeader({ className, ...props }: SheetHeaderProps): React.JSX.Element {\n return (\n <header\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetBody\n * -------------------------------------------------------------------------- */\n\ntype SheetBodyProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction SheetBody({ className, ...props }: SheetHeaderProps): React.JSX.Element {\n return <main className={cn('px-6 py-2', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetFooter\n * -------------------------------------------------------------------------- */\n\ntype SheetFooterProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction SheetFooter({ className, ...props }: SheetFooterProps): React.JSX.Element {\n return (\n <footer\n className={cn('flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end', className)}\n {...props}\n />\n );\n}\n\nSheetFooter.displayName = 'SheetFooter';\n\n/* -----------------------------------------------------------------------------\n * Component: SheetTitle\n * -------------------------------------------------------------------------- */\n\ntype SheetTitleElement = React.ElementRef<typeof SheetPrimitive.Title>;\ntype SheetTitleProps = React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>;\n\nconst SheetTitle = React.forwardRef<SheetTitleElement, SheetTitleProps>(({ className, ...props }, forwardedRef) => (\n <SheetPrimitive.Title\n ref={forwardedRef}\n className={cn('text-foreground text-lg font-semibold', className)}\n {...props}\n />\n));\n\nSheetTitle.displayName = SheetPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetDescription\n * -------------------------------------------------------------------------- */\n\ntype SheetDescriptionElement = React.ElementRef<typeof SheetPrimitive.Description>;\ntype SheetDescriptionProps = React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>;\n\nconst SheetDescription = React.forwardRef<SheetDescriptionElement, SheetDescriptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <SheetPrimitive.Description\n ref={forwardedRef}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n ),\n);\n\nSheetDescription.displayName = SheetPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Sheet,\n SheetTrigger,\n SheetClose,\n SheetContent,\n SheetHeader,\n SheetBody,\n SheetFooter,\n SheetTitle,\n SheetDescription,\n type SheetProps,\n type SheetTriggerProps,\n type SheetCloseProps,\n type SheetContentProps,\n type SheetHeaderProps,\n type SheetBodyProps,\n type SheetFooterProps,\n type SheetTitleProps,\n type SheetDescriptionProps,\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/sheet.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as SheetPrimitive from '@radix-ui/react-dialog';\nimport { Cross2Icon } from '@radix-ui/react-icons';\nimport { tv, type VariantProps } from 'tailwind-variants';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Sheet\n * -------------------------------------------------------------------------- */\n\ntype SheetProps = React.ComponentProps<typeof SheetPrimitive.Root>;\nconst Sheet = SheetPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetTrigger\n * -------------------------------------------------------------------------- */\n\ntype SheetTriggerProps = React.ComponentPropsWithoutRef<typeof SheetPrimitive.Trigger>;\nconst SheetTrigger = SheetPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetClose\n * -------------------------------------------------------------------------- */\n\ntype SheetCloseProps = React.ComponentPropsWithoutRef<typeof SheetPrimitive.Close>;\nconst SheetClose = SheetPrimitive.Close;\n\n/* -----------------------------------------------------------------------------\n * Variant: SheetContent\n * -------------------------------------------------------------------------- */\n\nconst sheetContentVariants = tv({\n base: 'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:animate-duration-300 data-[state=open]:animate-duration-500 animate-ease-in-out fixed z-50 flex flex-col overflow-auto shadow-lg',\n variants: {\n side: {\n top: 'data-[state=open]:slide-in-from-top data-[state=closed]:slide-out-to-top inset-x-0 top-0 max-h-screen border-b',\n bottom:\n 'data-[state=open]:slide-in-from-bottom data-[state=closed]:slide-out-to-bottom inset-x-0 bottom-0 max-h-screen border-t',\n left: 'data-[state=open]:slide-in-from-left data-[state=closed]:slide-out-to-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm',\n right:\n 'data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm',\n },\n },\n defaultVariants: {\n side: 'right',\n },\n});\n\ntype SheetContentVariantsProps = VariantProps<typeof sheetContentVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetContent\n * -------------------------------------------------------------------------- */\n\ntype SheetContentElement = React.ElementRef<typeof SheetPrimitive.Content>;\ntype SheetContentProps = React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content> & SheetContentVariantsProps;\n\nconst SheetContent = React.forwardRef<SheetContentElement, SheetContentProps>(\n ({ children, side = 'right', className, ...props }, ref) => (\n <SheetPrimitive.Portal>\n <SheetPrimitive.Overlay className=\"data-[state=closed]:animate-duration-300 data-[state=open]:animate-duration-500 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 bg-black/80\" />\n <SheetPrimitive.Content ref={ref} className={sheetContentVariants({ side, className })} {...props}>\n {children}\n <SheetPrimitive.Close className=\"data-[state=open]:bg-secondary absolute right-4 top-4 rounded-sm p-1 opacity-70 transition hover:opacity-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none\">\n <Cross2Icon className=\"size-4\" />\n <span className=\"sr-only\">Close</span>\n </SheetPrimitive.Close>\n </SheetPrimitive.Content>\n </SheetPrimitive.Portal>\n ),\n);\n\nSheetContent.displayName = SheetPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetHeader\n * -------------------------------------------------------------------------- */\n\ntype SheetHeaderProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction SheetHeader({ className, ...props }: SheetHeaderProps): React.JSX.Element {\n return (\n <header\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetBody\n * -------------------------------------------------------------------------- */\n\ntype SheetBodyProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction SheetBody({ className, ...props }: SheetHeaderProps): React.JSX.Element {\n return <main className={cn('px-6 py-2', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetFooter\n * -------------------------------------------------------------------------- */\n\ntype SheetFooterProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction SheetFooter({ className, ...props }: SheetFooterProps): React.JSX.Element {\n return (\n <footer\n className={cn('flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end', className)}\n {...props}\n />\n );\n}\n\nSheetFooter.displayName = 'SheetFooter';\n\n/* -----------------------------------------------------------------------------\n * Component: SheetTitle\n * -------------------------------------------------------------------------- */\n\ntype SheetTitleElement = React.ElementRef<typeof SheetPrimitive.Title>;\ntype SheetTitleProps = React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>;\n\nconst SheetTitle = React.forwardRef<SheetTitleElement, SheetTitleProps>(({ className, ...props }, ref) => (\n <SheetPrimitive.Title ref={ref} className={cn('text-foreground text-lg font-semibold', className)} {...props} />\n));\n\nSheetTitle.displayName = SheetPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetDescription\n * -------------------------------------------------------------------------- */\n\ntype SheetDescriptionElement = React.ElementRef<typeof SheetPrimitive.Description>;\ntype SheetDescriptionProps = React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>;\n\nconst SheetDescription = React.forwardRef<SheetDescriptionElement, SheetDescriptionProps>(\n ({ className, ...props }, ref) => (\n <SheetPrimitive.Description ref={ref} className={cn('text-muted-foreground text-sm', className)} {...props} />\n ),\n);\n\nSheetDescription.displayName = SheetPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Sheet,\n SheetTrigger,\n SheetClose,\n SheetContent,\n SheetHeader,\n SheetBody,\n SheetFooter,\n SheetTitle,\n SheetDescription,\n type SheetProps,\n type SheetTriggerProps,\n type SheetCloseProps,\n type SheetContentProps,\n type SheetHeaderProps,\n type SheetBodyProps,\n type SheetFooterProps,\n type SheetTitleProps,\n type SheetDescriptionProps,\n};\n"],"mappings":"iDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAoB,yBAChC,OAAS,cAAAC,MAAkB,wBAC3B,OAAS,MAAAC,MAA6B,oBAyDhC,cAAAC,EAGE,QAAAC,MAHF,oBAjDN,IAAMC,EAAuB,OAOvBC,EAA8B,UAO9BC,EAA4B,QAM5BC,EAAuBC,EAAG,CAC9B,KAAM,kOACN,SAAU,CACR,KAAM,CACJ,IAAK,iHACL,OACE,0HACF,KAAM,gIACN,MACE,kIACJ,CACF,EACA,gBAAiB,CACf,KAAM,OACR,CACF,CAAC,EAWKC,EAAqB,aACzB,CAAC,CAAE,SAAAC,EAAU,KAAAC,EAAO,QAAS,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAClDX,EAAgB,SAAf,CACC,UAAAD,EAAgB,UAAf,CAAuB,UAAU,wLAAwL,EAC1NC,EAAgB,UAAf,CAAuB,IAAKW,EAAK,UAAWP,EAAqB,CAAE,KAAAI,EAAM,UAAAC,CAAU,CAAC,EAAI,GAAGC,EACzF,UAAAH,EACDP,EAAgB,QAAf,CAAqB,UAAU,yNAC9B,UAAAD,EAACa,EAAA,CAAW,UAAU,SAAS,EAC/Bb,EAAC,QAAK,UAAU,UAAU,iBAAK,GACjC,GACF,GACF,CAEJ,EAEAO,EAAa,YAA6B,UAAQ,YAQlD,SAASO,EAAY,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAwC,CACjF,OACEX,EAAC,UACC,UAAWe,EAAG,yEAA0EL,CAAS,EAChG,GAAGC,EACN,CAEJ,CAQA,SAASK,EAAU,CAAE,UAAAN,EAAW,GAAGC,CAAM,EAAwC,CAC/E,OAAOX,EAAC,QAAK,UAAWe,EAAG,YAAaL,CAAS,EAAI,GAAGC,EAAO,CACjE,CAQA,SAASM,EAAY,CAAE,UAAAP,EAAW,GAAGC,CAAM,EAAwC,CACjF,OACEX,EAAC,UACC,UAAWe,EAAG,iFAAkFL,CAAS,EACxG,GAAGC,EACN,CAEJ,CAEAM,EAAY,YAAc,cAS1B,IAAMC,EAAmB,aAA+C,CAAC,CAAE,UAAAR,EAAW,GAAGC,CAAM,EAAGC,IAChGZ,EAAgB,QAAf,CAAqB,IAAKY,EAAK,UAAWG,EAAG,wCAAyCL,CAAS,EAAI,GAAGC,EAAO,CAC/G,EAEDO,EAAW,YAA6B,QAAM,YAS9C,IAAMC,EAAyB,aAC7B,CAAC,CAAE,UAAAT,EAAW,GAAGC,CAAM,EAAGC,IACxBZ,EAAgB,cAAf,CAA2B,IAAKY,EAAK,UAAWG,EAAG,gCAAiCL,CAAS,EAAI,GAAGC,EAAO,CAEhH,EAEAQ,EAAiB,YAA6B,cAAY","names":["React","SheetPrimitive","Cross2Icon","tv","jsx","jsxs","Sheet","SheetTrigger","SheetClose","sheetContentVariants","tv","SheetContent","children","side","className","props","ref","Cross2Icon","SheetHeader","cn","SheetBody","SheetFooter","SheetTitle","SheetDescription"]}
1
+ {"version":3,"sources":["../../src/react/sheet.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as SheetPrimitive from '@radix-ui/react-dialog';\nimport { Cross2Icon } from '@radix-ui/react-icons';\nimport { tv, type VariantProps } from 'tailwind-variants';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Sheet\n * -------------------------------------------------------------------------- */\n\ntype SheetProps = React.ComponentProps<typeof SheetPrimitive.Root>;\nconst Sheet = SheetPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetTrigger\n * -------------------------------------------------------------------------- */\n\ntype SheetTriggerProps = React.ComponentPropsWithoutRef<typeof SheetPrimitive.Trigger>;\nconst SheetTrigger = SheetPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetClose\n * -------------------------------------------------------------------------- */\n\ntype SheetCloseProps = React.ComponentPropsWithoutRef<typeof SheetPrimitive.Close>;\nconst SheetClose = SheetPrimitive.Close;\n\n/* -----------------------------------------------------------------------------\n * Variant: SheetContent\n * -------------------------------------------------------------------------- */\n\nconst sheetContentVariants = tv({\n base: 'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:animate-duration-300 data-[state=open]:animate-duration-500 animate-ease-in-out fixed z-50 flex flex-col overflow-auto shadow-lg',\n variants: {\n side: {\n top: 'data-[state=open]:slide-in-from-top data-[state=closed]:slide-out-to-top inset-x-0 top-0 max-h-screen border-b',\n bottom:\n 'data-[state=open]:slide-in-from-bottom data-[state=closed]:slide-out-to-bottom inset-x-0 bottom-0 max-h-screen border-t',\n left: 'data-[state=open]:slide-in-from-left data-[state=closed]:slide-out-to-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm',\n right:\n 'data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm',\n },\n },\n defaultVariants: {\n side: 'right',\n },\n});\n\ntype SheetContentVariantsProps = VariantProps<typeof sheetContentVariants>;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetContent\n * -------------------------------------------------------------------------- */\n\ntype SheetContentElement = React.ElementRef<typeof SheetPrimitive.Content>;\ntype SheetContentProps = React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content> & SheetContentVariantsProps;\n\nconst SheetContent = React.forwardRef<SheetContentElement, SheetContentProps>(\n ({ children, side = 'right', className, ...props }, forwardedRef) => (\n <SheetPrimitive.Portal>\n <SheetPrimitive.Overlay className=\"data-[state=closed]:animate-duration-300 data-[state=open]:animate-duration-500 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out fixed inset-0 z-50 bg-black/80\" />\n <SheetPrimitive.Content ref={forwardedRef} className={sheetContentVariants({ side, className })} {...props}>\n {children}\n <SheetPrimitive.Close className=\"data-[state=open]:bg-secondary absolute right-4 top-4 rounded-sm p-1 opacity-70 transition hover:opacity-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none\">\n <Cross2Icon className=\"size-4\" />\n <span className=\"sr-only\">Close</span>\n </SheetPrimitive.Close>\n </SheetPrimitive.Content>\n </SheetPrimitive.Portal>\n ),\n);\n\nSheetContent.displayName = SheetPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetHeader\n * -------------------------------------------------------------------------- */\n\ntype SheetHeaderProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction SheetHeader({ className, ...props }: SheetHeaderProps): React.JSX.Element {\n return (\n <header\n className={cn('flex shrink-0 flex-col gap-1.5 px-6 pb-4 pt-6 text-center sm:text-left', className)}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetBody\n * -------------------------------------------------------------------------- */\n\ntype SheetBodyProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction SheetBody({ className, ...props }: SheetHeaderProps): React.JSX.Element {\n return <main className={cn('px-6 py-2', className)} {...props} />;\n}\n\n/* -----------------------------------------------------------------------------\n * Component: SheetFooter\n * -------------------------------------------------------------------------- */\n\ntype SheetFooterProps = React.HTMLAttributes<HTMLDivElement>;\n\nfunction SheetFooter({ className, ...props }: SheetFooterProps): React.JSX.Element {\n return (\n <footer\n className={cn('flex shrink-0 flex-col-reverse gap-2 px-6 pb-6 pt-4 sm:flex-row sm:justify-end', className)}\n {...props}\n />\n );\n}\n\nSheetFooter.displayName = 'SheetFooter';\n\n/* -----------------------------------------------------------------------------\n * Component: SheetTitle\n * -------------------------------------------------------------------------- */\n\ntype SheetTitleElement = React.ElementRef<typeof SheetPrimitive.Title>;\ntype SheetTitleProps = React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>;\n\nconst SheetTitle = React.forwardRef<SheetTitleElement, SheetTitleProps>(({ className, ...props }, forwardedRef) => (\n <SheetPrimitive.Title\n ref={forwardedRef}\n className={cn('text-foreground text-lg font-semibold', className)}\n {...props}\n />\n));\n\nSheetTitle.displayName = SheetPrimitive.Title.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: SheetDescription\n * -------------------------------------------------------------------------- */\n\ntype SheetDescriptionElement = React.ElementRef<typeof SheetPrimitive.Description>;\ntype SheetDescriptionProps = React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>;\n\nconst SheetDescription = React.forwardRef<SheetDescriptionElement, SheetDescriptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <SheetPrimitive.Description\n ref={forwardedRef}\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n ),\n);\n\nSheetDescription.displayName = SheetPrimitive.Description.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Sheet,\n SheetTrigger,\n SheetClose,\n SheetContent,\n SheetHeader,\n SheetBody,\n SheetFooter,\n SheetTitle,\n SheetDescription,\n type SheetProps,\n type SheetTriggerProps,\n type SheetCloseProps,\n type SheetContentProps,\n type SheetHeaderProps,\n type SheetBodyProps,\n type SheetFooterProps,\n type SheetTitleProps,\n type SheetDescriptionProps,\n};\n"],"mappings":"iDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAoB,yBAChC,OAAS,cAAAC,MAAkB,wBAC3B,OAAS,MAAAC,MAA6B,oBAyDhC,cAAAC,EAGE,QAAAC,MAHF,oBAjDN,IAAMC,EAAuB,OAOvBC,EAA8B,UAO9BC,EAA4B,QAM5BC,EAAuBC,EAAG,CAC9B,KAAM,kOACN,SAAU,CACR,KAAM,CACJ,IAAK,iHACL,OACE,0HACF,KAAM,gIACN,MACE,kIACJ,CACF,EACA,gBAAiB,CACf,KAAM,OACR,CACF,CAAC,EAWKC,EAAqB,aACzB,CAAC,CAAE,SAAAC,EAAU,KAAAC,EAAO,QAAS,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAClDX,EAAgB,SAAf,CACC,UAAAD,EAAgB,UAAf,CAAuB,UAAU,wLAAwL,EAC1NC,EAAgB,UAAf,CAAuB,IAAKW,EAAc,UAAWP,EAAqB,CAAE,KAAAI,EAAM,UAAAC,CAAU,CAAC,EAAI,GAAGC,EAClG,UAAAH,EACDP,EAAgB,QAAf,CAAqB,UAAU,yNAC9B,UAAAD,EAACa,EAAA,CAAW,UAAU,SAAS,EAC/Bb,EAAC,QAAK,UAAU,UAAU,iBAAK,GACjC,GACF,GACF,CAEJ,EAEAO,EAAa,YAA6B,UAAQ,YAQlD,SAASO,EAAY,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAwC,CACjF,OACEX,EAAC,UACC,UAAWe,EAAG,yEAA0EL,CAAS,EAChG,GAAGC,EACN,CAEJ,CAQA,SAASK,EAAU,CAAE,UAAAN,EAAW,GAAGC,CAAM,EAAwC,CAC/E,OAAOX,EAAC,QAAK,UAAWe,EAAG,YAAaL,CAAS,EAAI,GAAGC,EAAO,CACjE,CAQA,SAASM,EAAY,CAAE,UAAAP,EAAW,GAAGC,CAAM,EAAwC,CACjF,OACEX,EAAC,UACC,UAAWe,EAAG,iFAAkFL,CAAS,EACxG,GAAGC,EACN,CAEJ,CAEAM,EAAY,YAAc,cAS1B,IAAMC,EAAmB,aAA+C,CAAC,CAAE,UAAAR,EAAW,GAAGC,CAAM,EAAGC,IAChGZ,EAAgB,QAAf,CACC,IAAKY,EACL,UAAWG,EAAG,wCAAyCL,CAAS,EAC/D,GAAGC,EACN,CACD,EAEDO,EAAW,YAA6B,QAAM,YAS9C,IAAMC,EAAyB,aAC7B,CAAC,CAAE,UAAAT,EAAW,GAAGC,CAAM,EAAGC,IACxBZ,EAAgB,cAAf,CACC,IAAKY,EACL,UAAWG,EAAG,gCAAiCL,CAAS,EACvD,GAAGC,EACN,CAEJ,EAEAQ,EAAiB,YAA6B,cAAY","names":["React","SheetPrimitive","Cross2Icon","tv","jsx","jsxs","Sheet","SheetTrigger","SheetClose","sheetContentVariants","tv","SheetContent","children","side","className","props","forwardedRef","Cross2Icon","SheetHeader","cn","SheetBody","SheetFooter","SheetTitle","SheetDescription"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/slider.tsx"],"names":["React","SliderPrimitive","jsx","jsxs","Slider","className","props","ref","cn","value","index"],"mappings":"uDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAqB,yBAW/B,OAMI,OAAAC,EANJ,QAAAC,MAAA,oBADF,IAAMC,EAAe,aAAuC,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACpFJ,EAAiB,OAAhB,CACC,IAAKI,EACL,UAAWC,EAAG,2DAA4DH,CAAS,EAClF,GAAGC,EAEJ,UAAAJ,EAAiB,QAAhB,CAAsB,UAAU,wEAC/B,SAAAA,EAAiB,QAAhB,CAAsB,UAAU,6BAA6B,EAChE,GAEEI,EAAM,OAASA,EAAM,cAAgB,CAAC,GAAG,IAAI,CAACG,EAAOC,IACrDR,EAAiB,QAAhB,CAGC,UAAU,mNACT,GAAII,EAAM,WAAa,OAAY,CAAE,SAAUA,EAAM,QAAS,EAAI,QAF9DI,CAGP,CACD,GACH,CACD,EAEDN,EAAO,YAA8B,OAAK","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as SliderPrimitive from '@radix-ui/react-slider';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Slider\n * -------------------------------------------------------------------------- */\n\ntype SliderElement = React.ElementRef<typeof SliderPrimitive.Root>;\ntype SliderProps = React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>;\n\nconst Slider = React.forwardRef<SliderElement, SliderProps>(({ className, ...props }, ref) => (\n <SliderPrimitive.Root\n ref={ref}\n className={cn('relative flex w-full touch-none select-none items-center', className)}\n {...props}\n >\n <SliderPrimitive.Track className=\"bg-primary/20 relative h-1.5 w-full grow overflow-hidden rounded-full\">\n <SliderPrimitive.Range className=\"bg-primary absolute h-full\" />\n </SliderPrimitive.Track>\n\n {(props.value ?? props.defaultValue ?? []).map((value, index) => (\n <SliderPrimitive.Thumb\n // eslint-disable-next-line react/no-array-index-key -- index is stable\n key={index}\n className=\"border-primary/50 bg-background block size-4 rounded-full border shadow transition focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50\"\n {...(props.tabIndex !== undefined ? { tabIndex: props.tabIndex } : undefined)}\n />\n ))}\n </SliderPrimitive.Root>\n));\n\nSlider.displayName = SliderPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Slider, type SliderProps };\n"]}
1
+ {"version":3,"sources":["../../src/react/slider.tsx"],"names":["React","SliderPrimitive","jsx","jsxs","Slider","className","props","forwardedRef","cn","value","index"],"mappings":"uDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAqB,yBAW/B,OAMI,OAAAC,EANJ,QAAAC,MAAA,oBADF,IAAMC,EAAe,aAAuC,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACpFJ,EAAiB,OAAhB,CACC,IAAKI,EACL,UAAWC,EAAG,2DAA4DH,CAAS,EAClF,GAAGC,EAEJ,UAAAJ,EAAiB,QAAhB,CAAsB,UAAU,wEAC/B,SAAAA,EAAiB,QAAhB,CAAsB,UAAU,6BAA6B,EAChE,GAEEI,EAAM,OAASA,EAAM,cAAgB,CAAC,GAAG,IAAI,CAACG,EAAOC,IACrDR,EAAiB,QAAhB,CAGC,UAAU,mNACT,GAAII,EAAM,WAAa,OAAY,CAAE,SAAUA,EAAM,QAAS,EAAI,QAF9DI,CAGP,CACD,GACH,CACD,EAEDN,EAAO,YAA8B,OAAK","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as SliderPrimitive from '@radix-ui/react-slider';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Slider\n * -------------------------------------------------------------------------- */\n\ntype SliderElement = React.ElementRef<typeof SliderPrimitive.Root>;\ntype SliderProps = React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>;\n\nconst Slider = React.forwardRef<SliderElement, SliderProps>(({ className, ...props }, forwardedRef) => (\n <SliderPrimitive.Root\n ref={forwardedRef}\n className={cn('relative flex w-full touch-none select-none items-center', className)}\n {...props}\n >\n <SliderPrimitive.Track className=\"bg-primary/20 relative h-1.5 w-full grow overflow-hidden rounded-full\">\n <SliderPrimitive.Range className=\"bg-primary absolute h-full\" />\n </SliderPrimitive.Track>\n\n {(props.value ?? props.defaultValue ?? []).map((value, index) => (\n <SliderPrimitive.Thumb\n // eslint-disable-next-line react/no-array-index-key -- index is stable\n key={index}\n className=\"border-primary/50 bg-background block size-4 rounded-full border shadow transition focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50\"\n {...(props.tabIndex !== undefined ? { tabIndex: props.tabIndex } : undefined)}\n />\n ))}\n </SliderPrimitive.Root>\n));\n\nSlider.displayName = SliderPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Slider, type SliderProps };\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/slider.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as SliderPrimitive from '@radix-ui/react-slider';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Slider\n * -------------------------------------------------------------------------- */\n\ntype SliderElement = React.ElementRef<typeof SliderPrimitive.Root>;\ntype SliderProps = React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>;\n\nconst Slider = React.forwardRef<SliderElement, SliderProps>(({ className, ...props }, ref) => (\n <SliderPrimitive.Root\n ref={ref}\n className={cn('relative flex w-full touch-none select-none items-center', className)}\n {...props}\n >\n <SliderPrimitive.Track className=\"bg-primary/20 relative h-1.5 w-full grow overflow-hidden rounded-full\">\n <SliderPrimitive.Range className=\"bg-primary absolute h-full\" />\n </SliderPrimitive.Track>\n\n {(props.value ?? props.defaultValue ?? []).map((value, index) => (\n <SliderPrimitive.Thumb\n // eslint-disable-next-line react/no-array-index-key -- index is stable\n key={index}\n className=\"border-primary/50 bg-background block size-4 rounded-full border shadow transition focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50\"\n {...(props.tabIndex !== undefined ? { tabIndex: props.tabIndex } : undefined)}\n />\n ))}\n </SliderPrimitive.Root>\n));\n\nSlider.displayName = SliderPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Slider, type SliderProps };\n"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAqB,yBAW/B,OAMI,OAAAC,EANJ,QAAAC,MAAA,oBADF,IAAMC,EAAe,aAAuC,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACpFJ,EAAiB,OAAhB,CACC,IAAKI,EACL,UAAWC,EAAG,2DAA4DH,CAAS,EAClF,GAAGC,EAEJ,UAAAJ,EAAiB,QAAhB,CAAsB,UAAU,wEAC/B,SAAAA,EAAiB,QAAhB,CAAsB,UAAU,6BAA6B,EAChE,GAEEI,EAAM,OAASA,EAAM,cAAgB,CAAC,GAAG,IAAI,CAACG,EAAOC,IACrDR,EAAiB,QAAhB,CAGC,UAAU,mNACT,GAAII,EAAM,WAAa,OAAY,CAAE,SAAUA,EAAM,QAAS,EAAI,QAF9DI,CAGP,CACD,GACH,CACD,EAEDN,EAAO,YAA8B,OAAK","names":["React","SliderPrimitive","jsx","jsxs","Slider","className","props","ref","cn","value","index"]}
1
+ {"version":3,"sources":["../../src/react/slider.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as SliderPrimitive from '@radix-ui/react-slider';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Slider\n * -------------------------------------------------------------------------- */\n\ntype SliderElement = React.ElementRef<typeof SliderPrimitive.Root>;\ntype SliderProps = React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>;\n\nconst Slider = React.forwardRef<SliderElement, SliderProps>(({ className, ...props }, forwardedRef) => (\n <SliderPrimitive.Root\n ref={forwardedRef}\n className={cn('relative flex w-full touch-none select-none items-center', className)}\n {...props}\n >\n <SliderPrimitive.Track className=\"bg-primary/20 relative h-1.5 w-full grow overflow-hidden rounded-full\">\n <SliderPrimitive.Range className=\"bg-primary absolute h-full\" />\n </SliderPrimitive.Track>\n\n {(props.value ?? props.defaultValue ?? []).map((value, index) => (\n <SliderPrimitive.Thumb\n // eslint-disable-next-line react/no-array-index-key -- index is stable\n key={index}\n className=\"border-primary/50 bg-background block size-4 rounded-full border shadow transition focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50\"\n {...(props.tabIndex !== undefined ? { tabIndex: props.tabIndex } : undefined)}\n />\n ))}\n </SliderPrimitive.Root>\n));\n\nSlider.displayName = SliderPrimitive.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Slider, type SliderProps };\n"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAqB,yBAW/B,OAMI,OAAAC,EANJ,QAAAC,MAAA,oBADF,IAAMC,EAAe,aAAuC,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACpFJ,EAAiB,OAAhB,CACC,IAAKI,EACL,UAAWC,EAAG,2DAA4DH,CAAS,EAClF,GAAGC,EAEJ,UAAAJ,EAAiB,QAAhB,CAAsB,UAAU,wEAC/B,SAAAA,EAAiB,QAAhB,CAAsB,UAAU,6BAA6B,EAChE,GAEEI,EAAM,OAASA,EAAM,cAAgB,CAAC,GAAG,IAAI,CAACG,EAAOC,IACrDR,EAAiB,QAAhB,CAGC,UAAU,mNACT,GAAII,EAAM,WAAa,OAAY,CAAE,SAAUA,EAAM,QAAS,EAAI,QAF9DI,CAGP,CACD,GACH,CACD,EAEDN,EAAO,YAA8B,OAAK","names":["React","SliderPrimitive","jsx","jsxs","Slider","className","props","forwardedRef","cn","value","index"]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkF5TIIJJJcjs = require('../chunk-F5TIIJJJ.cjs');require('../chunk-NU6SK3FC.cjs');exports.Spinner = _chunkF5TIIJJJcjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkLOJBMYTHcjs = require('../chunk-LOJBMYTH.cjs');require('../chunk-NU6SK3FC.cjs');exports.Spinner = _chunkLOJBMYTHcjs.a;
2
2
  //# sourceMappingURL=spinner.cjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-A5ILA637.js";import"../chunk-5UXVZTFG.js";export{a as Spinner};
1
+ import{a}from"../chunk-RBP4PBCK.js";import"../chunk-5UXVZTFG.js";export{a as Spinner};
2
2
  //# sourceMappingURL=spinner.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/strong.tsx"],"names":["React","Slot","jsx","Strong","asChild","props","ref"],"mappings":"AAAA,UAAYA,MAAW,QACvB,OAAS,QAAAC,MAAY,uBAeZ,cAAAC,MAAA,oBAHT,IAAMC,EAAe,aAAuC,CAAC,CAAE,QAAAC,EAAS,GAAGC,CAAM,EAAGC,IAG3EJ,EAFWE,EAAUH,EAAO,SAE3B,CAAU,IAAKK,EAAM,GAAGD,EAAO,CACxC,EAEDF,EAAO,YAAc","sourcesContent":["import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\n\n/* -----------------------------------------------------------------------------\n * Component: Strong\n * -------------------------------------------------------------------------- */\n\ntype StrongElement = HTMLElement;\n\ninterface StrongProps extends React.HTMLAttributes<HTMLElement> {\n asChild?: boolean;\n}\n\nconst Strong = React.forwardRef<StrongElement, StrongProps>(({ asChild, ...props }, ref) => {\n const Component = asChild ? Slot : 'strong';\n\n return <Component ref={ref} {...props} />;\n});\n\nStrong.displayName = 'Strong';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Strong, type StrongProps };\n"]}
1
+ {"version":3,"sources":["../../src/react/strong.tsx"],"names":["React","Slot","jsx","Strong","asChild","props","forwardedRef"],"mappings":"AAAA,UAAYA,MAAW,QACvB,OAAS,QAAAC,MAAY,uBAeZ,cAAAC,MAAA,oBAHT,IAAMC,EAAe,aAAuC,CAAC,CAAE,QAAAC,EAAS,GAAGC,CAAM,EAAGC,IAG3EJ,EAFWE,EAAUH,EAAO,SAE3B,CAAU,IAAKK,EAAe,GAAGD,EAAO,CACjD,EAEDF,EAAO,YAAc","sourcesContent":["import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\n\n/* -----------------------------------------------------------------------------\n * Component: Strong\n * -------------------------------------------------------------------------- */\n\ntype StrongElement = HTMLElement;\n\ninterface StrongProps extends React.HTMLAttributes<HTMLElement> {\n asChild?: boolean;\n}\n\nconst Strong = React.forwardRef<StrongElement, StrongProps>(({ asChild, ...props }, forwardedRef) => {\n const Component = asChild ? Slot : 'strong';\n\n return <Component ref={forwardedRef} {...props} />;\n});\n\nStrong.displayName = 'Strong';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Strong, type StrongProps };\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/strong.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\n\n/* -----------------------------------------------------------------------------\n * Component: Strong\n * -------------------------------------------------------------------------- */\n\ntype StrongElement = HTMLElement;\n\ninterface StrongProps extends React.HTMLAttributes<HTMLElement> {\n asChild?: boolean;\n}\n\nconst Strong = React.forwardRef<StrongElement, StrongProps>(({ asChild, ...props }, ref) => {\n const Component = asChild ? Slot : 'strong';\n\n return <Component ref={ref} {...props} />;\n});\n\nStrong.displayName = 'Strong';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Strong, type StrongProps };\n"],"mappings":"AAAA,UAAYA,MAAW,QACvB,OAAS,QAAAC,MAAY,uBAeZ,cAAAC,MAAA,oBAHT,IAAMC,EAAe,aAAuC,CAAC,CAAE,QAAAC,EAAS,GAAGC,CAAM,EAAGC,IAG3EJ,EAFWE,EAAUH,EAAO,SAE3B,CAAU,IAAKK,EAAM,GAAGD,EAAO,CACxC,EAEDF,EAAO,YAAc","names":["React","Slot","jsx","Strong","asChild","props","ref"]}
1
+ {"version":3,"sources":["../../src/react/strong.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\n\n/* -----------------------------------------------------------------------------\n * Component: Strong\n * -------------------------------------------------------------------------- */\n\ntype StrongElement = HTMLElement;\n\ninterface StrongProps extends React.HTMLAttributes<HTMLElement> {\n asChild?: boolean;\n}\n\nconst Strong = React.forwardRef<StrongElement, StrongProps>(({ asChild, ...props }, forwardedRef) => {\n const Component = asChild ? Slot : 'strong';\n\n return <Component ref={forwardedRef} {...props} />;\n});\n\nStrong.displayName = 'Strong';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Strong, type StrongProps };\n"],"mappings":"AAAA,UAAYA,MAAW,QACvB,OAAS,QAAAC,MAAY,uBAeZ,cAAAC,MAAA,oBAHT,IAAMC,EAAe,aAAuC,CAAC,CAAE,QAAAC,EAAS,GAAGC,CAAM,EAAGC,IAG3EJ,EAFWE,EAAUH,EAAO,SAE3B,CAAU,IAAKK,EAAe,GAAGD,EAAO,CACjD,EAEDF,EAAO,YAAc","names":["React","Slot","jsx","Strong","asChild","props","forwardedRef"]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";var _chunkNU6SK3FCcjs = require('../chunk-NU6SK3FC.cjs');var _react = require('react'); var o = _interopRequireWildcard(_react);var _reactswitch = require('@radix-ui/react-switch'); var t = _interopRequireWildcard(_reactswitch);var _jsxruntime = require('react/jsx-runtime');var c=o.forwardRef(({className:s,...a},r)=>_jsxruntime.jsx.call(void 0, t.Root,{className:_chunkNU6SK3FCcjs.a.call(void 0, "data-[state=checked]:bg-primary data-[state=unchecked]:bg-input peer inline-flex h-5 w-9 shrink-0 items-center rounded-full border-2 border-transparent shadow-sm transition focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-not-allowed disabled:opacity-50",s),...a,ref:r,children:_jsxruntime.jsx.call(void 0, t.Thumb,{className:"bg-background pointer-events-none block size-4 rounded-full shadow-lg transition data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"})}));c.displayName=t.Root.displayName;exports.Switch = c;
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 _chunkNU6SK3FCcjs = require('../chunk-NU6SK3FC.cjs');var _react = require('react'); var o = _interopRequireWildcard(_react);var _reactswitch = require('@radix-ui/react-switch'); var t = _interopRequireWildcard(_reactswitch);var _jsxruntime = require('react/jsx-runtime');var c=o.forwardRef(({className:s,...a},r)=>_jsxruntime.jsx.call(void 0, t.Root,{className:_chunkNU6SK3FCcjs.a.call(void 0, "data-[state=checked]:bg-primary data-[state=unchecked]:bg-input peer inline-flex h-5 w-9 shrink-0 items-center rounded-full border-2 border-transparent shadow-sm transition focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-default disabled:opacity-50",s),...a,ref:r,children:_jsxruntime.jsx.call(void 0, t.Thumb,{className:"bg-background pointer-events-none block size-4 rounded-full shadow-lg transition data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"})}));c.displayName=t.Root.displayName;exports.Switch = c;
2
2
  //# sourceMappingURL=switch.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/switch.tsx"],"names":["React","SwitchPrimitives","jsx","Switch","className","props","ref","cn"],"mappings":"uDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAsB,yBAmB9B,cAAAC,MAAA,oBATJ,IAAMC,EAAe,aAAuC,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACpFJ,EAAkB,OAAjB,CACC,UAAWK,EACT,4SACAH,CACF,EACC,GAAGC,EACJ,IAAKC,EAEL,SAAAJ,EAAkB,QAAjB,CAAuB,UAAU,2JAA2J,EAC/L,CACD,EAEDC,EAAO,YAA+B,OAAK","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as SwitchPrimitives from '@radix-ui/react-switch';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Switch\n * -------------------------------------------------------------------------- */\n\ntype SwitchElement = React.ElementRef<typeof SwitchPrimitives.Root>;\ntype SwitchProps = React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>;\n\nconst Switch = React.forwardRef<SwitchElement, SwitchProps>(({ className, ...props }, ref) => (\n <SwitchPrimitives.Root\n className={cn(\n 'data-[state=checked]:bg-primary data-[state=unchecked]:bg-input peer inline-flex h-5 w-9 shrink-0 items-center rounded-full border-2 border-transparent shadow-sm transition focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-not-allowed disabled:opacity-50',\n className,\n )}\n {...props}\n ref={ref}\n >\n <SwitchPrimitives.Thumb className=\"bg-background pointer-events-none block size-4 rounded-full shadow-lg transition data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0\" />\n </SwitchPrimitives.Root>\n));\n\nSwitch.displayName = SwitchPrimitives.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Switch, type SwitchProps };\n"]}
1
+ {"version":3,"sources":["../../src/react/switch.tsx"],"names":["React","SwitchPrimitives","jsx","Switch","className","props","forwardedRef","cn"],"mappings":"uDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAsB,yBAmB9B,cAAAC,MAAA,oBATJ,IAAMC,EAAe,aAAuC,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACpFJ,EAAkB,OAAjB,CACC,UAAWK,EACT,wSACAH,CACF,EACC,GAAGC,EACJ,IAAKC,EAEL,SAAAJ,EAAkB,QAAjB,CAAuB,UAAU,2JAA2J,EAC/L,CACD,EAEDC,EAAO,YAA+B,OAAK","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as SwitchPrimitives from '@radix-ui/react-switch';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Switch\n * -------------------------------------------------------------------------- */\n\ntype SwitchElement = React.ElementRef<typeof SwitchPrimitives.Root>;\ntype SwitchProps = React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>;\n\nconst Switch = React.forwardRef<SwitchElement, SwitchProps>(({ className, ...props }, forwardedRef) => (\n <SwitchPrimitives.Root\n className={cn(\n 'data-[state=checked]:bg-primary data-[state=unchecked]:bg-input peer inline-flex h-5 w-9 shrink-0 items-center rounded-full border-2 border-transparent shadow-sm transition focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-default disabled:opacity-50',\n className,\n )}\n {...props}\n ref={forwardedRef}\n >\n <SwitchPrimitives.Thumb className=\"bg-background pointer-events-none block size-4 rounded-full shadow-lg transition data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0\" />\n </SwitchPrimitives.Root>\n));\n\nSwitch.displayName = SwitchPrimitives.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Switch, type SwitchProps };\n"]}
@@ -1,2 +1,2 @@
1
- "use client";import{a as e}from"../chunk-5UXVZTFG.js";import*as o from"react";import*as t from"@radix-ui/react-switch";import{jsx as i}from"react/jsx-runtime";var c=o.forwardRef(({className:s,...a},r)=>i(t.Root,{className:e("data-[state=checked]:bg-primary data-[state=unchecked]:bg-input peer inline-flex h-5 w-9 shrink-0 items-center rounded-full border-2 border-transparent shadow-sm transition focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-not-allowed disabled:opacity-50",s),...a,ref:r,children:i(t.Thumb,{className:"bg-background pointer-events-none block size-4 rounded-full shadow-lg transition data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"})}));c.displayName=t.Root.displayName;export{c as Switch};
1
+ "use client";import{a as e}from"../chunk-5UXVZTFG.js";import*as o from"react";import*as t from"@radix-ui/react-switch";import{jsx as i}from"react/jsx-runtime";var c=o.forwardRef(({className:s,...a},r)=>i(t.Root,{className:e("data-[state=checked]:bg-primary data-[state=unchecked]:bg-input peer inline-flex h-5 w-9 shrink-0 items-center rounded-full border-2 border-transparent shadow-sm transition focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-default disabled:opacity-50",s),...a,ref:r,children:i(t.Thumb,{className:"bg-background pointer-events-none block size-4 rounded-full shadow-lg transition data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"})}));c.displayName=t.Root.displayName;export{c as Switch};
2
2
  //# sourceMappingURL=switch.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/switch.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as SwitchPrimitives from '@radix-ui/react-switch';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Switch\n * -------------------------------------------------------------------------- */\n\ntype SwitchElement = React.ElementRef<typeof SwitchPrimitives.Root>;\ntype SwitchProps = React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>;\n\nconst Switch = React.forwardRef<SwitchElement, SwitchProps>(({ className, ...props }, ref) => (\n <SwitchPrimitives.Root\n className={cn(\n 'data-[state=checked]:bg-primary data-[state=unchecked]:bg-input peer inline-flex h-5 w-9 shrink-0 items-center rounded-full border-2 border-transparent shadow-sm transition focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-not-allowed disabled:opacity-50',\n className,\n )}\n {...props}\n ref={ref}\n >\n <SwitchPrimitives.Thumb className=\"bg-background pointer-events-none block size-4 rounded-full shadow-lg transition data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0\" />\n </SwitchPrimitives.Root>\n));\n\nSwitch.displayName = SwitchPrimitives.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Switch, type SwitchProps };\n"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAsB,yBAmB9B,cAAAC,MAAA,oBATJ,IAAMC,EAAe,aAAuC,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACpFJ,EAAkB,OAAjB,CACC,UAAWK,EACT,4SACAH,CACF,EACC,GAAGC,EACJ,IAAKC,EAEL,SAAAJ,EAAkB,QAAjB,CAAuB,UAAU,2JAA2J,EAC/L,CACD,EAEDC,EAAO,YAA+B,OAAK","names":["React","SwitchPrimitives","jsx","Switch","className","props","ref","cn"]}
1
+ {"version":3,"sources":["../../src/react/switch.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as SwitchPrimitives from '@radix-ui/react-switch';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Switch\n * -------------------------------------------------------------------------- */\n\ntype SwitchElement = React.ElementRef<typeof SwitchPrimitives.Root>;\ntype SwitchProps = React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>;\n\nconst Switch = React.forwardRef<SwitchElement, SwitchProps>(({ className, ...props }, forwardedRef) => (\n <SwitchPrimitives.Root\n className={cn(\n 'data-[state=checked]:bg-primary data-[state=unchecked]:bg-input peer inline-flex h-5 w-9 shrink-0 items-center rounded-full border-2 border-transparent shadow-sm transition focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-default disabled:opacity-50',\n className,\n )}\n {...props}\n ref={forwardedRef}\n >\n <SwitchPrimitives.Thumb className=\"bg-background pointer-events-none block size-4 rounded-full shadow-lg transition data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0\" />\n </SwitchPrimitives.Root>\n));\n\nSwitch.displayName = SwitchPrimitives.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Switch, type SwitchProps };\n"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAsB,yBAmB9B,cAAAC,MAAA,oBATJ,IAAMC,EAAe,aAAuC,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACpFJ,EAAkB,OAAjB,CACC,UAAWK,EACT,wSACAH,CACF,EACC,GAAGC,EACJ,IAAKC,EAEL,SAAAJ,EAAkB,QAAjB,CAAuB,UAAU,2JAA2J,EAC/L,CACD,EAEDC,EAAO,YAA+B,OAAK","names":["React","SwitchPrimitives","jsx","Switch","className","props","forwardedRef","cn"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/table.tsx"],"names":["React","jsx","Table","className","props","ref","cn","TableHeader","TableBody","TableFooter","TableRow","TableHead","TableCell","TableCaption"],"mappings":"0CAAA,UAAYA,MAAW,QAYnB,cAAAC,MAAA,oBAFJ,IAAMC,EAAc,aAAqC,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACjFJ,EAAC,OAAI,UAAU,gCACb,SAAAA,EAAC,SAAM,IAAKI,EAAK,UAAWC,EAAG,gCAAiCH,CAAS,EAAI,GAAGC,EAAO,EACzF,CACD,EAEDF,EAAM,YAAc,QASpB,IAAMK,EAAoB,aAAiD,CAAC,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAGC,IACnGJ,EAAC,SAAM,IAAKI,EAAK,UAAWC,EAAG,kBAAmBH,CAAS,EAAI,GAAGC,EAAO,CAC1E,EAEDG,EAAY,YAAc,cAS1B,IAAMC,EAAkB,aAA6C,CAAC,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAAGC,IAC7FJ,EAAC,SAAM,IAAKI,EAAK,UAAWC,EAAG,6BAA8BH,CAAS,EAAI,GAAGC,EAAO,CACrF,EAEDI,EAAU,YAAc,YASxB,IAAMC,EAAoB,aAAiD,CAAC,CAAE,UAAAN,EAAW,GAAGC,CAAM,EAAGC,IACnGJ,EAAC,SAAM,IAAKI,EAAK,UAAWC,EAAG,0DAA2DH,CAAS,EAAI,GAAGC,EAAO,CAClH,EAEDK,EAAY,YAAc,cAS1B,IAAMC,EAAiB,aAA2C,CAAC,CAAE,UAAAP,EAAW,GAAGC,CAAM,EAAGC,IAC1FJ,EAAC,MACC,IAAKI,EACL,UAAWC,EAAG,uEAAwEH,CAAS,EAC9F,GAAGC,EACN,CACD,EAEDM,EAAS,YAAc,WASvB,IAAMC,EAAkB,aAA6C,CAAC,CAAE,UAAAR,EAAW,GAAGC,CAAM,EAAGC,IAC7FJ,EAAC,MACC,IAAKI,EACL,UAAWC,EACT,mGACAH,CACF,EACC,GAAGC,EACN,CACD,EAEDO,EAAU,YAAc,YASxB,IAAMC,EAAkB,aAA6C,CAAC,CAAE,UAAAT,EAAW,GAAGC,CAAM,EAAGC,IAC7FJ,EAAC,MAAG,IAAKI,EAAK,UAAWC,EAAG,iDAAkDH,CAAS,EAAI,GAAGC,EAAO,CACtG,EAEDQ,EAAU,YAAc,YASxB,IAAMC,EAAqB,aAAmD,CAAC,CAAE,UAAAV,EAAW,GAAGC,CAAM,EAAGC,IACtGJ,EAAC,WAAQ,IAAKI,EAAK,UAAWC,EAAG,qCAAsCH,CAAS,EAAI,GAAGC,EAAO,CAC/F,EAEDS,EAAa,YAAc","sourcesContent":["import * as React from 'react';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Table\n * -------------------------------------------------------------------------- */\n\ntype TableElement = HTMLTableElement;\ntype TableProps = React.HTMLAttributes<HTMLTableElement>;\n\nconst Table = React.forwardRef<TableElement, TableProps>(({ className, ...props }, ref) => (\n <div className=\"relative w-full overflow-auto\">\n <table ref={ref} className={cn('w-full caption-bottom text-sm', className)} {...props} />\n </div>\n));\n\nTable.displayName = 'Table';\n\n/* -----------------------------------------------------------------------------\n * Component: TableHeader\n * -------------------------------------------------------------------------- */\n\ntype TableHeaderElement = HTMLTableSectionElement;\ntype TableHeaderProps = React.HTMLAttributes<HTMLTableSectionElement>;\n\nconst TableHeader = React.forwardRef<TableHeaderElement, TableHeaderProps>(({ className, ...props }, ref) => (\n <thead ref={ref} className={cn('[&_tr]:border-b', className)} {...props} />\n));\n\nTableHeader.displayName = 'TableHeader';\n\n/* -----------------------------------------------------------------------------\n * Component: TableBody\n * -------------------------------------------------------------------------- */\n\ntype TableBodyElement = HTMLTableSectionElement;\ntype TableBodyProps = React.HTMLAttributes<HTMLTableSectionElement>;\n\nconst TableBody = React.forwardRef<TableBodyElement, TableBodyProps>(({ className, ...props }, ref) => (\n <tbody ref={ref} className={cn('[&_tr:last-child]:border-0', className)} {...props} />\n));\n\nTableBody.displayName = 'TableBody';\n\n/* -----------------------------------------------------------------------------\n * Component: TableFooter\n * -------------------------------------------------------------------------- */\n\ntype TableFooterElement = HTMLTableSectionElement;\ntype TableFooterProps = React.HTMLAttributes<HTMLTableSectionElement>;\n\nconst TableFooter = React.forwardRef<TableFooterElement, TableFooterProps>(({ className, ...props }, ref) => (\n <tfoot ref={ref} className={cn('bg-muted/50 border-t font-medium [&>tr]:last:border-b-0', className)} {...props} />\n));\n\nTableFooter.displayName = 'TableFooter';\n\n/* -----------------------------------------------------------------------------\n * Component: TableRow\n * -------------------------------------------------------------------------- */\n\ntype TableRowElement = HTMLTableRowElement;\ntype TableRowProps = React.HTMLAttributes<HTMLTableRowElement>;\n\nconst TableRow = React.forwardRef<TableRowElement, TableRowProps>(({ className, ...props }, ref) => (\n <tr\n ref={ref}\n className={cn('hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition', className)}\n {...props}\n />\n));\n\nTableRow.displayName = 'TableRow';\n\n/* -----------------------------------------------------------------------------\n * Component: TableHead\n * -------------------------------------------------------------------------- */\n\ntype TableHeadElement = HTMLTableCellElement;\ntype TableHeadProps = React.ThHTMLAttributes<HTMLTableCellElement>;\n\nconst TableHead = React.forwardRef<TableHeadElement, TableHeadProps>(({ className, ...props }, ref) => (\n <th\n ref={ref}\n className={cn(\n 'text-muted-foreground h-12 px-4 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0',\n className,\n )}\n {...props}\n />\n));\n\nTableHead.displayName = 'TableHead';\n\n/* -----------------------------------------------------------------------------\n * Component: TableCell\n * -------------------------------------------------------------------------- */\n\ntype TableCellElement = HTMLTableCellElement;\ntype TableCellProps = React.TdHTMLAttributes<HTMLTableCellElement>;\n\nconst TableCell = React.forwardRef<TableCellElement, TableCellProps>(({ className, ...props }, ref) => (\n <td ref={ref} className={cn('p-4 align-middle [&:has([role=checkbox])]:pr-0', className)} {...props} />\n));\n\nTableCell.displayName = 'TableCell';\n\n/* -----------------------------------------------------------------------------\n * Component: TableCaption\n * -------------------------------------------------------------------------- */\n\ntype TableCaptionElement = HTMLTableCaptionElement;\ntype TableCaptionProps = React.HTMLAttributes<HTMLTableCaptionElement>;\n\nconst TableCaption = React.forwardRef<TableCaptionElement, TableCaptionProps>(({ className, ...props }, ref) => (\n <caption ref={ref} className={cn('text-muted-foreground mt-4 text-sm', className)} {...props} />\n));\n\nTableCaption.displayName = 'TableCaption';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableHead,\n TableRow,\n TableCell,\n TableCaption,\n type TableProps,\n type TableHeaderProps,\n type TableBodyProps,\n type TableFooterProps,\n type TableHeadProps,\n type TableRowProps,\n type TableCellProps,\n type TableCaptionProps,\n};\n"]}
1
+ {"version":3,"sources":["../../src/react/table.tsx"],"names":["React","jsx","Table","className","props","forwardedRef","cn","TableHeader","TableBody","TableFooter","TableRow","TableHead","TableCell","TableCaption"],"mappings":"0CAAA,UAAYA,MAAW,QAYnB,cAAAC,MAAA,oBAFJ,IAAMC,EAAc,aAAqC,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACjFJ,EAAC,OAAI,UAAU,gCACb,SAAAA,EAAC,SAAM,IAAKI,EAAc,UAAWC,EAAG,gCAAiCH,CAAS,EAAI,GAAGC,EAAO,EAClG,CACD,EAEDF,EAAM,YAAc,QASpB,IAAMK,EAAoB,aAAiD,CAAC,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAGC,IACnGJ,EAAC,SAAM,IAAKI,EAAc,UAAWC,EAAG,kBAAmBH,CAAS,EAAI,GAAGC,EAAO,CACnF,EAEDG,EAAY,YAAc,cAS1B,IAAMC,EAAkB,aAA6C,CAAC,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAAGC,IAC7FJ,EAAC,SAAM,IAAKI,EAAc,UAAWC,EAAG,6BAA8BH,CAAS,EAAI,GAAGC,EAAO,CAC9F,EAEDI,EAAU,YAAc,YASxB,IAAMC,EAAoB,aAAiD,CAAC,CAAE,UAAAN,EAAW,GAAGC,CAAM,EAAGC,IACnGJ,EAAC,SACC,IAAKI,EACL,UAAWC,EAAG,0DAA2DH,CAAS,EACjF,GAAGC,EACN,CACD,EAEDK,EAAY,YAAc,cAS1B,IAAMC,EAAiB,aAA2C,CAAC,CAAE,UAAAP,EAAW,GAAGC,CAAM,EAAGC,IAC1FJ,EAAC,MACC,IAAKI,EACL,UAAWC,EAAG,uEAAwEH,CAAS,EAC9F,GAAGC,EACN,CACD,EAEDM,EAAS,YAAc,WASvB,IAAMC,EAAkB,aAA6C,CAAC,CAAE,UAAAR,EAAW,GAAGC,CAAM,EAAGC,IAC7FJ,EAAC,MACC,IAAKI,EACL,UAAWC,EACT,mGACAH,CACF,EACC,GAAGC,EACN,CACD,EAEDO,EAAU,YAAc,YASxB,IAAMC,EAAkB,aAA6C,CAAC,CAAE,UAAAT,EAAW,GAAGC,CAAM,EAAGC,IAC7FJ,EAAC,MAAG,IAAKI,EAAc,UAAWC,EAAG,iDAAkDH,CAAS,EAAI,GAAGC,EAAO,CAC/G,EAEDQ,EAAU,YAAc,YASxB,IAAMC,EAAqB,aACzB,CAAC,CAAE,UAAAV,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAC,WAAQ,IAAKI,EAAc,UAAWC,EAAG,qCAAsCH,CAAS,EAAI,GAAGC,EAAO,CAE3G,EAEAS,EAAa,YAAc","sourcesContent":["import * as React from 'react';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Table\n * -------------------------------------------------------------------------- */\n\ntype TableElement = HTMLTableElement;\ntype TableProps = React.HTMLAttributes<HTMLTableElement>;\n\nconst Table = React.forwardRef<TableElement, TableProps>(({ className, ...props }, forwardedRef) => (\n <div className=\"relative w-full overflow-auto\">\n <table ref={forwardedRef} className={cn('w-full caption-bottom text-sm', className)} {...props} />\n </div>\n));\n\nTable.displayName = 'Table';\n\n/* -----------------------------------------------------------------------------\n * Component: TableHeader\n * -------------------------------------------------------------------------- */\n\ntype TableHeaderElement = HTMLTableSectionElement;\ntype TableHeaderProps = React.HTMLAttributes<HTMLTableSectionElement>;\n\nconst TableHeader = React.forwardRef<TableHeaderElement, TableHeaderProps>(({ className, ...props }, forwardedRef) => (\n <thead ref={forwardedRef} className={cn('[&_tr]:border-b', className)} {...props} />\n));\n\nTableHeader.displayName = 'TableHeader';\n\n/* -----------------------------------------------------------------------------\n * Component: TableBody\n * -------------------------------------------------------------------------- */\n\ntype TableBodyElement = HTMLTableSectionElement;\ntype TableBodyProps = React.HTMLAttributes<HTMLTableSectionElement>;\n\nconst TableBody = React.forwardRef<TableBodyElement, TableBodyProps>(({ className, ...props }, forwardedRef) => (\n <tbody ref={forwardedRef} className={cn('[&_tr:last-child]:border-0', className)} {...props} />\n));\n\nTableBody.displayName = 'TableBody';\n\n/* -----------------------------------------------------------------------------\n * Component: TableFooter\n * -------------------------------------------------------------------------- */\n\ntype TableFooterElement = HTMLTableSectionElement;\ntype TableFooterProps = React.HTMLAttributes<HTMLTableSectionElement>;\n\nconst TableFooter = React.forwardRef<TableFooterElement, TableFooterProps>(({ className, ...props }, forwardedRef) => (\n <tfoot\n ref={forwardedRef}\n className={cn('bg-muted/50 border-t font-medium [&>tr]:last:border-b-0', className)}\n {...props}\n />\n));\n\nTableFooter.displayName = 'TableFooter';\n\n/* -----------------------------------------------------------------------------\n * Component: TableRow\n * -------------------------------------------------------------------------- */\n\ntype TableRowElement = HTMLTableRowElement;\ntype TableRowProps = React.HTMLAttributes<HTMLTableRowElement>;\n\nconst TableRow = React.forwardRef<TableRowElement, TableRowProps>(({ className, ...props }, forwardedRef) => (\n <tr\n ref={forwardedRef}\n className={cn('hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition', className)}\n {...props}\n />\n));\n\nTableRow.displayName = 'TableRow';\n\n/* -----------------------------------------------------------------------------\n * Component: TableHead\n * -------------------------------------------------------------------------- */\n\ntype TableHeadElement = HTMLTableCellElement;\ntype TableHeadProps = React.ThHTMLAttributes<HTMLTableCellElement>;\n\nconst TableHead = React.forwardRef<TableHeadElement, TableHeadProps>(({ className, ...props }, forwardedRef) => (\n <th\n ref={forwardedRef}\n className={cn(\n 'text-muted-foreground h-12 px-4 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0',\n className,\n )}\n {...props}\n />\n));\n\nTableHead.displayName = 'TableHead';\n\n/* -----------------------------------------------------------------------------\n * Component: TableCell\n * -------------------------------------------------------------------------- */\n\ntype TableCellElement = HTMLTableCellElement;\ntype TableCellProps = React.TdHTMLAttributes<HTMLTableCellElement>;\n\nconst TableCell = React.forwardRef<TableCellElement, TableCellProps>(({ className, ...props }, forwardedRef) => (\n <td ref={forwardedRef} className={cn('p-4 align-middle [&:has([role=checkbox])]:pr-0', className)} {...props} />\n));\n\nTableCell.displayName = 'TableCell';\n\n/* -----------------------------------------------------------------------------\n * Component: TableCaption\n * -------------------------------------------------------------------------- */\n\ntype TableCaptionElement = HTMLTableCaptionElement;\ntype TableCaptionProps = React.HTMLAttributes<HTMLTableCaptionElement>;\n\nconst TableCaption = React.forwardRef<TableCaptionElement, TableCaptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <caption ref={forwardedRef} className={cn('text-muted-foreground mt-4 text-sm', className)} {...props} />\n ),\n);\n\nTableCaption.displayName = 'TableCaption';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableHead,\n TableRow,\n TableCell,\n TableCaption,\n type TableProps,\n type TableHeaderProps,\n type TableBodyProps,\n type TableFooterProps,\n type TableHeadProps,\n type TableRowProps,\n type TableCellProps,\n type TableCaptionProps,\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/table.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Table\n * -------------------------------------------------------------------------- */\n\ntype TableElement = HTMLTableElement;\ntype TableProps = React.HTMLAttributes<HTMLTableElement>;\n\nconst Table = React.forwardRef<TableElement, TableProps>(({ className, ...props }, ref) => (\n <div className=\"relative w-full overflow-auto\">\n <table ref={ref} className={cn('w-full caption-bottom text-sm', className)} {...props} />\n </div>\n));\n\nTable.displayName = 'Table';\n\n/* -----------------------------------------------------------------------------\n * Component: TableHeader\n * -------------------------------------------------------------------------- */\n\ntype TableHeaderElement = HTMLTableSectionElement;\ntype TableHeaderProps = React.HTMLAttributes<HTMLTableSectionElement>;\n\nconst TableHeader = React.forwardRef<TableHeaderElement, TableHeaderProps>(({ className, ...props }, ref) => (\n <thead ref={ref} className={cn('[&_tr]:border-b', className)} {...props} />\n));\n\nTableHeader.displayName = 'TableHeader';\n\n/* -----------------------------------------------------------------------------\n * Component: TableBody\n * -------------------------------------------------------------------------- */\n\ntype TableBodyElement = HTMLTableSectionElement;\ntype TableBodyProps = React.HTMLAttributes<HTMLTableSectionElement>;\n\nconst TableBody = React.forwardRef<TableBodyElement, TableBodyProps>(({ className, ...props }, ref) => (\n <tbody ref={ref} className={cn('[&_tr:last-child]:border-0', className)} {...props} />\n));\n\nTableBody.displayName = 'TableBody';\n\n/* -----------------------------------------------------------------------------\n * Component: TableFooter\n * -------------------------------------------------------------------------- */\n\ntype TableFooterElement = HTMLTableSectionElement;\ntype TableFooterProps = React.HTMLAttributes<HTMLTableSectionElement>;\n\nconst TableFooter = React.forwardRef<TableFooterElement, TableFooterProps>(({ className, ...props }, ref) => (\n <tfoot ref={ref} className={cn('bg-muted/50 border-t font-medium [&>tr]:last:border-b-0', className)} {...props} />\n));\n\nTableFooter.displayName = 'TableFooter';\n\n/* -----------------------------------------------------------------------------\n * Component: TableRow\n * -------------------------------------------------------------------------- */\n\ntype TableRowElement = HTMLTableRowElement;\ntype TableRowProps = React.HTMLAttributes<HTMLTableRowElement>;\n\nconst TableRow = React.forwardRef<TableRowElement, TableRowProps>(({ className, ...props }, ref) => (\n <tr\n ref={ref}\n className={cn('hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition', className)}\n {...props}\n />\n));\n\nTableRow.displayName = 'TableRow';\n\n/* -----------------------------------------------------------------------------\n * Component: TableHead\n * -------------------------------------------------------------------------- */\n\ntype TableHeadElement = HTMLTableCellElement;\ntype TableHeadProps = React.ThHTMLAttributes<HTMLTableCellElement>;\n\nconst TableHead = React.forwardRef<TableHeadElement, TableHeadProps>(({ className, ...props }, ref) => (\n <th\n ref={ref}\n className={cn(\n 'text-muted-foreground h-12 px-4 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0',\n className,\n )}\n {...props}\n />\n));\n\nTableHead.displayName = 'TableHead';\n\n/* -----------------------------------------------------------------------------\n * Component: TableCell\n * -------------------------------------------------------------------------- */\n\ntype TableCellElement = HTMLTableCellElement;\ntype TableCellProps = React.TdHTMLAttributes<HTMLTableCellElement>;\n\nconst TableCell = React.forwardRef<TableCellElement, TableCellProps>(({ className, ...props }, ref) => (\n <td ref={ref} className={cn('p-4 align-middle [&:has([role=checkbox])]:pr-0', className)} {...props} />\n));\n\nTableCell.displayName = 'TableCell';\n\n/* -----------------------------------------------------------------------------\n * Component: TableCaption\n * -------------------------------------------------------------------------- */\n\ntype TableCaptionElement = HTMLTableCaptionElement;\ntype TableCaptionProps = React.HTMLAttributes<HTMLTableCaptionElement>;\n\nconst TableCaption = React.forwardRef<TableCaptionElement, TableCaptionProps>(({ className, ...props }, ref) => (\n <caption ref={ref} className={cn('text-muted-foreground mt-4 text-sm', className)} {...props} />\n));\n\nTableCaption.displayName = 'TableCaption';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableHead,\n TableRow,\n TableCell,\n TableCaption,\n type TableProps,\n type TableHeaderProps,\n type TableBodyProps,\n type TableFooterProps,\n type TableHeadProps,\n type TableRowProps,\n type TableCellProps,\n type TableCaptionProps,\n};\n"],"mappings":"yCAAA,UAAYA,MAAW,QAYnB,cAAAC,MAAA,oBAFJ,IAAMC,EAAc,aAAqC,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACjFJ,EAAC,OAAI,UAAU,gCACb,SAAAA,EAAC,SAAM,IAAKI,EAAK,UAAWC,EAAG,gCAAiCH,CAAS,EAAI,GAAGC,EAAO,EACzF,CACD,EAEDF,EAAM,YAAc,QASpB,IAAMK,EAAoB,aAAiD,CAAC,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAGC,IACnGJ,EAAC,SAAM,IAAKI,EAAK,UAAWC,EAAG,kBAAmBH,CAAS,EAAI,GAAGC,EAAO,CAC1E,EAEDG,EAAY,YAAc,cAS1B,IAAMC,EAAkB,aAA6C,CAAC,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAAGC,IAC7FJ,EAAC,SAAM,IAAKI,EAAK,UAAWC,EAAG,6BAA8BH,CAAS,EAAI,GAAGC,EAAO,CACrF,EAEDI,EAAU,YAAc,YASxB,IAAMC,EAAoB,aAAiD,CAAC,CAAE,UAAAN,EAAW,GAAGC,CAAM,EAAGC,IACnGJ,EAAC,SAAM,IAAKI,EAAK,UAAWC,EAAG,0DAA2DH,CAAS,EAAI,GAAGC,EAAO,CAClH,EAEDK,EAAY,YAAc,cAS1B,IAAMC,EAAiB,aAA2C,CAAC,CAAE,UAAAP,EAAW,GAAGC,CAAM,EAAGC,IAC1FJ,EAAC,MACC,IAAKI,EACL,UAAWC,EAAG,uEAAwEH,CAAS,EAC9F,GAAGC,EACN,CACD,EAEDM,EAAS,YAAc,WASvB,IAAMC,EAAkB,aAA6C,CAAC,CAAE,UAAAR,EAAW,GAAGC,CAAM,EAAGC,IAC7FJ,EAAC,MACC,IAAKI,EACL,UAAWC,EACT,mGACAH,CACF,EACC,GAAGC,EACN,CACD,EAEDO,EAAU,YAAc,YASxB,IAAMC,EAAkB,aAA6C,CAAC,CAAE,UAAAT,EAAW,GAAGC,CAAM,EAAGC,IAC7FJ,EAAC,MAAG,IAAKI,EAAK,UAAWC,EAAG,iDAAkDH,CAAS,EAAI,GAAGC,EAAO,CACtG,EAEDQ,EAAU,YAAc,YASxB,IAAMC,EAAqB,aAAmD,CAAC,CAAE,UAAAV,EAAW,GAAGC,CAAM,EAAGC,IACtGJ,EAAC,WAAQ,IAAKI,EAAK,UAAWC,EAAG,qCAAsCH,CAAS,EAAI,GAAGC,EAAO,CAC/F,EAEDS,EAAa,YAAc","names":["React","jsx","Table","className","props","ref","cn","TableHeader","TableBody","TableFooter","TableRow","TableHead","TableCell","TableCaption"]}
1
+ {"version":3,"sources":["../../src/react/table.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Table\n * -------------------------------------------------------------------------- */\n\ntype TableElement = HTMLTableElement;\ntype TableProps = React.HTMLAttributes<HTMLTableElement>;\n\nconst Table = React.forwardRef<TableElement, TableProps>(({ className, ...props }, forwardedRef) => (\n <div className=\"relative w-full overflow-auto\">\n <table ref={forwardedRef} className={cn('w-full caption-bottom text-sm', className)} {...props} />\n </div>\n));\n\nTable.displayName = 'Table';\n\n/* -----------------------------------------------------------------------------\n * Component: TableHeader\n * -------------------------------------------------------------------------- */\n\ntype TableHeaderElement = HTMLTableSectionElement;\ntype TableHeaderProps = React.HTMLAttributes<HTMLTableSectionElement>;\n\nconst TableHeader = React.forwardRef<TableHeaderElement, TableHeaderProps>(({ className, ...props }, forwardedRef) => (\n <thead ref={forwardedRef} className={cn('[&_tr]:border-b', className)} {...props} />\n));\n\nTableHeader.displayName = 'TableHeader';\n\n/* -----------------------------------------------------------------------------\n * Component: TableBody\n * -------------------------------------------------------------------------- */\n\ntype TableBodyElement = HTMLTableSectionElement;\ntype TableBodyProps = React.HTMLAttributes<HTMLTableSectionElement>;\n\nconst TableBody = React.forwardRef<TableBodyElement, TableBodyProps>(({ className, ...props }, forwardedRef) => (\n <tbody ref={forwardedRef} className={cn('[&_tr:last-child]:border-0', className)} {...props} />\n));\n\nTableBody.displayName = 'TableBody';\n\n/* -----------------------------------------------------------------------------\n * Component: TableFooter\n * -------------------------------------------------------------------------- */\n\ntype TableFooterElement = HTMLTableSectionElement;\ntype TableFooterProps = React.HTMLAttributes<HTMLTableSectionElement>;\n\nconst TableFooter = React.forwardRef<TableFooterElement, TableFooterProps>(({ className, ...props }, forwardedRef) => (\n <tfoot\n ref={forwardedRef}\n className={cn('bg-muted/50 border-t font-medium [&>tr]:last:border-b-0', className)}\n {...props}\n />\n));\n\nTableFooter.displayName = 'TableFooter';\n\n/* -----------------------------------------------------------------------------\n * Component: TableRow\n * -------------------------------------------------------------------------- */\n\ntype TableRowElement = HTMLTableRowElement;\ntype TableRowProps = React.HTMLAttributes<HTMLTableRowElement>;\n\nconst TableRow = React.forwardRef<TableRowElement, TableRowProps>(({ className, ...props }, forwardedRef) => (\n <tr\n ref={forwardedRef}\n className={cn('hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition', className)}\n {...props}\n />\n));\n\nTableRow.displayName = 'TableRow';\n\n/* -----------------------------------------------------------------------------\n * Component: TableHead\n * -------------------------------------------------------------------------- */\n\ntype TableHeadElement = HTMLTableCellElement;\ntype TableHeadProps = React.ThHTMLAttributes<HTMLTableCellElement>;\n\nconst TableHead = React.forwardRef<TableHeadElement, TableHeadProps>(({ className, ...props }, forwardedRef) => (\n <th\n ref={forwardedRef}\n className={cn(\n 'text-muted-foreground h-12 px-4 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0',\n className,\n )}\n {...props}\n />\n));\n\nTableHead.displayName = 'TableHead';\n\n/* -----------------------------------------------------------------------------\n * Component: TableCell\n * -------------------------------------------------------------------------- */\n\ntype TableCellElement = HTMLTableCellElement;\ntype TableCellProps = React.TdHTMLAttributes<HTMLTableCellElement>;\n\nconst TableCell = React.forwardRef<TableCellElement, TableCellProps>(({ className, ...props }, forwardedRef) => (\n <td ref={forwardedRef} className={cn('p-4 align-middle [&:has([role=checkbox])]:pr-0', className)} {...props} />\n));\n\nTableCell.displayName = 'TableCell';\n\n/* -----------------------------------------------------------------------------\n * Component: TableCaption\n * -------------------------------------------------------------------------- */\n\ntype TableCaptionElement = HTMLTableCaptionElement;\ntype TableCaptionProps = React.HTMLAttributes<HTMLTableCaptionElement>;\n\nconst TableCaption = React.forwardRef<TableCaptionElement, TableCaptionProps>(\n ({ className, ...props }, forwardedRef) => (\n <caption ref={forwardedRef} className={cn('text-muted-foreground mt-4 text-sm', className)} {...props} />\n ),\n);\n\nTableCaption.displayName = 'TableCaption';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableHead,\n TableRow,\n TableCell,\n TableCaption,\n type TableProps,\n type TableHeaderProps,\n type TableBodyProps,\n type TableFooterProps,\n type TableHeadProps,\n type TableRowProps,\n type TableCellProps,\n type TableCaptionProps,\n};\n"],"mappings":"yCAAA,UAAYA,MAAW,QAYnB,cAAAC,MAAA,oBAFJ,IAAMC,EAAc,aAAqC,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACjFJ,EAAC,OAAI,UAAU,gCACb,SAAAA,EAAC,SAAM,IAAKI,EAAc,UAAWC,EAAG,gCAAiCH,CAAS,EAAI,GAAGC,EAAO,EAClG,CACD,EAEDF,EAAM,YAAc,QASpB,IAAMK,EAAoB,aAAiD,CAAC,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAGC,IACnGJ,EAAC,SAAM,IAAKI,EAAc,UAAWC,EAAG,kBAAmBH,CAAS,EAAI,GAAGC,EAAO,CACnF,EAEDG,EAAY,YAAc,cAS1B,IAAMC,EAAkB,aAA6C,CAAC,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAAGC,IAC7FJ,EAAC,SAAM,IAAKI,EAAc,UAAWC,EAAG,6BAA8BH,CAAS,EAAI,GAAGC,EAAO,CAC9F,EAEDI,EAAU,YAAc,YASxB,IAAMC,EAAoB,aAAiD,CAAC,CAAE,UAAAN,EAAW,GAAGC,CAAM,EAAGC,IACnGJ,EAAC,SACC,IAAKI,EACL,UAAWC,EAAG,0DAA2DH,CAAS,EACjF,GAAGC,EACN,CACD,EAEDK,EAAY,YAAc,cAS1B,IAAMC,EAAiB,aAA2C,CAAC,CAAE,UAAAP,EAAW,GAAGC,CAAM,EAAGC,IAC1FJ,EAAC,MACC,IAAKI,EACL,UAAWC,EAAG,uEAAwEH,CAAS,EAC9F,GAAGC,EACN,CACD,EAEDM,EAAS,YAAc,WASvB,IAAMC,EAAkB,aAA6C,CAAC,CAAE,UAAAR,EAAW,GAAGC,CAAM,EAAGC,IAC7FJ,EAAC,MACC,IAAKI,EACL,UAAWC,EACT,mGACAH,CACF,EACC,GAAGC,EACN,CACD,EAEDO,EAAU,YAAc,YASxB,IAAMC,EAAkB,aAA6C,CAAC,CAAE,UAAAT,EAAW,GAAGC,CAAM,EAAGC,IAC7FJ,EAAC,MAAG,IAAKI,EAAc,UAAWC,EAAG,iDAAkDH,CAAS,EAAI,GAAGC,EAAO,CAC/G,EAEDQ,EAAU,YAAc,YASxB,IAAMC,EAAqB,aACzB,CAAC,CAAE,UAAAV,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAC,WAAQ,IAAKI,EAAc,UAAWC,EAAG,qCAAsCH,CAAS,EAAI,GAAGC,EAAO,CAE3G,EAEAS,EAAa,YAAc","names":["React","jsx","Table","className","props","forwardedRef","cn","TableHeader","TableBody","TableFooter","TableRow","TableHead","TableCell","TableCaption"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/tabs.tsx"],"names":["React","TabsPrimitive","jsx","Tabs","TabsList","className","props","ref","cn","TabsTrigger","TabsContent"],"mappings":"kDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAmB,uBAkB7B,cAAAC,MAAA,oBAVF,IAAMC,EAAqB,OASrBC,EAAiB,aAA2C,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAC1FL,EAAe,OAAd,CACC,IAAKK,EACL,UAAWC,EACT,mGACAH,CACF,EACC,GAAGC,EACN,CACD,EAEDF,EAAS,YAA4B,OAAK,YAS1C,IAAMK,EAAoB,aAAiD,CAAC,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAGC,IACnGL,EAAe,UAAd,CACC,IAAKK,EACL,UAAWC,EACT,4WACAH,CACF,EACC,GAAGC,EACN,CACD,EAEDG,EAAY,YAA4B,UAAQ,YAShD,IAAMC,EAAoB,aAAiD,CAAC,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAAGC,IACnGL,EAAe,UAAd,CACC,IAAKK,EACL,UAAWC,EACT,+FACAH,CACF,EACC,GAAGC,EACN,CACD,EAEDI,EAAY,YAA4B,UAAQ","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as TabsPrimitive from '@radix-ui/react-tabs';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Tabs\n * -------------------------------------------------------------------------- */\n\ntype TabsProps = React.ComponentPropsWithoutRef<typeof TabsPrimitive.Root>;\nconst Tabs = TabsPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: TabsList\n * -------------------------------------------------------------------------- */\n\ntype TabsListElement = React.ElementRef<typeof TabsPrimitive.List>;\ntype TabsListProps = React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>;\n\nconst TabsList = React.forwardRef<TabsListElement, TabsListProps>(({ className, ...props }, ref) => (\n <TabsPrimitive.List\n ref={ref}\n className={cn(\n 'bg-muted text-muted-foreground inline-flex h-10 items-center justify-center gap-1 rounded-md p-1',\n className,\n )}\n {...props}\n />\n));\n\nTabsList.displayName = TabsPrimitive.List.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: TabsTrigger\n * -------------------------------------------------------------------------- */\n\ntype TabsTriggerElement = React.ElementRef<typeof TabsPrimitive.Trigger>;\ntype TabsTriggerProps = React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>;\n\nconst TabsTrigger = React.forwardRef<TabsTriggerElement, TabsTriggerProps>(({ className, ...props }, ref) => (\n <TabsPrimitive.Trigger\n ref={ref}\n className={cn(\n 'data-[state=active]:bg-background data-[state=active]:text-foreground inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium outline-transparent transition-all focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm',\n className,\n )}\n {...props}\n />\n));\n\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: TabsContent\n * -------------------------------------------------------------------------- */\n\ntype TabsContentElement = React.ElementRef<typeof TabsPrimitive.Content>;\ntype TabsContentProps = React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>;\n\nconst TabsContent = React.forwardRef<TabsContentElement, TabsContentProps>(({ className, ...props }, ref) => (\n <TabsPrimitive.Content\n ref={ref}\n className={cn(\n 'mt-2 rounded-md focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2',\n className,\n )}\n {...props}\n />\n));\n\nTabsContent.displayName = TabsPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Tabs,\n TabsList,\n TabsTrigger,\n TabsContent,\n type TabsProps,\n type TabsListProps,\n type TabsTriggerProps,\n type TabsContentProps,\n};\n"]}
1
+ {"version":3,"sources":["../../src/react/tabs.tsx"],"names":["React","TabsPrimitive","jsx","Tabs","TabsList","className","props","forwardedRef","cn","TabsTrigger","TabsContent"],"mappings":"kDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAmB,uBAkB7B,cAAAC,MAAA,oBAVF,IAAMC,EAAqB,OASrBC,EAAiB,aAA2C,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAC1FL,EAAe,OAAd,CACC,IAAKK,EACL,UAAWC,EACT,mGACAH,CACF,EACC,GAAGC,EACN,CACD,EAEDF,EAAS,YAA4B,OAAK,YAS1C,IAAMK,EAAoB,aAAiD,CAAC,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAGC,IACnGL,EAAe,UAAd,CACC,IAAKK,EACL,UAAWC,EACT,4WACAH,CACF,EACC,GAAGC,EACN,CACD,EAEDG,EAAY,YAA4B,UAAQ,YAShD,IAAMC,EAAoB,aAAiD,CAAC,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAAGC,IACnGL,EAAe,UAAd,CACC,IAAKK,EACL,UAAWC,EACT,+FACAH,CACF,EACC,GAAGC,EACN,CACD,EAEDI,EAAY,YAA4B,UAAQ","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as TabsPrimitive from '@radix-ui/react-tabs';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Tabs\n * -------------------------------------------------------------------------- */\n\ntype TabsProps = React.ComponentPropsWithoutRef<typeof TabsPrimitive.Root>;\nconst Tabs = TabsPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: TabsList\n * -------------------------------------------------------------------------- */\n\ntype TabsListElement = React.ElementRef<typeof TabsPrimitive.List>;\ntype TabsListProps = React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>;\n\nconst TabsList = React.forwardRef<TabsListElement, TabsListProps>(({ className, ...props }, forwardedRef) => (\n <TabsPrimitive.List\n ref={forwardedRef}\n className={cn(\n 'bg-muted text-muted-foreground inline-flex h-10 items-center justify-center gap-1 rounded-md p-1',\n className,\n )}\n {...props}\n />\n));\n\nTabsList.displayName = TabsPrimitive.List.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: TabsTrigger\n * -------------------------------------------------------------------------- */\n\ntype TabsTriggerElement = React.ElementRef<typeof TabsPrimitive.Trigger>;\ntype TabsTriggerProps = React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>;\n\nconst TabsTrigger = React.forwardRef<TabsTriggerElement, TabsTriggerProps>(({ className, ...props }, forwardedRef) => (\n <TabsPrimitive.Trigger\n ref={forwardedRef}\n className={cn(\n 'data-[state=active]:bg-background data-[state=active]:text-foreground inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium outline-transparent transition-all focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm',\n className,\n )}\n {...props}\n />\n));\n\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: TabsContent\n * -------------------------------------------------------------------------- */\n\ntype TabsContentElement = React.ElementRef<typeof TabsPrimitive.Content>;\ntype TabsContentProps = React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>;\n\nconst TabsContent = React.forwardRef<TabsContentElement, TabsContentProps>(({ className, ...props }, forwardedRef) => (\n <TabsPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'mt-2 rounded-md focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2',\n className,\n )}\n {...props}\n />\n));\n\nTabsContent.displayName = TabsPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Tabs,\n TabsList,\n TabsTrigger,\n TabsContent,\n type TabsProps,\n type TabsListProps,\n type TabsTriggerProps,\n type TabsContentProps,\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/tabs.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as TabsPrimitive from '@radix-ui/react-tabs';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Tabs\n * -------------------------------------------------------------------------- */\n\ntype TabsProps = React.ComponentPropsWithoutRef<typeof TabsPrimitive.Root>;\nconst Tabs = TabsPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: TabsList\n * -------------------------------------------------------------------------- */\n\ntype TabsListElement = React.ElementRef<typeof TabsPrimitive.List>;\ntype TabsListProps = React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>;\n\nconst TabsList = React.forwardRef<TabsListElement, TabsListProps>(({ className, ...props }, ref) => (\n <TabsPrimitive.List\n ref={ref}\n className={cn(\n 'bg-muted text-muted-foreground inline-flex h-10 items-center justify-center gap-1 rounded-md p-1',\n className,\n )}\n {...props}\n />\n));\n\nTabsList.displayName = TabsPrimitive.List.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: TabsTrigger\n * -------------------------------------------------------------------------- */\n\ntype TabsTriggerElement = React.ElementRef<typeof TabsPrimitive.Trigger>;\ntype TabsTriggerProps = React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>;\n\nconst TabsTrigger = React.forwardRef<TabsTriggerElement, TabsTriggerProps>(({ className, ...props }, ref) => (\n <TabsPrimitive.Trigger\n ref={ref}\n className={cn(\n 'data-[state=active]:bg-background data-[state=active]:text-foreground inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium outline-transparent transition-all focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm',\n className,\n )}\n {...props}\n />\n));\n\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: TabsContent\n * -------------------------------------------------------------------------- */\n\ntype TabsContentElement = React.ElementRef<typeof TabsPrimitive.Content>;\ntype TabsContentProps = React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>;\n\nconst TabsContent = React.forwardRef<TabsContentElement, TabsContentProps>(({ className, ...props }, ref) => (\n <TabsPrimitive.Content\n ref={ref}\n className={cn(\n 'mt-2 rounded-md focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2',\n className,\n )}\n {...props}\n />\n));\n\nTabsContent.displayName = TabsPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Tabs,\n TabsList,\n TabsTrigger,\n TabsContent,\n type TabsProps,\n type TabsListProps,\n type TabsTriggerProps,\n type TabsContentProps,\n};\n"],"mappings":"iDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAmB,uBAkB7B,cAAAC,MAAA,oBAVF,IAAMC,EAAqB,OASrBC,EAAiB,aAA2C,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAC1FL,EAAe,OAAd,CACC,IAAKK,EACL,UAAWC,EACT,mGACAH,CACF,EACC,GAAGC,EACN,CACD,EAEDF,EAAS,YAA4B,OAAK,YAS1C,IAAMK,EAAoB,aAAiD,CAAC,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAGC,IACnGL,EAAe,UAAd,CACC,IAAKK,EACL,UAAWC,EACT,4WACAH,CACF,EACC,GAAGC,EACN,CACD,EAEDG,EAAY,YAA4B,UAAQ,YAShD,IAAMC,EAAoB,aAAiD,CAAC,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAAGC,IACnGL,EAAe,UAAd,CACC,IAAKK,EACL,UAAWC,EACT,+FACAH,CACF,EACC,GAAGC,EACN,CACD,EAEDI,EAAY,YAA4B,UAAQ","names":["React","TabsPrimitive","jsx","Tabs","TabsList","className","props","ref","cn","TabsTrigger","TabsContent"]}
1
+ {"version":3,"sources":["../../src/react/tabs.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as TabsPrimitive from '@radix-ui/react-tabs';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Tabs\n * -------------------------------------------------------------------------- */\n\ntype TabsProps = React.ComponentPropsWithoutRef<typeof TabsPrimitive.Root>;\nconst Tabs = TabsPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: TabsList\n * -------------------------------------------------------------------------- */\n\ntype TabsListElement = React.ElementRef<typeof TabsPrimitive.List>;\ntype TabsListProps = React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>;\n\nconst TabsList = React.forwardRef<TabsListElement, TabsListProps>(({ className, ...props }, forwardedRef) => (\n <TabsPrimitive.List\n ref={forwardedRef}\n className={cn(\n 'bg-muted text-muted-foreground inline-flex h-10 items-center justify-center gap-1 rounded-md p-1',\n className,\n )}\n {...props}\n />\n));\n\nTabsList.displayName = TabsPrimitive.List.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: TabsTrigger\n * -------------------------------------------------------------------------- */\n\ntype TabsTriggerElement = React.ElementRef<typeof TabsPrimitive.Trigger>;\ntype TabsTriggerProps = React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>;\n\nconst TabsTrigger = React.forwardRef<TabsTriggerElement, TabsTriggerProps>(({ className, ...props }, forwardedRef) => (\n <TabsPrimitive.Trigger\n ref={forwardedRef}\n className={cn(\n 'data-[state=active]:bg-background data-[state=active]:text-foreground inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium outline-transparent transition-all focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm',\n className,\n )}\n {...props}\n />\n));\n\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: TabsContent\n * -------------------------------------------------------------------------- */\n\ntype TabsContentElement = React.ElementRef<typeof TabsPrimitive.Content>;\ntype TabsContentProps = React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>;\n\nconst TabsContent = React.forwardRef<TabsContentElement, TabsContentProps>(({ className, ...props }, forwardedRef) => (\n <TabsPrimitive.Content\n ref={forwardedRef}\n className={cn(\n 'mt-2 rounded-md focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2',\n className,\n )}\n {...props}\n />\n));\n\nTabsContent.displayName = TabsPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n Tabs,\n TabsList,\n TabsTrigger,\n TabsContent,\n type TabsProps,\n type TabsListProps,\n type TabsTriggerProps,\n type TabsContentProps,\n};\n"],"mappings":"iDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAmB,uBAkB7B,cAAAC,MAAA,oBAVF,IAAMC,EAAqB,OASrBC,EAAiB,aAA2C,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAC1FL,EAAe,OAAd,CACC,IAAKK,EACL,UAAWC,EACT,mGACAH,CACF,EACC,GAAGC,EACN,CACD,EAEDF,EAAS,YAA4B,OAAK,YAS1C,IAAMK,EAAoB,aAAiD,CAAC,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAGC,IACnGL,EAAe,UAAd,CACC,IAAKK,EACL,UAAWC,EACT,4WACAH,CACF,EACC,GAAGC,EACN,CACD,EAEDG,EAAY,YAA4B,UAAQ,YAShD,IAAMC,EAAoB,aAAiD,CAAC,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAAGC,IACnGL,EAAe,UAAd,CACC,IAAKK,EACL,UAAWC,EACT,+FACAH,CACF,EACC,GAAGC,EACN,CACD,EAEDI,EAAY,YAA4B,UAAQ","names":["React","TabsPrimitive","jsx","Tabs","TabsList","className","props","forwardedRef","cn","TabsTrigger","TabsContent"]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";var _chunk3COHZ24Ecjs = require('../chunk-3COHZ24E.cjs');require('../chunk-LOJBMYTH.cjs');require('../chunk-NU6SK3FC.cjs');var _react = require('react'); var n = _interopRequireWildcard(_react);var _jsxruntime = require('react/jsx-runtime');var a=n.forwardRef(({className:o,loading:r,loaderPosition:u,prefix:s,suffix:I,inputSize:i,...l},x)=>_jsxruntime.jsx.call(void 0, _chunk3COHZ24Ecjs.c,{className:o,inputSize:i,loaderPosition:u,loading:r,prefix:s,suffix:I,children:_jsxruntime.jsx.call(void 0, _chunk3COHZ24Ecjs.d,{ref:x,...l})}));a.displayName="TextInput";exports.TextInput = a;
2
+ //# sourceMappingURL=text-input.cjs.map