@midas-ds/components 10.3.0 → 10.4.1

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 (409) hide show
  1. package/AccordionItem-D2QYNgZS.cjs +1 -0
  2. package/{AccordionItem-ChHpW8EW.js → AccordionItem-oeN1Cc09.js} +41 -39
  3. package/{Breadcrumbs-CwDUNIqF.js → Breadcrumbs-D8ad6xvL.js} +77 -65
  4. package/Breadcrumbs-DkJIkGG5.cjs +1 -0
  5. package/{Button-DjBChs7s.js → Button-CFYdzG0H.js} +24 -23
  6. package/Button-DExMoP5f.cjs +1 -0
  7. package/{Button-BoJl6JGM.cjs → Button-Dq6ugqxT.cjs} +1 -1
  8. package/{Button-Csih3v23.js → Button-DtSrCAf6.js} +2 -2
  9. package/Button.module-D-mPLRxe.js +14 -0
  10. package/Button.module-goCEz5qs.cjs +1 -0
  11. package/CHANGELOG.md +41 -0
  12. package/{Card-yrtGzt70.js → Card-BzJ_OEe6.js} +4 -4
  13. package/{Card-0G0mj9q5.cjs → Card-cdL5669N.cjs} +1 -1
  14. package/{CharacterCounter-CHcTDHO-.cjs → CharacterCounter-DSFBv3Rw.cjs} +1 -1
  15. package/{CharacterCounter-BL_nZHya.js → CharacterCounter-cLhqPZlk.js} +4 -4
  16. package/Checkbox-Co3h0hur.cjs +1 -0
  17. package/{Checkbox-5HINZdGu.js → Checkbox-LuUwTZ3W.js} +69 -68
  18. package/CheckboxGroup-CcTfzurp.js +160 -0
  19. package/CheckboxGroup-DWxQTABg.cjs +1 -0
  20. package/{Collection-Brgjpkne.js → Collection--62xKPm9.js} +17 -16
  21. package/Collection-BtBX5IMY.cjs +1 -0
  22. package/ColorSchemeSwitch-owUryjYz.cjs +16 -0
  23. package/{ColorSchemeSwitch-BpzQ7g0b.js → ColorSchemeSwitch-y8qKczjQ.js} +53 -36
  24. package/{ComboBox-CVDyp2a-.js → ComboBox-CZyP8Dfh.js} +310 -299
  25. package/ComboBox-Dg2xhkLC.cjs +1 -0
  26. package/{DateField-DeDhiYnW.cjs → DateField-1w5J_iyF.cjs} +1 -1
  27. package/{DateField-DhU3q-rG.js → DateField-BTROlenJ.js} +4 -4
  28. package/DateInputDivider-3BvwXXa9.cjs +1 -0
  29. package/{DateInputDivider-CF4xWsMT.js → DateInputDivider-Bi5N-C0c.js} +90 -86
  30. package/DateRangePicker-CX3830ZF.cjs +6 -0
  31. package/{DateRangePicker-ziD1_k1W.js → DateRangePicker-DmZP9laM.js} +120 -117
  32. package/Dialog-0ZBhhPyd.js +221 -0
  33. package/Dialog-CSnN6baf.cjs +1 -0
  34. package/{Dialog-D14MbJ7o.js → Dialog-CtVrVuMr.js} +101 -98
  35. package/Dialog-DnMwnqiC.cjs +1 -0
  36. package/DragAndDrop-BoEd260f.cjs +1 -0
  37. package/{DragAndDrop-o3ruz_SR.js → DragAndDrop-DkSTL28C.js} +2 -2
  38. package/{Dropdown-Df58j43I.js → Dropdown-BEAMfAxj.js} +19 -19
  39. package/Dropdown-By91MEV2.cjs +6 -0
  40. package/FieldError-B3YFj-an.js +23 -0
  41. package/FieldError-BbR-29BM.js +28 -0
  42. package/FieldError-MVsU-Mgw.cjs +1 -0
  43. package/FieldError-bRTpchvr.cjs +1 -0
  44. package/{FileUpload-D6qoEAjn.js → FileUpload-DvQdIZ6k.js} +496 -475
  45. package/{FileUpload-CxCOtyB9.cjs → FileUpload-vf0oJd0K.cjs} +2 -2
  46. package/{FocusScope-CxkURfoc.js → FocusScope-D_hwN_TJ.js} +25 -24
  47. package/FocusScope-vcXLOQiu.cjs +1 -0
  48. package/Group-CpkUzEAs.js +45 -0
  49. package/Group-DOpbdoAi.cjs +1 -0
  50. package/{Heading-mHhCbGjY.cjs → Heading-CKTR4sOz.cjs} +1 -1
  51. package/{Heading-BFtiin0g.js → Heading-NxtGri2i.js} +1 -1
  52. package/InfoBanner-CzwbOdRG.cjs +1 -0
  53. package/{InfoBanner-BLM-TJJ6.js → InfoBanner-yj90XVEP.js} +47 -39
  54. package/{Input-BTzwcf72.js → Input-LnjmFI1x.js} +13 -12
  55. package/Input-MJji5hhq.cjs +1 -0
  56. package/Label-D2GmP8_2.js +78 -0
  57. package/Label-E3LhQfNv.cjs +1 -0
  58. package/Layout-BMNgqjXv.js +498 -0
  59. package/Layout-Ri7XQHFp.cjs +16 -0
  60. package/Link-BCVI5W_i.js +59 -0
  61. package/{Link-yNO2-sqx.js → Link-Bn8V3ZI0.js} +8 -7
  62. package/Link-CVvnCOGP.cjs +6 -0
  63. package/Link-CidjjqHb.cjs +1 -0
  64. package/LinkButton-B6AWNiRn.cjs +6 -0
  65. package/LinkButton-Cui-gvAk.js +69 -0
  66. package/ListBox-BCz5-23H.cjs +1 -0
  67. package/{ListBox-GnVK_Pdq.js → ListBox-C-isJIHL.js} +101 -99
  68. package/{ListBoxButton-D_J3jlP0.js → ListBoxButton-C_krklY0.js} +1 -1
  69. package/{ListBoxButton-DPBrtXyv.cjs → ListBoxButton-DNm3gvcT.cjs} +1 -1
  70. package/{ListBoxSection-C0BGnpB4.js → ListBoxSection-BVR2xtOH.js} +9 -9
  71. package/ListBoxSection-CfQZoURJ.cjs +1 -0
  72. package/{ListKeyboardDelegate-DTg9h4v6.cjs → ListKeyboardDelegate-CPsZ7D83.cjs} +1 -1
  73. package/{ListKeyboardDelegate-DNI8GQtX.js → ListKeyboardDelegate-CY6t6y1t.js} +3 -3
  74. package/LocalizedStringFormatter-C0C54hjf.cjs +1 -0
  75. package/LocalizedStringFormatter-D-4Qyql0.js +77 -0
  76. package/Logo-BpH0HC91.cjs +1 -0
  77. package/{Logo-BIrOEINM.js → Logo-ME4ffCue.js} +34 -26
  78. package/{OverlayArrow-CDLXPTew.js → OverlayArrow-CfhSYL46.js} +57 -56
  79. package/OverlayArrow-DpZ1FqOd.cjs +1 -0
  80. package/{Popover-BGGXeD54.js → Popover-C8VY1YKi.js} +2 -2
  81. package/{Popover-CqNWzPf-.cjs → Popover-CnAsw3wI.cjs} +1 -1
  82. package/{ProgressBar-DMSg-Prr.js → ProgressBar-Bpq-hyZa.js} +2 -2
  83. package/{ProgressBar-Jbg28j2a.cjs → ProgressBar-D4lOEhAh.cjs} +1 -1
  84. package/{Radio-Cz29wPXd.js → Radio-BPcq9kW5.js} +50 -47
  85. package/Radio-CwNbUGah.cjs +1 -0
  86. package/{RangeCalendar-RAlAHlNL.js → RangeCalendar-6miAJVoO.js} +349 -342
  87. package/RangeCalendar-CAI1PRDo.cjs +11 -0
  88. package/SSRProvider-40TXmsUG.js +50 -0
  89. package/SSRProvider-Bc-sMhsT.cjs +1 -0
  90. package/SearchField-CDyD5iWr.js +371 -0
  91. package/SearchField-DEoGi9xv.cjs +6 -0
  92. package/Select-B2wYDnAU.js +665 -0
  93. package/Select-nRN944QZ.cjs +1 -0
  94. package/SelectionManager-D0jYUYcy.cjs +1 -0
  95. package/{SelectionManager-B4ORduja.js → SelectionManager-zsWy3vsd.js} +91 -90
  96. package/{Separator-DECIYLtZ.cjs → Separator-CxF-3jhR.cjs} +1 -1
  97. package/{Separator-Cu9fYKUM.js → Separator-Dn5LYN5I.js} +4 -4
  98. package/Spinner-VSyPhiJ9.js +51 -0
  99. package/Spinner-vof0Y9Hh.cjs +6 -0
  100. package/TabList-CheXtBJm.cjs +1 -0
  101. package/TabList-D0qzIjSx.js +435 -0
  102. package/Table-DAhnYYIA.cjs +16 -0
  103. package/{Table-F4oYBtUM.js → Table-zKvjzd9t.js} +66 -64
  104. package/{Tag-Du7GvSv2.js → Tag-BoqT5nbh.js} +142 -140
  105. package/Tag-t-aJVo3W.cjs +1 -0
  106. package/Text-92cPh38G.js +15 -0
  107. package/{Text-B2K-BJKQ.cjs → Text-CfcjRtke.cjs} +1 -1
  108. package/{Text-3MNwRMpI.cjs → Text-DBHWi5gA.cjs} +1 -1
  109. package/{Text-jWWg0B20.js → Text-DlKqpvSa.js} +1 -1
  110. package/TextArea-B5und61h.cjs +1 -0
  111. package/TextArea-Pxr-eLXe.js +119 -0
  112. package/TextField-BdK9KEQ5.cjs +1 -0
  113. package/{TextField-C-hTPukq.js → TextField-ByDJkig9.js} +23 -22
  114. package/Toast-DdmSvNaO.cjs +1 -0
  115. package/{Toast-Btg21Xge.js → Toast-DfKiA5hp.js} +79 -72
  116. package/ToggleButtonGroup-DZ_wo0qx.cjs +1 -0
  117. package/{ToggleButtonGroup-B5yz1tm2.js → ToggleButtonGroup-DhlfvYGg.js} +47 -46
  118. package/{Tooltip-CMLs7WMw.js → Tooltip-5mLWn_wO.js} +29 -27
  119. package/Tooltip-pN5W3IK6.cjs +1 -0
  120. package/{VisuallyHidden-ZCYf65q4.js → VisuallyHidden-CYfmTSCD.js} +2 -2
  121. package/VisuallyHidden-Doyzl0F7.cjs +1 -0
  122. package/accordion/index.cjs +1 -1
  123. package/accordion/index.js +1 -1
  124. package/arrow-right-BGd86zzR.cjs +6 -0
  125. package/{arrow-right-Dg8sttFO.js → arrow-right-uemUGIg8.js} +5 -5
  126. package/assets/Button.css +1 -1
  127. package/assets/Checkbox.css +1 -1
  128. package/assets/FileUpload.css +1 -1
  129. package/assets/LinkButton.css +1 -1
  130. package/assets/RangeCalendar.css +1 -1
  131. package/assets/SearchField.css +1 -1
  132. package/assets/Spinner.css +1 -1
  133. package/assets/TabList.css +1 -0
  134. package/assets/Tag.css +1 -1
  135. package/breadcrumbs/Breadcrumbs.d.ts +11 -7
  136. package/breadcrumbs/index.cjs +1 -1
  137. package/breadcrumbs/index.d.ts +1 -1
  138. package/breadcrumbs/index.js +1 -1
  139. package/button/index.cjs +1 -1
  140. package/button/index.js +1 -1
  141. package/calendar/CalendarGrid.d.ts +1 -0
  142. package/calendar/index.cjs +1 -1
  143. package/calendar/index.js +1 -1
  144. package/card/Card.d.ts +1 -1
  145. package/card/index.cjs +1 -1
  146. package/card/index.js +1 -1
  147. package/character-counter/index.cjs +1 -1
  148. package/character-counter/index.js +1 -1
  149. package/check-B0aKTFe5.cjs +6 -0
  150. package/check-B5h1DvDs.js +11 -0
  151. package/checkbox/Checkbox.d.ts +3 -1
  152. package/checkbox/index.cjs +1 -1
  153. package/checkbox/index.js +2 -2
  154. package/checkbox/intl/translations.json.d.ts +2 -30
  155. package/checkbox/types.d.ts +3 -1
  156. package/chevron-down-5hFlg_lR.cjs +6 -0
  157. package/chevron-down-DmZMdOiC.js +11 -0
  158. package/{circle-check-B9HYcH7Z.js → circle-check-BErh6TKu.js} +9 -9
  159. package/circle-check-OVUGxwp9.cjs +11 -0
  160. package/color-scheme-switch/ColorSchemeSwitch.d.ts +1 -0
  161. package/color-scheme-switch/index.cjs +1 -1
  162. package/color-scheme-switch/index.js +1 -1
  163. package/color-scheme-switch/intl/translations.json.d.ts +15 -0
  164. package/combobox/index.cjs +1 -1
  165. package/combobox/index.js +1 -1
  166. package/combobox/intl/translations.json.d.ts +11 -0
  167. package/{context-C81gPYvC.js → context-CGNJ3grH.js} +1 -1
  168. package/context-Df3XbgBG.cjs +1 -0
  169. package/createLucideIcon-CTVXwe6i.cjs +21 -0
  170. package/createLucideIcon-XRdN60yz.js +94 -0
  171. package/date-field/index.cjs +1 -1
  172. package/date-field/index.js +2 -2
  173. package/date-picker/index.cjs +1 -1
  174. package/date-picker/index.js +1 -1
  175. package/dropdown/index.cjs +1 -1
  176. package/dropdown/index.js +1 -1
  177. package/field-error/index.cjs +1 -1
  178. package/field-error/index.js +1 -1
  179. package/file-upload/FileUpload.d.ts +1 -0
  180. package/file-upload/index.cjs +1 -1
  181. package/file-upload/index.js +1 -1
  182. package/file-upload/intl/translations.json.d.ts +17 -0
  183. package/{getScrollParent-BhFcYrwL.js → getScrollParent-CT_L9LUr.js} +1 -1
  184. package/{getScrollParent-DDJu9WHU.cjs → getScrollParent-CsZ9ciml.cjs} +1 -1
  185. package/heading/index.cjs +1 -1
  186. package/heading/index.js +1 -1
  187. package/index.cjs +1 -1
  188. package/index.js +100 -97
  189. package/{info-BZwphdye.js → info-CPK1vbOJ.js} +5 -5
  190. package/info-Dj6SyPex.cjs +6 -0
  191. package/info-banner/index.cjs +1 -1
  192. package/info-banner/index.js +1 -1
  193. package/info-banner/intl/translations.json.d.ts +11 -0
  194. package/label/index.cjs +1 -1
  195. package/label/index.js +1 -1
  196. package/label/intl/translations.json.d.ts +11 -0
  197. package/layout/Layout.d.ts +1 -0
  198. package/layout/context/LayoutContext.d.ts +1 -0
  199. package/layout/index.cjs +1 -1
  200. package/layout/index.js +1 -1
  201. package/layout/intl/translations.json.d.ts +23 -0
  202. package/link/Link.d.ts +1 -1
  203. package/link/index.cjs +1 -1
  204. package/link/index.js +2 -2
  205. package/link-button/LinkButton.d.ts +1 -1
  206. package/link-button/index.cjs +1 -1
  207. package/link-button/index.js +2 -2
  208. package/list-box/index.cjs +1 -1
  209. package/list-box/index.js +2 -2
  210. package/logo/index.cjs +1 -1
  211. package/logo/index.js +1 -1
  212. package/logo/intl/translations.json.d.ts +11 -0
  213. package/mergeProps-B5KXZAI3.cjs +1 -0
  214. package/mergeProps-C1U1OIeJ.js +115 -0
  215. package/modal/index.cjs +1 -1
  216. package/modal/index.js +2 -2
  217. package/modal/intl/translations.json.d.ts +11 -0
  218. package/package.json +1 -1
  219. package/popover/index.cjs +1 -1
  220. package/popover/index.js +1 -1
  221. package/progress-bar/index.cjs +1 -1
  222. package/progress-bar/index.js +1 -1
  223. package/radio/Radio.d.ts +1 -4
  224. package/radio/index.cjs +1 -1
  225. package/radio/index.js +1 -1
  226. package/{scrollIntoView-Hwb_aaNf.js → scrollIntoView-BLnsPvFA.js} +1 -1
  227. package/scrollIntoView-joIyo-Jt.cjs +1 -0
  228. package/search-field/index.cjs +1 -1
  229. package/search-field/index.js +1 -1
  230. package/search-field/intl/translations.json.d.ts +11 -0
  231. package/select/index.cjs +1 -1
  232. package/select/index.js +1 -1
  233. package/select/intl/translations.json.d.ts +17 -0
  234. package/spinner/Spinner.d.ts +1 -0
  235. package/spinner/index.cjs +1 -1
  236. package/spinner/index.js +1 -1
  237. package/spinner/intl/translations.json.d.ts +11 -0
  238. package/{square-arrow-out-up-right-BkyqV2PN.js → square-arrow-out-up-right-ok0A3Ovo.js} +4 -4
  239. package/square-arrow-out-up-right-xCFdJTzY.cjs +6 -0
  240. package/table/index.cjs +1 -1
  241. package/table/index.js +1 -1
  242. package/tabs/Tab.d.ts +4 -0
  243. package/tabs/TabList.d.ts +3 -0
  244. package/tabs/TabPanel.d.ts +4 -0
  245. package/tabs/Tabs.d.ts +11 -5
  246. package/tabs/index.cjs +1 -1
  247. package/tabs/index.d.ts +3 -0
  248. package/tabs/index.js +5 -2
  249. package/tag/index.cjs +1 -1
  250. package/tag/index.js +1 -1
  251. package/text/index.cjs +1 -1
  252. package/text/index.js +1 -1
  253. package/textfield/index.cjs +1 -1
  254. package/textfield/index.js +1 -1
  255. package/textfield/intl/translations.json.d.ts +0 -72
  256. package/theme/index.cjs +1 -1
  257. package/theme/index.d.ts +5 -0
  258. package/theme/index.js +2 -2
  259. package/theme/tokens.d.ts +5 -0
  260. package/toast/Toast.d.ts +5 -2
  261. package/toast/index.cjs +1 -1
  262. package/toast/index.js +1 -1
  263. package/toggle-button/index.cjs +1 -1
  264. package/toggle-button/index.js +1 -1
  265. package/{tokens-p6pg1Cea.cjs → tokens-BghDnMdO.cjs} +1 -1
  266. package/{tokens-xp-7KMK7.js → tokens-fEwCQXDv.js} +16 -11
  267. package/tooltip/index.cjs +1 -1
  268. package/tooltip/index.js +1 -1
  269. package/{triangle-alert-wxyxspAl.js → triangle-alert-B_qAPmWC.js} +5 -5
  270. package/triangle-alert-BviJNFjf.cjs +6 -0
  271. package/{useButton-B8dB9sot.js → useButton-1-Jf-oHj.js} +3 -3
  272. package/useButton-D60q0SQw.cjs +1 -0
  273. package/{useDateFormatter-CnxoJ4jF.cjs → useDateFormatter-BJBt0jk_.cjs} +1 -1
  274. package/{useDateFormatter-EHm4auIg.js → useDateFormatter-BVCkxVdw.js} +2 -2
  275. package/{useEvent-IsD2Awnh.js → useEvent-CigwyJOw.js} +3 -3
  276. package/useEvent-DPxMu-X9.cjs +1 -0
  277. package/{useField-DvpGZkw_.js → useField-BEBXv5Mh.js} +4 -4
  278. package/useField-D1UkzeaI.cjs +1 -0
  279. package/{useFilter-CUq74PQ2.js → useFilter-CousKe2K.js} +1 -1
  280. package/{useFilter-BTgDWHVx.cjs → useFilter-e2oIVF_O.cjs} +1 -1
  281. package/useFocusRing-B-A1OLhU.cjs +1 -0
  282. package/useFocusRing-DOfBqnUN.js +33 -0
  283. package/useFocusWithin-CG8mAt2D.cjs +1 -0
  284. package/useFocusWithin-T1ifEM_s.js +54 -0
  285. package/{useFocusable-C8uh8K4g.js → useFocusable-ChPA2Jc7.js} +20 -18
  286. package/useFocusable-D7I1ujkW.cjs +1 -0
  287. package/useFormValidation-BlFGdPZB.cjs +1 -0
  288. package/{useFormValidation-BIGzfO9h.js → useFormValidation-BzzruZKm.js} +2 -2
  289. package/{useHasTabbableChild-C-1mZUQe.js → useHasTabbableChild-BE81d_ab.js} +2 -2
  290. package/useHasTabbableChild-CoQRpNbC.cjs +1 -0
  291. package/useHighlightSelectionDescription-BfR_vGOe.cjs +1 -0
  292. package/{useHighlightSelectionDescription-CnBDT86u.js → useHighlightSelectionDescription-D73hrkmn.js} +5 -5
  293. package/useHover-BE_XKZKe.cjs +1 -0
  294. package/useHover-DQvJ3Y-W.js +262 -0
  295. package/useLabels-CSU0kbtJ.cjs +1 -0
  296. package/{useLabels-BDwkBYbE.js → useLabels-LrKQiY11.js} +1 -1
  297. package/{useListState-CrZFZffI.js → useListState-CebsX_1d.js} +1 -1
  298. package/{useListState-Bx8u4IFG.cjs → useListState-DymkJGDF.cjs} +1 -1
  299. package/useLocalizedStringFormatter-BO2iZEL0.cjs +1 -0
  300. package/useLocalizedStringFormatter-BiX5BTlb.cjs +1 -0
  301. package/useLocalizedStringFormatter-CL9MUZ8A.js +22 -0
  302. package/useLocalizedStringFormatter-N0AyjzbM.js +25 -0
  303. package/usePress-BooY_CAy.cjs +7 -0
  304. package/{usePress-CNjmDzap.js → usePress-DuR4pVsE.js} +129 -128
  305. package/{useSingleSelectListState-0AGHxvy3.js → useSingleSelectListState-BLXvGjLI.js} +1 -1
  306. package/{useSingleSelectListState-Cl3KV5E1.cjs → useSingleSelectListState-BPhlCU26.cjs} +1 -1
  307. package/{useTextField-Cw-33OP_.js → useTextField-C-sUypsx.js} +8 -8
  308. package/useTextField-DnRrCg5o.cjs +1 -0
  309. package/utils/intl/useLocalizedStringFormatter.d.ts +2 -0
  310. package/utils-CoCR_Fce.js +234 -0
  311. package/utils-DHNZrQmj.cjs +1 -0
  312. package/utils-DJhAJHk_.js +152 -0
  313. package/utils-Dvdohqm9.cjs +1 -0
  314. package/{x-JK7i-TQC.js → x-C2xUHAEl.js} +5 -5
  315. package/x-rV-nu490.cjs +6 -0
  316. package/AccordionItem-BGWiWjxA.cjs +0 -1
  317. package/Breadcrumbs-DtjJ1UmU.cjs +0 -1
  318. package/Button-htW9qIsS.cjs +0 -1
  319. package/Button.module-DEQtBYe5.cjs +0 -1
  320. package/Button.module-tti8HGxs.js +0 -14
  321. package/Checkbox-DqcPg5hz.cjs +0 -1
  322. package/CheckboxGroup-BBrSMuDY.cjs +0 -1
  323. package/CheckboxGroup-CLgixk2p.js +0 -243
  324. package/Collection-BIDsXNhi.cjs +0 -1
  325. package/ColorSchemeSwitch-C-qWuqkU.cjs +0 -16
  326. package/ComboBox-CWJUg9Xx.cjs +0 -1
  327. package/DateInputDivider-ADvOavHw.cjs +0 -1
  328. package/DateRangePicker-BsAHhy99.cjs +0 -6
  329. package/Dialog-B8GTYbvu.cjs +0 -1
  330. package/Dialog-BOrYdX50.cjs +0 -1
  331. package/Dialog-CXNu48AC.js +0 -208
  332. package/DragAndDrop-DNth776R.cjs +0 -1
  333. package/Dropdown-CJ6My6EI.cjs +0 -6
  334. package/FieldError-CAcjosk_.js +0 -46
  335. package/FieldError-CKBb2-mp.cjs +0 -1
  336. package/FocusScope-5c9SVBcR.cjs +0 -1
  337. package/Group-B6EslsHZ.js +0 -44
  338. package/Group-CgiqQHH1.cjs +0 -1
  339. package/InfoBanner-C2kTIsrB.cjs +0 -1
  340. package/Input-DKSAYvsw.cjs +0 -1
  341. package/Label-7Ybb99CE.cjs +0 -1
  342. package/Label-BwJrdqEE.js +0 -70
  343. package/Layout-1g6bMH62.cjs +0 -16
  344. package/Layout-Ey8flY7E.js +0 -468
  345. package/Link-B88l_oaE.cjs +0 -6
  346. package/Link-BQhauBuw.cjs +0 -1
  347. package/Link-DX5BbBnn.js +0 -59
  348. package/LinkButton-CBpGLETx.cjs +0 -6
  349. package/LinkButton-o6uS1XsR.js +0 -69
  350. package/ListBox-DP9M4H6R.cjs +0 -1
  351. package/ListBoxSection-BGaigBnG.cjs +0 -1
  352. package/Logo-DT2_2O43.cjs +0 -1
  353. package/OverlayArrow-D75k-EMl.cjs +0 -1
  354. package/Radio-BwqrdhQE.cjs +0 -1
  355. package/RangeCalendar-BehUaydF.cjs +0 -11
  356. package/SearchField-CxMwDeUM.cjs +0 -6
  357. package/SearchField-IlvZ3Kh6.js +0 -362
  358. package/Select-2q1iSzAX.cjs +0 -1
  359. package/Select-BVQZtoi9.js +0 -646
  360. package/SelectionManager-CwYux2h3.cjs +0 -1
  361. package/Spinner-D31SXm-U.js +0 -41
  362. package/Spinner-P35rvvsl.cjs +0 -6
  363. package/Table-B40CGLT-.cjs +0 -16
  364. package/Tabs-B4oZJkZG.js +0 -404
  365. package/Tabs-DA2qXhzb.cjs +0 -1
  366. package/Tag-DPAGmcMK.cjs +0 -1
  367. package/Text-BoXuUVVH.js +0 -15
  368. package/TextArea-C7JZ_pQd.cjs +0 -1
  369. package/TextArea-XeBCSyzl.js +0 -191
  370. package/TextField-BgNdhZi_.cjs +0 -1
  371. package/Toast-AbDA1BOs.cjs +0 -1
  372. package/ToggleButtonGroup-BFDoj0P6.cjs +0 -1
  373. package/Tooltip-DeBuBKhS.cjs +0 -1
  374. package/VisuallyHidden-CLWHbz2n.cjs +0 -1
  375. package/arrow-right-QJ2gXPKQ.cjs +0 -6
  376. package/assets/Tabs.css +0 -1
  377. package/check-CLF6Yxza.js +0 -11
  378. package/check-D_KoootC.cjs +0 -6
  379. package/chevron-down-Cd1bkzXT.js +0 -13
  380. package/chevron-down-jl83cllc.cjs +0 -6
  381. package/circle-check-BGo8gML8.cjs +0 -11
  382. package/context-DjwhtgxQ.cjs +0 -1
  383. package/createLucideIcon-Cg_wkoIA.cjs +0 -21
  384. package/createLucideIcon-DeWljiyi.js +0 -79
  385. package/info-CIEIENo6.cjs +0 -6
  386. package/scrollIntoView-C8doLzDd.cjs +0 -1
  387. package/square-arrow-out-up-right-V4Gd08uI.cjs +0 -6
  388. package/triangle-alert-DJW8U7jL.cjs +0 -6
  389. package/useButton-cpNi-fY4.cjs +0 -1
  390. package/useEvent-DxBxMX2V.cjs +0 -1
  391. package/useField-CXKYU74k.cjs +0 -1
  392. package/useFocusRing-CbImDrwF.cjs +0 -1
  393. package/useFocusRing-XnR3cZjO.js +0 -82
  394. package/useFocusable-NUVSFcRC.cjs +0 -1
  395. package/useFormValidation-ClximP89.cjs +0 -1
  396. package/useHasTabbableChild-DCBTulUQ.cjs +0 -1
  397. package/useHighlightSelectionDescription-CzYucm61.cjs +0 -1
  398. package/useHover-DjIHtjGN.js +0 -490
  399. package/useHover-_mv5J4_q.cjs +0 -1
  400. package/useLabels-BLOfc6Y-.cjs +0 -1
  401. package/useLocalizedStringFormatter-BKoxGZf1.js +0 -96
  402. package/useLocalizedStringFormatter-BsxLt89S.cjs +0 -1
  403. package/useLocalizedStringFormatter-D3JQyjb4.js +0 -21
  404. package/useLocalizedStringFormatter-ioacM-Yt.cjs +0 -1
  405. package/usePress-0AjDbW9R.cjs +0 -7
  406. package/useTextField--czJtyNd.cjs +0 -1
  407. package/utils-BNtZbAib.cjs +0 -1
  408. package/utils-DIMfEPAt.js +0 -308
  409. package/x-H8Zrx8-x.cjs +0 -6
@@ -1,16 +0,0 @@
1
- "use strict";require('./assets/Layout.css');const e=require("react/jsx-runtime"),y=require("./GridItem-XgHmZWXY.cjs"),q=require("react"),m=require("./clsx-C11secjj.cjs"),k=require("./Button-BoJl6JGM.cjs"),f=require("./Link-BQhauBuw.cjs"),L=require("./Tooltip-DeBuBKhS.cjs"),u=require("./BadgeContainer-I1XA3OCl.cjs"),C=require("./createLucideIcon-Cg_wkoIA.cjs"),B=require("./usePress-0AjDbW9R.cjs"),O=require("./tokens-p6pg1Cea.cjs"),N=require("./Logo-DT2_2O43.cjs"),$=require("./x-H8Zrx8-x.cjs");function z(a){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const r in a)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(a,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>a[r]})}}return t.default=a,Object.freeze(t)}const _=z(q);/**
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 H=C.createLucideIcon("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
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
- */const M=C.createLucideIcon("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]);/**
12
- * @license lucide-react v0.453.0 - ISC
13
- *
14
- * This source code is licensed under the ISC license.
15
- * See the LICENSE file in the root directory of this source tree.
16
- */const G=C.createLucideIcon("PanelLeftOpen",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]]),D="_baseLayout_12xoh_4",R="_mainContent_12xoh_13",W="_header_12xoh_18",A="_headerExternal_12xoh_29",F="_headerContent_12xoh_44",X="_logo_12xoh_63",J="_headerItems_12xoh_72",K="_toggleButton_12xoh_78",Q="_sidebar_12xoh_86",U="_main_12xoh_13",V="_app_12xoh_123",Y="_sidebarOpened_12xoh_132",Z="_sidebarHeader_12xoh_136",ee="_appName_12xoh_148",se="_collapseButton_12xoh_155",ae="_sidebarCollapsed_12xoh_164",te="_userName_12xoh_174",ne="_userTitle_12xoh_193",re="_title_12xoh_205",oe="_sidebarNav_12xoh_216",ie="_list_12xoh_222",le="_listGroupTitle_12xoh_229",ce="_listItem_12xoh_236",de="_listItemCollapsed_12xoh_241",xe="_listLink_12xoh_245",he="_listLinkCollapsed_12xoh_290",pe="_active_12xoh_295",me="_backdrop_12xoh_309",_e="_backdropOpened_12xoh_319",ue="_skipToContent_12xoh_337",be="_navbar_12xoh_351",je="_navbarList_12xoh_363",ve="_navbarItem_12xoh_385",Ne="_headerContentExternal_12xoh_425",fe="_logoExternalContainer_12xoh_433",ke="_logoExternal_12xoh_433",Ce="_logoExternalDesktop_12xoh_445",ge="_navbarWrapper_12xoh_454",s={baseLayout:D,mainContent:R,header:W,headerExternal:A,headerContent:F,logo:X,headerItems:J,toggleButton:K,sidebar:Q,main:U,app:V,sidebarOpened:Y,sidebarHeader:Z,appName:ee,collapseButton:se,sidebarCollapsed:ae,userName:te,userTitle:ne,title:re,sidebarNav:oe,list:ie,listGroupTitle:le,listItem:ce,listItemCollapsed:de,listLink:xe,listLinkCollapsed:he,active:pe,backdrop:me,backdropOpened:_e,skipToContent:ue,navbar:be,navbarList:je,navbarItem:ve,headerContentExternal:Ne,logoExternalContainer:fe,logoExternal:ke,logoExternalDesktop:Ce,navbarWrapper:ge},T=_.createContext(void 0),ye=({items:a,title:t,user:r,app:n,children:i,clientSideRouter:c,clientSideHref:o,headerChildren:x,isCollapsed:h,setIsCollapsed:d,isOpened:p,setIsOpened:b,variant:v})=>e.jsx(T.Provider,{value:{items:a,title:t,user:r,app:n,headerChildren:x,isCollapsed:h,setIsCollapsed:d,isOpened:p,setIsOpened:b,clientSideRouter:c,clientSideHref:o,variant:v},children:i}),j=()=>{const a=_.useContext(T);if(!a)throw new Error("useLayoutContext must be used within a LayoutProvider");return a},g=({title:a,href:t,icon:r,active:n,hasBadge:i})=>{const{isCollapsed:c,setIsOpened:o}=j(),[x,h]=_.useState(!1);return _.useEffect(()=>{typeof window<"u"&&h(n??window.location.pathname===t)},[n,t]),c?e.jsxs(L.TooltipTrigger,{children:[e.jsx(f.$4f118338184dc1d9$export$a6c7ac8248d6e38a,{href:t,"aria-label":a,className:m.clsx(s.listLink,s.listLinkCollapsed,x&&s.active),onPress:()=>o==null?void 0:o(!1),children:e.jsxs(u.BadgeContainer,{children:[e.jsx(r,{size:20,"aria-label":a}),i&&e.jsx(u.Badge,{})]})}),e.jsx(L.Tooltip,{placement:"right",children:a})]}):e.jsxs(f.$4f118338184dc1d9$export$a6c7ac8248d6e38a,{href:t,"aria-label":a,className:m.clsx(s.listLink,x&&s.active),onPress:()=>o==null?void 0:o(!1),children:[e.jsxs(u.BadgeContainer,{children:[e.jsx(r,{size:20}),i&&e.jsx(u.Badge,{})]}),a]})},S=()=>{const{items:a,app:t,isOpened:r,isCollapsed:n,setIsCollapsed:i,setIsOpened:c,clientSideRouter:o,clientSideHref:x}=j(),h=({group:d})=>e.jsx("ul",{className:s.list,children:d.items.map((p,b)=>e.jsx("li",{className:m.clsx(s.listItem,n&&s.listItemCollapsed),children:e.jsx(g,{...p})},"link_"+b))});return _.useEffect(()=>{const d=p=>{p.key==="Escape"&&c!==void 0&&c(!1)};return window.addEventListener("keydown",d),()=>{window.removeEventListener("keydown",d)}},[c]),e.jsxs("aside",{id:"midasMainMenu",className:m.clsx(s.sidebar,n&&s.sidebarCollapsed,r&&s.sidebarOpened),children:[e.jsxs("div",{className:s.sidebarHeader,children:[!n&&e.jsx("p",{className:s.appName,children:t.name}),e.jsx(k.Button,{variant:"icon","aria-label":n?"Maximera sidomenyn":"Minimera sidomenyn",onPress:()=>i(!n),className:s.collapseButton,children:n?e.jsx(G,{size:20}):e.jsx(M,{size:20})})]}),e.jsx("nav",{className:s.sidebarNav,"aria-label":"Sidomeny",children:e.jsx("ul",{className:s.list,children:a.map((d,p)=>e.jsxs("li",{children:[d.title&&!n&&e.jsx("p",{className:s.listGroupTitle,children:d.title}),o?e.jsx(B.$ea8dcbcb9ea1b556$export$323e4fc2fa4753fb,{navigate:o,useHref:x,children:e.jsx(h,{group:d})}):e.jsx(h,{group:d})]},"list_"+p))})})]})},P=()=>{const{title:a,user:t,app:r,isOpened:n,setIsOpened:i,setIsCollapsed:c,headerChildren:o,variant:x}=j();return x==="external"?e.jsx("header",{className:m.clsx(s.header,s.headerExternal),children:e.jsxs("div",{className:s.headerContentExternal,children:[e.jsxs("div",{className:s.logoExternalContainer,children:[e.jsx(N.Logo,{size:"x-small",padding:!1,className:s.logoExternal}),e.jsx(N.Logo,{size:"small",padding:!1,className:s.logoExternalDesktop}),e.jsxs("div",{children:[e.jsx("p",{className:s.userName,children:t.name}),e.jsx("p",{className:s.userTitle,children:t.title})]})]}),e.jsx("div",{className:s.headerItems,children:o})]})}):e.jsxs("header",{className:s.header,style:{borderTop:`solid 4px ${r.color?r.color:O.semantic.brandPrimary}`},children:[e.jsxs("div",{className:s.headerContent,children:[e.jsx("div",{className:s.logo,children:e.jsx(N.Logo,{size:"small",padding:!1})}),n!==void 0&&e.jsx(k.Button,{variant:"icon",className:s.toggleButton,"aria-label":n?"Stäng meny":"Öppna meny","aria-controls":"midasMainMenu",onPressStart:()=>{c(!1),i==null||i(!0)},children:n?e.jsx($.X,{size:20,"aria-hidden":"true"}):e.jsx(H,{size:20,"aria-hidden":"true"})}),e.jsxs("div",{children:[e.jsx("p",{className:s.userName,children:t.name}),e.jsx("p",{className:s.userTitle,children:t.title}),e.jsx("p",{className:s.title,children:a})]})]}),e.jsx("div",{className:s.headerItems,children:o})]})},E=({id:a="#main:first-of-type"})=>{const t=()=>{const r=document.querySelector(a);r&&(r.tabIndex=-1,r.focus(),setTimeout(()=>r.removeAttribute("tabindex"),1e3))};return e.jsx(k.Button,{onPress:t,className:s.skipToContent,children:"Hoppa till huvudinnehåll"})},Le=()=>{const{isOpened:a,setIsOpened:t}=j();return a?e.jsx("div",{className:m.clsx(s.backdrop,s.backdropOpened),onClick:()=>{t==null||t(!1)},"aria-hidden":!0}):null},w=()=>{var i;const{items:a,clientSideRouter:t,clientSideHref:r}=j(),n=(i=a.at(0))==null?void 0:i.items;return e.jsx("nav",{className:s.navbar,"aria-label":"Bottenmeny",children:n&&e.jsx("ul",{className:m.clsx(s.navbarList),children:t?e.jsx(B.$ea8dcbcb9ea1b556$export$323e4fc2fa4753fb,{navigate:t,useHref:r,children:e.jsx(I,{items:n})}):e.jsx(I,{items:n})})})},I=({items:a})=>e.jsx(e.Fragment,{children:a.map(({href:t,active:r,icon:n,title:i,hasBadge:c},o)=>e.jsx("li",{children:e.jsxs(f.$4f118338184dc1d9$export$a6c7ac8248d6e38a,{href:t,className:m.clsx(s.navbarItem),"data-active":r,"aria-current":r&&"page",children:[e.jsxs(u.BadgeContainer,{children:[e.jsx(n,{size:20}),c&&e.jsx(u.Badge,{})]}),i]})},o))}),l=({items:a,title:t,user:r,app:n,children:i,headerChildren:c,clientSideRouter:o,clientSideHref:x,variant:h})=>{const[d,p]=_.useState(!1),[b,v]=_.useState(!1);return h==="external"?e.jsx(l.Provider,{items:a,title:t,user:r,app:n,clientSideRouter:o,clientSideHref:x,headerChildren:c,isCollapsed:d,setIsCollapsed:p,variant:h,children:e.jsxs("div",{className:s.baseLayout,children:[e.jsx(E,{}),e.jsx(l.Header,{}),e.jsxs("div",{className:s.mainContent,children:[e.jsx(l.Sidebar,{}),e.jsx(y.GridItem,{children:e.jsx("main",{className:s.main,children:e.jsx("div",{className:s.app,children:i})})}),e.jsx(l.Backdrop,{})]}),e.jsx("div",{className:s.navbarWrapper,children:e.jsx(l.Navbar,{})})]})}):e.jsx(l.Provider,{items:a,title:t,user:r,app:n,clientSideRouter:o,clientSideHref:x,headerChildren:c,isCollapsed:d,setIsCollapsed:p,isOpened:b,setIsOpened:v,variant:h,children:e.jsxs("div",{className:s.baseLayout,children:[e.jsx(E,{}),e.jsx(l.Header,{}),e.jsxs("div",{className:s.mainContent,children:[e.jsx(l.Sidebar,{}),e.jsx(y.GridItem,{children:e.jsx("main",{className:s.main,children:e.jsx("div",{className:s.app,children:i})})}),e.jsx(l.Backdrop,{})]})]})})};l.Provider=ye;l.Header=P;l.Sidebar=S;l.SidebarLink=g;l.Navbar=w;l.Backdrop=Le;exports.Header=P;exports.Layout=l;exports.Navbar=w;exports.Sidebar=S;exports.SidebarLink=g;
@@ -1,468 +0,0 @@
1
- import { jsx as e, jsxs as i, Fragment as P } from "react/jsx-runtime";
2
- import { G as E } from "./GridItem-DlbSdRmB.js";
3
- import * as u from "react";
4
- import { c as x } from "./clsx-OuTLNxxd.js";
5
- import { B as L } from "./Button-Csih3v23.js";
6
- import { $ as k } from "./Link-yNO2-sqx.js";
7
- import { a as H, T as z } from "./Tooltip-CMLs7WMw.js";
8
- import { a as C, B as y } from "./BadgeContainer-DM8TdyMT.js";
9
- import { c as g } from "./createLucideIcon-DeWljiyi.js";
10
- import { $ as S } from "./usePress-CNjmDzap.js";
11
- import { f as O } from "./tokens-xp-7KMK7.js";
12
- import { L as f } from "./Logo-BIrOEINM.js";
13
- import { X as M } from "./x-JK7i-TQC.js";
14
- import './assets/Layout.css';/**
15
- * @license lucide-react v0.453.0 - ISC
16
- *
17
- * This source code is licensed under the ISC license.
18
- * See the LICENSE file in the root directory of this source tree.
19
- */
20
- const $ = g("Menu", [
21
- ["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }],
22
- ["line", { x1: "4", x2: "20", y1: "6", y2: "6", key: "1owob3" }],
23
- ["line", { x1: "4", x2: "20", y1: "18", y2: "18", key: "yk5zj1" }]
24
- ]);
25
- /**
26
- * @license lucide-react v0.453.0 - ISC
27
- *
28
- * This source code is licensed under the ISC license.
29
- * See the LICENSE file in the root directory of this source tree.
30
- */
31
- const G = g("PanelLeftClose", [
32
- ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
33
- ["path", { d: "M9 3v18", key: "fh3hqa" }],
34
- ["path", { d: "m16 15-3-3 3-3", key: "14y99z" }]
35
- ]);
36
- /**
37
- * @license lucide-react v0.453.0 - ISC
38
- *
39
- * This source code is licensed under the ISC license.
40
- * See the LICENSE file in the root directory of this source tree.
41
- */
42
- const D = g("PanelLeftOpen", [
43
- ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
44
- ["path", { d: "M9 3v18", key: "fh3hqa" }],
45
- ["path", { d: "m14 9 3 3-3 3", key: "8010ee" }]
46
- ]), W = "_baseLayout_12xoh_4", j = "_mainContent_12xoh_13", q = "_header_12xoh_18", A = "_headerExternal_12xoh_29", R = "_headerContent_12xoh_44", F = "_logo_12xoh_63", X = "_headerItems_12xoh_72", J = "_toggleButton_12xoh_78", K = "_sidebar_12xoh_86", Q = "_main_12xoh_13", U = "_app_12xoh_123", V = "_sidebarOpened_12xoh_132", Y = "_sidebarHeader_12xoh_136", Z = "_appName_12xoh_148", ee = "_collapseButton_12xoh_155", ae = "_sidebarCollapsed_12xoh_164", te = "_userName_12xoh_174", ne = "_userTitle_12xoh_193", se = "_title_12xoh_205", oe = "_sidebarNav_12xoh_216", re = "_list_12xoh_222", ie = "_listGroupTitle_12xoh_229", le = "_listItem_12xoh_236", de = "_listItemCollapsed_12xoh_241", ce = "_listLink_12xoh_245", me = "_listLinkCollapsed_12xoh_290", he = "_active_12xoh_295", pe = "_backdrop_12xoh_309", _e = "_backdropOpened_12xoh_319", xe = "_skipToContent_12xoh_337", ue = "_navbar_12xoh_351", be = "_navbarList_12xoh_363", ve = "_navbarItem_12xoh_385", Ne = "_headerContentExternal_12xoh_425", fe = "_logoExternalContainer_12xoh_433", ke = "_logoExternal_12xoh_433", Ce = "_logoExternalDesktop_12xoh_445", ye = "_navbarWrapper_12xoh_454", a = {
47
- baseLayout: W,
48
- mainContent: j,
49
- header: q,
50
- headerExternal: A,
51
- headerContent: R,
52
- logo: F,
53
- headerItems: X,
54
- toggleButton: J,
55
- sidebar: K,
56
- main: Q,
57
- app: U,
58
- sidebarOpened: V,
59
- sidebarHeader: Y,
60
- appName: Z,
61
- collapseButton: ee,
62
- sidebarCollapsed: ae,
63
- userName: te,
64
- userTitle: ne,
65
- title: se,
66
- sidebarNav: oe,
67
- list: re,
68
- listGroupTitle: ie,
69
- listItem: le,
70
- listItemCollapsed: de,
71
- listLink: ce,
72
- listLinkCollapsed: me,
73
- active: he,
74
- backdrop: pe,
75
- backdropOpened: _e,
76
- skipToContent: xe,
77
- navbar: ue,
78
- navbarList: be,
79
- navbarItem: ve,
80
- headerContentExternal: Ne,
81
- logoExternalContainer: fe,
82
- logoExternal: ke,
83
- logoExternalDesktop: Ce,
84
- navbarWrapper: ye
85
- }, B = u.createContext(
86
- void 0
87
- ), Le = ({
88
- items: n,
89
- title: t,
90
- user: o,
91
- app: s,
92
- children: l,
93
- clientSideRouter: c,
94
- clientSideHref: r,
95
- headerChildren: h,
96
- isCollapsed: p,
97
- setIsCollapsed: m,
98
- isOpened: _,
99
- setIsOpened: b,
100
- variant: N
101
- }) => /* @__PURE__ */ e(
102
- B.Provider,
103
- {
104
- value: {
105
- items: n,
106
- title: t,
107
- user: o,
108
- app: s,
109
- headerChildren: h,
110
- isCollapsed: p,
111
- setIsCollapsed: m,
112
- isOpened: _,
113
- setIsOpened: b,
114
- clientSideRouter: c,
115
- clientSideHref: r,
116
- variant: N
117
- },
118
- children: l
119
- }
120
- ), v = () => {
121
- const n = u.useContext(B);
122
- if (!n)
123
- throw new Error("useLayoutContext must be used within a LayoutProvider");
124
- return n;
125
- }, w = ({
126
- title: n,
127
- href: t,
128
- icon: o,
129
- active: s,
130
- hasBadge: l
131
- }) => {
132
- const { isCollapsed: c, setIsOpened: r } = v(), [h, p] = u.useState(!1);
133
- return u.useEffect(() => {
134
- typeof window < "u" && p(s ?? window.location.pathname === t);
135
- }, [s, t]), c ? /* @__PURE__ */ i(H, { children: [
136
- /* @__PURE__ */ e(
137
- k,
138
- {
139
- href: t,
140
- "aria-label": n,
141
- className: x(
142
- a.listLink,
143
- a.listLinkCollapsed,
144
- h && a.active
145
- ),
146
- onPress: () => r == null ? void 0 : r(!1),
147
- children: /* @__PURE__ */ i(C, { children: [
148
- /* @__PURE__ */ e(
149
- o,
150
- {
151
- size: 20,
152
- "aria-label": n
153
- }
154
- ),
155
- l && /* @__PURE__ */ e(y, {})
156
- ] })
157
- }
158
- ),
159
- /* @__PURE__ */ e(z, { placement: "right", children: n })
160
- ] }) : /* @__PURE__ */ i(
161
- k,
162
- {
163
- href: t,
164
- "aria-label": n,
165
- className: x(a.listLink, h && a.active),
166
- onPress: () => r == null ? void 0 : r(!1),
167
- children: [
168
- /* @__PURE__ */ i(C, { children: [
169
- /* @__PURE__ */ e(o, { size: 20 }),
170
- l && /* @__PURE__ */ e(y, {})
171
- ] }),
172
- n
173
- ]
174
- }
175
- );
176
- }, ge = () => {
177
- const {
178
- items: n,
179
- app: t,
180
- isOpened: o,
181
- isCollapsed: s,
182
- setIsCollapsed: l,
183
- setIsOpened: c,
184
- clientSideRouter: r,
185
- clientSideHref: h
186
- } = v(), p = ({ group: m }) => /* @__PURE__ */ e("ul", { className: a.list, children: m.items.map((_, b) => /* @__PURE__ */ e(
187
- "li",
188
- {
189
- className: x(
190
- a.listItem,
191
- s && a.listItemCollapsed
192
- ),
193
- children: /* @__PURE__ */ e(w, { ..._ })
194
- },
195
- "link_" + b
196
- )) });
197
- return u.useEffect(() => {
198
- const m = (_) => {
199
- _.key === "Escape" && c !== void 0 && c(!1);
200
- };
201
- return window.addEventListener("keydown", m), () => {
202
- window.removeEventListener("keydown", m);
203
- };
204
- }, [c]), /* @__PURE__ */ i(
205
- "aside",
206
- {
207
- id: "midasMainMenu",
208
- className: x(
209
- a.sidebar,
210
- s && a.sidebarCollapsed,
211
- o && a.sidebarOpened
212
- ),
213
- children: [
214
- /* @__PURE__ */ i("div", { className: a.sidebarHeader, children: [
215
- !s && /* @__PURE__ */ e("p", { className: a.appName, children: t.name }),
216
- /* @__PURE__ */ e(
217
- L,
218
- {
219
- variant: "icon",
220
- "aria-label": s ? "Maximera sidomenyn" : "Minimera sidomenyn",
221
- onPress: () => l(!s),
222
- className: a.collapseButton,
223
- children: s ? /* @__PURE__ */ e(D, { size: 20 }) : /* @__PURE__ */ e(G, { size: 20 })
224
- }
225
- )
226
- ] }),
227
- /* @__PURE__ */ e(
228
- "nav",
229
- {
230
- className: a.sidebarNav,
231
- "aria-label": "Sidomeny",
232
- children: /* @__PURE__ */ e("ul", { className: a.list, children: n.map((m, _) => /* @__PURE__ */ i("li", { children: [
233
- m.title && !s && /* @__PURE__ */ e("p", { className: a.listGroupTitle, children: m.title }),
234
- r ? /* @__PURE__ */ e(
235
- S,
236
- {
237
- navigate: r,
238
- useHref: h,
239
- children: /* @__PURE__ */ e(p, { group: m })
240
- }
241
- ) : /* @__PURE__ */ e(p, { group: m })
242
- ] }, "list_" + _)) })
243
- }
244
- )
245
- ]
246
- }
247
- );
248
- }, Ee = () => {
249
- const {
250
- title: n,
251
- user: t,
252
- app: o,
253
- isOpened: s,
254
- setIsOpened: l,
255
- setIsCollapsed: c,
256
- headerChildren: r,
257
- variant: h
258
- } = v();
259
- return h === "external" ? /* @__PURE__ */ e("header", { className: x(a.header, a.headerExternal), children: /* @__PURE__ */ i("div", { className: a.headerContentExternal, children: [
260
- /* @__PURE__ */ i("div", { className: a.logoExternalContainer, children: [
261
- /* @__PURE__ */ e(
262
- f,
263
- {
264
- size: "x-small",
265
- padding: !1,
266
- className: a.logoExternal
267
- }
268
- ),
269
- /* @__PURE__ */ e(
270
- f,
271
- {
272
- size: "small",
273
- padding: !1,
274
- className: a.logoExternalDesktop
275
- }
276
- ),
277
- /* @__PURE__ */ i("div", { children: [
278
- /* @__PURE__ */ e("p", { className: a.userName, children: t.name }),
279
- /* @__PURE__ */ e("p", { className: a.userTitle, children: t.title })
280
- ] })
281
- ] }),
282
- /* @__PURE__ */ e("div", { className: a.headerItems, children: r })
283
- ] }) }) : /* @__PURE__ */ i(
284
- "header",
285
- {
286
- className: a.header,
287
- style: {
288
- borderTop: `solid 4px ${o.color ? o.color : O.brandPrimary}`
289
- },
290
- children: [
291
- /* @__PURE__ */ i("div", { className: a.headerContent, children: [
292
- /* @__PURE__ */ e("div", { className: a.logo, children: /* @__PURE__ */ e(
293
- f,
294
- {
295
- size: "small",
296
- padding: !1
297
- }
298
- ) }),
299
- s !== void 0 && /* @__PURE__ */ e(
300
- L,
301
- {
302
- variant: "icon",
303
- className: a.toggleButton,
304
- "aria-label": s ? "Stäng meny" : "Öppna meny",
305
- "aria-controls": "midasMainMenu",
306
- onPressStart: () => {
307
- c(!1), l == null || l(!0);
308
- },
309
- children: s ? /* @__PURE__ */ e(
310
- M,
311
- {
312
- size: 20,
313
- "aria-hidden": "true"
314
- }
315
- ) : /* @__PURE__ */ e(
316
- $,
317
- {
318
- size: 20,
319
- "aria-hidden": "true"
320
- }
321
- )
322
- }
323
- ),
324
- /* @__PURE__ */ i("div", { children: [
325
- /* @__PURE__ */ e("p", { className: a.userName, children: t.name }),
326
- /* @__PURE__ */ e("p", { className: a.userTitle, children: t.title }),
327
- /* @__PURE__ */ e("p", { className: a.title, children: n })
328
- ] })
329
- ] }),
330
- /* @__PURE__ */ e("div", { className: a.headerItems, children: r })
331
- ]
332
- }
333
- );
334
- }, T = ({
335
- id: n = "#main:first-of-type"
336
- }) => /* @__PURE__ */ e(
337
- L,
338
- {
339
- onPress: () => {
340
- const o = document.querySelector(n);
341
- o && (o.tabIndex = -1, o.focus(), setTimeout(() => o.removeAttribute("tabindex"), 1e3));
342
- },
343
- className: a.skipToContent,
344
- children: "Hoppa till huvudinnehåll"
345
- }
346
- ), Te = () => {
347
- const { isOpened: n, setIsOpened: t } = v();
348
- return n ? /* @__PURE__ */ e(
349
- "div",
350
- {
351
- className: x(a.backdrop, a.backdropOpened),
352
- onClick: () => {
353
- t == null || t(!1);
354
- },
355
- "aria-hidden": !0
356
- }
357
- ) : null;
358
- }, Ie = () => {
359
- var l;
360
- const { items: n, clientSideRouter: t, clientSideHref: o } = v(), s = (l = n.at(0)) == null ? void 0 : l.items;
361
- return /* @__PURE__ */ e(
362
- "nav",
363
- {
364
- className: a.navbar,
365
- "aria-label": "Bottenmeny",
366
- children: s && /* @__PURE__ */ e("ul", { className: x(a.navbarList), children: t ? /* @__PURE__ */ e(
367
- S,
368
- {
369
- navigate: t,
370
- useHref: o,
371
- children: /* @__PURE__ */ e(I, { items: s })
372
- }
373
- ) : /* @__PURE__ */ e(I, { items: s }) })
374
- }
375
- );
376
- }, I = ({
377
- items: n
378
- }) => /* @__PURE__ */ e(P, { children: n.map(({ href: t, active: o, icon: s, title: l, hasBadge: c }, r) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ i(
379
- k,
380
- {
381
- href: t,
382
- className: x(a.navbarItem),
383
- "data-active": o,
384
- "aria-current": o && "page",
385
- children: [
386
- /* @__PURE__ */ i(C, { children: [
387
- /* @__PURE__ */ e(s, { size: 20 }),
388
- c && /* @__PURE__ */ e(y, {})
389
- ] }),
390
- l
391
- ]
392
- }
393
- ) }, r)) }), d = ({
394
- items: n,
395
- title: t,
396
- user: o,
397
- app: s,
398
- children: l,
399
- headerChildren: c,
400
- clientSideRouter: r,
401
- clientSideHref: h,
402
- variant: p
403
- }) => {
404
- const [m, _] = u.useState(!1), [b, N] = u.useState(!1);
405
- return p === "external" ? /* @__PURE__ */ e(
406
- d.Provider,
407
- {
408
- items: n,
409
- title: t,
410
- user: o,
411
- app: s,
412
- clientSideRouter: r,
413
- clientSideHref: h,
414
- headerChildren: c,
415
- isCollapsed: m,
416
- setIsCollapsed: _,
417
- variant: p,
418
- children: /* @__PURE__ */ i("div", { className: a.baseLayout, children: [
419
- /* @__PURE__ */ e(T, {}),
420
- /* @__PURE__ */ e(d.Header, {}),
421
- /* @__PURE__ */ i("div", { className: a.mainContent, children: [
422
- /* @__PURE__ */ e(d.Sidebar, {}),
423
- /* @__PURE__ */ e(E, { children: /* @__PURE__ */ e("main", { className: a.main, children: /* @__PURE__ */ e("div", { className: a.app, children: l }) }) }),
424
- /* @__PURE__ */ e(d.Backdrop, {})
425
- ] }),
426
- /* @__PURE__ */ e("div", { className: a.navbarWrapper, children: /* @__PURE__ */ e(d.Navbar, {}) })
427
- ] })
428
- }
429
- ) : /* @__PURE__ */ e(
430
- d.Provider,
431
- {
432
- items: n,
433
- title: t,
434
- user: o,
435
- app: s,
436
- clientSideRouter: r,
437
- clientSideHref: h,
438
- headerChildren: c,
439
- isCollapsed: m,
440
- setIsCollapsed: _,
441
- isOpened: b,
442
- setIsOpened: N,
443
- variant: p,
444
- children: /* @__PURE__ */ i("div", { className: a.baseLayout, children: [
445
- /* @__PURE__ */ e(T, {}),
446
- /* @__PURE__ */ e(d.Header, {}),
447
- /* @__PURE__ */ i("div", { className: a.mainContent, children: [
448
- /* @__PURE__ */ e(d.Sidebar, {}),
449
- /* @__PURE__ */ e(E, { children: /* @__PURE__ */ e("main", { className: a.main, children: /* @__PURE__ */ e("div", { className: a.app, children: l }) }) }),
450
- /* @__PURE__ */ e(d.Backdrop, {})
451
- ] })
452
- ] })
453
- }
454
- );
455
- };
456
- d.Provider = Le;
457
- d.Header = Ee;
458
- d.Sidebar = ge;
459
- d.SidebarLink = w;
460
- d.Navbar = Ie;
461
- d.Backdrop = Te;
462
- export {
463
- Ee as H,
464
- d as L,
465
- Ie as N,
466
- ge as S,
467
- w as a
468
- };
package/Link-B88l_oaE.cjs DELETED
@@ -1,6 +0,0 @@
1
- "use strict";require('./assets/Link.css');const n=require("react/jsx-runtime"),j=require("./Link-BQhauBuw.cjs"),_=require("./clsx-C11secjj.cjs"),q=require("./createLucideIcon-Cg_wkoIA.cjs"),k=require("./square-arrow-out-up-right-V4Gd08uI.cjs"),w=require("./arrow-right-QJ2gXPKQ.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 f=q.createLucideIcon("ArrowDownToLine",[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]]),L="_link_txq8j_4",p="_icon_txq8j_50",g="_standalone_txq8j_54",m="_stretched_txq8j_71",t={link:L,icon:p,standalone:g,stretched:m},A=({children:s,standalone:r,target:i,stretched:o,download:a,icon:c,className:u,as:l,...d})=>{const x=l||j.$4f118338184dc1d9$export$a6c7ac8248d6e38a,h=({...e})=>c?n.jsx(c,{...e}):a?n.jsx(f,{...e}):i==="_blank"?n.jsx(k.SquareArrowOutUpRight,{...e}):r?n.jsx(w.ArrowRight,{...e}):null;return n.jsx(x,{className:_.clsx(t.link,r&&t.standalone,o&&t.stretched,u),...d,children:n.jsxs(n.Fragment,{children:[s,n.jsx(h,{size:16,className:t.icon})]})})};exports.Link=A;
package/Link-BQhauBuw.cjs DELETED
@@ -1 +0,0 @@
1
- "use strict";const n=require("./utils-BNtZbAib.cjs"),x=require("react"),T=require("./filterDOMProps-BS2lrgFA.cjs"),f=require("./usePress-0AjDbW9R.cjs"),m=require("./useFocusable-NUVSFcRC.cjs"),F=require("./useHover-_mv5J4_q.cjs"),q=require("./useFocusRing-CbImDrwF.cjs");function E(s,e){let{elementType:d="a",onPress:c,onPressStart:u,onPressEnd:o,onClick:$,isDisabled:t,...b}=s,i={};d!=="a"&&(i={role:"link",tabIndex:t?void 0:0});let{focusableProps:l}=m.$f645667febf57a63$export$4c014de7c8940b4c(s,e),{pressProps:a,isPressed:p}=f.$f6c31cce2adf654f$export$45712eceda6fad21({onPress:c,onPressStart:u,onPressEnd:o,onClick:$,isDisabled:t,ref:e}),h=T.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(b,{labelable:!0}),D=n.$3ef42575df84b30b$export$9d1611c77c2fe928(l,a),v=f.$ea8dcbcb9ea1b556$export$9a302a45f65d0572(),C=f.$ea8dcbcb9ea1b556$export$7e924b3091a3bd18(s);return{isPressed:p,linkProps:n.$3ef42575df84b30b$export$9d1611c77c2fe928(h,C,{...D,...i,"aria-disabled":t||void 0,"aria-current":s["aria-current"],onClick:r=>{var P;(P=a.onClick)===null||P===void 0||P.call(a,r),!v.isNative&&r.currentTarget instanceof HTMLAnchorElement&&r.currentTarget.href&&!r.isDefaultPrevented()&&f.$ea8dcbcb9ea1b556$export$efa8c9099e530235(r.currentTarget,r)&&s.href&&(r.preventDefault(),v.open(r.currentTarget,r,s.href,s.routerOptions))}})}}const k=x.createContext(null),H=x.forwardRef(function(e,d){[e,d]=n.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,k);let c=e.href&&!e.isDisabled?"a":"span",{linkProps:u,isPressed:o}=E({...e,elementType:c},d),{hoverProps:$,isHovered:t}=F.$6179b936705e76d3$export$ae780daf29e6d456(e),{focusProps:b,isFocused:i,isFocusVisible:l}=q.$f7dceffc5ad7768b$export$4e328f61c538687f(),a=n.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-Link",values:{isCurrent:!!e["aria-current"],isDisabled:e.isDisabled||!1,isPressed:o,isHovered:t,isFocused:i,isFocusVisible:l}});return x.createElement(c,{ref:d,slot:e.slot||void 0,...n.$3ef42575df84b30b$export$9d1611c77c2fe928(a,u,$,b),"data-focused":i||void 0,"data-hovered":t||void 0,"data-pressed":o||void 0,"data-focus-visible":l||void 0,"data-current":!!e["aria-current"]||void 0,"data-disabled":e.isDisabled||void 0},a.children)});exports.$4f118338184dc1d9$export$a6c7ac8248d6e38a=H;exports.$4f118338184dc1d9$export$e2509388b49734e7=k;
package/Link-DX5BbBnn.js DELETED
@@ -1,59 +0,0 @@
1
- import { jsx as t, jsxs as p, Fragment as h } from "react/jsx-runtime";
2
- import { $ as u } from "./Link-yNO2-sqx.js";
3
- import { c as x } from "./clsx-OuTLNxxd.js";
4
- import { c as k } from "./createLucideIcon-DeWljiyi.js";
5
- import { S as j } from "./square-arrow-out-up-right-BkyqV2PN.js";
6
- import { A as w } from "./arrow-right-Dg8sttFO.js";
7
- import './assets/Link.css';/**
8
- * @license lucide-react v0.453.0 - ISC
9
- *
10
- * This source code is licensed under the ISC license.
11
- * See the LICENSE file in the root directory of this source tree.
12
- */
13
- const q = k("ArrowDownToLine", [
14
- ["path", { d: "M12 17V3", key: "1cwfxf" }],
15
- ["path", { d: "m6 11 6 6 6-6", key: "12ii2o" }],
16
- ["path", { d: "M19 21H5", key: "150jfl" }]
17
- ]), A = "_link_txq8j_4", L = "_icon_txq8j_50", y = "_standalone_txq8j_54", $ = "_stretched_txq8j_71", o = {
18
- link: A,
19
- icon: L,
20
- standalone: y,
21
- stretched: $
22
- }, T = ({
23
- children: c,
24
- standalone: r,
25
- target: i,
26
- stretched: s,
27
- download: a,
28
- icon: e,
29
- className: l,
30
- as: d,
31
- ...m
32
- }) => {
33
- const f = d || u, _ = ({ ...n }) => e ? /* @__PURE__ */ t(e, { ...n }) : a ? /* @__PURE__ */ t(q, { ...n }) : i === "_blank" ? /* @__PURE__ */ t(j, { ...n }) : r ? /* @__PURE__ */ t(w, { ...n }) : null;
34
- return /* @__PURE__ */ t(
35
- f,
36
- {
37
- className: x(
38
- o.link,
39
- r && o.standalone,
40
- s && o.stretched,
41
- l
42
- ),
43
- ...m,
44
- children: /* @__PURE__ */ p(h, { children: [
45
- c,
46
- /* @__PURE__ */ t(
47
- _,
48
- {
49
- size: 16,
50
- className: o.icon
51
- }
52
- )
53
- ] })
54
- }
55
- );
56
- };
57
- export {
58
- T as L
59
- };
@@ -1,6 +0,0 @@
1
- "use strict";require('./assets/LinkButton.css');const t=require("react/jsx-runtime"),f=require("./Link-BQhauBuw.cjs"),m=require("./clsx-C11secjj.cjs"),y=require("./square-arrow-out-up-right-V4Gd08uI.cjs"),x=require("./createLucideIcon-Cg_wkoIA.cjs"),g=require("./arrow-right-QJ2gXPKQ.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 h=x.createLucideIcon("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),z="_linkButton_qz9cn_4",L="_secondary_qz9cn_55",k="_icon_qz9cn_60",w="_tertiary_qz9cn_85",B="_danger_qz9cn_102",j="_iconBtn_qz9cn_119",p="_medium_qz9cn_141",A="_iconLeft_qz9cn_146",R="_fullwidth_qz9cn_150",n={linkButton:z,secondary:L,icon:k,tertiary:w,danger:B,iconBtn:j,medium:p,iconLeft:A,fullwidth:R},$=({children:i,variant:c,fullwidth:s,icon:r,iconPlacement:o,className:u,as:_,size:d="large",...a})=>{const l=_||f.$4f118338184dc1d9$export$a6c7ac8248d6e38a,q=({...e})=>r?t.jsx(r,{...e}):e.target==="_blank"?t.jsx(y.SquareArrowOutUpRight,{...e}):o==="left"?t.jsx(h,{...e}):t.jsx(g.ArrowRight,{...e});return t.jsxs(l,{className:m.clsx(n.linkButton,c==="primary"&&n.primary,c==="secondary"&&n.secondary,c==="tertiary"&&n.tertiary,c==="danger"&&n.danger,c==="icon"&&n.iconBtn,d==="medium"&&n.medium,s&&n.fullwidth,o==="left"&&n.iconLeft,u),...a,children:[i,t.jsx(q,{size:20,className:n.icon})]})};exports.LinkButton=$;
@@ -1,69 +0,0 @@
1
- import { jsxs as u, jsx as r } from "react/jsx-runtime";
2
- import { $ as y } from "./Link-yNO2-sqx.js";
3
- import { c as p } from "./clsx-OuTLNxxd.js";
4
- import { S as z } from "./square-arrow-out-up-right-BkyqV2PN.js";
5
- import { c as q } from "./createLucideIcon-DeWljiyi.js";
6
- import { A as g } from "./arrow-right-Dg8sttFO.js";
7
- import './assets/LinkButton.css';/**
8
- * @license lucide-react v0.453.0 - ISC
9
- *
10
- * This source code is licensed under the ISC license.
11
- * See the LICENSE file in the root directory of this source tree.
12
- */
13
- const h = q("ArrowLeft", [
14
- ["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
15
- ["path", { d: "M19 12H5", key: "x3x0zl" }]
16
- ]), B = "_linkButton_qz9cn_4", L = "_secondary_qz9cn_55", k = "_icon_qz9cn_60", w = "_tertiary_qz9cn_85", x = "_danger_qz9cn_102", A = "_iconBtn_qz9cn_119", $ = "_medium_qz9cn_141", j = "_iconLeft_qz9cn_146", N = "_fullwidth_qz9cn_150", n = {
17
- linkButton: B,
18
- secondary: L,
19
- icon: k,
20
- tertiary: w,
21
- danger: x,
22
- iconBtn: A,
23
- medium: $,
24
- iconLeft: j,
25
- fullwidth: N
26
- }, O = ({
27
- children: e,
28
- variant: t,
29
- fullwidth: s,
30
- icon: c,
31
- iconPlacement: i,
32
- className: a,
33
- as: _,
34
- size: d = "large",
35
- ...m
36
- }) => {
37
- const f = _ || y, l = ({ ...o }) => c ? /* @__PURE__ */ r(c, { ...o }) : o.target === "_blank" ? /* @__PURE__ */ r(z, { ...o }) : i === "left" ? /* @__PURE__ */ r(h, { ...o }) : /* @__PURE__ */ r(g, { ...o });
38
- return /* @__PURE__ */ u(
39
- f,
40
- {
41
- className: p(
42
- n.linkButton,
43
- t === "primary" && n.primary,
44
- t === "secondary" && n.secondary,
45
- t === "tertiary" && n.tertiary,
46
- t === "danger" && n.danger,
47
- t === "icon" && n.iconBtn,
48
- d === "medium" && n.medium,
49
- s && n.fullwidth,
50
- i === "left" && n.iconLeft,
51
- a
52
- ),
53
- ...m,
54
- children: [
55
- e,
56
- /* @__PURE__ */ r(
57
- l,
58
- {
59
- size: 20,
60
- className: n.icon
61
- }
62
- )
63
- ]
64
- }
65
- );
66
- };
67
- export {
68
- O as L
69
- };