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