@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
@@ -0,0 +1,341 @@
1
+ import { $ as E, c as j, a as F } from "./utils-DJhAJHk_.js";
2
+ import { $ as A } from "./Hidden-C9KWUR7b.js";
3
+ import m, { useMemo as _, createContext as L, forwardRef as B, useRef as S, useEffect as H } from "react";
4
+ import { $ as C } from "./number-BE8InLgI.js";
5
+ import { c as h, a as R } from "./mergeProps-C1U1OIeJ.js";
6
+ import { $ as I } from "./filterDOMProps-D6KHYVBX.js";
7
+ import { $ as K } from "./useLabels-LrKQiY11.js";
8
+ import { $ as U } from "./context-CGNJ3grH.js";
9
+ import { $ as Z } from "./useButton-1-Jf-oHj.js";
10
+ import { $ as k } from "./useFocusRing-DOfBqnUN.js";
11
+ import { $ as z } from "./useHover-DQvJ3Y-W.js";
12
+ let P = /* @__PURE__ */ new Map(), x = !1;
13
+ try {
14
+ x = new Intl.NumberFormat("de-DE", {
15
+ signDisplay: "exceptZero"
16
+ }).resolvedOptions().signDisplay === "exceptZero";
17
+ } catch {
18
+ }
19
+ let v = !1;
20
+ try {
21
+ v = new Intl.NumberFormat("de-DE", {
22
+ style: "unit",
23
+ unit: "degree"
24
+ }).resolvedOptions().style === "unit";
25
+ } catch {
26
+ }
27
+ const O = {
28
+ degree: {
29
+ narrow: {
30
+ default: "°",
31
+ "ja-JP": " 度",
32
+ "zh-TW": "度",
33
+ "sl-SI": " °"
34
+ }
35
+ }
36
+ };
37
+ class G {
38
+ /** Formats a number value as a string, according to the locale and options provided to the constructor. */
39
+ format(e) {
40
+ let t = "";
41
+ if (!x && this.options.signDisplay != null ? t = W(this.numberFormatter, this.options.signDisplay, e) : t = this.numberFormatter.format(e), this.options.style === "unit" && !v) {
42
+ var r;
43
+ let { unit: i, unitDisplay: n = "short", locale: l } = this.resolvedOptions();
44
+ if (!i) return t;
45
+ let o = (r = O[i]) === null || r === void 0 ? void 0 : r[n];
46
+ t += o[l] || o.default;
47
+ }
48
+ return t;
49
+ }
50
+ /** Formats a number to an array of parts such as separators, digits, punctuation, and more. */
51
+ formatToParts(e) {
52
+ return this.numberFormatter.formatToParts(e);
53
+ }
54
+ /** Formats a number range as a string. */
55
+ formatRange(e, t) {
56
+ if (typeof this.numberFormatter.formatRange == "function") return this.numberFormatter.formatRange(e, t);
57
+ if (t < e) throw new RangeError("End date must be >= start date");
58
+ return `${this.format(e)} – ${this.format(t)}`;
59
+ }
60
+ /** Formats a number range as an array of parts. */
61
+ formatRangeToParts(e, t) {
62
+ if (typeof this.numberFormatter.formatRangeToParts == "function") return this.numberFormatter.formatRangeToParts(e, t);
63
+ if (t < e) throw new RangeError("End date must be >= start date");
64
+ let r = this.numberFormatter.formatToParts(e), i = this.numberFormatter.formatToParts(t);
65
+ return [
66
+ ...r.map((n) => ({
67
+ ...n,
68
+ source: "startRange"
69
+ })),
70
+ {
71
+ type: "literal",
72
+ value: " – ",
73
+ source: "shared"
74
+ },
75
+ ...i.map((n) => ({
76
+ ...n,
77
+ source: "endRange"
78
+ }))
79
+ ];
80
+ }
81
+ /** Returns the resolved formatting options based on the values passed to the constructor. */
82
+ resolvedOptions() {
83
+ let e = this.numberFormatter.resolvedOptions();
84
+ return !x && this.options.signDisplay != null && (e = {
85
+ ...e,
86
+ signDisplay: this.options.signDisplay
87
+ }), !v && this.options.style === "unit" && (e = {
88
+ ...e,
89
+ style: "unit",
90
+ unit: this.options.unit,
91
+ unitDisplay: this.options.unitDisplay
92
+ }), e;
93
+ }
94
+ constructor(e, t = {}) {
95
+ this.numberFormatter = J(e, t), this.options = t;
96
+ }
97
+ }
98
+ function J(a, e = {}) {
99
+ let { numberingSystem: t } = e;
100
+ if (t && a.includes("-nu-") && (a.includes("-u-") || (a += "-u-"), a += `-nu-${t}`), e.style === "unit" && !v) {
101
+ var r;
102
+ let { unit: l, unitDisplay: o = "short" } = e;
103
+ if (!l) throw new Error('unit option must be provided with style: "unit"');
104
+ if (!(!((r = O[l]) === null || r === void 0) && r[o])) throw new Error(`Unsupported unit ${l} with unitDisplay = ${o}`);
105
+ e = {
106
+ ...e,
107
+ style: "decimal"
108
+ };
109
+ }
110
+ let i = a + (e ? Object.entries(e).sort((l, o) => l[0] < o[0] ? -1 : 1).join() : "");
111
+ if (P.has(i)) return P.get(i);
112
+ let n = new Intl.NumberFormat(a, e);
113
+ return P.set(i, n), n;
114
+ }
115
+ function W(a, e, t) {
116
+ if (e === "auto") return a.format(t);
117
+ if (e === "never") return a.format(Math.abs(t));
118
+ {
119
+ let r = !1;
120
+ if (e === "always" ? r = t > 0 || Object.is(t, 0) : e === "exceptZero" && (Object.is(t, -0) || Object.is(t, 0) ? t = Math.abs(t) : r = t > 0), r) {
121
+ let i = a.format(-t), n = a.format(t), l = i.replace(n, "").replace(/\u200e|\u061C/, "");
122
+ return [
123
+ ...l
124
+ ].length !== 1 && console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"), i.replace(n, "!!!").replace(l, "+").replace("!!!", n);
125
+ } else return a.format(t);
126
+ }
127
+ }
128
+ function Y(a = {}) {
129
+ let { locale: e } = U();
130
+ return _(() => new G(e, a), [
131
+ e,
132
+ a
133
+ ]);
134
+ }
135
+ const V = 7e3;
136
+ let s = null;
137
+ function D(a, e = "assertive", t = V) {
138
+ s ? s.announce(a, e, t) : (s = new q(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? s.announce(a, e, t) : setTimeout(() => {
139
+ s != null && s.isAttached() && (s == null || s.announce(a, e, t));
140
+ }, 100));
141
+ }
142
+ function $e(a) {
143
+ s && s.clear(a);
144
+ }
145
+ class q {
146
+ isAttached() {
147
+ var e;
148
+ return (e = this.node) === null || e === void 0 ? void 0 : e.isConnected;
149
+ }
150
+ createLog(e) {
151
+ let t = document.createElement("div");
152
+ return t.setAttribute("role", "log"), t.setAttribute("aria-live", e), t.setAttribute("aria-relevant", "additions"), t;
153
+ }
154
+ destroy() {
155
+ this.node && (document.body.removeChild(this.node), this.node = null);
156
+ }
157
+ announce(e, t = "assertive", r = V) {
158
+ var i, n;
159
+ if (!this.node) return;
160
+ let l = document.createElement("div");
161
+ typeof e == "object" ? (l.setAttribute("role", "img"), l.setAttribute("aria-labelledby", e["aria-labelledby"])) : l.textContent = e, t === "assertive" ? (i = this.assertiveLog) === null || i === void 0 || i.appendChild(l) : (n = this.politeLog) === null || n === void 0 || n.appendChild(l), e !== "" && setTimeout(() => {
162
+ l.remove();
163
+ }, r);
164
+ }
165
+ clear(e) {
166
+ this.node && ((!e || e === "assertive") && this.assertiveLog && (this.assertiveLog.innerHTML = ""), (!e || e === "polite") && this.politeLog && (this.politeLog.innerHTML = ""));
167
+ }
168
+ constructor() {
169
+ this.node = null, this.assertiveLog = null, this.politeLog = null, typeof document < "u" && (this.node = document.createElement("div"), this.node.dataset.liveAnnouncer = "true", Object.assign(this.node.style, {
170
+ border: 0,
171
+ clip: "rect(0 0 0 0)",
172
+ clipPath: "inset(50%)",
173
+ height: "1px",
174
+ margin: "-1px",
175
+ overflow: "hidden",
176
+ padding: 0,
177
+ position: "absolute",
178
+ width: "1px",
179
+ whiteSpace: "nowrap"
180
+ }), this.assertiveLog = this.createLog("assertive"), this.node.appendChild(this.assertiveLog), this.politeLog = this.createLog("polite"), this.node.appendChild(this.politeLog), document.body.prepend(this.node));
181
+ }
182
+ }
183
+ function Q(a) {
184
+ let { id: e, label: t, "aria-labelledby": r, "aria-label": i, labelElementType: n = "label" } = a;
185
+ e = h(e);
186
+ let l = h(), o = {};
187
+ t ? (r = r ? `${l} ${r}` : l, o = {
188
+ id: l,
189
+ htmlFor: n === "label" ? e : void 0
190
+ }) : !r && !i && process.env.NODE_ENV !== "production" && console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");
191
+ let d = K({
192
+ id: e,
193
+ "aria-label": i,
194
+ "aria-labelledby": r
195
+ });
196
+ return {
197
+ labelProps: o,
198
+ fieldProps: d
199
+ };
200
+ }
201
+ function X(a) {
202
+ let { value: e = 0, minValue: t = 0, maxValue: r = 100, valueLabel: i, isIndeterminate: n, formatOptions: l = {
203
+ style: "percent"
204
+ } } = a, o = I(a, {
205
+ labelable: !0
206
+ }), { labelProps: d, fieldProps: f } = Q({
207
+ ...a,
208
+ // Progress bar is not an HTML input element so it
209
+ // shouldn't be labeled by a <label> element.
210
+ labelElementType: "span"
211
+ });
212
+ e = C(e, t, r);
213
+ let $ = (e - t) / (r - t), b = Y(l);
214
+ if (!n && !i) {
215
+ let u = l.style === "percent" ? $ : e;
216
+ i = b.format(u);
217
+ }
218
+ return {
219
+ progressBarProps: R(o, {
220
+ ...f,
221
+ "aria-valuenow": n ? void 0 : e,
222
+ "aria-valuemin": t,
223
+ "aria-valuemax": r,
224
+ "aria-valuetext": n ? void 0 : i,
225
+ role: "progressbar"
226
+ }),
227
+ labelProps: d
228
+ };
229
+ }
230
+ const N = /* @__PURE__ */ L({}), me = /* @__PURE__ */ A(function(e, t) {
231
+ [e, t] = E(e, t, N);
232
+ let { elementType: r = "label", ...i } = e;
233
+ return /* @__PURE__ */ m.createElement(r, {
234
+ className: "react-aria-Label",
235
+ ...i,
236
+ ref: t
237
+ });
238
+ }), M = /* @__PURE__ */ L(null), pe = /* @__PURE__ */ B(function(e, t) {
239
+ [e, t] = E(e, t, M);
240
+ let { value: r = 0, minValue: i = 0, maxValue: n = 100, isIndeterminate: l = !1 } = e;
241
+ r = C(r, i, n);
242
+ let [o, d] = j(!e["aria-label"] && !e["aria-labelledby"]), { progressBarProps: f, labelProps: $ } = X({
243
+ ...e,
244
+ label: d
245
+ }), b = l ? void 0 : (r - i) / (n - i) * 100, u = F({
246
+ ...e,
247
+ defaultClassName: "react-aria-ProgressBar",
248
+ values: {
249
+ percentage: b,
250
+ valueText: f["aria-valuetext"],
251
+ isIndeterminate: l
252
+ }
253
+ });
254
+ return /* @__PURE__ */ m.createElement("div", {
255
+ ...f,
256
+ ...u,
257
+ ref: t,
258
+ slot: e.slot || void 0
259
+ }, /* @__PURE__ */ m.createElement(N.Provider, {
260
+ value: {
261
+ ...$,
262
+ ref: o,
263
+ elementType: "span"
264
+ }
265
+ }, u.children));
266
+ }), ee = /* @__PURE__ */ new Set([
267
+ "form",
268
+ "formAction",
269
+ "formEncType",
270
+ "formMethod",
271
+ "formNoValidate",
272
+ "formTarget",
273
+ "name",
274
+ "value"
275
+ ]), te = /* @__PURE__ */ L({}), he = /* @__PURE__ */ A(function(e, t) {
276
+ [e, t] = E(e, t, te), e = ae(e);
277
+ let r = e, { isPending: i } = r, { buttonProps: n, isPressed: l } = Z(e, t), { focusProps: o, isFocused: d, isFocusVisible: f } = k(e), { hoverProps: $, isHovered: b } = z({
278
+ ...e,
279
+ isDisabled: e.isDisabled || i
280
+ }), u = {
281
+ isHovered: b,
282
+ isPressed: (r.isPressed || l) && !i,
283
+ isFocused: d,
284
+ isFocusVisible: f,
285
+ isDisabled: e.isDisabled || !1,
286
+ isPending: i ?? !1
287
+ }, w = F({
288
+ ...e,
289
+ values: u,
290
+ defaultClassName: "react-aria-Button"
291
+ }), p = h(n.id), y = h(), c = n["aria-labelledby"];
292
+ i && (c ? c = `${c} ${y}` : n["aria-label"] && (c = `${p} ${y}`));
293
+ let g = S(i);
294
+ return H(() => {
295
+ let T = {
296
+ "aria-labelledby": c || p
297
+ };
298
+ (!g.current && d && i || g.current && d && !i) && D(T, "assertive"), g.current = i;
299
+ }, [
300
+ i,
301
+ d,
302
+ c,
303
+ p
304
+ ]), /* @__PURE__ */ m.createElement("button", {
305
+ ...I(e, {
306
+ propNames: ee
307
+ }),
308
+ ...R(n, o, $),
309
+ ...w,
310
+ type: n.type === "submit" && i ? "button" : n.type,
311
+ id: p,
312
+ ref: t,
313
+ "aria-labelledby": c,
314
+ slot: e.slot || void 0,
315
+ "aria-disabled": i ? "true" : n["aria-disabled"],
316
+ "data-disabled": e.isDisabled || void 0,
317
+ "data-pressed": u.isPressed || void 0,
318
+ "data-hovered": b || void 0,
319
+ "data-focused": d || void 0,
320
+ "data-pending": i || void 0,
321
+ "data-focus-visible": f || void 0
322
+ }, /* @__PURE__ */ m.createElement(M.Provider, {
323
+ value: {
324
+ id: y
325
+ }
326
+ }, w.children));
327
+ });
328
+ function ae(a) {
329
+ return a.isPending && (a.onPress = void 0, a.onPressStart = void 0, a.onPressEnd = void 0, a.onPressChange = void 0, a.onPressUp = void 0, a.onKeyDown = void 0, a.onKeyUp = void 0, a.onClick = void 0, a.href = void 0), a;
330
+ }
331
+ export {
332
+ he as $,
333
+ Q as a,
334
+ pe as b,
335
+ N as c,
336
+ me as d,
337
+ te as e,
338
+ D as f,
339
+ G as g,
340
+ $e as h
341
+ };
@@ -0,0 +1 @@
1
+ "use strict";const p=require("./utils-DHNZrQmj.cjs"),F=require("./Hidden-BxRZGdEW.cjs"),d=require("react"),C=require("./number-E0x3H9cL.cjs"),m=require("./mergeProps-B5KXZAI3.cjs"),R=require("./filterDOMProps-BS2lrgFA.cjs"),q=require("./useLabels-CSU0kbtJ.cjs"),j=require("./context-Df3XbgBG.cjs"),B=require("./useButton-D60q0SQw.cjs"),H=require("./useFocusRing-B-A1OLhU.cjs"),S=require("./useHover-BE_XKZKe.cjs");let P=new Map,E=!1;try{E=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let y=!1;try{y=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const A={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class O{format(e){let t="";if(!E&&this.options.signDisplay!=null?t=K(this.numberFormatter,this.options.signDisplay,e):t=this.numberFormatter.format(e),this.options.style==="unit"&&!y){var i;let{unit:r,unitDisplay:n="short",locale:l}=this.resolvedOptions();if(!r)return t;let o=(i=A[r])===null||i===void 0?void 0:i[n];t+=o[l]||o.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(t)}`}formatRangeToParts(e,t){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let i=this.numberFormatter.formatToParts(e),r=this.numberFormatter.formatToParts(t);return[...i.map(n=>({...n,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...r.map(n=>({...n,source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!E&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!y&&this.options.style==="unit"&&(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=_(e,t),this.options=t}}function _(a,e={}){let{numberingSystem:t}=e;if(t&&a.includes("-nu-")&&(a.includes("-u-")||(a+="-u-"),a+=`-nu-${t}`),e.style==="unit"&&!y){var i;let{unit:l,unitDisplay:o="short"}=e;if(!l)throw new Error('unit option must be provided with style: "unit"');if(!(!((i=A[l])===null||i===void 0)&&i[o]))throw new Error(`Unsupported unit ${l} with unitDisplay = ${o}`);e={...e,style:"decimal"}}let r=a+(e?Object.entries(e).sort((l,o)=>l[0]<o[0]?-1:1).join():"");if(P.has(r))return P.get(r);let n=new Intl.NumberFormat(a,e);return P.set(r,n),n}function K(a,e,t){if(e==="auto")return a.format(t);if(e==="never")return a.format(Math.abs(t));{let i=!1;if(e==="always"?i=t>0||Object.is(t,0):e==="exceptZero"&&(Object.is(t,-0)||Object.is(t,0)?t=Math.abs(t):i=t>0),i){let r=a.format(-t),n=a.format(t),l=r.replace(n,"").replace(/\u200e|\u061C/,"");return[...l].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),r.replace(n,"!!!").replace(l,"+").replace("!!!",n)}else return a.format(t)}}function U(a={}){let{locale:e}=j.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7();return d.useMemo(()=>new O(e,a),[e,a])}const I=7e3;let s=null;function L(a,e="assertive",t=I){s?s.announce(a,e,t):(s=new k,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?s.announce(a,e,t):setTimeout(()=>{s!=null&&s.isAttached()&&(s==null||s.announce(a,e,t))},100))}function Z(a){s&&s.clear(a)}class k{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",i=I){var r,n;if(!this.node)return;let l=document.createElement("div");typeof e=="object"?(l.setAttribute("role","img"),l.setAttribute("aria-labelledby",e["aria-labelledby"])):l.textContent=e,t==="assertive"?(r=this.assertiveLog)===null||r===void 0||r.appendChild(l):(n=this.politeLog)===null||n===void 0||n.appendChild(l),e!==""&&setTimeout(()=>{l.remove()},i)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function V(a){let{id:e,label:t,"aria-labelledby":i,"aria-label":r,labelElementType:n="label"}=a;e=m.$bdb11010cef70236$export$f680877a34711e37(e);let l=m.$bdb11010cef70236$export$f680877a34711e37(),o={};t?(i=i?`${l} ${i}`:l,o={id:l,htmlFor:n==="label"?e:void 0}):!i&&!r&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let f=q.$313b98861ee5dd6c$export$d6875122194c7b44({id:e,"aria-label":r,"aria-labelledby":i});return{labelProps:o,fieldProps:f}}function z(a){let{value:e=0,minValue:t=0,maxValue:i=100,valueLabel:r,isIndeterminate:n,formatOptions:l={style:"percent"}}=a,o=R.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a,{labelable:!0}),{labelProps:f,fieldProps:c}=V({...a,labelElementType:"span"});e=C.$9446cca9a3875146$export$7d15b64cf5a3a4c4(e,t,i);let h=(e-t)/(i-t),$=U(l);if(!n&&!r){let u=l.style==="percent"?h:e;r=$.format(u)}return{progressBarProps:m.$3ef42575df84b30b$export$9d1611c77c2fe928(o,{...c,"aria-valuenow":n?void 0:e,"aria-valuemin":t,"aria-valuemax":i,"aria-valuetext":n?void 0:r,role:"progressbar"}),labelProps:f}}const w=d.createContext({}),G=F.$f39a9eba43920ace$export$86427a43e3e48ebb(function(e,t){[e,t]=p.$64fa3d84918910a7$export$29f1550f4b0d4415(e,t,w);let{elementType:i="label",...r}=e;return d.createElement(i,{className:"react-aria-Label",...r,ref:t})}),N=d.createContext(null),J=d.forwardRef(function(e,t){[e,t]=p.$64fa3d84918910a7$export$29f1550f4b0d4415(e,t,N);let{value:i=0,minValue:r=0,maxValue:n=100,isIndeterminate:l=!1}=e;i=C.$9446cca9a3875146$export$7d15b64cf5a3a4c4(i,r,n);let[o,f]=p.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!e["aria-label"]&&!e["aria-labelledby"]),{progressBarProps:c,labelProps:h}=z({...e,label:f}),$=l?void 0:(i-r)/(n-r)*100,u=p.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:$,valueText:c["aria-valuetext"],isIndeterminate:l}});return d.createElement("div",{...c,...u,ref:t,slot:e.slot||void 0},d.createElement(w.Provider,{value:{...h,ref:o,elementType:"span"}},u.children))}),W=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),M=d.createContext({}),Y=F.$f39a9eba43920ace$export$86427a43e3e48ebb(function(e,t){[e,t]=p.$64fa3d84918910a7$export$29f1550f4b0d4415(e,t,M),e=Q(e);let i=e,{isPending:r}=i,{buttonProps:n,isPressed:l}=B.$701a24aa0da5b062$export$ea18c227d4417cc3(e,t),{focusProps:o,isFocused:f,isFocusVisible:c}=H.$f7dceffc5ad7768b$export$4e328f61c538687f(e),{hoverProps:h,isHovered:$}=S.$6179b936705e76d3$export$ae780daf29e6d456({...e,isDisabled:e.isDisabled||r}),u={isHovered:$,isPressed:(i.isPressed||l)&&!r,isFocused:f,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:r??!1},T=p.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,values:u,defaultClassName:"react-aria-Button"}),v=m.$bdb11010cef70236$export$f680877a34711e37(n.id),x=m.$bdb11010cef70236$export$f680877a34711e37(),b=n["aria-labelledby"];r&&(b?b=`${b} ${x}`:n["aria-label"]&&(b=`${v} ${x}`));let g=d.useRef(r);return d.useEffect(()=>{let D={"aria-labelledby":b||v};(!g.current&&f&&r||g.current&&f&&!r)&&L(D,"assertive"),g.current=r},[r,f,b,v]),d.createElement("button",{...R.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{propNames:W}),...m.$3ef42575df84b30b$export$9d1611c77c2fe928(n,o,h),...T,type:n.type==="submit"&&r?"button":n.type,id:v,ref:t,"aria-labelledby":b,slot:e.slot||void 0,"aria-disabled":r?"true":n["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":u.isPressed||void 0,"data-hovered":$||void 0,"data-focused":f||void 0,"data-pending":r||void 0,"data-focus-visible":c||void 0},d.createElement(N.Provider,{value:{id:x}},T.children))});function Q(a){return a.isPending&&(a.onPress=void 0,a.onPressStart=void 0,a.onPressEnd=void 0,a.onPressChange=void 0,a.onPressUp=void 0,a.onKeyDown=void 0,a.onKeyUp=void 0,a.onClick=void 0,a.href=void 0),a}exports.$01b77f81d0f07f68$export$75b6ee27786ba447=w;exports.$01b77f81d0f07f68$export$b04be29aa201d4f5=G;exports.$0393f8ab869a0f1a$export$c17561cb55d4db30=J;exports.$319e236875307eab$export$a9b970dcc4ae71a9=L;exports.$319e236875307eab$export$d10ae4f68404609a=Z;exports.$488c6ddbf4ef74c2$export$cc77c4ff7e8673c5=O;exports.$d191a55c9702f145$export$8467354a121f1b9f=V;exports.$d2b4bc8c273e7be6$export$24d547caef80ccd1=M;exports.$d2b4bc8c273e7be6$export$353f5b6fc5456de1=Y;
@@ -0,0 +1 @@
1
+ "use strict";require('./assets/Button.css');const t="_button_cz5bk_4",n="_secondary_cz5bk_51",c="_tertiary_cz5bk_74",_="_iconBtn_cz5bk_94",o="_medium_cz5bk_114",i="_danger_cz5bk_119",r="_iconRight_cz5bk_141",s="_fullwidth_cz5bk_145",e="_primary_cz5bk_155",a={button:t,secondary:n,tertiary:c,iconBtn:_,medium:o,danger:i,iconRight:r,fullwidth:s,primary:e};exports.ButtonStyles=a;
@@ -0,0 +1,14 @@
1
+ import './assets/Button.css';const t = "_button_cz5bk_4", n = "_secondary_cz5bk_51", c = "_tertiary_cz5bk_74", _ = "_iconBtn_cz5bk_94", o = "_medium_cz5bk_114", i = "_danger_cz5bk_119", r = "_iconRight_cz5bk_141", s = "_fullwidth_cz5bk_145", e = "_primary_cz5bk_155", a = {
2
+ button: t,
3
+ secondary: n,
4
+ tertiary: c,
5
+ iconBtn: _,
6
+ medium: o,
7
+ danger: i,
8
+ iconRight: r,
9
+ fullwidth: s,
10
+ primary: e
11
+ };
12
+ export {
13
+ a as B
14
+ };
package/CHANGELOG.md CHANGED
@@ -1,3 +1,51 @@
1
+ ## 10.4.0 (2025-07-02)
2
+
3
+ ### 🚀 Features
4
+
5
+ - **tabs:** refactor tabs to support declarative children structure ([#678](https://github.com/migrationsverket/midas/pull/678))
6
+
7
+ ### 🩹 Fixes
8
+
9
+ - **theme:** change dark mode color on calendarBackgroundInRange ([d745cb2adf](https://github.com/migrationsverket/midas/commit/d745cb2adf))
10
+ - **calendar:** change text color token for dates in range ([1656d6d7a1](https://github.com/migrationsverket/midas/commit/1656d6d7a1))
11
+ - **checkbox:** add margin-bottom to checkboxgroup-items [run-chromatic] ([0637fd9a5d](https://github.com/migrationsverket/midas/commit/0637fd9a5d))
12
+ - **calendar:** in range states ([3b7bcd03da](https://github.com/migrationsverket/midas/commit/3b7bcd03da))
13
+ - **theme:** new tokens for calendar date states ([0f819928d0](https://github.com/migrationsverket/midas/commit/0f819928d0))
14
+ - add translations for all text strings ([#689](https://github.com/migrationsverket/midas/pull/689))
15
+ - **breadcrumbs:** 💄 accept custom className ([#683](https://github.com/migrationsverket/midas/pull/683))
16
+ - **checkbox:** 💄 accept custom className ([#684](https://github.com/migrationsverket/midas/pull/684))
17
+ - **color-scheme-switch:** 💄 accept custom className ([#685](https://github.com/migrationsverket/midas/pull/685))
18
+ - **file-upload:** 💄 accept custom className ([#686](https://github.com/migrationsverket/midas/pull/686))
19
+ - **layout:** 💄 accept custom className ([#687](https://github.com/migrationsverket/midas/pull/687))
20
+ - **radio:** 💄 accept custom className ([#688](https://github.com/migrationsverket/midas/pull/688))
21
+ - **search-field:** 💄 accept custom className ([#690](https://github.com/migrationsverket/midas/pull/690))
22
+ - **spinner:** 💄 accept custom className ([#691](https://github.com/migrationsverket/midas/pull/691))
23
+ - **toast:** 💄 accept custom className ([#692](https://github.com/migrationsverket/midas/pull/692))
24
+
25
+ ### 📖 Documentation changes
26
+
27
+ - add release notes for v10.3.0 ([00264e3cec](https://github.com/migrationsverket/midas/commit/00264e3cec))
28
+
29
+ ## 10.3.0 (2025-06-25)
30
+
31
+ ### 🚀 Features
32
+
33
+ - **popover:** new component popover ([#672](https://github.com/migrationsverket/midas/pull/672))
34
+
35
+ ### 🩹 Fixes
36
+
37
+ - **combobox:** select the previous value on click ([b2440e9d2b](https://github.com/migrationsverket/midas/commit/b2440e9d2b))
38
+
39
+ ### 💅 Refactors
40
+
41
+ - ♻️ checkbox ([#640](https://github.com/migrationsverket/midas/pull/640))
42
+
43
+ ### 🧪 Tests updated
44
+
45
+ - **grid:** remove a11y test bypass ([ca09acfd1c](https://github.com/migrationsverket/midas/commit/ca09acfd1c))
46
+ - opt-in for chromatic on PRs ([#675](https://github.com/migrationsverket/midas/pull/675))
47
+ - remove storybook background transiton ([a7b633dca8](https://github.com/migrationsverket/midas/commit/a7b633dca8))
48
+
1
49
  ## 10.2.0 (2025-06-18)
2
50
 
3
51
  ### 🚀 Features
@@ -1,11 +1,11 @@
1
1
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
2
2
  import { c as n } from "./clsx-OuTLNxxd.js";
3
3
  import * as e from "react";
4
- import { H as m } from "./Heading-BY5-QN4S.js";
5
- import { $ as _ } from "./Button-ZOQy9Ivu.js";
6
- import { $ as h } from "./Link-B-nus-FT.js";
4
+ import { H as m } from "./Heading-NxtGri2i.js";
5
+ import { $ as _ } from "./Button-CFYdzG0H.js";
6
+ import { $ as h } from "./Link-Bn8V3ZI0.js";
7
7
  import { A as C } from "./arrow-right-Dg8sttFO.js";
8
- import './assets/Card.css';const A = "_card_1hl11_4", I = "_horizontal_1hl11_10", p = "_cardLink_1hl11_15", u = "_cardContent_1hl11_20", x = "_cardActions_1hl11_39", f = "_cardActionArea_1hl11_49", z = "_cardImage_1hl11_82", $ = "_cardLinkIcon_1hl11_114", r = {
8
+ import './assets/Card.css';const A = "_card_1hl11_4", I = "_horizontal_1hl11_10", p = "_cardLink_1hl11_15", u = "_cardContent_1hl11_20", x = "_cardActions_1hl11_39", f = "_cardActionArea_1hl11_49", z = "_cardImage_1hl11_82", k = "_cardLinkIcon_1hl11_114", r = {
9
9
  card: A,
10
10
  horizontal: I,
11
11
  cardLink: p,
@@ -13,7 +13,7 @@ import './assets/Card.css';const A = "_card_1hl11_4", I = "_horizontal_1hl11_10"
13
13
  cardActions: x,
14
14
  cardActionArea: f,
15
15
  cardImage: z,
16
- cardLinkIcon: $
16
+ cardLinkIcon: k
17
17
  }, d = e.createContext({
18
18
  horizontal: void 0,
19
19
  titleId: void 0
@@ -0,0 +1 @@
1
+ "use strict";require('./assets/Card.css');const a=require("react/jsx-runtime"),o=require("./clsx-C11secjj.cjs"),l=require("react"),u=require("./Heading-CKTR4sOz.cjs"),C=require("./Button-DExMoP5f.cjs"),x=require("./Link-CidjjqHb.cjs"),_=require("./arrow-right-QJ2gXPKQ.cjs");function h(e){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(c,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return c.default=e,Object.freeze(c)}const s=h(l),m="_card_1hl11_4",A="_horizontal_1hl11_10",g="_cardLink_1hl11_15",I="_cardContent_1hl11_20",j="_cardActions_1hl11_39",b="_cardActionArea_1hl11_49",f="_cardImage_1hl11_82",k="_cardLinkIcon_1hl11_114",n={card:m,horizontal:A,cardLink:g,cardContent:I,cardActions:j,cardActionArea:b,cardImage:f,cardLinkIcon:k},i=s.createContext({horizontal:void 0,titleId:void 0}),z=({horizontal:e,className:c,children:t,...r})=>{const d=`card-title-${s.useId()}`;return a.jsx(i.Provider,{value:{horizontal:e,titleId:d},children:a.jsx("div",{...r,className:o.clsx(n.card,e&&n.horizontal,c),children:t})})},L=({children:e,...c})=>{const{horizontal:t}=s.useContext(i);return a.jsx("div",{...c,className:o.clsx(n.cardContent,t&&n.horizontal),children:e})},p=({elementType:e="h2",children:c})=>{const{horizontal:t,titleId:r}=s.useContext(i);return a.jsx(u.Heading,{level:t?5:3,elementType:e,isExpressive:t,className:o.clsx(n.cardTitle,t&&n.horizontal),id:r,children:c})},v=({children:e,...c})=>{const{horizontal:t}=s.useContext(i);return a.jsx("div",{...c,className:o.clsx(n.cardActions,t&&n.horizontal),children:e})},N=({children:e,className:c,...t})=>{const{titleId:r}=s.useContext(i);return a.jsx(C.$d2b4bc8c273e7be6$export$353f5b6fc5456de1,{...t,"aria-labelledby":r,className:o.clsx(n.cardActionArea,c),children:e})},q=({as:e="img",className:c,...t})=>a.jsx(e,{...t,className:o.clsx(n.cardImage,c)}),$=({children:e,as:c,...t})=>{const r=c||x.$4f118338184dc1d9$export$a6c7ac8248d6e38a;return a.jsxs(r,{...t,className:o.clsx(n.cardLink,t.className),children:[e,a.jsx(_.ArrowRight,{className:n.cardLinkIcon,size:24})]})};exports.Card=z;exports.CardActionArea=N;exports.CardActions=v;exports.CardContent=L;exports.CardImage=q;exports.CardLink=$;exports.CardTitle=p;
@@ -1 +1 @@
1
- "use strict";require('./assets/CharacterCounter.css');const s=require("react/jsx-runtime"),u=require("react"),i=require("./utils-BNtZbAib.cjs"),d=require("./Input-DKSAYvsw.cjs");function f(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const l=f(u),$="_characterCounter_4224k_4",b={characterCounter:$},h=l.forwardRef((e,n)=>{[e]=i.$64fa3d84918910a7$export$29f1550f4b0d4415(e,n,d.$3985021b0ad6602f$export$37fb8590cf2c088c);const{maxLength:t,value:r,isLonely:o}=e,{length:c}=(r==null?void 0:r.toString())??"",a=t!==void 0;return s.jsx("span",{className:b.characterCounter,"data-exceeded":a&&c>t||void 0,"data-lonely":o||void 0,children:a?`${c} / ${t}`:c})});exports.CharacterCounter=h;
1
+ "use strict";require('./assets/CharacterCounter.css');const s=require("react/jsx-runtime"),u=require("react"),i=require("./utils-DHNZrQmj.cjs"),d=require("./Input-MJji5hhq.cjs");function f(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const l=f(u),h="_characterCounter_4224k_4",b={characterCounter:h},g=l.forwardRef((e,n)=>{[e]=i.$64fa3d84918910a7$export$29f1550f4b0d4415(e,n,d.$3985021b0ad6602f$export$37fb8590cf2c088c);const{maxLength:t,value:r,isLonely:o}=e,{length:c}=(r==null?void 0:r.toString())??"",a=t!==void 0;return s.jsx("span",{className:b.characterCounter,"data-exceeded":a&&c>t||void 0,"data-lonely":o||void 0,children:a?`${c} / ${t}`:c})});exports.CharacterCounter=g;
@@ -0,0 +1,22 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import * as d from "react";
3
+ import { $ as f } from "./utils-DJhAJHk_.js";
4
+ import { $ as i } from "./Input-LnjmFI1x.js";
5
+ import './assets/CharacterCounter.css';const m = "_characterCounter_4224k_4", $ = {
6
+ characterCounter: m
7
+ }, l = d.forwardRef((t, c) => {
8
+ [t] = f(t, c, i);
9
+ const { maxLength: r, value: e, isLonely: n } = t, { length: a } = (e == null ? void 0 : e.toString()) ?? "", o = r !== void 0;
10
+ return /* @__PURE__ */ s(
11
+ "span",
12
+ {
13
+ className: $.characterCounter,
14
+ "data-exceeded": o && a > r || void 0,
15
+ "data-lonely": n || void 0,
16
+ children: o ? `${a} / ${r}` : a
17
+ }
18
+ );
19
+ });
20
+ export {
21
+ l as C
22
+ };
@@ -0,0 +1 @@
1
+ "use strict";require('./assets/Checkbox.css');const s=require("react/jsx-runtime"),g=require("react"),G=require("./RSPContexts-D8hmBfGm.cjs"),D=require("./utils-DHNZrQmj.cjs"),F=require("./Form-BuOomA4T.cjs"),S=require("./clsx-C11secjj.cjs"),P=require("./mergeProps-B5KXZAI3.cjs"),N=require("./VisuallyHidden-Doyzl0F7.cjs"),m=require("./useFormValidation-BlFGdPZB.cjs"),V=require("./usePress-BooY_CAy.cjs"),M=require("./filterDOMProps-BS2lrgFA.cjs"),L=require("./useFocusable-D7I1ujkW.cjs"),O=require("./useToggleState-DoIkSQdj.cjs"),A=require("./useHover-BE_XKZKe.cjs"),H=require("./useFocusRing-B-A1OLhU.cjs");function T(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const d=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(i,a,d.get?d:{enumerable:!0,get:()=>e[a]})}}return i.default=e,Object.freeze(i)}const R=T(g);function z(e,i,a){let{isDisabled:d=!1,isReadOnly:t=!1,value:r,name:o,children:n,"aria-label":l,"aria-labelledby":c,validationState:$="valid",isInvalid:u}=e,x=v=>{v.stopPropagation(),i.setSelected(v.target.checked)},y=n!=null,f=l!=null||c!=null;!y&&!f&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:h,isPressed:b}=V.$f6c31cce2adf654f$export$45712eceda6fad21({isDisabled:d}),{pressProps:I,isPressed:k}=V.$f6c31cce2adf654f$export$45712eceda6fad21({onPress(){var v;i.toggle(),(v=a.current)===null||v===void 0||v.focus()},isDisabled:d||t}),{focusableProps:p}=L.$f645667febf57a63$export$4c014de7c8940b4c(e,a),w=P.$3ef42575df84b30b$export$9d1611c77c2fe928(h,p),E=M.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{labelable:!0});return m.$99facab73266f662$export$5add1d006293d136(a,i.isSelected,i.setSelected),{labelProps:P.$3ef42575df84b30b$export$9d1611c77c2fe928(I,{onClick:v=>v.preventDefault()}),inputProps:P.$3ef42575df84b30b$export$9d1611c77c2fe928(E,{"aria-invalid":u||$==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":t||void 0,onChange:x,disabled:d,...r==null?{}:{value:r},name:o,type:"checkbox",...w}),isSelected:i.isSelected,isPressed:b||k,isDisabled:d,isReadOnly:t,isInvalid:u||$==="invalid"}}function C(e,i,a){let d=m.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:i.isSelected}),{isInvalid:t,validationErrors:r,validationDetails:o}=d.displayValidation,{labelProps:n,inputProps:l,isSelected:c,isPressed:$,isDisabled:u,isReadOnly:x}=z({...e,isInvalid:t},i,a);m.$e93e671b31057976$export$b8473d3665f3a75a(e,d,a);let{isIndeterminate:y,isRequired:f,validationBehavior:h="aria"}=e;g.useEffect(()=>{a.current&&(a.current.indeterminate=!!y)});let{pressProps:b}=V.$f6c31cce2adf654f$export$45712eceda6fad21({isDisabled:u||x,onPress(){let{[m.$e5be200c675c3b3a$export$a763b9476acd3eb]:I}=e,{commitValidation:k}=I||d;k()}});return{labelProps:P.$3ef42575df84b30b$export$9d1611c77c2fe928(n,b),inputProps:{...l,checked:c,"aria-required":f&&h==="aria"||void 0,required:f&&h==="native"},isSelected:c,isPressed:$,isDisabled:u,isReadOnly:x,isInvalid:t,validationErrors:r,validationDetails:o}}const _=new WeakMap;function W(e,i,a){const d=O.$3017fa7ffdddec74$export$8042c6c013fd5226({isReadOnly:e.isReadOnly||i.isReadOnly,isSelected:i.isSelected(e.value),onChange(b){b?i.addValue(e.value):i.removeValue(e.value),e.onChange&&e.onChange(b)}});let{name:t,descriptionId:r,errorMessageId:o,validationBehavior:n}=_.get(i);var l;n=(l=e.validationBehavior)!==null&&l!==void 0?l:n;let{realtimeValidation:c}=m.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:d.isSelected,name:void 0,validationBehavior:"aria"}),$=g.useRef(m.$e5be200c675c3b3a$export$dad6ae84456c676a),u=()=>{i.setInvalid(e.value,c.isInvalid?c:$.current)};g.useEffect(u);let x=i.realtimeValidation.isInvalid?i.realtimeValidation:c,y=n==="native"?i.displayValidation:x;var f;let h=C({...e,isReadOnly:e.isReadOnly||i.isReadOnly,isDisabled:e.isDisabled||i.isDisabled,name:e.name||t,isRequired:(f=e.isRequired)!==null&&f!==void 0?f:i.isRequired,validationBehavior:n,[m.$e5be200c675c3b3a$export$a763b9476acd3eb]:{realtimeValidation:x,displayValidation:y,resetValidation:i.resetValidation,commitValidation:i.commitValidation,updateValidation(b){$.current=b,u()}}},d,a);return{...h,inputProps:{...h.inputProps,"aria-describedby":[e["aria-describedby"],i.isInvalid?o:null,r].filter(Boolean).join(" ")||void 0}}}const j=g.createContext(null),J="_checkboxInner_5vl7s_4",K="_checkbox_5vl7s_4",Q="_checkboxGroup_5vl7s_124",q={checkboxInner:J,checkbox:K,checkboxGroup:Q},B=R.forwardRef((e,i)=>{const{hoverProps:a,isHovered:d}=e.hoverResult,{pressProps:t,isPressed:r}=e.pressResult,{isFocused:o,isFocusVisible:n,focusProps:l}=e.focusRingAria;return s.jsxs("label",{ref:i,...P.$3ef42575df84b30b$export$9d1611c77c2fe928(a,t,e.labelProps),slot:e.slot||void 0,className:S.clsx(q.checkbox,e.className),"data-hovered":d||void 0,"data-selected":e.isSelected||void 0,"data-indeterminate":e.isIndeterminate||void 0,"data-pressed":r||void 0,"data-disabled":e.isDisabled||void 0,"data-readonly":e.isReadOnly||void 0,"data-invalid":e.isInvalid||void 0,"data-focused":o||void 0,"data-focus-visible":n||void 0,"data-required":e.isRequired||void 0,children:[s.jsx("div",{className:S.clsx(q.checkboxInner),children:s.jsx("svg",{width:16,height:16,viewBox:"0 0 18 18","aria-hidden":"true",children:e.isIndeterminate?s.jsx("rect",{x:4,y:8,width:10,height:2}):s.jsx("polyline",{points:"3,9 7,13 15,4"})})}),s.jsx(N.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:s.jsx("input",{...P.$3ef42575df84b30b$export$9d1611c77c2fe928(e.inputProps,l),ref:e.inputRef})}),e.children]})}),U=R.forwardRef((e,i)=>{const a=W({...e,value:e.value||""},e.state,e.inputRef);return s.jsx(B,{...e,...a,ref:i})}),X=R.forwardRef((e,i)=>{const a=C(e,O.$3017fa7ffdddec74$export$8042c6c013fd5226(e),e.inputRef);return s.jsx(B,{...e,...a,ref:i})}),Y=R.forwardRef((e,i)=>{[e,i]=D.$64fa3d84918910a7$export$29f1550f4b0d4415(e,i,G.$4e85f108e88277b8$export$b085522c77523c51);const a=D.$64fa3d84918910a7$export$fabf2dc03a41866e(F.$d3e0e05bdfcf66bd$export$c24727297075ec6a),d=e.validationBehavior??(a==null?void 0:a.validationBehavior)??"native",t=R.useContext(j),r=R.useRef(null),o=A.$6179b936705e76d3$export$ae780daf29e6d456(e),n=V.$f6c31cce2adf654f$export$45712eceda6fad21({ref:i,isDisabled:e.isDisabled}),l=H.$f7dceffc5ad7768b$export$4e328f61c538687f();return t?s.jsx(U,{...e,state:t,inputRef:r,hoverResult:o,pressResult:n,focusRingAria:l,validationBehavior:d}):s.jsx(X,{...e,inputRef:r,hoverResult:o,pressResult:n,focusRingAria:l,validationBehavior:d})});exports.$1ae600c947479353$export$ec98120685d4f57d=_;exports.Checkbox=Y;exports.CheckboxGroupContext=j;exports.styles=q;