@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,53 @@
1
+ import { jsxs as i, jsx as n } from "react/jsx-runtime";
2
+ import { c as s } from "./clsx-OuTLNxxd.js";
3
+ import { c } from "./createLucideIcon-DeWljiyi.js";
4
+ import { $ as d } from "./VisuallyHidden-CYfmTSCD.js";
5
+ import { u as l } from "./useLocalizedStringFormatter-N0AyjzbM.js";
6
+ import './assets/Spinner.css';/**
7
+ * @license lucide-react v0.453.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */
12
+ const m = c("LoaderCircle", [
13
+ ["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]
14
+ ]), p = "_container_3nw95_4", _ = "_spinner_3nw95_8", f = "_dark_3nw95_18", e = {
15
+ container: p,
16
+ spinner: _,
17
+ dark: f
18
+ }, g = {
19
+ loadingPleaseWait: "Loading, please wait..."
20
+ }, k = {
21
+ loadingPleaseWait: "Laddar, vänligen vänta..."
22
+ }, u = {
23
+ en: g,
24
+ sv: k
25
+ }, w = ({
26
+ small: a,
27
+ isOnColor: r = !1,
28
+ className: t
29
+ }) => {
30
+ const o = l(u);
31
+ return /* @__PURE__ */ i(
32
+ "div",
33
+ {
34
+ className: s(e.container, t),
35
+ role: "status",
36
+ children: [
37
+ /* @__PURE__ */ n(
38
+ m,
39
+ {
40
+ className: s(e.spinner, r && e.dark),
41
+ size: a ? 16 : 32,
42
+ strokeWidth: a ? 2 : 3,
43
+ absoluteStrokeWidth: !0
44
+ }
45
+ ),
46
+ /* @__PURE__ */ n(d, { children: o.format("loadingPleaseWait") })
47
+ ]
48
+ }
49
+ );
50
+ };
51
+ export {
52
+ w as S
53
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";require('./assets/Spinner.css');const e=require("react/jsx-runtime"),r=require("./clsx-C11secjj.cjs"),c=require("./createLucideIcon-Cg_wkoIA.cjs"),o=require("./VisuallyHidden-Doyzl0F7.cjs"),d=require("./useLocalizedStringFormatter-BO2iZEL0.cjs");/**
2
+ * @license lucide-react v0.453.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const l=c.createLucideIcon("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),u="_container_3nw95_4",g="_spinner_3nw95_8",p="_dark_3nw95_18",n={container:u,spinner:g,dark:p},_={loadingPleaseWait:"Loading, please wait..."},x={loadingPleaseWait:"Laddar, vänligen vänta..."},L={en:_,sv:x},k=({small:s,isOnColor:t=!1,className:a})=>{const i=d.useLocalizedStringFormatter(L);return e.jsxs("div",{className:r.clsx(n.container,a),role:"status",children:[e.jsx(l,{className:r.clsx(n.spinner,t&&n.dark),size:s?16:32,strokeWidth:s?2:3,absoluteStrokeWidth:!0}),e.jsx(o.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:i.format("loadingPleaseWait")})]})};exports.Spinner=k;
@@ -0,0 +1 @@
1
+ "use strict";require('./assets/TabList.css');const h=require("react/jsx-runtime"),o=require("react"),g=require("./clsx-C11secjj.cjs"),V=require("./useObserveElement-MhzEsCkX.cjs"),A=require("./tokens-BghDnMdO.cjs"),x=require("./Collection-BtBX5IMY.cjs"),$=require("./utils-DHNZrQmj.cjs"),z=require("./Hidden-BxRZGdEW.cjs"),v=require("./mergeProps-B5KXZAI3.cjs"),S=require("./filterDOMProps-BS2lrgFA.cjs"),q=require("./inertValue-B3AFhVG4.cjs"),_=require("./usePress-BooY_CAy.cjs"),B=require("./useFocusable-D7I1ujkW.cjs"),I=require("./SelectionManager-D0jYUYcy.cjs"),L=require("./useLabels-CSU0kbtJ.cjs"),W=require("./useHasTabbableChild-CoQRpNbC.cjs"),U=require("./context-Df3XbgBG.cjs"),T=require("./useFocusRing-B-A1OLhU.cjs"),G=require("./useHover-BE_XKZKe.cjs"),J=require("./useSingleSelectListState-BPhlCU26.cjs");function Q(i){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const t in i)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(i,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>i[t]})}}return e.default=i,Object.freeze(e)}const C=Q(o),O=new WeakMap;function D(i,e,t){return i?(typeof e=="string"&&(e=e.replace(/\s+/g,"")),`${O.get(i)}-${t}-${e}`):""}function X(i,e,t){let{key:n,isDisabled:a,shouldSelectOnPressUp:d}=i,{selectionManager:l,selectedKey:c}=e,r=n===c,s=a||e.isDisabled||e.selectionManager.isDisabled(n),{itemProps:u,isPressed:f}=I.$880e95eb8b93ba9a$export$ecf600387e221c37({selectionManager:l,key:n,ref:t,isDisabled:s,shouldSelectOnPressUp:d,linkBehavior:"selection"}),b=D(e,n,"tab"),m=D(e,n,"tabpanel"),{tabIndex:K}=u,p=e.collection.getItem(n),E=S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(p==null?void 0:p.props,{labelable:!0});delete E.id;let N=_.$ea8dcbcb9ea1b556$export$7e924b3091a3bd18(p==null?void 0:p.props),{focusableProps:H}=B.$f645667febf57a63$export$4c014de7c8940b4c({isDisabled:s},t);return{tabProps:v.$3ef42575df84b30b$export$9d1611c77c2fe928(E,H,N,u,{id:b,"aria-selected":r,"aria-disabled":s||void 0,"aria-controls":r?m:void 0,tabIndex:s?void 0:K,role:"tab"}),isSelected:r,isDisabled:s,isPressed:f}}function Y(i,e,t){let n=W.$83013635b024ae3d$export$eac1895992b9f3d6(t)?void 0:0;var a;const d=D(e,(a=i.id)!==null&&a!==void 0?a:e==null?void 0:e.selectedKey,"tabpanel"),l=L.$313b98861ee5dd6c$export$d6875122194c7b44({...i,id:d,"aria-labelledby":D(e,e==null?void 0:e.selectedKey,"tab")});return{tabPanelProps:v.$3ef42575df84b30b$export$9d1611c77c2fe928(l,{tabIndex:n,role:"tabpanel","aria-describedby":i["aria-describedby"],"aria-details":i["aria-details"]})}}class Z{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var t,n;return this.disabledKeys.has(e)||!!(!((n=this.collection.getItem(e))===null||n===void 0||(t=n.props)===null||t===void 0)&&t.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let t=e;do t=this.collection.getKeyAfter(t),t==null&&(t=this.collection.getFirstKey());while(t!=null&&this.isDisabled(t));return t}getPreviousKey(e){let t=e;do t=this.collection.getKeyBefore(t),t==null&&(t=this.collection.getLastKey());while(t!=null&&this.isDisabled(t));return t}constructor(e,t,n,a=new Set){this.collection=e,this.flipDirection=t==="rtl"&&n==="horizontal",this.disabledKeys=a,this.tabDirection=n==="horizontal"}}function ee(i,e,t){let{orientation:n="horizontal",keyboardActivation:a="automatic"}=i,{collection:d,selectionManager:l,disabledKeys:c}=e,{direction:r}=U.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),s=o.useMemo(()=>new Z(d,r,n,c),[d,c,n,r]),{collectionProps:u}=I.$ae20dd8cbca75726$export$d6daf82dcd84e87c({ref:t,selectionManager:l,keyboardDelegate:s,selectOnFocus:a==="automatic",disallowEmptySelection:!0,scrollRef:t,linkBehavior:"selection"}),f=v.$bdb11010cef70236$export$f680877a34711e37();O.set(e,f);let b=L.$313b98861ee5dd6c$export$d6875122194c7b44({...i,id:f});return{tabListProps:{...v.$3ef42575df84b30b$export$9d1611c77c2fe928(u,b),role:"tablist","aria-orientation":n,tabIndex:void 0}}}function te(i){var e,t;let n=J.$a0d645289fe9b86b$export$e7f05e985daf4b5f({...i,onSelectionChange:i.onSelectionChange?r=>{var s;r!=null&&((s=i.onSelectionChange)===null||s===void 0||s.call(i,r))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:(t=(e=i.defaultSelectedKey)!==null&&e!==void 0?e:w(i.collection,i.disabledKeys?new Set(i.disabledKeys):new Set))!==null&&t!==void 0?t:void 0}),{selectionManager:a,collection:d,selectedKey:l}=n,c=o.useRef(l);return o.useEffect(()=>{let r=l;i.selectedKey==null&&(a.isEmpty||r==null||!d.getItem(r))&&(r=w(d,n.disabledKeys),r!=null&&a.setSelectedKeys([r])),(r!=null&&a.focusedKey==null||!a.isFocused&&r!==c.current)&&a.setFocusedKey(r),c.current=r}),{...n,isDisabled:i.isDisabled||!1}}function w(i,e){let t=null;if(i){var n,a,d,l;for(t=i.getFirstKey();t!=null&&(e.has(t)||!((a=i.getItem(t))===null||a===void 0||(n=a.props)===null||n===void 0)&&n.isDisabled)&&t!==i.getLastKey();)t=i.getKeyAfter(t);t!=null&&(e.has(t)||!((l=i.getItem(t))===null||l===void 0||(d=l.props)===null||d===void 0)&&d.isDisabled)&&t===i.getLastKey()&&(t=i.getFirstKey())}return t}const F=o.createContext(null),y=o.createContext(null),M=o.forwardRef(function(e,t){[e,t]=$.$64fa3d84918910a7$export$29f1550f4b0d4415(e,t,F);let{children:n,orientation:a="horizontal"}=e;return n=o.useMemo(()=>typeof n=="function"?n({orientation:a,defaultChildren:null}):n,[n,a]),o.createElement(x.$e1995378a142960e$export$bf788dd355e3a401,{content:n},d=>o.createElement(ie,{props:e,collection:d,tabsRef:t}))});function ie({props:i,tabsRef:e,collection:t}){let{orientation:n="horizontal"}=i,a=te({...i,collection:t,children:void 0}),{focusProps:d,isFocused:l,isFocusVisible:c}=T.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0}),r=o.useMemo(()=>({orientation:n,isFocusWithin:l,isFocusVisible:c}),[n,l,c]),s=$.$64fa3d84918910a7$export$4d86445c2cf5e3({...i,defaultClassName:"react-aria-Tabs",values:r});return o.createElement("div",{...S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(i),...d,...s,ref:e,slot:i.slot||void 0,"data-focused":l||void 0,"data-orientation":n,"data-focus-visible":c||void 0,"data-disabled":a.isDisabled||void 0},o.createElement($.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[F,i],[y,a]]},s.children))}const ne=o.forwardRef(function(e,t){return o.useContext(y)?o.createElement(ae,{props:e,forwardedRef:t}):o.createElement(x.$e1995378a142960e$export$fb8073518f34e6ec,e)});function ae({props:i,forwardedRef:e}){let t=o.useContext(y),{CollectionRoot:n}=o.useContext(x.$7135fc7d473fd974$export$4feb769f8ddf26c5),{orientation:a="horizontal",keyboardActivation:d="automatic"}=$.$64fa3d84918910a7$export$fabf2dc03a41866e(F),l=$.$df56164dff5785e2$export$4338b53315abf666(e),{tabListProps:c}=ee({...i,orientation:a,keyboardActivation:d},t,l),r=$.$64fa3d84918910a7$export$4d86445c2cf5e3({...i,children:null,defaultClassName:"react-aria-TabList",values:{orientation:a,state:t}}),s=S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(i);return delete s.id,o.createElement("div",{...s,...c,ref:l,...r,"data-orientation":a||void 0},o.createElement(n,{collection:t.collection,persistedKeys:x.$7135fc7d473fd974$export$90e00781bc59d8f9(t.selectionManager.focusedKey)}))}const se=x.$e1995378a142960e$export$18af5c7a9e9b3664("item",(i,e,t)=>{let n=o.useContext(y),a=$.$df56164dff5785e2$export$4338b53315abf666(e),{tabProps:d,isSelected:l,isDisabled:c,isPressed:r}=X({key:t.key,...i},n,a),{focusProps:s,isFocused:u,isFocusVisible:f}=T.$f7dceffc5ad7768b$export$4e328f61c538687f(),{hoverProps:b,isHovered:m}=G.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:c,onHoverStart:i.onHoverStart,onHoverEnd:i.onHoverEnd,onHoverChange:i.onHoverChange}),K=$.$64fa3d84918910a7$export$4d86445c2cf5e3({...i,id:void 0,children:t.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:l,isDisabled:c,isFocused:u,isFocusVisible:f,isPressed:r,isHovered:m}}),p=t.props.href?"a":"div";return o.createElement(p,{...v.$3ef42575df84b30b$export$9d1611c77c2fe928(d,s,b,K),ref:a,"data-selected":l||void 0,"data-disabled":c||void 0,"data-focused":u||void 0,"data-focus-visible":f||void 0,"data-pressed":r||void 0,"data-hovered":m||void 0},K.children)}),re=z.$f39a9eba43920ace$export$86427a43e3e48ebb(function(e,t){const n=o.useContext(y);let a=$.$df56164dff5785e2$export$4338b53315abf666(t),{tabPanelProps:d}=Y(e,n,a),{focusProps:l,isFocused:c,isFocusVisible:r}=T.$f7dceffc5ad7768b$export$4e328f61c538687f(),s=n.selectedKey===e.id,u=$.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:c,isFocusVisible:r,isInert:q.$cdc5a6778b766db2$export$a9d04c5684123369(!s),state:n}});if(!s&&!e.shouldForceMount)return null;let f=S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e);delete f.id;let b=s?v.$3ef42575df84b30b$export$9d1611c77c2fe928(f,d,l,u):u;return o.createElement("div",{...b,ref:a,"data-focused":c||void 0,"data-focus-visible":r||void 0,inert:q.$cdc5a6778b766db2$export$a9d04c5684123369(!s),"data-inert":s?void 0:"true"},o.createElement($.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[F,null],[y,null]]},o.createElement(x.$7135fc7d473fd974$export$4feb769f8ddf26c5.Provider,{value:x.$7135fc7d473fd974$export$a164736487e3f0ae},u.children)))}),le="_container_iuog5_4",oe="_list_iuog5_8",de="_listItem_iuog5_14",ce="_panel_iuog5_56",P={container:le,list:oe,listItem:de,panel:ce},ue=({tabs:i,label:e,children:t,className:n,...a})=>{const{width:d}=V.useObserveElement(typeof document>"u"?null:document.body,{includePadding:!0}),l=a.orientation||d>=A.windowSizes.sm?"horizontal":"vertical";if(!(i!=null&&i.length))return h.jsx(M,{...a,orientation:l,className:g.clsx(P.container,n),children:t});if(typeof t=="function")return console.error('Only the declarative API supports passing a function to children, replace the "tabs" prop according to the documentation: https://designsystem.migrationsverket.se/components/tabs/ '),null;const c=C.Children.toArray(t);if(c.length!==i.length)return console.error(`The number of children must match the number of tabs. Children: ${c.length} Tabs: ${i.length}`),null;const r=c.reduce((s,u,f)=>{if(C.isValidElement(u)){const b=i[f];b&&(s[b]=C.cloneElement(u,{id:b}))}return s},{});return h.jsxs(M,{...a,orientation:l,className:g.clsx(P.container,n),children:[h.jsx(j,{"aria-label":e,children:i.map(s=>h.jsx(R,{id:s,children:s},s))}),i.map(s=>h.jsx(k,{id:s,children:r[s]},s))]})},R=({className:i,...e})=>h.jsx(se,{...e,className:g.clsx(P.listItem,i)}),k=({className:i,...e})=>h.jsx(re,{className:g.clsx(P.panel,i),...e}),j=({className:i,...e})=>h.jsx(ne,{className:g.clsx(P.list,i),...e});exports.Tab=R;exports.TabList=j;exports.TabPanel=k;exports.Tabs=ue;
@@ -0,0 +1,435 @@
1
+ import { jsx as m, jsxs as B } from "react/jsx-runtime";
2
+ import * as E from "react";
3
+ import u, { useMemo as w, useRef as W, useEffect as j, forwardRef as N, createContext as R, useContext as p } from "react";
4
+ import { c as v } from "./clsx-OuTLNxxd.js";
5
+ import { u as U } from "./useObserveElement-BdI4zgd7.js";
6
+ import { w as q } from "./tokens-fEwCQXDv.js";
7
+ import { $ as G, b as J, d as A, f as Q, c as X, g as Y } from "./Collection--62xKPm9.js";
8
+ import { $ as Z, f as C, a as D, e as V, b as ee } from "./utils-DJhAJHk_.js";
9
+ import { $ as te } from "./Hidden-C9KWUR7b.js";
10
+ import { a as g, c as ie } from "./mergeProps-C1U1OIeJ.js";
11
+ import { $ as F } from "./filterDOMProps-D6KHYVBX.js";
12
+ import { $ as L } from "./inertValue-B7loUihk.js";
13
+ import { c as ae } from "./usePress-DuR4pVsE.js";
14
+ import { $ as ne } from "./useFocusable-ChPA2Jc7.js";
15
+ import { d as oe, e as le } from "./SelectionManager-zsWy3vsd.js";
16
+ import { $ as O } from "./useLabels-LrKQiY11.js";
17
+ import { $ as se } from "./useHasTabbableChild-BE81d_ab.js";
18
+ import { $ as re } from "./context-CGNJ3grH.js";
19
+ import { $ as I } from "./useFocusRing-DOfBqnUN.js";
20
+ import { $ as de } from "./useHover-DQvJ3Y-W.js";
21
+ import { $ as ce } from "./useSingleSelectListState-BLXvGjLI.js";
22
+ import './assets/TabList.css';const H = /* @__PURE__ */ new WeakMap();
23
+ function K(i, e, t) {
24
+ return i ? (typeof e == "string" && (e = e.replace(/\s+/g, "")), `${H.get(i)}-${t}-${e}`) : "";
25
+ }
26
+ function fe(i, e, t) {
27
+ let { key: a, isDisabled: n, shouldSelectOnPressUp: r } = i, { selectionManager: s, selectedKey: d } = e, l = a === d, o = n || e.isDisabled || e.selectionManager.isDisabled(a), { itemProps: c, isPressed: f } = oe({
28
+ selectionManager: s,
29
+ key: a,
30
+ ref: t,
31
+ isDisabled: o,
32
+ shouldSelectOnPressUp: r,
33
+ linkBehavior: "selection"
34
+ }), b = K(e, a, "tab"), P = K(e, a, "tabpanel"), { tabIndex: x } = c, $ = e.collection.getItem(a), T = F($ == null ? void 0 : $.props, {
35
+ labelable: !0
36
+ });
37
+ delete T.id;
38
+ let z = ae($ == null ? void 0 : $.props), { focusableProps: _ } = ne({
39
+ isDisabled: o
40
+ }, t);
41
+ return {
42
+ tabProps: g(T, _, z, c, {
43
+ id: b,
44
+ "aria-selected": l,
45
+ "aria-disabled": o || void 0,
46
+ "aria-controls": l ? P : void 0,
47
+ tabIndex: o ? void 0 : x,
48
+ role: "tab"
49
+ }),
50
+ isSelected: l,
51
+ isDisabled: o,
52
+ isPressed: f
53
+ };
54
+ }
55
+ function ue(i, e, t) {
56
+ let a = se(t) ? void 0 : 0;
57
+ var n;
58
+ const r = K(e, (n = i.id) !== null && n !== void 0 ? n : e == null ? void 0 : e.selectedKey, "tabpanel"), s = O({
59
+ ...i,
60
+ id: r,
61
+ "aria-labelledby": K(e, e == null ? void 0 : e.selectedKey, "tab")
62
+ });
63
+ return {
64
+ tabPanelProps: g(s, {
65
+ tabIndex: a,
66
+ role: "tabpanel",
67
+ "aria-describedby": i["aria-describedby"],
68
+ "aria-details": i["aria-details"]
69
+ })
70
+ };
71
+ }
72
+ class be {
73
+ getKeyLeftOf(e) {
74
+ return this.flipDirection ? this.getNextKey(e) : this.getPreviousKey(e);
75
+ }
76
+ getKeyRightOf(e) {
77
+ return this.flipDirection ? this.getPreviousKey(e) : this.getNextKey(e);
78
+ }
79
+ isDisabled(e) {
80
+ var t, a;
81
+ return this.disabledKeys.has(e) || !!(!((a = this.collection.getItem(e)) === null || a === void 0 || (t = a.props) === null || t === void 0) && t.isDisabled);
82
+ }
83
+ getFirstKey() {
84
+ let e = this.collection.getFirstKey();
85
+ return e != null && this.isDisabled(e) && (e = this.getNextKey(e)), e;
86
+ }
87
+ getLastKey() {
88
+ let e = this.collection.getLastKey();
89
+ return e != null && this.isDisabled(e) && (e = this.getPreviousKey(e)), e;
90
+ }
91
+ getKeyAbove(e) {
92
+ return this.tabDirection ? null : this.getPreviousKey(e);
93
+ }
94
+ getKeyBelow(e) {
95
+ return this.tabDirection ? null : this.getNextKey(e);
96
+ }
97
+ getNextKey(e) {
98
+ let t = e;
99
+ do
100
+ t = this.collection.getKeyAfter(t), t == null && (t = this.collection.getFirstKey());
101
+ while (t != null && this.isDisabled(t));
102
+ return t;
103
+ }
104
+ getPreviousKey(e) {
105
+ let t = e;
106
+ do
107
+ t = this.collection.getKeyBefore(t), t == null && (t = this.collection.getLastKey());
108
+ while (t != null && this.isDisabled(t));
109
+ return t;
110
+ }
111
+ constructor(e, t, a, n = /* @__PURE__ */ new Set()) {
112
+ this.collection = e, this.flipDirection = t === "rtl" && a === "horizontal", this.disabledKeys = n, this.tabDirection = a === "horizontal";
113
+ }
114
+ }
115
+ function $e(i, e, t) {
116
+ let { orientation: a = "horizontal", keyboardActivation: n = "automatic" } = i, { collection: r, selectionManager: s, disabledKeys: d } = e, { direction: l } = re(), o = w(() => new be(r, l, a, d), [
117
+ r,
118
+ d,
119
+ a,
120
+ l
121
+ ]), { collectionProps: c } = le({
122
+ ref: t,
123
+ selectionManager: s,
124
+ keyboardDelegate: o,
125
+ selectOnFocus: n === "automatic",
126
+ disallowEmptySelection: !0,
127
+ scrollRef: t,
128
+ linkBehavior: "selection"
129
+ }), f = ie();
130
+ H.set(e, f);
131
+ let b = O({
132
+ ...i,
133
+ id: f
134
+ });
135
+ return {
136
+ tabListProps: {
137
+ ...g(c, b),
138
+ role: "tablist",
139
+ "aria-orientation": a,
140
+ tabIndex: void 0
141
+ }
142
+ };
143
+ }
144
+ function me(i) {
145
+ var e, t;
146
+ let a = ce({
147
+ ...i,
148
+ onSelectionChange: i.onSelectionChange ? (l) => {
149
+ var o;
150
+ l != null && ((o = i.onSelectionChange) === null || o === void 0 || o.call(i, l));
151
+ } : void 0,
152
+ suppressTextValueWarning: !0,
153
+ defaultSelectedKey: (t = (e = i.defaultSelectedKey) !== null && e !== void 0 ? e : M(i.collection, i.disabledKeys ? new Set(i.disabledKeys) : /* @__PURE__ */ new Set())) !== null && t !== void 0 ? t : void 0
154
+ }), { selectionManager: n, collection: r, selectedKey: s } = a, d = W(s);
155
+ return j(() => {
156
+ let l = s;
157
+ i.selectedKey == null && (n.isEmpty || l == null || !r.getItem(l)) && (l = M(r, a.disabledKeys), l != null && n.setSelectedKeys([
158
+ l
159
+ ])), (l != null && n.focusedKey == null || !n.isFocused && l !== d.current) && n.setFocusedKey(l), d.current = l;
160
+ }), {
161
+ ...a,
162
+ isDisabled: i.isDisabled || !1
163
+ };
164
+ }
165
+ function M(i, e) {
166
+ let t = null;
167
+ if (i) {
168
+ var a, n, r, s;
169
+ for (t = i.getFirstKey(); t != null && (e.has(t) || !((n = i.getItem(t)) === null || n === void 0 || (a = n.props) === null || a === void 0) && a.isDisabled) && t !== i.getLastKey(); ) t = i.getKeyAfter(t);
170
+ t != null && (e.has(t) || !((s = i.getItem(t)) === null || s === void 0 || (r = s.props) === null || r === void 0) && r.isDisabled) && t === i.getLastKey() && (t = i.getFirstKey());
171
+ }
172
+ return t;
173
+ }
174
+ const S = /* @__PURE__ */ R(null), h = /* @__PURE__ */ R(null), k = /* @__PURE__ */ N(function(e, t) {
175
+ [e, t] = Z(e, t, S);
176
+ let { children: a, orientation: n = "horizontal" } = e;
177
+ return a = w(() => typeof a == "function" ? a({
178
+ orientation: n,
179
+ defaultChildren: null
180
+ }) : a, [
181
+ a,
182
+ n
183
+ ]), /* @__PURE__ */ u.createElement(J, {
184
+ content: a
185
+ }, (r) => /* @__PURE__ */ u.createElement(he, {
186
+ props: e,
187
+ collection: r,
188
+ tabsRef: t
189
+ }));
190
+ });
191
+ function he({ props: i, tabsRef: e, collection: t }) {
192
+ let { orientation: a = "horizontal" } = i, n = me({
193
+ ...i,
194
+ collection: t,
195
+ children: void 0
196
+ }), { focusProps: r, isFocused: s, isFocusVisible: d } = I({
197
+ within: !0
198
+ }), l = w(() => ({
199
+ orientation: a,
200
+ isFocusWithin: s,
201
+ isFocusVisible: d
202
+ }), [
203
+ a,
204
+ s,
205
+ d
206
+ ]), o = D({
207
+ ...i,
208
+ defaultClassName: "react-aria-Tabs",
209
+ values: l
210
+ });
211
+ return /* @__PURE__ */ u.createElement("div", {
212
+ ...F(i),
213
+ ...r,
214
+ ...o,
215
+ ref: e,
216
+ slot: i.slot || void 0,
217
+ "data-focused": s || void 0,
218
+ "data-orientation": a,
219
+ "data-focus-visible": d || void 0,
220
+ "data-disabled": n.isDisabled || void 0
221
+ }, /* @__PURE__ */ u.createElement(V, {
222
+ values: [
223
+ [
224
+ S,
225
+ i
226
+ ],
227
+ [
228
+ h,
229
+ n
230
+ ]
231
+ ]
232
+ }, o.children));
233
+ }
234
+ const pe = /* @__PURE__ */ N(function(e, t) {
235
+ return p(h) ? /* @__PURE__ */ u.createElement(ve, {
236
+ props: e,
237
+ forwardedRef: t
238
+ }) : /* @__PURE__ */ u.createElement(X, e);
239
+ });
240
+ function ve({ props: i, forwardedRef: e }) {
241
+ let t = p(h), { CollectionRoot: a } = p(A), { orientation: n = "horizontal", keyboardActivation: r = "automatic" } = ee(S), s = C(e), { tabListProps: d } = $e({
242
+ ...i,
243
+ orientation: n,
244
+ keyboardActivation: r
245
+ }, t, s), l = D({
246
+ ...i,
247
+ children: null,
248
+ defaultClassName: "react-aria-TabList",
249
+ values: {
250
+ orientation: n,
251
+ state: t
252
+ }
253
+ }), o = F(i);
254
+ return delete o.id, /* @__PURE__ */ u.createElement("div", {
255
+ ...o,
256
+ ...d,
257
+ ref: s,
258
+ ...l,
259
+ "data-orientation": n || void 0
260
+ }, /* @__PURE__ */ u.createElement(a, {
261
+ collection: t.collection,
262
+ persistedKeys: Y(t.selectionManager.focusedKey)
263
+ }));
264
+ }
265
+ const ye = /* @__PURE__ */ G("item", (i, e, t) => {
266
+ let a = p(h), n = C(e), { tabProps: r, isSelected: s, isDisabled: d, isPressed: l } = fe({
267
+ key: t.key,
268
+ ...i
269
+ }, a, n), { focusProps: o, isFocused: c, isFocusVisible: f } = I(), { hoverProps: b, isHovered: P } = de({
270
+ isDisabled: d,
271
+ onHoverStart: i.onHoverStart,
272
+ onHoverEnd: i.onHoverEnd,
273
+ onHoverChange: i.onHoverChange
274
+ }), x = D({
275
+ ...i,
276
+ id: void 0,
277
+ children: t.rendered,
278
+ defaultClassName: "react-aria-Tab",
279
+ values: {
280
+ isSelected: s,
281
+ isDisabled: d,
282
+ isFocused: c,
283
+ isFocusVisible: f,
284
+ isPressed: l,
285
+ isHovered: P
286
+ }
287
+ }), $ = t.props.href ? "a" : "div";
288
+ return /* @__PURE__ */ u.createElement($, {
289
+ ...g(r, o, b, x),
290
+ ref: n,
291
+ "data-selected": s || void 0,
292
+ "data-disabled": d || void 0,
293
+ "data-focused": c || void 0,
294
+ "data-focus-visible": f || void 0,
295
+ "data-pressed": l || void 0,
296
+ "data-hovered": P || void 0
297
+ }, x.children);
298
+ }), ge = /* @__PURE__ */ te(function(e, t) {
299
+ const a = p(h);
300
+ let n = C(t), { tabPanelProps: r } = ue(e, a, n), { focusProps: s, isFocused: d, isFocusVisible: l } = I(), o = a.selectedKey === e.id, c = D({
301
+ ...e,
302
+ defaultClassName: "react-aria-TabPanel",
303
+ values: {
304
+ isFocused: d,
305
+ isFocusVisible: l,
306
+ // @ts-ignore - compatibility with React < 19
307
+ isInert: L(!o),
308
+ state: a
309
+ }
310
+ });
311
+ if (!o && !e.shouldForceMount) return null;
312
+ let f = F(e);
313
+ delete f.id;
314
+ let b = o ? g(f, r, s, c) : c;
315
+ return /* @__PURE__ */ u.createElement("div", {
316
+ ...b,
317
+ ref: n,
318
+ "data-focused": d || void 0,
319
+ "data-focus-visible": l || void 0,
320
+ // @ts-ignore
321
+ inert: L(!o),
322
+ "data-inert": o ? void 0 : "true"
323
+ }, /* @__PURE__ */ u.createElement(V, {
324
+ values: [
325
+ [
326
+ S,
327
+ null
328
+ ],
329
+ [
330
+ h,
331
+ null
332
+ ]
333
+ ]
334
+ }, /* @__PURE__ */ u.createElement(A.Provider, {
335
+ value: Q
336
+ }, c.children)));
337
+ }), Pe = "_container_iuog5_4", xe = "_list_iuog5_8", Ke = "_listItem_iuog5_14", De = "_panel_iuog5_56", y = {
338
+ container: Pe,
339
+ list: xe,
340
+ listItem: Ke,
341
+ panel: De
342
+ }, Ge = ({
343
+ tabs: i,
344
+ label: e,
345
+ children: t,
346
+ className: a,
347
+ ...n
348
+ }) => {
349
+ const { width: r } = U(
350
+ typeof document > "u" ? null : document.body,
351
+ { includePadding: !0 }
352
+ ), s = n.orientation || r >= q.sm ? "horizontal" : "vertical";
353
+ if (!(i != null && i.length))
354
+ return /* @__PURE__ */ m(
355
+ k,
356
+ {
357
+ ...n,
358
+ orientation: s,
359
+ className: v(y.container, a),
360
+ children: t
361
+ }
362
+ );
363
+ if (typeof t == "function")
364
+ return console.error(
365
+ 'Only the declarative API supports passing a function to children, replace the "tabs" prop according to the documentation: https://designsystem.migrationsverket.se/components/tabs/ '
366
+ ), null;
367
+ const d = E.Children.toArray(t);
368
+ if (d.length !== i.length)
369
+ return console.error(
370
+ `The number of children must match the number of tabs. Children: ${d.length} Tabs: ${i.length}`
371
+ ), null;
372
+ const l = d.reduce(
373
+ (o, c, f) => {
374
+ if (E.isValidElement(c)) {
375
+ const b = i[f];
376
+ b && (o[b] = E.cloneElement(c, { id: b }));
377
+ }
378
+ return o;
379
+ },
380
+ {}
381
+ );
382
+ return /* @__PURE__ */ B(
383
+ k,
384
+ {
385
+ ...n,
386
+ orientation: s,
387
+ className: v(y.container, a),
388
+ children: [
389
+ /* @__PURE__ */ m(Ee, { "aria-label": e, children: i.map((o) => /* @__PURE__ */ m(
390
+ Fe,
391
+ {
392
+ id: o,
393
+ children: o
394
+ },
395
+ o
396
+ )) }),
397
+ i.map((o) => /* @__PURE__ */ m(
398
+ Se,
399
+ {
400
+ id: o,
401
+ children: l[o]
402
+ },
403
+ o
404
+ ))
405
+ ]
406
+ }
407
+ );
408
+ }, Fe = ({ className: i, ...e }) => /* @__PURE__ */ m(
409
+ ye,
410
+ {
411
+ ...e,
412
+ className: v(y.listItem, i)
413
+ }
414
+ ), Se = ({ className: i, ...e }) => /* @__PURE__ */ m(
415
+ ge,
416
+ {
417
+ className: v(y.panel, i),
418
+ ...e
419
+ }
420
+ ), Ee = ({
421
+ className: i,
422
+ ...e
423
+ }) => /* @__PURE__ */ m(
424
+ pe,
425
+ {
426
+ className: v(y.list, i),
427
+ ...e
428
+ }
429
+ );
430
+ export {
431
+ Ge as T,
432
+ Fe as a,
433
+ Se as b,
434
+ Ee as c
435
+ };