@gv-tech/ui-web 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 (550) hide show
  1. package/dist/__contracts.d.ts +0 -1
  2. package/dist/__contracts.d.ts.map +1 -1
  3. package/dist/accordion-Bd0-CZQn.js +1 -0
  4. package/dist/accordion-Cf6DNbLH.mjs +244 -0
  5. package/dist/accordion.cjs +1 -1
  6. package/dist/accordion.d.ts +1 -1
  7. package/dist/accordion.d.ts.map +1 -1
  8. package/dist/accordion.mjs +1 -2
  9. package/dist/{alert-dialog-BkUyJb_F.mjs → alert-dialog-BxFH0Lwn.mjs} +73 -75
  10. package/dist/alert-dialog-C6vNmGBL.js +1 -0
  11. package/dist/alert-dialog.cjs +1 -1
  12. package/dist/alert-dialog.d.ts +1 -1
  13. package/dist/alert-dialog.d.ts.map +1 -1
  14. package/dist/alert-dialog.mjs +1 -2
  15. package/dist/alert.cjs +1 -1
  16. package/dist/alert.d.ts +1 -1
  17. package/dist/alert.d.ts.map +1 -1
  18. package/dist/alert.mjs +4 -5
  19. package/dist/{aspect-ratio-C7oBX-p_.mjs → aspect-ratio-CdQevcDV.mjs} +4 -6
  20. package/dist/aspect-ratio-Z4Nkc56X.js +1 -0
  21. package/dist/aspect-ratio.cjs +1 -1
  22. package/dist/aspect-ratio.d.ts +2 -2
  23. package/dist/aspect-ratio.d.ts.map +1 -1
  24. package/dist/aspect-ratio.mjs +1 -2
  25. package/dist/attachment.cjs +1 -1
  26. package/dist/attachment.d.ts +2 -2
  27. package/dist/attachment.d.ts.map +1 -1
  28. package/dist/attachment.mjs +5 -6
  29. package/dist/avatar-B5PWwGhY.mjs +136 -0
  30. package/dist/avatar-CFhYRM52.js +1 -0
  31. package/dist/avatar.cjs +1 -1
  32. package/dist/avatar.d.ts +1 -1
  33. package/dist/avatar.d.ts.map +1 -1
  34. package/dist/avatar.mjs +1 -2
  35. package/dist/badge.cjs +1 -1
  36. package/dist/badge.d.ts +1 -1
  37. package/dist/badge.d.ts.map +1 -1
  38. package/dist/badge.mjs +6 -7
  39. package/dist/breadcrumb.cjs +1 -1
  40. package/dist/breadcrumb.d.ts.map +1 -1
  41. package/dist/breadcrumb.mjs +3 -6
  42. package/dist/bubble.cjs +1 -1
  43. package/dist/bubble.d.ts +1 -1
  44. package/dist/bubble.d.ts.map +1 -1
  45. package/dist/bubble.mjs +6 -7
  46. package/dist/button-group.cjs +1 -1
  47. package/dist/button-group.d.ts +4 -4
  48. package/dist/button-group.d.ts.map +1 -1
  49. package/dist/button-group.mjs +5 -7
  50. package/dist/button.cjs +1 -1
  51. package/dist/button.d.ts +1 -1
  52. package/dist/button.d.ts.map +1 -1
  53. package/dist/button.mjs +5 -6
  54. package/dist/calendar-D5qgt2o2.js +1 -0
  55. package/dist/{calendar-CkHWa9Uu.mjs → calendar-DIqXNjOR.mjs} +732 -879
  56. package/dist/calendar.cjs +1 -1
  57. package/dist/calendar.d.ts +1 -1
  58. package/dist/calendar.d.ts.map +1 -1
  59. package/dist/calendar.mjs +1 -2
  60. package/dist/card.cjs +1 -1
  61. package/dist/card.d.ts.map +1 -1
  62. package/dist/card.mjs +2 -3
  63. package/dist/carousel-D-xEqRCX.js +1 -0
  64. package/dist/{carousel-ynaeMNIV.mjs → carousel-DPjWmM_A.mjs} +15 -19
  65. package/dist/carousel.cjs +1 -1
  66. package/dist/carousel.d.ts +3 -3
  67. package/dist/carousel.d.ts.map +1 -1
  68. package/dist/carousel.mjs +1 -2
  69. package/dist/chart.cjs +2 -2
  70. package/dist/chart.mjs +14 -15
  71. package/dist/{checkbox-BLvAEmRC.mjs → checkbox-DEPm1BBc.mjs} +70 -68
  72. package/dist/checkbox-DI9Hn_e_.js +1 -0
  73. package/dist/checkbox.cjs +1 -1
  74. package/dist/checkbox.d.ts +1 -1
  75. package/dist/checkbox.d.ts.map +1 -1
  76. package/dist/checkbox.mjs +1 -2
  77. package/dist/chunk-HBS6WEDP-D2-yWzIN.js +1 -0
  78. package/dist/{chunk-HBS6WEDP-CzyhzCaP.mjs → chunk-HBS6WEDP-DD8ZmxRM.mjs} +3 -4
  79. package/dist/collapsible.cjs +1 -1
  80. package/dist/collapsible.d.ts +4 -4
  81. package/dist/collapsible.d.ts.map +1 -1
  82. package/dist/collapsible.mjs +8 -9
  83. package/dist/combobox-C4y8AbZX.mjs +5644 -0
  84. package/dist/combobox-boXp-mix.js +3 -0
  85. package/dist/combobox.cjs +1 -1
  86. package/dist/combobox.d.ts.map +1 -1
  87. package/dist/combobox.mjs +1 -2
  88. package/dist/command-BnW6UIVk.js +1 -0
  89. package/dist/{command-DY6u8V0D.mjs → command-Cbsp7PBx.mjs} +121 -124
  90. package/dist/command.cjs +1 -1
  91. package/dist/command.d.ts +1 -1
  92. package/dist/command.d.ts.map +1 -1
  93. package/dist/command.mjs +1 -2
  94. package/dist/context-menu-CwsdFpx1.js +1 -0
  95. package/dist/{context-menu-tL6CY6a0.mjs → context-menu-FNgV55ZV.mjs} +137 -140
  96. package/dist/context-menu.cjs +1 -1
  97. package/dist/context-menu.d.ts +1 -1
  98. package/dist/context-menu.d.ts.map +1 -1
  99. package/dist/context-menu.mjs +1 -2
  100. package/dist/dialog.cjs +1 -1
  101. package/dist/dialog.d.ts +1 -1
  102. package/dist/dialog.d.ts.map +1 -1
  103. package/dist/dialog.mjs +3 -4
  104. package/dist/direction.cjs +1 -1
  105. package/dist/direction.d.ts +1 -1
  106. package/dist/direction.d.ts.map +1 -1
  107. package/dist/direction.mjs +2 -3
  108. package/dist/dist-7YyzJonC.mjs +39 -0
  109. package/dist/dist-AlmToDtO.mjs +17 -0
  110. package/dist/{dist-DyMv0xk8.mjs → dist-B76UOZbx.mjs} +1 -2
  111. package/dist/{dist-BQhMregZ.mjs → dist-B7Ph9-T6.mjs} +2 -3
  112. package/dist/dist-B7jnFMko.js +1 -0
  113. package/dist/{dist-CS572Be42.mjs → dist-BOiFyvyS.mjs} +1 -2
  114. package/dist/dist-BQkDLAY7.js +1 -0
  115. package/dist/dist-Bal96K8t.js +1 -0
  116. package/dist/dist-Blgp9lfa.js +1 -0
  117. package/dist/{dist-Dg9ASyqI.mjs → dist-BnlI08Je.mjs} +4 -4
  118. package/dist/{dist-5r7hQmO0.mjs → dist-Bu-uFV1C.mjs} +60 -56
  119. package/dist/dist-C2BHd5i1.mjs +460 -0
  120. package/dist/{dist-8fYwoWd4.mjs → dist-C516Vwxy.mjs} +23 -18
  121. package/dist/dist-CBlqVBTk.js +1 -0
  122. package/dist/dist-CDcZ8WMF.js +1 -0
  123. package/dist/dist-CDksSmTD.mjs +189 -0
  124. package/dist/dist-CF-qVmmV.js +1 -0
  125. package/dist/dist-CIgGRTmJ.js +1 -0
  126. package/dist/dist-CJqVmdrU.js +1 -0
  127. package/dist/{dist-DMwCTE2i.mjs → dist-COqM3IM6.mjs} +3 -4
  128. package/dist/{dist-CYrqAnIr.mjs → dist-CbWpCWog.mjs} +13 -15
  129. package/dist/{dist-rx5WaFf5.mjs → dist-CcGLWbPa.mjs} +3 -4
  130. package/dist/dist-Cn4F8XlY.mjs +220 -0
  131. package/dist/dist-CoTs6T03.js +1 -0
  132. package/dist/dist-Co_xSt6d.js +1 -0
  133. package/dist/{dist-CBsYNwXz.mjs → dist-Cu0GG-3j.mjs} +2 -3
  134. package/dist/{dist-BUXpRW9O.mjs → dist-DKI-XYwI.mjs} +3 -5
  135. package/dist/dist-DQeXXRYL.mjs +201 -0
  136. package/dist/dist-DW2ltK5-.js +1 -0
  137. package/dist/dist-DWcKY_sJ.js +1 -0
  138. package/dist/dist-DdAeWIwf.js +1 -0
  139. package/dist/dist-DhubV_gU.mjs +4 -0
  140. package/dist/dist-DmY7elIQ.js +1 -0
  141. package/dist/{dist-Dm3IQk5b.mjs → dist-DoWtzxYc.mjs} +234 -235
  142. package/dist/dist-DuQlxGyN.js +1 -0
  143. package/dist/dist-KFF7QKuL.js +1 -0
  144. package/dist/dist-RXrZgzkO.js +1 -0
  145. package/dist/dist-R_G5UQRm.js +1 -0
  146. package/dist/dist-dwRwxUPt.mjs +22 -0
  147. package/dist/dist-fzmUl3YX.mjs +553 -0
  148. package/dist/{dist-ByW6RHeZ.mjs → dist-hBsne-A2.mjs} +24 -26
  149. package/dist/{dist-BIXhHahX.mjs → dist-ljiGYyay.mjs} +4 -5
  150. package/dist/dist-pqMcQ1Nk.js +1 -0
  151. package/dist/dist-zmnQp5Xf.js +1 -0
  152. package/dist/drawer.cjs +1 -1
  153. package/dist/drawer.d.ts +1 -1
  154. package/dist/drawer.d.ts.map +1 -1
  155. package/dist/drawer.mjs +2 -3
  156. package/dist/dropdown-menu-ChuqZeix.js +1 -0
  157. package/dist/{dropdown-menu-BWqWoYis.mjs → dropdown-menu-DU7KNoXP.mjs} +131 -133
  158. package/dist/dropdown-menu.cjs +1 -1
  159. package/dist/dropdown-menu.d.ts +1 -1
  160. package/dist/dropdown-menu.d.ts.map +1 -1
  161. package/dist/dropdown-menu.mjs +1 -2
  162. package/dist/empty.cjs +1 -1
  163. package/dist/empty.d.ts +7 -7
  164. package/dist/empty.d.ts.map +1 -1
  165. package/dist/empty.mjs +3 -4
  166. package/dist/es2015-BooeZGhO.mjs +554 -0
  167. package/dist/es2015-Dggv0vx3.js +41 -0
  168. package/dist/field.cjs +1 -1
  169. package/dist/field.d.ts +12 -12
  170. package/dist/field.d.ts.map +1 -1
  171. package/dist/field.mjs +6 -8
  172. package/dist/{floating-ui.react-dom-CyupHsR6.mjs → floating-ui.react-dom-2hihjuTL.mjs} +12 -17
  173. package/dist/floating-ui.react-dom-BtFIezY4.js +1 -0
  174. package/dist/form.cjs +1 -1
  175. package/dist/form.d.ts +3 -3
  176. package/dist/form.d.ts.map +1 -1
  177. package/dist/form.mjs +19 -20
  178. package/dist/hooks/use-theme.d.ts +52 -52
  179. package/dist/hover-card-BeqCs_2R.js +1 -0
  180. package/dist/hover-card-w8PmCyw2.mjs +176 -0
  181. package/dist/hover-card.cjs +1 -1
  182. package/dist/hover-card.d.ts +1 -1
  183. package/dist/hover-card.d.ts.map +1 -1
  184. package/dist/hover-card.mjs +1 -2
  185. package/dist/index.cjs +1 -1
  186. package/dist/index.mjs +66 -66
  187. package/dist/input-group.cjs +1 -1
  188. package/dist/input-group.d.ts +3 -3
  189. package/dist/input-group.d.ts.map +1 -1
  190. package/dist/input-group.mjs +5 -11
  191. package/dist/{input-otp-m_BTudNY.mjs → input-otp-Bn_Uy1mR.mjs} +7 -18
  192. package/dist/input-otp-CTRB_0Xp.js +20 -0
  193. package/dist/input-otp.cjs +1 -1
  194. package/dist/input-otp.d.ts +1 -1
  195. package/dist/input-otp.d.ts.map +1 -1
  196. package/dist/input-otp.mjs +1 -2
  197. package/dist/input.cjs +1 -1
  198. package/dist/input.d.ts.map +1 -1
  199. package/dist/input.mjs +2 -3
  200. package/dist/item.cjs +1 -1
  201. package/dist/item.d.ts +2 -2
  202. package/dist/item.d.ts.map +1 -1
  203. package/dist/item.mjs +7 -9
  204. package/dist/kbd.cjs +1 -1
  205. package/dist/kbd.d.ts +2 -2
  206. package/dist/kbd.d.ts.map +1 -1
  207. package/dist/kbd.mjs +2 -3
  208. package/dist/{label-DVA-YKpB.mjs → label-Da0kELfR.mjs} +4 -6
  209. package/dist/label-JMa1tFfC.js +1 -0
  210. package/dist/label.cjs +1 -1
  211. package/dist/label.d.ts +1 -1
  212. package/dist/label.d.ts.map +1 -1
  213. package/dist/label.mjs +1 -2
  214. package/dist/marker.cjs +1 -1
  215. package/dist/marker.d.ts +1 -1
  216. package/dist/marker.d.ts.map +1 -1
  217. package/dist/marker.mjs +6 -7
  218. package/dist/menubar-B7sRxpE4.mjs +405 -0
  219. package/dist/menubar-Bd-QKMcw.js +1 -0
  220. package/dist/menubar.cjs +1 -1
  221. package/dist/menubar.d.ts +1 -1
  222. package/dist/menubar.d.ts.map +1 -1
  223. package/dist/menubar.mjs +1 -2
  224. package/dist/{message-scroller-FwdKclRM.mjs → message-scroller-B8AU0v3Y.mjs} +83 -102
  225. package/dist/message-scroller-BJb4Mh_I.js +1 -0
  226. package/dist/message-scroller.cjs +1 -1
  227. package/dist/message-scroller.d.ts +1 -1
  228. package/dist/message-scroller.d.ts.map +1 -1
  229. package/dist/message-scroller.mjs +1 -2
  230. package/dist/message.cjs +1 -1
  231. package/dist/message.d.ts.map +1 -1
  232. package/dist/message.mjs +2 -3
  233. package/dist/native-select.cjs +1 -1
  234. package/dist/native-select.d.ts.map +1 -1
  235. package/dist/native-select.mjs +2 -3
  236. package/dist/navigation-menu-B-RwfscB.mjs +638 -0
  237. package/dist/navigation-menu-kPwxYZCR.js +1 -0
  238. package/dist/navigation-menu.cjs +1 -1
  239. package/dist/navigation-menu.d.ts +1 -1
  240. package/dist/navigation-menu.d.ts.map +1 -1
  241. package/dist/navigation-menu.mjs +1 -2
  242. package/dist/pagination.cjs +1 -1
  243. package/dist/pagination.d.ts +2 -2
  244. package/dist/pagination.d.ts.map +1 -1
  245. package/dist/pagination.mjs +5 -5
  246. package/dist/popover-Cq5cTNtC.js +1 -0
  247. package/dist/popover-T6Ra737i.mjs +241 -0
  248. package/dist/popover.cjs +1 -1
  249. package/dist/popover.d.ts +1 -1
  250. package/dist/popover.d.ts.map +1 -1
  251. package/dist/popover.mjs +1 -2
  252. package/dist/{progress-ClcVCqjl.mjs → progress-e9YzxvRo.mjs} +15 -18
  253. package/dist/progress-iUSEI7J9.js +6 -0
  254. package/dist/progress.cjs +1 -1
  255. package/dist/progress.d.ts +1 -1
  256. package/dist/progress.d.ts.map +1 -1
  257. package/dist/progress.mjs +1 -2
  258. package/dist/{questionnaire-DKWcZeWT.mjs → questionnaire-BLCvUX1C.mjs} +153 -175
  259. package/dist/questionnaire-CcymIPae.js +1 -0
  260. package/dist/questionnaire.cjs +1 -1
  261. package/dist/questionnaire.d.ts +1 -1
  262. package/dist/questionnaire.d.ts.map +1 -1
  263. package/dist/questionnaire.mjs +1 -2
  264. package/dist/{radio-group-5VwmCXRK.mjs → radio-group-BKpiDcIb.mjs} +76 -77
  265. package/dist/radio-group-DPEzCmxe.js +1 -0
  266. package/dist/radio-group.cjs +1 -1
  267. package/dist/radio-group.mjs +1 -2
  268. package/dist/resizable-ByF0NmN9.mjs +2153 -0
  269. package/dist/resizable-oL3v42zT.js +1 -0
  270. package/dist/resizable.cjs +1 -1
  271. package/dist/resizable.d.ts +3 -3
  272. package/dist/resizable.mjs +1 -2
  273. package/dist/{chunk-BmowowmI.mjs → rolldown-runtime-D7yIeQp2.mjs} +2 -3
  274. package/dist/rolldown-runtime-DbbDpzbe.js +1 -0
  275. package/dist/scroll-area-BzNeOQ6C.mjs +568 -0
  276. package/dist/scroll-area-s4_ZJK59.js +1 -0
  277. package/dist/scroll-area.cjs +1 -1
  278. package/dist/scroll-area.d.ts +1 -1
  279. package/dist/scroll-area.d.ts.map +1 -1
  280. package/dist/scroll-area.mjs +1 -2
  281. package/dist/scroll-to-top.cjs +1 -1
  282. package/dist/scroll-to-top.d.ts.map +1 -1
  283. package/dist/scroll-to-top.mjs +13 -16
  284. package/dist/search.cjs +1 -1
  285. package/dist/search.d.ts.map +1 -1
  286. package/dist/search.mjs +12 -13
  287. package/dist/select-B_nRxX2Y.mjs +831 -0
  288. package/dist/select-j5_dph9S.js +1 -0
  289. package/dist/select.cjs +1 -1
  290. package/dist/select.d.ts +1 -1
  291. package/dist/select.d.ts.map +1 -1
  292. package/dist/select.mjs +1 -2
  293. package/dist/separator-Bn-3XUSJ.js +1 -0
  294. package/dist/separator-CCcMNS78.mjs +38 -0
  295. package/dist/separator.cjs +1 -1
  296. package/dist/separator.d.ts +1 -1
  297. package/dist/separator.d.ts.map +1 -1
  298. package/dist/separator.mjs +1 -2
  299. package/dist/sheet.cjs +1 -1
  300. package/dist/sheet.d.ts +1 -1
  301. package/dist/sheet.d.ts.map +1 -1
  302. package/dist/sheet.mjs +3 -4
  303. package/dist/{sidebar-B5q6nH2G.mjs → sidebar-C2ax_A0G.mjs} +50 -52
  304. package/dist/sidebar-Cnem2n5A.js +1 -0
  305. package/dist/sidebar.cjs +1 -1
  306. package/dist/sidebar.d.ts +1 -1
  307. package/dist/sidebar.d.ts.map +1 -1
  308. package/dist/sidebar.mjs +1 -2
  309. package/dist/skeleton.cjs +1 -1
  310. package/dist/skeleton.d.ts +1 -1
  311. package/dist/skeleton.d.ts.map +1 -1
  312. package/dist/skeleton.mjs +2 -3
  313. package/dist/slider-B2PUTc7W.mjs +484 -0
  314. package/dist/slider-wZuXwuib.js +1 -0
  315. package/dist/slider.cjs +1 -1
  316. package/dist/slider.d.ts +1 -1
  317. package/dist/slider.d.ts.map +1 -1
  318. package/dist/slider.mjs +1 -2
  319. package/dist/sonner.d.ts +1 -1
  320. package/dist/sonner.mjs +1 -2
  321. package/dist/spinner.cjs +1 -1
  322. package/dist/spinner.d.ts +2 -1
  323. package/dist/spinner.d.ts.map +1 -1
  324. package/dist/spinner.mjs +10 -7
  325. package/dist/support-fab.cjs +1 -1
  326. package/dist/support-fab.d.ts.map +1 -1
  327. package/dist/support-fab.mjs +21 -22
  328. package/dist/switch-CD675xU7.js +1 -0
  329. package/dist/{switch-DagjjAQu.mjs → switch-ikzIzrme.mjs} +66 -64
  330. package/dist/switch.cjs +1 -1
  331. package/dist/switch.d.ts +1 -1
  332. package/dist/switch.d.ts.map +1 -1
  333. package/dist/switch.mjs +1 -2
  334. package/dist/table-of-contents.cjs +1 -1
  335. package/dist/table-of-contents.d.ts +5 -10
  336. package/dist/table-of-contents.d.ts.map +1 -1
  337. package/dist/table-of-contents.mjs +6 -6
  338. package/dist/table.cjs +1 -1
  339. package/dist/table.d.ts.map +1 -1
  340. package/dist/table.mjs +2 -3
  341. package/dist/{tabs-OQ6rj-3B.mjs → tabs-DCm5zOYB.mjs} +73 -73
  342. package/dist/tabs-fcahDQDp.js +1 -0
  343. package/dist/tabs.cjs +1 -1
  344. package/dist/tabs.d.ts +1 -1
  345. package/dist/tabs.d.ts.map +1 -1
  346. package/dist/tabs.mjs +1 -2
  347. package/dist/text.cjs +1 -1
  348. package/dist/text.d.ts +1 -1
  349. package/dist/text.d.ts.map +1 -1
  350. package/dist/text.mjs +17 -15
  351. package/dist/textarea.cjs +1 -1
  352. package/dist/textarea.d.ts.map +1 -1
  353. package/dist/textarea.mjs +2 -3
  354. package/dist/theme-provider.d.ts +1 -1
  355. package/dist/theme-provider.d.ts.map +1 -1
  356. package/dist/theme-provider.mjs +1 -2
  357. package/dist/theme-toggle-BGTJsIA-.js +1 -0
  358. package/dist/{theme-toggle-BCcH-QtH.mjs → theme-toggle-BSMwXb8o.mjs} +29 -22
  359. package/dist/theme-toggle.cjs +1 -1
  360. package/dist/theme-toggle.d.ts +1 -1
  361. package/dist/theme-toggle.d.ts.map +1 -1
  362. package/dist/theme-toggle.mjs +1 -2
  363. package/dist/toast-C31v9P1K.js +1 -0
  364. package/dist/toast-vU5ISM03.mjs +445 -0
  365. package/dist/toast.cjs +1 -1
  366. package/dist/toast.d.ts +1 -1
  367. package/dist/toast.d.ts.map +1 -1
  368. package/dist/toast.mjs +1 -2
  369. package/dist/toaster-CaJyOCyC.js +1 -0
  370. package/dist/{toaster-CKAJ9cht.mjs → toaster-D2BV6jez.mjs} +3 -5
  371. package/dist/toaster.cjs +1 -1
  372. package/dist/toaster.d.ts +1 -1
  373. package/dist/toaster.d.ts.map +1 -1
  374. package/dist/toaster.mjs +1 -2
  375. package/dist/toggle-CSZdCCwX.js +1 -0
  376. package/dist/{toggle-CuLxBIWH.mjs → toggle-Cv9YYwLI.mjs} +14 -15
  377. package/dist/toggle-group-RT8wyBwK.js +1 -0
  378. package/dist/toggle-group-qvjasXS-.mjs +166 -0
  379. package/dist/toggle-group.cjs +1 -1
  380. package/dist/toggle-group.d.ts +1 -1
  381. package/dist/toggle-group.d.ts.map +1 -1
  382. package/dist/toggle-group.mjs +1 -2
  383. package/dist/toggle.cjs +1 -1
  384. package/dist/toggle.d.ts +1 -1
  385. package/dist/toggle.d.ts.map +1 -1
  386. package/dist/toggle.mjs +1 -2
  387. package/dist/tooltip-7ERoN5mV.mjs +386 -0
  388. package/dist/tooltip-CC9_spXT.js +1 -0
  389. package/dist/tooltip.cjs +1 -1
  390. package/dist/tooltip.d.ts +1 -1
  391. package/dist/tooltip.d.ts.map +1 -1
  392. package/dist/tooltip.mjs +1 -2
  393. package/dist/{utils-A_oVsYw5.mjs → utils-DQKc9joa.mjs} +1 -2
  394. package/package.json +18 -18
  395. package/src/__contracts.ts +318 -321
  396. package/src/accordion.tsx +1 -2
  397. package/src/alert-dialog.tsx +1 -2
  398. package/src/alert.tsx +3 -4
  399. package/src/aspect-ratio.tsx +1 -2
  400. package/src/attachment.tsx +8 -9
  401. package/src/avatar.tsx +1 -2
  402. package/src/badge.tsx +2 -3
  403. package/src/breadcrumb.tsx +1 -4
  404. package/src/bubble.tsx +7 -8
  405. package/src/button-group.tsx +2 -3
  406. package/src/button.tsx +3 -4
  407. package/src/calendar.tsx +8 -9
  408. package/src/card.tsx +1 -2
  409. package/src/carousel.tsx +9 -10
  410. package/src/checkbox.tsx +1 -2
  411. package/src/collapsible.tsx +1 -2
  412. package/src/combobox.tsx +6 -7
  413. package/src/command.tsx +1 -2
  414. package/src/context-menu.tsx +1 -2
  415. package/src/dialog.tsx +1 -2
  416. package/src/direction.tsx +1 -2
  417. package/src/drawer.tsx +1 -2
  418. package/src/dropdown-menu.tsx +1 -2
  419. package/src/empty.tsx +2 -3
  420. package/src/field.tsx +9 -11
  421. package/src/form.tsx +8 -8
  422. package/src/hooks/use-mobile.ts +1 -1
  423. package/src/hover-card.tsx +1 -2
  424. package/src/input-group.tsx +12 -21
  425. package/src/input-otp.tsx +5 -6
  426. package/src/input.tsx +1 -2
  427. package/src/item.tsx +10 -12
  428. package/src/kbd.tsx +1 -2
  429. package/src/label.tsx +1 -2
  430. package/src/marker.tsx +4 -5
  431. package/src/menubar.tsx +1 -2
  432. package/src/message-scroller.tsx +9 -10
  433. package/src/message.tsx +2 -3
  434. package/src/native-select.tsx +3 -4
  435. package/src/navigation-menu.tsx +2 -3
  436. package/src/pagination.tsx +5 -4
  437. package/src/popover.tsx +1 -2
  438. package/src/progress.tsx +1 -2
  439. package/src/questionnaire.tsx +6 -7
  440. package/src/scroll-area.tsx +1 -2
  441. package/src/scroll-to-top.tsx +7 -2
  442. package/src/search.tsx +2 -1
  443. package/src/select.tsx +1 -2
  444. package/src/separator.tsx +1 -2
  445. package/src/setupTests.ts +9 -9
  446. package/src/sheet.tsx +1 -2
  447. package/src/sidebar.tsx +15 -16
  448. package/src/skeleton.tsx +1 -2
  449. package/src/slider.tsx +1 -2
  450. package/src/spinner.tsx +8 -7
  451. package/src/support-fab.tsx +5 -1
  452. package/src/switch.tsx +1 -2
  453. package/src/table-of-contents.tsx +8 -11
  454. package/src/table.tsx +1 -2
  455. package/src/tabs.tsx +2 -3
  456. package/src/text.tsx +4 -4
  457. package/src/textarea.tsx +1 -2
  458. package/src/theme-provider.tsx +1 -1
  459. package/src/theme-toggle.tsx +26 -23
  460. package/src/toast.tsx +3 -4
  461. package/src/toaster.tsx +2 -1
  462. package/src/toggle-group.tsx +1 -2
  463. package/src/toggle.tsx +3 -4
  464. package/src/tooltip.tsx +1 -2
  465. package/dist/accordion-BgbjpZAF.js +0 -1
  466. package/dist/accordion-Bqt-y-u7.mjs +0 -239
  467. package/dist/alert-dialog-DonbkCSD.js +0 -1
  468. package/dist/aspect-ratio-X3HWxQz0.js +0 -1
  469. package/dist/avatar-DTkhTxt7.mjs +0 -133
  470. package/dist/avatar-DhvZbCtI.js +0 -1
  471. package/dist/calendar-Bo8kovKR.js +0 -1
  472. package/dist/carousel-Cv5isLeg.js +0 -1
  473. package/dist/checkbox-Dt06B4YW.js +0 -1
  474. package/dist/chunk-HBS6WEDP-CQNaACTf.js +0 -1
  475. package/dist/chunk-mLOUI7ql.js +0 -1
  476. package/dist/combobox-BB_YzCTY.js +0 -4
  477. package/dist/combobox-YxjYGUoe.mjs +0 -5748
  478. package/dist/command-BqO-CfH6.js +0 -1
  479. package/dist/context-menu-Dad9hs94.js +0 -1
  480. package/dist/dist-6c2NeKfz.mjs +0 -536
  481. package/dist/dist-9-j0_8D1.mjs +0 -34
  482. package/dist/dist-BMl8xXCH.mjs +0 -188
  483. package/dist/dist-BOKg7rhq.js +0 -1
  484. package/dist/dist-BPhn-EOy.mjs +0 -15
  485. package/dist/dist-BTN2t9yv.js +0 -1
  486. package/dist/dist-Bivv8B6p.mjs +0 -16
  487. package/dist/dist-BoNQb2nd.js +0 -1
  488. package/dist/dist-C83rnWRv.js +0 -1
  489. package/dist/dist-C8Pm6LRc.js +0 -1
  490. package/dist/dist-CGgemr2V.js +0 -1
  491. package/dist/dist-C_iFkwIX.js +0 -1
  492. package/dist/dist-CdBAkUWT.js +0 -1
  493. package/dist/dist-Cn7g8jD0.js +0 -1
  494. package/dist/dist-D7-Fky36.js +0 -1
  495. package/dist/dist-D7UHN1DJ.mjs +0 -5
  496. package/dist/dist-DOoZ3vGL.mjs +0 -407
  497. package/dist/dist-DYUvPCPC.js +0 -1
  498. package/dist/dist-DcRkoHAk.js +0 -1
  499. package/dist/dist-DfvK7DpO.mjs +0 -213
  500. package/dist/dist-Dj9s8AIv.js +0 -1
  501. package/dist/dist-NEeQKKDZ.js +0 -1
  502. package/dist/dist-N_70prl1.js +0 -1
  503. package/dist/dist-YAADIsyo.js +0 -1
  504. package/dist/dist-dMp9dzmY.mjs +0 -20
  505. package/dist/dist-mHQuNOH-.js +0 -1
  506. package/dist/dist-oyFh63Uq.js +0 -1
  507. package/dist/dist-v-Y6tnMq.js +0 -1
  508. package/dist/dist-v9094Auw.js +0 -1
  509. package/dist/dist-yA6iVq_M.js +0 -1
  510. package/dist/dropdown-menu-BpZcobmP.js +0 -1
  511. package/dist/es2015-CYxXY2oV.mjs +0 -727
  512. package/dist/es2015-t2RPC0Rg.js +0 -41
  513. package/dist/floating-ui.react-dom-BwFRxNGc.js +0 -1
  514. package/dist/hover-card-7NjGqlP0.js +0 -1
  515. package/dist/hover-card-DuRUptxQ.mjs +0 -176
  516. package/dist/input-otp-D9MwUsPO.js +0 -20
  517. package/dist/label-CgKiKHKG.js +0 -1
  518. package/dist/menubar-CyKBLHme.mjs +0 -405
  519. package/dist/menubar-DlOMZeh1.js +0 -1
  520. package/dist/message-scroller-DqLu0YI6.js +0 -1
  521. package/dist/navigation-menu-BzE1J1rs.mjs +0 -608
  522. package/dist/navigation-menu-CrR01R8Z.js +0 -1
  523. package/dist/popover-CFF_HXSf.mjs +0 -222
  524. package/dist/popover-D9pVy08c.js +0 -1
  525. package/dist/progress-nfJMuKGj.js +0 -6
  526. package/dist/questionnaire-PWClWvST.js +0 -1
  527. package/dist/radio-group-DhXnB0fI.js +0 -1
  528. package/dist/resizable-ChIqXiu4.js +0 -1
  529. package/dist/resizable-CpovHnG-.mjs +0 -1573
  530. package/dist/scroll-area-CUqjuvqH.js +0 -1
  531. package/dist/scroll-area-DstdIGvS.mjs +0 -539
  532. package/dist/select-CnCTQeh7.js +0 -1
  533. package/dist/select-CnHZdna2.mjs +0 -792
  534. package/dist/separator-BXaVJadH.js +0 -1
  535. package/dist/separator-D1a8myFf.mjs +0 -38
  536. package/dist/sidebar-ns_2TNBM.js +0 -1
  537. package/dist/slider-PoIV6N-u.js +0 -1
  538. package/dist/slider-ZnyQjYsS.mjs +0 -460
  539. package/dist/switch-DLY8PkmL.js +0 -1
  540. package/dist/tabs-QBWdNfSK.js +0 -1
  541. package/dist/theme-toggle-Q3UHstP_.js +0 -1
  542. package/dist/toast-BOdziIGg.mjs +0 -424
  543. package/dist/toast-D1fjLwO1.js +0 -1
  544. package/dist/toaster-DS9iODKU.js +0 -1
  545. package/dist/toggle-DtpvPox_.js +0 -1
  546. package/dist/toggle-group-DfkvPKU_.mjs +0 -164
  547. package/dist/toggle-group-UHY0Tip1.js +0 -1
  548. package/dist/tooltip-BbCL1gtU.mjs +0 -384
  549. package/dist/tooltip-BvpyStn2.js +0 -1
  550. /package/dist/{dist-DJqkhIXb2.js → dist-DJqkhIXb.js} +0 -0
@@ -1,792 +0,0 @@
1
- import { t as e } from "./dist-Dm3IQk5b.mjs";
2
- import { a as t, n } from "./dist-8fYwoWd4.mjs";
3
- import { t as r } from "./dist-BQhMregZ.mjs";
4
- import { n as i } from "./dist-BIXhHahX.mjs";
5
- import { t as a } from "./dist-DMwCTE2i.mjs";
6
- import { t as o } from "./dist-DOoZ3vGL.mjs";
7
- import { t as s } from "./dist-DyMv0xk8.mjs";
8
- import { t as c } from "./dist-D7UHN1DJ.mjs";
9
- import { t as l } from "./dist-BUXpRW9O.mjs";
10
- import { t as u } from "./dist-Dg9ASyqI.mjs";
11
- import { t as d } from "./dist-CBsYNwXz.mjs";
12
- import { n as f } from "./dist-dMp9dzmY.mjs";
13
- import { t as p } from "./dist-BPhn-EOy.mjs";
14
- import { n as m } from "./dist-CYrqAnIr.mjs";
15
- import { i as h, n as g, r as _, t as v } from "./es2015-CYxXY2oV.mjs";
16
- import { t as y } from "./dist-rx5WaFf5.mjs";
17
- import { a as b, i as x, r as S, t as C } from "./dist-DfvK7DpO.mjs";
18
- import { t as w } from "./dist-Bivv8B6p.mjs";
19
- import { t as T } from "./dist-CS572Be42.mjs";
20
- import { CheckIcon as E, ChevronDownIcon as D, ChevronUpIcon as O } from "lucide-react";
21
- import * as k from "react";
22
- import * as A from "react-dom";
23
- import { Fragment as j, jsx as M, jsxs as N } from "react/jsx-runtime";
24
- //#region ../../node_modules/.bun/@radix-ui+react-select@2.3.7+2b23df507bdda662/node_modules/@radix-ui/react-select/dist/index.mjs
25
- var ee = Object.defineProperty, P = (e, t) => ee(e, "name", {
26
- value: t,
27
- configurable: !0
28
- }), te = [
29
- " ",
30
- "Enter",
31
- "ArrowUp",
32
- "ArrowDown"
33
- ], F = [" ", "Enter"], I = "Select", [L, R, z] = o(I), [B, V] = a(I, [z, b]), H = b(), [U, W] = B(I), [G, K] = B(I);
34
- function q(e) {
35
- let { __scopeSelect: t, children: n, open: r, defaultOpen: i, onOpenChange: a, value: o, defaultValue: s, onValueChange: c, dir: u, name: p, autoComplete: m, disabled: h, required: g, form: _, internal_do_not_use_render: v } = e, y = H(t), [b, S] = k.useState(null), [C, w] = k.useState(null), [T, E] = k.useState(!1), D = f(u), [O, A] = l({
36
- prop: r,
37
- defaultProp: i ?? !1,
38
- onChange: a,
39
- caller: I
40
- }), [j, N] = l({
41
- prop: o,
42
- defaultProp: s,
43
- onChange: c,
44
- caller: I
45
- }), ee = k.useRef(null), te = k.useRef(j);
46
- k.useEffect(() => {
47
- let e = _ ? b?.ownerDocument.getElementById(_) : b?.form;
48
- if (e instanceof HTMLFormElement) {
49
- let t = /* @__PURE__ */ P(() => N(te.current), "reset");
50
- return e.addEventListener("reset", t), () => e.removeEventListener("reset", t);
51
- }
52
- }, [
53
- _,
54
- b,
55
- N
56
- ]);
57
- let F = b ? !!_ || !!b.closest("form") : !0, [R, z] = k.useState(/* @__PURE__ */ new Set()), B = d(), V = Array.from(R).map((e) => e.props.value).join(";"), W = k.useCallback((e) => {
58
- z((t) => new Set(t).add(e));
59
- }, []), K = k.useCallback((e) => {
60
- z((t) => {
61
- let n = new Set(t);
62
- return n.delete(e), n;
63
- });
64
- }, []), q = {
65
- required: g,
66
- trigger: b,
67
- onTriggerChange: S,
68
- valueNode: C,
69
- onValueNodeChange: w,
70
- valueNodeHasChildren: T,
71
- onValueNodeHasChildrenChange: E,
72
- contentId: B,
73
- value: j,
74
- onValueChange: N,
75
- open: O,
76
- onOpenChange: A,
77
- dir: D,
78
- triggerPointerDownPosRef: ee,
79
- disabled: h,
80
- name: p,
81
- autoComplete: m,
82
- form: _,
83
- nativeOptions: R,
84
- nativeSelectKey: V,
85
- isFormControl: F
86
- };
87
- return /* @__PURE__ */ M(x, {
88
- ...y,
89
- children: /* @__PURE__ */ M(U, {
90
- scope: t,
91
- ...q,
92
- children: /* @__PURE__ */ M(L.Provider, {
93
- scope: t,
94
- children: /* @__PURE__ */ M(G, {
95
- scope: t,
96
- onNativeOptionAdd: W,
97
- onNativeOptionRemove: K,
98
- children: Ve(v) ? v(q) : n
99
- })
100
- })
101
- })
102
- });
103
- }
104
- P(q, "SelectProvider");
105
- var ne = /* @__PURE__ */ P((e) => {
106
- let { __scopeSelect: t, children: n, ...r } = e;
107
- return /* @__PURE__ */ M(q, {
108
- __scopeSelect: t,
109
- ...r,
110
- internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ N(j, { children: [n, e ? /* @__PURE__ */ M(Be, { __scopeSelect: t }) : null] })
111
- });
112
- }, "Select"), re = "SelectTrigger", ie = /* @__PURE__ */ k.forwardRef(/* @__PURE__ */ P(function(e, n) {
113
- let { __scopeSelect: i, disabled: a = !1, ...o } = e, c = H(i), l = W(re, i), u = l.disabled || a, d = t(n, l.onTriggerChange), f = R(i), p = k.useRef("touch"), [m, h, g] = He((e) => {
114
- let t = f().filter((e) => !e.disabled), n = Ue(t, e, t.find((e) => e.value === l.value));
115
- n !== void 0 && l.onValueChange(n.value);
116
- }), _ = /* @__PURE__ */ P((e) => {
117
- u || (l.onOpenChange(!0), g()), e && (l.triggerPointerDownPosRef.current = {
118
- x: Math.round(e.pageX),
119
- y: Math.round(e.pageY)
120
- });
121
- }, "handleOpen");
122
- return /* @__PURE__ */ M(C, {
123
- asChild: !0,
124
- ...c,
125
- children: /* @__PURE__ */ M(r.button, {
126
- type: "button",
127
- role: "combobox",
128
- "aria-controls": l.open ? l.contentId : void 0,
129
- "aria-expanded": l.open,
130
- "aria-required": l.required,
131
- "aria-autocomplete": "none",
132
- dir: l.dir,
133
- "data-state": l.open ? "open" : "closed",
134
- disabled: u,
135
- "data-disabled": u ? "" : void 0,
136
- "data-placeholder": $(l.value) ? "" : void 0,
137
- ...o,
138
- ref: d,
139
- onClick: s(o.onClick, (e) => {
140
- e.currentTarget.focus(), p.current !== "mouse" && _(e);
141
- }),
142
- onPointerDown: s(o.onPointerDown, (e) => {
143
- p.current = e.pointerType;
144
- let t = e.target;
145
- t.hasPointerCapture(e.pointerId) && t.releasePointerCapture(e.pointerId), e.button === 0 && e.ctrlKey === !1 && e.pointerType === "mouse" && (_(e), e.preventDefault());
146
- }),
147
- onKeyDown: s(o.onKeyDown, (e) => {
148
- let t = m.current !== "";
149
- !(e.ctrlKey || e.altKey || e.metaKey) && e.key.length === 1 && h(e.key), !(t && e.key === " ") && te.includes(e.key) && (_(), e.preventDefault());
150
- })
151
- })
152
- });
153
- }, "SelectTrigger")), J = "SelectValue", ae = /* @__PURE__ */ k.forwardRef(/* @__PURE__ */ P(function(e, n) {
154
- let { __scopeSelect: i, className: a, style: o, children: s, placeholder: l = "", ...u } = e, d = W(J, i), { onValueNodeHasChildrenChange: f } = d, p = s !== void 0, m = t(n, d.onValueNodeChange);
155
- c(() => {
156
- f(p);
157
- }, [f, p]);
158
- let h = $(d.value);
159
- return /* @__PURE__ */ M(r.span, {
160
- ...u,
161
- asChild: h ? !1 : u.asChild,
162
- ref: m,
163
- style: { pointerEvents: "none" },
164
- children: /* @__PURE__ */ M(k.Fragment, { children: h ? l : s }, h ? "placeholder" : "value")
165
- });
166
- }, "SelectValue")), oe = /* @__PURE__ */ k.forwardRef(/* @__PURE__ */ P(function(e, t) {
167
- let { __scopeSelect: n, children: i, ...a } = e;
168
- return /* @__PURE__ */ M(r.span, {
169
- "aria-hidden": !0,
170
- ...a,
171
- ref: t,
172
- children: i || "▼"
173
- });
174
- }, "SelectIcon")), [se, ce] = B("SelectPortal", { forceMount: void 0 }), le = /* @__PURE__ */ P((e) => {
175
- let { __scopeSelect: t, forceMount: n, ...r } = e;
176
- return /* @__PURE__ */ M(se, {
177
- scope: e.__scopeSelect,
178
- forceMount: n,
179
- children: /* @__PURE__ */ M(y, {
180
- asChild: !0,
181
- ...r
182
- })
183
- });
184
- }, "SelectPortal"), Y = "SelectContent", ue = /* @__PURE__ */ k.forwardRef(/* @__PURE__ */ P(function(e, t) {
185
- let n = ce(Y, e.__scopeSelect), { forceMount: r = n.forceMount, ...i } = e, a = W(Y, e.__scopeSelect), [o, s] = k.useState();
186
- return c(() => {
187
- s(new DocumentFragment());
188
- }, []), /* @__PURE__ */ M(u, {
189
- present: r || a.open,
190
- children: ({ present: e }) => e ? /* @__PURE__ */ M(me, {
191
- ...i,
192
- ref: t
193
- }) : /* @__PURE__ */ M(de, {
194
- ...i,
195
- fragment: o
196
- })
197
- });
198
- }, "SelectContent")), de = /* @__PURE__ */ k.forwardRef(/* @__PURE__ */ P(function(e, t) {
199
- let { __scopeSelect: n, children: r, fragment: i } = e;
200
- return i ? A.createPortal(/* @__PURE__ */ M(fe, {
201
- scope: n,
202
- children: /* @__PURE__ */ M(L.Slot, {
203
- scope: n,
204
- children: /* @__PURE__ */ M("div", {
205
- ref: t,
206
- children: r
207
- })
208
- })
209
- }), i) : null;
210
- }, "SelectContentFragment")), X = 10, [fe, Z] = B(Y), pe = n("SelectContent.RemoveScroll"), me = /* @__PURE__ */ k.forwardRef(/* @__PURE__ */ P(function(e, n) {
211
- let { __scopeSelect: r } = e, { position: i = "item-aligned", onCloseAutoFocus: a, onEscapeKeyDown: o, onPointerDownOutside: c, side: l, sideOffset: u, align: d, alignOffset: f, arrowPadding: p, collisionBoundary: y, collisionPadding: b, sticky: x, hideWhenDetached: S, avoidCollisions: C, ...w } = e, T = W(Y, r), [E, D] = k.useState(null), [O, A] = k.useState(null), j = t(n, D), [N, ee] = k.useState(null), [te, F] = k.useState(null), I = R(r), [L, z] = k.useState(!1), B = k.useRef(!1);
212
- k.useEffect(() => {
213
- if (E) return v(E);
214
- }, [E]), _();
215
- let V = k.useCallback((e) => {
216
- let [t, ...n] = I().map((e) => e.ref.current), [r] = n.slice(-1), i = document.activeElement;
217
- for (let n of e) if (n === i || (n?.scrollIntoView({ block: "nearest" }), n === t && O && (O.scrollTop = 0), n === r && O && (O.scrollTop = O.scrollHeight), n?.focus(), document.activeElement !== i)) return;
218
- }, [I, O]), H = k.useCallback(() => V([N, E]), [
219
- V,
220
- N,
221
- E
222
- ]);
223
- k.useEffect(() => {
224
- L && H();
225
- }, [L, H]);
226
- let { onOpenChange: U, triggerPointerDownPosRef: G } = T;
227
- k.useEffect(() => {
228
- if (E) {
229
- let e = {
230
- x: 0,
231
- y: 0
232
- }, t = /* @__PURE__ */ P((t) => {
233
- e = {
234
- x: Math.abs(Math.round(t.pageX) - (G.current?.x ?? 0)),
235
- y: Math.abs(Math.round(t.pageY) - (G.current?.y ?? 0))
236
- };
237
- }, "handlePointerMove"), n = /* @__PURE__ */ P((n) => {
238
- e.x <= 10 && e.y <= 10 ? n.preventDefault() : n.composedPath().includes(E) || U(!1), document.removeEventListener("pointermove", t), G.current = null;
239
- }, "handlePointerUp");
240
- return G.current !== null && (document.addEventListener("pointermove", t), document.addEventListener("pointerup", n, {
241
- capture: !0,
242
- once: !0
243
- })), () => {
244
- document.removeEventListener("pointermove", t), document.removeEventListener("pointerup", n, { capture: !0 });
245
- };
246
- }
247
- }, [
248
- E,
249
- U,
250
- G
251
- ]), k.useEffect(() => {
252
- let e = /* @__PURE__ */ P(() => U(!1), "close");
253
- return window.addEventListener("blur", e), window.addEventListener("resize", e), () => {
254
- window.removeEventListener("blur", e), window.removeEventListener("resize", e);
255
- };
256
- }, [U]);
257
- let [K, q] = He((e) => {
258
- let t = I().filter((e) => !e.disabled), n = Ue(t, e, t.find((e) => e.ref.current === document.activeElement));
259
- n && setTimeout(() => n.ref.current?.focus());
260
- }), ne = k.useCallback((e, t, n) => {
261
- let r = !B.current && !n;
262
- (T.value !== void 0 && T.value === t || r) && (ee(e), r && (B.current = !0));
263
- }, [T.value]), re = k.useCallback(() => E?.focus(), [E]), ie = k.useCallback((e, t, n) => {
264
- let r = !B.current && !n;
265
- (T.value !== void 0 && T.value === t || r) && F(e);
266
- }, [T.value]), J = i === "popper" ? ge : he, ae = J === ge ? {
267
- side: l,
268
- sideOffset: u,
269
- align: d,
270
- alignOffset: f,
271
- arrowPadding: p,
272
- collisionBoundary: y,
273
- collisionPadding: b,
274
- sticky: x,
275
- hideWhenDetached: S,
276
- avoidCollisions: C
277
- } : {};
278
- return /* @__PURE__ */ M(fe, {
279
- scope: r,
280
- content: E,
281
- viewport: O,
282
- onViewportChange: A,
283
- itemRefCallback: ne,
284
- selectedItem: N,
285
- onItemLeave: re,
286
- itemTextRefCallback: ie,
287
- focusSelectedItem: H,
288
- selectedItemText: te,
289
- position: i,
290
- isPositioned: L,
291
- searchRef: K,
292
- children: /* @__PURE__ */ M(g, {
293
- as: pe,
294
- allowPinchZoom: !0,
295
- children: /* @__PURE__ */ M(h, {
296
- asChild: !0,
297
- trapped: T.open,
298
- onMountAutoFocus: (e) => {
299
- e.preventDefault();
300
- },
301
- onUnmountAutoFocus: s(a, (e) => {
302
- T.trigger?.focus({ preventScroll: !0 }), e.preventDefault();
303
- }),
304
- children: /* @__PURE__ */ M(m, {
305
- asChild: !0,
306
- disableOutsidePointerEvents: !0,
307
- onEscapeKeyDown: o,
308
- onPointerDownOutside: c,
309
- onFocusOutside: (e) => e.preventDefault(),
310
- onDismiss: () => T.onOpenChange(!1),
311
- children: /* @__PURE__ */ M(J, {
312
- role: "listbox",
313
- id: T.contentId,
314
- "data-state": T.open ? "open" : "closed",
315
- dir: T.dir,
316
- onContextMenu: (e) => e.preventDefault(),
317
- ...w,
318
- ...ae,
319
- onPlaced: () => z(!0),
320
- ref: j,
321
- style: {
322
- display: "flex",
323
- flexDirection: "column",
324
- outline: "none",
325
- ...w.style
326
- },
327
- onKeyDown: s(w.onKeyDown, (e) => {
328
- let t = e.ctrlKey || e.altKey || e.metaKey;
329
- if (e.key === "Tab" && e.preventDefault(), !t && e.key.length === 1 && q(e.key), [
330
- "ArrowUp",
331
- "ArrowDown",
332
- "Home",
333
- "End"
334
- ].includes(e.key)) {
335
- let t = I().filter((e) => !e.disabled).map((e) => e.ref.current);
336
- if (["ArrowUp", "End"].includes(e.key) && (t = t.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(e.key)) {
337
- let n = e.target, r = t.indexOf(n);
338
- t = t.slice(r + 1);
339
- }
340
- setTimeout(() => V(t)), e.preventDefault();
341
- }
342
- })
343
- })
344
- })
345
- })
346
- })
347
- });
348
- }, "SelectContentImpl")), he = /* @__PURE__ */ k.forwardRef(/* @__PURE__ */ P(function(e, n) {
349
- let { __scopeSelect: i, onPlaced: a, ...o } = e, s = W(Y, i), l = Z(Y, i), [u, d] = k.useState(null), [f, p] = k.useState(null), m = t(n, p), h = R(i), g = k.useRef(!1), _ = k.useRef(!0), { viewport: v, selectedItem: y, selectedItemText: b, focusSelectedItem: x } = l, S = k.useCallback(() => {
350
- if (s.trigger && s.valueNode && u && f && v && y && b) {
351
- let e = s.trigger.getBoundingClientRect(), t = f.getBoundingClientRect(), n = s.valueNode.getBoundingClientRect(), r = b.getBoundingClientRect();
352
- if (s.dir !== "rtl") {
353
- let i = r.left - t.left, a = n.left - i, o = e.left - a, s = e.width + o, c = Math.max(s, t.width), l = window.innerWidth - X, d = T(a, [X, Math.max(X, l - c)]);
354
- u.style.minWidth = s + "px", u.style.left = d + "px";
355
- } else {
356
- let i = t.right - r.right, a = window.innerWidth - n.right - i, o = window.innerWidth - e.right - a, s = e.width + o, c = Math.max(s, t.width), l = window.innerWidth - X, d = T(a, [X, Math.max(X, l - c)]);
357
- u.style.minWidth = s + "px", u.style.right = d + "px";
358
- }
359
- let i = h(), o = window.innerHeight - X * 2, c = v.scrollHeight, l = window.getComputedStyle(f), d = parseInt(l.borderTopWidth, 10), p = parseInt(l.paddingTop, 10), m = parseInt(l.borderBottomWidth, 10), _ = parseInt(l.paddingBottom, 10), x = d + p + c + _ + m, S = Math.min(y.offsetHeight * 5, x), C = window.getComputedStyle(v), w = parseInt(C.paddingTop, 10), E = parseInt(C.paddingBottom, 10), D = e.top + e.height / 2 - X, O = o - D, k = y.offsetHeight / 2, A = y.offsetTop + k, j = d + p + A, M = x - j;
360
- if (j <= D) {
361
- let e = i.length > 0 && y === i[i.length - 1].ref.current;
362
- u.style.bottom = "0px";
363
- let t = f.clientHeight - v.offsetTop - v.offsetHeight, n = j + Math.max(O, k + (e ? E : 0) + t + m);
364
- u.style.height = n + "px";
365
- } else {
366
- let e = i.length > 0 && y === i[0].ref.current;
367
- u.style.top = "0px";
368
- let t = Math.max(D, d + v.offsetTop + (e ? w : 0) + k) + M;
369
- u.style.height = t + "px", v.scrollTop = j - D + v.offsetTop;
370
- }
371
- u.style.margin = `${X}px 0`, u.style.minHeight = S + "px", u.style.maxHeight = o + "px", a?.(), requestAnimationFrame(() => g.current = !0);
372
- }
373
- }, [
374
- h,
375
- s.trigger,
376
- s.valueNode,
377
- u,
378
- f,
379
- v,
380
- y,
381
- b,
382
- s.dir,
383
- a
384
- ]);
385
- c(() => S(), [S]);
386
- let [C, w] = k.useState();
387
- return c(() => {
388
- f && w(window.getComputedStyle(f).zIndex);
389
- }, [f]), /* @__PURE__ */ M(_e, {
390
- scope: i,
391
- contentWrapper: u,
392
- shouldExpandOnScrollRef: g,
393
- onScrollButtonChange: k.useCallback((e) => {
394
- e && _.current === !0 && (S(), x?.(), _.current = !1);
395
- }, [S, x]),
396
- children: /* @__PURE__ */ M("div", {
397
- ref: d,
398
- style: {
399
- display: "flex",
400
- flexDirection: "column",
401
- position: "fixed",
402
- zIndex: C
403
- },
404
- children: /* @__PURE__ */ M(r.div, {
405
- ...o,
406
- ref: m,
407
- style: {
408
- boxSizing: "border-box",
409
- maxHeight: "100%",
410
- ...o.style
411
- }
412
- })
413
- })
414
- });
415
- }, "SelectItemAlignedPosition")), ge = /* @__PURE__ */ k.forwardRef(/* @__PURE__ */ P(function(e, t) {
416
- let { __scopeSelect: n, align: r = "start", collisionPadding: i = X, ...a } = e;
417
- return /* @__PURE__ */ M(S, {
418
- ...H(n),
419
- ...a,
420
- ref: t,
421
- align: r,
422
- collisionPadding: i,
423
- style: {
424
- boxSizing: "border-box",
425
- ...a.style,
426
- "--radix-select-content-transform-origin": "var(--radix-popper-transform-origin)",
427
- "--radix-select-content-available-width": "var(--radix-popper-available-width)",
428
- "--radix-select-content-available-height": "var(--radix-popper-available-height)",
429
- "--radix-select-trigger-width": "var(--radix-popper-anchor-width)",
430
- "--radix-select-trigger-height": "var(--radix-popper-anchor-height)"
431
- }
432
- });
433
- }, "SelectPopperPosition")), [_e, ve] = B(Y, {}), ye = "SelectViewport", be = /* @__PURE__ */ k.forwardRef(/* @__PURE__ */ P(function(e, n) {
434
- let { __scopeSelect: i, nonce: a, ...o } = e, c = Z(ye, i), l = ve(ye, i), u = t(n, c.onViewportChange), d = k.useRef(0);
435
- return /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M("style", {
436
- dangerouslySetInnerHTML: { __html: "[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}" },
437
- nonce: a
438
- }), /* @__PURE__ */ M(L.Slot, {
439
- scope: i,
440
- children: /* @__PURE__ */ M(r.div, {
441
- "data-radix-select-viewport": "",
442
- role: "presentation",
443
- ...o,
444
- ref: u,
445
- style: {
446
- position: "relative",
447
- flex: 1,
448
- overflow: "hidden auto",
449
- ...o.style
450
- },
451
- onScroll: s(o.onScroll, (e) => {
452
- let t = e.currentTarget, { contentWrapper: n, shouldExpandOnScrollRef: r } = l;
453
- if (r?.current && n) {
454
- let e = Math.abs(d.current - t.scrollTop);
455
- if (e > 0) {
456
- let r = window.innerHeight - X * 2, i = parseFloat(n.style.minHeight), a = parseFloat(n.style.height), o = Math.max(i, a);
457
- if (o < r) {
458
- let i = o + e, a = Math.min(r, i), s = i - a;
459
- n.style.height = a + "px", n.style.bottom === "0px" && (t.scrollTop = s > 0 ? s : 0, n.style.justifyContent = "flex-end");
460
- }
461
- }
462
- }
463
- d.current = t.scrollTop;
464
- })
465
- })
466
- })] });
467
- }, "SelectViewport")), [xe, Se] = B("SelectGroup"), Ce = /* @__PURE__ */ k.forwardRef(/* @__PURE__ */ P(function(e, t) {
468
- let { __scopeSelect: n, ...i } = e, a = d();
469
- return /* @__PURE__ */ M(xe, {
470
- scope: n,
471
- id: a,
472
- children: /* @__PURE__ */ M(r.div, {
473
- role: "group",
474
- "aria-labelledby": a,
475
- ...i,
476
- ref: t
477
- })
478
- });
479
- }, "SelectGroup")), we = "SelectLabel", Te = /* @__PURE__ */ k.forwardRef(/* @__PURE__ */ P(function(e, t) {
480
- let { __scopeSelect: n, ...i } = e, a = Se(we, n);
481
- return /* @__PURE__ */ M(r.div, {
482
- id: a.id,
483
- ...i,
484
- ref: t
485
- });
486
- }, "SelectLabel")), Ee = "SelectItem", [De, Oe] = B(Ee), ke = /* @__PURE__ */ k.forwardRef(/* @__PURE__ */ P(function(e, n) {
487
- let { __scopeSelect: i, value: a, disabled: o = !1, textValue: c, ...l } = e, u = W(Ee, i), f = Z(Ee, i), m = u.value === a, [h, g] = k.useState(c ?? ""), [_, v] = k.useState(!1), y = t(n, p((e) => f.itemRefCallback?.(e, a, o))), b = d(), x = k.useRef("touch"), S = /* @__PURE__ */ P(() => {
488
- o || (u.onValueChange(a), u.onOpenChange(!1));
489
- }, "handleSelect");
490
- return /* @__PURE__ */ M(De, {
491
- scope: i,
492
- value: a,
493
- disabled: o,
494
- textId: b,
495
- isSelected: m,
496
- onItemTextChange: k.useCallback((e) => {
497
- g((t) => t || (e?.textContent ?? "").trim());
498
- }, []),
499
- children: /* @__PURE__ */ M(L.ItemSlot, {
500
- scope: i,
501
- value: a,
502
- disabled: o,
503
- textValue: h,
504
- children: /* @__PURE__ */ M(r.div, {
505
- role: "option",
506
- "aria-labelledby": b,
507
- "data-highlighted": _ ? "" : void 0,
508
- "aria-selected": m && _,
509
- "data-state": m ? "checked" : "unchecked",
510
- "aria-disabled": o || void 0,
511
- "data-disabled": o ? "" : void 0,
512
- tabIndex: o ? void 0 : -1,
513
- ...l,
514
- ref: y,
515
- onFocus: s(l.onFocus, () => v(!0)),
516
- onBlur: s(l.onBlur, () => v(!1)),
517
- onClick: s(l.onClick, () => {
518
- x.current !== "mouse" && S();
519
- }),
520
- onPointerUp: s(l.onPointerUp, () => {
521
- x.current === "mouse" && S();
522
- }),
523
- onPointerDown: s(l.onPointerDown, (e) => {
524
- x.current = e.pointerType;
525
- }),
526
- onPointerMove: s(l.onPointerMove, (e) => {
527
- x.current = e.pointerType, o ? f.onItemLeave?.() : x.current === "mouse" && e.currentTarget.focus({ preventScroll: !0 });
528
- }),
529
- onPointerLeave: s(l.onPointerLeave, (e) => {
530
- e.currentTarget === document.activeElement && f.onItemLeave?.();
531
- }),
532
- onKeyDown: s(l.onKeyDown, (e) => {
533
- o || e.target !== e.currentTarget || f.searchRef?.current !== "" && e.key === " " || (F.includes(e.key) && S(), e.key === " " && e.preventDefault());
534
- })
535
- })
536
- })
537
- });
538
- }, "SelectItem")), Q = "SelectItemText", Ae = /* @__PURE__ */ k.forwardRef(/* @__PURE__ */ P(function(e, n) {
539
- let { __scopeSelect: i, className: a, style: o, ...s } = e, l = W(Q, i), u = Z(Q, i), d = Oe(Q, i), f = K(Q, i), [m, h] = k.useState(null), g = p((e) => u.itemTextRefCallback?.(e, d.value, d.disabled)), _ = t(n, h, d.onItemTextChange, g), v = m?.textContent, y = k.useMemo(() => /* @__PURE__ */ M("option", {
540
- value: d.value,
541
- disabled: d.disabled,
542
- children: v
543
- }, d.value), [
544
- d.disabled,
545
- d.value,
546
- v
547
- ]), { onNativeOptionAdd: b, onNativeOptionRemove: x } = f;
548
- return c(() => (b(y), () => x(y)), [
549
- b,
550
- x,
551
- y
552
- ]), /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ M(r.span, {
553
- id: d.textId,
554
- ...s,
555
- ref: _
556
- }), d.isSelected && l.valueNode && !l.valueNodeHasChildren && !$(l.value) ? A.createPortal(s.children, l.valueNode) : null] });
557
- }, "SelectItemText")), je = "SelectItemIndicator", Me = /* @__PURE__ */ k.forwardRef(/* @__PURE__ */ P(function(e, t) {
558
- let { __scopeSelect: n, ...i } = e;
559
- return Oe(je, n).isSelected ? /* @__PURE__ */ M(r.span, {
560
- "aria-hidden": !0,
561
- ...i,
562
- ref: t
563
- }) : null;
564
- }, "SelectItemIndicator")), Ne = "SelectScrollUpButton", Pe = /* @__PURE__ */ k.forwardRef(/* @__PURE__ */ P(function(e, n) {
565
- let r = Z(Ne, e.__scopeSelect), i = ve(Ne, e.__scopeSelect), [a, o] = k.useState(!1), s = t(n, i.onScrollButtonChange);
566
- return c(() => {
567
- if (r.viewport && r.isPositioned) {
568
- let e = function() {
569
- o(t.scrollTop > 0);
570
- };
571
- P(e, "handleScroll");
572
- let t = r.viewport;
573
- return e(), t.addEventListener("scroll", e), () => t.removeEventListener("scroll", e);
574
- }
575
- }, [r.viewport, r.isPositioned]), a ? /* @__PURE__ */ M(Le, {
576
- ...e,
577
- ref: s,
578
- onAutoScroll: () => {
579
- let { viewport: e, selectedItem: t } = r;
580
- e && t && (e.scrollTop -= t.offsetHeight);
581
- }
582
- }) : null;
583
- }, "SelectScrollUpButton")), Fe = "SelectScrollDownButton", Ie = /* @__PURE__ */ k.forwardRef(/* @__PURE__ */ P(function(e, n) {
584
- let r = Z(Fe, e.__scopeSelect), i = ve(Fe, e.__scopeSelect), [a, o] = k.useState(!1), s = t(n, i.onScrollButtonChange);
585
- return c(() => {
586
- if (r.viewport && r.isPositioned) {
587
- let e = function() {
588
- let e = t.scrollHeight - t.clientHeight;
589
- o(Math.ceil(t.scrollTop) < e);
590
- };
591
- P(e, "handleScroll");
592
- let t = r.viewport;
593
- return e(), t.addEventListener("scroll", e), () => t.removeEventListener("scroll", e);
594
- }
595
- }, [r.viewport, r.isPositioned]), a ? /* @__PURE__ */ M(Le, {
596
- ...e,
597
- ref: s,
598
- onAutoScroll: () => {
599
- let { viewport: e, selectedItem: t } = r;
600
- e && t && (e.scrollTop += t.offsetHeight);
601
- }
602
- }) : null;
603
- }, "SelectScrollDownButton")), Le = /* @__PURE__ */ k.forwardRef(/* @__PURE__ */ P(function(e, t) {
604
- let { __scopeSelect: n, onAutoScroll: i, ...a } = e, o = Z("SelectScrollButton", n), l = k.useRef(null), u = R(n), d = k.useCallback(() => {
605
- l.current !== null && (window.clearInterval(l.current), l.current = null);
606
- }, []);
607
- return k.useEffect(() => () => d(), [d]), c(() => {
608
- u().find((e) => e.ref.current === document.activeElement)?.ref.current?.scrollIntoView({ block: "nearest" });
609
- }, [u]), /* @__PURE__ */ M(r.div, {
610
- "aria-hidden": !0,
611
- ...a,
612
- ref: t,
613
- style: {
614
- flexShrink: 0,
615
- ...a.style
616
- },
617
- onPointerDown: s(a.onPointerDown, () => {
618
- l.current === null && (l.current = window.setInterval(i, 50));
619
- }),
620
- onPointerMove: s(a.onPointerMove, () => {
621
- o.onItemLeave?.(), l.current === null && (l.current = window.setInterval(i, 50));
622
- }),
623
- onPointerLeave: s(a.onPointerLeave, () => {
624
- d();
625
- })
626
- });
627
- }, "SelectScrollButtonImpl")), Re = /* @__PURE__ */ k.forwardRef(/* @__PURE__ */ P(function(e, t) {
628
- let { __scopeSelect: n, ...i } = e;
629
- return /* @__PURE__ */ M(r.div, {
630
- "aria-hidden": !0,
631
- ...i,
632
- ref: t
633
- });
634
- }, "SelectSeparator")), ze = "SelectBubbleInput", Be = /* @__PURE__ */ k.forwardRef(/* @__PURE__ */ P(function({ __scopeSelect: e, ...n }, a) {
635
- let o = W(ze, e), { value: s, onValueChange: c, required: l, disabled: u, name: d, autoComplete: f, form: p } = o, { nativeOptions: m, nativeSelectKey: h } = o, g = k.useRef(null), _ = t(a, g), v = s ?? "", y = w(v), b = Array.from(m).some((e) => (e.props.value ?? "") === "");
636
- return k.useEffect(() => {
637
- let e = g.current;
638
- if (!e) return;
639
- let t = window.HTMLSelectElement.prototype, n = Object.getOwnPropertyDescriptor(t, "value").set;
640
- if (y !== v && n) {
641
- let t = new Event("change", { bubbles: !0 });
642
- n.call(e, v), e.dispatchEvent(t);
643
- }
644
- }, [y, v]), /* @__PURE__ */ N(r.select, {
645
- "aria-hidden": !0,
646
- required: l,
647
- tabIndex: -1,
648
- name: d,
649
- autoComplete: f,
650
- disabled: u,
651
- form: p,
652
- onChange: (e) => c(e.target.value),
653
- ...n,
654
- style: {
655
- ...i,
656
- ...n.style
657
- },
658
- ref: _,
659
- defaultValue: v,
660
- children: [$(s) && !b ? /* @__PURE__ */ M("option", { value: "" }) : null, Array.from(m)]
661
- }, h);
662
- }, "SelectBubbleInput"));
663
- function Ve(e) {
664
- return typeof e == "function";
665
- }
666
- P(Ve, "isFunction");
667
- function $(e) {
668
- return e === "" || e === void 0;
669
- }
670
- P($, "shouldShowPlaceholder");
671
- function He(e) {
672
- let t = p(e), n = k.useRef(""), r = k.useRef(0), i = k.useCallback((e) => {
673
- let i = n.current + e;
674
- t(i), (/* @__PURE__ */ P((function e(t) {
675
- n.current = t, window.clearTimeout(r.current), t !== "" && (r.current = window.setTimeout(() => e(""), 1e3));
676
- }), "updateSearch"))(i);
677
- }, [t]), a = k.useCallback(() => {
678
- n.current = "", window.clearTimeout(r.current);
679
- }, []);
680
- return k.useEffect(() => () => window.clearTimeout(r.current), []), [
681
- n,
682
- i,
683
- a
684
- ];
685
- }
686
- P(He, "useTypeaheadSearch");
687
- function Ue(e, t, n) {
688
- let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a = We(e, Math.max(i, 0));
689
- r.length === 1 && (a = a.filter((e) => e !== n));
690
- let o = a.find((e) => e.textValue.toLowerCase().startsWith(r.toLowerCase()));
691
- return o === n ? void 0 : o;
692
- }
693
- P(Ue, "findNextItem");
694
- function We(e, t) {
695
- return e.map((n, r) => e[(t + r) % e.length]);
696
- }
697
- P(We, "wrapArray");
698
- //#endregion
699
- //#region src/select.tsx
700
- function Ge({ ...e }) {
701
- return /* @__PURE__ */ M(ne, {
702
- "data-slot": "select",
703
- ...e
704
- });
705
- }
706
- function Ke({ className: t, ...n }) {
707
- return /* @__PURE__ */ M(Ce, {
708
- "data-slot": "select-group",
709
- className: e("scroll-my-1 p-1", t),
710
- ...n
711
- });
712
- }
713
- function qe({ ...e }) {
714
- return /* @__PURE__ */ M(ae, {
715
- "data-slot": "select-value",
716
- ...e
717
- });
718
- }
719
- function Je({ className: t, size: n = "default", children: r, ...i }) {
720
- return /* @__PURE__ */ N(ie, {
721
- "data-slot": "select-trigger",
722
- "data-size": n,
723
- className: e("border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 flex w-fit items-center justify-between gap-1.5 rounded-lg border bg-transparent py-2 ps-2.5 pe-2 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3 data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
724
- ...i,
725
- children: [r, /* @__PURE__ */ M(oe, {
726
- asChild: !0,
727
- children: /* @__PURE__ */ M(D, { className: "text-muted-foreground pointer-events-none size-4" })
728
- })]
729
- });
730
- }
731
- function Ye({ className: t, children: n, position: r = "item-aligned", align: i = "center", ...a }) {
732
- return /* @__PURE__ */ M(le, { children: /* @__PURE__ */ N(ue, {
733
- "data-slot": "select-content",
734
- "data-align-trigger": r === "item-aligned",
735
- className: e("bg-popover text-popover-foreground ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 relative z-50 max-h-(--radix-select-content-available-height) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg shadow-md ring-1 duration-100 data-[align-trigger=true]:animate-none", r === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1 rtl:data-[side=left]:translate-x-1 rtl:data-[side=right]:-translate-x-1", t),
736
- position: r,
737
- align: i,
738
- ...a,
739
- children: [
740
- /* @__PURE__ */ M($e, {}),
741
- /* @__PURE__ */ M(be, {
742
- "data-position": r,
743
- className: e("data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)", r === "popper" && ""),
744
- children: n
745
- }),
746
- /* @__PURE__ */ M(et, {})
747
- ]
748
- }) });
749
- }
750
- function Xe({ className: t, ...n }) {
751
- return /* @__PURE__ */ M(Te, {
752
- "data-slot": "select-label",
753
- className: e("text-muted-foreground px-1.5 py-1 text-xs", t),
754
- ...n
755
- });
756
- }
757
- function Ze({ className: t, children: n, ...r }) {
758
- return /* @__PURE__ */ N(ke, {
759
- "data-slot": "select-item",
760
- className: e("focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 ps-1.5 pe-8 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", t),
761
- ...r,
762
- children: [/* @__PURE__ */ M("span", {
763
- className: "pointer-events-none absolute end-2 flex size-4 items-center justify-center",
764
- children: /* @__PURE__ */ M(Me, { children: /* @__PURE__ */ M(E, { className: "pointer-events-none" }) })
765
- }), /* @__PURE__ */ M(Ae, { children: n })]
766
- });
767
- }
768
- function Qe({ className: t, ...n }) {
769
- return /* @__PURE__ */ M(Re, {
770
- "data-slot": "select-separator",
771
- className: e("bg-border pointer-events-none -mx-1 my-1 h-px", t),
772
- ...n
773
- });
774
- }
775
- function $e({ className: t, ...n }) {
776
- return /* @__PURE__ */ M(Pe, {
777
- "data-slot": "select-scroll-up-button",
778
- className: e("bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4", t),
779
- ...n,
780
- children: /* @__PURE__ */ M(O, {})
781
- });
782
- }
783
- function et({ className: t, ...n }) {
784
- return /* @__PURE__ */ M(Ie, {
785
- "data-slot": "select-scroll-down-button",
786
- className: e("bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4", t),
787
- ...n,
788
- children: /* @__PURE__ */ M(D, {})
789
- });
790
- }
791
- //#endregion
792
- export { Xe as a, Qe as c, Ze as i, Je as l, Ye as n, et as o, Ke as r, $e as s, Ge as t, qe as u };