@midas-ds/components 12.0.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.
- package/AccordionItem-C9dBt-tQ.js +335 -0
- package/AccordionItem-SOfjXh3V.cjs +1 -0
- package/{BadgeContainer-DGJGJMPi.js → BadgeContainer-iNNgJKD9.js} +8 -8
- package/BadgeContainer-su0iCJKy.cjs +1 -0
- package/Breadcrumbs-BAHJMPsu.js +271 -0
- package/Breadcrumbs-DUcHHI_2.cjs +1 -0
- package/Button-CMIbSc4-.cjs +1 -0
- package/{Button-DtC_ZOyd.js → Button-DD5_S-tD.js} +155 -161
- package/{Button-akT6Hvug.js → Button-DYcmg49Z.js} +2 -2
- package/{Button-DQm2iqKU.cjs → Button-DrL5Jv-s.cjs} +1 -1
- package/Button.module-BNLcvARn.cjs +1 -0
- package/Button.module-Bax2YU6N.js +14 -0
- package/ButtonGroup-ClYTgaRc.cjs +1 -0
- package/{ButtonGroup-DvVvear6.js → ButtonGroup-WZZDPu9Z.js} +1 -1
- package/CHANGELOG.md +65 -0
- package/Card-BDDyGAMA.js +131 -0
- package/Card-mj5lCIR4.cjs +1 -0
- package/{CharacterCounter-DQJVM-mZ.cjs → CharacterCounter-CnRv-iUP.cjs} +1 -1
- package/CharacterCounter-DT7A0wWP.js +22 -0
- package/Checkbox-BtM2rFh9.js +278 -0
- package/Checkbox-CvdIG43J.cjs +1 -0
- package/CheckboxGroup-C94as9Xt.cjs +1 -0
- package/CheckboxGroup-CjcDYBRk.js +157 -0
- package/Collection-B0_WAieZ.js +625 -0
- package/Collection-BvWp2xBd.cjs +1 -0
- package/{ColorSchemeSwitch-DyZ9FAKG.js → ColorSchemeSwitch-C4PMYeD5.js} +20 -28
- package/{ColorSchemeSwitch-DtyJ9-5B.cjs → ColorSchemeSwitch-CKcoGZM1.cjs} +3 -3
- package/ComboBox-B2EmfOyr.cjs +1 -0
- package/{ComboBox-Dn3tQzri.js → ComboBox-BWXJZyOR.js} +522 -507
- package/DateField-CcQJYDLD.js +47 -0
- package/DateField-IpCiF81R.cjs +1 -0
- package/{DateInputDivider-CJEGWmG0.js → DateInputDivider-CXkUdlzc.js} +936 -839
- package/DateInputDivider-Cf5GZHlM.cjs +1 -0
- package/DateRangePicker-B2BJO1KC.js +889 -0
- package/DateRangePicker-Dfwe9RhJ.cjs +6 -0
- package/Dialog-B8swxl24.js +1643 -0
- package/Dialog-DR6nEqMT.cjs +1 -0
- package/Dialog-DgJobm71.cjs +1 -0
- package/Dialog-P3frHOdq.js +240 -0
- package/DragAndDrop-Dw8JZmrn.cjs +1 -0
- package/DragAndDrop-PrUJv--B.js +75 -0
- package/{Dropdown-BWbdSQ9U.js → Dropdown-CIvWpN3v.js} +8 -8
- package/{Dropdown-CJ-sujKv.cjs → Dropdown-DJ2vWAqk.cjs} +2 -2
- package/FieldError-Cornph2A.cjs +1 -0
- package/FieldError-DdvFyIf4.js +48 -0
- package/{FileUpload-B89QfnCB.js → FileUpload-D2gnQKdn.js} +76 -74
- package/{FileUpload-KQ1XAKAc.cjs → FileUpload-D3RaARDV.cjs} +2 -2
- package/{FocusScope-CEgd3xCY.js → FocusScope-Bj40Ir-g.js} +192 -195
- package/FocusScope-Uy3DiY0-.cjs +1 -0
- package/{Grid-Db5wZrw6.cjs → Grid-WbEkSCGh.cjs} +1 -1
- package/{Grid-B2av0vt8.js → Grid-s8ovKDi8.js} +1 -1
- package/GridItem-CIVF1fRW.cjs +1 -0
- package/GridItem-D3FZyyO-.js +243 -0
- package/{Group-Cdy6z9ra.cjs → Group-BKYGeOBr.cjs} +1 -1
- package/{Group-B3mRMVy7.js → Group-C73mD_-i.js} +13 -13
- package/Heading-BQlmb5Tm.js +46 -0
- package/Heading-D3FR_KXb.cjs +1 -0
- package/{Hidden-B5ir3Lei.js → Hidden-C9KWUR7b.js} +2 -2
- package/InfoBanner-CqjnTYaa.cjs +1 -0
- package/InfoBanner-CrA8MS3v.js +83 -0
- package/{Input-BnpBRnJz.js → Input-BLVRv0FK.js} +9 -9
- package/{Input-DIhhWEPW.cjs → Input-CzMx2mfl.cjs} +1 -1
- package/{Label-ByWt6Lfh.js → Label-BG7G0iyG.js} +24 -28
- package/Label-C00qz3kQ.cjs +1 -0
- package/Layout-Bta_Cpq_.cjs +16 -0
- package/Layout-CG-Qxr_1.js +482 -0
- package/{Link-Dnnv00g9.js → Link-BtxKZ0h3.js} +16 -16
- package/Link-Bx6avHVl.cjs +6 -0
- package/Link-CbFSuEI1.js +73 -0
- package/Link-wM7cVPlS.cjs +1 -0
- package/LinkButton-BvXu6vAH.cjs +6 -0
- package/LinkButton-D3EnZ65v.js +69 -0
- package/ListBox-ICZKGluC.cjs +1 -0
- package/ListBox-LncMQt6I.js +523 -0
- package/ListBoxLoadMoreItem-Ceo73a2q.cjs +1 -0
- package/ListBoxLoadMoreItem-W11V-Lef.js +41 -0
- package/ListBoxSection-BCPv9H50.js +1085 -0
- package/ListBoxSection-Dx75ZinL.cjs +1 -0
- package/{ListKeyboardDelegate-mcrZobNa.js → ListKeyboardDelegate-CVxkAn5D.js} +13 -9
- package/ListKeyboardDelegate-C_X1wLkh.cjs +1 -0
- package/{Logo-BW5NXAdu.cjs → Logo-CFjZc5u2.cjs} +1 -1
- package/{Logo-qkVS1MCN.js → Logo-DkagDdKQ.js} +15 -19
- package/OverlayArrow-ByH6lM-H.cjs +1 -0
- package/OverlayArrow-CvNuu3e3.js +519 -0
- package/{Popover-C5chAY42.cjs → Popover-Bi5yJEoE.cjs} +1 -1
- package/{Popover-viLqHHX2.js → Popover-CyEVqpJ6.js} +11 -11
- package/{PressResponder-B_Zqu7b1.js → PressResponder-CxVtArtP.js} +9 -9
- package/PressResponder-DbnYqwGB.cjs +1 -0
- package/ProgressBar-CdXHEJh6.js +53 -0
- package/ProgressBar-CjuHokVZ.cjs +1 -0
- package/Radio-Bll-7H8O.cjs +1 -0
- package/Radio-DoWx2AE1.js +333 -0
- package/RangeCalendar-A4WQIG7P.cjs +6 -0
- package/{RangeCalendar-DGGMbb0j.js → RangeCalendar-D7eFVAPP.js} +638 -630
- package/{SSRProvider-D8lZ0o6A.js → SSRProvider-40TXmsUG.js} +5 -5
- package/{SSRProvider-DZRLwxPS.cjs → SSRProvider-Bc-sMhsT.cjs} +1 -1
- package/{SearchField-Ma3KB8Em.cjs → SearchField-BbrUZpQm.cjs} +2 -2
- package/{SearchField-B0dlPqsW.js → SearchField-F2FKgYds.js} +29 -33
- package/Select-BnbDXwgD.cjs +1 -0
- package/Select-Dpi3LhbI.js +654 -0
- package/{SelectionManager-BdKKuso-.js → SelectionManager-Bq-Gw1UT.js} +291 -282
- package/SelectionManager-BtbHoHpA.cjs +1 -0
- package/Separator-CM0KPvsX.js +105 -0
- package/Separator-Cfv2pbWf.cjs +1 -0
- package/Separator-DH-5wu9X.js +77 -0
- package/Separator-Dgin8BNW.cjs +1 -0
- package/Skeleton-BpYj25p8.js +37 -0
- package/Skeleton-DMOxEwnd.cjs +1 -0
- package/Spinner-D1UBuLy4.cjs +6 -0
- package/Spinner-DTKb_LAA.js +47 -0
- package/TabList-D4WwgQY3.cjs +1 -0
- package/TabList-D9tl2s85.js +397 -0
- package/Table-C6k3PiiC.cjs +16 -0
- package/{Table-CTS0J_sQ.js → Table-CkN3y69S.js} +856 -798
- package/Tag-7dHEMQum.cjs +1 -0
- package/Tag-BUJ20HHw.js +765 -0
- package/Text-BAFsaON-.cjs +1 -0
- package/{Text--KL3Auo7.js → Text-Be7WIOwv.js} +3 -3
- package/{Text-wuw0HQoa.cjs → Text-BtPiT2P1.cjs} +1 -1
- package/Text-CmlsaWMA.js +32 -0
- package/TextArea-BCikUXaD.cjs +1 -0
- package/TextArea-h5_oBQH1.js +125 -0
- package/TextField-Bm5916AD.cjs +1 -0
- package/TextField-_UY8CXtW.js +134 -0
- package/TextField.module-C9Zm9unF.js +13 -0
- package/TextField.module-GTQtNO0r.cjs +1 -0
- package/{Toast-BnzpC_5v.js → Toast-BBkWczCk.js} +202 -214
- package/{Toast-BEh5yYzO.cjs → Toast-DclaxvZM.cjs} +1 -1
- package/ToggleButtonGroup-BGG64PK1.js +214 -0
- package/ToggleButtonGroup-Da330GRT.cjs +1 -0
- package/Tooltip-BHAtsp9k.js +281 -0
- package/Tooltip-CZa9n5sT.cjs +1 -0
- package/{VisuallyHidden-BKslUoMJ.js → VisuallyHidden-CGEtjAP7.js} +8 -8
- package/{VisuallyHidden-DxDOcIsh.cjs → VisuallyHidden-EjrqodVh.cjs} +1 -1
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +1 -1
- package/assets/AccordionItem.css +1 -1
- package/assets/BadgeContainer.css +1 -1
- package/assets/Breadcrumbs.css +1 -1
- package/assets/Button.css +1 -1
- package/assets/ButtonGroup.css +1 -1
- package/assets/Card.css +1 -1
- package/assets/CharacterCounter.css +1 -1
- package/assets/Checkbox.css +1 -1
- package/assets/ComboBox.css +1 -1
- package/assets/DateField.css +1 -1
- package/assets/DateInputDivider.css +1 -1
- package/assets/DateRangePicker.css +1 -1
- package/assets/Dialog.css +1 -1
- package/assets/Dropdown.css +1 -1
- package/assets/FieldError.css +1 -1
- package/assets/FileUpload.css +1 -1
- package/assets/GridItem.css +1 -1
- package/assets/Heading.css +1 -1
- package/assets/InfoBanner.css +1 -1
- package/assets/Label.css +1 -1
- package/assets/Layout.css +1 -1
- package/assets/Link.css +1 -1
- package/assets/LinkButton.css +1 -1
- package/assets/ListBoxSection.css +1 -1
- package/assets/Logo.css +1 -1
- package/assets/Popover.css +1 -1
- package/assets/ProgressBar.css +1 -1
- package/assets/Radio.css +1 -1
- package/assets/RangeCalendar.css +1 -1
- package/assets/SearchField.css +1 -1
- package/assets/Select.css +1 -1
- package/assets/Separator.css +1 -0
- package/assets/Skeleton.css +1 -1
- package/assets/Spinner.css +1 -1
- package/assets/TabList.css +1 -1
- package/assets/Table.css +1 -1
- package/assets/Tag.css +1 -1
- package/assets/Text.css +1 -1
- package/assets/TextField.css +1 -1
- package/assets/Toast.css +1 -1
- package/assets/ToggleButtonGroup.css +1 -1
- package/assets/Tooltip.css +1 -1
- package/assets/theme.css +1 -1
- package/assets/variables.css +1 -0
- package/badge/index.cjs +1 -1
- package/badge/index.js +1 -1
- package/breadcrumbs/index.cjs +1 -1
- package/breadcrumbs/index.js +1 -1
- package/button/index.cjs +1 -1
- package/button/index.js +2 -2
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +1 -1
- package/card/index.cjs +1 -1
- package/card/index.js +1 -1
- package/character-counter/index.cjs +1 -1
- package/character-counter/index.js +1 -1
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.js +2 -2
- package/chevron-right-0-sUFBiR.cjs +6 -0
- package/chevron-right-BYYHEJjK.js +11 -0
- package/color-scheme-switch/index.cjs +1 -1
- package/color-scheme-switch/index.js +1 -1
- package/combobox/index.cjs +1 -1
- package/combobox/index.d.ts +1 -1
- package/combobox/index.js +1 -1
- package/combobox/intl/translations.json.d.ts +4 -2
- package/{context-Dl_saGB6.js → context-CGNJ3grH.js} +11 -11
- package/{context-UOrD6Zxk.cjs → context-Df3XbgBG.cjs} +1 -1
- package/date-field/index.cjs +1 -1
- package/date-field/index.js +2 -2
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +1 -1
- package/dropdown/Dropdown.d.ts +18 -0
- package/dropdown/index.cjs +1 -1
- package/dropdown/index.js +1 -1
- package/field-error/index.cjs +1 -1
- package/field-error/index.js +1 -1
- package/file-upload/index.cjs +1 -1
- package/file-upload/index.js +1 -1
- package/filterDOMProps-RRlKPKX0.cjs +1 -0
- package/filterDOMProps-wsa9OcNI.js +65 -0
- package/grid/index.cjs +1 -1
- package/grid/index.js +2 -2
- package/heading/index.cjs +1 -1
- package/heading/index.js +1 -1
- package/{index-BSMrH_Du.js → index-BLPblar-.js} +33 -30
- package/{index-D97L3EBk.cjs → index-DSFSh2sC.cjs} +3 -3
- package/index.cjs +1 -1
- package/index.d.ts +2 -0
- package/index.js +140 -125
- package/inertValue-B3AFhVG4.cjs +1 -0
- package/info-banner/index.cjs +1 -1
- package/info-banner/index.js +1 -1
- package/label/index.cjs +1 -1
- package/label/index.js +1 -1
- package/layout/index.cjs +1 -1
- package/layout/index.js +1 -1
- package/link/index.cjs +1 -1
- package/link/index.js +2 -2
- package/link-button/index.cjs +1 -1
- package/link-button/index.js +2 -2
- package/list-box/ListBoxLoadMoreItem.d.ts +4 -0
- package/list-box/index.cjs +1 -1
- package/list-box/index.d.ts +1 -0
- package/list-box/index.js +6 -5
- package/list-box/intl/translations.json.d.ts +11 -0
- package/logo/index.cjs +1 -1
- package/logo/index.js +1 -1
- package/menu/Menu.d.ts +13 -0
- package/menu/MenuItem.d.ts +5 -0
- package/menu/MenuPopover.d.ts +3 -0
- package/menu/MenuSection.d.ts +3 -0
- package/menu/Separator.d.ts +3 -0
- package/menu/index.cjs +1 -0
- package/menu/index.d.ts +5 -0
- package/menu/index.js +8 -0
- package/mergeProps-BSsN7Bgk.js +117 -0
- package/mergeProps-JhcJ7uJL.cjs +1 -0
- package/modal/index.cjs +1 -1
- package/modal/index.js +2 -2
- package/package.json +6 -4
- package/popover/index.cjs +1 -1
- package/popover/index.js +1 -1
- package/progress-bar/index.cjs +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/search-field/index.cjs +1 -1
- package/search-field/index.js +1 -1
- package/select/Select.d.ts +1 -1
- package/select/index.cjs +1 -1
- package/select/index.js +1 -1
- package/skeleton/index.cjs +1 -1
- package/skeleton/index.js +1 -1
- package/spinner/index.cjs +1 -1
- package/spinner/index.js +1 -1
- package/table/index.cjs +1 -1
- package/table/index.js +1 -1
- package/tabs/index.cjs +1 -1
- package/tabs/index.js +1 -1
- package/tag/index.cjs +1 -1
- package/tag/index.js +1 -1
- package/text/index.cjs +1 -1
- package/text/index.js +1 -1
- package/textfield/Input.d.ts +7 -2
- package/textfield/PasswordField.d.ts +1 -1
- package/textfield/index.cjs +1 -1
- package/textfield/index.js +1 -1
- package/theme/generated-object.d.ts +384 -0
- package/theme/generated-tokens.d.ts +334 -0
- package/theme/index.cjs +1 -1
- package/theme/index.d.ts +4 -1
- package/theme/index.js +4037 -14
- package/theme/tokens.d.ts +30 -1
- package/toast/index.cjs +1 -1
- package/toast/index.js +1 -1
- package/toggle-button/index.cjs +1 -1
- package/toggle-button/index.js +1 -1
- package/{tokens-BWo7EvNX.cjs → tokens-B3FfJ-rY.cjs} +1 -1
- package/{tokens-BtEBd3jO.js → tokens-B9ooUP4g.js} +1 -2
- package/tooltip/index.cjs +1 -1
- package/tooltip/index.js +1 -1
- package/useButton-D6iUB8cN.js +56 -0
- package/useButton-R8-i3HLC.cjs +1 -0
- package/useDateFormatter-2B0vgHc-.cjs +1 -0
- package/{useDateFormatter-DiIUdTak.js → useDateFormatter-BJ1ZyaH1.js} +431 -407
- package/{useDescription-LmB1V4Tg.js → useDescription-BLmIkYCq.js} +1 -1
- package/{useDescription-ByNlNIRU.cjs → useDescription-BMuiAqI5.cjs} +1 -1
- package/useEvent-3ZO5TPSH.cjs +1 -0
- package/{useEvent-DqWz89vg.js → useEvent-DpBHTuHJ.js} +1 -1
- package/{useField-5CEdtfab.js → useField-BMegM8fA.js} +2 -2
- package/{useField-CoQAzygg.cjs → useField-DyeD7MLj.cjs} +1 -1
- package/{useFilter-BKQT28sh.js → useFilter-BFnSe_Eq.js} +1 -1
- package/{useFilter-Bjh5dq2Q.cjs → useFilter-aoggM85n.cjs} +1 -1
- package/{useFocusRing-BM-zcH6L.cjs → useFocusRing-BcbYske2.cjs} +1 -1
- package/{useFocusRing-HoJn20X5.js → useFocusRing-DMo8ctYV.js} +2 -2
- package/{useFocusWithin-Cn18Myw6.js → useFocusWithin-ClMkhYcq.js} +1 -1
- package/{useFocusWithin-o0WjCpEB.cjs → useFocusWithin-DTnk0e8a.cjs} +1 -1
- package/{useFocusable-DbmryjUH.cjs → useFocusable-CsG-IPuC.cjs} +1 -1
- package/{useFocusable-ZjCKo1ed.js → useFocusable-DXlMChFC.js} +14 -14
- package/useFormValidation-BQIRxgbU.cjs +1 -0
- package/useFormValidation-L0UHvOsP.js +217 -0
- package/{useHasTabbableChild-CyOmqumh.js → useHasTabbableChild-BDaxMsGu.js} +2 -2
- package/useHasTabbableChild-CJcLnolh.cjs +1 -0
- package/{useHighlightSelectionDescription-DTxHtOsw.js → useHighlightSelectionDescription-BkEv9Jye.js} +5 -5
- package/{useHighlightSelectionDescription-DAhPdEG6.cjs → useHighlightSelectionDescription-CQaG611l.cjs} +1 -1
- package/{useHover-D8fja4GW.js → useHover-D6bNIkU0.js} +81 -79
- package/useHover-DGAmG7jt.cjs +1 -0
- package/{useLabels-BtDN_ALM.cjs → useLabels-CvUk-yS3.cjs} +1 -1
- package/{useLabels-DZlvh4P4.js → useLabels-Kmq5JCp_.js} +1 -1
- package/useListState-D2IEg6_e.cjs +1 -0
- package/{useListState-e7cL-FOK.js → useListState-pixYqSLl.js} +43 -42
- package/{useLocalizedStringFormatter-BSac43NO.cjs → useLocalizedStringFormatter-BO2iZEL0.cjs} +1 -1
- package/useLocalizedStringFormatter-BiX5BTlb.cjs +1 -0
- package/{useLocalizedStringFormatter-CSEh15AZ.js → useLocalizedStringFormatter-CL9MUZ8A.js} +1 -1
- package/{useLocalizedStringFormatter-aOhh7wdl.js → useLocalizedStringFormatter-N0AyjzbM.js} +1 -1
- package/useObserveElement-MhzEsCkX.cjs +1 -0
- package/usePress-CicXV7UO.cjs +7 -0
- package/{usePress-B_jgTf4k.js → usePress-DMUpU0GU.js} +84 -80
- package/{useSingleSelectListState-D7LjjoUJ.js → useSingleSelectListState-BlvpP8y-.js} +1 -1
- package/{useSingleSelectListState-BiJMNaOl.cjs → useSingleSelectListState-CwWK_Dx2.cjs} +1 -1
- package/useTextField-BC5X_AO_.js +89 -0
- package/useTextField-Cxpfu0U3.cjs +1 -0
- package/useToggleState-BVOqL4hI.js +21 -0
- package/useToggleState-SqDyNfRi.cjs +1 -0
- package/{useUpdateEffect-sk3kiVGz.cjs → useUpdateEffect-C5YQs_1w.cjs} +1 -1
- package/utils/types.d.ts +4 -0
- package/{utils-BM2vxlNA.cjs → utils-CMHKYKlz.cjs} +1 -1
- package/{utils-KYuflGZt.js → utils-Cpcjg55U.js} +10 -10
- package/utils-DFIwp4PB.js +262 -0
- package/utils-__vrf9VZ.cjs +1 -0
- package/AccordionItem-DEiRuizp.js +0 -361
- package/AccordionItem-Dhr7uo8u.cjs +0 -1
- package/BadgeContainer-CxVmqJ7g.cjs +0 -1
- package/Breadcrumbs-CEyKlcGU.js +0 -262
- package/Breadcrumbs-CnGzvtbn.cjs +0 -1
- package/Button-DZzQGk-L.cjs +0 -1
- package/Button.module-D-mPLRxe.js +0 -14
- package/Button.module-goCEz5qs.cjs +0 -1
- package/ButtonGroup-DUqW5dzM.cjs +0 -1
- package/Card-CwwVnA_a.js +0 -131
- package/Card-DPfOZC7f.cjs +0 -1
- package/CharacterCounter-DPphWPzA.js +0 -22
- package/Checkbox-BN_3F2Hl.js +0 -264
- package/Checkbox-CZtCj4yR.cjs +0 -1
- package/CheckboxGroup--xgOT1Do.js +0 -159
- package/CheckboxGroup-DGHaqRvb.cjs +0 -1
- package/Collection-B1xL4EdF.cjs +0 -1
- package/Collection-C5vE9MtJ.js +0 -577
- package/ComboBox-UadZMhiR.cjs +0 -1
- package/DateField-CNEoLyf5.cjs +0 -1
- package/DateField-CZmLugT0.js +0 -47
- package/DateInputDivider-CCjiq90K.cjs +0 -1
- package/DateRangePicker-DhgLEa9P.cjs +0 -6
- package/DateRangePicker-WQ97Psz7.js +0 -870
- package/Dialog-BT0tVGQb.cjs +0 -1
- package/Dialog-BuJdAr0D.js +0 -1611
- package/Dialog-DYK8lySl.cjs +0 -1
- package/Dialog-L53DWF0Z.js +0 -220
- package/DragAndDrop-DKxsUpmW.js +0 -60
- package/DragAndDrop-Dgfq6uJ0.cjs +0 -1
- package/FieldError-BlKkw9YL.js +0 -46
- package/FieldError-BvU0sueN.cjs +0 -1
- package/FocusScope-CAgWgk3N.cjs +0 -1
- package/GridItem-BnyULDnc.cjs +0 -1
- package/GridItem-orSzD7H5.js +0 -243
- package/Heading-DDhdwRAW.js +0 -46
- package/Heading-OUPkdoEJ.cjs +0 -1
- package/InfoBanner-DpLcq_1R.cjs +0 -1
- package/InfoBanner-U5hxOipC.js +0 -99
- package/Label-COpr4xVt.cjs +0 -1
- package/Layout-BR3Or1Ga.cjs +0 -16
- package/Layout-Bdqauktv.js +0 -498
- package/Link-CM2N5Jq-.js +0 -72
- package/Link-Dq8IFDBx.cjs +0 -6
- package/Link-ceVlGaWQ.cjs +0 -1
- package/LinkButton-BJA9_HzL.cjs +0 -6
- package/LinkButton-DH3Nfdis.js +0 -69
- package/ListBox-D0u9svwm.cjs +0 -1
- package/ListBox-y_dw__MI.js +0 -531
- package/ListBoxButton-C2zp-gXD.cjs +0 -1
- package/ListBoxButton-DiseS_LX.js +0 -15
- package/ListBoxSection-Cv-gN76G.js +0 -1058
- package/ListBoxSection-DtsigmC1.cjs +0 -1
- package/ListKeyboardDelegate-fZKXmHAk.cjs +0 -1
- package/OverlayArrow-8praV_Xy.cjs +0 -1
- package/OverlayArrow-DfkRZlgG.js +0 -507
- package/PressResponder-Bm3_RM9c.cjs +0 -1
- package/ProgressBar-D5mNQTID.cjs +0 -1
- package/ProgressBar-wQirOG1N.js +0 -53
- package/Radio-BIomn_sP.js +0 -313
- package/Radio-CxvJ5Wrl.cjs +0 -1
- package/RangeCalendar-BvvZ2SBj.cjs +0 -11
- package/Select-769RSZ9V.js +0 -664
- package/Select-Go5x0zWl.cjs +0 -1
- package/SelectionManager-BvREZgeu.cjs +0 -1
- package/Separator-CggS0R7Q.js +0 -59
- package/Separator-DBsDhqCr.cjs +0 -1
- package/Skeleton-BAwbfKBW.cjs +0 -1
- package/Skeleton-BePDRmrO.js +0 -40
- package/Spinner-AXFRWuT6.js +0 -51
- package/Spinner-yHx_DX_4.cjs +0 -6
- package/TabList-0gj27e_e.js +0 -386
- package/TabList-Cqpup53E.cjs +0 -1
- package/Table-BhtlNY9P.cjs +0 -16
- package/Tag-B9M-nBTM.js +0 -748
- package/Tag-DkW6zaIS.cjs +0 -1
- package/Text-BUDAzDjW.js +0 -32
- package/Text-DA_gK6a2.cjs +0 -1
- package/TextArea-CSrrYY05.cjs +0 -1
- package/TextArea-DphcH6wE.js +0 -119
- package/TextField-CsyRTSEG.js +0 -120
- package/TextField-P5yICj5z.cjs +0 -1
- package/TextField.module-BcpPBWnD.js +0 -13
- package/TextField.module-Dw5Rtn9y.cjs +0 -1
- package/ToggleButtonGroup-BwFAhFEi.cjs +0 -1
- package/ToggleButtonGroup-CuxAKB3-.js +0 -211
- package/Tooltip-Bz0xCZSw.cjs +0 -1
- package/Tooltip-EuEQtHZj.js +0 -285
- package/filterDOMProps-BS2lrgFA.cjs +0 -1
- package/filterDOMProps-D6KHYVBX.js +0 -24
- package/inertValue-BWmZ1afe.cjs +0 -1
- package/mergeProps-BYJQ6N1s.js +0 -115
- package/mergeProps-C7Sx47fA.cjs +0 -1
- package/useButton-CWHoXYnj.js +0 -47
- package/useButton-CwOQUGtY.cjs +0 -1
- package/useDateFormatter-bzjwqA2K.cjs +0 -1
- package/useEvent-CGRyLM2c.cjs +0 -1
- package/useFormValidation-BW2NSTM4.js +0 -215
- package/useFormValidation-DSRwb9US.cjs +0 -1
- package/useHasTabbableChild-CogBR_6o.cjs +0 -1
- package/useHover-CaFzQrR_.cjs +0 -1
- package/useListState-TtWy_rDI.cjs +0 -1
- package/useLocalizedStringFormatter-CHAo1AyN.cjs +0 -1
- package/useObserveElement-BzEr5D32.cjs +0 -1
- package/usePress-BOGIOlm8.cjs +0 -7
- package/useTextField-BVIOd8Ld.cjs +0 -1
- package/useTextField-DFkSHoQN.js +0 -86
- package/useToggleState-Bz5rAf4C.js +0 -18
- package/useToggleState-DoIkSQdj.cjs +0 -1
- package/utils-C5-CzvX2.cjs +0 -1
- package/utils-CuqJqFqQ.js +0 -234
|
@@ -1,35 +1,31 @@
|
|
|
1
1
|
import { jsxs as c, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
import { c as
|
|
5
|
-
import { d } from "./Button-
|
|
6
|
-
import { P as v } from "./Popover-
|
|
7
|
-
import { B as u } from "./Button-
|
|
8
|
-
import { $ as P } from "./Dialog-
|
|
2
|
+
import * as f from "react";
|
|
3
|
+
import l from "react";
|
|
4
|
+
import { c as b } from "./clsx-OuTLNxxd.js";
|
|
5
|
+
import { d } from "./Button-DD5_S-tD.js";
|
|
6
|
+
import { P as v } from "./Popover-CyEVqpJ6.js";
|
|
7
|
+
import { B as u } from "./Button-DYcmg49Z.js";
|
|
8
|
+
import { $ as P } from "./Dialog-B8swxl24.js";
|
|
9
9
|
import { I as g } from "./info-CPK1vbOJ.js";
|
|
10
|
-
import { u as _ } from "./useLocalizedStringFormatter-
|
|
11
|
-
import './assets/Label.css';const
|
|
12
|
-
labelBase:
|
|
13
|
-
},
|
|
14
|
-
labelPopover:
|
|
10
|
+
import { u as _ } from "./useLocalizedStringFormatter-N0AyjzbM.js";
|
|
11
|
+
import './assets/Label.css';const I = "_labelBase_vjive_1", x = {
|
|
12
|
+
labelBase: I
|
|
13
|
+
}, $ = "_labelPopover_1iatl_1", L = "_labelPopoverTrigger_1iatl_7", m = {
|
|
14
|
+
labelPopover: $,
|
|
15
15
|
labelPopoverTrigger: L
|
|
16
|
-
}, T = {
|
|
17
|
-
moreInfo: "More info"
|
|
18
|
-
}, B = {
|
|
19
|
-
moreInfo: "Mer information"
|
|
20
|
-
}, h = {
|
|
16
|
+
}, T = { moreInfo: "More info" }, B = { moreInfo: "Mer information" }, C = {
|
|
21
17
|
en: T,
|
|
22
18
|
sv: B
|
|
23
|
-
},
|
|
19
|
+
}, h = ({
|
|
24
20
|
children: e,
|
|
25
21
|
"aria-label": o
|
|
26
22
|
}) => {
|
|
27
|
-
const [a,
|
|
23
|
+
const [a, n] = l.useState(!1), s = l.useContext(i), t = _(C);
|
|
28
24
|
return /* @__PURE__ */ c(
|
|
29
25
|
P,
|
|
30
26
|
{
|
|
31
27
|
isOpen: a,
|
|
32
|
-
onOpenChange:
|
|
28
|
+
onOpenChange: n,
|
|
33
29
|
children: [
|
|
34
30
|
/* @__PURE__ */ r(
|
|
35
31
|
u,
|
|
@@ -46,23 +42,23 @@ import './assets/Label.css';const $ = "_labelBase_khdpe_4", I = {
|
|
|
46
42
|
]
|
|
47
43
|
}
|
|
48
44
|
);
|
|
49
|
-
}, i =
|
|
50
|
-
const a =
|
|
45
|
+
}, i = l.createContext(void 0), S = ({ children: e, popover: o }) => {
|
|
46
|
+
const a = l.useId();
|
|
51
47
|
return o ? /* @__PURE__ */ r(i.Provider, { value: { popoverId: a }, children: /* @__PURE__ */ c("div", { className: m.labelPopover, children: [
|
|
52
48
|
e,
|
|
53
|
-
/* @__PURE__ */ r(
|
|
49
|
+
/* @__PURE__ */ r(h, { ...o })
|
|
54
50
|
] }) }) : e;
|
|
55
51
|
}, p = "label", W = ({
|
|
56
52
|
children: e,
|
|
57
53
|
className: o,
|
|
58
54
|
elementType: a = p,
|
|
59
|
-
...
|
|
55
|
+
...n
|
|
60
56
|
}) => {
|
|
61
57
|
const s = {
|
|
62
|
-
className:
|
|
58
|
+
className: b(x.labelBase, o),
|
|
63
59
|
elementType: a || p,
|
|
64
|
-
...
|
|
65
|
-
}, t =
|
|
60
|
+
...n
|
|
61
|
+
}, t = f.useContext(i);
|
|
66
62
|
return /* @__PURE__ */ r(
|
|
67
63
|
d,
|
|
68
64
|
{
|
|
@@ -74,5 +70,5 @@ import './assets/Label.css';const $ = "_labelBase_khdpe_4", I = {
|
|
|
74
70
|
};
|
|
75
71
|
export {
|
|
76
72
|
W as L,
|
|
77
|
-
|
|
73
|
+
S as a
|
|
78
74
|
};
|
|
@@ -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
|
|
3
|
-
import { c as
|
|
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
|
|
6
|
-
import { A as
|
|
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
|
|
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
|
-
],
|
|
18
|
-
link:
|
|
19
|
-
icon:
|
|
20
|
-
standalone:
|
|
21
|
-
stretched:
|
|
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 ||
|
|
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:
|
|
38
|
-
|
|
39
|
-
r &&
|
|
40
|
-
s &&
|
|
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:
|
|
51
|
+
className: t.icon
|
|
52
52
|
}
|
|
53
53
|
)
|
|
54
54
|
] })
|