@midas-ds/components 10.2.0 → 10.4.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 (440) hide show
  1. package/AccordionItem-BcsoC78F.cjs +1 -0
  2. package/{AccordionItem-DZT76sWu.js → AccordionItem-BqsgiVWV.js} +43 -41
  3. package/{BadgeContainer-D3RtqcPF.js → BadgeContainer-DM8TdyMT.js} +4 -4
  4. package/{BadgeContainer-DeUgqGqb.cjs → BadgeContainer-I1XA3OCl.cjs} +1 -1
  5. package/Breadcrumbs-CfW5IuyE.cjs +1 -0
  6. package/{Breadcrumbs-CmZXtTiS.js → Breadcrumbs-D7eoibWk.js} +85 -73
  7. package/{Button-iSiWjocA.cjs → Button-BXY5ZhqI.cjs} +1 -1
  8. package/{Button-CbFRzRrF.js → Button-BZUo7vsZ.js} +2 -2
  9. package/Button-CFYdzG0H.js +341 -0
  10. package/Button-DExMoP5f.cjs +1 -0
  11. package/Button.module-DEQtBYe5.cjs +1 -0
  12. package/Button.module-tti8HGxs.js +14 -0
  13. package/CHANGELOG.md +48 -0
  14. package/{Card-CaKKKv9k.js → Card-BaWSgtSF.js} +5 -5
  15. package/Card-Cc1TNPcQ.cjs +1 -0
  16. package/{CharacterCounter-CrY8QRuY.cjs → CharacterCounter-DSFBv3Rw.cjs} +1 -1
  17. package/CharacterCounter-cLhqPZlk.js +22 -0
  18. package/Checkbox-Co3h0hur.cjs +1 -0
  19. package/Checkbox-LuUwTZ3W.js +264 -0
  20. package/CheckboxGroup-CUA8_xSx.js +160 -0
  21. package/CheckboxGroup-DmUOM0xl.cjs +1 -0
  22. package/{Collection-C5ONNBqd.js → Collection--62xKPm9.js} +19 -18
  23. package/Collection-BtBX5IMY.cjs +1 -0
  24. package/{ColorSchemeSwitch-CbAWIJCg.js → ColorSchemeSwitch-Cwono7Ap.js} +48 -32
  25. package/ColorSchemeSwitch-DDXdSzqg.cjs +16 -0
  26. package/ComboBox-BBC7jhnm.cjs +1 -0
  27. package/{ComboBox-BCaqPEIH.js → ComboBox-HLIAbb2q.js} +360 -345
  28. package/DateField-B3VjOSde.cjs +1 -0
  29. package/DateField-CnLEi7uX.js +47 -0
  30. package/DateInputDivider-3BvwXXa9.cjs +1 -0
  31. package/{DateInputDivider-Dx8n1Lxp.js → DateInputDivider-Bi5N-C0c.js} +73 -73
  32. package/DateRangePicker-BPlZ12r8.cjs +6 -0
  33. package/{DateRangePicker-BmBvwqo6.js → DateRangePicker-CFOoGvut.js} +192 -189
  34. package/Dialog-CSnN6baf.cjs +1 -0
  35. package/{Dialog-CYxThuMl.js → Dialog-CtVrVuMr.js} +565 -538
  36. package/Dialog-SqciohRY.js +221 -0
  37. package/Dialog-pSSy1zwf.cjs +1 -0
  38. package/DragAndDrop-BoEd260f.cjs +1 -0
  39. package/{DragAndDrop-CSwmPhxC.js → DragAndDrop-DkSTL28C.js} +8 -8
  40. package/{Dropdown-nkjzsVYX.js → Dropdown-CkBp70BH.js} +2 -2
  41. package/{Dropdown-CaGon9OR.cjs → Dropdown-DAsVShlt.cjs} +1 -1
  42. package/FieldError-B3YFj-an.js +23 -0
  43. package/{FieldError-CZikNDxX.js → FieldError-BbR-29BM.js} +8 -8
  44. package/{FieldError-DqdfJ3fs.cjs → FieldError-MVsU-Mgw.cjs} +1 -1
  45. package/{FieldError-BZw8UzBk.cjs → FieldError-bRTpchvr.cjs} +1 -1
  46. package/{FileUpload-ULwcYDxs.js → FileUpload-B4rv-wke.js} +502 -480
  47. package/{FileUpload-DYRZ0M9F.cjs → FileUpload-BwMhyLjG.cjs} +2 -2
  48. package/{FocusScope-DwIqdYpQ.js → FocusScope-D_hwN_TJ.js} +38 -37
  49. package/FocusScope-vcXLOQiu.cjs +1 -0
  50. package/Group-CpkUzEAs.js +45 -0
  51. package/Group-DOpbdoAi.cjs +1 -0
  52. package/Heading-CKTR4sOz.cjs +1 -0
  53. package/{Heading-BY5-QN4S.js → Heading-NxtGri2i.js} +7 -7
  54. package/{Hidden-B5ir3Lei.js → Hidden-C9KWUR7b.js} +2 -2
  55. package/{InfoBanner-CVIBFSWx.js → InfoBanner-CBUoad7A.js} +45 -36
  56. package/InfoBanner-CVry6Y8i.cjs +1 -0
  57. package/Input-LnjmFI1x.js +42 -0
  58. package/Input-MJji5hhq.cjs +1 -0
  59. package/Label-CNmTN1YY.cjs +1 -0
  60. package/Label-TVxwGZ-O.js +78 -0
  61. package/Layout-Dw-oCqxd.cjs +16 -0
  62. package/Layout-amz9BESl.js +498 -0
  63. package/{Link-B-nus-FT.js → Link-Bn8V3ZI0.js} +20 -19
  64. package/Link-CidjjqHb.cjs +1 -0
  65. package/{Link-DsnCtNeI.cjs → Link-D92ftFi2.cjs} +1 -1
  66. package/{Link-uFowN4qv.js → Link-DegonJfl.js} +1 -1
  67. package/LinkButton-CckYzfJ8.js +69 -0
  68. package/LinkButton-DKZ4z6zu.cjs +6 -0
  69. package/ListBox-BCz5-23H.cjs +1 -0
  70. package/{ListBox-DOi_y_Lt.js → ListBox-C-isJIHL.js} +56 -55
  71. package/{ListBoxButton-O6zN3P4W.js → ListBoxButton-C_krklY0.js} +1 -1
  72. package/{ListBoxButton-CFeNhJhr.cjs → ListBoxButton-DNm3gvcT.cjs} +1 -1
  73. package/{ListBoxSection-C1aLKL9p.js → ListBoxSection-BVR2xtOH.js} +9 -9
  74. package/ListBoxSection-CfQZoURJ.cjs +1 -0
  75. package/ListKeyboardDelegate-CPsZ7D83.cjs +1 -0
  76. package/{ListKeyboardDelegate-DNOzQ8nc.js → ListKeyboardDelegate-CY6t6y1t.js} +24 -15
  77. package/Logo-BpH0HC91.cjs +1 -0
  78. package/{Logo-BIrOEINM.js → Logo-ME4ffCue.js} +34 -26
  79. package/{OverlayArrow-DorA4Rbr.js → OverlayArrow-CfhSYL46.js} +28 -27
  80. package/OverlayArrow-DpZ1FqOd.cjs +1 -0
  81. package/Popover-C8VY1YKi.js +38 -0
  82. package/Popover-CnAsw3wI.cjs +1 -0
  83. package/{ProgressBar-gmAzSsrz.js → ProgressBar-BNCjpcv8.js} +2 -2
  84. package/ProgressBar-CcbxcWdT.cjs +1 -0
  85. package/Radio-B2zfEFdq.cjs +1 -0
  86. package/{Radio-_ukSkxPT.js → Radio-CZYibh9r.js} +81 -78
  87. package/{RangeCalendar-uXwoBL-O.js → RangeCalendar-B16b6tJD.js} +303 -294
  88. package/RangeCalendar-C1LFeOVk.cjs +11 -0
  89. package/SSRProvider-40TXmsUG.js +50 -0
  90. package/SSRProvider-Bc-sMhsT.cjs +1 -0
  91. package/SearchField-CML0kjtn.cjs +6 -0
  92. package/{SearchField-DYl2uo7o.js → SearchField-giwECmXS.js} +175 -166
  93. package/Select-DKey6CeS.cjs +1 -0
  94. package/Select-mwaAv20X.js +665 -0
  95. package/SelectionManager-D0jYUYcy.cjs +1 -0
  96. package/{SelectionManager-6H88Cv6B.js → SelectionManager-zsWy3vsd.js} +86 -86
  97. package/Separator-CxF-3jhR.cjs +1 -0
  98. package/{Separator-LYnFqh4L.js → Separator-Dn5LYN5I.js} +19 -20
  99. package/Spinner-CbJ6YAz-.js +53 -0
  100. package/Spinner-yHcy8YHC.cjs +6 -0
  101. package/TabList-7VtCiXxX.cjs +1 -0
  102. package/TabList-CthsM5h6.js +435 -0
  103. package/{Table-B_N7wUmA.js → Table-BcQPvJT3.js} +67 -69
  104. package/Table-DkvNp6xm.cjs +16 -0
  105. package/{Tag-g6HN-YCv.js → Tag-Bs8T2Ei7.js} +140 -141
  106. package/Tag-CFWZ2LQW.cjs +1 -0
  107. package/{Text-B_H68Tvq.js → Text-92cPh38G.js} +3 -3
  108. package/{Text-B2K-BJKQ.cjs → Text-CfcjRtke.cjs} +1 -1
  109. package/{Text-3MNwRMpI.cjs → Text-DBHWi5gA.cjs} +1 -1
  110. package/{Text-BN-g1iWi.js → Text-DlKqpvSa.js} +1 -1
  111. package/TextArea-DBNAVWqL.js +119 -0
  112. package/TextArea-XJDfeXRs.cjs +1 -0
  113. package/TextField-BdK9KEQ5.cjs +1 -0
  114. package/{TextField-DBaRuNj7.js → TextField-ByDJkig9.js} +22 -21
  115. package/{Toast-CjpldAI8.js → Toast-DPPvPhrF.js} +95 -87
  116. package/Toast-l1bKo2oA.cjs +1 -0
  117. package/ToggleButtonGroup-DH8IgR4G.cjs +1 -0
  118. package/{ToggleButtonGroup-Ceh9_yBM.js → ToggleButtonGroup-HOWNWtQZ.js} +47 -46
  119. package/{Tooltip-BAIjaYax.js → Tooltip-5mLWn_wO.js} +53 -51
  120. package/Tooltip-pN5W3IK6.cjs +1 -0
  121. package/{VisuallyHidden-D-4z1VgU.js → VisuallyHidden-CYfmTSCD.js} +8 -8
  122. package/VisuallyHidden-Doyzl0F7.cjs +1 -0
  123. package/accordion/index.cjs +1 -1
  124. package/accordion/index.js +1 -1
  125. package/{arrow-right-Cw48o2oW.cjs → arrow-right-QJ2gXPKQ.cjs} +1 -1
  126. package/assets/Button.css +1 -1
  127. package/assets/Checkbox.css +1 -1
  128. package/assets/FileUpload.css +1 -1
  129. package/assets/Label.css +1 -1
  130. package/assets/LinkButton.css +1 -1
  131. package/assets/Popover.css +1 -0
  132. package/assets/RangeCalendar.css +1 -1
  133. package/assets/SearchField.css +1 -1
  134. package/assets/Spinner.css +1 -1
  135. package/assets/TabList.css +1 -0
  136. package/badge/index.cjs +1 -1
  137. package/badge/index.js +1 -1
  138. package/breadcrumbs/Breadcrumbs.d.ts +11 -7
  139. package/breadcrumbs/index.cjs +1 -1
  140. package/breadcrumbs/index.d.ts +1 -1
  141. package/breadcrumbs/index.js +1 -1
  142. package/button/index.cjs +1 -1
  143. package/button/index.js +1 -1
  144. package/calendar/CalendarGrid.d.ts +1 -0
  145. package/calendar/index.cjs +1 -1
  146. package/calendar/index.js +1 -1
  147. package/card/index.cjs +1 -1
  148. package/card/index.js +1 -1
  149. package/character-counter/index.cjs +1 -1
  150. package/character-counter/index.js +1 -1
  151. package/{check-Dw9c62O4.cjs → check-D_KoootC.cjs} +1 -1
  152. package/checkbox/Checkbox.d.ts +4 -2
  153. package/checkbox/CheckboxGroup.d.ts +8 -8
  154. package/checkbox/CheckboxGroupFieldError.d.ts +8 -0
  155. package/checkbox/CheckboxGroupItem.d.ts +3 -0
  156. package/checkbox/CheckboxInner.d.ts +2 -0
  157. package/checkbox/SingleCheckbox.d.ts +3 -0
  158. package/checkbox/context.d.ts +3 -0
  159. package/checkbox/index.cjs +1 -1
  160. package/checkbox/index.d.ts +2 -1
  161. package/checkbox/index.js +2 -2
  162. package/checkbox/intl/translations.json.d.ts +7 -0
  163. package/checkbox/types.d.ts +16 -0
  164. package/checkbox/useSelectAll.d.ts +7 -0
  165. package/{chevron-down-C2E7aZ3N.cjs → chevron-down-jl83cllc.cjs} +1 -1
  166. package/{info-DkzVqB8I.js → circle-check-B9HYcH7Z.js} +4 -16
  167. package/{info-DlzSeKbc.cjs → circle-check-BGo8gML8.cjs} +2 -7
  168. package/color-scheme-switch/ColorSchemeSwitch.d.ts +1 -0
  169. package/color-scheme-switch/index.cjs +1 -1
  170. package/color-scheme-switch/index.js +1 -1
  171. package/color-scheme-switch/intl/translations.json.d.ts +15 -0
  172. package/combobox/ComboBox.d.ts +3 -1
  173. package/combobox/index.cjs +1 -1
  174. package/combobox/index.js +1 -1
  175. package/combobox/intl/translations.json.d.ts +11 -0
  176. package/{context-B8cn10po.js → context-CGNJ3grH.js} +11 -11
  177. package/context-Df3XbgBG.cjs +1 -0
  178. package/{createLucideIcon-DAY4oS-S.cjs → createLucideIcon-Cg_wkoIA.cjs} +1 -1
  179. package/date-field/DateField.d.ts +3 -0
  180. package/date-field/index.cjs +1 -1
  181. package/date-field/index.js +2 -2
  182. package/date-picker/DatePicker.d.ts +3 -0
  183. package/date-picker/DateRangePicker.d.ts +3 -0
  184. package/date-picker/index.cjs +1 -1
  185. package/date-picker/index.js +1 -1
  186. package/dropdown/index.cjs +1 -1
  187. package/dropdown/index.js +1 -1
  188. package/field-error/index.cjs +1 -1
  189. package/field-error/index.js +1 -1
  190. package/file-upload/FileUpload.d.ts +4 -0
  191. package/file-upload/index.cjs +1 -1
  192. package/file-upload/index.js +1 -1
  193. package/file-upload/intl/translations.json.d.ts +17 -0
  194. package/{getScrollParent-Ru2U2LlM.js → getScrollParent-CT_L9LUr.js} +1 -1
  195. package/{getScrollParent-DuKmPmUa.cjs → getScrollParent-CsZ9ciml.cjs} +1 -1
  196. package/heading/index.cjs +1 -1
  197. package/heading/index.js +1 -1
  198. package/{index-BSMrH_Du.js → index-CGRFP4CC.js} +7 -7
  199. package/{index-D97L3EBk.cjs → index-Dsz3aiWt.cjs} +2 -2
  200. package/index.cjs +1 -1
  201. package/index.d.ts +1 -0
  202. package/index.js +105 -100
  203. package/inertValue-B3AFhVG4.cjs +1 -0
  204. package/info-BZwphdye.js +15 -0
  205. package/info-CIEIENo6.cjs +6 -0
  206. package/info-banner/index.cjs +1 -1
  207. package/info-banner/index.js +1 -1
  208. package/info-banner/intl/translations.json.d.ts +11 -0
  209. package/label/InfoPopover.d.ts +9 -0
  210. package/label/LabelWrapper.d.ts +11 -0
  211. package/label/index.cjs +1 -1
  212. package/label/index.d.ts +1 -0
  213. package/label/index.js +1 -1
  214. package/label/intl/translations.json.d.ts +11 -0
  215. package/layout/Layout.d.ts +1 -0
  216. package/layout/context/LayoutContext.d.ts +1 -0
  217. package/layout/index.cjs +1 -1
  218. package/layout/index.js +1 -1
  219. package/layout/intl/translations.json.d.ts +23 -0
  220. package/link/index.cjs +1 -1
  221. package/link/index.js +2 -2
  222. package/link-button/index.cjs +1 -1
  223. package/link-button/index.js +2 -2
  224. package/list-box/index.cjs +1 -1
  225. package/list-box/index.js +2 -2
  226. package/logo/index.cjs +1 -1
  227. package/logo/index.js +1 -1
  228. package/logo/intl/translations.json.d.ts +11 -0
  229. package/mergeProps-B5KXZAI3.cjs +1 -0
  230. package/mergeProps-C1U1OIeJ.js +115 -0
  231. package/modal/index.cjs +1 -1
  232. package/modal/index.js +2 -2
  233. package/modal/intl/translations.json.d.ts +11 -0
  234. package/package.json +1 -1
  235. package/popover/Popover.d.ts +7 -0
  236. package/popover/index.cjs +1 -0
  237. package/popover/index.d.ts +1 -0
  238. package/popover/index.js +4 -0
  239. package/progress-bar/index.cjs +1 -1
  240. package/progress-bar/index.js +1 -1
  241. package/radio/Radio.d.ts +4 -4
  242. package/radio/index.cjs +1 -1
  243. package/radio/index.js +1 -1
  244. package/scrollIntoView-BLnsPvFA.js +87 -0
  245. package/scrollIntoView-joIyo-Jt.cjs +1 -0
  246. package/search-field/index.cjs +1 -1
  247. package/search-field/index.js +1 -1
  248. package/search-field/intl/translations.json.d.ts +11 -0
  249. package/select/index.cjs +1 -1
  250. package/select/index.js +1 -1
  251. package/select/intl/translations.json.d.ts +17 -0
  252. package/spinner/Spinner.d.ts +1 -0
  253. package/spinner/index.cjs +1 -1
  254. package/spinner/index.js +1 -1
  255. package/spinner/intl/translations.json.d.ts +11 -0
  256. package/{square-arrow-out-up-right-BCAO2eJs.cjs → square-arrow-out-up-right-V4Gd08uI.cjs} +1 -1
  257. package/table/index.cjs +1 -1
  258. package/table/index.js +1 -1
  259. package/tabs/Tab.d.ts +4 -0
  260. package/tabs/TabList.d.ts +3 -0
  261. package/tabs/TabPanel.d.ts +4 -0
  262. package/tabs/Tabs.d.ts +11 -5
  263. package/tabs/index.cjs +1 -1
  264. package/tabs/index.d.ts +3 -0
  265. package/tabs/index.js +5 -2
  266. package/tag/index.cjs +1 -1
  267. package/tag/index.js +1 -1
  268. package/text/index.cjs +1 -1
  269. package/text/index.js +1 -1
  270. package/textfield/TextFieldBase.d.ts +2 -0
  271. package/textfield/index.cjs +1 -1
  272. package/textfield/index.js +1 -1
  273. package/textfield/intl/translations.json.d.ts +0 -72
  274. package/theme/index.cjs +1 -1
  275. package/theme/index.d.ts +5 -0
  276. package/theme/index.js +2 -2
  277. package/theme/tokens.d.ts +5 -0
  278. package/toast/Toast.d.ts +5 -2
  279. package/toast/index.cjs +1 -1
  280. package/toast/index.js +1 -1
  281. package/toggle-button/index.cjs +1 -1
  282. package/toggle-button/index.js +1 -1
  283. package/{tokens-p6pg1Cea.cjs → tokens-BghDnMdO.cjs} +1 -1
  284. package/{tokens-xp-7KMK7.js → tokens-fEwCQXDv.js} +16 -11
  285. package/tooltip/index.cjs +1 -1
  286. package/tooltip/index.js +1 -1
  287. package/{triangle-alert-C0lvfCYH.cjs → triangle-alert-DJW8U7jL.cjs} +1 -1
  288. package/{useButton-C-Lq7CNY.js → useButton-1-Jf-oHj.js} +6 -6
  289. package/useButton-D60q0SQw.cjs +1 -0
  290. package/{useDateFormatter-g2maMTGH.cjs → useDateFormatter-BJBt0jk_.cjs} +1 -1
  291. package/{useDateFormatter-C53Uxdli.js → useDateFormatter-BVCkxVdw.js} +2 -2
  292. package/{useEvent-Cyd2ZL0c.js → useEvent-CigwyJOw.js} +3 -3
  293. package/useEvent-DPxMu-X9.cjs +1 -0
  294. package/{useField-BPMAlIbU.js → useField-BEBXv5Mh.js} +7 -7
  295. package/useField-D1UkzeaI.cjs +1 -0
  296. package/{useFilter-ChIbnALW.js → useFilter-CousKe2K.js} +1 -1
  297. package/useFilter-e2oIVF_O.cjs +1 -0
  298. package/useFocusRing-B-A1OLhU.cjs +1 -0
  299. package/useFocusRing-DOfBqnUN.js +33 -0
  300. package/useFocusWithin-CG8mAt2D.cjs +1 -0
  301. package/useFocusWithin-T1ifEM_s.js +54 -0
  302. package/useFocusable-ChPA2Jc7.js +127 -0
  303. package/useFocusable-D7I1ujkW.cjs +1 -0
  304. package/useFormValidation-BlFGdPZB.cjs +1 -0
  305. package/{useFormValidation-R8hQIjWP.js → useFormValidation-BzzruZKm.js} +5 -5
  306. package/{useHasTabbableChild-DsD9AJwE.js → useHasTabbableChild-BE81d_ab.js} +2 -2
  307. package/useHasTabbableChild-CoQRpNbC.cjs +1 -0
  308. package/useHighlightSelectionDescription-BfR_vGOe.cjs +1 -0
  309. package/{useHighlightSelectionDescription-DFfcgbUj.js → useHighlightSelectionDescription-D73hrkmn.js} +14 -14
  310. package/useHover-BE_XKZKe.cjs +1 -0
  311. package/useHover-DQvJ3Y-W.js +262 -0
  312. package/useLabels-CSU0kbtJ.cjs +1 -0
  313. package/{useLabels-BZjoZA1Z.js → useLabels-LrKQiY11.js} +1 -1
  314. package/{useListState-DFQ9d-uE.js → useListState-CebsX_1d.js} +7 -7
  315. package/{useListState-Ca2-uZMO.cjs → useListState-DymkJGDF.cjs} +1 -1
  316. package/useLocalizedStringFormatter-BO2iZEL0.cjs +1 -0
  317. package/useLocalizedStringFormatter-BiX5BTlb.cjs +1 -0
  318. package/{useLocalizedStringFormatter-D07YB2e1.js → useLocalizedStringFormatter-CL9MUZ8A.js} +1 -1
  319. package/useLocalizedStringFormatter-N0AyjzbM.js +25 -0
  320. package/useObserveElement-MhzEsCkX.cjs +1 -0
  321. package/usePress-BooY_CAy.cjs +7 -0
  322. package/{usePress-CUJ3pMOw.js → usePress-DuR4pVsE.js} +154 -153
  323. package/{useSingleSelectListState-C-nB8cug.js → useSingleSelectListState-BLXvGjLI.js} +1 -1
  324. package/{useSingleSelectListState-MGNxUTum.cjs → useSingleSelectListState-BPhlCU26.cjs} +1 -1
  325. package/{useTextField-5OZQPyOW.js → useTextField-C-sUypsx.js} +14 -14
  326. package/useTextField-DnRrCg5o.cjs +1 -0
  327. package/{useUpdateEffect-sk3kiVGz.cjs → useUpdateEffect-C5YQs_1w.cjs} +1 -1
  328. package/utils/intl/useLocalizedStringFormatter.d.ts +2 -0
  329. package/utils-CoCR_Fce.js +234 -0
  330. package/utils-DHNZrQmj.cjs +1 -0
  331. package/utils-DJhAJHk_.js +152 -0
  332. package/utils-Dvdohqm9.cjs +1 -0
  333. package/{x-CvxiAZTW.cjs → x-H8Zrx8-x.cjs} +1 -1
  334. package/AccordionItem-Z_c9MpAM.cjs +0 -1
  335. package/Breadcrumbs-Cx09jwZZ.cjs +0 -1
  336. package/Button-DnhqHU01.cjs +0 -1
  337. package/Button-ZOQy9Ivu.js +0 -78
  338. package/Button.module-CMMhIrkn.js +0 -14
  339. package/Button.module-DO5s9hOk.cjs +0 -1
  340. package/Card-C0BFW3wJ.cjs +0 -1
  341. package/CharacterCounter-CPGdboVJ.js +0 -22
  342. package/Checkbox-CvFsn_FL.js +0 -380
  343. package/Checkbox-DSxGAJX2.cjs +0 -1
  344. package/CheckboxGroup-Bk9DPq4I.cjs +0 -1
  345. package/CheckboxGroup-Dij9zKlF.js +0 -54
  346. package/Collection-Csx3L9gh.cjs +0 -1
  347. package/ColorSchemeSwitch-JRrCyYVv.cjs +0 -16
  348. package/ComboBox-gveQKHU3.cjs +0 -1
  349. package/DateField-CAQlzuDD.js +0 -46
  350. package/DateField-deVVFwKA.cjs +0 -1
  351. package/DateInputDivider-DnUxETEC.cjs +0 -1
  352. package/DateRangePicker-BzfitoK0.cjs +0 -6
  353. package/Dialog-Bd5hK360.cjs +0 -1
  354. package/Dialog-Bxx8cBEq.js +0 -208
  355. package/Dialog-CwTEAujZ.cjs +0 -1
  356. package/DragAndDrop-HvycSrKY.cjs +0 -1
  357. package/FieldError-Dv3bBEjh.js +0 -23
  358. package/FocusScope-NaPbvuuS.cjs +0 -1
  359. package/Group-CeSsSQVC.js +0 -44
  360. package/Group-CgiqQHH1.cjs +0 -1
  361. package/Heading-DoJAtYZf.cjs +0 -1
  362. package/InfoBanner-BS-dAfzO.cjs +0 -1
  363. package/Input-D8Ku_FQz.js +0 -41
  364. package/Input-DKSAYvsw.cjs +0 -1
  365. package/Label-C9ivwkAd.js +0 -21
  366. package/Label-CUV21CAv.cjs +0 -1
  367. package/Label-DkDOsmUF.js +0 -16
  368. package/Label-IMWAyoKb.cjs +0 -1
  369. package/Layout-BWeHHnqU.cjs +0 -16
  370. package/Layout-CCt_2L1k.js +0 -468
  371. package/Link-SHMbeyIP.cjs +0 -1
  372. package/LinkButton-CuBilDML.js +0 -69
  373. package/LinkButton-CymMrcGL.cjs +0 -6
  374. package/ListBox-CDOsQChA.cjs +0 -1
  375. package/ListBoxSection-DGCP6xpf.cjs +0 -1
  376. package/ListKeyboardDelegate-BqMETvPv.cjs +0 -1
  377. package/LiveAnnouncer-B6177m92.js +0 -51
  378. package/LiveAnnouncer-CwEWPU8b.cjs +0 -1
  379. package/Logo-DT2_2O43.cjs +0 -1
  380. package/NumberFormatter-DewVDY5w.cjs +0 -1
  381. package/NumberFormatter-DgOUVrge.js +0 -119
  382. package/OverlayArrow-D75k-EMl.cjs +0 -1
  383. package/PressResponder-C06O3Z5P.cjs +0 -1
  384. package/PressResponder-CVEg5kND.js +0 -33
  385. package/ProgressBar-Bkw9zavs.cjs +0 -1
  386. package/ProgressBar-CEX2WNoW.js +0 -77
  387. package/ProgressBar-Dqh3ftSP.cjs +0 -1
  388. package/Radio-CDKrvQe4.cjs +0 -1
  389. package/RangeCalendar-cbCKBPZv.cjs +0 -11
  390. package/SearchField-6yBGiojX.cjs +0 -6
  391. package/Select-CpHjd1tp.cjs +0 -1
  392. package/Select-PvCqY7Lp.js +0 -646
  393. package/SelectionManager-C5NGBzvz.cjs +0 -1
  394. package/Separator-nPra6kD-.cjs +0 -1
  395. package/Spinner-D31SXm-U.js +0 -41
  396. package/Spinner-DAJtfxqJ.cjs +0 -6
  397. package/Table-D9vNc_y-.cjs +0 -16
  398. package/Tabs-Ct6D83aR.js +0 -404
  399. package/Tabs-Dtcl2oK2.cjs +0 -1
  400. package/Tag-CVFkzg3s.cjs +0 -1
  401. package/TextArea-DSiQ578a.js +0 -206
  402. package/TextArea-cVyGBRbL.cjs +0 -1
  403. package/TextField-B70CL2qz.cjs +0 -1
  404. package/Toast-DrkOGy4d.cjs +0 -1
  405. package/ToggleButtonGroup-BuU_6dYe.cjs +0 -1
  406. package/Tooltip-CiWg4zIC.cjs +0 -1
  407. package/VisuallyHidden-CtXvK_Tw.cjs +0 -1
  408. package/assets/Tabs.css +0 -1
  409. package/context-DjwhtgxQ.cjs +0 -1
  410. package/focusSafely-Bqfo_DH7.cjs +0 -1
  411. package/focusSafely-C48ucRUz.js +0 -56
  412. package/inertValue-BWmZ1afe.cjs +0 -1
  413. package/scrollIntoView-ClEACHUk.js +0 -57
  414. package/scrollIntoView-DRSoJp89.cjs +0 -1
  415. package/useButton-B1Fa-6qE.cjs +0 -1
  416. package/useCollator-C_ozeWLo.cjs +0 -1
  417. package/useCollator-CgZcHC8N.js +0 -11
  418. package/useDescription-CVKhFa3c.js +0 -32
  419. package/useDescription-DmQYSEES.cjs +0 -1
  420. package/useEvent-CjkbBniY.cjs +0 -1
  421. package/useField-B1RU0GKs.cjs +0 -1
  422. package/useFilter-CtIwF2qW.cjs +0 -1
  423. package/useFocusRing-BDGH3lpn.js +0 -82
  424. package/useFocusRing-CbImDrwF.cjs +0 -1
  425. package/useFocusable-CaedRTpB.js +0 -74
  426. package/useFocusable-CuPQ7Cm5.cjs +0 -1
  427. package/useFormValidation-ClximP89.cjs +0 -1
  428. package/useHasTabbableChild-DgphNvnk.cjs +0 -1
  429. package/useHighlightSelectionDescription-BizKjvPU.cjs +0 -1
  430. package/useHover-_mv5J4_q.cjs +0 -1
  431. package/useHover-qRAon4nS.js +0 -490
  432. package/useLabel-DDdAJ1JO.js +0 -23
  433. package/useLabel-m_S5xkHy.cjs +0 -1
  434. package/useLabels-BLOfc6Y-.cjs +0 -1
  435. package/useLocalizedStringFormatter-u9SJaOwk.cjs +0 -1
  436. package/useObserveElement-BzEr5D32.cjs +0 -1
  437. package/usePress-BFa6cT9o.cjs +0 -7
  438. package/useTextField-CtUDWsUl.cjs +0 -1
  439. package/utils-BNtZbAib.cjs +0 -1
  440. package/utils-HNTsIwux.js +0 -308
@@ -1,39 +1,40 @@
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";
1
+ import { jsxs as be, jsx as f } from "react/jsx-runtime";
2
+ import X, { useRef as T, useMemo as ee, useEffect as pe, useState as Q, useCallback as se, forwardRef as su, createContext as he } from "react";
3
+ import { f as re, c as fe, e as ve, $ as ru } from "./Button-CFYdzG0H.js";
4
+ import { $ as $u, b as au, c as bu, d as Cu, a as mu, e as xu } from "./utils-DJhAJHk_.js";
5
+ import { $ as hu } from "./FieldError-BbR-29BM.js";
5
6
  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";
7
+ import { a as Ae } from "./Group-CpkUzEAs.js";
8
+ import { $ as Be, a as vu } from "./Input-LnjmFI1x.js";
9
+ import { c as Au, d as Bu, e as Ee, f as Eu } from "./ListBox-C-isJIHL.js";
10
+ import { o as Tu, h as Du, i as Fu, m as yu } from "./Dialog-CtVrVuMr.js";
11
+ import { a as Te } from "./Text-92cPh38G.js";
12
+ import { b as Lu, c as Su } from "./Collection--62xKPm9.js";
13
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";
31
- 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";
14
+ import { a as ku, g as Pu } from "./OverlayArrow-CfhSYL46.js";
15
+ import { $ as Ku } from "./useFilter-CousKe2K.js";
16
+ import { d as Ou, $ as Iu } from "./useFormValidation-BzzruZKm.js";
17
+ import { e as Ru, f as De, h as wu } from "./SelectionManager-zsWy3vsd.js";
18
+ import { $ as Gu } from "./useSingleSelectListState-BLXvGjLI.js";
19
+ import { b as zu } from "./useListState-CebsX_1d.js";
20
+ import { $ as Vu } from "./useControlledState-u436Wbp1.js";
21
+ import { e as Mu, a as Ce } from "./mergeProps-C1U1OIeJ.js";
22
+ import { c as ju, b as Nu } from "./utils-CoCR_Fce.js";
23
+ import { b as Uu } from "./usePress-DuR4pVsE.js";
24
+ import { $ as me } from "./useLabels-LrKQiY11.js";
25
+ import { $ as qu } from "./useUpdateEffect-CCDx8D4X.js";
26
+ import { o as $e } from "./useHover-DQvJ3Y-W.js";
27
+ import { a as Wu } from "./Separator-Dn5LYN5I.js";
28
+ import { a as Xu } from "./ListKeyboardDelegate-CY6t6y1t.js";
29
+ import { $ as Zu } from "./useLocalizedStringFormatter-CL9MUZ8A.js";
30
+ import { $ as Hu } from "./useTextField-C-sUypsx.js";
31
+ import { c as ae } from "./clsx-OuTLNxxd.js";
32
+ import { a as Ju, L as Yu } from "./Label-TVxwGZ-O.js";
33
+ import { T as _u } from "./Text-DlKqpvSa.js";
34
+ import { F as xe } from "./FieldError-B3YFj-an.js";
35
+ import { b as Qu, L as en, a as un, c as nn } from "./ListBoxSection-BVR2xtOH.js";
36
+ import { C as on } from "./chevron-down-Cd1bkzXT.js";
37
+ import { u as tn } from "./useLocalizedStringFormatter-N0AyjzbM.js";
37
38
  import './assets/ComboBox.css';var Fe = {};
38
39
  Fe = {
39
40
  buttonLabel: "عرض المقترحات",
@@ -74,8 +75,8 @@ ye = {
74
75
  listboxLabel: "Предложения",
75
76
  selectedAnnouncement: (e) => `${e.optionText}, избрани`
76
77
  };
77
- var Se = {};
78
- Se = {
78
+ var Le = {};
79
+ Le = {
79
80
  buttonLabel: "Zobrazit doporučení",
80
81
  countAnnouncement: (e, u) => `K dispozici ${u.plural(e.optionCount, {
81
82
  one: () => `je ${u.number(e.optionCount)} možnost`,
@@ -94,8 +95,8 @@ Se = {
94
95
  listboxLabel: "Návrhy",
95
96
  selectedAnnouncement: (e) => `${e.optionText}, vybráno`
96
97
  };
97
- var Le = {};
98
- Le = {
98
+ var Se = {};
99
+ Se = {
99
100
  buttonLabel: "Vis forslag",
100
101
  countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
101
102
  one: () => `${u.number(e.optionCount)} mulighed tilgængelig`,
@@ -254,8 +255,8 @@ Re = {
254
255
  listboxLabel: "Suggestions",
255
256
  selectedAnnouncement: (e) => `${e.optionText}, sélectionné`
256
257
  };
257
- var Ge = {};
258
- Ge = {
258
+ var we = {};
259
+ we = {
259
260
  buttonLabel: "הצג הצעות",
260
261
  countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
261
262
  one: () => `אפשרות ${u.number(e.optionCount)}`,
@@ -274,8 +275,8 @@ Ge = {
274
275
  listboxLabel: "הצעות",
275
276
  selectedAnnouncement: (e) => `${e.optionText}, נבחר`
276
277
  };
277
- var Ve = {};
278
- Ve = {
278
+ var Ge = {};
279
+ Ge = {
279
280
  buttonLabel: "Prikaži prijedloge",
280
281
  countAnnouncement: (e, u) => `Dostupno još: ${u.plural(e.optionCount, {
281
282
  one: () => `${u.number(e.optionCount)} opcija`,
@@ -314,8 +315,8 @@ ze = {
314
315
  listboxLabel: "Javaslatok",
315
316
  selectedAnnouncement: (e) => `${e.optionText}, kijelölve`
316
317
  };
317
- var we = {};
318
- we = {
318
+ var Ve = {};
319
+ Ve = {
319
320
  buttonLabel: "Mostra suggerimenti",
320
321
  countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
321
322
  one: () => `${u.number(e.optionCount)} opzione disponibile`,
@@ -334,8 +335,8 @@ we = {
334
335
  listboxLabel: "Suggerimenti",
335
336
  selectedAnnouncement: (e) => `${e.optionText}, selezionato`
336
337
  };
337
- var je = {};
338
- je = {
338
+ var Me = {};
339
+ Me = {
339
340
  buttonLabel: "候補を表示",
340
341
  countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
341
342
  one: () => `${u.number(e.optionCount)} 個のオプション`,
@@ -354,8 +355,8 @@ je = {
354
355
  listboxLabel: "候補",
355
356
  selectedAnnouncement: (e) => `${e.optionText}、選択済み`
356
357
  };
357
- var Me = {};
358
- Me = {
358
+ var je = {};
359
+ je = {
359
360
  buttonLabel: "제안 사항 표시",
360
361
  countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
361
362
  one: () => `${u.number(e.optionCount)}개 옵션`,
@@ -394,8 +395,8 @@ Ne = {
394
395
  listboxLabel: "Pasiūlymai",
395
396
  selectedAnnouncement: (e) => `${e.optionText}, pasirinkta`
396
397
  };
397
- var qe = {};
398
- qe = {
398
+ var Ue = {};
399
+ Ue = {
399
400
  buttonLabel: "Rādīt ieteikumus",
400
401
  countAnnouncement: (e, u) => `Pieejamo opciju skaits: ${u.plural(e.optionCount, {
401
402
  one: () => `${u.number(e.optionCount)} opcija`,
@@ -414,8 +415,8 @@ qe = {
414
415
  listboxLabel: "Ieteikumi",
415
416
  selectedAnnouncement: (e) => `${e.optionText}, atlasīta`
416
417
  };
417
- var Ue = {};
418
- Ue = {
418
+ var qe = {};
419
+ qe = {
419
420
  buttonLabel: "Vis forslag",
420
421
  countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
421
422
  one: () => `${u.number(e.optionCount)} alternativ`,
@@ -718,8 +719,8 @@ var iu = {};
718
719
  iu = {
719
720
  "ar-AE": Fe,
720
721
  "bg-BG": ye,
721
- "cs-CZ": Se,
722
- "da-DK": Le,
722
+ "cs-CZ": Le,
723
+ "da-DK": Se,
723
724
  "de-DE": ge,
724
725
  "el-GR": ke,
725
726
  "en-US": Pe,
@@ -727,15 +728,15 @@ iu = {
727
728
  "et-EE": Oe,
728
729
  "fi-FI": Ie,
729
730
  "fr-FR": Re,
730
- "he-IL": Ge,
731
- "hr-HR": Ve,
731
+ "he-IL": we,
732
+ "hr-HR": Ge,
732
733
  "hu-HU": ze,
733
- "it-IT": we,
734
- "ja-JP": je,
735
- "ko-KR": Me,
734
+ "it-IT": Ve,
735
+ "ja-JP": Me,
736
+ "ko-KR": je,
736
737
  "lt-LT": Ne,
737
- "lv-LV": qe,
738
- "nb-NO": Ue,
738
+ "lv-LV": Ue,
739
+ "nb-NO": qe,
739
740
  "nl-NL": We,
740
741
  "pl-PL": Xe,
741
742
  "pt-BR": Ze,
@@ -751,40 +752,40 @@ iu = {
751
752
  "zh-CN": tu,
752
753
  "zh-TW": lu
753
754
  };
754
- function on(e) {
755
+ function ln(e) {
755
756
  return e && e.__esModule ? e.default : e;
756
757
  }
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({
758
+ function cn(e, u) {
759
+ let { buttonRef: i, popoverRef: a, inputRef: t, listBoxRef: d, keyboardDelegate: v, layoutDelegate: b, shouldFocusWrap: m, isReadOnly: F, isDisabled: g } = e, x = T(null);
760
+ i = i ?? x;
761
+ let A = Zu(ln(iu), "@react-aria/combobox"), { menuTriggerProps: B, menuProps: E } = Tu({
761
762
  type: "listbox",
762
- isDisabled: M || L
763
+ isDisabled: g || F
763
764
  }, u, i);
764
765
  Au.set(u, {
765
- id: y.id
766
+ id: E.id
766
767
  });
767
- let { collection: m } = u, { disabledKeys: S } = u.selectionManager, l = ee(() => h || new Xu({
768
- collection: m,
768
+ let { collection: h } = u, { disabledKeys: S } = u.selectionManager, l = ee(() => v || new Xu({
769
+ collection: h,
769
770
  disabledKeys: S,
770
771
  ref: d,
771
- layoutDelegate: a
772
+ layoutDelegate: b
772
773
  }), [
774
+ v,
775
+ b,
773
776
  h,
774
- a,
775
- m,
776
777
  S,
777
778
  d
778
- ]), { collectionProps: G } = Gu({
779
+ ]), { collectionProps: G } = Ru({
779
780
  selectionManager: u.selectionManager,
780
781
  keyboardDelegate: l,
781
782
  disallowTypeAhead: !0,
782
783
  disallowEmptySelection: !0,
783
- shouldFocusWrap: x,
784
+ shouldFocusWrap: m,
784
785
  ref: t,
785
786
  // Prevent item scroll behavior from being applied here, should be handled in the user's Popover + ListBox component
786
787
  isVirtualized: !0
787
- }), ue = qu(), ne = (n) => {
788
+ }), ue = Uu(), ne = (n) => {
788
789
  if (!n.nativeEvent.isComposing)
789
790
  switch (n.key) {
790
791
  case "Enter":
@@ -812,89 +813,89 @@ function tn(e, u) {
812
813
  u.selectionManager.setFocusedKey(null);
813
814
  break;
814
815
  }
815
- }, V = (n) => {
816
+ }, z = (n) => {
816
817
  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));
818
+ let p = (i == null ? void 0 : i.current) && i.current === n.relatedTarget, O = (c = a.current) === null || c === void 0 ? void 0 : c.contains(n.relatedTarget);
819
+ p || O || (e.onBlur && e.onBlur(n), u.setFocused(!1));
819
820
  }, N = (n) => {
820
821
  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({
822
+ }, { isInvalid: U, validationErrors: s, validationDetails: q } = u.displayValidation, { labelProps: y, inputProps: L, descriptionProps: Z, errorMessageProps: oe } = Hu({
822
823
  ...e,
823
824
  onChange: u.setInputValue,
824
- onKeyDown: L ? e.onKeyDown : ru(u.isOpen && G.onKeyDown, ne, e.onKeyDown),
825
- onBlur: V,
825
+ onKeyDown: F ? e.onKeyDown : Mu(u.isOpen && G.onKeyDown, ne, e.onKeyDown),
826
+ onBlur: z,
826
827
  value: u.inputValue,
827
828
  onFocus: N,
828
829
  autoComplete: "off",
829
830
  validate: void 0,
830
- [Iu]: u
831
- }, t), z = (n) => {
831
+ [Ou]: u
832
+ }, t), V = (n) => {
832
833
  if (n.pointerType === "touch") {
833
834
  var c;
834
835
  (c = t.current) === null || c === void 0 || c.focus(), u.toggle(null, "manual");
835
836
  }
836
- }, Z = (n) => {
837
+ }, H = (n) => {
837
838
  if (n.pointerType !== "touch") {
838
839
  var c;
839
840
  (c = t.current) === null || c === void 0 || c.focus(), u.toggle(n.pointerType === "keyboard" || n.pointerType === "virtual" ? "first" : null, "manual");
840
841
  }
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) {
842
+ }, r = me({
843
+ id: B.id,
844
+ "aria-label": A.format("buttonLabel"),
845
+ "aria-labelledby": e["aria-labelledby"] || y.id
846
+ }), k = me({
847
+ id: E.id,
848
+ "aria-label": A.format("listboxLabel"),
849
+ "aria-labelledby": e["aria-labelledby"] || y.id
850
+ }), I = T(0), M = (n) => {
851
+ if (g || F) return;
852
+ if (n.timeStamp - I.current < 500) {
852
853
  var c;
853
854
  n.preventDefault(), (c = t.current) === null || c === void 0 || c.focus();
854
855
  return;
855
856
  }
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) {
857
+ 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);
858
+ if (O.clientX === ie && O.clientY === de) {
858
859
  var ce;
859
- n.preventDefault(), (ce = t.current) === null || ce === void 0 || ce.focus(), u.toggle(null, "manual"), O.current = n.timeStamp;
860
+ n.preventDefault(), (ce = t.current) === null || ce === void 0 || ce.focus(), u.toggle(null, "manual"), I.current = n.timeStamp;
860
861
  }
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;
862
+ }, D = u.selectionManager.focusedKey != null && u.isOpen ? u.collection.getItem(u.selectionManager.focusedKey) : void 0;
863
+ var P;
864
+ let R = (P = D == null ? void 0 : D.parentKey) !== null && P !== void 0 ? P : null;
864
865
  var j;
865
- let R = (j = u.selectionManager.focusedKey) !== null && j !== void 0 ? j : null, H = v(I), J = v(R);
866
+ let w = (j = u.selectionManager.focusedKey) !== null && j !== void 0 ? j : null, J = T(R), Y = T(w);
866
867
  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 : "") || "";
868
+ if ($e() && D != null && w != null && w !== Y.current) {
869
+ let c = u.selectionManager.isSelected(w), 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
870
  var n;
870
- let ie = E.format("focusAnnouncement", {
871
- isGroupChange: (n = p && I !== H.current) !== null && n !== void 0 ? n : !1,
872
- groupTitle: K,
871
+ let ie = A.format("focusAnnouncement", {
872
+ isGroupChange: (n = p && R !== J.current) !== null && n !== void 0 ? n : !1,
873
+ groupTitle: O,
873
874
  groupCount: p ? [
874
875
  ...De(p, u.collection)
875
876
  ].length : 0,
876
- optionText: B["aria-label"] || B.textValue || "",
877
+ optionText: D["aria-label"] || D.textValue || "",
877
878
  isSelected: c
878
879
  });
879
880
  re(ie);
880
881
  }
881
- H.current = I, J.current = R;
882
+ J.current = R, Y.current = w;
882
883
  });
883
- let P = Wu(u.collection), Y = v(P), te = v(u.isOpen);
884
+ let K = Wu(u.collection), _ = T(K), te = T(u.isOpen);
884
885
  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
886
+ let n = u.isOpen !== te.current && (u.selectionManager.focusedKey == null || $e());
887
+ if (u.isOpen && (n || K !== _.current)) {
888
+ let c = A.format("countAnnouncement", {
889
+ optionCount: K
889
890
  });
890
891
  re(c);
891
892
  }
892
- Y.current = P, te.current = u.isOpen;
893
+ _.current = K, te.current = u.isOpen;
893
894
  });
894
- let le = v(u.selectedKey);
895
+ let le = T(u.selectedKey);
895
896
  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", {
897
+ if ($e() && u.isFocused && u.selectedItem && u.selectedKey !== le.current) {
898
+ let n = u.selectedItem["aria-label"] || u.selectedItem.textValue || "", c = A.format("selectedAnnouncement", {
898
899
  optionText: n
899
900
  });
900
901
  re(c);
@@ -903,445 +904,459 @@ function tn(e, u) {
903
904
  }), pe(() => {
904
905
  if (u.isOpen) return Du([
905
906
  t.current,
906
- b.current
907
+ a.current
907
908
  ].filter((n) => n != null));
908
909
  }, [
909
910
  u.isOpen,
910
911
  t,
911
- b
912
- ]), Uu(() => {
913
- !B && t.current && Mu(Nu(t.current)) === t.current && Vu(t.current, null);
912
+ a
913
+ ]), qu(() => {
914
+ !D && t.current && ju(Nu(t.current)) === t.current && wu(t.current, null);
914
915
  }, [
915
- B
916
+ D
916
917
  ]), {
917
- labelProps: D,
918
+ labelProps: y,
918
919
  buttonProps: {
919
- ...T,
920
+ ...B,
920
921
  ...r,
921
922
  excludeFromTabOrder: !0,
922
923
  preventFocusOnPress: !0,
923
- onPress: z,
924
- onPressStart: Z,
925
- isDisabled: M || L
924
+ onPress: V,
925
+ onPressStart: H,
926
+ isDisabled: g || F
926
927
  },
927
- inputProps: Ce(F, {
928
+ inputProps: Ce(L, {
928
929
  role: "combobox",
929
- "aria-expanded": T["aria-expanded"],
930
- "aria-controls": u.isOpen ? y.id : void 0,
930
+ "aria-expanded": B["aria-expanded"],
931
+ "aria-controls": u.isOpen ? E.id : void 0,
931
932
  // TODO: readd proper logic for completionMode = complete (aria-autocomplete: both)
932
933
  "aria-autocomplete": "list",
933
- "aria-activedescendant": B ? Bu(u, B.key) : void 0,
934
- onTouchEnd: w,
934
+ "aria-activedescendant": D ? Bu(u, D.key) : void 0,
935
+ onTouchEnd: M,
935
936
  // This disable's iOS's autocorrect suggestions, since the combo box provides its own suggestions.
936
937
  autoCorrect: "off",
937
938
  // This disable's the macOS Safari spell check auto corrections.
938
939
  spellCheck: "false"
939
940
  }),
940
- listBoxProps: Ce(y, g, {
941
+ listBoxProps: Ce(E, k, {
941
942
  autoFocus: u.focusStrategy || !0,
942
943
  shouldUseVirtualFocus: !0,
943
944
  shouldSelectOnPressUp: !0,
944
945
  shouldFocusOnHover: !0,
945
946
  linkBehavior: "selection"
946
947
  }),
947
- descriptionProps: X,
948
+ descriptionProps: Z,
948
949
  errorMessageProps: oe,
949
- isInvalid: q,
950
- validationErrors: $,
951
- validationDetails: U
950
+ isInvalid: U,
951
+ validationErrors: s,
952
+ validationDetails: q
952
953
  };
953
954
  }
954
- function ln(e) {
955
+ function pn(e) {
955
956
  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());
957
+ let { defaultFilter: i, menuTrigger: a = "input", allowsEmptyCollection: t = !1, allowsCustomValue: d, shouldCloseOnBlur: v = !0 } = e, [b, m] = Q(!1), [F, g] = Q(!1), [x, A] = Q(null), B = (o) => {
958
+ e.onSelectionChange && e.onSelectionChange(o), o === l && (w(), P());
958
959
  };
959
- var y;
960
- let { collection: m, selectionManager: S, selectedKey: l, setSelectedKey: G, selectedItem: ue, disabledKeys: ne } = zu({
960
+ var E;
961
+ let { collection: h, selectionManager: S, selectedKey: l, setSelectedKey: G, selectedItem: ue, disabledKeys: ne } = Gu({
961
962
  ...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 : "";
963
+ onSelectionChange: B,
964
+ items: (E = e.items) !== null && E !== void 0 ? E : e.defaultItems
965
+ }), z = e.defaultInputValue;
966
+ if (z == null) {
967
+ var N, U;
968
+ l == null ? z = "" : z = (U = (N = h.getItem(l)) === null || N === void 0 ? void 0 : N.textValue) !== null && U !== void 0 ? U : "";
968
969
  }
969
- let [$, U] = ju(e.inputValue, V, e.onInputChange), D = m, F = ee(() => (
970
+ let [s, q] = Vu(e.inputValue, z, e.onInputChange), y = h, L = ee(() => (
970
971
  // No default filter if items are controlled.
971
- e.items != null || !i ? m : cn(m, $, i)
972
+ e.items != null || !i ? h : dn(h, s, i)
972
973
  ), [
973
- m,
974
- $,
974
+ h,
975
+ s,
975
976
  i,
976
977
  e.items
977
- ]), [X, oe] = _(F), z = v("focus"), r = ku({
978
+ ]), [Z, oe] = Q(L), V = T("focus"), r = ku({
978
979
  ...e,
979
980
  onOpenChange: (o) => {
980
- e.onOpenChange && e.onOpenChange(o, o ? z.current : void 0), S.setFocused(o), o || S.setFocusedKey(null);
981
+ e.onOpenChange && e.onOpenChange(o, o ? V.current : void 0), S.setFocused(o), o || S.setFocusedKey(null);
981
982
  },
982
983
  isOpen: void 0,
983
984
  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);
985
+ }), k = (o = null, $) => {
986
+ let C = $ === "manual" || $ === "focus" && a === "focus";
987
+ (t || L.size > 0 || C && y.size > 0 || e.items) && (C && !r.isOpen && e.items === void 0 && m(!0), V.current = $, A(o), r.open());
988
+ }, I = (o = null, $) => {
989
+ let C = $ === "manual" || $ === "focus" && a === "focus";
990
+ !(t || L.size > 0 || C && y.size > 0 || e.items) && !r.isOpen || (C && !r.isOpen && e.items === void 0 && m(!0), r.isOpen || (V.current = $), D(o));
991
+ }, M = se(() => {
992
+ oe(b ? y : L);
992
993
  }, [
993
- a,
994
- D,
995
- F
996
- ]), B = $e((o = null) => {
997
- r.isOpen && w(), E(o), r.toggle();
994
+ b,
995
+ y,
996
+ L
997
+ ]), D = se((o = null) => {
998
+ r.isOpen && M(), A(o), r.toggle();
998
999
  }, [
999
1000
  r,
1000
- w
1001
- ]), k = $e(() => {
1002
- r.isOpen && (w(), r.close());
1001
+ M
1002
+ ]), P = se(() => {
1003
+ r.isOpen && (M(), r.close());
1003
1004
  }, [
1004
1005
  r,
1005
- 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);
1006
+ M
1007
+ ]), [R, j] = Q(s), w = () => {
1008
+ var o, $;
1009
+ let C = l != null && ($ = (o = h.getItem(l)) === null || o === void 0 ? void 0 : o.textValue) !== null && $ !== void 0 ? $ : "";
1010
+ j(C), q(C);
1010
1011
  };
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 : "");
1012
+ var J, Y;
1013
+ let K = T((Y = (J = e.selectedKey) !== null && J !== void 0 ? J : e.defaultSelectedKey) !== null && Y !== void 0 ? Y : null);
1014
+ var _;
1015
+ let te = T(l != null && (_ = (u = h.getItem(l)) === null || u === void 0 ? void 0 : u.textValue) !== null && _ !== void 0 ? _ : "");
1015
1016
  pe(() => {
1016
1017
  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;
1018
+ F && (L.size > 0 || t) && !r.isOpen && s !== R && a !== "manual" && k(null, "input"), !b && !t && r.isOpen && L.size === 0 && P(), l != null && l !== K.current && P(), s !== R && (S.setFocusedKey(null), m(!1), s === "" && (e.inputValue === void 0 || e.selectedKey === void 0) && G(null)), l !== K.current && (e.inputValue === void 0 || e.selectedKey === void 0) ? w() : R !== s && j(s);
1019
+ var $;
1020
+ let C = l != null && ($ = (o = h.getItem(l)) === null || o === void 0 ? void 0 : o.textValue) !== null && $ !== void 0 ? $ : "";
1021
+ !F && l != null && e.inputValue === void 0 && l === K.current && te.current !== C && (j(C), q(C)), K.current = l, te.current = C;
1021
1022
  });
1022
- let le = Ru({
1023
+ let le = Iu({
1023
1024
  ...e,
1024
1025
  value: ee(() => ({
1025
- inputValue: $,
1026
+ inputValue: s,
1026
1027
  selectedKey: l
1027
1028
  }), [
1028
- $,
1029
+ s,
1029
1030
  l
1030
1031
  ])
1031
1032
  }), n = () => {
1032
1033
  d && l == null ? c() : p();
1033
1034
  }, c = () => {
1034
- P.current = null, G(null), k();
1035
+ K.current = null, G(null), P();
1035
1036
  }, p = () => {
1036
1037
  if (e.selectedKey !== void 0 && e.inputValue !== void 0) {
1037
- var o, s;
1038
+ var o, $;
1038
1039
  (o = e.onSelectionChange) === null || o === void 0 || o.call(e, l);
1039
1040
  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();
1041
+ let du = l != null && (C = ($ = h.getItem(l)) === null || $ === void 0 ? void 0 : $.textValue) !== null && C !== void 0 ? C : "";
1042
+ j(du), P();
1042
1043
  } else
1043
- R(), k();
1044
+ w(), P();
1044
1045
  };
1045
- const K = () => {
1046
+ const O = () => {
1046
1047
  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();
1048
+ var o, $;
1049
+ const C = l != null && ($ = (o = h.getItem(l)) === null || o === void 0 ? void 0 : o.textValue) !== null && $ !== void 0 ? $ : "";
1050
+ s === C ? p() : c();
1050
1051
  } else
1051
1052
  p();
1052
1053
  };
1053
1054
  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, [
1055
+ r.isOpen && S.focusedKey != null ? l === S.focusedKey ? p() : G(S.focusedKey) : O();
1056
+ }, de = T(s), ce = (o) => {
1057
+ o ? (de.current = s, a === "focus" && !e.isReadOnly && k(null, "focus")) : (v && O(), s !== de.current && le.commitValidation()), g(o);
1058
+ }, pu = ee(() => r.isOpen ? b ? y : L : Z, [
1058
1059
  r.isOpen,
1059
- D,
1060
- F,
1061
- a,
1062
- X
1060
+ y,
1061
+ L,
1062
+ b,
1063
+ Z
1063
1064
  ]);
1064
1065
  return {
1065
1066
  ...le,
1066
1067
  ...r,
1067
- focusStrategy: A,
1068
- toggle: O,
1069
- open: g,
1070
- close: K,
1068
+ focusStrategy: x,
1069
+ toggle: I,
1070
+ open: k,
1071
+ close: O,
1071
1072
  selectionManager: S,
1072
1073
  selectedKey: l,
1073
1074
  setSelectedKey: G,
1074
1075
  disabledKeys: ne,
1075
- isFocused: L,
1076
+ isFocused: F,
1076
1077
  setFocused: ce,
1077
1078
  selectedItem: ue,
1078
1079
  collection: pu,
1079
- inputValue: $,
1080
- setInputValue: U,
1080
+ inputValue: s,
1081
+ setInputValue: q,
1081
1082
  commit: ie,
1082
1083
  revert: n
1083
1084
  };
1084
1085
  }
1085
- function cn(e, u, i) {
1086
- return new wu(cu(e, e, u, i));
1086
+ function dn(e, u, i) {
1087
+ return new zu(cu(e, e, u, i));
1087
1088
  }
1088
- function cu(e, u, i, b) {
1089
+ function cu(e, u, i, a) {
1089
1090
  let t = [];
1090
1091
  for (let d of u)
1091
1092
  if (d.type === "section" && d.hasChildNodes) {
1092
- let h = cu(e, De(d, e), i, b);
1093
+ let v = cu(e, De(d, e), i, a);
1093
1094
  [
1094
- ...h
1095
- ].some((a) => a.type === "item") && t.push({
1095
+ ...v
1096
+ ].some((b) => b.type === "item") && t.push({
1096
1097
  ...d,
1097
- childNodes: h
1098
+ childNodes: v
1098
1099
  });
1099
- } else d.type === "item" && b(d.textValue, i) ? t.push({
1100
+ } else d.type === "item" && a(d.textValue, i) ? t.push({
1100
1101
  ...d
1101
1102
  }) : d.type !== "item" && t.push({
1102
1103
  ...d
1103
1104
  });
1104
1105
  return t;
1105
1106
  }
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(() => {
1109
- var x;
1110
- return /* @__PURE__ */ Q.createElement(Be.Provider, {
1107
+ const sn = /* @__PURE__ */ he(null), rn = /* @__PURE__ */ he(null), $n = /* @__PURE__ */ su(function(u, i) {
1108
+ [u, i] = $u(u, i, sn);
1109
+ let { children: a, isDisabled: t = !1, isInvalid: d = !1, isRequired: v = !1 } = u, b = ee(() => {
1110
+ var m;
1111
+ return /* @__PURE__ */ X.createElement(Ee.Provider, {
1111
1112
  value: {
1112
- items: (x = u.items) !== null && x !== void 0 ? x : u.defaultItems
1113
+ items: (m = u.items) !== null && m !== void 0 ? m : u.defaultItems
1113
1114
  }
1114
- }, typeof b == "function" ? b({
1115
+ }, typeof a == "function" ? a({
1115
1116
  isOpen: !1,
1116
1117
  isDisabled: t,
1117
1118
  isInvalid: d,
1118
- isRequired: h,
1119
+ isRequired: v,
1119
1120
  defaultChildren: null
1120
- }) : b);
1121
+ }) : a);
1121
1122
  }, [
1122
- b,
1123
+ a,
1123
1124
  t,
1124
1125
  d,
1125
- h,
1126
+ v,
1126
1127
  u.items,
1127
1128
  u.defaultItems
1128
1129
  ]);
1129
- return /* @__PURE__ */ Q.createElement(Su, {
1130
- content: a
1131
- }, (x) => /* @__PURE__ */ Q.createElement(sn, {
1130
+ return /* @__PURE__ */ X.createElement(Lu, {
1131
+ content: b
1132
+ }, (m) => /* @__PURE__ */ X.createElement(bn, {
1132
1133
  props: u,
1133
- collection: x,
1134
+ collection: m,
1134
1135
  comboBoxRef: i
1135
1136
  }));
1136
- }), rn = [
1137
- Ae,
1138
- he,
1139
- ve,
1137
+ }), an = [
1140
1138
  fe,
1141
- Ee
1139
+ ve,
1140
+ Be,
1141
+ Ae,
1142
+ Te
1142
1143
  ];
1143
- function sn({ props: e, collection: u, comboBoxRef: i }) {
1144
- let { name: b, formValue: t = "key", allowsCustomValue: d } = e;
1144
+ function bn({ props: e, collection: u, comboBoxRef: i }) {
1145
+ let { name: a, formValue: t = "key", allowsCustomValue: d } = e;
1145
1146
  d && (t = "text");
1146
- let { validationBehavior: h } = bu(fu) || {};
1147
- 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({
1147
+ let { validationBehavior: v } = au(fu) || {};
1148
+ var b, m;
1149
+ let F = (m = (b = e.validationBehavior) !== null && b !== void 0 ? b : v) !== null && m !== void 0 ? m : "native", { contains: g } = Ku({
1149
1150
  sensitivity: "base"
1150
- }), A = ln({
1151
- defaultFilter: e.defaultFilter || M,
1151
+ }), x = pn({
1152
+ defaultFilter: e.defaultFilter || g,
1152
1153
  ...e,
1153
1154
  // If props.items isn't provided, rely on collection filtering (aka listbox.items is provided or defaultItems provided to Combobox)
1154
1155
  items: e.items,
1155
1156
  children: void 0,
1156
1157
  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({
1158
+ validationBehavior: F
1159
+ }), A = T(null), B = T(null), E = T(null), h = T(null), [S, l] = bu(!e["aria-label"] && !e["aria-labelledby"]), { buttonProps: G, inputProps: ue, listBoxProps: ne, labelProps: z, descriptionProps: N, errorMessageProps: U, ...s } = cn({
1159
1160
  ...Cu(e),
1160
1161
  label: l,
1161
- inputRef: T,
1162
- buttonRef: E,
1163
- listBoxRef: y,
1164
- popoverRef: m,
1165
- name: t === "text" ? b : void 0,
1166
- validationBehavior: L
1167
- }, A), [U, D] = _(null), F = $e(() => {
1168
- if (T.current) {
1162
+ inputRef: B,
1163
+ buttonRef: A,
1164
+ listBoxRef: E,
1165
+ popoverRef: h,
1166
+ name: t === "text" ? a : void 0,
1167
+ validationBehavior: F
1168
+ }, x), [q, y] = Q(null), L = se(() => {
1169
+ if (B.current) {
1169
1170
  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");
1171
+ let k = (r = A.current) === null || r === void 0 ? void 0 : r.getBoundingClientRect(), I = B.current.getBoundingClientRect(), M = k ? Math.min(k.left, I.left) : I.left, D = k ? Math.max(k.right, I.right) : I.right;
1172
+ y(D - M + "px");
1172
1173
  }
1173
1174
  }, [
1174
- E,
1175
- T,
1176
- D
1175
+ A,
1176
+ B,
1177
+ y
1177
1178
  ]);
1178
1179
  Pu({
1179
- ref: T,
1180
- onResize: F
1180
+ ref: B,
1181
+ onResize: L
1181
1182
  });
1182
- let X = ee(() => ({
1183
- isOpen: A.isOpen,
1183
+ let Z = ee(() => ({
1184
+ isOpen: x.isOpen,
1184
1185
  isDisabled: e.isDisabled || !1,
1185
- isInvalid: $.isInvalid || !1,
1186
+ isInvalid: s.isInvalid || !1,
1186
1187
  isRequired: e.isRequired || !1
1187
1188
  }), [
1188
- A.isOpen,
1189
+ x.isOpen,
1189
1190
  e.isDisabled,
1190
- $.isInvalid,
1191
+ s.isInvalid,
1191
1192
  e.isRequired
1192
- ]), oe = xu({
1193
+ ]), oe = mu({
1193
1194
  ...e,
1194
- values: X,
1195
+ values: Z,
1195
1196
  defaultClassName: "react-aria-ComboBox"
1196
- }), z = gu(e);
1197
- delete z.id;
1198
- var Z;
1199
- return /* @__PURE__ */ Q.createElement(mu, {
1197
+ }), V = gu(e);
1198
+ delete V.id;
1199
+ var H;
1200
+ return /* @__PURE__ */ X.createElement(xu, {
1200
1201
  values: [
1201
1202
  [
1202
- dn,
1203
- A
1203
+ rn,
1204
+ x
1204
1205
  ],
1205
1206
  [
1206
- Ae,
1207
+ fe,
1207
1208
  {
1208
- ...V,
1209
+ ...z,
1209
1210
  ref: S
1210
1211
  }
1211
1212
  ],
1212
1213
  [
1213
- he,
1214
+ ve,
1214
1215
  {
1215
1216
  ...G,
1216
- ref: E,
1217
- isPressed: A.isOpen
1217
+ ref: A,
1218
+ isPressed: x.isOpen
1218
1219
  }
1219
1220
  ],
1220
1221
  [
1221
- ve,
1222
+ Be,
1222
1223
  {
1223
1224
  ...ue,
1224
- ref: T
1225
+ ref: B
1225
1226
  }
1226
1227
  ],
1227
1228
  [
1228
1229
  Fu,
1229
- A
1230
+ x
1230
1231
  ],
1231
1232
  [
1232
1233
  yu,
1233
1234
  {
1234
- ref: m,
1235
- triggerRef: T,
1236
- scrollRef: y,
1235
+ ref: h,
1236
+ triggerRef: B,
1237
+ scrollRef: E,
1237
1238
  placement: "bottom start",
1238
1239
  isNonModal: !0,
1239
1240
  trigger: "ComboBox",
1240
1241
  style: {
1241
- "--trigger-width": U
1242
+ "--trigger-width": q
1242
1243
  },
1243
- clearContexts: rn
1244
+ clearContexts: an
1244
1245
  }
1245
1246
  ],
1246
1247
  [
1247
- Be,
1248
+ Ee,
1248
1249
  {
1249
1250
  ...ne,
1250
- ref: y
1251
+ ref: E
1251
1252
  }
1252
1253
  ],
1253
1254
  [
1254
1255
  Eu,
1255
- A
1256
+ x
1256
1257
  ],
1257
1258
  [
1258
- Ee,
1259
+ Te,
1259
1260
  {
1260
1261
  slots: {
1261
1262
  description: N,
1262
- errorMessage: q
1263
+ errorMessage: U
1263
1264
  }
1264
1265
  }
1265
1266
  ],
1266
1267
  [
1267
- fe,
1268
+ Ae,
1268
1269
  {
1269
- isInvalid: $.isInvalid,
1270
+ isInvalid: s.isInvalid,
1270
1271
  isDisabled: e.isDisabled || !1
1271
1272
  }
1272
1273
  ],
1273
1274
  [
1274
1275
  hu,
1275
- $
1276
+ s
1276
1277
  ]
1277
1278
  ]
1278
- }, /* @__PURE__ */ Q.createElement("div", {
1279
- ...z,
1279
+ }, /* @__PURE__ */ X.createElement("div", {
1280
+ ...V,
1280
1281
  ...oe,
1281
1282
  ref: i,
1282
1283
  slot: e.slot || void 0,
1283
- "data-focused": A.isFocused || void 0,
1284
- "data-open": A.isOpen || void 0,
1284
+ "data-focused": x.isFocused || void 0,
1285
+ "data-open": x.isOpen || void 0,
1285
1286
  "data-disabled": e.isDisabled || void 0,
1286
- "data-invalid": $.isInvalid || void 0,
1287
+ "data-invalid": s.isInvalid || void 0,
1287
1288
  "data-required": e.isRequired || void 0
1288
- }), b && t === "key" && /* @__PURE__ */ Q.createElement("input", {
1289
+ }), a && t === "key" && /* @__PURE__ */ X.createElement("input", {
1289
1290
  type: "hidden",
1290
- name: b,
1291
- value: (Z = A.selectedKey) !== null && Z !== void 0 ? Z : ""
1291
+ name: a,
1292
+ value: (H = x.selectedKey) !== null && H !== void 0 ? H : ""
1292
1293
  }));
1293
1294
  }
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
1295
+ const Cn = "_combobox_zftmk_4", mn = "_inputField_zftmk_9", xn = "_medium_zftmk_27", hn = "_wrap_zftmk_67", fn = "_button_zftmk_73", vn = "_icon_zftmk_105", W = {
1296
+ combobox: Cn,
1297
+ inputField: mn,
1298
+ medium: xn,
1299
+ wrap: hn,
1300
+ button: fn,
1301
+ icon: vn
1302
+ }, An = {
1303
+ showList: "Show list"
1304
+ }, Bn = {
1305
+ showList: "Visa lista"
1306
+ }, En = {
1307
+ en: An,
1308
+ sv: Bn
1301
1309
  };
1302
- function oo({
1310
+ function so({
1303
1311
  label: e,
1304
1312
  description: u,
1305
1313
  errorMessage: i,
1306
- children: b,
1314
+ children: a,
1307
1315
  items: t,
1308
1316
  className: d,
1309
- errorPosition: h = "top",
1310
- size: a = "large",
1311
- ...x
1317
+ errorPosition: v = "top",
1318
+ size: b = "large",
1319
+ popover: m,
1320
+ ...F
1312
1321
  }) {
1313
- return /* @__PURE__ */ ae(
1322
+ const g = X.useRef(null), x = tn(En), A = (B) => {
1323
+ var E;
1324
+ B.currentTarget.value && ((E = g.current) == null || E.select());
1325
+ };
1326
+ return /* @__PURE__ */ be(
1314
1327
  $n,
1315
1328
  {
1316
- className: be(W.combobox, d),
1317
- ...x,
1329
+ className: ae(W.combobox, d),
1330
+ ...F,
1318
1331
  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 }),
1322
- /* @__PURE__ */ ae("div", { className: W.wrap, children: [
1332
+ /* @__PURE__ */ f(Ju, { popover: m, children: e && /* @__PURE__ */ f(Yu, { children: e }) }),
1333
+ u && /* @__PURE__ */ f(_u, { slot: "description", children: u }),
1334
+ v === "top" && /* @__PURE__ */ f(xe, { "data-testid": "fieldError", children: i }),
1335
+ /* @__PURE__ */ be("div", { className: W.wrap, children: [
1323
1336
  /* @__PURE__ */ f(
1324
1337
  vu,
1325
1338
  {
1326
- className: be(W.inputField, {
1327
- [W.medium]: a === "medium"
1328
- })
1339
+ className: ae(W.inputField, {
1340
+ [W.medium]: b === "medium"
1341
+ }),
1342
+ onMouseUp: A,
1343
+ ref: g
1329
1344
  }
1330
1345
  ),
1331
1346
  /* @__PURE__ */ f(
1332
- $u,
1347
+ ru,
1333
1348
  {
1334
- className: be(W.button, {
1335
- [W.medium]: a === "medium"
1349
+ className: ae(W.button, {
1350
+ [W.medium]: b === "medium"
1336
1351
  }),
1337
- "aria-label": "Visa lista",
1352
+ "aria-label": x.format("showList"),
1338
1353
  children: /* @__PURE__ */ f(
1339
1354
  "div",
1340
1355
  {
1341
1356
  className: W.icon,
1342
1357
  "aria-hidden": "true",
1343
1358
  children: /* @__PURE__ */ f(
1344
- nn,
1359
+ on,
1345
1360
  {
1346
1361
  size: 20,
1347
1362
  "aria-hidden": !0
@@ -1352,24 +1367,24 @@ function oo({
1352
1367
  }
1353
1368
  )
1354
1369
  ] }),
1355
- h === "bottom" && /* @__PURE__ */ f(me, { "data-testid": "fieldError", children: i }),
1356
- /* @__PURE__ */ f(_u, { children: /* @__PURE__ */ f(Qu, { items: t, children: b }) })
1370
+ v === "bottom" && /* @__PURE__ */ f(xe, { "data-testid": "fieldError", children: i }),
1371
+ /* @__PURE__ */ f(Qu, { children: /* @__PURE__ */ f(en, { items: t, children: a }) })
1357
1372
  ]
1358
1373
  }
1359
1374
  );
1360
1375
  }
1361
- function fn(e) {
1362
- return /* @__PURE__ */ f(en, { ...e });
1376
+ function Tn(e) {
1377
+ return /* @__PURE__ */ f(un, { ...e });
1363
1378
  }
1364
- 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) }) });
1379
+ function Dn(e) {
1380
+ return /* @__PURE__ */ f(nn, { ...e, children: /* @__PURE__ */ f(Su, { items: e.children, children: (u) => /* @__PURE__ */ f(Tn, { children: u.name }, u.id) }) });
1366
1381
  }
1367
- function to(e) {
1368
- return /* @__PURE__ */ f(vn, { ...e });
1382
+ function ro(e) {
1383
+ return /* @__PURE__ */ f(Dn, { ...e });
1369
1384
  }
1370
1385
  export {
1371
- oo as C,
1372
- fn as a,
1373
- vn as b,
1374
- to as c
1386
+ so as C,
1387
+ Tn as a,
1388
+ Dn as b,
1389
+ ro as c
1375
1390
  };