@stihl-design-system/components 1.0.0-RC.3 → 1.0.0-RC.31
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.D_1YqlWl.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 +66 -28
- 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.Y-YzUHhF.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,57 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { g as t } from "./helpers.BbWkXTr3.js";
|
|
3
|
+
import "./index.CgTHIF3K.js";
|
|
4
|
+
import "react";
|
|
5
|
+
const i = 8, d = 5, w = ["medium", "small"], c = ["color", "date", "datetime-local", "email", "month", "number", "range", "tel", "text", "time", "url"], p = ["week", "file", "hidden", "button", "checkbox", "password", "radio", "search", "reset", "submit", "image", "datetime"], I = ({
|
|
6
|
+
id: e,
|
|
7
|
+
label: a,
|
|
8
|
+
prefix: o,
|
|
9
|
+
suffix: s,
|
|
10
|
+
leadingIconName: r,
|
|
11
|
+
leadingIconSource: m,
|
|
12
|
+
actionButtonProps: n
|
|
13
|
+
}) => {
|
|
14
|
+
if (!e)
|
|
15
|
+
throw new Error(t("DSInput", 'A unique "id" prop is required. Please add a unique "id" prop to the DSInput component.'));
|
|
16
|
+
if (!a)
|
|
17
|
+
throw new Error(t("DSInput", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSInput component. If you don't want to display a label, set hideLabel={true}.`));
|
|
18
|
+
if (n && !n.label)
|
|
19
|
+
throw new Error(t("DSInput", "The action button needs to have a label for a11y reasons. Please add a label to the actionButtonProps."));
|
|
20
|
+
if (n && !(n != null && n.iconName) && !(n != null && n.iconSource))
|
|
21
|
+
throw new Error(t("DSInput", "The action button needs to have an iconName or iconSource. Please add an iconName or iconSource to the actionButtonProps."));
|
|
22
|
+
o && o.length > i && console.warn(t("DSInput", `Prefix length must not exceed ${i} characters.`)), s && s.length > d && console.warn(t("DSInput", `Suffix length must not exceed ${d} characters.`)), o && (r || m) && console.warn(t("DSInput", "Prefix and a leading Icon cannot be used at the same time.")), s && (n != null && n.iconName || n != null && n.iconSource) && console.warn(t("DSInput", "Suffix and an action button cannot be used at the same time."));
|
|
23
|
+
}, b = (e, a) => {
|
|
24
|
+
if (!c.includes(e) && !p.includes(e))
|
|
25
|
+
throw new Error(t("DSInput", `The type "${e}" is not supported by the DSInput component.`));
|
|
26
|
+
if (a === "off" && e === "number")
|
|
27
|
+
return;
|
|
28
|
+
const o = {
|
|
29
|
+
number: "Type number is not recommended. Use type text with inputmode numeric/decimal or DSInputStepper component instead.",
|
|
30
|
+
button: "Type button is not recommended. Use DSButton component instead.",
|
|
31
|
+
file: "Type file is not recommended. Use DSInputFile component instead.",
|
|
32
|
+
checkbox: "Type checkbox is not recommended. Use DSCheckbox component instead.",
|
|
33
|
+
password: "Type password is not recommended. Use DSInputPassword component instead.",
|
|
34
|
+
radio: "Type radio is not recommended. Use DSRadioGroup component instead.",
|
|
35
|
+
search: "Type search is not recommended. Use DSInputSearch component instead.",
|
|
36
|
+
reset: "Type reset is not recommended. Use DSButton component with type reset instead.",
|
|
37
|
+
submit: "Type submit is not recommended. Use DSButton component with type submit instead.",
|
|
38
|
+
image: "Type image is not recommended. Use DSButton component instead.",
|
|
39
|
+
datetime: "Type datetime is not recommended. Use type datetime-local instead.",
|
|
40
|
+
week: "Type week is not recommended. Mobile safari does not support type week.",
|
|
41
|
+
hidden: 'Type hidden is not supported by DSInput component. Use a default <input type="hidden" /> element instead.'
|
|
42
|
+
};
|
|
43
|
+
o[e] && console.warn(t("DSInput", o[e]));
|
|
44
|
+
}, u = () => "showPicker" in HTMLInputElement.prototype && !!window.navigator.userAgent.match(/chrome|chromium|crios|edg/i), T = (e, a) => u() && (e || a), D = (e) => e === "date" || e === "datetime-local" || e === "month", y = (e) => e === "time";
|
|
45
|
+
export {
|
|
46
|
+
w as I,
|
|
47
|
+
i as M,
|
|
48
|
+
c as S,
|
|
49
|
+
p as U,
|
|
50
|
+
d as a,
|
|
51
|
+
b,
|
|
52
|
+
y as c,
|
|
53
|
+
u as h,
|
|
54
|
+
D as i,
|
|
55
|
+
T as s,
|
|
56
|
+
I as v
|
|
57
|
+
};
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as v, jsx as a, Fragment as fe } from "react/jsx-runtime";
|
|
3
|
+
import { c as _ } from "./index.CEyLAtio.js";
|
|
4
|
+
import { forwardRef as ge, useState as U, useRef as be, useCallback as me } from "react";
|
|
5
|
+
import { t as De } from "./translate.nuU7uChI.js";
|
|
6
|
+
import { u as Z } from "./useBreakpoint.CMOR9ZOB.js";
|
|
7
|
+
import "./index.CgTHIF3K.js";
|
|
8
|
+
import { g as _e } from "./AriaLiveRegions.utils.Cb327d_2.js";
|
|
9
|
+
import { Asterisk as he } from "../asterisk.CR60hx8S.js";
|
|
10
|
+
import { D as Ie } from "./Button.B7xF1E19.js";
|
|
11
|
+
import { FileList as ve } from "../filelist.nunJKxkv.js";
|
|
12
|
+
import { D as we } from "./Icon.DGTYCv63.js";
|
|
13
|
+
import { D as ze } from "./SystemFeedback.B9f67mjJ.js";
|
|
14
|
+
import { g as w } from "./helpers.BbWkXTr3.js";
|
|
15
|
+
import '../assets/InputFile.CCQxsulT.css';const Se = "ds-input-file_root_1pdsr_1", Ne = "ds-input-file_hint_1pdsr_1", Le = "ds-input-file_label_1pdsr_1", ke = "ds-input-file_browse-button--is-dragging-filled_1pdsr_4", ye = "ds-input-file_browse-button--is-dragging_1pdsr_4", Be = "ds-input-file_label--hidden_1pdsr_44", Fe = "ds-input-file_label--disabled_1pdsr_57", Te = "ds-input-file_feedback_1pdsr_77", Ae = "ds-input-file_dropzone_1pdsr_82", $e = "ds-input-file_dropzone--disabled_1pdsr_88", Ce = "ds-input-file_dropzone--invalid_1pdsr_102", Ee = "ds-input-file_dropzone--is-dragging_1pdsr_105", Re = "ds-input-file_hint-drop-zone_1pdsr_108", qe = "ds-input-file_upload-icon_1pdsr_111", Pe = "ds-input-file_browse-button-dropzone--is-dragging_1pdsr_114", xe = "ds-input-file_instructions_1pdsr_117", He = "ds-input-file_input_1pdsr_154", Oe = "ds-input-file_required-sr-info_1pdsr_158", t = {
|
|
16
|
+
root: Se,
|
|
17
|
+
hint: Ne,
|
|
18
|
+
label: Le,
|
|
19
|
+
browseButtonIsDraggingFilled: ke,
|
|
20
|
+
browseButtonIsDragging: ye,
|
|
21
|
+
labelHidden: Be,
|
|
22
|
+
labelDisabled: Fe,
|
|
23
|
+
feedback: Te,
|
|
24
|
+
dropzone: Ae,
|
|
25
|
+
dropzoneDisabled: $e,
|
|
26
|
+
dropzoneInvalid: Ce,
|
|
27
|
+
dropzoneIsDragging: Ee,
|
|
28
|
+
hintDropZone: Re,
|
|
29
|
+
uploadIcon: qe,
|
|
30
|
+
browseButtonDropzoneIsDragging: Pe,
|
|
31
|
+
instructions: xe,
|
|
32
|
+
input: He,
|
|
33
|
+
requiredSrInfo: Oe
|
|
34
|
+
}, We = {
|
|
35
|
+
dragAndDropInstructions: "Drag and drop files here or",
|
|
36
|
+
feedbackFileSize: "File too large. Maximum file size is",
|
|
37
|
+
feedbackFileType: "File type not allowed",
|
|
38
|
+
// {0} is the file name
|
|
39
|
+
fileListRemoveSelectionButtonLabel: "Remove {0} from selected files",
|
|
40
|
+
fileListPreviewAltText: "Preview of",
|
|
41
|
+
filesSelectedHint: "The following files are selected",
|
|
42
|
+
required: "required"
|
|
43
|
+
}, Ve = {
|
|
44
|
+
dragAndDropInstructions: "Dateien hier hin ziehen oder",
|
|
45
|
+
feedbackFileSize: "Datei zu groß. Maximale Dateigröße ist",
|
|
46
|
+
feedbackFileType: "Dateityp nicht zugelassen",
|
|
47
|
+
// {0} is the file name
|
|
48
|
+
fileListRemoveSelectionButtonLabel: "Datei {0} aus der Auswahl entfernen",
|
|
49
|
+
fileListPreviewAltText: "Vorschau von",
|
|
50
|
+
filesSelectedHint: "Die folgenden Dateien sind ausgewählt",
|
|
51
|
+
required: "erforderlich"
|
|
52
|
+
}, je = {
|
|
53
|
+
en: We,
|
|
54
|
+
de: Ve
|
|
55
|
+
}, Me = (r, d) => {
|
|
56
|
+
const i = d.split(",").map((l) => l.trim().toLowerCase()).filter(Boolean), u = r.name.toLowerCase(), o = r.type.toLowerCase();
|
|
57
|
+
return i.some((l) => {
|
|
58
|
+
if (l.startsWith("."))
|
|
59
|
+
return u.endsWith(l);
|
|
60
|
+
if (l.endsWith("/*")) {
|
|
61
|
+
const [z] = o.split("/");
|
|
62
|
+
return z === l.slice(0, -2);
|
|
63
|
+
}
|
|
64
|
+
return o === l;
|
|
65
|
+
});
|
|
66
|
+
}, Ue = ({
|
|
67
|
+
id: r,
|
|
68
|
+
label: d,
|
|
69
|
+
inputFileButtonProps: i
|
|
70
|
+
}) => {
|
|
71
|
+
var u;
|
|
72
|
+
if (!r)
|
|
73
|
+
throw new Error(w("DSInputFile", 'A unique "id" prop is required. Please add a unique "id" prop to the DSInputFile component.'));
|
|
74
|
+
if (!d)
|
|
75
|
+
throw new Error(w("DSInputFile", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSInputFile component. If you don't want to display a label, set hideLabel={true}.`));
|
|
76
|
+
if (i && ((u = i.label) == null ? void 0 : u.trim()) === "")
|
|
77
|
+
throw new Error(w("DSInputFile", "The input file button needs to have a label for a11y reasons. Please add a label to the inputFileButtonProps."));
|
|
78
|
+
if (i && i.variant && i.variant !== "outline" && i.variant !== "filled")
|
|
79
|
+
throw new Error(w("DSInputFile", "The inputFileButtonProps variant value can only be 'outline' for DSInputFile components inside forms or 'filled' for standalone DSInputFile components."));
|
|
80
|
+
}, Ze = ge(({
|
|
81
|
+
id: r,
|
|
82
|
+
label: d,
|
|
83
|
+
accept: i,
|
|
84
|
+
className: u,
|
|
85
|
+
disabled: o = !1,
|
|
86
|
+
fileListItemRemoveButtonProps: l,
|
|
87
|
+
hideLabel: z = !1,
|
|
88
|
+
hint: m,
|
|
89
|
+
inputFileButtonProps: T,
|
|
90
|
+
invalid: h = !1,
|
|
91
|
+
isHintOutsideDropzone: G = {
|
|
92
|
+
base: !0,
|
|
93
|
+
m: !1
|
|
94
|
+
},
|
|
95
|
+
lang: A = "en",
|
|
96
|
+
maxSizeInMb: S = 7,
|
|
97
|
+
multiple: D = !1,
|
|
98
|
+
required: $ = !1,
|
|
99
|
+
showFileList: J = !0,
|
|
100
|
+
showDropzone: c = !1,
|
|
101
|
+
systemFeedback: N,
|
|
102
|
+
translations: K,
|
|
103
|
+
onFilesSelect: p,
|
|
104
|
+
...Q
|
|
105
|
+
}, I) => {
|
|
106
|
+
const f = De(K || je[A]);
|
|
107
|
+
process.env.NODE_ENV !== "production" && Ue({
|
|
108
|
+
id: r,
|
|
109
|
+
label: d,
|
|
110
|
+
inputFileButtonProps: T
|
|
111
|
+
});
|
|
112
|
+
const {
|
|
113
|
+
label: X = A === "en" ? `Choose File${D ? "s" : ""}` : `Datei${D ? "en" : ""} auswählen`,
|
|
114
|
+
variant: L = "outline",
|
|
115
|
+
...Y
|
|
116
|
+
} = T || {}, [C, E] = U([]), g = be(null), [b, k] = U(!1), ee = S * 1024 * 1024, y = `${r}-label`, R = `${r}-feedback`, B = `${r}-hint`, q = m ? ` ${B}` : "", te = Z(z), P = Z(G), ne = _(t.root, u), ie = _(t.dropzone, {
|
|
117
|
+
[t.dropzoneDisabled]: o,
|
|
118
|
+
[t.dropzoneInvalid]: h,
|
|
119
|
+
[t.dropzoneIsDragging]: b
|
|
120
|
+
}), oe = _(t.label, {
|
|
121
|
+
// hide label only visually to keep them available for assistive technologies
|
|
122
|
+
[t.labelHidden]: te,
|
|
123
|
+
[t.labelDisabled]: o
|
|
124
|
+
}), se = _(t.browseButton, {
|
|
125
|
+
[t.browseButtonIsDragging]: b && L === "outline",
|
|
126
|
+
[t.browseButtonIsDraggingFilled]: b && L === "filled"
|
|
127
|
+
}), re = _(t.browseButtonDropzone, {
|
|
128
|
+
[t.browseButtonDropzoneIsDragging]: b
|
|
129
|
+
}), ae = [h && N && R].filter(Boolean).join(" ") || void 0, le = (e) => {
|
|
130
|
+
g.current = e, typeof I == "function" ? I(e) : I && (I.current = e);
|
|
131
|
+
}, x = (e) => {
|
|
132
|
+
if (!e)
|
|
133
|
+
return;
|
|
134
|
+
const n = [];
|
|
135
|
+
for (const s of e)
|
|
136
|
+
if (i && !Me(s, i) && (s.feedback = `${f("feedbackFileType")}: ${s.type}.`), s.size > ee && (s.feedback = `${f("feedbackFileSize")} ${S} MB.`), n.push(s), !D && n.length > 0)
|
|
137
|
+
break;
|
|
138
|
+
n.length > 0 && (E(() => {
|
|
139
|
+
const s = [...n], M = s.map(({
|
|
140
|
+
name: F,
|
|
141
|
+
feedback: pe = ""
|
|
142
|
+
}) => `${F} ${pe}`).join(", ");
|
|
143
|
+
return setTimeout(() => {
|
|
144
|
+
ce(`${f("filesSelectedHint")}: ${M}.`);
|
|
145
|
+
}, 1e3), s;
|
|
146
|
+
}), p == null || p(n));
|
|
147
|
+
}, H = (e) => {
|
|
148
|
+
var n;
|
|
149
|
+
o || ((n = g.current) == null || n.click(), e.stopPropagation());
|
|
150
|
+
}, O = (e) => {
|
|
151
|
+
e.preventDefault(), b || k(!0);
|
|
152
|
+
}, W = (e) => {
|
|
153
|
+
e.preventDefault(), b && k(!1);
|
|
154
|
+
}, V = me((e) => {
|
|
155
|
+
e.preventDefault(), !o && (k(!1), x(e.dataTransfer.files));
|
|
156
|
+
}, [D, i, S, o]), de = (e) => {
|
|
157
|
+
x(e.target.files), g != null && g.current && (g.current.value = "");
|
|
158
|
+
}, ue = (e) => {
|
|
159
|
+
E((n) => {
|
|
160
|
+
const s = n.filter((M, F) => F !== e);
|
|
161
|
+
return p == null || p(s), s;
|
|
162
|
+
});
|
|
163
|
+
}, ce = (e) => {
|
|
164
|
+
const n = _e();
|
|
165
|
+
n && (n.innerText = e, setTimeout(() => {
|
|
166
|
+
n.innerText = "";
|
|
167
|
+
}, 350));
|
|
168
|
+
}, j = () => /* @__PURE__ */ a(Ie, { ...Y, className: c ? re : se, type: "button", variant: L, size: c ? "small" : "medium", disabled: o, iconName: c ? void 0 : "upload", onClick: H, "aria-describedby": ae, "aria-invalid": h, children: X });
|
|
169
|
+
return /* @__PURE__ */ v("div", { className: ne, children: [
|
|
170
|
+
/* @__PURE__ */ v("label", { className: oe, id: y, htmlFor: r, children: [
|
|
171
|
+
d,
|
|
172
|
+
$ && /* @__PURE__ */ v(fe, { children: [
|
|
173
|
+
/* @__PURE__ */ a(he, {}),
|
|
174
|
+
/* @__PURE__ */ a("span", { className: t.requiredSrInfo, children: f("required") })
|
|
175
|
+
] })
|
|
176
|
+
] }),
|
|
177
|
+
m && (P || !c) && /* @__PURE__ */ a("div", { className: t.hint, id: B, children: m }),
|
|
178
|
+
h && N && /* @__PURE__ */ a(ze, { className: t.feedback, message: N, variant: "error", id: R }),
|
|
179
|
+
!c && /* @__PURE__ */ a(
|
|
180
|
+
"div",
|
|
181
|
+
{
|
|
182
|
+
onDragOver: O,
|
|
183
|
+
onDragLeave: W,
|
|
184
|
+
onDrop: V,
|
|
185
|
+
"aria-labelledby": `${y}${q}`,
|
|
186
|
+
"aria-disabled": o,
|
|
187
|
+
children: j()
|
|
188
|
+
}
|
|
189
|
+
),
|
|
190
|
+
c && /* @__PURE__ */ v(
|
|
191
|
+
"div",
|
|
192
|
+
{
|
|
193
|
+
className: ie,
|
|
194
|
+
onClick: (e) => H(e),
|
|
195
|
+
onDragOver: O,
|
|
196
|
+
onDragLeave: W,
|
|
197
|
+
onDrop: V,
|
|
198
|
+
"aria-labelledby": `${y}${q}`,
|
|
199
|
+
"aria-disabled": o,
|
|
200
|
+
children: [
|
|
201
|
+
/* @__PURE__ */ a(we, { name: "upload", className: t.uploadIcon, size: "x-large" }),
|
|
202
|
+
/* @__PURE__ */ a("p", { id: "file-upload-instructions", className: t.instructions, children: f("dragAndDropInstructions") }),
|
|
203
|
+
j(),
|
|
204
|
+
m && !P && /* @__PURE__ */ a("div", { className: t.hintDropZone, id: B, children: m })
|
|
205
|
+
]
|
|
206
|
+
}
|
|
207
|
+
),
|
|
208
|
+
/* @__PURE__ */ a("input", { ...Q, type: "file", className: t.input, id: r, ref: le, accept: i, multiple: D, "aria-hidden": "true", required: $, disabled: o, onChange: de }),
|
|
209
|
+
C.length > 0 && J && /* @__PURE__ */ a(ve, { files: C, onRemoveFile: ue, fileListItemRemoveButtonProps: l, t: f })
|
|
210
|
+
] });
|
|
211
|
+
});
|
|
212
|
+
Ze.displayName = "DSInputFile";
|
|
213
|
+
export {
|
|
214
|
+
Ze as D,
|
|
215
|
+
We as a,
|
|
216
|
+
Ve as b,
|
|
217
|
+
je as c,
|
|
218
|
+
Me as f,
|
|
219
|
+
Ue as v
|
|
220
|
+
};
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as q, jsxs as rt } from "react/jsx-runtime";
|
|
3
|
+
import { d as ht } from "./index.CgTHIF3K.js";
|
|
4
|
+
import { c as J } from "./index.CEyLAtio.js";
|
|
5
|
+
import { forwardRef as vt, useState as yt, useRef as Pt } from "react";
|
|
6
|
+
import { u as St } from "./useBreakpoint.CMOR9ZOB.js";
|
|
7
|
+
import { Asterisk as Dt } from "../asterisk.CR60hx8S.js";
|
|
8
|
+
import { D as Bt } from "./Button.B7xF1E19.js";
|
|
9
|
+
import { D as It } from "./SystemFeedback.B9f67mjJ.js";
|
|
10
|
+
import { g as ct } from "./helpers.BbWkXTr3.js";
|
|
11
|
+
import '../assets/InputPassword.124xVOiO.css';const gt = "ds-input-password_input_15c4p_1", kt = "ds-input-password_input--small_15c4p_9", Nt = "ds-input-password_input--invalid_15c4p_121", xt = "ds-input-password_input--has-action-button_15c4p_182", Ct = "ds-input-password_root_15c4p_218", Ht = "ds-input-password_hint_15c4p_227", Lt = "ds-input-password_label_15c4p_227", $t = "ds-input-password_wrapper_15c4p_231", qt = "ds-input-password_action-button_15c4p_237", At = "ds-input-password_label--hidden_15c4p_255", Tt = "ds-input-password_label--disabled_15c4p_268", Et = "ds-input-password_feedback_15c4p_288", s = {
|
|
12
|
+
input: gt,
|
|
13
|
+
inputSmall: kt,
|
|
14
|
+
inputInvalid: Nt,
|
|
15
|
+
inputHasActionButton: xt,
|
|
16
|
+
root: Ct,
|
|
17
|
+
hint: Ht,
|
|
18
|
+
label: Lt,
|
|
19
|
+
wrapper: $t,
|
|
20
|
+
actionButton: qt,
|
|
21
|
+
labelHidden: At,
|
|
22
|
+
labelDisabled: Tt,
|
|
23
|
+
feedback: Et
|
|
24
|
+
}, Vt = ({
|
|
25
|
+
id: d,
|
|
26
|
+
label: l
|
|
27
|
+
}) => {
|
|
28
|
+
if (!d)
|
|
29
|
+
throw new Error(ct("DSInputPassword", 'A unique "id" prop is required. Please add a unique "id" prop to the DSInputPassword component.'));
|
|
30
|
+
if (!l)
|
|
31
|
+
throw new Error(ct("DSInputPassword", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSInputPassword component. If you don't want to display a label, set hideLabel={true}.`));
|
|
32
|
+
}, Ft = vt((d, l) => {
|
|
33
|
+
const t = ht.c(82);
|
|
34
|
+
let c, n, e, r, p, a, B, I, g, k, N, x, C, u;
|
|
35
|
+
t[0] !== d ? ({
|
|
36
|
+
id: e,
|
|
37
|
+
label: r,
|
|
38
|
+
autoComplete: B,
|
|
39
|
+
className: c,
|
|
40
|
+
disabled: I,
|
|
41
|
+
hint: n,
|
|
42
|
+
hideLabel: g,
|
|
43
|
+
invalid: k,
|
|
44
|
+
readonly: N,
|
|
45
|
+
required: x,
|
|
46
|
+
togglePasswordVisibilityButtonProps: u,
|
|
47
|
+
size: C,
|
|
48
|
+
systemFeedback: a,
|
|
49
|
+
...p
|
|
50
|
+
} = d, t[0] = d, t[1] = c, t[2] = n, t[3] = e, t[4] = r, t[5] = p, t[6] = a, t[7] = B, t[8] = I, t[9] = g, t[10] = k, t[11] = N, t[12] = x, t[13] = C, t[14] = u) : (c = t[1], n = t[2], e = t[3], r = t[4], p = t[5], a = t[6], B = t[7], I = t[8], g = t[9], k = t[10], N = t[11], x = t[12], C = t[13], u = t[14]);
|
|
51
|
+
const K = B === void 0 ? "new-password" : B, i = I === void 0 ? !1 : I, pt = g === void 0 ? !1 : g, o = k === void 0 ? !1 : k, A = N === void 0 ? !1 : N, b = x === void 0 ? !1 : x, H = C === void 0 ? "medium" : C;
|
|
52
|
+
process.env.NODE_ENV !== "production" && Vt({
|
|
53
|
+
id: e,
|
|
54
|
+
label: r
|
|
55
|
+
});
|
|
56
|
+
let f;
|
|
57
|
+
t[15] !== u ? (f = u || {}, t[15] = u, t[16] = f) : f = t[16];
|
|
58
|
+
let m, L, $;
|
|
59
|
+
t[17] !== f ? ({
|
|
60
|
+
hidePasswordText: $,
|
|
61
|
+
showPasswordText: L,
|
|
62
|
+
...m
|
|
63
|
+
} = f, t[17] = f, t[18] = m, t[19] = L, t[20] = $) : (m = t[18], L = t[19], $ = t[20]);
|
|
64
|
+
const ut = $ === void 0 ? "Hide password" : $, bt = L === void 0 ? "Show password" : L, [Q, ft] = yt(!1), T = `${e}-label`, w = `${e}-feedback`, E = `${e}-hint`, mt = n ? ` ${E}` : "";
|
|
65
|
+
let V;
|
|
66
|
+
t[21] !== o || t[22] !== a || t[23] !== w ? (V = [o && a && w].filter(Boolean).join(" ") || void 0, t[21] = o, t[22] = a, t[23] = w, t[24] = V) : V = t[24];
|
|
67
|
+
const U = V, W = St(pt);
|
|
68
|
+
let F;
|
|
69
|
+
t[25] !== c ? (F = J(s.root, c), t[25] = c, t[26] = F) : F = t[26];
|
|
70
|
+
const X = F, Y = H === "small";
|
|
71
|
+
let R;
|
|
72
|
+
t[27] !== o || t[28] !== Y ? (R = J(s.input, {
|
|
73
|
+
[s.inputSmall]: Y,
|
|
74
|
+
[s.inputInvalid]: o,
|
|
75
|
+
[s.inputHasActionButton]: !0
|
|
76
|
+
}), t[27] = o, t[28] = Y, t[29] = R) : R = t[29];
|
|
77
|
+
const Z = R;
|
|
78
|
+
let j;
|
|
79
|
+
t[30] !== i || t[31] !== W ? (j = J(s.label, {
|
|
80
|
+
[s.labelHidden]: W,
|
|
81
|
+
[s.labelDisabled]: i
|
|
82
|
+
}), t[30] = i, t[31] = W, t[32] = j) : j = t[32];
|
|
83
|
+
const tt = j, et = H === "small";
|
|
84
|
+
let z;
|
|
85
|
+
t[33] !== et ? (z = J(s.actionButton, {
|
|
86
|
+
[s.actionButtonSmall]: et
|
|
87
|
+
}), t[33] = et, t[34] = z) : z = t[34];
|
|
88
|
+
const st = z, wt = Pt(null);
|
|
89
|
+
let O;
|
|
90
|
+
t[35] !== l ? (O = (dt) => {
|
|
91
|
+
wt.current = dt, typeof l == "function" ? l(dt) : l && (l.current = dt);
|
|
92
|
+
}, t[35] = l, t[36] = O) : O = t[36];
|
|
93
|
+
const ot = O;
|
|
94
|
+
let M;
|
|
95
|
+
t[37] === Symbol.for("react.memo_cache_sentinel") ? (M = () => {
|
|
96
|
+
ft(Rt);
|
|
97
|
+
}, t[37] = M) : M = t[37];
|
|
98
|
+
const _t = M;
|
|
99
|
+
let _;
|
|
100
|
+
t[38] !== b ? (_ = b && /* @__PURE__ */ q(Dt, {}), t[38] = b, t[39] = _) : _ = t[39];
|
|
101
|
+
let h;
|
|
102
|
+
t[40] !== e || t[41] !== T || t[42] !== r || t[43] !== tt || t[44] !== _ ? (h = /* @__PURE__ */ rt("label", { className: tt, id: T, htmlFor: e, children: [
|
|
103
|
+
r,
|
|
104
|
+
_
|
|
105
|
+
] }), t[40] = e, t[41] = T, t[42] = r, t[43] = tt, t[44] = _, t[45] = h) : h = t[45];
|
|
106
|
+
let v;
|
|
107
|
+
t[46] !== n || t[47] !== E ? (v = n && /* @__PURE__ */ q("div", { className: s.hint, id: E, children: n }), t[46] = n, t[47] = E, t[48] = v) : v = t[48];
|
|
108
|
+
let y;
|
|
109
|
+
t[49] !== o || t[50] !== a || t[51] !== w ? (y = o && a && /* @__PURE__ */ q(It, { className: s.feedback, message: a, variant: "error", id: w }), t[49] = o, t[50] = a, t[51] = w, t[52] = y) : y = t[52];
|
|
110
|
+
const at = `${T}${mt}`, it = Q ? "text" : "password";
|
|
111
|
+
let P;
|
|
112
|
+
t[53] !== U || t[54] !== K || t[55] !== i || t[56] !== ot || t[57] !== e || t[58] !== Z || t[59] !== o || t[60] !== A || t[61] !== b || t[62] !== p || t[63] !== at || t[64] !== it ? (P = /* @__PURE__ */ q("input", { className: Z, id: e, ...p, ref: ot, "aria-labelledby": at, "aria-describedby": U, "aria-invalid": o, "aria-disabled": A, readOnly: A, required: b, disabled: i, autoComplete: K, type: it }), t[53] = U, t[54] = K, t[55] = i, t[56] = ot, t[57] = e, t[58] = Z, t[59] = o, t[60] = A, t[61] = b, t[62] = p, t[63] = at, t[64] = it, t[65] = P) : P = t[65];
|
|
113
|
+
const lt = Q ? "eye-closed" : "eye", nt = Q ? ut : bt;
|
|
114
|
+
let S;
|
|
115
|
+
t[66] !== st || t[67] !== i || t[68] !== m || t[69] !== H || t[70] !== lt || t[71] !== nt ? (S = /* @__PURE__ */ q(Bt, { ...m, hideLabel: !0, theme: "light", iconName: lt, variant: "ghost", className: st, size: H, onClick: _t, type: "button", disabled: i, children: nt }), t[66] = st, t[67] = i, t[68] = m, t[69] = H, t[70] = lt, t[71] = nt, t[72] = S) : S = t[72];
|
|
116
|
+
let D;
|
|
117
|
+
t[73] !== P || t[74] !== S ? (D = /* @__PURE__ */ rt("div", { className: s.wrapper, children: [
|
|
118
|
+
P,
|
|
119
|
+
S
|
|
120
|
+
] }), t[73] = P, t[74] = S, t[75] = D) : D = t[75];
|
|
121
|
+
let G;
|
|
122
|
+
return t[76] !== X || t[77] !== h || t[78] !== v || t[79] !== y || t[80] !== D ? (G = /* @__PURE__ */ rt("div", { className: X, children: [
|
|
123
|
+
h,
|
|
124
|
+
v,
|
|
125
|
+
y,
|
|
126
|
+
D
|
|
127
|
+
] }), t[76] = X, t[77] = h, t[78] = v, t[79] = y, t[80] = D, t[81] = G) : G = t[81], G;
|
|
128
|
+
});
|
|
129
|
+
Ft.displayName = "DSInputPassword";
|
|
130
|
+
function Rt(d) {
|
|
131
|
+
return !d;
|
|
132
|
+
}
|
|
133
|
+
export {
|
|
134
|
+
Ft as D,
|
|
135
|
+
Vt as v
|
|
136
|
+
};
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as L, jsxs as gt } from "react/jsx-runtime";
|
|
3
|
+
import { d as Vt } from "./index.CgTHIF3K.js";
|
|
4
|
+
import { c as R } from "./index.CEyLAtio.js";
|
|
5
|
+
import { forwardRef as Ot, useState as $t, useRef as Et, useEffect as kt } from "react";
|
|
6
|
+
import { g as Nt, a as qt } from "./helpers.BbWkXTr3.js";
|
|
7
|
+
import { u as xt } from "./useBreakpoint.CMOR9ZOB.js";
|
|
8
|
+
import { Asterisk as Ft } from "../asterisk.CR60hx8S.js";
|
|
9
|
+
import { D as At } from "./Button.B7xF1E19.js";
|
|
10
|
+
import { D as Rt } from "./SystemFeedback.B9f67mjJ.js";
|
|
11
|
+
import '../assets/InputSearch.Bkg-1urJ.css';const Tt = "ds-input-search_root_12yjy_1", zt = "ds-input-search_input_12yjy_5", Mt = "ds-input-search_input--small_12yjy_13", Wt = "ds-input-search_input--invalid_12yjy_125", Gt = "ds-input-search_input--has-action-button_12yjy_186", Jt = "ds-input-search_input--has-second-action-button_12yjy_189", Kt = "ds-input-search_hint_12yjy_231", Qt = "ds-input-search_label_12yjy_231", Ut = "ds-input-search_wrapper_12yjy_235", Xt = "ds-input-search_action-button_12yjy_241", Yt = "ds-input-search_second-action-button_12yjy_245", Zt = "ds-input-search_label--hidden_12yjy_263", te = "ds-input-search_label--disabled_12yjy_276", ee = "ds-input-search_feedback_12yjy_296", s = {
|
|
12
|
+
root: Tt,
|
|
13
|
+
input: zt,
|
|
14
|
+
inputSmall: Mt,
|
|
15
|
+
inputInvalid: Wt,
|
|
16
|
+
inputHasActionButton: Gt,
|
|
17
|
+
inputHasSecondActionButton: Jt,
|
|
18
|
+
hint: Kt,
|
|
19
|
+
label: Qt,
|
|
20
|
+
wrapper: Ut,
|
|
21
|
+
actionButton: Xt,
|
|
22
|
+
secondActionButton: Yt,
|
|
23
|
+
labelHidden: Zt,
|
|
24
|
+
labelDisabled: te,
|
|
25
|
+
feedback: ee
|
|
26
|
+
}, se = ({
|
|
27
|
+
id: a,
|
|
28
|
+
label: i
|
|
29
|
+
}) => {
|
|
30
|
+
if (!a)
|
|
31
|
+
throw new Error(Nt("DSInputSearch", 'A unique "id" prop is required. Please add a unique "id" prop to the DSInputSearch component.'));
|
|
32
|
+
if (!i)
|
|
33
|
+
throw new Error(Nt("DSInputSearch", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSInputSearch component. If you don't want to display a label, set hideLabel={true}.`));
|
|
34
|
+
}, ne = (a) => !!qt(a, "form"), ae = Ot((a, i) => {
|
|
35
|
+
const t = Vt.c(103);
|
|
36
|
+
let l, d, e, b, f, m, y, c, H, P, V, O, $, q, x, p;
|
|
37
|
+
t[0] !== a ? ({
|
|
38
|
+
id: e,
|
|
39
|
+
label: b,
|
|
40
|
+
className: l,
|
|
41
|
+
clearButtonLabel: H,
|
|
42
|
+
disabled: P,
|
|
43
|
+
hint: d,
|
|
44
|
+
hideLabel: V,
|
|
45
|
+
invalid: O,
|
|
46
|
+
readonly: $,
|
|
47
|
+
required: q,
|
|
48
|
+
size: x,
|
|
49
|
+
systemFeedback: c,
|
|
50
|
+
value: p,
|
|
51
|
+
submitButtonProps: y,
|
|
52
|
+
onChange: f,
|
|
53
|
+
...m
|
|
54
|
+
} = a, t[0] = a, t[1] = l, t[2] = d, t[3] = e, t[4] = b, t[5] = f, t[6] = m, t[7] = y, t[8] = c, t[9] = H, t[10] = P, t[11] = V, t[12] = O, t[13] = $, t[14] = q, t[15] = x, t[16] = p) : (l = t[1], d = t[2], e = t[3], b = t[4], f = t[5], m = t[6], y = t[7], c = t[8], H = t[9], P = t[10], V = t[11], O = t[12], $ = t[13], q = t[14], x = t[15], p = t[16]);
|
|
55
|
+
const lt = H === void 0 ? "Clear search field" : H, o = P === void 0 ? !1 : P, Ct = V === void 0 ? !1 : V, n = O === void 0 ? !1 : O, r = $ === void 0 ? !1 : $, _ = q === void 0 ? !1 : q, u = x === void 0 ? "medium" : x;
|
|
56
|
+
process.env.NODE_ENV !== "production" && se({
|
|
57
|
+
id: e,
|
|
58
|
+
label: b
|
|
59
|
+
});
|
|
60
|
+
let v;
|
|
61
|
+
t[17] !== y ? (v = y || {}, t[17] = y, t[18] = v) : v = t[18];
|
|
62
|
+
let S, B, F;
|
|
63
|
+
t[19] !== v ? ({
|
|
64
|
+
label: F,
|
|
65
|
+
onClick: S,
|
|
66
|
+
...B
|
|
67
|
+
} = v, t[19] = v, t[20] = S, t[21] = B, t[22] = F) : (S = t[20], B = t[21], F = t[22]);
|
|
68
|
+
const ot = F === void 0 ? "Search" : F, [D, jt] = $t(p), ct = Et(null), T = Et(null);
|
|
69
|
+
let z;
|
|
70
|
+
t[23] !== i ? (z = (h) => {
|
|
71
|
+
T.current = h, typeof i == "function" ? i(h) : i && (i.current = h);
|
|
72
|
+
}, t[23] = i, t[24] = z) : z = t[24];
|
|
73
|
+
const rt = z, ut = xt(Ct);
|
|
74
|
+
let M, W;
|
|
75
|
+
t[25] !== p ? (M = () => {
|
|
76
|
+
jt(p);
|
|
77
|
+
}, W = [p], t[25] = p, t[26] = M, t[27] = W) : (M = t[26], W = t[27]), kt(M, W);
|
|
78
|
+
let G;
|
|
79
|
+
t[28] !== e ? (G = () => {
|
|
80
|
+
ct.current && !ne(ct.current) && process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && console.warn(Nt("DSInputSearch", `The DSInputSearch component with the id "${e}" is not within a form element. This may cause issues with form submission. Please ensure the DSInputSearch component is within a form element.`));
|
|
81
|
+
}, t[28] = e, t[29] = G) : G = t[29];
|
|
82
|
+
let J;
|
|
83
|
+
t[30] === Symbol.for("react.memo_cache_sentinel") ? (J = [], t[30] = J) : J = t[30], kt(G, J);
|
|
84
|
+
const K = `${e}-label`, I = `${e}-feedback`, Q = `${e}-hint`, Lt = d ? ` ${Q}` : "";
|
|
85
|
+
let U;
|
|
86
|
+
t[31] !== n || t[32] !== c || t[33] !== I ? (U = [n && c && I].filter(Boolean).join(" ") || void 0, t[31] = n, t[32] = c, t[33] = I, t[34] = U) : U = t[34];
|
|
87
|
+
const dt = U, X = D !== "" && D !== void 0 && D !== null;
|
|
88
|
+
let Y;
|
|
89
|
+
t[35] !== l ? (Y = R(s.root, l), t[35] = l, t[36] = Y) : Y = t[36];
|
|
90
|
+
const pt = Y, ht = u === "small", bt = X && !r && !o;
|
|
91
|
+
let Z;
|
|
92
|
+
t[37] !== n || t[38] !== ht || t[39] !== bt ? (Z = R(s.input, {
|
|
93
|
+
[s.inputSmall]: ht,
|
|
94
|
+
[s.inputInvalid]: n,
|
|
95
|
+
[s.inputHasActionButton]: !0,
|
|
96
|
+
[s.inputHasSecondActionButton]: bt
|
|
97
|
+
}), t[37] = n, t[38] = ht, t[39] = bt, t[40] = Z) : Z = t[40];
|
|
98
|
+
const ft = Z;
|
|
99
|
+
let tt;
|
|
100
|
+
t[41] !== o || t[42] !== ut ? (tt = R(s.label, {
|
|
101
|
+
[s.labelHidden]: ut,
|
|
102
|
+
[s.labelDisabled]: o
|
|
103
|
+
}), t[41] = o, t[42] = ut, t[43] = tt) : tt = t[43];
|
|
104
|
+
const mt = tt, yt = u === "small";
|
|
105
|
+
let et;
|
|
106
|
+
t[44] !== yt ? (et = R(s.actionButton, {
|
|
107
|
+
[s.actionButtonSmall]: yt
|
|
108
|
+
}), t[44] = yt, t[45] = et) : et = t[45];
|
|
109
|
+
const _t = et, vt = u === "small";
|
|
110
|
+
let st;
|
|
111
|
+
t[46] !== vt ? (st = R(s.secondActionButton, {
|
|
112
|
+
[s.secondActionButtonSmall]: vt
|
|
113
|
+
}), t[46] = vt, t[47] = st) : st = t[47];
|
|
114
|
+
const St = st, Ht = ie;
|
|
115
|
+
let nt;
|
|
116
|
+
t[48] === Symbol.for("react.memo_cache_sentinel") ? (nt = () => {
|
|
117
|
+
var wt;
|
|
118
|
+
if (!T.current)
|
|
119
|
+
return;
|
|
120
|
+
Ht(T.current, "");
|
|
121
|
+
const h = new Event("change", {
|
|
122
|
+
bubbles: !0
|
|
123
|
+
});
|
|
124
|
+
(wt = T.current) == null || wt.dispatchEvent(h);
|
|
125
|
+
}, t[48] = nt) : nt = t[48];
|
|
126
|
+
const Pt = nt;
|
|
127
|
+
let at;
|
|
128
|
+
t[49] !== f ? (at = (h) => {
|
|
129
|
+
jt(h.target.value), f && f(h);
|
|
130
|
+
}, t[49] = f, t[50] = at) : at = t[50];
|
|
131
|
+
const Bt = at;
|
|
132
|
+
let g;
|
|
133
|
+
t[51] !== _ ? (g = _ && /* @__PURE__ */ L(Ft, {}), t[51] = _, t[52] = g) : g = t[52];
|
|
134
|
+
let N;
|
|
135
|
+
t[53] !== e || t[54] !== K || t[55] !== b || t[56] !== mt || t[57] !== g ? (N = /* @__PURE__ */ gt("label", { className: mt, id: K, htmlFor: e, children: [
|
|
136
|
+
b,
|
|
137
|
+
g
|
|
138
|
+
] }), t[53] = e, t[54] = K, t[55] = b, t[56] = mt, t[57] = g, t[58] = N) : N = t[58];
|
|
139
|
+
let j;
|
|
140
|
+
t[59] !== d || t[60] !== Q ? (j = d && /* @__PURE__ */ L("div", { className: s.hint, id: Q, children: d }), t[59] = d, t[60] = Q, t[61] = j) : j = t[61];
|
|
141
|
+
let w;
|
|
142
|
+
t[62] !== n || t[63] !== c || t[64] !== I ? (w = n && c && /* @__PURE__ */ L(Rt, { className: s.feedback, message: c, variant: "error", id: I }), t[62] = n, t[63] = c, t[64] = I, t[65] = w) : w = t[65];
|
|
143
|
+
const Dt = `${K}${Lt}`;
|
|
144
|
+
let E;
|
|
145
|
+
t[66] !== dt || t[67] !== o || t[68] !== rt || t[69] !== Bt || t[70] !== e || t[71] !== ft || t[72] !== D || t[73] !== n || t[74] !== r || t[75] !== _ || t[76] !== m || t[77] !== Dt ? (E = /* @__PURE__ */ L("input", { className: ft, id: e, ...m, ref: rt, "aria-labelledby": Dt, "aria-describedby": dt, "aria-invalid": n, "aria-disabled": r, readOnly: r, required: _, disabled: o, type: "search", value: D, onChange: Bt }), t[66] = dt, t[67] = o, t[68] = rt, t[69] = Bt, t[70] = e, t[71] = ft, t[72] = D, t[73] = n, t[74] = r, t[75] = _, t[76] = m, t[77] = Dt, t[78] = E) : E = t[78];
|
|
146
|
+
let k;
|
|
147
|
+
t[79] !== St || t[80] !== lt || t[81] !== o || t[82] !== X || t[83] !== r || t[84] !== u ? (k = X && !r && !o && /* @__PURE__ */ L(At, { hideLabel: !0, theme: "light", iconName: "cross", className: St, variant: "ghost", size: u, onClick: Pt, type: "button", tabIndex: -1, children: lt }), t[79] = St, t[80] = lt, t[81] = o, t[82] = X, t[83] = r, t[84] = u, t[85] = k) : k = t[85];
|
|
148
|
+
const It = o || r;
|
|
149
|
+
let A;
|
|
150
|
+
t[86] !== S || t[87] !== B || t[88] !== u || t[89] !== _t || t[90] !== ot || t[91] !== It ? (A = /* @__PURE__ */ L(At, { ...B, hideLabel: !0, theme: "light", iconName: "magnifying-glass", className: _t, variant: "ghost", size: u, onClick: S, type: "submit", disabled: It, children: ot }), t[86] = S, t[87] = B, t[88] = u, t[89] = _t, t[90] = ot, t[91] = It, t[92] = A) : A = t[92];
|
|
151
|
+
let C;
|
|
152
|
+
t[93] !== E || t[94] !== k || t[95] !== A ? (C = /* @__PURE__ */ gt("div", { className: s.wrapper, children: [
|
|
153
|
+
E,
|
|
154
|
+
k,
|
|
155
|
+
A
|
|
156
|
+
] }), t[93] = E, t[94] = k, t[95] = A, t[96] = C) : C = t[96];
|
|
157
|
+
let it;
|
|
158
|
+
return t[97] !== pt || t[98] !== N || t[99] !== j || t[100] !== w || t[101] !== C ? (it = /* @__PURE__ */ gt("div", { className: pt, ref: ct, children: [
|
|
159
|
+
N,
|
|
160
|
+
j,
|
|
161
|
+
w,
|
|
162
|
+
C
|
|
163
|
+
] }), t[97] = pt, t[98] = N, t[99] = j, t[100] = w, t[101] = C, t[102] = it) : it = t[102], it;
|
|
164
|
+
});
|
|
165
|
+
ae.displayName = "DSInputSearch";
|
|
166
|
+
function ie(a, i) {
|
|
167
|
+
const t = Object.getPrototypeOf(a), l = Object.getOwnPropertyDescriptor(t, "value");
|
|
168
|
+
l != null && l.set ? l.set.call(a, i) : a.value = i;
|
|
169
|
+
}
|
|
170
|
+
export {
|
|
171
|
+
ae as D,
|
|
172
|
+
ne as i,
|
|
173
|
+
se as v
|
|
174
|
+
};
|