@midas-ds/components 11.2.0 → 12.0.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 (324) hide show
  1. package/AccordionItem-DEiRuizp.js +361 -0
  2. package/AccordionItem-Dhr7uo8u.cjs +1 -0
  3. package/BadgeContainer-CxVmqJ7g.cjs +1 -0
  4. package/BadgeContainer-DGJGJMPi.js +37 -0
  5. package/{Breadcrumbs-BBzSV4SK.js → Breadcrumbs-CEyKlcGU.js} +11 -11
  6. package/{Breadcrumbs-CFUryOhf.cjs → Breadcrumbs-CnGzvtbn.cjs} +1 -1
  7. package/{Button-Dq6ugqxT.cjs → Button-DQm2iqKU.cjs} +1 -1
  8. package/{Button-DExMoP5f.cjs → Button-DZzQGk-L.cjs} +1 -1
  9. package/{Button-CepQFEit.js → Button-DtC_ZOyd.js} +12 -12
  10. package/{Button-BjMaGya2.js → Button-akT6Hvug.js} +1 -1
  11. package/CHANGELOG.md +49 -0
  12. package/{Card-BRs1FKX5.js → Card-CwwVnA_a.js} +5 -5
  13. package/Card-DPfOZC7f.cjs +1 -0
  14. package/{CharacterCounter-DpBDwvLw.js → CharacterCounter-DPphWPzA.js} +5 -5
  15. package/{CharacterCounter-DSFBv3Rw.cjs → CharacterCounter-DQJVM-mZ.cjs} +1 -1
  16. package/{Checkbox-EB_SCBEo.js → Checkbox-BN_3F2Hl.js} +21 -21
  17. package/{Checkbox-Co3h0hur.cjs → Checkbox-CZtCj4yR.cjs} +1 -1
  18. package/{CheckboxGroup-DvrN1oyw.js → CheckboxGroup--xgOT1Do.js} +11 -11
  19. package/{CheckboxGroup-CT_eqERw.cjs → CheckboxGroup-DGHaqRvb.cjs} +1 -1
  20. package/{Collection-BtBX5IMY.cjs → Collection-B1xL4EdF.cjs} +1 -1
  21. package/{Collection-D2jVTmDW.js → Collection-C5vE9MtJ.js} +11 -11
  22. package/{ColorSchemeSwitch-owUryjYz.cjs → ColorSchemeSwitch-DtyJ9-5B.cjs} +3 -3
  23. package/{ColorSchemeSwitch-PiEHptw1.js → ColorSchemeSwitch-DyZ9FAKG.js} +12 -12
  24. package/{ComboBox-DfJ_aJrf.js → ComboBox-Dn3tQzri.js} +93 -97
  25. package/{ComboBox-D_jh7TKo.cjs → ComboBox-UadZMhiR.cjs} +1 -1
  26. package/{DateField-BURrxhil.cjs → DateField-CNEoLyf5.cjs} +1 -1
  27. package/{DateField-DKCbEonm.js → DateField-CZmLugT0.js} +4 -4
  28. package/{DateInputDivider-ToFY-yjB.cjs → DateInputDivider-CCjiq90K.cjs} +1 -1
  29. package/{DateInputDivider-BmvqW1Hk.js → DateInputDivider-CJEGWmG0.js} +22 -22
  30. package/{DateRangePicker-DkIAEIIj.cjs → DateRangePicker-DhgLEa9P.cjs} +2 -2
  31. package/{DateRangePicker-B5vx9onl.js → DateRangePicker-WQ97Psz7.js} +22 -22
  32. package/{Dialog-DtHk3eXI.cjs → Dialog-BT0tVGQb.cjs} +1 -1
  33. package/{Dialog-D5c_dUnB.js → Dialog-BuJdAr0D.js} +48 -48
  34. package/Dialog-DYK8lySl.cjs +1 -0
  35. package/Dialog-L53DWF0Z.js +220 -0
  36. package/{DragAndDrop-DOXLfJaA.js → DragAndDrop-DKxsUpmW.js} +9 -9
  37. package/{DragAndDrop-CSg60YQE.cjs → DragAndDrop-Dgfq6uJ0.cjs} +1 -1
  38. package/{Dropdown-Cpc2EszJ.js → Dropdown-BWbdSQ9U.js} +35 -34
  39. package/Dropdown-CJ-sujKv.cjs +6 -0
  40. package/FieldError-BlKkw9YL.js +46 -0
  41. package/{FieldError-Bv3Q6ZP-.cjs → FieldError-BvU0sueN.cjs} +1 -1
  42. package/{FileUpload-BokzdXVc.js → FileUpload-B89QfnCB.js} +13 -13
  43. package/{FileUpload-Bz9md5zc.cjs → FileUpload-KQ1XAKAc.cjs} +1 -1
  44. package/{FocusScope-vcXLOQiu.cjs → FocusScope-CAgWgk3N.cjs} +1 -1
  45. package/{FocusScope-DMsfA3bj.js → FocusScope-CEgd3xCY.js} +17 -17
  46. package/{Grid--OhtgCo6.js → Grid-B2av0vt8.js} +6 -9
  47. package/Grid-Db5wZrw6.cjs +1 -0
  48. package/{GridItem-XgHmZWXY.cjs → GridItem-BnyULDnc.cjs} +1 -1
  49. package/{GridItem-DlbSdRmB.js → GridItem-orSzD7H5.js} +27 -30
  50. package/{Group-B0vQfHDy.js → Group-B3mRMVy7.js} +11 -11
  51. package/{Group-DOpbdoAi.cjs → Group-Cdy6z9ra.cjs} +1 -1
  52. package/{Heading-D2y_kiC0.js → Heading-DDhdwRAW.js} +7 -7
  53. package/Heading-OUPkdoEJ.cjs +1 -0
  54. package/{Hidden-C9KWUR7b.js → Hidden-B5ir3Lei.js} +2 -2
  55. package/InfoBanner-DpLcq_1R.cjs +1 -0
  56. package/InfoBanner-U5hxOipC.js +99 -0
  57. package/{Input-n-Z20KbW.js → Input-BnpBRnJz.js} +9 -9
  58. package/{Input-MJji5hhq.cjs → Input-DIhhWEPW.cjs} +1 -1
  59. package/{Label-endv1fkJ.js → Label-ByWt6Lfh.js} +24 -24
  60. package/Label-COpr4xVt.cjs +1 -0
  61. package/{Layout-D0E1fOgZ.cjs → Layout-BR3Or1Ga.cjs} +2 -2
  62. package/{Layout-DtyhUz-G.js → Layout-Bdqauktv.js} +17 -17
  63. package/{Link-CibH8uRY.js → Link-CM2N5Jq-.js} +7 -7
  64. package/{Link-ovwNVMfg.js → Link-Dnnv00g9.js} +1 -1
  65. package/{Link-ESjrl63P.cjs → Link-Dq8IFDBx.cjs} +1 -1
  66. package/{Link-CidjjqHb.cjs → Link-ceVlGaWQ.cjs} +1 -1
  67. package/{LinkButton-B6AWNiRn.cjs → LinkButton-BJA9_HzL.cjs} +1 -1
  68. package/{LinkButton-BkZULm2a.js → LinkButton-DH3Nfdis.js} +1 -1
  69. package/{ListBox-B0E1hdEt.cjs → ListBox-D0u9svwm.cjs} +1 -1
  70. package/{ListBox-Djy7244v.js → ListBox-y_dw__MI.js} +16 -16
  71. package/{ListBoxButton-CIqNRR3y.cjs → ListBoxButton-C2zp-gXD.cjs} +1 -1
  72. package/{ListBoxButton-sqirI6I4.js → ListBoxButton-DiseS_LX.js} +1 -1
  73. package/{ListBoxSection-Cicbu8pS.js → ListBoxSection-Cv-gN76G.js} +9 -9
  74. package/{ListBoxSection-BYJccE4T.cjs → ListBoxSection-DtsigmC1.cjs} +1 -1
  75. package/{ListKeyboardDelegate-ZKBk2IId.cjs → ListKeyboardDelegate-fZKXmHAk.cjs} +1 -1
  76. package/{ListKeyboardDelegate-CHki611g.js → ListKeyboardDelegate-mcrZobNa.js} +2 -2
  77. package/{Logo-BpH0HC91.cjs → Logo-BW5NXAdu.cjs} +1 -1
  78. package/{Logo-ME4ffCue.js → Logo-qkVS1MCN.js} +1 -1
  79. package/{OverlayArrow-DpZ1FqOd.cjs → OverlayArrow-8praV_Xy.cjs} +1 -1
  80. package/{OverlayArrow-DB_aVTVM.js → OverlayArrow-DfkRZlgG.js} +4 -4
  81. package/{Popover-BDvKByTT.cjs → Popover-C5chAY42.cjs} +1 -1
  82. package/{Popover-Tniqbaes.js → Popover-viLqHHX2.js} +2 -2
  83. package/{PressResponder-C3APAKsz.js → PressResponder-B_Zqu7b1.js} +9 -9
  84. package/PressResponder-Bm3_RM9c.cjs +1 -0
  85. package/{ProgressBar-ClysdvqU.cjs → ProgressBar-D5mNQTID.cjs} +1 -1
  86. package/{ProgressBar-DTn23Zkr.js → ProgressBar-wQirOG1N.js} +2 -2
  87. package/{Radio-CCN3o3s-.js → Radio-BIomn_sP.js} +23 -23
  88. package/{Radio-Cz0vLIBw.cjs → Radio-CxvJ5Wrl.cjs} +1 -1
  89. package/{RangeCalendar-BY82hPRu.cjs → RangeCalendar-BvvZ2SBj.cjs} +1 -1
  90. package/{RangeCalendar-BCruEq9d.js → RangeCalendar-DGGMbb0j.js} +19 -19
  91. package/{SSRProvider-40TXmsUG.js → SSRProvider-D8lZ0o6A.js} +5 -5
  92. package/{SSRProvider-Bc-sMhsT.cjs → SSRProvider-DZRLwxPS.cjs} +1 -1
  93. package/{SearchField-nwlyszwt.js → SearchField-B0dlPqsW.js} +6 -6
  94. package/{SearchField-QFyuaT-K.cjs → SearchField-Ma3KB8Em.cjs} +2 -2
  95. package/{Select-MwvnbChP.js → Select-769RSZ9V.js} +114 -114
  96. package/{Select-lhIwwJL7.cjs → Select-Go5x0zWl.cjs} +1 -1
  97. package/{SelectionManager-BKrZ_mMO.js → SelectionManager-BdKKuso-.js} +9 -9
  98. package/{SelectionManager-BJjqIWtf.cjs → SelectionManager-BvREZgeu.cjs} +1 -1
  99. package/{Separator-DvvVAypT.js → Separator-CggS0R7Q.js} +4 -4
  100. package/{Separator-DPLEx950.cjs → Separator-DBsDhqCr.cjs} +1 -1
  101. package/{Spinner-VSyPhiJ9.js → Spinner-AXFRWuT6.js} +2 -2
  102. package/{Spinner-vof0Y9Hh.cjs → Spinner-yHx_DX_4.cjs} +1 -1
  103. package/TabList-0gj27e_e.js +386 -0
  104. package/TabList-Cqpup53E.cjs +1 -0
  105. package/Table-BhtlNY9P.cjs +16 -0
  106. package/{Table-DGTwyh7U.js → Table-CTS0J_sQ.js} +289 -268
  107. package/{Tag-rI-NhuT0.js → Tag-B9M-nBTM.js} +49 -49
  108. package/{Tag-bYq-wf5D.cjs → Tag-DkW6zaIS.cjs} +1 -1
  109. package/{Text-DcZqSUN9.js → Text--KL3Auo7.js} +3 -3
  110. package/{Text-BPcfhYQ9.js → Text-BUDAzDjW.js} +1 -1
  111. package/{Text-DBHWi5gA.cjs → Text-DA_gK6a2.cjs} +1 -1
  112. package/{Text-CfcjRtke.cjs → Text-wuw0HQoa.cjs} +1 -1
  113. package/TextArea-CSrrYY05.cjs +1 -0
  114. package/{TextArea-CrEALC58.js → TextArea-DphcH6wE.js} +16 -16
  115. package/{TextField-Dma22dnD.js → TextField-CsyRTSEG.js} +13 -13
  116. package/{TextField-BAX93sq7.cjs → TextField-P5yICj5z.cjs} +1 -1
  117. package/Toast-BEh5yYzO.cjs +1 -0
  118. package/{Toast-CWt_mNIg.js → Toast-BnzpC_5v.js} +130 -137
  119. package/{ToggleButtonGroup-DZ_wo0qx.cjs → ToggleButtonGroup-BwFAhFEi.cjs} +1 -1
  120. package/{ToggleButtonGroup-98z8Dw8-.js → ToggleButtonGroup-CuxAKB3-.js} +7 -7
  121. package/{Tooltip-pN5W3IK6.cjs → Tooltip-Bz0xCZSw.cjs} +1 -1
  122. package/{Tooltip-DjNc93tV.js → Tooltip-EuEQtHZj.js} +12 -12
  123. package/{VisuallyHidden-CYfmTSCD.js → VisuallyHidden-BKslUoMJ.js} +8 -8
  124. package/{VisuallyHidden-Doyzl0F7.cjs → VisuallyHidden-DxDOcIsh.cjs} +1 -1
  125. package/accordion/Accordion.d.ts +8 -2
  126. package/accordion/AccordionContext.d.ts +4 -0
  127. package/accordion/AccordionItem.d.ts +6 -4
  128. package/accordion/index.cjs +1 -1
  129. package/accordion/index.js +1 -1
  130. package/assets/AccordionItem.css +1 -1
  131. package/assets/BadgeContainer.css +1 -1
  132. package/assets/Button.css +1 -1
  133. package/assets/DateRangePicker.css +1 -1
  134. package/assets/Dialog.css +1 -1
  135. package/assets/LinkButton.css +1 -1
  136. package/assets/Table.css +1 -1
  137. package/assets/theme.css +1 -0
  138. package/badge/index.cjs +1 -1
  139. package/badge/index.js +1 -1
  140. package/breadcrumbs/Breadcrumbs.d.ts +0 -2
  141. package/breadcrumbs/index.cjs +1 -1
  142. package/breadcrumbs/index.js +1 -1
  143. package/button/index.cjs +1 -1
  144. package/button/index.js +1 -1
  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/checkbox/index.cjs +1 -1
  152. package/checkbox/index.js +2 -2
  153. package/color-scheme-switch/index.cjs +1 -1
  154. package/color-scheme-switch/index.js +1 -1
  155. package/combobox/ComboBox.d.ts +0 -4
  156. package/combobox/index.cjs +1 -1
  157. package/combobox/index.d.ts +1 -2
  158. package/combobox/index.js +2 -3
  159. package/combobox/types.d.ts +0 -13
  160. package/common/icon-map.d.ts +6 -0
  161. package/common/types.d.ts +8 -0
  162. package/{context-CGNJ3grH.js → context-Dl_saGB6.js} +11 -11
  163. package/{context-Df3XbgBG.cjs → context-UOrD6Zxk.cjs} +1 -1
  164. package/date-field/index.cjs +1 -1
  165. package/date-field/index.js +2 -2
  166. package/date-picker/index.cjs +1 -1
  167. package/date-picker/index.js +1 -1
  168. package/dropdown/Dropdown.d.ts +7 -1
  169. package/dropdown/index.cjs +1 -1
  170. package/dropdown/index.js +1 -1
  171. package/field-error/index.cjs +1 -1
  172. package/field-error/index.js +1 -1
  173. package/file-upload/index.cjs +1 -1
  174. package/file-upload/index.js +1 -1
  175. package/grid/Grid.d.ts +0 -8
  176. package/grid/GridItem.d.ts +0 -8
  177. package/grid/index.cjs +1 -1
  178. package/grid/index.d.ts +2 -2
  179. package/grid/index.js +4 -6
  180. package/heading/index.cjs +1 -1
  181. package/heading/index.js +1 -1
  182. package/icon-map-9XcghDra.cjs +11 -0
  183. package/icon-map-uS87FT_Q.js +43 -0
  184. package/{index-CGRFP4CC.js → index-BSMrH_Du.js} +7 -7
  185. package/{index-Dsz3aiWt.cjs → index-D97L3EBk.cjs} +2 -2
  186. package/index.cjs +1 -1
  187. package/index.js +108 -111
  188. package/inertValue-BWmZ1afe.cjs +1 -0
  189. package/info-banner/InfoBanner.d.ts +18 -10
  190. package/info-banner/index.cjs +1 -1
  191. package/info-banner/index.js +1 -1
  192. package/label/index.cjs +1 -1
  193. package/label/index.js +1 -1
  194. package/layout/index.cjs +1 -1
  195. package/layout/index.js +1 -1
  196. package/link/index.cjs +1 -1
  197. package/link/index.js +2 -2
  198. package/link-button/index.cjs +1 -1
  199. package/link-button/index.js +2 -2
  200. package/list-box/index.cjs +1 -1
  201. package/list-box/index.js +2 -2
  202. package/logo/index.cjs +1 -1
  203. package/logo/index.js +1 -1
  204. package/{mergeProps-C1U1OIeJ.js → mergeProps-BYJQ6N1s.js} +11 -11
  205. package/{mergeProps-B5KXZAI3.cjs → mergeProps-C7Sx47fA.cjs} +1 -1
  206. package/modal/index.cjs +1 -1
  207. package/modal/index.js +2 -2
  208. package/package.json +4 -1
  209. package/popover/index.cjs +1 -1
  210. package/popover/index.js +1 -1
  211. package/progress-bar/index.cjs +1 -1
  212. package/progress-bar/index.js +1 -1
  213. package/radio/index.cjs +1 -1
  214. package/radio/index.js +1 -1
  215. package/search-field/index.cjs +1 -1
  216. package/search-field/index.js +1 -1
  217. package/select/index.cjs +1 -1
  218. package/select/index.d.ts +1 -1
  219. package/select/index.js +1 -1
  220. package/select/types.d.ts +1 -13
  221. package/spinner/index.cjs +1 -1
  222. package/spinner/index.js +1 -1
  223. package/table/Table.d.ts +7 -12
  224. package/table/index.cjs +1 -1
  225. package/table/index.js +1 -1
  226. package/tabs/Tabs.d.ts +0 -12
  227. package/tabs/index.cjs +1 -1
  228. package/tabs/index.js +1 -1
  229. package/tag/Tag.d.ts +2 -1
  230. package/tag/index.cjs +1 -1
  231. package/tag/index.js +1 -1
  232. package/text/index.cjs +1 -1
  233. package/text/index.js +1 -1
  234. package/textfield/index.cjs +1 -1
  235. package/textfield/index.js +1 -1
  236. package/theme/index.cjs +1 -1
  237. package/theme/index.d.ts +36 -12
  238. package/theme/index.js +12 -11
  239. package/theme/tokens.d.ts +36 -18
  240. package/toast/Toast.d.ts +2 -1
  241. package/toast/index.cjs +1 -1
  242. package/toast/index.js +1 -1
  243. package/toggle-button/index.cjs +1 -1
  244. package/toggle-button/index.js +1 -1
  245. package/tokens-BWo7EvNX.cjs +1 -0
  246. package/{tokens-CqvelUoA.js → tokens-BtEBd3jO.js} +69 -31
  247. package/tooltip/index.cjs +1 -1
  248. package/tooltip/index.js +1 -1
  249. package/{useButton-BoIV3kDJ.js → useButton-CWHoXYnj.js} +3 -3
  250. package/{useButton-D60q0SQw.cjs → useButton-CwOQUGtY.cjs} +1 -1
  251. package/{useDateFormatter-C7BJgoDR.js → useDateFormatter-DiIUdTak.js} +2 -2
  252. package/{useDateFormatter-BJBt0jk_.cjs → useDateFormatter-bzjwqA2K.cjs} +1 -1
  253. package/{useDescription-CPo72trh.cjs → useDescription-ByNlNIRU.cjs} +1 -1
  254. package/{useDescription-DYfKjGGU.js → useDescription-LmB1V4Tg.js} +1 -1
  255. package/useEvent-CGRyLM2c.cjs +1 -0
  256. package/{useEvent-CigwyJOw.js → useEvent-DqWz89vg.js} +1 -1
  257. package/{useField-CefQB81E.js → useField-5CEdtfab.js} +2 -2
  258. package/{useField-D1UkzeaI.cjs → useField-CoQAzygg.cjs} +1 -1
  259. package/{useFilter-DsOxD9JB.js → useFilter-BKQT28sh.js} +1 -1
  260. package/{useFilter-BhM2yVO3.cjs → useFilter-Bjh5dq2Q.cjs} +1 -1
  261. package/{useFocusRing-B-A1OLhU.cjs → useFocusRing-BM-zcH6L.cjs} +1 -1
  262. package/{useFocusRing-DOfBqnUN.js → useFocusRing-HoJn20X5.js} +2 -2
  263. package/{useFocusWithin-T1ifEM_s.js → useFocusWithin-Cn18Myw6.js} +1 -1
  264. package/{useFocusWithin-CG8mAt2D.cjs → useFocusWithin-o0WjCpEB.cjs} +1 -1
  265. package/{useFocusable-D7I1ujkW.cjs → useFocusable-DbmryjUH.cjs} +1 -1
  266. package/{useFocusable-BjE42axF.js → useFocusable-ZjCKo1ed.js} +14 -14
  267. package/{useFormValidation-BzzruZKm.js → useFormValidation-BW2NSTM4.js} +2 -2
  268. package/{useFormValidation-BlFGdPZB.cjs → useFormValidation-DSRwb9US.cjs} +1 -1
  269. package/useHasTabbableChild-CogBR_6o.cjs +1 -0
  270. package/{useHasTabbableChild-BgEe5J35.js → useHasTabbableChild-CyOmqumh.js} +2 -2
  271. package/{useHighlightSelectionDescription-DmbDkFGY.cjs → useHighlightSelectionDescription-DAhPdEG6.cjs} +1 -1
  272. package/{useHighlightSelectionDescription-xr_16pKd.js → useHighlightSelectionDescription-DTxHtOsw.js} +5 -5
  273. package/{useHover-BE_XKZKe.cjs → useHover-CaFzQrR_.cjs} +1 -1
  274. package/{useHover-DQvJ3Y-W.js → useHover-D8fja4GW.js} +6 -6
  275. package/{useLabels-CSU0kbtJ.cjs → useLabels-BtDN_ALM.cjs} +1 -1
  276. package/{useLabels-LrKQiY11.js → useLabels-DZlvh4P4.js} +1 -1
  277. package/{useListState-wLau6fXo.cjs → useListState-TtWy_rDI.cjs} +1 -1
  278. package/{useListState-B3c3xcNW.js → useListState-e7cL-FOK.js} +1 -1
  279. package/{useLocalizedStringFormatter-BO2iZEL0.cjs → useLocalizedStringFormatter-BSac43NO.cjs} +1 -1
  280. package/useLocalizedStringFormatter-CHAo1AyN.cjs +1 -0
  281. package/{useLocalizedStringFormatter-CL9MUZ8A.js → useLocalizedStringFormatter-CSEh15AZ.js} +1 -1
  282. package/{useLocalizedStringFormatter-N0AyjzbM.js → useLocalizedStringFormatter-aOhh7wdl.js} +1 -1
  283. package/useObserveElement-BzEr5D32.cjs +1 -0
  284. package/{usePress-BooY_CAy.cjs → usePress-BOGIOlm8.cjs} +2 -2
  285. package/{usePress-BW47IcyU.js → usePress-B_jgTf4k.js} +105 -105
  286. package/{useSingleSelectListState-DlO5H9N-.cjs → useSingleSelectListState-BiJMNaOl.cjs} +1 -1
  287. package/{useSingleSelectListState-DdBsBWKG.js → useSingleSelectListState-D7LjjoUJ.js} +1 -1
  288. package/{useTextField-DnRrCg5o.cjs → useTextField-BVIOd8Ld.cjs} +1 -1
  289. package/{useTextField-DjxayZsV.js → useTextField-DFkSHoQN.js} +11 -11
  290. package/{useUpdateEffect-C5YQs_1w.cjs → useUpdateEffect-sk3kiVGz.cjs} +1 -1
  291. package/{utils-DHNZrQmj.cjs → utils-BM2vxlNA.cjs} +1 -1
  292. package/{utils-Dvdohqm9.cjs → utils-C5-CzvX2.cjs} +1 -1
  293. package/{utils-CoCR_Fce.js → utils-CuqJqFqQ.js} +1 -1
  294. package/{utils-KLjWgdLR.js → utils-KYuflGZt.js} +10 -10
  295. package/AccordionItem-BPOQqTkQ.js +0 -323
  296. package/AccordionItem-CS-QKqrU.cjs +0 -1
  297. package/BadgeContainer-CKBIZWsc.js +0 -37
  298. package/BadgeContainer-DWVHS5dn.cjs +0 -1
  299. package/Card-cdL5669N.cjs +0 -1
  300. package/Dialog-CxHiZorC.cjs +0 -1
  301. package/Dialog-DuGcBeNN.js +0 -212
  302. package/Dropdown-CYakzdJg.cjs +0 -6
  303. package/FieldError-CDCvUjK5.js +0 -46
  304. package/Grid-DVQtOcu9.cjs +0 -1
  305. package/Heading-CKTR4sOz.cjs +0 -1
  306. package/InfoBanner-CzwbOdRG.cjs +0 -1
  307. package/InfoBanner-D05poAe3.js +0 -91
  308. package/Label-ChjDdBlv.cjs +0 -1
  309. package/PressResponder-4jE_HLu3.cjs +0 -1
  310. package/TabList-CWMlbijV.cjs +0 -1
  311. package/TabList-VpTv_Xff.js +0 -435
  312. package/Table-DGYC-sDq.cjs +0 -16
  313. package/TextArea-DJKHFKuI.cjs +0 -1
  314. package/Toast-DdmSvNaO.cjs +0 -1
  315. package/circle-check-BErh6TKu.js +0 -26
  316. package/circle-check-OVUGxwp9.cjs +0 -11
  317. package/inertValue-B3AFhVG4.cjs +0 -1
  318. package/tokens-5PzK5zK7.cjs +0 -1
  319. package/triangle-alert-B_qAPmWC.js +0 -21
  320. package/triangle-alert-BviJNFjf.cjs +0 -6
  321. package/useEvent-DPxMu-X9.cjs +0 -1
  322. package/useHasTabbableChild-CoQRpNbC.cjs +0 -1
  323. package/useLocalizedStringFormatter-BiX5BTlb.cjs +0 -1
  324. package/useObserveElement-MhzEsCkX.cjs +0 -1
@@ -1,46 +0,0 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import * as f from "react";
3
- import d, { createContext as m, forwardRef as s, useContext as c } from "react";
4
- import { a as u } from "./utils-KLjWgdLR.js";
5
- import { a as $ } from "./Text-DcZqSUN9.js";
6
- import { $ as E } from "./filterDOMProps-D6KHYVBX.js";
7
- import { c as p } from "./clsx-OuTLNxxd.js";
8
- import { T as v } from "./Text-BPcfhYQ9.js";
9
- import './assets/FieldError.css';const l = /* @__PURE__ */ m(null), x = /* @__PURE__ */ s(function(o, r) {
10
- let t = c(l);
11
- return t != null && t.isInvalid ? /* @__PURE__ */ d.createElement(b, {
12
- ...o,
13
- ref: r
14
- }) : null;
15
- }), b = /* @__PURE__ */ s((e, o) => {
16
- let r = c(l), t = E(e), n = u({
17
- ...e,
18
- defaultClassName: "react-aria-FieldError",
19
- defaultChildren: r.validationErrors.length === 0 ? void 0 : r.validationErrors.join(" "),
20
- values: r
21
- });
22
- return n.children == null ? null : /* @__PURE__ */ d.createElement($, {
23
- slot: "errorMessage",
24
- ...t,
25
- ...n,
26
- ref: o
27
- });
28
- }), C = "_fieldError_17ine_4", F = {
29
- fieldError: C
30
- }, w = f.forwardRef(
31
- (e, o) => {
32
- const { children: r, isInvalid: t } = e, n = p(F.fieldError, e.className), a = f.useContext(l);
33
- return !a && t && typeof r != "function" ? /* @__PURE__ */ i(v, { className: n, children: r }) : a != null && a.isInvalid ? /* @__PURE__ */ i(
34
- x,
35
- {
36
- ...e,
37
- ref: o,
38
- className: n
39
- }
40
- ) : null;
41
- }
42
- );
43
- export {
44
- l as $,
45
- w as F
46
- };
package/Grid-DVQtOcu9.cjs DELETED
@@ -1 +0,0 @@
1
- "use strict";const l=require("react/jsx-runtime"),s=require("./GridItem-XgHmZWXY.cjs"),a=require("./clsx-C11secjj.cjs"),t=({children:i,fluid:r=!1,isContained:c=!1,removeMargins:n=!1,...e})=>l.jsx("div",{...e,className:a.clsx(s.styles.container,r&&s.styles.fluid,c&&s.styles.contained,n&&s.styles.removeMargins,e.className),children:l.jsx("div",{className:s.styles.flex,children:i})}),d=t;exports.Flex=d;exports.Grid=t;
@@ -1 +0,0 @@
1
- "use strict";require('./assets/Heading.css');const o=require("react/jsx-runtime"),i=require("./clsx-C11secjj.cjs"),u=require("./RSPContexts-D8hmBfGm.cjs"),_=require("./utils-DHNZrQmj.cjs"),f=require("react"),d=f.forwardRef(function(t,s){[t,s]=_.$64fa3d84918910a7$export$29f1550f4b0d4415(t,s,u.$4e85f108e88277b8$export$d688439359537581);let{children:c,level:h=3,className:n,...a}=t,l=`h${h}`;return f.createElement(l,{...a,ref:s,className:n??"react-aria-Heading"},c)}),$="_h1_f2fu6_4",x="_h2_f2fu6_5",m="_h3_f2fu6_6",q="_h4_f2fu6_7",v="_h5_f2fu6_8",g="_h6_f2fu6_9",e={h1:$,h2:x,h3:m,h4:q,h5:v,h6:g},H=({children:r,className:t,isExpressive:s=!1,level:c=3,elementType:h,...n})=>{const a=h&&parseInt(h.split("h")[1]);return o.jsx(d,{level:a||c,className:i.clsx([e.h1,e.h2,e.h3,e.h4,e.h5,e.h6][c-1],t),...s&&{"data-expressive":!0},...n,children:r})};exports.Heading=H;
@@ -1 +0,0 @@
1
- "use strict";require('./assets/InfoBanner.css');const s=require("react/jsx-runtime"),_=require("react"),h=require("./clsx-C11secjj.cjs"),m=require("./Button-Dq6ugqxT.cjs"),p=require("./triangle-alert-BviJNFjf.cjs"),i=require("./circle-check-OVUGxwp9.cjs"),z=require("./info-Dj6SyPex.cjs"),k=require("./x-rV-nu490.cjs"),b=require("./useLocalizedStringFormatter-BO2iZEL0.cjs");function x(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const c=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,c.get?c:{enumerable:!0,get:()=>e[n]})}}return r.default=e,Object.freeze(r)}const j=x(_),q='"../theme/tokens.css"',w="_infoBanner_cszz3_4",v="_success_cszz3_14",B="_info_cszz3_4",N="_important_cszz3_24",S="_warning_cszz3_29",y="_content_cszz3_38",C="_heading_cszz3_44",I="_text_cszz3_49",O="_icon_cszz3_55",A="_dismissable_cszz3_60",t={tokens:q,"--font-family":'"Inter", sans-serif',"--text-primary":"light-dark(#171717, #f2f2f2)","--line-height-40":"1.375rem","--support-border-success":"light-dark(#008d3c, #008d3c)","--support-background-success":"light-dark(#d5f2d9, light-dark(#f2f2f2, #262626))","--support-border-info":"light-dark(#0066cc, #0066cc)","--support-background-info":"light-dark(#eaf2f6, light-dark(#f2f2f2, #262626))","--support-border-warning":"light-dark(#e62323, #e62323)","--support-background-warning":"light-dark(#ffdfdf, light-dark(#f2f2f2, #262626))","--support-border-important":"light-dark(#fdb813, #fdb813)","--support-background-important":"light-dark(#fff8e1, light-dark(#f2f2f2, #262626))",infoBanner:w,success:v,info:B,important:N,warning:S,content:y,heading:C,text:I,icon:O,dismissable:A},P={close:"Close"},R={close:"Stäng"},D={en:P,sv:R},F={success:i.CircleCheck,info:z.Info,important:i.CircleAlert,warning:p.TriangleAlert},L=({title:e,message:r,type:n,children:c,dismissable:a=!1,isDismissable:l=!1,...o})=>{const f=F[n],[d,u]=j.useState(!0),g=b.useLocalizedStringFormatter(D);return d?s.jsxs("div",{...o,className:h.clsx(t.infoBanner,t[n],o.className),children:[s.jsx(f,{size:20,"aria-hidden":!0,className:t.icon}),s.jsxs("div",{className:t.content,children:[e&&s.jsx("strong",{className:t.heading,children:e}),s.jsxs("div",{className:t.text,children:[r,c]})]}),(a||l)&&s.jsx("div",{className:t.dismissable,children:s.jsx(m.Button,{variant:"icon","aria-label":g.format("close"),onPress:()=>u(!1),children:s.jsx(k.X,{size:20})})})]}):null};exports.InfoBanner=L;
@@ -1,91 +0,0 @@
1
- import { jsxs as t, jsx as n } from "react/jsx-runtime";
2
- import * as p from "react";
3
- import { c as h } from "./clsx-OuTLNxxd.js";
4
- import { B as _ } from "./Button-BjMaGya2.js";
5
- import { T as u } from "./triangle-alert-B_qAPmWC.js";
6
- import { C as z, a as k } from "./circle-check-BErh6TKu.js";
7
- import { I as b } from "./info-CPK1vbOJ.js";
8
- import { X as x } from "./x-C2xUHAEl.js";
9
- import { u as w } from "./useLocalizedStringFormatter-N0AyjzbM.js";
10
- import './assets/InfoBanner.css';const v = '"../theme/tokens.css"', B = "_infoBanner_cszz3_4", N = "_success_cszz3_14", I = "_info_cszz3_4", C = "_important_cszz3_24", S = "_warning_cszz3_29", j = "_content_cszz3_38", y = "_heading_cszz3_44", A = "_text_cszz3_49", T = "_icon_cszz3_55", F = "_dismissable_cszz3_60", s = {
11
- tokens: v,
12
- "--font-family": '"Inter", sans-serif',
13
- "--text-primary": "light-dark(#171717, #f2f2f2)",
14
- "--line-height-40": "1.375rem",
15
- "--support-border-success": "light-dark(#008d3c, #008d3c)",
16
- "--support-background-success": "light-dark(#d5f2d9, light-dark(#f2f2f2, #262626))",
17
- "--support-border-info": "light-dark(#0066cc, #0066cc)",
18
- "--support-background-info": "light-dark(#eaf2f6, light-dark(#f2f2f2, #262626))",
19
- "--support-border-warning": "light-dark(#e62323, #e62323)",
20
- "--support-background-warning": "light-dark(#ffdfdf, light-dark(#f2f2f2, #262626))",
21
- "--support-border-important": "light-dark(#fdb813, #fdb813)",
22
- "--support-background-important": "light-dark(#fff8e1, light-dark(#f2f2f2, #262626))",
23
- infoBanner: B,
24
- success: N,
25
- info: I,
26
- important: C,
27
- warning: S,
28
- content: j,
29
- heading: y,
30
- text: A,
31
- icon: T,
32
- dismissable: F
33
- }, L = {
34
- close: "Close"
35
- }, M = {
36
- close: "Stäng"
37
- }, P = {
38
- en: L,
39
- sv: M
40
- }, R = {
41
- success: k,
42
- info: b,
43
- important: z,
44
- warning: u
45
- }, O = ({
46
- title: o,
47
- message: i,
48
- type: r,
49
- children: a,
50
- dismissable: c = !1,
51
- isDismissable: f = !1,
52
- ...e
53
- }) => {
54
- const d = R[r], [l, m] = p.useState(!0), g = w(P);
55
- return l ? /* @__PURE__ */ t(
56
- "div",
57
- {
58
- ...e,
59
- className: h(s.infoBanner, s[r], e.className),
60
- children: [
61
- /* @__PURE__ */ n(
62
- d,
63
- {
64
- size: 20,
65
- "aria-hidden": !0,
66
- className: s.icon
67
- }
68
- ),
69
- /* @__PURE__ */ t("div", { className: s.content, children: [
70
- o && /* @__PURE__ */ n("strong", { className: s.heading, children: o }),
71
- /* @__PURE__ */ t("div", { className: s.text, children: [
72
- i,
73
- a
74
- ] })
75
- ] }),
76
- (c || f) && /* @__PURE__ */ n("div", { className: s.dismissable, children: /* @__PURE__ */ n(
77
- _,
78
- {
79
- variant: "icon",
80
- "aria-label": g.format("close"),
81
- onPress: () => m(!1),
82
- children: /* @__PURE__ */ n(x, { size: 20 })
83
- }
84
- ) })
85
- ]
86
- }
87
- ) : null;
88
- };
89
- export {
90
- O as I
91
- };
@@ -1 +0,0 @@
1
- "use strict";require('./assets/Label.css');const t=require("react/jsx-runtime"),l=require("react"),p=require("./clsx-C11secjj.cjs"),b=require("./Button-DExMoP5f.cjs"),f=require("./Popover-BDvKByTT.cjs"),d=require("./Button-Dq6ugqxT.cjs"),v=require("./Dialog-DtHk3eXI.cjs"),g=require("./info-Dj6SyPex.cjs"),m=require("./useLocalizedStringFormatter-BO2iZEL0.cjs");function x(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const P=x(l),j="_labelBase_khdpe_4",_={labelBase:j},I="_labelPopover_1ici8_4",q="_labelPopoverTrigger_1ici8_10",u={labelPopover:I,labelPopoverTrigger:q},L={moreInfo:"More info"},O={moreInfo:"Mer information"},T={en:L,sv:O},$=({children:e,"aria-label":o})=>{const[r,s]=l.useState(!1),n=l.useContext(c),a=m.useLocalizedStringFormatter(T);return t.jsxs(v.$de32f1b87079253c$export$2e1e1122cf0cba88,{isOpen:r,onOpenChange:s,children:[t.jsx(d.Button,{variant:"icon",size:"medium",className:u.labelPopoverTrigger,"aria-label":o||a.format("moreInfo"),id:n==null?void 0:n.popoverId,children:t.jsx(g.Info,{size:20})}),t.jsx(f.Popover,{children:e})]})},c=l.createContext(void 0),y=({children:e,popover:o})=>{const r=l.useId();return o?t.jsx(c.Provider,{value:{popoverId:r},children:t.jsxs("div",{className:u.labelPopover,children:[e,t.jsx($,{...o})]})}):e},i="label",B=({children:e,className:o,elementType:r=i,...s})=>{const n={className:p.clsx(_.labelBase,o),elementType:r||i,...s},a=P.useContext(c);return t.jsx(b.$01b77f81d0f07f68$export$b04be29aa201d4f5,{...n,"aria-describedby":a==null?void 0:a.popoverId,children:e})};exports.Label=B;exports.LabelWrapper=y;
@@ -1 +0,0 @@
1
- "use strict";const s=require("./usePress-BooY_CAy.cjs"),f=require("./mergeProps-B5KXZAI3.cjs"),n=require("./utils-DHNZrQmj.cjs"),$=require("./useFocusable-D7I1ujkW.cjs"),r=require("react"),u=r.forwardRef(({children:c,...a},t)=>{let o=r.useRef(!1),e=r.useContext(s.$ae1eeba8b9eafd08$export$5165eccb35aaadb5);t=n.$df56164dff5785e2$export$4338b53315abf666(t||(e==null?void 0:e.ref));let b=f.$3ef42575df84b30b$export$9d1611c77c2fe928(e||{},{...a,ref:t,register(){o.current=!0,e&&e.register()}});return $.$e7801be82b4b2a53$export$4debdb1a3f0fa79e(e,t),r.useEffect(()=>{o.current||(process.env.NODE_ENV!=="production"&&console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),o.current=!0)},[]),r.createElement(s.$ae1eeba8b9eafd08$export$5165eccb35aaadb5.Provider,{value:b},c)});function d({children:c}){let a=r.useMemo(()=>({register:()=>{}}),[]);return r.createElement(s.$ae1eeba8b9eafd08$export$5165eccb35aaadb5.Provider,{value:a},c)}exports.$f1ab8c75478c6f73$export$3351871ee4b288b8=u;exports.$f1ab8c75478c6f73$export$cf75428e0b9ed1ea=d;
@@ -1 +0,0 @@
1
- "use strict";require('./assets/TabList.css');const h=require("react/jsx-runtime"),d=require("react"),g=require("./clsx-C11secjj.cjs"),V=require("./useObserveElement-MhzEsCkX.cjs"),A=require("./tokens-5PzK5zK7.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"),E=require("./inertValue-B3AFhVG4.cjs"),_=require("./usePress-BooY_CAy.cjs"),B=require("./useFocusable-D7I1ujkW.cjs"),I=require("./SelectionManager-BJjqIWtf.cjs"),L=require("./useLabels-CSU0kbtJ.cjs"),W=require("./useHasTabbableChild-CoQRpNbC.cjs"),U=require("./context-Df3XbgBG.cjs"),w=require("./useFocusRing-B-A1OLhU.cjs"),G=require("./useHover-BE_XKZKe.cjs"),J=require("./useSingleSelectListState-DlO5H9N-.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(d),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:o}=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:o,linkBehavior:"selection"}),b=D(e,n,"tab"),m=D(e,n,"tabpanel"),{tabIndex:K}=u,p=e.collection.getItem(n),T=S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(p==null?void 0:p.props,{labelable:!0});delete T.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(T,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 o=D(e,(a=i.id)!==null&&a!==void 0?a:e==null?void 0:e.selectedKey,"tabpanel"),l=L.$313b98861ee5dd6c$export$d6875122194c7b44({...i,id:o,"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:o,selectionManager:l,disabledKeys:c}=e,{direction:r}=U.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),s=d.useMemo(()=>new Z(o,r,n,c),[o,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:q(i.collection,i.disabledKeys?new Set(i.disabledKeys):new Set))!==null&&t!==void 0?t:void 0}),{selectionManager:a,collection:o,selectedKey:l}=n,c=d.useRef(l);return d.useEffect(()=>{let r=l;i.selectedKey==null&&(a.isEmpty||r==null||!o.getItem(r))&&(r=q(o,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 q(i,e){let t=null;if(i){var n,a,o,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||(o=l.props)===null||o===void 0)&&o.isDisabled)&&t===i.getLastKey()&&(t=i.getFirstKey())}return t}const F=d.createContext(null),y=d.createContext(null),M=d.forwardRef(function(e,t){[e,t]=$.$64fa3d84918910a7$export$29f1550f4b0d4415(e,t,F);let{children:n,orientation:a="horizontal"}=e;return n=d.useMemo(()=>typeof n=="function"?n({orientation:a,defaultChildren:null}):n,[n,a]),d.createElement(x.$e1995378a142960e$export$bf788dd355e3a401,{content:n},o=>d.createElement(ie,{props:e,collection:o,tabsRef:t}))});function ie({props:i,tabsRef:e,collection:t}){let{orientation:n="horizontal"}=i,a=te({...i,collection:t,children:void 0}),{focusProps:o,isFocused:l,isFocusVisible:c}=w.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0}),r=d.useMemo(()=>({orientation:n,isFocusWithin:l,isFocusVisible:c}),[n,l,c]),s=$.$64fa3d84918910a7$export$4d86445c2cf5e3({...i,defaultClassName:"react-aria-Tabs",values:r});return d.createElement("div",{...S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(i),...o,...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},d.createElement($.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[F,i],[y,a]]},s.children))}const ne=d.forwardRef(function(e,t){return d.useContext(y)?d.createElement(ae,{props:e,forwardedRef:t}):d.createElement(x.$e1995378a142960e$export$fb8073518f34e6ec,e)});function ae({props:i,forwardedRef:e}){let t=d.useContext(y),{CollectionRoot:n}=d.useContext(x.$7135fc7d473fd974$export$4feb769f8ddf26c5),{orientation:a="horizontal",keyboardActivation:o="automatic"}=$.$64fa3d84918910a7$export$fabf2dc03a41866e(F),l=$.$df56164dff5785e2$export$4338b53315abf666(e),{tabListProps:c}=ee({...i,orientation:a,keyboardActivation:o},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,d.createElement("div",{...s,...c,ref:l,...r,"data-orientation":a||void 0},d.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=d.useContext(y),a=$.$df56164dff5785e2$export$4338b53315abf666(e),{tabProps:o,isSelected:l,isDisabled:c,isPressed:r}=X({key:t.key,...i},n,a),{focusProps:s,isFocused:u,isFocusVisible:f}=w.$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 d.createElement(p,{...v.$3ef42575df84b30b$export$9d1611c77c2fe928(o,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=d.useContext(y);let a=$.$df56164dff5785e2$export$4338b53315abf666(t),{tabPanelProps:o}=Y(e,n,a),{focusProps:l,isFocused:c,isFocusVisible:r}=w.$f7dceffc5ad7768b$export$4e328f61c538687f(),s=n.selectedKey===e.id,u=$.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:c,isFocusVisible:r,isInert:E.$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,o,l,u):u;return d.createElement("div",{...b,ref:a,"data-focused":c||void 0,"data-focus-visible":r||void 0,inert:E.$cdc5a6778b766db2$export$a9d04c5684123369(!s),"data-inert":s?void 0:"true"},d.createElement($.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[F,null],[y,null]]},d.createElement(x.$7135fc7d473fd974$export$4feb769f8ddf26c5.Provider,{value:x.$7135fc7d473fd974$export$a164736487e3f0ae},u.children)))}),le="_container_rtudw_4",de="_list_rtudw_8",oe="_listItem_rtudw_13",ce="_panel_rtudw_55",P={container:le,list:de,listItem:oe,panel:ce},ue=({tabs:i,label:e,children:t,className:n,...a})=>{const{width:o}=V.useObserveElement(typeof document>"u"?null:document.body,{includePadding:!0}),l=a.orientation||o>=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;
@@ -1,435 +0,0 @@
1
- import { jsx as m, jsxs as B } from "react/jsx-runtime";
2
- import * as w from "react";
3
- import u, { useMemo as E, 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-CqvelUoA.js";
7
- import { $ as G, b as J, d as A, f as Q, c as X, g as Y } from "./Collection-D2jVTmDW.js";
8
- import { $ as Z, b as C, a as D, f as V, c as ee } from "./utils-KLjWgdLR.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 { d as ae } from "./usePress-BW47IcyU.js";
14
- import { a as ne } from "./useFocusable-BjE42axF.js";
15
- import { d as le, e as se } from "./SelectionManager-BKrZ_mMO.js";
16
- import { $ as O } from "./useLabels-LrKQiY11.js";
17
- import { $ as oe } from "./useHasTabbableChild-BgEe5J35.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-DdBsBWKG.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: o, selectedKey: d } = e, s = a === d, l = n || e.isDisabled || e.selectionManager.isDisabled(a), { itemProps: c, isPressed: f } = le({
28
- selectionManager: o,
29
- key: a,
30
- ref: t,
31
- isDisabled: l,
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: l
40
- }, t);
41
- return {
42
- tabProps: g(T, _, z, c, {
43
- id: b,
44
- "aria-selected": s,
45
- "aria-disabled": l || void 0,
46
- "aria-controls": s ? P : void 0,
47
- tabIndex: l ? void 0 : x,
48
- role: "tab"
49
- }),
50
- isSelected: s,
51
- isDisabled: l,
52
- isPressed: f
53
- };
54
- }
55
- function ue(i, e, t) {
56
- let a = oe(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"), o = O({
59
- ...i,
60
- id: r,
61
- "aria-labelledby": K(e, e == null ? void 0 : e.selectedKey, "tab")
62
- });
63
- return {
64
- tabPanelProps: g(o, {
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: o, disabledKeys: d } = e, { direction: s } = re(), l = E(() => new be(r, s, a, d), [
117
- r,
118
- d,
119
- a,
120
- s
121
- ]), { collectionProps: c } = se({
122
- ref: t,
123
- selectionManager: o,
124
- keyboardDelegate: l,
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 ? (s) => {
149
- var l;
150
- s != null && ((l = i.onSelectionChange) === null || l === void 0 || l.call(i, s));
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: o } = a, d = W(o);
155
- return j(() => {
156
- let s = o;
157
- i.selectedKey == null && (n.isEmpty || s == null || !r.getItem(s)) && (s = M(r, a.disabledKeys), s != null && n.setSelectedKeys([
158
- s
159
- ])), (s != null && n.focusedKey == null || !n.isFocused && s !== d.current) && n.setFocusedKey(s), d.current = s;
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, o;
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) || !((o = i.getItem(t)) === null || o === void 0 || (r = o.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 = E(() => 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: o, isFocusVisible: d } = I({
197
- within: !0
198
- }), s = E(() => ({
199
- orientation: a,
200
- isFocusWithin: o,
201
- isFocusVisible: d
202
- }), [
203
- a,
204
- o,
205
- d
206
- ]), l = D({
207
- ...i,
208
- defaultClassName: "react-aria-Tabs",
209
- values: s
210
- });
211
- return /* @__PURE__ */ u.createElement("div", {
212
- ...F(i),
213
- ...r,
214
- ...l,
215
- ref: e,
216
- slot: i.slot || void 0,
217
- "data-focused": o || 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
- }, l.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), o = C(e), { tabListProps: d } = $e({
242
- ...i,
243
- orientation: n,
244
- keyboardActivation: r
245
- }, t, o), s = D({
246
- ...i,
247
- children: null,
248
- defaultClassName: "react-aria-TabList",
249
- values: {
250
- orientation: n,
251
- state: t
252
- }
253
- }), l = F(i);
254
- return delete l.id, /* @__PURE__ */ u.createElement("div", {
255
- ...l,
256
- ...d,
257
- ref: o,
258
- ...s,
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: o, isDisabled: d, isPressed: s } = fe({
267
- key: t.key,
268
- ...i
269
- }, a, n), { focusProps: l, 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: o,
281
- isDisabled: d,
282
- isFocused: c,
283
- isFocusVisible: f,
284
- isPressed: s,
285
- isHovered: P
286
- }
287
- }), $ = t.props.href ? "a" : "div";
288
- return /* @__PURE__ */ u.createElement($, {
289
- ...g(r, l, b, x),
290
- ref: n,
291
- "data-selected": o || void 0,
292
- "data-disabled": d || void 0,
293
- "data-focused": c || void 0,
294
- "data-focus-visible": f || void 0,
295
- "data-pressed": s || 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: o, isFocused: d, isFocusVisible: s } = I(), l = a.selectedKey === e.id, c = D({
301
- ...e,
302
- defaultClassName: "react-aria-TabPanel",
303
- values: {
304
- isFocused: d,
305
- isFocusVisible: s,
306
- // @ts-ignore - compatibility with React < 19
307
- isInert: L(!l),
308
- state: a
309
- }
310
- });
311
- if (!l && !e.shouldForceMount) return null;
312
- let f = F(e);
313
- delete f.id;
314
- let b = l ? g(f, r, o, c) : c;
315
- return /* @__PURE__ */ u.createElement("div", {
316
- ...b,
317
- ref: n,
318
- "data-focused": d || void 0,
319
- "data-focus-visible": s || void 0,
320
- // @ts-ignore
321
- inert: L(!l),
322
- "data-inert": l ? 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_rtudw_4", xe = "_list_rtudw_8", Ke = "_listItem_rtudw_13", De = "_panel_rtudw_55", 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
- ), o = n.orientation || r >= q.sm ? "horizontal" : "vertical";
353
- if (!(i != null && i.length))
354
- return /* @__PURE__ */ m(
355
- k,
356
- {
357
- ...n,
358
- orientation: o,
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 = w.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 s = d.reduce(
373
- (l, c, f) => {
374
- if (w.isValidElement(c)) {
375
- const b = i[f];
376
- b && (l[b] = w.cloneElement(c, { id: b }));
377
- }
378
- return l;
379
- },
380
- {}
381
- );
382
- return /* @__PURE__ */ B(
383
- k,
384
- {
385
- ...n,
386
- orientation: o,
387
- className: v(y.container, a),
388
- children: [
389
- /* @__PURE__ */ m(we, { "aria-label": e, children: i.map((l) => /* @__PURE__ */ m(
390
- Fe,
391
- {
392
- id: l,
393
- children: l
394
- },
395
- l
396
- )) }),
397
- i.map((l) => /* @__PURE__ */ m(
398
- Se,
399
- {
400
- id: l,
401
- children: s[l]
402
- },
403
- l
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
- ), we = ({
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
- we as c
435
- };