react-start-kit 1.0.0

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 (531) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +99 -0
  3. package/dist/accordion/index.cjs.js +2 -0
  4. package/dist/accordion/index.cjs.js.map +1 -0
  5. package/dist/accordion/index.es.js +287 -0
  6. package/dist/accordion/index.es.js.map +1 -0
  7. package/dist/alert/index.cjs.js +2 -0
  8. package/dist/alert/index.cjs.js.map +1 -0
  9. package/dist/alert/index.es.js +8 -0
  10. package/dist/alert/index.es.js.map +1 -0
  11. package/dist/alert-dialog/index.cjs.js +2 -0
  12. package/dist/alert-dialog/index.cjs.js.map +1 -0
  13. package/dist/alert-dialog/index.es.js +15 -0
  14. package/dist/alert-dialog/index.es.js.map +1 -0
  15. package/dist/avatar/index.cjs.js +2 -0
  16. package/dist/avatar/index.cjs.js.map +1 -0
  17. package/dist/avatar/index.es.js +8 -0
  18. package/dist/avatar/index.es.js.map +1 -0
  19. package/dist/badge/index.cjs.js +2 -0
  20. package/dist/badge/index.cjs.js.map +1 -0
  21. package/dist/badge/index.es.js +6 -0
  22. package/dist/badge/index.es.js.map +1 -0
  23. package/dist/breadcrumb/index.cjs.js +2 -0
  24. package/dist/breadcrumb/index.cjs.js.map +1 -0
  25. package/dist/breadcrumb/index.es.js +10 -0
  26. package/dist/breadcrumb/index.es.js.map +1 -0
  27. package/dist/button/index.cjs.js +2 -0
  28. package/dist/button/index.cjs.js.map +1 -0
  29. package/dist/button/index.es.js +11 -0
  30. package/dist/button/index.es.js.map +1 -0
  31. package/dist/calendar/index.cjs.js +2 -0
  32. package/dist/calendar/index.cjs.js.map +1 -0
  33. package/dist/calendar/index.es.js +11 -0
  34. package/dist/calendar/index.es.js.map +1 -0
  35. package/dist/card/index.cjs.js +2 -0
  36. package/dist/card/index.cjs.js.map +1 -0
  37. package/dist/card/index.es.js +10 -0
  38. package/dist/card/index.es.js.map +1 -0
  39. package/dist/carousel/index.cjs.js +12 -0
  40. package/dist/carousel/index.cjs.js.map +1 -0
  41. package/dist/carousel/index.es.js +1441 -0
  42. package/dist/carousel/index.es.js.map +1 -0
  43. package/dist/chunks/_commonjsHelpers-DKOUU3wS.cjs.js +2 -0
  44. package/dist/chunks/_commonjsHelpers-DKOUU3wS.cjs.js.map +1 -0
  45. package/dist/chunks/_commonjsHelpers-DaMA6jEr.es.js +9 -0
  46. package/dist/chunks/_commonjsHelpers-DaMA6jEr.es.js.map +1 -0
  47. package/dist/chunks/alert-B9rImkiX.es.js +53 -0
  48. package/dist/chunks/alert-B9rImkiX.es.js.map +1 -0
  49. package/dist/chunks/alert-BNcf_eJn.cjs.js +2 -0
  50. package/dist/chunks/alert-BNcf_eJn.cjs.js.map +1 -0
  51. package/dist/chunks/alert-dialog-BfBtlIHj.cjs.js +8 -0
  52. package/dist/chunks/alert-dialog-BfBtlIHj.cjs.js.map +1 -0
  53. package/dist/chunks/alert-dialog-BrCPhmhd.es.js +209 -0
  54. package/dist/chunks/alert-dialog-BrCPhmhd.es.js.map +1 -0
  55. package/dist/chunks/avatar-CQMWDnOM.cjs.js +18 -0
  56. package/dist/chunks/avatar-CQMWDnOM.cjs.js.map +1 -0
  57. package/dist/chunks/avatar-zl4cf4c2.es.js +333 -0
  58. package/dist/chunks/avatar-zl4cf4c2.es.js.map +1 -0
  59. package/dist/chunks/badge-1ocx6hox.cjs.js +2 -0
  60. package/dist/chunks/badge-1ocx6hox.cjs.js.map +1 -0
  61. package/dist/chunks/badge-CPzxgRrM.es.js +75 -0
  62. package/dist/chunks/badge-CPzxgRrM.es.js.map +1 -0
  63. package/dist/chunks/breadcrumb-BrMrkZfa.es.js +82 -0
  64. package/dist/chunks/breadcrumb-BrMrkZfa.es.js.map +1 -0
  65. package/dist/chunks/breadcrumb-iPT-f06l.cjs.js +2 -0
  66. package/dist/chunks/breadcrumb-iPT-f06l.cjs.js.map +1 -0
  67. package/dist/chunks/button-CpKtD3qG.cjs.js +2 -0
  68. package/dist/chunks/button-CpKtD3qG.cjs.js.map +1 -0
  69. package/dist/chunks/button-DTRIYqDb.es.js +50 -0
  70. package/dist/chunks/button-DTRIYqDb.es.js.map +1 -0
  71. package/dist/chunks/button-group-B4h4-5eB.es.js +76 -0
  72. package/dist/chunks/button-group-B4h4-5eB.es.js.map +1 -0
  73. package/dist/chunks/button-group-CaFYso6b.cjs.js +2 -0
  74. package/dist/chunks/button-group-CaFYso6b.cjs.js.map +1 -0
  75. package/dist/chunks/card-B1sx5mON.cjs.js +2 -0
  76. package/dist/chunks/card-B1sx5mON.cjs.js.map +1 -0
  77. package/dist/chunks/card-BJ0eqFqO.es.js +74 -0
  78. package/dist/chunks/card-BJ0eqFqO.es.js.map +1 -0
  79. package/dist/chunks/check-B6UTraXT.cjs.js +7 -0
  80. package/dist/chunks/check-B6UTraXT.cjs.js.map +1 -0
  81. package/dist/chunks/check-DFKaRaBZ.es.js +12 -0
  82. package/dist/chunks/check-DFKaRaBZ.es.js.map +1 -0
  83. package/dist/chunks/chevron-down-DDxUy1A2.es.js +12 -0
  84. package/dist/chunks/chevron-down-DDxUy1A2.es.js.map +1 -0
  85. package/dist/chunks/chevron-down-T-PkxHnH.cjs.js +7 -0
  86. package/dist/chunks/chevron-down-T-PkxHnH.cjs.js.map +1 -0
  87. package/dist/chunks/chevron-left-B_pqqZqr.cjs.js +7 -0
  88. package/dist/chunks/chevron-left-B_pqqZqr.cjs.js.map +1 -0
  89. package/dist/chunks/chevron-left-CfOUdNQ0.es.js +12 -0
  90. package/dist/chunks/chevron-left-CfOUdNQ0.es.js.map +1 -0
  91. package/dist/chunks/chevron-right-BNG-Ugyb.es.js +12 -0
  92. package/dist/chunks/chevron-right-BNG-Ugyb.es.js.map +1 -0
  93. package/dist/chunks/chevron-right-BxyusM7v.cjs.js +7 -0
  94. package/dist/chunks/chevron-right-BxyusM7v.cjs.js.map +1 -0
  95. package/dist/chunks/circle--GxygOe5.es.js +12 -0
  96. package/dist/chunks/circle--GxygOe5.es.js.map +1 -0
  97. package/dist/chunks/circle-DjcntFbc.cjs.js +7 -0
  98. package/dist/chunks/circle-DjcntFbc.cjs.js.map +1 -0
  99. package/dist/chunks/collapsible-CBOSWBKB.cjs.js +2 -0
  100. package/dist/chunks/collapsible-CBOSWBKB.cjs.js.map +1 -0
  101. package/dist/chunks/collapsible-Ddd6kxXS.es.js +35 -0
  102. package/dist/chunks/collapsible-Ddd6kxXS.es.js.map +1 -0
  103. package/dist/chunks/createLucideIcon-CyFYF6Ug.es.js +124 -0
  104. package/dist/chunks/createLucideIcon-CyFYF6Ug.es.js.map +1 -0
  105. package/dist/chunks/createLucideIcon-HtK0p34L.cjs.js +42 -0
  106. package/dist/chunks/createLucideIcon-HtK0p34L.cjs.js.map +1 -0
  107. package/dist/chunks/dialog-BWF5BkHj.cjs.js +2 -0
  108. package/dist/chunks/dialog-BWF5BkHj.cjs.js.map +1 -0
  109. package/dist/chunks/dialog-D9BMBoAJ.es.js +105 -0
  110. package/dist/chunks/dialog-D9BMBoAJ.es.js.map +1 -0
  111. package/dist/chunks/dropdown-menu-Bu9wADja.cjs.js +2 -0
  112. package/dist/chunks/dropdown-menu-Bu9wADja.cjs.js.map +1 -0
  113. package/dist/chunks/dropdown-menu-CcnxQ7Zj.es.js +980 -0
  114. package/dist/chunks/dropdown-menu-CcnxQ7Zj.es.js.map +1 -0
  115. package/dist/chunks/ellipsis-9FjKj8zv.es.js +16 -0
  116. package/dist/chunks/ellipsis-9FjKj8zv.es.js.map +1 -0
  117. package/dist/chunks/ellipsis-FJjSjEdP.cjs.js +7 -0
  118. package/dist/chunks/ellipsis-FJjSjEdP.cjs.js.map +1 -0
  119. package/dist/chunks/index-BKZjW6I1.es.js +692 -0
  120. package/dist/chunks/index-BKZjW6I1.es.js.map +1 -0
  121. package/dist/chunks/index-BVqmUhu5.es.js +221 -0
  122. package/dist/chunks/index-BVqmUhu5.es.js.map +1 -0
  123. package/dist/chunks/index-BdfbDt7y.es.js +64 -0
  124. package/dist/chunks/index-BdfbDt7y.es.js.map +1 -0
  125. package/dist/chunks/index-Bli6ZByj.es.js +1571 -0
  126. package/dist/chunks/index-Bli6ZByj.es.js.map +1 -0
  127. package/dist/chunks/index-Br4MVOGV.es.js +12 -0
  128. package/dist/chunks/index-Br4MVOGV.es.js.map +1 -0
  129. package/dist/chunks/index-BruMW80s.cjs.js +2 -0
  130. package/dist/chunks/index-BruMW80s.cjs.js.map +1 -0
  131. package/dist/chunks/index-C28jaZCP.cjs.js +2 -0
  132. package/dist/chunks/index-C28jaZCP.cjs.js.map +1 -0
  133. package/dist/chunks/index-C8ni3LLa.cjs.js +2 -0
  134. package/dist/chunks/index-C8ni3LLa.cjs.js.map +1 -0
  135. package/dist/chunks/index-CGLGXpw0.cjs.js +2 -0
  136. package/dist/chunks/index-CGLGXpw0.cjs.js.map +1 -0
  137. package/dist/chunks/index-CItoM52t.cjs.js +2 -0
  138. package/dist/chunks/index-CItoM52t.cjs.js.map +1 -0
  139. package/dist/chunks/index-CJ0fGifh.cjs.js +2 -0
  140. package/dist/chunks/index-CJ0fGifh.cjs.js.map +1 -0
  141. package/dist/chunks/index-CMEUY8i_.cjs.js +2 -0
  142. package/dist/chunks/index-CMEUY8i_.cjs.js.map +1 -0
  143. package/dist/chunks/index-CN4RxFxN.cjs.js +2 -0
  144. package/dist/chunks/index-CN4RxFxN.cjs.js.map +1 -0
  145. package/dist/chunks/index-CNbacFZ5.es.js +116 -0
  146. package/dist/chunks/index-CNbacFZ5.es.js.map +1 -0
  147. package/dist/chunks/index-CbjDVb-G.es.js +93 -0
  148. package/dist/chunks/index-CbjDVb-G.es.js.map +1 -0
  149. package/dist/chunks/index-ClNIHY-1.es.js +134 -0
  150. package/dist/chunks/index-ClNIHY-1.es.js.map +1 -0
  151. package/dist/chunks/index-Clo5BFLY.es.js +32 -0
  152. package/dist/chunks/index-Clo5BFLY.es.js.map +1 -0
  153. package/dist/chunks/index-CtCzh8NB.cjs.js +6 -0
  154. package/dist/chunks/index-CtCzh8NB.cjs.js.map +1 -0
  155. package/dist/chunks/index-D9zW9Tk7.cjs.js +2 -0
  156. package/dist/chunks/index-D9zW9Tk7.cjs.js.map +1 -0
  157. package/dist/chunks/index-DBXFJW5M.es.js +11 -0
  158. package/dist/chunks/index-DBXFJW5M.es.js.map +1 -0
  159. package/dist/chunks/index-DG15yxNP.cjs.js +42 -0
  160. package/dist/chunks/index-DG15yxNP.cjs.js.map +1 -0
  161. package/dist/chunks/index-DGEvZwN5.cjs.js +2 -0
  162. package/dist/chunks/index-DGEvZwN5.cjs.js.map +1 -0
  163. package/dist/chunks/index-DLcqcWxM.es.js +30 -0
  164. package/dist/chunks/index-DLcqcWxM.es.js.map +1 -0
  165. package/dist/chunks/index-DNQZbZsM.es.js +179 -0
  166. package/dist/chunks/index-DNQZbZsM.es.js.map +1 -0
  167. package/dist/chunks/index-DnRKXUWD.cjs.js +2 -0
  168. package/dist/chunks/index-DnRKXUWD.cjs.js.map +1 -0
  169. package/dist/chunks/index-Dt3MSLsk.es.js +7 -0
  170. package/dist/chunks/index-Dt3MSLsk.es.js.map +1 -0
  171. package/dist/chunks/index-DvGm4EwH.es.js +62 -0
  172. package/dist/chunks/index-DvGm4EwH.es.js.map +1 -0
  173. package/dist/chunks/index-DwYXX2sM.es.js +14 -0
  174. package/dist/chunks/index-DwYXX2sM.es.js.map +1 -0
  175. package/dist/chunks/index-is755vrc.cjs.js +2 -0
  176. package/dist/chunks/index-is755vrc.cjs.js.map +1 -0
  177. package/dist/chunks/index-jFOWwfD3.cjs.js +2 -0
  178. package/dist/chunks/index-jFOWwfD3.cjs.js.map +1 -0
  179. package/dist/chunks/index-pF_O2Ico.cjs.js +2 -0
  180. package/dist/chunks/index-pF_O2Ico.cjs.js.map +1 -0
  181. package/dist/chunks/index-pQxT4IlV.cjs.js +2 -0
  182. package/dist/chunks/index-pQxT4IlV.cjs.js.map +1 -0
  183. package/dist/chunks/index-rKs9bXHr.es.js +7 -0
  184. package/dist/chunks/index-rKs9bXHr.es.js.map +1 -0
  185. package/dist/chunks/index-xA4mlFw5.es.js +35 -0
  186. package/dist/chunks/index-xA4mlFw5.es.js.map +1 -0
  187. package/dist/chunks/index-x_Mxo00P.cjs.js +2 -0
  188. package/dist/chunks/index-x_Mxo00P.cjs.js.map +1 -0
  189. package/dist/chunks/index-xl-szYFX.es.js +290 -0
  190. package/dist/chunks/index-xl-szYFX.es.js.map +1 -0
  191. package/dist/chunks/pagination-DFYeehFF.es.js +113 -0
  192. package/dist/chunks/pagination-DFYeehFF.es.js.map +1 -0
  193. package/dist/chunks/pagination-LHTb7tXo.cjs.js +2 -0
  194. package/dist/chunks/pagination-LHTb7tXo.cjs.js.map +1 -0
  195. package/dist/chunks/popover-Bh6emR_J.cjs.js +2 -0
  196. package/dist/chunks/popover-Bh6emR_J.cjs.js.map +1 -0
  197. package/dist/chunks/popover-BredK0sg.es.js +285 -0
  198. package/dist/chunks/popover-BredK0sg.es.js.map +1 -0
  199. package/dist/chunks/scroll-area-CwWjTiks.es.js +555 -0
  200. package/dist/chunks/scroll-area-CwWjTiks.es.js.map +1 -0
  201. package/dist/chunks/scroll-area-Nj6J9MqV.cjs.js +2 -0
  202. package/dist/chunks/scroll-area-Nj6J9MqV.cjs.js.map +1 -0
  203. package/dist/chunks/select-BTgKkicD.es.js +1404 -0
  204. package/dist/chunks/select-BTgKkicD.es.js.map +1 -0
  205. package/dist/chunks/select-D703Xctn.cjs.js +7 -0
  206. package/dist/chunks/select-D703Xctn.cjs.js.map +1 -0
  207. package/dist/chunks/separator-CGvV-BlI.cjs.js +2 -0
  208. package/dist/chunks/separator-CGvV-BlI.cjs.js.map +1 -0
  209. package/dist/chunks/separator-CgP4OHOF.es.js +67 -0
  210. package/dist/chunks/separator-CgP4OHOF.es.js.map +1 -0
  211. package/dist/chunks/sheet-BL1AP0aU.cjs.js +2 -0
  212. package/dist/chunks/sheet-BL1AP0aU.cjs.js.map +1 -0
  213. package/dist/chunks/sheet-CKsRhiVy.es.js +136 -0
  214. package/dist/chunks/sheet-CKsRhiVy.es.js.map +1 -0
  215. package/dist/chunks/skeleton-C7pnV7bc.cjs.js +2 -0
  216. package/dist/chunks/skeleton-C7pnV7bc.cjs.js.map +1 -0
  217. package/dist/chunks/skeleton-DKbF2Fso.es.js +18 -0
  218. package/dist/chunks/skeleton-DKbF2Fso.es.js.map +1 -0
  219. package/dist/chunks/table-BTb0KUhR.es.js +90 -0
  220. package/dist/chunks/table-BTb0KUhR.es.js.map +1 -0
  221. package/dist/chunks/table-Dxainp0Z.cjs.js +2 -0
  222. package/dist/chunks/table-Dxainp0Z.cjs.js.map +1 -0
  223. package/dist/chunks/tabs-BnamvF0S.es.js +317 -0
  224. package/dist/chunks/tabs-BnamvF0S.es.js.map +1 -0
  225. package/dist/chunks/tabs-CDt2LiNL.cjs.js +6 -0
  226. package/dist/chunks/tabs-CDt2LiNL.cjs.js.map +1 -0
  227. package/dist/chunks/textarea-4zXXFdLZ.cjs.js +187 -0
  228. package/dist/chunks/textarea-4zXXFdLZ.cjs.js.map +1 -0
  229. package/dist/chunks/textarea-CBSWNU0D.es.js +17234 -0
  230. package/dist/chunks/textarea-CBSWNU0D.es.js.map +1 -0
  231. package/dist/chunks/timepicker-CVkum2UK.es.js +3394 -0
  232. package/dist/chunks/timepicker-CVkum2UK.es.js.map +1 -0
  233. package/dist/chunks/timepicker-nlKbDl_W.cjs.js +7 -0
  234. package/dist/chunks/timepicker-nlKbDl_W.cjs.js.map +1 -0
  235. package/dist/chunks/tooltip-CsZB0nVr.cjs.js +2 -0
  236. package/dist/chunks/tooltip-CsZB0nVr.cjs.js.map +1 -0
  237. package/dist/chunks/tooltip-Dtzkuphk.es.js +341 -0
  238. package/dist/chunks/tooltip-Dtzkuphk.es.js.map +1 -0
  239. package/dist/chunks/utils-C4d7Ql9-.cjs.js +2 -0
  240. package/dist/chunks/utils-C4d7Ql9-.cjs.js.map +1 -0
  241. package/dist/chunks/utils-CnvKSirc.es.js +2778 -0
  242. package/dist/chunks/utils-CnvKSirc.es.js.map +1 -0
  243. package/dist/chunks/x-8d8XBbXN.es.js +15 -0
  244. package/dist/chunks/x-8d8XBbXN.es.js.map +1 -0
  245. package/dist/chunks/x-Ev63aQi_.cjs.js +7 -0
  246. package/dist/chunks/x-Ev63aQi_.cjs.js.map +1 -0
  247. package/dist/collapsible/index.cjs.js +2 -0
  248. package/dist/collapsible/index.cjs.js.map +1 -0
  249. package/dist/collapsible/index.es.js +7 -0
  250. package/dist/collapsible/index.es.js.map +1 -0
  251. package/dist/dialog/index.cjs.js +2 -0
  252. package/dist/dialog/index.cjs.js.map +1 -0
  253. package/dist/dialog/index.es.js +14 -0
  254. package/dist/dialog/index.es.js.map +1 -0
  255. package/dist/dropdown/index.cjs.js +2 -0
  256. package/dist/dropdown/index.cjs.js.map +1 -0
  257. package/dist/dropdown/index.es.js +19 -0
  258. package/dist/dropdown/index.es.js.map +1 -0
  259. package/dist/form/index.cjs.js +2 -0
  260. package/dist/form/index.cjs.js.map +1 -0
  261. package/dist/form/index.es.js +36 -0
  262. package/dist/form/index.es.js.map +1 -0
  263. package/dist/index.cjs.js +2 -0
  264. package/dist/index.cjs.js.map +1 -0
  265. package/dist/index.es.js +171 -0
  266. package/dist/index.es.js.map +1 -0
  267. package/dist/pagination/index.cjs.js +2 -0
  268. package/dist/pagination/index.cjs.js.map +1 -0
  269. package/dist/pagination/index.es.js +11 -0
  270. package/dist/pagination/index.es.js.map +1 -0
  271. package/dist/popover/index.cjs.js +2 -0
  272. package/dist/popover/index.cjs.js.map +1 -0
  273. package/dist/popover/index.es.js +7 -0
  274. package/dist/popover/index.es.js.map +1 -0
  275. package/dist/progress/index.cjs.js +7 -0
  276. package/dist/progress/index.cjs.js.map +1 -0
  277. package/dist/progress/index.es.js +194 -0
  278. package/dist/progress/index.es.js.map +1 -0
  279. package/dist/scroll-area/index.cjs.js +2 -0
  280. package/dist/scroll-area/index.cjs.js.map +1 -0
  281. package/dist/scroll-area/index.es.js +6 -0
  282. package/dist/scroll-area/index.es.js.map +1 -0
  283. package/dist/separator/index.cjs.js +2 -0
  284. package/dist/separator/index.cjs.js.map +1 -0
  285. package/dist/separator/index.es.js +5 -0
  286. package/dist/separator/index.es.js.map +1 -0
  287. package/dist/sheet/index.cjs.js +2 -0
  288. package/dist/sheet/index.cjs.js.map +1 -0
  289. package/dist/sheet/index.es.js +12 -0
  290. package/dist/sheet/index.es.js.map +1 -0
  291. package/dist/skeleton/index.cjs.js +2 -0
  292. package/dist/skeleton/index.cjs.js.map +1 -0
  293. package/dist/skeleton/index.es.js +5 -0
  294. package/dist/skeleton/index.es.js.map +1 -0
  295. package/dist/styles.css +7 -0
  296. package/dist/tab/index.cjs.js +2 -0
  297. package/dist/tab/index.cjs.js.map +1 -0
  298. package/dist/tab/index.es.js +8 -0
  299. package/dist/tab/index.es.js.map +1 -0
  300. package/dist/table/index.cjs.js +2 -0
  301. package/dist/table/index.cjs.js.map +1 -0
  302. package/dist/table/index.es.js +12 -0
  303. package/dist/table/index.es.js.map +1 -0
  304. package/dist/tooltip/index.cjs.js +2 -0
  305. package/dist/tooltip/index.cjs.js.map +1 -0
  306. package/dist/tooltip/index.es.js +8 -0
  307. package/dist/tooltip/index.es.js.map +1 -0
  308. package/dist/types/App.d.ts +9 -0
  309. package/dist/types/App.d.ts.map +1 -0
  310. package/dist/types/hooks/use-mobile.d.ts +8 -0
  311. package/dist/types/hooks/use-mobile.d.ts.map +1 -0
  312. package/dist/types/index.d.ts +28 -0
  313. package/dist/types/index.d.ts.map +1 -0
  314. package/dist/types/lib/day.d.ts +7 -0
  315. package/dist/types/lib/day.d.ts.map +1 -0
  316. package/dist/types/lib/index.d.ts +6 -0
  317. package/dist/types/lib/index.d.ts.map +1 -0
  318. package/dist/types/lib/utils.d.ts +10 -0
  319. package/dist/types/lib/utils.d.ts.map +1 -0
  320. package/dist/types/main.d.ts +1 -0
  321. package/dist/types/main.d.ts.map +1 -0
  322. package/dist/types/stories/Accordion.stories.d.ts +17 -0
  323. package/dist/types/stories/Accordion.stories.d.ts.map +1 -0
  324. package/dist/types/stories/Alert.stories.d.ts +26 -0
  325. package/dist/types/stories/Alert.stories.d.ts.map +1 -0
  326. package/dist/types/stories/AlertDialog.stories.d.ts +18 -0
  327. package/dist/types/stories/AlertDialog.stories.d.ts.map +1 -0
  328. package/dist/types/stories/Avatar.stories.d.ts +27 -0
  329. package/dist/types/stories/Avatar.stories.d.ts.map +1 -0
  330. package/dist/types/stories/Badge.stories.d.ts +44 -0
  331. package/dist/types/stories/Badge.stories.d.ts.map +1 -0
  332. package/dist/types/stories/Breadcrumb.stories.d.ts +20 -0
  333. package/dist/types/stories/Breadcrumb.stories.d.ts.map +1 -0
  334. package/dist/types/stories/Button.stories.d.ts +48 -0
  335. package/dist/types/stories/Button.stories.d.ts.map +1 -0
  336. package/dist/types/stories/ButtonGroup.stories.d.ts +29 -0
  337. package/dist/types/stories/ButtonGroup.stories.d.ts.map +1 -0
  338. package/dist/types/stories/Calendar.stories.d.ts +35 -0
  339. package/dist/types/stories/Calendar.stories.d.ts.map +1 -0
  340. package/dist/types/stories/Card.stories.d.ts +17 -0
  341. package/dist/types/stories/Card.stories.d.ts.map +1 -0
  342. package/dist/types/stories/Carousel.stories.d.ts +23 -0
  343. package/dist/types/stories/Carousel.stories.d.ts.map +1 -0
  344. package/dist/types/stories/Checkbox.stories.d.ts +31 -0
  345. package/dist/types/stories/Checkbox.stories.d.ts.map +1 -0
  346. package/dist/types/stories/Collapsible.stories.d.ts +17 -0
  347. package/dist/types/stories/Collapsible.stories.d.ts.map +1 -0
  348. package/dist/types/stories/DatePicker.stories.d.ts +14 -0
  349. package/dist/types/stories/DatePicker.stories.d.ts.map +1 -0
  350. package/dist/types/stories/Dialog.stories.d.ts +18 -0
  351. package/dist/types/stories/Dialog.stories.d.ts.map +1 -0
  352. package/dist/types/stories/DropdownMenu.stories.d.ts +17 -0
  353. package/dist/types/stories/DropdownMenu.stories.d.ts.map +1 -0
  354. package/dist/types/stories/FilepondContainer.stories.d.ts +21 -0
  355. package/dist/types/stories/FilepondContainer.stories.d.ts.map +1 -0
  356. package/dist/types/stories/Form.stories.d.ts +15 -0
  357. package/dist/types/stories/Form.stories.d.ts.map +1 -0
  358. package/dist/types/stories/HtmlEditor.stories.d.ts +27 -0
  359. package/dist/types/stories/HtmlEditor.stories.d.ts.map +1 -0
  360. package/dist/types/stories/Input.stories.d.ts +40 -0
  361. package/dist/types/stories/Input.stories.d.ts.map +1 -0
  362. package/dist/types/stories/Label.stories.d.ts +19 -0
  363. package/dist/types/stories/Label.stories.d.ts.map +1 -0
  364. package/dist/types/stories/MaskInput.stories.d.ts +115 -0
  365. package/dist/types/stories/MaskInput.stories.d.ts.map +1 -0
  366. package/dist/types/stories/Pagination.stories.d.ts +21 -0
  367. package/dist/types/stories/Pagination.stories.d.ts.map +1 -0
  368. package/dist/types/stories/Popover.stories.d.ts +17 -0
  369. package/dist/types/stories/Popover.stories.d.ts.map +1 -0
  370. package/dist/types/stories/Progress.stories.d.ts +33 -0
  371. package/dist/types/stories/Progress.stories.d.ts.map +1 -0
  372. package/dist/types/stories/RadioGroup.stories.d.ts +18 -0
  373. package/dist/types/stories/RadioGroup.stories.d.ts.map +1 -0
  374. package/dist/types/stories/ReactSelect.stories.d.ts +39 -0
  375. package/dist/types/stories/ReactSelect.stories.d.ts.map +1 -0
  376. package/dist/types/stories/ScrollArea.stories.d.ts +18 -0
  377. package/dist/types/stories/ScrollArea.stories.d.ts.map +1 -0
  378. package/dist/types/stories/Select.stories.d.ts +18 -0
  379. package/dist/types/stories/Select.stories.d.ts.map +1 -0
  380. package/dist/types/stories/Separator.stories.d.ts +28 -0
  381. package/dist/types/stories/Separator.stories.d.ts.map +1 -0
  382. package/dist/types/stories/Sheet.stories.d.ts +21 -0
  383. package/dist/types/stories/Sheet.stories.d.ts.map +1 -0
  384. package/dist/types/stories/Skeleton.stories.d.ts +22 -0
  385. package/dist/types/stories/Skeleton.stories.d.ts.map +1 -0
  386. package/dist/types/stories/Switch.stories.d.ts +29 -0
  387. package/dist/types/stories/Switch.stories.d.ts.map +1 -0
  388. package/dist/types/stories/Table.stories.d.ts +17 -0
  389. package/dist/types/stories/Table.stories.d.ts.map +1 -0
  390. package/dist/types/stories/Tabs.stories.d.ts +19 -0
  391. package/dist/types/stories/Tabs.stories.d.ts.map +1 -0
  392. package/dist/types/stories/Textarea.stories.d.ts +34 -0
  393. package/dist/types/stories/Textarea.stories.d.ts.map +1 -0
  394. package/dist/types/stories/TimePicker.stories.d.ts +33 -0
  395. package/dist/types/stories/TimePicker.stories.d.ts.map +1 -0
  396. package/dist/types/stories/Tooltip.stories.d.ts +27 -0
  397. package/dist/types/stories/Tooltip.stories.d.ts.map +1 -0
  398. package/dist/types/types/element-data.type.d.ts +8 -0
  399. package/dist/types/types/element-data.type.d.ts.map +1 -0
  400. package/dist/types/types/index.d.ts +2 -0
  401. package/dist/types/types/index.d.ts.map +1 -0
  402. package/dist/types/ui/accordion/accordion.d.ts +69 -0
  403. package/dist/types/ui/accordion/accordion.d.ts.map +1 -0
  404. package/dist/types/ui/accordion/index.d.ts +2 -0
  405. package/dist/types/ui/accordion/index.d.ts.map +1 -0
  406. package/dist/types/ui/alert/alert.d.ts +31 -0
  407. package/dist/types/ui/alert/alert.d.ts.map +1 -0
  408. package/dist/types/ui/alert/index.d.ts +2 -0
  409. package/dist/types/ui/alert/index.d.ts.map +1 -0
  410. package/dist/types/ui/alert-dialog/alert-dialog.d.ts +62 -0
  411. package/dist/types/ui/alert-dialog/alert-dialog.d.ts.map +1 -0
  412. package/dist/types/ui/alert-dialog/index.d.ts +2 -0
  413. package/dist/types/ui/alert-dialog/index.d.ts.map +1 -0
  414. package/dist/types/ui/avatar/avatar.d.ts +86 -0
  415. package/dist/types/ui/avatar/avatar.d.ts.map +1 -0
  416. package/dist/types/ui/avatar/index.d.ts +2 -0
  417. package/dist/types/ui/avatar/index.d.ts.map +1 -0
  418. package/dist/types/ui/badge/badge.d.ts +45 -0
  419. package/dist/types/ui/badge/badge.d.ts.map +1 -0
  420. package/dist/types/ui/badge/index.d.ts +2 -0
  421. package/dist/types/ui/badge/index.d.ts.map +1 -0
  422. package/dist/types/ui/breadcrumb/breadcrumb.d.ts +60 -0
  423. package/dist/types/ui/breadcrumb/breadcrumb.d.ts.map +1 -0
  424. package/dist/types/ui/breadcrumb/index.d.ts +2 -0
  425. package/dist/types/ui/breadcrumb/index.d.ts.map +1 -0
  426. package/dist/types/ui/button/button-group.d.ts +43 -0
  427. package/dist/types/ui/button/button-group.d.ts.map +1 -0
  428. package/dist/types/ui/button/button.d.ts +42 -0
  429. package/dist/types/ui/button/button.d.ts.map +1 -0
  430. package/dist/types/ui/button/index.d.ts +3 -0
  431. package/dist/types/ui/button/index.d.ts.map +1 -0
  432. package/dist/types/ui/calendar/calendar.d.ts +84 -0
  433. package/dist/types/ui/calendar/calendar.d.ts.map +1 -0
  434. package/dist/types/ui/calendar/datepicker.d.ts +8 -0
  435. package/dist/types/ui/calendar/datepicker.d.ts.map +1 -0
  436. package/dist/types/ui/calendar/index.d.ts +4 -0
  437. package/dist/types/ui/calendar/index.d.ts.map +1 -0
  438. package/dist/types/ui/calendar/timepicker.d.ts +38 -0
  439. package/dist/types/ui/calendar/timepicker.d.ts.map +1 -0
  440. package/dist/types/ui/card/card.d.ts +39 -0
  441. package/dist/types/ui/card/card.d.ts.map +1 -0
  442. package/dist/types/ui/card/index.d.ts +2 -0
  443. package/dist/types/ui/card/index.d.ts.map +1 -0
  444. package/dist/types/ui/carousel/carousel.d.ts +73 -0
  445. package/dist/types/ui/carousel/carousel.d.ts.map +1 -0
  446. package/dist/types/ui/carousel/index.d.ts +2 -0
  447. package/dist/types/ui/carousel/index.d.ts.map +1 -0
  448. package/dist/types/ui/collapsible/collapsible.d.ts +18 -0
  449. package/dist/types/ui/collapsible/collapsible.d.ts.map +1 -0
  450. package/dist/types/ui/collapsible/index.d.ts +2 -0
  451. package/dist/types/ui/collapsible/index.d.ts.map +1 -0
  452. package/dist/types/ui/dialog/dialog.d.ts +76 -0
  453. package/dist/types/ui/dialog/dialog.d.ts.map +1 -0
  454. package/dist/types/ui/dialog/index.d.ts +2 -0
  455. package/dist/types/ui/dialog/index.d.ts.map +1 -0
  456. package/dist/types/ui/dropdown/dropdown-menu.d.ts +88 -0
  457. package/dist/types/ui/dropdown/dropdown-menu.d.ts.map +1 -0
  458. package/dist/types/ui/dropdown/index.d.ts +2 -0
  459. package/dist/types/ui/dropdown/index.d.ts.map +1 -0
  460. package/dist/types/ui/form/checkbox.d.ts +16 -0
  461. package/dist/types/ui/form/checkbox.d.ts.map +1 -0
  462. package/dist/types/ui/form/filepond-container.d.ts +25 -0
  463. package/dist/types/ui/form/filepond-container.d.ts.map +1 -0
  464. package/dist/types/ui/form/form.d.ts +68 -0
  465. package/dist/types/ui/form/form.d.ts.map +1 -0
  466. package/dist/types/ui/form/html-editor.d.ts +38 -0
  467. package/dist/types/ui/form/html-editor.d.ts.map +1 -0
  468. package/dist/types/ui/form/index.d.ts +13 -0
  469. package/dist/types/ui/form/index.d.ts.map +1 -0
  470. package/dist/types/ui/form/input-mask.d.ts +111 -0
  471. package/dist/types/ui/form/input-mask.d.ts.map +1 -0
  472. package/dist/types/ui/form/input.d.ts +33 -0
  473. package/dist/types/ui/form/input.d.ts.map +1 -0
  474. package/dist/types/ui/form/label.d.ts +11 -0
  475. package/dist/types/ui/form/label.d.ts.map +1 -0
  476. package/dist/types/ui/form/radio-group.d.ts +25 -0
  477. package/dist/types/ui/form/radio-group.d.ts.map +1 -0
  478. package/dist/types/ui/form/react-select.d.ts +40 -0
  479. package/dist/types/ui/form/react-select.d.ts.map +1 -0
  480. package/dist/types/ui/form/select.d.ts +100 -0
  481. package/dist/types/ui/form/select.d.ts.map +1 -0
  482. package/dist/types/ui/form/switch.d.ts +16 -0
  483. package/dist/types/ui/form/switch.d.ts.map +1 -0
  484. package/dist/types/ui/form/textarea.d.ts +19 -0
  485. package/dist/types/ui/form/textarea.d.ts.map +1 -0
  486. package/dist/types/ui/pagination/index.d.ts +2 -0
  487. package/dist/types/ui/pagination/index.d.ts.map +1 -0
  488. package/dist/types/ui/pagination/pagination.d.ts +78 -0
  489. package/dist/types/ui/pagination/pagination.d.ts.map +1 -0
  490. package/dist/types/ui/popover/index.d.ts +2 -0
  491. package/dist/types/ui/popover/index.d.ts.map +1 -0
  492. package/dist/types/ui/popover/popover.d.ts +29 -0
  493. package/dist/types/ui/popover/popover.d.ts.map +1 -0
  494. package/dist/types/ui/progress/index.d.ts +2 -0
  495. package/dist/types/ui/progress/index.d.ts.map +1 -0
  496. package/dist/types/ui/progress/progress.d.ts +14 -0
  497. package/dist/types/ui/progress/progress.d.ts.map +1 -0
  498. package/dist/types/ui/scroll-area/index.d.ts +2 -0
  499. package/dist/types/ui/scroll-area/index.d.ts.map +1 -0
  500. package/dist/types/ui/scroll-area/scroll-area.d.ts +20 -0
  501. package/dist/types/ui/scroll-area/scroll-area.d.ts.map +1 -0
  502. package/dist/types/ui/separator/index.d.ts +2 -0
  503. package/dist/types/ui/separator/index.d.ts.map +1 -0
  504. package/dist/types/ui/separator/separator.d.ts +13 -0
  505. package/dist/types/ui/separator/separator.d.ts.map +1 -0
  506. package/dist/types/ui/sheet/index.d.ts +2 -0
  507. package/dist/types/ui/sheet/index.d.ts.map +1 -0
  508. package/dist/types/ui/sheet/sheet.d.ts +61 -0
  509. package/dist/types/ui/sheet/sheet.d.ts.map +1 -0
  510. package/dist/types/ui/skeleton/index.d.ts +2 -0
  511. package/dist/types/ui/skeleton/index.d.ts.map +1 -0
  512. package/dist/types/ui/skeleton/skeleton.d.ts +8 -0
  513. package/dist/types/ui/skeleton/skeleton.d.ts.map +1 -0
  514. package/dist/types/ui/tab/index.d.ts +2 -0
  515. package/dist/types/ui/tab/index.d.ts.map +1 -0
  516. package/dist/types/ui/tab/tabs.d.ts +50 -0
  517. package/dist/types/ui/tab/tabs.d.ts.map +1 -0
  518. package/dist/types/ui/table/index.d.ts +2 -0
  519. package/dist/types/ui/table/index.d.ts.map +1 -0
  520. package/dist/types/ui/table/table.d.ts +43 -0
  521. package/dist/types/ui/table/table.d.ts.map +1 -0
  522. package/dist/types/ui/tooltip/index.d.ts +2 -0
  523. package/dist/types/ui/tooltip/index.d.ts.map +1 -0
  524. package/dist/types/ui/tooltip/tooltip.d.ts +15 -0
  525. package/dist/types/ui/tooltip/tooltip.d.ts.map +1 -0
  526. package/dist/types/vite-env.d.ts +1 -0
  527. package/dist/utils/index.cjs.js +2 -0
  528. package/dist/utils/index.cjs.js.map +1 -0
  529. package/dist/utils/index.es.js +287 -0
  530. package/dist/utils/index.es.js.map +1 -0
  531. package/package.json +366 -0
@@ -0,0 +1,1404 @@
1
+ import { jsx as v, jsxs as oe, Fragment as Me } from "react/jsx-runtime";
2
+ import * as s from "react";
3
+ import { createElement as Ce, PureComponent as Mt, useRef as At } from "react";
4
+ import * as Ue from "react-dom";
5
+ import { c as Le } from "./index-rKs9bXHr.es.js";
6
+ import { P as W, c as A, b as Dt } from "./index-BVqmUhu5.es.js";
7
+ import { c as Lt } from "./index-CbjDVb-G.es.js";
8
+ import { c as zt, u as G } from "./index-DLcqcWxM.es.js";
9
+ import { u as kt } from "./index-DBXFJW5M.es.js";
10
+ import { D as Vt } from "./index-ClNIHY-1.es.js";
11
+ import { P as Wt, h as Bt, u as Ht, R as Ft, F as Ut } from "./index-BKZjW6I1.es.js";
12
+ import { u as ze, a as Ae } from "./index-BdfbDt7y.es.js";
13
+ import { R as $t, c as $e, A as Kt, C as jt, a as qt } from "./index-Bli6ZByj.es.js";
14
+ import { u as Gt } from "./index-DwYXX2sM.es.js";
15
+ import { u as Y } from "./index-Dt3MSLsk.es.js";
16
+ import { V as Yt } from "./index-Clo5BFLY.es.js";
17
+ import { c as Z } from "./utils-CnvKSirc.es.js";
18
+ import { C as Zt } from "./check-DFKaRaBZ.es.js";
19
+ import { C as Ke } from "./chevron-down-DDxUy1A2.es.js";
20
+ import { c as Xt } from "./createLucideIcon-CyFYF6Ug.es.js";
21
+ /**
22
+ * @license lucide-react v0.563.0 - ISC
23
+ *
24
+ * This source code is licensed under the ISC license.
25
+ * See the LICENSE file in the root directory of this source tree.
26
+ */
27
+ const Jt = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], Qt = Xt("chevron-up", Jt);
28
+ function eo(t) {
29
+ const e = s.useRef({ value: t, previous: t });
30
+ return s.useMemo(() => (e.current.value !== t && (e.current.previous = e.current.value, e.current.value = t), e.current.previous), [t]);
31
+ }
32
+ function Te() {
33
+ return Te = Object.assign ? Object.assign.bind() : function(t) {
34
+ for (var e = 1; e < arguments.length; e++) {
35
+ var o = arguments[e];
36
+ for (var n in o) ({}).hasOwnProperty.call(o, n) && (t[n] = o[n]);
37
+ }
38
+ return t;
39
+ }, Te.apply(null, arguments);
40
+ }
41
+ function Ne(t, e) {
42
+ return Ne = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(o, n) {
43
+ return o.__proto__ = n, o;
44
+ }, Ne(t, e);
45
+ }
46
+ function ke(t) {
47
+ if (t === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
48
+ return t;
49
+ }
50
+ // @__NO_SIDE_EFFECTS__
51
+ function to(t) {
52
+ const e = /* @__PURE__ */ oo(t), o = s.forwardRef((n, i) => {
53
+ const { children: f, ...c } = n, a = s.Children.toArray(f), l = a.find(no);
54
+ if (l) {
55
+ const h = l.props.children, g = a.map((w) => w === l ? s.Children.count(h) > 1 ? s.Children.only(null) : s.isValidElement(h) ? h.props.children : null : w);
56
+ return /* @__PURE__ */ v(e, { ...c, ref: i, children: s.isValidElement(h) ? s.cloneElement(h, void 0, g) : null });
57
+ }
58
+ return /* @__PURE__ */ v(e, { ...c, ref: i, children: f });
59
+ });
60
+ return o.displayName = `${t}.Slot`, o;
61
+ }
62
+ // @__NO_SIDE_EFFECTS__
63
+ function oo(t) {
64
+ const e = s.forwardRef((o, n) => {
65
+ const { children: i, ...f } = o;
66
+ if (s.isValidElement(i)) {
67
+ const c = so(i), a = io(f, i.props);
68
+ return i.type !== s.Fragment && (a.ref = n ? zt(n, c) : c), s.cloneElement(i, a);
69
+ }
70
+ return s.Children.count(i) > 1 ? s.Children.only(null) : null;
71
+ });
72
+ return e.displayName = `${t}.SlotClone`, e;
73
+ }
74
+ var ro = Symbol("radix.slottable");
75
+ function no(t) {
76
+ return s.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === ro;
77
+ }
78
+ function io(t, e) {
79
+ const o = { ...e };
80
+ for (const n in e) {
81
+ const i = t[n], f = e[n];
82
+ /^on[A-Z]/.test(n) ? i && f ? o[n] = (...a) => {
83
+ const l = f(...a);
84
+ return i(...a), l;
85
+ } : i && (o[n] = i) : n === "style" ? o[n] = { ...i, ...f } : n === "className" && (o[n] = [i, f].filter(Boolean).join(" "));
86
+ }
87
+ return { ...t, ...o };
88
+ }
89
+ function so(t) {
90
+ var n, i;
91
+ let e = (n = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : n.get, o = e && "isReactWarning" in e && e.isReactWarning;
92
+ return o ? t.ref : (e = (i = Object.getOwnPropertyDescriptor(t, "ref")) == null ? void 0 : i.get, o = e && "isReactWarning" in e && e.isReactWarning, o ? t.props.ref : t.props.ref || t.ref);
93
+ }
94
+ var ao = [" ", "Enter", "ArrowUp", "ArrowDown"], lo = [" ", "Enter"], re = "Select", [ve, ge, co] = Lt(re), [ce] = Dt(re, [
95
+ co,
96
+ $e
97
+ ]), Se = $e(), [uo, X] = ce(re), [po, fo] = ce(re), je = (t) => {
98
+ const {
99
+ __scopeSelect: e,
100
+ children: o,
101
+ open: n,
102
+ defaultOpen: i,
103
+ onOpenChange: f,
104
+ value: c,
105
+ defaultValue: a,
106
+ onValueChange: l,
107
+ dir: h,
108
+ name: g,
109
+ autoComplete: w,
110
+ disabled: N,
111
+ required: b,
112
+ form: I
113
+ } = t, r = Se(e), [d, p] = s.useState(null), [u, m] = s.useState(null), [x, S] = s.useState(!1), T = kt(h), [C, O] = ze({
114
+ prop: n,
115
+ defaultProp: i ?? !1,
116
+ onChange: f,
117
+ caller: re
118
+ }), [M, B] = ze({
119
+ prop: c,
120
+ defaultProp: a,
121
+ onChange: l,
122
+ caller: re
123
+ }), L = s.useRef(null), F = d ? I || !!d.closest("form") : !0, [j, U] = s.useState(/* @__PURE__ */ new Set()), $ = Array.from(j).map((D) => D.props.value).join(";");
124
+ return /* @__PURE__ */ v($t, { ...r, children: /* @__PURE__ */ oe(
125
+ uo,
126
+ {
127
+ required: b,
128
+ scope: e,
129
+ trigger: d,
130
+ onTriggerChange: p,
131
+ valueNode: u,
132
+ onValueNodeChange: m,
133
+ valueNodeHasChildren: x,
134
+ onValueNodeHasChildrenChange: S,
135
+ contentId: Ae(),
136
+ value: M,
137
+ onValueChange: B,
138
+ open: C,
139
+ onOpenChange: O,
140
+ dir: T,
141
+ triggerPointerDownPosRef: L,
142
+ disabled: N,
143
+ children: [
144
+ /* @__PURE__ */ v(ve.Provider, { scope: e, children: /* @__PURE__ */ v(
145
+ po,
146
+ {
147
+ scope: t.__scopeSelect,
148
+ onNativeOptionAdd: s.useCallback((D) => {
149
+ U((z) => new Set(z).add(D));
150
+ }, []),
151
+ onNativeOptionRemove: s.useCallback((D) => {
152
+ U((z) => {
153
+ const k = new Set(z);
154
+ return k.delete(D), k;
155
+ });
156
+ }, []),
157
+ children: o
158
+ }
159
+ ) }),
160
+ F ? /* @__PURE__ */ oe(
161
+ gt,
162
+ {
163
+ "aria-hidden": !0,
164
+ required: b,
165
+ tabIndex: -1,
166
+ name: g,
167
+ autoComplete: w,
168
+ value: M,
169
+ onChange: (D) => B(D.target.value),
170
+ disabled: N,
171
+ form: I,
172
+ children: [
173
+ M === void 0 ? /* @__PURE__ */ v("option", { value: "" }) : null,
174
+ Array.from(j)
175
+ ]
176
+ },
177
+ $
178
+ ) : null
179
+ ]
180
+ }
181
+ ) });
182
+ };
183
+ je.displayName = re;
184
+ var qe = "SelectTrigger", Ge = s.forwardRef(
185
+ (t, e) => {
186
+ const { __scopeSelect: o, disabled: n = !1, ...i } = t, f = Se(o), c = X(qe, o), a = c.disabled || n, l = G(e, c.onTriggerChange), h = ge(o), g = s.useRef("touch"), [w, N, b] = yt((r) => {
187
+ const d = h().filter((m) => !m.disabled), p = d.find((m) => m.value === c.value), u = wt(d, r, p);
188
+ u !== void 0 && c.onValueChange(u.value);
189
+ }), I = (r) => {
190
+ a || (c.onOpenChange(!0), b()), r && (c.triggerPointerDownPosRef.current = {
191
+ x: Math.round(r.pageX),
192
+ y: Math.round(r.pageY)
193
+ });
194
+ };
195
+ return /* @__PURE__ */ v(Kt, { asChild: !0, ...f, children: /* @__PURE__ */ v(
196
+ W.button,
197
+ {
198
+ type: "button",
199
+ role: "combobox",
200
+ "aria-controls": c.contentId,
201
+ "aria-expanded": c.open,
202
+ "aria-required": c.required,
203
+ "aria-autocomplete": "none",
204
+ dir: c.dir,
205
+ "data-state": c.open ? "open" : "closed",
206
+ disabled: a,
207
+ "data-disabled": a ? "" : void 0,
208
+ "data-placeholder": St(c.value) ? "" : void 0,
209
+ ...i,
210
+ ref: l,
211
+ onClick: A(i.onClick, (r) => {
212
+ r.currentTarget.focus(), g.current !== "mouse" && I(r);
213
+ }),
214
+ onPointerDown: A(i.onPointerDown, (r) => {
215
+ g.current = r.pointerType;
216
+ const d = r.target;
217
+ d.hasPointerCapture(r.pointerId) && d.releasePointerCapture(r.pointerId), r.button === 0 && r.ctrlKey === !1 && r.pointerType === "mouse" && (I(r), r.preventDefault());
218
+ }),
219
+ onKeyDown: A(i.onKeyDown, (r) => {
220
+ const d = w.current !== "";
221
+ !(r.ctrlKey || r.altKey || r.metaKey) && r.key.length === 1 && N(r.key), !(d && r.key === " ") && ao.includes(r.key) && (I(), r.preventDefault());
222
+ })
223
+ }
224
+ ) });
225
+ }
226
+ );
227
+ Ge.displayName = qe;
228
+ var Ye = "SelectValue", Ze = s.forwardRef(
229
+ (t, e) => {
230
+ const { __scopeSelect: o, className: n, style: i, children: f, placeholder: c = "", ...a } = t, l = X(Ye, o), { onValueNodeHasChildrenChange: h } = l, g = f !== void 0, w = G(e, l.onValueNodeChange);
231
+ return Y(() => {
232
+ h(g);
233
+ }, [h, g]), /* @__PURE__ */ v(
234
+ W.span,
235
+ {
236
+ ...a,
237
+ ref: w,
238
+ style: { pointerEvents: "none" },
239
+ children: St(l.value) ? /* @__PURE__ */ v(Me, { children: c }) : f
240
+ }
241
+ );
242
+ }
243
+ );
244
+ Ze.displayName = Ye;
245
+ var mo = "SelectIcon", Xe = s.forwardRef(
246
+ (t, e) => {
247
+ const { __scopeSelect: o, children: n, ...i } = t;
248
+ return /* @__PURE__ */ v(W.span, { "aria-hidden": !0, ...i, ref: e, children: n || "▼" });
249
+ }
250
+ );
251
+ Xe.displayName = mo;
252
+ var ho = "SelectPortal", Je = (t) => /* @__PURE__ */ v(Wt, { asChild: !0, ...t });
253
+ Je.displayName = ho;
254
+ var ne = "SelectContent", Qe = s.forwardRef(
255
+ (t, e) => {
256
+ const o = X(ne, t.__scopeSelect), [n, i] = s.useState();
257
+ if (Y(() => {
258
+ i(new DocumentFragment());
259
+ }, []), !o.open) {
260
+ const f = n;
261
+ return f ? Ue.createPortal(
262
+ /* @__PURE__ */ v(et, { scope: t.__scopeSelect, children: /* @__PURE__ */ v(ve.Slot, { scope: t.__scopeSelect, children: /* @__PURE__ */ v("div", { children: t.children }) }) }),
263
+ f
264
+ ) : null;
265
+ }
266
+ return /* @__PURE__ */ v(tt, { ...t, ref: e });
267
+ }
268
+ );
269
+ Qe.displayName = ne;
270
+ var K = 10, [et, J] = ce(ne), vo = "SelectContentImpl", go = /* @__PURE__ */ to("SelectContent.RemoveScroll"), tt = s.forwardRef(
271
+ (t, e) => {
272
+ const {
273
+ __scopeSelect: o,
274
+ position: n = "item-aligned",
275
+ onCloseAutoFocus: i,
276
+ onEscapeKeyDown: f,
277
+ onPointerDownOutside: c,
278
+ //
279
+ // PopperContent props
280
+ side: a,
281
+ sideOffset: l,
282
+ align: h,
283
+ alignOffset: g,
284
+ arrowPadding: w,
285
+ collisionBoundary: N,
286
+ collisionPadding: b,
287
+ sticky: I,
288
+ hideWhenDetached: r,
289
+ avoidCollisions: d,
290
+ //
291
+ ...p
292
+ } = t, u = X(ne, o), [m, x] = s.useState(null), [S, T] = s.useState(null), C = G(e, (y) => x(y)), [O, M] = s.useState(null), [B, L] = s.useState(
293
+ null
294
+ ), F = ge(o), [j, U] = s.useState(!1), $ = s.useRef(!1);
295
+ s.useEffect(() => {
296
+ if (m) return Bt(m);
297
+ }, [m]), Ht();
298
+ const D = s.useCallback(
299
+ (y) => {
300
+ const [E, ...V] = F().map((_) => _.ref.current), [P] = V.slice(-1), R = document.activeElement;
301
+ for (const _ of y)
302
+ if (_ === R || (_ == null || _.scrollIntoView({ block: "nearest" }), _ === E && S && (S.scrollTop = 0), _ === P && S && (S.scrollTop = S.scrollHeight), _ == null || _.focus(), document.activeElement !== R)) return;
303
+ },
304
+ [F, S]
305
+ ), z = s.useCallback(
306
+ () => D([O, m]),
307
+ [D, O, m]
308
+ );
309
+ s.useEffect(() => {
310
+ j && z();
311
+ }, [j, z]);
312
+ const { onOpenChange: k, triggerPointerDownPosRef: q } = u;
313
+ s.useEffect(() => {
314
+ if (m) {
315
+ let y = { x: 0, y: 0 };
316
+ const E = (P) => {
317
+ var R, _;
318
+ y = {
319
+ x: Math.abs(Math.round(P.pageX) - (((R = q.current) == null ? void 0 : R.x) ?? 0)),
320
+ y: Math.abs(Math.round(P.pageY) - (((_ = q.current) == null ? void 0 : _.y) ?? 0))
321
+ };
322
+ }, V = (P) => {
323
+ y.x <= 10 && y.y <= 10 ? P.preventDefault() : m.contains(P.target) || k(!1), document.removeEventListener("pointermove", E), q.current = null;
324
+ };
325
+ return q.current !== null && (document.addEventListener("pointermove", E), document.addEventListener("pointerup", V, { capture: !0, once: !0 })), () => {
326
+ document.removeEventListener("pointermove", E), document.removeEventListener("pointerup", V, { capture: !0 });
327
+ };
328
+ }
329
+ }, [m, k, q]), s.useEffect(() => {
330
+ const y = () => k(!1);
331
+ return window.addEventListener("blur", y), window.addEventListener("resize", y), () => {
332
+ window.removeEventListener("blur", y), window.removeEventListener("resize", y);
333
+ };
334
+ }, [k]);
335
+ const [ie, se] = yt((y) => {
336
+ const E = F().filter((R) => !R.disabled), V = E.find((R) => R.ref.current === document.activeElement), P = wt(E, y, V);
337
+ P && setTimeout(() => P.ref.current.focus());
338
+ }), de = s.useCallback(
339
+ (y, E, V) => {
340
+ const P = !$.current && !V;
341
+ (u.value !== void 0 && u.value === E || P) && (M(y), P && ($.current = !0));
342
+ },
343
+ [u.value]
344
+ ), ae = s.useCallback(() => m == null ? void 0 : m.focus(), [m]), H = s.useCallback(
345
+ (y, E, V) => {
346
+ const P = !$.current && !V;
347
+ (u.value !== void 0 && u.value === E || P) && L(y);
348
+ },
349
+ [u.value]
350
+ ), Q = n === "popper" ? Re : ot, ue = Q === Re ? {
351
+ side: a,
352
+ sideOffset: l,
353
+ align: h,
354
+ alignOffset: g,
355
+ arrowPadding: w,
356
+ collisionBoundary: N,
357
+ collisionPadding: b,
358
+ sticky: I,
359
+ hideWhenDetached: r,
360
+ avoidCollisions: d
361
+ } : {};
362
+ return /* @__PURE__ */ v(
363
+ et,
364
+ {
365
+ scope: o,
366
+ content: m,
367
+ viewport: S,
368
+ onViewportChange: T,
369
+ itemRefCallback: de,
370
+ selectedItem: O,
371
+ onItemLeave: ae,
372
+ itemTextRefCallback: H,
373
+ focusSelectedItem: z,
374
+ selectedItemText: B,
375
+ position: n,
376
+ isPositioned: j,
377
+ searchRef: ie,
378
+ children: /* @__PURE__ */ v(Ft, { as: go, allowPinchZoom: !0, children: /* @__PURE__ */ v(
379
+ Ut,
380
+ {
381
+ asChild: !0,
382
+ trapped: u.open,
383
+ onMountAutoFocus: (y) => {
384
+ y.preventDefault();
385
+ },
386
+ onUnmountAutoFocus: A(i, (y) => {
387
+ var E;
388
+ (E = u.trigger) == null || E.focus({ preventScroll: !0 }), y.preventDefault();
389
+ }),
390
+ children: /* @__PURE__ */ v(
391
+ Vt,
392
+ {
393
+ asChild: !0,
394
+ disableOutsidePointerEvents: !0,
395
+ onEscapeKeyDown: f,
396
+ onPointerDownOutside: c,
397
+ onFocusOutside: (y) => y.preventDefault(),
398
+ onDismiss: () => u.onOpenChange(!1),
399
+ children: /* @__PURE__ */ v(
400
+ Q,
401
+ {
402
+ role: "listbox",
403
+ id: u.contentId,
404
+ "data-state": u.open ? "open" : "closed",
405
+ dir: u.dir,
406
+ onContextMenu: (y) => y.preventDefault(),
407
+ ...p,
408
+ ...ue,
409
+ onPlaced: () => U(!0),
410
+ ref: C,
411
+ style: {
412
+ // flex layout so we can place the scroll buttons properly
413
+ display: "flex",
414
+ flexDirection: "column",
415
+ // reset the outline by default as the content MAY get focused
416
+ outline: "none",
417
+ ...p.style
418
+ },
419
+ onKeyDown: A(p.onKeyDown, (y) => {
420
+ const E = y.ctrlKey || y.altKey || y.metaKey;
421
+ if (y.key === "Tab" && y.preventDefault(), !E && y.key.length === 1 && se(y.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(y.key)) {
422
+ let P = F().filter((R) => !R.disabled).map((R) => R.ref.current);
423
+ if (["ArrowUp", "End"].includes(y.key) && (P = P.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(y.key)) {
424
+ const R = y.target, _ = P.indexOf(R);
425
+ P = P.slice(_ + 1);
426
+ }
427
+ setTimeout(() => D(P)), y.preventDefault();
428
+ }
429
+ })
430
+ }
431
+ )
432
+ }
433
+ )
434
+ }
435
+ ) })
436
+ }
437
+ );
438
+ }
439
+ );
440
+ tt.displayName = vo;
441
+ var So = "SelectItemAlignedPosition", ot = s.forwardRef((t, e) => {
442
+ const { __scopeSelect: o, onPlaced: n, ...i } = t, f = X(ne, o), c = J(ne, o), [a, l] = s.useState(null), [h, g] = s.useState(null), w = G(e, (C) => g(C)), N = ge(o), b = s.useRef(!1), I = s.useRef(!0), { viewport: r, selectedItem: d, selectedItemText: p, focusSelectedItem: u } = c, m = s.useCallback(() => {
443
+ if (f.trigger && f.valueNode && a && h && r && d && p) {
444
+ const C = f.trigger.getBoundingClientRect(), O = h.getBoundingClientRect(), M = f.valueNode.getBoundingClientRect(), B = p.getBoundingClientRect();
445
+ if (f.dir !== "rtl") {
446
+ const R = B.left - O.left, _ = M.left - R, ee = C.left - _, te = C.width + ee, ye = Math.max(te, O.width), we = window.innerWidth - K, Ie = Le(_, [
447
+ K,
448
+ // Prevents the content from going off the starting edge of the
449
+ // viewport. It may still go off the ending edge, but this can be
450
+ // controlled by the user since they may want to manage overflow in a
451
+ // specific way.
452
+ // https://github.com/radix-ui/primitives/issues/2049
453
+ Math.max(K, we - ye)
454
+ ]);
455
+ a.style.minWidth = te + "px", a.style.left = Ie + "px";
456
+ } else {
457
+ const R = O.right - B.right, _ = window.innerWidth - M.right - R, ee = window.innerWidth - C.right - _, te = C.width + ee, ye = Math.max(te, O.width), we = window.innerWidth - K, Ie = Le(_, [
458
+ K,
459
+ Math.max(K, we - ye)
460
+ ]);
461
+ a.style.minWidth = te + "px", a.style.right = Ie + "px";
462
+ }
463
+ const L = N(), F = window.innerHeight - K * 2, j = r.scrollHeight, U = window.getComputedStyle(h), $ = parseInt(U.borderTopWidth, 10), D = parseInt(U.paddingTop, 10), z = parseInt(U.borderBottomWidth, 10), k = parseInt(U.paddingBottom, 10), q = $ + D + j + k + z, ie = Math.min(d.offsetHeight * 5, q), se = window.getComputedStyle(r), de = parseInt(se.paddingTop, 10), ae = parseInt(se.paddingBottom, 10), H = C.top + C.height / 2 - K, Q = F - H, ue = d.offsetHeight / 2, y = d.offsetTop + ue, E = $ + D + y, V = q - E;
464
+ if (E <= H) {
465
+ const R = L.length > 0 && d === L[L.length - 1].ref.current;
466
+ a.style.bottom = "0px";
467
+ const _ = h.clientHeight - r.offsetTop - r.offsetHeight, ee = Math.max(
468
+ Q,
469
+ ue + // viewport might have padding bottom, include it to avoid a scrollable viewport
470
+ (R ? ae : 0) + _ + z
471
+ ), te = E + ee;
472
+ a.style.height = te + "px";
473
+ } else {
474
+ const R = L.length > 0 && d === L[0].ref.current;
475
+ a.style.top = "0px";
476
+ const ee = Math.max(
477
+ H,
478
+ $ + r.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
479
+ (R ? de : 0) + ue
480
+ ) + V;
481
+ a.style.height = ee + "px", r.scrollTop = E - H + r.offsetTop;
482
+ }
483
+ a.style.margin = `${K}px 0`, a.style.minHeight = ie + "px", a.style.maxHeight = F + "px", n == null || n(), requestAnimationFrame(() => b.current = !0);
484
+ }
485
+ }, [
486
+ N,
487
+ f.trigger,
488
+ f.valueNode,
489
+ a,
490
+ h,
491
+ r,
492
+ d,
493
+ p,
494
+ f.dir,
495
+ n
496
+ ]);
497
+ Y(() => m(), [m]);
498
+ const [x, S] = s.useState();
499
+ Y(() => {
500
+ h && S(window.getComputedStyle(h).zIndex);
501
+ }, [h]);
502
+ const T = s.useCallback(
503
+ (C) => {
504
+ C && I.current === !0 && (m(), u == null || u(), I.current = !1);
505
+ },
506
+ [m, u]
507
+ );
508
+ return /* @__PURE__ */ v(
509
+ wo,
510
+ {
511
+ scope: o,
512
+ contentWrapper: a,
513
+ shouldExpandOnScrollRef: b,
514
+ onScrollButtonChange: T,
515
+ children: /* @__PURE__ */ v(
516
+ "div",
517
+ {
518
+ ref: l,
519
+ style: {
520
+ display: "flex",
521
+ flexDirection: "column",
522
+ position: "fixed",
523
+ zIndex: x
524
+ },
525
+ children: /* @__PURE__ */ v(
526
+ W.div,
527
+ {
528
+ ...i,
529
+ ref: w,
530
+ style: {
531
+ // When we get the height of the content, it includes borders. If we were to set
532
+ // the height without having `boxSizing: 'border-box'` it would be too big.
533
+ boxSizing: "border-box",
534
+ // We need to ensure the content doesn't get taller than the wrapper
535
+ maxHeight: "100%",
536
+ ...i.style
537
+ }
538
+ }
539
+ )
540
+ }
541
+ )
542
+ }
543
+ );
544
+ });
545
+ ot.displayName = So;
546
+ var yo = "SelectPopperPosition", Re = s.forwardRef((t, e) => {
547
+ const {
548
+ __scopeSelect: o,
549
+ align: n = "start",
550
+ collisionPadding: i = K,
551
+ ...f
552
+ } = t, c = Se(o);
553
+ return /* @__PURE__ */ v(
554
+ jt,
555
+ {
556
+ ...c,
557
+ ...f,
558
+ ref: e,
559
+ align: n,
560
+ collisionPadding: i,
561
+ style: {
562
+ // Ensure border-box for floating-ui calculations
563
+ boxSizing: "border-box",
564
+ ...f.style,
565
+ "--radix-select-content-transform-origin": "var(--radix-popper-transform-origin)",
566
+ "--radix-select-content-available-width": "var(--radix-popper-available-width)",
567
+ "--radix-select-content-available-height": "var(--radix-popper-available-height)",
568
+ "--radix-select-trigger-width": "var(--radix-popper-anchor-width)",
569
+ "--radix-select-trigger-height": "var(--radix-popper-anchor-height)"
570
+ }
571
+ }
572
+ );
573
+ });
574
+ Re.displayName = yo;
575
+ var [wo, De] = ce(ne, {}), _e = "SelectViewport", rt = s.forwardRef(
576
+ (t, e) => {
577
+ const { __scopeSelect: o, nonce: n, ...i } = t, f = J(_e, o), c = De(_e, o), a = G(e, f.onViewportChange), l = s.useRef(0);
578
+ return /* @__PURE__ */ oe(Me, { children: [
579
+ /* @__PURE__ */ v(
580
+ "style",
581
+ {
582
+ dangerouslySetInnerHTML: {
583
+ __html: "[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"
584
+ },
585
+ nonce: n
586
+ }
587
+ ),
588
+ /* @__PURE__ */ v(ve.Slot, { scope: o, children: /* @__PURE__ */ v(
589
+ W.div,
590
+ {
591
+ "data-radix-select-viewport": "",
592
+ role: "presentation",
593
+ ...i,
594
+ ref: a,
595
+ style: {
596
+ // we use position: 'relative' here on the `viewport` so that when we call
597
+ // `selectedItem.offsetTop` in calculations, the offset is relative to the viewport
598
+ // (independent of the scrollUpButton).
599
+ position: "relative",
600
+ flex: 1,
601
+ // Viewport should only be scrollable in the vertical direction.
602
+ // This won't work in vertical writing modes, so we'll need to
603
+ // revisit this if/when that is supported
604
+ // https://developer.chrome.com/blog/vertical-form-controls
605
+ overflow: "hidden auto",
606
+ ...i.style
607
+ },
608
+ onScroll: A(i.onScroll, (h) => {
609
+ const g = h.currentTarget, { contentWrapper: w, shouldExpandOnScrollRef: N } = c;
610
+ if (N != null && N.current && w) {
611
+ const b = Math.abs(l.current - g.scrollTop);
612
+ if (b > 0) {
613
+ const I = window.innerHeight - K * 2, r = parseFloat(w.style.minHeight), d = parseFloat(w.style.height), p = Math.max(r, d);
614
+ if (p < I) {
615
+ const u = p + b, m = Math.min(I, u), x = u - m;
616
+ w.style.height = m + "px", w.style.bottom === "0px" && (g.scrollTop = x > 0 ? x : 0, w.style.justifyContent = "flex-end");
617
+ }
618
+ }
619
+ }
620
+ l.current = g.scrollTop;
621
+ })
622
+ }
623
+ ) })
624
+ ] });
625
+ }
626
+ );
627
+ rt.displayName = _e;
628
+ var nt = "SelectGroup", [Io, Co] = ce(nt), it = s.forwardRef(
629
+ (t, e) => {
630
+ const { __scopeSelect: o, ...n } = t, i = Ae();
631
+ return /* @__PURE__ */ v(Io, { scope: o, id: i, children: /* @__PURE__ */ v(W.div, { role: "group", "aria-labelledby": i, ...n, ref: e }) });
632
+ }
633
+ );
634
+ it.displayName = nt;
635
+ var st = "SelectLabel", at = s.forwardRef(
636
+ (t, e) => {
637
+ const { __scopeSelect: o, ...n } = t, i = Co(st, o);
638
+ return /* @__PURE__ */ v(W.div, { id: i.id, ...n, ref: e });
639
+ }
640
+ );
641
+ at.displayName = st;
642
+ var he = "SelectItem", [bo, lt] = ce(he), ct = s.forwardRef(
643
+ (t, e) => {
644
+ const {
645
+ __scopeSelect: o,
646
+ value: n,
647
+ disabled: i = !1,
648
+ textValue: f,
649
+ ...c
650
+ } = t, a = X(he, o), l = J(he, o), h = a.value === n, [g, w] = s.useState(f ?? ""), [N, b] = s.useState(!1), I = G(
651
+ e,
652
+ (u) => {
653
+ var m;
654
+ return (m = l.itemRefCallback) == null ? void 0 : m.call(l, u, n, i);
655
+ }
656
+ ), r = Ae(), d = s.useRef("touch"), p = () => {
657
+ i || (a.onValueChange(n), a.onOpenChange(!1));
658
+ };
659
+ if (n === "")
660
+ throw new Error(
661
+ "A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."
662
+ );
663
+ return /* @__PURE__ */ v(
664
+ bo,
665
+ {
666
+ scope: o,
667
+ value: n,
668
+ disabled: i,
669
+ textId: r,
670
+ isSelected: h,
671
+ onItemTextChange: s.useCallback((u) => {
672
+ w((m) => m || ((u == null ? void 0 : u.textContent) ?? "").trim());
673
+ }, []),
674
+ children: /* @__PURE__ */ v(
675
+ ve.ItemSlot,
676
+ {
677
+ scope: o,
678
+ value: n,
679
+ disabled: i,
680
+ textValue: g,
681
+ children: /* @__PURE__ */ v(
682
+ W.div,
683
+ {
684
+ role: "option",
685
+ "aria-labelledby": r,
686
+ "data-highlighted": N ? "" : void 0,
687
+ "aria-selected": h && N,
688
+ "data-state": h ? "checked" : "unchecked",
689
+ "aria-disabled": i || void 0,
690
+ "data-disabled": i ? "" : void 0,
691
+ tabIndex: i ? void 0 : -1,
692
+ ...c,
693
+ ref: I,
694
+ onFocus: A(c.onFocus, () => b(!0)),
695
+ onBlur: A(c.onBlur, () => b(!1)),
696
+ onClick: A(c.onClick, () => {
697
+ d.current !== "mouse" && p();
698
+ }),
699
+ onPointerUp: A(c.onPointerUp, () => {
700
+ d.current === "mouse" && p();
701
+ }),
702
+ onPointerDown: A(c.onPointerDown, (u) => {
703
+ d.current = u.pointerType;
704
+ }),
705
+ onPointerMove: A(c.onPointerMove, (u) => {
706
+ var m;
707
+ d.current = u.pointerType, i ? (m = l.onItemLeave) == null || m.call(l) : d.current === "mouse" && u.currentTarget.focus({ preventScroll: !0 });
708
+ }),
709
+ onPointerLeave: A(c.onPointerLeave, (u) => {
710
+ var m;
711
+ u.currentTarget === document.activeElement && ((m = l.onItemLeave) == null || m.call(l));
712
+ }),
713
+ onKeyDown: A(c.onKeyDown, (u) => {
714
+ var x;
715
+ ((x = l.searchRef) == null ? void 0 : x.current) !== "" && u.key === " " || (lo.includes(u.key) && p(), u.key === " " && u.preventDefault());
716
+ })
717
+ }
718
+ )
719
+ }
720
+ )
721
+ }
722
+ );
723
+ }
724
+ );
725
+ ct.displayName = he;
726
+ var pe = "SelectItemText", dt = s.forwardRef(
727
+ (t, e) => {
728
+ const { __scopeSelect: o, className: n, style: i, ...f } = t, c = X(pe, o), a = J(pe, o), l = lt(pe, o), h = fo(pe, o), [g, w] = s.useState(null), N = G(
729
+ e,
730
+ (p) => w(p),
731
+ l.onItemTextChange,
732
+ (p) => {
733
+ var u;
734
+ return (u = a.itemTextRefCallback) == null ? void 0 : u.call(a, p, l.value, l.disabled);
735
+ }
736
+ ), b = g == null ? void 0 : g.textContent, I = s.useMemo(
737
+ () => /* @__PURE__ */ v("option", { value: l.value, disabled: l.disabled, children: b }, l.value),
738
+ [l.disabled, l.value, b]
739
+ ), { onNativeOptionAdd: r, onNativeOptionRemove: d } = h;
740
+ return Y(() => (r(I), () => d(I)), [r, d, I]), /* @__PURE__ */ oe(Me, { children: [
741
+ /* @__PURE__ */ v(W.span, { id: l.textId, ...f, ref: N }),
742
+ l.isSelected && c.valueNode && !c.valueNodeHasChildren ? Ue.createPortal(f.children, c.valueNode) : null
743
+ ] });
744
+ }
745
+ );
746
+ dt.displayName = pe;
747
+ var ut = "SelectItemIndicator", pt = s.forwardRef(
748
+ (t, e) => {
749
+ const { __scopeSelect: o, ...n } = t;
750
+ return lt(ut, o).isSelected ? /* @__PURE__ */ v(W.span, { "aria-hidden": !0, ...n, ref: e }) : null;
751
+ }
752
+ );
753
+ pt.displayName = ut;
754
+ var Pe = "SelectScrollUpButton", ft = s.forwardRef((t, e) => {
755
+ const o = J(Pe, t.__scopeSelect), n = De(Pe, t.__scopeSelect), [i, f] = s.useState(!1), c = G(e, n.onScrollButtonChange);
756
+ return Y(() => {
757
+ if (o.viewport && o.isPositioned) {
758
+ let a = function() {
759
+ const h = l.scrollTop > 0;
760
+ f(h);
761
+ };
762
+ const l = o.viewport;
763
+ return a(), l.addEventListener("scroll", a), () => l.removeEventListener("scroll", a);
764
+ }
765
+ }, [o.viewport, o.isPositioned]), i ? /* @__PURE__ */ v(
766
+ ht,
767
+ {
768
+ ...t,
769
+ ref: c,
770
+ onAutoScroll: () => {
771
+ const { viewport: a, selectedItem: l } = o;
772
+ a && l && (a.scrollTop = a.scrollTop - l.offsetHeight);
773
+ }
774
+ }
775
+ ) : null;
776
+ });
777
+ ft.displayName = Pe;
778
+ var Ee = "SelectScrollDownButton", mt = s.forwardRef((t, e) => {
779
+ const o = J(Ee, t.__scopeSelect), n = De(Ee, t.__scopeSelect), [i, f] = s.useState(!1), c = G(e, n.onScrollButtonChange);
780
+ return Y(() => {
781
+ if (o.viewport && o.isPositioned) {
782
+ let a = function() {
783
+ const h = l.scrollHeight - l.clientHeight, g = Math.ceil(l.scrollTop) < h;
784
+ f(g);
785
+ };
786
+ const l = o.viewport;
787
+ return a(), l.addEventListener("scroll", a), () => l.removeEventListener("scroll", a);
788
+ }
789
+ }, [o.viewport, o.isPositioned]), i ? /* @__PURE__ */ v(
790
+ ht,
791
+ {
792
+ ...t,
793
+ ref: c,
794
+ onAutoScroll: () => {
795
+ const { viewport: a, selectedItem: l } = o;
796
+ a && l && (a.scrollTop = a.scrollTop + l.offsetHeight);
797
+ }
798
+ }
799
+ ) : null;
800
+ });
801
+ mt.displayName = Ee;
802
+ var ht = s.forwardRef((t, e) => {
803
+ const { __scopeSelect: o, onAutoScroll: n, ...i } = t, f = J("SelectScrollButton", o), c = s.useRef(null), a = ge(o), l = s.useCallback(() => {
804
+ c.current !== null && (window.clearInterval(c.current), c.current = null);
805
+ }, []);
806
+ return s.useEffect(() => () => l(), [l]), Y(() => {
807
+ var g;
808
+ const h = a().find((w) => w.ref.current === document.activeElement);
809
+ (g = h == null ? void 0 : h.ref.current) == null || g.scrollIntoView({ block: "nearest" });
810
+ }, [a]), /* @__PURE__ */ v(
811
+ W.div,
812
+ {
813
+ "aria-hidden": !0,
814
+ ...i,
815
+ ref: e,
816
+ style: { flexShrink: 0, ...i.style },
817
+ onPointerDown: A(i.onPointerDown, () => {
818
+ c.current === null && (c.current = window.setInterval(n, 50));
819
+ }),
820
+ onPointerMove: A(i.onPointerMove, () => {
821
+ var h;
822
+ (h = f.onItemLeave) == null || h.call(f), c.current === null && (c.current = window.setInterval(n, 50));
823
+ }),
824
+ onPointerLeave: A(i.onPointerLeave, () => {
825
+ l();
826
+ })
827
+ }
828
+ );
829
+ }), xo = "SelectSeparator", vt = s.forwardRef(
830
+ (t, e) => {
831
+ const { __scopeSelect: o, ...n } = t;
832
+ return /* @__PURE__ */ v(W.div, { "aria-hidden": !0, ...n, ref: e });
833
+ }
834
+ );
835
+ vt.displayName = xo;
836
+ var Oe = "SelectArrow", To = s.forwardRef(
837
+ (t, e) => {
838
+ const { __scopeSelect: o, ...n } = t, i = Se(o), f = X(Oe, o), c = J(Oe, o);
839
+ return f.open && c.position === "popper" ? /* @__PURE__ */ v(qt, { ...i, ...n, ref: e }) : null;
840
+ }
841
+ );
842
+ To.displayName = Oe;
843
+ var No = "SelectBubbleInput", gt = s.forwardRef(
844
+ ({ __scopeSelect: t, value: e, ...o }, n) => {
845
+ const i = s.useRef(null), f = G(n, i), c = eo(e);
846
+ return s.useEffect(() => {
847
+ const a = i.current;
848
+ if (!a) return;
849
+ const l = window.HTMLSelectElement.prototype, g = Object.getOwnPropertyDescriptor(
850
+ l,
851
+ "value"
852
+ ).set;
853
+ if (c !== e && g) {
854
+ const w = new Event("change", { bubbles: !0 });
855
+ g.call(a, e), a.dispatchEvent(w);
856
+ }
857
+ }, [c, e]), /* @__PURE__ */ v(
858
+ W.select,
859
+ {
860
+ ...o,
861
+ style: { ...Yt, ...o.style },
862
+ ref: f,
863
+ defaultValue: e
864
+ }
865
+ );
866
+ }
867
+ );
868
+ gt.displayName = No;
869
+ function St(t) {
870
+ return t === "" || t === void 0;
871
+ }
872
+ function yt(t) {
873
+ const e = Gt(t), o = s.useRef(""), n = s.useRef(0), i = s.useCallback(
874
+ (c) => {
875
+ const a = o.current + c;
876
+ e(a), (function l(h) {
877
+ o.current = h, window.clearTimeout(n.current), h !== "" && (n.current = window.setTimeout(() => l(""), 1e3));
878
+ })(a);
879
+ },
880
+ [e]
881
+ ), f = s.useCallback(() => {
882
+ o.current = "", window.clearTimeout(n.current);
883
+ }, []);
884
+ return s.useEffect(() => () => window.clearTimeout(n.current), []), [o, i, f];
885
+ }
886
+ function wt(t, e, o) {
887
+ const i = e.length > 1 && Array.from(e).every((h) => h === e[0]) ? e[0] : e, f = o ? t.indexOf(o) : -1;
888
+ let c = Ro(t, Math.max(f, 0));
889
+ i.length === 1 && (c = c.filter((h) => h !== o));
890
+ const l = c.find(
891
+ (h) => h.textValue.toLowerCase().startsWith(i.toLowerCase())
892
+ );
893
+ return l !== o ? l : void 0;
894
+ }
895
+ function Ro(t, e) {
896
+ return t.map((o, n) => t[(e + n) % t.length]);
897
+ }
898
+ var _o = je, It = Ge, Po = Ze, Eo = Xe, Oo = Je, Ct = Qe, Mo = rt, Ao = it, bt = at, xt = ct, Do = dt, Lo = pt, Tt = ft, Nt = mt, Rt = vt;
899
+ function zo(t, e) {
900
+ t.prototype = Object.create(e.prototype), t.prototype.constructor = t, Ne(t, e);
901
+ }
902
+ var Ve = Number.isNaN || function(e) {
903
+ return typeof e == "number" && e !== e;
904
+ };
905
+ function ko(t, e) {
906
+ return !!(t === e || Ve(t) && Ve(e));
907
+ }
908
+ function Vo(t, e) {
909
+ if (t.length !== e.length)
910
+ return !1;
911
+ for (var o = 0; o < t.length; o++)
912
+ if (!ko(t[o], e[o]))
913
+ return !1;
914
+ return !0;
915
+ }
916
+ function be(t, e) {
917
+ e === void 0 && (e = Vo);
918
+ var o, n = [], i, f = !1;
919
+ function c() {
920
+ for (var a = [], l = 0; l < arguments.length; l++)
921
+ a[l] = arguments[l];
922
+ return f && o === this && e(a, n) || (i = t.apply(this, a), f = !0, o = this, n = a), i;
923
+ }
924
+ return c;
925
+ }
926
+ var Wo = typeof performance == "object" && typeof performance.now == "function", We = Wo ? function() {
927
+ return performance.now();
928
+ } : function() {
929
+ return Date.now();
930
+ };
931
+ function Be(t) {
932
+ cancelAnimationFrame(t.id);
933
+ }
934
+ function Bo(t, e) {
935
+ var o = We();
936
+ function n() {
937
+ We() - o >= e ? t.call(null) : i.id = requestAnimationFrame(n);
938
+ }
939
+ var i = {
940
+ id: requestAnimationFrame(n)
941
+ };
942
+ return i;
943
+ }
944
+ var xe = -1;
945
+ function He(t) {
946
+ if (t === void 0 && (t = !1), xe === -1 || t) {
947
+ var e = document.createElement("div"), o = e.style;
948
+ o.width = "50px", o.height = "50px", o.overflow = "scroll", document.body.appendChild(e), xe = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
949
+ }
950
+ return xe;
951
+ }
952
+ var le = null;
953
+ function Fe(t) {
954
+ if (t === void 0 && (t = !1), le === null || t) {
955
+ var e = document.createElement("div"), o = e.style;
956
+ o.width = "50px", o.height = "50px", o.overflow = "scroll", o.direction = "rtl";
957
+ var n = document.createElement("div"), i = n.style;
958
+ return i.width = "100px", i.height = "100px", e.appendChild(n), document.body.appendChild(e), e.scrollLeft > 0 ? le = "positive-descending" : (e.scrollLeft = 1, e.scrollLeft === 0 ? le = "negative" : le = "positive-ascending"), document.body.removeChild(e), le;
959
+ }
960
+ return le;
961
+ }
962
+ process.env.NODE_ENV;
963
+ var Ho = 150, Fo = function(e, o) {
964
+ return e;
965
+ }, fe = null, me = null;
966
+ process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (fe = /* @__PURE__ */ new WeakSet(), me = /* @__PURE__ */ new WeakSet());
967
+ function Uo(t) {
968
+ var e, o = t.getItemOffset, n = t.getEstimatedTotalSize, i = t.getItemSize, f = t.getOffsetForIndexAndAlignment, c = t.getStartIndexForOffset, a = t.getStopIndexForStartIndex, l = t.initInstanceProps, h = t.shouldResetStyleCacheOnItemSizeChange, g = t.validateProps;
969
+ return e = /* @__PURE__ */ (function(w) {
970
+ zo(N, w);
971
+ function N(I) {
972
+ var r;
973
+ return r = w.call(this, I) || this, r._instanceProps = l(r.props, ke(r)), r._outerRef = void 0, r._resetIsScrollingTimeoutId = null, r.state = {
974
+ instance: ke(r),
975
+ isScrolling: !1,
976
+ scrollDirection: "forward",
977
+ scrollOffset: typeof r.props.initialScrollOffset == "number" ? r.props.initialScrollOffset : 0,
978
+ scrollUpdateWasRequested: !1
979
+ }, r._callOnItemsRendered = void 0, r._callOnItemsRendered = be(function(d, p, u, m) {
980
+ return r.props.onItemsRendered({
981
+ overscanStartIndex: d,
982
+ overscanStopIndex: p,
983
+ visibleStartIndex: u,
984
+ visibleStopIndex: m
985
+ });
986
+ }), r._callOnScroll = void 0, r._callOnScroll = be(function(d, p, u) {
987
+ return r.props.onScroll({
988
+ scrollDirection: d,
989
+ scrollOffset: p,
990
+ scrollUpdateWasRequested: u
991
+ });
992
+ }), r._getItemStyle = void 0, r._getItemStyle = function(d) {
993
+ var p = r.props, u = p.direction, m = p.itemSize, x = p.layout, S = r._getItemStyleCache(h && m, h && x, h && u), T;
994
+ if (S.hasOwnProperty(d))
995
+ T = S[d];
996
+ else {
997
+ var C = o(r.props, d, r._instanceProps), O = i(r.props, d, r._instanceProps), M = u === "horizontal" || x === "horizontal", B = u === "rtl", L = M ? C : 0;
998
+ S[d] = T = {
999
+ position: "absolute",
1000
+ left: B ? void 0 : L,
1001
+ right: B ? L : void 0,
1002
+ top: M ? 0 : C,
1003
+ height: M ? "100%" : O,
1004
+ width: M ? O : "100%"
1005
+ };
1006
+ }
1007
+ return T;
1008
+ }, r._getItemStyleCache = void 0, r._getItemStyleCache = be(function(d, p, u) {
1009
+ return {};
1010
+ }), r._onScrollHorizontal = function(d) {
1011
+ var p = d.currentTarget, u = p.clientWidth, m = p.scrollLeft, x = p.scrollWidth;
1012
+ r.setState(function(S) {
1013
+ if (S.scrollOffset === m)
1014
+ return null;
1015
+ var T = r.props.direction, C = m;
1016
+ if (T === "rtl")
1017
+ switch (Fe()) {
1018
+ case "negative":
1019
+ C = -m;
1020
+ break;
1021
+ case "positive-descending":
1022
+ C = x - u - m;
1023
+ break;
1024
+ }
1025
+ return C = Math.max(0, Math.min(C, x - u)), {
1026
+ isScrolling: !0,
1027
+ scrollDirection: S.scrollOffset < C ? "forward" : "backward",
1028
+ scrollOffset: C,
1029
+ scrollUpdateWasRequested: !1
1030
+ };
1031
+ }, r._resetIsScrollingDebounced);
1032
+ }, r._onScrollVertical = function(d) {
1033
+ var p = d.currentTarget, u = p.clientHeight, m = p.scrollHeight, x = p.scrollTop;
1034
+ r.setState(function(S) {
1035
+ if (S.scrollOffset === x)
1036
+ return null;
1037
+ var T = Math.max(0, Math.min(x, m - u));
1038
+ return {
1039
+ isScrolling: !0,
1040
+ scrollDirection: S.scrollOffset < T ? "forward" : "backward",
1041
+ scrollOffset: T,
1042
+ scrollUpdateWasRequested: !1
1043
+ };
1044
+ }, r._resetIsScrollingDebounced);
1045
+ }, r._outerRefSetter = function(d) {
1046
+ var p = r.props.outerRef;
1047
+ r._outerRef = d, typeof p == "function" ? p(d) : p != null && typeof p == "object" && p.hasOwnProperty("current") && (p.current = d);
1048
+ }, r._resetIsScrollingDebounced = function() {
1049
+ r._resetIsScrollingTimeoutId !== null && Be(r._resetIsScrollingTimeoutId), r._resetIsScrollingTimeoutId = Bo(r._resetIsScrolling, Ho);
1050
+ }, r._resetIsScrolling = function() {
1051
+ r._resetIsScrollingTimeoutId = null, r.setState({
1052
+ isScrolling: !1
1053
+ }, function() {
1054
+ r._getItemStyleCache(-1, null);
1055
+ });
1056
+ }, r;
1057
+ }
1058
+ N.getDerivedStateFromProps = function(r, d) {
1059
+ return $o(r, d), g(r), null;
1060
+ };
1061
+ var b = N.prototype;
1062
+ return b.scrollTo = function(r) {
1063
+ r = Math.max(0, r), this.setState(function(d) {
1064
+ return d.scrollOffset === r ? null : {
1065
+ scrollDirection: d.scrollOffset < r ? "forward" : "backward",
1066
+ scrollOffset: r,
1067
+ scrollUpdateWasRequested: !0
1068
+ };
1069
+ }, this._resetIsScrollingDebounced);
1070
+ }, b.scrollToItem = function(r, d) {
1071
+ d === void 0 && (d = "auto");
1072
+ var p = this.props, u = p.itemCount, m = p.layout, x = this.state.scrollOffset;
1073
+ r = Math.max(0, Math.min(r, u - 1));
1074
+ var S = 0;
1075
+ if (this._outerRef) {
1076
+ var T = this._outerRef;
1077
+ m === "vertical" ? S = T.scrollWidth > T.clientWidth ? He() : 0 : S = T.scrollHeight > T.clientHeight ? He() : 0;
1078
+ }
1079
+ this.scrollTo(f(this.props, r, d, x, this._instanceProps, S));
1080
+ }, b.componentDidMount = function() {
1081
+ var r = this.props, d = r.direction, p = r.initialScrollOffset, u = r.layout;
1082
+ if (typeof p == "number" && this._outerRef != null) {
1083
+ var m = this._outerRef;
1084
+ d === "horizontal" || u === "horizontal" ? m.scrollLeft = p : m.scrollTop = p;
1085
+ }
1086
+ this._callPropsCallbacks();
1087
+ }, b.componentDidUpdate = function() {
1088
+ var r = this.props, d = r.direction, p = r.layout, u = this.state, m = u.scrollOffset, x = u.scrollUpdateWasRequested;
1089
+ if (x && this._outerRef != null) {
1090
+ var S = this._outerRef;
1091
+ if (d === "horizontal" || p === "horizontal")
1092
+ if (d === "rtl")
1093
+ switch (Fe()) {
1094
+ case "negative":
1095
+ S.scrollLeft = -m;
1096
+ break;
1097
+ case "positive-ascending":
1098
+ S.scrollLeft = m;
1099
+ break;
1100
+ default:
1101
+ var T = S.clientWidth, C = S.scrollWidth;
1102
+ S.scrollLeft = C - T - m;
1103
+ break;
1104
+ }
1105
+ else
1106
+ S.scrollLeft = m;
1107
+ else
1108
+ S.scrollTop = m;
1109
+ }
1110
+ this._callPropsCallbacks();
1111
+ }, b.componentWillUnmount = function() {
1112
+ this._resetIsScrollingTimeoutId !== null && Be(this._resetIsScrollingTimeoutId);
1113
+ }, b.render = function() {
1114
+ var r = this.props, d = r.children, p = r.className, u = r.direction, m = r.height, x = r.innerRef, S = r.innerElementType, T = r.innerTagName, C = r.itemCount, O = r.itemData, M = r.itemKey, B = M === void 0 ? Fo : M, L = r.layout, F = r.outerElementType, j = r.outerTagName, U = r.style, $ = r.useIsScrolling, D = r.width, z = this.state.isScrolling, k = u === "horizontal" || L === "horizontal", q = k ? this._onScrollHorizontal : this._onScrollVertical, ie = this._getRangeToRender(), se = ie[0], de = ie[1], ae = [];
1115
+ if (C > 0)
1116
+ for (var H = se; H <= de; H++)
1117
+ ae.push(Ce(d, {
1118
+ data: O,
1119
+ key: B(H, O),
1120
+ index: H,
1121
+ isScrolling: $ ? z : void 0,
1122
+ style: this._getItemStyle(H)
1123
+ }));
1124
+ var Q = n(this.props, this._instanceProps);
1125
+ return Ce(F || j || "div", {
1126
+ className: p,
1127
+ onScroll: q,
1128
+ ref: this._outerRefSetter,
1129
+ style: Te({
1130
+ position: "relative",
1131
+ height: m,
1132
+ width: D,
1133
+ overflow: "auto",
1134
+ WebkitOverflowScrolling: "touch",
1135
+ willChange: "transform",
1136
+ direction: u
1137
+ }, U)
1138
+ }, Ce(S || T || "div", {
1139
+ children: ae,
1140
+ ref: x,
1141
+ style: {
1142
+ height: k ? "100%" : Q,
1143
+ pointerEvents: z ? "none" : void 0,
1144
+ width: k ? Q : "100%"
1145
+ }
1146
+ }));
1147
+ }, b._callPropsCallbacks = function() {
1148
+ if (typeof this.props.onItemsRendered == "function") {
1149
+ var r = this.props.itemCount;
1150
+ if (r > 0) {
1151
+ var d = this._getRangeToRender(), p = d[0], u = d[1], m = d[2], x = d[3];
1152
+ this._callOnItemsRendered(p, u, m, x);
1153
+ }
1154
+ }
1155
+ if (typeof this.props.onScroll == "function") {
1156
+ var S = this.state, T = S.scrollDirection, C = S.scrollOffset, O = S.scrollUpdateWasRequested;
1157
+ this._callOnScroll(T, C, O);
1158
+ }
1159
+ }, b._getRangeToRender = function() {
1160
+ var r = this.props, d = r.itemCount, p = r.overscanCount, u = this.state, m = u.isScrolling, x = u.scrollDirection, S = u.scrollOffset;
1161
+ if (d === 0)
1162
+ return [0, 0, 0, 0];
1163
+ var T = c(this.props, S, this._instanceProps), C = a(this.props, T, S, this._instanceProps), O = !m || x === "backward" ? Math.max(1, p) : 1, M = !m || x === "forward" ? Math.max(1, p) : 1;
1164
+ return [Math.max(0, T - O), Math.max(0, Math.min(d - 1, C + M)), T, C];
1165
+ }, N;
1166
+ })(Mt), e.defaultProps = {
1167
+ direction: "ltr",
1168
+ itemData: void 0,
1169
+ layout: "vertical",
1170
+ overscanCount: 2,
1171
+ useIsScrolling: !1
1172
+ }, e;
1173
+ }
1174
+ var $o = function(e, o) {
1175
+ var n = e.children, i = e.direction, f = e.height, c = e.layout, a = e.innerTagName, l = e.outerTagName, h = e.width, g = o.instance;
1176
+ if (process.env.NODE_ENV !== "production") {
1177
+ (a != null || l != null) && me && !me.has(g) && (me.add(g), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));
1178
+ var w = i === "horizontal" || c === "horizontal";
1179
+ switch (i) {
1180
+ case "horizontal":
1181
+ case "vertical":
1182
+ fe && !fe.has(g) && (fe.add(g), console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));
1183
+ break;
1184
+ case "ltr":
1185
+ case "rtl":
1186
+ break;
1187
+ default:
1188
+ throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". ' + ('"' + i + '" was specified.'));
1189
+ }
1190
+ switch (c) {
1191
+ case "horizontal":
1192
+ case "vertical":
1193
+ break;
1194
+ default:
1195
+ throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". ' + ('"' + c + '" was specified.'));
1196
+ }
1197
+ if (n == null)
1198
+ throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (n === null ? "null" : typeof n) + '" was specified.'));
1199
+ if (w && typeof h != "number")
1200
+ throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. ' + ('"' + (h === null ? "null" : typeof h) + '" was specified.'));
1201
+ if (!w && typeof f != "number")
1202
+ throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. ' + ('"' + (f === null ? "null" : typeof f) + '" was specified.'));
1203
+ }
1204
+ }, Ko = /* @__PURE__ */ Uo({
1205
+ getItemOffset: function(e, o) {
1206
+ var n = e.itemSize;
1207
+ return o * n;
1208
+ },
1209
+ getItemSize: function(e, o) {
1210
+ var n = e.itemSize;
1211
+ return n;
1212
+ },
1213
+ getEstimatedTotalSize: function(e) {
1214
+ var o = e.itemCount, n = e.itemSize;
1215
+ return n * o;
1216
+ },
1217
+ getOffsetForIndexAndAlignment: function(e, o, n, i, f, c) {
1218
+ var a = e.direction, l = e.height, h = e.itemCount, g = e.itemSize, w = e.layout, N = e.width, b = a === "horizontal" || w === "horizontal", I = b ? N : l, r = Math.max(0, h * g - I), d = Math.min(r, o * g), p = Math.max(0, o * g - I + g + c);
1219
+ switch (n === "smart" && (i >= p - I && i <= d + I ? n = "auto" : n = "center"), n) {
1220
+ case "start":
1221
+ return d;
1222
+ case "end":
1223
+ return p;
1224
+ case "center": {
1225
+ var u = Math.round(p + (d - p) / 2);
1226
+ return u < Math.ceil(I / 2) ? 0 : u > r + Math.floor(I / 2) ? r : u;
1227
+ }
1228
+ case "auto":
1229
+ default:
1230
+ return i >= p && i <= d ? i : i < p ? p : d;
1231
+ }
1232
+ },
1233
+ getStartIndexForOffset: function(e, o) {
1234
+ var n = e.itemCount, i = e.itemSize;
1235
+ return Math.max(0, Math.min(n - 1, Math.floor(o / i)));
1236
+ },
1237
+ getStopIndexForStartIndex: function(e, o, n) {
1238
+ var i = e.direction, f = e.height, c = e.itemCount, a = e.itemSize, l = e.layout, h = e.width, g = i === "horizontal" || l === "horizontal", w = o * a, N = g ? h : f, b = Math.ceil((N + n - w) / a);
1239
+ return Math.max(0, Math.min(
1240
+ c - 1,
1241
+ o + b - 1
1242
+ // -1 is because stop index is inclusive
1243
+ ));
1244
+ },
1245
+ initInstanceProps: function(e) {
1246
+ },
1247
+ shouldResetStyleCacheOnItemSizeChange: !0,
1248
+ validateProps: function(e) {
1249
+ var o = e.itemSize;
1250
+ if (process.env.NODE_ENV !== "production" && typeof o != "number")
1251
+ throw Error('An invalid "itemSize" prop has been specified. Value should be a number. ' + ('"' + (o === null ? "null" : typeof o) + '" was specified.'));
1252
+ }
1253
+ });
1254
+ const mr = _o, hr = Ao, vr = Po, jo = s.forwardRef(({ className: t, children: e, variant: o = "default", ...n }, i) => /* @__PURE__ */ oe(
1255
+ It,
1256
+ {
1257
+ ref: i,
1258
+ className: Z(
1259
+ "border-border-alpha-strong focus:ring-primary data-placeholder:[&>span]:text-body-sm-regular! flex h-10 w-full items-center justify-between rounded-lg border px-3 py-2 focus:ring-2 focus:ring-offset-2 focus:ring-offset-transparent focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
1260
+ "focus:ring-offset-bg data-placeholder:[&>span]:text-secondary/70 focus:ring-item-primary focus:ring-2 focus:ring-offset-2",
1261
+ o === "failure" && "focus:ring-destructive border-destructive text-destructive! data-placeholder:[&>span]:text-destructive",
1262
+ t
1263
+ ),
1264
+ ...n,
1265
+ children: [
1266
+ e,
1267
+ /* @__PURE__ */ v(Eo, { asChild: !0, children: /* @__PURE__ */ v(Ke, { className: "h-4 w-4 opacity-50" }) })
1268
+ ]
1269
+ }
1270
+ ));
1271
+ jo.displayName = It.displayName;
1272
+ const _t = s.forwardRef(({ className: t, ...e }, o) => /* @__PURE__ */ v(
1273
+ Tt,
1274
+ {
1275
+ ref: o,
1276
+ className: Z(
1277
+ "flex cursor-default items-center justify-center py-1",
1278
+ t
1279
+ ),
1280
+ ...e,
1281
+ children: /* @__PURE__ */ v(Qt, { className: "size-4" })
1282
+ }
1283
+ ));
1284
+ _t.displayName = Tt.displayName;
1285
+ const Pt = s.forwardRef(({ className: t, ...e }, o) => /* @__PURE__ */ v(
1286
+ Nt,
1287
+ {
1288
+ ref: o,
1289
+ className: Z(
1290
+ "flex cursor-default items-center justify-center py-1",
1291
+ t
1292
+ ),
1293
+ ...e,
1294
+ children: /* @__PURE__ */ v(Ke, { className: "h-4 w-4" })
1295
+ }
1296
+ ));
1297
+ Pt.displayName = Nt.displayName;
1298
+ const Et = s.forwardRef(({ className: t, children: e, position: o = "popper", ...n }, i) => /* @__PURE__ */ v(Oo, { children: /* @__PURE__ */ oe(
1299
+ Ct,
1300
+ {
1301
+ ref: i,
1302
+ className: Z(
1303
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border shadow-md",
1304
+ o === "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",
1305
+ t
1306
+ ),
1307
+ position: o,
1308
+ ...n,
1309
+ children: [
1310
+ /* @__PURE__ */ v(_t, {}),
1311
+ /* @__PURE__ */ v(
1312
+ Mo,
1313
+ {
1314
+ className: Z(
1315
+ "p-1",
1316
+ o === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
1317
+ ),
1318
+ children: e
1319
+ }
1320
+ ),
1321
+ /* @__PURE__ */ v(Pt, {})
1322
+ ]
1323
+ }
1324
+ ) }));
1325
+ Et.displayName = Ct.displayName;
1326
+ const qo = s.forwardRef(({ className: t, ...e }, o) => /* @__PURE__ */ v(
1327
+ bt,
1328
+ {
1329
+ ref: o,
1330
+ className: Z("py-1.5 pr-2 pl-8 text-sm font-semibold", t),
1331
+ ...e
1332
+ }
1333
+ ));
1334
+ qo.displayName = bt.displayName;
1335
+ const Ot = s.forwardRef(({ className: t, children: e, ...o }, n) => /* @__PURE__ */ oe(
1336
+ xt,
1337
+ {
1338
+ ref: n,
1339
+ className: Z(
1340
+ "focus:bg-accent focus:text-accent-foreground relative flex w-full cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1341
+ t
1342
+ ),
1343
+ ...o,
1344
+ children: [
1345
+ /* @__PURE__ */ v("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ v(Lo, { children: /* @__PURE__ */ v(Zt, { className: "h-4 w-4" }) }) }),
1346
+ /* @__PURE__ */ v(Do, { children: e })
1347
+ ]
1348
+ }
1349
+ ));
1350
+ Ot.displayName = xt.displayName;
1351
+ const Go = s.forwardRef(({ className: t, ...e }, o) => /* @__PURE__ */ v(
1352
+ Rt,
1353
+ {
1354
+ ref: o,
1355
+ className: Z("bg-muted -mx-1 my-1 h-px", t),
1356
+ ...e
1357
+ }
1358
+ ));
1359
+ Go.displayName = Rt.displayName;
1360
+ const Yo = s.forwardRef(
1361
+ ({
1362
+ className: t,
1363
+ options: e,
1364
+ position: o = "popper",
1365
+ itemHeight: n = 35,
1366
+ maxHeight: i = 300,
1367
+ ...f
1368
+ }, c) => {
1369
+ const a = At(null), l = ({ index: h, style: g }) => {
1370
+ const w = e[h];
1371
+ return /* @__PURE__ */ v("div", { style: g, children: /* @__PURE__ */ v(Ot, { value: `${w.value}`, children: w.label }) });
1372
+ };
1373
+ return /* @__PURE__ */ v(Et, { ref: c, ...f, children: /* @__PURE__ */ v(
1374
+ Ko,
1375
+ {
1376
+ ref: a,
1377
+ height: Math.min(i, e.length * n),
1378
+ itemCount: e.length,
1379
+ itemSize: n,
1380
+ width: "100%",
1381
+ children: l
1382
+ }
1383
+ ) });
1384
+ }
1385
+ );
1386
+ Yo.displayName = "VirtualizedSelectContent";
1387
+ export {
1388
+ mr as S,
1389
+ Yo as V,
1390
+ Ne as _,
1391
+ Et as a,
1392
+ hr as b,
1393
+ Ot as c,
1394
+ qo as d,
1395
+ Pt as e,
1396
+ _t as f,
1397
+ Go as g,
1398
+ jo as h,
1399
+ vr as i,
1400
+ ke as j,
1401
+ Te as k,
1402
+ eo as u
1403
+ };
1404
+ //# sourceMappingURL=select-BTgKkicD.es.js.map