@stihl-design-system/components 1.0.0-RC.3 → 1.0.0-RC.30
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.DkwtJy--.js +12 -0
- package/accordion.d.ts +2 -0
- package/actionbutton.d.ts +2 -0
- package/actionbutton.u1qp8oGC.js +11 -0
- package/actionlink.C7HzeIVa.js +11 -0
- package/actionlink.d.ts +2 -0
- package/arialiveregions.Fgcshs5k.js +18 -0
- package/arialiveregions.d.ts +2 -0
- package/assets/Accordion.BJb4TOG0.css +1 -0
- package/assets/ActionButton.oGVPTS1J.css +1 -0
- package/assets/ActionLink.CTh6IXrN.css +1 -0
- package/assets/Breadcrumb.BaYrwrYl.css +1 -0
- package/assets/Button.Dw8H5nFS.css +1 -0
- package/assets/Checkbox.BKHQN_tu.css +1 -0
- package/assets/CheckboxGroup.Dd-Huo7x.css +1 -0
- package/assets/Chip.dxIYIjj7.css +1 -0
- package/assets/CustomReactSelect.D0b1Hg1T.css +1 -0
- package/assets/Dialog.CGAg7bnN.css +1 -0
- package/assets/Drawer.VOvWQoEr.css +1 -0
- package/assets/Fieldset.CW9dBvAo.css +1 -0
- package/assets/Header.CNqtWTxB.css +1 -0
- package/assets/Icon.QeJ7TxZs.css +1 -0
- package/assets/InputFile.CCQxsulT.css +1 -0
- package/assets/InputPassword.124xVOiO.css +1 -0
- package/assets/InputSearch.Bkg-1urJ.css +1 -0
- package/assets/InputStepper.Dth4qZN_.css +1 -0
- package/assets/LinkButton.xMvg_ojf.css +1 -0
- package/assets/MegaMenu.DX9gChtY.css +1 -0
- package/assets/NavigationTabList.CFlVhUzS.css +1 -0
- package/assets/Notification.BOuaA5GT.css +1 -0
- package/assets/Popover.BDTDsPAt.css +1 -0
- package/assets/RadioGroup.CM2mYOzc.css +1 -0
- package/assets/Select.CYACicZ3.css +1 -0
- package/assets/Slider.DzwSjDPV.css +1 -0
- package/assets/SystemFeedback.RcrPepSZ.css +1 -0
- package/assets/Text.Dgpj61UP.css +1 -0
- package/assets/Textarea.BXWhXpXx.css +1 -0
- package/assets/Toast.CJ1zhDIT.css +1 -0
- package/assets/arialiveregions.e0Q16ZWi.css +1 -0
- package/assets/asterisk.B41DaZDe.css +1 -0
- package/assets/banner.BLdW5VF4.css +1 -0
- package/assets/buttonround.Cw9hnUan.css +1 -0
- package/assets/chipgroup.BGxjdSDX.css +1 -0
- package/assets/filelist.H_wKcSPX.css +1 -0
- package/assets/flag.C7i3MAAP.css +1 -0
- package/assets/floatingactionbutton.l0nvFiJU.css +1 -0
- package/assets/heading.B-rdLVZD.css +1 -0
- package/assets/input.ONbL-_C1.css +1 -0
- package/assets/link.CeJUHbdf.css +1 -0
- package/assets/logo._GqPgimo.css +1 -0
- package/assets/numberindicator.O6XwvtL0.css +1 -0
- package/assets/optioncheckbox.DAffEKvY.css +1 -0
- package/assets/radio.CgpGvYc-.css +1 -0
- package/assets/scroller.Hszs1Yq4.css +1 -0
- package/assets/skiptocontent.CTSDC_kG.css +1 -0
- package/assets/spinner.Ctn_YYBG.css +1 -0
- package/assets/switch.Bc9KIyw9.css +1 -0
- package/assets/tabpane.D1LTb432.css +1 -0
- package/assets/title.B0tsgJ-n.css +1 -0
- package/asterisk.CR60hx8S.js +13 -0
- package/asterisk.d.ts +1 -0
- package/banner.d.ts +2 -0
- package/banner.j9YpudOS.js +55 -0
- package/breadcrumb.BS-S3zUI.js +11 -0
- package/breadcrumb.d.ts +2 -0
- package/button.CPilCCUI.js +12 -0
- package/button.d.ts +1 -0
- package/buttonround.C426mO4d.js +81 -0
- package/buttonround.d.ts +1 -0
- package/checkbox.BtlUvs0z.js +12 -0
- package/checkbox.d.ts +1 -0
- package/checkboxgroup.C5NgyyQF.js +9 -0
- package/checkboxgroup.d.ts +1 -0
- package/chip.d.ts +2 -0
- package/chip.tVIG1ysH.js +11 -0
- package/chipgroup.CjIK0Z0x.js +209 -0
- package/chipgroup.d.ts +2 -0
- package/chunks/Accordion.C5V5IcM-.js +170 -0
- package/chunks/ActionButton.B8zFwOrJ.js +165 -0
- package/chunks/ActionLink.IX6oRXU3.js +138 -0
- package/chunks/AriaLiveRegions.utils.Cb327d_2.js +27 -0
- package/chunks/Breadcrumb.BGzwzvh8.js +105 -0
- package/chunks/Button.B7xF1E19.js +127 -0
- package/chunks/Checkbox.DxV7-F5W.js +88 -0
- package/chunks/CheckboxGroup.Dy_6tiGk.js +72 -0
- package/chunks/Chip.31UfPwQF.js +119 -0
- package/chunks/CustomReactSelect.iE5iTdez.js +3344 -0
- package/chunks/Dialog.B_2pKRnd.js +135 -0
- package/chunks/Drawer.HFlBTcqN.js +140 -0
- package/chunks/Fieldset.CjIfmN_5.js +74 -0
- package/chunks/Header.DqZRryB5.js +366 -0
- package/chunks/Icon.DGTYCv63.js +231 -0
- package/chunks/Input.utils.Cnnzvuk4.js +57 -0
- package/chunks/InputFile.DvOatDzg.js +220 -0
- package/chunks/InputPassword.DC2POUc1.js +136 -0
- package/chunks/InputSearch.B0aCuPRZ.js +174 -0
- package/chunks/InputStepper.B_ZjgY_f.js +263 -0
- package/chunks/LinkButton.DdTspmJz.js +117 -0
- package/chunks/MegaMenu.BY7eOnhj.js +189 -0
- package/chunks/NavigationTabList.dYFYTmWv.js +57 -0
- package/chunks/NavigationTabs.ClpVGcl0.js +63 -0
- package/chunks/Notification.DIdIhGTQ.js +92 -0
- package/chunks/Popover.NGetxKGg.js +159 -0
- package/chunks/RadioGroup.peTeMK45.js +104 -0
- package/chunks/Select.BDHLJ2ma.js +162 -0
- package/chunks/Slider.kyVr7BLk.js +292 -0
- package/chunks/SystemFeedback.B9f67mjJ.js +38 -0
- package/chunks/TabPane.utils.DG16Y2uD.js +10 -0
- package/chunks/Tabs.CkVL8Jw8.js +83 -0
- package/chunks/Text.DGWeWF1y.js +75 -0
- package/chunks/Textarea.ORkJUx-S.js +163 -0
- package/chunks/Toast.DHo4pLH3.js +76 -0
- package/chunks/accessibility.B57oX4yV.js +10 -0
- package/chunks/caret-down.CupuwAF6.js +10 -0
- package/chunks/caret-right.DKtu4PQe.js +10 -0
- package/chunks/{circle-info-colored.DLY6BTL4.js → circle-info-colored.D2pp54gf.js} +3 -3
- 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/document-magnifying-glass.DkvpNz-D.js +10 -0
- package/chunks/file-type-doc.DlovDOBh.js +10 -0
- package/chunks/file-type-image.Cg2NRd7y.js +10 -0
- package/chunks/file-type-pdf.Dm94xL2i.js +10 -0
- package/chunks/file-type-video.CFwfiP-D.js +10 -0
- package/chunks/file-type-zip.SNixmKhQ.js +10 -0
- package/chunks/file.DLgRXiem.js +10 -0
- package/chunks/floating-ui.dom.C9TD1WpB.js +950 -0
- package/chunks/floating-ui.react.x0F9CYgn.js +1637 -0
- package/chunks/has-window.ut_-aShB.js +5 -0
- package/chunks/helpers.BbWkXTr3.js +37 -0
- package/chunks/imow-icon.CyH72ySI.js +10 -0
- package/chunks/index.CEyLAtio.js +48 -0
- package/chunks/index.CgTHIF3K.js +293 -0
- package/chunks/is-animation-disabled.CUl4N3LI.js +20 -0
- package/chunks/mystihl-icon.xHpCyYJf.js +10 -0
- package/chunks/tiktok.BWJTDGYm.js +10 -0
- package/chunks/translate.nuU7uChI.js +8 -0
- package/chunks/twitch.C893cAK8.js +10 -0
- package/chunks/useBreakpoint.CMOR9ZOB.js +44 -0
- package/chunks/useIsomorphicLayoutEffect.CnJ9AMFS.js +7 -0
- package/combobox.Bk2ycofh.js +60 -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 +61 -0
- package/components/ActionButton/ActionButton.test.d.ts +1 -0
- package/components/ActionButton/ActionButton.utils.d.ts +22 -0
- package/components/ActionButton/ActionButton.utils.test.d.ts +1 -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 +5 -0
- package/components/AriaLiveRegions/AriaLiveRegions.utils.d.ts +5 -0
- package/components/AriaLiveRegions/AriaLiveRegions.utils.test.d.ts +1 -0
- 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 +32 -16
- package/components/Button/Button.utils.d.ts +18 -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 +21 -14
- package/components/CheckboxGroup/CheckboxGroup.utils.d.ts +1 -2
- package/components/ChipGroup/Chip.d.ts +12 -0
- package/components/ChipGroup/ChipGroup.d.ts +44 -0
- package/components/ChipGroup/ChipGroup.test.d.ts +1 -0
- package/components/ChipGroup/ChipGroup.utils.d.ts +60 -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 +6 -1
- package/components/{CustomReactSelect → Combobox/CustomReactSelect}/CustomReactSelect.d.ts +37 -25
- 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 +45 -0
- 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 +15 -9
- package/components/Fieldset/Fieldset.utils.d.ts +8 -2
- 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 +68 -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 +56 -25
- package/components/Input/Input.utils.d.ts +5 -6
- package/components/InputFile/InputFile.d.ts +91 -0
- package/components/InputFile/InputFile.test.d.ts +1 -0
- package/components/InputFile/InputFile.utils.d.ts +46 -0
- package/components/InputFile/InputFile.utils.test.d.ts +1 -0
- package/components/InputPassword/InputPassword.d.ts +43 -18
- package/components/InputPassword/InputPassword.utils.d.ts +0 -1
- package/components/InputSearch/InputSearch.d.ts +42 -18
- package/components/InputSearch/InputSearch.utils.d.ts +0 -1
- package/components/InputStepper/InputStepper.d.ts +64 -26
- package/components/InputStepper/InputStepper.utils.d.ts +0 -1
- package/components/Link/Link.d.ts +11 -43
- package/components/Link/Link.utils.d.ts +2 -8
- package/components/LinkButton/LinkButton.d.ts +64 -0
- package/components/LinkButton/LinkButton.test.d.ts +1 -0
- package/components/LinkButton/LinkButton.utils.d.ts +25 -0
- package/components/LinkButton/LinkButton.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/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 +40 -0
- package/components/Notification/Notification.test.d.ts +1 -0
- package/components/Notification/Notification.utils.d.ts +4 -0
- 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 +40 -0
- package/components/Popover/Popover.test.d.ts +1 -0
- package/components/Popover/Popover.utils.d.ts +53 -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 +30 -20
- package/components/RadioGroup/RadioGroup.utils.d.ts +5 -4
- package/components/RadioGroup/RadioGroup.utils.test.d.ts +1 -0
- package/components/Scroller/Scroller.d.ts +20 -0
- package/components/Scroller/Scroller.utils.d.ts +3 -0
- package/components/Select/Select.d.ts +24 -13
- package/components/Select/Select.utils.d.ts +0 -1
- package/components/SkipToContent/SkipToContent.d.ts +19 -0
- package/components/SkipToContent/SkipToContent.test.d.ts +1 -0
- package/components/Slider/Slider.d.ts +63 -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/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/Textarea/Textarea.d.ts +34 -16
- package/components/Textarea/Textarea.utils.d.ts +0 -1
- package/components/Title/Title.d.ts +13 -6
- package/components/Toast/Toast.d.ts +42 -0
- package/components/Toast/Toast.utils.d.ts +27 -0
- package/components/Toast/ToastManager.d.ts +9 -0
- package/components/Toast/ToastManager.test.d.ts +1 -0
- package/components/Toast/ToastManager.utils.d.ts +2 -0
- package/components/Toast/ToastManager.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.Hnch9LGg.js +14 -0
- package/customreactselect.d.ts +2 -1
- package/dialog.7sWoqGwL.js +10 -0
- package/dialog.d.ts +2 -0
- package/drawer.DsF4KIPn.js +10 -0
- package/drawer.d.ts +2 -0
- package/fieldset.DUFUMcT-.js +11 -0
- package/fieldset.d.ts +1 -0
- package/filelist.d.ts +2 -0
- package/filelist.nunJKxkv.js +161 -0
- package/flag.D_iN8iD6.js +50 -0
- package/flag.d.ts +2 -0
- package/floatingactionbutton.DOH2k0gv.js +72 -0
- package/floatingactionbutton.d.ts +1 -0
- package/github-mark-white.svg +1 -0
- package/github-mark.svg +1 -0
- package/header.QpNjE3N-.js +12 -0
- package/header.d.ts +2 -0
- package/heading.BXFBZhKv.js +46 -0
- package/heading.d.ts +1 -0
- package/icon.d.ts +1 -0
- package/icon.svg +1 -1
- package/icon.vMQcEBnH.js +9 -0
- package/imow-icon.svg +1 -0
- package/index.d.ts +66 -1
- package/index.es.js +212 -46
- package/input.BKHOY118.js +203 -0
- package/input.d.ts +1 -0
- package/inputfile.DK8759wV.js +17 -0
- package/inputfile.d.ts +2 -0
- package/inputpassword.d.ts +1 -0
- package/inputpassword.rV_ZZw5F.js +13 -0
- package/inputsearch.CmhakTpa.js +14 -0
- package/inputsearch.d.ts +1 -0
- package/inputstepper.5olvh4tk.js +16 -0
- package/inputstepper.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.D_FjTyoZ.js +66 -0
- package/link.d.ts +1 -0
- package/linkbutton.D2C4vykc.js +11 -0
- package/linkbutton.d.ts +2 -0
- package/logo.C96KaG1P.js +80 -0
- package/logo.d.ts +1 -0
- package/megamenu.CdHrEeoh.js +12 -0
- package/megamenu.d.ts +2 -0
- package/mystihl-icon.svg +1 -0
- package/navigationtablist.CVjh1k-b.js +9 -0
- package/navigationtablist.d.ts +2 -0
- package/navigationtabs.BGfi9AG2.js +9 -0
- package/navigationtabs.d.ts +2 -0
- package/notification.Dn-FZWEL.js +10 -0
- package/notification.d.ts +2 -0
- package/numberindicator.Ddf3ESi7.js +33 -0
- package/numberindicator.d.ts +2 -0
- package/optioncheckbox.D97W3zeW.js +48 -0
- package/optioncheckbox.d.ts +2 -1
- package/package.json +84 -57
- 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 +324 -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.DXxm1oWI.js +11 -0
- package/popover.d.ts +2 -0
- package/radio.7_N_alaS.js +126 -0
- package/radio.d.ts +1 -0
- package/radiogroup.J8WpEEo8.js +11 -0
- package/radiogroup.d.ts +1 -0
- package/scroller.BiRLQg__.js +123 -0
- package/scroller.d.ts +2 -0
- package/select-decision-tree-small.webp +0 -0
- package/select-decision-tree.webp +0 -0
- package/select.DIzGPVx3.js +13 -0
- package/select.d.ts +1 -0
- package/skiptocontent._F-d8y5b.js +35 -0
- package/skiptocontent.d.ts +2 -0
- package/slider.DuJK0RdB.js +11 -0
- package/slider.d.ts +2 -0
- package/spinner.Dht6FspZ.js +46 -0
- package/spinner.d.ts +1 -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/{lib → ds/lib/ds-internal}/_focus.scss +14 -16
- 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 +187 -0
- package/styles/scss/ds/lib/ds-internal/_link-button.scss +218 -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 +21 -0
- package/styles/scss/ds/lib/link.scss +74 -0
- package/styles/scss/ds/lib/media-query.scss +32 -0
- package/styles/scss/ds/lib/shadow.scss +10 -0
- 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.B37S4vfP.js +66 -0
- package/switch.d.ts +1 -0
- package/systemfeedback.C_2PhwKe.js +10 -0
- package/systemfeedback.d.ts +1 -0
- package/tablist.d.ts +2 -0
- package/tablist.g_Nwu6GA.js +256 -0
- package/tabpane.CB-eudyw.js +37 -0
- package/tabpane.d.ts +2 -0
- package/tabs.d.ts +2 -0
- package/tabs.oh9-wHPp.js +11 -0
- package/text.ZOUuesnU.js +10 -0
- package/text.d.ts +1 -0
- package/textarea.d.ts +1 -0
- package/textarea.dQ12-oYB.js +13 -0
- package/title.Bz_k5Vda.js +40 -0
- package/title.d.ts +1 -0
- package/toast.d.ts +2 -0
- package/toast.sMNbfKxi.js +11 -0
- package/toastmanager.CVamaS5T.js +116 -0
- package/toastmanager.d.ts +2 -0
- package/topbar.Dhy_TL0U.js +11 -0
- package/topbar.d.ts +2 -0
- package/types/icon-types.d.ts +1 -1
- 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 +6 -0
- package/utils/is-animation-disabled.d.ts +14 -0
- package/utils/is-animation-disabled.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/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 +4 -1
- package/assets/CustomReactSelect.BdwXfLLO.css +0 -1
- package/assets/RadioGroup.Ur8Ro-XL.css +0 -1
- package/assets/asterisk.C-o6rbGQ.css +0 -1
- package/assets/button.DJvR-58w.css +0 -1
- package/assets/buttonround.BlfQkmMV.css +0 -1
- package/assets/checkbox.BsFEWfQe.css +0 -1
- package/assets/fieldset.xazpUXJX.css +0 -1
- package/assets/floatingactionbutton.D7ywURL3.css +0 -1
- package/assets/heading.CGFucb-C.css +0 -1
- package/assets/icon.CB-KQmw4.css +0 -1
- package/assets/input.BcP5kkZ2.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/link.V7pJOW1p.css +0 -1
- package/assets/linkstandalone.D3RbBp23.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/select.D2qBxaHP.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/textarea.BKbocznb.css +0 -1
- package/assets/title.CE0Dm7PI.css +0 -1
- package/asterisk.DU8THnoC.js +0 -8
- package/button.BUUGRxIp.js +0 -135
- package/buttonround.CKc-a-hd.js +0 -118
- package/checkbox.C2Ga9yTK.js +0 -112
- package/checkboxgroup.Cfxz9bk6.js +0 -80
- package/chunks/CustomReactSelect.uzWNynay.js +0 -5027
- package/chunks/Input.utils.Bly6ZzLI.js +0 -106
- package/chunks/RadioGroup.module.bi3leRes.js +0 -11
- 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/useBreakpoint.5xBNDiCf.js +0 -48
- package/combobox.BXHAo4Wx.js +0 -47
- package/components/CustomReactSelect/CustomReactSelect.utils.d.ts +0 -16
- package/components/LinkStandalone/LinkStandalone.d.ts +0 -15
- package/components/LinkStandalone/LinkStandalone.utils.d.ts +0 -2
- package/customreactselect.CipgVXTR.js +0 -13
- package/fieldset.DGcIKzDI.js +0 -98
- package/floatingactionbutton.DzHD39NY.js +0 -87
- package/heading.DqGbFfj2.js +0 -50
- package/icon.PX9_1kNB.js +0 -215
- package/input.o8OT6rxJ.js +0 -236
- package/inputpassword.-MXq8baU.js +0 -139
- package/inputsearch.CoYTSjox.js +0 -188
- package/inputstepper.BBMQr6kM.js +0 -290
- package/link.BN6AZfhG.js +0 -115
- package/linkstandalone.4-fyRd08.js +0 -79
- package/linkstandalone.d.ts +0 -1
- package/logo.C_oJ8isW.js +0 -69
- package/optioncheckbox.-DRnW_ch.js +0 -43
- package/partials/icon.svg +0 -1
- package/radio.Bhu9OUY-.js +0 -79
- package/radiogroup.oILRMrX-.js +0 -102
- package/select.OGcreXnT.js +0 -190
- package/spinner.Diy_EeFY.js +0 -58
- package/styles/scss/_index.scss +0 -22
- package/styles/scss/lib/_a11y.scss +0 -15
- package/styles/scss/lib/_animation.scss +0 -6
- package/styles/scss/lib/_breakpoints.scss +0 -16
- package/styles/scss/lib/_container-query.scss +0 -58
- 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 -48
- 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 -155
- 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 -160
- package/styles/scss/lib/_transition.scss +0 -26
- package/switch.BjoFKMQC.js +0 -65
- package/systemfeedback.C7iXO5A1.js +0 -25
- package/text.CPU8IUqY.js +0 -57
- package/textarea.kc_Sfbgr.js +0 -193
- package/title.icX0VDiO.js +0 -36
- 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/{LinkStandalone/LinkStandalone.test.d.ts → Accordion/Acordion.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,138 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as rt, jsx as w, Fragment as ct } from "react/jsx-runtime";
|
|
3
|
+
import { d as st } from "./index.CgTHIF3K.js";
|
|
4
|
+
import { c as y } from "./index.CEyLAtio.js";
|
|
5
|
+
import { D as lt } from "./Icon.DGTYCv63.js";
|
|
6
|
+
import { forwardRef as pt } from "react";
|
|
7
|
+
import { NumberIndicator as at } from "../numberindicator.Ddf3ESi7.js";
|
|
8
|
+
import { g as W } from "./helpers.BbWkXTr3.js";
|
|
9
|
+
import '../assets/ActionLink.CTh6IXrN.css';const dt = "ds-action-link_root_1xtta_1", ht = "ds-action-link_root--indent-level-1_1xtta_75", _t = "ds-action-link_root--active_1xtta_78", vt = "ds-action-link_root--active--with-marker_1xtta_81", mt = "ds-action-link_root--icon--top_1xtta_84", ft = "ds-action-link_root--stretched_1xtta_110", kt = "ds-action-link_active-marker_1xtta_115", bt = "ds-action-link_active-marker--with-indent_1xtta_127", It = "ds-action-link_icon-wrapper_1xtta_131", Nt = "ds-action-link_icon-wrapper--x-large_1xtta_134", At = "ds-action-link_icon-wrapper--with-number-indicator_1xtta_137", gt = "ds-action-link_icon-wrapper--with-number-indicator--with-value_1xtta_145", ut = "ds-action-link_label_1xtta_149", wt = "ds-action-link_label--bold_1xtta_160", Wt = "ds-action-link_label--active_1xtta_171", xt = "ds-action-link_label--icon-top_1xtta_182", Lt = "ds-action-link_number-indicator_1xtta_205", o = {
|
|
10
|
+
root: dt,
|
|
11
|
+
rootIndentLevel1: ht,
|
|
12
|
+
rootActive: _t,
|
|
13
|
+
rootActiveWithMarker: vt,
|
|
14
|
+
rootIconTop: mt,
|
|
15
|
+
rootStretched: ft,
|
|
16
|
+
activeMarker: kt,
|
|
17
|
+
activeMarkerWithIndent: bt,
|
|
18
|
+
iconWrapper: It,
|
|
19
|
+
iconWrapperXLarge: Nt,
|
|
20
|
+
iconWrapperWithNumberIndicator: At,
|
|
21
|
+
iconWrapperWithNumberIndicatorWithValue: gt,
|
|
22
|
+
label: ut,
|
|
23
|
+
labelBold: wt,
|
|
24
|
+
labelActive: Wt,
|
|
25
|
+
labelIconTop: xt,
|
|
26
|
+
numberIndicator: Lt
|
|
27
|
+
}, Kt = ["left", "top"], Vt = ["large", "x-large"], yt = [0, 1], Bt = ["normal", "bold"], St = ({
|
|
28
|
+
iconName: _,
|
|
29
|
+
iconSize: v,
|
|
30
|
+
iconSource: t,
|
|
31
|
+
iconPosition: c,
|
|
32
|
+
indentLevel: s,
|
|
33
|
+
stretched: l,
|
|
34
|
+
weight: p
|
|
35
|
+
}) => {
|
|
36
|
+
if (_ && !t && v === "x-large" && console.warn(W("DSActionLink", '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.')), c === "top") {
|
|
37
|
+
if (!_ && !t)
|
|
38
|
+
throw new Error(W("DSActionLink", '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.'));
|
|
39
|
+
v === "x-large" && console.warn(W("DSActionLink", 'An "iconSize" prop set to "x-large" has no effect when "iconPosition" is set to "top". Please remove the "iconSize" prop.')), p === "bold" && console.warn(W("DSActionLink", 'A "weight" prop set to "bold" with "iconPosition" set to "top" has no effect. Please remove the "weight" prop.')), s === 1 && console.warn(W("DSActionLink", 'An "indentLevel" prop set to "1" with "iconPosition" set to "top" has no effect. Please remove the "indentLevel" prop.')), l && console.warn(W("DSActionLink", 'A "stretched" prop set to "true" with "iconPosition" set to "top" has no effect. Please remove the "stretched" prop.'));
|
|
40
|
+
}
|
|
41
|
+
}, Pt = pt((_, v) => {
|
|
42
|
+
const t = st.c(73);
|
|
43
|
+
let c, s, l, p, h, n, r, i, m, f, k, x, L, S, P, D, T, M;
|
|
44
|
+
t[0] !== _ ? ({
|
|
45
|
+
children: s,
|
|
46
|
+
aria: c,
|
|
47
|
+
className: l,
|
|
48
|
+
download: p,
|
|
49
|
+
href: h,
|
|
50
|
+
iconName: n,
|
|
51
|
+
iconPosition: x,
|
|
52
|
+
iconSize: L,
|
|
53
|
+
iconSource: r,
|
|
54
|
+
indentLevel: S,
|
|
55
|
+
isActive: P,
|
|
56
|
+
numberIndicatorValue: i,
|
|
57
|
+
referrerPolicy: m,
|
|
58
|
+
rel: f,
|
|
59
|
+
stretched: D,
|
|
60
|
+
target: T,
|
|
61
|
+
weight: M,
|
|
62
|
+
...k
|
|
63
|
+
} = _, t[0] = _, t[1] = c, t[2] = s, t[3] = l, t[4] = p, t[5] = h, t[6] = n, t[7] = r, t[8] = i, t[9] = m, t[10] = f, t[11] = k, t[12] = x, t[13] = L, t[14] = S, t[15] = P, t[16] = D, t[17] = T, t[18] = M) : (c = t[1], s = t[2], l = t[3], p = t[4], h = t[5], n = t[6], r = t[7], i = t[8], m = t[9], f = t[10], k = t[11], x = t[12], L = t[13], S = t[14], P = t[15], D = t[16], T = t[17], M = t[18]);
|
|
64
|
+
const e = x === void 0 ? "left" : x, C = L === void 0 ? "large" : L, B = S === void 0 ? 0 : S, d = P === void 0 ? !1 : P, it = D === void 0 ? !1 : D, X = T === void 0 ? "_self" : T, nt = M === void 0 ? "normal" : M;
|
|
65
|
+
process.env.NODE_ENV !== "production" && St({
|
|
66
|
+
iconName: n,
|
|
67
|
+
iconSize: C,
|
|
68
|
+
iconSource: r,
|
|
69
|
+
iconPosition: e,
|
|
70
|
+
indentLevel: B,
|
|
71
|
+
stretched: it,
|
|
72
|
+
weight: nt
|
|
73
|
+
});
|
|
74
|
+
const a = (i == null ? void 0 : i.trim()) === "", j = e === "top", H = B === 1, F = d && e === "left", G = it === !0 && e === "left";
|
|
75
|
+
let E;
|
|
76
|
+
t[19] !== l || t[20] !== d || t[21] !== F || t[22] !== G || t[23] !== j || t[24] !== H ? (E = y(o.root, l, {
|
|
77
|
+
[o.rootIconTop]: j,
|
|
78
|
+
[o.rootIndentLevel1]: H,
|
|
79
|
+
[o.rootActive]: d,
|
|
80
|
+
[o.rootActiveWithMarker]: F,
|
|
81
|
+
[o.rootStretched]: G
|
|
82
|
+
}), t[19] = l, t[20] = d, t[21] = F, t[22] = G, t[23] = j, t[24] = H, t[25] = E) : E = t[25];
|
|
83
|
+
const R = E, Z = B === 1;
|
|
84
|
+
let O;
|
|
85
|
+
t[26] !== Z ? (O = y(o.activeMarker, {
|
|
86
|
+
[o.activeMarkerWithIndent]: Z
|
|
87
|
+
}), t[26] = Z, t[27] = O) : O = t[27];
|
|
88
|
+
const $ = O, q = d && e === "left", J = nt === "bold", Q = e === "top";
|
|
89
|
+
let z;
|
|
90
|
+
t[28] !== q || t[29] !== J || t[30] !== Q ? (z = y(o.label, {
|
|
91
|
+
[o.labelActive]: q,
|
|
92
|
+
[o.labelBold]: J,
|
|
93
|
+
[o.labelIconTop]: Q
|
|
94
|
+
}), t[28] = q, t[29] = J, t[30] = Q, t[31] = z) : z = t[31];
|
|
95
|
+
const U = z, Y = C === "x-large", tt = (n || r) && (i || a), et = (n || r) && !a;
|
|
96
|
+
let K;
|
|
97
|
+
t[32] !== Y || t[33] !== tt || t[34] !== et ? (K = y(o.iconWrapper, {
|
|
98
|
+
[o.iconWrapperXLarge]: Y,
|
|
99
|
+
[o.iconWrapperWithNumberIndicator]: tt,
|
|
100
|
+
[o.iconWrapperWithNumberIndicatorWithValue]: et
|
|
101
|
+
}), t[32] = Y, t[33] = tt, t[34] = et, t[35] = K) : K = t[35];
|
|
102
|
+
const ot = K, b = h === void 0 ? "span" : "a";
|
|
103
|
+
let I;
|
|
104
|
+
t[36] !== b || t[37] !== p || t[38] !== h || t[39] !== m || t[40] !== f || t[41] !== X ? (I = b === "a" && {
|
|
105
|
+
href: h,
|
|
106
|
+
target: X,
|
|
107
|
+
rel: f,
|
|
108
|
+
referrerPolicy: m,
|
|
109
|
+
download: p
|
|
110
|
+
}, t[36] = b, t[37] = p, t[38] = h, t[39] = m, t[40] = f, t[41] = X, t[42] = I) : I = t[42];
|
|
111
|
+
let N;
|
|
112
|
+
t[43] !== $ || t[44] !== e || t[45] !== d ? (N = d && e === "left" && /* @__PURE__ */ w("div", { className: $ }), t[43] = $, t[44] = e, t[45] = d, t[46] = N) : N = t[46];
|
|
113
|
+
let A;
|
|
114
|
+
t[47] !== n || t[48] !== e || t[49] !== C || t[50] !== r || t[51] !== ot || t[52] !== a || t[53] !== i ? (A = (n || r) && /* @__PURE__ */ w(ct, { children: /* @__PURE__ */ rt("span", { className: ot, children: [
|
|
115
|
+
/* @__PURE__ */ w(lt, { name: n, theme: "light", source: r, "aria-hidden": "true", size: n || e === "top" ? "large" : C }),
|
|
116
|
+
(e === "left" && a || e === "top" && (i || a)) && /* @__PURE__ */ w(at, { variant: "highlight", label: i })
|
|
117
|
+
] }) }), t[47] = n, t[48] = e, t[49] = C, t[50] = r, t[51] = ot, t[52] = a, t[53] = i, t[54] = A) : A = t[54];
|
|
118
|
+
let g;
|
|
119
|
+
t[55] !== s || t[56] !== U ? (g = /* @__PURE__ */ w("span", { className: U, children: s }), t[55] = s, t[56] = U, t[57] = g) : g = t[57];
|
|
120
|
+
let u;
|
|
121
|
+
t[58] !== e || t[59] !== a || t[60] !== i ? (u = e === "left" && i && !a && /* @__PURE__ */ w(at, { variant: "default", label: i, className: o.numberIndicator }), t[58] = e, t[59] = a, t[60] = i, t[61] = u) : u = t[61];
|
|
122
|
+
let V;
|
|
123
|
+
return t[62] !== b || t[63] !== c || t[64] !== v || t[65] !== k || t[66] !== R || t[67] !== I || t[68] !== N || t[69] !== A || t[70] !== g || t[71] !== u ? (V = /* @__PURE__ */ rt(b, { className: R, ...I, ...c, ...k, ref: v, children: [
|
|
124
|
+
N,
|
|
125
|
+
A,
|
|
126
|
+
g,
|
|
127
|
+
u
|
|
128
|
+
] }), t[62] = b, t[63] = c, t[64] = v, t[65] = k, t[66] = R, t[67] = I, t[68] = N, t[69] = A, t[70] = g, t[71] = u, t[72] = V) : V = t[72], V;
|
|
129
|
+
});
|
|
130
|
+
Pt.displayName = "DSActionLink";
|
|
131
|
+
export {
|
|
132
|
+
Kt as A,
|
|
133
|
+
Pt as D,
|
|
134
|
+
Vt as a,
|
|
135
|
+
yt as b,
|
|
136
|
+
Bt as c,
|
|
137
|
+
St as v
|
|
138
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { h as n } from "./has-window.ut_-aShB.js";
|
|
3
|
+
import { g as r } from "./helpers.BbWkXTr3.js";
|
|
4
|
+
import "./index.CgTHIF3K.js";
|
|
5
|
+
import "react";
|
|
6
|
+
const e = "ds-alert-live-region", t = "ds-status-live-region", c = () => {
|
|
7
|
+
if (n)
|
|
8
|
+
return document.getElementById(e);
|
|
9
|
+
}, m = () => {
|
|
10
|
+
if (n)
|
|
11
|
+
return document.getElementById(t);
|
|
12
|
+
}, u = () => {
|
|
13
|
+
if (!n)
|
|
14
|
+
return;
|
|
15
|
+
const o = document.querySelectorAll(`#${e}`), i = document.querySelectorAll(`#${t}`);
|
|
16
|
+
if (o.length > 1)
|
|
17
|
+
throw new Error(r("DSAriaLiveRegions", `The DSAriaLiveRegions component with id="${e}" should only be present once on the page. Found ${o.length} instances.`));
|
|
18
|
+
if (i.length > 1)
|
|
19
|
+
throw new Error(r("DSAriaLiveRegions", `The DSAriaLiveRegions component with id="${t}" should only be present once on the page. Found ${i.length} instances.`));
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
e as A,
|
|
23
|
+
t as a,
|
|
24
|
+
c as b,
|
|
25
|
+
m as g,
|
|
26
|
+
u as v
|
|
27
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as w, jsxs as V } from "react/jsx-runtime";
|
|
3
|
+
import { d as q } from "./index.CgTHIF3K.js";
|
|
4
|
+
import { c as F } from "./index.CEyLAtio.js";
|
|
5
|
+
import { isValidElement as M, useState as I, useEffect as O, cloneElement as R } from "react";
|
|
6
|
+
import { D as K } from "./Button.B7xF1E19.js";
|
|
7
|
+
import { DSLink as X } from "../link.D_FjTyoZ.js";
|
|
8
|
+
import { g as d, r as z } from "./helpers.BbWkXTr3.js";
|
|
9
|
+
import '../assets/Breadcrumb.BaYrwrYl.css';const G = "ds-breadcrumb_root_1e9hu_1", H = "ds-breadcrumb_show-all-button_1e9hu_30", T = {
|
|
10
|
+
root: G,
|
|
11
|
+
showAllButton: H
|
|
12
|
+
}, $ = 4, J = ({
|
|
13
|
+
aria: o,
|
|
14
|
+
links: e
|
|
15
|
+
}) => {
|
|
16
|
+
var s, a;
|
|
17
|
+
if (!o || typeof o != "object" || Object.keys(o).length === 0 || !o["aria-label"] && !o["aria-labelledby"] || ((s = o["aria-label"]) == null ? void 0 : s.trim()) === "" && ((a = o["aria-labelledby"]) == null ? void 0 : a.trim()) === "")
|
|
18
|
+
throw new Error(d("DSBreadcrumb", '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.'));
|
|
19
|
+
if (Array.isArray(e)) {
|
|
20
|
+
if (e.length === 0)
|
|
21
|
+
throw new Error(d("DSBreadcrumb", "The links array must not be empty."));
|
|
22
|
+
if (e.length < 2)
|
|
23
|
+
throw new Error(d("DSBreadcrumb", "The links array must have at least two elements."));
|
|
24
|
+
} else throw new Error(d("DSBreadcrumb", z("links", "DSBreadcrumb")));
|
|
25
|
+
e.forEach(({
|
|
26
|
+
href: t,
|
|
27
|
+
label: r,
|
|
28
|
+
wrapper: l
|
|
29
|
+
}) => {
|
|
30
|
+
var n;
|
|
31
|
+
if (l && !M(l))
|
|
32
|
+
throw new Error(d("DSBreadcrumb", `The link with label "${r}" provided an invalid ReactElement as wrapper property.`));
|
|
33
|
+
l && t && console.warn(d("DSBreadcrumb", `The link with label "${r}" has both a wrapper and an href property. Please use only one.`)), l && M(l) && ((n = l.props) != null && n.children) && console.warn(d("DSBreadcrumb", `The link with label "${r}" contains a wrapper with children. Please remove the children, as they will be replaced. For example: <Link href="#" />`));
|
|
34
|
+
});
|
|
35
|
+
}, le = (o) => {
|
|
36
|
+
const e = q.c(40);
|
|
37
|
+
let s, a, t, r, l;
|
|
38
|
+
e[0] !== o ? ({
|
|
39
|
+
aria: s,
|
|
40
|
+
className: a,
|
|
41
|
+
links: t,
|
|
42
|
+
showAllButtonProps: l,
|
|
43
|
+
...r
|
|
44
|
+
} = o, e[0] = o, e[1] = s, e[2] = a, e[3] = t, e[4] = r, e[5] = l) : (s = e[1], a = e[2], t = e[3], r = e[4], l = e[5]), process.env.NODE_ENV !== "production" && J({
|
|
45
|
+
aria: s,
|
|
46
|
+
links: t
|
|
47
|
+
});
|
|
48
|
+
let n;
|
|
49
|
+
e[6] !== l ? (n = l || {}, e[6] = l, e[7] = n) : n = e[7];
|
|
50
|
+
let i, c;
|
|
51
|
+
e[8] !== n ? ({
|
|
52
|
+
label: c,
|
|
53
|
+
...i
|
|
54
|
+
} = n, e[8] = n, e[9] = i, e[10] = c) : (i = e[9], c = e[10]);
|
|
55
|
+
const m = c === void 0 ? "Show all links" : c, [h, P] = I(t.length <= $);
|
|
56
|
+
let S;
|
|
57
|
+
e[11] !== t.length ? (S = () => {
|
|
58
|
+
P(t.length <= $);
|
|
59
|
+
}, e[11] = t.length, e[12] = S) : S = e[12];
|
|
60
|
+
let g;
|
|
61
|
+
e[13] !== t ? (g = [t], e[13] = t, e[14] = g) : g = e[14], O(S, g);
|
|
62
|
+
let B;
|
|
63
|
+
e[15] !== a ? (B = F(T.root, a), e[15] = a, e[16] = B) : B = e[16];
|
|
64
|
+
const L = B;
|
|
65
|
+
let k;
|
|
66
|
+
e[17] !== m || e[18] !== i || e[19] !== h ? (k = () => h ? null : /* @__PURE__ */ w("li", { children: /* @__PURE__ */ w(K, { ...i, className: T.showAllButton, type: "button", title: m, variant: "ghost", onClick: () => P(!0), children: /* @__PURE__ */ w("span", { "aria-hidden": "true", children: "..." }) }) }), e[17] = m, e[18] = i, e[19] = h, e[20] = k) : k = e[20];
|
|
67
|
+
const A = k, x = Q;
|
|
68
|
+
let v;
|
|
69
|
+
e[21] === Symbol.for("react.memo_cache_sentinel") ? (v = (y) => y.map((C, j) => /* @__PURE__ */ w("li", { children: x(C, y.length - 1, j) }, j)), e[21] = v) : v = e[21];
|
|
70
|
+
const _ = v;
|
|
71
|
+
let D;
|
|
72
|
+
e[22] !== h ? (D = (y) => _(h ? y : y.slice(-2)), e[22] = h, e[23] = D) : D = e[23];
|
|
73
|
+
const N = D;
|
|
74
|
+
let u;
|
|
75
|
+
e[24] !== t[0] ? (u = _([t[0]]), e[24] = t[0], e[25] = u) : u = e[25];
|
|
76
|
+
let b;
|
|
77
|
+
e[26] !== A ? (b = A(), e[26] = A, e[27] = b) : b = e[27];
|
|
78
|
+
let f;
|
|
79
|
+
e[28] !== N || e[29] !== t ? (f = N(t.slice(1)), e[28] = N, e[29] = t, e[30] = f) : f = e[30];
|
|
80
|
+
let p;
|
|
81
|
+
e[31] !== b || e[32] !== f || e[33] !== u ? (p = /* @__PURE__ */ V("ol", { children: [
|
|
82
|
+
u,
|
|
83
|
+
b,
|
|
84
|
+
f
|
|
85
|
+
] }), e[31] = b, e[32] = f, e[33] = u, e[34] = p) : p = e[34];
|
|
86
|
+
let E;
|
|
87
|
+
return e[35] !== s || e[36] !== r || e[37] !== L || e[38] !== p ? (E = /* @__PURE__ */ w("nav", { className: L, ...r, ...s, children: p }), e[35] = s, e[36] = r, e[37] = L, e[38] = p, e[39] = E) : E = e[39], E;
|
|
88
|
+
};
|
|
89
|
+
function Q(o, e, s) {
|
|
90
|
+
const {
|
|
91
|
+
label: a,
|
|
92
|
+
href: t,
|
|
93
|
+
wrapper: r,
|
|
94
|
+
iconName: l
|
|
95
|
+
} = o, n = e === 0, i = s === e, c = i && !n ? "page" : void 0, m = /* @__PURE__ */ w(X, { href: r ? void 0 : t, iconName: l, "aria-current": r ? void 0 : c, active: i && !n, children: a });
|
|
96
|
+
return r ? R(r, {
|
|
97
|
+
"aria-current": c,
|
|
98
|
+
children: m
|
|
99
|
+
}) : m;
|
|
100
|
+
}
|
|
101
|
+
export {
|
|
102
|
+
le as D,
|
|
103
|
+
$ as M,
|
|
104
|
+
J as v
|
|
105
|
+
};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as co, jsx as so } from "react/jsx-runtime";
|
|
3
|
+
import { d as ho } from "./index.CgTHIF3K.js";
|
|
4
|
+
import { c as io } from "./index.CEyLAtio.js";
|
|
5
|
+
import { forwardRef as uo } from "react";
|
|
6
|
+
import { u as lo } from "./useBreakpoint.CMOR9ZOB.js";
|
|
7
|
+
import { D as _o } from "./Icon.DGTYCv63.js";
|
|
8
|
+
import { DSSpinner as go } from "../spinner.Dht6FspZ.js";
|
|
9
|
+
import { g as ro } from "./helpers.BbWkXTr3.js";
|
|
10
|
+
import '../assets/Button.Dw8H5nFS.css';const mo = "ds-button_root_94r67_1", fo = "ds-button_root--highlight_94r67_75", bo = "ds-button_root--dark-highlight_94r67_75", vo = "ds-button_root--filled_94r67_151", ko = "ds-button_root--outline_94r67_179", po = "ds-button_root--ghost_94r67_206", Do = "ds-button_root--ghost-flush_94r67_231", No = "ds-button_root--small_94r67_237", So = "ds-button_root--navigation_94r67_317", Oo = "ds-button_root--dark-filled_94r67_393", Fo = "ds-button_root--dark-outline_94r67_450", yo = "ds-button_root--dark-ghost_94r67_506", Go = "ds-button_root--dark-ghost-flush_94r67_560", Ho = "ds-button_root--icon-left_94r67_635", Io = "ds-button_root--icon-only_94r67_638", Bo = "ds-button_root--icon-only-small_94r67_647", Lo = "ds-button_icon--navigation_94r67_663", wo = "ds-button_icon--hidden_94r67_670", Co = "ds-button_label--hidden_94r67_674", To = "ds-button_label--loading_94r67_686", Eo = "ds-button_loader_94r67_690", t = {
|
|
11
|
+
root: mo,
|
|
12
|
+
rootHighlight: fo,
|
|
13
|
+
rootDarkHighlight: bo,
|
|
14
|
+
rootFilled: vo,
|
|
15
|
+
rootOutline: ko,
|
|
16
|
+
rootGhost: po,
|
|
17
|
+
rootGhostFlush: Do,
|
|
18
|
+
rootSmall: No,
|
|
19
|
+
rootNavigation: So,
|
|
20
|
+
rootDarkFilled: Oo,
|
|
21
|
+
rootDarkOutline: Fo,
|
|
22
|
+
rootDarkGhost: yo,
|
|
23
|
+
rootDarkGhostFlush: Go,
|
|
24
|
+
rootIconLeft: Ho,
|
|
25
|
+
rootIconOnly: Io,
|
|
26
|
+
rootIconOnlySmall: Bo,
|
|
27
|
+
iconNavigation: Lo,
|
|
28
|
+
iconHidden: wo,
|
|
29
|
+
labelHidden: Co,
|
|
30
|
+
labelLoading: To,
|
|
31
|
+
loader: Eo
|
|
32
|
+
}, $o = ["medium", "small"], qo = ["highlight", "filled", "outline", "ghost", "navigation"], Po = ({
|
|
33
|
+
variant: m,
|
|
34
|
+
size: f,
|
|
35
|
+
theme: o
|
|
36
|
+
}) => {
|
|
37
|
+
if (m === "navigation" && (f === "small" && console.warn(ro("DSButton", 'A "size" prop should not be used in combination with variant="navigation". Please remove the "size" prop.')), o === "dark"))
|
|
38
|
+
throw new Error(ro("DSButton", 'A DSButton with variant="navigation" does not support theme="dark". Please remove the "theme" prop.'));
|
|
39
|
+
}, xo = uo((m, f) => {
|
|
40
|
+
const o = ho.c(64);
|
|
41
|
+
let a, d, c, l, e, r, h, b, v, k, p, D, N, S, O;
|
|
42
|
+
o[0] !== m ? ({
|
|
43
|
+
children: d,
|
|
44
|
+
aria: a,
|
|
45
|
+
className: c,
|
|
46
|
+
disabled: b,
|
|
47
|
+
hideLabel: v,
|
|
48
|
+
iconName: l,
|
|
49
|
+
iconPosition: k,
|
|
50
|
+
iconSource: e,
|
|
51
|
+
isFlush: p,
|
|
52
|
+
loading: D,
|
|
53
|
+
size: N,
|
|
54
|
+
theme: S,
|
|
55
|
+
variant: O,
|
|
56
|
+
onClick: r,
|
|
57
|
+
...h
|
|
58
|
+
} = m, o[0] = m, o[1] = a, o[2] = d, o[3] = c, o[4] = l, o[5] = e, o[6] = r, o[7] = h, o[8] = b, o[9] = v, o[10] = k, o[11] = p, o[12] = D, o[13] = N, o[14] = S, o[15] = O) : (a = o[1], d = o[2], c = o[3], l = o[4], e = o[5], r = o[6], h = o[7], b = o[8], v = o[9], k = o[10], p = o[11], D = o[12], N = o[13], S = o[14], O = o[15]);
|
|
59
|
+
const F = b === void 0 ? !1 : b, C = v === void 0 ? !1 : v, ao = k === void 0 ? "left" : k, y = p === void 0 ? !1 : p, s = D === void 0 ? !1 : D, G = N === void 0 ? "medium" : N, i = S === void 0 ? "light" : S, n = O === void 0 ? "filled" : O;
|
|
60
|
+
process.env.NODE_ENV !== "production" && Po({
|
|
61
|
+
variant: n,
|
|
62
|
+
size: G,
|
|
63
|
+
theme: i
|
|
64
|
+
});
|
|
65
|
+
const T = n === "filled", E = n === "highlight", P = n === "outline", x = n === "ghost" && y !== !0, z = n === "navigation", A = n === "ghost" && y === !0, V = i === "dark" && n === "filled", j = i === "dark" && n === "highlight", R = i === "dark" && n === "outline", U = i === "dark" && n === "ghost" && y !== !0, M = i === "dark" && n === "ghost" && y === !0, Z = G === "small" || n === "navigation", $ = ao === "left", q = lo(C) && G === "medium" && n !== "navigation", J = lo(C) && G === "small" && n !== "navigation";
|
|
66
|
+
let H;
|
|
67
|
+
o[16] !== c || o[17] !== E || o[18] !== P || o[19] !== x || o[20] !== z || o[21] !== A || o[22] !== V || o[23] !== j || o[24] !== R || o[25] !== U || o[26] !== M || o[27] !== Z || o[28] !== $ || o[29] !== q || o[30] !== J || o[31] !== T ? (H = io(t.root, c, {
|
|
68
|
+
[t.rootFilled]: T,
|
|
69
|
+
[t.rootHighlight]: E,
|
|
70
|
+
[t.rootOutline]: P,
|
|
71
|
+
[t.rootGhost]: x,
|
|
72
|
+
[t.rootNavigation]: z,
|
|
73
|
+
[t.rootGhostFlush]: A,
|
|
74
|
+
[t.rootDarkFilled]: V,
|
|
75
|
+
[t.rootDarkHighlight]: j,
|
|
76
|
+
[t.rootDarkOutline]: R,
|
|
77
|
+
[t.rootDarkGhost]: U,
|
|
78
|
+
[t.rootDarkGhostFlush]: M,
|
|
79
|
+
[t.rootSmall]: Z,
|
|
80
|
+
[t.rootIconLeft]: $,
|
|
81
|
+
[t.rootIconOnly]: q,
|
|
82
|
+
[t.rootIconOnlySmall]: J
|
|
83
|
+
}), o[16] = c, o[17] = E, o[18] = P, o[19] = x, o[20] = z, o[21] = A, o[22] = V, o[23] = j, o[24] = R, o[25] = U, o[26] = M, o[27] = Z, o[28] = $, o[29] = q, o[30] = J, o[31] = T, o[32] = H) : H = o[32];
|
|
84
|
+
const K = H, Q = lo(C) && n !== "navigation";
|
|
85
|
+
let I;
|
|
86
|
+
o[33] !== s || o[34] !== Q ? (I = io(t.label, {
|
|
87
|
+
[t.labelHidden]: Q,
|
|
88
|
+
[t.labelLoading]: s
|
|
89
|
+
}), o[33] = s, o[34] = Q, o[35] = I) : I = o[35];
|
|
90
|
+
const W = I, X = n === "navigation";
|
|
91
|
+
let B;
|
|
92
|
+
o[36] !== s || o[37] !== X ? (B = io({
|
|
93
|
+
[t.iconNavigation]: X,
|
|
94
|
+
[t.iconHidden]: s
|
|
95
|
+
}), o[36] = s, o[37] = X, o[38] = B) : B = o[38];
|
|
96
|
+
const Y = B, oo = i === "light" && n === "filled" || i === "dark" && n === "outline" || i === "dark" && n === "ghost" ? "dark" : "light";
|
|
97
|
+
let L;
|
|
98
|
+
o[39] !== F || o[40] !== s || o[41] !== r ? (L = (eo) => {
|
|
99
|
+
if (F || s) {
|
|
100
|
+
eo.preventDefault();
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
r && r(eo);
|
|
104
|
+
}, o[39] = F, o[40] = s, o[41] = r, o[42] = L) : L = o[42];
|
|
105
|
+
const to = L, no = F || s;
|
|
106
|
+
let u;
|
|
107
|
+
o[43] !== s ? (u = s && /* @__PURE__ */ so(go, { className: t.loader, aria: {
|
|
108
|
+
"aria-label": "Loading state"
|
|
109
|
+
} }), o[43] = s, o[44] = u) : u = o[44];
|
|
110
|
+
let _;
|
|
111
|
+
o[45] !== d || o[46] !== W ? (_ = /* @__PURE__ */ so("span", { className: W, children: d }), o[45] = d, o[46] = W, o[47] = _) : _ = o[47];
|
|
112
|
+
let g;
|
|
113
|
+
o[48] !== Y || o[49] !== l || o[50] !== e || o[51] !== oo ? (g = (l || e) && /* @__PURE__ */ so(_o, { name: l, theme: oo, source: e, className: Y, "aria-hidden": "true" }), o[48] = Y, o[49] = l, o[50] = e, o[51] = oo, o[52] = g) : g = o[52];
|
|
114
|
+
let w;
|
|
115
|
+
return o[53] !== a || o[54] !== to || o[55] !== s || o[56] !== f || o[57] !== h || o[58] !== K || o[59] !== no || o[60] !== u || o[61] !== _ || o[62] !== g ? (w = /* @__PURE__ */ co("button", { className: K, type: "submit", onClick: to, ...a, ...h, "aria-disabled": no, "aria-busy": s, ref: f, children: [
|
|
116
|
+
u,
|
|
117
|
+
_,
|
|
118
|
+
g
|
|
119
|
+
] }), o[53] = a, o[54] = to, o[55] = s, o[56] = f, o[57] = h, o[58] = K, o[59] = no, o[60] = u, o[61] = _, o[62] = g, o[63] = w) : w = o[63], w;
|
|
120
|
+
});
|
|
121
|
+
xo.displayName = "DSButton";
|
|
122
|
+
export {
|
|
123
|
+
$o as B,
|
|
124
|
+
xo as D,
|
|
125
|
+
qo as a,
|
|
126
|
+
Po as v
|
|
127
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as f, jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { c as p } from "./index.CEyLAtio.js";
|
|
4
|
+
import { forwardRef as j, useRef as B, useState as H, useEffect as V, useCallback as $ } from "react";
|
|
5
|
+
import { u as A } from "./useBreakpoint.CMOR9ZOB.js";
|
|
6
|
+
import "./index.CgTHIF3K.js";
|
|
7
|
+
import { D as x } from "./Icon.DGTYCv63.js";
|
|
8
|
+
import { D as L } from "./SystemFeedback.B9f67mjJ.js";
|
|
9
|
+
import { g as C } from "./helpers.BbWkXTr3.js";
|
|
10
|
+
import '../assets/Checkbox.BKHQN_tu.css';const O = "ds-checkbox_root_1tuqo_1", U = "ds-checkbox_root--disabled_1tuqo_21", z = "ds-checkbox_checkbox_1tuqo_25", F = "ds-checkbox_icon-check_1tuqo_41", J = "ds-checkbox_icon-minus_1tuqo_42", K = "ds-checkbox_checkbox--invalid_1tuqo_66", Q = "ds-checkbox_label--hidden_1tuqo_71", R = "ds-checkbox_input_1tuqo_84", T = "ds-checkbox_label_1tuqo_71", W = "ds-checkbox_feedback_1tuqo_198", e = {
|
|
11
|
+
root: O,
|
|
12
|
+
rootDisabled: U,
|
|
13
|
+
checkbox: z,
|
|
14
|
+
iconCheck: F,
|
|
15
|
+
iconMinus: J,
|
|
16
|
+
checkboxInvalid: K,
|
|
17
|
+
labelHidden: Q,
|
|
18
|
+
input: R,
|
|
19
|
+
label: T,
|
|
20
|
+
feedback: W
|
|
21
|
+
}, X = ({
|
|
22
|
+
label: c,
|
|
23
|
+
id: a,
|
|
24
|
+
invalid: n,
|
|
25
|
+
systemFeedback: b
|
|
26
|
+
}) => {
|
|
27
|
+
if (!c)
|
|
28
|
+
throw new Error(C("DSCheckbox", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSCheckbox component. If you don't want to display a label, set hideLabel={true}.`));
|
|
29
|
+
if (b && n && !a)
|
|
30
|
+
throw new Error(C("DSCheckbox", `A unique "id" prop is required when passing in the systemFeedback prop and setting invalid to true. Please add a unique "id" prop to the DSCheckbox component with label: "${c}".`));
|
|
31
|
+
}, Y = j(({
|
|
32
|
+
label: c,
|
|
33
|
+
checkboxGroupId: a,
|
|
34
|
+
checked: n,
|
|
35
|
+
className: b,
|
|
36
|
+
defaultChecked: D = !1,
|
|
37
|
+
disabled: r = !1,
|
|
38
|
+
hideLabel: q = !1,
|
|
39
|
+
id: h,
|
|
40
|
+
indeterminate: m = !1,
|
|
41
|
+
invalid: s = !1,
|
|
42
|
+
systemFeedback: i,
|
|
43
|
+
onChange: u,
|
|
44
|
+
...N
|
|
45
|
+
}, l) => {
|
|
46
|
+
process.env.NODE_ENV !== "production" && X({
|
|
47
|
+
label: c,
|
|
48
|
+
id: h,
|
|
49
|
+
invalid: s,
|
|
50
|
+
systemFeedback: i
|
|
51
|
+
});
|
|
52
|
+
const d = B(null), [S, y] = H(D), v = A(q);
|
|
53
|
+
V(() => {
|
|
54
|
+
d && d.current && (d.current.indeterminate = m);
|
|
55
|
+
}, [m]);
|
|
56
|
+
const k = n !== void 0, w = k ? n : S, _ = `${h}-feedback`, g = [s && i && _, s && a && `${a}-feedback`].filter(Boolean).join(" ") || void 0, E = p(e.root, {
|
|
57
|
+
[e.rootDisabled]: r
|
|
58
|
+
}), I = p(e.label, {
|
|
59
|
+
// hide label only visually to keep them available for assistive technologies
|
|
60
|
+
[e.labelHidden]: v
|
|
61
|
+
}), M = p(e.checkbox, {
|
|
62
|
+
[e.checkboxInvalid]: s
|
|
63
|
+
}), P = $((o) => {
|
|
64
|
+
if (r) {
|
|
65
|
+
o.preventDefault();
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
k || y(o.target.checked), u && u(o);
|
|
69
|
+
}, [r, k, u]);
|
|
70
|
+
return /* @__PURE__ */ f("div", { className: b, children: [
|
|
71
|
+
/* @__PURE__ */ f("label", { className: E, children: [
|
|
72
|
+
/* @__PURE__ */ t("input", { id: h, type: "checkbox", className: e.input, ref: (o) => {
|
|
73
|
+
typeof l == "function" ? l(o) : l !== null && (l.current = o), d.current = o;
|
|
74
|
+
}, ...N, checked: w, disabled: r, "aria-label": c, "aria-describedby": g, "aria-invalid": s, onChange: P }),
|
|
75
|
+
/* @__PURE__ */ f("div", { className: M, children: [
|
|
76
|
+
/* @__PURE__ */ t(x, { name: "check", className: e.iconCheck, "aria-hidden": "true" }),
|
|
77
|
+
/* @__PURE__ */ t(x, { name: "minus", className: e.iconMinus, "aria-hidden": "true" })
|
|
78
|
+
] }),
|
|
79
|
+
/* @__PURE__ */ t("span", { className: I, children: c })
|
|
80
|
+
] }),
|
|
81
|
+
s && i && /* @__PURE__ */ t(L, { id: _, variant: "error", className: e.feedback, message: i })
|
|
82
|
+
] });
|
|
83
|
+
});
|
|
84
|
+
Y.displayName = "DSCheckbox";
|
|
85
|
+
export {
|
|
86
|
+
Y as D,
|
|
87
|
+
X as v
|
|
88
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _ } from "react/jsx-runtime";
|
|
3
|
+
import { d as w } from "./index.CgTHIF3K.js";
|
|
4
|
+
import { c as G } from "./index.CEyLAtio.js";
|
|
5
|
+
import { D as q } from "./Fieldset.CjIfmN_5.js";
|
|
6
|
+
import S from "react";
|
|
7
|
+
import { g as x, r as N } from "./helpers.BbWkXTr3.js";
|
|
8
|
+
import { D as z } from "./Checkbox.DxV7-F5W.js";
|
|
9
|
+
import '../assets/CheckboxGroup.Dd-Huo7x.css';const F = "ds-checkbox-group_root_12fot_1", H = "ds-checkbox-group_root--horizontal_12fot_9", I = "ds-checkbox-group_root--invalid_12fot_12", g = {
|
|
10
|
+
root: F,
|
|
11
|
+
rootHorizontal: H,
|
|
12
|
+
rootInvalid: I
|
|
13
|
+
}, O = ({
|
|
14
|
+
children: c,
|
|
15
|
+
description: e,
|
|
16
|
+
id: t,
|
|
17
|
+
legend: s,
|
|
18
|
+
systemFeedback: r
|
|
19
|
+
}) => {
|
|
20
|
+
if (!t && (e || r))
|
|
21
|
+
throw new Error(x("DSCheckboxGroup", 'A unique "id" prop is required when providing the description or systemFeedback property. Please add a unique "id" prop to the DSCheckboxGroup component.'));
|
|
22
|
+
if (!s)
|
|
23
|
+
throw new Error(x("DSCheckboxGroup", N("legend", "DSCheckboxGroup")));
|
|
24
|
+
if (!c)
|
|
25
|
+
throw new Error(x("DSCheckboxGroup", "The component requires DSCheckbox components to be explicitly set as its children. Ensure that you include individual DSCheckbox components within the DSCheckboxGroup to create a cohesive checkbox group."));
|
|
26
|
+
S.Children.forEach(c, (o) => {
|
|
27
|
+
if (!S.isValidElement(o) || // Object.keys(child.type)[1] !== '_payload' checks if the object is currently in a hydration phase
|
|
28
|
+
o.type !== z && Object.keys(o.type)[1] !== "_payload") {
|
|
29
|
+
const i = S.isValidElement(o) ? `Currently you are passing a child of type: ${JSON.stringify(o.type)}.` : "Currently you are passing an invalid React element.";
|
|
30
|
+
throw new Error(x("DSCheckboxGroup", `The component requires the children to be DSCheckbox elements. ${i} Ensure that you include individual DSCheckbox components within the DSCheckboxGroup to create a cohesive checkbox group.`));
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
}, A = (c) => {
|
|
34
|
+
const e = w.c(29);
|
|
35
|
+
let t, s, r, o, i, a, n, d, p, h, u;
|
|
36
|
+
e[0] !== c ? ({
|
|
37
|
+
children: t,
|
|
38
|
+
legend: i,
|
|
39
|
+
className: s,
|
|
40
|
+
description: r,
|
|
41
|
+
direction: d,
|
|
42
|
+
disabled: p,
|
|
43
|
+
id: o,
|
|
44
|
+
invalid: h,
|
|
45
|
+
required: u,
|
|
46
|
+
systemFeedback: n,
|
|
47
|
+
...a
|
|
48
|
+
} = c, e[0] = c, e[1] = t, e[2] = s, e[3] = r, e[4] = o, e[5] = i, e[6] = a, e[7] = n, e[8] = d, e[9] = p, e[10] = h, e[11] = u) : (t = e[1], s = e[2], r = e[3], o = e[4], i = e[5], a = e[6], n = e[7], d = e[8], p = e[9], h = e[10], u = e[11]);
|
|
49
|
+
const E = d === void 0 ? "vertical" : d, k = p === void 0 ? !1 : p, m = h === void 0 ? !1 : h, v = u === void 0 ? !1 : u;
|
|
50
|
+
process.env.NODE_ENV !== "production" && O({
|
|
51
|
+
children: t,
|
|
52
|
+
description: r,
|
|
53
|
+
id: o,
|
|
54
|
+
legend: i,
|
|
55
|
+
systemFeedback: n
|
|
56
|
+
});
|
|
57
|
+
const D = E === "horizontal", C = m && !!n;
|
|
58
|
+
let b;
|
|
59
|
+
e[12] !== D || e[13] !== C ? (b = G(g.root, {
|
|
60
|
+
[g.rootHorizontal]: D,
|
|
61
|
+
[g.rootInvalid]: C
|
|
62
|
+
}), e[12] = D, e[13] = C, e[14] = b) : b = e[14];
|
|
63
|
+
const y = b;
|
|
64
|
+
let l;
|
|
65
|
+
e[15] !== t || e[16] !== y ? (l = /* @__PURE__ */ _("div", { className: y, children: t }), e[15] = t, e[16] = y, e[17] = l) : l = e[17];
|
|
66
|
+
let f;
|
|
67
|
+
return e[18] !== s || e[19] !== r || e[20] !== k || e[21] !== o || e[22] !== m || e[23] !== i || e[24] !== v || e[25] !== a || e[26] !== n || e[27] !== l ? (f = /* @__PURE__ */ _(q, { id: o, legend: i, className: s, description: r, disabled: k, required: v, invalid: m, systemFeedback: n, ...a, children: l }), e[18] = s, e[19] = r, e[20] = k, e[21] = o, e[22] = m, e[23] = i, e[24] = v, e[25] = a, e[26] = n, e[27] = l, e[28] = f) : f = e[28], f;
|
|
68
|
+
};
|
|
69
|
+
export {
|
|
70
|
+
A as D,
|
|
71
|
+
O as v
|
|
72
|
+
};
|