@gv-tech/design-system 2.29.1 → 2.29.3

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 (326) hide show
  1. package/README.md +1 -1
  2. package/dist/accordion.cjs +1 -1
  3. package/dist/accordion.cjs.map +1 -1
  4. package/dist/accordion.mjs +2 -3
  5. package/dist/accordion.mjs.map +1 -1
  6. package/dist/alert-dialog.cjs +1 -1
  7. package/dist/alert-dialog.cjs.map +1 -1
  8. package/dist/alert-dialog.mjs +2 -3
  9. package/dist/alert-dialog.mjs.map +1 -1
  10. package/dist/alert.cjs +1 -1
  11. package/dist/alert.cjs.map +1 -1
  12. package/dist/alert.mjs +2 -3
  13. package/dist/alert.mjs.map +1 -1
  14. package/dist/aspect-ratio.cjs +1 -1
  15. package/dist/aspect-ratio.cjs.map +1 -1
  16. package/dist/aspect-ratio.mjs +2 -3
  17. package/dist/aspect-ratio.mjs.map +1 -1
  18. package/dist/attachment.cjs +1 -1
  19. package/dist/attachment.cjs.map +1 -1
  20. package/dist/attachment.mjs +4 -4
  21. package/dist/attachment.mjs.map +1 -1
  22. package/dist/avatar.cjs +1 -1
  23. package/dist/avatar.cjs.map +1 -1
  24. package/dist/avatar.mjs +3 -4
  25. package/dist/avatar.mjs.map +1 -1
  26. package/dist/badge.cjs +1 -1
  27. package/dist/badge.cjs.map +1 -1
  28. package/dist/badge.mjs +5 -5
  29. package/dist/badge.mjs.map +1 -1
  30. package/dist/breadcrumb.cjs +1 -1
  31. package/dist/breadcrumb.cjs.map +1 -1
  32. package/dist/breadcrumb.mjs +4 -4
  33. package/dist/breadcrumb.mjs.map +1 -1
  34. package/dist/bubble.cjs +1 -1
  35. package/dist/bubble.cjs.map +1 -1
  36. package/dist/bubble.mjs +4 -4
  37. package/dist/bubble.mjs.map +1 -1
  38. package/dist/button-group.cjs +1 -1
  39. package/dist/button-group.cjs.map +1 -1
  40. package/dist/button-group.mjs +4 -4
  41. package/dist/button-group.mjs.map +1 -1
  42. package/dist/button.cjs +1 -1
  43. package/dist/button.cjs.map +1 -1
  44. package/dist/button.mjs +4 -4
  45. package/dist/button.mjs.map +1 -1
  46. package/dist/calendar.cjs +1 -1
  47. package/dist/calendar.cjs.map +1 -1
  48. package/dist/calendar.mjs +2 -3
  49. package/dist/calendar.mjs.map +1 -1
  50. package/dist/card.cjs +1 -1
  51. package/dist/card.cjs.map +1 -1
  52. package/dist/card.mjs +2 -3
  53. package/dist/card.mjs.map +1 -1
  54. package/dist/carousel.cjs +1 -1
  55. package/dist/carousel.cjs.map +1 -1
  56. package/dist/carousel.mjs +3 -4
  57. package/dist/carousel.mjs.map +1 -1
  58. package/dist/chart.cjs +2 -2
  59. package/dist/chart.cjs.map +1 -1
  60. package/dist/chart.mjs +14 -15
  61. package/dist/chart.mjs.map +1 -1
  62. package/dist/checkbox.cjs +1 -1
  63. package/dist/checkbox.cjs.map +1 -1
  64. package/dist/checkbox.mjs +2 -3
  65. package/dist/checkbox.mjs.map +1 -1
  66. package/dist/collapsible.cjs +1 -1
  67. package/dist/collapsible.cjs.map +1 -1
  68. package/dist/collapsible.mjs +2 -3
  69. package/dist/collapsible.mjs.map +1 -1
  70. package/dist/combobox.cjs +1 -1
  71. package/dist/combobox.cjs.map +1 -1
  72. package/dist/combobox.mjs +2 -3
  73. package/dist/combobox.mjs.map +1 -1
  74. package/dist/command.cjs +1 -1
  75. package/dist/command.cjs.map +1 -1
  76. package/dist/command.mjs +2 -3
  77. package/dist/command.mjs.map +1 -1
  78. package/dist/context-menu.cjs +1 -1
  79. package/dist/context-menu.cjs.map +1 -1
  80. package/dist/context-menu.mjs +2 -3
  81. package/dist/context-menu.mjs.map +1 -1
  82. package/dist/design-system.css +2 -2
  83. package/dist/dialog.cjs +1 -1
  84. package/dist/dialog.cjs.map +1 -1
  85. package/dist/dialog.mjs +2 -3
  86. package/dist/dialog.mjs.map +1 -1
  87. package/dist/direction.cjs +1 -1
  88. package/dist/direction.cjs.map +1 -1
  89. package/dist/direction.mjs +2 -3
  90. package/dist/direction.mjs.map +1 -1
  91. package/dist/drawer.cjs +1 -1
  92. package/dist/drawer.cjs.map +1 -1
  93. package/dist/drawer.mjs +2 -3
  94. package/dist/drawer.mjs.map +1 -1
  95. package/dist/dropdown-menu.cjs +1 -1
  96. package/dist/dropdown-menu.cjs.map +1 -1
  97. package/dist/dropdown-menu.mjs +2 -3
  98. package/dist/dropdown-menu.mjs.map +1 -1
  99. package/dist/empty.cjs +1 -1
  100. package/dist/empty.cjs.map +1 -1
  101. package/dist/empty.mjs +2 -3
  102. package/dist/empty.mjs.map +1 -1
  103. package/dist/field.cjs +1 -1
  104. package/dist/field.cjs.map +1 -1
  105. package/dist/field.mjs +2 -3
  106. package/dist/field.mjs.map +1 -1
  107. package/dist/form.cjs +1 -1
  108. package/dist/form.cjs.map +1 -1
  109. package/dist/form.mjs +11 -12
  110. package/dist/form.mjs.map +1 -1
  111. package/dist/hover-card.cjs +1 -1
  112. package/dist/hover-card.cjs.map +1 -1
  113. package/dist/hover-card.mjs +2 -3
  114. package/dist/hover-card.mjs.map +1 -1
  115. package/dist/index.cjs +2 -1
  116. package/dist/index.cjs.map +1 -0
  117. package/dist/index.mjs +260 -74
  118. package/dist/index.mjs.map +1 -0
  119. package/dist/input-group.cjs +1 -1
  120. package/dist/input-group.cjs.map +1 -1
  121. package/dist/input-group.mjs +2 -3
  122. package/dist/input-group.mjs.map +1 -1
  123. package/dist/input-otp.cjs +1 -1
  124. package/dist/input-otp.cjs.map +1 -1
  125. package/dist/input-otp.mjs +2 -3
  126. package/dist/input-otp.mjs.map +1 -1
  127. package/dist/input.cjs +1 -1
  128. package/dist/input.cjs.map +1 -1
  129. package/dist/input.mjs +2 -3
  130. package/dist/input.mjs.map +1 -1
  131. package/dist/item.cjs +1 -1
  132. package/dist/item.cjs.map +1 -1
  133. package/dist/item.mjs +4 -4
  134. package/dist/item.mjs.map +1 -1
  135. package/dist/kbd.cjs +1 -1
  136. package/dist/kbd.cjs.map +1 -1
  137. package/dist/kbd.mjs +2 -3
  138. package/dist/kbd.mjs.map +1 -1
  139. package/dist/label.cjs +1 -1
  140. package/dist/label.cjs.map +1 -1
  141. package/dist/label.mjs +2 -3
  142. package/dist/label.mjs.map +1 -1
  143. package/dist/marker.cjs +1 -1
  144. package/dist/marker.cjs.map +1 -1
  145. package/dist/marker.mjs +4 -4
  146. package/dist/marker.mjs.map +1 -1
  147. package/dist/menubar.cjs +1 -1
  148. package/dist/menubar.cjs.map +1 -1
  149. package/dist/menubar.mjs +2 -3
  150. package/dist/menubar.mjs.map +1 -1
  151. package/dist/message-scroller.cjs +1 -1
  152. package/dist/message-scroller.cjs.map +1 -1
  153. package/dist/message-scroller.mjs +2 -3
  154. package/dist/message-scroller.mjs.map +1 -1
  155. package/dist/message.cjs +1 -1
  156. package/dist/message.cjs.map +1 -1
  157. package/dist/message.mjs +2 -3
  158. package/dist/message.mjs.map +1 -1
  159. package/dist/native-select.cjs +1 -1
  160. package/dist/native-select.cjs.map +1 -1
  161. package/dist/native-select.mjs +2 -3
  162. package/dist/native-select.mjs.map +1 -1
  163. package/dist/navigation-menu.cjs +1 -1
  164. package/dist/navigation-menu.cjs.map +1 -1
  165. package/dist/navigation-menu.mjs +2 -3
  166. package/dist/navigation-menu.mjs.map +1 -1
  167. package/dist/packages/design-tokens/src/index.d.ts +75 -69
  168. package/dist/packages/design-tokens/src/palette.d.ts +23 -17
  169. package/dist/packages/design-tokens/src/preset.d.ts +6 -0
  170. package/dist/packages/design-tokens/src/theme.d.ts +52 -52
  171. package/dist/packages/ui-web/src/hooks/use-theme.d.ts +52 -52
  172. package/dist/pagination.cjs +1 -1
  173. package/dist/pagination.cjs.map +1 -1
  174. package/dist/pagination.mjs +2 -3
  175. package/dist/pagination.mjs.map +1 -1
  176. package/dist/popover.cjs +1 -1
  177. package/dist/popover.cjs.map +1 -1
  178. package/dist/popover.mjs +2 -3
  179. package/dist/popover.mjs.map +1 -1
  180. package/dist/progress.cjs +1 -1
  181. package/dist/progress.cjs.map +1 -1
  182. package/dist/progress.mjs +2 -3
  183. package/dist/progress.mjs.map +1 -1
  184. package/dist/questionnaire.cjs +1 -1
  185. package/dist/questionnaire.cjs.map +1 -1
  186. package/dist/questionnaire.mjs +2 -3
  187. package/dist/questionnaire.mjs.map +1 -1
  188. package/dist/radio-group.cjs +1 -1
  189. package/dist/radio-group.cjs.map +1 -1
  190. package/dist/radio-group.mjs +2 -3
  191. package/dist/radio-group.mjs.map +1 -1
  192. package/dist/resizable.cjs +1 -1
  193. package/dist/resizable.cjs.map +1 -1
  194. package/dist/resizable.mjs +2 -3
  195. package/dist/resizable.mjs.map +1 -1
  196. package/dist/rolldown-runtime-DbbDpzbe.js +1 -0
  197. package/dist/scroll-area.cjs +1 -1
  198. package/dist/scroll-area.cjs.map +1 -1
  199. package/dist/scroll-area.mjs +2 -3
  200. package/dist/scroll-area.mjs.map +1 -1
  201. package/dist/scroll-to-top.cjs +1 -1
  202. package/dist/scroll-to-top.cjs.map +1 -1
  203. package/dist/scroll-to-top.mjs +7 -12
  204. package/dist/scroll-to-top.mjs.map +1 -1
  205. package/dist/search.cjs +1 -1
  206. package/dist/search.cjs.map +1 -1
  207. package/dist/search.mjs +14 -15
  208. package/dist/search.mjs.map +1 -1
  209. package/dist/select.cjs +1 -1
  210. package/dist/select.cjs.map +1 -1
  211. package/dist/select.mjs +2 -3
  212. package/dist/select.mjs.map +1 -1
  213. package/dist/separator.cjs +1 -1
  214. package/dist/separator.cjs.map +1 -1
  215. package/dist/separator.mjs +2 -3
  216. package/dist/separator.mjs.map +1 -1
  217. package/dist/sheet.cjs +1 -1
  218. package/dist/sheet.cjs.map +1 -1
  219. package/dist/sheet.mjs +2 -3
  220. package/dist/sheet.mjs.map +1 -1
  221. package/dist/{sidebar-Cl3zXgaX.mjs → sidebar-BY-0Gann.mjs} +14 -12
  222. package/dist/sidebar-BY-0Gann.mjs.map +1 -0
  223. package/dist/sidebar-BwaRpzdR.js +2 -0
  224. package/dist/sidebar-BwaRpzdR.js.map +1 -0
  225. package/dist/sidebar.cjs +1 -1
  226. package/dist/sidebar.mjs +1 -2
  227. package/dist/skeleton.cjs +1 -1
  228. package/dist/skeleton.cjs.map +1 -1
  229. package/dist/skeleton.mjs +2 -3
  230. package/dist/skeleton.mjs.map +1 -1
  231. package/dist/slider.cjs +1 -1
  232. package/dist/slider.cjs.map +1 -1
  233. package/dist/slider.mjs +2 -3
  234. package/dist/slider.mjs.map +1 -1
  235. package/dist/sonner.cjs +1 -1
  236. package/dist/sonner.cjs.map +1 -1
  237. package/dist/sonner.mjs +2 -3
  238. package/dist/sonner.mjs.map +1 -1
  239. package/dist/spinner.cjs +1 -1
  240. package/dist/spinner.cjs.map +1 -1
  241. package/dist/spinner.mjs +2 -3
  242. package/dist/spinner.mjs.map +1 -1
  243. package/dist/support-fab.cjs +1 -1
  244. package/dist/support-fab.cjs.map +1 -1
  245. package/dist/support-fab.mjs +22 -23
  246. package/dist/support-fab.mjs.map +1 -1
  247. package/dist/switch.cjs +1 -1
  248. package/dist/switch.cjs.map +1 -1
  249. package/dist/switch.mjs +2 -3
  250. package/dist/switch.mjs.map +1 -1
  251. package/dist/table-of-contents.cjs +1 -1
  252. package/dist/table-of-contents.cjs.map +1 -1
  253. package/dist/table-of-contents.mjs +28 -29
  254. package/dist/table-of-contents.mjs.map +1 -1
  255. package/dist/table.cjs +1 -1
  256. package/dist/table.cjs.map +1 -1
  257. package/dist/table.mjs +2 -3
  258. package/dist/table.mjs.map +1 -1
  259. package/dist/tabs.cjs +1 -1
  260. package/dist/tabs.cjs.map +1 -1
  261. package/dist/tabs.mjs +2 -3
  262. package/dist/tabs.mjs.map +1 -1
  263. package/dist/text.cjs +1 -1
  264. package/dist/text.cjs.map +1 -1
  265. package/dist/text.mjs +15 -13
  266. package/dist/text.mjs.map +1 -1
  267. package/dist/textarea.cjs +1 -1
  268. package/dist/textarea.cjs.map +1 -1
  269. package/dist/textarea.mjs +2 -3
  270. package/dist/textarea.mjs.map +1 -1
  271. package/dist/theme-provider.cjs +1 -1
  272. package/dist/theme-provider.cjs.map +1 -1
  273. package/dist/theme-provider.mjs +2 -3
  274. package/dist/theme-provider.mjs.map +1 -1
  275. package/dist/theme-toggle-B7jIk1EJ.mjs +173 -0
  276. package/dist/theme-toggle-B7jIk1EJ.mjs.map +1 -0
  277. package/dist/theme-toggle-CsR6DVEV.js +2 -0
  278. package/dist/theme-toggle-CsR6DVEV.js.map +1 -0
  279. package/dist/theme-toggle.cjs +1 -1
  280. package/dist/theme-toggle.mjs +1 -2
  281. package/dist/toast.cjs +1 -1
  282. package/dist/toast.cjs.map +1 -1
  283. package/dist/toast.mjs +3 -4
  284. package/dist/toast.mjs.map +1 -1
  285. package/dist/{toaster-_FgrA-3c.mjs → toaster-Cr-qFHE_.mjs} +15 -17
  286. package/dist/toaster-Cr-qFHE_.mjs.map +1 -0
  287. package/dist/{toaster-BRNNfjp9.js → toaster-CsRfPupI.js} +2 -2
  288. package/dist/toaster-CsRfPupI.js.map +1 -0
  289. package/dist/toaster.cjs +1 -1
  290. package/dist/toaster.mjs +1 -2
  291. package/dist/toggle-group.cjs +1 -1
  292. package/dist/toggle-group.cjs.map +1 -1
  293. package/dist/toggle-group.mjs +2 -3
  294. package/dist/toggle-group.mjs.map +1 -1
  295. package/dist/toggle.cjs +1 -1
  296. package/dist/toggle.cjs.map +1 -1
  297. package/dist/toggle.mjs +2 -3
  298. package/dist/toggle.mjs.map +1 -1
  299. package/dist/tooltip.cjs +1 -1
  300. package/dist/tooltip.cjs.map +1 -1
  301. package/dist/tooltip.mjs +2 -3
  302. package/dist/tooltip.mjs.map +1 -1
  303. package/dist/{utils-BROwqSso.js → utils-BKlmn6yB.js} +2 -2
  304. package/dist/{utils-BROwqSso.js.map → utils-BKlmn6yB.js.map} +1 -1
  305. package/dist/{utils-BurmJD8d.mjs → utils-MPB0bG0d.mjs} +3 -4
  306. package/dist/utils-MPB0bG0d.mjs.map +1 -0
  307. package/dist/vendor-Ceu--gxM.js +113 -0
  308. package/dist/vendor-Ceu--gxM.js.map +1 -0
  309. package/dist/{vendor-0E4gGRxj.mjs → vendor-PEVwmg1D.mjs} +14614 -15619
  310. package/dist/vendor-PEVwmg1D.mjs.map +1 -0
  311. package/package.json +35 -38
  312. package/dist/rolldown-runtime-CWhphoD1.mjs +0 -23
  313. package/dist/rolldown-runtime-mLOUI7ql.js +0 -1
  314. package/dist/sidebar-Cl3zXgaX.mjs.map +0 -1
  315. package/dist/sidebar-DQzY8XPP.js +0 -2
  316. package/dist/sidebar-DQzY8XPP.js.map +0 -1
  317. package/dist/theme-toggle-ldAbIn1Q.mjs +0 -346
  318. package/dist/theme-toggle-ldAbIn1Q.mjs.map +0 -1
  319. package/dist/theme-toggle-nNtzABo6.js +0 -2
  320. package/dist/theme-toggle-nNtzABo6.js.map +0 -1
  321. package/dist/toaster-BRNNfjp9.js.map +0 -1
  322. package/dist/toaster-_FgrA-3c.mjs.map +0 -1
  323. package/dist/utils-BurmJD8d.mjs.map +0 -1
  324. package/dist/vendor-0E4gGRxj.mjs.map +0 -1
  325. package/dist/vendor-Bz5F_va8.js +0 -101
  326. package/dist/vendor-Bz5F_va8.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"popover.cjs","names":[],"sources":["../packages/ui-web/src/popover.tsx"],"sourcesContent":["import type { PopoverBaseProps } from '@gv-tech/ui-core';\nimport { cn } from 'cn';\nimport { Popover as PopoverPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\nfunction Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>) {\n return <PopoverPrimitive.Root data-slot=\"popover\" {...props} />;\n}\n\nfunction PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {\n return <PopoverPrimitive.Trigger data-slot=\"popover-trigger\" {...props} />;\n}\n\nfunction PopoverContent({\n className,\n align = 'center',\n sideOffset = 4,\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Content>) {\n return (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n data-slot=\"popover-content\"\n align={align}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg p-2.5 text-sm shadow-md ring-1 outline-hidden duration-100',\n className,\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n );\n}\n\nfunction PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>) {\n return <PopoverPrimitive.Anchor data-slot=\"popover-anchor\" {...props} />;\n}\n\nfunction PopoverHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"popover-header\" className={cn('flex flex-col gap-0.5 text-sm', className)} {...props} />;\n}\n\nfunction PopoverTitle({ className, ...props }: React.ComponentProps<'h2'>) {\n return <div data-slot=\"popover-title\" className={cn('font-medium', className)} {...props} />;\n}\n\nfunction PopoverDescription({ className, ...props }: React.ComponentProps<'p'>) {\n return <p data-slot=\"popover-description\" className={cn('text-muted-foreground', className)} {...props} />;\n}\n\nexport { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger };\n\n// Verify that the component satisfies the ui-core contract\nexport type ___verifyPopoverContract = React.ComponentProps<typeof Popover> extends PopoverBaseProps ? true : false;\n"],"mappings":"iNAKA,SAAS,EAAQ,CAAE,GAAG,GAA6D,CACjF,OAAO,EAAA,EAAA,KAAA,EAAA,GAAA,CAAuB,YAAU,UAAU,GAAI,CAAQ,CAAA,CAChE,CAEA,SAAS,EAAe,CAAE,GAAG,GAAgE,CAC3F,OAAO,EAAA,EAAA,KAAA,EAAA,GAAA,CAA0B,YAAU,kBAAkB,GAAI,CAAQ,CAAA,CAC3E,CAEA,SAAS,EAAe,CACtB,YACA,QAAQ,SACR,aAAa,EACb,GAAG,GACqD,CACxD,OACE,EAAA,EAAA,KAAA,EAAA,GAAA,CAAA,UACE,EAAA,EAAA,KAAA,EAAA,GAAA,CACE,YAAU,kBACH,QACK,aACZ,UAAW,EAAA,GACT,ifACA,CACF,EACA,GAAI,CACL,CAAA,CACsB,CAAA,CAE7B,CAEA,SAAS,EAAc,CAAE,GAAG,GAA+D,CACzF,OAAO,EAAA,EAAA,KAAA,EAAA,GAAA,CAAyB,YAAU,iBAAiB,GAAI,CAAQ,CAAA,CACzE,CAEA,SAAS,EAAc,CAAE,YAAW,GAAG,GAAsC,CAC3E,OAAO,EAAA,EAAA,KAAC,MAAD,CAAK,YAAU,iBAAiB,UAAW,EAAA,GAAG,gCAAiC,CAAS,EAAG,GAAI,CAAQ,CAAA,CAChH,CAEA,SAAS,EAAa,CAAE,YAAW,GAAG,GAAqC,CACzE,OAAO,EAAA,EAAA,KAAC,MAAD,CAAK,YAAU,gBAAgB,UAAW,EAAA,GAAG,cAAe,CAAS,EAAG,GAAI,CAAQ,CAAA,CAC7F,CAEA,SAAS,EAAmB,CAAE,YAAW,GAAG,GAAoC,CAC9E,OAAO,EAAA,EAAA,KAAC,IAAD,CAAG,YAAU,sBAAsB,UAAW,EAAA,GAAG,wBAAyB,CAAS,EAAG,GAAI,CAAQ,CAAA,CAC3G"}
1
+ {"version":3,"file":"popover.cjs","names":["cn","require_rolldown_runtime","require_vendor","react","import_jsx_runtime","Popover","props","PopoverTrigger","PopoverContent","className","PopoverAnchor","PopoverHeader","PopoverTitle","PopoverDescription"],"sources":["../packages/ui-web/src/popover.tsx"],"sourcesContent":["import type { PopoverBaseProps } from '@gv-tech/ui-core';\nimport { cn } from 'cn';\nimport { Popover as PopoverPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\nfunction Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>) {\n return <PopoverPrimitive.Root data-slot=\"popover\" {...props} />;\n}\n\nfunction PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {\n return <PopoverPrimitive.Trigger data-slot=\"popover-trigger\" {...props} />;\n}\n\nfunction PopoverContent({\n className,\n align = 'center',\n sideOffset = 4,\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Content>) {\n return (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n data-slot=\"popover-content\"\n align={align}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg p-2.5 text-sm shadow-md ring-1 outline-hidden duration-100',\n className,\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n );\n}\n\nfunction PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>) {\n return <PopoverPrimitive.Anchor data-slot=\"popover-anchor\" {...props} />;\n}\n\nfunction PopoverHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"popover-header\" className={cn('flex flex-col gap-0.5 text-sm', className)} {...props} />;\n}\n\nfunction PopoverTitle({ className, ...props }: React.ComponentProps<'h2'>) {\n return <div data-slot=\"popover-title\" className={cn('font-medium', className)} {...props} />;\n}\n\nfunction PopoverDescription({ className, ...props }: React.ComponentProps<'p'>) {\n return <p data-slot=\"popover-description\" className={cn('text-muted-foreground', className)} {...props} />;\n}\n\nexport { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger };\n\n// Verify that the component satisfies the ui-core contract\nexport type ___verifyPopoverContract = React.ComponentProps<typeof Popover> extends Popo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AA,CAC3G,C"}
package/dist/popover.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { Ar as e, Gt as t, Ht as n, Ut as r, Vt as i, Wt as a, ei as o } from "./vendor-0E4gGRxj.mjs";
2
+ import { Ar as e, Gt as t, Ht as n, Ut as r, Vt as i, Wt as a, ei as o } from "./vendor-PEVwmg1D.mjs";
3
3
  import "react";
4
- //#region packages/ui-web/src/popover.tsx
4
+ // packages/ui-web/src/popover.tsx
5
5
  var s = e();
6
6
  function c({ ...e }) {
7
7
  return /* @__PURE__ */ (0, s.jsx)(i, {
@@ -51,7 +51,6 @@ function m({ className: e, ...t }) {
51
51
  ...t
52
52
  });
53
53
  }
54
- //#endregion
55
54
  export { c as Popover, d as PopoverAnchor, u as PopoverContent, m as PopoverDescription, f as PopoverHeader, p as PopoverTitle, l as PopoverTrigger };
56
55
 
57
56
  //# sourceMappingURL=popover.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"popover.mjs","names":[],"sources":["../packages/ui-web/src/popover.tsx"],"sourcesContent":["import type { PopoverBaseProps } from '@gv-tech/ui-core';\nimport { cn } from 'cn';\nimport { Popover as PopoverPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\nfunction Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>) {\n return <PopoverPrimitive.Root data-slot=\"popover\" {...props} />;\n}\n\nfunction PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {\n return <PopoverPrimitive.Trigger data-slot=\"popover-trigger\" {...props} />;\n}\n\nfunction PopoverContent({\n className,\n align = 'center',\n sideOffset = 4,\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Content>) {\n return (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n data-slot=\"popover-content\"\n align={align}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg p-2.5 text-sm shadow-md ring-1 outline-hidden duration-100',\n className,\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n );\n}\n\nfunction PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>) {\n return <PopoverPrimitive.Anchor data-slot=\"popover-anchor\" {...props} />;\n}\n\nfunction PopoverHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"popover-header\" className={cn('flex flex-col gap-0.5 text-sm', className)} {...props} />;\n}\n\nfunction PopoverTitle({ className, ...props }: React.ComponentProps<'h2'>) {\n return <div data-slot=\"popover-title\" className={cn('font-medium', className)} {...props} />;\n}\n\nfunction PopoverDescription({ className, ...props }: React.ComponentProps<'p'>) {\n return <p data-slot=\"popover-description\" className={cn('text-muted-foreground', className)} {...props} />;\n}\n\nexport { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger };\n\n// Verify that the component satisfies the ui-core contract\nexport type ___verifyPopoverContract = React.ComponentProps<typeof Popover> extends PopoverBaseProps ? true : false;\n"],"mappings":";;;;;AAKA,SAAS,EAAQ,EAAE,GAAG,KAA6D;CACjF,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;EAAuB,aAAU;EAAU,GAAI;CAAQ,CAAA;AAChE;AAEA,SAAS,EAAe,EAAE,GAAG,KAAgE;CAC3F,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;EAA0B,aAAU;EAAkB,GAAI;CAAQ,CAAA;AAC3E;AAEA,SAAS,EAAe,EACtB,cACA,WAAQ,UACR,gBAAa,GACb,GAAG,KACqD;CACxD,OACE,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAA,UACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,aAAU;EACH;EACK;EACZ,WAAW,EACT,kfACA,CACF;EACA,GAAI;CACL,CAAA,EACsB,CAAA;AAE7B;AAEA,SAAS,EAAc,EAAE,GAAG,KAA+D;CACzF,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;EAAyB,aAAU;EAAiB,GAAI;CAAQ,CAAA;AACzE;AAEA,SAAS,EAAc,EAAE,cAAW,GAAG,KAAsC;CAC3E,OAAO,iBAAA,GAAA,EAAA,KAAC,OAAD;EAAK,aAAU;EAAiB,WAAW,EAAG,iCAAiC,CAAS;EAAG,GAAI;CAAQ,CAAA;AAChH;AAEA,SAAS,EAAa,EAAE,cAAW,GAAG,KAAqC;CACzE,OAAO,iBAAA,GAAA,EAAA,KAAC,OAAD;EAAK,aAAU;EAAgB,WAAW,EAAG,eAAe,CAAS;EAAG,GAAI;CAAQ,CAAA;AAC7F;AAEA,SAAS,EAAmB,EAAE,cAAW,GAAG,KAAoC;CAC9E,OAAO,iBAAA,GAAA,EAAA,KAAC,KAAD;EAAG,aAAU;EAAsB,WAAW,EAAG,yBAAyB,CAAS;EAAG,GAAI;CAAQ,CAAA;AAC3G"}
1
+ {"version":3,"file":"popover.mjs","names":["PopoverPrimitive.Root","PopoverPrimitive.Trigger","PopoverPrimitive.Portal","PopoverPrimitive.Content","PopoverPrimitive.Anchor","require_jsx_runtime","PopoverTrigger$1","PopoverAnchor$1","PopoverContent$1","Popover$1","PopoverPortal","cn","import_jsx_runtime","Popover","props","PopoverTrigger","PopoverContent","className","PopoverAnchor","PopoverHeader","PopoverTitle","PopoverDescription"],"sources":["../packages/ui-web/src/popover.tsx"],"sourcesContent":["import type { PopoverBaseProps } from '@gv-tech/ui-core';\nimport { cn } from 'cn';\nimport { Popover as PopoverPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\nfunction Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>) {\n return <PopoverPrimitive.Root data-slot=\"popover\" {...props} />;\n}\n\nfunction PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {\n return <PopoverPrimitive.Trigger data-slot=\"popover-trigger\" {...props} />;\n}\n\nfunction PopoverContent({\n className,\n align = 'center',\n sideOffset = 4,\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Content>) {\n return (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n data-slot=\"popover-content\"\n align={align}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg p-2.5 text-sm shadow-md ring-1 outline-hidden duration-100',\n className,\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n );\n}\n\nfunction PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>) {\n return <PopoverPrimitive.Anchor data-slot=\"popover-anchor\" {...props} />;\n}\n\nfunction PopoverHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"popover-header\" className={cn('flex flex-col gap-0.5 text-sm', className)} {...props} />;\n}\n\nfunction PopoverTitle({ className, ...props }: React.ComponentProps<'h2'>) {\n return <div data-slot=\"popover-title\" className={cn('font-medium', className)} {...props} />;\n}\n\nfunction PopoverDescription({ className, ...props }: React.ComponentProps<'p'>) {\n return <p data-slot=\"popover-description\" className={cn('text-muted-foreground', className)} {...props} />;\n}\n\nexport { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger };\n\n// Verify that the component satisfies the ui-core contract\nexport type ___verifyPopoverContract = React.ComponentProps<typeof Popover> extends PopoverBaseProps ? true : false;\n"],"mappings":";;;;;AAKA,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2 @@
1
- "use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-mLOUI7ql.js"),t=require("./vendor-Bz5F_va8.js");let n=require("react");n=e.r(n);var r=t.Ar();function i({className:e,value:n,...i}){return(0,r.jsx)(t.zt,{"data-slot":`progress`,value:n,className:t.ei(`bg-muted relative flex h-1 w-full items-center overflow-x-hidden rounded-full`,e),...i,children:(0,r.jsx)(t.Bt,{"data-slot":`progress-indicator`,className:`bg-primary size-full flex-1 transition-all`,style:{transform:`translateX(-${100-(n||0)}%)`}})})}exports.Progress=i;
1
+ "use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./vendor-Ceu--gxM.js");let n=require("react");n=e.r(n);var r=t.Ar();function i({className:e,value:n,...i}){return(0,r.jsx)(t.zt,{"data-slot":`progress`,value:n,className:t.ei(`bg-muted relative flex h-1 w-full items-center overflow-x-hidden rounded-full`,e),...i,children:(0,r.jsx)(t.Bt,{"data-slot":`progress-indicator`,className:`bg-primary size-full flex-1 transition-all`,style:{transform:`translateX(-${100-(n||0)}%)`}})})}exports.Progress=i;
2
2
  //# sourceMappingURL=progress.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"progress.cjs","names":[],"sources":["../packages/ui-web/src/progress.tsx"],"sourcesContent":["'use client';\n\nimport type { ProgressBaseProps } from '@gv-tech/ui-core';\nimport { cn } from 'cn';\nimport { Progress as ProgressPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\nfunction Progress({ className, value, ...props }: React.ComponentProps<typeof ProgressPrimitive.Root>) {\n return (\n <ProgressPrimitive.Root\n data-slot=\"progress\"\n value={value}\n className={cn('bg-muted relative flex h-1 w-full items-center overflow-x-hidden rounded-full', className)}\n {...props}\n >\n <ProgressPrimitive.Indicator\n data-slot=\"progress-indicator\"\n className=\"bg-primary size-full flex-1 transition-all\"\n style={{ transform: `translateX(-${100 - (value || 0)}%)` }}\n />\n </ProgressPrimitive.Root>\n );\n}\n\nexport { Progress };\n\n// Verify that the component satisfies the ui-core contract\nexport type ___verifyProgressContract = React.ComponentProps<typeof Progress> extends ProgressBaseProps ? true : false;\n"],"mappings":"8NAOA,SAAS,EAAS,CAAE,YAAW,QAAO,GAAG,GAA8D,CACrG,OACE,EAAA,EAAA,KAAA,EAAA,GAAA,CACE,YAAU,WACH,QACP,UAAW,EAAA,GAAG,gFAAiF,CAAS,EACxG,GAAI,YAEJ,EAAA,EAAA,KAAA,EAAA,GAAA,CACE,YAAU,qBACV,UAAU,6CACV,MAAO,CAAE,UAAW,eAAe,KAAO,GAAS,GAAG,GAAI,CAC3D,CAAA,CACqB,CAAA,CAE5B"}
1
+ {"version":3,"file":"progress.cjs","names":["cn","require_rolldown_runtime","require_vendor","react","import_jsx_runtime","Progress","props","className","value"],"sources":["../packages/ui-web/src/progress.tsx"],"sourcesContent":["'use client';\n\nimport type { ProgressBaseProps } from '@gv-tech/ui-core';\nimport { cn } from 'cn';\nimport { Progress as ProgressPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\nfunction Progress({ className, value, ...props }: React.ComponentProps<typeof ProgressPrimitive.Root>) {\n return (\n <ProgressPrimitive.Root\n data-slot=\"progress\"\n value={value}\n className={cn('bg-muted relative flex h-1 w-full items-center overflow-x-hidden rounded-full', className)}\n {...props}\n >\n <ProgressPrimitive.Indicator\n data-slot=\"progress-indicator\"\n className=\"bg-primary size-full flex-1 transition-all\"\n style={{ transform: `translateX(-${100 - (value || 0)}%)` }}\n />\n </ProgressPrimitive.Root>\n );\n}\n\nexport { Progress };\n\n// Verify that the component satisfies the ui-core contract\nexport type ___verifyProgressContract = React.ComponentProps<typeof Progress> extends ProgressBaseProps ? true : false;\n"],"mappings":"A,8NAOA,SAASK,EAAS,CAAE,YAAW,QAAO,GAAGC,GAA8D,CACrG,OACE,EAAAF,EAAA,IAAA,CAAAF,EAAA,GAAA,CACE,YAAU,WACH,QACP,UAAWF,EAAAA,GAAG,gFAAiFO,CAAS,EACxG,GAAID,EAEJ,UAAA,EAAAF,EAAA,IAAA,CAAAF,EAAA,GAAA,CACE,YAAU,qBACV,UAAU,6CACV,MAAO,CAAE,UAAW,eAAe,KAAOM,GAAS,GAAG,GAAI,CAC3D,CAAA,CACqB,CAAA,CAE5B,C"}
package/dist/progress.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  "use client";
3
- import { Ar as e, Bt as t, ei as n, zt as r } from "./vendor-0E4gGRxj.mjs";
3
+ import { Ar as e, Bt as t, ei as n, zt as r } from "./vendor-PEVwmg1D.mjs";
4
4
  import "react";
5
- //#region packages/ui-web/src/progress.tsx
5
+ // packages/ui-web/src/progress.tsx
6
6
  var i = e();
7
7
  function a({ className: e, value: a, ...o }) {
8
8
  return /* @__PURE__ */ (0, i.jsx)(r, {
@@ -17,7 +17,6 @@ function a({ className: e, value: a, ...o }) {
17
17
  })
18
18
  });
19
19
  }
20
- //#endregion
21
20
  export { a as Progress };
22
21
 
23
22
  //# sourceMappingURL=progress.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"progress.mjs","names":[],"sources":["../packages/ui-web/src/progress.tsx"],"sourcesContent":["'use client';\n\nimport type { ProgressBaseProps } from '@gv-tech/ui-core';\nimport { cn } from 'cn';\nimport { Progress as ProgressPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\nfunction Progress({ className, value, ...props }: React.ComponentProps<typeof ProgressPrimitive.Root>) {\n return (\n <ProgressPrimitive.Root\n data-slot=\"progress\"\n value={value}\n className={cn('bg-muted relative flex h-1 w-full items-center overflow-x-hidden rounded-full', className)}\n {...props}\n >\n <ProgressPrimitive.Indicator\n data-slot=\"progress-indicator\"\n className=\"bg-primary size-full flex-1 transition-all\"\n style={{ transform: `translateX(-${100 - (value || 0)}%)` }}\n />\n </ProgressPrimitive.Root>\n );\n}\n\nexport { Progress };\n\n// Verify that the component satisfies the ui-core contract\nexport type ___verifyProgressContract = React.ComponentProps<typeof Progress> extends ProgressBaseProps ? true : false;\n"],"mappings":";;;;;;AAOA,SAAS,EAAS,EAAE,cAAW,UAAO,GAAG,KAA8D;CACrG,OACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,aAAU;EACH;EACP,WAAW,EAAG,iFAAiF,CAAS;EACxG,GAAI;YAEJ,iBAAA,GAAA,EAAA,KAAC,GAAD;GACE,aAAU;GACV,WAAU;GACV,OAAO,EAAE,WAAW,eAAe,OAAO,KAAS,GAAG,IAAI;EAC3D,CAAA;CACqB,CAAA;AAE5B"}
1
+ {"version":3,"file":"progress.mjs","names":["ProgressPrimitive.Root","ProgressPrimitive.Indicator","require_jsx_runtime","ProgressIndicator","cn","Progress$1","import_jsx_runtime","Progress","props","className","value"],"sources":["../packages/ui-web/src/progress.tsx"],"sourcesContent":["'use client';\n\nimport type { ProgressBaseProps } from '@gv-tech/ui-core';\nimport { cn } from 'cn';\nimport { Progress as ProgressPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\nfunction Progress({ className, value, ...props }: React.ComponentProps<typeof ProgressPrimitive.Root>) {\n return (\n <ProgressPrimitive.Root\n data-slot=\"progress\"\n value={value}\n className={cn('bg-muted relative flex h-1 w-full items-center overflow-x-hidden rounded-full', className)}\n {...props}\n >\n <ProgressPrimitive.Indicator\n data-slot=\"progress-indicator\"\n className=\"bg-primary size-full flex-1 transition-all\"\n style={{ transform: `translateX(-${100 - (value || 0)}%)` }}\n />\n </ProgressPrimitive.Root>\n );\n}\n\nexport { Progress };\n\n// Verify that the component satisfies the ui-core contract\nexport type ___verifyProgressContract = React.ComponentProps<typeof Progress> extends ProgressBaseProps ? true : false;\n"],"mappings":";;;;;;AAOA,SAASO,EAAS,EAAE,cAAW,UAAO,GAAGC,KAA8D;CACrG,OACE,iBAAA,GAAAF,EAAA,IAAA,CAACN,GAAD;EACE,aAAU;EACH;EACP,WAAWI,EAAG,iFAAiFK,CAAS;EACxG,GAAID;EAEJ,UAAA,iBAAA,GAAAF,EAAA,IAAA,CAACL,GAAD;GACE,aAAU;GACV,WAAU;GACV,OAAO,EAAE,WAAW,eAAe,OAAOS,KAAS,GAAG,IAAI;EAC3D,CAAA;CACqB,CAAA;AAE5B"}
@@ -1,2 +1,2 @@
1
- "use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-mLOUI7ql.js"),t=require("./vendor-Bz5F_va8.js"),n=require("./button.cjs");let r=require("react");r=e.r(r);var i=t.Ar();function a({className:e,...n}){return(0,i.jsx)(t.t.Root,{"data-slot":`questionnaire`,className:t.ei(`flex w-full min-w-0 flex-col gap-4`,e),...n})}function o({className:e,...n}){return(0,i.jsx)(t.t.Progress,{"data-slot":`questionnaire-progress`,className:t.ei(`text-muted-foreground min-h-[1lh] w-fit min-w-[14ch] text-xs font-medium tabular-nums`,e),...n})}function s({className:e,...n}){return(0,i.jsx)(t.t.Item,{"data-slot":`questionnaire-item`,className:t.ei(`flex min-w-0 flex-col gap-4 border-0 p-0 outline-none`,e),...n})}function c({className:e,...n}){return(0,i.jsx)(t.t.Title,{"data-slot":`questionnaire-title`,className:t.ei(`text-base leading-snug font-medium text-pretty [&:not(:has(~[data-slot=questionnaire-description]))]:mb-4`,e),...n})}function l({className:e,...n}){return(0,i.jsx)(t.t.Description,{"data-slot":`questionnaire-description`,className:t.ei(`text-muted-foreground text-sm text-pretty`,e),...n})}function u({className:e,...n}){return(0,i.jsx)(t.t.Choices,{"data-slot":`questionnaire-choices`,className:t.ei(`group/questionnaire-choices grid min-w-0 gap-2`,e),...n})}function d({children:e,className:n,...r}){return(0,i.jsxs)(t.t.Choice,{"data-slot":`questionnaire-choice`,className:t.ei(`group/questionnaire-choice border-input hover:bg-muted/50 has-[>input:focus-visible]:border-ring has-[>input:focus-visible]:ring-ring/50 data-invalid:border-destructive dark:bg-input/20 data-checked:border-primary/40 data-checked:bg-muted dark:data-checked:bg-muted relative flex min-h-11 cursor-pointer items-start gap-2.5 rounded-lg border bg-transparent px-3 py-2.5 text-start text-sm transition-colors outline-none select-none has-[>input:focus-visible]:ring-3`,`data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50`,n),...r,children:[(0,i.jsx)(t.t.ChoiceInput,{"data-slot":`questionnaire-choice-input`,className:`absolute inset-0 z-10 size-full cursor-pointer opacity-0`}),(0,i.jsxs)(`span`,{"aria-hidden":`true`,"data-slot":`questionnaire-choice-indicator`,className:`border-input group-data-checked/questionnaire-choice:border-primary group-data-checked/questionnaire-choice:bg-primary group-data-checked/questionnaire-choice:text-primary-foreground dark:bg-input/30 dark:group-data-checked/questionnaire-choice:bg-primary pointer-events-none relative flex size-4 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-[4px] border group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5 group-data-[type=radio]/questionnaire-choice:rounded-full`,children:[(0,i.jsx)(`span`,{"data-slot":`questionnaire-choice-indicator-dot`,className:`bg-primary-foreground hidden size-2 rounded-full group-data-checked/questionnaire-choice:block group-data-[type=checkbox]/questionnaire-choice:hidden`}),(0,i.jsx)(t.Zr,{"data-slot":`questionnaire-choice-indicator-check`,className:`hidden size-3.5 group-data-checked/questionnaire-choice:block group-data-[type=radio]/questionnaire-choice:hidden`})]}),(0,i.jsx)(t.t.ChoiceLabel,{"data-slot":`questionnaire-choice-label`,className:`flex min-w-0 flex-1 flex-col gap-0.5 leading-snug`,children:e}),(0,i.jsx)(t.t.ChoiceShortcut,{"data-slot":`questionnaire-choice-shortcut`,className:`border-input bg-background text-muted-foreground pointer-events-none ms-auto hidden size-5 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-md border font-mono text-[0.625rem] leading-none font-medium group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5 group-data-[shortcut]/questionnaire-choice:inline-flex`})]})}function f({className:e,...n}){return(0,i.jsx)(`span`,{"data-slot":`questionnaire-choice-description`,className:t.ei(`text-muted-foreground`,e),...n})}function p({className:e,...n}){return(0,i.jsx)(`div`,{"data-slot":`questionnaire-input-wrapper`,className:`group/questionnaire-input relative w-full min-w-0`,children:(0,i.jsx)(t.t.Input,{"data-slot":`questionnaire-input`,className:t.ei(`border-input focus-visible:border-ring focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 h-8 min-h-11 w-full min-w-0 rounded-lg border bg-transparent px-2.5 py-1 text-base transition-[color,box-shadow,background-color] outline-none focus-visible:ring-3 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3 sm:min-h-0 md:text-sm`,`selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground`,e),...n})})}function m({className:e,...n}){return(0,i.jsx)(t.t.Error,{"data-slot":`questionnaire-error`,className:t.ei(`text-destructive mt-2 text-sm`,e),...n})}function h({className:e,...n}){return(0,i.jsx)(`div`,{"data-slot":`questionnaire-actions`,className:t.ei(`grid min-h-11 w-full grid-cols-[minmax(0,1fr)_auto_auto] items-center gap-2 sm:min-h-8`,e),...n})}function g({children:e,className:r,size:a=`default`,variant:o=`outline`,...s}){return(0,i.jsx)(t.t.Previous,{"data-slot":`questionnaire-previous`,"data-size":a,"data-variant":o,className:t.ei(n.buttonVariants({size:a,variant:o}),`col-start-1 row-start-1 min-h-11 justify-self-start sm:min-h-0`,r),...s,children:e??`Previous`})}function _({children:e,className:r,size:a=`default`,variant:o=`outline`,...s}){return(0,i.jsx)(t.t.Skip,{"data-slot":`questionnaire-skip`,"data-size":a,"data-variant":o,className:t.ei(n.buttonVariants({size:a,variant:o}),`col-start-2 row-start-1 min-h-11 justify-self-end sm:min-h-0`,r),...s,children:e??`Skip`})}function v({children:e,className:r,size:a=`default`,variant:o=`default`,...s}){return(0,i.jsx)(t.t.Next,{"data-slot":`questionnaire-next`,"data-size":a,"data-variant":o,className:t.ei(n.buttonVariants({size:a,variant:o}),`col-start-3 row-start-1 min-h-11 justify-self-end sm:min-h-0`,r),...s,children:e??`Next`})}function y({children:e,className:r,size:a=`default`,variant:o=`default`,...s}){return(0,i.jsx)(t.t.Submit,{"data-slot":`questionnaire-submit`,"data-size":a,"data-variant":o,className:t.ei(n.buttonVariants({size:a,variant:o}),`col-start-3 row-start-1 min-h-11 justify-self-end sm:min-h-0`,r),...s,children:e??`Submit`})}exports.Questionnaire=a,exports.QuestionnaireActions=h,exports.QuestionnaireChoice=d,exports.QuestionnaireChoiceDescription=f,exports.QuestionnaireChoices=u,exports.QuestionnaireDescription=l,exports.QuestionnaireError=m,exports.QuestionnaireInput=p,exports.QuestionnaireItem=s,exports.QuestionnaireNext=v,exports.QuestionnairePrevious=g,exports.QuestionnaireProgress=o,exports.QuestionnaireSkip=_,exports.QuestionnaireSubmit=y,exports.QuestionnaireTitle=c;
1
+ "use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./vendor-Ceu--gxM.js"),n=require("./button.cjs");let r=require("react");r=e.r(r);var i=t.Ar();function a({className:e,...n}){return(0,i.jsx)(t.t.Root,{"data-slot":`questionnaire`,className:t.ei(`flex w-full min-w-0 flex-col gap-4`,e),...n})}function o({className:e,...n}){return(0,i.jsx)(t.t.Progress,{"data-slot":`questionnaire-progress`,className:t.ei(`text-muted-foreground min-h-[1lh] w-fit min-w-[14ch] text-xs font-medium tabular-nums`,e),...n})}function s({className:e,...n}){return(0,i.jsx)(t.t.Item,{"data-slot":`questionnaire-item`,className:t.ei(`flex min-w-0 flex-col gap-4 border-0 p-0 outline-none`,e),...n})}function c({className:e,...n}){return(0,i.jsx)(t.t.Title,{"data-slot":`questionnaire-title`,className:t.ei(`text-base leading-snug font-medium text-pretty [&:not(:has(~[data-slot=questionnaire-description]))]:mb-4`,e),...n})}function l({className:e,...n}){return(0,i.jsx)(t.t.Description,{"data-slot":`questionnaire-description`,className:t.ei(`text-muted-foreground text-sm text-pretty`,e),...n})}function u({className:e,...n}){return(0,i.jsx)(t.t.Choices,{"data-slot":`questionnaire-choices`,className:t.ei(`group/questionnaire-choices grid min-w-0 gap-2`,e),...n})}function d({children:e,className:n,...r}){return(0,i.jsxs)(t.t.Choice,{"data-slot":`questionnaire-choice`,className:t.ei(`group/questionnaire-choice border-input hover:bg-muted/50 has-[>input:focus-visible]:border-ring has-[>input:focus-visible]:ring-ring/50 data-invalid:border-destructive dark:bg-input/20 data-checked:border-primary/40 data-checked:bg-muted dark:data-checked:bg-muted relative flex min-h-11 cursor-pointer items-start gap-2.5 rounded-lg border bg-transparent px-3 py-2.5 text-start text-sm transition-colors outline-none select-none has-[>input:focus-visible]:ring-3`,`data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50`,n),...r,children:[(0,i.jsx)(t.t.ChoiceInput,{"data-slot":`questionnaire-choice-input`,className:`absolute inset-0 z-10 size-full cursor-pointer opacity-0`}),(0,i.jsxs)(`span`,{"aria-hidden":`true`,"data-slot":`questionnaire-choice-indicator`,className:`border-input group-data-checked/questionnaire-choice:border-primary group-data-checked/questionnaire-choice:bg-primary group-data-checked/questionnaire-choice:text-primary-foreground dark:bg-input/30 dark:group-data-checked/questionnaire-choice:bg-primary pointer-events-none relative flex size-4 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-[4px] border group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5 group-data-[type=radio]/questionnaire-choice:rounded-full`,children:[(0,i.jsx)(`span`,{"data-slot":`questionnaire-choice-indicator-dot`,className:`bg-primary-foreground hidden size-2 rounded-full group-data-checked/questionnaire-choice:block group-data-[type=checkbox]/questionnaire-choice:hidden`}),(0,i.jsx)(t.Zr,{"data-slot":`questionnaire-choice-indicator-check`,className:`hidden size-3.5 group-data-checked/questionnaire-choice:block group-data-[type=radio]/questionnaire-choice:hidden`})]}),(0,i.jsx)(t.t.ChoiceLabel,{"data-slot":`questionnaire-choice-label`,className:`flex min-w-0 flex-1 flex-col gap-0.5 leading-snug`,children:e}),(0,i.jsx)(t.t.ChoiceShortcut,{"data-slot":`questionnaire-choice-shortcut`,className:`border-input bg-background text-muted-foreground pointer-events-none ms-auto hidden size-5 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-md border font-mono text-[0.625rem] leading-none font-medium group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5 group-data-[shortcut]/questionnaire-choice:inline-flex`})]})}function f({className:e,...n}){return(0,i.jsx)(`span`,{"data-slot":`questionnaire-choice-description`,className:t.ei(`text-muted-foreground`,e),...n})}function p({className:e,...n}){return(0,i.jsx)(`div`,{"data-slot":`questionnaire-input-wrapper`,className:`group/questionnaire-input relative w-full min-w-0`,children:(0,i.jsx)(t.t.Input,{"data-slot":`questionnaire-input`,className:t.ei(`border-input focus-visible:border-ring focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 h-8 min-h-11 w-full min-w-0 rounded-lg border bg-transparent px-2.5 py-1 text-base transition-[color,box-shadow,background-color] outline-none focus-visible:ring-3 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3 sm:min-h-0 md:text-sm`,`selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground`,e),...n})})}function m({className:e,...n}){return(0,i.jsx)(t.t.Error,{"data-slot":`questionnaire-error`,className:t.ei(`text-destructive mt-2 text-sm`,e),...n})}function h({className:e,...n}){return(0,i.jsx)(`div`,{"data-slot":`questionnaire-actions`,className:t.ei(`grid min-h-11 w-full grid-cols-[minmax(0,1fr)_auto_auto] items-center gap-2 sm:min-h-8`,e),...n})}function g({children:e,className:r,size:a=`default`,variant:o=`outline`,...s}){return(0,i.jsx)(t.t.Previous,{"data-slot":`questionnaire-previous`,"data-size":a,"data-variant":o,className:t.ei(n.buttonVariants({size:a,variant:o}),`col-start-1 row-start-1 min-h-11 justify-self-start sm:min-h-0`,r),...s,children:e??`Previous`})}function _({children:e,className:r,size:a=`default`,variant:o=`outline`,...s}){return(0,i.jsx)(t.t.Skip,{"data-slot":`questionnaire-skip`,"data-size":a,"data-variant":o,className:t.ei(n.buttonVariants({size:a,variant:o}),`col-start-2 row-start-1 min-h-11 justify-self-end sm:min-h-0`,r),...s,children:e??`Skip`})}function v({children:e,className:r,size:a=`default`,variant:o=`default`,...s}){return(0,i.jsx)(t.t.Next,{"data-slot":`questionnaire-next`,"data-size":a,"data-variant":o,className:t.ei(n.buttonVariants({size:a,variant:o}),`col-start-3 row-start-1 min-h-11 justify-self-end sm:min-h-0`,r),...s,children:e??`Next`})}function y({children:e,className:r,size:a=`default`,variant:o=`default`,...s}){return(0,i.jsx)(t.t.Submit,{"data-slot":`questionnaire-submit`,"data-size":a,"data-variant":o,className:t.ei(n.buttonVariants({size:a,variant:o}),`col-start-3 row-start-1 min-h-11 justify-self-end sm:min-h-0`,r),...s,children:e??`Submit`})}exports.Questionnaire=a,exports.QuestionnaireActions=h,exports.QuestionnaireChoice=d,exports.QuestionnaireChoiceDescription=f,exports.QuestionnaireChoices=u,exports.QuestionnaireDescription=l,exports.QuestionnaireError=m,exports.QuestionnaireInput=p,exports.QuestionnaireItem=s,exports.QuestionnaireNext=v,exports.QuestionnairePrevious=g,exports.QuestionnaireProgress=o,exports.QuestionnaireSkip=_,exports.QuestionnaireSubmit=y,exports.QuestionnaireTitle=c;
2
2
  //# sourceMappingURL=questionnaire.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"questionnaire.cjs","names":[],"sources":["../packages/ui-web/src/questionnaire.tsx"],"sourcesContent":["'use client';\n\nimport type {\n QuestionnaireActionsBaseProps,\n QuestionnaireBaseProps,\n QuestionnaireChoiceBaseProps,\n QuestionnaireChoiceDescriptionBaseProps,\n QuestionnaireChoicesBaseProps,\n QuestionnaireDescriptionBaseProps,\n QuestionnaireErrorBaseProps,\n QuestionnaireInputBaseProps,\n QuestionnaireItemBaseProps,\n QuestionnaireNextBaseProps,\n QuestionnairePreviousBaseProps,\n QuestionnaireProgressBaseProps,\n QuestionnaireSkipBaseProps,\n QuestionnaireSubmitBaseProps,\n QuestionnaireTitleBaseProps,\n} from '@gv-tech/ui-core';\nimport { Questionnaire as QuestionnairePrimitive } from '@shadcn/react/questionnaire';\nimport { cn } from 'cn';\nimport { CheckIcon } from 'lucide-react';\nimport * as React from 'react';\n\nimport { buttonVariants, type Button } from '@/./button';\n\nfunction Questionnaire({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Root> & QuestionnaireBaseProps) {\n return (\n <QuestionnairePrimitive.Root\n data-slot=\"questionnaire\"\n className={cn('flex w-full min-w-0 flex-col gap-4', className)}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireProgress({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Progress> & QuestionnaireProgressBaseProps) {\n return (\n <QuestionnairePrimitive.Progress\n data-slot=\"questionnaire-progress\"\n className={cn('text-muted-foreground min-h-[1lh] w-fit min-w-[14ch] text-xs font-medium tabular-nums', className)}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireItem({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Item> & QuestionnaireItemBaseProps) {\n return (\n <QuestionnairePrimitive.Item\n data-slot=\"questionnaire-item\"\n className={cn('flex min-w-0 flex-col gap-4 border-0 p-0 outline-none', className)}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireTitle({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Title> & QuestionnaireTitleBaseProps) {\n return (\n <QuestionnairePrimitive.Title\n data-slot=\"questionnaire-title\"\n className={cn(\n 'text-base leading-snug font-medium text-pretty [&:not(:has(~[data-slot=questionnaire-description]))]:mb-4',\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireDescription({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Description> & QuestionnaireDescriptionBaseProps) {\n return (\n <QuestionnairePrimitive.Description\n data-slot=\"questionnaire-description\"\n className={cn('text-muted-foreground text-sm text-pretty', className)}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireChoices({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Choices> & QuestionnaireChoicesBaseProps) {\n return (\n <QuestionnairePrimitive.Choices\n data-slot=\"questionnaire-choices\"\n className={cn('group/questionnaire-choices grid min-w-0 gap-2', className)}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireChoice({\n children,\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Choice> & QuestionnaireChoiceBaseProps) {\n return (\n <QuestionnairePrimitive.Choice\n data-slot=\"questionnaire-choice\"\n className={cn(\n 'group/questionnaire-choice border-input hover:bg-muted/50 has-[>input:focus-visible]:border-ring has-[>input:focus-visible]:ring-ring/50 data-invalid:border-destructive dark:bg-input/20 data-checked:border-primary/40 data-checked:bg-muted dark:data-checked:bg-muted relative flex min-h-11 cursor-pointer items-start gap-2.5 rounded-lg border bg-transparent px-3 py-2.5 text-start text-sm transition-colors outline-none select-none has-[>input:focus-visible]:ring-3',\n 'data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <QuestionnairePrimitive.ChoiceInput\n data-slot=\"questionnaire-choice-input\"\n className=\"absolute inset-0 z-10 size-full cursor-pointer opacity-0\"\n />\n <span\n aria-hidden=\"true\"\n data-slot=\"questionnaire-choice-indicator\"\n className=\"border-input group-data-checked/questionnaire-choice:border-primary group-data-checked/questionnaire-choice:bg-primary group-data-checked/questionnaire-choice:text-primary-foreground dark:bg-input/30 dark:group-data-checked/questionnaire-choice:bg-primary pointer-events-none relative flex size-4 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-[4px] border group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5 group-data-[type=radio]/questionnaire-choice:rounded-full\"\n >\n <span\n data-slot=\"questionnaire-choice-indicator-dot\"\n className=\"bg-primary-foreground hidden size-2 rounded-full group-data-checked/questionnaire-choice:block group-data-[type=checkbox]/questionnaire-choice:hidden\"\n />\n <CheckIcon\n data-slot=\"questionnaire-choice-indicator-check\"\n className=\"hidden size-3.5 group-data-checked/questionnaire-choice:block group-data-[type=radio]/questionnaire-choice:hidden\"\n />\n </span>\n <QuestionnairePrimitive.ChoiceLabel\n data-slot=\"questionnaire-choice-label\"\n className=\"flex min-w-0 flex-1 flex-col gap-0.5 leading-snug\"\n >\n {children}\n </QuestionnairePrimitive.ChoiceLabel>\n <QuestionnairePrimitive.ChoiceShortcut\n data-slot=\"questionnaire-choice-shortcut\"\n className=\"border-input bg-background text-muted-foreground pointer-events-none ms-auto hidden size-5 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-md border font-mono text-[0.625rem] leading-none font-medium group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5 group-data-[shortcut]/questionnaire-choice:inline-flex\"\n />\n </QuestionnairePrimitive.Choice>\n );\n}\n\nfunction QuestionnaireChoiceDescription({\n className,\n ...props\n}: React.ComponentProps<'span'> & QuestionnaireChoiceDescriptionBaseProps) {\n return (\n <span data-slot=\"questionnaire-choice-description\" className={cn('text-muted-foreground', className)} {...props} />\n );\n}\n\nfunction QuestionnaireInput({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Input> & QuestionnaireInputBaseProps) {\n return (\n <div data-slot=\"questionnaire-input-wrapper\" className=\"group/questionnaire-input relative w-full min-w-0\">\n <QuestionnairePrimitive.Input\n data-slot=\"questionnaire-input\"\n className={cn(\n 'border-input focus-visible:border-ring focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 h-8 min-h-11 w-full min-w-0 rounded-lg border bg-transparent px-2.5 py-1 text-base transition-[color,box-shadow,background-color] outline-none focus-visible:ring-3 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3 sm:min-h-0 md:text-sm',\n 'selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground',\n className,\n )}\n {...props}\n />\n </div>\n );\n}\n\nfunction QuestionnaireError({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Error> & QuestionnaireErrorBaseProps) {\n return (\n <QuestionnairePrimitive.Error\n data-slot=\"questionnaire-error\"\n className={cn('text-destructive mt-2 text-sm', className)}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireActions({ className, ...props }: React.ComponentProps<'div'> & QuestionnaireActionsBaseProps) {\n return (\n <div\n data-slot=\"questionnaire-actions\"\n className={cn(\n 'grid min-h-11 w-full grid-cols-[minmax(0,1fr)_auto_auto] items-center gap-2 sm:min-h-8',\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction QuestionnairePrevious({\n children,\n className,\n size = 'default',\n variant = 'outline',\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Previous> &\n Pick<React.ComponentProps<typeof Button>, 'size' | 'variant'> &\n QuestionnairePreviousBaseProps) {\n return (\n <QuestionnairePrimitive.Previous\n data-slot=\"questionnaire-previous\"\n data-size={size}\n data-variant={variant}\n className={cn(\n buttonVariants({ size, variant }),\n 'col-start-1 row-start-1 min-h-11 justify-self-start sm:min-h-0',\n className,\n )}\n {...props}\n >\n {children ?? 'Previous'}\n </QuestionnairePrimitive.Previous>\n );\n}\n\nfunction QuestionnaireSkip({\n children,\n className,\n size = 'default',\n variant = 'outline',\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Skip> &\n Pick<React.ComponentProps<typeof Button>, 'size' | 'variant'> &\n QuestionnaireSkipBaseProps) {\n return (\n <QuestionnairePrimitive.Skip\n data-slot=\"questionnaire-skip\"\n data-size={size}\n data-variant={variant}\n className={cn(\n buttonVariants({ size, variant }),\n 'col-start-2 row-start-1 min-h-11 justify-self-end sm:min-h-0',\n className,\n )}\n {...props}\n >\n {children ?? 'Skip'}\n </QuestionnairePrimitive.Skip>\n );\n}\n\nfunction QuestionnaireNext({\n children,\n className,\n size = 'default',\n variant = 'default',\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Next> &\n Pick<React.ComponentProps<typeof Button>, 'size' | 'variant'> &\n QuestionnaireNextBaseProps) {\n return (\n <QuestionnairePrimitive.Next\n data-slot=\"questionnaire-next\"\n data-size={size}\n data-variant={variant}\n className={cn(\n buttonVariants({ size, variant }),\n 'col-start-3 row-start-1 min-h-11 justify-self-end sm:min-h-0',\n className,\n )}\n {...props}\n >\n {children ?? 'Next'}\n </QuestionnairePrimitive.Next>\n );\n}\n\nfunction QuestionnaireSubmit({\n children,\n className,\n size = 'default',\n variant = 'default',\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Submit> &\n Pick<React.ComponentProps<typeof Button>, 'size' | 'variant'> &\n QuestionnaireSubmitBaseProps) {\n return (\n <QuestionnairePrimitive.Submit\n data-slot=\"questionnaire-submit\"\n data-size={size}\n data-variant={variant}\n className={cn(\n buttonVariants({ size, variant }),\n 'col-start-3 row-start-1 min-h-11 justify-self-end sm:min-h-0',\n className,\n )}\n {...props}\n >\n {children ?? 'Submit'}\n </QuestionnairePrimitive.Submit>\n );\n}\n\nexport {\n Questionnaire,\n QuestionnaireActions,\n QuestionnaireChoice,\n QuestionnaireChoiceDescription,\n QuestionnaireChoices,\n QuestionnaireDescription,\n QuestionnaireError,\n QuestionnaireInput,\n QuestionnaireItem,\n QuestionnaireNext,\n QuestionnairePrevious,\n QuestionnaireProgress,\n QuestionnaireSkip,\n QuestionnaireSubmit,\n QuestionnaireTitle,\n};\n\n// Verify that the components satisfy the ui-core contracts\nexport type ___verifyQuestionnaireContract =\n React.ComponentProps<typeof Questionnaire> extends QuestionnaireBaseProps ? true : false;\n"],"mappings":"wPA0BA,SAAS,EAAc,CACrB,YACA,GA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SAAxB,CACE,YAAU,yBACV,YAAW,EACX,eAAc,EACd,UAAW,EAAA,GACT,EAAA,eAAe,CAAE,OAAM,SAAQ,CAAC,EAChC,iEACA,CACF,EACA,GAAI,WAEH,GAAY,UACkB,CAAA,CAErC,CAEA,SAAS,EAAkB,CACzB,WACA,YACA,OAAO,UACP,UAAU,UACV,GAAG,GAGyB,CAC5B,OACE,EAAA,EAAA,KAAC,EAAA,EAAuB,KAAxB,CACE,YAAU,qBACV,YAAW,EACX,eAAc,EACd,UAAW,EAAA,GACT,EAAA,eAAe,CAAE,OAAM,SAAQ,CAAC,EAChC,+DACA,CACF,EACA,GAAI,WAEH,GAAY,MACc,CAAA,CAEjC,CAEA,SAAS,EAAkB,CACzB,WACA,YACA,OAAO,UACP,UAAU,UACV,GAAG,GAGyB,CAC5B,OACE,EAAA,EAAA,KAAC,EAAA,EAAuB,KAAxB,CACE,YAAU,qBACV,YAAW,EACX,eAAc,EACd,UAAW,EAAA,GACT,EAAA,eAAe,CAAE,OAAM,SAAQ,CAAC,EAChC,+DACA,CACF,EACA,GAAI,WAEH,GAAY,MACc,CAAA,CAEjC,CAEA,SAAS,EAAoB,CAC3B,WACA,YACA,OAAO,UACP,UAAU,UACV,GAAG,GAG2B,CAC9B,OACE,EAAA,EAAA,KAAC,EAAA,EAAuB,OAAxB,CACE,YAAU,uBACV,YAAW,EACX,eAAc,EACd,UAAW,EAAA,GACT,EAAA,eAAe,CAAE,OAAM,SAAQ,CAAC,EAChC,+DACA,CACF,EACA,GAAI,WAEH,GAAY,QACgB,CAAA,CAEnC"}
1
+ {"version":3,"file":"questionnaire.cjs","names":["QuestionnairePrimitive","cn","CheckIcon","buttonVariants","require_rolldown_runtime","require_vendor","require_button","react","import_jsx_runtime","Questionnaire","props","className","QuestionnaireProgress","QuestionnaireItem","QuestionnaireTitle","QuestionnaireDescription","QuestionnaireChoices","QuestionnaireChoice","QuestionnaireChoiceDescription","QuestionnaireInput","QuestionnaireError","QuestionnaireActions","QuestionnairePrevious","size","variant","children","QuestionnaireSkip","QuestionnaireNext","QuestionnaireSubmit"],"sources":["../packages/ui-web/src/questionnaire.tsx"],"sourcesContent":["'use client';\n\nimport type {\n QuestionnaireActionsBaseProps,\n QuestionnaireBaseProps,\n QuestionnaireChoiceBaseProps,\n QuestionnaireChoiceDescriptionBaseProps,\n QuestionnaireChoicesBaseProps,\n QuestionnaireDescriptionBaseProps,\n QuestionnaireErrorBaseProps,\n QuestionnaireInputBaseProps,\n QuestionnaireItemBaseProps,\n QuestionnaireNextBaseProps,\n QuestionnairePreviousBaseProps,\n QuestionnaireProgressBaseProps,\n QuestionnaireSkipBaseProps,\n QuestionnaireSubmitBaseProps,\n QuestionnaireTitleBaseProps,\n} from '@gv-tech/ui-core';\nimport { Questionnaire as QuestionnairePrimitive } from '@shadcn/react/questionnaire';\nimport { cn } from 'cn';\nimport { CheckIcon } from 'lucide-react';\nimport * as React from 'react';\n\nimport { buttonVariants, type Button } from '@/./button';\n\nfunction Questionnaire({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Root> & QuestionnaireBaseProps) {\n return (\n <QuestionnairePrimitive.Root\n data-slot=\"questionnaire\"\n className={cn('flex w-full min-w-0 flex-col gap-4', className)}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireProgress({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Progress> & QuestionnaireProgressBaseProps) {\n return (\n <QuestionnairePrimitive.Progress\n data-slot=\"questionnaire-progress\"\n className={cn('text-muted-foreground min-h-[1lh] w-fit min-w-[14ch] text-xs font-medium tabular-nums', className)}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireItem({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Item> & QuestionnaireItemBaseProps) {\n return (\n <QuestionnairePrimitive.Item\n data-slot=\"questionnaire-item\"\n className={cn('flex min-w-0 flex-col gap-4 border-0 p-0 outline-none', className)}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireTitle({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Title> & QuestionnaireTitleBaseProps) {\n return (\n <QuestionnairePrimitive.Title\n data-slot=\"questionnaire-title\"\n className={cn(\n 'text-base leading-snug font-medium text-pretty [&:not(:has(~[data-slot=questionnaire-description]))]:mb-4',\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireDescription({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Description> & QuestionnaireDescriptionBaseProps) {\n return (\n <QuestionnairePrimitive.Description\n data-slot=\"questionnaire-description\"\n className={cn('text-muted-foreground text-sm text-pretty', className)}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireChoices({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Choices> & QuestionnaireChoicesBaseProps) {\n return (\n <QuestionnairePrimitive.Choices\n data-slot=\"questionnaire-choices\"\n className={cn('group/questionnaire-choices grid min-w-0 gap-2', className)}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireChoice({\n children,\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Choice> & QuestionnaireChoiceBaseProps) {\n return (\n <QuestionnairePrimitive.Choice\n data-slot=\"questionnaire-choice\"\n className={cn(\n 'group/questionnaire-choice border-input hover:bg-muted/50 has-[>input:focus-visible]:border-ring has-[>input:focus-visible]:ring-ring/50 data-invalid:border-destructive dark:bg-input/20 data-checked:border-primary/40 data-checked:bg-muted dark:data-checked:bg-muted relative flex min-h-11 cursor-pointer items-start gap-2.5 rounded-lg border bg-transparent px-3 py-2.5 text-start text-sm transition-colors outline-none select-none has-[>input:focus-visible]:ring-3',\n 'data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <QuestionnairePrimitive.ChoiceInput\n data-slot=\"questionnaire-choice-input\"\n className=\"absolute inset-0 z-10 size-full cursor-pointer opacity-0\"\n />\n <span\n aria-hidden=\"true\"\n data-slot=\"questionnaire-choice-indicator\"\n className=\"border-input group-data-checked/questionnaire-choice:border-primary group-data-checked/questionnaire-choice:bg-primary group-data-checked/questionnaire-choice:text-primary-foreground dark:bg-input/30 dark:group-data-checked/questionnaire-choice:bg-primary pointer-events-none relative flex size-4 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-[4px] border group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5 group-data-[type=radio]/questionnaire-choice:rounded-full\"\n >\n <span\n data-slot=\"questionnaire-choice-indicator-dot\"\n className=\"bg-primary-foreground hidden size-2 rounded-full group-data-checked/questionnaire-choice:block group-data-[type=checkbox]/questionnaire-choice:hidden\"\n />\n <CheckIcon\n data-slot=\"questionnaire-choice-indicator-check\"\n className=\"hidden size-3.5 group-data-checked/questionnaire-choice:block group-data-[type=radio]/questionnaire-choice:hidden\"\n />\n </span>\n <QuestionnairePrimitive.ChoiceLabel\n data-slot=\"questionnaire-choice-label\"\n className=\"flex min-w-0 flex-1 flex-col gap-0.5 leading-snug\"\n >\n {children}\n </QuestionnairePrimitive.ChoiceLabel>\n <QuestionnairePrimitive.ChoiceShortcut\n data-slot=\"questionnaire-choice-shortcut\"\n className=\"border-input bg-background text-muted-foreground pointer-events-none ms-auto hidden size-5 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-md border font-mono text-[0.625rem] leading-none font-medium group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5 group-data-[shortcut]/questionnaire-choice:inline-flex\"\n />\n </QuestionnairePrimitive.Choice>\n );\n}\n\nfunction QuestionnaireChoiceDescription({\n className,\n ...props\n}: React.ComponentProps<'span'> & QuestionnaireChoiceDescriptionBaseProps) {\n return (\n <span data-slot=\"questionnaire-choice-description\" className={cn('text-muted-foreground', className)} {...props} />\n );\n}\n\nfunction QuestionnaireInput({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Input> & QuestionnaireInputBaseProps) {\n return (\n <div data-slot=\"questionnaire-input-wrapper\" className=\"group/questionnaire-input relative w-full min-w-0\">\n <QuestionnairePrimitive.Input\n data-slot=\"questionnaire-input\"\n className={cn(\n 'border-input focus-visible:border-ring focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 h-8 min-h-11 w-full min-w-0 rounded-lg border bg-transparent px-2.5 py-1 text-base transition-[color,box-shadow,background-color] outline-none focus-visible:ring-3 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3 sm:min-h-0 md:text-sm',\n 'selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground',\n className,\n )}\n {...props}\n />\n </div>\n );\n}\n\nfunction QuestionnaireError({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Error> & QuestionnaireErrorBaseProps) {\n return (\n <QuestionnairePrimitive.Error\n data-slot=\"questionnaire-error\"\n className={cn('text-destructive mt-2 text-sm', className)}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireActions({ className, ...props }: React.ComponentProps<'div'> & QuestionnaireActionsBaseProps) {\n return (\n <div\n data-slot=\"questionnaire-actions\"\n className={cn(\n 'grid min-h-11 w-full grid-cols-[minmax(0,1fr)_auto_auto] items-center gap-2 sm:min-h-8',\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction QuestionnairePrevious({\n children,\n className,\n size = 'default',\n variant = 'outline',\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Previous> &\n Pick<React.ComponentProps<typeof Button>, 'size' | 'variant'> &\n QuestionnairePreviousBaseProps) {\n return (\n <QuestionnairePrimitive.Previous\n data-slot=\"questionnaire-previous\"\n data-size={size}\n data-variant={variant}\n className={cn(\n buttonVariants({ size, variant }),\n 'col-start-1 row-start-1 min-h-11 justify-self-start sm:min-h-0',\n className,\n )}\n {...props}\n >\n {children ?? 'Previous'}\n </QuestionnairePrimitive.Previous>\n );\n}\n\nfunction QuestionnaireSkip({\n children,\n className,\n size = 'default',\n variant = 'outline',\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Skip> &\n Pick<React.ComponentProps<typeof Button>, 'size' | 'variant'> &\n QuestionnaireSkipBaseProps) {\n return (\n <QuestionnairePrimitive.Skip\n data-slot=\"questionnaire-skip\"\n data-size={size}\n data-variant={variant}\n className={cn(\n buttonVariants({ size, variant }),\n 'col-start-2 row-start-1 min-h-11 justify-self-end sm:min-h-0',\n className,\n )}\n {...props}\n >\n {children ?? 'Skip'}\n </QuestionnairePrimitive.Skip>\n );\n}\n\nfunction QuestionnaireNext({\n children,\n className,\n size = 'default',\n variant = 'default',\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Next> &\n Pick<React.ComponentProps<typeof Button>, 'size' | 'variant'> &\n QuestionnaireNextBaseProps) {\n return (\n <QuestionnairePrimitive.Next\n data-slot=\"questionnaire-next\"\n data-size={size}\n data-variant={variant}\n className={cn(\n buttonVariants({ size, variant }),\n 'col-start-3 row-start-1 min-h-11 justify-self-end sm:min-h-0',\n className,\n )}\n {...props}\n >\n {children ?? 'Next'}\n </QuestionnairePrimitive.Next>\n );\n}\n\nfunction QuestionnaireSubmit({\n children,\n className,\n size = 'default',\n variant = 'default',\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Submit> &\n Pick<React.ComponentProps<typeof Button>, 'size' | 'variant'> &\n QuestionnaireSubmitBaseProps) {\n return (\n <QuestionnairePrimitive.Submit\n data-slot=\"questionnaire-submit\"\n data-size={size}\n data-variant={variant}\n className={cn(\n buttonVariants({ size, variant }),\n 'col-start-3 row-start-1 min-h-11 justify-self-end sm:min-h-0',\n className,\n )}\n {...props}\n >\n {children ?? 'Submit'}\n </QuestionnairePrimitive.Submit>\n );\n}\n\nexport {\n Questionnaire,\n QuestionnaireActions,\n QuestionnaireChoice,\n QuestionnaireChoiceDescription,\n QuestionnaireChoices,\n QuestionnaireDescription,\n QuestionnaireError,\n QuestionnaireInput,\n QuestionnaireItem,\n QuestionnaireNext,\n QuestionnairePrevious,\n QuestionnaireProgress,\n QuestionnaireSkip,\n QuestionnaireSubmit,\n QuestionnaireTitle,\n};\n\n// Verify that the components satisfy the ui-core contracts\nexport type ___verifyQuestionnaireContract =\n React.ComponentProps<typeof Questionnaire> extends QuestionnaireBaseProps ? true : false;\n"],"mappings":"A,wPA0BA,SAASS,EAAc,CACrB,YACA,GAAGC,GACiF,CACpF,OACE,EAAAF,EAAA,IAAA,CAACR,EAAAA,EAAuB,KAAxB,CACE,YAAU,gBACV,UAAWC,EAAAA,GAAG,qCAAsCU,CAAS,EAC7D,GAAID,CACL,CAAA,CAEL,CAEA,SAASE,EAAsB,CAC7B,YACA,GAAGF,GAC6F,CAChG,OACE,EAAAF,EAAA,IAAA,CAACR,EAAAA,EAAuB,SAAxB,CACE,YAAU,yBACV,UAAWC,EAAAA,GAAG,wFAAyFU,CAAS,EAChH,GAAID,CACL,CAAA,CAEL,CAEA,SAASG,EAAkB,CACzB,YACA,GAAGH,GACqF,CACxF,OACE,EAAAF,EAAA,IAAA,CAACR,EAAAA,EAAuB,KAAxB,CACE,YAAU,qBACV,UAAWC,EAAAA,GAAG,wDAAyDU,CAAS,EAChF,GAAID,CACL,CAAA,CAEL,CAEA,SAASI,EAAmB,CAC1B,YACA,GAAGJ,GACuF,CAC1F,OACE,EAAAF,EAAA,IAAA,CAACR,EAAAA,EAAuB,MAAxB,CACE,YAAU,sBACV,UAAWC,EAAAA,GACT,4GACAU,CACF,EACA,GAAID,CACL,CAAA,CAEL,CAEA,SAASK,EAAyB,CAChC,YACA,GAAGL,GACmG,CACtG,OACE,EAAAF,EAAA,IAAA,CAACR,EAAAA,EAAuB,YAAxB,CACE,YAAU,4BACV,UAAWC,EAAAA,GAAG,4CAA6CU,CAAS,EACpE,GAAID,CACL,CAAA,CAEL,CAEA,SAASM,EAAqB,CAC5B,YACA,GAAGN,GAC2F,CAC9F,OACE,EAAAF,EAAA,IAA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AQ,CACF,EACA,GAAID,EAEH,SAAAe,GAAY,MACc,CAAA,CAEjC,CAEA,SAASG,EAAoB,CAC3B,WACA,YACA,OAAO,UACP,UAAU,UACV,GAAGlB,GAG2B,CAC9B,OACE,EAAAF,EAAA,IAAA,CAACR,EAAAA,EAAuB,OAAxB,CACE,YAAU,uBACV,YAAWuB,EACX,eAAcC,EACd,UAAWvB,EAAAA,GACTE,EAAAA,eAAe,CAAE,OAAM,SAAQ,CAAC,EAChC,+DACAQ,CACF,EACA,GAAID,EAEH,SAAAe,GAAY,QACgB,CAAA,CAEnC,C"}
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  "use client";
3
- import { Ar as e, Zr as t, ei as n, t as r } from "./vendor-0E4gGRxj.mjs";
3
+ import { Ar as e, Zr as t, ei as n, t as r } from "./vendor-PEVwmg1D.mjs";
4
4
  import { buttonVariants as i } from "./button.mjs";
5
5
  import "react";
6
- //#region packages/ui-web/src/questionnaire.tsx
6
+ // packages/ui-web/src/questionnaire.tsx
7
7
  var a = e();
8
8
  function o({ className: e, ...t }) {
9
9
  return /* @__PURE__ */ (0, a.jsx)(r.Root, {
@@ -165,7 +165,6 @@ function b({ children: e, className: t, size: o = "default", variant: s = "defau
165
165
  children: e ?? "Submit"
166
166
  });
167
167
  }
168
- //#endregion
169
168
  export { o as Questionnaire, g as QuestionnaireActions, f as QuestionnaireChoice, p as QuestionnaireChoiceDescription, d as QuestionnaireChoices, u as QuestionnaireDescription, h as QuestionnaireError, m as QuestionnaireInput, c as QuestionnaireItem, y as QuestionnaireNext, _ as QuestionnairePrevious, s as QuestionnaireProgress, v as QuestionnaireSkip, b as QuestionnaireSubmit, l as QuestionnaireTitle };
170
169
 
171
170
  //# sourceMappingURL=questionnaire.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"questionnaire.mjs","names":[],"sources":["../packages/ui-web/src/questionnaire.tsx"],"sourcesContent":["'use client';\n\nimport type {\n QuestionnaireActionsBaseProps,\n QuestionnaireBaseProps,\n QuestionnaireChoiceBaseProps,\n QuestionnaireChoiceDescriptionBaseProps,\n QuestionnaireChoicesBaseProps,\n QuestionnaireDescriptionBaseProps,\n QuestionnaireErrorBaseProps,\n QuestionnaireInputBaseProps,\n QuestionnaireItemBaseProps,\n QuestionnaireNextBaseProps,\n QuestionnairePreviousBaseProps,\n QuestionnaireProgressBaseProps,\n QuestionnaireSkipBaseProps,\n QuestionnaireSubmitBaseProps,\n QuestionnaireTitleBaseProps,\n} from '@gv-tech/ui-core';\nimport { Questionnaire as QuestionnairePrimitive } from '@shadcn/react/questionnaire';\nimport { cn } from 'cn';\nimport { CheckIcon } from 'lucide-react';\nimport * as React from 'react';\n\nimport { buttonVariants, type Button } from '@/./button';\n\nfunction Questionnaire({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Root> & QuestionnaireBaseProps) {\n return (\n <QuestionnairePrimitive.Root\n data-slot=\"questionnaire\"\n className={cn('flex w-full min-w-0 flex-col gap-4', className)}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireProgress({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Progress> & QuestionnaireProgressBaseProps) {\n return (\n <QuestionnairePrimitive.Progress\n data-slot=\"questionnaire-progress\"\n className={cn('text-muted-foreground min-h-[1lh] w-fit min-w-[14ch] text-xs font-medium tabular-nums', className)}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireItem({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Item> & QuestionnaireItemBaseProps) {\n return (\n <QuestionnairePrimitive.Item\n data-slot=\"questionnaire-item\"\n className={cn('flex min-w-0 flex-col gap-4 border-0 p-0 outline-none', className)}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireTitle({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Title> & QuestionnaireTitleBaseProps) {\n return (\n <QuestionnairePrimitive.Title\n data-slot=\"questionnaire-title\"\n className={cn(\n 'text-base leading-snug font-medium text-pretty [&:not(:has(~[data-slot=questionnaire-description]))]:mb-4',\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireDescription({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Description> & QuestionnaireDescriptionBaseProps) {\n return (\n <QuestionnairePrimitive.Description\n data-slot=\"questionnaire-description\"\n className={cn('text-muted-foreground text-sm text-pretty', className)}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireChoices({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Choices> & QuestionnaireChoicesBaseProps) {\n return (\n <QuestionnairePrimitive.Choices\n data-slot=\"questionnaire-choices\"\n className={cn('group/questionnaire-choices grid min-w-0 gap-2', className)}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireChoice({\n children,\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Choice> & QuestionnaireChoiceBaseProps) {\n return (\n <QuestionnairePrimitive.Choice\n data-slot=\"questionnaire-choice\"\n className={cn(\n 'group/questionnaire-choice border-input hover:bg-muted/50 has-[>input:focus-visible]:border-ring has-[>input:focus-visible]:ring-ring/50 data-invalid:border-destructive dark:bg-input/20 data-checked:border-primary/40 data-checked:bg-muted dark:data-checked:bg-muted relative flex min-h-11 cursor-pointer items-start gap-2.5 rounded-lg border bg-transparent px-3 py-2.5 text-start text-sm transition-colors outline-none select-none has-[>input:focus-visible]:ring-3',\n 'data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <QuestionnairePrimitive.ChoiceInput\n data-slot=\"questionnaire-choice-input\"\n className=\"absolute inset-0 z-10 size-full cursor-pointer opacity-0\"\n />\n <span\n aria-hidden=\"true\"\n data-slot=\"questionnaire-choice-indicator\"\n className=\"border-input group-data-checked/questionnaire-choice:border-primary group-data-checked/questionnaire-choice:bg-primary group-data-checked/questionnaire-choice:text-primary-foreground dark:bg-input/30 dark:group-data-checked/questionnaire-choice:bg-primary pointer-events-none relative flex size-4 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-[4px] border group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5 group-data-[type=radio]/questionnaire-choice:rounded-full\"\n >\n <span\n data-slot=\"questionnaire-choice-indicator-dot\"\n className=\"bg-primary-foreground hidden size-2 rounded-full group-data-checked/questionnaire-choice:block group-data-[type=checkbox]/questionnaire-choice:hidden\"\n />\n <CheckIcon\n data-slot=\"questionnaire-choice-indicator-check\"\n className=\"hidden size-3.5 group-data-checked/questionnaire-choice:block group-data-[type=radio]/questionnaire-choice:hidden\"\n />\n </span>\n <QuestionnairePrimitive.ChoiceLabel\n data-slot=\"questionnaire-choice-label\"\n className=\"flex min-w-0 flex-1 flex-col gap-0.5 leading-snug\"\n >\n {children}\n </QuestionnairePrimitive.ChoiceLabel>\n <QuestionnairePrimitive.ChoiceShortcut\n data-slot=\"questionnaire-choice-shortcut\"\n className=\"border-input bg-background text-muted-foreground pointer-events-none ms-auto hidden size-5 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-md border font-mono text-[0.625rem] leading-none font-medium group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5 group-data-[shortcut]/questionnaire-choice:inline-flex\"\n />\n </QuestionnairePrimitive.Choice>\n );\n}\n\nfunction QuestionnaireChoiceDescription({\n className,\n ...props\n}: React.ComponentProps<'span'> & QuestionnaireChoiceDescriptionBaseProps) {\n return (\n <span data-slot=\"questionnaire-choice-description\" className={cn('text-muted-foreground', className)} {...props} />\n );\n}\n\nfunction QuestionnaireInput({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Input> & QuestionnaireInputBaseProps) {\n return (\n <div data-slot=\"questionnaire-input-wrapper\" className=\"group/questionnaire-input relative w-full min-w-0\">\n <QuestionnairePrimitive.Input\n data-slot=\"questionnaire-input\"\n className={cn(\n 'border-input focus-visible:border-ring focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 h-8 min-h-11 w-full min-w-0 rounded-lg border bg-transparent px-2.5 py-1 text-base transition-[color,box-shadow,background-color] outline-none focus-visible:ring-3 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3 sm:min-h-0 md:text-sm',\n 'selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground',\n className,\n )}\n {...props}\n />\n </div>\n );\n}\n\nfunction QuestionnaireError({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Error> & QuestionnaireErrorBaseProps) {\n return (\n <QuestionnairePrimitive.Error\n data-slot=\"questionnaire-error\"\n className={cn('text-destructive mt-2 text-sm', className)}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireActions({ className, ...props }: React.ComponentProps<'div'> & QuestionnaireActionsBaseProps) {\n return (\n <div\n data-slot=\"questionnaire-actions\"\n className={cn(\n 'grid min-h-11 w-full grid-cols-[minmax(0,1fr)_auto_auto] items-center gap-2 sm:min-h-8',\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction QuestionnairePrevious({\n children,\n className,\n size = 'default',\n variant = 'outline',\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Previous> &\n Pick<React.ComponentProps<typeof Button>, 'size' | 'variant'> &\n QuestionnairePreviousBaseProps) {\n return (\n <QuestionnairePrimitive.Previous\n data-slot=\"questionnaire-previous\"\n data-size={size}\n data-variant={variant}\n className={cn(\n buttonVariants({ size, variant }),\n 'col-start-1 row-start-1 min-h-11 justify-self-start sm:min-h-0',\n className,\n )}\n {...props}\n >\n {children ?? 'Previous'}\n </QuestionnairePrimitive.Previous>\n );\n}\n\nfunction QuestionnaireSkip({\n children,\n className,\n size = 'default',\n variant = 'outline',\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Skip> &\n Pick<React.ComponentProps<typeof Button>, 'size' | 'variant'> &\n QuestionnaireSkipBaseProps) {\n return (\n <QuestionnairePrimitive.Skip\n data-slot=\"questionnaire-skip\"\n data-size={size}\n data-variant={variant}\n className={cn(\n buttonVariants({ size, variant }),\n 'col-start-2 row-start-1 min-h-11 justify-self-end sm:min-h-0',\n className,\n )}\n {...props}\n >\n {children ?? 'Skip'}\n </QuestionnairePrimitive.Skip>\n );\n}\n\nfunction QuestionnaireNext({\n children,\n className,\n size = 'default',\n variant = 'default',\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Next> &\n Pick<React.ComponentProps<typeof Button>, 'size' | 'variant'> &\n QuestionnaireNextBaseProps) {\n return (\n <QuestionnairePrimitive.Next\n data-slot=\"questionnaire-next\"\n data-size={size}\n data-variant={variant}\n className={cn(\n buttonVariants({ size, variant }),\n 'col-start-3 row-start-1 min-h-11 justify-self-end sm:min-h-0',\n className,\n )}\n {...props}\n >\n {children ?? 'Next'}\n </QuestionnairePrimitive.Next>\n );\n}\n\nfunction QuestionnaireSubmit({\n children,\n className,\n size = 'default',\n variant = 'default',\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Submit> &\n Pick<React.ComponentProps<typeof Button>, 'size' | 'variant'> &\n QuestionnaireSubmitBaseProps) {\n return (\n <QuestionnairePrimitive.Submit\n data-slot=\"questionnaire-submit\"\n data-size={size}\n data-variant={variant}\n className={cn(\n buttonVariants({ size, variant }),\n 'col-start-3 row-start-1 min-h-11 justify-self-end sm:min-h-0',\n className,\n )}\n {...props}\n >\n {children ?? 'Submit'}\n </QuestionnairePrimitive.Submit>\n );\n}\n\nexport {\n Questionnaire,\n QuestionnaireActions,\n QuestionnaireChoice,\n QuestionnaireChoiceDescription,\n QuestionnaireChoices,\n QuestionnaireDescription,\n QuestionnaireError,\n QuestionnaireInput,\n QuestionnaireItem,\n QuestionnaireNext,\n QuestionnairePrevious,\n QuestionnaireProgress,\n QuestionnaireSkip,\n QuestionnaireSubmit,\n QuestionnaireTitle,\n};\n\n// Verify that the components satisfy the ui-core contracts\nexport type ___verifyQuestionnaireContract =\n React.ComponentProps<typeof Questionnaire> extends QuestionnaireBaseProps ? true : false;\n"],"mappings":";;;;;;;AA0BA,SAAS,EAAc,EACrB,cACA,GAAG,KACiF;CACpF,OACE,iBAAA,GAAA,EAAA,KAAC,EAAuB,MAAxB;EACE,aAAU;EACV,WAAW,EAAG,sCAAsC,CAAS;EAC7D,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAsB,EAC7B,cACA,GAAG,KAC6F;CAChG,OACE,iBAAA,GAAA,EAAA,KAAC,EAAuB,UAAxB;EACE,aAAU;EACV,WAAW,EAAG,yFAAyF,CAAS;EAChH,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAkB,EACzB,cACA,GAAG,KACqF;CACxF,OACE,iBAAA,GAAA,EAAA,KAAC,EAAuB,MAAxB;EACE,aAAU;EACV,WAAW,EAAG,yDAAyD,CAAS;EAChF,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAmB,EAC1B,cACA,GAAG,KACuF;CAC1F,OACE,iBAAA,GAAA,EAAA,KAAC,EAAuB,OAAxB;EACE,aAAU;EACV,WAAW,EACT,6GACA,CACF;EACA,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAyB,EAChC,cACA,GAAG,KACmG;CACtG,OACE,iBAAA,GAAA,EAAA,KAAC,EAAuB,aAAxB;EACE,aAAU;EACV,WAAW,EAAG,6CAA6C,CAAS;EACpE,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAqB,EAC5B,cACA,GAAG,KAC2F;CAC9F,OACE,iBAAA,GAAA,EAAA,KAAC,EAAuB,SAAxB;EACE,aAAU;EACV,WAAW,EAAG,kDAAkD,CAAS;EACzE,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAoB,EAC3B,aACA,cACA,GAAG,KACyF;CAC5F,OACE,iBAAA,GAAA,EAAA,MAAC,EAAuB,QAAxB;EACE,aAAU;EACV,WAAW,EACT,odACA,+FACA,CACF;EACA,GAAI;YA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ACA,UAAO,WACP,aAAU,WACV,GAAG,KAG6B;CAChC,OACE,iBAAA,GAAA,EAAA,KAAC,EAAuB,UAAxB;EACE,aAAU;EACV,aAAW;EACX,gBAAc;EACd,WAAW,EACT,EAAe;GAAE;GAAM;EAAQ,CAAC,GAChC,kEACA,CACF;EACA,GAAI;YAEH,KAAY;CACkB,CAAA;AAErC;AAEA,SAAS,EAAkB,EACzB,aACA,cACA,UAAO,WACP,aAAU,WACV,GAAG,KAGyB;CAC5B,OACE,iBAAA,GAAA,EAAA,KAAC,EAAuB,MAAxB;EACE,aAAU;EACV,aAAW;EACX,gBAAc;EACd,WAAW,EACT,EAAe;GAAE;GAAM;EAAQ,CAAC,GAChC,gEACA,CACF;EACA,GAAI;YAEH,KAAY;CACc,CAAA;AAEjC;AAEA,SAAS,EAAkB,EACzB,aACA,cACA,UAAO,WACP,aAAU,WACV,GAAG,KAGyB;CAC5B,OACE,iBAAA,GAAA,EAAA,KAAC,EAAuB,MAAxB;EACE,aAAU;EACV,aAAW;EACX,gBAAc;EACd,WAAW,EACT,EAAe;GAAE;GAAM;EAAQ,CAAC,GAChC,gEACA,CACF;EACA,GAAI;YAEH,KAAY;CACc,CAAA;AAEjC;AAEA,SAAS,EAAoB,EAC3B,aACA,cACA,UAAO,WACP,aAAU,WACV,GAAG,KAG2B;CAC9B,OACE,iBAAA,GAAA,EAAA,KAAC,EAAuB,QAAxB;EACE,aAAU;EACV,aAAW;EACX,gBAAc;EACd,WAAW,EACT,EAAe;GAAE;GAAM;EAAQ,CAAC,GAChC,gEACA,CACF;EACA,GAAI;YAEH,KAAY;CACgB,CAAA;AAEnC"}
1
+ {"version":3,"file":"questionnaire.mjs","names":["QuestionnairePrimitive","CheckIcon","require_jsx_runtime","Check","cn","zt","import_jsx_runtime","Questionnaire","props","className","QuestionnaireProgress","QuestionnaireItem","QuestionnaireTitle","QuestionnaireDescription","QuestionnaireChoices","QuestionnaireChoice","QuestionnaireChoiceDescription","QuestionnaireInput","QuestionnaireError","QuestionnaireActions","QuestionnairePrevious","size","variant","buttonVariants","children","QuestionnaireSkip","QuestionnaireNext","QuestionnaireSubmit"],"sources":["../packages/ui-web/src/questionnaire.tsx"],"sourcesContent":["'use client';\n\nimport type {\n QuestionnaireActionsBaseProps,\n QuestionnaireBaseProps,\n QuestionnaireChoiceBaseProps,\n QuestionnaireChoiceDescriptionBaseProps,\n QuestionnaireChoicesBaseProps,\n QuestionnaireDescriptionBaseProps,\n QuestionnaireErrorBaseProps,\n QuestionnaireInputBaseProps,\n QuestionnaireItemBaseProps,\n QuestionnaireNextBaseProps,\n QuestionnairePreviousBaseProps,\n QuestionnaireProgressBaseProps,\n QuestionnaireSkipBaseProps,\n QuestionnaireSubmitBaseProps,\n QuestionnaireTitleBaseProps,\n} from '@gv-tech/ui-core';\nimport { Questionnaire as QuestionnairePrimitive } from '@shadcn/react/questionnaire';\nimport { cn } from 'cn';\nimport { CheckIcon } from 'lucide-react';\nimport * as React from 'react';\n\nimport { buttonVariants, type Button } from '@/./button';\n\nfunction Questionnaire({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Root> & QuestionnaireBaseProps) {\n return (\n <QuestionnairePrimitive.Root\n data-slot=\"questionnaire\"\n className={cn('flex w-full min-w-0 flex-col gap-4', className)}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireProgress({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Progress> & QuestionnaireProgressBaseProps) {\n return (\n <QuestionnairePrimitive.Progress\n data-slot=\"questionnaire-progress\"\n className={cn('text-muted-foreground min-h-[1lh] w-fit min-w-[14ch] text-xs font-medium tabular-nums', className)}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireItem({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Item> & QuestionnaireItemBaseProps) {\n return (\n <QuestionnairePrimitive.Item\n data-slot=\"questionnaire-item\"\n className={cn('flex min-w-0 flex-col gap-4 border-0 p-0 outline-none', className)}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireTitle({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Title> & QuestionnaireTitleBaseProps) {\n return (\n <QuestionnairePrimitive.Title\n data-slot=\"questionnaire-title\"\n className={cn(\n 'text-base leading-snug font-medium text-pretty [&:not(:has(~[data-slot=questionnaire-description]))]:mb-4',\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireDescription({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Description> & QuestionnaireDescriptionBaseProps) {\n return (\n <QuestionnairePrimitive.Description\n data-slot=\"questionnaire-description\"\n className={cn('text-muted-foreground text-sm text-pretty', className)}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireChoices({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Choices> & QuestionnaireChoicesBaseProps) {\n return (\n <QuestionnairePrimitive.Choices\n data-slot=\"questionnaire-choices\"\n className={cn('group/questionnaire-choices grid min-w-0 gap-2', className)}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireChoice({\n children,\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Choice> & QuestionnaireChoiceBaseProps) {\n return (\n <QuestionnairePrimitive.Choice\n data-slot=\"questionnaire-choice\"\n className={cn(\n 'group/questionnaire-choice border-input hover:bg-muted/50 has-[>input:focus-visible]:border-ring has-[>input:focus-visible]:ring-ring/50 data-invalid:border-destructive dark:bg-input/20 data-checked:border-primary/40 data-checked:bg-muted dark:data-checked:bg-muted relative flex min-h-11 cursor-pointer items-start gap-2.5 rounded-lg border bg-transparent px-3 py-2.5 text-start text-sm transition-colors outline-none select-none has-[>input:focus-visible]:ring-3',\n 'data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50',\n className,\n )}\n {...props}\n >\n <QuestionnairePrimitive.ChoiceInput\n data-slot=\"questionnaire-choice-input\"\n className=\"absolute inset-0 z-10 size-full cursor-pointer opacity-0\"\n />\n <span\n aria-hidden=\"true\"\n data-slot=\"questionnaire-choice-indicator\"\n className=\"border-input group-data-checked/questionnaire-choice:border-primary group-data-checked/questionnaire-choice:bg-primary group-data-checked/questionnaire-choice:text-primary-foreground dark:bg-input/30 dark:group-data-checked/questionnaire-choice:bg-primary pointer-events-none relative flex size-4 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-[4px] border group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5 group-data-[type=radio]/questionnaire-choice:rounded-full\"\n >\n <span\n data-slot=\"questionnaire-choice-indicator-dot\"\n className=\"bg-primary-foreground hidden size-2 rounded-full group-data-checked/questionnaire-choice:block group-data-[type=checkbox]/questionnaire-choice:hidden\"\n />\n <CheckIcon\n data-slot=\"questionnaire-choice-indicator-check\"\n className=\"hidden size-3.5 group-data-checked/questionnaire-choice:block group-data-[type=radio]/questionnaire-choice:hidden\"\n />\n </span>\n <QuestionnairePrimitive.ChoiceLabel\n data-slot=\"questionnaire-choice-label\"\n className=\"flex min-w-0 flex-1 flex-col gap-0.5 leading-snug\"\n >\n {children}\n </QuestionnairePrimitive.ChoiceLabel>\n <QuestionnairePrimitive.ChoiceShortcut\n data-slot=\"questionnaire-choice-shortcut\"\n className=\"border-input bg-background text-muted-foreground pointer-events-none ms-auto hidden size-5 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-md border font-mono text-[0.625rem] leading-none font-medium group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5 group-data-[shortcut]/questionnaire-choice:inline-flex\"\n />\n </QuestionnairePrimitive.Choice>\n );\n}\n\nfunction QuestionnaireChoiceDescription({\n className,\n ...props\n}: React.ComponentProps<'span'> & QuestionnaireChoiceDescriptionBaseProps) {\n return (\n <span data-slot=\"questionnaire-choice-description\" className={cn('text-muted-foreground', className)} {...props} />\n );\n}\n\nfunction QuestionnaireInput({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Input> & QuestionnaireInputBaseProps) {\n return (\n <div data-slot=\"questionnaire-input-wrapper\" className=\"group/questionnaire-input relative w-full min-w-0\">\n <QuestionnairePrimitive.Input\n data-slot=\"questionnaire-input\"\n className={cn(\n 'border-input focus-visible:border-ring focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 h-8 min-h-11 w-full min-w-0 rounded-lg border bg-transparent px-2.5 py-1 text-base transition-[color,box-shadow,background-color] outline-none focus-visible:ring-3 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3 sm:min-h-0 md:text-sm',\n 'selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground',\n className,\n )}\n {...props}\n />\n </div>\n );\n}\n\nfunction QuestionnaireError({\n className,\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Error> & QuestionnaireErrorBaseProps) {\n return (\n <QuestionnairePrimitive.Error\n data-slot=\"questionnaire-error\"\n className={cn('text-destructive mt-2 text-sm', className)}\n {...props}\n />\n );\n}\n\nfunction QuestionnaireActions({ className, ...props }: React.ComponentProps<'div'> & QuestionnaireActionsBaseProps) {\n return (\n <div\n data-slot=\"questionnaire-actions\"\n className={cn(\n 'grid min-h-11 w-full grid-cols-[minmax(0,1fr)_auto_auto] items-center gap-2 sm:min-h-8',\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction QuestionnairePrevious({\n children,\n className,\n size = 'default',\n variant = 'outline',\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Previous> &\n Pick<React.ComponentProps<typeof Button>, 'size' | 'variant'> &\n QuestionnairePreviousBaseProps) {\n return (\n <QuestionnairePrimitive.Previous\n data-slot=\"questionnaire-previous\"\n data-size={size}\n data-variant={variant}\n className={cn(\n buttonVariants({ size, variant }),\n 'col-start-1 row-start-1 min-h-11 justify-self-start sm:min-h-0',\n className,\n )}\n {...props}\n >\n {children ?? 'Previous'}\n </QuestionnairePrimitive.Previous>\n );\n}\n\nfunction QuestionnaireSkip({\n children,\n className,\n size = 'default',\n variant = 'outline',\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Skip> &\n Pick<React.ComponentProps<typeof Button>, 'size' | 'variant'> &\n QuestionnaireSkipBaseProps) {\n return (\n <QuestionnairePrimitive.Skip\n data-slot=\"questionnaire-skip\"\n data-size={size}\n data-variant={variant}\n className={cn(\n buttonVariants({ size, variant }),\n 'col-start-2 row-start-1 min-h-11 justify-self-end sm:min-h-0',\n className,\n )}\n {...props}\n >\n {children ?? 'Skip'}\n </QuestionnairePrimitive.Skip>\n );\n}\n\nfunction QuestionnaireNext({\n children,\n className,\n size = 'default',\n variant = 'default',\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Next> &\n Pick<React.ComponentProps<typeof Button>, 'size' | 'variant'> &\n QuestionnaireNextBaseProps) {\n return (\n <QuestionnairePrimitive.Next\n data-slot=\"questionnaire-next\"\n data-size={size}\n data-variant={variant}\n className={cn(\n buttonVariants({ size, variant }),\n 'col-start-3 row-start-1 min-h-11 justify-self-end sm:min-h-0',\n className,\n )}\n {...props}\n >\n {children ?? 'Next'}\n </QuestionnairePrimitive.Next>\n );\n}\n\nfunction QuestionnaireSubmit({\n children,\n className,\n size = 'default',\n variant = 'default',\n ...props\n}: React.ComponentProps<typeof QuestionnairePrimitive.Submit> &\n Pick<React.ComponentProps<typeof Button>, 'size' | 'variant'> &\n QuestionnaireSubmitBaseProps) {\n return (\n <QuestionnairePrimitive.Submit\n data-slot=\"questionnaire-submit\"\n data-size={size}\n data-variant={variant}\n className={cn(\n buttonVariants({ size, variant }),\n 'col-start-3 row-start-1 min-h-11 justify-self-end sm:min-h-0',\n className,\n )}\n {...props}\n >\n {children ?? 'Submit'}\n </QuestionnairePrimitive.Submit>\n );\n}\n\nexport {\n Questionnaire,\n QuestionnaireActions,\n QuestionnaireChoice,\n QuestionnaireChoiceDescription,\n QuestionnaireChoices,\n QuestionnaireDescription,\n QuestionnaireError,\n QuestionnaireInput,\n QuestionnaireItem,\n QuestionnaireNext,\n QuestionnairePrevious,\n QuestionnaireProgress,\n QuestionnaireSkip,\n QuestionnaireSubmit,\n QuestionnaireTitle,\n};\n\n// Verify that the components satisfy the ui-core contracts\nexport type ___verifyQuestionnaireContract =\n React.ComponentProps<typeof Questionnaire> extends QuestionnaireBaseProps ? true : false;\n"],"mappings":";;;;;;;AA0BA,SAASO,EAAc,EACrB,cACA,GAAGC,KACiF;CACpF,OACE,iBAAA,GAAAF,EAAA,IAAA,CAACN,EAAuB,MAAxB;EACE,aAAU;EACV,WAAWI,EAAG,sCAAsCK,CAAS;EAC7D,GAAID;CACL,CAAA;AAEL;AAEA,SAASE,EAAsB,EAC7B,cACA,GAAGF,KAC6F;CAChG,OACE,iBAAA,GAAAF,EAAA,IAAA,CAACN,EAAuB,UAAxB;EACE,aAAU;EACV,WAAWI,EAAG,yFAAyFK,CAAS;EAChH,GAAID;CACL,CAAA;AAEL;AAEA,SAASG,EAAkB,EACzB,cACA,GAAGH,KACqF;CACxF,OACE,iBAAA,GAAAF,EAAA,IAAA,CAACN,EAAuB,MAAxB;EACE,aAAU;EACV,WAAWI,EAAG,yDAAyDK,CAAS;EAChF,GAAID;CACL,CAAA;AAEL;AAEA,SAASI,EAAmB,EAC1B,cACA,GAAGJ,KACuF;CAC1F,OACE,iBAAA,GAAAF,EAAA,IAAA,CAACN,EAAuB,OAAxB;EACE,aAAU;EACV,WAAWI,EACT,6GACAK,CACF;EACA,GAAID;CACL,CAAA;AAEL;AAEA,SAASK,EAAyB,EAChC,cACA,GAAGL,KACmG;CACtG,OACE,iBAAA,GAAAF,EAAA,IAAA,CAACN,EAAuB,aAAxB;EACE,aAAU;EACV,WAAWI,EAAG,6CAA6CK,CAAS;EACpE,GAAID;CACL,CAAA;AAEL;AAEA,SAASM,EAAqB,EAC5B,cACA,GAAGN,KAC2F;CAC9F,OACE,iBAAA,GAAAF,EAAA,IAAA,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A,cACA,UAAO,WACP,aAAU,WACV,GAAGnB,KAG2B;CAC9B,OACE,iBAAA,GAAAF,EAAA,IAAA,CAACN,EAAuB,QAAxB;EACE,aAAU;EACV,aAAWqB;EACX,gBAAcC;EACd,WAAWlB,EACTmB,EAAe;GAAE;GAAM;EAAQ,CAAC,GAChC,gEACAd,CACF;EACA,GAAID;EAEH,UAAAgB,KAAY;CACgB,CAAA;AAEnC"}
@@ -1,2 +1,2 @@
1
- "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-mLOUI7ql.js"),t=require("./vendor-Bz5F_va8.js");let n=require("react");n=e.r(n);var r=t.Ar();function i({className:e,...n}){return(0,r.jsx)(t.It,{"data-slot":`radio-group`,className:t.ei(`grid w-full gap-2`,e),...n})}function a({className:e,...n}){return(0,r.jsx)(t.Rt,{"data-slot":`radio-group-item`,className:t.ei(`group/radio-group-item peer border-input group-has-[:focus-visible]/field-label:not-data-checked:border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground group-has-[:focus-visible]/field-label:data-checked:border-primary dark:data-checked:bg-primary relative flex aspect-square size-4 shrink-0 rounded-full border outline-none group-has-[:focus-visible]/field-label:ring-0 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3`,e),...n,children:(0,r.jsx)(t.Lt,{"data-slot":`radio-group-indicator`,className:`flex size-4 items-center justify-center`,children:(0,r.jsx)(`span`,{className:`bg-primary-foreground absolute start-1/2 top-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full rtl:translate-x-1/2`})})})}exports.RadioGroup=i,exports.RadioGroupItem=a;
1
+ "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./vendor-Ceu--gxM.js");let n=require("react");n=e.r(n);var r=t.Ar();function i({className:e,...n}){return(0,r.jsx)(t.It,{"data-slot":`radio-group`,className:t.ei(`grid w-full gap-2`,e),...n})}function a({className:e,...n}){return(0,r.jsx)(t.Rt,{"data-slot":`radio-group-item`,className:t.ei(`group/radio-group-item peer border-input group-has-[:focus-visible]/field-label:not-data-checked:border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground group-has-[:focus-visible]/field-label:data-checked:border-primary dark:data-checked:bg-primary relative flex aspect-square size-4 shrink-0 rounded-full border outline-none group-has-[:focus-visible]/field-label:ring-0 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3`,e),...n,children:(0,r.jsx)(t.Lt,{"data-slot":`radio-group-indicator`,className:`flex size-4 items-center justify-center`,children:(0,r.jsx)(`span`,{className:`bg-primary-foreground absolute start-1/2 top-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full rtl:translate-x-1/2`})})})}exports.RadioGroup=i,exports.RadioGroupItem=a;
2
2
  //# sourceMappingURL=radio-group.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"radio-group.cjs","names":[],"sources":["../packages/ui-web/src/radio-group.tsx"],"sourcesContent":["import { cn } from 'cn';\nimport { RadioGroup as RadioGroupPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\nfunction RadioGroup({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Root>) {\n return <RadioGroupPrimitive.Root data-slot=\"radio-group\" className={cn('grid w-full gap-2', className)} {...props} />;\n}\n\nfunction RadioGroupItem({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Item>) {\n return (\n <RadioGroupPrimitive.Item\n data-slot=\"radio-group-item\"\n className={cn(\n 'group/radio-group-item peer border-input group-has-[:focus-visible]/field-label:not-data-checked:border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground group-has-[:focus-visible]/field-label:data-checked:border-primary dark:data-checked:bg-primary relative flex aspect-square size-4 shrink-0 rounded-full border outline-none group-has-[:focus-visible]/field-label:ring-0 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3',\n className,\n )}\n {...props}\n >\n <RadioGroupPrimitive.Indicator\n data-slot=\"radio-group-indicator\"\n className=\"flex size-4 items-center justify-center\"\n >\n <span className=\"bg-primary-foreground absolute start-1/2 top-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full rtl:translate-x-1/2\" />\n </RadioGroupPrimitive.Indicator>\n </RadioGroupPrimitive.Item>\n );\n}\n\nexport { RadioGroup, RadioGroupItem };\n"],"mappings":"iNAIA,SAAS,EAAW,CAAE,YAAW,GAAG,GAAgE,CAClG,OAAO,EAAA,EAAA,KAAA,EAAA,GAAA,CAA0B,YAAU,cAAc,UAAW,EAAA,GAAG,oBAAqB,CAAS,EAAG,GAAI,CAAQ,CAAA,CACtH,CAEA,SAAS,EAAe,CAAE,YAAW,GAAG,GAAgE,CACtG,OACE,EAAA,EAAA,KAAA,EAAA,GAAA,CACE,YAAU,mBACV,UAAW,EAAA,GACT,4yBACA,CACF,EACA,GAAI,YAEJ,EAAA,EAAA,KAAA,EAAA,GAAA,CACE,YAAU,wBACV,UAAU,oDAEV,EAAA,EAAA,KAAC,OAAD,CAAM,UAAU,4HAA8H,CAAA,CACjH,CAAA,CACP,CAAA,CAE9B"}
1
+ {"version":3,"file":"radio-group.cjs","names":["cn","require_rolldown_runtime","require_vendor","react","import_jsx_runtime","RadioGroup","props","className","RadioGroupItem"],"sources":["../packages/ui-web/src/radio-group.tsx"],"sourcesContent":["import { cn } from 'cn';\nimport { RadioGroup as RadioGroupPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\nfunction RadioGroup({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Root>) {\n return <RadioGroupPrimitive.Root data-slot=\"radio-group\" className={cn('grid w-full gap-2', className)} {...props} />;\n}\n\nfunction RadioGroupItem({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Item>) {\n return (\n <RadioGroupPrimitive.Item\n data-slot=\"radio-group-item\"\n className={cn(\n 'group/radio-group-item peer border-input group-has-[:focus-visible]/field-label:not-data-checked:border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground group-has-[:focus-visible]/field-label:data-checked:border-primary dark:data-checked:bg-primary relative flex aspect-square size-4 shrink-0 rounded-full border outline-none group-has-[:focus-visible]/field-label:ring-0 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3',\n className,\n )}\n {...props}\n >\n <RadioGroupPrimitive.Indicator\n data-slot=\"radio-group-indicator\"\n className=\"flex size-4 items-center justify-center\"\n >\n <span className=\"bg-primary-foreground absolute start-1/2 top-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full rtl:translate-x-1/2\" />\n </RadioGroupPrimitive.Indicator>\n </RadioGroupPrimitive.Item>\n );\n}\n\nexport { RadioGroup, RadioGroupItem };\n"],"mappings":"A,iNAIA,SAASK,EAAW,CAAE,YAAW,GAAGC,GAAgE,CAClG,OAAO,EAAAF,EAAA,IAAA,CAAAF,EAAA,GAAA,CAA0B,YAAU,cAAc,UAAWF,EAAAA,GAAG,oBAAqBO,CAAS,EAAG,GAAID,CAAQ,CAAA,CACtH,CAEA,SAASE,EAAe,CAAE,YAAW,GAAGF,GAAgE,CACtG,OACE,EAAAF,EAAA,IAAA,CAAAF,EAAA,GAAA,CACE,YAAU,mBACV,UAAWF,EAAAA,GACT,4yBACAO,CACF,EACA,GAAID,EAEJ,UAAA,EAAAF,EAAA,IAAA,CAAAF,EAAA,GAAA,CACE,YAAU,wBACV,UAAU,0CAEV,UAAA,EAAAE,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,4HAA8H,CAAA,CACjH,CAAA,CACP,CAAA,CAE9B,C"}
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { Ar as e, It as t, Lt as n, Rt as r, ei as i } from "./vendor-0E4gGRxj.mjs";
2
+ import { Ar as e, It as t, Lt as n, Rt as r, ei as i } from "./vendor-PEVwmg1D.mjs";
3
3
  import "react";
4
- //#region packages/ui-web/src/radio-group.tsx
4
+ // packages/ui-web/src/radio-group.tsx
5
5
  var a = e();
6
6
  function o({ className: e, ...n }) {
7
7
  return /* @__PURE__ */ (0, a.jsx)(t, {
@@ -22,7 +22,6 @@ function s({ className: e, ...t }) {
22
22
  })
23
23
  });
24
24
  }
25
- //#endregion
26
25
  export { o as RadioGroup, s as RadioGroupItem };
27
26
 
28
27
  //# sourceMappingURL=radio-group.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"radio-group.mjs","names":[],"sources":["../packages/ui-web/src/radio-group.tsx"],"sourcesContent":["import { cn } from 'cn';\nimport { RadioGroup as RadioGroupPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\nfunction RadioGroup({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Root>) {\n return <RadioGroupPrimitive.Root data-slot=\"radio-group\" className={cn('grid w-full gap-2', className)} {...props} />;\n}\n\nfunction RadioGroupItem({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Item>) {\n return (\n <RadioGroupPrimitive.Item\n data-slot=\"radio-group-item\"\n className={cn(\n 'group/radio-group-item peer border-input group-has-[:focus-visible]/field-label:not-data-checked:border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground group-has-[:focus-visible]/field-label:data-checked:border-primary dark:data-checked:bg-primary relative flex aspect-square size-4 shrink-0 rounded-full border outline-none group-has-[:focus-visible]/field-label:ring-0 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3',\n className,\n )}\n {...props}\n >\n <RadioGroupPrimitive.Indicator\n data-slot=\"radio-group-indicator\"\n className=\"flex size-4 items-center justify-center\"\n >\n <span className=\"bg-primary-foreground absolute start-1/2 top-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full rtl:translate-x-1/2\" />\n </RadioGroupPrimitive.Indicator>\n </RadioGroupPrimitive.Item>\n );\n}\n\nexport { RadioGroup, RadioGroupItem };\n"],"mappings":";;;;;AAIA,SAAS,EAAW,EAAE,cAAW,GAAG,KAAgE;CAClG,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;EAA0B,aAAU;EAAc,WAAW,EAAG,qBAAqB,CAAS;EAAG,GAAI;CAAQ,CAAA;AACtH;AAEA,SAAS,EAAe,EAAE,cAAW,GAAG,KAAgE;CACtG,OACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,aAAU;EACV,WAAW,EACT,6yBACA,CACF;EACA,GAAI;YAEJ,iBAAA,GAAA,EAAA,KAAC,GAAD;GACE,aAAU;GACV,WAAU;aAEV,iBAAA,GAAA,EAAA,KAAC,QAAD,EAAM,WAAU,6HAA8H,CAAA;EACjH,CAAA;CACP,CAAA;AAE9B"}
1
+ {"version":3,"file":"radio-group.mjs","names":["RadioGroupPrimitive.Root","RadioGroupPrimitive.Item","RadioGroupPrimitive.Indicator","require_jsx_runtime","RadioGroup$1","RadioGroupIndicator","RadioGroupItem$1","cn","import_jsx_runtime","RadioGroup","props","className","RadioGroupItem"],"sources":["../packages/ui-web/src/radio-group.tsx"],"sourcesContent":["import { cn } from 'cn';\nimport { RadioGroup as RadioGroupPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\nfunction RadioGroup({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Root>) {\n return <RadioGroupPrimitive.Root data-slot=\"radio-group\" className={cn('grid w-full gap-2', className)} {...props} />;\n}\n\nfunction RadioGroupItem({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Item>) {\n return (\n <RadioGroupPrimitive.Item\n data-slot=\"radio-group-item\"\n className={cn(\n 'group/radio-group-item peer border-input group-has-[:focus-visible]/field-label:not-data-checked:border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground group-has-[:focus-visible]/field-label:data-checked:border-primary dark:data-checked:bg-primary relative flex aspect-square size-4 shrink-0 rounded-full border outline-none group-has-[:focus-visible]/field-label:ring-0 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3',\n className,\n )}\n {...props}\n >\n <RadioGroupPrimitive.Indicator\n data-slot=\"radio-group-indicator\"\n className=\"flex size-4 items-center justify-center\"\n >\n <span className=\"bg-primary-foreground absolute start-1/2 top-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full rtl:translate-x-1/2\" />\n </RadioGroupPrimitive.Indicator>\n </RadioGroupPrimitive.Item>\n );\n}\n\nexport { RadioGroup, RadioGroupItem };\n"],"mappings":";;;;;AAIA,SAASS,EAAW,EAAE,cAAW,GAAGC,KAAgE;CAClG,OAAO,iBAAA,GAAAF,EAAA,IAAA,CAACR,GAAD;EAA0B,aAAU;EAAc,WAAWO,EAAG,qBAAqBI,CAAS;EAAG,GAAID;CAAQ,CAAA;AACtH;AAEA,SAASE,EAAe,EAAE,cAAW,GAAGF,KAAgE;CACtG,OACE,iBAAA,GAAAF,EAAA,IAAA,CAACP,GAAD;EACE,aAAU;EACV,WAAWM,EACT,6yBACAI,CACF;EACA,GAAID;EAEJ,UAAA,iBAAA,GAAAF,EAAA,IAAA,CAACN,GAAD;GACE,aAAU;GACV,WAAU;GAEV,UAAA,iBAAA,GAAAM,EAAA,IAAA,CAAC,QAAD,EAAM,WAAU,6HAA8H,CAAA;EACjH,CAAA;CACP,CAAA;AAE9B"}
@@ -1,2 +1,2 @@
1
- "use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./vendor-Bz5F_va8.js");var t=e.Ar();function n({className:n,...r}){return(0,t.jsx)(e.A,{"data-slot":`resizable-panel-group`,className:e.ei(`flex h-full w-full aria-[orientation=vertical]:flex-col`,n),...r})}function r({...n}){return(0,t.jsx)(e.O,{"data-slot":`resizable-panel`,...n})}function i({withHandle:n,className:r,...i}){return(0,t.jsx)(e.k,{"data-slot":`resizable-handle`,className:e.ei(`bg-border ring-offset-background focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:start-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:start-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:translate-x-0 aria-[orientation=horizontal]:after:-translate-y-1/2 rtl:after:translate-x-1/2 rtl:aria-[orientation=horizontal]:after:-translate-x-0 [&[aria-orientation=horizontal]>div]:rotate-90`,r),...i,children:n&&(0,t.jsx)(`div`,{className:`bg-border z-10 flex h-6 w-1 shrink-0 rounded-lg`})})}exports.ResizableHandle=i,exports.ResizablePanel=r,exports.ResizablePanelGroup=n;
1
+ "use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./vendor-Ceu--gxM.js");var t=e.Ar();function n({className:n,...r}){return(0,t.jsx)(e.A,{"data-slot":`resizable-panel-group`,className:e.ei(`flex h-full w-full aria-[orientation=vertical]:flex-col`,n),...r})}function r({...n}){return(0,t.jsx)(e.O,{"data-slot":`resizable-panel`,...n})}function i({withHandle:n,className:r,...i}){return(0,t.jsx)(e.k,{"data-slot":`resizable-handle`,className:e.ei(`bg-border ring-offset-background focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:start-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:start-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:translate-x-0 aria-[orientation=horizontal]:after:-translate-y-1/2 rtl:after:translate-x-1/2 rtl:aria-[orientation=horizontal]:after:-translate-x-0 [&[aria-orientation=horizontal]>div]:rotate-90`,r),...i,children:n&&(0,t.jsx)(`div`,{className:`bg-border z-10 flex h-6 w-1 shrink-0 rounded-lg`})})}exports.ResizableHandle=i,exports.ResizablePanel=r,exports.ResizablePanelGroup=n;
2
2
  //# sourceMappingURL=resizable.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"resizable.cjs","names":[],"sources":["../packages/ui-web/src/resizable.tsx"],"sourcesContent":["'use client';\n\nimport { cn } from 'cn';\nimport * as ResizablePrimitive from 'react-resizable-panels';\n\nfunction ResizablePanelGroup({ className, ...props }: ResizablePrimitive.GroupProps) {\n return (\n <ResizablePrimitive.Group\n data-slot=\"resizable-panel-group\"\n className={cn('flex h-full w-full aria-[orientation=vertical]:flex-col', className)}\n {...props}\n />\n );\n}\n\nfunction ResizablePanel({ ...props }: ResizablePrimitive.PanelProps) {\n return <ResizablePrimitive.Panel data-slot=\"resizable-panel\" {...props} />;\n}\n\nfunction ResizableHandle({\n withHandle,\n className,\n ...props\n}: ResizablePrimitive.SeparatorProps & {\n withHandle?: boolean;\n}) {\n return (\n <ResizablePrimitive.Separator\n data-slot=\"resizable-handle\"\n className={cn(\n 'bg-border ring-offset-background focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:start-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:start-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:translate-x-0 aria-[orientation=horizontal]:after:-translate-y-1/2 rtl:after:translate-x-1/2 rtl:aria-[orientation=horizontal]:after:-translate-x-0 [&[aria-orientation=horizontal]>div]:rotate-90',\n className,\n )}\n {...props}\n >\n {withHandle && <div className=\"bg-border z-10 flex h-6 w-1 shrink-0 rounded-lg\" />}\n </ResizablePrimitive.Separator>\n );\n}\n\nexport { ResizableHandle, ResizablePanel, ResizablePanelGroup };\n"],"mappings":"kJAKA,SAAS,EAAoB,CAAE,YAAW,GAAG,GAAwC,CACnF,OACE,EAAA,EAAA,KAAA,EAAA,EAAA,CACE,YAAU,wBACV,UAAW,EAAA,GAAG,0DAA2D,CAAS,EAClF,GAAI,CACL,CAAA,CAEL,CAEA,SAAS,EAAe,CAAE,GAAG,GAAwC,CACnE,OAAO,EAAA,EAAA,KAAA,EAAA,EAAA,CAA0B,YAAU,kBAAkB,GAAI,CAAQ,CAAA,CAC3E,CAEA,SAAS,EAAgB,CACvB,aACA,YACA,GAAG,GAGF,CACD,OACE,EAAA,EAAA,KAAA,EAAA,EAAA,CACE,YAAU,mBACV,UAAW,EAAA,GACT,0pBACA,CACF,EACA,GAAI,WAEH,IAAc,EAAA,EAAA,KAAC,MAAD,CAAK,UAAU,iDAAmD,CAAA,CACrD,CAAA,CAElC"}
1
+ {"version":3,"file":"resizable.cjs","names":["cn","require_vendor","import_jsx_runtime","ResizablePanelGroup","props","className","ResizablePanel","ResizableHandle","withHandle"],"sources":["../packages/ui-web/src/resizable.tsx"],"sourcesContent":["'use client';\n\nimport { cn } from 'cn';\nimport * as ResizablePrimitive from 'react-resizable-panels';\n\nfunction ResizablePanelGroup({ className, ...props }: ResizablePrimitive.GroupProps) {\n return (\n <ResizablePrimitive.Group\n data-slot=\"resizable-panel-group\"\n className={cn('flex h-full w-full aria-[orientation=vertical]:flex-col', className)}\n {...props}\n />\n );\n}\n\nfunction ResizablePanel({ ...props }: ResizablePrimitive.PanelProps) {\n return <ResizablePrimitive.Panel data-slot=\"resizable-panel\" {...props} />;\n}\n\nfunction ResizableHandle({\n withHandle,\n className,\n ...props\n}: ResizablePrimitive.SeparatorProps & {\n withHandle?: boolean;\n}) {\n return (\n <ResizablePrimitive.Separator\n data-slot=\"resizable-handle\"\n className={cn(\n 'bg-border ring-offset-background focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:start-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:start-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:translate-x-0 aria-[orientation=horizontal]:after:-translate-y-1/2 rtl:after:translate-x-1/2 rtl:aria-[orientation=horizontal]:after:-translate-x-0 [&[aria-orientation=horizontal]>div]:rotate-90',\n className,\n )}\n {...props}\n >\n {withHandle && <div className=\"bg-border z-10 flex h-6 w-1 shrink-0 rounded-lg\" />}\n </ResizablePrimitive.Separator>\n );\n}\n\nexport { ResizableHandle, ResizablePanel, ResizablePanelGroup };\n"],"mappings":"A,kJAKA,SAASG,EAAoB,CAAE,YAAW,GAAGC,GAAwC,CACnF,OACE,EAAAF,EAAA,IAAA,CAAAD,EAAA,EAAA,CACE,YAAU,wBACV,UAAWD,EAAAA,GAAG,0DAA2DK,CAAS,EAClF,GAAID,CACL,CAAA,CAEL,CAEA,SAASE,EAAe,CAAE,GAAGF,GAAwC,CACnE,OAAO,EAAAF,EAAA,IAAA,CAAAD,EAAA,EAAA,CAA0B,YAAU,kBAAkB,GAAIG,CAAQ,CAAA,CAC3E,CAEA,SAASG,EAAgB,CACvB,aACA,YACA,GAAGH,GAGF,CACD,OACE,EAAAF,EAAA,IAAA,CAAAD,EAAA,EAAA,CACE,YAAU,mBACV,UAAWD,EAAAA,GACT,0pBACAK,CACF,EACA,GAAID,EAEH,SAAAI,IAAc,EAAAN,EAAA,IAAA,CAAC,MAAD,CAAK,UAAU,iDAAmD,CAAA,CACrD,CAAA,CAElC,C"}
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  "use client";
3
- import { A as e, Ar as t, O as n, ei as r, k as i } from "./vendor-0E4gGRxj.mjs";
4
- //#region packages/ui-web/src/resizable.tsx
3
+ import { A as e, Ar as t, O as n, ei as r, k as i } from "./vendor-PEVwmg1D.mjs";
4
+ // packages/ui-web/src/resizable.tsx
5
5
  var a = t();
6
6
  function o({ className: t, ...n }) {
7
7
  return /* @__PURE__ */ (0, a.jsx)(e, {
@@ -24,7 +24,6 @@ function c({ withHandle: e, className: t, ...n }) {
24
24
  children: e && /* @__PURE__ */ (0, a.jsx)("div", { className: "bg-border z-10 flex h-6 w-1 shrink-0 rounded-lg" })
25
25
  });
26
26
  }
27
- //#endregion
28
27
  export { c as ResizableHandle, s as ResizablePanel, o as ResizablePanelGroup };
29
28
 
30
29
  //# sourceMappingURL=resizable.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"resizable.mjs","names":[],"sources":["../packages/ui-web/src/resizable.tsx"],"sourcesContent":["'use client';\n\nimport { cn } from 'cn';\nimport * as ResizablePrimitive from 'react-resizable-panels';\n\nfunction ResizablePanelGroup({ className, ...props }: ResizablePrimitive.GroupProps) {\n return (\n <ResizablePrimitive.Group\n data-slot=\"resizable-panel-group\"\n className={cn('flex h-full w-full aria-[orientation=vertical]:flex-col', className)}\n {...props}\n />\n );\n}\n\nfunction ResizablePanel({ ...props }: ResizablePrimitive.PanelProps) {\n return <ResizablePrimitive.Panel data-slot=\"resizable-panel\" {...props} />;\n}\n\nfunction ResizableHandle({\n withHandle,\n className,\n ...props\n}: ResizablePrimitive.SeparatorProps & {\n withHandle?: boolean;\n}) {\n return (\n <ResizablePrimitive.Separator\n data-slot=\"resizable-handle\"\n className={cn(\n 'bg-border ring-offset-background focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:start-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:start-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:translate-x-0 aria-[orientation=horizontal]:after:-translate-y-1/2 rtl:after:translate-x-1/2 rtl:aria-[orientation=horizontal]:after:-translate-x-0 [&[aria-orientation=horizontal]>div]:rotate-90',\n className,\n )}\n {...props}\n >\n {withHandle && <div className=\"bg-border z-10 flex h-6 w-1 shrink-0 rounded-lg\" />}\n </ResizablePrimitive.Separator>\n );\n}\n\nexport { ResizableHandle, ResizablePanel, ResizablePanelGroup };\n"],"mappings":";;;;;AAKA,SAAS,EAAoB,EAAE,cAAW,GAAG,KAAwC;CACnF,OACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,aAAU;EACV,WAAW,EAAG,2DAA2D,CAAS;EAClF,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAe,EAAE,GAAG,KAAwC;CACnE,OAAO,iBAAA,GAAA,EAAA,KAAC,GAAD;EAA0B,aAAU;EAAkB,GAAI;CAAQ,CAAA;AAC3E;AAEA,SAAS,EAAgB,EACvB,eACA,cACA,GAAG,KAGF;CACD,OACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,aAAU;EACV,WAAW,EACT,2pBACA,CACF;EACA,GAAI;YAEH,KAAc,iBAAA,GAAA,EAAA,KAAC,OAAD,EAAK,WAAU,kDAAmD,CAAA;CACrD,CAAA;AAElC"}
1
+ {"version":3,"file":"resizable.mjs","names":["ResizablePrimitive.Group","ResizablePrimitive.Panel","ResizablePrimitive.Separator","oi","require_jsx_runtime","ci","cn","mi","import_jsx_runtime","ResizablePanelGroup","props","className","ResizablePanel","ResizableHandle","withHandle"],"sources":["../packages/ui-web/src/resizable.tsx"],"sourcesContent":["'use client';\n\nimport { cn } from 'cn';\nimport * as ResizablePrimitive from 'react-resizable-panels';\n\nfunction ResizablePanelGroup({ className, ...props }: ResizablePrimitive.GroupProps) {\n return (\n <ResizablePrimitive.Group\n data-slot=\"resizable-panel-group\"\n className={cn('flex h-full w-full aria-[orientation=vertical]:flex-col', className)}\n {...props}\n />\n );\n}\n\nfunction ResizablePanel({ ...props }: ResizablePrimitive.PanelProps) {\n return <ResizablePrimitive.Panel data-slot=\"resizable-panel\" {...props} />;\n}\n\nfunction ResizableHandle({\n withHandle,\n className,\n ...props\n}: ResizablePrimitive.SeparatorProps & {\n withHandle?: boolean;\n}) {\n return (\n <ResizablePrimitive.Separator\n data-slot=\"resizable-handle\"\n className={cn(\n 'bg-border ring-offset-background focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:start-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:start-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:translate-x-0 aria-[orientation=horizontal]:after:-translate-y-1/2 rtl:after:translate-x-1/2 rtl:aria-[orientation=horizontal]:after:-translate-x-0 [&[aria-orientation=horizontal]>div]:rotate-90',\n className,\n )}\n {...props}\n >\n {withHandle && <div className=\"bg-border z-10 flex h-6 w-1 shrink-0 rounded-lg\" />}\n </ResizablePrimitive.Separator>\n );\n}\n\nexport { ResizableHandle, ResizablePanel, ResizablePanelGroup };\n"],"mappings":";;;;;AAKA,SAASS,EAAoB,EAAE,cAAW,GAAGC,KAAwC;CACnF,OACE,iBAAA,GAAAF,EAAA,IAAA,CAACR,GAAD;EACE,aAAU;EACV,WAAWM,EAAG,2DAA2DK,CAAS;EAClF,GAAID;CACL,CAAA;AAEL;AAEA,SAASE,EAAe,EAAE,GAAGF,KAAwC;CACnE,OAAO,iBAAA,GAAAF,EAAA,IAAA,CAACP,GAAD;EAA0B,aAAU;EAAkB,GAAIS;CAAQ,CAAA;AAC3E;AAEA,SAASG,EAAgB,EACvB,eACA,cACA,GAAGH,KAGF;CACD,OACE,iBAAA,GAAAF,EAAA,IAAA,CAACN,GAAD;EACE,aAAU;EACV,WAAWI,EACT,2pBACAK,CACF;EACA,GAAID;EAEH,UAAAI,KAAc,iBAAA,GAAAN,EAAA,IAAA,CAAC,OAAD,EAAK,WAAU,kDAAmD,CAAA;CACrD,CAAA;AAElC"}
@@ -0,0 +1 @@
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});
@@ -1,2 +1,2 @@
1
- "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-mLOUI7ql.js"),t=require("./vendor-Bz5F_va8.js");let n=require("react");n=e.r(n);var r=t.Ar();function i({className:e,children:n,...i}){return(0,r.jsxs)(t.jt,{"data-slot":`scroll-area`,className:t.ei(`relative`,e),...i,children:[(0,r.jsx)(t.Ft,{"data-slot":`scroll-area-viewport`,className:`focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1`,children:n}),(0,r.jsx)(a,{}),(0,r.jsx)(t.Mt,{})]})}function a({className:e,orientation:n=`vertical`,...i}){return(0,r.jsx)(t.Nt,{"data-slot":`scroll-area-scrollbar`,"data-orientation":n,orientation:n,className:t.ei(`flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-s data-vertical:border-s-transparent`,e),...i,children:(0,r.jsx)(t.Pt,{"data-slot":`scroll-area-thumb`,className:`bg-border relative flex-1 rounded-full`})})}exports.ScrollArea=i,exports.ScrollBar=a;
1
+ "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./vendor-Ceu--gxM.js");let n=require("react");n=e.r(n);var r=t.Ar();function i({className:e,children:n,...i}){return(0,r.jsxs)(t.jt,{"data-slot":`scroll-area`,className:t.ei(`relative`,e),...i,children:[(0,r.jsx)(t.Ft,{"data-slot":`scroll-area-viewport`,className:`focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1`,children:n}),(0,r.jsx)(a,{}),(0,r.jsx)(t.Mt,{})]})}function a({className:e,orientation:n=`vertical`,...i}){return(0,r.jsx)(t.Nt,{"data-slot":`scroll-area-scrollbar`,"data-orientation":n,orientation:n,className:t.ei(`flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-s data-vertical:border-s-transparent`,e),...i,children:(0,r.jsx)(t.Pt,{"data-slot":`scroll-area-thumb`,className:`bg-border relative flex-1 rounded-full`})})}exports.ScrollArea=i,exports.ScrollBar=a;
2
2
  //# sourceMappingURL=scroll-area.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"scroll-area.cjs","names":[],"sources":["../packages/ui-web/src/scroll-area.tsx"],"sourcesContent":["import type { ScrollAreaBaseProps } from '@gv-tech/ui-core';\nimport { cn } from 'cn';\nimport { ScrollArea as ScrollAreaPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\nfunction ScrollArea({ className, children, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.Root>) {\n return (\n <ScrollAreaPrimitive.Root data-slot=\"scroll-area\" className={cn('relative', className)} {...props}>\n <ScrollAreaPrimitive.Viewport\n data-slot=\"scroll-area-viewport\"\n className=\"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1\"\n >\n {children}\n </ScrollAreaPrimitive.Viewport>\n <ScrollBar />\n <ScrollAreaPrimitive.Corner />\n </ScrollAreaPrimitive.Root>\n );\n}\n\nfunction ScrollBar({\n className,\n orientation = 'vertical',\n ...props\n}: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>) {\n return (\n <ScrollAreaPrimitive.ScrollAreaScrollbar\n data-slot=\"scroll-area-scrollbar\"\n data-orientation={orientation}\n orientation={orientation}\n className={cn(\n 'flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-s data-vertical:border-s-transparent',\n className,\n )}\n {...props}\n >\n <ScrollAreaPrimitive.ScrollAreaThumb\n data-slot=\"scroll-area-thumb\"\n className=\"bg-border relative flex-1 rounded-full\"\n />\n </ScrollAreaPrimitive.ScrollAreaScrollbar>\n );\n}\n\nexport { ScrollArea, ScrollBar };\n\n// Verify that the component satisfies the ui-core contract\nexport type ___verifyScrollAreaContract =\n React.ComponentProps<typeof ScrollArea> extends ScrollAreaBaseProps ? true : false;\n"],"mappings":"iNAKA,SAAS,EAAW,CAAE,YAAW,WAAU,GAAG,GAAgE,CAC5G,OACE,EAAA,EAAA,MAAA,EAAA,GAAA,CAA0B,YAAU,cAAc,UAAW,EAAA,GAAG,WAAY,CAAS,EAAG,GAAI,WAA5F,EACE,EAAA,EAAA,KAAA,EAAA,GAAA,CACE,YAAU,uBACV,UAAU,qJAET,UAC2B,CAAA,GAC9B,EAAA,EAAA,KAAC,EAAD,CAAY,CAAA,GACZ,EAAA,EAAA,KAAA,EAAA,GAAA,CAA6B,CAAA,CACL,GAE9B,CAEA,SAAS,EAAU,CACjB,YACA,cAAc,WACd,GAAG,GACoE,CACvE,OACE,EAAA,EAAA,KAAA,EAAA,GAAA,CACE,YAAU,wBACV,mBAAkB,EACL,cACb,UAAW,EAAA,GACT,qQACA,CACF,EACA,GAAI,YAEJ,EAAA,EAAA,KAAA,EAAA,GAAA,CACE,YAAU,oBACV,UAAU,wCACX,CAAA,CACsC,CAAA,CAE7C"}
1
+ {"version":3,"file":"scroll-area.cjs","names":["cn","require_rolldown_runtime","require_vendor","react","import_jsx_runtime","ScrollArea","props","className","ScrollBar","orientation"],"sources":["../packages/ui-web/src/scroll-area.tsx"],"sourcesContent":["import type { ScrollAreaBaseProps } from '@gv-tech/ui-core';\nimport { cn } from 'cn';\nimport { ScrollArea as ScrollAreaPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\nfunction ScrollArea({ className, children, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.Root>) {\n return (\n <ScrollAreaPrimitive.Root data-slot=\"scroll-area\" className={cn('relative', className)} {...props}>\n <ScrollAreaPrimitive.Viewport\n data-slot=\"scroll-area-viewport\"\n className=\"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1\"\n >\n {children}\n </ScrollAreaPrimitive.Viewport>\n <ScrollBar />\n <ScrollAreaPrimitive.Corner />\n </ScrollAreaPrimitive.Root>\n );\n}\n\nfunction ScrollBar({\n className,\n orientation = 'vertical',\n ...props\n}: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>) {\n return (\n <ScrollAreaPrimitive.ScrollAreaScrollbar\n data-slot=\"scroll-area-scrollbar\"\n data-orientation={orientation}\n orientation={orientation}\n className={cn(\n 'flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-s data-vertical:border-s-transparent',\n className,\n )}\n {...props}\n >\n <ScrollAreaPrimitive.ScrollAreaThumb\n data-slot=\"scroll-area-thumb\"\n className=\"bg-border relative flex-1 rounded-full\"\n />\n </ScrollAreaPrimitive.ScrollAreaScrollbar>\n );\n}\n\nexport { ScrollArea, ScrollBar };\n\n// Verify that the component satisfies the ui-core contract\nexport type ___verifyScrollAreaContract =\n React.ComponentProps<typeof ScrollArea> extends ScrollAreaBaseProps ? true : false;\n"],"mappings":"A,iNAKA,SAASK,EAAW,CAAE,YAAW,WAAU,GAAGC,GAAgE,CAC5G,OACE,EAAAF,EAAA,KAAA,CAAAF,EAAA,GAAA,CAA0B,YAAU,cAAc,UAAWF,EAAAA,GAAG,WAAYO,CAAS,EAAG,GAAID,EAA5F,SAAA,EACE,EAAAF,EAAA,IAAA,CAAAF,EAAA,GAAA,CACE,YAAU,uBACV,UAAU,qJAET,UAC2B,CAAA,GAC9B,EAAAE,EAAA,IAAA,CAACI,EAAD,CAAY,CAAA,GACZ,EAAAJ,EAAA,IAAA,CAAAF,EAAA,GAAA,CAA6B,CAAA,CACL,C,EAE9B,CAEA,SAASM,EAAU,CACjB,YACA,cAAc,WACd,GAAGF,GACoE,CACvE,OACE,EAAAF,EAAA,IAAA,CAAAF,EAAA,GAAA,CACE,YAAU,wBACV,mBAAkBO,EACL,cACb,UAAWT,EAAAA,GACT,qQACAO,CACF,EACA,GAAID,EAEJ,UAAA,EAAAF,EAAA,IAAA,CAAAF,EAAA,GAAA,CACE,YAAU,oBACV,UAAU,wCACX,CAAA,CACsC,CAAA,CAE7C,C"}
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { Ar as e, Ft as t, Mt as n, Nt as r, Pt as i, ei as a, jt as o } from "./vendor-0E4gGRxj.mjs";
2
+ import { Ar as e, Ft as t, Mt as n, Nt as r, Pt as i, ei as a, jt as o } from "./vendor-PEVwmg1D.mjs";
3
3
  import "react";
4
- //#region packages/ui-web/src/scroll-area.tsx
4
+ // packages/ui-web/src/scroll-area.tsx
5
5
  var s = e();
6
6
  function c({ className: e, children: r, ...i }) {
7
7
  return /* @__PURE__ */ (0, s.jsxs)(o, {
@@ -32,7 +32,6 @@ function l({ className: e, orientation: t = "vertical", ...n }) {
32
32
  })
33
33
  });
34
34
  }
35
- //#endregion
36
35
  export { c as ScrollArea, l as ScrollBar };
37
36
 
38
37
  //# sourceMappingURL=scroll-area.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"scroll-area.mjs","names":[],"sources":["../packages/ui-web/src/scroll-area.tsx"],"sourcesContent":["import type { ScrollAreaBaseProps } from '@gv-tech/ui-core';\nimport { cn } from 'cn';\nimport { ScrollArea as ScrollAreaPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\nfunction ScrollArea({ className, children, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.Root>) {\n return (\n <ScrollAreaPrimitive.Root data-slot=\"scroll-area\" className={cn('relative', className)} {...props}>\n <ScrollAreaPrimitive.Viewport\n data-slot=\"scroll-area-viewport\"\n className=\"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1\"\n >\n {children}\n </ScrollAreaPrimitive.Viewport>\n <ScrollBar />\n <ScrollAreaPrimitive.Corner />\n </ScrollAreaPrimitive.Root>\n );\n}\n\nfunction ScrollBar({\n className,\n orientation = 'vertical',\n ...props\n}: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>) {\n return (\n <ScrollAreaPrimitive.ScrollAreaScrollbar\n data-slot=\"scroll-area-scrollbar\"\n data-orientation={orientation}\n orientation={orientation}\n className={cn(\n 'flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-s data-vertical:border-s-transparent',\n className,\n )}\n {...props}\n >\n <ScrollAreaPrimitive.ScrollAreaThumb\n data-slot=\"scroll-area-thumb\"\n className=\"bg-border relative flex-1 rounded-full\"\n />\n </ScrollAreaPrimitive.ScrollAreaScrollbar>\n );\n}\n\nexport { ScrollArea, ScrollBar };\n\n// Verify that the component satisfies the ui-core contract\nexport type ___verifyScrollAreaContract =\n React.ComponentProps<typeof ScrollArea> extends ScrollAreaBaseProps ? true : false;\n"],"mappings":";;;;;AAKA,SAAS,EAAW,EAAE,cAAW,aAAU,GAAG,KAAgE;CAC5G,OACE,iBAAA,GAAA,EAAA,MAAC,GAAD;EAA0B,aAAU;EAAc,WAAW,EAAG,YAAY,CAAS;EAAG,GAAI;YAA5F;GACE,iBAAA,GAAA,EAAA,KAAC,GAAD;IACE,aAAU;IACV,WAAU;IAET;GAC2B,CAAA;GAC9B,iBAAA,GAAA,EAAA,KAAC,GAAD,CAAY,CAAA;GACZ,iBAAA,GAAA,EAAA,KAAC,GAAD,CAA6B,CAAA;EACL;;AAE9B;AAEA,SAAS,EAAU,EACjB,cACA,iBAAc,YACd,GAAG,KACoE;CACvE,OACE,iBAAA,GAAA,EAAA,KAAC,GAAD;EACE,aAAU;EACV,oBAAkB;EACL;EACb,WAAW,EACT,sQACA,CACF;EACA,GAAI;YAEJ,iBAAA,GAAA,EAAA,KAAC,GAAD;GACE,aAAU;GACV,WAAU;EACX,CAAA;CACsC,CAAA;AAE7C"}
1
+ {"version":3,"file":"scroll-area.mjs","names":["ScrollAreaPrimitive.Root","ScrollAreaPrimitive.Viewport","ScrollAreaPrimitive.Corner","ScrollAreaPrimitive.ScrollAreaScrollbar","ScrollAreaPrimitive.ScrollAreaThumb","require_jsx_runtime","ScrollAreaViewport","ScrollAreaCorner","ScrollAreaScrollbar","ScrollAreaThumb","cn","ScrollArea$1","import_jsx_runtime","ScrollArea","props","className","ScrollBar","orientation"],"sources":["../packages/ui-web/src/scroll-area.tsx"],"sourcesContent":["import type { ScrollAreaBaseProps } from '@gv-tech/ui-core';\nimport { cn } from 'cn';\nimport { ScrollArea as ScrollAreaPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\nfunction ScrollArea({ className, children, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.Root>) {\n return (\n <ScrollAreaPrimitive.Root data-slot=\"scroll-area\" className={cn('relative', className)} {...props}>\n <ScrollAreaPrimitive.Viewport\n data-slot=\"scroll-area-viewport\"\n className=\"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1\"\n >\n {children}\n </ScrollAreaPrimitive.Viewport>\n <ScrollBar />\n <ScrollAreaPrimitive.Corner />\n </ScrollAreaPrimitive.Root>\n );\n}\n\nfunction ScrollBar({\n className,\n orientation = 'vertical',\n ...props\n}: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>) {\n return (\n <ScrollAreaPrimitive.ScrollAreaScrollbar\n data-slot=\"scroll-area-scrollbar\"\n data-orientation={orientation}\n orientation={orientation}\n className={cn(\n 'flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-s data-vertical:border-s-transparent',\n className,\n )}\n {...props}\n >\n <ScrollAreaPrimitive.ScrollAreaThumb\n data-slot=\"scroll-area-thumb\"\n className=\"bg-border relative flex-1 rounded-full\"\n />\n </ScrollAreaPrimitive.ScrollAreaScrollbar>\n );\n}\n\nexport { ScrollArea, ScrollBar };\n\n// Verify that the component satisfies the ui-core contract\nexport type ___verifyScrollAreaContract =\n React.ComponentProps<typeof ScrollArea> extends ScrollAreaBaseProps ? true : false;\n"],"mappings":";;;;;AAKA,SAASa,EAAW,EAAE,cAAW,aAAU,GAAGC,KAAgE;CAC5G,OACE,iBAAA,GAAAF,EAAA,KAAA,CAACZ,GAAD;EAA0B,aAAU;EAAc,WAAWU,EAAG,YAAYK,CAAS;EAAG,GAAID;EAA5F,UAAA;GACE,iBAAA,GAAAF,EAAA,IAAA,CAACX,GAAD;IACE,aAAU;IACV,WAAU;IAET;GAC2B,CAAA;GAC9B,iBAAA,GAAAW,EAAA,IAAA,CAACI,GAAD,CAAY,CAAA;GACZ,iBAAA,GAAAJ,EAAA,IAAA,CAACV,GAAD,CAA6B,CAAA;EACL;;AAE9B;AAEA,SAASc,EAAU,EACjB,cACA,iBAAc,YACd,GAAGF,KACoE;CACvE,OACE,iBAAA,GAAAF,EAAA,IAAA,CAACT,GAAD;EACE,aAAU;EACV,oBAAkBc;EACL;EACb,WAAWP,EACT,sQACAK,CACF;EACA,GAAID;EAEJ,UAAA,iBAAA,GAAAF,EAAA,IAAA,CAACR,GAAD;GACE,aAAU;GACV,WAAU;EACX,CAAA;CACsC,CAAA;AAE7C"}
@@ -1,2 +1,2 @@
1
- "use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-mLOUI7ql.js"),t=require("./vendor-Bz5F_va8.js"),n=require("./utils-BROwqSso.js"),r=require("./button.cjs");let i=require("react");i=e.r(i);var a=t.Ar(),o=e=>typeof e.scrollY==`number`,s=e=>o(e)?e.scrollY:e.scrollTop;function c({threshold:e=240,exitDuration:o=450,behavior:c=`smooth`,scrollTarget:l,className:u,label:d=`Scroll to top`,onClick:f,tabIndex:p,type:m,...h}){let[g,_]=i.useState(!1),[v,y]=i.useState(!1),b=i.useRef(null);i.useEffect(()=>{let t=l===void 0?window:l,n=()=>{_(!1)};if(!t){n();return}let r=()=>{let n=s(t);if(v){n<=e&&(_(!1),y(!1));return}_(n>e)};return r(),t.addEventListener(`scroll`,r,{passive:!0}),()=>{t.removeEventListener(`scroll`,r)}},[v,l,e]),i.useEffect(()=>()=>{b.current!==null&&window.clearTimeout(b.current)},[]);let x=v?`exiting`:g?`visible`:`hidden`;return(0,a.jsxs)(r.Button,{"aria-label":d,"data-state":x,type:m??`button`,variant:`default`,size:`icon`,tabIndex:x===`hidden`?-1:p,className:n.t(`group border-primary/40 bg-primary text-primary-foreground focus-visible:ring-ring fixed right-6 bottom-6 z-50 inline-flex h-14 w-14 items-center justify-center overflow-hidden rounded-full border shadow-[0_18px_40px_-22px_hsl(var(--primary)/0.9)] transition-all duration-500 ease-out focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none`,`before:pointer-events-none before:absolute before:inset-0 before:bg-[radial-gradient(circle_at_35%_30%,rgba(255,255,255,0.45),transparent_55%)] before:opacity-80`,`hover:-translate-y-1 hover:scale-105 hover:shadow-[0_24px_48px_-24px_hsl(var(--primary)/0.95)] active:translate-y-0 active:scale-95`,x===`visible`&&`translate-y-0 scale-100 opacity-100`,x===`hidden`&&`pointer-events-none translate-y-24 scale-75 opacity-0 blur-[1px] motion-safe:animate-none`,x===`exiting`&&`pointer-events-none translate-y-28 scale-90 opacity-0 blur-[2px] motion-safe:animate-none`,u),onClick:t=>{if(f?.(t),t.defaultPrevented||v)return;let n=l===void 0?window:l;if(!n)return;y(!0);let r=Math.max(0,o);b.current=window.setTimeout(()=>{n.scrollTo({top:0,behavior:c});let t=s(n);_(!1),t<=e&&y(!1)},r)},...h,children:[(0,a.jsx)(`span`,{className:`bg-primary-foreground/20 absolute inset-0 rounded-full opacity-0 transition-opacity duration-500 group-hover:animate-pulse group-hover:opacity-100`}),(0,a.jsx)(`span`,{className:`border-primary-foreground/35 absolute inset-0 rounded-full border opacity-0 transition-opacity duration-300 group-hover:animate-ping group-hover:opacity-100`}),(0,a.jsx)(t.Qr,{className:`relative z-10 h-5 w-5 drop-shadow-[0_2px_2px_rgba(0,0,0,0.2)]`}),(0,a.jsx)(`span`,{className:`sr-only`,children:d})]})}exports.ScrollToTop=c;
1
+ "use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./vendor-Ceu--gxM.js"),n=require("./button.cjs"),r=require("./utils-BKlmn6yB.js");let i=require("react");i=e.r(i);var a=t.Ar(),o=e=>typeof e.scrollY==`number`,s=e=>o(e)?e.scrollY:e.scrollTop;function c({threshold:e=240,exitDuration:o=450,behavior:c=`smooth`,scrollTarget:l,className:u,label:d=`Scroll to top`,onClick:f,tabIndex:p,type:m,...h}){let[g,_]=i.useState(!1),[v,y]=i.useState(!1),b=i.useRef(null);i.useEffect(()=>{let t=l===void 0?window:l,n=()=>{_(!1)};if(!t){n();return}let r=()=>{let n=s(t);v?n<=e&&(_(!1),y(!1)):_(n>e)};return r(),t.addEventListener(`scroll`,r,{passive:!0}),()=>{t.removeEventListener(`scroll`,r)}},[v,l,e]),i.useEffect(()=>()=>{b.current!==null&&window.clearTimeout(b.current)},[]);let x=v?`exiting`:g?`visible`:`hidden`;return(0,a.jsxs)(n.Button,{"aria-label":d,"data-state":x,type:m??`button`,variant:`default`,size:`icon`,tabIndex:x===`hidden`?-1:p,className:r.t(`group border-primary/40 bg-primary text-primary-foreground focus-visible:ring-ring fixed right-6 bottom-6 z-50 inline-flex h-14 w-14 items-center justify-center overflow-hidden rounded-full border shadow-[0_18px_40px_-22px_hsl(var(--primary)/0.9)] transition-all duration-500 ease-out focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none`,`before:pointer-events-none before:absolute before:inset-0 before:bg-[radial-gradient(circle_at_35%_30%,rgba(255,255,255,0.45),transparent_55%)] before:opacity-80`,`hover:-translate-y-1 hover:scale-105 hover:shadow-[0_24px_48px_-24px_hsl(var(--primary)/0.95)] active:translate-y-0 active:scale-95`,x===`visible`&&`translate-y-0 scale-100 opacity-100`,x===`hidden`&&`pointer-events-none translate-y-24 scale-75 opacity-0 blur-[1px] motion-safe:animate-none`,x===`exiting`&&`pointer-events-none translate-y-28 scale-90 opacity-0 blur-[2px] motion-safe:animate-none`,u),onClick:t=>{if(f?.(t),t.defaultPrevented||v)return;let n=l===void 0?window:l;if(!n)return;y(!0);let r=Math.max(0,o);b.current=window.setTimeout(()=>{n.scrollTo({top:0,behavior:c});let t=s(n);_(!1),t<=e&&y(!1)},r)},...h,children:[(0,a.jsx)(`span`,{className:`bg-primary-foreground/20 absolute inset-0 rounded-full opacity-0 transition-opacity duration-500 group-hover:animate-pulse group-hover:opacity-100`}),(0,a.jsx)(`span`,{className:`border-primary-foreground/35 absolute inset-0 rounded-full border opacity-0 transition-opacity duration-300 group-hover:animate-ping group-hover:opacity-100`}),(0,a.jsx)(t.Qr,{className:`relative z-10 h-5 w-5 drop-shadow-[0_2px_2px_rgba(0,0,0,0.2)]`}),(0,a.jsx)(`span`,{className:`sr-only`,children:d})]})}exports.ScrollToTop=c;
2
2
  //# sourceMappingURL=scroll-to-top.cjs.map