@codefast/ui 0.0.49 → 0.0.52

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 (281) hide show
  1. package/dist/{chunk-ZTEJNUH6.js → chunk-46W6RAYD.js} +1 -1
  2. package/dist/chunk-46W6RAYD.js.map +1 -0
  3. package/dist/{chunk-CERSQE5J.js → chunk-4JHGPRLG.js} +1 -1
  4. package/dist/chunk-4JHGPRLG.js.map +1 -0
  5. package/dist/{chunk-I6QCJDIF.mjs → chunk-5RENVAXH.mjs} +1 -1
  6. package/dist/chunk-5RENVAXH.mjs.map +1 -0
  7. package/dist/{chunk-PPEAG5G4.mjs → chunk-7ABWX5CF.mjs} +2 -2
  8. package/dist/chunk-7ABWX5CF.mjs.map +1 -0
  9. package/dist/{chunk-XHNT6PVI.mjs → chunk-BM5KYF6Y.mjs} +1 -1
  10. package/dist/chunk-BM5KYF6Y.mjs.map +1 -0
  11. package/dist/{chunk-P5AV3QU7.mjs → chunk-BNKSZEF2.mjs} +1 -1
  12. package/dist/chunk-BNKSZEF2.mjs.map +1 -0
  13. package/dist/{chunk-SDGUDONZ.js → chunk-DCDB56BO.js} +1 -1
  14. package/dist/chunk-DCDB56BO.js.map +1 -0
  15. package/dist/{chunk-6FL3EBDQ.mjs → chunk-HMD2ZU33.mjs} +1 -1
  16. package/dist/chunk-HMD2ZU33.mjs.map +1 -0
  17. package/dist/{chunk-JOBEKA4M.mjs → chunk-K63K4LTH.mjs} +2 -2
  18. package/dist/chunk-K63K4LTH.mjs.map +1 -0
  19. package/dist/{chunk-VXPAGNPJ.js → chunk-LJSD47ZL.js} +1 -1
  20. package/dist/chunk-LJSD47ZL.js.map +1 -0
  21. package/dist/{chunk-GDMHMSJ2.mjs → chunk-MFYACCZV.mjs} +1 -1
  22. package/dist/chunk-MFYACCZV.mjs.map +1 -0
  23. package/dist/{chunk-LG7ACTRE.js → chunk-PRCS3RWN.js} +1 -1
  24. package/dist/chunk-PRCS3RWN.js.map +1 -0
  25. package/dist/{chunk-OP6Q7VT5.js → chunk-RHFF4JNH.js} +1 -1
  26. package/dist/chunk-RHFF4JNH.js.map +1 -0
  27. package/dist/{chunk-SCPFGC2X.js → chunk-SCXRD727.js} +1 -1
  28. package/dist/chunk-SCXRD727.js.map +1 -0
  29. package/dist/{chunk-JPRGRYAM.js → chunk-VZVI3OHH.js} +2 -2
  30. package/dist/chunk-VZVI3OHH.js.map +1 -0
  31. package/dist/{chunk-UYRRHPPH.js → chunk-X4BEEJEW.js} +2 -2
  32. package/dist/chunk-X4BEEJEW.js.map +1 -0
  33. package/dist/{chunk-PWF46YXQ.mjs → chunk-Y2GMHG3Z.mjs} +1 -1
  34. package/dist/chunk-Y2GMHG3Z.mjs.map +1 -0
  35. package/dist/{chunk-MU2MZ434.mjs → chunk-ZIB4ZTST.mjs} +1 -1
  36. package/dist/chunk-ZIB4ZTST.mjs.map +1 -0
  37. package/dist/plugin/animate.plugin.js +1 -1
  38. package/dist/plugin/animate.plugin.mjs +1 -1
  39. package/dist/react/accordion.js.map +1 -1
  40. package/dist/react/accordion.mjs.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-dialog.mjs +1 -1
  44. package/dist/react/alert-dialog.mjs.map +1 -1
  45. package/dist/react/alert.js.map +1 -1
  46. package/dist/react/alert.mjs.map +1 -1
  47. package/dist/react/aspect-ratio.d.mts +1 -1
  48. package/dist/react/aspect-ratio.d.ts +1 -1
  49. package/dist/react/aspect-ratio.js.map +1 -1
  50. package/dist/react/aspect-ratio.mjs.map +1 -1
  51. package/dist/react/avatar.js.map +1 -1
  52. package/dist/react/avatar.mjs.map +1 -1
  53. package/dist/react/badge.js.map +1 -1
  54. package/dist/react/badge.mjs.map +1 -1
  55. package/dist/react/blockquote.js.map +1 -1
  56. package/dist/react/blockquote.mjs.map +1 -1
  57. package/dist/react/box.js.map +1 -1
  58. package/dist/react/box.mjs.map +1 -1
  59. package/dist/react/breadcrumb.js.map +1 -1
  60. package/dist/react/breadcrumb.mjs.map +1 -1
  61. package/dist/react/button.js +1 -1
  62. package/dist/react/button.mjs +1 -1
  63. package/dist/react/calendar.js +1 -1
  64. package/dist/react/calendar.js.map +1 -1
  65. package/dist/react/calendar.mjs +1 -1
  66. package/dist/react/calendar.mjs.map +1 -1
  67. package/dist/react/card.js.map +1 -1
  68. package/dist/react/card.mjs.map +1 -1
  69. package/dist/react/carousel.js +1 -1
  70. package/dist/react/carousel.js.map +1 -1
  71. package/dist/react/carousel.mjs +1 -1
  72. package/dist/react/carousel.mjs.map +1 -1
  73. package/dist/react/checkbox-cards.js +1 -1
  74. package/dist/react/checkbox-cards.js.map +1 -1
  75. package/dist/react/checkbox-cards.mjs +1 -1
  76. package/dist/react/checkbox-cards.mjs.map +1 -1
  77. package/dist/react/checkbox-group.js +1 -1
  78. package/dist/react/checkbox-group.js.map +1 -1
  79. package/dist/react/checkbox-group.mjs +1 -1
  80. package/dist/react/checkbox-group.mjs.map +1 -1
  81. package/dist/react/checkbox-group.primitive.js +1 -1
  82. package/dist/react/checkbox-group.primitive.mjs +1 -1
  83. package/dist/react/checkbox.js.map +1 -1
  84. package/dist/react/checkbox.mjs.map +1 -1
  85. package/dist/react/code.js.map +1 -1
  86. package/dist/react/code.mjs.map +1 -1
  87. package/dist/react/collapsible.js.map +1 -1
  88. package/dist/react/collapsible.mjs.map +1 -1
  89. package/dist/react/command.d.mts +8 -8
  90. package/dist/react/command.d.ts +8 -8
  91. package/dist/react/command.js +1 -1
  92. package/dist/react/command.js.map +1 -1
  93. package/dist/react/command.mjs +1 -1
  94. package/dist/react/command.mjs.map +1 -1
  95. package/dist/react/container.js.map +1 -1
  96. package/dist/react/container.mjs.map +1 -1
  97. package/dist/react/context-menu.js.map +1 -1
  98. package/dist/react/context-menu.mjs.map +1 -1
  99. package/dist/react/data-table.d.mts +1 -1
  100. package/dist/react/data-table.d.ts +1 -1
  101. package/dist/react/data-table.js +1 -1
  102. package/dist/react/data-table.js.map +1 -1
  103. package/dist/react/data-table.mjs +1 -1
  104. package/dist/react/data-table.mjs.map +1 -1
  105. package/dist/react/dialog.js +1 -1
  106. package/dist/react/dialog.mjs +1 -1
  107. package/dist/react/drawer.js.map +1 -1
  108. package/dist/react/drawer.mjs.map +1 -1
  109. package/dist/react/dropdown-menu.js +1 -1
  110. package/dist/react/dropdown-menu.mjs +1 -1
  111. package/dist/react/em.js.map +1 -1
  112. package/dist/react/em.mjs.map +1 -1
  113. package/dist/react/form.js +1 -1
  114. package/dist/react/form.js.map +1 -1
  115. package/dist/react/form.mjs +1 -1
  116. package/dist/react/form.mjs.map +1 -1
  117. package/dist/react/heading.js.map +1 -1
  118. package/dist/react/heading.mjs.map +1 -1
  119. package/dist/react/hover-card.js.map +1 -1
  120. package/dist/react/hover-card.mjs.map +1 -1
  121. package/dist/react/input-otp.js.map +1 -1
  122. package/dist/react/input-otp.mjs.map +1 -1
  123. package/dist/react/input.js.map +1 -1
  124. package/dist/react/input.mjs.map +1 -1
  125. package/dist/react/kbd.js.map +1 -1
  126. package/dist/react/kbd.mjs.map +1 -1
  127. package/dist/react/label.js +1 -1
  128. package/dist/react/label.mjs +1 -1
  129. package/dist/react/menubar.js.map +1 -1
  130. package/dist/react/menubar.mjs.map +1 -1
  131. package/dist/react/navigation-menu.js.map +1 -1
  132. package/dist/react/navigation-menu.mjs.map +1 -1
  133. package/dist/react/pagination.js +1 -1
  134. package/dist/react/pagination.js.map +1 -1
  135. package/dist/react/pagination.mjs +1 -1
  136. package/dist/react/pagination.mjs.map +1 -1
  137. package/dist/react/popover.js.map +1 -1
  138. package/dist/react/popover.mjs.map +1 -1
  139. package/dist/react/pre.js.map +1 -1
  140. package/dist/react/pre.mjs.map +1 -1
  141. package/dist/react/progress.js.map +1 -1
  142. package/dist/react/progress.mjs.map +1 -1
  143. package/dist/react/quote.js.map +1 -1
  144. package/dist/react/quote.mjs.map +1 -1
  145. package/dist/react/radio-cards.js.map +1 -1
  146. package/dist/react/radio-cards.mjs.map +1 -1
  147. package/dist/react/radio-group.js.map +1 -1
  148. package/dist/react/radio-group.mjs.map +1 -1
  149. package/dist/react/radio.js.map +1 -1
  150. package/dist/react/radio.mjs.map +1 -1
  151. package/dist/react/resizable.js.map +1 -1
  152. package/dist/react/resizable.mjs.map +1 -1
  153. package/dist/react/scroll-area.js.map +1 -1
  154. package/dist/react/scroll-area.mjs.map +1 -1
  155. package/dist/react/section.js.map +1 -1
  156. package/dist/react/section.mjs.map +1 -1
  157. package/dist/react/select.js +1 -1
  158. package/dist/react/select.mjs +1 -1
  159. package/dist/react/separator.js.map +1 -1
  160. package/dist/react/separator.mjs.map +1 -1
  161. package/dist/react/sheet.js +1 -1
  162. package/dist/react/sheet.js.map +1 -1
  163. package/dist/react/sheet.mjs +1 -1
  164. package/dist/react/sheet.mjs.map +1 -1
  165. package/dist/react/skeleton.js.map +1 -1
  166. package/dist/react/skeleton.mjs.map +1 -1
  167. package/dist/react/slider.js.map +1 -1
  168. package/dist/react/slider.mjs.map +1 -1
  169. package/dist/react/sonner.js.map +1 -1
  170. package/dist/react/sonner.mjs.map +1 -1
  171. package/dist/react/spinner.js +1 -1
  172. package/dist/react/spinner.mjs +1 -1
  173. package/dist/react/strong.js.map +1 -1
  174. package/dist/react/strong.mjs.map +1 -1
  175. package/dist/react/switch.js.map +1 -1
  176. package/dist/react/switch.mjs.map +1 -1
  177. package/dist/react/table.js.map +1 -1
  178. package/dist/react/table.mjs.map +1 -1
  179. package/dist/react/tabs.js.map +1 -1
  180. package/dist/react/tabs.mjs.map +1 -1
  181. package/dist/react/text.js.map +1 -1
  182. package/dist/react/text.mjs.map +1 -1
  183. package/dist/react/textarea.js.map +1 -1
  184. package/dist/react/textarea.mjs.map +1 -1
  185. package/dist/react/toggle-group.js +1 -1
  186. package/dist/react/toggle-group.js.map +1 -1
  187. package/dist/react/toggle-group.mjs +1 -1
  188. package/dist/react/toggle-group.mjs.map +1 -1
  189. package/dist/react/toggle.js +1 -1
  190. package/dist/react/toggle.mjs +1 -1
  191. package/dist/react/tooltip.js.map +1 -1
  192. package/dist/react/tooltip.mjs.map +1 -1
  193. package/dist/styles.css.map +1 -1
  194. package/dist/tailwind.config.js +1 -1
  195. package/dist/tailwind.config.js.map +1 -1
  196. package/dist/tailwind.config.mjs +1 -1
  197. package/dist/tailwind.config.mjs.map +1 -1
  198. package/package.json +5 -5
  199. package/plugin/animate.plugin.ts +2 -5
  200. package/src/react/accordion.tsx +36 -60
  201. package/src/react/alert-dialog.tsx +57 -125
  202. package/src/react/alert.tsx +16 -42
  203. package/src/react/aspect-ratio.tsx +2 -4
  204. package/src/react/avatar.tsx +15 -43
  205. package/src/react/badge.tsx +3 -8
  206. package/src/react/blockquote.tsx +5 -8
  207. package/src/react/box.tsx +4 -6
  208. package/src/react/breadcrumb.tsx +17 -50
  209. package/src/react/button.tsx +6 -21
  210. package/src/react/calendar.tsx +5 -22
  211. package/src/react/card.tsx +22 -56
  212. package/src/react/carousel.tsx +20 -76
  213. package/src/react/checkbox-cards.tsx +28 -55
  214. package/src/react/checkbox-group.primitive.tsx +24 -78
  215. package/src/react/checkbox-group.tsx +26 -49
  216. package/src/react/checkbox.tsx +15 -19
  217. package/src/react/code.tsx +4 -6
  218. package/src/react/collapsible.tsx +19 -29
  219. package/src/react/command.tsx +69 -134
  220. package/src/react/container.tsx +5 -9
  221. package/src/react/context-menu.tsx +146 -224
  222. package/src/react/data-table.tsx +16 -44
  223. package/src/react/dialog.tsx +45 -90
  224. package/src/react/drawer.tsx +44 -91
  225. package/src/react/dropdown-menu.tsx +126 -194
  226. package/src/react/em.tsx +4 -6
  227. package/src/react/form.tsx +49 -84
  228. package/src/react/heading.tsx +4 -6
  229. package/src/react/hover-card.tsx +22 -38
  230. package/src/react/input-otp.tsx +26 -37
  231. package/src/react/input.tsx +6 -16
  232. package/src/react/kbd.tsx +14 -16
  233. package/src/react/label.tsx +11 -12
  234. package/src/react/menubar.tsx +129 -208
  235. package/src/react/navigation-menu.tsx +105 -147
  236. package/src/react/pagination.tsx +18 -50
  237. package/src/react/popover.tsx +25 -40
  238. package/src/react/pre.tsx +4 -6
  239. package/src/react/progress.tsx +15 -22
  240. package/src/react/quote.tsx +4 -6
  241. package/src/react/radio-cards.tsx +7 -27
  242. package/src/react/radio-group.tsx +7 -27
  243. package/src/react/radio.tsx +14 -18
  244. package/src/react/resizable.tsx +2 -7
  245. package/src/react/scroll-area.tsx +30 -52
  246. package/src/react/section.tsx +4 -6
  247. package/src/react/select.tsx +108 -161
  248. package/src/react/separator.tsx +3 -12
  249. package/src/react/sheet.tsx +21 -71
  250. package/src/react/skeleton.tsx +1 -6
  251. package/src/react/slider.tsx +20 -27
  252. package/src/react/sonner.tsx +2 -4
  253. package/src/react/spinner.tsx +2 -7
  254. package/src/react/strong.tsx +4 -6
  255. package/src/react/switch.tsx +12 -14
  256. package/src/react/table.tsx +37 -82
  257. package/src/react/tabs.tsx +34 -44
  258. package/src/react/text.tsx +5 -8
  259. package/src/react/textarea.tsx +12 -14
  260. package/src/react/toggle-group.tsx +16 -57
  261. package/src/react/toggle.tsx +8 -15
  262. package/src/react/tooltip.tsx +24 -39
  263. package/tailwind.config.ts +2 -2
  264. package/dist/chunk-6FL3EBDQ.mjs.map +0 -1
  265. package/dist/chunk-CERSQE5J.js.map +0 -1
  266. package/dist/chunk-GDMHMSJ2.mjs.map +0 -1
  267. package/dist/chunk-I6QCJDIF.mjs.map +0 -1
  268. package/dist/chunk-JOBEKA4M.mjs.map +0 -1
  269. package/dist/chunk-JPRGRYAM.js.map +0 -1
  270. package/dist/chunk-LG7ACTRE.js.map +0 -1
  271. package/dist/chunk-MU2MZ434.mjs.map +0 -1
  272. package/dist/chunk-OP6Q7VT5.js.map +0 -1
  273. package/dist/chunk-P5AV3QU7.mjs.map +0 -1
  274. package/dist/chunk-PPEAG5G4.mjs.map +0 -1
  275. package/dist/chunk-PWF46YXQ.mjs.map +0 -1
  276. package/dist/chunk-SCPFGC2X.js.map +0 -1
  277. package/dist/chunk-SDGUDONZ.js.map +0 -1
  278. package/dist/chunk-UYRRHPPH.js.map +0 -1
  279. package/dist/chunk-VXPAGNPJ.js.map +0 -1
  280. package/dist/chunk-XHNT6PVI.mjs.map +0 -1
  281. package/dist/chunk-ZTEJNUH6.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/sonner.tsx"],"names":["useTheme","toast","Sonner","jsx","Toaster","props","theme"],"mappings":"aAGA,OAAS,YAAAA,MAAgB,cACzB,OAAS,SAAAC,EAAO,WAAWC,MAAc,SAarC,cAAAC,MAAA,oBAJJ,SAASC,EAAQ,CAAE,GAAGC,CAAM,EAAoC,CAC9D,GAAM,CAAE,MAAAC,EAAQ,QAAS,EAAIN,EAAS,EAEtC,OACEG,EAACD,EAAA,CACC,MAAOI,EACP,UAAU,gBACV,aAAc,CACZ,WAAY,CACV,MACE,wIACF,YAAa,uCACb,aACE,mEACF,aACE,8DACJ,CACF,EACC,GAAGD,EACN,CAEJ","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useTheme } from 'next-themes';\nimport { toast, Toaster as Sonner } from 'sonner';\n\n/* -----------------------------------------------------------------------------\n * Component: Sonner\n * -------------------------------------------------------------------------- */\n\ntype ToasterProps = React.ComponentProps<typeof Sonner>;\ntype Theme = 'light' | 'dark' | 'system' | undefined;\n\nfunction Toaster({ ...props }: ToasterProps): React.JSX.Element {\n const { theme = 'system' } = useTheme() as { theme: Theme };\n\n return (\n <Sonner\n theme={theme}\n className=\"toaster group\"\n toastOptions={{\n classNames: {\n toast:\n 'group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg',\n description: 'group-[.toast]:text-muted-foreground',\n actionButton:\n 'group-[.toast]:bg-primary group-[.toast]:text-primary-foreground',\n cancelButton:\n 'group-[.toast]:bg-muted group-[.toast]:text-muted-foreground',\n },\n }}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Toaster, toast, type ToasterProps };\n"]}
1
+ {"version":3,"sources":["../../src/react/sonner.tsx"],"names":["useTheme","toast","Sonner","jsx","Toaster","props","theme"],"mappings":"aAGA,OAAS,YAAAA,MAAgB,cACzB,OAAS,SAAAC,EAAO,WAAWC,MAAc,SAarC,cAAAC,MAAA,oBAJJ,SAASC,EAAQ,CAAE,GAAGC,CAAM,EAAoC,CAC9D,GAAM,CAAE,MAAAC,EAAQ,QAAS,EAAIN,EAAS,EAEtC,OACEG,EAACD,EAAA,CACC,MAAOI,EACP,UAAU,gBACV,aAAc,CACZ,WAAY,CACV,MACE,wIACF,YAAa,uCACb,aAAc,mEACd,aAAc,8DAChB,CACF,EACC,GAAGD,EACN,CAEJ","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useTheme } from 'next-themes';\nimport { toast, Toaster as Sonner } from 'sonner';\n\n/* -----------------------------------------------------------------------------\n * Component: Sonner\n * -------------------------------------------------------------------------- */\n\ntype ToasterProps = React.ComponentProps<typeof Sonner>;\ntype Theme = 'light' | 'dark' | 'system' | undefined;\n\nfunction Toaster({ ...props }: ToasterProps): React.JSX.Element {\n const { theme = 'system' } = useTheme() as { theme: Theme };\n\n return (\n <Sonner\n theme={theme}\n className=\"toaster group\"\n toastOptions={{\n classNames: {\n toast:\n 'group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg',\n description: 'group-[.toast]:text-muted-foreground',\n actionButton: 'group-[.toast]:bg-primary group-[.toast]:text-primary-foreground',\n cancelButton: 'group-[.toast]:bg-muted group-[.toast]:text-muted-foreground',\n },\n }}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Toaster, toast, type ToasterProps };\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/sonner.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useTheme } from 'next-themes';\nimport { toast, Toaster as Sonner } from 'sonner';\n\n/* -----------------------------------------------------------------------------\n * Component: Sonner\n * -------------------------------------------------------------------------- */\n\ntype ToasterProps = React.ComponentProps<typeof Sonner>;\ntype Theme = 'light' | 'dark' | 'system' | undefined;\n\nfunction Toaster({ ...props }: ToasterProps): React.JSX.Element {\n const { theme = 'system' } = useTheme() as { theme: Theme };\n\n return (\n <Sonner\n theme={theme}\n className=\"toaster group\"\n toastOptions={{\n classNames: {\n toast:\n 'group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg',\n description: 'group-[.toast]:text-muted-foreground',\n actionButton:\n 'group-[.toast]:bg-primary group-[.toast]:text-primary-foreground',\n cancelButton:\n 'group-[.toast]:bg-muted group-[.toast]:text-muted-foreground',\n },\n }}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Toaster, toast, type ToasterProps };\n"],"mappings":"aAGA,OAAS,YAAAA,MAAgB,cACzB,OAAS,SAAAC,EAAO,WAAWC,MAAc,SAarC,cAAAC,MAAA,oBAJJ,SAASC,EAAQ,CAAE,GAAGC,CAAM,EAAoC,CAC9D,GAAM,CAAE,MAAAC,EAAQ,QAAS,EAAIN,EAAS,EAEtC,OACEG,EAACD,EAAA,CACC,MAAOI,EACP,UAAU,gBACV,aAAc,CACZ,WAAY,CACV,MACE,wIACF,YAAa,uCACb,aACE,mEACF,aACE,8DACJ,CACF,EACC,GAAGD,EACN,CAEJ","names":["useTheme","toast","Sonner","jsx","Toaster","props","theme"]}
1
+ {"version":3,"sources":["../../src/react/sonner.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useTheme } from 'next-themes';\nimport { toast, Toaster as Sonner } from 'sonner';\n\n/* -----------------------------------------------------------------------------\n * Component: Sonner\n * -------------------------------------------------------------------------- */\n\ntype ToasterProps = React.ComponentProps<typeof Sonner>;\ntype Theme = 'light' | 'dark' | 'system' | undefined;\n\nfunction Toaster({ ...props }: ToasterProps): React.JSX.Element {\n const { theme = 'system' } = useTheme() as { theme: Theme };\n\n return (\n <Sonner\n theme={theme}\n className=\"toaster group\"\n toastOptions={{\n classNames: {\n toast:\n 'group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg',\n description: 'group-[.toast]:text-muted-foreground',\n actionButton: 'group-[.toast]:bg-primary group-[.toast]:text-primary-foreground',\n cancelButton: 'group-[.toast]:bg-muted group-[.toast]:text-muted-foreground',\n },\n }}\n {...props}\n />\n );\n}\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Toaster, toast, type ToasterProps };\n"],"mappings":"aAGA,OAAS,YAAAA,MAAgB,cACzB,OAAS,SAAAC,EAAO,WAAWC,MAAc,SAarC,cAAAC,MAAA,oBAJJ,SAASC,EAAQ,CAAE,GAAGC,CAAM,EAAoC,CAC9D,GAAM,CAAE,MAAAC,EAAQ,QAAS,EAAIN,EAAS,EAEtC,OACEG,EAACD,EAAA,CACC,MAAOI,EACP,UAAU,gBACV,aAAc,CACZ,WAAY,CACV,MACE,wIACF,YAAa,uCACb,aAAc,mEACd,aAAc,8DAChB,CACF,EACC,GAAGD,EACN,CAEJ","names":["useTheme","toast","Sonner","jsx","Toaster","props","theme"]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkZTEJNUH6js = require('../chunk-ZTEJNUH6.js');require('../chunk-HQ4AUOQM.js');exports.Spinner = _chunkZTEJNUH6js.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk46W6RAYDjs = require('../chunk-46W6RAYD.js');require('../chunk-HQ4AUOQM.js');exports.Spinner = _chunk46W6RAYDjs.a;
2
2
  //# sourceMappingURL=spinner.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-P5AV3QU7.mjs";import"../chunk-LEUB3C3L.mjs";export{a as Spinner};
1
+ import{a}from"../chunk-BNKSZEF2.mjs";import"../chunk-LEUB3C3L.mjs";export{a as Spinner};
2
2
  //# sourceMappingURL=spinner.mjs.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,uBAgBV,cAAAC,MAAA,oBAJX,IAAMC,EAAe,aACnB,CAAC,CAAE,QAAAC,EAAS,GAAGC,CAAM,EAAGC,IAGfJ,EAFWE,EAAUH,EAAO,SAE3B,CAAU,IAAKK,EAAM,GAAGD,EAAO,CAE3C,EAEAF,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>(\n ({ asChild, ...props }, ref) => {\n const Component = asChild ? Slot : 'strong';\n\n return <Component ref={ref} {...props} />;\n },\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","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 +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>(\n ({ asChild, ...props }, ref) => {\n const Component = asChild ? Slot : 'strong';\n\n return <Component ref={ref} {...props} />;\n },\n);\n\nStrong.displayName = 'Strong';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Strong, type StrongProps };\n"],"mappings":"AAAA,UAAYA,MAAW,QACvB,OAAS,QAAAC,MAAY,uBAgBV,cAAAC,MAAA,oBAJX,IAAMC,EAAe,aACnB,CAAC,CAAE,QAAAC,EAAS,GAAGC,CAAM,EAAGC,IAGfJ,EAFWE,EAAUH,EAAO,SAE3B,CAAU,IAAKK,EAAM,GAAGD,EAAO,CAE3C,EAEAF,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 }, 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 +1 @@
1
- {"version":3,"sources":["../../src/react/switch.tsx"],"names":["React","SwitchPrimitives","jsx","Switch","className","props","ref","cn"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAsB,yBAoB5B,cAAAC,MAAA,oBAVN,IAAMC,EAAe,aACnB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAkB,OAAjB,CACC,UAAWK,EACT,4SACAH,CACF,EACC,GAAGC,EACJ,IAAKC,EAEL,SAAAJ,EAAkB,QAAjB,CAAuB,UAAU,2JAA2J,EAC/L,CAEJ,EAEAC,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>(\n ({ 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);\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","ref","cn"],"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","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 +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>(\n ({ 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);\n\nSwitch.displayName = SwitchPrimitives.Root.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Switch, type SwitchProps };\n"],"mappings":"uDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAsB,yBAoB5B,cAAAC,MAAA,oBAVN,IAAMC,EAAe,aACnB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAkB,OAAjB,CACC,UAAWK,EACT,4SACAH,CACF,EACC,GAAGC,EACJ,IAAKC,EAEL,SAAAJ,EAAkB,QAAjB,CAAuB,UAAU,2JAA2J,EAC/L,CAEJ,EAEAC,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 }, 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":"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","names":["React","SwitchPrimitives","jsx","Switch","className","props","ref","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":"yCAAA,UAAYA,MAAW,QAajB,cAAAC,MAAA,oBAHN,IAAMC,EAAc,aAClB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAC,OAAI,UAAU,gCACb,SAAAA,EAAC,SACC,IAAKI,EACL,UAAWC,EAAG,gCAAiCH,CAAS,EACvD,GAAGC,EACN,EACF,CAEJ,EAEAF,EAAM,YAAc,QASpB,IAAMK,EAAoB,aACxB,CAAC,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAC,SAAM,IAAKI,EAAK,UAAWC,EAAG,kBAAmBH,CAAS,EAAI,GAAGC,EAAO,CAE7E,EAEAG,EAAY,YAAc,cAS1B,IAAMC,EAAkB,aACtB,CAAC,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAC,SACC,IAAKI,EACL,UAAWC,EAAG,6BAA8BH,CAAS,EACpD,GAAGC,EACN,CAEJ,EAEAI,EAAU,YAAc,YASxB,IAAMC,EAAoB,aACxB,CAAC,CAAE,UAAAN,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAC,SACC,IAAKI,EACL,UAAWC,EACT,0DACAH,CACF,EACC,GAAGC,EACN,CAEJ,EAEAK,EAAY,YAAc,cAS1B,IAAMC,EAAiB,aACrB,CAAC,CAAE,UAAAP,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAC,MACC,IAAKI,EACL,UAAWC,EACT,uEACAH,CACF,EACC,GAAGC,EACN,CAEJ,EAEAM,EAAS,YAAc,WASvB,IAAMC,EAAkB,aACtB,CAAC,CAAE,UAAAR,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAC,MACC,IAAKI,EACL,UAAWC,EACT,mGACAH,CACF,EACC,GAAGC,EACN,CAEJ,EAEAO,EAAU,YAAc,YASxB,IAAMC,EAAkB,aACtB,CAAC,CAAE,UAAAT,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAC,MACC,IAAKI,EACL,UAAWC,EACT,iDACAH,CACF,EACC,GAAGC,EACN,CAEJ,EAEAQ,EAAU,YAAc,YASxB,IAAMC,EAAqB,aACzB,CAAC,CAAE,UAAAV,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAC,WACC,IAAKI,EACL,UAAWC,EAAG,qCAAsCH,CAAS,EAC5D,GAAGC,EACN,CAEJ,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>(\n ({ className, ...props }, ref) => (\n <div className=\"relative w-full overflow-auto\">\n <table\n ref={ref}\n className={cn('w-full caption-bottom text-sm', className)}\n {...props}\n />\n </div>\n ),\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>(\n ({ className, ...props }, ref) => (\n <thead ref={ref} className={cn('[&_tr]:border-b', className)} {...props} />\n ),\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>(\n ({ className, ...props }, ref) => (\n <tbody\n ref={ref}\n className={cn('[&_tr:last-child]:border-0', className)}\n {...props}\n />\n ),\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>(\n ({ className, ...props }, ref) => (\n <tfoot\n ref={ref}\n className={cn(\n 'bg-muted/50 border-t font-medium [&>tr]:last:border-b-0',\n className,\n )}\n {...props}\n />\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>(\n ({ className, ...props }, ref) => (\n <tr\n ref={ref}\n className={cn(\n 'hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition',\n className,\n )}\n {...props}\n />\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>(\n ({ 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);\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>(\n ({ className, ...props }, ref) => (\n <td\n ref={ref}\n className={cn(\n 'p-4 align-middle [&:has([role=checkbox])]:pr-0',\n className,\n )}\n {...props}\n />\n ),\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 }, ref) => (\n <caption\n ref={ref}\n className={cn('text-muted-foreground mt-4 text-sm', className)}\n {...props}\n />\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
+ {"version":3,"sources":["../../src/react/table.tsx"],"names":["React","jsx","Table","className","props","ref","cn","TableHeader","TableBody","TableFooter","TableRow","TableHead","TableCell","TableCaption"],"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","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 +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>(\n ({ className, ...props }, ref) => (\n <div className=\"relative w-full overflow-auto\">\n <table\n ref={ref}\n className={cn('w-full caption-bottom text-sm', className)}\n {...props}\n />\n </div>\n ),\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>(\n ({ className, ...props }, ref) => (\n <thead ref={ref} className={cn('[&_tr]:border-b', className)} {...props} />\n ),\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>(\n ({ className, ...props }, ref) => (\n <tbody\n ref={ref}\n className={cn('[&_tr:last-child]:border-0', className)}\n {...props}\n />\n ),\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>(\n ({ className, ...props }, ref) => (\n <tfoot\n ref={ref}\n className={cn(\n 'bg-muted/50 border-t font-medium [&>tr]:last:border-b-0',\n className,\n )}\n {...props}\n />\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>(\n ({ className, ...props }, ref) => (\n <tr\n ref={ref}\n className={cn(\n 'hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition',\n className,\n )}\n {...props}\n />\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>(\n ({ 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);\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>(\n ({ className, ...props }, ref) => (\n <td\n ref={ref}\n className={cn(\n 'p-4 align-middle [&:has([role=checkbox])]:pr-0',\n className,\n )}\n {...props}\n />\n ),\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 }, ref) => (\n <caption\n ref={ref}\n className={cn('text-muted-foreground mt-4 text-sm', className)}\n {...props}\n />\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":"0CAAA,UAAYA,MAAW,QAajB,cAAAC,MAAA,oBAHN,IAAMC,EAAc,aAClB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAC,OAAI,UAAU,gCACb,SAAAA,EAAC,SACC,IAAKI,EACL,UAAWC,EAAG,gCAAiCH,CAAS,EACvD,GAAGC,EACN,EACF,CAEJ,EAEAF,EAAM,YAAc,QASpB,IAAMK,EAAoB,aACxB,CAAC,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAC,SAAM,IAAKI,EAAK,UAAWC,EAAG,kBAAmBH,CAAS,EAAI,GAAGC,EAAO,CAE7E,EAEAG,EAAY,YAAc,cAS1B,IAAMC,EAAkB,aACtB,CAAC,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAC,SACC,IAAKI,EACL,UAAWC,EAAG,6BAA8BH,CAAS,EACpD,GAAGC,EACN,CAEJ,EAEAI,EAAU,YAAc,YASxB,IAAMC,EAAoB,aACxB,CAAC,CAAE,UAAAN,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAC,SACC,IAAKI,EACL,UAAWC,EACT,0DACAH,CACF,EACC,GAAGC,EACN,CAEJ,EAEAK,EAAY,YAAc,cAS1B,IAAMC,EAAiB,aACrB,CAAC,CAAE,UAAAP,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAC,MACC,IAAKI,EACL,UAAWC,EACT,uEACAH,CACF,EACC,GAAGC,EACN,CAEJ,EAEAM,EAAS,YAAc,WASvB,IAAMC,EAAkB,aACtB,CAAC,CAAE,UAAAR,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAC,MACC,IAAKI,EACL,UAAWC,EACT,mGACAH,CACF,EACC,GAAGC,EACN,CAEJ,EAEAO,EAAU,YAAc,YASxB,IAAMC,EAAkB,aACtB,CAAC,CAAE,UAAAT,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAC,MACC,IAAKI,EACL,UAAWC,EACT,iDACAH,CACF,EACC,GAAGC,EACN,CAEJ,EAEAQ,EAAU,YAAc,YASxB,IAAMC,EAAqB,aACzB,CAAC,CAAE,UAAAV,EAAW,GAAGC,CAAM,EAAGC,IACxBJ,EAAC,WACC,IAAKI,EACL,UAAWC,EAAG,qCAAsCH,CAAS,EAC5D,GAAGC,EACN,CAEJ,EAEAS,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 }, 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":"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","names":["React","jsx","Table","className","props","ref","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":"sDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAmB,uBAmB3B,cAAAC,MAAA,oBAXJ,IAAMC,EAAqB,OASrBC,EAAiB,aACrB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACxBL,EAAe,OAAd,CACC,IAAKK,EACL,UAAWC,EACT,mGACAH,CACF,EACC,GAAGC,EACN,CAEJ,EAEAF,EAAS,YAA4B,OAAK,YAW1C,IAAMK,EAAoB,aACxB,CAAC,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAGC,IACxBL,EAAe,UAAd,CACC,IAAKK,EACL,UAAWC,EACT,4WACAH,CACF,EACC,GAAGC,EACN,CAEJ,EAEAG,EAAY,YAA4B,UAAQ,YAWhD,IAAMC,EAAoB,aACxB,CAAC,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAAGC,IACxBL,EAAe,UAAd,CACC,IAAKK,EACL,UAAWC,EACT,+FACAH,CACF,EACC,GAAGC,EACN,CAEJ,EAEAI,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>(\n ({ 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);\n\nTabsList.displayName = TabsPrimitive.List.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: TabsTrigger\n * -------------------------------------------------------------------------- */\n\ntype TabsTriggerElement = React.ElementRef<typeof TabsPrimitive.Trigger>;\ntype TabsTriggerProps = React.ComponentPropsWithoutRef<\n typeof TabsPrimitive.Trigger\n>;\n\nconst TabsTrigger = React.forwardRef<TabsTriggerElement, TabsTriggerProps>(\n ({ 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);\n\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: TabsContent\n * -------------------------------------------------------------------------- */\n\ntype TabsContentElement = React.ElementRef<typeof TabsPrimitive.Content>;\ntype TabsContentProps = React.ComponentPropsWithoutRef<\n typeof TabsPrimitive.Content\n>;\n\nconst TabsContent = React.forwardRef<TabsContentElement, TabsContentProps>(\n ({ 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);\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","ref","cn","TabsTrigger","TabsContent"],"mappings":"sDAEA,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 +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>(\n ({ 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);\n\nTabsList.displayName = TabsPrimitive.List.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: TabsTrigger\n * -------------------------------------------------------------------------- */\n\ntype TabsTriggerElement = React.ElementRef<typeof TabsPrimitive.Trigger>;\ntype TabsTriggerProps = React.ComponentPropsWithoutRef<\n typeof TabsPrimitive.Trigger\n>;\n\nconst TabsTrigger = React.forwardRef<TabsTriggerElement, TabsTriggerProps>(\n ({ 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);\n\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: TabsContent\n * -------------------------------------------------------------------------- */\n\ntype TabsContentElement = React.ElementRef<typeof TabsPrimitive.Content>;\ntype TabsContentProps = React.ComponentPropsWithoutRef<\n typeof TabsPrimitive.Content\n>;\n\nconst TabsContent = React.forwardRef<TabsContentElement, TabsContentProps>(\n ({ 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);\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":"uDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAmB,uBAmB3B,cAAAC,MAAA,oBAXJ,IAAMC,EAAqB,OASrBC,EAAiB,aACrB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACxBL,EAAe,OAAd,CACC,IAAKK,EACL,UAAWC,EACT,mGACAH,CACF,EACC,GAAGC,EACN,CAEJ,EAEAF,EAAS,YAA4B,OAAK,YAW1C,IAAMK,EAAoB,aACxB,CAAC,CAAE,UAAAJ,EAAW,GAAGC,CAAM,EAAGC,IACxBL,EAAe,UAAd,CACC,IAAKK,EACL,UAAWC,EACT,4WACAH,CACF,EACC,GAAGC,EACN,CAEJ,EAEAG,EAAY,YAA4B,UAAQ,YAWhD,IAAMC,EAAoB,aACxB,CAAC,CAAE,UAAAL,EAAW,GAAGC,CAAM,EAAGC,IACxBL,EAAe,UAAd,CACC,IAAKK,EACL,UAAWC,EACT,+FACAH,CACF,EACC,GAAGC,EACN,CAEJ,EAEAI,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 }, 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":"uDAEA,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 +1 @@
1
- {"version":3,"sources":["../../src/react/text.tsx"],"names":["React","Slot","jsx","Text","Tag","asChild","props","ref"],"mappings":"AAAA,UAAYA,MAAW,QACvB,OAAS,QAAAC,MAAY,uBAyBV,cAAAC,MAAA,oBAJX,IAAMC,EAAa,aACjB,CAAC,CAAE,GAAIC,EAAM,IAAK,QAAAC,EAAS,GAAGC,CAAM,EAAGC,IAG9BL,EAFWG,EAAUJ,EAAOG,EAE3B,CAAU,IAAKG,EAAM,GAAGD,EAAO,CAE3C,EAEAH,EAAK,YAAc","sourcesContent":["import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\n\n/* -----------------------------------------------------------------------------\n * Component: Text\n * -------------------------------------------------------------------------- */\n\ntype TextElement = HTMLParagraphElement;\n\ninterface TextParagraphProps\n extends React.HTMLAttributes<HTMLParagraphElement> {\n as?: 'p';\n}\n\ninterface TextSpanProps extends React.HTMLAttributes<HTMLSpanElement> {\n as: 'span';\n}\n\ntype TextProps = (TextParagraphProps | TextSpanProps) & {\n asChild?: boolean;\n};\n\nconst Text = React.forwardRef<TextElement, TextProps>(\n ({ as: Tag = 'p', asChild, ...props }, ref) => {\n const Component = asChild ? Slot : Tag;\n\n return <Component ref={ref} {...props} />;\n },\n);\n\nText.displayName = 'Text';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Text, type TextProps };\n"]}
1
+ {"version":3,"sources":["../../src/react/text.tsx"],"names":["React","Slot","jsx","Text","Tag","asChild","props","ref"],"mappings":"AAAA,UAAYA,MAAW,QACvB,OAAS,QAAAC,MAAY,uBAuBZ,cAAAC,MAAA,oBAHT,IAAMC,EAAa,aAAmC,CAAC,CAAE,GAAIC,EAAM,IAAK,QAAAC,EAAS,GAAGC,CAAM,EAAGC,IAGpFL,EAFWG,EAAUJ,EAAOG,EAE3B,CAAU,IAAKG,EAAM,GAAGD,EAAO,CACxC,EAEDH,EAAK,YAAc","sourcesContent":["import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\n\n/* -----------------------------------------------------------------------------\n * Component: Text\n * -------------------------------------------------------------------------- */\n\ntype TextElement = HTMLParagraphElement;\n\ninterface TextParagraphProps extends React.HTMLAttributes<HTMLParagraphElement> {\n as?: 'p';\n}\n\ninterface TextSpanProps extends React.HTMLAttributes<HTMLSpanElement> {\n as: 'span';\n}\n\ntype TextProps = (TextParagraphProps | TextSpanProps) & {\n asChild?: boolean;\n};\n\nconst Text = React.forwardRef<TextElement, TextProps>(({ as: Tag = 'p', asChild, ...props }, ref) => {\n const Component = asChild ? Slot : Tag;\n\n return <Component ref={ref} {...props} />;\n});\n\nText.displayName = 'Text';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Text, type TextProps };\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/text.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\n\n/* -----------------------------------------------------------------------------\n * Component: Text\n * -------------------------------------------------------------------------- */\n\ntype TextElement = HTMLParagraphElement;\n\ninterface TextParagraphProps\n extends React.HTMLAttributes<HTMLParagraphElement> {\n as?: 'p';\n}\n\ninterface TextSpanProps extends React.HTMLAttributes<HTMLSpanElement> {\n as: 'span';\n}\n\ntype TextProps = (TextParagraphProps | TextSpanProps) & {\n asChild?: boolean;\n};\n\nconst Text = React.forwardRef<TextElement, TextProps>(\n ({ as: Tag = 'p', asChild, ...props }, ref) => {\n const Component = asChild ? Slot : Tag;\n\n return <Component ref={ref} {...props} />;\n },\n);\n\nText.displayName = 'Text';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Text, type TextProps };\n"],"mappings":"AAAA,UAAYA,MAAW,QACvB,OAAS,QAAAC,MAAY,uBAyBV,cAAAC,MAAA,oBAJX,IAAMC,EAAa,aACjB,CAAC,CAAE,GAAIC,EAAM,IAAK,QAAAC,EAAS,GAAGC,CAAM,EAAGC,IAG9BL,EAFWG,EAAUJ,EAAOG,EAE3B,CAAU,IAAKG,EAAM,GAAGD,EAAO,CAE3C,EAEAH,EAAK,YAAc","names":["React","Slot","jsx","Text","Tag","asChild","props","ref"]}
1
+ {"version":3,"sources":["../../src/react/text.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\n\n/* -----------------------------------------------------------------------------\n * Component: Text\n * -------------------------------------------------------------------------- */\n\ntype TextElement = HTMLParagraphElement;\n\ninterface TextParagraphProps extends React.HTMLAttributes<HTMLParagraphElement> {\n as?: 'p';\n}\n\ninterface TextSpanProps extends React.HTMLAttributes<HTMLSpanElement> {\n as: 'span';\n}\n\ntype TextProps = (TextParagraphProps | TextSpanProps) & {\n asChild?: boolean;\n};\n\nconst Text = React.forwardRef<TextElement, TextProps>(({ as: Tag = 'p', asChild, ...props }, ref) => {\n const Component = asChild ? Slot : Tag;\n\n return <Component ref={ref} {...props} />;\n});\n\nText.displayName = 'Text';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Text, type TextProps };\n"],"mappings":"AAAA,UAAYA,MAAW,QACvB,OAAS,QAAAC,MAAY,uBAuBZ,cAAAC,MAAA,oBAHT,IAAMC,EAAa,aAAmC,CAAC,CAAE,GAAIC,EAAM,IAAK,QAAAC,EAAS,GAAGC,CAAM,EAAGC,IAGpFL,EAFWG,EAAUJ,EAAOG,EAE3B,CAAU,IAAKG,EAAM,GAAGD,EAAO,CACxC,EAEDH,EAAK,YAAc","names":["React","Slot","jsx","Text","Tag","asChild","props","ref"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/textarea.tsx"],"names":["React","jsx","Textarea","className","props","ref","cn"],"mappings":"yCAAA,UAAYA,MAAW,QAajB,cAAAC,MAAA,oBAHN,IAAMC,EAAiB,aACrB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAEtBJ,EAAC,YACC,UAAWK,EACT,gQACAH,CACF,EACA,IAAKE,EACJ,GAAGD,EACN,CAGN,EAEAF,EAAS,YAAc","sourcesContent":["import * as React from 'react';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Textarea\n * -------------------------------------------------------------------------- */\n\ntype TextareaElement = HTMLTextAreaElement;\ntype TextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>;\n\nconst Textarea = React.forwardRef<TextareaElement, TextareaProps>(\n ({ className, ...props }, ref) => {\n return (\n <textarea\n className={cn(\n 'border-input placeholder:text-muted-foreground flex min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-sm shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-not-allowed disabled:opacity-50',\n className,\n )}\n ref={ref}\n {...props}\n />\n );\n },\n);\n\nTextarea.displayName = 'Textarea';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Textarea, type TextareaProps };\n"]}
1
+ {"version":3,"sources":["../../src/react/textarea.tsx"],"names":["React","jsx","Textarea","className","props","ref","cn"],"mappings":"yCAAA,UAAYA,MAAW,QAYnB,cAAAC,MAAA,oBAFJ,IAAMC,EAAiB,aAA2C,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAExFJ,EAAC,YACC,UAAWK,EACT,gQACAH,CACF,EACA,IAAKE,EACJ,GAAGD,EACN,CAEH,EAEDF,EAAS,YAAc","sourcesContent":["import * as React from 'react';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Textarea\n * -------------------------------------------------------------------------- */\n\ntype TextareaElement = HTMLTextAreaElement;\ntype TextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>;\n\nconst Textarea = React.forwardRef<TextareaElement, TextareaProps>(({ className, ...props }, ref) => {\n return (\n <textarea\n className={cn(\n 'border-input placeholder:text-muted-foreground flex min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-sm shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-not-allowed disabled:opacity-50',\n className,\n )}\n ref={ref}\n {...props}\n />\n );\n});\n\nTextarea.displayName = 'Textarea';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Textarea, type TextareaProps };\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/textarea.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Textarea\n * -------------------------------------------------------------------------- */\n\ntype TextareaElement = HTMLTextAreaElement;\ntype TextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>;\n\nconst Textarea = React.forwardRef<TextareaElement, TextareaProps>(\n ({ className, ...props }, ref) => {\n return (\n <textarea\n className={cn(\n 'border-input placeholder:text-muted-foreground flex min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-sm shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-not-allowed disabled:opacity-50',\n className,\n )}\n ref={ref}\n {...props}\n />\n );\n },\n);\n\nTextarea.displayName = 'Textarea';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Textarea, type TextareaProps };\n"],"mappings":"0CAAA,UAAYA,MAAW,QAajB,cAAAC,MAAA,oBAHN,IAAMC,EAAiB,aACrB,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAEtBJ,EAAC,YACC,UAAWK,EACT,gQACAH,CACF,EACA,IAAKE,EACJ,GAAGD,EACN,CAGN,EAEAF,EAAS,YAAc","names":["React","jsx","Textarea","className","props","ref","cn"]}
1
+ {"version":3,"sources":["../../src/react/textarea.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: Textarea\n * -------------------------------------------------------------------------- */\n\ntype TextareaElement = HTMLTextAreaElement;\ntype TextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>;\n\nconst Textarea = React.forwardRef<TextareaElement, TextareaProps>(({ className, ...props }, ref) => {\n return (\n <textarea\n className={cn(\n 'border-input placeholder:text-muted-foreground flex min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-sm shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-not-allowed disabled:opacity-50',\n className,\n )}\n ref={ref}\n {...props}\n />\n );\n});\n\nTextarea.displayName = 'Textarea';\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { Textarea, type TextareaProps };\n"],"mappings":"0CAAA,UAAYA,MAAW,QAYnB,cAAAC,MAAA,oBAFJ,IAAMC,EAAiB,aAA2C,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IAExFJ,EAAC,YACC,UAAWK,EACT,gQACAH,CACF,EACA,IAAKE,EACJ,GAAGD,EACN,CAEH,EAEDF,EAAS,YAAc","names":["React","jsx","Textarea","className","props","ref","cn"]}
@@ -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 _chunkSCPFGC2Xjs = require('../chunk-SCPFGC2X.js');var _chunkHQ4AUOQMjs = require('../chunk-HQ4AUOQM.js');var _react = require('react'); var s = _interopRequireWildcard(_react);var _reacttogglegroup = require('@radix-ui/react-toggle-group'); var e = _interopRequireWildcard(_reacttogglegroup);var _reactcontext = require('@radix-ui/react-context');var _jsxruntime = require('react/jsx-runtime');var u="ToggleGroup",[R]=_reactcontext.createContextScope.call(void 0, u,[_reacttogglegroup.createToggleGroupScope]),n=_reacttogglegroup.createToggleGroupScope.call(void 0, ),[y,I]=R(u),v= exports.ToggleGroup =s.forwardRef(({__scopeToggleGroup:o,children:t,className:r,variant:p,size:g,...l},i)=>{let P=n(o);return _jsxruntime.jsx.call(void 0, y,{scope:o,size:g,variant:p,children:_jsxruntime.jsx.call(void 0, e.Root,{ref:i,className:_chunkHQ4AUOQMjs.b.call(void 0, "flex items-center justify-center gap-1",r),...P,...l,children:t})})});v.displayName=u;var a="ToggleGroupItem",E= exports.ToggleGroupItem =s.forwardRef(({__scopeToggleGroup:o,children:t,className:r,...p},g)=>{let l=I(a,o),i=n(o);return _jsxruntime.jsx.call(void 0, e.Item,{ref:g,className:_chunkSCPFGC2Xjs.a.call(void 0, {...l,className:r}),...i,...p,children:t})});E.displayName=a;exports.ToggleGroup = v; exports.ToggleGroupItem = E;
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 _chunkSCXRD727js = require('../chunk-SCXRD727.js');var _chunkHQ4AUOQMjs = require('../chunk-HQ4AUOQM.js');var _react = require('react'); var s = _interopRequireWildcard(_react);var _reacttogglegroup = require('@radix-ui/react-toggle-group'); var e = _interopRequireWildcard(_reacttogglegroup);var _reactcontext = require('@radix-ui/react-context');var _jsxruntime = require('react/jsx-runtime');var u="ToggleGroup",[R]=_reactcontext.createContextScope.call(void 0, u,[_reacttogglegroup.createToggleGroupScope]),n=_reacttogglegroup.createToggleGroupScope.call(void 0, ),[y,I]=R(u),v= exports.ToggleGroup =s.forwardRef(({__scopeToggleGroup:o,children:t,className:r,variant:p,size:g,...i},l)=>{let P=n(o);return _jsxruntime.jsx.call(void 0, y,{scope:o,size:g,variant:p,children:_jsxruntime.jsx.call(void 0, e.Root,{ref:l,className:_chunkHQ4AUOQMjs.b.call(void 0, "flex items-center justify-center gap-1",r),...P,...i,children:t})})});v.displayName=u;var a="ToggleGroupItem",E= exports.ToggleGroupItem =s.forwardRef(({__scopeToggleGroup:o,children:t,className:r,...p},g)=>{let i=I(a,o),l=n(o);return _jsxruntime.jsx.call(void 0, e.Item,{ref:g,className:_chunkSCXRD727js.a.call(void 0, {...i,className:r}),...l,...p,children:t})});E.displayName=a;exports.ToggleGroup = v; exports.ToggleGroupItem = E;
2
2
  //# sourceMappingURL=toggle-group.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/toggle-group.tsx"],"names":["React","ToggleGroupPrimitive","createToggleGroupScope","createContextScope","jsx","TOGGLE_GROUP_NAME","createToggleGroupContext","useToggleGroupScope","ToggleGroupProvider","useToggleGroupContext","ToggleGroup","__scopeToggleGroup","children","className","variant","size","props","ref","toggleGroupScope","cn","TOGGLE_GROUP_ITEM_NAME","ToggleGroupItem","context","toggleVariants"],"mappings":"+FAEA,UAAYA,MAAW,QACvB,UAAYC,MAA0B,+BACtC,OAAS,0BAAAC,MAA8B,+BACvC,OAAS,sBAAAC,MAAsC,0BA+CvC,cAAAC,MAAA,oBAvCR,IAAMC,EAAoB,cAIpB,CAACC,CAAwB,EAAIH,EAAmBE,EAAmB,CACvEH,CACF,CAAC,EAEKK,EAAsBL,EAAuB,EAE7C,CAACM,EAAqBC,CAAqB,EAC/CH,EAA8CD,CAAiB,EAQ3DK,EAAoB,aACxB,CACE,CACE,mBAAAC,EACA,SAAAC,EACA,UAAAC,EACA,QAAAC,EACA,KAAAC,EACA,GAAGC,CACL,EACAC,IACG,CACH,IAAMC,EAAmBX,EAAoBI,CAAkB,EAE/D,OACEP,EAACI,EAAA,CACC,MAAOG,EACP,KAAMI,EACN,QAASD,EAET,SAAAV,EAAsB,OAArB,CACC,IAAKa,EACL,UAAWE,EAAG,yCAA0CN,CAAS,EAChE,GAAGK,EACH,GAAGF,EAEH,SAAAJ,EACH,EACF,CAEJ,CACF,EAEAF,EAAY,YAAcL,EAM1B,IAAMe,EAAyB,kBASzBC,EAAwB,aAI5B,CACE,CACE,mBAAAV,EACA,SAAAC,EACA,UAAAC,EACA,GAAGG,CACL,EACAC,IACG,CACH,IAAMK,EAAUb,EACdW,EACAT,CACF,EACMO,EAAmBX,EAAoBI,CAAkB,EAE/D,OACEP,EAAsB,OAArB,CACC,IAAKa,EACL,UAAWM,EAAe,CAAE,GAAGD,EAAS,UAAAT,CAAU,CAAC,EAClD,GAAGK,EACH,GAAGF,EAEH,SAAAJ,EACH,CAEJ,CACF,EAEAS,EAAgB,YAAcD","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';\nimport { createToggleGroupScope } from '@radix-ui/react-toggle-group';\nimport { createContextScope, type Scope } from '@radix-ui/react-context';\nimport { cn } from '../lib/utils';\nimport { toggleVariants, type ToggleVariantsProps } from './toggle';\n\n/* -----------------------------------------------------------------------------\n * Component: ToggleGroup\n * -------------------------------------------------------------------------- */\n\nconst TOGGLE_GROUP_NAME = 'ToggleGroup';\n\ntype ScopedProps<P> = P & { __scopeToggleGroup?: Scope };\n\nconst [createToggleGroupContext] = createContextScope(TOGGLE_GROUP_NAME, [\n createToggleGroupScope,\n]);\n\nconst useToggleGroupScope = createToggleGroupScope();\n\nconst [ToggleGroupProvider, useToggleGroupContext] =\n createToggleGroupContext<ToggleVariantsProps>(TOGGLE_GROUP_NAME);\n\ntype ToggleGroupElement = React.ElementRef<typeof ToggleGroupPrimitive.Root>;\ntype ToggleGroupProps = React.ComponentPropsWithoutRef<\n typeof ToggleGroupPrimitive.Root\n> &\n ToggleVariantsProps;\n\nconst ToggleGroup = React.forwardRef<ToggleGroupElement, ToggleGroupProps>(\n (\n {\n __scopeToggleGroup,\n children,\n className,\n variant,\n size,\n ...props\n }: ScopedProps<ToggleGroupProps>,\n ref,\n ) => {\n const toggleGroupScope = useToggleGroupScope(__scopeToggleGroup);\n\n return (\n <ToggleGroupProvider\n scope={__scopeToggleGroup}\n size={size}\n variant={variant}\n >\n <ToggleGroupPrimitive.Root\n ref={ref}\n className={cn('flex items-center justify-center gap-1', className)}\n {...toggleGroupScope}\n {...props}\n >\n {children}\n </ToggleGroupPrimitive.Root>\n </ToggleGroupProvider>\n );\n },\n);\n\nToggleGroup.displayName = TOGGLE_GROUP_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: ToggleGroupItem\n * -------------------------------------------------------------------------- */\n\nconst TOGGLE_GROUP_ITEM_NAME = 'ToggleGroupItem';\n\ntype ToggleGroupItemElement = React.ElementRef<\n typeof ToggleGroupPrimitive.Item\n>;\ntype ToggleGroupItemProps = React.ComponentPropsWithoutRef<\n typeof ToggleGroupPrimitive.Item\n>;\n\nconst ToggleGroupItem = React.forwardRef<\n ToggleGroupItemElement,\n ToggleGroupItemProps\n>(\n (\n {\n __scopeToggleGroup,\n children,\n className,\n ...props\n }: ScopedProps<ToggleGroupItemProps>,\n ref,\n ) => {\n const context = useToggleGroupContext(\n TOGGLE_GROUP_ITEM_NAME,\n __scopeToggleGroup,\n );\n const toggleGroupScope = useToggleGroupScope(__scopeToggleGroup);\n\n return (\n <ToggleGroupPrimitive.Item\n ref={ref}\n className={toggleVariants({ ...context, className })}\n {...toggleGroupScope}\n {...props}\n >\n {children}\n </ToggleGroupPrimitive.Item>\n );\n },\n);\n\nToggleGroupItem.displayName = TOGGLE_GROUP_ITEM_NAME;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n ToggleGroup,\n ToggleGroupItem,\n type ToggleGroupProps,\n type ToggleGroupItemProps,\n};\n"]}
1
+ {"version":3,"sources":["../../src/react/toggle-group.tsx"],"names":["React","ToggleGroupPrimitive","createToggleGroupScope","createContextScope","jsx","TOGGLE_GROUP_NAME","createToggleGroupContext","useToggleGroupScope","ToggleGroupProvider","useToggleGroupContext","ToggleGroup","__scopeToggleGroup","children","className","variant","size","props","ref","toggleGroupScope","cn","TOGGLE_GROUP_ITEM_NAME","ToggleGroupItem","context","toggleVariants"],"mappings":"+FAEA,UAAYA,MAAW,QACvB,UAAYC,MAA0B,+BACtC,OAAS,0BAAAC,MAA8B,+BACvC,OAAS,sBAAAC,MAA0B,0BA6B3B,cAAAC,MAAA,oBAnBR,IAAMC,EAAoB,cAIpB,CAACC,CAAwB,EAAIH,EAAmBE,EAAmB,CAACH,CAAsB,CAAC,EAE3FK,EAAsBL,EAAuB,EAE7C,CAACM,EAAqBC,CAAqB,EAAIH,EAA8CD,CAAiB,EAK9GK,EAAoB,aACxB,CAAC,CAAE,mBAAAC,EAAoB,SAAAC,EAAU,UAAAC,EAAW,QAAAC,EAAS,KAAAC,EAAM,GAAGC,CAAM,EAAkCC,IAAQ,CAC5G,IAAMC,EAAmBX,EAAoBI,CAAkB,EAE/D,OACEP,EAACI,EAAA,CAAoB,MAAOG,EAAoB,KAAMI,EAAM,QAASD,EACnE,SAAAV,EAAsB,OAArB,CACC,IAAKa,EACL,UAAWE,EAAG,yCAA0CN,CAAS,EAChE,GAAGK,EACH,GAAGF,EAEH,SAAAJ,EACH,EACF,CAEJ,CACF,EAEAF,EAAY,YAAcL,EAM1B,IAAMe,EAAyB,kBAKzBC,EAAwB,aAC5B,CAAC,CAAE,mBAAAV,EAAoB,SAAAC,EAAU,UAAAC,EAAW,GAAGG,CAAM,EAAsCC,IAAQ,CACjG,IAAMK,EAAUb,EAAsBW,EAAwBT,CAAkB,EAC1EO,EAAmBX,EAAoBI,CAAkB,EAE/D,OACEP,EAAsB,OAArB,CACC,IAAKa,EACL,UAAWM,EAAe,CAAE,GAAGD,EAAS,UAAAT,CAAU,CAAC,EAClD,GAAGK,EACH,GAAGF,EAEH,SAAAJ,EACH,CAEJ,CACF,EAEAS,EAAgB,YAAcD","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';\nimport { createToggleGroupScope } from '@radix-ui/react-toggle-group';\nimport { createContextScope } from '@radix-ui/react-context';\nimport { cn } from '../lib/utils';\nimport { toggleVariants } from './toggle';\nimport type { ToggleVariantsProps } from './toggle';\nimport type { Scope } from '@radix-ui/react-context';\n\n/* -----------------------------------------------------------------------------\n * Component: ToggleGroup\n * -------------------------------------------------------------------------- */\n\nconst TOGGLE_GROUP_NAME = 'ToggleGroup';\n\ntype ScopedProps<P> = P & { __scopeToggleGroup?: Scope };\n\nconst [createToggleGroupContext] = createContextScope(TOGGLE_GROUP_NAME, [createToggleGroupScope]);\n\nconst useToggleGroupScope = createToggleGroupScope();\n\nconst [ToggleGroupProvider, useToggleGroupContext] = createToggleGroupContext<ToggleVariantsProps>(TOGGLE_GROUP_NAME);\n\ntype ToggleGroupElement = React.ElementRef<typeof ToggleGroupPrimitive.Root>;\ntype ToggleGroupProps = React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root> & ToggleVariantsProps;\n\nconst ToggleGroup = React.forwardRef<ToggleGroupElement, ToggleGroupProps>(\n ({ __scopeToggleGroup, children, className, variant, size, ...props }: ScopedProps<ToggleGroupProps>, ref) => {\n const toggleGroupScope = useToggleGroupScope(__scopeToggleGroup);\n\n return (\n <ToggleGroupProvider scope={__scopeToggleGroup} size={size} variant={variant}>\n <ToggleGroupPrimitive.Root\n ref={ref}\n className={cn('flex items-center justify-center gap-1', className)}\n {...toggleGroupScope}\n {...props}\n >\n {children}\n </ToggleGroupPrimitive.Root>\n </ToggleGroupProvider>\n );\n },\n);\n\nToggleGroup.displayName = TOGGLE_GROUP_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: ToggleGroupItem\n * -------------------------------------------------------------------------- */\n\nconst TOGGLE_GROUP_ITEM_NAME = 'ToggleGroupItem';\n\ntype ToggleGroupItemElement = React.ElementRef<typeof ToggleGroupPrimitive.Item>;\ntype ToggleGroupItemProps = React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item>;\n\nconst ToggleGroupItem = React.forwardRef<ToggleGroupItemElement, ToggleGroupItemProps>(\n ({ __scopeToggleGroup, children, className, ...props }: ScopedProps<ToggleGroupItemProps>, ref) => {\n const context = useToggleGroupContext(TOGGLE_GROUP_ITEM_NAME, __scopeToggleGroup);\n const toggleGroupScope = useToggleGroupScope(__scopeToggleGroup);\n\n return (\n <ToggleGroupPrimitive.Item\n ref={ref}\n className={toggleVariants({ ...context, className })}\n {...toggleGroupScope}\n {...props}\n >\n {children}\n </ToggleGroupPrimitive.Item>\n );\n },\n);\n\nToggleGroupItem.displayName = TOGGLE_GROUP_ITEM_NAME;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { ToggleGroup, ToggleGroupItem, type ToggleGroupProps, type ToggleGroupItemProps };\n"]}
@@ -1,2 +1,2 @@
1
- "use client";import{a as c}from"../chunk-GDMHMSJ2.mjs";import{b as G}from"../chunk-LEUB3C3L.mjs";import*as s from"react";import*as e from"@radix-ui/react-toggle-group";import{createToggleGroupScope as T}from"@radix-ui/react-toggle-group";import{createContextScope as f}from"@radix-ui/react-context";import{jsx as m}from"react/jsx-runtime";var u="ToggleGroup",[R]=f(u,[T]),n=T(),[y,I]=R(u),v=s.forwardRef(({__scopeToggleGroup:o,children:t,className:r,variant:p,size:g,...l},i)=>{let P=n(o);return m(y,{scope:o,size:g,variant:p,children:m(e.Root,{ref:i,className:G("flex items-center justify-center gap-1",r),...P,...l,children:t})})});v.displayName=u;var a="ToggleGroupItem",E=s.forwardRef(({__scopeToggleGroup:o,children:t,className:r,...p},g)=>{let l=I(a,o),i=n(o);return m(e.Item,{ref:g,className:c({...l,className:r}),...i,...p,children:t})});E.displayName=a;export{v as ToggleGroup,E as ToggleGroupItem};
1
+ "use client";import{a as G}from"../chunk-MFYACCZV.mjs";import{b as c}from"../chunk-LEUB3C3L.mjs";import*as s from"react";import*as e from"@radix-ui/react-toggle-group";import{createToggleGroupScope as T}from"@radix-ui/react-toggle-group";import{createContextScope as f}from"@radix-ui/react-context";import{jsx as m}from"react/jsx-runtime";var u="ToggleGroup",[R]=f(u,[T]),n=T(),[y,I]=R(u),v=s.forwardRef(({__scopeToggleGroup:o,children:t,className:r,variant:p,size:g,...i},l)=>{let P=n(o);return m(y,{scope:o,size:g,variant:p,children:m(e.Root,{ref:l,className:c("flex items-center justify-center gap-1",r),...P,...i,children:t})})});v.displayName=u;var a="ToggleGroupItem",E=s.forwardRef(({__scopeToggleGroup:o,children:t,className:r,...p},g)=>{let i=I(a,o),l=n(o);return m(e.Item,{ref:g,className:G({...i,className:r}),...l,...p,children:t})});E.displayName=a;export{v as ToggleGroup,E as ToggleGroupItem};
2
2
  //# sourceMappingURL=toggle-group.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/toggle-group.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';\nimport { createToggleGroupScope } from '@radix-ui/react-toggle-group';\nimport { createContextScope, type Scope } from '@radix-ui/react-context';\nimport { cn } from '../lib/utils';\nimport { toggleVariants, type ToggleVariantsProps } from './toggle';\n\n/* -----------------------------------------------------------------------------\n * Component: ToggleGroup\n * -------------------------------------------------------------------------- */\n\nconst TOGGLE_GROUP_NAME = 'ToggleGroup';\n\ntype ScopedProps<P> = P & { __scopeToggleGroup?: Scope };\n\nconst [createToggleGroupContext] = createContextScope(TOGGLE_GROUP_NAME, [\n createToggleGroupScope,\n]);\n\nconst useToggleGroupScope = createToggleGroupScope();\n\nconst [ToggleGroupProvider, useToggleGroupContext] =\n createToggleGroupContext<ToggleVariantsProps>(TOGGLE_GROUP_NAME);\n\ntype ToggleGroupElement = React.ElementRef<typeof ToggleGroupPrimitive.Root>;\ntype ToggleGroupProps = React.ComponentPropsWithoutRef<\n typeof ToggleGroupPrimitive.Root\n> &\n ToggleVariantsProps;\n\nconst ToggleGroup = React.forwardRef<ToggleGroupElement, ToggleGroupProps>(\n (\n {\n __scopeToggleGroup,\n children,\n className,\n variant,\n size,\n ...props\n }: ScopedProps<ToggleGroupProps>,\n ref,\n ) => {\n const toggleGroupScope = useToggleGroupScope(__scopeToggleGroup);\n\n return (\n <ToggleGroupProvider\n scope={__scopeToggleGroup}\n size={size}\n variant={variant}\n >\n <ToggleGroupPrimitive.Root\n ref={ref}\n className={cn('flex items-center justify-center gap-1', className)}\n {...toggleGroupScope}\n {...props}\n >\n {children}\n </ToggleGroupPrimitive.Root>\n </ToggleGroupProvider>\n );\n },\n);\n\nToggleGroup.displayName = TOGGLE_GROUP_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: ToggleGroupItem\n * -------------------------------------------------------------------------- */\n\nconst TOGGLE_GROUP_ITEM_NAME = 'ToggleGroupItem';\n\ntype ToggleGroupItemElement = React.ElementRef<\n typeof ToggleGroupPrimitive.Item\n>;\ntype ToggleGroupItemProps = React.ComponentPropsWithoutRef<\n typeof ToggleGroupPrimitive.Item\n>;\n\nconst ToggleGroupItem = React.forwardRef<\n ToggleGroupItemElement,\n ToggleGroupItemProps\n>(\n (\n {\n __scopeToggleGroup,\n children,\n className,\n ...props\n }: ScopedProps<ToggleGroupItemProps>,\n ref,\n ) => {\n const context = useToggleGroupContext(\n TOGGLE_GROUP_ITEM_NAME,\n __scopeToggleGroup,\n );\n const toggleGroupScope = useToggleGroupScope(__scopeToggleGroup);\n\n return (\n <ToggleGroupPrimitive.Item\n ref={ref}\n className={toggleVariants({ ...context, className })}\n {...toggleGroupScope}\n {...props}\n >\n {children}\n </ToggleGroupPrimitive.Item>\n );\n },\n);\n\nToggleGroupItem.displayName = TOGGLE_GROUP_ITEM_NAME;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n ToggleGroup,\n ToggleGroupItem,\n type ToggleGroupProps,\n type ToggleGroupItemProps,\n};\n"],"mappings":"iGAEA,UAAYA,MAAW,QACvB,UAAYC,MAA0B,+BACtC,OAAS,0BAAAC,MAA8B,+BACvC,OAAS,sBAAAC,MAAsC,0BA+CvC,cAAAC,MAAA,oBAvCR,IAAMC,EAAoB,cAIpB,CAACC,CAAwB,EAAIC,EAAmBF,EAAmB,CACvEG,CACF,CAAC,EAEKC,EAAsBD,EAAuB,EAE7C,CAACE,EAAqBC,CAAqB,EAC/CL,EAA8CD,CAAiB,EAQ3DO,EAAoB,aACxB,CACE,CACE,mBAAAC,EACA,SAAAC,EACA,UAAAC,EACA,QAAAC,EACA,KAAAC,EACA,GAAGC,CACL,EACAC,IACG,CACH,IAAMC,EAAmBX,EAAoBI,CAAkB,EAE/D,OACET,EAACM,EAAA,CACC,MAAOG,EACP,KAAMI,EACN,QAASD,EAET,SAAAZ,EAAsB,OAArB,CACC,IAAKe,EACL,UAAWE,EAAG,yCAA0CN,CAAS,EAChE,GAAGK,EACH,GAAGF,EAEH,SAAAJ,EACH,EACF,CAEJ,CACF,EAEAF,EAAY,YAAcP,EAM1B,IAAMiB,EAAyB,kBASzBC,EAAwB,aAI5B,CACE,CACE,mBAAAV,EACA,SAAAC,EACA,UAAAC,EACA,GAAGG,CACL,EACAC,IACG,CACH,IAAMK,EAAUb,EACdW,EACAT,CACF,EACMO,EAAmBX,EAAoBI,CAAkB,EAE/D,OACET,EAAsB,OAArB,CACC,IAAKe,EACL,UAAWM,EAAe,CAAE,GAAGD,EAAS,UAAAT,CAAU,CAAC,EAClD,GAAGK,EACH,GAAGF,EAEH,SAAAJ,EACH,CAEJ,CACF,EAEAS,EAAgB,YAAcD","names":["React","ToggleGroupPrimitive","createToggleGroupScope","createContextScope","jsx","TOGGLE_GROUP_NAME","createToggleGroupContext","createContextScope","createToggleGroupScope","useToggleGroupScope","ToggleGroupProvider","useToggleGroupContext","ToggleGroup","__scopeToggleGroup","children","className","variant","size","props","ref","toggleGroupScope","cn","TOGGLE_GROUP_ITEM_NAME","ToggleGroupItem","context","toggleVariants"]}
1
+ {"version":3,"sources":["../../src/react/toggle-group.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';\nimport { createToggleGroupScope } from '@radix-ui/react-toggle-group';\nimport { createContextScope } from '@radix-ui/react-context';\nimport { cn } from '../lib/utils';\nimport { toggleVariants } from './toggle';\nimport type { ToggleVariantsProps } from './toggle';\nimport type { Scope } from '@radix-ui/react-context';\n\n/* -----------------------------------------------------------------------------\n * Component: ToggleGroup\n * -------------------------------------------------------------------------- */\n\nconst TOGGLE_GROUP_NAME = 'ToggleGroup';\n\ntype ScopedProps<P> = P & { __scopeToggleGroup?: Scope };\n\nconst [createToggleGroupContext] = createContextScope(TOGGLE_GROUP_NAME, [createToggleGroupScope]);\n\nconst useToggleGroupScope = createToggleGroupScope();\n\nconst [ToggleGroupProvider, useToggleGroupContext] = createToggleGroupContext<ToggleVariantsProps>(TOGGLE_GROUP_NAME);\n\ntype ToggleGroupElement = React.ElementRef<typeof ToggleGroupPrimitive.Root>;\ntype ToggleGroupProps = React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root> & ToggleVariantsProps;\n\nconst ToggleGroup = React.forwardRef<ToggleGroupElement, ToggleGroupProps>(\n ({ __scopeToggleGroup, children, className, variant, size, ...props }: ScopedProps<ToggleGroupProps>, ref) => {\n const toggleGroupScope = useToggleGroupScope(__scopeToggleGroup);\n\n return (\n <ToggleGroupProvider scope={__scopeToggleGroup} size={size} variant={variant}>\n <ToggleGroupPrimitive.Root\n ref={ref}\n className={cn('flex items-center justify-center gap-1', className)}\n {...toggleGroupScope}\n {...props}\n >\n {children}\n </ToggleGroupPrimitive.Root>\n </ToggleGroupProvider>\n );\n },\n);\n\nToggleGroup.displayName = TOGGLE_GROUP_NAME;\n\n/* -----------------------------------------------------------------------------\n * Component: ToggleGroupItem\n * -------------------------------------------------------------------------- */\n\nconst TOGGLE_GROUP_ITEM_NAME = 'ToggleGroupItem';\n\ntype ToggleGroupItemElement = React.ElementRef<typeof ToggleGroupPrimitive.Item>;\ntype ToggleGroupItemProps = React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item>;\n\nconst ToggleGroupItem = React.forwardRef<ToggleGroupItemElement, ToggleGroupItemProps>(\n ({ __scopeToggleGroup, children, className, ...props }: ScopedProps<ToggleGroupItemProps>, ref) => {\n const context = useToggleGroupContext(TOGGLE_GROUP_ITEM_NAME, __scopeToggleGroup);\n const toggleGroupScope = useToggleGroupScope(__scopeToggleGroup);\n\n return (\n <ToggleGroupPrimitive.Item\n ref={ref}\n className={toggleVariants({ ...context, className })}\n {...toggleGroupScope}\n {...props}\n >\n {children}\n </ToggleGroupPrimitive.Item>\n );\n },\n);\n\nToggleGroupItem.displayName = TOGGLE_GROUP_ITEM_NAME;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport { ToggleGroup, ToggleGroupItem, type ToggleGroupProps, type ToggleGroupItemProps };\n"],"mappings":"iGAEA,UAAYA,MAAW,QACvB,UAAYC,MAA0B,+BACtC,OAAS,0BAAAC,MAA8B,+BACvC,OAAS,sBAAAC,MAA0B,0BA6B3B,cAAAC,MAAA,oBAnBR,IAAMC,EAAoB,cAIpB,CAACC,CAAwB,EAAIC,EAAmBF,EAAmB,CAACG,CAAsB,CAAC,EAE3FC,EAAsBD,EAAuB,EAE7C,CAACE,EAAqBC,CAAqB,EAAIL,EAA8CD,CAAiB,EAK9GO,EAAoB,aACxB,CAAC,CAAE,mBAAAC,EAAoB,SAAAC,EAAU,UAAAC,EAAW,QAAAC,EAAS,KAAAC,EAAM,GAAGC,CAAM,EAAkCC,IAAQ,CAC5G,IAAMC,EAAmBX,EAAoBI,CAAkB,EAE/D,OACET,EAACM,EAAA,CAAoB,MAAOG,EAAoB,KAAMI,EAAM,QAASD,EACnE,SAAAZ,EAAsB,OAArB,CACC,IAAKe,EACL,UAAWE,EAAG,yCAA0CN,CAAS,EAChE,GAAGK,EACH,GAAGF,EAEH,SAAAJ,EACH,EACF,CAEJ,CACF,EAEAF,EAAY,YAAcP,EAM1B,IAAMiB,EAAyB,kBAKzBC,EAAwB,aAC5B,CAAC,CAAE,mBAAAV,EAAoB,SAAAC,EAAU,UAAAC,EAAW,GAAGG,CAAM,EAAsCC,IAAQ,CACjG,IAAMK,EAAUb,EAAsBW,EAAwBT,CAAkB,EAC1EO,EAAmBX,EAAoBI,CAAkB,EAE/D,OACET,EAAsB,OAArB,CACC,IAAKe,EACL,UAAWM,EAAe,CAAE,GAAGD,EAAS,UAAAT,CAAU,CAAC,EAClD,GAAGK,EACH,GAAGF,EAEH,SAAAJ,EACH,CAEJ,CACF,EAEAS,EAAgB,YAAcD","names":["React","ToggleGroupPrimitive","createToggleGroupScope","createContextScope","jsx","TOGGLE_GROUP_NAME","createToggleGroupContext","createContextScope","createToggleGroupScope","useToggleGroupScope","ToggleGroupProvider","useToggleGroupContext","ToggleGroup","__scopeToggleGroup","children","className","variant","size","props","ref","toggleGroupScope","cn","TOGGLE_GROUP_ITEM_NAME","ToggleGroupItem","context","toggleVariants"]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunkSCPFGC2Xjs = require('../chunk-SCPFGC2X.js');require('../chunk-HQ4AUOQM.js');exports.Toggle = _chunkSCPFGC2Xjs.b; exports.toggleVariants = _chunkSCPFGC2Xjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunkSCXRD727js = require('../chunk-SCXRD727.js');require('../chunk-HQ4AUOQM.js');exports.Toggle = _chunkSCXRD727js.b; exports.toggleVariants = _chunkSCXRD727js.a;
2
2
  //# sourceMappingURL=toggle.js.map
@@ -1,2 +1,2 @@
1
- "use client";import{a,b}from"../chunk-GDMHMSJ2.mjs";import"../chunk-LEUB3C3L.mjs";export{b as Toggle,a as toggleVariants};
1
+ "use client";import{a,b}from"../chunk-MFYACCZV.mjs";import"../chunk-LEUB3C3L.mjs";export{b as Toggle,a as toggleVariants};
2
2
  //# sourceMappingURL=toggle.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/tooltip.tsx"],"names":["React","TooltipPrimitive","jsx","TooltipProvider","Tooltip","TooltipTrigger","TooltipContent","className","sideOffset","props","ref","cn","TooltipArrow"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAsB,0BA0C9B,cAAAC,MAAA,oBAhCJ,IAAMC,EAAmC,WAOnCC,EAA2B,OAS3BC,EAAkC,UAWlCC,EAAuB,aAG3B,CAAC,CAAE,UAAAC,EAAW,WAAAC,EAAa,EAAG,GAAGC,CAAM,EAAGC,IAC1CR,EAAkB,SAAjB,CACC,SAAAA,EAAkB,UAAjB,CACC,IAAKQ,EACL,WAAYF,EACZ,UAAWG,EACT,qwBACAJ,CACF,EACC,GAAGE,EACN,EACF,CACD,EAEDH,EAAe,YAA+B,UAAQ,YAWtD,IAAMM,EAAqB,aACzB,CAAC,CAAE,UAAAL,EAAW,GAAGE,CAAM,EAAGC,IACxBR,EAAkB,QAAjB,CACC,IAAKQ,EACL,UAAWC,EAAG,eAAgBJ,CAAS,EACtC,GAAGE,EACN,CAEJ,EAEAG,EAAa,YAA+B,QAAM","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: TooltipProvider\n * -------------------------------------------------------------------------- */\n\ntype TooltipProviderProps = React.ComponentProps<\n typeof TooltipPrimitive.Provider\n>;\nconst TooltipProvider = TooltipPrimitive.Provider;\n\n/* -----------------------------------------------------------------------------\n * Component: Tooltip\n * -------------------------------------------------------------------------- */\n\ntype TooltipProps = React.ComponentProps<typeof TooltipPrimitive.Root>;\nconst Tooltip = TooltipPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: TooltipTrigger\n * -------------------------------------------------------------------------- */\n\ntype TooltipTriggerProps = React.ComponentPropsWithoutRef<\n typeof TooltipPrimitive.Trigger\n>;\nconst TooltipTrigger = TooltipPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: TooltipContent\n * -------------------------------------------------------------------------- */\n\ntype TooltipContentElement = React.ElementRef<typeof TooltipPrimitive.Content>;\ntype TooltipContentProps = React.ComponentPropsWithoutRef<\n typeof TooltipPrimitive.Content\n>;\n\nconst TooltipContent = React.forwardRef<\n TooltipContentElement,\n TooltipContentProps\n>(({ className, sideOffset = 6, ...props }, ref) => (\n <TooltipPrimitive.Portal>\n <TooltipPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in data-[state=delayed-open]:zoom-in-95 data-[state=delayed-open]:data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:data-[side=right]:slide-in-from-left-2 data-[state=delayed-open]:data-[side=bottom]:slide-in-from-top-2 data-[state=delayed-open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 z-50 rounded-md border px-3 py-1.5 text-xs',\n className,\n )}\n {...props}\n />\n </TooltipPrimitive.Portal>\n));\n\nTooltipContent.displayName = TooltipPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: TooltipArrow\n * -------------------------------------------------------------------------- */\n\ntype TooltipArrowElement = React.ElementRef<typeof TooltipPrimitive.Arrow>;\ntype TooltipArrowProps = React.ComponentPropsWithoutRef<\n typeof TooltipPrimitive.Arrow\n>;\n\nconst TooltipArrow = React.forwardRef<TooltipArrowElement, TooltipArrowProps>(\n ({ className, ...props }, ref) => (\n <TooltipPrimitive.Arrow\n ref={ref}\n className={cn('fill-primary', className)}\n {...props}\n />\n ),\n);\n\nTooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n TooltipProvider,\n Tooltip,\n TooltipTrigger,\n TooltipContent,\n TooltipArrow,\n type TooltipProviderProps,\n type TooltipProps,\n type TooltipTriggerProps,\n type TooltipContentProps,\n type TooltipArrowProps,\n};\n"]}
1
+ {"version":3,"sources":["../../src/react/tooltip.tsx"],"names":["React","TooltipPrimitive","jsx","TooltipProvider","Tooltip","TooltipTrigger","TooltipContent","className","sideOffset","props","ref","cn","TooltipArrow"],"mappings":"sDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAsB,0BAkC5B,cAAAC,MAAA,oBA1BN,IAAMC,EAAmC,WAOnCC,EAA2B,OAO3BC,EAAkC,UASlCC,EAAuB,aAC3B,CAAC,CAAE,UAAAC,EAAW,WAAAC,EAAa,EAAG,GAAGC,CAAM,EAAGC,IACxCR,EAAkB,SAAjB,CACC,SAAAA,EAAkB,UAAjB,CACC,IAAKQ,EACL,WAAYF,EACZ,UAAWG,EACT,qwBACAJ,CACF,EACC,GAAGE,EACN,EACF,CAEJ,EAEAH,EAAe,YAA+B,UAAQ,YAStD,IAAMM,EAAqB,aAAmD,CAAC,CAAE,UAAAL,EAAW,GAAGE,CAAM,EAAGC,IACtGR,EAAkB,QAAjB,CAAuB,IAAKQ,EAAK,UAAWC,EAAG,eAAgBJ,CAAS,EAAI,GAAGE,EAAO,CACxF,EAEDG,EAAa,YAA+B,QAAM","sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: TooltipProvider\n * -------------------------------------------------------------------------- */\n\ntype TooltipProviderProps = React.ComponentProps<typeof TooltipPrimitive.Provider>;\nconst TooltipProvider = TooltipPrimitive.Provider;\n\n/* -----------------------------------------------------------------------------\n * Component: Tooltip\n * -------------------------------------------------------------------------- */\n\ntype TooltipProps = React.ComponentProps<typeof TooltipPrimitive.Root>;\nconst Tooltip = TooltipPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: TooltipTrigger\n * -------------------------------------------------------------------------- */\n\ntype TooltipTriggerProps = React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Trigger>;\nconst TooltipTrigger = TooltipPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: TooltipContent\n * -------------------------------------------------------------------------- */\n\ntype TooltipContentElement = React.ElementRef<typeof TooltipPrimitive.Content>;\ntype TooltipContentProps = React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>;\n\nconst TooltipContent = React.forwardRef<TooltipContentElement, TooltipContentProps>(\n ({ className, sideOffset = 6, ...props }, ref) => (\n <TooltipPrimitive.Portal>\n <TooltipPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in data-[state=delayed-open]:zoom-in-95 data-[state=delayed-open]:data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:data-[side=right]:slide-in-from-left-2 data-[state=delayed-open]:data-[side=bottom]:slide-in-from-top-2 data-[state=delayed-open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 z-50 rounded-md border px-3 py-1.5 text-xs',\n className,\n )}\n {...props}\n />\n </TooltipPrimitive.Portal>\n ),\n);\n\nTooltipContent.displayName = TooltipPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: TooltipArrow\n * -------------------------------------------------------------------------- */\n\ntype TooltipArrowElement = React.ElementRef<typeof TooltipPrimitive.Arrow>;\ntype TooltipArrowProps = React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Arrow>;\n\nconst TooltipArrow = React.forwardRef<TooltipArrowElement, TooltipArrowProps>(({ className, ...props }, ref) => (\n <TooltipPrimitive.Arrow ref={ref} className={cn('fill-primary', className)} {...props} />\n));\n\nTooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n TooltipProvider,\n Tooltip,\n TooltipTrigger,\n TooltipContent,\n TooltipArrow,\n type TooltipProviderProps,\n type TooltipProps,\n type TooltipTriggerProps,\n type TooltipContentProps,\n type TooltipArrowProps,\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/react/tooltip.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: TooltipProvider\n * -------------------------------------------------------------------------- */\n\ntype TooltipProviderProps = React.ComponentProps<\n typeof TooltipPrimitive.Provider\n>;\nconst TooltipProvider = TooltipPrimitive.Provider;\n\n/* -----------------------------------------------------------------------------\n * Component: Tooltip\n * -------------------------------------------------------------------------- */\n\ntype TooltipProps = React.ComponentProps<typeof TooltipPrimitive.Root>;\nconst Tooltip = TooltipPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: TooltipTrigger\n * -------------------------------------------------------------------------- */\n\ntype TooltipTriggerProps = React.ComponentPropsWithoutRef<\n typeof TooltipPrimitive.Trigger\n>;\nconst TooltipTrigger = TooltipPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: TooltipContent\n * -------------------------------------------------------------------------- */\n\ntype TooltipContentElement = React.ElementRef<typeof TooltipPrimitive.Content>;\ntype TooltipContentProps = React.ComponentPropsWithoutRef<\n typeof TooltipPrimitive.Content\n>;\n\nconst TooltipContent = React.forwardRef<\n TooltipContentElement,\n TooltipContentProps\n>(({ className, sideOffset = 6, ...props }, ref) => (\n <TooltipPrimitive.Portal>\n <TooltipPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in data-[state=delayed-open]:zoom-in-95 data-[state=delayed-open]:data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:data-[side=right]:slide-in-from-left-2 data-[state=delayed-open]:data-[side=bottom]:slide-in-from-top-2 data-[state=delayed-open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 z-50 rounded-md border px-3 py-1.5 text-xs',\n className,\n )}\n {...props}\n />\n </TooltipPrimitive.Portal>\n));\n\nTooltipContent.displayName = TooltipPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: TooltipArrow\n * -------------------------------------------------------------------------- */\n\ntype TooltipArrowElement = React.ElementRef<typeof TooltipPrimitive.Arrow>;\ntype TooltipArrowProps = React.ComponentPropsWithoutRef<\n typeof TooltipPrimitive.Arrow\n>;\n\nconst TooltipArrow = React.forwardRef<TooltipArrowElement, TooltipArrowProps>(\n ({ className, ...props }, ref) => (\n <TooltipPrimitive.Arrow\n ref={ref}\n className={cn('fill-primary', className)}\n {...props}\n />\n ),\n);\n\nTooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n TooltipProvider,\n Tooltip,\n TooltipTrigger,\n TooltipContent,\n TooltipArrow,\n type TooltipProviderProps,\n type TooltipProps,\n type TooltipTriggerProps,\n type TooltipContentProps,\n type TooltipArrowProps,\n};\n"],"mappings":"uDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAsB,0BA0C9B,cAAAC,MAAA,oBAhCJ,IAAMC,EAAmC,WAOnCC,EAA2B,OAS3BC,EAAkC,UAWlCC,EAAuB,aAG3B,CAAC,CAAE,UAAAC,EAAW,WAAAC,EAAa,EAAG,GAAGC,CAAM,EAAGC,IAC1CR,EAAkB,SAAjB,CACC,SAAAA,EAAkB,UAAjB,CACC,IAAKQ,EACL,WAAYF,EACZ,UAAWG,EACT,qwBACAJ,CACF,EACC,GAAGE,EACN,EACF,CACD,EAEDH,EAAe,YAA+B,UAAQ,YAWtD,IAAMM,EAAqB,aACzB,CAAC,CAAE,UAAAL,EAAW,GAAGE,CAAM,EAAGC,IACxBR,EAAkB,QAAjB,CACC,IAAKQ,EACL,UAAWC,EAAG,eAAgBJ,CAAS,EACtC,GAAGE,EACN,CAEJ,EAEAG,EAAa,YAA+B,QAAM","names":["React","TooltipPrimitive","jsx","TooltipProvider","Tooltip","TooltipTrigger","TooltipContent","className","sideOffset","props","ref","cn","TooltipArrow"]}
1
+ {"version":3,"sources":["../../src/react/tooltip.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip';\nimport { cn } from '../lib/utils';\n\n/* -----------------------------------------------------------------------------\n * Component: TooltipProvider\n * -------------------------------------------------------------------------- */\n\ntype TooltipProviderProps = React.ComponentProps<typeof TooltipPrimitive.Provider>;\nconst TooltipProvider = TooltipPrimitive.Provider;\n\n/* -----------------------------------------------------------------------------\n * Component: Tooltip\n * -------------------------------------------------------------------------- */\n\ntype TooltipProps = React.ComponentProps<typeof TooltipPrimitive.Root>;\nconst Tooltip = TooltipPrimitive.Root;\n\n/* -----------------------------------------------------------------------------\n * Component: TooltipTrigger\n * -------------------------------------------------------------------------- */\n\ntype TooltipTriggerProps = React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Trigger>;\nconst TooltipTrigger = TooltipPrimitive.Trigger;\n\n/* -----------------------------------------------------------------------------\n * Component: TooltipContent\n * -------------------------------------------------------------------------- */\n\ntype TooltipContentElement = React.ElementRef<typeof TooltipPrimitive.Content>;\ntype TooltipContentProps = React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>;\n\nconst TooltipContent = React.forwardRef<TooltipContentElement, TooltipContentProps>(\n ({ className, sideOffset = 6, ...props }, ref) => (\n <TooltipPrimitive.Portal>\n <TooltipPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in data-[state=delayed-open]:zoom-in-95 data-[state=delayed-open]:data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:data-[side=right]:slide-in-from-left-2 data-[state=delayed-open]:data-[side=bottom]:slide-in-from-top-2 data-[state=delayed-open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 z-50 rounded-md border px-3 py-1.5 text-xs',\n className,\n )}\n {...props}\n />\n </TooltipPrimitive.Portal>\n ),\n);\n\nTooltipContent.displayName = TooltipPrimitive.Content.displayName;\n\n/* -----------------------------------------------------------------------------\n * Component: TooltipArrow\n * -------------------------------------------------------------------------- */\n\ntype TooltipArrowElement = React.ElementRef<typeof TooltipPrimitive.Arrow>;\ntype TooltipArrowProps = React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Arrow>;\n\nconst TooltipArrow = React.forwardRef<TooltipArrowElement, TooltipArrowProps>(({ className, ...props }, ref) => (\n <TooltipPrimitive.Arrow ref={ref} className={cn('fill-primary', className)} {...props} />\n));\n\nTooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;\n\n/* -----------------------------------------------------------------------------\n * Exports\n * -------------------------------------------------------------------------- */\n\nexport {\n TooltipProvider,\n Tooltip,\n TooltipTrigger,\n TooltipContent,\n TooltipArrow,\n type TooltipProviderProps,\n type TooltipProps,\n type TooltipTriggerProps,\n type TooltipContentProps,\n type TooltipArrowProps,\n};\n"],"mappings":"uDAEA,UAAYA,MAAW,QACvB,UAAYC,MAAsB,0BAkC5B,cAAAC,MAAA,oBA1BN,IAAMC,EAAmC,WAOnCC,EAA2B,OAO3BC,EAAkC,UASlCC,EAAuB,aAC3B,CAAC,CAAE,UAAAC,EAAW,WAAAC,EAAa,EAAG,GAAGC,CAAM,EAAGC,IACxCR,EAAkB,SAAjB,CACC,SAAAA,EAAkB,UAAjB,CACC,IAAKQ,EACL,WAAYF,EACZ,UAAWG,EACT,qwBACAJ,CACF,EACC,GAAGE,EACN,EACF,CAEJ,EAEAH,EAAe,YAA+B,UAAQ,YAStD,IAAMM,EAAqB,aAAmD,CAAC,CAAE,UAAAL,EAAW,GAAGE,CAAM,EAAGC,IACtGR,EAAkB,QAAjB,CAAuB,IAAKQ,EAAK,UAAWC,EAAG,eAAgBJ,CAAS,EAAI,GAAGE,EAAO,CACxF,EAEDG,EAAa,YAA+B,QAAM","names":["React","TooltipPrimitive","jsx","TooltipProvider","Tooltip","TooltipTrigger","TooltipContent","className","sideOffset","props","ref","cn","TooltipArrow"]}