@stihl-design-system/components 1.0.0-RC.4 → 1.0.0-RC.40
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/Klarna.svg +1 -0
- package/Mastercard.svg +2 -0
- package/Notification-additional-information.jpeg +0 -0
- package/Notification-confirm-error.jpg +0 -0
- package/Notification-confirm-warn.jpeg +0 -0
- package/Notification-overview.jpeg +0 -0
- package/Notification-success.jpeg +0 -0
- package/PayPal.svg +2 -0
- package/Placeholder.svg +1 -0
- package/README.md +2 -11
- package/Visa.svg +2 -0
- package/accordion.d.ts +2 -0
- package/accordion.nt0Foequ.js +12 -0
- package/actionbutton.Ctea6drN.js +12 -0
- package/actionbutton.d.ts +2 -0
- package/actionlink.VX1OMtm-.js +12 -0
- package/actionlink.d.ts +2 -0
- package/arialiveregions.B0AV2JcV.js +18 -0
- package/arialiveregions.d.ts +1 -0
- package/assets/Accordion.Cr1dbVTH.css +1 -0
- package/assets/ActionButton.BLOWs6IZ.css +1 -0
- package/assets/ActionLink.BJDUVdT7.css +1 -0
- package/assets/Breadcrumb.BavNNzAA.css +1 -0
- package/assets/Button.C-UYIggc.css +1 -0
- package/assets/Checkbox.ZAPIO2N8.css +1 -0
- package/assets/CheckboxGroup.Dd-Huo7x.css +1 -0
- package/assets/Chip.D3vV0wyV.css +1 -0
- package/assets/CustomReactSelect.Ctze4SRN.css +1 -0
- package/assets/Dialog.DyiHUgTp.css +1 -0
- package/assets/Drawer.UugEajR2.css +1 -0
- package/assets/Fieldset.DmxbjOm1.css +1 -0
- package/assets/Header.BNYL2Y78.css +1 -0
- package/assets/Icon.i2P_Jf3Q.css +1 -0
- package/assets/InputFile.BUMCNCrj.css +1 -0
- package/assets/InputNumber.Bmz8cNKg.css +1 -0
- package/assets/InputPassword.CutbykTm.css +1 -0
- package/assets/InputSearch.Sr9jVpKt.css +1 -0
- package/assets/LinkButton.BEbmxP7h.css +1 -0
- package/assets/LinkCard.C6HtgbjH.css +1 -0
- package/assets/MegaMenu.Dw-oLSCX.css +1 -0
- package/assets/NavigationTabList.CzAiHz7G.css +1 -0
- package/assets/Notification.DBGpHzov.css +1 -0
- package/assets/Popover.mL5g23EK.css +1 -0
- package/assets/RadioGroup.q1lQ-HIZ.css +1 -0
- package/assets/Select.BZYb_HAG.css +1 -0
- package/assets/Slider.vnSU0ya0.css +1 -0
- package/assets/Stepper.tXJl15yL.css +1 -0
- package/assets/SystemFeedback.PKzqnXUe.css +1 -0
- package/assets/TextUtility.CEBJaKBG.css +1 -0
- package/assets/Textarea.BIgA9_fl.css +1 -0
- package/assets/Toast.DgRXxA0s.css +1 -0
- package/assets/arialiveregions.e0Q16ZWi.css +1 -0
- package/assets/asterisk.B41DaZDe.css +1 -0
- package/assets/banner.DFvdtgMp.css +1 -0
- package/assets/buttonround.BTC-HthI.css +1 -0
- package/assets/chipgroup.BGxjdSDX.css +1 -0
- package/assets/filelist.H_wKcSPX.css +1 -0
- package/assets/flag.CyCIPu_J.css +1 -0
- package/assets/floatingactionbutton.CTbMRM9Q.css +1 -0
- package/assets/heading.mGwg9pVU.css +1 -0
- package/assets/input.BEOus9jX.css +1 -0
- package/assets/link.BemYqm4d.css +1 -0
- package/assets/logo.SVrBe1T8.css +1 -0
- package/assets/logo100years.CQrEg-Vo.css +1 -0
- package/assets/numberindicator.BYIPwkAK.css +1 -0
- package/assets/optioncheckbox.6zYgifUk.css +1 -0
- package/assets/radio.l9OTraQU.css +1 -0
- package/assets/scroller.BGlPnnPD.css +1 -0
- package/assets/skiptocontent.CTSDC_kG.css +1 -0
- package/assets/spinner.C7QSv7jc.css +1 -0
- package/assets/step.Ch508u7I.css +1 -0
- package/assets/switch.DYamtd9O.css +1 -0
- package/assets/tabpane.o34hshTz.css +1 -0
- package/assets/text.BA1eUihR.css +1 -0
- package/assets/title.N-QcA7Re.css +1 -0
- package/assets/tooltip.BPcysHGE.css +1 -0
- package/asterisk.Dwtdwpkq.js +13 -0
- package/asterisk.d.ts +1 -0
- package/banner.S_c1UQJe.js +55 -0
- package/banner.d.ts +2 -0
- package/breadcrumb.DiuuVblR.js +11 -0
- package/breadcrumb.d.ts +2 -0
- package/button.Z7Mmvwhv.js +12 -0
- package/button.d.ts +1 -0
- package/buttonround.Bqi8Ej-y.js +96 -0
- package/buttonround.d.ts +1 -0
- package/card-example-image-1.webp +0 -0
- package/card-example-image-2.webp +0 -0
- package/card-example-image-3.webp +0 -0
- package/card-example-image-4.webp +0 -0
- package/card-example-image-5.webp +0 -0
- package/card-example-image-6.webp +0 -0
- package/card-example-image-7.webp +0 -0
- package/card-example-image-8.webp +0 -0
- package/card-example-image-square.webp +0 -0
- package/card-example-image.webp +0 -0
- package/checkbox.DtSSduSH.js +12 -0
- package/checkbox.d.ts +1 -0
- package/checkboxgroup.CSP1DOCW.js +9 -0
- package/checkboxgroup.d.ts +1 -0
- package/chip.CyypeY5M.js +12 -0
- package/chip.d.ts +2 -0
- package/chipgroup.d.ts +2 -0
- package/chipgroup.i5SOv6LA.js +199 -0
- package/chunks/Accordion.B-0pf8Fq.js +168 -0
- package/chunks/ActionButton.wdWh7E2b.js +182 -0
- package/chunks/ActionLink.DwUP-Kgm.js +155 -0
- package/chunks/AriaLiveRegions.utils.CLpOaVD9.js +27 -0
- package/chunks/Breadcrumb.nflDJoKs.js +103 -0
- package/chunks/Button.DpGeheky.js +139 -0
- package/chunks/Checkbox.B3NeB54s.js +88 -0
- package/chunks/CheckboxGroup.BYZSvqF7.js +74 -0
- package/chunks/Chip.SiGIIHR-.js +133 -0
- package/chunks/CustomReactSelect.DBsnmMPl.js +3379 -0
- package/chunks/Dialog.C-rcs_Up.js +102 -0
- package/chunks/Drawer.D0d557c5.js +107 -0
- package/chunks/Fieldset.7WM7w62l.js +81 -0
- package/chunks/Header.DyqOlV8L.js +402 -0
- package/chunks/Icon.m6sMB6vl.js +232 -0
- package/chunks/Input.utils.D78E4MGO.js +59 -0
- package/chunks/InputFile.DRGNdtY0.js +236 -0
- package/chunks/InputNumber.a44HnJ9B.js +240 -0
- package/chunks/InputPassword.B1E0Maub.js +121 -0
- package/chunks/InputSearch.C7AvD7Eu.js +149 -0
- package/chunks/LinkButton.CMjq2FKc.js +140 -0
- package/chunks/LinkCard.CJ5P0ews.js +199 -0
- package/chunks/MegaMenu.CiSiMlE3.js +188 -0
- package/chunks/NavigationTabList.C2f-lWex.js +67 -0
- package/chunks/NavigationTabs.D2QrnlL2.js +62 -0
- package/chunks/Notification.COwLndR0.js +91 -0
- package/chunks/Popover.C5wtha5l.js +214 -0
- package/chunks/RadioGroup.B-qTH31u.js +125 -0
- package/chunks/Select.DrDVi9lg.js +147 -0
- package/chunks/Slider.DGMrDfWv.js +306 -0
- package/chunks/Stepper.DptsFh5n.js +152 -0
- package/chunks/SystemFeedback.DFN6Y2cw.js +38 -0
- package/chunks/TabPane.utils.DG16Y2uD.js +10 -0
- package/chunks/Tabs.2JTenRcr.js +83 -0
- package/chunks/Text.utils.D_iOyOSH.js +11 -0
- package/chunks/TextUtility.Wbd4oQXI.js +82 -0
- package/chunks/Textarea.ymNCbcvH.js +181 -0
- package/chunks/Toast.RUzRjojQ.js +76 -0
- package/chunks/accessibility.B57oX4yV.js +10 -0
- package/chunks/{arrow-clockwise.BefOjGPg.js → arrow-clockwise.C4iOgjOc.js} +1 -1
- package/chunks/{arrow-counterclockwise.C7Ov32BZ.js → arrow-counterclockwise.CgQAuBUe.js} +1 -1
- package/chunks/battery-charge-0.DxlgEAto.js +10 -0
- package/chunks/battery-charge-100.D0Cax7dU.js +10 -0
- package/chunks/{battery.YCg9lYqC.js → battery.6Idoickg.js} +3 -3
- package/chunks/bluetooth-off.BzZCh4Q8.js +10 -0
- package/chunks/caret-down.CupuwAF6.js +10 -0
- package/chunks/caret-right.DKtu4PQe.js +10 -0
- package/chunks/{circle-check-colored.Bye_GwLy.js → circle-check-colored.qP2s3vjI.js} +1 -1
- package/chunks/collapse.Dvv3mgkv.js +10 -0
- package/chunks/connected-icon.BEijTRDG.js +10 -0
- package/chunks/default-icon.D_-oBHyT.js +10 -0
- package/chunks/{diamond-exclamationmark-colored.WNKYwZ8q.js → diamond-exclamationmark-colored.CzYiaTZ0.js} +1 -1
- package/chunks/document-magnifying-glass.DkvpNz-D.js +10 -0
- package/chunks/document-s.CoOp0kBK.js +10 -0
- package/chunks/feather.l1E4nFBx.js +10 -0
- package/chunks/file-type-doc.B_RSSYbu.js +10 -0
- package/chunks/file-type-image.Cg2NRd7y.js +10 -0
- package/chunks/file-type-pdf.Dm94xL2i.js +10 -0
- package/chunks/{map.CXgG1iGz.js → file-type-video.CFwfiP-D.js} +1 -1
- package/chunks/file-type-zip.SNixmKhQ.js +10 -0
- package/chunks/file.DLgRXiem.js +10 -0
- package/chunks/floating-ui.react.CP5A99-c.js +2980 -0
- package/chunks/has-window.ut_-aShB.js +5 -0
- package/chunks/helpers.CexwVao7.js +38 -0
- package/chunks/imow-icon.CyH72ySI.js +10 -0
- package/chunks/index.DQOqod3i.js +43 -0
- package/chunks/index.cKLI89Eg.js +281 -0
- package/chunks/is-animation-disabled.B-V_68K-.js +20 -0
- package/chunks/map.DNl7PF61.js +10 -0
- package/chunks/moon.5yILPYXs.js +10 -0
- package/chunks/muscle.DbNjWasV.js +10 -0
- package/chunks/mystihl-icon.xHpCyYJf.js +10 -0
- package/chunks/petrol.BGWwCsTw.js +10 -0
- package/chunks/sun.CY6ttzTL.js +10 -0
- package/chunks/tiktok.BWJTDGYm.js +10 -0
- package/chunks/translate.nuU7uChI.js +8 -0
- package/chunks/{triangle-exclamationmark-colored.CbVC3Gzi.js → triangle-exclamationmark-colored.e93zvQ6Q.js} +1 -1
- package/chunks/twitch.C893cAK8.js +10 -0
- package/chunks/upload.BogDfonx.js +10 -0
- package/chunks/useBreakpoint.1txsny17.js +45 -0
- package/chunks/useIsomorphicLayoutEffect.CnJ9AMFS.js +7 -0
- package/chunks/variants.-R3_RCW8.js +10 -0
- package/chunks/weight.DUPu2UT0.js +10 -0
- package/combobox.DzSEFo_5.js +69 -0
- package/combobox.d.ts +1 -0
- package/components/Accordion/Accordion.d.ts +43 -0
- package/components/Accordion/Accordion.utils.d.ts +16 -0
- package/components/ActionButton/ActionButton.d.ts +63 -0
- package/components/ActionButton/ActionButton.utils.d.ts +22 -0
- package/components/ActionLink/ActionLink.d.ts +38 -0
- package/components/ActionLink/ActionLink.test.d.ts +1 -0
- package/components/ActionLink/ActionLink.utils.d.ts +19 -0
- package/components/ActionLink/ActionLink.utils.test.d.ts +1 -0
- package/components/AriaLiveRegions/AriaLiveRegions.d.ts +1 -0
- package/components/AriaLiveRegions/AriaLiveRegions.utils.d.ts +2 -2
- package/components/Asterisk/Asterisk.d.ts +1 -0
- package/components/Banner/Banner.d.ts +32 -0
- package/components/Banner/Banner.test.d.ts +1 -0
- package/components/Banner/Banner.utils.d.ts +2 -0
- package/components/Breadcrumb/Breadcrumb.d.ts +45 -0
- package/components/Breadcrumb/Breadcrumb.test.d.ts +1 -0
- package/components/Breadcrumb/Breadcrumb.utils.d.ts +4 -0
- package/components/Button/Button.d.ts +41 -16
- package/components/Button/Button.utils.d.ts +17 -1
- package/components/Button/Button.utils.test.d.ts +1 -0
- package/components/ButtonRound/ButtonRound.d.ts +12 -3
- package/components/Checkbox/Checkbox.d.ts +25 -9
- package/components/Checkbox/Checkbox.utils.d.ts +11 -0
- package/components/Checkbox/Checkbox.utils.test.d.ts +1 -0
- package/components/CheckboxGroup/CheckboxGroup.d.ts +34 -14
- package/components/CheckboxGroup/CheckboxGroup.utils.d.ts +0 -1
- package/components/ChipGroup/Chip.d.ts +13 -0
- package/components/ChipGroup/ChipGroup.d.ts +48 -0
- package/components/ChipGroup/ChipGroup.test.d.ts +1 -0
- package/components/ChipGroup/ChipGroup.utils.d.ts +58 -0
- package/components/ChipGroup/ChipGroup.utils.test.d.ts +1 -0
- package/components/Combobox/Combobox.d.ts +27 -6
- package/components/Combobox/Combobox.utils.d.ts +14 -7
- package/components/Combobox/CustomReactSelect/CustomReactSelect.d.ts +88 -0
- package/components/Combobox/CustomReactSelect/CustomReactSelect.utils.d.ts +3 -0
- package/components/Combobox/CustomReactSelect/CustomReactSelect.utils.test.d.ts +1 -0
- package/components/{CustomReactSelect → Combobox/CustomReactSelect}/OptionCheckbox.d.ts +1 -2
- package/components/Dialog/Dialog.d.ts +40 -6
- package/components/Dialog/Dialog.test.d.ts +1 -0
- package/components/Dialog/Dialog.utils.d.ts +11 -0
- package/components/Dialog/Dialog.utils.test.d.ts +1 -0
- package/components/Drawer/Drawer.d.ts +49 -0
- package/components/Drawer/Drawer.test.d.ts +1 -0
- package/components/Drawer/Drawer.utils.d.ts +13 -0
- package/components/Drawer/Drawer.utils.test.d.ts +1 -0
- package/components/Fieldset/Fieldset.d.ts +29 -10
- package/components/Fieldset/Fieldset.utils.d.ts +7 -1
- package/components/FileList/FileList.d.ts +13 -0
- package/components/FileList/FileList.test.d.ts +1 -0
- package/components/FileList/FileList.utils.d.ts +18 -0
- package/components/FileList/FileList.utils.test.d.ts +1 -0
- package/components/Flag/Flag.d.ts +26 -0
- package/components/Flag/Flag.test.d.ts +1 -0
- package/components/Flag/Flag.utils.d.ts +2 -0
- package/components/FloatingActionButton/FloatingActionButton.d.ts +8 -2
- package/components/Header/Header.d.ts +67 -0
- package/components/Header/Header.utils.d.ts +17 -0
- package/components/Header/Header.utils.test.d.ts +1 -0
- package/components/Heading/Heading.d.ts +13 -6
- package/components/Icon/Icon.d.ts +14 -7
- package/components/Icon/Icon.utils.d.ts +1 -2
- package/components/Input/Input.d.ts +69 -25
- package/components/Input/Input.utils.d.ts +5 -6
- package/components/InputFile/InputFile.d.ts +104 -0
- package/components/InputFile/InputFile.test.d.ts +1 -0
- package/components/InputFile/InputFile.utils.d.ts +48 -0
- package/components/InputFile/InputFile.utils.test.d.ts +1 -0
- package/components/InputNumber/InputNumber.d.ts +110 -0
- package/components/InputNumber/InputNumber.test.d.ts +1 -0
- package/components/InputNumber/InputNumber.utils.d.ts +13 -0
- package/components/InputNumber/InputNumber.utils.test.d.ts +1 -0
- package/components/InputPassword/InputPassword.d.ts +56 -18
- package/components/InputPassword/InputPassword.utils.d.ts +2 -3
- package/components/InputSearch/InputSearch.d.ts +55 -18
- package/components/InputSearch/InputSearch.utils.d.ts +2 -3
- package/components/Link/Link.d.ts +11 -43
- package/components/Link/Link.utils.d.ts +2 -8
- package/components/LinkButton/LinkButton.d.ts +71 -0
- package/components/LinkButton/LinkButton.test.d.ts +1 -0
- package/components/LinkButton/LinkButton.utils.d.ts +24 -0
- package/components/LinkButton/LinkButton.utils.test.d.ts +1 -0
- package/components/LinkCard/LinkCard.d.ts +96 -0
- package/components/LinkCard/LinkCard.test.d.ts +1 -0
- package/components/LinkCard/LinkCard.utils.d.ts +10 -0
- package/components/LinkCard/LinkCard.utils.test.d.ts +1 -0
- package/components/Logo/Logo.d.ts +18 -10
- package/components/Logo/Logo.test.d.ts +1 -0
- package/components/Logo/Logo.utils.d.ts +2 -2
- package/components/Logo100Years/Logo100Years.d.ts +1 -0
- package/components/MegaMenu/MegaMenu.d.ts +32 -0
- package/components/MegaMenu/MegaMenu.test.d.ts +1 -0
- package/components/MegaMenu/MegaMenu.utils.d.ts +52 -0
- package/components/MegaMenu/MegaMenu.utils.test.d.ts +1 -0
- package/components/NavigationTabs/NavigationTabs.d.ts +43 -0
- package/components/NavigationTabs/NavigationTabs.test.d.ts +1 -0
- package/components/NavigationTabs/NavigationTabs.utils.d.ts +6 -0
- package/components/Notification/Notification.d.ts +25 -11
- package/components/Notification/Notification.utils.d.ts +0 -1
- package/components/NumberIndicator/NumberIndicator.d.ts +13 -0
- package/components/NumberIndicator/NumberIndicator.test.d.ts +1 -0
- package/components/NumberIndicator/NumberIndicator.utils.d.ts +2 -0
- package/components/Popover/Popover.d.ts +62 -0
- package/components/Popover/Popover.test.d.ts +1 -0
- package/components/Popover/Popover.utils.d.ts +84 -0
- package/components/Popover/Popover.utils.test.d.ts +1 -0
- package/components/Radio/Radio.d.ts +32 -14
- package/components/RadioGroup/RadioGroup.d.ts +43 -20
- package/components/RadioGroup/RadioGroup.utils.d.ts +6 -4
- package/components/RadioGroup/RadioGroup.utils.test.d.ts +1 -0
- package/components/Scroller/Scroller.d.ts +24 -0
- package/components/Scroller/Scroller.test.d.ts +1 -0
- package/components/Scroller/Scroller.utils.d.ts +3 -0
- package/components/Select/Select.d.ts +37 -13
- package/components/Select/Select.utils.d.ts +2 -3
- package/components/SkipToContent/SkipToContent.d.ts +19 -0
- package/components/SkipToContent/SkipToContent.test.d.ts +1 -0
- package/components/Slider/Slider.d.ts +76 -0
- package/components/Slider/Slider.test.d.ts +1 -0
- package/components/Slider/Slider.utils.d.ts +65 -0
- package/components/Slider/Slider.utils.test.d.ts +1 -0
- package/components/Spinner/Spinner.d.ts +14 -5
- package/components/Stepper/Step.d.ts +33 -0
- package/components/Stepper/Step.utils.d.ts +5 -0
- package/components/Stepper/Stepper.d.ts +56 -0
- package/components/Stepper/Stepper.test.d.ts +1 -0
- package/components/Stepper/Stepper.utils.d.ts +30 -0
- package/components/Stepper/Stepper.utils.test.d.ts +1 -0
- package/components/Switch/Switch.d.ts +23 -12
- package/components/SystemFeedback/SystemFeedback.d.ts +16 -7
- package/components/SystemFeedback/SystemFeedback.utils.d.ts +4 -7
- package/components/Tabs/TabList/NavigationTabList/NavigationTabList.d.ts +22 -0
- package/components/Tabs/TabList/TabList.d.ts +38 -0
- package/components/Tabs/TabList/TabList.utils.d.ts +2 -0
- package/components/Tabs/TabPane/TabPane.d.ts +10 -0
- package/components/Tabs/TabPane/TabPane.utils.d.ts +3 -0
- package/components/Tabs/TabPane/TabPane.utils.test.d.ts +1 -0
- package/components/Tabs/Tabs.d.ts +51 -0
- package/components/Tabs/Tabs.test.d.ts +1 -0
- package/components/Tabs/Tabs.utils.d.ts +6 -0
- package/components/Text/Text.d.ts +19 -10
- package/components/Text/Text.utils.d.ts +14 -1
- package/components/TextUtility/TextUtility.d.ts +30 -0
- package/components/TextUtility/TextUtility.test.d.ts +1 -0
- package/components/TextUtility/TextUtility.utils.d.ts +10 -0
- package/components/TextUtility/TextUtility.utils.test.d.ts +1 -0
- package/components/Textarea/Textarea.d.ts +47 -16
- package/components/Textarea/Textarea.utils.d.ts +2 -3
- package/components/Title/Title.d.ts +13 -6
- package/components/Toast/Toast.d.ts +28 -7
- package/components/Toast/Toast.utils.d.ts +19 -1
- package/components/Toast/ToastManager.d.ts +7 -4
- package/components/Tooltip/Tooltip.d.ts +40 -0
- package/components/Tooltip/Tooltip.test.d.ts +1 -0
- package/components/Tooltip/Tooltip.utils.d.ts +70 -0
- package/components/Tooltip/Tooltip.utils.test.d.ts +1 -0
- package/components/TopBar/TopBar.d.ts +54 -0
- package/components/TopBar/TopBar.utils.d.ts +14 -0
- package/components/TopBar/TopBar.utils.test.d.ts +1 -0
- package/connected-icon.svg +1 -0
- package/customreactselect.D7YraWJ7.js +15 -0
- package/customreactselect.d.ts +2 -1
- package/dialog.CBovd8em.js +9 -0
- package/dialog.d.ts +1 -0
- package/drawer.D5F0KXI2.js +9 -0
- package/drawer.d.ts +2 -0
- package/fieldset.DgbZ_K_l.js +12 -0
- package/fieldset.d.ts +1 -0
- package/filelist.CDEBo3Pi.js +160 -0
- package/filelist.d.ts +2 -0
- package/flag.D-wrUioF.js +50 -0
- package/flag.d.ts +2 -0
- package/floatingactionbutton.CE-Rz0dx.js +87 -0
- package/floatingactionbutton.d.ts +1 -0
- package/github-mark-white.svg +1 -0
- package/github-mark.svg +1 -0
- package/header.BtGgmM59.js +12 -0
- package/header.d.ts +2 -0
- package/heading.BHSklXho.js +46 -0
- package/heading.d.ts +1 -0
- package/icon.ByLYRkPZ.js +9 -0
- package/icon.d.ts +1 -0
- package/icon.svg +1 -1
- package/imow-icon.svg +1 -0
- package/index.d.ts +51 -4
- package/index.es.js +235 -138
- package/input.MZXe6rlg.js +188 -0
- package/input.d.ts +1 -0
- package/inputfile.BO4wDnzQ.js +18 -0
- package/inputfile.d.ts +2 -0
- package/inputnumber.DevQudIX.js +17 -0
- package/inputnumber.d.ts +2 -0
- package/inputpassword.C-XYK-JP.js +13 -0
- package/inputpassword.d.ts +1 -0
- package/inputsearch.CmJdxnzX.js +15 -0
- package/inputsearch.d.ts +1 -0
- package/intro-design-spacings01.webp +0 -0
- package/intro-design-spacings02.webp +0 -0
- package/intro-design-spacings03.webp +0 -0
- package/link.R1lfD5aN.js +81 -0
- package/link.d.ts +1 -0
- package/linkbutton.Y-ET1tc9.js +12 -0
- package/linkbutton.d.ts +2 -0
- package/linkcard.CayqoQNo.js +12 -0
- package/linkcard.d.ts +2 -0
- package/logo.D7LnRA1E.js +80 -0
- package/logo.d.ts +1 -0
- package/logo100years.C0IojOp9.js +24 -0
- package/logo100years.d.ts +2 -0
- package/megamenu.CUjk3_h2.js +12 -0
- package/megamenu.d.ts +2 -0
- package/mystihl-icon.svg +1 -0
- package/navigationtablist.CKPpQrme.js +10 -0
- package/navigationtablist.d.ts +2 -0
- package/navigationtabs.VUAOwesQ.js +9 -0
- package/navigationtabs.d.ts +2 -0
- package/notification.d.ts +1 -0
- package/notification.u_LLz-O0.js +10 -0
- package/numberindicator.ZGVRSmqf.js +36 -0
- package/numberindicator.d.ts +2 -0
- package/optioncheckbox.d.ts +2 -1
- package/optioncheckbox.v8Plcgeg.js +48 -0
- package/package.json +77 -59
- package/partials/assets.const.js +2 -0
- package/partials/connected-apple-icon.png +0 -0
- package/partials/connected-favicon.ico +0 -0
- package/partials/connected-icon-192.png +0 -0
- package/partials/connected-icon-512.png +0 -0
- package/partials/connected-icon.svg +1 -0
- package/partials/copyAssets.js +27 -13
- package/partials/default-icon.svg +1 -0
- package/partials/imow-apple-icon.png +0 -0
- package/partials/imow-favicon.ico +0 -0
- package/partials/imow-icon-192.png +0 -0
- package/partials/imow-icon-512.png +0 -0
- package/partials/imow-icon.svg +1 -0
- package/partials/index.js +342 -2159
- package/partials/lib/partials.d.ts +77 -5
- package/partials/mystihl-apple-icon.png +0 -0
- package/partials/mystihl-favicon.ico +0 -0
- package/partials/mystihl-icon-192.png +0 -0
- package/partials/mystihl-icon-512.png +0 -0
- package/partials/mystihl-icon.svg +1 -0
- package/popover.T7-imfkx.js +12 -0
- package/popover.d.ts +2 -0
- package/radio.DxdVKoxe.js +137 -0
- package/radio.d.ts +1 -0
- package/radiogroup.CAh4wto1.js +11 -0
- package/radiogroup.d.ts +1 -0
- package/scroller.DfhhZelk.js +98 -0
- package/scroller.d.ts +2 -0
- package/select-decision-tree-small.webp +0 -0
- package/select-decision-tree.webp +0 -0
- package/select.CSCc_-6d.js +14 -0
- package/select.d.ts +1 -0
- package/skiptocontent.C2HpZt5q.js +35 -0
- package/skiptocontent.d.ts +2 -0
- package/slider.B2aQwfc2.js +12 -0
- package/slider.d.ts +2 -0
- package/spinner.CRVyui04.js +46 -0
- package/spinner.d.ts +1 -0
- package/step.C-LC5sKQ.js +82 -0
- package/step.d.ts +6 -0
- package/stepper.CRljfUF8.js +16 -0
- package/stepper.d.ts +2 -0
- package/styles/fonts/STIHLContrafaceDigitalTextDemi.woff +0 -0
- package/styles/fonts/STIHLContrafaceDigitalTextDemi.woff2 +0 -0
- package/styles/fonts/font-face.min.css +1 -1
- package/styles/js/index.d.ts +4 -0
- package/styles/js/index.es.js +249 -0
- package/styles/js/lib/animation.d.ts +13 -0
- package/styles/js/lib/breakpoint.d.ts +9 -0
- package/styles/js/lib/spacing.d.ts +22 -0
- package/styles/js/lib/theme.d.ts +202 -0
- package/styles/scss/ds/index.scss +20 -0
- package/styles/scss/ds/lib/animation.scss +21 -0
- package/styles/scss/ds/lib/breakpoints.scss +17 -0
- package/styles/scss/ds/lib/container-query.scss +54 -0
- package/styles/scss/ds/lib/ds-internal/_a11y.scss +15 -0
- package/styles/scss/ds/lib/ds-internal/_focus.scss +60 -0
- package/styles/scss/ds/lib/ds-internal/_heading.scss +37 -0
- package/styles/scss/ds/lib/ds-internal/_helpers.scss +32 -0
- package/styles/scss/ds/lib/ds-internal/_high-contrast.scss +6 -0
- package/styles/scss/ds/lib/ds-internal/_hover.scss +6 -0
- package/styles/scss/ds/lib/ds-internal/_index.scss +11 -0
- package/styles/scss/ds/lib/ds-internal/_input.scss +196 -0
- package/styles/scss/ds/lib/ds-internal/_link-button.scss +226 -0
- package/styles/scss/ds/lib/ds-internal/_link.scss +62 -0
- package/styles/scss/ds/lib/ds-internal/_spacing-dynamic.scss +53 -0
- package/styles/scss/ds/lib/ds-internal/_text.scss +30 -0
- package/styles/scss/ds/lib/grid-extended.scss +14 -0
- package/styles/scss/ds/lib/grid-full.scss +6 -0
- package/styles/scss/ds/lib/grid-main.scss +122 -0
- package/styles/scss/ds/lib/grid-narrow.scss +14 -0
- package/styles/scss/ds/lib/grid-sidebar.scss +57 -0
- package/styles/scss/ds/lib/grid.scss +92 -0
- package/styles/scss/ds/lib/heading.scss +75 -0
- package/styles/scss/ds/lib/input.scss +26 -0
- package/styles/scss/ds/lib/link-button.scss +29 -0
- package/styles/scss/ds/lib/link.scss +74 -0
- package/styles/scss/ds/lib/media-query.scss +32 -0
- package/styles/scss/{lib/_shadow.scss → ds/lib/shadow.scss} +7 -2
- package/styles/scss/ds/lib/spacing-dynamic.scss +7 -0
- package/styles/scss/ds/lib/spacing.scss +20 -0
- package/styles/scss/ds/lib/text.scss +107 -0
- package/styles/scss/ds/lib/theme.scss +171 -0
- package/styles/scss/ds/lib/transition.scss +36 -0
- package/switch.DgKgzm-j.js +66 -0
- package/switch.d.ts +1 -0
- package/systemfeedback.BKLsE5sY.js +10 -0
- package/systemfeedback.d.ts +1 -0
- package/tablist.d.ts +2 -0
- package/tablist.hMHdX1V8.js +210 -0
- package/tabpane.7vMXUKFX.js +37 -0
- package/tabpane.d.ts +2 -0
- package/tabs.d.ts +2 -0
- package/tabs.t-gR7dGc.js +11 -0
- package/text.D_e3JBvf.js +72 -0
- package/text.d.ts +1 -0
- package/textarea.CDXY-OVz.js +14 -0
- package/textarea.d.ts +1 -0
- package/textutility.CNWCGYOy.js +11 -0
- package/textutility.d.ts +2 -0
- package/title.d.ts +1 -0
- package/title.kJ48FkPU.js +40 -0
- package/toast.Bev-Rfuw.js +11 -0
- package/toast.d.ts +1 -0
- package/toastmanager.DII20_9k.js +89 -0
- package/toastmanager.d.ts +1 -0
- package/tooltip._lP4aMV2.js +177 -0
- package/tooltip.d.ts +2 -0
- package/topbar.Z9NNkxKU.js +12 -0
- package/topbar.d.ts +2 -0
- package/types/icon-types.d.ts +1 -1
- package/types/prettier-plugin-organize-imports.d.ts +1 -0
- package/utils/get-rect.d.ts +4 -0
- package/utils/get-rect.test.d.ts +1 -0
- package/utils/helpers.d.ts +17 -0
- package/utils/index.d.ts +8 -0
- package/utils/is-animation-disabled.d.ts +14 -0
- package/utils/is-animation-disabled.test.d.ts +1 -0
- package/utils/mergeRefs.d.ts +5 -0
- package/utils/mergeRefs.test.d.ts +1 -0
- package/utils/remove-spaces.d.ts +6 -0
- package/utils/remove-spaces.test.d.ts +1 -0
- package/utils/render-documentation.d.ts +1 -0
- package/utils/translate.d.ts +11 -0
- package/utils/translate.test.d.ts +1 -0
- package/utils/useBreakpoint.d.ts +0 -1
- package/utils/useElementSize.d.ts +14 -0
- package/utils/useElementSize.test.d.ts +1 -0
- package/utils/useIsomorphicLayoutEffect.d.ts +25 -0
- package/utils/useScrollDirection.d.ts +9 -0
- package/utils/useScrollDirection.test.d.ts +1 -0
- package/utils/vitest.setup.d.ts +2 -1
- package/arialiveregions.49Zyf6mj.js +0 -27
- package/assets/CustomReactSelect.B0rJLjN0.css +0 -1
- package/assets/Fieldset.xazpUXJX.css +0 -1
- package/assets/Icon.CB-KQmw4.css +0 -1
- package/assets/InputPassword.C3Uyj7oA.css +0 -1
- package/assets/InputSearch.tL3e9-Ob.css +0 -1
- package/assets/InputStepper.paPJix5A.css +0 -1
- package/assets/Notification.CCCbfXEz.css +0 -1
- package/assets/RadioGroup.Ur8Ro-XL.css +0 -1
- package/assets/Select.D2qBxaHP.css +0 -1
- package/assets/Textarea.BKbocznb.css +0 -1
- package/assets/Toast.CAP_EwDX.css +0 -1
- package/assets/arialiveregions.VnhjP8Gr.css +0 -1
- package/assets/asterisk.C-o6rbGQ.css +0 -1
- package/assets/button.BuIpnG-S.css +0 -1
- package/assets/buttonround.C3ph5Yyu.css +0 -1
- package/assets/checkbox.BsFEWfQe.css +0 -1
- package/assets/dialog.BGK3mgk7.css +0 -1
- package/assets/floatingactionbutton.D7ywURL3.css +0 -1
- package/assets/heading.CGFucb-C.css +0 -1
- package/assets/input.BcP5kkZ2.css +0 -1
- package/assets/link.DQy_OhwC.css +0 -1
- package/assets/linkstandalone.Dh6bE5Fb.css +0 -1
- package/assets/logo.BbHYgnWo.css +0 -1
- package/assets/optioncheckbox.C-K1FLhc.css +0 -1
- package/assets/radio.CSHQGdpr.css +0 -1
- package/assets/spinner.C5rBmKiF.css +0 -1
- package/assets/switch.sqve8ApJ.css +0 -1
- package/assets/systemfeedback.WE3wClZ3.css +0 -1
- package/assets/text.DDAveG7E.css +0 -1
- package/assets/title.CE0Dm7PI.css +0 -1
- package/asterisk.DU8THnoC.js +0 -8
- package/button.DX_nxoJC.js +0 -135
- package/buttonround.CXsBk9nL.js +0 -118
- package/checkbox.B43oeMeC.js +0 -112
- package/checkboxgroup.C7aCjYds.js +0 -9
- package/chunks/AriaLiveRegions.utils.DzWI5KCU.js +0 -31
- package/chunks/CheckboxGroup.CS6Q_TeZ.js +0 -87
- package/chunks/CustomReactSelect.DtmbYZUf.js +0 -5033
- package/chunks/Fieldset.BokeZzG5.js +0 -99
- package/chunks/Icon.9gDIp6p4.js +0 -217
- package/chunks/Input.utils.AKWCNkpA.js +0 -110
- package/chunks/InputPassword.jpUCijp7.js +0 -140
- package/chunks/InputSearch.BmOtAZcR.js +0 -190
- package/chunks/InputStepper.DTKjUL4U.js +0 -291
- package/chunks/Notification.CUPOlHAX.js +0 -93
- package/chunks/RadioGroup.DpwnVv7u.js +0 -110
- package/chunks/RadioGroup.module.bi3leRes.js +0 -11
- package/chunks/Select.DkDZo0ky.js +0 -193
- package/chunks/Textarea.C938p79X.js +0 -195
- package/chunks/Toast.CLYrwQVO.js +0 -89
- package/chunks/helpers.B1JT5ShS.js +0 -7
- package/chunks/index.CvOaL64Y.js +0 -45
- package/chunks/jsx-runtime.C-kxDJ4g.js +0 -639
- package/chunks/pdf.9kZbElrZ.js +0 -10
- package/chunks/petrol.Du6qAgp0.js +0 -10
- package/chunks/upload.ZImTAIgx.js +0 -10
- package/chunks/useBreakpoint.5xBNDiCf.js +0 -48
- package/combobox.BaSkiD6f.js +0 -47
- package/components/CustomReactSelect/CustomReactSelect.d.ts +0 -60
- package/components/CustomReactSelect/CustomReactSelect.utils.d.ts +0 -16
- package/components/InputStepper/InputStepper.d.ts +0 -53
- package/components/InputStepper/InputStepper.utils.d.ts +0 -13
- package/components/LinkStandalone/LinkStandalone.d.ts +0 -15
- package/components/LinkStandalone/LinkStandalone.utils.d.ts +0 -2
- package/customreactselect.LTbjaBN2.js +0 -13
- package/dialog.BkXwcbUh.js +0 -45
- package/fieldset.BXOWK-B-.js +0 -11
- package/floatingactionbutton.-nDRRiXY.js +0 -87
- package/heading.DqGbFfj2.js +0 -50
- package/icon.Cpp_9L1I.js +0 -8
- package/input.BM6tyRUm.js +0 -236
- package/inputpassword.DUxH1K_k.js +0 -12
- package/inputsearch.B-vePHle.js +0 -13
- package/inputstepper.C2ypADPI.js +0 -13
- package/inputstepper.d.ts +0 -1
- package/link.B4XZoLDj.js +0 -115
- package/linkstandalone.BSfd95Pd.js +0 -79
- package/linkstandalone.d.ts +0 -1
- package/logo.C_oJ8isW.js +0 -69
- package/notification.CxxAOdNV.js +0 -9
- package/optioncheckbox.CUV1MQhh.js +0 -43
- package/partials/icon.svg +0 -1
- package/radio.Bhu9OUY-.js +0 -79
- package/radiogroup.CMJ1b38q.js +0 -11
- package/select.DFJK2mHF.js +0 -12
- package/spinner.BskX4ovu.js +0 -58
- package/styles/scss/_index.scss +0 -23
- package/styles/scss/lib/_a11y.scss +0 -15
- package/styles/scss/lib/_animation.scss +0 -20
- package/styles/scss/lib/_breakpoints.scss +0 -16
- package/styles/scss/lib/_container-query.scss +0 -58
- package/styles/scss/lib/_focus.scss +0 -62
- package/styles/scss/lib/_grid-extended.scss +0 -11
- package/styles/scss/lib/_grid-full.scss +0 -6
- package/styles/scss/lib/_grid-main.scss +0 -117
- package/styles/scss/lib/_grid-narrow.scss +0 -14
- package/styles/scss/lib/_grid-sidebar-sidebar.scss +0 -50
- package/styles/scss/lib/_grid-sidebar.scss +0 -157
- package/styles/scss/lib/_grid.scss +0 -88
- package/styles/scss/lib/_heading.scss +0 -66
- package/styles/scss/lib/_helpers.scss +0 -3
- package/styles/scss/lib/_high-contrast.scss +0 -24
- package/styles/scss/lib/_hover.scss +0 -10
- package/styles/scss/lib/_link.scss +0 -156
- package/styles/scss/lib/_media-query.scss +0 -32
- package/styles/scss/lib/_spacing.scss +0 -30
- package/styles/scss/lib/_text.scss +0 -67
- package/styles/scss/lib/_theme.scss +0 -162
- package/styles/scss/lib/_transition.scss +0 -26
- package/switch.Bx2tDKx0.js +0 -65
- package/systemfeedback.4Hkfigi-.js +0 -25
- package/text.CPU8IUqY.js +0 -57
- package/textarea.DPy3TJJf.js +0 -12
- package/title.icX0VDiO.js +0 -36
- package/toast.C-Yg5EoE.js +0 -10
- package/toastmanager.DQ_-eTrx.js +0 -96
- package/utils/has-document.d.ts +0 -1
- /package/components/{CustomReactSelect/CustomReactSelect.utils.test.d.ts → Accordion/Accordion.test.d.ts} +0 -0
- /package/components/{InputStepper/InputStepper.test.d.ts → Accordion/Acordion.utils.test.d.ts} +0 -0
- /package/components/{InputStepper/InputStepper.utils.test.d.ts → ActionButton/ActionButton.test.d.ts} +0 -0
- /package/components/{LinkStandalone/LinkStandalone.test.d.ts → ActionButton/ActionButton.utils.test.d.ts} +0 -0
- /package/partials/{apple-icon.png → default-apple-icon.png} +0 -0
- /package/partials/{favicon.ico → default-favicon.ico} +0 -0
- /package/partials/{icon-192.png → default-icon-192.png} +0 -0
- /package/partials/{icon-512.png → default-icon-512.png} +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "react/jsx-runtime";
|
|
3
|
+
import "./chunks/index.DQOqod3i.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "./chunks/useBreakpoint.1txsny17.js";
|
|
6
|
+
import "./chunks/index.cKLI89Eg.js";
|
|
7
|
+
import "./chunks/Icon.m6sMB6vl.js";
|
|
8
|
+
import "./chunks/SystemFeedback.DFN6Y2cw.js";
|
|
9
|
+
import { D as x } from "./chunks/Checkbox.B3NeB54s.js";
|
|
10
|
+
export {
|
|
11
|
+
x as DSCheckbox
|
|
12
|
+
};
|
package/checkbox.d.ts
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "react/jsx-runtime";
|
|
3
|
+
import "./chunks/index.cKLI89Eg.js";
|
|
4
|
+
import "./chunks/index.DQOqod3i.js";
|
|
5
|
+
import "./chunks/Fieldset.7WM7w62l.js";
|
|
6
|
+
import { D as e } from "./chunks/CheckboxGroup.BYZSvqF7.js";
|
|
7
|
+
export {
|
|
8
|
+
e as DSCheckboxGroup
|
|
9
|
+
};
|
package/checkboxgroup.d.ts
CHANGED
package/chip.CyypeY5M.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "react/jsx-runtime";
|
|
3
|
+
import "./chunks/index.cKLI89Eg.js";
|
|
4
|
+
import "./chunks/index.DQOqod3i.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import "./chunks/translate.nuU7uChI.js";
|
|
7
|
+
import "./chunks/Icon.m6sMB6vl.js";
|
|
8
|
+
import "./tooltip._lP4aMV2.js";
|
|
9
|
+
import { e as c } from "./chunks/Chip.SiGIIHR-.js";
|
|
10
|
+
export {
|
|
11
|
+
c as DSChip
|
|
12
|
+
};
|
package/chip.d.ts
ADDED
package/chipgroup.d.ts
ADDED
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as ce, jsx as J } from "react/jsx-runtime";
|
|
3
|
+
import { useState as U, useRef as P, useEffect as V, createElement as ae } from "react";
|
|
4
|
+
import { d as ue } from "./chunks/index.cKLI89Eg.js";
|
|
5
|
+
import { c as Q } from "./chunks/index.DQOqod3i.js";
|
|
6
|
+
import { u as de } from "./chunks/useBreakpoint.1txsny17.js";
|
|
7
|
+
import { g as fe } from "./chunks/AriaLiveRegions.utils.CLpOaVD9.js";
|
|
8
|
+
import { v as me, e as pe, a as he } from "./chunks/Chip.SiGIIHR-.js";
|
|
9
|
+
import './assets/chipgroup.BGxjdSDX.css';const ge = "ds-chip-group_label--hidden_3zmt2_1", be = "ds-chip-group_root_3zmt2_14", W = {
|
|
10
|
+
labelHidden: ge,
|
|
11
|
+
root: be
|
|
12
|
+
}, Ne = (o) => {
|
|
13
|
+
const e = ue.c(37);
|
|
14
|
+
let r, m, d, g, c, L, b, v, y, w, k, C, I;
|
|
15
|
+
e[0] !== o ? ({
|
|
16
|
+
chips: r,
|
|
17
|
+
id: d,
|
|
18
|
+
label: g,
|
|
19
|
+
className: m,
|
|
20
|
+
disableTooltips: b,
|
|
21
|
+
hideLabel: v,
|
|
22
|
+
isRemovable: y,
|
|
23
|
+
lang: w,
|
|
24
|
+
selectionMode: k,
|
|
25
|
+
size: C,
|
|
26
|
+
translations: I,
|
|
27
|
+
onChipsChange: c,
|
|
28
|
+
...L
|
|
29
|
+
} = o, e[0] = o, e[1] = r, e[2] = m, e[3] = d, e[4] = g, e[5] = c, e[6] = L, e[7] = b, e[8] = v, e[9] = y, e[10] = w, e[11] = k, e[12] = C, e[13] = I) : (r = e[1], m = e[2], d = e[3], g = e[4], c = e[5], L = e[6], b = e[7], v = e[8], y = e[9], w = e[10], k = e[11], C = e[12], I = e[13]);
|
|
30
|
+
const X = b === void 0 ? !1 : b, Y = v === void 0 ? !1 : v, u = y === void 0 ? !1 : y, Z = w === void 0 ? "en" : w, f = k === void 0 ? "single" : k, ee = C === void 0 ? "medium" : C;
|
|
31
|
+
process.env.NODE_ENV !== "production" && me({
|
|
32
|
+
chips: r,
|
|
33
|
+
id: d,
|
|
34
|
+
label: g
|
|
35
|
+
});
|
|
36
|
+
const [s, p] = U(null);
|
|
37
|
+
let $;
|
|
38
|
+
e[14] !== r ? ($ = () => r.map(ve), e[14] = r, e[15] = $) : $ = e[15];
|
|
39
|
+
const [n, S] = U($), q = P(null), [a, j] = U();
|
|
40
|
+
let _;
|
|
41
|
+
e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = [], e[16] = _) : _ = e[16];
|
|
42
|
+
const D = P(_);
|
|
43
|
+
let A, K;
|
|
44
|
+
e[17] !== r ? (K = () => {
|
|
45
|
+
S(r.map(ye));
|
|
46
|
+
}, A = [r], e[17] = r, e[18] = A, e[19] = K) : (A = e[18], K = e[19]), V(K, A);
|
|
47
|
+
let T, N;
|
|
48
|
+
e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = () => {
|
|
49
|
+
he();
|
|
50
|
+
const t = () => j("keydown"), l = () => j(null), i = () => j(null);
|
|
51
|
+
return document.addEventListener("keydown", t), document.addEventListener("mousedown", l), document.addEventListener("touchstart", i), () => {
|
|
52
|
+
document.removeEventListener("keydown", t), document.removeEventListener("mousedown", l), document.removeEventListener("touchstart", i);
|
|
53
|
+
};
|
|
54
|
+
}, N = [], e[20] = T, e[21] = N) : (T = e[20], N = e[21]), V(T, N);
|
|
55
|
+
let R;
|
|
56
|
+
e[22] !== s || e[23] !== a ? (R = () => {
|
|
57
|
+
s !== null && D.current[s] && a === "keydown" && D.current[s]?.focus();
|
|
58
|
+
}, e[22] = s, e[23] = a, e[24] = R) : R = e[24];
|
|
59
|
+
let M;
|
|
60
|
+
e[25] !== s ? (M = [s], e[25] = s, e[26] = M) : M = e[26], V(R, M);
|
|
61
|
+
let z;
|
|
62
|
+
e[27] !== n.length || e[28] !== s || e[29] !== a ? (z = () => {
|
|
63
|
+
a === "keydown" && s !== null && n.length > 0 && D.current.forEach((t, l) => {
|
|
64
|
+
t && (t.tabIndex = l === s ? 0 : -1, l === s && t.focus());
|
|
65
|
+
});
|
|
66
|
+
}, e[27] = n.length, e[28] = s, e[29] = a, e[30] = z) : z = e[30];
|
|
67
|
+
let B;
|
|
68
|
+
e[31] !== n ? (B = [n], e[31] = n, e[32] = B) : B = e[32], V(z, B);
|
|
69
|
+
const te = (t) => {
|
|
70
|
+
if (s === null)
|
|
71
|
+
return;
|
|
72
|
+
let l = s;
|
|
73
|
+
e: switch (t.key) {
|
|
74
|
+
case "a": {
|
|
75
|
+
(t.metaKey || t.ctrlKey) && (t.preventDefault(), le());
|
|
76
|
+
break e;
|
|
77
|
+
}
|
|
78
|
+
case "ArrowRight":
|
|
79
|
+
case "ArrowDown": {
|
|
80
|
+
t.shiftKey && f === "multiple" && !u ? (l = s + 1 > n.length - 1 ? n.length - 1 : s + 1, s !== l ? (h(s), h(l)) : n[s].isSelected || h(s)) : (l = (s + 1) % n.length, t.preventDefault());
|
|
81
|
+
break e;
|
|
82
|
+
}
|
|
83
|
+
case "ArrowLeft":
|
|
84
|
+
case "ArrowUp": {
|
|
85
|
+
t.shiftKey && f === "multiple" && !u ? (l = s - 1 < 0 ? 0 : s - 1, s !== l ? (h(s), h(l)) : n[0].isSelected || h(0)) : (l = (s - 1 + n.length) % n.length, t.preventDefault());
|
|
86
|
+
break e;
|
|
87
|
+
}
|
|
88
|
+
case "Enter":
|
|
89
|
+
case " ": {
|
|
90
|
+
if (t.preventDefault(), u) {
|
|
91
|
+
O(l);
|
|
92
|
+
return;
|
|
93
|
+
} else
|
|
94
|
+
x(l);
|
|
95
|
+
break e;
|
|
96
|
+
}
|
|
97
|
+
case "Backspace": {
|
|
98
|
+
u && O(l), t.preventDefault();
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
default:
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
p(l);
|
|
105
|
+
}, le = () => {
|
|
106
|
+
if (f !== "multiple")
|
|
107
|
+
return;
|
|
108
|
+
const t = n.map(we);
|
|
109
|
+
S(t), E(`${t.length} items selected`), c && c(t);
|
|
110
|
+
}, h = (t) => {
|
|
111
|
+
if (u)
|
|
112
|
+
return;
|
|
113
|
+
const l = n.map(ke);
|
|
114
|
+
l[t].disabled || (l[t].isSelected = !0, E(`${l[t].label} selected, ${l.filter(Ce).length} items selected`), S(l), c && c(l));
|
|
115
|
+
}, x = (t) => {
|
|
116
|
+
if (u)
|
|
117
|
+
return;
|
|
118
|
+
const l = [...n];
|
|
119
|
+
l[t].disabled || (f === "single" ? l.forEach((i, H) => {
|
|
120
|
+
H === t ? (i.isSelected = !i.isSelected, E(`${i.label} ${i.isSelected ? "selected" : "not selected"}`)) : i.isSelected = !1;
|
|
121
|
+
}) : f === "multiple" && (l[t].isSelected = !l[t].isSelected, E(`${l[t].label} ${l[t].isSelected ? "selected" : "not selected"}, ${l.filter(Se).length} items selected`)), S(l), c && c(l));
|
|
122
|
+
}, O = (t) => {
|
|
123
|
+
const l = n[t], i = n.filter((H, re) => re !== t).map(De);
|
|
124
|
+
if (S(i), E(`${l.label} removed, ${i.length} items remaining`), a === "keydown")
|
|
125
|
+
if (i.length > 0) {
|
|
126
|
+
const H = Math.min(t, i.length - 1);
|
|
127
|
+
p(H);
|
|
128
|
+
} else
|
|
129
|
+
q.current?.focus(), p(null);
|
|
130
|
+
c && c(i);
|
|
131
|
+
}, se = (t) => {
|
|
132
|
+
u ? O(t) : n[t].disabled || x(t);
|
|
133
|
+
}, E = Ee;
|
|
134
|
+
let F;
|
|
135
|
+
e[33] !== s ? (F = (t) => s === null || s === t ? 0 : -1, e[33] = s, e[34] = F) : F = e[34];
|
|
136
|
+
const ne = F, oe = de(Y);
|
|
137
|
+
let G;
|
|
138
|
+
e[35] !== m ? (G = Q(W.root, m), e[35] = m, e[36] = G) : G = e[36];
|
|
139
|
+
const ie = G;
|
|
140
|
+
return n.length === 0 ? null : /* @__PURE__ */ ce("div", { children: [
|
|
141
|
+
/* @__PURE__ */ J("div", { id: d, className: Q({
|
|
142
|
+
[W.labelHidden]: oe
|
|
143
|
+
}) || void 0, children: g }),
|
|
144
|
+
n.length > 0 && /* @__PURE__ */ J("div", { ref: q, role: "grid", "aria-labelledby": d, "aria-multiselectable": f === "multiple", tabIndex: -1, onKeyDown: te, onFocus: () => {
|
|
145
|
+
s === null ? (D.current[0].focus(), a === "keydown" && p(0)) : a === "keydown" && p(s);
|
|
146
|
+
}, onBlur: () => p(null), className: ie, ...L, children: n.map((t, l) => /* @__PURE__ */ ae(pe, { ...t, key: `${t.id}-${l}`, "data-focused": s === l, disableTooltips: X, groupId: d, isRemovable: u, lang: Z, selectionMode: f, size: ee, tabIndex: ne(l), translations: I, onClick: (i) => {
|
|
147
|
+
se(l), t.onClick && t.onClick(i);
|
|
148
|
+
}, ref: (i) => {
|
|
149
|
+
D.current[l] = i;
|
|
150
|
+
} })) })
|
|
151
|
+
] });
|
|
152
|
+
};
|
|
153
|
+
function ve(o) {
|
|
154
|
+
return {
|
|
155
|
+
...o
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
function ye(o) {
|
|
159
|
+
return {
|
|
160
|
+
...o
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
function we(o) {
|
|
164
|
+
return {
|
|
165
|
+
...o,
|
|
166
|
+
selected: !o.disabled
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
function ke(o) {
|
|
170
|
+
return {
|
|
171
|
+
...o
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
function Ce(o) {
|
|
175
|
+
const {
|
|
176
|
+
isSelected: e
|
|
177
|
+
} = o;
|
|
178
|
+
return e;
|
|
179
|
+
}
|
|
180
|
+
function Se(o) {
|
|
181
|
+
const {
|
|
182
|
+
isSelected: e
|
|
183
|
+
} = o;
|
|
184
|
+
return e;
|
|
185
|
+
}
|
|
186
|
+
function De(o) {
|
|
187
|
+
return {
|
|
188
|
+
...o
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
function Ee(o) {
|
|
192
|
+
const e = fe();
|
|
193
|
+
e && (e.innerText = o, setTimeout(() => {
|
|
194
|
+
e.innerText = "";
|
|
195
|
+
}, 350));
|
|
196
|
+
}
|
|
197
|
+
export {
|
|
198
|
+
Ne as DSChipGroup
|
|
199
|
+
};
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as l, jsxs as q } from "react/jsx-runtime";
|
|
3
|
+
import { d as ye } from "./index.cKLI89Eg.js";
|
|
4
|
+
import { c as W } from "./index.DQOqod3i.js";
|
|
5
|
+
import { forwardRef as fe, useRef as ge, useState as Se, useImperativeHandle as Ce, useEffect as _e } from "react";
|
|
6
|
+
import { DSHeading as ve } from "../heading.BHSklXho.js";
|
|
7
|
+
import { D as We } from "./Icon.m6sMB6vl.js";
|
|
8
|
+
import { NumberIndicator as Oe } from "../numberindicator.ZGVRSmqf.js";
|
|
9
|
+
import { g as ie } from "./helpers.CexwVao7.js";
|
|
10
|
+
import '../assets/Accordion.Cr1dbVTH.css';const Ne = "ds-accordion_details_2g22m_1", we = "ds-accordion_summary_2g22m_117", De = "ds-accordion_summary--utility--m_2g22m_156", xe = "ds-accordion_summary--flush_2g22m_185", Ie = "ds-accordion_summary--small_2g22m_253", Ee = "ds-accordion_summary--x-small_2g22m_257", Ae = "ds-accordion_summary-content-wrapper_2g22m_262", Xe = "ds-accordion_summary-content-wrapper--flush_2g22m_268", be = "ds-accordion_summary-content-wrapper--chevron-left_2g22m_272", Fe = "ds-accordion_summary-content-wrapper--x-small_2g22m_276", Te = "ds-accordion_heading-summary-wrapper_2g22m_280", Pe = "ds-accordion_heading-summary_2g22m_280", Re = "ds-accordion_heading-summary--x-small_2g22m_290", Le = "ds-accordion_hint_2g22m_294", je = "ds-accordion_icon_2g22m_308", ze = "ds-accordion_icon--open_2g22m_319", Me = "ds-accordion_icon--open-caret_2g22m_330", He = "ds-accordion_content-wrapper_2g22m_342", Ue = "ds-accordion_content-wrapper--flush_2g22m_348", Ve = "ds-accordion_content-wrapper--small_2g22m_352", qe = "ds-accordion_content-wrapper--x-small_2g22m_356", t = {
|
|
11
|
+
details: Ne,
|
|
12
|
+
summary: we,
|
|
13
|
+
summaryUtilityM: De,
|
|
14
|
+
summaryFlush: xe,
|
|
15
|
+
summarySmall: Ie,
|
|
16
|
+
summaryXSmall: Ee,
|
|
17
|
+
summaryContentWrapper: Ae,
|
|
18
|
+
summaryContentWrapperFlush: Xe,
|
|
19
|
+
summaryContentWrapperChevronLeft: be,
|
|
20
|
+
summaryContentWrapperXSmall: Fe,
|
|
21
|
+
headingSummaryWrapper: Te,
|
|
22
|
+
headingSummary: Pe,
|
|
23
|
+
headingSummaryXSmall: Re,
|
|
24
|
+
hint: Le,
|
|
25
|
+
icon: je,
|
|
26
|
+
iconOpen: ze,
|
|
27
|
+
iconOpenCaret: Me,
|
|
28
|
+
contentWrapper: He,
|
|
29
|
+
contentWrapperFlush: Ue,
|
|
30
|
+
contentWrapperSmall: Ve,
|
|
31
|
+
contentWrapperXSmall: qe
|
|
32
|
+
}, tt = ["medium", "small", "x-small"], rt = ["chevron", "caret"], nt = ["left", "right"], Ze = ({
|
|
33
|
+
children: O,
|
|
34
|
+
hint: Z,
|
|
35
|
+
numberIndicatorValue: e,
|
|
36
|
+
summary: n
|
|
37
|
+
}) => {
|
|
38
|
+
if (!O)
|
|
39
|
+
throw new Error(ie("DSAccordion", "The component requires children to be set."));
|
|
40
|
+
if (!n)
|
|
41
|
+
throw new Error(ie("DSAccordion", "The summary prop is required. Please add the summary prop to the DSAccordion component."));
|
|
42
|
+
if (Z && (e || e === ""))
|
|
43
|
+
throw new Error(ie("DSAccordion", "The hint and numberIndicator props cannot be used together. Please remove either the hint prop or the numberIndicatorValue prop."));
|
|
44
|
+
}, $e = fe((O, Z) => {
|
|
45
|
+
const e = ye.c(73);
|
|
46
|
+
let n, i, o, s, p, r, N, w, D, x;
|
|
47
|
+
e[0] !== O ? ({
|
|
48
|
+
children: n,
|
|
49
|
+
summary: r,
|
|
50
|
+
chevronPosition: N,
|
|
51
|
+
className: i,
|
|
52
|
+
hint: o,
|
|
53
|
+
isFlush: w,
|
|
54
|
+
isOpen: D,
|
|
55
|
+
numberIndicatorValue: s,
|
|
56
|
+
size: x,
|
|
57
|
+
...p
|
|
58
|
+
} = O, e[0] = O, e[1] = n, e[2] = i, e[3] = o, e[4] = s, e[5] = p, e[6] = r, e[7] = N, e[8] = w, e[9] = D, e[10] = x) : (n = e[1], i = e[2], o = e[3], s = e[4], p = e[5], r = e[6], N = e[7], w = e[8], D = e[9], x = e[10]);
|
|
59
|
+
const pe = N === void 0 ? "right" : N, a = w === void 0 ? !1 : w, c = D === void 0 ? !1 : D, d = x === void 0 ? "medium" : x;
|
|
60
|
+
process.env.NODE_ENV !== "production" && Ze({
|
|
61
|
+
children: n,
|
|
62
|
+
hint: o,
|
|
63
|
+
numberIndicatorValue: s,
|
|
64
|
+
summary: r
|
|
65
|
+
});
|
|
66
|
+
const $ = pe === "right" ? "chevron" : "caret", m = ge(null), [de, ue] = Se(c);
|
|
67
|
+
let E;
|
|
68
|
+
e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = () => m.current, e[11] = E) : E = e[11], Ce(Z, E);
|
|
69
|
+
let A;
|
|
70
|
+
e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = () => {
|
|
71
|
+
m.current && ue(m.current.open);
|
|
72
|
+
}, e[12] = A) : A = e[12];
|
|
73
|
+
let X;
|
|
74
|
+
e[13] !== c ? (X = [c], e[13] = c, e[14] = X) : X = e[14], _e(A, X);
|
|
75
|
+
let b, F;
|
|
76
|
+
e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = () => {
|
|
77
|
+
const he = () => {
|
|
78
|
+
m.current && ue(m.current.open);
|
|
79
|
+
};
|
|
80
|
+
return m.current?.addEventListener("toggle", he), () => {
|
|
81
|
+
m.current?.removeEventListener("toggle", he);
|
|
82
|
+
};
|
|
83
|
+
}, F = [], e[15] = b, e[16] = F) : (b = e[15], F = e[16]), _e(b, F);
|
|
84
|
+
let T, P, R;
|
|
85
|
+
const I = typeof r == "object" && r !== void 0;
|
|
86
|
+
I && ({
|
|
87
|
+
headingSize: T,
|
|
88
|
+
headingTag: P,
|
|
89
|
+
headingText: R
|
|
90
|
+
} = r);
|
|
91
|
+
let L;
|
|
92
|
+
e[17] !== i ? (L = W(t.details, i), e[17] = i, e[18] = L) : L = e[18];
|
|
93
|
+
const k = L, B = d === "small", G = d === "x-small", J = !I;
|
|
94
|
+
let j;
|
|
95
|
+
e[19] !== a || e[20] !== B || e[21] !== G || e[22] !== J ? (j = W(t.summary, {
|
|
96
|
+
[t.summaryFlush]: a,
|
|
97
|
+
[t.summarySmall]: B,
|
|
98
|
+
[t.summaryXSmall]: G,
|
|
99
|
+
[t.summaryUtilityM]: J
|
|
100
|
+
}), e[19] = a, e[20] = B, e[21] = G, e[22] = J, e[23] = j) : j = e[23];
|
|
101
|
+
const K = j, Q = pe === "left", Y = d === "x-small";
|
|
102
|
+
let z;
|
|
103
|
+
e[24] !== a || e[25] !== Q || e[26] !== Y ? (z = W(t.summaryContentWrapper, {
|
|
104
|
+
[t.summaryContentWrapperFlush]: a,
|
|
105
|
+
[t.summaryContentWrapperChevronLeft]: Q,
|
|
106
|
+
[t.summaryContentWrapperXSmall]: Y
|
|
107
|
+
}), e[24] = a, e[25] = Q, e[26] = Y, e[27] = z) : z = e[27];
|
|
108
|
+
const ee = z, te = d === "x-small";
|
|
109
|
+
let M;
|
|
110
|
+
e[28] !== te ? (M = W(t.headingSummary, {
|
|
111
|
+
[t.headingSummaryXSmall]: te
|
|
112
|
+
}), e[28] = te, e[29] = M) : M = e[29];
|
|
113
|
+
const re = M, ne = $ === "chevron" && de, se = $ === "caret" && de;
|
|
114
|
+
let H;
|
|
115
|
+
e[30] !== ne || e[31] !== se ? (H = W(t.icon, {
|
|
116
|
+
[t.iconOpen]: ne,
|
|
117
|
+
[t.iconOpenCaret]: se
|
|
118
|
+
}), e[30] = ne, e[31] = se, e[32] = H) : H = e[32];
|
|
119
|
+
const ae = H, oe = d === "small", me = d === "x-small";
|
|
120
|
+
let U;
|
|
121
|
+
e[33] !== a || e[34] !== oe || e[35] !== me ? (U = W(t.contentWrapper, {
|
|
122
|
+
[t.contentWrapperFlush]: a,
|
|
123
|
+
[t.contentWrapperSmall]: oe,
|
|
124
|
+
[t.contentWrapperXSmall]: me
|
|
125
|
+
}), e[33] = a, e[34] = oe, e[35] = me, e[36] = U) : U = e[36];
|
|
126
|
+
const ce = U;
|
|
127
|
+
let u;
|
|
128
|
+
e[37] !== T || e[38] !== P || e[39] !== R || e[40] !== I || e[41] !== r ? (u = I ? /* @__PURE__ */ l(ve, { tag: P, size: T, children: R }) : r, e[37] = T, e[38] = P, e[39] = R, e[40] = I, e[41] = r, e[42] = u) : u = e[42];
|
|
129
|
+
let h;
|
|
130
|
+
e[43] !== s ? (h = (s || s?.trim() === "") && /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(Oe, { label: s }) }), e[43] = s, e[44] = h) : h = e[44];
|
|
131
|
+
let _;
|
|
132
|
+
e[45] !== re || e[46] !== u || e[47] !== h ? (_ = /* @__PURE__ */ q("div", { className: re, children: [
|
|
133
|
+
u,
|
|
134
|
+
h
|
|
135
|
+
] }), e[45] = re, e[46] = u, e[47] = h, e[48] = _) : _ = e[48];
|
|
136
|
+
let y;
|
|
137
|
+
e[49] !== o ? (y = o && /* @__PURE__ */ l("div", { className: t.hint, children: o }), e[49] = o, e[50] = y) : y = e[50];
|
|
138
|
+
let f;
|
|
139
|
+
e[51] !== _ || e[52] !== y ? (f = /* @__PURE__ */ q("div", { className: t.headingSummaryWrapper, children: [
|
|
140
|
+
_,
|
|
141
|
+
y
|
|
142
|
+
] }), e[51] = _, e[52] = y, e[53] = f) : f = e[53];
|
|
143
|
+
const le = $ === "chevron" ? "chevron-down" : "caret-right";
|
|
144
|
+
let g;
|
|
145
|
+
e[54] !== ae || e[55] !== le ? (g = /* @__PURE__ */ l(We, { name: le, "aria-hidden": "true", className: ae }), e[54] = ae, e[55] = le, e[56] = g) : g = e[56];
|
|
146
|
+
let S;
|
|
147
|
+
e[57] !== ee || e[58] !== f || e[59] !== g ? (S = /* @__PURE__ */ q("div", { className: ee, children: [
|
|
148
|
+
f,
|
|
149
|
+
g
|
|
150
|
+
] }), e[57] = ee, e[58] = f, e[59] = g, e[60] = S) : S = e[60];
|
|
151
|
+
let C;
|
|
152
|
+
e[61] !== K || e[62] !== S ? (C = /* @__PURE__ */ l("summary", { className: K, children: S }), e[61] = K, e[62] = S, e[63] = C) : C = e[63];
|
|
153
|
+
let v;
|
|
154
|
+
e[64] !== n || e[65] !== ce ? (v = /* @__PURE__ */ l("div", { className: ce, children: n }), e[64] = n, e[65] = ce, e[66] = v) : v = e[66];
|
|
155
|
+
let V;
|
|
156
|
+
return e[67] !== k || e[68] !== c || e[69] !== p || e[70] !== C || e[71] !== v ? (V = /* @__PURE__ */ q("details", { ...p, ref: m, className: k, open: c, children: [
|
|
157
|
+
C,
|
|
158
|
+
v
|
|
159
|
+
] }), e[67] = k, e[68] = c, e[69] = p, e[70] = C, e[71] = v, e[72] = V) : V = e[72], V;
|
|
160
|
+
});
|
|
161
|
+
$e.displayName = "DSAccordion";
|
|
162
|
+
export {
|
|
163
|
+
tt as A,
|
|
164
|
+
nt as C,
|
|
165
|
+
$e as D,
|
|
166
|
+
rt as a,
|
|
167
|
+
Ze as v
|
|
168
|
+
};
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as $, jsx as p, Fragment as At } from "react/jsx-runtime";
|
|
3
|
+
import { d as zt } from "./index.cKLI89Eg.js";
|
|
4
|
+
import { c as S } from "./index.DQOqod3i.js";
|
|
5
|
+
import { forwardRef as St } from "react";
|
|
6
|
+
import { D as Tt } from "./Icon.m6sMB6vl.js";
|
|
7
|
+
import { NumberIndicator as wt } from "../numberindicator.ZGVRSmqf.js";
|
|
8
|
+
import { Tooltip as Nt } from "../tooltip._lP4aMV2.js";
|
|
9
|
+
import { g as C } from "./helpers.CexwVao7.js";
|
|
10
|
+
import '../assets/ActionButton.BLOWs6IZ.css';const Ct = "ds-action-button_root_19zdv_1", Ot = "ds-action-button_root--indent-level-1_19zdv_75", Pt = "ds-action-button_root--active_19zdv_78", Dt = "ds-action-button_root--active--with-marker_19zdv_81", Bt = "ds-action-button_root--icon--top_19zdv_84", kt = "ds-action-button_root--stretched_19zdv_110", Lt = "ds-action-button_active-marker_19zdv_115", Et = "ds-action-button_active-marker--with-indent_19zdv_127", xt = "ds-action-button_icon-wrapper_19zdv_131", Mt = "ds-action-button_icon-wrapper--x-large_19zdv_134", Ut = "ds-action-button_icon-wrapper--with-number-indicator_19zdv_137", Vt = "ds-action-button_icon-wrapper--with-number-indicator--with-value_19zdv_145", Rt = "ds-action-button_label_19zdv_149", yt = "ds-action-button_label--bold_19zdv_160", Ht = "ds-action-button_label--active_19zdv_171", Xt = "ds-action-button_label--icon-top_19zdv_182", jt = "ds-action-button_number-indicator_19zdv_205", Ft = "ds-action-button_label-wrapper_19zdv_209", Gt = "ds-action-button_label-wrapper--icon-top_19zdv_214", Zt = "ds-action-button_chevron_19zdv_218", $t = "ds-action-button_chevron--icon-position-top_19zdv_233", qt = "ds-action-button_chevron--up_19zdv_239", Jt = "ds-action-button_chevron--right_19zdv_250", Kt = "ds-action-button_chevron--left_19zdv_261", o = {
|
|
11
|
+
root: Ct,
|
|
12
|
+
rootIndentLevel1: Ot,
|
|
13
|
+
rootActive: Pt,
|
|
14
|
+
rootActiveWithMarker: Dt,
|
|
15
|
+
rootIconTop: Bt,
|
|
16
|
+
rootStretched: kt,
|
|
17
|
+
activeMarker: Lt,
|
|
18
|
+
activeMarkerWithIndent: Et,
|
|
19
|
+
iconWrapper: xt,
|
|
20
|
+
iconWrapperXLarge: Mt,
|
|
21
|
+
iconWrapperWithNumberIndicator: Ut,
|
|
22
|
+
iconWrapperWithNumberIndicatorWithValue: Vt,
|
|
23
|
+
label: Rt,
|
|
24
|
+
labelBold: yt,
|
|
25
|
+
labelActive: Ht,
|
|
26
|
+
labelIconTop: Xt,
|
|
27
|
+
numberIndicator: jt,
|
|
28
|
+
labelWrapper: Ft,
|
|
29
|
+
labelWrapperIconTop: Gt,
|
|
30
|
+
chevron: Zt,
|
|
31
|
+
chevronIconPositionTop: $t,
|
|
32
|
+
chevronUp: qt,
|
|
33
|
+
chevronRight: Jt,
|
|
34
|
+
chevronLeft: Kt
|
|
35
|
+
}, so = ["left", "top"], lo = ["large", "x-large"], po = [0, 1], ho = ["normal", "bold"], vo = ["up", "down", "right", "left"], Qt = ({
|
|
36
|
+
iconName: u,
|
|
37
|
+
iconSize: f,
|
|
38
|
+
iconSource: t,
|
|
39
|
+
iconPosition: d,
|
|
40
|
+
indentLevel: r,
|
|
41
|
+
stretched: h,
|
|
42
|
+
weight: v
|
|
43
|
+
}) => {
|
|
44
|
+
if (u && !t && f === "x-large" && console.warn(C("DSActionButton", 'An "iconSize" prop set to "x-large" has no effect when "iconName" is set. Please remove the "iconSize" prop or provide a custom icon via the "iconSource" prop.')), d === "top") {
|
|
45
|
+
if (!u && !t)
|
|
46
|
+
throw new Error(C("DSActionButton", 'The "iconPosition" prop should not be set to "top", when no "iconName" or "iconSource" prop was provided. Please either remove the "iconPosition" prop or set a valid icon via the "iconName" or "iconSource" prop.'));
|
|
47
|
+
f === "x-large" && console.warn(C("DSActionButton", 'An "iconSize" prop set to "x-large" has no effect when "iconPosition" is set to "top". Please remove the "iconSize" prop.')), v === "bold" && console.warn(C("DSActionButton", 'A "weight" prop set to "bold" with "iconPosition" set to "top" has no effect. Please remove the "weight" prop.')), r === 1 && console.warn(C("DSActionButton", 'An "indentLevel" prop set to "1" with "iconPosition" set to "top" has no effect. Please remove the "indentLevel" prop.')), h && console.warn(C("DSActionButton", 'A "stretched" prop set to "true" with "iconPosition" set to "top" has no effect. Please remove the "stretched" prop.'));
|
|
48
|
+
}
|
|
49
|
+
}, Yt = St((u, f) => {
|
|
50
|
+
const t = zt.c(93);
|
|
51
|
+
let d, r, h, v, c, a, n, _, m, O, P, D, B, k, L, E, b;
|
|
52
|
+
t[0] !== u ? ({
|
|
53
|
+
children: h,
|
|
54
|
+
aria: d,
|
|
55
|
+
chevronDirection: r,
|
|
56
|
+
className: v,
|
|
57
|
+
disabled: O,
|
|
58
|
+
iconName: c,
|
|
59
|
+
iconPosition: P,
|
|
60
|
+
iconSize: D,
|
|
61
|
+
iconSource: a,
|
|
62
|
+
indentLevel: B,
|
|
63
|
+
isActive: k,
|
|
64
|
+
numberIndicatorValue: n,
|
|
65
|
+
stretched: L,
|
|
66
|
+
weight: E,
|
|
67
|
+
tooltip: b,
|
|
68
|
+
onClick: _,
|
|
69
|
+
...m
|
|
70
|
+
} = u, t[0] = u, t[1] = d, t[2] = r, t[3] = h, t[4] = v, t[5] = c, t[6] = a, t[7] = n, t[8] = _, t[9] = m, t[10] = O, t[11] = P, t[12] = D, t[13] = B, t[14] = k, t[15] = L, t[16] = E, t[17] = b) : (d = t[1], r = t[2], h = t[3], v = t[4], c = t[5], a = t[6], n = t[7], _ = t[8], m = t[9], O = t[10], P = t[11], D = t[12], B = t[13], k = t[14], L = t[15], E = t[16], b = t[17]);
|
|
71
|
+
const i = O === void 0 ? !1 : O, e = P === void 0 ? "left" : P, x = D === void 0 ? "large" : D, q = B === void 0 ? 0 : B, I = k === void 0 ? !1 : k, Wt = L === void 0 ? !1 : L, gt = E === void 0 ? "normal" : E;
|
|
72
|
+
process.env.NODE_ENV !== "production" && Qt({
|
|
73
|
+
iconName: c,
|
|
74
|
+
iconSize: x,
|
|
75
|
+
iconSource: a,
|
|
76
|
+
iconPosition: e,
|
|
77
|
+
indentLevel: q,
|
|
78
|
+
stretched: Wt,
|
|
79
|
+
weight: gt
|
|
80
|
+
});
|
|
81
|
+
let M;
|
|
82
|
+
t[18] !== n ? (M = n?.trim(), t[18] = n, t[19] = M) : M = t[19];
|
|
83
|
+
const s = M === "", J = e === "top", K = q === 1, Q = I && !i, Y = I && !i && e === "left", tt = Wt === !0 && e === "left";
|
|
84
|
+
let U;
|
|
85
|
+
t[20] !== v || t[21] !== K || t[22] !== Q || t[23] !== Y || t[24] !== tt || t[25] !== J ? (U = S(o.root, v, {
|
|
86
|
+
[o.rootIconTop]: J,
|
|
87
|
+
[o.rootIndentLevel1]: K,
|
|
88
|
+
[o.rootActive]: Q,
|
|
89
|
+
[o.rootActiveWithMarker]: Y,
|
|
90
|
+
[o.rootStretched]: tt
|
|
91
|
+
}), t[20] = v, t[21] = K, t[22] = Q, t[23] = Y, t[24] = tt, t[25] = J, t[26] = U) : U = t[26];
|
|
92
|
+
const ot = U, et = q === 1;
|
|
93
|
+
let V;
|
|
94
|
+
t[27] !== et ? (V = S(o.activeMarker, {
|
|
95
|
+
[o.activeMarkerWithIndent]: et
|
|
96
|
+
}), t[27] = et, t[28] = V) : V = t[28];
|
|
97
|
+
const nt = V, it = I && !i, rt = gt === "bold", ct = e === "top";
|
|
98
|
+
let R;
|
|
99
|
+
t[29] !== it || t[30] !== rt || t[31] !== ct ? (R = S(o.label, {
|
|
100
|
+
[o.labelActive]: it,
|
|
101
|
+
[o.labelBold]: rt,
|
|
102
|
+
[o.labelIconTop]: ct
|
|
103
|
+
}), t[29] = it, t[30] = rt, t[31] = ct, t[32] = R) : R = t[32];
|
|
104
|
+
const at = R, st = e === "top";
|
|
105
|
+
let y;
|
|
106
|
+
t[33] !== st ? (y = S(o.labelWrapper, {
|
|
107
|
+
[o.labelWrapperIconTop]: st
|
|
108
|
+
}), t[33] = st, t[34] = y) : y = t[34];
|
|
109
|
+
const lt = y, pt = e === "top", dt = r === "up", ht = r === "right", vt = r === "left";
|
|
110
|
+
let H;
|
|
111
|
+
t[35] !== pt || t[36] !== dt || t[37] !== ht || t[38] !== vt ? (H = S(o.chevron, {
|
|
112
|
+
[o.chevronIconPositionTop]: pt,
|
|
113
|
+
[o.chevronUp]: dt,
|
|
114
|
+
[o.chevronRight]: ht,
|
|
115
|
+
[o.chevronLeft]: vt
|
|
116
|
+
}), t[35] = pt, t[36] = dt, t[37] = ht, t[38] = vt, t[39] = H) : H = t[39];
|
|
117
|
+
const _t = H, bt = x === "x-large", ut = (c || a) && (n || s), ft = (c || a) && !s;
|
|
118
|
+
let X;
|
|
119
|
+
t[40] !== bt || t[41] !== ut || t[42] !== ft ? (X = S(o.iconWrapper, {
|
|
120
|
+
[o.iconWrapperXLarge]: bt,
|
|
121
|
+
[o.iconWrapperWithNumberIndicator]: ut,
|
|
122
|
+
[o.iconWrapperWithNumberIndicatorWithValue]: ft
|
|
123
|
+
}), t[40] = bt, t[41] = ut, t[42] = ft, t[43] = X) : X = t[43];
|
|
124
|
+
const mt = X;
|
|
125
|
+
let j;
|
|
126
|
+
t[44] !== i || t[45] !== _ ? (j = (l) => {
|
|
127
|
+
if (i) {
|
|
128
|
+
l.preventDefault();
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
_ && _(l);
|
|
132
|
+
}, t[44] = i, t[45] = _, t[46] = j) : j = t[46];
|
|
133
|
+
const It = j;
|
|
134
|
+
let N;
|
|
135
|
+
t[47] !== nt || t[48] !== e || t[49] !== I ? (N = I && e === "left" && /* @__PURE__ */ p("div", { className: nt }), t[47] = nt, t[48] = e, t[49] = I, t[50] = N) : N = t[50];
|
|
136
|
+
let W;
|
|
137
|
+
t[51] !== i || t[52] !== c || t[53] !== e || t[54] !== x || t[55] !== a || t[56] !== mt || t[57] !== s || t[58] !== n ? (W = (c || a) && /* @__PURE__ */ p(At, { children: /* @__PURE__ */ $("span", { className: mt, children: [
|
|
138
|
+
/* @__PURE__ */ p(Tt, { name: c, theme: "light", source: a, "aria-hidden": "true", size: c || e === "top" ? "large" : x }),
|
|
139
|
+
!i && (e === "left" && s || e === "top" && (n || s)) && /* @__PURE__ */ p(wt, { variant: "highlight", label: n })
|
|
140
|
+
] }) }), t[51] = i, t[52] = c, t[53] = e, t[54] = x, t[55] = a, t[56] = mt, t[57] = s, t[58] = n, t[59] = W) : W = t[59];
|
|
141
|
+
let g;
|
|
142
|
+
t[60] !== h || t[61] !== at ? (g = /* @__PURE__ */ p("span", { className: at, children: h }), t[60] = h, t[61] = at, t[62] = g) : g = t[62];
|
|
143
|
+
let T;
|
|
144
|
+
t[63] !== _t || t[64] !== r ? (T = r && /* @__PURE__ */ p(Tt, { name: "chevron-down", theme: "light", "aria-hidden": "true", className: _t }), t[63] = _t, t[64] = r, t[65] = T) : T = t[65];
|
|
145
|
+
let w;
|
|
146
|
+
t[66] !== lt || t[67] !== g || t[68] !== T ? (w = /* @__PURE__ */ $("div", { className: lt, children: [
|
|
147
|
+
g,
|
|
148
|
+
T
|
|
149
|
+
] }), t[66] = lt, t[67] = g, t[68] = T, t[69] = w) : w = t[69];
|
|
150
|
+
let A;
|
|
151
|
+
t[70] !== i || t[71] !== e || t[72] !== s || t[73] !== n ? (A = e === "left" && !i && n && !s && /* @__PURE__ */ p(wt, { variant: "default", label: n, className: o.numberIndicator }), t[70] = i, t[71] = e, t[72] = s, t[73] = n, t[74] = A) : A = t[74];
|
|
152
|
+
let F;
|
|
153
|
+
t[75] !== d || t[76] !== i || t[77] !== It || t[78] !== f || t[79] !== m || t[80] !== ot || t[81] !== N || t[82] !== W || t[83] !== w || t[84] !== A ? (F = /* @__PURE__ */ $("button", { className: ot, type: "button", onClick: It, ...d, ...m, "aria-disabled": i, ref: f, children: [
|
|
154
|
+
N,
|
|
155
|
+
W,
|
|
156
|
+
w,
|
|
157
|
+
A
|
|
158
|
+
] }), t[75] = d, t[76] = i, t[77] = It, t[78] = f, t[79] = m, t[80] = ot, t[81] = N, t[82] = W, t[83] = w, t[84] = A, t[85] = F) : F = t[85];
|
|
159
|
+
const G = F;
|
|
160
|
+
if (b) {
|
|
161
|
+
let l;
|
|
162
|
+
t[86] !== G ? (l = /* @__PURE__ */ p(Nt.Anchor, { children: G }), t[86] = G, t[87] = l) : l = t[87];
|
|
163
|
+
let z;
|
|
164
|
+
t[88] !== b ? (z = /* @__PURE__ */ p(Nt.Content, { children: b }), t[88] = b, t[89] = z) : z = t[89];
|
|
165
|
+
let Z;
|
|
166
|
+
return t[90] !== l || t[91] !== z ? (Z = /* @__PURE__ */ $(Nt, { placement: "top", tooltipOffset: 6, children: [
|
|
167
|
+
l,
|
|
168
|
+
z
|
|
169
|
+
] }), t[90] = l, t[91] = z, t[92] = Z) : Z = t[92], Z;
|
|
170
|
+
}
|
|
171
|
+
return G;
|
|
172
|
+
});
|
|
173
|
+
Yt.displayName = "DSActionButton";
|
|
174
|
+
export {
|
|
175
|
+
so as A,
|
|
176
|
+
Yt as D,
|
|
177
|
+
lo as a,
|
|
178
|
+
po as b,
|
|
179
|
+
ho as c,
|
|
180
|
+
vo as d,
|
|
181
|
+
Qt as v
|
|
182
|
+
};
|