@midas-ds/components 11.2.0 → 12.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (465) hide show
  1. package/AccordionItem-C9dBt-tQ.js +335 -0
  2. package/AccordionItem-SOfjXh3V.cjs +1 -0
  3. package/BadgeContainer-iNNgJKD9.js +37 -0
  4. package/{BadgeContainer-DWVHS5dn.cjs → BadgeContainer-su0iCJKy.cjs} +1 -1
  5. package/Breadcrumbs-BAHJMPsu.js +271 -0
  6. package/Breadcrumbs-DUcHHI_2.cjs +1 -0
  7. package/Button-CMIbSc4-.cjs +1 -0
  8. package/{Button-CepQFEit.js → Button-DD5_S-tD.js} +154 -160
  9. package/{Button-BjMaGya2.js → Button-DYcmg49Z.js} +2 -2
  10. package/{Button-Dq6ugqxT.cjs → Button-DrL5Jv-s.cjs} +1 -1
  11. package/Button.module-BNLcvARn.cjs +1 -0
  12. package/Button.module-Bax2YU6N.js +14 -0
  13. package/ButtonGroup-ClYTgaRc.cjs +1 -0
  14. package/{ButtonGroup-DvVvear6.js → ButtonGroup-WZZDPu9Z.js} +1 -1
  15. package/CHANGELOG.md +114 -0
  16. package/Card-BDDyGAMA.js +131 -0
  17. package/Card-mj5lCIR4.cjs +1 -0
  18. package/{CharacterCounter-DSFBv3Rw.cjs → CharacterCounter-CnRv-iUP.cjs} +1 -1
  19. package/{CharacterCounter-DpBDwvLw.js → CharacterCounter-DT7A0wWP.js} +8 -8
  20. package/Checkbox-BtM2rFh9.js +278 -0
  21. package/Checkbox-CvdIG43J.cjs +1 -0
  22. package/CheckboxGroup-C94as9Xt.cjs +1 -0
  23. package/CheckboxGroup-CjcDYBRk.js +157 -0
  24. package/Collection-B0_WAieZ.js +625 -0
  25. package/Collection-BvWp2xBd.cjs +1 -0
  26. package/{ColorSchemeSwitch-PiEHptw1.js → ColorSchemeSwitch-C4PMYeD5.js} +17 -25
  27. package/{ColorSchemeSwitch-owUryjYz.cjs → ColorSchemeSwitch-CKcoGZM1.cjs} +1 -1
  28. package/ComboBox-B2EmfOyr.cjs +1 -0
  29. package/{ComboBox-DfJ_aJrf.js → ComboBox-BWXJZyOR.js} +522 -511
  30. package/DateField-CcQJYDLD.js +47 -0
  31. package/DateField-IpCiF81R.cjs +1 -0
  32. package/{DateInputDivider-BmvqW1Hk.js → DateInputDivider-CXkUdlzc.js} +936 -839
  33. package/DateInputDivider-Cf5GZHlM.cjs +1 -0
  34. package/DateRangePicker-B2BJO1KC.js +889 -0
  35. package/DateRangePicker-Dfwe9RhJ.cjs +6 -0
  36. package/Dialog-B8swxl24.js +1643 -0
  37. package/Dialog-DR6nEqMT.cjs +1 -0
  38. package/Dialog-DgJobm71.cjs +1 -0
  39. package/Dialog-P3frHOdq.js +240 -0
  40. package/DragAndDrop-Dw8JZmrn.cjs +1 -0
  41. package/DragAndDrop-PrUJv--B.js +75 -0
  42. package/{Dropdown-Cpc2EszJ.js → Dropdown-CIvWpN3v.js} +33 -32
  43. package/Dropdown-DJ2vWAqk.cjs +6 -0
  44. package/FieldError-Cornph2A.cjs +1 -0
  45. package/{FieldError-CDCvUjK5.js → FieldError-DdvFyIf4.js} +16 -14
  46. package/{FileUpload-BokzdXVc.js → FileUpload-D2gnQKdn.js} +76 -74
  47. package/{FileUpload-Bz9md5zc.cjs → FileUpload-D3RaARDV.cjs} +2 -2
  48. package/{FocusScope-DMsfA3bj.js → FocusScope-Bj40Ir-g.js} +192 -195
  49. package/FocusScope-Uy3DiY0-.cjs +1 -0
  50. package/Grid-WbEkSCGh.cjs +1 -0
  51. package/{Grid--OhtgCo6.js → Grid-s8ovKDi8.js} +6 -9
  52. package/GridItem-CIVF1fRW.cjs +1 -0
  53. package/GridItem-D3FZyyO-.js +243 -0
  54. package/{Group-DOpbdoAi.cjs → Group-BKYGeOBr.cjs} +1 -1
  55. package/{Group-B0vQfHDy.js → Group-C73mD_-i.js} +6 -6
  56. package/Heading-BQlmb5Tm.js +46 -0
  57. package/Heading-D3FR_KXb.cjs +1 -0
  58. package/InfoBanner-CqjnTYaa.cjs +1 -0
  59. package/InfoBanner-CrA8MS3v.js +83 -0
  60. package/{Input-n-Z20KbW.js → Input-BLVRv0FK.js} +4 -4
  61. package/{Input-MJji5hhq.cjs → Input-CzMx2mfl.cjs} +1 -1
  62. package/{Label-endv1fkJ.js → Label-BG7G0iyG.js} +23 -27
  63. package/Label-C00qz3kQ.cjs +1 -0
  64. package/Layout-Bta_Cpq_.cjs +16 -0
  65. package/Layout-CG-Qxr_1.js +482 -0
  66. package/{Link-ovwNVMfg.js → Link-BtxKZ0h3.js} +16 -16
  67. package/Link-Bx6avHVl.cjs +6 -0
  68. package/Link-CbFSuEI1.js +73 -0
  69. package/Link-wM7cVPlS.cjs +1 -0
  70. package/LinkButton-BvXu6vAH.cjs +6 -0
  71. package/LinkButton-D3EnZ65v.js +69 -0
  72. package/ListBox-ICZKGluC.cjs +1 -0
  73. package/ListBox-LncMQt6I.js +523 -0
  74. package/ListBoxLoadMoreItem-Ceo73a2q.cjs +1 -0
  75. package/ListBoxLoadMoreItem-W11V-Lef.js +41 -0
  76. package/ListBoxSection-BCPv9H50.js +1085 -0
  77. package/ListBoxSection-Dx75ZinL.cjs +1 -0
  78. package/{ListKeyboardDelegate-CHki611g.js → ListKeyboardDelegate-CVxkAn5D.js} +13 -9
  79. package/ListKeyboardDelegate-C_X1wLkh.cjs +1 -0
  80. package/{Logo-BpH0HC91.cjs → Logo-CFjZc5u2.cjs} +1 -1
  81. package/{Logo-ME4ffCue.js → Logo-DkagDdKQ.js} +14 -18
  82. package/OverlayArrow-ByH6lM-H.cjs +1 -0
  83. package/OverlayArrow-CvNuu3e3.js +519 -0
  84. package/{Popover-BDvKByTT.cjs → Popover-Bi5yJEoE.cjs} +1 -1
  85. package/{Popover-Tniqbaes.js → Popover-CyEVqpJ6.js} +11 -11
  86. package/{PressResponder-C3APAKsz.js → PressResponder-CxVtArtP.js} +4 -4
  87. package/{PressResponder-4jE_HLu3.cjs → PressResponder-DbnYqwGB.cjs} +1 -1
  88. package/ProgressBar-CdXHEJh6.js +53 -0
  89. package/ProgressBar-CjuHokVZ.cjs +1 -0
  90. package/Radio-Bll-7H8O.cjs +1 -0
  91. package/Radio-DoWx2AE1.js +333 -0
  92. package/RangeCalendar-A4WQIG7P.cjs +6 -0
  93. package/{RangeCalendar-BCruEq9d.js → RangeCalendar-D7eFVAPP.js} +637 -629
  94. package/{SearchField-QFyuaT-K.cjs → SearchField-BbrUZpQm.cjs} +2 -2
  95. package/{SearchField-nwlyszwt.js → SearchField-F2FKgYds.js} +27 -31
  96. package/Select-BnbDXwgD.cjs +1 -0
  97. package/Select-Dpi3LhbI.js +654 -0
  98. package/{SelectionManager-BKrZ_mMO.js → SelectionManager-Bq-Gw1UT.js} +291 -282
  99. package/SelectionManager-BtbHoHpA.cjs +1 -0
  100. package/Separator-CM0KPvsX.js +105 -0
  101. package/Separator-Cfv2pbWf.cjs +1 -0
  102. package/Separator-DH-5wu9X.js +77 -0
  103. package/Separator-Dgin8BNW.cjs +1 -0
  104. package/Skeleton-BpYj25p8.js +37 -0
  105. package/Skeleton-DMOxEwnd.cjs +1 -0
  106. package/Spinner-D1UBuLy4.cjs +6 -0
  107. package/Spinner-DTKb_LAA.js +47 -0
  108. package/TabList-D4WwgQY3.cjs +1 -0
  109. package/TabList-D9tl2s85.js +397 -0
  110. package/Table-C6k3PiiC.cjs +16 -0
  111. package/{Table-DGTwyh7U.js → Table-CkN3y69S.js} +883 -804
  112. package/Tag-7dHEMQum.cjs +1 -0
  113. package/Tag-BUJ20HHw.js +765 -0
  114. package/Text-BAFsaON-.cjs +1 -0
  115. package/{Text-DcZqSUN9.js → Text-Be7WIOwv.js} +1 -1
  116. package/{Text-CfcjRtke.cjs → Text-BtPiT2P1.cjs} +1 -1
  117. package/Text-CmlsaWMA.js +32 -0
  118. package/TextArea-BCikUXaD.cjs +1 -0
  119. package/TextArea-h5_oBQH1.js +125 -0
  120. package/TextField-Bm5916AD.cjs +1 -0
  121. package/TextField-_UY8CXtW.js +134 -0
  122. package/TextField.module-C9Zm9unF.js +13 -0
  123. package/TextField.module-GTQtNO0r.cjs +1 -0
  124. package/{Toast-CWt_mNIg.js → Toast-BBkWczCk.js} +234 -253
  125. package/Toast-DclaxvZM.cjs +1 -0
  126. package/ToggleButtonGroup-BGG64PK1.js +214 -0
  127. package/ToggleButtonGroup-Da330GRT.cjs +1 -0
  128. package/Tooltip-BHAtsp9k.js +281 -0
  129. package/Tooltip-CZa9n5sT.cjs +1 -0
  130. package/{VisuallyHidden-CYfmTSCD.js → VisuallyHidden-CGEtjAP7.js} +2 -2
  131. package/{VisuallyHidden-Doyzl0F7.cjs → VisuallyHidden-EjrqodVh.cjs} +1 -1
  132. package/accordion/Accordion.d.ts +8 -2
  133. package/accordion/AccordionContext.d.ts +4 -0
  134. package/accordion/AccordionItem.d.ts +6 -4
  135. package/accordion/index.cjs +1 -1
  136. package/accordion/index.js +1 -1
  137. package/assets/AccordionItem.css +1 -1
  138. package/assets/BadgeContainer.css +1 -1
  139. package/assets/Breadcrumbs.css +1 -1
  140. package/assets/Button.css +1 -1
  141. package/assets/ButtonGroup.css +1 -1
  142. package/assets/Card.css +1 -1
  143. package/assets/CharacterCounter.css +1 -1
  144. package/assets/Checkbox.css +1 -1
  145. package/assets/ComboBox.css +1 -1
  146. package/assets/DateField.css +1 -1
  147. package/assets/DateInputDivider.css +1 -1
  148. package/assets/DateRangePicker.css +1 -1
  149. package/assets/Dialog.css +1 -1
  150. package/assets/Dropdown.css +1 -1
  151. package/assets/FieldError.css +1 -1
  152. package/assets/FileUpload.css +1 -1
  153. package/assets/GridItem.css +1 -1
  154. package/assets/Heading.css +1 -1
  155. package/assets/InfoBanner.css +1 -1
  156. package/assets/Label.css +1 -1
  157. package/assets/Layout.css +1 -1
  158. package/assets/Link.css +1 -1
  159. package/assets/LinkButton.css +1 -1
  160. package/assets/ListBoxSection.css +1 -1
  161. package/assets/Logo.css +1 -1
  162. package/assets/Popover.css +1 -1
  163. package/assets/ProgressBar.css +1 -1
  164. package/assets/Radio.css +1 -1
  165. package/assets/RangeCalendar.css +1 -1
  166. package/assets/SearchField.css +1 -1
  167. package/assets/Select.css +1 -1
  168. package/assets/Separator.css +1 -0
  169. package/assets/Skeleton.css +1 -1
  170. package/assets/Spinner.css +1 -1
  171. package/assets/TabList.css +1 -1
  172. package/assets/Table.css +1 -1
  173. package/assets/Tag.css +1 -1
  174. package/assets/Text.css +1 -1
  175. package/assets/TextField.css +1 -1
  176. package/assets/Toast.css +1 -1
  177. package/assets/ToggleButtonGroup.css +1 -1
  178. package/assets/Tooltip.css +1 -1
  179. package/assets/theme.css +1 -0
  180. package/assets/variables.css +1 -0
  181. package/badge/index.cjs +1 -1
  182. package/badge/index.js +1 -1
  183. package/breadcrumbs/Breadcrumbs.d.ts +0 -2
  184. package/breadcrumbs/index.cjs +1 -1
  185. package/breadcrumbs/index.js +1 -1
  186. package/button/index.cjs +1 -1
  187. package/button/index.js +2 -2
  188. package/calendar/index.cjs +1 -1
  189. package/calendar/index.js +1 -1
  190. package/card/index.cjs +1 -1
  191. package/card/index.js +1 -1
  192. package/character-counter/index.cjs +1 -1
  193. package/character-counter/index.js +1 -1
  194. package/checkbox/index.cjs +1 -1
  195. package/checkbox/index.js +2 -2
  196. package/chevron-right-0-sUFBiR.cjs +6 -0
  197. package/chevron-right-BYYHEJjK.js +11 -0
  198. package/color-scheme-switch/index.cjs +1 -1
  199. package/color-scheme-switch/index.js +1 -1
  200. package/combobox/ComboBox.d.ts +0 -4
  201. package/combobox/index.cjs +1 -1
  202. package/combobox/index.d.ts +1 -2
  203. package/combobox/index.js +2 -3
  204. package/combobox/intl/translations.json.d.ts +4 -2
  205. package/combobox/types.d.ts +0 -13
  206. package/common/icon-map.d.ts +6 -0
  207. package/common/types.d.ts +8 -0
  208. package/date-field/index.cjs +1 -1
  209. package/date-field/index.js +2 -2
  210. package/date-picker/index.cjs +1 -1
  211. package/date-picker/index.js +1 -1
  212. package/dropdown/Dropdown.d.ts +25 -1
  213. package/dropdown/index.cjs +1 -1
  214. package/dropdown/index.js +1 -1
  215. package/field-error/index.cjs +1 -1
  216. package/field-error/index.js +1 -1
  217. package/file-upload/index.cjs +1 -1
  218. package/file-upload/index.js +1 -1
  219. package/filterDOMProps-RRlKPKX0.cjs +1 -0
  220. package/filterDOMProps-wsa9OcNI.js +65 -0
  221. package/grid/Grid.d.ts +0 -8
  222. package/grid/GridItem.d.ts +0 -8
  223. package/grid/index.cjs +1 -1
  224. package/grid/index.d.ts +2 -2
  225. package/grid/index.js +4 -6
  226. package/heading/index.cjs +1 -1
  227. package/heading/index.js +1 -1
  228. package/icon-map-9XcghDra.cjs +11 -0
  229. package/icon-map-uS87FT_Q.js +43 -0
  230. package/{index-CGRFP4CC.js → index-BLPblar-.js} +34 -31
  231. package/index-DSFSh2sC.cjs +17 -0
  232. package/index.cjs +1 -1
  233. package/index.d.ts +2 -0
  234. package/index.js +133 -121
  235. package/info-banner/InfoBanner.d.ts +18 -10
  236. package/info-banner/index.cjs +1 -1
  237. package/info-banner/index.js +1 -1
  238. package/label/index.cjs +1 -1
  239. package/label/index.js +1 -1
  240. package/layout/index.cjs +1 -1
  241. package/layout/index.js +1 -1
  242. package/link/index.cjs +1 -1
  243. package/link/index.js +2 -2
  244. package/link-button/index.cjs +1 -1
  245. package/link-button/index.js +2 -2
  246. package/list-box/ListBoxLoadMoreItem.d.ts +4 -0
  247. package/list-box/index.cjs +1 -1
  248. package/list-box/index.d.ts +1 -0
  249. package/list-box/index.js +6 -5
  250. package/list-box/intl/translations.json.d.ts +11 -0
  251. package/logo/index.cjs +1 -1
  252. package/logo/index.js +1 -1
  253. package/menu/Menu.d.ts +13 -0
  254. package/menu/MenuItem.d.ts +5 -0
  255. package/menu/MenuPopover.d.ts +3 -0
  256. package/menu/MenuSection.d.ts +3 -0
  257. package/menu/Separator.d.ts +3 -0
  258. package/menu/index.cjs +1 -0
  259. package/menu/index.d.ts +5 -0
  260. package/menu/index.js +8 -0
  261. package/{mergeProps-C1U1OIeJ.js → mergeProps-BSsN7Bgk.js} +36 -34
  262. package/mergeProps-JhcJ7uJL.cjs +1 -0
  263. package/modal/index.cjs +1 -1
  264. package/modal/index.js +2 -2
  265. package/package.json +9 -4
  266. package/popover/index.cjs +1 -1
  267. package/popover/index.js +1 -1
  268. package/progress-bar/index.cjs +1 -1
  269. package/progress-bar/index.js +1 -1
  270. package/radio/index.cjs +1 -1
  271. package/radio/index.js +1 -1
  272. package/search-field/index.cjs +1 -1
  273. package/search-field/index.js +1 -1
  274. package/select/Select.d.ts +1 -1
  275. package/select/index.cjs +1 -1
  276. package/select/index.d.ts +1 -1
  277. package/select/index.js +1 -1
  278. package/select/types.d.ts +1 -13
  279. package/skeleton/index.cjs +1 -1
  280. package/skeleton/index.js +1 -1
  281. package/spinner/index.cjs +1 -1
  282. package/spinner/index.js +1 -1
  283. package/table/Table.d.ts +7 -12
  284. package/table/index.cjs +1 -1
  285. package/table/index.js +1 -1
  286. package/tabs/Tabs.d.ts +0 -12
  287. package/tabs/index.cjs +1 -1
  288. package/tabs/index.js +1 -1
  289. package/tag/Tag.d.ts +2 -1
  290. package/tag/index.cjs +1 -1
  291. package/tag/index.js +1 -1
  292. package/text/index.cjs +1 -1
  293. package/text/index.js +1 -1
  294. package/textfield/Input.d.ts +7 -2
  295. package/textfield/PasswordField.d.ts +1 -1
  296. package/textfield/index.cjs +1 -1
  297. package/textfield/index.js +1 -1
  298. package/theme/generated-object.d.ts +384 -0
  299. package/theme/generated-tokens.d.ts +334 -0
  300. package/theme/index.cjs +1 -1
  301. package/theme/index.d.ts +39 -12
  302. package/theme/index.js +4037 -13
  303. package/theme/tokens.d.ts +65 -18
  304. package/toast/Toast.d.ts +2 -1
  305. package/toast/index.cjs +1 -1
  306. package/toast/index.js +1 -1
  307. package/toggle-button/index.cjs +1 -1
  308. package/toggle-button/index.js +1 -1
  309. package/tokens-B3FfJ-rY.cjs +1 -0
  310. package/{tokens-CqvelUoA.js → tokens-B9ooUP4g.js} +69 -32
  311. package/tooltip/index.cjs +1 -1
  312. package/tooltip/index.js +1 -1
  313. package/useButton-D6iUB8cN.js +56 -0
  314. package/useButton-R8-i3HLC.cjs +1 -0
  315. package/useDateFormatter-2B0vgHc-.cjs +1 -0
  316. package/{useDateFormatter-C7BJgoDR.js → useDateFormatter-BJ1ZyaH1.js} +431 -407
  317. package/{useDescription-DYfKjGGU.js → useDescription-BLmIkYCq.js} +1 -1
  318. package/{useDescription-CPo72trh.cjs → useDescription-BMuiAqI5.cjs} +1 -1
  319. package/{useEvent-DPxMu-X9.cjs → useEvent-3ZO5TPSH.cjs} +1 -1
  320. package/{useEvent-CigwyJOw.js → useEvent-DpBHTuHJ.js} +1 -1
  321. package/{useField-CefQB81E.js → useField-BMegM8fA.js} +2 -2
  322. package/{useField-D1UkzeaI.cjs → useField-DyeD7MLj.cjs} +1 -1
  323. package/{useFilter-DsOxD9JB.js → useFilter-BFnSe_Eq.js} +1 -1
  324. package/{useFilter-BhM2yVO3.cjs → useFilter-aoggM85n.cjs} +1 -1
  325. package/{useFocusRing-B-A1OLhU.cjs → useFocusRing-BcbYske2.cjs} +1 -1
  326. package/{useFocusRing-DOfBqnUN.js → useFocusRing-DMo8ctYV.js} +2 -2
  327. package/{useFocusWithin-T1ifEM_s.js → useFocusWithin-ClMkhYcq.js} +1 -1
  328. package/{useFocusWithin-CG8mAt2D.cjs → useFocusWithin-DTnk0e8a.cjs} +1 -1
  329. package/{useFocusable-D7I1ujkW.cjs → useFocusable-CsG-IPuC.cjs} +1 -1
  330. package/{useFocusable-BjE42axF.js → useFocusable-DXlMChFC.js} +4 -4
  331. package/useFormValidation-BQIRxgbU.cjs +1 -0
  332. package/useFormValidation-L0UHvOsP.js +217 -0
  333. package/{useHasTabbableChild-BgEe5J35.js → useHasTabbableChild-BDaxMsGu.js} +2 -2
  334. package/{useHasTabbableChild-CoQRpNbC.cjs → useHasTabbableChild-CJcLnolh.cjs} +1 -1
  335. package/{useHighlightSelectionDescription-xr_16pKd.js → useHighlightSelectionDescription-BkEv9Jye.js} +4 -4
  336. package/{useHighlightSelectionDescription-DmbDkFGY.cjs → useHighlightSelectionDescription-CQaG611l.cjs} +1 -1
  337. package/{useHover-DQvJ3Y-W.js → useHover-D6bNIkU0.js} +76 -74
  338. package/useHover-DGAmG7jt.cjs +1 -0
  339. package/{useLabels-CSU0kbtJ.cjs → useLabels-CvUk-yS3.cjs} +1 -1
  340. package/{useLabels-LrKQiY11.js → useLabels-Kmq5JCp_.js} +1 -1
  341. package/useListState-D2IEg6_e.cjs +1 -0
  342. package/{useListState-B3c3xcNW.js → useListState-pixYqSLl.js} +43 -42
  343. package/usePress-CicXV7UO.cjs +7 -0
  344. package/{usePress-BW47IcyU.js → usePress-DMUpU0GU.js} +153 -149
  345. package/{useSingleSelectListState-DdBsBWKG.js → useSingleSelectListState-BlvpP8y-.js} +1 -1
  346. package/{useSingleSelectListState-DlO5H9N-.cjs → useSingleSelectListState-CwWK_Dx2.cjs} +1 -1
  347. package/{useTextField-DjxayZsV.js → useTextField-BC5X_AO_.js} +30 -27
  348. package/useTextField-Cxpfu0U3.cjs +1 -0
  349. package/useToggleState-BVOqL4hI.js +21 -0
  350. package/useToggleState-SqDyNfRi.cjs +1 -0
  351. package/utils/types.d.ts +4 -0
  352. package/{utils-DHNZrQmj.cjs → utils-CMHKYKlz.cjs} +1 -1
  353. package/{utils-KLjWgdLR.js → utils-Cpcjg55U.js} +1 -1
  354. package/utils-DFIwp4PB.js +262 -0
  355. package/utils-__vrf9VZ.cjs +1 -0
  356. package/AccordionItem-BPOQqTkQ.js +0 -323
  357. package/AccordionItem-CS-QKqrU.cjs +0 -1
  358. package/BadgeContainer-CKBIZWsc.js +0 -37
  359. package/Breadcrumbs-BBzSV4SK.js +0 -262
  360. package/Breadcrumbs-CFUryOhf.cjs +0 -1
  361. package/Button-DExMoP5f.cjs +0 -1
  362. package/Button.module-D-mPLRxe.js +0 -14
  363. package/Button.module-goCEz5qs.cjs +0 -1
  364. package/ButtonGroup-DUqW5dzM.cjs +0 -1
  365. package/Card-BRs1FKX5.js +0 -131
  366. package/Card-cdL5669N.cjs +0 -1
  367. package/Checkbox-Co3h0hur.cjs +0 -1
  368. package/Checkbox-EB_SCBEo.js +0 -264
  369. package/CheckboxGroup-CT_eqERw.cjs +0 -1
  370. package/CheckboxGroup-DvrN1oyw.js +0 -159
  371. package/Collection-BtBX5IMY.cjs +0 -1
  372. package/Collection-D2jVTmDW.js +0 -577
  373. package/ComboBox-D_jh7TKo.cjs +0 -1
  374. package/DateField-BURrxhil.cjs +0 -1
  375. package/DateField-DKCbEonm.js +0 -47
  376. package/DateInputDivider-ToFY-yjB.cjs +0 -1
  377. package/DateRangePicker-B5vx9onl.js +0 -870
  378. package/DateRangePicker-DkIAEIIj.cjs +0 -6
  379. package/Dialog-CxHiZorC.cjs +0 -1
  380. package/Dialog-D5c_dUnB.js +0 -1611
  381. package/Dialog-DtHk3eXI.cjs +0 -1
  382. package/Dialog-DuGcBeNN.js +0 -212
  383. package/DragAndDrop-CSg60YQE.cjs +0 -1
  384. package/DragAndDrop-DOXLfJaA.js +0 -60
  385. package/Dropdown-CYakzdJg.cjs +0 -6
  386. package/FieldError-Bv3Q6ZP-.cjs +0 -1
  387. package/FocusScope-vcXLOQiu.cjs +0 -1
  388. package/Grid-DVQtOcu9.cjs +0 -1
  389. package/GridItem-DlbSdRmB.js +0 -246
  390. package/GridItem-XgHmZWXY.cjs +0 -1
  391. package/Heading-CKTR4sOz.cjs +0 -1
  392. package/Heading-D2y_kiC0.js +0 -46
  393. package/InfoBanner-CzwbOdRG.cjs +0 -1
  394. package/InfoBanner-D05poAe3.js +0 -91
  395. package/Label-ChjDdBlv.cjs +0 -1
  396. package/Layout-D0E1fOgZ.cjs +0 -16
  397. package/Layout-DtyhUz-G.js +0 -498
  398. package/Link-CibH8uRY.js +0 -72
  399. package/Link-CidjjqHb.cjs +0 -1
  400. package/Link-ESjrl63P.cjs +0 -6
  401. package/LinkButton-B6AWNiRn.cjs +0 -6
  402. package/LinkButton-BkZULm2a.js +0 -69
  403. package/ListBox-B0E1hdEt.cjs +0 -1
  404. package/ListBox-Djy7244v.js +0 -531
  405. package/ListBoxButton-CIqNRR3y.cjs +0 -1
  406. package/ListBoxButton-sqirI6I4.js +0 -15
  407. package/ListBoxSection-BYJccE4T.cjs +0 -1
  408. package/ListBoxSection-Cicbu8pS.js +0 -1058
  409. package/ListKeyboardDelegate-ZKBk2IId.cjs +0 -1
  410. package/OverlayArrow-DB_aVTVM.js +0 -507
  411. package/OverlayArrow-DpZ1FqOd.cjs +0 -1
  412. package/ProgressBar-ClysdvqU.cjs +0 -1
  413. package/ProgressBar-DTn23Zkr.js +0 -53
  414. package/Radio-CCN3o3s-.js +0 -313
  415. package/Radio-Cz0vLIBw.cjs +0 -1
  416. package/RangeCalendar-BY82hPRu.cjs +0 -11
  417. package/Select-MwvnbChP.js +0 -664
  418. package/Select-lhIwwJL7.cjs +0 -1
  419. package/SelectionManager-BJjqIWtf.cjs +0 -1
  420. package/Separator-DPLEx950.cjs +0 -1
  421. package/Separator-DvvVAypT.js +0 -59
  422. package/Skeleton-BAwbfKBW.cjs +0 -1
  423. package/Skeleton-BePDRmrO.js +0 -40
  424. package/Spinner-VSyPhiJ9.js +0 -51
  425. package/Spinner-vof0Y9Hh.cjs +0 -6
  426. package/TabList-CWMlbijV.cjs +0 -1
  427. package/TabList-VpTv_Xff.js +0 -435
  428. package/Table-DGYC-sDq.cjs +0 -16
  429. package/Tag-bYq-wf5D.cjs +0 -1
  430. package/Tag-rI-NhuT0.js +0 -748
  431. package/Text-BPcfhYQ9.js +0 -32
  432. package/Text-DBHWi5gA.cjs +0 -1
  433. package/TextArea-CrEALC58.js +0 -119
  434. package/TextArea-DJKHFKuI.cjs +0 -1
  435. package/TextField-BAX93sq7.cjs +0 -1
  436. package/TextField-Dma22dnD.js +0 -120
  437. package/TextField.module-BcpPBWnD.js +0 -13
  438. package/TextField.module-Dw5Rtn9y.cjs +0 -1
  439. package/Toast-DdmSvNaO.cjs +0 -1
  440. package/ToggleButtonGroup-98z8Dw8-.js +0 -211
  441. package/ToggleButtonGroup-DZ_wo0qx.cjs +0 -1
  442. package/Tooltip-DjNc93tV.js +0 -285
  443. package/Tooltip-pN5W3IK6.cjs +0 -1
  444. package/circle-check-BErh6TKu.js +0 -26
  445. package/circle-check-OVUGxwp9.cjs +0 -11
  446. package/filterDOMProps-BS2lrgFA.cjs +0 -1
  447. package/filterDOMProps-D6KHYVBX.js +0 -24
  448. package/index-Dsz3aiWt.cjs +0 -17
  449. package/mergeProps-B5KXZAI3.cjs +0 -1
  450. package/tokens-5PzK5zK7.cjs +0 -1
  451. package/triangle-alert-B_qAPmWC.js +0 -21
  452. package/triangle-alert-BviJNFjf.cjs +0 -6
  453. package/useButton-BoIV3kDJ.js +0 -47
  454. package/useButton-D60q0SQw.cjs +0 -1
  455. package/useDateFormatter-BJBt0jk_.cjs +0 -1
  456. package/useFormValidation-BlFGdPZB.cjs +0 -1
  457. package/useFormValidation-BzzruZKm.js +0 -215
  458. package/useHover-BE_XKZKe.cjs +0 -1
  459. package/useListState-wLau6fXo.cjs +0 -1
  460. package/usePress-BooY_CAy.cjs +0 -7
  461. package/useTextField-DnRrCg5o.cjs +0 -1
  462. package/useToggleState-Bz5rAf4C.js +0 -18
  463. package/useToggleState-DoIkSQdj.cjs +0 -1
  464. package/utils-CoCR_Fce.js +0 -234
  465. package/utils-Dvdohqm9.cjs +0 -1
@@ -0,0 +1 @@
1
+ "use strict";require('./assets/Label.css');const t=require("react/jsx-runtime"),l=require("react"),b=require("./clsx-C11secjj.cjs"),p=require("./Button-CMIbSc4-.cjs"),f=require("./Popover-Bi5yJEoE.cjs"),d=require("./Button-DrL5Jv-s.cjs"),v=require("./Dialog-DR6nEqMT.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_vjive_1",_={labelBase:j},I="_labelPopover_1iatl_1",q="_labelPopoverTrigger_1iatl_7",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:b.clsx(_.labelBase,o),elementType:r||i,...s},a=P.useContext(c);return t.jsx(p.$01b77f81d0f07f68$export$b04be29aa201d4f5,{...n,"aria-describedby":a==null?void 0:a.popoverId,children:e})};exports.Label=B;exports.LabelWrapper=y;
@@ -0,0 +1,16 @@
1
+ "use strict";require('./assets/Layout.css');const e=require("react/jsx-runtime"),E=require("./GridItem-CIVF1fRW.cjs"),O=require("react"),p=require("./clsx-C11secjj.cjs"),L=require("./Button-DrL5Jv-s.cjs"),C=require("./Link-wM7cVPlS.cjs"),I=require("./Tooltip-CZa9n5sT.cjs"),b=require("./BadgeContainer-su0iCJKy.cjs"),y=require("./createLucideIcon-CTVXwe6i.cjs"),T=require("./usePress-CicXV7UO.cjs"),f=require("./useLocalizedStringFormatter-BO2iZEL0.cjs"),H=require("./tokens-B3FfJ-rY.cjs"),k=require("./Logo-CFjZc5u2.cjs"),G=require("./x-rV-nu490.cjs");function D(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 g=D(O);/**
2
+ * @license lucide-react v0.525.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=[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]],W=y.createLucideIcon("menu",F);/**
7
+ * @license lucide-react v0.525.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 R=[["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"}]],A=y.createLucideIcon("panel-left-close",R);/**
12
+ * @license lucide-react v0.525.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 X=[["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"}]],J=y.createLucideIcon("panel-left-open",X),K="_baseLayout_1300g_4",Q="_mainContent_1300g_13",U="_header_1300g_18",V="_headerExternal_1300g_29",Y="_headerContent_1300g_44",Z="_logo_1300g_63",ee="_headerItems_1300g_72",se="_toggleButton_1300g_78",ae="_sidebar_1300g_86",te="_main_1300g_13",ne="_app_1300g_119",re="_sidebarOpened_1300g_127",ie="_sidebarHeader_1300g_131",oe="_appName_1300g_143",le="_collapseButton_1300g_150",ce="_sidebarCollapsed_1300g_159",de="_userName_1300g_169",me="_userTitle_1300g_187",ue="_title_1300g_199",xe="_sidebarNav_1300g_210",pe="_list_1300g_216",_e="_listGroupTitle_1300g_222",he="_listItem_1300g_229",ge="_listItemCollapsed_1300g_234",be="_listLink_1300g_238",je="_listLinkCollapsed_1300g_283",ve="_active_1300g_288",fe="_backdrop_1300g_302",Ne="_backdropOpened_1300g_312",ke="_skipToContent_1300g_330",Ce="_navbar_1300g_344",Le="_navbarList_1300g_356",ye="_navbarItem_1300g_378",Me="_headerContentExternal_1300g_418",Se="_logoExternalContainer_1300g_426",Ee="_logoExternal_1300g_426",Ie="_logoExternalDesktop_1300g_438",Be="_navbarWrapper_1300g_447",s={baseLayout:K,mainContent:Q,header:U,headerExternal:V,headerContent:Y,logo:Z,headerItems:ee,toggleButton:se,sidebar:ae,main:te,app:ne,sidebarOpened:re,sidebarHeader:ie,appName:oe,collapseButton:le,sidebarCollapsed:ce,userName:de,userTitle:me,title:ue,sidebarNav:xe,list:pe,listGroupTitle:_e,listItem:he,listItemCollapsed:ge,listLink:be,listLinkCollapsed:je,active:ve,backdrop:fe,backdropOpened:Ne,skipToContent:ke,navbar:Ce,navbarList:Le,navbarItem:ye,headerContentExternal:Me,logoExternalContainer:Se,logoExternal:Ee,logoExternalDesktop:Ie,navbarWrapper:Be},P=g.createContext(void 0),ze=({items:a,title:t,user:r,app:n,children:i,clientSideRouter:l,clientSideHref:o,headerChildren:x,isCollapsed:u,setIsCollapsed:d,isOpened:_,setIsOpened:m,variant:h,id:j})=>e.jsx(P.Provider,{value:{items:a,title:t,user:r,app:n,headerChildren:x,isCollapsed:u,setIsCollapsed:d,isOpened:_,setIsOpened:m,clientSideRouter:l,clientSideHref:o,variant:h,id:j},children:i}),v=()=>{const a=g.useContext(P);if(!a)throw new Error("useLayoutContext must be used within a LayoutProvider");return a},M=({title:a,href:t,icon:r,active:n,hasBadge:i})=>{const{isCollapsed:l,setIsOpened:o,clientSideHref:x}=v(),u=x?x(t):t,[d,_]=g.useState(!1);return g.useEffect(()=>{typeof window<"u"&&_(n??window.location.pathname===u)},[n,u]),l?e.jsxs(I.TooltipTrigger,{children:[e.jsx(C.$4f118338184dc1d9$export$a6c7ac8248d6e38a,{href:t,"aria-label":a,className:p.clsx(s.listLink,s.listLinkCollapsed,d&&s.active),onPress:()=>o==null?void 0:o(!1),children:e.jsxs(b.BadgeContainer,{children:[e.jsx(r,{size:20,"aria-label":a}),i&&e.jsx(b.Badge,{})]})}),e.jsx(I.Tooltip,{placement:"right",children:a})]}):e.jsxs(C.$4f118338184dc1d9$export$a6c7ac8248d6e38a,{href:t,"aria-label":a,className:p.clsx(s.listLink,d&&s.active),onPress:()=>o==null?void 0:o(!1),children:[e.jsxs(b.BadgeContainer,{children:[e.jsx(r,{size:20}),i&&e.jsx(b.Badge,{})]}),a]})},Te={closeMenu:"Close menu",openMenu:"Open menu",maximizeMenu:"Maximize menu",minimizeMenu:"Minimize menu",sidebarMenu:"Sidebar menu",bottomMenu:"Bottom menu",skipToContent:"Skip to main content"},Pe={closeMenu:"Stäng meny",openMenu:"Öppna meny",maximizeMenu:"Maximera meny",minimizeMenu:"Minimera meny",sidebarMenu:"Sidomeny",bottomMenu:"Bottenmeny",skipToContent:"Hoppa till huvudinnehåll"},N={en:Te,sv:Pe},$=()=>{const{items:a,app:t,isOpened:r,isCollapsed:n,setIsCollapsed:i,setIsOpened:l,clientSideRouter:o,clientSideHref:x,id:u}=v(),d=f.useLocalizedStringFormatter(N),_=({group:m})=>e.jsx("ul",{className:s.list,children:m.items.map((h,j)=>e.jsx("li",{className:p.clsx(s.listItem,n&&s.listItemCollapsed),children:e.jsx(M,{...h})},"link_"+j))});return g.useEffect(()=>{const m=h=>{h.key==="Escape"&&l!==void 0&&l(!1)};return window.addEventListener("keydown",m),()=>{window.removeEventListener("keydown",m)}},[l]),e.jsxs("aside",{id:u,className:p.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(L.Button,{variant:"icon","aria-label":n?d.format("maximizeMenu"):d.format("minimizeMenu"),onPress:()=>i(!n),className:s.collapseButton,children:n?e.jsx(J,{size:20}):e.jsx(A,{size:20})})]}),e.jsx("nav",{className:s.sidebarNav,"aria-label":d.format("sidebarMenu"),children:e.jsx("ul",{className:s.list,children:a.map((m,h)=>e.jsxs("li",{children:[m.title&&!n&&e.jsx("p",{className:s.listGroupTitle,children:m.title}),o?e.jsx(T.$ea8dcbcb9ea1b556$export$323e4fc2fa4753fb,{navigate:o,useHref:x,children:e.jsx(_,{group:m})}):e.jsx(_,{group:m})]},"list_"+h))})})]})},q=()=>{const{title:a,user:t,app:r,isOpened:n,setIsOpened:i,setIsCollapsed:l,headerChildren:o,variant:x,id:u}=v(),d=f.useLocalizedStringFormatter(N);return x==="external"?e.jsx("header",{className:p.clsx(s.header,s.headerExternal),children:e.jsxs("div",{className:s.headerContentExternal,children:[e.jsxs("div",{className:s.logoExternalContainer,children:[e.jsx(k.Logo,{size:"x-small",padding:!1,className:s.logoExternal}),e.jsx(k.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:H.semantic.brandPrimary}`},children:[e.jsxs("div",{className:s.headerContent,children:[e.jsx("div",{className:s.logo,children:e.jsx(k.Logo,{size:"small",padding:!1})}),n!==void 0&&e.jsx(L.Button,{variant:"icon",className:s.toggleButton,"aria-label":n?d.format("closeMenu"):d.format("openMenu"),"aria-controls":u,onPressStart:()=>{l(!1),i==null||i(!0)},children:n?e.jsx(G.X,{size:20,"aria-hidden":"true"}):e.jsx(W,{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})]})},B=({id:a="#main:first-of-type"})=>{const t=()=>{const n=document.querySelector(a);n&&(n.tabIndex=-1,n.focus(),setTimeout(()=>n.removeAttribute("tabindex"),1e3))},r=f.useLocalizedStringFormatter(N);return e.jsx(L.Button,{onPress:t,className:s.skipToContent,children:r.format("skipToContent")})},$e=()=>{const{isOpened:a,setIsOpened:t}=v();return a?e.jsx("div",{className:p.clsx(s.backdrop,s.backdropOpened),onClick:()=>{t==null||t(!1)},"aria-hidden":!0}):null},w=()=>{var l;const{items:a,clientSideRouter:t,clientSideHref:r}=v(),n=f.useLocalizedStringFormatter(N),i=(l=a.at(0))==null?void 0:l.items;return e.jsx("nav",{className:s.navbar,"aria-label":n.format("bottomMenu"),children:i&&e.jsx("ul",{className:p.clsx(s.navbarList),children:t?e.jsx(T.$ea8dcbcb9ea1b556$export$323e4fc2fa4753fb,{navigate:t,useHref:r,children:e.jsx(z,{items:i})}):e.jsx(z,{items:i})})})},z=({items:a})=>e.jsx(e.Fragment,{children:a.map(({href:t,active:r,icon:n,title:i,hasBadge:l},o)=>e.jsx("li",{children:e.jsxs(C.$4f118338184dc1d9$export$a6c7ac8248d6e38a,{href:t,className:p.clsx(s.navbarItem),"data-active":r,"aria-current":r&&"page",children:[e.jsxs(b.BadgeContainer,{children:[e.jsx(n,{size:20}),l&&e.jsx(b.Badge,{})]}),i]})},o))}),c=({items:a,title:t,user:r,app:n,children:i,headerChildren:l,clientSideRouter:o,clientSideHref:x,variant:u,className:d})=>{const[_,m]=g.useState(!1),[h,j]=g.useState(!1),S=g.useId();return u==="external"?e.jsx(c.Provider,{items:a,title:t,user:r,app:n,clientSideRouter:o,clientSideHref:x,headerChildren:l,isCollapsed:_,setIsCollapsed:m,variant:u,id:S,children:e.jsxs("div",{className:p.clsx(s.baseLayout,d),children:[e.jsx(B,{}),e.jsx(c.Header,{}),e.jsxs("div",{className:s.mainContent,children:[e.jsx(c.Sidebar,{}),e.jsx(E.GridItem,{children:e.jsx("main",{className:s.main,children:e.jsx("div",{className:s.app,children:i})})}),e.jsx(c.Backdrop,{})]}),e.jsx("div",{className:s.navbarWrapper,children:e.jsx(c.Navbar,{})})]})}):e.jsx(c.Provider,{items:a,title:t,user:r,app:n,clientSideRouter:o,clientSideHref:x,headerChildren:l,isCollapsed:_,setIsCollapsed:m,isOpened:h,setIsOpened:j,variant:u,id:S,children:e.jsxs("div",{className:p.clsx(s.baseLayout,d),children:[e.jsx(B,{}),e.jsx(c.Header,{}),e.jsxs("div",{className:s.mainContent,children:[e.jsx(c.Sidebar,{}),e.jsx(E.GridItem,{children:e.jsx("main",{className:s.main,children:e.jsx("div",{className:s.app,children:i})})}),e.jsx(c.Backdrop,{})]})]})})};c.Provider=ze;c.Header=q;c.Sidebar=$;c.SidebarLink=M;c.Navbar=w;c.Backdrop=$e;exports.Header=q;exports.Layout=c;exports.Navbar=w;exports.Sidebar=$;exports.SidebarLink=M;
@@ -0,0 +1,482 @@
1
+ import { jsx as e, jsxs as l, Fragment as O } from "react/jsx-runtime";
2
+ import { G as S } from "./GridItem-D3FZyyO-.js";
3
+ import * as v from "react";
4
+ import { c as h } from "./clsx-OuTLNxxd.js";
5
+ import { B as E } from "./Button-DYcmg49Z.js";
6
+ import { $ as y } from "./Link-CbFSuEI1.js";
7
+ import { a as $, T as G } from "./Tooltip-BHAtsp9k.js";
8
+ import { a as L, B as M } from "./BadgeContainer-iNNgJKD9.js";
9
+ import { c as T } from "./createLucideIcon-XRdN60yz.js";
10
+ import { $ as w } from "./usePress-DMUpU0GU.js";
11
+ import { u as k } from "./useLocalizedStringFormatter-N0AyjzbM.js";
12
+ import { f as W } from "./tokens-B9ooUP4g.js";
13
+ import { L as x } from "./Logo-DkagDdKQ.js";
14
+ import { X as j } from "./x-C2xUHAEl.js";
15
+ import './assets/Layout.css';/**
16
+ * @license lucide-react v0.525.0 - ISC
17
+ *
18
+ * This source code is licensed under the ISC license.
19
+ * See the LICENSE file in the root directory of this source tree.
20
+ */
21
+ const D = [
22
+ ["path", { d: "M4 12h16", key: "1lakjw" }],
23
+ ["path", { d: "M4 18h16", key: "19g7jn" }],
24
+ ["path", { d: "M4 6h16", key: "1o0s65" }]
25
+ ], q = T("menu", D);
26
+ /**
27
+ * @license lucide-react v0.525.0 - ISC
28
+ *
29
+ * This source code is licensed under the ISC license.
30
+ * See the LICENSE file in the root directory of this source tree.
31
+ */
32
+ const A = [
33
+ ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
34
+ ["path", { d: "M9 3v18", key: "fh3hqa" }],
35
+ ["path", { d: "m16 15-3-3 3-3", key: "14y99z" }]
36
+ ], F = T("panel-left-close", A);
37
+ /**
38
+ * @license lucide-react v0.525.0 - ISC
39
+ *
40
+ * This source code is licensed under the ISC license.
41
+ * See the LICENSE file in the root directory of this source tree.
42
+ */
43
+ const R = [
44
+ ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
45
+ ["path", { d: "M9 3v18", key: "fh3hqa" }],
46
+ ["path", { d: "m14 9 3 3-3 3", key: "8010ee" }]
47
+ ], X = T("panel-left-open", R), J = "_baseLayout_1300g_4", K = "_mainContent_1300g_13", Q = "_header_1300g_18", U = "_headerExternal_1300g_29", V = "_headerContent_1300g_44", Y = "_logo_1300g_63", Z = "_headerItems_1300g_72", ee = "_toggleButton_1300g_78", ae = "_sidebar_1300g_86", te = "_main_1300g_13", ne = "_app_1300g_119", se = "_sidebarOpened_1300g_127", ie = "_sidebarHeader_1300g_131", re = "_appName_1300g_143", oe = "_collapseButton_1300g_150", le = "_sidebarCollapsed_1300g_159", ce = "_userName_1300g_169", de = "_userTitle_1300g_187", me = "_title_1300g_199", pe = "_sidebarNav_1300g_210", _e = "_list_1300g_216", ue = "_listGroupTitle_1300g_222", he = "_listItem_1300g_229", be = "_listItemCollapsed_1300g_234", ge = "_listLink_1300g_238", ve = "_listLinkCollapsed_1300g_283", fe = "_active_1300g_288", Ne = "_backdrop_1300g_302", ke = "_backdropOpened_1300g_312", Ce = "_skipToContent_1300g_330", xe = "_navbar_1300g_344", ye = "_navbarList_1300g_356", Le = "_navbarItem_1300g_378", Me = "_headerContentExternal_1300g_418", Ee = "_logoExternalContainer_1300g_426", Te = "_logoExternal_1300g_426", Ie = "_logoExternalDesktop_1300g_438", Se = "_navbarWrapper_1300g_447", a = {
48
+ baseLayout: J,
49
+ mainContent: K,
50
+ header: Q,
51
+ headerExternal: U,
52
+ headerContent: V,
53
+ logo: Y,
54
+ headerItems: Z,
55
+ toggleButton: ee,
56
+ sidebar: ae,
57
+ main: te,
58
+ app: ne,
59
+ sidebarOpened: se,
60
+ sidebarHeader: ie,
61
+ appName: re,
62
+ collapseButton: oe,
63
+ sidebarCollapsed: le,
64
+ userName: ce,
65
+ userTitle: de,
66
+ title: me,
67
+ sidebarNav: pe,
68
+ list: _e,
69
+ listGroupTitle: ue,
70
+ listItem: he,
71
+ listItemCollapsed: be,
72
+ listLink: ge,
73
+ listLinkCollapsed: ve,
74
+ active: fe,
75
+ backdrop: Ne,
76
+ backdropOpened: ke,
77
+ skipToContent: Ce,
78
+ navbar: xe,
79
+ navbarList: ye,
80
+ navbarItem: Le,
81
+ headerContentExternal: Me,
82
+ logoExternalContainer: Ee,
83
+ logoExternal: Te,
84
+ logoExternalDesktop: Ie,
85
+ navbarWrapper: Se
86
+ }, P = v.createContext(
87
+ void 0
88
+ ), ze = ({
89
+ items: s,
90
+ title: n,
91
+ user: i,
92
+ app: t,
93
+ children: r,
94
+ clientSideRouter: c,
95
+ clientSideHref: o,
96
+ headerChildren: u,
97
+ isCollapsed: _,
98
+ setIsCollapsed: m,
99
+ isOpened: b,
100
+ setIsOpened: p,
101
+ variant: g,
102
+ id: f
103
+ }) => /* @__PURE__ */ e(
104
+ P.Provider,
105
+ {
106
+ value: {
107
+ items: s,
108
+ title: n,
109
+ user: i,
110
+ app: t,
111
+ headerChildren: u,
112
+ isCollapsed: _,
113
+ setIsCollapsed: m,
114
+ isOpened: b,
115
+ setIsOpened: p,
116
+ clientSideRouter: c,
117
+ clientSideHref: o,
118
+ variant: g,
119
+ id: f
120
+ },
121
+ children: r
122
+ }
123
+ ), N = () => {
124
+ const s = v.useContext(P);
125
+ if (!s)
126
+ throw new Error("useLayoutContext must be used within a LayoutProvider");
127
+ return s;
128
+ }, H = ({
129
+ title: s,
130
+ href: n,
131
+ icon: i,
132
+ active: t,
133
+ hasBadge: r
134
+ }) => {
135
+ const { isCollapsed: c, setIsOpened: o, clientSideHref: u } = N(), _ = u ? u(n) : n, [m, b] = v.useState(!1);
136
+ return v.useEffect(() => {
137
+ typeof window < "u" && b(t ?? window.location.pathname === _);
138
+ }, [t, _]), c ? /* @__PURE__ */ l($, { children: [
139
+ /* @__PURE__ */ e(
140
+ y,
141
+ {
142
+ href: n,
143
+ "aria-label": s,
144
+ className: h(
145
+ a.listLink,
146
+ a.listLinkCollapsed,
147
+ m && a.active
148
+ ),
149
+ onPress: () => o == null ? void 0 : o(!1),
150
+ children: /* @__PURE__ */ l(L, { children: [
151
+ /* @__PURE__ */ e(
152
+ i,
153
+ {
154
+ size: 20,
155
+ "aria-label": s
156
+ }
157
+ ),
158
+ r && /* @__PURE__ */ e(M, {})
159
+ ] })
160
+ }
161
+ ),
162
+ /* @__PURE__ */ e(G, { placement: "right", children: s })
163
+ ] }) : /* @__PURE__ */ l(
164
+ y,
165
+ {
166
+ href: n,
167
+ "aria-label": s,
168
+ className: h(a.listLink, m && a.active),
169
+ onPress: () => o == null ? void 0 : o(!1),
170
+ children: [
171
+ /* @__PURE__ */ l(L, { children: [
172
+ /* @__PURE__ */ e(i, { size: 20 }),
173
+ r && /* @__PURE__ */ e(M, {})
174
+ ] }),
175
+ s
176
+ ]
177
+ }
178
+ );
179
+ }, Be = { closeMenu: "Close menu", openMenu: "Open menu", maximizeMenu: "Maximize menu", minimizeMenu: "Minimize menu", sidebarMenu: "Sidebar menu", bottomMenu: "Bottom menu", skipToContent: "Skip to main content" }, we = { closeMenu: "Stäng meny", openMenu: "Öppna meny", maximizeMenu: "Maximera meny", minimizeMenu: "Minimera meny", sidebarMenu: "Sidomeny", bottomMenu: "Bottenmeny", skipToContent: "Hoppa till huvudinnehåll" }, C = {
180
+ en: Be,
181
+ sv: we
182
+ }, Pe = () => {
183
+ const {
184
+ items: s,
185
+ app: n,
186
+ isOpened: i,
187
+ isCollapsed: t,
188
+ setIsCollapsed: r,
189
+ setIsOpened: c,
190
+ clientSideRouter: o,
191
+ clientSideHref: u,
192
+ id: _
193
+ } = N(), m = k(C), b = ({ group: p }) => /* @__PURE__ */ e("ul", { className: a.list, children: p.items.map((g, f) => /* @__PURE__ */ e(
194
+ "li",
195
+ {
196
+ className: h(
197
+ a.listItem,
198
+ t && a.listItemCollapsed
199
+ ),
200
+ children: /* @__PURE__ */ e(H, { ...g })
201
+ },
202
+ "link_" + f
203
+ )) });
204
+ return v.useEffect(() => {
205
+ const p = (g) => {
206
+ g.key === "Escape" && c !== void 0 && c(!1);
207
+ };
208
+ return window.addEventListener("keydown", p), () => {
209
+ window.removeEventListener("keydown", p);
210
+ };
211
+ }, [c]), /* @__PURE__ */ l(
212
+ "aside",
213
+ {
214
+ id: _,
215
+ className: h(
216
+ a.sidebar,
217
+ t && a.sidebarCollapsed,
218
+ i && a.sidebarOpened
219
+ ),
220
+ children: [
221
+ /* @__PURE__ */ l("div", { className: a.sidebarHeader, children: [
222
+ !t && /* @__PURE__ */ e("p", { className: a.appName, children: n.name }),
223
+ /* @__PURE__ */ e(
224
+ E,
225
+ {
226
+ variant: "icon",
227
+ "aria-label": t ? m.format("maximizeMenu") : m.format("minimizeMenu"),
228
+ onPress: () => r(!t),
229
+ className: a.collapseButton,
230
+ children: t ? /* @__PURE__ */ e(X, { size: 20 }) : /* @__PURE__ */ e(F, { size: 20 })
231
+ }
232
+ )
233
+ ] }),
234
+ /* @__PURE__ */ e(
235
+ "nav",
236
+ {
237
+ className: a.sidebarNav,
238
+ "aria-label": m.format("sidebarMenu"),
239
+ children: /* @__PURE__ */ e("ul", { className: a.list, children: s.map((p, g) => /* @__PURE__ */ l("li", { children: [
240
+ p.title && !t && /* @__PURE__ */ e("p", { className: a.listGroupTitle, children: p.title }),
241
+ o ? /* @__PURE__ */ e(
242
+ w,
243
+ {
244
+ navigate: o,
245
+ useHref: u,
246
+ children: /* @__PURE__ */ e(b, { group: p })
247
+ }
248
+ ) : /* @__PURE__ */ e(b, { group: p })
249
+ ] }, "list_" + g)) })
250
+ }
251
+ )
252
+ ]
253
+ }
254
+ );
255
+ }, He = () => {
256
+ const {
257
+ title: s,
258
+ user: n,
259
+ app: i,
260
+ isOpened: t,
261
+ setIsOpened: r,
262
+ setIsCollapsed: c,
263
+ headerChildren: o,
264
+ variant: u,
265
+ id: _
266
+ } = N(), m = k(C);
267
+ return u === "external" ? /* @__PURE__ */ e("header", { className: h(a.header, a.headerExternal), children: /* @__PURE__ */ l("div", { className: a.headerContentExternal, children: [
268
+ /* @__PURE__ */ l("div", { className: a.logoExternalContainer, children: [
269
+ /* @__PURE__ */ e(
270
+ x,
271
+ {
272
+ size: "x-small",
273
+ padding: !1,
274
+ className: a.logoExternal
275
+ }
276
+ ),
277
+ /* @__PURE__ */ e(
278
+ x,
279
+ {
280
+ size: "small",
281
+ padding: !1,
282
+ className: a.logoExternalDesktop
283
+ }
284
+ ),
285
+ /* @__PURE__ */ l("div", { children: [
286
+ /* @__PURE__ */ e("p", { className: a.userName, children: n.name }),
287
+ /* @__PURE__ */ e("p", { className: a.userTitle, children: n.title })
288
+ ] })
289
+ ] }),
290
+ /* @__PURE__ */ e("div", { className: a.headerItems, children: o })
291
+ ] }) }) : /* @__PURE__ */ l(
292
+ "header",
293
+ {
294
+ className: a.header,
295
+ style: {
296
+ borderTop: `solid 4px ${i.color ? i.color : W.brandPrimary}`
297
+ },
298
+ children: [
299
+ /* @__PURE__ */ l("div", { className: a.headerContent, children: [
300
+ /* @__PURE__ */ e("div", { className: a.logo, children: /* @__PURE__ */ e(
301
+ x,
302
+ {
303
+ size: "small",
304
+ padding: !1
305
+ }
306
+ ) }),
307
+ t !== void 0 && /* @__PURE__ */ e(
308
+ E,
309
+ {
310
+ variant: "icon",
311
+ className: a.toggleButton,
312
+ "aria-label": t ? m.format("closeMenu") : m.format("openMenu"),
313
+ "aria-controls": _,
314
+ onPressStart: () => {
315
+ c(!1), r == null || r(!0);
316
+ },
317
+ children: t ? /* @__PURE__ */ e(
318
+ j,
319
+ {
320
+ size: 20,
321
+ "aria-hidden": "true"
322
+ }
323
+ ) : /* @__PURE__ */ e(
324
+ q,
325
+ {
326
+ size: 20,
327
+ "aria-hidden": "true"
328
+ }
329
+ )
330
+ }
331
+ ),
332
+ /* @__PURE__ */ l("div", { children: [
333
+ /* @__PURE__ */ e("p", { className: a.userName, children: n.name }),
334
+ /* @__PURE__ */ e("p", { className: a.userTitle, children: n.title }),
335
+ /* @__PURE__ */ e("p", { className: a.title, children: s })
336
+ ] })
337
+ ] }),
338
+ /* @__PURE__ */ e("div", { className: a.headerItems, children: o })
339
+ ]
340
+ }
341
+ );
342
+ }, z = ({
343
+ id: s = "#main:first-of-type"
344
+ }) => {
345
+ const n = () => {
346
+ const t = document.querySelector(s);
347
+ t && (t.tabIndex = -1, t.focus(), setTimeout(() => t.removeAttribute("tabindex"), 1e3));
348
+ }, i = k(C);
349
+ return /* @__PURE__ */ e(
350
+ E,
351
+ {
352
+ onPress: n,
353
+ className: a.skipToContent,
354
+ children: i.format("skipToContent")
355
+ }
356
+ );
357
+ }, Oe = () => {
358
+ const { isOpened: s, setIsOpened: n } = N();
359
+ return s ? /* @__PURE__ */ e(
360
+ "div",
361
+ {
362
+ className: h(a.backdrop, a.backdropOpened),
363
+ onClick: () => {
364
+ n == null || n(!1);
365
+ },
366
+ "aria-hidden": !0
367
+ }
368
+ ) : null;
369
+ }, $e = () => {
370
+ var c;
371
+ const { items: s, clientSideRouter: n, clientSideHref: i } = N(), t = k(C), r = (c = s.at(0)) == null ? void 0 : c.items;
372
+ return /* @__PURE__ */ e(
373
+ "nav",
374
+ {
375
+ className: a.navbar,
376
+ "aria-label": t.format("bottomMenu"),
377
+ children: r && /* @__PURE__ */ e("ul", { className: h(a.navbarList), children: n ? /* @__PURE__ */ e(
378
+ w,
379
+ {
380
+ navigate: n,
381
+ useHref: i,
382
+ children: /* @__PURE__ */ e(B, { items: r })
383
+ }
384
+ ) : /* @__PURE__ */ e(B, { items: r }) })
385
+ }
386
+ );
387
+ }, B = ({
388
+ items: s
389
+ }) => /* @__PURE__ */ e(O, { children: s.map(({ href: n, active: i, icon: t, title: r, hasBadge: c }, o) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ l(
390
+ y,
391
+ {
392
+ href: n,
393
+ className: h(a.navbarItem),
394
+ "data-active": i,
395
+ "aria-current": i && "page",
396
+ children: [
397
+ /* @__PURE__ */ l(L, { children: [
398
+ /* @__PURE__ */ e(t, { size: 20 }),
399
+ c && /* @__PURE__ */ e(M, {})
400
+ ] }),
401
+ r
402
+ ]
403
+ }
404
+ ) }, o)) }), d = ({
405
+ items: s,
406
+ title: n,
407
+ user: i,
408
+ app: t,
409
+ children: r,
410
+ headerChildren: c,
411
+ clientSideRouter: o,
412
+ clientSideHref: u,
413
+ variant: _,
414
+ className: m
415
+ }) => {
416
+ const [b, p] = v.useState(!1), [g, f] = v.useState(!1), I = v.useId();
417
+ return _ === "external" ? /* @__PURE__ */ e(
418
+ d.Provider,
419
+ {
420
+ items: s,
421
+ title: n,
422
+ user: i,
423
+ app: t,
424
+ clientSideRouter: o,
425
+ clientSideHref: u,
426
+ headerChildren: c,
427
+ isCollapsed: b,
428
+ setIsCollapsed: p,
429
+ variant: _,
430
+ id: I,
431
+ children: /* @__PURE__ */ l("div", { className: h(a.baseLayout, m), children: [
432
+ /* @__PURE__ */ e(z, {}),
433
+ /* @__PURE__ */ e(d.Header, {}),
434
+ /* @__PURE__ */ l("div", { className: a.mainContent, children: [
435
+ /* @__PURE__ */ e(d.Sidebar, {}),
436
+ /* @__PURE__ */ e(S, { children: /* @__PURE__ */ e("main", { className: a.main, children: /* @__PURE__ */ e("div", { className: a.app, children: r }) }) }),
437
+ /* @__PURE__ */ e(d.Backdrop, {})
438
+ ] }),
439
+ /* @__PURE__ */ e("div", { className: a.navbarWrapper, children: /* @__PURE__ */ e(d.Navbar, {}) })
440
+ ] })
441
+ }
442
+ ) : /* @__PURE__ */ e(
443
+ d.Provider,
444
+ {
445
+ items: s,
446
+ title: n,
447
+ user: i,
448
+ app: t,
449
+ clientSideRouter: o,
450
+ clientSideHref: u,
451
+ headerChildren: c,
452
+ isCollapsed: b,
453
+ setIsCollapsed: p,
454
+ isOpened: g,
455
+ setIsOpened: f,
456
+ variant: _,
457
+ id: I,
458
+ children: /* @__PURE__ */ l("div", { className: h(a.baseLayout, m), children: [
459
+ /* @__PURE__ */ e(z, {}),
460
+ /* @__PURE__ */ e(d.Header, {}),
461
+ /* @__PURE__ */ l("div", { className: a.mainContent, children: [
462
+ /* @__PURE__ */ e(d.Sidebar, {}),
463
+ /* @__PURE__ */ e(S, { children: /* @__PURE__ */ e("main", { className: a.main, children: /* @__PURE__ */ e("div", { className: a.app, children: r }) }) }),
464
+ /* @__PURE__ */ e(d.Backdrop, {})
465
+ ] })
466
+ ] })
467
+ }
468
+ );
469
+ };
470
+ d.Provider = ze;
471
+ d.Header = He;
472
+ d.Sidebar = Pe;
473
+ d.SidebarLink = H;
474
+ d.Navbar = $e;
475
+ d.Backdrop = Oe;
476
+ export {
477
+ He as H,
478
+ d as L,
479
+ $e as N,
480
+ Pe as S,
481
+ H as a
482
+ };
@@ -1,24 +1,24 @@
1
1
  import { jsx as o, jsxs as p, Fragment as h } from "react/jsx-runtime";
2
- import { $ as u } from "./Link-CibH8uRY.js";
3
- import { c as x } from "./clsx-OuTLNxxd.js";
2
+ import { $ as w } from "./Link-CbFSuEI1.js";
3
+ import { c as u } from "./clsx-OuTLNxxd.js";
4
4
  import { c as k } from "./createLucideIcon-XRdN60yz.js";
5
- import { S as j } from "./square-arrow-out-up-right-ok0A3Ovo.js";
6
- import { A as w } from "./arrow-right-uemUGIg8.js";
5
+ import { S as x } from "./square-arrow-out-up-right-ok0A3Ovo.js";
6
+ import { A as y } from "./arrow-right-uemUGIg8.js";
7
7
  import './assets/Link.css';/**
8
8
  * @license lucide-react v0.525.0 - ISC
9
9
  *
10
10
  * This source code is licensed under the ISC license.
11
11
  * See the LICENSE file in the root directory of this source tree.
12
12
  */
13
- const q = [
13
+ const A = [
14
14
  ["path", { d: "M12 17V3", key: "1cwfxf" }],
15
15
  ["path", { d: "m6 11 6 6 6-6", key: "12ii2o" }],
16
16
  ["path", { d: "M19 21H5", key: "150jfl" }]
17
- ], y = k("arrow-down-to-line", q), A = "_link_txq8j_4", L = "_icon_txq8j_50", $ = "_standalone_txq8j_54", N = "_stretched_txq8j_71", n = {
18
- link: A,
19
- icon: L,
20
- standalone: $,
21
- stretched: N
17
+ ], L = k("arrow-down-to-line", A), $ = "_link_1177w_4", j = "_icon_1177w_50", N = "_standalone_1177w_54", g = "_stretched_1177w_71", t = {
18
+ link: $,
19
+ icon: j,
20
+ standalone: N,
21
+ stretched: g
22
22
  }, D = ({
23
23
  children: i,
24
24
  standalone: r,
@@ -30,14 +30,14 @@ const q = [
30
30
  as: l,
31
31
  ...m
32
32
  }) => {
33
- const _ = l || u, f = ({ ...t }) => e ? /* @__PURE__ */ o(e, { ...t }) : a ? /* @__PURE__ */ o(y, { ...t }) : c === "_blank" ? /* @__PURE__ */ o(j, { ...t }) : r ? /* @__PURE__ */ o(w, { ...t }) : null;
33
+ const _ = l || w, f = ({ ...n }) => e ? /* @__PURE__ */ o(e, { ...n }) : a ? /* @__PURE__ */ o(L, { ...n }) : c === "_blank" ? /* @__PURE__ */ o(x, { ...n }) : r ? /* @__PURE__ */ o(y, { ...n }) : null;
34
34
  return /* @__PURE__ */ o(
35
35
  _,
36
36
  {
37
- className: x(
38
- n.link,
39
- r && n.standalone,
40
- s && n.stretched,
37
+ className: u(
38
+ t.link,
39
+ r && t.standalone,
40
+ s && t.stretched,
41
41
  d
42
42
  ),
43
43
  ...m,
@@ -48,7 +48,7 @@ const q = [
48
48
  f,
49
49
  {
50
50
  size: 16,
51
- className: n.icon
51
+ className: t.icon
52
52
  }
53
53
  )
54
54
  ] })
@@ -0,0 +1,6 @@
1
+ "use strict";require('./assets/Link.css');const n=require("react/jsx-runtime"),w=require("./Link-wM7cVPlS.cjs"),x=require("./clsx-C11secjj.cjs"),k=require("./createLucideIcon-CTVXwe6i.cjs"),j=require("./square-arrow-out-up-right-xCFdJTzY.cjs"),f=require("./arrow-right-BGd86zzR.cjs");/**
2
+ * @license lucide-react v0.525.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 q=[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]],p=k.createLucideIcon("arrow-down-to-line",q),L="_link_1177w_4",m="_icon_1177w_50",R="_standalone_1177w_54",g="_stretched_1177w_71",t={link:L,icon:m,standalone:R,stretched:g},y=({children:o,standalone:r,target:c,stretched:i,download:a,icon:s,className:u,as:d,...l})=>{const _=d||w.$4f118338184dc1d9$export$a6c7ac8248d6e38a,h=({...e})=>s?n.jsx(s,{...e}):a?n.jsx(p,{...e}):c==="_blank"?n.jsx(j.SquareArrowOutUpRight,{...e}):r?n.jsx(f.ArrowRight,{...e}):null;return n.jsx(_,{className:x.clsx(t.link,r&&t.standalone,i&&t.stretched,u),...l,target:c,children:n.jsxs(n.Fragment,{children:[o,n.jsx(h,{size:16,className:t.icon})]})})};exports.Link=y;
@@ -0,0 +1,73 @@
1
+ import { $ as C, a as D } from "./utils-Cpcjg55U.js";
2
+ import { a as u } from "./mergeProps-BSsN7Bgk.js";
3
+ import { $ as m } from "./filterDOMProps-wsa9OcNI.js";
4
+ import h, { forwardRef as F, createContext as E } from "react";
5
+ import { b as y, c as H, d as T, e as _ } from "./usePress-DMUpU0GU.js";
6
+ import { a as L } from "./useFocusable-DXlMChFC.js";
7
+ import { $ as S } from "./useHover-D6bNIkU0.js";
8
+ import { $ as V } from "./useFocusRing-DMo8ctYV.js";
9
+ function O(s, e) {
10
+ let { elementType: a = "a", onPress: t, onPressStart: c, onPressEnd: o, onClick: f, isDisabled: r, ...$ } = s, i = {};
11
+ a !== "a" && (i = {
12
+ role: "link",
13
+ tabIndex: r ? void 0 : 0
14
+ });
15
+ let { focusableProps: n } = L(s, e), { pressProps: d, isPressed: l } = y({
16
+ onPress: t,
17
+ onPressStart: c,
18
+ onPressEnd: o,
19
+ onClick: f,
20
+ isDisabled: r,
21
+ ref: e
22
+ }), p = m($, {
23
+ labelable: !0
24
+ }), x = u(n, d), k = H(), v = T(s);
25
+ return {
26
+ isPressed: l,
27
+ linkProps: u(p, v, {
28
+ ...x,
29
+ ...i,
30
+ "aria-disabled": r || void 0,
31
+ "aria-current": s["aria-current"],
32
+ onClick: (P) => {
33
+ var b;
34
+ (b = d.onClick) === null || b === void 0 || b.call(d, P), _(P, k, s.href, s.routerOptions);
35
+ }
36
+ })
37
+ };
38
+ }
39
+ const R = /* @__PURE__ */ E(null), A = /* @__PURE__ */ F(function(e, a) {
40
+ [e, a] = C(e, a, R);
41
+ let t = e.href && !e.isDisabled ? "a" : "span", { linkProps: c, isPressed: o } = O({
42
+ ...e,
43
+ elementType: t
44
+ }, a), { hoverProps: f, isHovered: r } = S(e), { focusProps: $, isFocused: i, isFocusVisible: n } = V(), d = D({
45
+ ...e,
46
+ defaultClassName: "react-aria-Link",
47
+ values: {
48
+ isCurrent: !!e["aria-current"],
49
+ isDisabled: e.isDisabled || !1,
50
+ isPressed: o,
51
+ isHovered: r,
52
+ isFocused: i,
53
+ isFocusVisible: n
54
+ }
55
+ }), l = m(e, {
56
+ global: !0
57
+ });
58
+ return delete l.onClick, /* @__PURE__ */ h.createElement(t, {
59
+ ref: a,
60
+ slot: e.slot || void 0,
61
+ ...u(l, d, c, f, $),
62
+ "data-focused": i || void 0,
63
+ "data-hovered": r || void 0,
64
+ "data-pressed": o || void 0,
65
+ "data-focus-visible": n || void 0,
66
+ "data-current": !!e["aria-current"] || void 0,
67
+ "data-disabled": e.isDisabled || void 0
68
+ }, d.children);
69
+ });
70
+ export {
71
+ A as $,
72
+ R as a
73
+ };
@@ -0,0 +1 @@
1
+ "use strict";const p=require("./utils-CMHKYKlz.cjs"),P=require("./mergeProps-JhcJ7uJL.cjs"),v=require("./filterDOMProps-RRlKPKX0.cjs"),x=require("react"),l=require("./usePress-CicXV7UO.cjs"),h=require("./useFocusable-CsG-IPuC.cjs"),E=require("./useHover-DGAmG7jt.cjs"),H=require("./useFocusRing-BcbYske2.cjs");function y(s,e){let{elementType:r="a",onPress:a,onPressStart:f,onPressEnd:c,onClick:$,isDisabled:d,...u}=s,i={};r!=="a"&&(i={role:"link",tabIndex:d?void 0:0});let{focusableProps:o}=h.$f645667febf57a63$export$4c014de7c8940b4c(s,e),{pressProps:t,isPressed:n}=l.$f6c31cce2adf654f$export$45712eceda6fad21({onPress:a,onPressStart:f,onPressEnd:c,onClick:$,isDisabled:d,ref:e}),D=v.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(u,{labelable:!0}),m=P.$3ef42575df84b30b$export$9d1611c77c2fe928(o,t),q=l.$ea8dcbcb9ea1b556$export$9a302a45f65d0572(),F=l.$ea8dcbcb9ea1b556$export$7e924b3091a3bd18(s);return{isPressed:n,linkProps:P.$3ef42575df84b30b$export$9d1611c77c2fe928(D,F,{...m,...i,"aria-disabled":d||void 0,"aria-current":s["aria-current"],onClick:k=>{var b;(b=t.onClick)===null||b===void 0||b.call(t,k),l.$ea8dcbcb9ea1b556$export$13aea1a3cb5e3f1f(k,q,s.href,s.routerOptions)}})}}const C=x.createContext(null),T=x.forwardRef(function(e,r){[e,r]=p.$64fa3d84918910a7$export$29f1550f4b0d4415(e,r,C);let a=e.href&&!e.isDisabled?"a":"span",{linkProps:f,isPressed:c}=y({...e,elementType:a},r),{hoverProps:$,isHovered:d}=E.$6179b936705e76d3$export$ae780daf29e6d456(e),{focusProps:u,isFocused:i,isFocusVisible:o}=H.$f7dceffc5ad7768b$export$4e328f61c538687f(),t=p.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-Link",values:{isCurrent:!!e["aria-current"],isDisabled:e.isDisabled||!1,isPressed:c,isHovered:d,isFocused:i,isFocusVisible:o}}),n=v.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return delete n.onClick,x.createElement(a,{ref:r,slot:e.slot||void 0,...P.$3ef42575df84b30b$export$9d1611c77c2fe928(n,t,f,$,u),"data-focused":i||void 0,"data-hovered":d||void 0,"data-pressed":c||void 0,"data-focus-visible":o||void 0,"data-current":!!e["aria-current"]||void 0,"data-disabled":e.isDisabled||void 0},t.children)});exports.$4f118338184dc1d9$export$a6c7ac8248d6e38a=T;exports.$4f118338184dc1d9$export$e2509388b49734e7=C;