@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,115 @@
1
+ import b, { useRef as a, useCallback as s, useState as $, useEffect as p } from "react";
2
+ import { a as y } from "./SSRProvider-40TXmsUG.js";
3
+ import { c as x } from "./clsx-OuTLNxxd.js";
4
+ const i = typeof document < "u" ? b.useLayoutEffect : () => {
5
+ };
6
+ function d(f) {
7
+ const e = a(null);
8
+ return i(() => {
9
+ e.current = f;
10
+ }, [
11
+ f
12
+ ]), s((...c) => {
13
+ const n = e.current;
14
+ return n == null ? void 0 : n(...c);
15
+ }, []);
16
+ }
17
+ function m(f) {
18
+ let [e, c] = $(f), n = a(null), t = d(() => {
19
+ if (!n.current) return;
20
+ let r = n.current.next();
21
+ if (r.done) {
22
+ n.current = null;
23
+ return;
24
+ }
25
+ e === r.value ? t() : c(r.value);
26
+ });
27
+ i(() => {
28
+ n.current && t();
29
+ });
30
+ let l = d((r) => {
31
+ n.current = r(e), t();
32
+ });
33
+ return [
34
+ e,
35
+ l
36
+ ];
37
+ }
38
+ let g = !!(typeof window < "u" && window.document && window.document.createElement), u = /* @__PURE__ */ new Map(), o;
39
+ typeof FinalizationRegistry < "u" && (o = new FinalizationRegistry((f) => {
40
+ u.delete(f);
41
+ }));
42
+ function v(f) {
43
+ let [e, c] = $(f), n = a(null), t = y(e), l = a(null);
44
+ if (o && o.register(l, t), g) {
45
+ const r = u.get(t);
46
+ r && !r.includes(n) ? r.push(n) : u.set(t, [
47
+ n
48
+ ]);
49
+ }
50
+ return i(() => {
51
+ let r = t;
52
+ return () => {
53
+ o && o.unregister(l), u.delete(r);
54
+ };
55
+ }, [
56
+ t
57
+ ]), p(() => {
58
+ let r = n.current;
59
+ return r && c(r), () => {
60
+ r && (n.current = null);
61
+ };
62
+ }), t;
63
+ }
64
+ function w(f, e) {
65
+ if (f === e) return f;
66
+ let c = u.get(f);
67
+ if (c)
68
+ return c.forEach((t) => t.current = e), e;
69
+ let n = u.get(e);
70
+ return n ? (n.forEach((t) => t.current = f), f) : e;
71
+ }
72
+ function k(f = []) {
73
+ let e = v(), [c, n] = m(e), t = s(() => {
74
+ n(function* () {
75
+ yield e, yield document.getElementById(e) ? e : void 0;
76
+ });
77
+ }, [
78
+ e,
79
+ n
80
+ ]);
81
+ return i(t, [
82
+ e,
83
+ t,
84
+ ...f
85
+ ]), c;
86
+ }
87
+ function I(...f) {
88
+ return (...e) => {
89
+ for (let c of f) typeof c == "function" && c(...e);
90
+ };
91
+ }
92
+ function C(...f) {
93
+ let e = {
94
+ ...f[0]
95
+ };
96
+ for (let c = 1; c < f.length; c++) {
97
+ let n = f[c];
98
+ for (let t in n) {
99
+ let l = e[t], r = n[t];
100
+ typeof l == "function" && typeof r == "function" && // This is a lot faster than a regex.
101
+ t[0] === "o" && t[1] === "n" && t.charCodeAt(2) >= /* 'A' */
102
+ 65 && t.charCodeAt(2) <= /* 'Z' */
103
+ 90 ? e[t] = I(l, r) : (t === "className" || t === "UNSAFE_className") && typeof l == "string" && typeof r == "string" ? e[t] = x(l, r) : t === "id" && l && r ? e.id = w(l, r) : e[t] = r !== void 0 ? r : l;
104
+ }
105
+ }
106
+ return e;
107
+ }
108
+ export {
109
+ i as $,
110
+ C as a,
111
+ k as b,
112
+ v as c,
113
+ d,
114
+ I as e
115
+ };
package/modal/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Dialog-CwTEAujZ.cjs"),o=require("../Dialog-Bd5hK360.cjs");exports.Modal=e.Modal;exports.DialogTrigger=o.$de32f1b87079253c$export$2e1e1122cf0cba88;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Dialog-pSSy1zwf.cjs"),o=require("../Dialog-CSnN6baf.cjs");exports.Modal=e.Modal;exports.DialogTrigger=o.$de32f1b87079253c$export$2e1e1122cf0cba88;
package/modal/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { M as a } from "../Dialog-Bxx8cBEq.js";
2
- import { $ as g } from "../Dialog-CYxThuMl.js";
1
+ import { M as a } from "../Dialog-SqciohRY.js";
2
+ import { $ as g } from "../Dialog-CtVrVuMr.js";
3
3
  export {
4
4
  g as DialogTrigger,
5
5
  a as Modal
@@ -0,0 +1,11 @@
1
+ declare const _default: {
2
+ "en": {
3
+ "close": "Close"
4
+ },
5
+ "sv": {
6
+ "close": "Stäng"
7
+ }
8
+ }
9
+ ;
10
+
11
+ export default _default;
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "description": "Midas Components",
15
15
  "homepage": "https://designsystem.migrationsverket.se/",
16
16
  "license": "CC0-1.0",
17
- "version": "10.2.0",
17
+ "version": "10.4.0",
18
18
  "main": "./index.cjs",
19
19
  "module": "./index.js",
20
20
  "types": "./index.d.ts",
@@ -0,0 +1,7 @@
1
+ import { PopoverProps } from 'react-aria-components';
2
+ import * as React from 'react';
3
+ interface MidasPopoverProps extends Omit<PopoverProps, 'children'> {
4
+ children: React.ReactNode;
5
+ }
6
+ export declare function Popover({ children, className, offset, ...props }: MidasPopoverProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Popover-CnAsw3wI.cjs");exports.Popover=e.Popover;
@@ -0,0 +1 @@
1
+ export * from './Popover';
@@ -0,0 +1,4 @@
1
+ import { P as e } from "../Popover-C8VY1YKi.js";
2
+ export {
3
+ e as Popover
4
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../ProgressBar-Dqh3ftSP.cjs");exports.ProgressBar=r.ProgressBar;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../ProgressBar-CcbxcWdT.cjs");exports.ProgressBar=r.ProgressBar;
@@ -1,4 +1,4 @@
1
- import { P as s } from "../ProgressBar-gmAzSsrz.js";
1
+ import { P as s } from "../ProgressBar-BNCjpcv8.js";
2
2
  export {
3
3
  s as ProgressBar
4
4
  };
package/radio/Radio.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { RadioGroupProps, RadioProps, ValidationResult } from 'react-aria-components';
2
+ import { InfoPopoverProps } from '../label';
2
3
  import * as React from 'react';
3
4
  interface MVDSRadioGroupProps extends Omit<RadioGroupProps, 'children'> {
4
5
  children?: React.ReactNode;
@@ -9,13 +10,12 @@ interface MVDSRadioGroupProps extends Omit<RadioGroupProps, 'children'> {
9
10
  /** String to display as error message or function to handle the result and produce the error message */
10
11
  errorMessage?: string | ((validation: ValidationResult) => string);
11
12
  errorPosition?: 'top' | 'bottom';
13
+ /** An assistive text that helps the user understand the field better. Will be hidden in a popover with an info icon button. */
14
+ popover?: InfoPopoverProps;
12
15
  }
13
16
  /**
14
17
  * RadioGroup is used to group several radio items together
15
18
  */
16
19
  export declare const RadioGroup: React.FC<MVDSRadioGroupProps>;
17
- /**
18
- * Radio item
19
- * */
20
- export declare const Radio: (props: RadioProps) => import("react/jsx-runtime").JSX.Element;
20
+ export declare const Radio: ({ className, ...rest }: RadioProps) => import("react/jsx-runtime").JSX.Element;
21
21
  export {};
package/radio/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../Radio-CDKrvQe4.cjs");exports.Radio=o.Radio;exports.RadioGroup=o.RadioGroup;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../Radio-B2zfEFdq.cjs");exports.Radio=o.Radio;exports.RadioGroup=o.RadioGroup;
package/radio/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { R as r, a as R } from "../Radio-_ukSkxPT.js";
1
+ import { R as r, a as R } from "../Radio-CZYibh9r.js";
2
2
  export {
3
3
  r as Radio,
4
4
  R as RadioGroup
@@ -0,0 +1,87 @@
1
+ import { $ as T } from "./mergeProps-C1U1OIeJ.js";
2
+ import { useState as y } from "react";
3
+ function W(e, o) {
4
+ if (!e) return !1;
5
+ let l = window.getComputedStyle(e), t = /(auto|scroll)/.test(l.overflow + l.overflowX + l.overflowY);
6
+ return t && o && (t = e.scrollHeight !== e.clientHeight || e.scrollWidth !== e.clientWidth), t;
7
+ }
8
+ function I(e, o) {
9
+ const l = [];
10
+ for (; e && e !== document.documentElement; )
11
+ W(e, o) && l.push(e), e = e.parentElement;
12
+ return l;
13
+ }
14
+ let S = 0;
15
+ const u = /* @__PURE__ */ new Map();
16
+ function R(e) {
17
+ let [o, l] = y();
18
+ return T(() => {
19
+ if (!e) return;
20
+ let t = u.get(e);
21
+ if (t)
22
+ l(t.element.id);
23
+ else {
24
+ let d = `react-aria-description-${S++}`;
25
+ l(d);
26
+ let f = document.createElement("div");
27
+ f.id = d, f.style.display = "none", f.textContent = e, document.body.appendChild(f), t = {
28
+ refCount: 0,
29
+ element: f
30
+ }, u.set(e, t);
31
+ }
32
+ return t.refCount++, () => {
33
+ t && --t.refCount === 0 && (t.element.remove(), u.delete(e));
34
+ };
35
+ }, [
36
+ e
37
+ ]), {
38
+ "aria-describedby": e ? o : void 0
39
+ };
40
+ }
41
+ function k(e, o) {
42
+ let l = m(e, o, "left"), t = m(e, o, "top"), d = o.offsetWidth, f = o.offsetHeight, r = e.scrollLeft, n = e.scrollTop, { borderTopWidth: i, borderLeftWidth: c, scrollPaddingTop: a, scrollPaddingRight: s, scrollPaddingBottom: x, scrollPaddingLeft: C } = getComputedStyle(e), L = r + parseInt(c, 10), b = n + parseInt(i, 10), p = L + e.clientWidth, $ = b + e.clientHeight, v = parseInt(a, 10) || 0, P = parseInt(x, 10) || 0, h = parseInt(s, 10) || 0, g = parseInt(C, 10) || 0;
43
+ l <= r + g ? r = l - parseInt(c, 10) - g : l + d > p - h && (r += l + d - p + h), t <= b + v ? n = t - parseInt(i, 10) - v : t + f > $ - P && (n += t + f - $ + P), e.scrollLeft = r, e.scrollTop = n;
44
+ }
45
+ function m(e, o, l) {
46
+ const t = l === "left" ? "offsetLeft" : "offsetTop";
47
+ let d = 0;
48
+ for (; o.offsetParent && (d += o[t], o.offsetParent !== e); ) {
49
+ if (o.offsetParent.contains(e)) {
50
+ d -= e[t];
51
+ break;
52
+ }
53
+ o = o.offsetParent;
54
+ }
55
+ return d;
56
+ }
57
+ function H(e, o) {
58
+ if (e && document.contains(e)) {
59
+ let r = document.scrollingElement || document.documentElement;
60
+ if (window.getComputedStyle(r).overflow === "hidden") {
61
+ let i = I(e);
62
+ for (let c of i) k(c, e);
63
+ } else {
64
+ var l;
65
+ let { left: i, top: c } = e.getBoundingClientRect();
66
+ e == null || (l = e.scrollIntoView) === null || l === void 0 || l.call(e, {
67
+ block: "nearest"
68
+ });
69
+ let { left: a, top: s } = e.getBoundingClientRect();
70
+ if (Math.abs(i - a) > 1 || Math.abs(c - s) > 1) {
71
+ var t, d, f;
72
+ o == null || (d = o.containingElement) === null || d === void 0 || (t = d.scrollIntoView) === null || t === void 0 || t.call(d, {
73
+ block: "center",
74
+ inline: "center"
75
+ }), (f = e.scrollIntoView) === null || f === void 0 || f.call(e, {
76
+ block: "nearest"
77
+ });
78
+ }
79
+ }
80
+ }
81
+ }
82
+ export {
83
+ W as $,
84
+ R as a,
85
+ k as b,
86
+ H as c
87
+ };
@@ -0,0 +1 @@
1
+ "use strict";const W=require("./mergeProps-B5KXZAI3.cjs"),I=require("react");function C(e,o){if(!e)return!1;let l=window.getComputedStyle(e),t=/(auto|scroll)/.test(l.overflow+l.overflowX+l.overflowY);return t&&o&&(t=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),t}function S(e,o){const l=[];for(;e&&e!==document.documentElement;)C(e,o)&&l.push(e),e=e.parentElement;return l}let R=0;const u=new Map;function k(e){let[o,l]=I.useState();return W.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(!e)return;let t=u.get(e);if(t)l(t.element.id);else{let d=`react-aria-description-${R++}`;l(d);let f=document.createElement("div");f.id=d,f.style.display="none",f.textContent=e,document.body.appendChild(f),t={refCount:0,element:f},u.set(e,t)}return t.refCount++,()=>{t&&--t.refCount===0&&(t.element.remove(),u.delete(e))}},[e]),{"aria-describedby":e?o:void 0}}function L(e,o){let l=g(e,o,"left"),t=g(e,o,"top"),d=o.offsetWidth,f=o.offsetHeight,r=e.scrollLeft,n=e.scrollTop,{borderTopWidth:c,borderLeftWidth:i,scrollPaddingTop:a,scrollPaddingRight:s,scrollPaddingBottom:T,scrollPaddingLeft:m}=getComputedStyle(e),y=r+parseInt(i,10),b=n+parseInt(c,10),$=y+e.clientWidth,p=b+e.clientHeight,v=parseInt(a,10)||0,P=parseInt(T,10)||0,h=parseInt(s,10)||0,x=parseInt(m,10)||0;l<=r+x?r=l-parseInt(i,10)-x:l+d>$-h&&(r+=l+d-$+h),t<=b+v?n=t-parseInt(c,10)-v:t+f>p-P&&(n+=t+f-p+P),e.scrollLeft=r,e.scrollTop=n}function g(e,o,l){const t=l==="left"?"offsetLeft":"offsetTop";let d=0;for(;o.offsetParent&&(d+=o[t],o.offsetParent!==e);){if(o.offsetParent.contains(e)){d-=e[t];break}o=o.offsetParent}return d}function B(e,o){if(e&&document.contains(e)){let r=document.scrollingElement||document.documentElement;if(window.getComputedStyle(r).overflow==="hidden"){let c=S(e);for(let i of c)L(i,e)}else{var l;let{left:c,top:i}=e.getBoundingClientRect();e==null||(l=e.scrollIntoView)===null||l===void 0||l.call(e,{block:"nearest"});let{left:a,top:s}=e.getBoundingClientRect();if(Math.abs(c-a)>1||Math.abs(i-s)>1){var t,d,f;o==null||(d=o.containingElement)===null||d===void 0||(t=d.scrollIntoView)===null||t===void 0||t.call(d,{block:"center",inline:"center"}),(f=e.scrollIntoView)===null||f===void 0||f.call(e,{block:"nearest"})}}}}exports.$2f04cbc44ee30ce0$export$53a0910f038337bd=L;exports.$2f04cbc44ee30ce0$export$c826860796309d1b=B;exports.$cc38e7bd3fc7b213$export$2bb74740c4e19def=C;exports.$ef06256079686ba0$export$f8aeda7b10753fa1=k;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../SearchField-6yBGiojX.cjs");exports.SearchField=e.SearchField;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../SearchField-CML0kjtn.cjs");exports.SearchField=e.SearchField;
@@ -1,4 +1,4 @@
1
- import { S as a } from "../SearchField-DYl2uo7o.js";
1
+ import { S as a } from "../SearchField-giwECmXS.js";
2
2
  export {
3
3
  a as SearchField
4
4
  };
@@ -0,0 +1,11 @@
1
+ declare const _default: {
2
+ "en": {
3
+ "search": "Search"
4
+ },
5
+ "sv": {
6
+ "search": "Sök"
7
+ }
8
+ }
9
+ ;
10
+
11
+ export default _default;
package/select/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Select-CpHjd1tp.cjs");exports.Select=e.Select;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Select-DKey6CeS.cjs");exports.Select=e.Select;
package/select/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { S as r } from "../Select-PvCqY7Lp.js";
1
+ import { S as r } from "../Select-mwaAv20X.js";
2
2
  export {
3
3
  r as Select
4
4
  };
@@ -0,0 +1,17 @@
1
+ declare const _default: {
2
+ "en": {
3
+ "clearAll": "Clear all",
4
+ "selectAll": "Select all",
5
+ "selectedItems": "Selected items",
6
+ "chosen": "chosen"
7
+ },
8
+ "sv": {
9
+ "clearAll": "Rensa alla",
10
+ "selectAll": "Välj alla",
11
+ "selectedItems": "Valda objekt",
12
+ "chosen": "valda"
13
+ }
14
+ }
15
+ ;
16
+
17
+ export default _default;
@@ -7,5 +7,6 @@ export interface SpinnerProps {
7
7
  * @default false
8
8
  */
9
9
  isOnColor?: boolean;
10
+ className?: string;
10
11
  }
11
12
  export declare const Spinner: React.FC<SpinnerProps>;
package/spinner/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Spinner-DAJtfxqJ.cjs");exports.Spinner=e.Spinner;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Spinner-yHcy8YHC.cjs");exports.Spinner=e.Spinner;
package/spinner/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { S as n } from "../Spinner-D31SXm-U.js";
1
+ import { S as n } from "../Spinner-CbJ6YAz-.js";
2
2
  export {
3
3
  n as Spinner
4
4
  };
@@ -0,0 +1,11 @@
1
+ declare const _default: {
2
+ "en": {
3
+ "loadingPleaseWait": "Loading, please wait..."
4
+ },
5
+ "sv": {
6
+ "loadingPleaseWait": "Laddar, vänligen vänta..."
7
+ }
8
+ }
9
+ ;
10
+
11
+ export default _default;
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("./createLucideIcon-DAY4oS-S.cjs");/**
1
+ "use strict";const t=require("./createLucideIcon-Cg_wkoIA.cjs");/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
package/table/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Table-D9vNc_y-.cjs");exports.Cell=e.Cell;exports.Column=e.Column;exports.Row=e.Row;exports.Table=e.Table;exports.TableBody=e.$1910c06f0ca9905e$export$76ccd210b9029917;exports.TableHeader=e.TableHeader;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Table-DkvNp6xm.cjs");exports.Cell=e.Cell;exports.Column=e.Column;exports.Row=e.Row;exports.Table=e.Table;exports.TableBody=e.$1910c06f0ca9905e$export$76ccd210b9029917;exports.TableHeader=e.TableHeader;
package/table/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b as l, C as s, R as o, T as b, $ as T, a as r } from "../Table-B_N7wUmA.js";
1
+ import { b as l, C as s, R as o, T as b, $ as T, a as r } from "../Table-BcQPvJT3.js";
2
2
  export {
3
3
  l as Cell,
4
4
  s as Column,
package/tabs/Tab.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ import { TabProps } from 'react-aria-components';
2
+ import * as React from 'react';
3
+ export declare const Tab: React.FC<TabProps>;
4
+ export type { TabProps };
@@ -0,0 +1,3 @@
1
+ import { TabListProps } from 'react-aria-components';
2
+ export declare const TabList: <T extends object>({ className, ...props }: TabListProps<T>) => import("react/jsx-runtime").JSX.Element;
3
+ export type { TabListProps };
@@ -0,0 +1,4 @@
1
+ import { TabPanelProps } from 'react-aria-components';
2
+ import * as React from 'react';
3
+ export declare const TabPanel: React.FC<TabPanelProps>;
4
+ export type { TabPanelProps };
package/tabs/Tabs.d.ts CHANGED
@@ -1,17 +1,23 @@
1
1
  import { TabsProps as AriaTabsProps } from 'react-aria-components';
2
2
  import * as React from 'react';
3
- export interface TabsProps extends Omit<AriaTabsProps, 'orientation'> {
3
+ export interface TabsProps extends AriaTabsProps {
4
4
  /**
5
5
  * An array of tab titles
6
+ * @deprecated since v.10.3.0 please use the declarative API
7
+ * @see {@link https://designsystem.migrationsverket.se/components/tabs/|Tabs}
6
8
  */
7
- tabs: string[];
9
+ tabs?: string[];
8
10
  /**
9
11
  * Label for accessibility
12
+ * @deprecated since v.10.3.0 please use the declarative API and use the `aria-label` prop on TabList instead
13
+ * @see {@link https://designsystem.migrationsverket.se/components/tabs/|Tabs}
10
14
  */
11
- label: string;
15
+ label?: string;
12
16
  /**
13
- * Amount of children must match the amount of tabs
17
+ * The orientation of the tabs.
18
+ * Will adjust to screen size automatically if omitted
19
+ * @default undefined
14
20
  */
15
- children: React.ReactNode;
21
+ orientation?: AriaTabsProps['orientation'];
16
22
  }
17
23
  export declare const Tabs: React.FC<TabsProps>;
package/tabs/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Tabs-Dtcl2oK2.cjs");exports.Tabs=e.Tabs;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../TabList-7VtCiXxX.cjs");exports.Tab=a.Tab;exports.TabList=a.TabList;exports.TabPanel=a.TabPanel;exports.Tabs=a.Tabs;
package/tabs/index.d.ts CHANGED
@@ -1 +1,4 @@
1
1
  export * from './Tabs';
2
+ export * from './Tab';
3
+ export * from './TabPanel';
4
+ export * from './TabList';
package/tabs/index.js CHANGED
@@ -1,4 +1,7 @@
1
- import { T as r } from "../Tabs-Ct6D83aR.js";
1
+ import { a as b, c as T, b as e, T as o } from "../TabList-CthsM5h6.js";
2
2
  export {
3
- r as Tabs
3
+ b as Tab,
4
+ T as TabList,
5
+ e as TabPanel,
6
+ o as Tabs
4
7
  };
package/tag/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Tag-CVFkzg3s.cjs");exports.Tag=e.Tag;exports.TagGroup=e.TagGroup;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Tag-CFWZ2LQW.cjs");exports.Tag=e.Tag;exports.TagGroup=e.TagGroup;
package/tag/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { T as r, a as T } from "../Tag-g6HN-YCv.js";
1
+ import { T as r, a as T } from "../Tag-Bs8T2Ei7.js";
2
2
  export {
3
3
  r as Tag,
4
4
  T as TagGroup
package/text/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Text-3MNwRMpI.cjs");exports.Text=e.Text;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Text-DBHWi5gA.cjs");exports.Text=e.Text;
package/text/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { T as r } from "../Text-BN-g1iWi.js";
1
+ import { T as r } from "../Text-DlKqpvSa.js";
2
2
  export {
3
3
  r as Text
4
4
  };
@@ -1,5 +1,6 @@
1
1
  import { TextFieldProps, ValidationResult } from 'react-aria-components';
2
2
  import { Size } from '../common/types';
3
+ import { InfoPopoverProps } from '../label';
3
4
  import * as React from 'react';
4
5
  export interface TextFieldBaseProps extends Omit<TextFieldProps, 'className'> {
5
6
  children?: React.ReactNode;
@@ -20,5 +21,6 @@ export interface TextFieldBaseProps extends Omit<TextFieldProps, 'className'> {
20
21
  * @default 'large'
21
22
  * */
22
23
  size?: Size;
24
+ popover?: InfoPopoverProps;
23
25
  }
24
26
  export declare const TextFieldBase: React.ForwardRefExoticComponent<TextFieldBaseProps & React.RefAttributes<HTMLDivElement>>;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../TextArea-cVyGBRbL.cjs");exports.Input=e.Input;exports.TextArea=e.TextArea;exports.TextField=e.TextField;exports.TextFieldBase=e.TextFieldBase;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../TextArea-XJDfeXRs.cjs");exports.Input=e.Input;exports.TextArea=e.TextArea;exports.TextField=e.TextField;exports.TextFieldBase=e.TextFieldBase;
@@ -1,4 +1,4 @@
1
- import { I as s, b as t, a as x, T } from "../TextArea-DSiQ578a.js";
1
+ import { I as s, b as t, a as x, T } from "../TextArea-DBNAVWqL.js";
2
2
  export {
3
3
  s as Input,
4
4
  t as TextArea,
@@ -6,78 +6,6 @@ declare const _default: {
6
6
  "sv": {
7
7
  "hide": "Dölj",
8
8
  "show": "Visa"
9
- },
10
- "es": {
11
- "hide": "Ocultar",
12
- "show": "Mostrar"
13
- },
14
- "fr": {
15
- "hide": "Cacher",
16
- "show": "Afficher"
17
- },
18
- "de": {
19
- "hide": "Verstecken",
20
- "show": "Anzeigen"
21
- },
22
- "ja": {
23
- "hide": "隠す",
24
- "show": "表示"
25
- },
26
- "zh": {
27
- "hide": "隐藏",
28
- "show": "显示"
29
- },
30
- "ar": {
31
- "hide": "إخفاء",
32
- "show": "إظهار"
33
- },
34
- "ru": {
35
- "hide": "Скрыть",
36
- "show": "Показать"
37
- },
38
- "pt": {
39
- "hide": "Ocultar",
40
- "show": "Mostrar"
41
- },
42
- "it": {
43
- "hide": "Nascondi",
44
- "show": "Mostra"
45
- },
46
- "ko": {
47
- "hide": "숨기기",
48
- "show": "보여주기"
49
- },
50
- "hi": {
51
- "hide": "छुपाएँ",
52
- "show": "दिखाएँ"
53
- },
54
- "nl": {
55
- "hide": "Verbergen",
56
- "show": "Tonen"
57
- },
58
- "pl": {
59
- "hide": "Ukryj",
60
- "show": "Pokaż"
61
- },
62
- "tr": {
63
- "hide": "Gizle",
64
- "show": "Göster"
65
- },
66
- "vi": {
67
- "hide": "Ẩn",
68
- "show": "Hiện"
69
- },
70
- "th": {
71
- "hide": "ซ่อน",
72
- "show": "แสดง"
73
- },
74
- "id": {
75
- "hide": "Sembunyikan",
76
- "show": "Tampilkan"
77
- },
78
- "ms": {
79
- "hide": "Sembunyikan",
80
- "show": "Tunjukkan"
81
9
  }
82
10
  }
83
11
  ;
package/theme/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../tokens-p6pg1Cea.cjs"),s={...e.tokens};exports.baseColors=e.baseColors;exports.breakpoints=e.breakpoints;exports.semantic=e.semantic;exports.spacing=e.spacing;exports.states=e.states;exports.transitions=e.transitions;exports.typography=e.typography;exports.windowSizes=e.windowSizes;exports.zIndex=e.zIndex;exports.theme=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../tokens-BghDnMdO.cjs"),s={...e.tokens};exports.baseColors=e.baseColors;exports.breakpoints=e.breakpoints;exports.semantic=e.semantic;exports.spacing=e.spacing;exports.states=e.states;exports.transitions=e.transitions;exports.typography=e.typography;exports.windowSizes=e.windowSizes;exports.zIndex=e.zIndex;exports.theme=s;
package/theme/index.d.ts CHANGED
@@ -219,6 +219,11 @@ export declare const theme: {
219
219
  buttonBackgroundDisabled: string;
220
220
  buttonBackgroundSkeleton: string;
221
221
  buttonBorderSecondary: string;
222
+ calendarDateBackgroundHover: string;
223
+ calendarDateBackgroundSelected: string;
224
+ calendarDateBackgroundStartRange: string;
225
+ calendarDateBackgroundInRange: string;
226
+ calendarDateBackgroundEndRange: string;
222
227
  logoPrimary: string;
223
228
  menuItemBackgroundHover: string;
224
229
  menuItemBackgroundSelected: string;
package/theme/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { t as s } from "../tokens-xp-7KMK7.js";
2
- import { b as n, e as r, f as i, s as p, c as m, d as c, a as b, w as d, z as f } from "../tokens-xp-7KMK7.js";
1
+ import { t as s } from "../tokens-fEwCQXDv.js";
2
+ import { b as n, e as r, f as i, s as p, c as m, d as c, a as b, w as d, z as f } from "../tokens-fEwCQXDv.js";
3
3
  const t = { ...s };
4
4
  export {
5
5
  n as baseColors,