@midas-ds/components 14.0.0 → 14.1.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 (290) hide show
  1. package/AccordionItem-CAi-XFOc.js +343 -0
  2. package/AccordionItem-tWS22wDv.cjs +1 -0
  3. package/{Breadcrumbs-DpUPChG9.cjs → Breadcrumbs-BBDGxc68.cjs} +1 -1
  4. package/{Breadcrumbs-CV3rVTjR.js → Breadcrumbs-BenPNv8Z.js} +4 -4
  5. package/Button-1sEX8jKn.cjs +1 -0
  6. package/{Button-xc8A29pm.cjs → Button-BEWKXjlP.cjs} +1 -1
  7. package/{Button-CRIYvCRM.js → Button-CF97piBl.js} +1 -1
  8. package/{Button-B6lxIKPk.js → Button-CGe3Nyos.js} +121 -115
  9. package/CHANGELOG.md +26 -0
  10. package/{Card-CfosvMF5.js → Card-DJ8E5Rzd.js} +3 -3
  11. package/{Card-D2E3gviQ.cjs → Card-Db9xdzJ0.cjs} +1 -1
  12. package/{CharacterCounter-C-PFKoGg.cjs → CharacterCounter-CTpQ12f7.cjs} +1 -1
  13. package/{CharacterCounter-DpFONstE.js → CharacterCounter-gbDGfize.js} +2 -2
  14. package/Checkbox-BgrLxY6P.cjs +1 -0
  15. package/{Checkbox-Cr3MmHPE.js → Checkbox-CdN1D5pD.js} +94 -90
  16. package/{CheckboxGroup-DEY3JDEL.js → CheckboxGroup-B1b-6bKq.js} +7 -7
  17. package/{CheckboxGroup-f9Oa1MhQ.cjs → CheckboxGroup-BfZyy5yU.cjs} +1 -1
  18. package/{Collection-j_iWeuZo.js → Collection-BkxwF21i.js} +205 -213
  19. package/Collection-vGO6v3_U.cjs +1 -0
  20. package/{ColorSchemeSwitch-Cur7zN5_.cjs → ColorSchemeSwitch-BOooU0iy.cjs} +1 -1
  21. package/{ColorSchemeSwitch-ChFSNntp.js → ColorSchemeSwitch-KjnsdbDr.js} +2 -2
  22. package/{ComboBox-D7eKe-M5.js → ComboBox-D1ZSZ6m-.js} +254 -246
  23. package/ComboBox-Dztk_jtC.cjs +1 -0
  24. package/{DateField-BszKZodr.cjs → DateField-BogEOseq.cjs} +1 -1
  25. package/{DateField-xyhyDy7u.js → DateField-lsr_1fw4.js} +4 -4
  26. package/{DateInputDivider-2Wf2hlXA.js → DateInputDivider-CRv3YuXd.js} +191 -188
  27. package/DateInputDivider-CYqm6PZP.cjs +1 -0
  28. package/{DateRangePicker-YwKi0ukr.js → DateRangePicker-5k1swaEt.js} +119 -115
  29. package/DateRangePicker-CgNXWOT6.cjs +6 -0
  30. package/Dialog-B1N4Ndyx.js +256 -0
  31. package/{Dialog-DOyFzvUa.js → Dialog-BUAp30Wc.js} +712 -694
  32. package/Dialog-BgSxz1JW.cjs +1 -0
  33. package/Dialog-PrnV8KTh.cjs +6 -0
  34. package/{DragAndDrop-DQ_6tl6K.cjs → DragAndDrop-Cs-V-9ak.cjs} +1 -1
  35. package/{DragAndDrop-DPRU3Y0Y.js → DragAndDrop-DF0VoPJw.js} +1 -1
  36. package/{Dropdown-5rmvcHD_.cjs → Dropdown-DBFLb8Tl.cjs} +1 -1
  37. package/{Dropdown-uC9wc8vd.js → Dropdown-DaARa89l.js} +2 -2
  38. package/{FieldError-C4WBoCRc.cjs → FieldError-Cimgm8qD.cjs} +1 -1
  39. package/{FieldError-C4kD4yJZ.js → FieldError-l3xULRa0.js} +3 -3
  40. package/{FileUpload-01wGpykv.js → FileUpload-CN0HNJ_Y.js} +9 -9
  41. package/{FileUpload-CTbh7Gic.cjs → FileUpload-DHmsupSe.cjs} +1 -1
  42. package/Group-B0Wj9pI8.cjs +1 -0
  43. package/Group-BAd7alBM.js +46 -0
  44. package/{Heading-CEx2LJyM.js → Heading-CCoGfKQ8.js} +9 -9
  45. package/{Heading-CUShN98j.cjs → Heading-x7y3xadc.cjs} +1 -1
  46. package/{InfoBanner-CRSz8DK2.js → InfoBanner-BW3vy9mc.js} +1 -1
  47. package/{InfoBanner-D_pNj1J2.cjs → InfoBanner-_M_rGQiu.cjs} +1 -1
  48. package/{Input-CCuE9Sc5.cjs → Input-Bda0PCu5.cjs} +1 -1
  49. package/{Input-CkTOajNJ.js → Input-CQzv-D9g.js} +3 -3
  50. package/{Label-CV9p0K2n.js → Label-BGMXsSFb.js} +4 -4
  51. package/{Label-CkIRTC0_.cjs → Label-CNTODOFg.cjs} +1 -1
  52. package/Layout-BrEuHajQ.cjs +16 -0
  53. package/{Layout-IeVrHpT0.js → Layout-JL9l-y7w.js} +62 -63
  54. package/{Link-BFvUN5Sq.js → Link-BudFjYrw.js} +1 -1
  55. package/{Link-D2K7bDd3.cjs → Link-BvUSTIip.cjs} +1 -1
  56. package/{Link-a3Ymcnoa.cjs → Link-DRU6Qzia.cjs} +1 -1
  57. package/{Link-B9CQXWzE.js → Link-l-nMP-Zd.js} +5 -5
  58. package/{LinkButton-BCn5gR10.cjs → LinkButton-DGdnbTgR.cjs} +1 -1
  59. package/{LinkButton-DN3J1Agu.js → LinkButton-DP9W-E32.js} +1 -1
  60. package/ListBox-TGCxrXIJ.cjs +1 -0
  61. package/{ListBox-2eEa1l0M.js → ListBox-mOCZvKD4.js} +187 -176
  62. package/{ListBoxLoadMoreItem-IcGb_XwN.js → ListBoxLoadMoreItem-CLdTe6-z.js} +3 -3
  63. package/{ListBoxLoadMoreItem-BBE3OF4J.cjs → ListBoxLoadMoreItem-UX0jFQN4.cjs} +1 -1
  64. package/ListBoxSection-BNBHosou.cjs +1 -0
  65. package/{ListBoxSection-dksiACMZ.js → ListBoxSection-D_kTkvgG.js} +139 -140
  66. package/{ListKeyboardDelegate-Dyu4eFtP.js → ListKeyboardDelegate-BHnZMUhW.js} +36 -40
  67. package/ListKeyboardDelegate-CLRlDto7.cjs +1 -0
  68. package/{OverlayArrow-Bh_G2tJ3.js → OverlayArrow-CjGslX2c.js} +2 -2
  69. package/{OverlayArrow-DJ4nNscD.cjs → OverlayArrow-bcrb_syE.cjs} +1 -1
  70. package/{Popover-D7_IfJ3o.js → Popover-CZFi2YGz.js} +2 -2
  71. package/{Popover-BI2Koco0.cjs → Popover-uYTWBGHa.cjs} +1 -1
  72. package/{PressResponder-DUhG97jJ.js → PressResponder-BMj6Zvbn.js} +3 -3
  73. package/{PressResponder-AXK2I_yx.cjs → PressResponder-ChvCuOue.cjs} +1 -1
  74. package/{ProgressBar-B-TOuoAC.cjs → ProgressBar-BGemuJIq.cjs} +1 -1
  75. package/{ProgressBar-B0WEQkyq.js → ProgressBar-DhRmckYM.js} +2 -2
  76. package/{RSPContexts-BW2SEIqe.js → RSPContexts-B0lEq7qq.js} +5 -3
  77. package/RSPContexts-XUvspq3j.cjs +1 -0
  78. package/Radio-Bp_31Z59.js +340 -0
  79. package/Radio-D3RGVrEd.cjs +1 -0
  80. package/{RangeCalendar-D5TMu8GI.js → RangeCalendar-9C96gMvy.js} +58 -58
  81. package/{RangeCalendar-B6zKSDju.cjs → RangeCalendar-ChfmP_ql.cjs} +2 -2
  82. package/{SearchField-wojUSY2S.js → SearchField-DrEdzWAy.js} +3 -3
  83. package/{SearchField-DnBBlPT7.cjs → SearchField-JaDXLq5W.cjs} +1 -1
  84. package/Select-BCUH-Z7q.cjs +1 -0
  85. package/Select-CpPE78Ke.js +676 -0
  86. package/SelectionIndicator-BiSN1toV.cjs +1 -0
  87. package/{FocusScope-8ILtcq9W.js → SelectionIndicator-ant6jeC1.js} +256 -165
  88. package/SelectionManager-C469yQeD.js +1063 -0
  89. package/SelectionManager-uFYC4wpu.cjs +1 -0
  90. package/{Separator--4b7vckr.js → Separator-B6l5qSpR.js} +2 -2
  91. package/{Separator-COlhRmJF.js → Separator-BWAnBMVN.js} +4 -4
  92. package/{Separator-DcbM84B8.cjs → Separator-DbhmtwDa.cjs} +1 -1
  93. package/{Separator-BQkxEZC9.cjs → Separator-J0pLW4BN.cjs} +1 -1
  94. package/Spinner-D6Fcu_Dp.js +54 -0
  95. package/Spinner-DIapnvIz.cjs +6 -0
  96. package/TabList-C0tRVI6Q.cjs +1 -0
  97. package/TabList-DmkxO7MM.js +394 -0
  98. package/Table-BLqjyYKk.cjs +16 -0
  99. package/{Table-cCSOrPkK.js → Table-CyWZO9uf.js} +707 -703
  100. package/Tag-DJqYiBLR.js +774 -0
  101. package/Tag-FDHGu_WP.cjs +1 -0
  102. package/{Text-CkhG15SU.cjs → Text-0wXj3J8E.cjs} +1 -1
  103. package/{Text-BQe1I4-r.js → Text-BBFWBNAH.js} +1 -1
  104. package/{Text-CkhZTTV5.cjs → Text-D5OSv6Uv.cjs} +1 -1
  105. package/{Text-BpERRete.js → Text-bqP9NeVg.js} +1 -1
  106. package/{TextArea-B5TsyJxa.cjs → TextArea-CZxwvBcS.cjs} +1 -1
  107. package/{TextArea-Cado2arG.js → TextArea-CrY7P18c.js} +8 -8
  108. package/{TextField-5AI6T1ol.js → TextField-BWea-IT-.js} +10 -10
  109. package/TextField-DsN-kBfh.cjs +1 -0
  110. package/{Toast-Cs-Uvf1p.cjs → Toast-DUZ5jfG1.cjs} +1 -1
  111. package/{Toast-CgXRE33Y.js → Toast-Di3h8A14.js} +12 -12
  112. package/{ToggleButtonGroup-SKGgfFs4.js → ToggleButtonGroup-Bh4hP6Lk.js} +82 -78
  113. package/ToggleButtonGroup-D7r34GCt.cjs +1 -0
  114. package/{Tooltip-txk48Qof.js → Tooltip-CUdmOznK.js} +4 -4
  115. package/{Tooltip-BrupFzaI.cjs → Tooltip-D-ATlbIM.cjs} +1 -1
  116. package/{VisuallyHidden-Awup6QxT.cjs → VisuallyHidden-BMelU6B0.cjs} +1 -1
  117. package/{VisuallyHidden-D2ZXHTJs.js → VisuallyHidden-DuW70K-5.js} +1 -1
  118. package/accordion/index.cjs +1 -1
  119. package/accordion/index.js +1 -1
  120. package/assets/AccordionItem.css +1 -1
  121. package/assets/RangeCalendar.css +1 -1
  122. package/assets/Spinner.css +1 -1
  123. package/assets/TabList.css +1 -1
  124. package/assets/default.css +1 -1
  125. package/breadcrumbs/index.cjs +1 -1
  126. package/breadcrumbs/index.js +1 -1
  127. package/button/index.cjs +1 -1
  128. package/button/index.js +1 -1
  129. package/calendar/index.cjs +1 -1
  130. package/calendar/index.js +1 -1
  131. package/card/index.cjs +1 -1
  132. package/card/index.js +1 -1
  133. package/character-counter/index.cjs +1 -1
  134. package/character-counter/index.js +1 -1
  135. package/checkbox/index.cjs +1 -1
  136. package/checkbox/index.js +2 -2
  137. package/color-scheme-switch/index.cjs +1 -1
  138. package/color-scheme-switch/index.js +1 -1
  139. package/combobox/index.cjs +1 -1
  140. package/combobox/index.js +1 -1
  141. package/date-field/index.cjs +1 -1
  142. package/date-field/index.js +2 -2
  143. package/date-picker/index.cjs +1 -1
  144. package/date-picker/index.js +1 -1
  145. package/dropdown/index.cjs +1 -1
  146. package/dropdown/index.js +1 -1
  147. package/field-error/index.cjs +1 -1
  148. package/field-error/index.js +1 -1
  149. package/file-upload/index.cjs +1 -1
  150. package/file-upload/index.js +1 -1
  151. package/{getScrollParent-Ru2U2LlM.js → getScrollParent-DFCzfqHG.js} +1 -1
  152. package/{getScrollParent-DuKmPmUa.cjs → getScrollParent-DjULaF_q.cjs} +1 -1
  153. package/heading/index.cjs +1 -1
  154. package/heading/index.js +1 -1
  155. package/index.cjs +1 -1
  156. package/index.js +42 -42
  157. package/info-banner/index.cjs +1 -1
  158. package/info-banner/index.js +1 -1
  159. package/label/index.cjs +1 -1
  160. package/label/index.js +1 -1
  161. package/layout/index.cjs +1 -1
  162. package/layout/index.js +1 -1
  163. package/link/index.cjs +1 -1
  164. package/link/index.js +2 -2
  165. package/link-button/index.cjs +1 -1
  166. package/link-button/index.js +2 -2
  167. package/list-box/index.cjs +1 -1
  168. package/list-box/index.js +2 -2
  169. package/menu/index.cjs +1 -1
  170. package/menu/index.js +2 -2
  171. package/modal/index.cjs +1 -1
  172. package/modal/index.js +2 -2
  173. package/package.json +4 -4
  174. package/popover/index.cjs +1 -1
  175. package/popover/index.js +1 -1
  176. package/progress-bar/index.cjs +1 -1
  177. package/progress-bar/index.js +1 -1
  178. package/radio/index.cjs +1 -1
  179. package/radio/index.js +1 -1
  180. package/scrollIntoView-BVI21Y4-.js +65 -0
  181. package/scrollIntoView-BueMOyGp.cjs +1 -0
  182. package/search-field/index.cjs +1 -1
  183. package/search-field/index.js +1 -1
  184. package/select/index.cjs +1 -1
  185. package/select/index.js +1 -1
  186. package/select/types.d.ts +1 -1
  187. package/select/useMultiSelect.d.ts +2 -2
  188. package/spinner/Spinner.d.ts +5 -1
  189. package/spinner/index.cjs +1 -1
  190. package/spinner/index.js +1 -1
  191. package/table/index.cjs +1 -1
  192. package/table/index.js +1 -1
  193. package/tabs/Tabs.d.ts +2 -9
  194. package/tabs/index.cjs +1 -1
  195. package/tabs/index.d.ts +0 -1
  196. package/tabs/index.js +1 -1
  197. package/tag/index.cjs +1 -1
  198. package/tag/index.js +1 -1
  199. package/text/index.cjs +1 -1
  200. package/text/index.js +1 -1
  201. package/textfield/TextArea.d.ts +3 -2
  202. package/textfield/TextField.d.ts +3 -2
  203. package/textfield/index.cjs +1 -1
  204. package/textfield/index.js +1 -1
  205. package/toast/index.cjs +1 -1
  206. package/toast/index.js +1 -1
  207. package/toggle-button/index.cjs +1 -1
  208. package/toggle-button/index.js +1 -1
  209. package/tooltip/index.cjs +1 -1
  210. package/tooltip/index.js +1 -1
  211. package/{useButton-Bh3duhYL.cjs → useButton-C0r5nrqs.cjs} +1 -1
  212. package/{useButton-A-VOfwuT.js → useButton-CRgN6aZf.js} +2 -2
  213. package/useDateFormatter-BrrFo4nY.cjs +1 -0
  214. package/{useDateFormatter-CxlJTAki.js → useDateFormatter-Bs5A6Xtu.js} +353 -322
  215. package/{useField-sSWPm-He.js → useField-BhJ9dM2g.js} +1 -1
  216. package/{useField-CY4OYE5a.cjs → useField-DvszkIMx.cjs} +1 -1
  217. package/{useFilter-DHcouDzv.js → useFilter-BdUU-HQZ.js} +1 -1
  218. package/{useFilter-DlZLqsJD.cjs → useFilter-R2IPvbS8.cjs} +1 -1
  219. package/{useFocusRing-Cig5Y0l-.cjs → useFocusRing-C-XVcAE5.cjs} +1 -1
  220. package/{useFocusRing-Copf_tx8.js → useFocusRing-CcxI7nbg.js} +2 -2
  221. package/{useFocusWithin-BKopz9sr.js → useFocusWithin-DhXBuB2O.js} +1 -1
  222. package/{useFocusWithin-TryC2Kkw.cjs → useFocusWithin-GBjoTL5o.cjs} +1 -1
  223. package/{useFocusable-CCh54GIw.js → useFocusable-BJj-Bkig.js} +3 -3
  224. package/{useFocusable-DhdAtEw8.cjs → useFocusable-M4se1KJt.cjs} +1 -1
  225. package/{useFormValidation-DdIIVZ5j.js → useFormValidation-By7G-T7y.js} +1 -1
  226. package/{useFormValidation-BJNizNDf.cjs → useFormValidation-DV2Ioblb.cjs} +1 -1
  227. package/useHasTabbableChild-CIZGg_iG.cjs +1 -0
  228. package/{useHasTabbableChild-BbgOpdGQ.js → useHasTabbableChild-CnpSoDuJ.js} +1 -1
  229. package/{useHighlightSelectionDescription-D6F-YO6b.cjs → useHighlightSelectionDescription-CBZfyrhy.cjs} +1 -1
  230. package/{useHighlightSelectionDescription-BL_02EKv.js → useHighlightSelectionDescription-DPiqOr_Z.js} +2 -2
  231. package/{useHover-eU40luVI.cjs → useHover-DULSfLuK.cjs} +1 -1
  232. package/{useHover-zCCNtF6g.js → useHover-DkC5FyNd.js} +4 -4
  233. package/{useListState-BdC308Sq.cjs → useListState-DBawAMhF.cjs} +1 -1
  234. package/{useListState-D2yPZrFZ.js → useListState-PZF3ahpk.js} +1 -1
  235. package/{usePress-4yZ5a87p.js → usePress-BqQIhkNY.js} +43 -43
  236. package/usePress-DmU79HEg.cjs +7 -0
  237. package/{useSingleSelectListState-lyai-bC_.js → useSingleSelectListState-BLRBEJC7.js} +1 -1
  238. package/{useSingleSelectListState-b_SPhYG4.cjs → useSingleSelectListState-CNETmoj5.cjs} +1 -1
  239. package/{useTextField-DjxrmW7d.js → useTextField-B8pM0p6X.js} +4 -4
  240. package/{useTextField-DUEQl6sr.cjs → useTextField-CiWV3eeD.cjs} +1 -1
  241. package/utils/types.d.ts +5 -0
  242. package/utils-CtICjCYt.cjs +1 -0
  243. package/{utils-BMBoiyL7.js → utils-D2iKpxcZ.js} +43 -39
  244. package/utils-DRIRjPUS.cjs +1 -0
  245. package/{utils-CrT5PVBA.js → utils-Dxh86KaB.js} +19 -17
  246. package/AccordionItem-BJw5IKe0.js +0 -334
  247. package/AccordionItem-DhMimhYo.cjs +0 -1
  248. package/Button-BTX5G3le.cjs +0 -1
  249. package/Checkbox-D-CFY6QF.cjs +0 -1
  250. package/Collection-DaZzboRu.cjs +0 -1
  251. package/ComboBox-C4NybZ32.cjs +0 -1
  252. package/DateInputDivider-BgXKFwB0.cjs +0 -1
  253. package/DateRangePicker-DTPkr3hX.cjs +0 -6
  254. package/Dialog-DLnopN3Z.js +0 -237
  255. package/Dialog-DNu42oLH.cjs +0 -1
  256. package/Dialog-w6EBWT__.cjs +0 -1
  257. package/FocusScope-Dv0F-mG2.cjs +0 -1
  258. package/Group-C2hEIsGV.js +0 -45
  259. package/Group-cuyk9Hsy.cjs +0 -1
  260. package/Layout-CVnlO10z.cjs +0 -16
  261. package/ListBox-Bx9M5vqb.cjs +0 -1
  262. package/ListBoxSection-kujY2gUl.cjs +0 -1
  263. package/ListKeyboardDelegate-DJDPir-w.cjs +0 -1
  264. package/RSPContexts-D8hmBfGm.cjs +0 -1
  265. package/Radio-D6KNkSA2.js +0 -333
  266. package/Radio-DsVsutMH.cjs +0 -1
  267. package/Select-D9h_RQ2k.cjs +0 -1
  268. package/Select-Dc6y8gPR.js +0 -654
  269. package/SelectionManager-D-4ThfPZ.js +0 -1043
  270. package/SelectionManager-FYrDfe5v.cjs +0 -1
  271. package/Spinner-CTha503N.js +0 -47
  272. package/Spinner-DKQ9_SQB.cjs +0 -6
  273. package/TabList-BhC96APe.cjs +0 -1
  274. package/TabList-P5HnizZt.js +0 -393
  275. package/Table-BB8Ag5_3.cjs +0 -16
  276. package/Tag-D2vh0KRD.js +0 -765
  277. package/Tag-D32MGLjS.cjs +0 -1
  278. package/TextField-4xfAzdBI.cjs +0 -1
  279. package/ToggleButtonGroup-CiX2eXB8.cjs +0 -1
  280. package/scrollIntoView-ClEACHUk.js +0 -57
  281. package/scrollIntoView-DRSoJp89.cjs +0 -1
  282. package/useDateFormatter-D0bVjgIb.cjs +0 -1
  283. package/useHasTabbableChild-wH3RCjTd.cjs +0 -1
  284. package/useObserveElement-BdI4zgd7.js +0 -27
  285. package/useObserveElement-BzEr5D32.cjs +0 -1
  286. package/usePress-Dj3t18Pf.cjs +0 -7
  287. package/utils-I-LGXGYH.cjs +0 -1
  288. package/utils-cBvgilDa.cjs +0 -1
  289. package/variables-B3KEYyhW.cjs +0 -1
  290. package/variables-DzXcMW2k.js +0 -5
@@ -1,25 +1,25 @@
1
- import { $ as L, d as _, a as R } from "./utils-BMBoiyL7.js";
2
- import { $ as A } from "./Hidden-B5ir3Lei.js";
3
- import m, { useMemo as S, createContext as w, forwardRef as B, useRef as H, useEffect as K } from "react";
4
- import { $ as I } from "./number-BE8InLgI.js";
1
+ import { $ as L, d as _, a as C } from "./utils-D2iKpxcZ.js";
2
+ import { $ as I } from "./Hidden-B5ir3Lei.js";
3
+ import p, { useMemo as B, createContext as w, forwardRef as S, useRef as H, useEffect as Z } from "react";
4
+ import { $ as A } from "./number-BE8InLgI.js";
5
5
  import { c as v, a as D } from "./mergeProps-Ct8m5-xW.js";
6
6
  import { $ as T } from "./filterDOMProps-wsa9OcNI.js";
7
- import { $ as U } from "./useLabels-D24on06F.js";
8
- import { $ as Z } from "./context-Dl_saGB6.js";
9
- import { $ as k } from "./useButton-A-VOfwuT.js";
10
- import { $ as z } from "./useFocusRing-Copf_tx8.js";
11
- import { $ as G } from "./useHover-zCCNtF6g.js";
7
+ import { $ as k } from "./useLabels-D24on06F.js";
8
+ import { $ as W } from "./context-Dl_saGB6.js";
9
+ import { $ as z } from "./useButton-CRgN6aZf.js";
10
+ import { $ as G } from "./useFocusRing-CcxI7nbg.js";
11
+ import { $ as J } from "./useHover-DkC5FyNd.js";
12
12
  const V = 7e3;
13
- let s = null;
14
- function O(a, e = "assertive", t = V) {
15
- s ? s.announce(a, e, t) : (s = new J(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? s.announce(a, e, t) : setTimeout(() => {
16
- s != null && s.isAttached() && (s == null || s.announce(a, e, t));
13
+ let o = null;
14
+ function R(r, e = "assertive", t = V) {
15
+ o ? o.announce(r, e, t) : (o = new K(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? o.announce(r, e, t) : setTimeout(() => {
16
+ o != null && o.isAttached() && (o == null || o.announce(r, e, t));
17
17
  }, 100));
18
18
  }
19
- function $e(a) {
20
- s && s.clear(a);
19
+ function $e(r) {
20
+ o && o.clear(r);
21
21
  }
22
- class J {
22
+ class K {
23
23
  isAttached() {
24
24
  var e;
25
25
  return (e = this.node) === null || e === void 0 ? void 0 : e.isConnected;
@@ -31,13 +31,13 @@ class J {
31
31
  destroy() {
32
32
  this.node && (document.body.removeChild(this.node), this.node = null);
33
33
  }
34
- announce(e, t = "assertive", r = V) {
35
- var i, l;
34
+ announce(e, t = "assertive", l = V) {
35
+ var a, i;
36
36
  if (!this.node) return;
37
37
  let n = document.createElement("div");
38
- typeof e == "object" ? (n.setAttribute("role", "img"), n.setAttribute("aria-labelledby", e["aria-labelledby"])) : n.textContent = e, t === "assertive" ? (i = this.assertiveLog) === null || i === void 0 || i.appendChild(n) : (l = this.politeLog) === null || l === void 0 || l.appendChild(n), e !== "" && setTimeout(() => {
38
+ typeof e == "object" ? (n.setAttribute("role", "img"), n.setAttribute("aria-labelledby", e["aria-labelledby"])) : n.textContent = e, t === "assertive" ? (a = this.assertiveLog) === null || a === void 0 || a.appendChild(n) : (i = this.politeLog) === null || i === void 0 || i.appendChild(n), e !== "" && setTimeout(() => {
39
39
  n.remove();
40
- }, r);
40
+ }, l);
41
41
  }
42
42
  clear(e) {
43
43
  this.node && ((!e || e === "assertive") && this.assertiveLog && (this.assertiveLog.innerHTML = ""), (!e || e === "polite") && this.politeLog && (this.politeLog.innerHTML = ""));
@@ -82,16 +82,16 @@ const N = {
82
82
  }
83
83
  }
84
84
  };
85
- class W {
85
+ class U {
86
86
  /** Formats a number value as a string, according to the locale and options provided to the constructor. */
87
87
  format(e) {
88
88
  let t = "";
89
89
  if (!E && this.options.signDisplay != null ? t = q(this.numberFormatter, this.options.signDisplay, e) : t = this.numberFormatter.format(e), this.options.style === "unit" && !y) {
90
- var r;
91
- let { unit: i, unitDisplay: l = "short", locale: n } = this.resolvedOptions();
92
- if (!i) return t;
93
- let o = (r = N[i]) === null || r === void 0 ? void 0 : r[l];
94
- t += o[n] || o.default;
90
+ var l;
91
+ let { unit: a, unitDisplay: i = "short", locale: n } = this.resolvedOptions();
92
+ if (!a) return t;
93
+ let s = (l = N[a]) === null || l === void 0 ? void 0 : l[i];
94
+ t += s[n] || s.default;
95
95
  }
96
96
  return t;
97
97
  }
@@ -109,10 +109,10 @@ class W {
109
109
  formatRangeToParts(e, t) {
110
110
  if (typeof this.numberFormatter.formatRangeToParts == "function") return this.numberFormatter.formatRangeToParts(e, t);
111
111
  if (t < e) throw new RangeError("End date must be >= start date");
112
- let r = this.numberFormatter.formatToParts(e), i = this.numberFormatter.formatToParts(t);
112
+ let l = this.numberFormatter.formatToParts(e), a = this.numberFormatter.formatToParts(t);
113
113
  return [
114
- ...r.map((l) => ({
115
- ...l,
114
+ ...l.map((i) => ({
115
+ ...i,
116
116
  source: "startRange"
117
117
  })),
118
118
  {
@@ -120,8 +120,8 @@ class W {
120
120
  value: " – ",
121
121
  source: "shared"
122
122
  },
123
- ...i.map((l) => ({
124
- ...l,
123
+ ...a.map((i) => ({
124
+ ...i,
125
125
  source: "endRange"
126
126
  }))
127
127
  ];
@@ -143,106 +143,106 @@ class W {
143
143
  this.numberFormatter = Y(e, t), this.options = t;
144
144
  }
145
145
  }
146
- function Y(a, e = {}) {
146
+ function Y(r, e = {}) {
147
147
  let { numberingSystem: t } = e;
148
- if (t && a.includes("-nu-") && (a.includes("-u-") || (a += "-u-"), a += `-nu-${t}`), e.style === "unit" && !y) {
149
- var r;
150
- let { unit: n, unitDisplay: o = "short" } = e;
148
+ if (t && r.includes("-nu-") && (r.includes("-u-") || (r += "-u-"), r += `-nu-${t}`), e.style === "unit" && !y) {
149
+ var l;
150
+ let { unit: n, unitDisplay: s = "short" } = e;
151
151
  if (!n) throw new Error('unit option must be provided with style: "unit"');
152
- if (!(!((r = N[n]) === null || r === void 0) && r[o])) throw new Error(`Unsupported unit ${n} with unitDisplay = ${o}`);
152
+ if (!(!((l = N[n]) === null || l === void 0) && l[s])) throw new Error(`Unsupported unit ${n} with unitDisplay = ${s}`);
153
153
  e = {
154
154
  ...e,
155
155
  style: "decimal"
156
156
  };
157
157
  }
158
- let i = a + (e ? Object.entries(e).sort((n, o) => n[0] < o[0] ? -1 : 1).join() : "");
159
- if (x.has(i)) return x.get(i);
160
- let l = new Intl.NumberFormat(a, e);
161
- return x.set(i, l), l;
158
+ let a = r + (e ? Object.entries(e).sort((n, s) => n[0] < s[0] ? -1 : 1).join() : "");
159
+ if (x.has(a)) return x.get(a);
160
+ let i = new Intl.NumberFormat(r, e);
161
+ return x.set(a, i), i;
162
162
  }
163
- function q(a, e, t) {
164
- if (e === "auto") return a.format(t);
165
- if (e === "never") return a.format(Math.abs(t));
163
+ function q(r, e, t) {
164
+ if (e === "auto") return r.format(t);
165
+ if (e === "never") return r.format(Math.abs(t));
166
166
  {
167
- let r = !1;
168
- 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) {
169
- let i = a.format(-t), l = a.format(t), n = i.replace(l, "").replace(/\u200e|\u061C/, "");
167
+ let l = !1;
168
+ if (e === "always" ? l = t > 0 || Object.is(t, 0) : e === "exceptZero" && (Object.is(t, -0) || Object.is(t, 0) ? t = Math.abs(t) : l = t > 0), l) {
169
+ let a = r.format(-t), i = r.format(t), n = a.replace(i, "").replace(/\u200e|\u061C/, "");
170
170
  return [
171
171
  ...n
172
- ].length !== 1 && console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"), i.replace(l, "!!!").replace(n, "+").replace("!!!", l);
173
- } else return a.format(t);
172
+ ].length !== 1 && console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"), a.replace(i, "!!!").replace(n, "+").replace("!!!", i);
173
+ } else return r.format(t);
174
174
  }
175
175
  }
176
- function Q(a = {}) {
177
- let { locale: e } = Z();
178
- return S(() => new W(e, a), [
176
+ function Q(r = {}) {
177
+ let { locale: e } = W();
178
+ return B(() => new U(e, r), [
179
179
  e,
180
- a
180
+ r
181
181
  ]);
182
182
  }
183
- function X(a) {
184
- let { id: e, label: t, "aria-labelledby": r, "aria-label": i, labelElementType: l = "label" } = a;
183
+ function X(r) {
184
+ let { id: e, label: t, "aria-labelledby": l, "aria-label": a, labelElementType: i = "label" } = r;
185
185
  e = v(e);
186
- let n = v(), o = {};
187
- t ? (r = r ? `${n} ${r}` : n, o = {
186
+ let n = v(), s = {};
187
+ t ? (l = l ? `${n} ${l}` : n, s = {
188
188
  id: n,
189
- htmlFor: l === "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 = U({
189
+ htmlFor: i === "label" ? e : void 0
190
+ }) : !l && !a && 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
192
  id: e,
193
- "aria-label": i,
194
- "aria-labelledby": r
193
+ "aria-label": a,
194
+ "aria-labelledby": l
195
195
  });
196
196
  return {
197
- labelProps: o,
197
+ labelProps: s,
198
198
  fieldProps: d
199
199
  };
200
200
  }
201
- function ee(a) {
202
- let { value: e = 0, minValue: t = 0, maxValue: r = 100, valueLabel: i, isIndeterminate: l, formatOptions: n = {
201
+ function ee(r) {
202
+ let { value: e = 0, minValue: t = 0, maxValue: l = 100, valueLabel: a, isIndeterminate: i, formatOptions: n = {
203
203
  style: "percent"
204
- } } = a, o = T(a, {
204
+ } } = r, s = T(r, {
205
205
  labelable: !0
206
206
  }), { labelProps: d, fieldProps: f } = X({
207
- ...a,
207
+ ...r,
208
208
  // Progress bar is not an HTML input element so it
209
209
  // shouldn't be labeled by a <label> element.
210
210
  labelElementType: "span"
211
211
  });
212
- e = I(e, t, r);
213
- let $ = (e - t) / (r - t), b = Q(n);
214
- if (!l && !i) {
212
+ e = A(e, t, l);
213
+ let $ = (e - t) / (l - t), b = Q(n);
214
+ if (!i && !a) {
215
215
  let u = n.style === "percent" ? $ : e;
216
- i = b.format(u);
216
+ a = b.format(u);
217
217
  }
218
218
  return {
219
- progressBarProps: D(o, {
219
+ progressBarProps: D(s, {
220
220
  ...f,
221
- "aria-valuenow": l ? void 0 : e,
221
+ "aria-valuenow": i ? void 0 : e,
222
222
  "aria-valuemin": t,
223
- "aria-valuemax": r,
224
- "aria-valuetext": l ? void 0 : i,
223
+ "aria-valuemax": l,
224
+ "aria-valuetext": i ? void 0 : a,
225
225
  role: "progressbar"
226
226
  }),
227
227
  labelProps: d
228
228
  };
229
229
  }
230
- const M = /* @__PURE__ */ w({}), me = /* @__PURE__ */ A(function(e, t) {
230
+ const M = /* @__PURE__ */ w({}), pe = /* @__PURE__ */ I(function(e, t) {
231
231
  [e, t] = L(e, t, M);
232
- let { elementType: r = "label", ...i } = e;
233
- return /* @__PURE__ */ m.createElement(r, {
232
+ let { elementType: l = "label", ...a } = e;
233
+ return /* @__PURE__ */ p.createElement(l, {
234
234
  className: "react-aria-Label",
235
- ...i,
235
+ ...a,
236
236
  ref: t
237
237
  });
238
- }), j = /* @__PURE__ */ w(null), pe = /* @__PURE__ */ B(function(e, t) {
238
+ }), j = /* @__PURE__ */ w(null), me = /* @__PURE__ */ S(function(e, t) {
239
239
  [e, t] = L(e, t, j);
240
- let { value: r = 0, minValue: i = 0, maxValue: l = 100, isIndeterminate: n = !1 } = e;
241
- r = I(r, i, l);
242
- let [o, d] = _(!e["aria-label"] && !e["aria-labelledby"]), { progressBarProps: f, labelProps: $ } = ee({
240
+ let { value: l = 0, minValue: a = 0, maxValue: i = 100, isIndeterminate: n = !1 } = e;
241
+ l = A(l, a, i);
242
+ let [s, d] = _(!e["aria-label"] && !e["aria-labelledby"]), { progressBarProps: f, labelProps: $ } = ee({
243
243
  ...e,
244
244
  label: d
245
- }), b = n ? void 0 : (r - i) / (l - i) * 100, u = R({
245
+ }), b = n ? void 0 : (l - a) / (i - a) * 100, u = C({
246
246
  ...e,
247
247
  defaultClassName: "react-aria-ProgressBar",
248
248
  values: {
@@ -250,46 +250,48 @@ const M = /* @__PURE__ */ w({}), me = /* @__PURE__ */ A(function(e, t) {
250
250
  valueText: f["aria-valuetext"],
251
251
  isIndeterminate: n
252
252
  }
253
- }), p = T(e, {
253
+ }), m = T(e, {
254
254
  global: !0
255
255
  });
256
- return /* @__PURE__ */ m.createElement("div", {
257
- ...D(p, u, f),
256
+ return /* @__PURE__ */ p.createElement("div", {
257
+ ...D(m, u, f),
258
258
  ref: t,
259
259
  slot: e.slot || void 0
260
- }, /* @__PURE__ */ m.createElement(M.Provider, {
260
+ }, /* @__PURE__ */ p.createElement(M.Provider, {
261
261
  value: {
262
262
  ...$,
263
- ref: o,
263
+ ref: s,
264
264
  elementType: "span"
265
265
  }
266
266
  }, u.children));
267
- }), te = /* @__PURE__ */ w({}), he = /* @__PURE__ */ A(function(e, t) {
268
- [e, t] = L(e, t, te), e = ae(e);
269
- let r = e, { isPending: i } = r, { buttonProps: l, isPressed: n } = k(e, t), { focusProps: o, isFocused: d, isFocusVisible: f } = z(e), { hoverProps: $, isHovered: b } = G({
267
+ }), te = /* @__PURE__ */ w({}), he = /* @__PURE__ */ I(function(e, t) {
268
+ [e, t] = L(e, t, te);
269
+ let l = e, { isPending: a } = l, { buttonProps: i, isPressed: n } = z(e, t);
270
+ i = ae(i, a);
271
+ let { focusProps: s, isFocused: d, isFocusVisible: f } = G(e), { hoverProps: $, isHovered: b } = J({
270
272
  ...e,
271
- isDisabled: e.isDisabled || i
273
+ isDisabled: e.isDisabled || a
272
274
  }), u = {
273
275
  isHovered: b,
274
- isPressed: (r.isPressed || n) && !i,
276
+ isPressed: (l.isPressed || n) && !a,
275
277
  isFocused: d,
276
278
  isFocusVisible: f,
277
279
  isDisabled: e.isDisabled || !1,
278
- isPending: i ?? !1
279
- }, p = R({
280
+ isPending: a ?? !1
281
+ }, m = C({
280
282
  ...e,
281
283
  values: u,
282
284
  defaultClassName: "react-aria-Button"
283
- }), h = v(l.id), g = v(), c = l["aria-labelledby"];
284
- i && (c ? c = `${c} ${g}` : l["aria-label"] && (c = `${h} ${g}`));
285
- let P = H(i);
286
- K(() => {
287
- let C = {
285
+ }), h = v(i.id), g = v(), c = i["aria-labelledby"];
286
+ a && (c ? c = `${c} ${g}` : i["aria-label"] && (c = `${h} ${g}`));
287
+ let P = H(a);
288
+ Z(() => {
289
+ let O = {
288
290
  "aria-labelledby": c || h
289
291
  };
290
- (!P.current && d && i || P.current && d && !i) && O(C, "assertive"), P.current = i;
292
+ (!P.current && d && a || P.current && d && !a) && R(O, "assertive"), P.current = a;
291
293
  }, [
292
- i,
294
+ a,
293
295
  d,
294
296
  c,
295
297
  h
@@ -297,39 +299,43 @@ const M = /* @__PURE__ */ w({}), me = /* @__PURE__ */ A(function(e, t) {
297
299
  let F = T(e, {
298
300
  global: !0
299
301
  });
300
- return delete F.onClick, /* @__PURE__ */ m.createElement("button", {
301
- ...D(F, p, l, o, $),
302
+ return delete F.onClick, /* @__PURE__ */ p.createElement("button", {
303
+ ...D(F, m, i, s, $),
302
304
  // When the button is in a pending state, we want to stop implicit form submission (ie. when the user presses enter on a text input).
303
305
  // We do this by changing the button's type to button.
304
- type: l.type === "submit" && i ? "button" : l.type,
306
+ type: i.type === "submit" && a ? "button" : i.type,
305
307
  id: h,
306
308
  ref: t,
307
309
  "aria-labelledby": c,
308
310
  slot: e.slot || void 0,
309
- "aria-disabled": i ? "true" : l["aria-disabled"],
311
+ "aria-disabled": a ? "true" : i["aria-disabled"],
310
312
  "data-disabled": e.isDisabled || void 0,
311
313
  "data-pressed": u.isPressed || void 0,
312
314
  "data-hovered": b || void 0,
313
315
  "data-focused": d || void 0,
314
- "data-pending": i || void 0,
316
+ "data-pending": a || void 0,
315
317
  "data-focus-visible": f || void 0
316
- }, /* @__PURE__ */ m.createElement(j.Provider, {
318
+ }, /* @__PURE__ */ p.createElement(j.Provider, {
317
319
  value: {
318
320
  id: g
319
321
  }
320
- }, p.children));
322
+ }, m.children));
321
323
  });
322
- function ae(a) {
323
- 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;
324
+ function ae(r, e) {
325
+ if (e) {
326
+ for (const t in r) t.startsWith("on") && !(t.includes("Focus") || t.includes("Blur")) && (r[t] = void 0);
327
+ r.href = void 0, r.target = void 0;
328
+ }
329
+ return r;
324
330
  }
325
331
  export {
326
332
  he as $,
327
333
  X as a,
328
334
  M as b,
329
- pe as c,
330
- me as d,
335
+ me as c,
336
+ pe as d,
331
337
  te as e,
332
- O as f,
333
- W as g,
338
+ R as f,
339
+ U as g,
334
340
  $e as h
335
341
  };
package/CHANGELOG.md CHANGED
@@ -1,3 +1,29 @@
1
+ ## 14.1.0 (2025-10-27)
2
+
3
+ ### 🚀 Features
4
+
5
+ - **spinner:** color defaults to icon-tertiary, deprecate `isOnColor` ([68108dfea0](https://github.com/migrationsverket/midas/commit/68108dfea0))
6
+ - **accordion:** add panel animation support for non-chrome browsers ([1a00da2ddc](https://github.com/migrationsverket/midas/commit/1a00da2ddc))
7
+
8
+ ### 🩹 Fixes
9
+
10
+ - **textfield:** omit duplicate prop definitions ([d19e6e3ad0](https://github.com/migrationsverket/midas/commit/d19e6e3ad0))
11
+ - **calendar:** set correct styles for days outside month ([61b9958ad6](https://github.com/migrationsverket/midas/commit/61b9958ad6))
12
+ - **tabs:** fix displaying horizontal/vertical tabs ([55507b2ed2](https://github.com/migrationsverket/midas/commit/55507b2ed2))
13
+
14
+ ### 📖 Documentation changes
15
+
16
+ - **spinner:** update spinner docs with new props ([6ffbcabf1e](https://github.com/migrationsverket/midas/commit/6ffbcabf1e))
17
+
18
+ ### 🔧 Maintenance
19
+
20
+ - **select:** utilize RAC multi select types ([06f9720a99](https://github.com/migrationsverket/midas/commit/06f9720a99))
21
+ - **deps:** update react-aria-components and react-stately ([a0d8b0bd63](https://github.com/migrationsverket/midas/commit/a0d8b0bd63))
22
+
23
+ ### 🧱 Updated Dependencies
24
+
25
+ - Updated theme to 3.1.1
26
+
1
27
  # 14.0.0 (2025-10-10)
2
28
 
3
29
  ### 🚀 Features
@@ -1,9 +1,9 @@
1
1
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
2
2
  import { c as n } from "./clsx-jbLnTBqA.js";
3
3
  import * as e from "react";
4
- import { H as m } from "./Heading-CEx2LJyM.js";
5
- import { $ as _ } from "./Button-B6lxIKPk.js";
6
- import { $ as C } from "./Link-B9CQXWzE.js";
4
+ import { H as m } from "./Heading-CCoGfKQ8.js";
5
+ import { $ as _ } from "./Button-CGe3Nyos.js";
6
+ import { $ as C } from "./Link-l-nMP-Zd.js";
7
7
  import { A as x } from "./arrow-right-uemUGIg8.js";
8
8
  import './assets/Card.css';const A = "_card_1x9yi_1", h = "_horizontal_1x9yi_11", I = "_cardLink_1x9yi_16", p = "_cardContent_1x9yi_21", u = "_cardActions_1x9yi_40", f = "_cardActionArea_1x9yi_50", z = "_cardImage_1x9yi_83", $ = "_cardLinkIcon_1x9yi_115", r = {
9
9
  card: A,
@@ -1 +1 @@
1
- "use strict";require('./assets/Card.css');const a=require("react/jsx-runtime"),o=require("./clsx-DKOfLqne.cjs"),l=require("react"),x=require("./Heading-CUShN98j.cjs"),u=require("./Button-BTX5G3le.cjs"),C=require("./Link-a3Ymcnoa.cjs"),_=require("./arrow-right-BGd86zzR.cjs");function m(e){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(c,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return c.default=e,Object.freeze(c)}const s=m(l),A="_card_1x9yi_1",g="_horizontal_1x9yi_11",h="_cardLink_1x9yi_16",I="_cardContent_1x9yi_21",b="_cardActions_1x9yi_40",j="_cardActionArea_1x9yi_50",y="_cardImage_1x9yi_83",f="_cardLinkIcon_1x9yi_115",r={card:A,horizontal:g,cardLink:h,cardContent:I,cardActions:b,cardActionArea:j,cardImage:y,cardLinkIcon:f},i=s.createContext({horizontal:void 0,titleId:void 0}),k=({horizontal:e,className:c,children:t,...n})=>{const d=`card-title-${s.useId()}`;return a.jsx(i.Provider,{value:{horizontal:e,titleId:d},children:a.jsx("div",{...n,className:o.clsx(r.card,e&&r.horizontal,c),children:t})})},z=({children:e,...c})=>{const{horizontal:t}=s.useContext(i);return a.jsx("div",{...c,className:o.clsx(r.cardContent,t&&r.horizontal),children:e})},L=({elementType:e="h2",children:c})=>{const{horizontal:t,titleId:n}=s.useContext(i);return a.jsx(x.Heading,{level:t?5:3,elementType:e,isExpressive:t,className:o.clsx(r.cardTitle,t&&r.horizontal),id:n,children:c})},$=({children:e,...c})=>{const{horizontal:t}=s.useContext(i);return a.jsx("div",{...c,className:o.clsx(r.cardActions,t&&r.horizontal),children:e})},p=({children:e,className:c,...t})=>{const{titleId:n}=s.useContext(i);return a.jsx(u.$d2b4bc8c273e7be6$export$353f5b6fc5456de1,{...t,"aria-labelledby":n,className:o.clsx(r.cardActionArea,c),children:e})},v=({as:e="img",className:c,...t})=>a.jsx(e,{...t,className:o.clsx(r.cardImage,c)}),N=({children:e,as:c,...t})=>{const n=c||C.$4f118338184dc1d9$export$a6c7ac8248d6e38a;return a.jsxs(n,{...t,className:o.clsx(r.cardLink,t.className),children:[e,a.jsx(_.ArrowRight,{className:r.cardLinkIcon,size:24})]})};exports.Card=k;exports.CardActionArea=p;exports.CardActions=$;exports.CardContent=z;exports.CardImage=v;exports.CardLink=N;exports.CardTitle=L;
1
+ "use strict";require('./assets/Card.css');const a=require("react/jsx-runtime"),o=require("./clsx-DKOfLqne.cjs"),l=require("react"),x=require("./Heading-x7y3xadc.cjs"),u=require("./Button-1sEX8jKn.cjs"),C=require("./Link-DRU6Qzia.cjs"),_=require("./arrow-right-BGd86zzR.cjs");function m(e){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(c,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return c.default=e,Object.freeze(c)}const s=m(l),A="_card_1x9yi_1",g="_horizontal_1x9yi_11",h="_cardLink_1x9yi_16",I="_cardContent_1x9yi_21",b="_cardActions_1x9yi_40",j="_cardActionArea_1x9yi_50",y="_cardImage_1x9yi_83",f="_cardLinkIcon_1x9yi_115",r={card:A,horizontal:g,cardLink:h,cardContent:I,cardActions:b,cardActionArea:j,cardImage:y,cardLinkIcon:f},i=s.createContext({horizontal:void 0,titleId:void 0}),k=({horizontal:e,className:c,children:t,...n})=>{const d=`card-title-${s.useId()}`;return a.jsx(i.Provider,{value:{horizontal:e,titleId:d},children:a.jsx("div",{...n,className:o.clsx(r.card,e&&r.horizontal,c),children:t})})},z=({children:e,...c})=>{const{horizontal:t}=s.useContext(i);return a.jsx("div",{...c,className:o.clsx(r.cardContent,t&&r.horizontal),children:e})},L=({elementType:e="h2",children:c})=>{const{horizontal:t,titleId:n}=s.useContext(i);return a.jsx(x.Heading,{level:t?5:3,elementType:e,isExpressive:t,className:o.clsx(r.cardTitle,t&&r.horizontal),id:n,children:c})},$=({children:e,...c})=>{const{horizontal:t}=s.useContext(i);return a.jsx("div",{...c,className:o.clsx(r.cardActions,t&&r.horizontal),children:e})},p=({children:e,className:c,...t})=>{const{titleId:n}=s.useContext(i);return a.jsx(u.$d2b4bc8c273e7be6$export$353f5b6fc5456de1,{...t,"aria-labelledby":n,className:o.clsx(r.cardActionArea,c),children:e})},v=({as:e="img",className:c,...t})=>a.jsx(e,{...t,className:o.clsx(r.cardImage,c)}),N=({children:e,as:c,...t})=>{const n=c||C.$4f118338184dc1d9$export$a6c7ac8248d6e38a;return a.jsxs(n,{...t,className:o.clsx(r.cardLink,t.className),children:[e,a.jsx(_.ArrowRight,{className:r.cardLinkIcon,size:24})]})};exports.Card=k;exports.CardActionArea=p;exports.CardActions=$;exports.CardContent=z;exports.CardImage=v;exports.CardLink=N;exports.CardTitle=L;
@@ -1 +1 @@
1
- "use strict";require('./assets/CharacterCounter.css');const s=require("react/jsx-runtime"),u=require("react"),i=require("./utils-cBvgilDa.cjs"),d=require("./Input-CCuE9Sc5.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_4nrnf_1",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-CtICjCYt.cjs"),d=require("./Input-Bda0PCu5.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_4nrnf_1",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,7 +1,7 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
2
  import * as d from "react";
3
- import { $ as f } from "./utils-BMBoiyL7.js";
4
- import { $ as i } from "./Input-CkTOajNJ.js";
3
+ import { $ as f } from "./utils-D2iKpxcZ.js";
4
+ import { $ as i } from "./Input-CQzv-D9g.js";
5
5
  import './assets/CharacterCounter.css';const $ = "_characterCounter_4nrnf_1", m = {
6
6
  characterCounter: $
7
7
  }, l = d.forwardRef((t, n) => {
@@ -0,0 +1 @@
1
+ "use strict";require('./assets/Checkbox.css');const o=require("react/jsx-runtime"),k=require("react"),T=require("./RSPContexts-XUvspq3j.cjs"),q=require("./utils-CtICjCYt.cjs"),z=require("./Form-BuOomA4T.cjs"),D=require("./clsx-C11secjj.cjs"),R=require("./mergeProps-Du5A8xi8.cjs"),W=require("./VisuallyHidden-BMelU6B0.cjs"),m=require("./useFormValidation-DV2Ioblb.cjs"),I=require("./usePress-DmU79HEg.cjs"),J=require("./filterDOMProps-RRlKPKX0.cjs"),K=require("./useFocusable-M4se1KJt.cjs"),O=require("./useToggleState-DaxmInOW.cjs"),Q=require("./useHover-DULSfLuK.cjs"),X=require("./useFocusRing-C-XVcAE5.cjs");function Y(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 g=Y(k);function Z(e,i,a){let{isDisabled:d=!1,isReadOnly:n=!1,value:r,name:l,form:c,children:t,"aria-label":b,"aria-labelledby":x,validationState:$="valid",isInvalid:v,onPressStart:h,onPressEnd:P,onPressChange:u,onPress:f,onPressUp:s,onClick:S}=e,w=y=>{y.stopPropagation(),i.setSelected(y.target.checked)},E=t!=null,G=b!=null||x!=null;!E&&!G&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:M,isPressed:F}=I.$f6c31cce2adf654f$export$45712eceda6fad21({onPressStart:h,onPressEnd:P,onPressChange:u,onPress:f,onPressUp:s,onClick:S,isDisabled:d}),{pressProps:N,isPressed:L}=I.$f6c31cce2adf654f$export$45712eceda6fad21({onPressStart:h,onPressEnd:P,onPressChange:u,onPressUp:s,onClick:S,onPress(y){var C;f==null||f(y),i.toggle(),(C=a.current)===null||C===void 0||C.focus()},isDisabled:d||n}),{focusableProps:U}=K.$f645667febf57a63$export$4c014de7c8940b4c(e,a),A=R.$3ef42575df84b30b$export$9d1611c77c2fe928(M,U),H=J.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{labelable:!0});return m.$99facab73266f662$export$5add1d006293d136(a,i.defaultSelected,i.setSelected),{labelProps:R.$3ef42575df84b30b$export$9d1611c77c2fe928(N,{onClick:y=>y.preventDefault()}),inputProps:R.$3ef42575df84b30b$export$9d1611c77c2fe928(H,{"aria-invalid":v||$==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":n||void 0,onChange:w,disabled:d,...r==null?{}:{value:r},name:l,form:c,type:"checkbox",...A}),isSelected:i.isSelected,isPressed:F||L,isDisabled:d,isReadOnly:n,isInvalid:v||$==="invalid"}}function _(e,i,a){let d=m.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:i.isSelected}),{isInvalid:n,validationErrors:r,validationDetails:l}=d.displayValidation,{labelProps:c,inputProps:t,isSelected:b,isPressed:x,isDisabled:$,isReadOnly:v}=Z({...e,isInvalid:n},i,a);m.$e93e671b31057976$export$b8473d3665f3a75a(e,d,a);let{isIndeterminate:h,isRequired:P,validationBehavior:u="aria"}=e;k.useEffect(()=>{a.current&&(a.current.indeterminate=!!h)});let{pressProps:f}=I.$f6c31cce2adf654f$export$45712eceda6fad21({isDisabled:$||v,onPress(){let{[m.$e5be200c675c3b3a$export$a763b9476acd3eb]:s}=e,{commitValidation:S}=s||d;S()}});return{labelProps:R.$3ef42575df84b30b$export$9d1611c77c2fe928(c,f,k.useMemo(()=>({onMouseDown:s=>s.preventDefault()}),[])),inputProps:{...t,checked:b,"aria-required":P&&u==="aria"||void 0,required:P&&u==="native"},isSelected:b,isPressed:x,isDisabled:$,isReadOnly:v,isInvalid:n,validationErrors:r,validationDetails:l}}const j=new WeakMap;function ee(e,i,a){const d=O.$3017fa7ffdddec74$export$8042c6c013fd5226({isReadOnly:e.isReadOnly||i.isReadOnly,isSelected:i.isSelected(e.value),defaultSelected:i.defaultValue.includes(e.value),onChange(s){s?i.addValue(e.value):i.removeValue(e.value),e.onChange&&e.onChange(s)}});let{name:n,form:r,descriptionId:l,errorMessageId:c,validationBehavior:t}=j.get(i);var b;t=(b=e.validationBehavior)!==null&&b!==void 0?b:t;let{realtimeValidation:x}=m.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:d.isSelected,name:void 0,validationBehavior:"aria"}),$=k.useRef(m.$e5be200c675c3b3a$export$dad6ae84456c676a),v=()=>{i.setInvalid(e.value,x.isInvalid?x:$.current)};k.useEffect(v);let h=i.realtimeValidation.isInvalid?i.realtimeValidation:x,P=t==="native"?i.displayValidation:h;var u;let f=_({...e,isReadOnly:e.isReadOnly||i.isReadOnly,isDisabled:e.isDisabled||i.isDisabled,name:e.name||n,form:e.form||r,isRequired:(u=e.isRequired)!==null&&u!==void 0?u:i.isRequired,validationBehavior:t,[m.$e5be200c675c3b3a$export$a763b9476acd3eb]:{realtimeValidation:h,displayValidation:P,resetValidation:i.resetValidation,commitValidation:i.commitValidation,updateValidation(s){$.current=s,v()}}},d,a);return{...f,inputProps:{...f.inputProps,"aria-describedby":[e["aria-describedby"],i.isInvalid?c:null,l].filter(Boolean).join(" ")||void 0}}}const p=k.createContext(null),ie="_checkboxInner_164xy_1",ae="_checkbox_164xy_1",de="_checkboxGroup_164xy_142",V={checkboxInner:ie,checkbox:ae,checkboxGroup:de},B=g.forwardRef((e,i)=>{const{hoverProps:a,isHovered:d}=e.hoverResult,{pressProps:n,isPressed:r}=e.pressResult,{isFocused:l,isFocusVisible:c,focusProps:t}=e.focusRingAria;return o.jsxs("label",{ref:i,...R.$3ef42575df84b30b$export$9d1611c77c2fe928(a,n,e.labelProps),slot:e.slot||void 0,className:D.clsx(V.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":l||void 0,"data-focus-visible":c||void 0,"data-required":e.isRequired||void 0,children:[o.jsx("div",{className:D.clsx(V.checkboxInner),children:o.jsx("svg",{width:16,height:16,viewBox:"0 0 18 18","aria-hidden":"true",children:e.isIndeterminate?o.jsx("rect",{x:4,y:8,width:10,height:2}):o.jsx("polyline",{points:"3,9 7,13 15,4"})})}),o.jsx(W.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:o.jsx("input",{...R.$3ef42575df84b30b$export$9d1611c77c2fe928(e.inputProps,t),ref:e.inputRef})}),e.children]})}),ne=g.forwardRef((e,i)=>{const a=ee({...e,value:e.value||""},e.state,e.inputRef);return o.jsx(B,{...e,...a,ref:i})}),te=g.forwardRef((e,i)=>{const a=_(e,O.$3017fa7ffdddec74$export$8042c6c013fd5226(e),e.inputRef);return o.jsx(B,{...e,...a,ref:i})}),se=g.forwardRef((e,i)=>{[e,i]=q.$64fa3d84918910a7$export$29f1550f4b0d4415(e,i,T.$4e85f108e88277b8$export$b085522c77523c51);const a=q.$64fa3d84918910a7$export$fabf2dc03a41866e(z.$d3e0e05bdfcf66bd$export$c24727297075ec6a),d=e.validationBehavior??(a==null?void 0:a.validationBehavior)??"native",n=g.useContext(p),r=g.useRef(null),l=Q.$6179b936705e76d3$export$ae780daf29e6d456(e),c=I.$f6c31cce2adf654f$export$45712eceda6fad21({ref:i,isDisabled:e.isDisabled}),t=X.$f7dceffc5ad7768b$export$4e328f61c538687f();return n?o.jsx(ne,{...e,state:n,inputRef:r,hoverResult:l,pressResult:c,focusRingAria:t,validationBehavior:d}):o.jsx(te,{...e,inputRef:r,hoverResult:l,pressResult:c,focusRingAria:t,validationBehavior:d})});exports.$1ae600c947479353$export$ec98120685d4f57d=j;exports.Checkbox=se;exports.CheckboxGroupContext=p;exports.styles=V;