@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
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as b, jsxs as oe } from "react/jsx-runtime";
|
|
3
|
+
import { d as mt } from "./index.cKLI89Eg.js";
|
|
4
|
+
import { c as v } from "./index.DQOqod3i.js";
|
|
5
|
+
import { forwardRef as bt, useState as tt, useRef as ft } from "react";
|
|
6
|
+
import { u as _t } from "./useBreakpoint.1txsny17.js";
|
|
7
|
+
import { DSInput as ht } from "../input.MZXe6rlg.js";
|
|
8
|
+
import { D as vt } from "./Popover.C5wtha5l.js";
|
|
9
|
+
import { g as lt } from "./helpers.CexwVao7.js";
|
|
10
|
+
import '../assets/Slider.vnSU0ya0.css';const Tt = "ds-slider_root_3zq13_1", xt = "ds-slider_hint_3zq13_4", gt = "ds-slider_label-wrapper_3zq13_4", kt = "ds-slider_label-hint-input-wrapper_3zq13_7", Nt = "ds-slider_number-input_3zq13_10", St = "ds-slider_label-wrapper--hidden_3zq13_20", Dt = "ds-slider_label_3zq13_4", yt = "ds-slider_label--disabled_3zq13_55", It = "ds-slider_number-input--small_3zq13_84", qt = "ds-slider_min-max-label-wrapper_3zq13_89", zt = "ds-slider_min-max-label-wrapper--disabled_3zq13_103", Mt = "ds-slider_min-label_3zq13_108", Lt = "ds-slider_max-label_3zq13_112", Wt = "ds-slider_slider-wrapper_3zq13_116", wt = "ds-slider_slider_3zq13_116", Vt = "ds-slider_value-tooltip_3zq13_135", Ct = "ds-slider_proxy-thumb_3zq13_139", Pt = "ds-slider_proxy-thumb--disabled_3zq13_217", $t = "ds-slider_custom-track_3zq13_246", At = "ds-slider_custom-track--progress_3zq13_251", Et = "ds-slider_custom-track--runnable_3zq13_263", Rt = "ds-slider_custom-track--disabled_3zq13_277", Ft = "ds-slider_tick-wrapper_3zq13_297", Bt = "ds-slider_tick_3zq13_297", Ht = "ds-slider_value-tooltip--visible_3zq13_356", Ot = "ds-slider_value-tooltip--disabled_3zq13_359", s = {
|
|
11
|
+
root: Tt,
|
|
12
|
+
hint: xt,
|
|
13
|
+
labelWrapper: gt,
|
|
14
|
+
labelHintInputWrapper: kt,
|
|
15
|
+
numberInput: Nt,
|
|
16
|
+
labelWrapperHidden: St,
|
|
17
|
+
label: Dt,
|
|
18
|
+
labelDisabled: yt,
|
|
19
|
+
numberInputSmall: It,
|
|
20
|
+
minMaxLabelWrapper: qt,
|
|
21
|
+
minMaxLabelWrapperDisabled: zt,
|
|
22
|
+
minLabel: Mt,
|
|
23
|
+
maxLabel: Lt,
|
|
24
|
+
sliderWrapper: Wt,
|
|
25
|
+
slider: wt,
|
|
26
|
+
valueTooltip: Vt,
|
|
27
|
+
proxyThumb: Ct,
|
|
28
|
+
proxyThumbDisabled: Pt,
|
|
29
|
+
customTrack: $t,
|
|
30
|
+
customTrackProgress: At,
|
|
31
|
+
customTrackRunnable: Et,
|
|
32
|
+
customTrackDisabled: Rt,
|
|
33
|
+
tickWrapper: Ft,
|
|
34
|
+
tick: Bt,
|
|
35
|
+
valueTooltipVisible: Ht,
|
|
36
|
+
valueTooltipDisabled: Ot
|
|
37
|
+
}, Kt = 11, st = 4, at = (p) => p.toString().length, jt = (p, r, e) => {
|
|
38
|
+
if (r === 0)
|
|
39
|
+
return !0;
|
|
40
|
+
const u = 1e-10, o = (p - e) / r;
|
|
41
|
+
return Math.abs(Math.round(o) - o) < u;
|
|
42
|
+
}, Ut = (p, r, e, u) => {
|
|
43
|
+
const o = parseFloat(r), f = e, n = Math.round((p - f) / o);
|
|
44
|
+
let c = f + n * o;
|
|
45
|
+
c = Math.min(Math.max(c, e), u);
|
|
46
|
+
const x = o.toString().split(".")[1]?.length || 0;
|
|
47
|
+
return parseFloat(c.toFixed(x));
|
|
48
|
+
}, Gt = (p, r, e) => {
|
|
49
|
+
const u = (p - r) / (e - r) * 100, o = `calc(-0.24 * ${u}px + 10px)`;
|
|
50
|
+
return `calc(${u}% + ${o})`;
|
|
51
|
+
}, Xt = ({
|
|
52
|
+
id: p,
|
|
53
|
+
label: r
|
|
54
|
+
}) => {
|
|
55
|
+
if (!p)
|
|
56
|
+
throw new Error(lt("DSSlider", 'A unique "id" prop is required. Please add a unique "id" prop to the DSSlider component.'));
|
|
57
|
+
if (!r)
|
|
58
|
+
throw new Error(lt("DSSlider", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSSlider component. If you don't want to display a label, set hideLabel={true}.`));
|
|
59
|
+
}, Jt = bt((p, r) => {
|
|
60
|
+
const e = mt.c(165);
|
|
61
|
+
let u, o, f, n, c, x, m, g, D, y, Y, Z, ee, te, le, se, ae, k;
|
|
62
|
+
e[0] !== p ? ({
|
|
63
|
+
id: n,
|
|
64
|
+
label: c,
|
|
65
|
+
className: u,
|
|
66
|
+
defaultValue: o,
|
|
67
|
+
disabled: Y,
|
|
68
|
+
hideLabel: Z,
|
|
69
|
+
hideNumberInput: ee,
|
|
70
|
+
hint: f,
|
|
71
|
+
isTooltipAlwaysVisible: te,
|
|
72
|
+
max: le,
|
|
73
|
+
min: se,
|
|
74
|
+
numberInputProps: x,
|
|
75
|
+
popoverContent: g,
|
|
76
|
+
popoverInfoButtonProps: D,
|
|
77
|
+
step: ae,
|
|
78
|
+
value: k,
|
|
79
|
+
onChange: m,
|
|
80
|
+
...y
|
|
81
|
+
} = p, e[0] = p, e[1] = u, e[2] = o, e[3] = f, e[4] = n, e[5] = c, e[6] = x, e[7] = m, e[8] = g, e[9] = D, e[10] = y, e[11] = Y, e[12] = Z, e[13] = ee, e[14] = te, e[15] = le, e[16] = se, e[17] = ae, e[18] = k) : (u = e[1], o = e[2], f = e[3], n = e[4], c = e[5], x = e[6], m = e[7], g = e[8], D = e[9], y = e[10], Y = e[11], Z = e[12], ee = e[13], te = e[14], le = e[15], se = e[16], ae = e[17], k = e[18]);
|
|
82
|
+
const a = Y === void 0 ? !1 : Y, it = Z === void 0 ? !1 : Z, I = ee === void 0 ? !1 : ee, Le = te === void 0 ? !1 : te, rt = le === void 0 ? 100 : le, ot = se === void 0 ? 0 : se, ie = ae === void 0 ? 1 : ae;
|
|
83
|
+
process.env.NODE_ENV !== "production" && Xt({
|
|
84
|
+
id: n,
|
|
85
|
+
label: c
|
|
86
|
+
});
|
|
87
|
+
const i = Number(rt), t = Number(ot), d = Number(ie), q = _t(it), z = `${n}-label`, We = `${n}-hint`, we = `${n}-number-input`;
|
|
88
|
+
let ne;
|
|
89
|
+
e[19] !== o || e[20] !== t || e[21] !== k ? (ne = k || o || t.toString() || "0", e[19] = o, e[20] = t, e[21] = k, e[22] = ne) : ne = e[22];
|
|
90
|
+
const [M, ce] = tt(ne), [T, de] = tt(k || o || t || 0), nt = ft(null);
|
|
91
|
+
let pe;
|
|
92
|
+
e[23] !== r ? (pe = (l) => {
|
|
93
|
+
nt.current = l, typeof r == "function" ? r(l) : r && (r.current = l);
|
|
94
|
+
}, e[23] = r, e[24] = pe) : pe = e[24];
|
|
95
|
+
const Ve = pe;
|
|
96
|
+
let ue;
|
|
97
|
+
e[25] !== x ? (ue = x || {}, e[25] = x, e[26] = ue) : ue = e[26];
|
|
98
|
+
const {
|
|
99
|
+
size: et,
|
|
100
|
+
suffix: Ce
|
|
101
|
+
} = ue, me = et === void 0 ? "medium" : et;
|
|
102
|
+
let be;
|
|
103
|
+
e[27] !== m ? (be = (l) => {
|
|
104
|
+
const _ = parseFloat(l.target.value);
|
|
105
|
+
de(_), ce(l.target.value), m && m(l);
|
|
106
|
+
}, e[27] = m, e[28] = be) : be = e[28];
|
|
107
|
+
const Pe = be;
|
|
108
|
+
let fe;
|
|
109
|
+
e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (fe = (l) => {
|
|
110
|
+
const _ = l.target.value;
|
|
111
|
+
if (ce(_), /^-?\d+(\.\d+)?$/.test(_)) {
|
|
112
|
+
const h = parseFloat(_);
|
|
113
|
+
Number.isNaN(h) || de(h);
|
|
114
|
+
}
|
|
115
|
+
}, e[29] = fe) : fe = e[29];
|
|
116
|
+
const ct = fe;
|
|
117
|
+
let N;
|
|
118
|
+
if (e[30] !== M || e[31] !== m || e[32] !== i || e[33] !== t || e[34] !== ie) {
|
|
119
|
+
N = (_) => {
|
|
120
|
+
const re = parseFloat(M);
|
|
121
|
+
if (Number.isNaN(re)) {
|
|
122
|
+
l(_);
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
let h = Math.min(Math.max(re, t), i);
|
|
126
|
+
jt(h, parseFloat(ie), t) || (h = Ut(h, ie, t, i)), ce(h.toString()), de(h), m && m(_);
|
|
127
|
+
};
|
|
128
|
+
const l = (_) => {
|
|
129
|
+
ce(t.toString()), de(t), m && m(_);
|
|
130
|
+
};
|
|
131
|
+
e[30] = M, e[31] = m, e[32] = i, e[33] = t, e[34] = ie, e[35] = N;
|
|
132
|
+
} else
|
|
133
|
+
N = e[35];
|
|
134
|
+
const L = (d === 0 ? !1 : (i - t) / d <= Kt) && (i - t) / d || 0;
|
|
135
|
+
let _e;
|
|
136
|
+
if (e[36] !== i || e[37] !== t || e[38] !== d || e[39] !== L) {
|
|
137
|
+
let l;
|
|
138
|
+
e[41] !== i || e[42] !== t || e[43] !== d ? (l = (_, re) => {
|
|
139
|
+
const h = t + re * d, ut = Gt(h, t, i);
|
|
140
|
+
return /* @__PURE__ */ b("span", { className: s.tick, style: {
|
|
141
|
+
left: ut
|
|
142
|
+
} }, h);
|
|
143
|
+
}, e[41] = i, e[42] = t, e[43] = d, e[44] = l) : l = e[44], _e = Array.from({
|
|
144
|
+
length: L + 1
|
|
145
|
+
}, l), e[36] = i, e[37] = t, e[38] = d, e[39] = L, e[40] = _e;
|
|
146
|
+
} else
|
|
147
|
+
_e = e[40];
|
|
148
|
+
const $e = _e;
|
|
149
|
+
let he;
|
|
150
|
+
e[45] !== i || e[46] !== t || e[47] !== T ? (he = () => {
|
|
151
|
+
if (t === i)
|
|
152
|
+
throw new Error("Min and max values cannot be the same.");
|
|
153
|
+
const l = (T - t) / (i - t) * 100;
|
|
154
|
+
return Math.max(0, Math.min(l, 100));
|
|
155
|
+
}, e[45] = i, e[46] = t, e[47] = T, e[48] = he) : he = e[48];
|
|
156
|
+
const S = he;
|
|
157
|
+
let ve;
|
|
158
|
+
e[49] !== S ? (ve = () => {
|
|
159
|
+
const l = S();
|
|
160
|
+
return l < 50 ? `calc(${l}% + 4px)` : `calc(${l}% - 4px)`;
|
|
161
|
+
}, e[49] = S, e[50] = ve) : ve = e[50];
|
|
162
|
+
const dt = ve;
|
|
163
|
+
let Te;
|
|
164
|
+
e[51] !== S ? (Te = () => {
|
|
165
|
+
const l = 100 - S();
|
|
166
|
+
return l < 50 ? `calc(${l}% + 4px)` : `calc(${l}% - 4px)`;
|
|
167
|
+
}, e[51] = S, e[52] = Te) : Te = e[52];
|
|
168
|
+
const pt = Te;
|
|
169
|
+
let xe;
|
|
170
|
+
e[53] !== u ? (xe = v(s.slider, u), e[53] = u, e[54] = xe) : xe = e[54];
|
|
171
|
+
const Ae = xe;
|
|
172
|
+
let ge;
|
|
173
|
+
e[55] !== a ? (ge = v(s.label, {
|
|
174
|
+
[s.labelDisabled]: a
|
|
175
|
+
}), e[55] = a, e[56] = ge) : ge = e[56];
|
|
176
|
+
const Ee = ge;
|
|
177
|
+
let ke;
|
|
178
|
+
e[57] !== q ? (ke = v(s.labelWrapper, {
|
|
179
|
+
[s.labelWrapperHidden]: q
|
|
180
|
+
}), e[57] = q, e[58] = ke) : ke = e[58];
|
|
181
|
+
const Re = ke, Fe = me === "small";
|
|
182
|
+
let Ne;
|
|
183
|
+
e[59] !== Fe ? (Ne = v(s.numberInput, {
|
|
184
|
+
[s.numberInputSmall]: Fe
|
|
185
|
+
}), e[59] = Fe, e[60] = Ne) : Ne = e[60];
|
|
186
|
+
const Be = Ne;
|
|
187
|
+
let Se;
|
|
188
|
+
e[61] !== a ? (Se = v(s.minMaxLabelWrapper, {
|
|
189
|
+
[s.minMaxLabelWrapperDisabled]: a
|
|
190
|
+
}), e[61] = a, e[62] = Se) : Se = e[62];
|
|
191
|
+
const He = Se;
|
|
192
|
+
let De;
|
|
193
|
+
e[63] !== a ? (De = v(s.customTrack, s.customTrackProgress, {
|
|
194
|
+
[s.customTrackDisabled]: a
|
|
195
|
+
}), e[63] = a, e[64] = De) : De = e[64];
|
|
196
|
+
const Oe = De;
|
|
197
|
+
let ye;
|
|
198
|
+
e[65] !== a ? (ye = v(s.customTrack, s.customTrackRunnable, {
|
|
199
|
+
[s.customTrackDisabled]: a
|
|
200
|
+
}), e[65] = a, e[66] = ye) : ye = e[66];
|
|
201
|
+
const Ke = ye;
|
|
202
|
+
let Ie;
|
|
203
|
+
e[67] !== a ? (Ie = v(s.proxyThumb, {
|
|
204
|
+
[s.proxyThumbDisabled]: a
|
|
205
|
+
}), e[67] = a, e[68] = Ie) : Ie = e[68];
|
|
206
|
+
const je = Ie;
|
|
207
|
+
let qe;
|
|
208
|
+
e[69] !== a || e[70] !== Le ? (qe = v(s.valueTooltip, {
|
|
209
|
+
[s.valueTooltipVisible]: Le,
|
|
210
|
+
[s.valueTooltipDisabled]: a
|
|
211
|
+
}), e[69] = a, e[70] = Le, e[71] = qe) : qe = e[71];
|
|
212
|
+
const Ue = qe;
|
|
213
|
+
let W;
|
|
214
|
+
e[72] !== n || e[73] !== c || e[74] !== Ee || e[75] !== z ? (W = /* @__PURE__ */ b("label", { className: Ee, htmlFor: n, id: z, children: c }), e[72] = n, e[73] = c, e[74] = Ee, e[75] = z, e[76] = W) : W = e[76];
|
|
215
|
+
let w;
|
|
216
|
+
e[77] !== q || e[78] !== g || e[79] !== D ? (w = g && !q && /* @__PURE__ */ b(vt, { placement: "top", defaultAnchorButtonProps: D, children: g }), e[77] = q, e[78] = g, e[79] = D, e[80] = w) : w = e[80];
|
|
217
|
+
let V;
|
|
218
|
+
e[81] !== Re || e[82] !== W || e[83] !== w ? (V = /* @__PURE__ */ oe("div", { className: Re, children: [
|
|
219
|
+
W,
|
|
220
|
+
w
|
|
221
|
+
] }), e[81] = Re, e[82] = W, e[83] = w, e[84] = V) : V = e[84];
|
|
222
|
+
let C;
|
|
223
|
+
e[85] !== f || e[86] !== We ? (C = f && /* @__PURE__ */ b("div", { className: s.hint, id: We, children: f }), e[85] = f, e[86] = We, e[87] = C) : C = e[87];
|
|
224
|
+
let P;
|
|
225
|
+
e[88] !== a || e[89] !== N || e[90] !== I || e[91] !== we || e[92] !== M || e[93] !== c || e[94] !== Be || e[95] !== me || e[96] !== Ce || e[97] !== i || e[98] !== t || e[99] !== d ? (P = !I && /* @__PURE__ */ b(ht, { id: we, className: Be, type: "number", min: t, max: i, step: d, inputMode: "decimal", autoComplete: "off", disabled: a, hideLabel: !0, value: M, onChange: ct, onBlur: N, onKeyDown: (l) => {
|
|
226
|
+
l.key === "Enter" && (l.preventDefault(), N(l));
|
|
227
|
+
}, label: c, size: me, suffix: Ce }), e[88] = a, e[89] = N, e[90] = I, e[91] = we, e[92] = M, e[93] = c, e[94] = Be, e[95] = me, e[96] = Ce, e[97] = i, e[98] = t, e[99] = d, e[100] = P) : P = e[100];
|
|
228
|
+
let $;
|
|
229
|
+
e[101] !== V || e[102] !== C || e[103] !== P ? ($ = /* @__PURE__ */ oe("div", { className: s.labelHintInputWrapper, children: [
|
|
230
|
+
V,
|
|
231
|
+
C,
|
|
232
|
+
P
|
|
233
|
+
] }), e[101] = V, e[102] = C, e[103] = P, e[104] = $) : $ = e[104];
|
|
234
|
+
const Ge = at(t) < st;
|
|
235
|
+
let A;
|
|
236
|
+
e[105] !== Ge ? (A = v({
|
|
237
|
+
[s.minLabel]: Ge
|
|
238
|
+
}), e[105] = Ge, e[106] = A) : A = e[106];
|
|
239
|
+
let E;
|
|
240
|
+
e[107] !== t || e[108] !== A ? (E = /* @__PURE__ */ b("div", { className: A, children: t }), e[107] = t, e[108] = A, e[109] = E) : E = e[109];
|
|
241
|
+
const Xe = at(i) < st;
|
|
242
|
+
let R;
|
|
243
|
+
e[110] !== Xe ? (R = v({
|
|
244
|
+
[s.maxLabel]: Xe
|
|
245
|
+
}), e[110] = Xe, e[111] = R) : R = e[111];
|
|
246
|
+
let F;
|
|
247
|
+
e[112] !== i || e[113] !== R ? (F = /* @__PURE__ */ b("div", { className: R, children: i }), e[112] = i, e[113] = R, e[114] = F) : F = e[114];
|
|
248
|
+
let B;
|
|
249
|
+
e[115] !== He || e[116] !== E || e[117] !== F ? (B = /* @__PURE__ */ oe("div", { className: He, children: [
|
|
250
|
+
E,
|
|
251
|
+
F
|
|
252
|
+
] }), e[115] = He, e[116] = E, e[117] = F, e[118] = B) : B = e[118];
|
|
253
|
+
const Je = `${S()}`;
|
|
254
|
+
let ze;
|
|
255
|
+
e[119] !== Je ? (ze = {
|
|
256
|
+
"--ds-input-slider-thumb-position": Je
|
|
257
|
+
}, e[119] = Je, e[120] = ze) : ze = e[120];
|
|
258
|
+
const Qe = ze, Ye = dt();
|
|
259
|
+
let H;
|
|
260
|
+
e[121] !== Ye ? (H = {
|
|
261
|
+
width: Ye
|
|
262
|
+
}, e[121] = Ye, e[122] = H) : H = e[122];
|
|
263
|
+
let O;
|
|
264
|
+
e[123] !== Oe || e[124] !== H ? (O = /* @__PURE__ */ b("div", { className: Oe, style: H }), e[123] = Oe, e[124] = H, e[125] = O) : O = e[125];
|
|
265
|
+
const Ze = pt();
|
|
266
|
+
let K;
|
|
267
|
+
e[126] !== Ze ? (K = {
|
|
268
|
+
width: Ze
|
|
269
|
+
}, e[126] = Ze, e[127] = K) : K = e[127];
|
|
270
|
+
let j;
|
|
271
|
+
e[128] !== Ke || e[129] !== K ? (j = /* @__PURE__ */ b("div", { className: Ke, style: K }), e[128] = Ke, e[129] = K, e[130] = j) : j = e[130];
|
|
272
|
+
let U;
|
|
273
|
+
e[131] !== a || e[132] !== Ve || e[133] !== Pe || e[134] !== n || e[135] !== i || e[136] !== t || e[137] !== d || e[138] !== y || e[139] !== Ae || e[140] !== z || e[141] !== T ? (U = /* @__PURE__ */ b("input", { ...y, id: n, type: "range", ref: Ve, className: Ae, min: t, max: i, step: d, value: T, disabled: a, "aria-labelledby": z, onChange: Pe }), e[131] = a, e[132] = Ve, e[133] = Pe, e[134] = n, e[135] = i, e[136] = t, e[137] = d, e[138] = y, e[139] = Ae, e[140] = z, e[141] = T, e[142] = U) : U = e[142];
|
|
274
|
+
let G;
|
|
275
|
+
e[143] !== L || e[144] !== $e ? (G = L > 0 && /* @__PURE__ */ b("div", { className: s.tickWrapper, children: $e }), e[143] = L, e[144] = $e, e[145] = G) : G = e[145];
|
|
276
|
+
let X;
|
|
277
|
+
e[146] !== je ? (X = /* @__PURE__ */ b("div", { className: je }), e[146] = je, e[147] = X) : X = e[147];
|
|
278
|
+
let J;
|
|
279
|
+
e[148] !== a || e[149] !== I || e[150] !== T || e[151] !== Ue ? (J = I && /* @__PURE__ */ b("div", { className: Ue, "aria-disabled": a, children: T }), e[148] = a, e[149] = I, e[150] = T, e[151] = Ue, e[152] = J) : J = e[152];
|
|
280
|
+
let Q;
|
|
281
|
+
e[153] !== Qe || e[154] !== O || e[155] !== j || e[156] !== U || e[157] !== G || e[158] !== X || e[159] !== J ? (Q = /* @__PURE__ */ oe("div", { className: s.sliderWrapper, style: Qe, children: [
|
|
282
|
+
O,
|
|
283
|
+
j,
|
|
284
|
+
U,
|
|
285
|
+
G,
|
|
286
|
+
X,
|
|
287
|
+
J
|
|
288
|
+
] }), e[153] = Qe, e[154] = O, e[155] = j, e[156] = U, e[157] = G, e[158] = X, e[159] = J, e[160] = Q) : Q = e[160];
|
|
289
|
+
let Me;
|
|
290
|
+
return e[161] !== $ || e[162] !== B || e[163] !== Q ? (Me = /* @__PURE__ */ oe("div", { className: s.root, children: [
|
|
291
|
+
$,
|
|
292
|
+
B,
|
|
293
|
+
Q
|
|
294
|
+
] }), e[161] = $, e[162] = B, e[163] = Q, e[164] = Me) : Me = e[164], Me;
|
|
295
|
+
});
|
|
296
|
+
Jt.displayName = "DSSlider";
|
|
297
|
+
export {
|
|
298
|
+
Jt as D,
|
|
299
|
+
st as L,
|
|
300
|
+
Kt as M,
|
|
301
|
+
Gt as a,
|
|
302
|
+
at as g,
|
|
303
|
+
jt as i,
|
|
304
|
+
Ut as s,
|
|
305
|
+
Xt as v
|
|
306
|
+
};
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
3
|
+
import { c as f } from "./index.DQOqod3i.js";
|
|
4
|
+
import { useCallback as V, useEffect as W, useRef as S } from "react";
|
|
5
|
+
import { g as i, r as j } from "./helpers.CexwVao7.js";
|
|
6
|
+
import { i as q } from "./is-animation-disabled.B-V_68K-.js";
|
|
7
|
+
import { t as H } from "./translate.nuU7uChI.js";
|
|
8
|
+
import { u as L } from "./useIsomorphicLayoutEffect.CnJ9AMFS.js";
|
|
9
|
+
import "./index.cKLI89Eg.js";
|
|
10
|
+
import { g as w } from "./AriaLiveRegions.utils.CLpOaVD9.js";
|
|
11
|
+
import { DSScroller as F } from "../scroller.DfhhZelk.js";
|
|
12
|
+
import { StepperStep as G } from "../step.C-LC5sKQ.js";
|
|
13
|
+
import '../assets/Stepper.tXJl15yL.css';const ge = ["prev", "next"], N = 48, J = "ds-stepper_root_1d1si_1", K = "ds-stepper_root--vertical_1d1si_12", Q = "ds-stepper_scroller--centered_1d1si_17", U = "ds-stepper_scroller-button_1d1si_21", X = "ds-stepper_list_1d1si_26", Y = "ds-stepper_list--center_1d1si_35", Z = "ds-stepper_list--vertical_1d1si_38", a = {
|
|
14
|
+
root: J,
|
|
15
|
+
rootVertical: K,
|
|
16
|
+
scrollerCentered: Q,
|
|
17
|
+
scrollerButton: U,
|
|
18
|
+
list: X,
|
|
19
|
+
listCenter: Y,
|
|
20
|
+
listVertical: Z
|
|
21
|
+
}, Te = ["left", "center"], _e = ["horizontal", "vertical"], ee = ({
|
|
22
|
+
aria: t,
|
|
23
|
+
steps: n
|
|
24
|
+
}) => {
|
|
25
|
+
if (!t || typeof t != "object" || Object.keys(t).length === 0 || !t["aria-label"] && !t["aria-labelledby"] || t["aria-label"]?.trim() === "" && t["aria-labelledby"]?.trim() === "")
|
|
26
|
+
throw new Error(i("DSStepper", 'A valid "aria-label" or "aria-labelledby" property is required. Ensure the "aria" prop is a non-empty object and includes either "aria-label" or "aria-labelledby" with a non-empty string value.'));
|
|
27
|
+
if (!Array.isArray(n))
|
|
28
|
+
throw new Error(i("DSStepper", j("steps", "DSStepper")));
|
|
29
|
+
if (n.length < 2)
|
|
30
|
+
throw new Error(i("DSStepper", "The steps array must contain at least two steps."));
|
|
31
|
+
n.forEach((e, o) => {
|
|
32
|
+
if (!e.label || e.label.trim() === "")
|
|
33
|
+
throw new Error(i("DSStepper", `The step at index ${o} is missing a non-empty label. Each step requires a valid label string.`));
|
|
34
|
+
if (e?.state === "current" && e?.disabled)
|
|
35
|
+
throw new Error(i("DSStepper", `The step at index ${o} has a current state but is disabled. Please remove the disabled property if this step is the current step.`));
|
|
36
|
+
});
|
|
37
|
+
}, te = () => {
|
|
38
|
+
w() || console.warn(i("DSStepper", "For accessible announcements place <DSAriaLiveRegions /> once close to <body>. Announcements will be skipped otherwise."));
|
|
39
|
+
}, re = {
|
|
40
|
+
current: "Current step",
|
|
41
|
+
completed: "completed",
|
|
42
|
+
step: "Step",
|
|
43
|
+
of: "of"
|
|
44
|
+
}, oe = {
|
|
45
|
+
current: "Aktueller Schritt",
|
|
46
|
+
completed: "abgeschlossen",
|
|
47
|
+
step: "Schritt",
|
|
48
|
+
of: "von"
|
|
49
|
+
}, se = {
|
|
50
|
+
en: re,
|
|
51
|
+
de: oe
|
|
52
|
+
}, ne = (t) => t.find((e) => e.state === "current") || t.findLast((e) => e.state) || t[0], I = (t) => t.findIndex((n) => n.state === "current"), le = (t, n) => !!t && t === "completed" && !n, Ee = ({
|
|
53
|
+
aria: t,
|
|
54
|
+
className: n,
|
|
55
|
+
steps: e,
|
|
56
|
+
orientation: o = "horizontal",
|
|
57
|
+
alignment: h = "left",
|
|
58
|
+
lang: x = "en",
|
|
59
|
+
translations: m,
|
|
60
|
+
onStepChange: A,
|
|
61
|
+
...y
|
|
62
|
+
}) => {
|
|
63
|
+
process.env.NODE_ENV !== "production" && (ee({
|
|
64
|
+
aria: t,
|
|
65
|
+
steps: e
|
|
66
|
+
}), te());
|
|
67
|
+
const p = H(m || se[x]), b = V(() => {
|
|
68
|
+
const s = w();
|
|
69
|
+
if (s) {
|
|
70
|
+
const r = ne(e);
|
|
71
|
+
s.innerText = `${p("current")}: ${e.indexOf(r) + 1} ${p("of")} ${e.length} - ${r.label}`, setTimeout(() => {
|
|
72
|
+
s.innerText = "";
|
|
73
|
+
}, 350);
|
|
74
|
+
}
|
|
75
|
+
}, [e, m, p]);
|
|
76
|
+
W(() => {
|
|
77
|
+
b();
|
|
78
|
+
}, [e, b]);
|
|
79
|
+
const P = (s, r) => {
|
|
80
|
+
const {
|
|
81
|
+
state: l,
|
|
82
|
+
disabled: c
|
|
83
|
+
} = e[s];
|
|
84
|
+
le(l, c) && (e[s].onClick?.(r), A(s));
|
|
85
|
+
}, O = f(a.root, {
|
|
86
|
+
[a.rootVertical]: o === "vertical"
|
|
87
|
+
}, n), B = f(a.list, {
|
|
88
|
+
[a.listVertical]: o === "vertical",
|
|
89
|
+
[a.listCenter]: o === "horizontal" && h === "center"
|
|
90
|
+
}), k = f({
|
|
91
|
+
[a.scrollerCentered]: o === "horizontal" && h === "center"
|
|
92
|
+
}), g = S([]), T = /* @__PURE__ */ d("ol", { className: B, children: e.map((s, r) => /* @__PURE__ */ d(G, { step: s, index: r, stepsCount: e.length, t: p, orientation: o, onStepClick: (l) => P(r, l), buttonRef: (l) => {
|
|
93
|
+
g.current[r] = l;
|
|
94
|
+
} }, r)) }), _ = S(null), E = S(!1);
|
|
95
|
+
L(() => {
|
|
96
|
+
if (o !== "horizontal")
|
|
97
|
+
return;
|
|
98
|
+
const s = [
|
|
99
|
+
"16px 'STIHL Contraface Digital Text Regular'",
|
|
100
|
+
// text-medium - label default
|
|
101
|
+
"14px 'STIHL Contraface Digital Text Bold'",
|
|
102
|
+
// text-small-bold - number
|
|
103
|
+
"16px 'STIHL Contraface Digital Text Bold'",
|
|
104
|
+
// text-medium-bold - current label
|
|
105
|
+
"14px 'STIHL Contraface Digital Text Regular'"
|
|
106
|
+
// utility-small - number/hint base (regular variant for hint)
|
|
107
|
+
];
|
|
108
|
+
Promise.all(s.map((r) => document.fonts.load(r))).then(() => {
|
|
109
|
+
E.current = !0, I(e) !== -1 && C("instant");
|
|
110
|
+
}).catch((r) => {
|
|
111
|
+
throw new Error(i("DSStepper", `The component requires the fonts to be loaded: ${r}`));
|
|
112
|
+
});
|
|
113
|
+
}, [o]);
|
|
114
|
+
const C = (s = "smooth") => {
|
|
115
|
+
if (o !== "horizontal")
|
|
116
|
+
return;
|
|
117
|
+
const r = I(e);
|
|
118
|
+
if (r === -1)
|
|
119
|
+
return;
|
|
120
|
+
const l = g.current[r], c = _.current;
|
|
121
|
+
if (!l || !c)
|
|
122
|
+
return;
|
|
123
|
+
const R = l.getBoundingClientRect(), v = c.getBoundingClientRect();
|
|
124
|
+
if (R.left - N >= v.left && R.right + N <= v.right)
|
|
125
|
+
return;
|
|
126
|
+
const M = l.offsetLeft, $ = l.offsetWidth, D = c.clientWidth;
|
|
127
|
+
let u = M - Math.max(0, (D - $) / 2);
|
|
128
|
+
const z = c.scrollWidth - D;
|
|
129
|
+
u = Math.min(Math.max(0, u), z), c.scrollTo({
|
|
130
|
+
left: u,
|
|
131
|
+
behavior: q() ? "instant" : s
|
|
132
|
+
});
|
|
133
|
+
};
|
|
134
|
+
return L(() => {
|
|
135
|
+
E.current && C("smooth");
|
|
136
|
+
}, [e, o]), /* @__PURE__ */ d("nav", { className: O, ...y, ...t, children: o === "horizontal" ? /* @__PURE__ */ d(F, { ref: _, className: a.scroller, scrollerClassName: k, scrollerButtonClassName: a.scrollerButton, children: T }) : T });
|
|
137
|
+
};
|
|
138
|
+
export {
|
|
139
|
+
Ee as D,
|
|
140
|
+
ge as S,
|
|
141
|
+
N as a,
|
|
142
|
+
Te as b,
|
|
143
|
+
_e as c,
|
|
144
|
+
te as d,
|
|
145
|
+
re as e,
|
|
146
|
+
oe as f,
|
|
147
|
+
se as g,
|
|
148
|
+
ne as h,
|
|
149
|
+
I as i,
|
|
150
|
+
le as j,
|
|
151
|
+
ee as v
|
|
152
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as f, jsx as S } from "react/jsx-runtime";
|
|
3
|
+
import { d as _ } from "./index.cKLI89Eg.js";
|
|
4
|
+
import { c as p } from "./index.DQOqod3i.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import { D as E } from "./Icon.m6sMB6vl.js";
|
|
7
|
+
import '../assets/SystemFeedback.PKzqnXUe.css';const k = "ds-system-feedback_root_1dkn4_1", x = {
|
|
8
|
+
root: k
|
|
9
|
+
}, h = ["success", "error", "warning"], D = {
|
|
10
|
+
success: "circle-check-colored",
|
|
11
|
+
error: "diamond-exclamationmark-colored",
|
|
12
|
+
warning: "triangle-exclamationmark-colored"
|
|
13
|
+
}, y = (n) => {
|
|
14
|
+
const e = _.c(16);
|
|
15
|
+
let s, t, o, r, c;
|
|
16
|
+
e[0] !== n ? ({
|
|
17
|
+
id: t,
|
|
18
|
+
message: o,
|
|
19
|
+
variant: c,
|
|
20
|
+
className: s,
|
|
21
|
+
...r
|
|
22
|
+
} = n, e[0] = n, e[1] = s, e[2] = t, e[3] = o, e[4] = r, e[5] = c) : (s = e[1], t = e[2], o = e[3], r = e[4], c = e[5]);
|
|
23
|
+
let l;
|
|
24
|
+
e[6] !== s ? (l = p(x.root, s), e[6] = s, e[7] = l) : l = e[7];
|
|
25
|
+
const m = l, d = D[c];
|
|
26
|
+
let a;
|
|
27
|
+
e[8] !== d ? (a = /* @__PURE__ */ S(E, { name: d, "aria-hidden": "true" }), e[8] = d, e[9] = a) : a = e[9];
|
|
28
|
+
let i;
|
|
29
|
+
return e[10] !== t || e[11] !== o || e[12] !== r || e[13] !== m || e[14] !== a ? (i = /* @__PURE__ */ f("div", { id: t, className: m, ...r, children: [
|
|
30
|
+
a,
|
|
31
|
+
o
|
|
32
|
+
] }), e[10] = t, e[11] = o, e[12] = r, e[13] = m, e[14] = a, e[15] = i) : i = e[15], i;
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
y as D,
|
|
36
|
+
h as S,
|
|
37
|
+
D as a
|
|
38
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
const n = (t) => ["A", "BUTTON", "INPUT", "SELECT", "TEXTAREA", "AUDIO", "VIDEO"].includes(t.tagName) || t.hasAttribute("contenteditable"), r = (t) => {
|
|
3
|
+
const e = (a) => n(a) ? !0 : Array.from(a.children).some((s) => e(s));
|
|
4
|
+
return e(t);
|
|
5
|
+
}, c = (t, e) => `tabs-${t}-tabbutton-${e}`, o = (t, e, a) => `tabs-${t}-tabpanel-${e}-${a}`;
|
|
6
|
+
export {
|
|
7
|
+
c as a,
|
|
8
|
+
r as c,
|
|
9
|
+
o as g
|
|
10
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as N, jsxs as C } from "react/jsx-runtime";
|
|
3
|
+
import { d as L } from "./index.cKLI89Eg.js";
|
|
4
|
+
import { useState as M } from "react";
|
|
5
|
+
import { TabList as $ } from "../tablist.hMHdX1V8.js";
|
|
6
|
+
import { TabPane as j } from "../tabpane.7vMXUKFX.js";
|
|
7
|
+
import { g as B } from "./TabPane.utils.DG16Y2uD.js";
|
|
8
|
+
import { g, r as O } from "./helpers.CexwVao7.js";
|
|
9
|
+
const J = ["left", "center"], K = ["prev", "next"], _ = ({
|
|
10
|
+
id: b,
|
|
11
|
+
tabs: e,
|
|
12
|
+
defaultSelectedTabIndex: s = 0
|
|
13
|
+
}) => {
|
|
14
|
+
if (!b)
|
|
15
|
+
throw new Error(g("DSTabs", 'A unique "id" prop is required. Please add a unique "id" prop to the DSTabs component.'));
|
|
16
|
+
if (Array.isArray(e)) {
|
|
17
|
+
if (e.length === 0)
|
|
18
|
+
throw new Error(g("DSTabs", "The tabs array must not be empty."));
|
|
19
|
+
} else throw new Error(g("DSTabs", O("tabs", "DSTabs")));
|
|
20
|
+
if (s < 0 || s >= e.length)
|
|
21
|
+
throw new Error(g("DSTabs", `Invalid defaultSelectedTabIndex: ${s}. It must be between 0 and ${e.length - 1}.`));
|
|
22
|
+
}, Q = (b) => {
|
|
23
|
+
const e = L.c(37);
|
|
24
|
+
let s, l, n, r, d, m, f, t, a;
|
|
25
|
+
e[0] !== b ? ({
|
|
26
|
+
id: t,
|
|
27
|
+
tabs: a,
|
|
28
|
+
activeTabIndex: s,
|
|
29
|
+
alignment: m,
|
|
30
|
+
className: l,
|
|
31
|
+
classNameTabPane: n,
|
|
32
|
+
defaultSelectedTabIndex: f,
|
|
33
|
+
onTabChange: r,
|
|
34
|
+
...d
|
|
35
|
+
} = b, e[0] = b, e[1] = s, e[2] = l, e[3] = n, e[4] = r, e[5] = d, e[6] = m, e[7] = f, e[8] = t, e[9] = a) : (s = e[1], l = e[2], n = e[3], r = e[4], d = e[5], m = e[6], f = e[7], t = e[8], a = e[9]);
|
|
36
|
+
const h = m === void 0 ? "left" : m, x = f === void 0 ? 0 : f;
|
|
37
|
+
process.env.NODE_ENV !== "production" && _({
|
|
38
|
+
id: t,
|
|
39
|
+
tabs: a,
|
|
40
|
+
defaultSelectedTabIndex: x
|
|
41
|
+
});
|
|
42
|
+
const [A, P] = M(s || x), p = s !== void 0, o = p ? s : A;
|
|
43
|
+
let S;
|
|
44
|
+
e[10] !== p || e[11] !== r ? (S = (i) => {
|
|
45
|
+
p || P(i), r?.(i);
|
|
46
|
+
}, e[10] = p, e[11] = r, e[12] = S) : S = e[12];
|
|
47
|
+
const D = S;
|
|
48
|
+
let u;
|
|
49
|
+
e[13] !== h || e[14] !== D || e[15] !== r || e[16] !== o || e[17] !== t || e[18] !== a ? (u = {
|
|
50
|
+
id: t,
|
|
51
|
+
tabs: a,
|
|
52
|
+
setSelectedTabIndex: D,
|
|
53
|
+
selectedTabIndex: o,
|
|
54
|
+
alignment: h,
|
|
55
|
+
onTabChange: r
|
|
56
|
+
}, e[13] = h, e[14] = D, e[15] = r, e[16] = o, e[17] = t, e[18] = a, e[19] = u) : u = e[19];
|
|
57
|
+
const v = u;
|
|
58
|
+
let c;
|
|
59
|
+
e[20] !== v ? (c = /* @__PURE__ */ N($, { ...v }), e[20] = v, e[21] = c) : c = e[21];
|
|
60
|
+
let T;
|
|
61
|
+
if (e[22] !== n || e[23] !== o || e[24] !== t || e[25] !== a) {
|
|
62
|
+
let i;
|
|
63
|
+
e[27] !== n || e[28] !== o || e[29] !== t ? (i = (q, w) => {
|
|
64
|
+
const {
|
|
65
|
+
id: E,
|
|
66
|
+
content: y
|
|
67
|
+
} = q;
|
|
68
|
+
return /* @__PURE__ */ N(j, { id: E, content: y, index: w, selectedTabIndex: o, tabListId: t, className: n }, B(t, E, w));
|
|
69
|
+
}, e[27] = n, e[28] = o, e[29] = t, e[30] = i) : i = e[30], T = a.map(i), e[22] = n, e[23] = o, e[24] = t, e[25] = a, e[26] = T;
|
|
70
|
+
} else
|
|
71
|
+
T = e[26];
|
|
72
|
+
let I;
|
|
73
|
+
return e[31] !== l || e[32] !== d || e[33] !== c || e[34] !== T || e[35] !== t ? (I = /* @__PURE__ */ C("div", { className: l, id: t, ...d, children: [
|
|
74
|
+
c,
|
|
75
|
+
T
|
|
76
|
+
] }), e[31] = l, e[32] = d, e[33] = c, e[34] = T, e[35] = t, e[36] = I) : I = e[36], I;
|
|
77
|
+
};
|
|
78
|
+
export {
|
|
79
|
+
Q as D,
|
|
80
|
+
J as T,
|
|
81
|
+
K as a,
|
|
82
|
+
_ as v
|
|
83
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { a } from "./helpers.CexwVao7.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "./index.cKLI89Eg.js";
|
|
5
|
+
const m = ["address", "blockquote", "cite", "div", "dd", "dfn", "dt", "figcaption", "legend", "li", "p", "span", "time"], r = ["large", "medium", "small", "x-small", "xx-small"], o = ["bold", "normal"], d = (t, s) => Array.isArray(s) ? s.some((i) => !!a(t, i)) : !!a(t, s);
|
|
6
|
+
export {
|
|
7
|
+
m as T,
|
|
8
|
+
r as a,
|
|
9
|
+
o as b,
|
|
10
|
+
d as i
|
|
11
|
+
};
|