@gv-tech/design-system 2.29.0 → 2.29.2

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 (387) 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 +12 -13
  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 +16 -17
  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 +4 -5
  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 +6 -6
  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 +6 -6
  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 -6
  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 +7 -7
  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 +5 -6
  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 +6 -6
  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 +9 -10
  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 +5 -8
  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 +5 -6
  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 +24 -25
  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 +24 -25
  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 +3 -4
  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 +4 -6
  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 +7 -8
  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 +5 -11
  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 +3 -4
  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 +7 -8
  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 +7 -7
  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 +21 -22
  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 +9 -10
  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-core/src/contracts/scroll-to-top.d.ts +1 -2
  172. package/dist/packages/ui-core/src/contracts/table-of-contents.d.ts +5 -18
  173. package/dist/packages/ui-web/src/__contracts.d.ts +0 -1
  174. package/dist/packages/ui-web/src/accordion.d.ts +1 -1
  175. package/dist/packages/ui-web/src/alert-dialog.d.ts +1 -1
  176. package/dist/packages/ui-web/src/alert.d.ts +1 -1
  177. package/dist/packages/ui-web/src/aspect-ratio.d.ts +2 -2
  178. package/dist/packages/ui-web/src/attachment.d.ts +1 -1
  179. package/dist/packages/ui-web/src/avatar.d.ts +1 -1
  180. package/dist/packages/ui-web/src/badge.d.ts +1 -1
  181. package/dist/packages/ui-web/src/bubble.d.ts +1 -1
  182. package/dist/packages/ui-web/src/button-group.d.ts +3 -3
  183. package/dist/packages/ui-web/src/button.d.ts +1 -1
  184. package/dist/packages/ui-web/src/calendar.d.ts +1 -1
  185. package/dist/packages/ui-web/src/carousel.d.ts +3 -3
  186. package/dist/packages/ui-web/src/checkbox.d.ts +1 -1
  187. package/dist/packages/ui-web/src/collapsible.d.ts +4 -4
  188. package/dist/packages/ui-web/src/command.d.ts +1 -1
  189. package/dist/packages/ui-web/src/context-menu.d.ts +1 -1
  190. package/dist/packages/ui-web/src/dialog.d.ts +1 -1
  191. package/dist/packages/ui-web/src/direction.d.ts +1 -1
  192. package/dist/packages/ui-web/src/drawer.d.ts +1 -1
  193. package/dist/packages/ui-web/src/dropdown-menu.d.ts +1 -1
  194. package/dist/packages/ui-web/src/empty.d.ts +7 -7
  195. package/dist/packages/ui-web/src/field.d.ts +11 -11
  196. package/dist/packages/ui-web/src/form.d.ts +3 -3
  197. package/dist/packages/ui-web/src/hooks/use-theme.d.ts +52 -52
  198. package/dist/packages/ui-web/src/hover-card.d.ts +1 -1
  199. package/dist/packages/ui-web/src/input-group.d.ts +3 -3
  200. package/dist/packages/ui-web/src/input-otp.d.ts +1 -1
  201. package/dist/packages/ui-web/src/item.d.ts +2 -2
  202. package/dist/packages/ui-web/src/kbd.d.ts +2 -2
  203. package/dist/packages/ui-web/src/label.d.ts +1 -1
  204. package/dist/packages/ui-web/src/marker.d.ts +1 -1
  205. package/dist/packages/ui-web/src/menubar.d.ts +1 -1
  206. package/dist/packages/ui-web/src/message-scroller.d.ts +1 -1
  207. package/dist/packages/ui-web/src/navigation-menu.d.ts +1 -1
  208. package/dist/packages/ui-web/src/pagination.d.ts +2 -2
  209. package/dist/packages/ui-web/src/popover.d.ts +1 -1
  210. package/dist/packages/ui-web/src/progress.d.ts +1 -1
  211. package/dist/packages/ui-web/src/questionnaire.d.ts +1 -1
  212. package/dist/packages/ui-web/src/resizable.d.ts +3 -3
  213. package/dist/packages/ui-web/src/scroll-area.d.ts +1 -1
  214. package/dist/packages/ui-web/src/select.d.ts +1 -1
  215. package/dist/packages/ui-web/src/separator.d.ts +1 -1
  216. package/dist/packages/ui-web/src/sheet.d.ts +1 -1
  217. package/dist/packages/ui-web/src/sidebar.d.ts +1 -1
  218. package/dist/packages/ui-web/src/skeleton.d.ts +1 -1
  219. package/dist/packages/ui-web/src/slider.d.ts +1 -1
  220. package/dist/packages/ui-web/src/sonner.d.ts +1 -1
  221. package/dist/packages/ui-web/src/spinner.d.ts +2 -1
  222. package/dist/packages/ui-web/src/switch.d.ts +1 -1
  223. package/dist/packages/ui-web/src/table-of-contents.d.ts +5 -10
  224. package/dist/packages/ui-web/src/tabs.d.ts +1 -1
  225. package/dist/packages/ui-web/src/text.d.ts +1 -1
  226. package/dist/packages/ui-web/src/theme-provider.d.ts +1 -1
  227. package/dist/packages/ui-web/src/theme-toggle.d.ts +1 -1
  228. package/dist/packages/ui-web/src/toast.d.ts +1 -1
  229. package/dist/packages/ui-web/src/toaster.d.ts +1 -1
  230. package/dist/packages/ui-web/src/toggle-group.d.ts +1 -1
  231. package/dist/packages/ui-web/src/toggle.d.ts +1 -1
  232. package/dist/packages/ui-web/src/tooltip.d.ts +1 -1
  233. package/dist/pagination.cjs +1 -1
  234. package/dist/pagination.cjs.map +1 -1
  235. package/dist/pagination.mjs +5 -5
  236. package/dist/pagination.mjs.map +1 -1
  237. package/dist/popover.cjs +1 -1
  238. package/dist/popover.cjs.map +1 -1
  239. package/dist/popover.mjs +8 -9
  240. package/dist/popover.mjs.map +1 -1
  241. package/dist/progress.cjs +1 -1
  242. package/dist/progress.cjs.map +1 -1
  243. package/dist/progress.mjs +4 -5
  244. package/dist/progress.mjs.map +1 -1
  245. package/dist/questionnaire.cjs +1 -1
  246. package/dist/questionnaire.cjs.map +1 -1
  247. package/dist/questionnaire.mjs +2 -3
  248. package/dist/questionnaire.mjs.map +1 -1
  249. package/dist/radio-group.cjs +1 -1
  250. package/dist/radio-group.cjs.map +1 -1
  251. package/dist/radio-group.mjs +2 -3
  252. package/dist/radio-group.mjs.map +1 -1
  253. package/dist/resizable.cjs +1 -1
  254. package/dist/resizable.cjs.map +1 -1
  255. package/dist/resizable.mjs +2 -3
  256. package/dist/resizable.mjs.map +1 -1
  257. package/dist/rolldown-runtime-DbbDpzbe.js +1 -0
  258. package/dist/scroll-area.cjs +1 -1
  259. package/dist/scroll-area.cjs.map +1 -1
  260. package/dist/scroll-area.mjs +4 -5
  261. package/dist/scroll-area.mjs.map +1 -1
  262. package/dist/scroll-to-top.cjs +1 -1
  263. package/dist/scroll-to-top.cjs.map +1 -1
  264. package/dist/scroll-to-top.mjs +14 -17
  265. package/dist/scroll-to-top.mjs.map +1 -1
  266. package/dist/search.cjs +1 -1
  267. package/dist/search.cjs.map +1 -1
  268. package/dist/search.mjs +14 -15
  269. package/dist/search.mjs.map +1 -1
  270. package/dist/select.cjs +1 -1
  271. package/dist/select.cjs.map +1 -1
  272. package/dist/select.mjs +2 -3
  273. package/dist/select.mjs.map +1 -1
  274. package/dist/separator.cjs +1 -1
  275. package/dist/separator.cjs.map +1 -1
  276. package/dist/separator.mjs +2 -3
  277. package/dist/separator.mjs.map +1 -1
  278. package/dist/sheet.cjs +1 -1
  279. package/dist/sheet.cjs.map +1 -1
  280. package/dist/sheet.mjs +2 -3
  281. package/dist/sheet.mjs.map +1 -1
  282. package/dist/{sidebar-C5ukZKYH.mjs → sidebar-BY-0Gann.mjs} +17 -15
  283. package/dist/sidebar-BY-0Gann.mjs.map +1 -0
  284. package/dist/sidebar-BwaRpzdR.js +2 -0
  285. package/dist/sidebar-BwaRpzdR.js.map +1 -0
  286. package/dist/sidebar.cjs +1 -1
  287. package/dist/sidebar.mjs +1 -2
  288. package/dist/skeleton.cjs +1 -1
  289. package/dist/skeleton.cjs.map +1 -1
  290. package/dist/skeleton.mjs +2 -3
  291. package/dist/skeleton.mjs.map +1 -1
  292. package/dist/slider.cjs +1 -1
  293. package/dist/slider.cjs.map +1 -1
  294. package/dist/slider.mjs +2 -3
  295. package/dist/slider.mjs.map +1 -1
  296. package/dist/sonner.cjs +1 -1
  297. package/dist/sonner.cjs.map +1 -1
  298. package/dist/sonner.mjs +2 -3
  299. package/dist/sonner.mjs.map +1 -1
  300. package/dist/spinner.cjs +1 -1
  301. package/dist/spinner.cjs.map +1 -1
  302. package/dist/spinner.mjs +10 -7
  303. package/dist/spinner.mjs.map +1 -1
  304. package/dist/support-fab.cjs +1 -1
  305. package/dist/support-fab.cjs.map +1 -1
  306. package/dist/support-fab.mjs +22 -23
  307. package/dist/support-fab.mjs.map +1 -1
  308. package/dist/switch.cjs +1 -1
  309. package/dist/switch.cjs.map +1 -1
  310. package/dist/switch.mjs +2 -3
  311. package/dist/switch.mjs.map +1 -1
  312. package/dist/table-of-contents.cjs +1 -1
  313. package/dist/table-of-contents.cjs.map +1 -1
  314. package/dist/table-of-contents.mjs +29 -29
  315. package/dist/table-of-contents.mjs.map +1 -1
  316. package/dist/table.cjs +1 -1
  317. package/dist/table.cjs.map +1 -1
  318. package/dist/table.mjs +2 -3
  319. package/dist/table.mjs.map +1 -1
  320. package/dist/tabs.cjs +1 -1
  321. package/dist/tabs.cjs.map +1 -1
  322. package/dist/tabs.mjs +8 -9
  323. package/dist/tabs.mjs.map +1 -1
  324. package/dist/text.cjs +1 -1
  325. package/dist/text.cjs.map +1 -1
  326. package/dist/text.mjs +18 -16
  327. package/dist/text.mjs.map +1 -1
  328. package/dist/textarea.cjs +1 -1
  329. package/dist/textarea.cjs.map +1 -1
  330. package/dist/textarea.mjs +2 -3
  331. package/dist/textarea.mjs.map +1 -1
  332. package/dist/theme-provider.cjs +1 -1
  333. package/dist/theme-provider.cjs.map +1 -1
  334. package/dist/theme-provider.mjs +2 -3
  335. package/dist/theme-provider.mjs.map +1 -1
  336. package/dist/theme-toggle-B7jIk1EJ.mjs +173 -0
  337. package/dist/theme-toggle-B7jIk1EJ.mjs.map +1 -0
  338. package/dist/theme-toggle-CsR6DVEV.js +2 -0
  339. package/dist/theme-toggle-CsR6DVEV.js.map +1 -0
  340. package/dist/theme-toggle.cjs +1 -1
  341. package/dist/theme-toggle.mjs +1 -2
  342. package/dist/toast.cjs +1 -1
  343. package/dist/toast.cjs.map +1 -1
  344. package/dist/toast.mjs +20 -21
  345. package/dist/toast.mjs.map +1 -1
  346. package/dist/{toaster-CfNd-vsx.mjs → toaster-Cr-qFHE_.mjs} +15 -17
  347. package/dist/toaster-Cr-qFHE_.mjs.map +1 -0
  348. package/dist/{toaster-D9OZF7hL.js → toaster-CsRfPupI.js} +2 -2
  349. package/dist/toaster-CsRfPupI.js.map +1 -0
  350. package/dist/toaster.cjs +1 -1
  351. package/dist/toaster.mjs +1 -2
  352. package/dist/toggle-group.cjs +1 -1
  353. package/dist/toggle-group.cjs.map +1 -1
  354. package/dist/toggle-group.mjs +2 -3
  355. package/dist/toggle-group.mjs.map +1 -1
  356. package/dist/toggle.cjs +1 -1
  357. package/dist/toggle.cjs.map +1 -1
  358. package/dist/toggle.mjs +4 -5
  359. package/dist/toggle.mjs.map +1 -1
  360. package/dist/tooltip.cjs +1 -1
  361. package/dist/tooltip.cjs.map +1 -1
  362. package/dist/tooltip.mjs +7 -8
  363. package/dist/tooltip.mjs.map +1 -1
  364. package/dist/{utils-CnOgTvBJ.js → utils-BKlmn6yB.js} +2 -2
  365. package/dist/{utils-CnOgTvBJ.js.map → utils-BKlmn6yB.js.map} +1 -1
  366. package/dist/{utils-BtHTUEvP.mjs → utils-MPB0bG0d.mjs} +3 -4
  367. package/dist/utils-MPB0bG0d.mjs.map +1 -0
  368. package/dist/vendor-Ceu--gxM.js +113 -0
  369. package/dist/vendor-Ceu--gxM.js.map +1 -0
  370. package/dist/{vendor-D9rWr_E8.mjs → vendor-PEVwmg1D.mjs} +15976 -15161
  371. package/dist/vendor-PEVwmg1D.mjs.map +1 -0
  372. package/package.json +77 -85
  373. package/dist/rolldown-runtime-CWhphoD1.mjs +0 -23
  374. package/dist/rolldown-runtime-mLOUI7ql.js +0 -1
  375. package/dist/sidebar-C5ukZKYH.mjs.map +0 -1
  376. package/dist/sidebar-DyP2Q-Ru.js +0 -2
  377. package/dist/sidebar-DyP2Q-Ru.js.map +0 -1
  378. package/dist/theme-toggle-BGVdrh4J.mjs +0 -337
  379. package/dist/theme-toggle-BGVdrh4J.mjs.map +0 -1
  380. package/dist/theme-toggle-CMdzi7Y8.js +0 -2
  381. package/dist/theme-toggle-CMdzi7Y8.js.map +0 -1
  382. package/dist/toaster-CfNd-vsx.mjs.map +0 -1
  383. package/dist/toaster-D9OZF7hL.js.map +0 -1
  384. package/dist/utils-BtHTUEvP.mjs.map +0 -1
  385. package/dist/vendor-D9rWr_E8.mjs.map +0 -1
  386. package/dist/vendor-i1KCLryV.js +0 -101
  387. package/dist/vendor-i1KCLryV.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"questionnaire.cjs","names":[],"sources":["../packages/ui-web/src/questionnaire.tsx"],"sourcesContent":["'use client';\n\nimport { Questionnaire as QuestionnairePrimitive } from '@shadcn/react/questionnaire';\nimport { cn } from 'cn';\nimport * as React from 'react';\n\nimport { buttonVariants, type Button } from '@/./button';\nimport { CheckIcon } from 'lucide-react';\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';\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":"wPA2BA,SAAS,EAAc,CACrB,YACA,GAAG,GACiF,CACpF,OACE,EAAA,EAAA,KAAC,EAAA,EAAuB,KAAxB,CACE,YAAU,gBACV,UAAW,EAAA,GAAG,qCAAsC,CAAS,EAC7D,GAAI,CACL,CAAA,CAEL,CAEA,SAAS,EAAsB,CAC7B,YACA,GAAG,GAC6F,CAChG,OACE,EAAA,EAAA,KAAC,EAAA,EAAuB,SAAxB,CACE,YAAU,yBACV,UAAW,EAAA,GAAG,wFAAyF,CAAS,EAChH,GAAI,CACL,CAAA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X,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,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Q,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-D9rWr_E8.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 { Questionnaire as QuestionnairePrimitive } from '@shadcn/react/questionnaire';\nimport { cn } from 'cn';\nimport * as React from 'react';\n\nimport { buttonVariants, type Button } from '@/./button';\nimport { CheckIcon } from 'lucide-react';\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';\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":";;;;;;;AA2BA,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;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5B,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,c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(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-mLOUI7ql.js"),t=require("./vendor-i1KCLryV.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-D9rWr_E8.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-i1KCLryV.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-D9rWr_E8.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-i1KCLryV.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.Mt,{"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.jt,{})]})}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 { cn } from 'cn';\nimport { ScrollArea as ScrollAreaPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\nimport type { ScrollAreaBaseProps } from '@gv-tech/ui-core';\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":"iNAMA,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,10 +1,10 @@
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-D9rWr_E8.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
- return /* @__PURE__ */ (0, s.jsxs)(n, {
7
+ return /* @__PURE__ */ (0, s.jsxs)(o, {
8
8
  "data-slot": "scroll-area",
9
9
  className: a("relative", e),
10
10
  ...i,
@@ -15,7 +15,7 @@ function c({ className: e, children: r, ...i }) {
15
15
  children: r
16
16
  }),
17
17
  /* @__PURE__ */ (0, s.jsx)(l, {}),
18
- /* @__PURE__ */ (0, s.jsx)(o, {})
18
+ /* @__PURE__ */ (0, s.jsx)(n, {})
19
19
  ]
20
20
  });
21
21
  }
@@ -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 { cn } from 'cn';\nimport { ScrollArea as ScrollAreaPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\nimport type { ScrollAreaBaseProps } from '@gv-tech/ui-core';\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":";;;;;AAMA,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-i1KCLryV.js"),n=require("./utils-CnOgTvBJ.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;if(!t){_(!1);return}let n=()=>{let n=s(t);if(v){n<=e&&(_(!1),y(!1));return}_(n>e)};return n(),t.addEventListener(`scroll`,n,{passive:!0}),()=>{t.removeEventListener(`scroll`,n)}},[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
@@ -1 +1 @@
1
- {"version":3,"file":"scroll-to-top.cjs","names":[],"sources":["../packages/ui-web/src/scroll-to-top.tsx"],"sourcesContent":["'use client';\n\nimport { ScrollToTopBaseProps } from '@gv-tech/ui-core';\nimport { ArrowUp } from 'lucide-react';\nimport * as React from 'react';\nimport { Button } from './button';\nimport { cn } from './lib/utils';\n\nexport interface ScrollToTopProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, ScrollToTopBaseProps {\n /** Optional custom scroll container; defaults to window when undefined. */\n scrollTarget?: Window | HTMLElement | null;\n}\n\ntype ScrollTarget = Window | HTMLElement | null;\n\nconst isWindowTarget = (target: Exclude<ScrollTarget, null>): target is Window =>\n typeof (target as Window).scrollY === 'number';\n\nconst getScrollOffset = (target: Exclude<ScrollTarget, null>) =>\n isWindowTarget(target) ? target.scrollY : target.scrollTop;\n\nexport function ScrollToTop({\n threshold = 240,\n exitDuration = 450,\n behavior = 'smooth',\n scrollTarget,\n className,\n label = 'Scroll to top',\n onClick,\n tabIndex,\n type,\n ...props\n}: ScrollToTopProps) {\n const [isVisible, setIsVisible] = React.useState(false);\n const [isExiting, setIsExiting] = React.useState(false);\n const timeoutRef = React.useRef<number | null>(null);\n\n React.useEffect(() => {\n const target = scrollTarget === undefined ? window : scrollTarget;\n\n if (!target) {\n setIsVisible(false);\n return;\n }\n\n const updateVisibility = () => {\n const offset = getScrollOffset(target);\n\n if (isExiting) {\n // Keep the control dismissed during the return-to-top animation,\n // then release once we are back under the visibility threshold.\n if (offset <= threshold) {\n setIsVisible(false);\n setIsExiting(false);\n }\n return;\n }\n\n setIsVisible(offset > threshold);\n };\n\n updateVisibility();\n target.addEventListener('scroll', updateVisibility, { passive: true });\n\n return () => {\n target.removeEventListener('scroll', updateVisibility);\n };\n }, [isExiting, scrollTarget, threshold]);\n\n React.useEffect(() => {\n return () => {\n if (timeoutRef.current !== null) {\n window.clearTimeout(timeoutRef.current);\n }\n };\n }, []);\n\n const state = isExiting ? 'exiting' : isVisible ? 'visible' : 'hidden';\n\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n onClick?.(event);\n if (event.defaultPrevented || isExiting) {\n return;\n }\n\n const target = scrollTarget === undefined ? window : scrollTarget;\n if (!target) {\n return;\n }\n\n setIsExiting(true);\n\n const timeout = Math.max(0, exitDuration);\n timeoutRef.current = window.setTimeout(() => {\n target.scrollTo({ top: 0, behavior });\n\n const offset = getScrollOffset(target);\n setIsVisible(false);\n\n if (offset <= threshold) {\n setIsExiting(false);\n }\n }, timeout);\n };\n\n return (\n <Button\n aria-label={label}\n data-state={state}\n type={type ?? 'button'}\n variant=\"default\"\n size=\"icon\"\n tabIndex={state === 'hidden' ? -1 : tabIndex}\n className={cn(\n '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',\n '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',\n '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',\n state === 'visible' && 'translate-y-0 scale-100 opacity-100',\n state === 'hidden' &&\n 'pointer-events-none translate-y-24 scale-75 opacity-0 blur-[1px] motion-safe:animate-none',\n state === 'exiting' &&\n 'pointer-events-none translate-y-28 scale-90 opacity-0 blur-[2px] motion-safe:animate-none',\n className,\n )}\n onClick={handleClick}\n {...props}\n >\n <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\" />\n <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\" />\n <ArrowUp className=\"relative z-10 h-5 w-5 drop-shadow-[0_2px_2px_rgba(0,0,0,0.2)]\" />\n <span className=\"sr-only\">{label}</span>\n </Button>\n );\n}\n"],"mappings":"yRAeM,EAAkB,GACtB,OAAQ,EAAkB,SAAY,SAElC,EAAmB,GACvB,EAAe,CAAM,EAAI,EAAO,QAAU,EAAO,UAEnD,SAAgB,EAAY,CAC1B,YAAY,IACZ,eAAe,IACf,WAAW,SACX,eAC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,IAAK,EAAG,UAAS,CAAC,EAEpC,IAAM,EAAS,EAAgB,CAAM,EACrC,EAAa,EAAK,EAEd,GAAU,GACZ,EAAa,EAAK,CAEtB,EAAG,CAAO,CACZ,EAsBI,GAAI,WAnBN,EAqBE,EAAA,EAAA,KAAC,OAAD,CAAM,UAAU,oJAAsJ,CAAA,GACtK,EAAA,EAAA,KAAC,OAAD,CAAM,UAAU,8JAAgK,CAAA,GAChL,EAAA,EAAA,KAAC,EAAA,GAAD,CAAS,UAAU,+DAAiE,CAAA,GACpF,EAAA,EAAA,KAAC,OAAD,CAAM,UAAU,mBAAW,CAAY,CAAA,CACjC,GAEZ"}
1
+ {"version":3,"file":"scroll-to-top.cjs","names":["React","Button","cn","ArrowUp","require_rolldown_runtime","require_vendor","require_button","require_utils","react","import_jsx_runtime","isWindowTarget","target","getScrollOffset","ScrollToTop","props","isVisible","setIsVisible","isExiting","setIsExiting","timeoutRef","scrollTarget","hideControl","updateVisibility","offset","threshold","state","label","type","tabIndex","className","onClick","event","timeout","exitDuration"],"sources":["../packages/ui-web/src/scroll-to-top.tsx"],"sourcesContent":["'use client';\n\nimport type { ScrollToTopBaseProps } from '@gv-tech/ui-core';\nimport { ArrowUp } from 'lucide-react';\nimport * as React from 'react';\n\nimport { Button } from './button';\nimport { cn } from './lib/utils';\n\nexport interface ScrollToTopProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, ScrollToTopBaseProps {\n /** Optional custom scroll container; defaults to window when undefined. */\n scrollTarget?: Window | HTMLElement | null;\n}\n\ntype ScrollTarget = Window | HTMLElement | null;\n\nconst isWindowTarget = (target: Exclude<ScrollTarget, null>): target is Window =>\n typeof (target as Window).scrollY === 'number';\n\nconst getScrollOffset = (target: Exclude<ScrollTarget, null>) =>\n isWindowTarget(target) ? target.scrollY : target.scrollTop;\n\nexport function ScrollToTop({\n threshold = 240,\n exitDuration = 450,\n behavior = 'smooth',\n scrollTarget,\n className,\n label = 'Scroll to top',\n onClick,\n tabIndex,\n type,\n ...props\n}: ScrollToTopProps) {\n const [isVisible, setIsVisible] = React.useState(false);\n const [isExiting, setIsExiting] = React.useState(false);\n const timeoutRef = React.useRef<number | null>(null);\n\n React.useEffect(() => {\n const target = scrollTarget === undefined ? window : scrollTarget;\n\n const hideControl = () => {\n setIsVisible(false);\n };\n\n if (!target) {\n hideControl();\n return;\n }\n\n const updateVisibility = () => {\n const offset = getScrollOffset(target);\n\n if (isExiting) {\n // Keep the control dismissed during the return-to-top animation,\n // then release once we are back under the visibility threshold.\n if (offset <= threshold) {\n setIsVisible(false);\n setIsExiting(false);\n }\n return;\n }\n\n setIsVisible(offset > threshold);\n };\n\n updateVisibility();\n target.addEventListener('scroll', updateVisibility, { passive: true });\n\n return () => {\n target.removeEventListener('scroll', updateVisibility);\n };\n }, [isExiting, scrollTarget, threshold]);\n\n React.useEffect(() => {\n return () => {\n if (timeoutRef.current !== null) {\n window.clearTimeout(timeoutRef.current);\n }\n };\n }, []);\n\n const state = isExiting ? 'exiting' : isVisible ? 'visible' : 'hidden';\n\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n onClick?.(event);\n if (event.defaultPrevented || isExiting) {\n return;\n }\n\n const target = scrollTarget === undefined ? window : scrollTarget;\n if (!target) {\n return;\n }\n\n setIsExiting(true);\n\n const timeout = Math.max(0, exitDuration);\n timeoutRef.current = window.setTimeout(() => {\n target.scrollTo({ top: 0, behavior });\n\n const offset = getScrollOffset(target);\n setIsVisible(false);\n\n if (offset <= threshold) {\n setIsExiting(false);\n }\n }, timeout);\n };\n\n return (\n <Button\n aria-label={label}\n data-state={state}\n type={type ?? 'button'}\n variant=\"default\"\n size=\"icon\"\n tabIndex={state === 'hidden' ? -1 : tabIndex}\n className={cn(\n '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',\n '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',\n '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',\n state === 'visible' && 'translate-y-0 scale-100 opacity-100',\n state === 'hidden' &&\n 'pointer-events-none translate-y-24 scale-75 opacity-0 blur-[1px] motion-safe:animate-none',\n state === 'exiting' &&\n 'pointer-events-none translate-y-28 scale-90 opacity-0 blur-[2px] motion-safe:animate-none',\n className,\n )}\n onClick={handleClick}\n {...props}\n >\n <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\" />\n <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\" />\n <ArrowUp className=\"relative z-10 h-5 w-5 drop-shadow-[0_2px_2px_rgba(0,0,0,0.2)]\" />\n <span className=\"sr-only\">{label}</span>\n </Button>\n );\n}\n"],"mappings":"A,yRAgBMU,EAAkB,GACtB,OAAQC,EAAkB,SAAY,SAElCC,EAAmB,GACvBF,EAAeC,CAAM,EAAIA,EAAO,QAAUA,EAAO,UAEnD,SAAgBE,EAAY,CAC1B,YAAY,IACZ,eAAe,IACf,WAAW,SACX,eACA,YACA,QAAQ,gBACR,UACA,WACA,OACA,GAAGC,GACgB,CACnB,GAAM,CAACC,EAAWC,GAAgBhB,EAAM,SAAS,EAAK,EAChD,CAACiB,EAAWC,GAAgBlB,EAAM,SAAS,EAAK,EAChDmB,EAAanB,EAAM,OAAsB,IAAI,EAEnDQ,EAAM,cAAgB,CACpB,IAAMG,EAASS,IAAiB,IAAA,GAAY,OAASA,EAE/CC,MAAoB,CACxBL,EAAa,EAAK,CACpB,EAEA,GAAI,CAACL,EAAQ,CACXU,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A,GACtK,EAAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,8JAAgK,CAAA,GAChL,EAAAA,EAAA,IAAA,CAACN,EAAAA,GAAD,CAAS,UAAU,+DAAiE,CAAA,GACpF,EAAAM,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,UAAW,SAAAiB,CAAY,CAAA,CACjC,C,EAEZ,C"}
@@ -1,29 +1,27 @@
1
1
  "use client";
2
2
  "use client";
3
- import { Ar as e, Qr as t } from "./vendor-D9rWr_E8.mjs";
4
- import { t as n } from "./utils-BtHTUEvP.mjs";
5
- import { Button as r } from "./button.mjs";
3
+ import { Ar as e, Qr as t } from "./vendor-PEVwmg1D.mjs";
4
+ import { Button as n } from "./button.mjs";
5
+ import { t as r } from "./utils-MPB0bG0d.mjs";
6
6
  import * as i from "react";
7
- //#region packages/ui-web/src/scroll-to-top.tsx
7
+ // packages/ui-web/src/scroll-to-top.tsx
8
8
  var a = e(), o = (e) => typeof e.scrollY == "number", s = (e) => o(e) ? e.scrollY : e.scrollTop;
9
9
  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 }) {
10
10
  let [g, _] = i.useState(!1), [v, y] = i.useState(!1), b = i.useRef(null);
11
11
  i.useEffect(() => {
12
- let t = l === void 0 ? window : l;
13
- if (!t) {
12
+ let t = l === void 0 ? window : l, n = () => {
14
13
  _(!1);
14
+ };
15
+ if (!t) {
16
+ n();
15
17
  return;
16
18
  }
17
- let n = () => {
19
+ let r = () => {
18
20
  let n = s(t);
19
- if (v) {
20
- n <= e && (_(!1), y(!1));
21
- return;
22
- }
23
- _(n > e);
21
+ v ? n <= e && (_(!1), y(!1)) : _(n > e);
24
22
  };
25
- return n(), t.addEventListener("scroll", n, { passive: !0 }), () => {
26
- t.removeEventListener("scroll", n);
23
+ return r(), t.addEventListener("scroll", r, { passive: !0 }), () => {
24
+ t.removeEventListener("scroll", r);
27
25
  };
28
26
  }, [
29
27
  v,
@@ -33,14 +31,14 @@ function c({ threshold: e = 240, exitDuration: o = 450, behavior: c = "smooth",
33
31
  b.current !== null && window.clearTimeout(b.current);
34
32
  }, []);
35
33
  let x = v ? "exiting" : g ? "visible" : "hidden";
36
- return /* @__PURE__ */ (0, a.jsxs)(r, {
34
+ return /* @__PURE__ */ (0, a.jsxs)(n, {
37
35
  "aria-label": d,
38
36
  "data-state": x,
39
37
  type: m ?? "button",
40
38
  variant: "default",
41
39
  size: "icon",
42
40
  tabIndex: x === "hidden" ? -1 : p,
43
- className: n("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),
41
+ className: r("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),
44
42
  onClick: (t) => {
45
43
  if (f?.(t), t.defaultPrevented || v) return;
46
44
  let n = l === void 0 ? window : l;
@@ -68,7 +66,6 @@ function c({ threshold: e = 240, exitDuration: o = 450, behavior: c = "smooth",
68
66
  ]
69
67
  });
70
68
  }
71
- //#endregion
72
69
  export { c as ScrollToTop };
73
70
 
74
71
  //# sourceMappingURL=scroll-to-top.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"scroll-to-top.mjs","names":[],"sources":["../packages/ui-web/src/scroll-to-top.tsx"],"sourcesContent":["'use client';\n\nimport { ScrollToTopBaseProps } from '@gv-tech/ui-core';\nimport { ArrowUp } from 'lucide-react';\nimport * as React from 'react';\nimport { Button } from './button';\nimport { cn } from './lib/utils';\n\nexport interface ScrollToTopProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, ScrollToTopBaseProps {\n /** Optional custom scroll container; defaults to window when undefined. */\n scrollTarget?: Window | HTMLElement | null;\n}\n\ntype ScrollTarget = Window | HTMLElement | null;\n\nconst isWindowTarget = (target: Exclude<ScrollTarget, null>): target is Window =>\n typeof (target as Window).scrollY === 'number';\n\nconst getScrollOffset = (target: Exclude<ScrollTarget, null>) =>\n isWindowTarget(target) ? target.scrollY : target.scrollTop;\n\nexport function ScrollToTop({\n threshold = 240,\n exitDuration = 450,\n behavior = 'smooth',\n scrollTarget,\n className,\n label = 'Scroll to top',\n onClick,\n tabIndex,\n type,\n ...props\n}: ScrollToTopProps) {\n const [isVisible, setIsVisible] = React.useState(false);\n const [isExiting, setIsExiting] = React.useState(false);\n const timeoutRef = React.useRef<number | null>(null);\n\n React.useEffect(() => {\n const target = scrollTarget === undefined ? window : scrollTarget;\n\n if (!target) {\n setIsVisible(false);\n return;\n }\n\n const updateVisibility = () => {\n const offset = getScrollOffset(target);\n\n if (isExiting) {\n // Keep the control dismissed during the return-to-top animation,\n // then release once we are back under the visibility threshold.\n if (offset <= threshold) {\n setIsVisible(false);\n setIsExiting(false);\n }\n return;\n }\n\n setIsVisible(offset > threshold);\n };\n\n updateVisibility();\n target.addEventListener('scroll', updateVisibility, { passive: true });\n\n return () => {\n target.removeEventListener('scroll', updateVisibility);\n };\n }, [isExiting, scrollTarget, threshold]);\n\n React.useEffect(() => {\n return () => {\n if (timeoutRef.current !== null) {\n window.clearTimeout(timeoutRef.current);\n }\n };\n }, []);\n\n const state = isExiting ? 'exiting' : isVisible ? 'visible' : 'hidden';\n\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n onClick?.(event);\n if (event.defaultPrevented || isExiting) {\n return;\n }\n\n const target = scrollTarget === undefined ? window : scrollTarget;\n if (!target) {\n return;\n }\n\n setIsExiting(true);\n\n const timeout = Math.max(0, exitDuration);\n timeoutRef.current = window.setTimeout(() => {\n target.scrollTo({ top: 0, behavior });\n\n const offset = getScrollOffset(target);\n setIsVisible(false);\n\n if (offset <= threshold) {\n setIsExiting(false);\n }\n }, timeout);\n };\n\n return (\n <Button\n aria-label={label}\n data-state={state}\n type={type ?? 'button'}\n variant=\"default\"\n size=\"icon\"\n tabIndex={state === 'hidden' ? -1 : tabIndex}\n className={cn(\n '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',\n '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',\n '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',\n state === 'visible' && 'translate-y-0 scale-100 opacity-100',\n state === 'hidden' &&\n 'pointer-events-none translate-y-24 scale-75 opacity-0 blur-[1px] motion-safe:animate-none',\n state === 'exiting' &&\n 'pointer-events-none translate-y-28 scale-90 opacity-0 blur-[2px] motion-safe:animate-none',\n className,\n )}\n onClick={handleClick}\n {...props}\n >\n <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\" />\n <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\" />\n <ArrowUp className=\"relative z-10 h-5 w-5 drop-shadow-[0_2px_2px_rgba(0,0,0,0.2)]\" />\n <span className=\"sr-only\">{label}</span>\n </Button>\n );\n}\n"],"mappings":";;;;;;;aAeM,KAAkB,MACtB,OAAQ,EAAkB,WAAY,UAElC,KAAmB,MACvB,EAAe,CAAM,IAAI,EAAO,UAAU,EAAO;AAEnD,SAAgB,EAAY,EAC1B,eAAY,KACZ,kBAAe,KACf,cAAW,UACX,iBACA,cACA,WAAQ,iBACR,YACA,aACA,SACA,GAAG,KACgB;CACnB,IAAM,CAAC,GAAW,KAAgB,EAAM,SAAS,EAAK,GAChD,CAAC,GAAW,KAAgB,EAAM,SAAS,EAAK,GAChD,IAAa,EAAM,OAAsB,IAAI;CAkCnD,AAhCA,EAAM,gBAAgB;EACpB,IAAM,IAAS,MAAiB,KAAA,IAAY,SAAS;EAErD,IAAI,CAAC,GAAQ;GACX,EAAa,EAAK;GAClB;EACF;EAEA,IAAM,UAAyB;GAC7B,IAAM,IAAS,EAAgB,CAAM;GAErC,IAAI,GAAW;IAGb,AAAI,KAAU,MACZ,EAAa,EAAK,GAClB,EAAa,EAAK;IAEpB;GACF;GAEA,EAAa,IAAS,CAAS;EACjC;EAKA,OAHA,EAAiB,GACjB,EAAO,iBAAiB,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","ArrowUp","cn","React$1","import_jsx_runtime","isWindowTarget","target","getScrollOffset","ScrollToTop","props","isVisible","setIsVisible","isExiting","setIsExiting","timeoutRef","scrollTarget","hideControl","updateVisibility","offset","threshold","state","Button","label","type","tabIndex","className","onClick","event","timeout","exitDuration"],"sources":["../packages/ui-web/src/scroll-to-top.tsx"],"sourcesContent":["'use client';\n\nimport type { ScrollToTopBaseProps } from '@gv-tech/ui-core';\nimport { ArrowUp } from 'lucide-react';\nimport * as React from 'react';\n\nimport { Button } from './button';\nimport { cn } from './lib/utils';\n\nexport interface ScrollToTopProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, ScrollToTopBaseProps {\n /** Optional custom scroll container; defaults to window when undefined. */\n scrollTarget?: Window | HTMLElement | null;\n}\n\ntype ScrollTarget = Window | HTMLElement | null;\n\nconst isWindowTarget = (target: Exclude<ScrollTarget, null>): target is Window =>\n typeof (target as Window).scrollY === 'number';\n\nconst getScrollOffset = (target: Exclude<ScrollTarget, null>) =>\n isWindowTarget(target) ? target.scrollY : target.scrollTop;\n\nexport function ScrollToTop({\n threshold = 240,\n exitDuration = 450,\n behavior = 'smooth',\n scrollTarget,\n className,\n label = 'Scroll to top',\n onClick,\n tabIndex,\n type,\n ...props\n}: ScrollToTopProps) {\n const [isVisible, setIsVisible] = React.useState(false);\n const [isExiting, setIsExiting] = React.useState(false);\n const timeoutRef = React.useRef<number | null>(null);\n\n React.useEffect(() => {\n const target = scrollTarget === undefined ? window : scrollTarget;\n\n const hideControl = () => {\n setIsVisible(false);\n };\n\n if (!target) {\n hideControl();\n return;\n }\n\n const updateVisibility = () => {\n const offset = getScrollOffset(target);\n\n if (isExiting) {\n // Keep the control dismissed during the return-to-top animation,\n // then release once we are back under the visibility threshold.\n if (offset <= threshold) {\n setIsVisible(false);\n setIsExiting(false);\n }\n return;\n }\n\n setIsVisible(offset > threshold);\n };\n\n updateVisibility();\n target.addEventListener('scroll', updateVisibility, { passive: true });\n\n return () => {\n target.removeEventListener('scroll', updateVisibility);\n };\n }, [isExiting, scrollTarget, threshold]);\n\n React.useEffect(() => {\n return () => {\n if (timeoutRef.current !== null) {\n window.clearTimeout(timeoutRef.current);\n }\n };\n }, []);\n\n const state = isExiting ? 'exiting' : isVisible ? 'visible' : 'hidden';\n\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n onClick?.(event);\n if (event.defaultPrevented || isExiting) {\n return;\n }\n\n const target = scrollTarget === undefined ? window : scrollTarget;\n if (!target) {\n return;\n }\n\n setIsExiting(true);\n\n const timeout = Math.max(0, exitDuration);\n timeoutRef.current = window.setTimeout(() => {\n target.scrollTo({ top: 0, behavior });\n\n const offset = getScrollOffset(target);\n setIsVisible(false);\n\n if (offset <= threshold) {\n setIsExiting(false);\n }\n }, timeout);\n };\n\n return (\n <Button\n aria-label={label}\n data-state={state}\n type={type ?? 'button'}\n variant=\"default\"\n size=\"icon\"\n tabIndex={state === 'hidden' ? -1 : tabIndex}\n className={cn(\n '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',\n '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',\n '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',\n state === 'visible' && 'translate-y-0 scale-100 opacity-100',\n state === 'hidden' &&\n 'pointer-events-none translate-y-24 scale-75 opacity-0 blur-[1px] motion-safe:animate-none',\n state === 'exiting' &&\n 'pointer-events-none translate-y-28 scale-90 opacity-0 blur-[2px] motion-safe:animate-none',\n className,\n )}\n onClick={handleClick}\n {...props}\n >\n <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\" />\n <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\" />\n <ArrowUp className=\"relative z-10 h-5 w-5 drop-shadow-[0_2px_2px_rgba(0,0,0,0.2)]\" />\n <span className=\"sr-only\">{label}</span>\n </Button>\n );\n}\n"],"mappings":";;;;;;;A,aAgBMM,KAAkB,MACtB,OAAQC,EAAkB,WAAY,UAElCC,KAAmB,MACvBF,EAAeC,CAAM,IAAIA,EAAO,UAAUA,EAAO;AAEnD,SAAgBE,EAAY,EAC1B,eAAY,KACZ,kBAAe,KACf,cAAW,UACX,iBACA,cACA,WAAQ,iBACR,YACA,aACA,SACA,GAAGC,KACgB;CACnB,IAAM,CAACC,GAAWC,KAAgBZ,EAAM,SAAS,EAAK,GAChD,CAACa,GAAWC,KAAgBd,EAAM,SAAS,EAAK,GAChDe,IAAaf,EAAM,OAAsB,IAAI;CAsCnD,AApCAI,EAAM,gBAAgB;EACpB,IAAMG,IAASS,MAAiB,KAAA,IAAY,SAASA,GAE/CC,UAAoB;GACxB,EAAa,EAAK;EACpB;EAEA,IAAI,CAACV,GAAQ;GACX,EAAY;GACZ;EACF;EAEA,IAAMW,UAAyB;GAC7B,IAAMC,IAASX,EAAgBD,CAAM;GAErC,AAAIM,IAGEM,KAAUC,MACZR,EAAa,EAAK,GAClBE,EAAa,EAAK,KAKtBF,EAAaO,IAASC,CAAS;EACjC;EAKA,OAHAF,EAAiB,GACjBX,EAAO,iBAAiB,UAAUW,GAAkB,EAAE,SAAS,GAAK,CAAC,SAExD;GACX,EAAO,oBAAoB,UAAUA,CAAgB;EACvD;CACF,GAAG;EAACL;EAAWG;EAAcI;CAAS,CAAC,GAEvChB,EAAM,sBACS;EACX,AAAIW,EAAW,YAAY,QACzB,OAAO,aAAaA,EAAW,OAAO;CAE1C,GACC,CAAC,CAAC;CAEL,IAAMM,IAAQR,IAAY,YAAYF,IAAY,YAAY;CA4B9D,OACE,iBAAA,GAAAN,EAAA,KAAA,CAACiB,GAAD;EACE,cAAYC;EACZ,cAAYF;EACZ,MAAMG,KAAQ;EACd,SAAQ;EACR,MAAK;EACL,UAAUH,MAAU,WAAW,KAAKI;EACpC,WAAWtB,EACT,4WACA,qKACA,uIACAkB,MAAU,aAAa,uCACvBA,MAAU,YACR,6FACFA,MAAU,aACR,6FACFK,CACF;EACA,UA7CiB,MAA+C;GAElE,IADAC,IAAUC,CAAK,GACXA,EAAM,oBAAoBf,GAC5B;GAGF,IAAMN,IAASS,MAAiB,KAAA,IAAY,SAASA;GACrD,IAAI,CAACT,GACH;GAGF,EAAa,EAAI;GAEjB,IAAMsB,IAAU,KAAK,IAAI,GAAGC,CAAY;GACxC,EAAW,UAAU,OAAO,iBAAiB;IAC3C,EAAO,SAAS;KAAE,KAAK;KAAG;IAAS,CAAC;IAEpC,IAAMX,IAASX,EAAgBD,CAAM;IAGrC,AAFAK,EAAa,EAAK,GAEdO,KAAUC,KACZN,EAAa,EAAK;GAEtB,GAAGe,CAAO;EACZ;EAsBI,GAAInB;EAnBN,UAAA;GAqBE,iBAAA,GAAAL,EAAA,IAAA,CAAC,QAAD,EAAM,WAAU,qJAAsJ,CAAA;GACtK,iBAAA,GAAAA,EAAA,IAAA,CAAC,QAAD,EAAM,WAAU,+JAAgK,CAAA;GAChL,iBAAA,GAAAA,EAAA,IAAA,CAACH,GAAD,EAAS,WAAU,gEAAiE,CAAA;GACpF,iBAAA,GAAAG,EAAA,IAAA,CAAC,QAAD;IAAM,WAAU;IAAW,UAAAkB;GAAY,CAAA;EACjC;;AAEZ"}
package/dist/search.cjs CHANGED
@@ -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-i1KCLryV.js"),n=require("./utils-CnOgTvBJ.js"),r=require("./button.cjs"),i=require("./command.cjs");let a=require("react");a=e.r(a);var o=t.Ar();function s({children:e,open:t,onOpenChange:n,disableShortcut:r}){let[s,c]=a.useState(!1),l=t!==void 0,u=l?t:s,d=a.useCallback(e=>{let t;t=typeof e==`function`?e(u):e,l?n?.(t):c(t)},[l,u,n]);return a.useEffect(()=>{if(r)return;let e=e=>{e.key===`k`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),d(e=>!e))};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[d,r]),(0,o.jsx)(i.CommandDialog,{open:u,onOpenChange:d,children:e})}var c=a.forwardRef(({className:e,placeholder:i,variant:a=`default`,responsive:s=!0,...c},l)=>{let u=i||(a===`compact`?`Search...`:`Search docs...`);return(0,o.jsxs)(r.Button,{variant:`outline`,className:n.t(`text-muted-foreground relative h-9 text-sm transition-all transition-colors`,a===`default`?`w-full justify-start pr-12`:n.t(`w-auto justify-between gap-2 px-2`,s&&`md:w-64 md:px-3`),e),ref:l,...c,children:[(0,o.jsxs)(`span`,{className:`inline-flex flex-1 items-center gap-2 overflow-hidden`,children:[(0,o.jsx)(t.Ir,{className:`h-4 w-4 shrink-0`}),(0,o.jsx)(`span`,{className:n.t(`truncate`,a===`compact`&&(s?`hidden md:inline`:`hidden`)),children:u})]}),(0,o.jsxs)(`kbd`,{className:n.t(`bg-muted pointer-events-none h-6 shrink-0 items-center gap-1 rounded border px-1.5 font-mono text-[10px] font-medium opacity-100 select-none`,a===`default`?`absolute top-1.5 right-1.5 hidden sm:flex`:`flex`),children:[(0,o.jsx)(`span`,{className:`text-xs`,children:`⌘`}),`K`]})]})});c.displayName=`SearchTrigger`,exports.Search=s,exports.SearchTrigger=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("./command.cjs"),i=require("./utils-BKlmn6yB.js");let a=require("react");a=e.r(a);var o=t.Ar();function s({children:e,open:t,onOpenChange:n,disableShortcut:i}){let[s,c]=a.useState(!1),l=t!==void 0,u=l?t:s,d=a.useCallback(e=>{let t;t=typeof e==`function`?e(u):e,l?n?.(t):c(t)},[l,u,n]);return a.useEffect(()=>{if(i)return;let e=e=>{e.key===`k`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),d(e=>!e))};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[d,i]),(0,o.jsx)(r.CommandDialog,{open:u,onOpenChange:d,children:e})}var c=a.forwardRef(({className:e,placeholder:r,variant:a=`default`,responsive:s=!0,...c},l)=>{let u=r||(a===`compact`?`Search...`:`Search docs...`);return(0,o.jsxs)(n.Button,{variant:`outline`,className:i.t(`text-muted-foreground relative h-9 text-sm transition-all transition-colors`,a==="default"?`w-full justify-start pr-12`:i.t(`w-auto justify-between gap-2 px-2`,s&&`md:w-64 md:px-3`),e),ref:l,...c,children:[(0,o.jsxs)(`span`,{className:`inline-flex flex-1 items-center gap-2 overflow-hidden`,children:[(0,o.jsx)(t.Ir,{className:`h-4 w-4 shrink-0`}),(0,o.jsx)(`span`,{className:i.t(`truncate`,a===`compact`&&(s?`hidden md:inline`:`hidden`)),children:u})]}),(0,o.jsxs)(`kbd`,{className:i.t(`bg-muted pointer-events-none h-6 shrink-0 items-center gap-1 rounded border px-1.5 font-mono text-[10px] font-medium opacity-100 select-none`,a==="default"?`absolute top-1.5 right-1.5 hidden sm:flex`:`flex`),children:[(0,o.jsx)(`span`,{className:`text-xs`,children:`⌘`}),`K`]})]})});c.displayName=`SearchTrigger`,exports.Search=s,exports.SearchTrigger=c;
2
2
  //# sourceMappingURL=search.cjs.map