@stihl-design-system/components 1.0.0-RC.4 → 1.0.0-RC.41
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.CiiPLwYQ.js +12 -0
- package/accordion.d.ts +2 -0
- package/actionbutton.DKb4ph1c.js +12 -0
- package/actionbutton.d.ts +2 -0
- package/actionlink.DEGta2h9.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.CSjQHeeW.js +199 -0
- package/chipgroup.d.ts +2 -0
- package/chunks/Accordion.Q50G9LZ3.js +172 -0
- package/chunks/ActionButton.BEMy35Lh.js +188 -0
- package/chunks/ActionLink.DECHT42B.js +161 -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.ltT6igtk.js +68 -0
- package/chunks/NavigationTabs.DsVepb7H.js +63 -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.DfH2q9EL.js +84 -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 +45 -0
- package/components/Accordion/Accordion.utils.d.ts +16 -0
- package/components/ActionButton/ActionButton.d.ts +65 -0
- package/components/ActionButton/ActionButton.utils.d.ts +22 -0
- package/components/ActionLink/ActionLink.d.ts +40 -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 +54 -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 +46 -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 +54 -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.Cd9hZzFQ.js +10 -0
- package/navigationtablist.d.ts +2 -0
- package/navigationtabs.DHG-TeF2.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.DPiNeY3_.js +211 -0
- package/tablist.d.ts +2 -0
- package/tabpane.7vMXUKFX.js +37 -0
- package/tabpane.d.ts +2 -0
- package/tabs.Cxzm6ZZ-.js +11 -0
- package/tabs.d.ts +2 -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/Accordion.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
|
@@ -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, k, y, C, w, 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: k,
|
|
23
|
+
lang: y,
|
|
24
|
+
selectionMode: C,
|
|
25
|
+
size: w,
|
|
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] = k, e[10] = y, e[11] = C, e[12] = w, 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], k = e[9], y = e[10], C = e[11], w = e[12], I = e[13]);
|
|
30
|
+
const X = b === void 0 ? !1 : b, Y = v === void 0 ? !1 : v, u = k === void 0 ? !1 : k, Z = y === void 0 ? "en" : y, f = C === void 0 ? "single" : C, ee = w === void 0 ? "medium" : w;
|
|
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(ke));
|
|
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), n[l]?.onClick?.(t);
|
|
92
|
+
return;
|
|
93
|
+
} else
|
|
94
|
+
x(l), n[l]?.onClick?.(t);
|
|
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(ye);
|
|
109
|
+
S(t), E(`${t.length} items selected`), c && c(t);
|
|
110
|
+
}, h = (t) => {
|
|
111
|
+
if (u)
|
|
112
|
+
return;
|
|
113
|
+
const l = n.map(Ce);
|
|
114
|
+
l[t].disabled || (l[t].isSelected = !0, E(`${l[t].label} selected, ${l.filter(we).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 ke(o) {
|
|
159
|
+
return {
|
|
160
|
+
...o
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
function ye(o) {
|
|
164
|
+
return {
|
|
165
|
+
...o,
|
|
166
|
+
selected: !o.disabled
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
function Ce(o) {
|
|
170
|
+
return {
|
|
171
|
+
...o
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
function we(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
|
+
};
|
package/chipgroup.d.ts
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as d, jsxs as Z } from "react/jsx-runtime";
|
|
3
|
+
import { d as fe } from "./index.cKLI89Eg.js";
|
|
4
|
+
import { c as N } from "./index.DQOqod3i.js";
|
|
5
|
+
import { forwardRef as ge, useRef as Se, useState as ve, useImperativeHandle as Ce, useEffect as ye } from "react";
|
|
6
|
+
import { DSHeading as We } from "../heading.BHSklXho.js";
|
|
7
|
+
import { D as Ne } from "./Icon.m6sMB6vl.js";
|
|
8
|
+
import { NumberIndicator as Oe } from "../numberindicator.ZGVRSmqf.js";
|
|
9
|
+
import { g as $ } from "./helpers.CexwVao7.js";
|
|
10
|
+
import '../assets/Accordion.Cr1dbVTH.css';const we = "ds-accordion_details_2g22m_1", De = "ds-accordion_summary_2g22m_117", be = "ds-accordion_summary--utility--m_2g22m_156", xe = "ds-accordion_summary--flush_2g22m_185", Ae = "ds-accordion_summary--small_2g22m_253", Ie = "ds-accordion_summary--x-small_2g22m_257", Ee = "ds-accordion_summary-content-wrapper_2g22m_262", Xe = "ds-accordion_summary-content-wrapper--flush_2g22m_268", Fe = "ds-accordion_summary-content-wrapper--chevron-left_2g22m_272", Te = "ds-accordion_summary-content-wrapper--x-small_2g22m_276", Pe = "ds-accordion_heading-summary-wrapper_2g22m_280", Re = "ds-accordion_heading-summary_2g22m_280", Le = "ds-accordion_heading-summary--x-small_2g22m_290", je = "ds-accordion_hint_2g22m_294", ze = "ds-accordion_icon_2g22m_308", Me = "ds-accordion_icon--open_2g22m_319", He = "ds-accordion_icon--open-caret_2g22m_330", Ue = "ds-accordion_content-wrapper_2g22m_342", qe = "ds-accordion_content-wrapper--flush_2g22m_348", Ve = "ds-accordion_content-wrapper--small_2g22m_352", Ze = "ds-accordion_content-wrapper--x-small_2g22m_356", t = {
|
|
11
|
+
details: we,
|
|
12
|
+
summary: De,
|
|
13
|
+
summaryUtilityM: be,
|
|
14
|
+
summaryFlush: xe,
|
|
15
|
+
summarySmall: Ae,
|
|
16
|
+
summaryXSmall: Ie,
|
|
17
|
+
summaryContentWrapper: Ee,
|
|
18
|
+
summaryContentWrapperFlush: Xe,
|
|
19
|
+
summaryContentWrapperChevronLeft: Fe,
|
|
20
|
+
summaryContentWrapperXSmall: Te,
|
|
21
|
+
headingSummaryWrapper: Pe,
|
|
22
|
+
headingSummary: Re,
|
|
23
|
+
headingSummaryXSmall: Le,
|
|
24
|
+
hint: je,
|
|
25
|
+
icon: ze,
|
|
26
|
+
iconOpen: Me,
|
|
27
|
+
iconOpenCaret: He,
|
|
28
|
+
contentWrapper: Ue,
|
|
29
|
+
contentWrapperFlush: qe,
|
|
30
|
+
contentWrapperSmall: Ve,
|
|
31
|
+
contentWrapperXSmall: Ze
|
|
32
|
+
}, rt = ["medium", "small", "x-small"], nt = ["chevron", "caret"], st = ["left", "right"], $e = ({
|
|
33
|
+
children: O,
|
|
34
|
+
hint: k,
|
|
35
|
+
numberIndicatorValue: e,
|
|
36
|
+
numberIndicatorAriaLabel: n,
|
|
37
|
+
summary: o
|
|
38
|
+
}) => {
|
|
39
|
+
if (!O)
|
|
40
|
+
throw new Error($("DSAccordion", "The component requires children to be set."));
|
|
41
|
+
if (!o)
|
|
42
|
+
throw new Error($("DSAccordion", "The summary prop is required. Please add the summary prop to the DSAccordion component."));
|
|
43
|
+
if (k && (e || e === ""))
|
|
44
|
+
throw new Error($("DSAccordion", "The hint and numberIndicator props cannot be used together. Please remove either the hint prop or the numberIndicatorValue prop."));
|
|
45
|
+
(e || e === "") && !n && console.warn($("DSAccordion", "Please provide a descriptive aria-label for the Number Indicator for better accessibility."));
|
|
46
|
+
}, ke = ge((O, k) => {
|
|
47
|
+
const e = fe.c(75);
|
|
48
|
+
let n, o, m, l, s, p, r, w, D, b, x;
|
|
49
|
+
e[0] !== O ? ({
|
|
50
|
+
children: n,
|
|
51
|
+
summary: r,
|
|
52
|
+
chevronPosition: w,
|
|
53
|
+
className: o,
|
|
54
|
+
hint: m,
|
|
55
|
+
isFlush: D,
|
|
56
|
+
isOpen: b,
|
|
57
|
+
numberIndicatorValue: s,
|
|
58
|
+
numberIndicatorAriaLabel: l,
|
|
59
|
+
size: x,
|
|
60
|
+
...p
|
|
61
|
+
} = O, e[0] = O, e[1] = n, e[2] = o, e[3] = m, e[4] = l, e[5] = s, e[6] = p, e[7] = r, e[8] = w, e[9] = D, e[10] = b, e[11] = x) : (n = e[1], o = e[2], m = e[3], l = e[4], s = e[5], p = e[6], r = e[7], w = e[8], D = e[9], b = e[10], x = e[11]);
|
|
62
|
+
const pe = w === void 0 ? "right" : w, a = D === void 0 ? !1 : D, i = b === void 0 ? !1 : b, u = x === void 0 ? "medium" : x;
|
|
63
|
+
process.env.NODE_ENV !== "production" && $e({
|
|
64
|
+
children: n,
|
|
65
|
+
hint: m,
|
|
66
|
+
numberIndicatorValue: s,
|
|
67
|
+
numberIndicatorAriaLabel: l,
|
|
68
|
+
summary: r
|
|
69
|
+
});
|
|
70
|
+
const B = pe === "right" ? "chevron" : "caret", c = Se(null), [ue, he] = ve(i);
|
|
71
|
+
let I;
|
|
72
|
+
e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = () => c.current, e[12] = I) : I = e[12], Ce(k, I);
|
|
73
|
+
let E;
|
|
74
|
+
e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = () => {
|
|
75
|
+
c.current && he(c.current.open);
|
|
76
|
+
}, e[13] = E) : E = e[13];
|
|
77
|
+
let X;
|
|
78
|
+
e[14] !== i ? (X = [i], e[14] = i, e[15] = X) : X = e[15], ye(E, X);
|
|
79
|
+
let F, T;
|
|
80
|
+
e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (F = () => {
|
|
81
|
+
const _e = () => {
|
|
82
|
+
c.current && he(c.current.open);
|
|
83
|
+
};
|
|
84
|
+
return c.current?.addEventListener("toggle", _e), () => {
|
|
85
|
+
c.current?.removeEventListener("toggle", _e);
|
|
86
|
+
};
|
|
87
|
+
}, T = [], e[16] = F, e[17] = T) : (F = e[16], T = e[17]), ye(F, T);
|
|
88
|
+
let P, R, L;
|
|
89
|
+
const A = typeof r == "object" && r !== void 0;
|
|
90
|
+
A && ({
|
|
91
|
+
headingSize: P,
|
|
92
|
+
headingTag: R,
|
|
93
|
+
headingText: L
|
|
94
|
+
} = r);
|
|
95
|
+
let j;
|
|
96
|
+
e[18] !== o ? (j = N(t.details, o), e[18] = o, e[19] = j) : j = e[19];
|
|
97
|
+
const G = j, J = u === "small", K = u === "x-small", Q = !A;
|
|
98
|
+
let z;
|
|
99
|
+
e[20] !== a || e[21] !== J || e[22] !== K || e[23] !== Q ? (z = N(t.summary, {
|
|
100
|
+
[t.summaryFlush]: a,
|
|
101
|
+
[t.summarySmall]: J,
|
|
102
|
+
[t.summaryXSmall]: K,
|
|
103
|
+
[t.summaryUtilityM]: Q
|
|
104
|
+
}), e[20] = a, e[21] = J, e[22] = K, e[23] = Q, e[24] = z) : z = e[24];
|
|
105
|
+
const Y = z, ee = pe === "left", te = u === "x-small";
|
|
106
|
+
let M;
|
|
107
|
+
e[25] !== a || e[26] !== ee || e[27] !== te ? (M = N(t.summaryContentWrapper, {
|
|
108
|
+
[t.summaryContentWrapperFlush]: a,
|
|
109
|
+
[t.summaryContentWrapperChevronLeft]: ee,
|
|
110
|
+
[t.summaryContentWrapperXSmall]: te
|
|
111
|
+
}), e[25] = a, e[26] = ee, e[27] = te, e[28] = M) : M = e[28];
|
|
112
|
+
const re = M, ne = u === "x-small";
|
|
113
|
+
let H;
|
|
114
|
+
e[29] !== ne ? (H = N(t.headingSummary, {
|
|
115
|
+
[t.headingSummaryXSmall]: ne
|
|
116
|
+
}), e[29] = ne, e[30] = H) : H = e[30];
|
|
117
|
+
const se = H, ae = B === "chevron" && ue, oe = B === "caret" && ue;
|
|
118
|
+
let U;
|
|
119
|
+
e[31] !== ae || e[32] !== oe ? (U = N(t.icon, {
|
|
120
|
+
[t.iconOpen]: ae,
|
|
121
|
+
[t.iconOpenCaret]: oe
|
|
122
|
+
}), e[31] = ae, e[32] = oe, e[33] = U) : U = e[33];
|
|
123
|
+
const me = U, ce = u === "small", le = u === "x-small";
|
|
124
|
+
let q;
|
|
125
|
+
e[34] !== a || e[35] !== ce || e[36] !== le ? (q = N(t.contentWrapper, {
|
|
126
|
+
[t.contentWrapperFlush]: a,
|
|
127
|
+
[t.contentWrapperSmall]: ce,
|
|
128
|
+
[t.contentWrapperXSmall]: le
|
|
129
|
+
}), e[34] = a, e[35] = ce, e[36] = le, e[37] = q) : q = e[37];
|
|
130
|
+
const ie = q;
|
|
131
|
+
let h;
|
|
132
|
+
e[38] !== P || e[39] !== R || e[40] !== L || e[41] !== A || e[42] !== r ? (h = A ? /* @__PURE__ */ d(We, { tag: R, size: P, children: L }) : r, e[38] = P, e[39] = R, e[40] = L, e[41] = A, e[42] = r, e[43] = h) : h = e[43];
|
|
133
|
+
let _;
|
|
134
|
+
e[44] !== l || e[45] !== s ? (_ = (s || s?.trim() === "") && /* @__PURE__ */ d("div", { children: /* @__PURE__ */ d(Oe, { "aria-label": l, label: s }) }), e[44] = l, e[45] = s, e[46] = _) : _ = e[46];
|
|
135
|
+
let y;
|
|
136
|
+
e[47] !== se || e[48] !== h || e[49] !== _ ? (y = /* @__PURE__ */ Z("div", { className: se, children: [
|
|
137
|
+
h,
|
|
138
|
+
_
|
|
139
|
+
] }), e[47] = se, e[48] = h, e[49] = _, e[50] = y) : y = e[50];
|
|
140
|
+
let f;
|
|
141
|
+
e[51] !== m ? (f = m && /* @__PURE__ */ d("div", { className: t.hint, children: m }), e[51] = m, e[52] = f) : f = e[52];
|
|
142
|
+
let g;
|
|
143
|
+
e[53] !== y || e[54] !== f ? (g = /* @__PURE__ */ Z("div", { className: t.headingSummaryWrapper, children: [
|
|
144
|
+
y,
|
|
145
|
+
f
|
|
146
|
+
] }), e[53] = y, e[54] = f, e[55] = g) : g = e[55];
|
|
147
|
+
const de = B === "chevron" ? "chevron-down" : "caret-right";
|
|
148
|
+
let S;
|
|
149
|
+
e[56] !== me || e[57] !== de ? (S = /* @__PURE__ */ d(Ne, { name: de, "aria-hidden": "true", className: me }), e[56] = me, e[57] = de, e[58] = S) : S = e[58];
|
|
150
|
+
let v;
|
|
151
|
+
e[59] !== re || e[60] !== g || e[61] !== S ? (v = /* @__PURE__ */ Z("div", { className: re, children: [
|
|
152
|
+
g,
|
|
153
|
+
S
|
|
154
|
+
] }), e[59] = re, e[60] = g, e[61] = S, e[62] = v) : v = e[62];
|
|
155
|
+
let C;
|
|
156
|
+
e[63] !== Y || e[64] !== v ? (C = /* @__PURE__ */ d("summary", { className: Y, children: v }), e[63] = Y, e[64] = v, e[65] = C) : C = e[65];
|
|
157
|
+
let W;
|
|
158
|
+
e[66] !== n || e[67] !== ie ? (W = /* @__PURE__ */ d("div", { className: ie, children: n }), e[66] = n, e[67] = ie, e[68] = W) : W = e[68];
|
|
159
|
+
let V;
|
|
160
|
+
return e[69] !== G || e[70] !== i || e[71] !== p || e[72] !== C || e[73] !== W ? (V = /* @__PURE__ */ Z("details", { ...p, ref: c, className: G, open: i, children: [
|
|
161
|
+
C,
|
|
162
|
+
W
|
|
163
|
+
] }), e[69] = G, e[70] = i, e[71] = p, e[72] = C, e[73] = W, e[74] = V) : V = e[74], V;
|
|
164
|
+
});
|
|
165
|
+
ke.displayName = "DSAccordion";
|
|
166
|
+
export {
|
|
167
|
+
rt as A,
|
|
168
|
+
st as C,
|
|
169
|
+
ke as D,
|
|
170
|
+
nt as a,
|
|
171
|
+
$e as v
|
|
172
|
+
};
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as q, jsx as d, Fragment as zt } from "react/jsx-runtime";
|
|
3
|
+
import { d as St } from "./index.cKLI89Eg.js";
|
|
4
|
+
import { c as C } from "./index.DQOqod3i.js";
|
|
5
|
+
import { forwardRef as Pt } from "react";
|
|
6
|
+
import { D as wt } from "./Icon.m6sMB6vl.js";
|
|
7
|
+
import { NumberIndicator as Tt } from "../numberindicator.ZGVRSmqf.js";
|
|
8
|
+
import { Tooltip as Wt } from "../tooltip._lP4aMV2.js";
|
|
9
|
+
import { g as f } from "./helpers.CexwVao7.js";
|
|
10
|
+
import '../assets/ActionButton.BLOWs6IZ.css';const Ct = "ds-action-button_root_19zdv_1", Dt = "ds-action-button_root--indent-level-1_19zdv_75", Ot = "ds-action-button_root--active_19zdv_78", Bt = "ds-action-button_root--active--with-marker_19zdv_81", kt = "ds-action-button_root--icon--top_19zdv_84", Lt = "ds-action-button_root--stretched_19zdv_110", Et = "ds-action-button_active-marker_19zdv_115", xt = "ds-action-button_active-marker--with-indent_19zdv_127", Mt = "ds-action-button_icon-wrapper_19zdv_131", Ut = "ds-action-button_icon-wrapper--x-large_19zdv_134", Rt = "ds-action-button_icon-wrapper--with-number-indicator_19zdv_137", Vt = "ds-action-button_icon-wrapper--with-number-indicator--with-value_19zdv_145", yt = "ds-action-button_label_19zdv_149", Ht = "ds-action-button_label--bold_19zdv_160", Xt = "ds-action-button_label--active_19zdv_171", jt = "ds-action-button_label--icon-top_19zdv_182", Ft = "ds-action-button_number-indicator_19zdv_205", Gt = "ds-action-button_label-wrapper_19zdv_209", Zt = "ds-action-button_label-wrapper--icon-top_19zdv_214", $t = "ds-action-button_chevron_19zdv_218", qt = "ds-action-button_chevron--icon-position-top_19zdv_233", Jt = "ds-action-button_chevron--up_19zdv_239", Kt = "ds-action-button_chevron--right_19zdv_250", Qt = "ds-action-button_chevron--left_19zdv_261", o = {
|
|
11
|
+
root: Ct,
|
|
12
|
+
rootIndentLevel1: Dt,
|
|
13
|
+
rootActive: Ot,
|
|
14
|
+
rootActiveWithMarker: Bt,
|
|
15
|
+
rootIconTop: kt,
|
|
16
|
+
rootStretched: Lt,
|
|
17
|
+
activeMarker: Et,
|
|
18
|
+
activeMarkerWithIndent: xt,
|
|
19
|
+
iconWrapper: Mt,
|
|
20
|
+
iconWrapperXLarge: Ut,
|
|
21
|
+
iconWrapperWithNumberIndicator: Rt,
|
|
22
|
+
iconWrapperWithNumberIndicatorWithValue: Vt,
|
|
23
|
+
label: yt,
|
|
24
|
+
labelBold: Ht,
|
|
25
|
+
labelActive: Xt,
|
|
26
|
+
labelIconTop: jt,
|
|
27
|
+
numberIndicator: Ft,
|
|
28
|
+
labelWrapper: Gt,
|
|
29
|
+
labelWrapperIconTop: Zt,
|
|
30
|
+
chevron: $t,
|
|
31
|
+
chevronIconPositionTop: qt,
|
|
32
|
+
chevronUp: Jt,
|
|
33
|
+
chevronRight: Kt,
|
|
34
|
+
chevronLeft: Qt
|
|
35
|
+
}, lo = ["left", "top"], po = ["large", "x-large"], ho = [0, 1], vo = ["normal", "bold"], bo = ["up", "down", "right", "left"], Yt = ({
|
|
36
|
+
iconName: m,
|
|
37
|
+
iconSize: I,
|
|
38
|
+
iconSource: t,
|
|
39
|
+
iconPosition: h,
|
|
40
|
+
indentLevel: a,
|
|
41
|
+
stretched: v,
|
|
42
|
+
weight: b,
|
|
43
|
+
numberIndicatorValue: r,
|
|
44
|
+
numberIndicatorAriaLabel: c
|
|
45
|
+
}) => {
|
|
46
|
+
if (m && !t && I === "x-large" && console.warn(f("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.')), h === "top") {
|
|
47
|
+
if (!m && !t)
|
|
48
|
+
throw new Error(f("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.'));
|
|
49
|
+
I === "x-large" && console.warn(f("DSActionButton", 'An "iconSize" prop set to "x-large" has no effect when "iconPosition" is set to "top". Please remove the "iconSize" prop.')), b === "bold" && console.warn(f("DSActionButton", 'A "weight" prop set to "bold" with "iconPosition" set to "top" has no effect. Please remove the "weight" prop.')), a === 1 && console.warn(f("DSActionButton", 'An "indentLevel" prop set to "1" with "iconPosition" set to "top" has no effect. Please remove the "indentLevel" prop.')), v && console.warn(f("DSActionButton", 'A "stretched" prop set to "true" with "iconPosition" set to "top" has no effect. Please remove the "stretched" prop.'));
|
|
50
|
+
}
|
|
51
|
+
(r || r === "") && !c && console.warn(f("DSActionButton", "Please provide a descriptive aria-label for the Number Indicator for better accessibility."));
|
|
52
|
+
}, to = Pt((m, I) => {
|
|
53
|
+
const t = St.c(96);
|
|
54
|
+
let h, a, v, b, r, c, s, n, _, N, D, O, B, k, L, E, x, u;
|
|
55
|
+
t[0] !== m ? ({
|
|
56
|
+
children: v,
|
|
57
|
+
aria: h,
|
|
58
|
+
chevronDirection: a,
|
|
59
|
+
className: b,
|
|
60
|
+
disabled: D,
|
|
61
|
+
iconName: r,
|
|
62
|
+
iconPosition: O,
|
|
63
|
+
iconSize: B,
|
|
64
|
+
iconSource: c,
|
|
65
|
+
indentLevel: k,
|
|
66
|
+
isActive: L,
|
|
67
|
+
numberIndicatorValue: n,
|
|
68
|
+
numberIndicatorAriaLabel: s,
|
|
69
|
+
stretched: E,
|
|
70
|
+
weight: x,
|
|
71
|
+
tooltip: u,
|
|
72
|
+
onClick: _,
|
|
73
|
+
...N
|
|
74
|
+
} = m, t[0] = m, t[1] = h, t[2] = a, t[3] = v, t[4] = b, t[5] = r, t[6] = c, t[7] = s, t[8] = n, t[9] = _, t[10] = N, t[11] = D, t[12] = O, t[13] = B, t[14] = k, t[15] = L, t[16] = E, t[17] = x, t[18] = u) : (h = t[1], a = t[2], v = t[3], b = t[4], r = t[5], c = t[6], s = t[7], n = t[8], _ = t[9], N = t[10], D = t[11], O = t[12], B = t[13], k = t[14], L = t[15], E = t[16], x = t[17], u = t[18]);
|
|
75
|
+
const i = D === void 0 ? !1 : D, e = O === void 0 ? "left" : O, M = B === void 0 ? "large" : B, J = k === void 0 ? 0 : k, W = L === void 0 ? !1 : L, At = E === void 0 ? !1 : E, gt = x === void 0 ? "normal" : x;
|
|
76
|
+
process.env.NODE_ENV !== "production" && Yt({
|
|
77
|
+
iconName: r,
|
|
78
|
+
iconSize: M,
|
|
79
|
+
iconSource: c,
|
|
80
|
+
iconPosition: e,
|
|
81
|
+
indentLevel: J,
|
|
82
|
+
numberIndicatorValue: n,
|
|
83
|
+
numberIndicatorAriaLabel: s,
|
|
84
|
+
stretched: At,
|
|
85
|
+
weight: gt
|
|
86
|
+
});
|
|
87
|
+
let U;
|
|
88
|
+
t[19] !== n ? (U = n?.trim(), t[19] = n, t[20] = U) : U = t[20];
|
|
89
|
+
const l = U === "", K = e === "top", Q = J === 1, Y = W && !i, tt = W && !i && e === "left", ot = At === !0 && e === "left";
|
|
90
|
+
let R;
|
|
91
|
+
t[21] !== b || t[22] !== Q || t[23] !== Y || t[24] !== tt || t[25] !== ot || t[26] !== K ? (R = C(o.root, b, {
|
|
92
|
+
[o.rootIconTop]: K,
|
|
93
|
+
[o.rootIndentLevel1]: Q,
|
|
94
|
+
[o.rootActive]: Y,
|
|
95
|
+
[o.rootActiveWithMarker]: tt,
|
|
96
|
+
[o.rootStretched]: ot
|
|
97
|
+
}), t[21] = b, t[22] = Q, t[23] = Y, t[24] = tt, t[25] = ot, t[26] = K, t[27] = R) : R = t[27];
|
|
98
|
+
const et = R, nt = J === 1;
|
|
99
|
+
let V;
|
|
100
|
+
t[28] !== nt ? (V = C(o.activeMarker, {
|
|
101
|
+
[o.activeMarkerWithIndent]: nt
|
|
102
|
+
}), t[28] = nt, t[29] = V) : V = t[29];
|
|
103
|
+
const it = V, rt = W && !i, ct = gt === "bold", at = e === "top";
|
|
104
|
+
let y;
|
|
105
|
+
t[30] !== rt || t[31] !== ct || t[32] !== at ? (y = C(o.label, {
|
|
106
|
+
[o.labelActive]: rt,
|
|
107
|
+
[o.labelBold]: ct,
|
|
108
|
+
[o.labelIconTop]: at
|
|
109
|
+
}), t[30] = rt, t[31] = ct, t[32] = at, t[33] = y) : y = t[33];
|
|
110
|
+
const st = y, lt = e === "top";
|
|
111
|
+
let H;
|
|
112
|
+
t[34] !== lt ? (H = C(o.labelWrapper, {
|
|
113
|
+
[o.labelWrapperIconTop]: lt
|
|
114
|
+
}), t[34] = lt, t[35] = H) : H = t[35];
|
|
115
|
+
const pt = H, dt = e === "top", ht = a === "up", vt = a === "right", bt = a === "left";
|
|
116
|
+
let X;
|
|
117
|
+
t[36] !== dt || t[37] !== ht || t[38] !== vt || t[39] !== bt ? (X = C(o.chevron, {
|
|
118
|
+
[o.chevronIconPositionTop]: dt,
|
|
119
|
+
[o.chevronUp]: ht,
|
|
120
|
+
[o.chevronRight]: vt,
|
|
121
|
+
[o.chevronLeft]: bt
|
|
122
|
+
}), t[36] = dt, t[37] = ht, t[38] = vt, t[39] = bt, t[40] = X) : X = t[40];
|
|
123
|
+
const _t = X, ut = M === "x-large", ft = (r || c) && (n || l), mt = (r || c) && !l;
|
|
124
|
+
let j;
|
|
125
|
+
t[41] !== ut || t[42] !== ft || t[43] !== mt ? (j = C(o.iconWrapper, {
|
|
126
|
+
[o.iconWrapperXLarge]: ut,
|
|
127
|
+
[o.iconWrapperWithNumberIndicator]: ft,
|
|
128
|
+
[o.iconWrapperWithNumberIndicatorWithValue]: mt
|
|
129
|
+
}), t[41] = ut, t[42] = ft, t[43] = mt, t[44] = j) : j = t[44];
|
|
130
|
+
const It = j;
|
|
131
|
+
let F;
|
|
132
|
+
t[45] !== i || t[46] !== _ ? (F = (p) => {
|
|
133
|
+
if (i) {
|
|
134
|
+
p.preventDefault();
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
_ && _(p);
|
|
138
|
+
}, t[45] = i, t[46] = _, t[47] = F) : F = t[47];
|
|
139
|
+
const Nt = F;
|
|
140
|
+
let A;
|
|
141
|
+
t[48] !== it || t[49] !== e || t[50] !== W ? (A = W && e === "left" && /* @__PURE__ */ d("div", { className: it }), t[48] = it, t[49] = e, t[50] = W, t[51] = A) : A = t[51];
|
|
142
|
+
let g;
|
|
143
|
+
t[52] !== i || t[53] !== r || t[54] !== e || t[55] !== M || t[56] !== c || t[57] !== It || t[58] !== l || t[59] !== s || t[60] !== n ? (g = (r || c) && /* @__PURE__ */ d(zt, { children: /* @__PURE__ */ q("span", { className: It, children: [
|
|
144
|
+
/* @__PURE__ */ d(wt, { name: r, theme: "light", source: c, "aria-hidden": "true", size: r || e === "top" ? "large" : M }),
|
|
145
|
+
!i && (e === "left" && l || e === "top" && (n || l)) && /* @__PURE__ */ d(Tt, { variant: "highlight", "aria-label": s, label: n })
|
|
146
|
+
] }) }), t[52] = i, t[53] = r, t[54] = e, t[55] = M, t[56] = c, t[57] = It, t[58] = l, t[59] = s, t[60] = n, t[61] = g) : g = t[61];
|
|
147
|
+
let w;
|
|
148
|
+
t[62] !== v || t[63] !== st ? (w = /* @__PURE__ */ d("span", { className: st, children: v }), t[62] = v, t[63] = st, t[64] = w) : w = t[64];
|
|
149
|
+
let T;
|
|
150
|
+
t[65] !== _t || t[66] !== a ? (T = a && /* @__PURE__ */ d(wt, { name: "chevron-down", theme: "light", "aria-hidden": "true", className: _t }), t[65] = _t, t[66] = a, t[67] = T) : T = t[67];
|
|
151
|
+
let z;
|
|
152
|
+
t[68] !== pt || t[69] !== w || t[70] !== T ? (z = /* @__PURE__ */ q("div", { className: pt, children: [
|
|
153
|
+
w,
|
|
154
|
+
T
|
|
155
|
+
] }), t[68] = pt, t[69] = w, t[70] = T, t[71] = z) : z = t[71];
|
|
156
|
+
let S;
|
|
157
|
+
t[72] !== i || t[73] !== e || t[74] !== l || t[75] !== s || t[76] !== n ? (S = e === "left" && !i && n && !l && /* @__PURE__ */ d(Tt, { variant: "default", "aria-label": s, label: n, className: o.numberIndicator }), t[72] = i, t[73] = e, t[74] = l, t[75] = s, t[76] = n, t[77] = S) : S = t[77];
|
|
158
|
+
let G;
|
|
159
|
+
t[78] !== h || t[79] !== i || t[80] !== Nt || t[81] !== I || t[82] !== N || t[83] !== et || t[84] !== A || t[85] !== g || t[86] !== z || t[87] !== S ? (G = /* @__PURE__ */ q("button", { className: et, type: "button", onClick: Nt, ...h, ...N, "aria-disabled": i, ref: I, children: [
|
|
160
|
+
A,
|
|
161
|
+
g,
|
|
162
|
+
z,
|
|
163
|
+
S
|
|
164
|
+
] }), t[78] = h, t[79] = i, t[80] = Nt, t[81] = I, t[82] = N, t[83] = et, t[84] = A, t[85] = g, t[86] = z, t[87] = S, t[88] = G) : G = t[88];
|
|
165
|
+
const Z = G;
|
|
166
|
+
if (u) {
|
|
167
|
+
let p;
|
|
168
|
+
t[89] !== Z ? (p = /* @__PURE__ */ d(Wt.Anchor, { children: Z }), t[89] = Z, t[90] = p) : p = t[90];
|
|
169
|
+
let P;
|
|
170
|
+
t[91] !== u ? (P = /* @__PURE__ */ d(Wt.Content, { children: u }), t[91] = u, t[92] = P) : P = t[92];
|
|
171
|
+
let $;
|
|
172
|
+
return t[93] !== p || t[94] !== P ? ($ = /* @__PURE__ */ q(Wt, { placement: "top", tooltipOffset: 6, children: [
|
|
173
|
+
p,
|
|
174
|
+
P
|
|
175
|
+
] }), t[93] = p, t[94] = P, t[95] = $) : $ = t[95], $;
|
|
176
|
+
}
|
|
177
|
+
return Z;
|
|
178
|
+
});
|
|
179
|
+
to.displayName = "DSActionButton";
|
|
180
|
+
export {
|
|
181
|
+
lo as A,
|
|
182
|
+
to as D,
|
|
183
|
+
po as a,
|
|
184
|
+
ho as b,
|
|
185
|
+
vo as c,
|
|
186
|
+
bo as d,
|
|
187
|
+
Yt as v
|
|
188
|
+
};
|