@midas-ds/components 10.2.0 → 10.3.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 (341) hide show
  1. package/{AccordionItem-Z_c9MpAM.cjs → AccordionItem-BGWiWjxA.cjs} +1 -1
  2. package/{AccordionItem-DZT76sWu.js → AccordionItem-ChHpW8EW.js} +11 -11
  3. package/{BadgeContainer-D3RtqcPF.js → BadgeContainer-DM8TdyMT.js} +4 -4
  4. package/{BadgeContainer-DeUgqGqb.cjs → BadgeContainer-I1XA3OCl.cjs} +1 -1
  5. package/{Breadcrumbs-CmZXtTiS.js → Breadcrumbs-CwDUNIqF.js} +34 -34
  6. package/{Breadcrumbs-Cx09jwZZ.cjs → Breadcrumbs-DtjJ1UmU.cjs} +1 -1
  7. package/{Button-iSiWjocA.cjs → Button-BoJl6JGM.cjs} +1 -1
  8. package/{Button-CbFRzRrF.js → Button-Csih3v23.js} +2 -2
  9. package/Button-DjBChs7s.js +340 -0
  10. package/Button-htW9qIsS.cjs +1 -0
  11. package/Button.module-DEQtBYe5.cjs +1 -0
  12. package/Button.module-tti8HGxs.js +14 -0
  13. package/CHANGELOG.md +20 -0
  14. package/Card-0G0mj9q5.cjs +1 -0
  15. package/{Card-CaKKKv9k.js → Card-yrtGzt70.js} +5 -5
  16. package/CharacterCounter-BL_nZHya.js +22 -0
  17. package/{CharacterCounter-CrY8QRuY.cjs → CharacterCounter-CHcTDHO-.cjs} +1 -1
  18. package/Checkbox-5HINZdGu.js +263 -0
  19. package/Checkbox-DqcPg5hz.cjs +1 -0
  20. package/CheckboxGroup-BBrSMuDY.cjs +1 -0
  21. package/CheckboxGroup-CLgixk2p.js +243 -0
  22. package/{Collection-Csx3L9gh.cjs → Collection-BIDsXNhi.cjs} +1 -1
  23. package/{Collection-C5ONNBqd.js → Collection-Brgjpkne.js} +4 -4
  24. package/{ColorSchemeSwitch-CbAWIJCg.js → ColorSchemeSwitch-BpzQ7g0b.js} +9 -9
  25. package/{ColorSchemeSwitch-JRrCyYVv.cjs → ColorSchemeSwitch-C-qWuqkU.cjs} +2 -2
  26. package/{ComboBox-BCaqPEIH.js → ComboBox-CVDyp2a-.js} +331 -327
  27. package/ComboBox-CWJUg9Xx.cjs +1 -0
  28. package/DateField-DeDhiYnW.cjs +1 -0
  29. package/DateField-DhU3q-rG.js +47 -0
  30. package/DateInputDivider-ADvOavHw.cjs +1 -0
  31. package/{DateInputDivider-Dx8n1Lxp.js → DateInputDivider-CF4xWsMT.js} +71 -75
  32. package/DateRangePicker-BsAHhy99.cjs +6 -0
  33. package/{DateRangePicker-BmBvwqo6.js → DateRangePicker-ziD1_k1W.js} +194 -194
  34. package/Dialog-B8GTYbvu.cjs +1 -0
  35. package/{Dialog-CwTEAujZ.cjs → Dialog-BOrYdX50.cjs} +1 -1
  36. package/{Dialog-Bxx8cBEq.js → Dialog-CXNu48AC.js} +25 -25
  37. package/{Dialog-CYxThuMl.js → Dialog-D14MbJ7o.js} +564 -540
  38. package/{DragAndDrop-HvycSrKY.cjs → DragAndDrop-DNth776R.cjs} +1 -1
  39. package/{DragAndDrop-CSwmPhxC.js → DragAndDrop-o3ruz_SR.js} +8 -8
  40. package/{Dropdown-CaGon9OR.cjs → Dropdown-CJ6My6EI.cjs} +1 -1
  41. package/{Dropdown-nkjzsVYX.js → Dropdown-Df58j43I.js} +2 -2
  42. package/FieldError-CAcjosk_.js +46 -0
  43. package/FieldError-CKBb2-mp.cjs +1 -0
  44. package/{FileUpload-DYRZ0M9F.cjs → FileUpload-CxCOtyB9.cjs} +2 -2
  45. package/{FileUpload-ULwcYDxs.js → FileUpload-D6qoEAjn.js} +149 -148
  46. package/FocusScope-5c9SVBcR.cjs +1 -0
  47. package/{FocusScope-DwIqdYpQ.js → FocusScope-CxkURfoc.js} +16 -16
  48. package/{Group-CeSsSQVC.js → Group-B6EslsHZ.js} +5 -5
  49. package/{Heading-BY5-QN4S.js → Heading-BFtiin0g.js} +7 -7
  50. package/{Heading-DoJAtYZf.cjs → Heading-mHhCbGjY.cjs} +1 -1
  51. package/{Hidden-B5ir3Lei.js → Hidden-C9KWUR7b.js} +2 -2
  52. package/{InfoBanner-CVIBFSWx.js → InfoBanner-BLM-TJJ6.js} +15 -14
  53. package/InfoBanner-C2kTIsrB.cjs +1 -0
  54. package/{Input-D8Ku_FQz.js → Input-BTzwcf72.js} +10 -10
  55. package/Label-7Ybb99CE.cjs +1 -0
  56. package/Label-BwJrdqEE.js +70 -0
  57. package/{Layout-BWeHHnqU.cjs → Layout-1g6bMH62.cjs} +2 -2
  58. package/{Layout-CCt_2L1k.js → Layout-Ey8flY7E.js} +9 -9
  59. package/{Link-DsnCtNeI.cjs → Link-B88l_oaE.cjs} +1 -1
  60. package/{Link-SHMbeyIP.cjs → Link-BQhauBuw.cjs} +1 -1
  61. package/{Link-uFowN4qv.js → Link-DX5BbBnn.js} +1 -1
  62. package/{Link-B-nus-FT.js → Link-yNO2-sqx.js} +17 -17
  63. package/LinkButton-CBpGLETx.cjs +6 -0
  64. package/LinkButton-o6uS1XsR.js +69 -0
  65. package/ListBox-DP9M4H6R.cjs +1 -0
  66. package/{ListBox-DOi_y_Lt.js → ListBox-GnVK_Pdq.js} +72 -73
  67. package/{ListBoxButton-CFeNhJhr.cjs → ListBoxButton-DPBrtXyv.cjs} +1 -1
  68. package/{ListBoxButton-O6zN3P4W.js → ListBoxButton-D_J3jlP0.js} +1 -1
  69. package/{ListBoxSection-DGCP6xpf.cjs → ListBoxSection-BGaigBnG.cjs} +1 -1
  70. package/{ListBoxSection-C1aLKL9p.js → ListBoxSection-C0BGnpB4.js} +9 -9
  71. package/{ListKeyboardDelegate-DNOzQ8nc.js → ListKeyboardDelegate-DNI8GQtX.js} +24 -15
  72. package/ListKeyboardDelegate-DTg9h4v6.cjs +1 -0
  73. package/{OverlayArrow-DorA4Rbr.js → OverlayArrow-CDLXPTew.js} +44 -44
  74. package/Popover-BGGXeD54.js +38 -0
  75. package/Popover-CqNWzPf-.cjs +1 -0
  76. package/{ProgressBar-gmAzSsrz.js → ProgressBar-DMSg-Prr.js} +2 -2
  77. package/ProgressBar-Jbg28j2a.cjs +1 -0
  78. package/Radio-BwqrdhQE.cjs +1 -0
  79. package/{Radio-_ukSkxPT.js → Radio-Cz29wPXd.js} +71 -71
  80. package/RangeCalendar-BehUaydF.cjs +11 -0
  81. package/{RangeCalendar-uXwoBL-O.js → RangeCalendar-RAlAHlNL.js} +25 -27
  82. package/{SearchField-6yBGiojX.cjs → SearchField-CxMwDeUM.cjs} +2 -2
  83. package/{SearchField-DYl2uo7o.js → SearchField-IlvZ3Kh6.js} +11 -11
  84. package/Select-2q1iSzAX.cjs +1 -0
  85. package/{Select-PvCqY7Lp.js → Select-BVQZtoi9.js} +232 -232
  86. package/{SelectionManager-6H88Cv6B.js → SelectionManager-B4ORduja.js} +26 -27
  87. package/SelectionManager-CwYux2h3.cjs +1 -0
  88. package/{Separator-LYnFqh4L.js → Separator-Cu9fYKUM.js} +19 -20
  89. package/Separator-DECIYLtZ.cjs +1 -0
  90. package/{Spinner-DAJtfxqJ.cjs → Spinner-P35rvvsl.cjs} +1 -1
  91. package/Table-B40CGLT-.cjs +16 -0
  92. package/{Table-B_N7wUmA.js → Table-F4oYBtUM.js} +69 -73
  93. package/{Tabs-Ct6D83aR.js → Tabs-B4oZJkZG.js} +39 -39
  94. package/{Tabs-Dtcl2oK2.cjs → Tabs-DA2qXhzb.cjs} +1 -1
  95. package/Tag-DPAGmcMK.cjs +1 -0
  96. package/{Tag-g6HN-YCv.js → Tag-Du7GvSv2.js} +151 -154
  97. package/Text-BoXuUVVH.js +15 -0
  98. package/{Text-BN-g1iWi.js → Text-jWWg0B20.js} +1 -1
  99. package/TextArea-C7JZ_pQd.cjs +1 -0
  100. package/TextArea-XeBCSyzl.js +191 -0
  101. package/TextField-BgNdhZi_.cjs +1 -0
  102. package/{TextField-DBaRuNj7.js → TextField-C-hTPukq.js} +16 -16
  103. package/Toast-AbDA1BOs.cjs +1 -0
  104. package/{Toast-CjpldAI8.js → Toast-Btg21Xge.js} +32 -31
  105. package/{ToggleButtonGroup-Ceh9_yBM.js → ToggleButtonGroup-B5yz1tm2.js} +7 -7
  106. package/{ToggleButtonGroup-BuU_6dYe.cjs → ToggleButtonGroup-BFDoj0P6.cjs} +1 -1
  107. package/{Tooltip-BAIjaYax.js → Tooltip-CMLs7WMw.js} +33 -33
  108. package/{Tooltip-CiWg4zIC.cjs → Tooltip-DeBuBKhS.cjs} +1 -1
  109. package/{VisuallyHidden-CtXvK_Tw.cjs → VisuallyHidden-CLWHbz2n.cjs} +1 -1
  110. package/{VisuallyHidden-D-4z1VgU.js → VisuallyHidden-ZCYf65q4.js} +8 -8
  111. package/accordion/index.cjs +1 -1
  112. package/accordion/index.js +1 -1
  113. package/{arrow-right-Cw48o2oW.cjs → arrow-right-QJ2gXPKQ.cjs} +1 -1
  114. package/assets/Button.css +1 -1
  115. package/assets/Label.css +1 -1
  116. package/assets/LinkButton.css +1 -1
  117. package/assets/Popover.css +1 -0
  118. package/badge/index.cjs +1 -1
  119. package/badge/index.js +1 -1
  120. package/breadcrumbs/index.cjs +1 -1
  121. package/breadcrumbs/index.js +1 -1
  122. package/button/index.cjs +1 -1
  123. package/button/index.js +1 -1
  124. package/calendar/index.cjs +1 -1
  125. package/calendar/index.js +1 -1
  126. package/card/index.cjs +1 -1
  127. package/card/index.js +1 -1
  128. package/character-counter/index.cjs +1 -1
  129. package/character-counter/index.js +1 -1
  130. package/{check-Dw9c62O4.cjs → check-D_KoootC.cjs} +1 -1
  131. package/checkbox/Checkbox.d.ts +2 -2
  132. package/checkbox/CheckboxGroup.d.ts +8 -8
  133. package/checkbox/CheckboxGroupFieldError.d.ts +8 -0
  134. package/checkbox/CheckboxGroupItem.d.ts +3 -0
  135. package/checkbox/CheckboxInner.d.ts +2 -0
  136. package/checkbox/SingleCheckbox.d.ts +3 -0
  137. package/checkbox/context.d.ts +3 -0
  138. package/checkbox/index.cjs +1 -1
  139. package/checkbox/index.d.ts +2 -1
  140. package/checkbox/index.js +2 -2
  141. package/checkbox/intl/translations.json.d.ts +35 -0
  142. package/checkbox/types.d.ts +14 -0
  143. package/checkbox/useSelectAll.d.ts +7 -0
  144. package/{chevron-down-C2E7aZ3N.cjs → chevron-down-jl83cllc.cjs} +1 -1
  145. package/{info-DkzVqB8I.js → circle-check-B9HYcH7Z.js} +4 -16
  146. package/{info-DlzSeKbc.cjs → circle-check-BGo8gML8.cjs} +2 -7
  147. package/color-scheme-switch/index.cjs +1 -1
  148. package/color-scheme-switch/index.js +1 -1
  149. package/combobox/ComboBox.d.ts +3 -1
  150. package/combobox/index.cjs +1 -1
  151. package/combobox/index.js +1 -1
  152. package/{context-B8cn10po.js → context-C81gPYvC.js} +11 -11
  153. package/{createLucideIcon-DAY4oS-S.cjs → createLucideIcon-Cg_wkoIA.cjs} +1 -1
  154. package/date-field/DateField.d.ts +3 -0
  155. package/date-field/index.cjs +1 -1
  156. package/date-field/index.js +2 -2
  157. package/date-picker/DatePicker.d.ts +3 -0
  158. package/date-picker/DateRangePicker.d.ts +3 -0
  159. package/date-picker/index.cjs +1 -1
  160. package/date-picker/index.js +1 -1
  161. package/dropdown/index.cjs +1 -1
  162. package/dropdown/index.js +1 -1
  163. package/field-error/index.cjs +1 -1
  164. package/field-error/index.js +1 -1
  165. package/file-upload/FileUpload.d.ts +3 -0
  166. package/file-upload/index.cjs +1 -1
  167. package/file-upload/index.js +1 -1
  168. package/{getScrollParent-Ru2U2LlM.js → getScrollParent-BhFcYrwL.js} +1 -1
  169. package/{getScrollParent-DuKmPmUa.cjs → getScrollParent-DDJu9WHU.cjs} +1 -1
  170. package/heading/index.cjs +1 -1
  171. package/heading/index.js +1 -1
  172. package/{index-BSMrH_Du.js → index-CGRFP4CC.js} +7 -7
  173. package/{index-D97L3EBk.cjs → index-Dsz3aiWt.cjs} +2 -2
  174. package/index.cjs +1 -1
  175. package/index.d.ts +1 -0
  176. package/index.js +80 -78
  177. package/inertValue-B3AFhVG4.cjs +1 -0
  178. package/info-BZwphdye.js +15 -0
  179. package/info-CIEIENo6.cjs +6 -0
  180. package/info-banner/index.cjs +1 -1
  181. package/info-banner/index.js +1 -1
  182. package/label/InfoPopover.d.ts +9 -0
  183. package/label/LabelWrapper.d.ts +11 -0
  184. package/label/index.cjs +1 -1
  185. package/label/index.d.ts +1 -0
  186. package/label/index.js +1 -1
  187. package/layout/index.cjs +1 -1
  188. package/layout/index.js +1 -1
  189. package/link/index.cjs +1 -1
  190. package/link/index.js +2 -2
  191. package/link-button/index.cjs +1 -1
  192. package/link-button/index.js +2 -2
  193. package/list-box/index.cjs +1 -1
  194. package/list-box/index.js +2 -2
  195. package/modal/index.cjs +1 -1
  196. package/modal/index.js +2 -2
  197. package/package.json +1 -1
  198. package/popover/Popover.d.ts +7 -0
  199. package/popover/index.cjs +1 -0
  200. package/popover/index.d.ts +1 -0
  201. package/popover/index.js +4 -0
  202. package/progress-bar/index.cjs +1 -1
  203. package/progress-bar/index.js +1 -1
  204. package/radio/Radio.d.ts +3 -0
  205. package/radio/index.cjs +1 -1
  206. package/radio/index.js +1 -1
  207. package/scrollIntoView-C8doLzDd.cjs +1 -0
  208. package/scrollIntoView-Hwb_aaNf.js +87 -0
  209. package/search-field/index.cjs +1 -1
  210. package/search-field/index.js +1 -1
  211. package/select/index.cjs +1 -1
  212. package/select/index.js +1 -1
  213. package/spinner/index.cjs +1 -1
  214. package/{square-arrow-out-up-right-BCAO2eJs.cjs → square-arrow-out-up-right-V4Gd08uI.cjs} +1 -1
  215. package/table/index.cjs +1 -1
  216. package/table/index.js +1 -1
  217. package/tabs/index.cjs +1 -1
  218. package/tabs/index.js +1 -1
  219. package/tag/index.cjs +1 -1
  220. package/tag/index.js +1 -1
  221. package/text/index.js +1 -1
  222. package/textfield/TextFieldBase.d.ts +2 -0
  223. package/textfield/index.cjs +1 -1
  224. package/textfield/index.js +1 -1
  225. package/toast/index.cjs +1 -1
  226. package/toast/index.js +1 -1
  227. package/toggle-button/index.cjs +1 -1
  228. package/toggle-button/index.js +1 -1
  229. package/tooltip/index.cjs +1 -1
  230. package/tooltip/index.js +1 -1
  231. package/{triangle-alert-C0lvfCYH.cjs → triangle-alert-DJW8U7jL.cjs} +1 -1
  232. package/{useButton-C-Lq7CNY.js → useButton-B8dB9sot.js} +6 -6
  233. package/{useButton-B1Fa-6qE.cjs → useButton-cpNi-fY4.cjs} +1 -1
  234. package/{useDateFormatter-g2maMTGH.cjs → useDateFormatter-CnxoJ4jF.cjs} +1 -1
  235. package/{useDateFormatter-C53Uxdli.js → useDateFormatter-EHm4auIg.js} +2 -2
  236. package/{useEvent-CjkbBniY.cjs → useEvent-DxBxMX2V.cjs} +1 -1
  237. package/{useEvent-Cyd2ZL0c.js → useEvent-IsD2Awnh.js} +1 -1
  238. package/useField-CXKYU74k.cjs +1 -0
  239. package/{useField-BPMAlIbU.js → useField-DvpGZkw_.js} +7 -7
  240. package/useFilter-BTgDWHVx.cjs +1 -0
  241. package/{useFilter-ChIbnALW.js → useFilter-CUq74PQ2.js} +1 -1
  242. package/{useFocusRing-BDGH3lpn.js → useFocusRing-XnR3cZjO.js} +1 -1
  243. package/useFocusable-C8uh8K4g.js +125 -0
  244. package/useFocusable-NUVSFcRC.cjs +1 -0
  245. package/{useFormValidation-R8hQIjWP.js → useFormValidation-BIGzfO9h.js} +5 -5
  246. package/{useHasTabbableChild-DsD9AJwE.js → useHasTabbableChild-C-1mZUQe.js} +2 -2
  247. package/useHasTabbableChild-DCBTulUQ.cjs +1 -0
  248. package/{useHighlightSelectionDescription-DFfcgbUj.js → useHighlightSelectionDescription-CnBDT86u.js} +14 -14
  249. package/useHighlightSelectionDescription-CzYucm61.cjs +1 -0
  250. package/{useHover-qRAon4nS.js → useHover-DjIHtjGN.js} +17 -17
  251. package/{useLabels-BZjoZA1Z.js → useLabels-BDwkBYbE.js} +1 -1
  252. package/{useListState-Ca2-uZMO.cjs → useListState-Bx8u4IFG.cjs} +1 -1
  253. package/{useListState-DFQ9d-uE.js → useListState-CrZFZffI.js} +7 -7
  254. package/useLocalizedStringFormatter-BKoxGZf1.js +96 -0
  255. package/useLocalizedStringFormatter-BsxLt89S.cjs +1 -0
  256. package/useLocalizedStringFormatter-D3JQyjb4.js +21 -0
  257. package/useLocalizedStringFormatter-ioacM-Yt.cjs +1 -0
  258. package/useObserveElement-MhzEsCkX.cjs +1 -0
  259. package/usePress-0AjDbW9R.cjs +7 -0
  260. package/{usePress-CUJ3pMOw.js → usePress-CNjmDzap.js} +48 -48
  261. package/{useSingleSelectListState-C-nB8cug.js → useSingleSelectListState-0AGHxvy3.js} +1 -1
  262. package/{useSingleSelectListState-MGNxUTum.cjs → useSingleSelectListState-Cl3KV5E1.cjs} +1 -1
  263. package/{useTextField-CtUDWsUl.cjs → useTextField--czJtyNd.cjs} +1 -1
  264. package/{useTextField-5OZQPyOW.js → useTextField-Cw-33OP_.js} +11 -11
  265. package/{useUpdateEffect-sk3kiVGz.cjs → useUpdateEffect-C5YQs_1w.cjs} +1 -1
  266. package/{utils-HNTsIwux.js → utils-DIMfEPAt.js} +10 -10
  267. package/{x-CvxiAZTW.cjs → x-H8Zrx8-x.cjs} +1 -1
  268. package/Button-DnhqHU01.cjs +0 -1
  269. package/Button-ZOQy9Ivu.js +0 -78
  270. package/Button.module-CMMhIrkn.js +0 -14
  271. package/Button.module-DO5s9hOk.cjs +0 -1
  272. package/Card-C0BFW3wJ.cjs +0 -1
  273. package/CharacterCounter-CPGdboVJ.js +0 -22
  274. package/Checkbox-CvFsn_FL.js +0 -380
  275. package/Checkbox-DSxGAJX2.cjs +0 -1
  276. package/CheckboxGroup-Bk9DPq4I.cjs +0 -1
  277. package/CheckboxGroup-Dij9zKlF.js +0 -54
  278. package/ComboBox-gveQKHU3.cjs +0 -1
  279. package/DateField-CAQlzuDD.js +0 -46
  280. package/DateField-deVVFwKA.cjs +0 -1
  281. package/DateInputDivider-DnUxETEC.cjs +0 -1
  282. package/DateRangePicker-BzfitoK0.cjs +0 -6
  283. package/Dialog-Bd5hK360.cjs +0 -1
  284. package/FieldError-BZw8UzBk.cjs +0 -1
  285. package/FieldError-CZikNDxX.js +0 -28
  286. package/FieldError-DqdfJ3fs.cjs +0 -1
  287. package/FieldError-Dv3bBEjh.js +0 -23
  288. package/FocusScope-NaPbvuuS.cjs +0 -1
  289. package/InfoBanner-BS-dAfzO.cjs +0 -1
  290. package/Label-C9ivwkAd.js +0 -21
  291. package/Label-CUV21CAv.cjs +0 -1
  292. package/Label-DkDOsmUF.js +0 -16
  293. package/Label-IMWAyoKb.cjs +0 -1
  294. package/LinkButton-CuBilDML.js +0 -69
  295. package/LinkButton-CymMrcGL.cjs +0 -6
  296. package/ListBox-CDOsQChA.cjs +0 -1
  297. package/ListKeyboardDelegate-BqMETvPv.cjs +0 -1
  298. package/LiveAnnouncer-B6177m92.js +0 -51
  299. package/LiveAnnouncer-CwEWPU8b.cjs +0 -1
  300. package/LocalizedStringFormatter-C0C54hjf.cjs +0 -1
  301. package/LocalizedStringFormatter-D-4Qyql0.js +0 -77
  302. package/NumberFormatter-DewVDY5w.cjs +0 -1
  303. package/NumberFormatter-DgOUVrge.js +0 -119
  304. package/PressResponder-C06O3Z5P.cjs +0 -1
  305. package/PressResponder-CVEg5kND.js +0 -33
  306. package/ProgressBar-Bkw9zavs.cjs +0 -1
  307. package/ProgressBar-CEX2WNoW.js +0 -77
  308. package/ProgressBar-Dqh3ftSP.cjs +0 -1
  309. package/Radio-CDKrvQe4.cjs +0 -1
  310. package/RangeCalendar-cbCKBPZv.cjs +0 -11
  311. package/Select-CpHjd1tp.cjs +0 -1
  312. package/SelectionManager-C5NGBzvz.cjs +0 -1
  313. package/Separator-nPra6kD-.cjs +0 -1
  314. package/Table-D9vNc_y-.cjs +0 -16
  315. package/Tag-CVFkzg3s.cjs +0 -1
  316. package/Text-B_H68Tvq.js +0 -15
  317. package/TextArea-DSiQ578a.js +0 -206
  318. package/TextArea-cVyGBRbL.cjs +0 -1
  319. package/TextField-B70CL2qz.cjs +0 -1
  320. package/Toast-DrkOGy4d.cjs +0 -1
  321. package/focusSafely-Bqfo_DH7.cjs +0 -1
  322. package/focusSafely-C48ucRUz.js +0 -56
  323. package/inertValue-BWmZ1afe.cjs +0 -1
  324. package/scrollIntoView-ClEACHUk.js +0 -57
  325. package/scrollIntoView-DRSoJp89.cjs +0 -1
  326. package/useCollator-C_ozeWLo.cjs +0 -1
  327. package/useCollator-CgZcHC8N.js +0 -11
  328. package/useDescription-CVKhFa3c.js +0 -32
  329. package/useDescription-DmQYSEES.cjs +0 -1
  330. package/useField-B1RU0GKs.cjs +0 -1
  331. package/useFilter-CtIwF2qW.cjs +0 -1
  332. package/useFocusable-CaedRTpB.js +0 -74
  333. package/useFocusable-CuPQ7Cm5.cjs +0 -1
  334. package/useHasTabbableChild-DgphNvnk.cjs +0 -1
  335. package/useHighlightSelectionDescription-BizKjvPU.cjs +0 -1
  336. package/useLabel-DDdAJ1JO.js +0 -23
  337. package/useLabel-m_S5xkHy.cjs +0 -1
  338. package/useLocalizedStringFormatter-D07YB2e1.js +0 -22
  339. package/useLocalizedStringFormatter-u9SJaOwk.cjs +0 -1
  340. package/useObserveElement-BzEr5D32.cjs +0 -1
  341. package/usePress-BFa6cT9o.cjs +0 -7
@@ -1,39 +1,36 @@
1
- import { jsxs as ae, jsx as f } from "react/jsx-runtime";
2
- import { a as he, $ as $u } from "./Button-ZOQy9Ivu.js";
3
- import { n as ru, d as Ce, a as su, h as bu, i as au, j as Cu, b as xu, k as mu } from "./utils-HNTsIwux.js";
4
- import { $ as hu } from "./FieldError-CZikNDxX.js";
5
- import { $ as fu } from "./Form-CXcEMuBf.js";
6
- import { a as fe } from "./Group-CeSsSQVC.js";
7
- import { $ as ve, a as vu } from "./Input-D8Ku_FQz.js";
8
- import { $ as Ae } from "./Label-DkDOsmUF.js";
9
- import { c as Au, d as Bu, e as Be, f as Eu } from "./ListBox-DOi_y_Lt.js";
10
- import { o as Tu, h as Du, i as Fu, m as yu } from "./Dialog-CYxThuMl.js";
11
- import { a as Ee } from "./Text-B_H68Tvq.js";
12
- import { b as Su, c as Lu } from "./Collection-C5ONNBqd.js";
13
- import { $ as gu } from "./filterDOMProps-D6KHYVBX.js";
14
- import { $ as ku, g as Pu } from "./OverlayArrow-DorA4Rbr.js";
15
- import Q, { useRef as v, useMemo as ee, useEffect as pe, useState as _, useCallback as $e, forwardRef as Ku, createContext as Te } from "react";
16
- import { $ as Ou } from "./useFilter-ChIbnALW.js";
17
- import { c as Iu, $ as Ru } from "./useFormValidation-R8hQIjWP.js";
18
- import { e as Gu, f as De, h as Vu } from "./SelectionManager-6H88Cv6B.js";
19
- import { $ as zu } from "./useSingleSelectListState-C-nB8cug.js";
20
- import { b as wu } from "./useListState-DFQ9d-uE.js";
21
- import { $ as ju } from "./useControlledState-u436Wbp1.js";
22
- import { $ as re } from "./LiveAnnouncer-B6177m92.js";
23
- import { C as se, e as Mu, d as Nu } from "./useHover-qRAon4nS.js";
24
- import { c as qu } from "./usePress-CUJ3pMOw.js";
25
- import { $ as xe } from "./useLabels-BZjoZA1Z.js";
26
- import { $ as Uu } from "./useUpdateEffect-CCDx8D4X.js";
27
- import { a as Wu } from "./Separator-LYnFqh4L.js";
28
- import { $ as Xu } from "./ListKeyboardDelegate-DNOzQ8nc.js";
29
- import { $ as Zu } from "./useLocalizedStringFormatter-D07YB2e1.js";
30
- import { $ as Hu } from "./useTextField-5OZQPyOW.js";
1
+ import { jsxs as ae, jsx as v } from "react/jsx-runtime";
2
+ import X, { useRef as E, useMemo as ee, useEffect as pe, useState as Q, useCallback as re, forwardRef as ru, createContext as he } from "react";
3
+ import { f as se, b as fe, e as ve, $ as su } from "./Button-DjBChs7s.js";
4
+ import { n as $u, c as Ce, a as bu, g as au, h as Cu, i as xu, b as mu, j as hu } from "./utils-DIMfEPAt.js";
5
+ import { $ as fu, F as xe } from "./FieldError-CAcjosk_.js";
6
+ import { $ as vu } from "./Form-CXcEMuBf.js";
7
+ import { a as Ae } from "./Group-B6EslsHZ.js";
8
+ import { $ as Be, a as Au } from "./Input-BTzwcf72.js";
9
+ import { c as Bu, d as Eu, e as Ee, f as Tu } from "./ListBox-GnVK_Pdq.js";
10
+ import { o as Du, h as Fu, i as yu, m as Su } from "./Dialog-D14MbJ7o.js";
11
+ import { $ as Te } from "./Text-BoXuUVVH.js";
12
+ import { b as Lu, c as gu } from "./Collection-Brgjpkne.js";
13
+ import { $ as ku } from "./filterDOMProps-D6KHYVBX.js";
14
+ import { a as Pu, g as Ku } from "./OverlayArrow-CDLXPTew.js";
15
+ import { $ as Ou } from "./useFilter-CUq74PQ2.js";
16
+ import { d as Iu, $ as Ru } from "./useFormValidation-BIGzfO9h.js";
17
+ import { e as Gu, f as De, h as Vu } from "./SelectionManager-B4ORduja.js";
18
+ import { $ as zu } from "./useSingleSelectListState-0AGHxvy3.js";
19
+ import { b as Mu } from "./useListState-CrZFZffI.js";
20
+ import { $ as wu } from "./useControlledState-u436Wbp1.js";
21
+ import { C as $e, e as ju, d as Nu } from "./useHover-DjIHtjGN.js";
22
+ import { b as Uu } from "./usePress-CNjmDzap.js";
23
+ import { $ as me } from "./useLabels-BDwkBYbE.js";
24
+ import { $ as qu } from "./useUpdateEffect-CCDx8D4X.js";
25
+ import { a as Wu } from "./Separator-Cu9fYKUM.js";
26
+ import { a as Xu } from "./ListKeyboardDelegate-DNI8GQtX.js";
27
+ import { b as Zu } from "./useLocalizedStringFormatter-BKoxGZf1.js";
28
+ import { $ as Hu } from "./useTextField-Cw-33OP_.js";
31
29
  import { c as be } from "./clsx-OuTLNxxd.js";
32
- import { L as Ju } from "./Label-C9ivwkAd.js";
33
- import { T as Yu } from "./Text-BN-g1iWi.js";
34
- import { F as me } from "./FieldError-Dv3bBEjh.js";
35
- import { b as _u, L as Qu, a as en, c as un } from "./ListBoxSection-C1aLKL9p.js";
36
- import { C as nn } from "./chevron-down-Cd1bkzXT.js";
30
+ import { a as Ju, L as Yu } from "./Label-BwJrdqEE.js";
31
+ import { T as _u } from "./Text-jWWg0B20.js";
32
+ import { b as Qu, L as en, a as un, c as nn } from "./ListBoxSection-C0BGnpB4.js";
33
+ import { C as on } from "./chevron-down-Cd1bkzXT.js";
37
34
  import './assets/ComboBox.css';var Fe = {};
38
35
  Fe = {
39
36
  buttonLabel: "عرض المقترحات",
@@ -314,8 +311,8 @@ ze = {
314
311
  listboxLabel: "Javaslatok",
315
312
  selectedAnnouncement: (e) => `${e.optionText}, kijelölve`
316
313
  };
317
- var we = {};
318
- we = {
314
+ var Me = {};
315
+ Me = {
319
316
  buttonLabel: "Mostra suggerimenti",
320
317
  countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
321
318
  one: () => `${u.number(e.optionCount)} opzione disponibile`,
@@ -334,8 +331,8 @@ we = {
334
331
  listboxLabel: "Suggerimenti",
335
332
  selectedAnnouncement: (e) => `${e.optionText}, selezionato`
336
333
  };
337
- var je = {};
338
- je = {
334
+ var we = {};
335
+ we = {
339
336
  buttonLabel: "候補を表示",
340
337
  countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
341
338
  one: () => `${u.number(e.optionCount)} 個のオプション`,
@@ -354,8 +351,8 @@ je = {
354
351
  listboxLabel: "候補",
355
352
  selectedAnnouncement: (e) => `${e.optionText}、選択済み`
356
353
  };
357
- var Me = {};
358
- Me = {
354
+ var je = {};
355
+ je = {
359
356
  buttonLabel: "제안 사항 표시",
360
357
  countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
361
358
  one: () => `${u.number(e.optionCount)}개 옵션`,
@@ -394,8 +391,8 @@ Ne = {
394
391
  listboxLabel: "Pasiūlymai",
395
392
  selectedAnnouncement: (e) => `${e.optionText}, pasirinkta`
396
393
  };
397
- var qe = {};
398
- qe = {
394
+ var Ue = {};
395
+ Ue = {
399
396
  buttonLabel: "Rādīt ieteikumus",
400
397
  countAnnouncement: (e, u) => `Pieejamo opciju skaits: ${u.plural(e.optionCount, {
401
398
  one: () => `${u.number(e.optionCount)} opcija`,
@@ -414,8 +411,8 @@ qe = {
414
411
  listboxLabel: "Ieteikumi",
415
412
  selectedAnnouncement: (e) => `${e.optionText}, atlasīta`
416
413
  };
417
- var Ue = {};
418
- Ue = {
414
+ var qe = {};
415
+ qe = {
419
416
  buttonLabel: "Vis forslag",
420
417
  countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
421
418
  one: () => `${u.number(e.optionCount)} alternativ`,
@@ -730,12 +727,12 @@ iu = {
730
727
  "he-IL": Ge,
731
728
  "hr-HR": Ve,
732
729
  "hu-HU": ze,
733
- "it-IT": we,
734
- "ja-JP": je,
735
- "ko-KR": Me,
730
+ "it-IT": Me,
731
+ "ja-JP": we,
732
+ "ko-KR": je,
736
733
  "lt-LT": Ne,
737
- "lv-LV": qe,
738
- "nb-NO": Ue,
734
+ "lv-LV": Ue,
735
+ "nb-NO": qe,
739
736
  "nl-NL": We,
740
737
  "pl-PL": Xe,
741
738
  "pt-BR": Ze,
@@ -751,31 +748,31 @@ iu = {
751
748
  "zh-CN": tu,
752
749
  "zh-TW": lu
753
750
  };
754
- function on(e) {
751
+ function tn(e) {
755
752
  return e && e.__esModule ? e.default : e;
756
753
  }
757
- function tn(e, u) {
758
- let { buttonRef: i, popoverRef: b, inputRef: t, listBoxRef: d, keyboardDelegate: h, layoutDelegate: a, shouldFocusWrap: x, isReadOnly: L, isDisabled: M } = e, A = v(null);
759
- i = i ?? A;
760
- let E = Zu(on(iu), "@react-aria/combobox"), { menuTriggerProps: T, menuProps: y } = Tu({
754
+ function ln(e, u) {
755
+ let { buttonRef: i, popoverRef: b, inputRef: t, listBoxRef: d, keyboardDelegate: A, layoutDelegate: a, shouldFocusWrap: x, isReadOnly: D, isDisabled: g } = e, m = E(null);
756
+ i = i ?? m;
757
+ let B = Zu(tn(iu), "@react-aria/combobox"), { menuTriggerProps: h, menuProps: S } = Du({
761
758
  type: "listbox",
762
- isDisabled: M || L
759
+ isDisabled: g || D
763
760
  }, u, i);
764
- Au.set(u, {
765
- id: y.id
761
+ Bu.set(u, {
762
+ id: S.id
766
763
  });
767
- let { collection: m } = u, { disabledKeys: S } = u.selectionManager, l = ee(() => h || new Xu({
768
- collection: m,
769
- disabledKeys: S,
764
+ let { collection: f } = u, { disabledKeys: L } = u.selectionManager, l = ee(() => A || new Xu({
765
+ collection: f,
766
+ disabledKeys: L,
770
767
  ref: d,
771
768
  layoutDelegate: a
772
769
  }), [
773
- h,
770
+ A,
774
771
  a,
775
- m,
776
- S,
772
+ f,
773
+ L,
777
774
  d
778
- ]), { collectionProps: G } = Gu({
775
+ ]), { collectionProps: V } = Gu({
779
776
  selectionManager: u.selectionManager,
780
777
  keyboardDelegate: l,
781
778
  disallowTypeAhead: !0,
@@ -784,7 +781,7 @@ function tn(e, u) {
784
781
  ref: t,
785
782
  // Prevent item scroll behavior from being applied here, should be handled in the user's Popover + ListBox component
786
783
  isVirtualized: !0
787
- }), ue = qu(), ne = (n) => {
784
+ }), ue = Uu(), ne = (n) => {
788
785
  if (!n.nativeEvent.isComposing)
789
786
  switch (n.key) {
790
787
  case "Enter":
@@ -812,96 +809,96 @@ function tn(e, u) {
812
809
  u.selectionManager.setFocusedKey(null);
813
810
  break;
814
811
  }
815
- }, V = (n) => {
812
+ }, z = (n) => {
816
813
  var c;
817
- let p = (i == null ? void 0 : i.current) && i.current === n.relatedTarget, K = (c = b.current) === null || c === void 0 ? void 0 : c.contains(n.relatedTarget);
818
- p || K || (e.onBlur && e.onBlur(n), u.setFocused(!1));
814
+ let p = (i == null ? void 0 : i.current) && i.current === n.relatedTarget, O = (c = b.current) === null || c === void 0 ? void 0 : c.contains(n.relatedTarget);
815
+ p || O || (e.onBlur && e.onBlur(n), u.setFocused(!1));
819
816
  }, N = (n) => {
820
817
  u.isFocused || (e.onFocus && e.onFocus(n), u.setFocused(!0));
821
- }, { isInvalid: q, validationErrors: $, validationDetails: U } = u.displayValidation, { labelProps: D, inputProps: F, descriptionProps: X, errorMessageProps: oe } = Hu({
818
+ }, { isInvalid: U, validationErrors: r, validationDetails: q } = u.displayValidation, { labelProps: F, inputProps: y, descriptionProps: Z, errorMessageProps: oe } = Hu({
822
819
  ...e,
823
820
  onChange: u.setInputValue,
824
- onKeyDown: L ? e.onKeyDown : ru(u.isOpen && G.onKeyDown, ne, e.onKeyDown),
825
- onBlur: V,
821
+ onKeyDown: D ? e.onKeyDown : $u(u.isOpen && V.onKeyDown, ne, e.onKeyDown),
822
+ onBlur: z,
826
823
  value: u.inputValue,
827
824
  onFocus: N,
828
825
  autoComplete: "off",
829
826
  validate: void 0,
830
827
  [Iu]: u
831
- }, t), z = (n) => {
828
+ }, t), M = (n) => {
832
829
  if (n.pointerType === "touch") {
833
830
  var c;
834
831
  (c = t.current) === null || c === void 0 || c.focus(), u.toggle(null, "manual");
835
832
  }
836
- }, Z = (n) => {
833
+ }, H = (n) => {
837
834
  if (n.pointerType !== "touch") {
838
835
  var c;
839
836
  (c = t.current) === null || c === void 0 || c.focus(), u.toggle(n.pointerType === "keyboard" || n.pointerType === "virtual" ? "first" : null, "manual");
840
837
  }
841
- }, r = xe({
842
- id: T.id,
843
- "aria-label": E.format("buttonLabel"),
844
- "aria-labelledby": e["aria-labelledby"] || D.id
845
- }), g = xe({
846
- id: y.id,
847
- "aria-label": E.format("listboxLabel"),
848
- "aria-labelledby": e["aria-labelledby"] || D.id
849
- }), O = v(0), w = (n) => {
850
- if (M || L) return;
851
- if (n.timeStamp - O.current < 500) {
838
+ }, s = me({
839
+ id: h.id,
840
+ "aria-label": B.format("buttonLabel"),
841
+ "aria-labelledby": e["aria-labelledby"] || F.id
842
+ }), k = me({
843
+ id: S.id,
844
+ "aria-label": B.format("listboxLabel"),
845
+ "aria-labelledby": e["aria-labelledby"] || F.id
846
+ }), I = E(0), w = (n) => {
847
+ if (g || D) return;
848
+ if (n.timeStamp - I.current < 500) {
852
849
  var c;
853
850
  n.preventDefault(), (c = t.current) === null || c === void 0 || c.focus();
854
851
  return;
855
852
  }
856
- let p = n.target.getBoundingClientRect(), K = n.changedTouches[0], ie = Math.ceil(p.left + 0.5 * p.width), de = Math.ceil(p.top + 0.5 * p.height);
857
- if (K.clientX === ie && K.clientY === de) {
853
+ let p = n.target.getBoundingClientRect(), O = n.changedTouches[0], ie = Math.ceil(p.left + 0.5 * p.width), de = Math.ceil(p.top + 0.5 * p.height);
854
+ if (O.clientX === ie && O.clientY === de) {
858
855
  var ce;
859
- n.preventDefault(), (ce = t.current) === null || ce === void 0 || ce.focus(), u.toggle(null, "manual"), O.current = n.timeStamp;
856
+ n.preventDefault(), (ce = t.current) === null || ce === void 0 || ce.focus(), u.toggle(null, "manual"), I.current = n.timeStamp;
860
857
  }
861
- }, B = u.selectionManager.focusedKey != null && u.isOpen ? u.collection.getItem(u.selectionManager.focusedKey) : void 0;
862
- var k;
863
- let I = (k = B == null ? void 0 : B.parentKey) !== null && k !== void 0 ? k : null;
858
+ }, T = u.selectionManager.focusedKey != null && u.isOpen ? u.collection.getItem(u.selectionManager.focusedKey) : void 0;
859
+ var P;
860
+ let R = (P = T == null ? void 0 : T.parentKey) !== null && P !== void 0 ? P : null;
864
861
  var j;
865
- let R = (j = u.selectionManager.focusedKey) !== null && j !== void 0 ? j : null, H = v(I), J = v(R);
862
+ let G = (j = u.selectionManager.focusedKey) !== null && j !== void 0 ? j : null, J = E(R), Y = E(G);
866
863
  pe(() => {
867
- if (se() && B != null && R != null && R !== J.current) {
868
- let c = u.selectionManager.isSelected(R), p = I != null ? u.collection.getItem(I) : null, K = (p == null ? void 0 : p["aria-label"]) || (typeof (p == null ? void 0 : p.rendered) == "string" ? p.rendered : "") || "";
864
+ if ($e() && T != null && G != null && G !== Y.current) {
865
+ let c = u.selectionManager.isSelected(G), p = R != null ? u.collection.getItem(R) : null, O = (p == null ? void 0 : p["aria-label"]) || (typeof (p == null ? void 0 : p.rendered) == "string" ? p.rendered : "") || "";
869
866
  var n;
870
- let ie = E.format("focusAnnouncement", {
871
- isGroupChange: (n = p && I !== H.current) !== null && n !== void 0 ? n : !1,
872
- groupTitle: K,
867
+ let ie = B.format("focusAnnouncement", {
868
+ isGroupChange: (n = p && R !== J.current) !== null && n !== void 0 ? n : !1,
869
+ groupTitle: O,
873
870
  groupCount: p ? [
874
871
  ...De(p, u.collection)
875
872
  ].length : 0,
876
- optionText: B["aria-label"] || B.textValue || "",
873
+ optionText: T["aria-label"] || T.textValue || "",
877
874
  isSelected: c
878
875
  });
879
- re(ie);
876
+ se(ie);
880
877
  }
881
- H.current = I, J.current = R;
878
+ J.current = R, Y.current = G;
882
879
  });
883
- let P = Wu(u.collection), Y = v(P), te = v(u.isOpen);
880
+ let K = Wu(u.collection), _ = E(K), te = E(u.isOpen);
884
881
  pe(() => {
885
- let n = u.isOpen !== te.current && (u.selectionManager.focusedKey == null || se());
886
- if (u.isOpen && (n || P !== Y.current)) {
887
- let c = E.format("countAnnouncement", {
888
- optionCount: P
882
+ let n = u.isOpen !== te.current && (u.selectionManager.focusedKey == null || $e());
883
+ if (u.isOpen && (n || K !== _.current)) {
884
+ let c = B.format("countAnnouncement", {
885
+ optionCount: K
889
886
  });
890
- re(c);
887
+ se(c);
891
888
  }
892
- Y.current = P, te.current = u.isOpen;
889
+ _.current = K, te.current = u.isOpen;
893
890
  });
894
- let le = v(u.selectedKey);
891
+ let le = E(u.selectedKey);
895
892
  return pe(() => {
896
- if (se() && u.isFocused && u.selectedItem && u.selectedKey !== le.current) {
897
- let n = u.selectedItem["aria-label"] || u.selectedItem.textValue || "", c = E.format("selectedAnnouncement", {
893
+ if ($e() && u.isFocused && u.selectedItem && u.selectedKey !== le.current) {
894
+ let n = u.selectedItem["aria-label"] || u.selectedItem.textValue || "", c = B.format("selectedAnnouncement", {
898
895
  optionText: n
899
896
  });
900
- re(c);
897
+ se(c);
901
898
  }
902
899
  le.current = u.selectedKey;
903
900
  }), pe(() => {
904
- if (u.isOpen) return Du([
901
+ if (u.isOpen) return Fu([
905
902
  t.current,
906
903
  b.current
907
904
  ].filter((n) => n != null));
@@ -909,192 +906,192 @@ function tn(e, u) {
909
906
  u.isOpen,
910
907
  t,
911
908
  b
912
- ]), Uu(() => {
913
- !B && t.current && Mu(Nu(t.current)) === t.current && Vu(t.current, null);
909
+ ]), qu(() => {
910
+ !T && t.current && ju(Nu(t.current)) === t.current && Vu(t.current, null);
914
911
  }, [
915
- B
912
+ T
916
913
  ]), {
917
- labelProps: D,
914
+ labelProps: F,
918
915
  buttonProps: {
919
- ...T,
920
- ...r,
916
+ ...h,
917
+ ...s,
921
918
  excludeFromTabOrder: !0,
922
919
  preventFocusOnPress: !0,
923
- onPress: z,
924
- onPressStart: Z,
925
- isDisabled: M || L
920
+ onPress: M,
921
+ onPressStart: H,
922
+ isDisabled: g || D
926
923
  },
927
- inputProps: Ce(F, {
924
+ inputProps: Ce(y, {
928
925
  role: "combobox",
929
- "aria-expanded": T["aria-expanded"],
930
- "aria-controls": u.isOpen ? y.id : void 0,
926
+ "aria-expanded": h["aria-expanded"],
927
+ "aria-controls": u.isOpen ? S.id : void 0,
931
928
  // TODO: readd proper logic for completionMode = complete (aria-autocomplete: both)
932
929
  "aria-autocomplete": "list",
933
- "aria-activedescendant": B ? Bu(u, B.key) : void 0,
930
+ "aria-activedescendant": T ? Eu(u, T.key) : void 0,
934
931
  onTouchEnd: w,
935
932
  // This disable's iOS's autocorrect suggestions, since the combo box provides its own suggestions.
936
933
  autoCorrect: "off",
937
934
  // This disable's the macOS Safari spell check auto corrections.
938
935
  spellCheck: "false"
939
936
  }),
940
- listBoxProps: Ce(y, g, {
937
+ listBoxProps: Ce(S, k, {
941
938
  autoFocus: u.focusStrategy || !0,
942
939
  shouldUseVirtualFocus: !0,
943
940
  shouldSelectOnPressUp: !0,
944
941
  shouldFocusOnHover: !0,
945
942
  linkBehavior: "selection"
946
943
  }),
947
- descriptionProps: X,
944
+ descriptionProps: Z,
948
945
  errorMessageProps: oe,
949
- isInvalid: q,
950
- validationErrors: $,
951
- validationDetails: U
946
+ isInvalid: U,
947
+ validationErrors: r,
948
+ validationDetails: q
952
949
  };
953
950
  }
954
- function ln(e) {
951
+ function cn(e) {
955
952
  var u;
956
- let { defaultFilter: i, menuTrigger: b = "input", allowsEmptyCollection: t = !1, allowsCustomValue: d, shouldCloseOnBlur: h = !0 } = e, [a, x] = _(!1), [L, M] = _(!1), [A, E] = _(null), T = (o) => {
957
- e.onSelectionChange && e.onSelectionChange(o), o === l && (R(), k());
953
+ let { defaultFilter: i, menuTrigger: b = "input", allowsEmptyCollection: t = !1, allowsCustomValue: d, shouldCloseOnBlur: A = !0 } = e, [a, x] = Q(!1), [D, g] = Q(!1), [m, B] = Q(null), h = (o) => {
954
+ e.onSelectionChange && e.onSelectionChange(o), o === l && (G(), P());
958
955
  };
959
- var y;
960
- let { collection: m, selectionManager: S, selectedKey: l, setSelectedKey: G, selectedItem: ue, disabledKeys: ne } = zu({
956
+ var S;
957
+ let { collection: f, selectionManager: L, selectedKey: l, setSelectedKey: V, selectedItem: ue, disabledKeys: ne } = zu({
961
958
  ...e,
962
- onSelectionChange: T,
963
- items: (y = e.items) !== null && y !== void 0 ? y : e.defaultItems
964
- }), V = e.defaultInputValue;
965
- if (V == null) {
966
- var N, q;
967
- l == null ? V = "" : V = (q = (N = m.getItem(l)) === null || N === void 0 ? void 0 : N.textValue) !== null && q !== void 0 ? q : "";
959
+ onSelectionChange: h,
960
+ items: (S = e.items) !== null && S !== void 0 ? S : e.defaultItems
961
+ }), z = e.defaultInputValue;
962
+ if (z == null) {
963
+ var N, U;
964
+ l == null ? z = "" : z = (U = (N = f.getItem(l)) === null || N === void 0 ? void 0 : N.textValue) !== null && U !== void 0 ? U : "";
968
965
  }
969
- let [$, U] = ju(e.inputValue, V, e.onInputChange), D = m, F = ee(() => (
966
+ let [r, q] = wu(e.inputValue, z, e.onInputChange), F = f, y = ee(() => (
970
967
  // No default filter if items are controlled.
971
- e.items != null || !i ? m : cn(m, $, i)
968
+ e.items != null || !i ? f : pn(f, r, i)
972
969
  ), [
973
- m,
974
- $,
970
+ f,
971
+ r,
975
972
  i,
976
973
  e.items
977
- ]), [X, oe] = _(F), z = v("focus"), r = ku({
974
+ ]), [Z, oe] = Q(y), M = E("focus"), s = Pu({
978
975
  ...e,
979
976
  onOpenChange: (o) => {
980
- e.onOpenChange && e.onOpenChange(o, o ? z.current : void 0), S.setFocused(o), o || S.setFocusedKey(null);
977
+ e.onOpenChange && e.onOpenChange(o, o ? M.current : void 0), L.setFocused(o), o || L.setFocusedKey(null);
981
978
  },
982
979
  isOpen: void 0,
983
980
  defaultOpen: void 0
984
- }), g = (o = null, s) => {
985
- let C = s === "manual" || s === "focus" && b === "focus";
986
- (t || F.size > 0 || C && D.size > 0 || e.items) && (C && !r.isOpen && e.items === void 0 && x(!0), z.current = s, E(o), r.open());
987
- }, O = (o = null, s) => {
988
- let C = s === "manual" || s === "focus" && b === "focus";
989
- !(t || F.size > 0 || C && D.size > 0 || e.items) && !r.isOpen || (C && !r.isOpen && e.items === void 0 && x(!0), r.isOpen || (z.current = s), B(o));
990
- }, w = $e(() => {
991
- oe(a ? D : F);
981
+ }), k = (o = null, $) => {
982
+ let C = $ === "manual" || $ === "focus" && b === "focus";
983
+ (t || y.size > 0 || C && F.size > 0 || e.items) && (C && !s.isOpen && e.items === void 0 && x(!0), M.current = $, B(o), s.open());
984
+ }, I = (o = null, $) => {
985
+ let C = $ === "manual" || $ === "focus" && b === "focus";
986
+ !(t || y.size > 0 || C && F.size > 0 || e.items) && !s.isOpen || (C && !s.isOpen && e.items === void 0 && x(!0), s.isOpen || (M.current = $), T(o));
987
+ }, w = re(() => {
988
+ oe(a ? F : y);
992
989
  }, [
993
990
  a,
994
- D,
995
- F
996
- ]), B = $e((o = null) => {
997
- r.isOpen && w(), E(o), r.toggle();
991
+ F,
992
+ y
993
+ ]), T = re((o = null) => {
994
+ s.isOpen && w(), B(o), s.toggle();
998
995
  }, [
999
- r,
996
+ s,
1000
997
  w
1001
- ]), k = $e(() => {
1002
- r.isOpen && (w(), r.close());
998
+ ]), P = re(() => {
999
+ s.isOpen && (w(), s.close());
1003
1000
  }, [
1004
- r,
1001
+ s,
1005
1002
  w
1006
- ]), [I, j] = _($), R = () => {
1007
- var o, s;
1008
- let C = l != null && (s = (o = m.getItem(l)) === null || o === void 0 ? void 0 : o.textValue) !== null && s !== void 0 ? s : "";
1009
- j(C), U(C);
1003
+ ]), [R, j] = Q(r), G = () => {
1004
+ var o, $;
1005
+ let C = l != null && ($ = (o = f.getItem(l)) === null || o === void 0 ? void 0 : o.textValue) !== null && $ !== void 0 ? $ : "";
1006
+ j(C), q(C);
1010
1007
  };
1011
- var H, J;
1012
- let P = v((J = (H = e.selectedKey) !== null && H !== void 0 ? H : e.defaultSelectedKey) !== null && J !== void 0 ? J : null);
1013
- var Y;
1014
- let te = v(l != null && (Y = (u = m.getItem(l)) === null || u === void 0 ? void 0 : u.textValue) !== null && Y !== void 0 ? Y : "");
1008
+ var J, Y;
1009
+ let K = E((Y = (J = e.selectedKey) !== null && J !== void 0 ? J : e.defaultSelectedKey) !== null && Y !== void 0 ? Y : null);
1010
+ var _;
1011
+ let te = E(l != null && (_ = (u = f.getItem(l)) === null || u === void 0 ? void 0 : u.textValue) !== null && _ !== void 0 ? _ : "");
1015
1012
  pe(() => {
1016
1013
  var o;
1017
- L && (F.size > 0 || t) && !r.isOpen && $ !== I && b !== "manual" && g(null, "input"), !a && !t && r.isOpen && F.size === 0 && k(), l != null && l !== P.current && k(), $ !== I && (S.setFocusedKey(null), x(!1), $ === "" && (e.inputValue === void 0 || e.selectedKey === void 0) && G(null)), l !== P.current && (e.inputValue === void 0 || e.selectedKey === void 0) ? R() : I !== $ && j($);
1018
- var s;
1019
- let C = l != null && (s = (o = m.getItem(l)) === null || o === void 0 ? void 0 : o.textValue) !== null && s !== void 0 ? s : "";
1020
- !L && l != null && e.inputValue === void 0 && l === P.current && te.current !== C && (j(C), U(C)), P.current = l, te.current = C;
1014
+ D && (y.size > 0 || t) && !s.isOpen && r !== R && b !== "manual" && k(null, "input"), !a && !t && s.isOpen && y.size === 0 && P(), l != null && l !== K.current && P(), r !== R && (L.setFocusedKey(null), x(!1), r === "" && (e.inputValue === void 0 || e.selectedKey === void 0) && V(null)), l !== K.current && (e.inputValue === void 0 || e.selectedKey === void 0) ? G() : R !== r && j(r);
1015
+ var $;
1016
+ let C = l != null && ($ = (o = f.getItem(l)) === null || o === void 0 ? void 0 : o.textValue) !== null && $ !== void 0 ? $ : "";
1017
+ !D && l != null && e.inputValue === void 0 && l === K.current && te.current !== C && (j(C), q(C)), K.current = l, te.current = C;
1021
1018
  });
1022
1019
  let le = Ru({
1023
1020
  ...e,
1024
1021
  value: ee(() => ({
1025
- inputValue: $,
1022
+ inputValue: r,
1026
1023
  selectedKey: l
1027
1024
  }), [
1028
- $,
1025
+ r,
1029
1026
  l
1030
1027
  ])
1031
1028
  }), n = () => {
1032
1029
  d && l == null ? c() : p();
1033
1030
  }, c = () => {
1034
- P.current = null, G(null), k();
1031
+ K.current = null, V(null), P();
1035
1032
  }, p = () => {
1036
1033
  if (e.selectedKey !== void 0 && e.inputValue !== void 0) {
1037
- var o, s;
1034
+ var o, $;
1038
1035
  (o = e.onSelectionChange) === null || o === void 0 || o.call(e, l);
1039
1036
  var C;
1040
- let du = l != null && (C = (s = m.getItem(l)) === null || s === void 0 ? void 0 : s.textValue) !== null && C !== void 0 ? C : "";
1041
- j(du), k();
1037
+ let du = l != null && (C = ($ = f.getItem(l)) === null || $ === void 0 ? void 0 : $.textValue) !== null && C !== void 0 ? C : "";
1038
+ j(du), P();
1042
1039
  } else
1043
- R(), k();
1040
+ G(), P();
1044
1041
  };
1045
- const K = () => {
1042
+ const O = () => {
1046
1043
  if (d) {
1047
- var o, s;
1048
- const C = l != null && (s = (o = m.getItem(l)) === null || o === void 0 ? void 0 : o.textValue) !== null && s !== void 0 ? s : "";
1049
- $ === C ? p() : c();
1044
+ var o, $;
1045
+ const C = l != null && ($ = (o = f.getItem(l)) === null || o === void 0 ? void 0 : o.textValue) !== null && $ !== void 0 ? $ : "";
1046
+ r === C ? p() : c();
1050
1047
  } else
1051
1048
  p();
1052
1049
  };
1053
1050
  let ie = () => {
1054
- r.isOpen && S.focusedKey != null ? l === S.focusedKey ? p() : G(S.focusedKey) : K();
1055
- }, de = v($), ce = (o) => {
1056
- o ? (de.current = $, b === "focus" && !e.isReadOnly && g(null, "focus")) : (h && K(), $ !== de.current && le.commitValidation()), M(o);
1057
- }, pu = ee(() => r.isOpen ? a ? D : F : X, [
1058
- r.isOpen,
1059
- D,
1051
+ s.isOpen && L.focusedKey != null ? l === L.focusedKey ? p() : V(L.focusedKey) : O();
1052
+ }, de = E(r), ce = (o) => {
1053
+ o ? (de.current = r, b === "focus" && !e.isReadOnly && k(null, "focus")) : (A && O(), r !== de.current && le.commitValidation()), g(o);
1054
+ }, pu = ee(() => s.isOpen ? a ? F : y : Z, [
1055
+ s.isOpen,
1060
1056
  F,
1057
+ y,
1061
1058
  a,
1062
- X
1059
+ Z
1063
1060
  ]);
1064
1061
  return {
1065
1062
  ...le,
1066
- ...r,
1067
- focusStrategy: A,
1068
- toggle: O,
1069
- open: g,
1070
- close: K,
1071
- selectionManager: S,
1063
+ ...s,
1064
+ focusStrategy: m,
1065
+ toggle: I,
1066
+ open: k,
1067
+ close: O,
1068
+ selectionManager: L,
1072
1069
  selectedKey: l,
1073
- setSelectedKey: G,
1070
+ setSelectedKey: V,
1074
1071
  disabledKeys: ne,
1075
- isFocused: L,
1072
+ isFocused: D,
1076
1073
  setFocused: ce,
1077
1074
  selectedItem: ue,
1078
1075
  collection: pu,
1079
- inputValue: $,
1080
- setInputValue: U,
1076
+ inputValue: r,
1077
+ setInputValue: q,
1081
1078
  commit: ie,
1082
1079
  revert: n
1083
1080
  };
1084
1081
  }
1085
- function cn(e, u, i) {
1086
- return new wu(cu(e, e, u, i));
1082
+ function pn(e, u, i) {
1083
+ return new Mu(cu(e, e, u, i));
1087
1084
  }
1088
1085
  function cu(e, u, i, b) {
1089
1086
  let t = [];
1090
1087
  for (let d of u)
1091
1088
  if (d.type === "section" && d.hasChildNodes) {
1092
- let h = cu(e, De(d, e), i, b);
1089
+ let A = cu(e, De(d, e), i, b);
1093
1090
  [
1094
- ...h
1091
+ ...A
1095
1092
  ].some((a) => a.type === "item") && t.push({
1096
1093
  ...d,
1097
- childNodes: h
1094
+ childNodes: A
1098
1095
  });
1099
1096
  } else d.type === "item" && b(d.textValue, i) ? t.push({
1100
1097
  ...d
@@ -1103,11 +1100,11 @@ function cu(e, u, i, b) {
1103
1100
  });
1104
1101
  return t;
1105
1102
  }
1106
- const pn = /* @__PURE__ */ Te(null), dn = /* @__PURE__ */ Te(null), $n = /* @__PURE__ */ Ku(function(u, i) {
1107
- [u, i] = su(u, i, pn);
1108
- let { children: b, isDisabled: t = !1, isInvalid: d = !1, isRequired: h = !1 } = u, a = ee(() => {
1103
+ const dn = /* @__PURE__ */ he(null), rn = /* @__PURE__ */ he(null), sn = /* @__PURE__ */ ru(function(u, i) {
1104
+ [u, i] = bu(u, i, dn);
1105
+ let { children: b, isDisabled: t = !1, isInvalid: d = !1, isRequired: A = !1 } = u, a = ee(() => {
1109
1106
  var x;
1110
- return /* @__PURE__ */ Q.createElement(Be.Provider, {
1107
+ return /* @__PURE__ */ X.createElement(Ee.Provider, {
1111
1108
  value: {
1112
1109
  items: (x = u.items) !== null && x !== void 0 ? x : u.defaultItems
1113
1110
  }
@@ -1115,233 +1112,240 @@ const pn = /* @__PURE__ */ Te(null), dn = /* @__PURE__ */ Te(null), $n = /* @__P
1115
1112
  isOpen: !1,
1116
1113
  isDisabled: t,
1117
1114
  isInvalid: d,
1118
- isRequired: h,
1115
+ isRequired: A,
1119
1116
  defaultChildren: null
1120
1117
  }) : b);
1121
1118
  }, [
1122
1119
  b,
1123
1120
  t,
1124
1121
  d,
1125
- h,
1122
+ A,
1126
1123
  u.items,
1127
1124
  u.defaultItems
1128
1125
  ]);
1129
- return /* @__PURE__ */ Q.createElement(Su, {
1126
+ return /* @__PURE__ */ X.createElement(Lu, {
1130
1127
  content: a
1131
- }, (x) => /* @__PURE__ */ Q.createElement(sn, {
1128
+ }, (x) => /* @__PURE__ */ X.createElement(bn, {
1132
1129
  props: u,
1133
1130
  collection: x,
1134
1131
  comboBoxRef: i
1135
1132
  }));
1136
- }), rn = [
1137
- Ae,
1138
- he,
1139
- ve,
1133
+ }), $n = [
1140
1134
  fe,
1141
- Ee
1135
+ ve,
1136
+ Be,
1137
+ Ae,
1138
+ Te
1142
1139
  ];
1143
- function sn({ props: e, collection: u, comboBoxRef: i }) {
1140
+ function bn({ props: e, collection: u, comboBoxRef: i }) {
1144
1141
  let { name: b, formValue: t = "key", allowsCustomValue: d } = e;
1145
1142
  d && (t = "text");
1146
- let { validationBehavior: h } = bu(fu) || {};
1143
+ let { validationBehavior: A } = au(vu) || {};
1147
1144
  var a, x;
1148
- let L = (x = (a = e.validationBehavior) !== null && a !== void 0 ? a : h) !== null && x !== void 0 ? x : "native", { contains: M } = Ou({
1145
+ let D = (x = (a = e.validationBehavior) !== null && a !== void 0 ? a : A) !== null && x !== void 0 ? x : "native", { contains: g } = Ou({
1149
1146
  sensitivity: "base"
1150
- }), A = ln({
1151
- defaultFilter: e.defaultFilter || M,
1147
+ }), m = cn({
1148
+ defaultFilter: e.defaultFilter || g,
1152
1149
  ...e,
1153
1150
  // If props.items isn't provided, rely on collection filtering (aka listbox.items is provided or defaultItems provided to Combobox)
1154
1151
  items: e.items,
1155
1152
  children: void 0,
1156
1153
  collection: u,
1157
- validationBehavior: L
1158
- }), E = v(null), T = v(null), y = v(null), m = v(null), [S, l] = au(!e["aria-label"] && !e["aria-labelledby"]), { buttonProps: G, inputProps: ue, listBoxProps: ne, labelProps: V, descriptionProps: N, errorMessageProps: q, ...$ } = tn({
1159
- ...Cu(e),
1154
+ validationBehavior: D
1155
+ }), B = E(null), h = E(null), S = E(null), f = E(null), [L, l] = Cu(!e["aria-label"] && !e["aria-labelledby"]), { buttonProps: V, inputProps: ue, listBoxProps: ne, labelProps: z, descriptionProps: N, errorMessageProps: U, ...r } = ln({
1156
+ ...xu(e),
1160
1157
  label: l,
1161
- inputRef: T,
1162
- buttonRef: E,
1163
- listBoxRef: y,
1164
- popoverRef: m,
1158
+ inputRef: h,
1159
+ buttonRef: B,
1160
+ listBoxRef: S,
1161
+ popoverRef: f,
1165
1162
  name: t === "text" ? b : void 0,
1166
- validationBehavior: L
1167
- }, A), [U, D] = _(null), F = $e(() => {
1168
- if (T.current) {
1169
- var r;
1170
- let g = (r = E.current) === null || r === void 0 ? void 0 : r.getBoundingClientRect(), O = T.current.getBoundingClientRect(), w = g ? Math.min(g.left, O.left) : O.left, B = g ? Math.max(g.right, O.right) : O.right;
1171
- D(B - w + "px");
1163
+ validationBehavior: D
1164
+ }, m), [q, F] = Q(null), y = re(() => {
1165
+ if (h.current) {
1166
+ var s;
1167
+ let k = (s = B.current) === null || s === void 0 ? void 0 : s.getBoundingClientRect(), I = h.current.getBoundingClientRect(), w = k ? Math.min(k.left, I.left) : I.left, T = k ? Math.max(k.right, I.right) : I.right;
1168
+ F(T - w + "px");
1172
1169
  }
1173
1170
  }, [
1174
- E,
1175
- T,
1176
- D
1171
+ B,
1172
+ h,
1173
+ F
1177
1174
  ]);
1178
- Pu({
1179
- ref: T,
1180
- onResize: F
1175
+ Ku({
1176
+ ref: h,
1177
+ onResize: y
1181
1178
  });
1182
- let X = ee(() => ({
1183
- isOpen: A.isOpen,
1179
+ let Z = ee(() => ({
1180
+ isOpen: m.isOpen,
1184
1181
  isDisabled: e.isDisabled || !1,
1185
- isInvalid: $.isInvalid || !1,
1182
+ isInvalid: r.isInvalid || !1,
1186
1183
  isRequired: e.isRequired || !1
1187
1184
  }), [
1188
- A.isOpen,
1185
+ m.isOpen,
1189
1186
  e.isDisabled,
1190
- $.isInvalid,
1187
+ r.isInvalid,
1191
1188
  e.isRequired
1192
- ]), oe = xu({
1189
+ ]), oe = mu({
1193
1190
  ...e,
1194
- values: X,
1191
+ values: Z,
1195
1192
  defaultClassName: "react-aria-ComboBox"
1196
- }), z = gu(e);
1197
- delete z.id;
1198
- var Z;
1199
- return /* @__PURE__ */ Q.createElement(mu, {
1193
+ }), M = ku(e);
1194
+ delete M.id;
1195
+ var H;
1196
+ return /* @__PURE__ */ X.createElement(hu, {
1200
1197
  values: [
1201
1198
  [
1202
- dn,
1203
- A
1199
+ rn,
1200
+ m
1204
1201
  ],
1205
1202
  [
1206
- Ae,
1203
+ fe,
1207
1204
  {
1208
- ...V,
1209
- ref: S
1205
+ ...z,
1206
+ ref: L
1210
1207
  }
1211
1208
  ],
1212
1209
  [
1213
- he,
1210
+ ve,
1214
1211
  {
1215
- ...G,
1216
- ref: E,
1217
- isPressed: A.isOpen
1212
+ ...V,
1213
+ ref: B,
1214
+ isPressed: m.isOpen
1218
1215
  }
1219
1216
  ],
1220
1217
  [
1221
- ve,
1218
+ Be,
1222
1219
  {
1223
1220
  ...ue,
1224
- ref: T
1221
+ ref: h
1225
1222
  }
1226
1223
  ],
1227
1224
  [
1228
- Fu,
1229
- A
1225
+ yu,
1226
+ m
1230
1227
  ],
1231
1228
  [
1232
- yu,
1229
+ Su,
1233
1230
  {
1234
- ref: m,
1235
- triggerRef: T,
1236
- scrollRef: y,
1231
+ ref: f,
1232
+ triggerRef: h,
1233
+ scrollRef: S,
1237
1234
  placement: "bottom start",
1238
1235
  isNonModal: !0,
1239
1236
  trigger: "ComboBox",
1240
1237
  style: {
1241
- "--trigger-width": U
1238
+ "--trigger-width": q
1242
1239
  },
1243
- clearContexts: rn
1240
+ clearContexts: $n
1244
1241
  }
1245
1242
  ],
1246
1243
  [
1247
- Be,
1244
+ Ee,
1248
1245
  {
1249
1246
  ...ne,
1250
- ref: y
1247
+ ref: S
1251
1248
  }
1252
1249
  ],
1253
1250
  [
1254
- Eu,
1255
- A
1251
+ Tu,
1252
+ m
1256
1253
  ],
1257
1254
  [
1258
- Ee,
1255
+ Te,
1259
1256
  {
1260
1257
  slots: {
1261
1258
  description: N,
1262
- errorMessage: q
1259
+ errorMessage: U
1263
1260
  }
1264
1261
  }
1265
1262
  ],
1266
1263
  [
1267
- fe,
1264
+ Ae,
1268
1265
  {
1269
- isInvalid: $.isInvalid,
1266
+ isInvalid: r.isInvalid,
1270
1267
  isDisabled: e.isDisabled || !1
1271
1268
  }
1272
1269
  ],
1273
1270
  [
1274
- hu,
1275
- $
1271
+ fu,
1272
+ r
1276
1273
  ]
1277
1274
  ]
1278
- }, /* @__PURE__ */ Q.createElement("div", {
1279
- ...z,
1275
+ }, /* @__PURE__ */ X.createElement("div", {
1276
+ ...M,
1280
1277
  ...oe,
1281
1278
  ref: i,
1282
1279
  slot: e.slot || void 0,
1283
- "data-focused": A.isFocused || void 0,
1284
- "data-open": A.isOpen || void 0,
1280
+ "data-focused": m.isFocused || void 0,
1281
+ "data-open": m.isOpen || void 0,
1285
1282
  "data-disabled": e.isDisabled || void 0,
1286
- "data-invalid": $.isInvalid || void 0,
1283
+ "data-invalid": r.isInvalid || void 0,
1287
1284
  "data-required": e.isRequired || void 0
1288
- }), b && t === "key" && /* @__PURE__ */ Q.createElement("input", {
1285
+ }), b && t === "key" && /* @__PURE__ */ X.createElement("input", {
1289
1286
  type: "hidden",
1290
1287
  name: b,
1291
- value: (Z = A.selectedKey) !== null && Z !== void 0 ? Z : ""
1288
+ value: (H = m.selectedKey) !== null && H !== void 0 ? H : ""
1292
1289
  }));
1293
1290
  }
1294
- const bn = "_combobox_zftmk_4", an = "_inputField_zftmk_9", Cn = "_medium_zftmk_27", xn = "_wrap_zftmk_67", mn = "_button_zftmk_73", hn = "_icon_zftmk_105", W = {
1295
- combobox: bn,
1296
- inputField: an,
1297
- medium: Cn,
1298
- wrap: xn,
1299
- button: mn,
1300
- icon: hn
1291
+ const an = "_combobox_zftmk_4", Cn = "_inputField_zftmk_9", xn = "_medium_zftmk_27", mn = "_wrap_zftmk_67", hn = "_button_zftmk_73", fn = "_icon_zftmk_105", W = {
1292
+ combobox: an,
1293
+ inputField: Cn,
1294
+ medium: xn,
1295
+ wrap: mn,
1296
+ button: hn,
1297
+ icon: fn
1301
1298
  };
1302
- function oo({
1299
+ function uo({
1303
1300
  label: e,
1304
1301
  description: u,
1305
1302
  errorMessage: i,
1306
1303
  children: b,
1307
1304
  items: t,
1308
1305
  className: d,
1309
- errorPosition: h = "top",
1306
+ errorPosition: A = "top",
1310
1307
  size: a = "large",
1311
- ...x
1308
+ popover: x,
1309
+ ...D
1312
1310
  }) {
1311
+ const g = X.useRef(null), m = (B) => {
1312
+ var h;
1313
+ B.currentTarget.value && ((h = g.current) == null || h.select());
1314
+ };
1313
1315
  return /* @__PURE__ */ ae(
1314
- $n,
1316
+ sn,
1315
1317
  {
1316
1318
  className: be(W.combobox, d),
1317
- ...x,
1319
+ ...D,
1318
1320
  children: [
1319
- e && /* @__PURE__ */ f(Ju, { children: e }),
1320
- u && /* @__PURE__ */ f(Yu, { slot: "description", children: u }),
1321
- h === "top" && /* @__PURE__ */ f(me, { "data-testid": "fieldError", children: i }),
1321
+ /* @__PURE__ */ v(Ju, { popover: x, children: e && /* @__PURE__ */ v(Yu, { children: e }) }),
1322
+ u && /* @__PURE__ */ v(_u, { slot: "description", children: u }),
1323
+ A === "top" && /* @__PURE__ */ v(xe, { "data-testid": "fieldError", children: i }),
1322
1324
  /* @__PURE__ */ ae("div", { className: W.wrap, children: [
1323
- /* @__PURE__ */ f(
1324
- vu,
1325
+ /* @__PURE__ */ v(
1326
+ Au,
1325
1327
  {
1326
1328
  className: be(W.inputField, {
1327
1329
  [W.medium]: a === "medium"
1328
- })
1330
+ }),
1331
+ onMouseUp: m,
1332
+ ref: g
1329
1333
  }
1330
1334
  ),
1331
- /* @__PURE__ */ f(
1332
- $u,
1335
+ /* @__PURE__ */ v(
1336
+ su,
1333
1337
  {
1334
1338
  className: be(W.button, {
1335
1339
  [W.medium]: a === "medium"
1336
1340
  }),
1337
1341
  "aria-label": "Visa lista",
1338
- children: /* @__PURE__ */ f(
1342
+ children: /* @__PURE__ */ v(
1339
1343
  "div",
1340
1344
  {
1341
1345
  className: W.icon,
1342
1346
  "aria-hidden": "true",
1343
- children: /* @__PURE__ */ f(
1344
- nn,
1347
+ children: /* @__PURE__ */ v(
1348
+ on,
1345
1349
  {
1346
1350
  size: 20,
1347
1351
  "aria-hidden": !0
@@ -1352,24 +1356,24 @@ function oo({
1352
1356
  }
1353
1357
  )
1354
1358
  ] }),
1355
- h === "bottom" && /* @__PURE__ */ f(me, { "data-testid": "fieldError", children: i }),
1356
- /* @__PURE__ */ f(_u, { children: /* @__PURE__ */ f(Qu, { items: t, children: b }) })
1359
+ A === "bottom" && /* @__PURE__ */ v(xe, { "data-testid": "fieldError", children: i }),
1360
+ /* @__PURE__ */ v(Qu, { children: /* @__PURE__ */ v(en, { items: t, children: b }) })
1357
1361
  ]
1358
1362
  }
1359
1363
  );
1360
1364
  }
1361
- function fn(e) {
1362
- return /* @__PURE__ */ f(en, { ...e });
1363
- }
1364
1365
  function vn(e) {
1365
- return /* @__PURE__ */ f(un, { ...e, children: /* @__PURE__ */ f(Lu, { items: e.children, children: (u) => /* @__PURE__ */ f(fn, { children: u.name }, u.id) }) });
1366
+ return /* @__PURE__ */ v(un, { ...e });
1367
+ }
1368
+ function An(e) {
1369
+ return /* @__PURE__ */ v(nn, { ...e, children: /* @__PURE__ */ v(gu, { items: e.children, children: (u) => /* @__PURE__ */ v(vn, { children: u.name }, u.id) }) });
1366
1370
  }
1367
- function to(e) {
1368
- return /* @__PURE__ */ f(vn, { ...e });
1371
+ function no(e) {
1372
+ return /* @__PURE__ */ v(An, { ...e });
1369
1373
  }
1370
1374
  export {
1371
- oo as C,
1372
- fn as a,
1373
- vn as b,
1374
- to as c
1375
+ uo as C,
1376
+ vn as a,
1377
+ An as b,
1378
+ no as c
1375
1379
  };