@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,63 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as v } from "react/jsx-runtime";
|
|
3
|
+
import { d as u } from "./index.CgTHIF3K.js";
|
|
4
|
+
import { useState as T, useEffect as y } from "react";
|
|
5
|
+
import { TabList as h } from "../tablist.g_Nwu6GA.js";
|
|
6
|
+
import { g as m, r as E } from "./helpers.BbWkXTr3.js";
|
|
7
|
+
const _ = ["left", "center"], j = ["prev", "next"], S = ({
|
|
8
|
+
aria: a,
|
|
9
|
+
tabs: e,
|
|
10
|
+
activeTabIndex: t
|
|
11
|
+
}) => {
|
|
12
|
+
var r, i;
|
|
13
|
+
if (!a || typeof a != "object" || Object.keys(a).length === 0 || !a["aria-label"] && !a["aria-labelledby"] || ((r = a["aria-label"]) == null ? void 0 : r.trim()) === "" && ((i = a["aria-labelledby"]) == null ? void 0 : i.trim()) === "")
|
|
14
|
+
throw new Error(m("DSNavigationTabs", '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.'));
|
|
15
|
+
if (Array.isArray(e)) {
|
|
16
|
+
if (e.length === 0)
|
|
17
|
+
throw new Error(m("DSNavigationTabs", "The tabs array must not be empty."));
|
|
18
|
+
} else throw new Error(m("DSNavigationTabs", E("tabs", "DSNavigationTabs")));
|
|
19
|
+
if (t != null && (t < 0 || t >= e.length))
|
|
20
|
+
throw new Error(m("DSNavigationTabs", `Invalid activeTabIndex: ${t}. It must be between 0 and ${e.length - 1}.`));
|
|
21
|
+
}, x = (a) => {
|
|
22
|
+
const e = u.c(19);
|
|
23
|
+
let t, r, i, s, o, l;
|
|
24
|
+
e[0] !== a ? ({
|
|
25
|
+
aria: r,
|
|
26
|
+
tabs: l,
|
|
27
|
+
activeTabIndex: t,
|
|
28
|
+
alignment: o,
|
|
29
|
+
className: i,
|
|
30
|
+
...s
|
|
31
|
+
} = a, e[0] = a, e[1] = t, e[2] = r, e[3] = i, e[4] = s, e[5] = o, e[6] = l) : (t = e[1], r = e[2], i = e[3], s = e[4], o = e[5], l = e[6]);
|
|
32
|
+
const p = o === void 0 ? "left" : o;
|
|
33
|
+
process.env.NODE_ENV !== "production" && S({
|
|
34
|
+
aria: r,
|
|
35
|
+
tabs: l,
|
|
36
|
+
activeTabIndex: t
|
|
37
|
+
});
|
|
38
|
+
const [c, N] = T(t);
|
|
39
|
+
let n, b;
|
|
40
|
+
e[7] !== t ? (n = () => {
|
|
41
|
+
t != null && N(t);
|
|
42
|
+
}, b = [t], e[7] = t, e[8] = n, e[9] = b) : (n = e[8], b = e[9]), y(n, b);
|
|
43
|
+
let f;
|
|
44
|
+
e[10] !== p || e[11] !== r || e[12] !== i || e[13] !== s || e[14] !== c || e[15] !== l ? (f = {
|
|
45
|
+
aria: r,
|
|
46
|
+
tabs: l,
|
|
47
|
+
setSelectedTabIndex: N,
|
|
48
|
+
selectedTabIndex: c,
|
|
49
|
+
alignment: p,
|
|
50
|
+
className: i,
|
|
51
|
+
isNavigation: !0,
|
|
52
|
+
...s
|
|
53
|
+
}, e[10] = p, e[11] = r, e[12] = i, e[13] = s, e[14] = c, e[15] = l, e[16] = f) : f = e[16];
|
|
54
|
+
const g = f;
|
|
55
|
+
let d;
|
|
56
|
+
return e[17] !== g ? (d = /* @__PURE__ */ v(h, { ...g }), e[17] = g, e[18] = d) : d = e[18], d;
|
|
57
|
+
};
|
|
58
|
+
export {
|
|
59
|
+
x as D,
|
|
60
|
+
_ as N,
|
|
61
|
+
j as a,
|
|
62
|
+
S as v
|
|
63
|
+
};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as p, jsxs as F } from "react/jsx-runtime";
|
|
3
|
+
import { d as R } from "./index.CgTHIF3K.js";
|
|
4
|
+
import { c as k } from "./index.CEyLAtio.js";
|
|
5
|
+
import { D as W } from "./Button.B7xF1E19.js";
|
|
6
|
+
import { D as y } from "./Icon.DGTYCv63.js";
|
|
7
|
+
import '../assets/Notification.BOuaA5GT.css';const L = "ds-notification_root_1jsx7_1", P = "ds-notification_root--success_1jsx7_26", V = "ds-notification_root--error_1jsx7_30", z = "ds-notification_root--warning_1jsx7_34", Y = "ds-notification_root--hide-icon_1jsx7_38", $ = "ds-notification_content_1jsx7_52", q = "ds-notification_content--hide-close-button_1jsx7_59", G = "ds-notification_content--hide-icon_1jsx7_62", J = "ds-notification_icon_1jsx7_66", K = "ds-notification_message_1jsx7_70", M = "ds-notification_custom-action-area_1jsx7_167", s = {
|
|
8
|
+
root: L,
|
|
9
|
+
rootSuccess: P,
|
|
10
|
+
rootError: V,
|
|
11
|
+
rootWarning: z,
|
|
12
|
+
rootHideIcon: Y,
|
|
13
|
+
content: $,
|
|
14
|
+
contentHideCloseButton: q,
|
|
15
|
+
contentHideIcon: G,
|
|
16
|
+
icon: J,
|
|
17
|
+
message: K,
|
|
18
|
+
customActionArea: M
|
|
19
|
+
}, no = ["success", "error", "warning", "info"], Q = {
|
|
20
|
+
success: "circle-check-colored",
|
|
21
|
+
error: "diamond-exclamationmark-colored",
|
|
22
|
+
warning: "triangle-exclamationmark-colored",
|
|
23
|
+
info: "circle-info-colored"
|
|
24
|
+
}, U = {
|
|
25
|
+
error: "alert",
|
|
26
|
+
warning: "alert",
|
|
27
|
+
info: "status",
|
|
28
|
+
success: "status"
|
|
29
|
+
}, eo = (v) => {
|
|
30
|
+
const o = R.c(47);
|
|
31
|
+
let i, r, a, c, n, l, N, h;
|
|
32
|
+
o[0] !== v ? ({
|
|
33
|
+
children: i,
|
|
34
|
+
variant: N,
|
|
35
|
+
className: r,
|
|
36
|
+
closeButtonProps: a,
|
|
37
|
+
customActionArea: c,
|
|
38
|
+
hideIcon: h,
|
|
39
|
+
onClose: n,
|
|
40
|
+
...l
|
|
41
|
+
} = v, o[0] = v, o[1] = i, o[2] = r, o[3] = a, o[4] = c, o[5] = n, o[6] = l, o[7] = N, o[8] = h) : (i = o[1], r = o[2], a = o[3], c = o[4], n = o[5], l = o[6], N = o[7], h = o[8]);
|
|
42
|
+
const e = N === void 0 ? "info" : N, t = h === void 0 ? !1 : h;
|
|
43
|
+
let d;
|
|
44
|
+
o[9] !== a ? (d = a || {}, o[9] = a, o[10] = d) : d = o[10];
|
|
45
|
+
let _, A;
|
|
46
|
+
o[11] !== d ? ({
|
|
47
|
+
label: A,
|
|
48
|
+
..._
|
|
49
|
+
} = d, o[11] = d, o[12] = _, o[13] = A) : (_ = o[12], A = o[13]);
|
|
50
|
+
const H = A === void 0 ? "Close notification" : A, S = e === "success", O = e === "error", T = e === "warning", B = e === "info";
|
|
51
|
+
let g;
|
|
52
|
+
o[14] !== r || o[15] !== t || o[16] !== S || o[17] !== O || o[18] !== T || o[19] !== B ? (g = k(s.root, r, {
|
|
53
|
+
[s.rootSuccess]: S,
|
|
54
|
+
[s.rootError]: O,
|
|
55
|
+
[s.rootWarning]: T,
|
|
56
|
+
[s.rootInfo]: B,
|
|
57
|
+
[s.rootHideIcon]: t
|
|
58
|
+
}), o[14] = r, o[15] = t, o[16] = S, o[17] = O, o[18] = T, o[19] = B, o[20] = g) : g = o[20];
|
|
59
|
+
const D = g, b = !n;
|
|
60
|
+
let j;
|
|
61
|
+
o[21] !== t || o[22] !== b ? (j = k(s.content, {
|
|
62
|
+
[s.contentHideCloseButton]: b,
|
|
63
|
+
[s.contentHideIcon]: t
|
|
64
|
+
}), o[21] = t, o[22] = b, o[23] = j) : j = o[23];
|
|
65
|
+
const w = j, E = U[e];
|
|
66
|
+
let f;
|
|
67
|
+
o[24] !== t || o[25] !== e ? (f = !t && /* @__PURE__ */ p(y, { name: Q[e], className: s.icon, "aria-hidden": "true" }), o[24] = t, o[25] = e, o[26] = f) : f = o[26];
|
|
68
|
+
let m;
|
|
69
|
+
o[27] !== i ? (m = /* @__PURE__ */ p("div", { className: s.message, children: i }), o[27] = i, o[28] = m) : m = o[28];
|
|
70
|
+
let u;
|
|
71
|
+
o[29] !== H || o[30] !== n || o[31] !== _ ? (u = n && /* @__PURE__ */ p(W, { ..._, hideLabel: !0, iconName: "cross", isFlush: !0, variant: "ghost", size: "small", onClick: n, type: "button", children: H }), o[29] = H, o[30] = n, o[31] = _, o[32] = u) : u = o[32];
|
|
72
|
+
let I;
|
|
73
|
+
o[33] !== w || o[34] !== f || o[35] !== m || o[36] !== u ? (I = /* @__PURE__ */ F("div", { className: w, children: [
|
|
74
|
+
f,
|
|
75
|
+
m,
|
|
76
|
+
u
|
|
77
|
+
] }), o[33] = w, o[34] = f, o[35] = m, o[36] = u, o[37] = I) : I = o[37];
|
|
78
|
+
let x;
|
|
79
|
+
o[38] !== c || o[39] !== t ? (x = c && /* @__PURE__ */ p("div", { className: k({
|
|
80
|
+
[s.customActionArea]: !t
|
|
81
|
+
}), children: c }), o[38] = c, o[39] = t, o[40] = x) : x = o[40];
|
|
82
|
+
let C;
|
|
83
|
+
return o[41] !== l || o[42] !== D || o[43] !== E || o[44] !== I || o[45] !== x ? (C = /* @__PURE__ */ F("div", { className: D, ...l, role: E, children: [
|
|
84
|
+
I,
|
|
85
|
+
x
|
|
86
|
+
] }), o[41] = l, o[42] = D, o[43] = E, o[44] = I, o[45] = x, o[46] = C) : C = o[46], C;
|
|
87
|
+
};
|
|
88
|
+
export {
|
|
89
|
+
eo as D,
|
|
90
|
+
no as N,
|
|
91
|
+
Q as a
|
|
92
|
+
};
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as A } from "react/jsx-runtime";
|
|
3
|
+
import { d as w } from "./index.CgTHIF3K.js";
|
|
4
|
+
import { isValidElement as V, useState as B, createContext as G, forwardRef as I, cloneElement as H, useContext as J } from "react";
|
|
5
|
+
import { i as K, u as L, a as Q, b as T, c as W, d as X, o as Y, s as Z, e as U, g as ee, F as te } from "./floating-ui.react.x0F9CYgn.js";
|
|
6
|
+
import { c as oe } from "./index.CEyLAtio.js";
|
|
7
|
+
import { g as E, c as $ } from "./helpers.BbWkXTr3.js";
|
|
8
|
+
import { a as se } from "./floating-ui.dom.C9TD1WpB.js";
|
|
9
|
+
import '../assets/Popover.BDTDsPAt.css';const ne = "ds-popover_popover_zyqhl_5", le = {
|
|
10
|
+
popover: ne
|
|
11
|
+
}, re = (n) => {
|
|
12
|
+
const t = w.c(29);
|
|
13
|
+
let e;
|
|
14
|
+
t[0] !== n ? (e = n === void 0 ? {} : n, t[0] = n, t[1] = e) : e = t[1];
|
|
15
|
+
const {
|
|
16
|
+
initialOpen: o,
|
|
17
|
+
placement: s,
|
|
18
|
+
isOpen: r,
|
|
19
|
+
popoverOffset: d,
|
|
20
|
+
onOpenChange: i
|
|
21
|
+
} = e, l = o === void 0 ? !1 : o, c = s === void 0 ? "bottom-start" : s, a = d === void 0 ? 6 : d, [h, m] = B(l), p = r ?? h, f = i ?? m;
|
|
22
|
+
let v;
|
|
23
|
+
t[2] !== a ? (v = Y(a), t[2] = a, t[3] = v) : v = t[3];
|
|
24
|
+
let u;
|
|
25
|
+
t[4] !== c || t[5] !== a ? (u = K({
|
|
26
|
+
crossAxis: c.includes("-"),
|
|
27
|
+
fallbackAxisSideDirection: "end",
|
|
28
|
+
padding: a
|
|
29
|
+
}), t[4] = c, t[5] = a, t[6] = u) : u = t[6];
|
|
30
|
+
let P;
|
|
31
|
+
t[7] !== a ? (P = Z({
|
|
32
|
+
padding: a
|
|
33
|
+
}), t[7] = a, t[8] = P) : P = t[8];
|
|
34
|
+
let S;
|
|
35
|
+
t[9] !== v || t[10] !== u || t[11] !== P ? (S = [v, u, P], t[9] = v, t[10] = u, t[11] = P, t[12] = S) : S = t[12];
|
|
36
|
+
let D;
|
|
37
|
+
t[13] !== p || t[14] !== c || t[15] !== f || t[16] !== S ? (D = {
|
|
38
|
+
placement: c,
|
|
39
|
+
open: p,
|
|
40
|
+
onOpenChange: f,
|
|
41
|
+
whileElementsMounted: se,
|
|
42
|
+
middleware: S
|
|
43
|
+
}, t[13] = p, t[14] = c, t[15] = f, t[16] = S, t[17] = D) : D = t[17];
|
|
44
|
+
const g = L(D), N = g.context;
|
|
45
|
+
let C;
|
|
46
|
+
t[18] === Symbol.for("react.memo_cache_sentinel") ? (C = {
|
|
47
|
+
enabled: !0
|
|
48
|
+
}, t[18] = C) : C = t[18];
|
|
49
|
+
const F = Q(N, C), b = T(N), _ = W(N);
|
|
50
|
+
let x;
|
|
51
|
+
t[19] !== F || t[20] !== b || t[21] !== _ ? (x = [F, b, _], t[19] = F, t[20] = b, t[21] = _, t[22] = x) : x = t[22];
|
|
52
|
+
const k = X(x);
|
|
53
|
+
let M, O;
|
|
54
|
+
return t[23] !== g || t[24] !== k || t[25] !== p || t[26] !== a || t[27] !== f ? (O = {
|
|
55
|
+
open: p,
|
|
56
|
+
popoverOffset: a,
|
|
57
|
+
setOpen: f,
|
|
58
|
+
...k,
|
|
59
|
+
...g
|
|
60
|
+
}, t[23] = g, t[24] = k, t[25] = p, t[26] = a, t[27] = f, t[28] = O) : O = t[28], M = O, M;
|
|
61
|
+
}, ie = (n) => {
|
|
62
|
+
if (!V(n))
|
|
63
|
+
throw new Error(E("DSPopover", "DSPopover.Anchor child must be a valid React element."));
|
|
64
|
+
}, ce = ({
|
|
65
|
+
hasContent: n,
|
|
66
|
+
hasAnchor: t
|
|
67
|
+
}) => {
|
|
68
|
+
if (!n)
|
|
69
|
+
throw new Error(E("DSPopover", "A DSPopover must have a <DSPopover.Content> component as a child. Please add it to the children of DSPopover."));
|
|
70
|
+
if (!t)
|
|
71
|
+
throw new Error(E("DSPopover", "A DSPopover.Anchor must have a <DSPopover.Anchor> component as a child. Please add it to the children of DSPopover."));
|
|
72
|
+
}, j = G(null), q = () => {
|
|
73
|
+
const n = J(j);
|
|
74
|
+
if (n == null)
|
|
75
|
+
throw new Error(E("DSPopover", "Components like DSPopover.Anchor or DSPopover.Content must be wrapped in <DSPopover />."));
|
|
76
|
+
return n;
|
|
77
|
+
}, y = (n) => {
|
|
78
|
+
const t = w.c(9);
|
|
79
|
+
let e, o;
|
|
80
|
+
t[0] !== n ? ({
|
|
81
|
+
children: e,
|
|
82
|
+
...o
|
|
83
|
+
} = n, t[0] = n, t[1] = e, t[2] = o) : (e = t[1], o = t[2]);
|
|
84
|
+
let s;
|
|
85
|
+
t[3] !== o ? (s = {
|
|
86
|
+
...o
|
|
87
|
+
}, t[3] = o, t[4] = s) : s = t[4];
|
|
88
|
+
const r = re(s), d = $(e, y.Content), i = $(e, R);
|
|
89
|
+
process.env.NODE_ENV !== "production" && ce({
|
|
90
|
+
hasContent: d,
|
|
91
|
+
hasAnchor: i
|
|
92
|
+
});
|
|
93
|
+
let l;
|
|
94
|
+
return t[5] !== e || t[6] !== r || t[7] !== o ? (l = /* @__PURE__ */ A(j.Provider, { value: r, ...o, children: e }), t[5] = e, t[6] = r, t[7] = o, t[8] = l) : l = t[8], l;
|
|
95
|
+
}, R = I((n, t) => {
|
|
96
|
+
const e = w.c(12);
|
|
97
|
+
let o, s;
|
|
98
|
+
e[0] !== n ? ({
|
|
99
|
+
children: o,
|
|
100
|
+
...s
|
|
101
|
+
} = n, e[0] = n, e[1] = o, e[2] = s) : (o = e[1], s = e[2]), process.env.NODE_ENV !== "production" && ie(o);
|
|
102
|
+
const r = q(), d = o.ref;
|
|
103
|
+
let i;
|
|
104
|
+
e[3] !== d || e[4] !== r.refs.setReference || e[5] !== t ? (i = [r.refs.setReference, t, d], e[3] = d, e[4] = r.refs.setReference, e[5] = t, e[6] = i) : i = e[6];
|
|
105
|
+
const l = U(i);
|
|
106
|
+
if (V(o)) {
|
|
107
|
+
let c;
|
|
108
|
+
return e[7] !== o || e[8] !== r || e[9] !== s || e[10] !== l ? (c = H(o, r.getReferenceProps({
|
|
109
|
+
ref: l,
|
|
110
|
+
...s,
|
|
111
|
+
...o.props,
|
|
112
|
+
"data-state": r.open ? "open" : "closed"
|
|
113
|
+
})), e[7] = o, e[8] = r, e[9] = s, e[10] = l, e[11] = c) : c = e[11], c;
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
R.displayName = "DSPopover.Anchor";
|
|
117
|
+
const z = I((n, t) => {
|
|
118
|
+
const e = w.c(27);
|
|
119
|
+
let o, s, r;
|
|
120
|
+
e[0] !== n ? ({
|
|
121
|
+
style: r,
|
|
122
|
+
className: o,
|
|
123
|
+
...s
|
|
124
|
+
} = n, e[0] = n, e[1] = o, e[2] = s, e[3] = r) : (o = e[1], s = e[2], r = e[3]);
|
|
125
|
+
const d = q();
|
|
126
|
+
let i, l;
|
|
127
|
+
e[4] !== d ? ({
|
|
128
|
+
context: i,
|
|
129
|
+
...l
|
|
130
|
+
} = d, e[4] = d, e[5] = i, e[6] = l) : (i = e[5], l = e[6]);
|
|
131
|
+
let c;
|
|
132
|
+
e[7] !== t || e[8] !== l.refs.setFloating ? (c = [l.refs.setFloating, t], e[7] = t, e[8] = l.refs.setFloating, e[9] = c) : c = e[9];
|
|
133
|
+
const a = U(c);
|
|
134
|
+
if (!i.open)
|
|
135
|
+
return null;
|
|
136
|
+
let h;
|
|
137
|
+
e[10] !== l.floatingStyles || e[11] !== r ? (h = {
|
|
138
|
+
...l.floatingStyles,
|
|
139
|
+
...r
|
|
140
|
+
}, e[10] = l.floatingStyles, e[11] = r, e[12] = h) : h = e[12];
|
|
141
|
+
let m;
|
|
142
|
+
e[13] !== o ? (m = oe(le.popover, o), e[13] = o, e[14] = m) : m = e[14];
|
|
143
|
+
let p;
|
|
144
|
+
e[15] !== s || e[16] !== l ? (p = l.getFloatingProps(s), e[15] = s, e[16] = l, e[17] = p) : p = e[17];
|
|
145
|
+
let f;
|
|
146
|
+
e[18] !== s.children || e[19] !== a || e[20] !== h || e[21] !== m || e[22] !== p ? (f = /* @__PURE__ */ A("div", { ref: a, style: h, className: m, ...p, children: s.children }), e[18] = s.children, e[19] = a, e[20] = h, e[21] = m, e[22] = p, e[23] = f) : f = e[23];
|
|
147
|
+
let v;
|
|
148
|
+
return e[24] !== i || e[25] !== f ? (v = /* @__PURE__ */ A(ee, { children: /* @__PURE__ */ A(te, { context: i, modal: !1, children: f }) }), e[24] = i, e[25] = f, e[26] = v) : v = e[26], v;
|
|
149
|
+
});
|
|
150
|
+
z.displayName = "DSPopover.Content";
|
|
151
|
+
y.Anchor = R;
|
|
152
|
+
y.Content = z;
|
|
153
|
+
y.displayName = "DSPopover";
|
|
154
|
+
export {
|
|
155
|
+
y as D,
|
|
156
|
+
ce as a,
|
|
157
|
+
re as u,
|
|
158
|
+
ie as v
|
|
159
|
+
};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as F } from "react/jsx-runtime";
|
|
3
|
+
import { d as $ } from "./index.CgTHIF3K.js";
|
|
4
|
+
import { c as J } from "./index.CEyLAtio.js";
|
|
5
|
+
import { forwardRef as K, useState as Q } from "react";
|
|
6
|
+
import { D as W } from "./Fieldset.CjIfmN_5.js";
|
|
7
|
+
import { DSRadio as X } from "../radio.7_N_alaS.js";
|
|
8
|
+
import { g as m, r as V } from "./helpers.BbWkXTr3.js";
|
|
9
|
+
import '../assets/RadioGroup.CM2mYOzc.css';const Y = "ds-radio-group_root_12fot_1", Z = "ds-radio-group_root--horizontal_12fot_9", oo = "ds-radio-group_root--invalid_12fot_12", B = {
|
|
10
|
+
root: Y,
|
|
11
|
+
rootHorizontal: Z,
|
|
12
|
+
rootInvalid: oo
|
|
13
|
+
}, M = (i) => i.some(({
|
|
14
|
+
hint: s
|
|
15
|
+
}) => !!s), j = (i) => i.some(({
|
|
16
|
+
customArea: s,
|
|
17
|
+
isCustomAreaAbove: o
|
|
18
|
+
}) => !!s && !o), eo = ({
|
|
19
|
+
legend: i,
|
|
20
|
+
name: s,
|
|
21
|
+
options: o,
|
|
22
|
+
description: l,
|
|
23
|
+
direction: c,
|
|
24
|
+
id: a,
|
|
25
|
+
systemFeedback: e
|
|
26
|
+
}) => {
|
|
27
|
+
if (!a && (l || e))
|
|
28
|
+
throw new Error(m("DSRadioGroup", 'A unique "id" prop is required when providing the description or systemFeedback property. Please add a unique "id" prop to the DSRadioGroup component.'));
|
|
29
|
+
if (!i)
|
|
30
|
+
throw new Error(m("DSRadioGroup", V("legend", "DSRadioGroup")));
|
|
31
|
+
if (!s)
|
|
32
|
+
throw new Error(m("DSRadioGroup", V("name", "DSRadioGroup")));
|
|
33
|
+
if (Array.isArray(o)) {
|
|
34
|
+
if (o.length === 0)
|
|
35
|
+
throw new Error(m("DSRadioGroup", "The options array must not be empty."));
|
|
36
|
+
} else throw new Error(m("DSRadioGroup", V("options", "DSRadioGroup")));
|
|
37
|
+
if (c === "horizontal" && M(o))
|
|
38
|
+
throw new Error(m("DSRadioGroup", "Horizontal direction is not possible when options contain a hint. Please remove hints or change direction property to 'vertical'."));
|
|
39
|
+
if (c === "horizontal" && j(o))
|
|
40
|
+
throw new Error(m("DSRadioGroup", "Horizontal direction is not possible when options contain a custom area without isCustomAreaAbove set to true. Please remove custom areas, change direction property to 'vertical' or set isCustomAreaAbove to true."));
|
|
41
|
+
}, to = K((i, s) => {
|
|
42
|
+
const o = $.c(53);
|
|
43
|
+
let l, c, a, e, u, p, h, t, v, d, G, R, b, y, H, E;
|
|
44
|
+
o[0] !== i ? ({
|
|
45
|
+
legend: u,
|
|
46
|
+
name: p,
|
|
47
|
+
options: t,
|
|
48
|
+
className: l,
|
|
49
|
+
defaultValue: c,
|
|
50
|
+
description: a,
|
|
51
|
+
direction: G,
|
|
52
|
+
disabled: R,
|
|
53
|
+
hideUncheckedHints: b,
|
|
54
|
+
id: e,
|
|
55
|
+
invalid: y,
|
|
56
|
+
required: H,
|
|
57
|
+
systemFeedback: d,
|
|
58
|
+
value: E,
|
|
59
|
+
onChange: h,
|
|
60
|
+
...v
|
|
61
|
+
} = i, o[0] = i, o[1] = l, o[2] = c, o[3] = a, o[4] = e, o[5] = u, o[6] = p, o[7] = h, o[8] = t, o[9] = v, o[10] = d, o[11] = G, o[12] = R, o[13] = b, o[14] = y, o[15] = H, o[16] = E) : (l = o[1], c = o[2], a = o[3], e = o[4], u = o[5], p = o[6], h = o[7], t = o[8], v = o[9], d = o[10], G = o[11], R = o[12], b = o[13], y = o[14], H = o[15], E = o[16]);
|
|
62
|
+
const O = G === void 0 ? "vertical" : G, n = R === void 0 ? !1 : R, D = b === void 0 ? !1 : b, f = y === void 0 ? !1 : y, w = H === void 0 ? !1 : H;
|
|
63
|
+
process.env.NODE_ENV !== "production" && eo({
|
|
64
|
+
legend: u,
|
|
65
|
+
name: p,
|
|
66
|
+
options: t,
|
|
67
|
+
description: a,
|
|
68
|
+
direction: O,
|
|
69
|
+
id: e,
|
|
70
|
+
systemFeedback: d
|
|
71
|
+
});
|
|
72
|
+
const [L, T] = Q(c), _ = E !== void 0, z = _ ? E : L, N = O === "horizontal" && !M(t) && !j(t), I = f && !!d;
|
|
73
|
+
let A;
|
|
74
|
+
o[17] !== N || o[18] !== I ? (A = J(B.root, {
|
|
75
|
+
[B.rootHorizontal]: N,
|
|
76
|
+
[B.rootInvalid]: I
|
|
77
|
+
}), o[17] = N, o[18] = I, o[19] = A) : A = o[19];
|
|
78
|
+
const P = A;
|
|
79
|
+
let C;
|
|
80
|
+
o[20] !== n || o[21] !== _ || o[22] !== h ? (C = (r) => {
|
|
81
|
+
if (n) {
|
|
82
|
+
r.preventDefault();
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
_ || T(r.target.value), h && h(r);
|
|
86
|
+
}, o[20] = n, o[21] = _, o[22] = h, o[23] = C) : C = o[23];
|
|
87
|
+
const U = C;
|
|
88
|
+
let k;
|
|
89
|
+
o[24] !== D || o[25] !== t ? (k = M(t) && !D, o[24] = D, o[25] = t, o[26] = k) : k = o[26];
|
|
90
|
+
const x = k;
|
|
91
|
+
let S;
|
|
92
|
+
o[27] !== x || o[28] !== z || o[29] !== n || o[30] !== D || o[31] !== e || o[32] !== f || o[33] !== p || o[34] !== t || o[35] !== s || o[36] !== w ? (S = t.map((r) => /* @__PURE__ */ F(X, { name: p, checked: r.value === z, disabled: n, fieldsetId: e, hideUncheckedHint: D, hint: r.hint, invalid: f, isBold: x, required: w, ref: r.value === z ? s : null, ...r }, e + r.label + r.value + r.hint)), o[27] = x, o[28] = z, o[29] = n, o[30] = D, o[31] = e, o[32] = f, o[33] = p, o[34] = t, o[35] = s, o[36] = w, o[37] = S) : S = o[37];
|
|
93
|
+
let g;
|
|
94
|
+
o[38] !== P || o[39] !== S ? (g = /* @__PURE__ */ F("div", { className: P, children: S }), o[38] = P, o[39] = S, o[40] = g) : g = o[40];
|
|
95
|
+
let q;
|
|
96
|
+
return o[41] !== l || o[42] !== a || o[43] !== n || o[44] !== U || o[45] !== e || o[46] !== f || o[47] !== u || o[48] !== w || o[49] !== v || o[50] !== d || o[51] !== g ? (q = /* @__PURE__ */ F(W, { id: e, legend: u, className: l, description: a, disabled: n, required: w, invalid: f, systemFeedback: d, ...v, role: "radiogroup", onChange: U, children: g }), o[41] = l, o[42] = a, o[43] = n, o[44] = U, o[45] = e, o[46] = f, o[47] = u, o[48] = w, o[49] = v, o[50] = d, o[51] = g, o[52] = q) : q = o[52], q;
|
|
97
|
+
});
|
|
98
|
+
to.displayName = "DSRadioGroup";
|
|
99
|
+
export {
|
|
100
|
+
to as D,
|
|
101
|
+
j as a,
|
|
102
|
+
M as o,
|
|
103
|
+
eo as v
|
|
104
|
+
};
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _, jsxs as we } from "react/jsx-runtime";
|
|
3
|
+
import { d as xe } from "./index.CgTHIF3K.js";
|
|
4
|
+
import { c as ve } from "./index.CEyLAtio.js";
|
|
5
|
+
import { forwardRef as Be, useRef as Fe, useState as Ie, useEffect as He } from "react";
|
|
6
|
+
import { u as Re } from "./useBreakpoint.CMOR9ZOB.js";
|
|
7
|
+
import { Asterisk as je } from "../asterisk.CR60hx8S.js";
|
|
8
|
+
import { D as We } from "./Icon.DGTYCv63.js";
|
|
9
|
+
import { D as ze } from "./SystemFeedback.B9f67mjJ.js";
|
|
10
|
+
import { g as me, r as Me } from "./helpers.BbWkXTr3.js";
|
|
11
|
+
import '../assets/Select.CYACicZ3.css';const Te = "ds-select_root_d8v6g_1", Oe = "ds-select_hint_d8v6g_10", Ze = "ds-select_label_d8v6g_10", Je = "ds-select_label--hidden_d8v6g_100", Ke = "ds-select_label--disabled_d8v6g_113", Qe = "ds-select_feedback_d8v6g_133", Ue = "ds-select_select-wrapper_d8v6g_138", Xe = "ds-select_select_d8v6g_138", Ye = "ds-select_select--small_d8v6g_152", Ge = "ds-select_select--invalid_d8v6g_264", el = "ds-select_select--placeholder_d8v6g_379", ll = "ds-select_chevron_d8v6g_418", tl = "ds-select_chevron--small_d8v6g_422", sl = "ds-select_chevron--disabled_d8v6g_425", t = {
|
|
12
|
+
root: Te,
|
|
13
|
+
hint: Oe,
|
|
14
|
+
label: Ze,
|
|
15
|
+
labelHidden: Je,
|
|
16
|
+
labelDisabled: Ke,
|
|
17
|
+
feedback: Qe,
|
|
18
|
+
selectWrapper: Ue,
|
|
19
|
+
select: Xe,
|
|
20
|
+
selectSmall: Ye,
|
|
21
|
+
selectInvalid: Ge,
|
|
22
|
+
selectPlaceholder: el,
|
|
23
|
+
chevron: ll,
|
|
24
|
+
chevronSmall: tl,
|
|
25
|
+
chevronDisabled: sl
|
|
26
|
+
}, ul = ["medium", "small"], al = ({
|
|
27
|
+
id: r,
|
|
28
|
+
label: s,
|
|
29
|
+
options: e
|
|
30
|
+
}) => {
|
|
31
|
+
if (!r)
|
|
32
|
+
throw new Error(me("DSSelect", 'A unique "id" prop is required. Please add a unique "id" prop to the DSSelect component.'));
|
|
33
|
+
if (!s)
|
|
34
|
+
throw new Error(me("DSSelect", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSSelect component. If you don't want to display a label, set hideLabel={true}.`));
|
|
35
|
+
if (Array.isArray(e)) {
|
|
36
|
+
if (e.length === 0)
|
|
37
|
+
throw new Error(me("DSSelect", "The options array must not be empty."));
|
|
38
|
+
} else throw new Error(me("DSSelect", Me("options", "DSSelect")));
|
|
39
|
+
}, ol = (r, s, e) => r === "" || s !== void 0 && s !== "" ? !1 : !(e !== void 0 && e !== ""), cl = Be((r, s) => {
|
|
40
|
+
const e = xe.c(127);
|
|
41
|
+
let i, n, d, l, f, b, S, D, a, Z, J, K, Q, U, X, c;
|
|
42
|
+
e[0] !== r ? ({
|
|
43
|
+
id: l,
|
|
44
|
+
label: f,
|
|
45
|
+
options: S,
|
|
46
|
+
className: i,
|
|
47
|
+
defaultValue: n,
|
|
48
|
+
disabled: Z,
|
|
49
|
+
hideLabel: J,
|
|
50
|
+
hint: d,
|
|
51
|
+
invalid: K,
|
|
52
|
+
placeholder: Q,
|
|
53
|
+
required: U,
|
|
54
|
+
size: X,
|
|
55
|
+
systemFeedback: a,
|
|
56
|
+
value: c,
|
|
57
|
+
onChange: b,
|
|
58
|
+
...D
|
|
59
|
+
} = r, e[0] = r, e[1] = i, e[2] = n, e[3] = d, e[4] = l, e[5] = f, e[6] = b, e[7] = S, e[8] = D, e[9] = a, e[10] = Z, e[11] = J, e[12] = K, e[13] = Q, e[14] = U, e[15] = X, e[16] = c) : (i = e[1], n = e[2], d = e[3], l = e[4], f = e[5], b = e[6], S = e[7], D = e[8], a = e[9], Z = e[10], J = e[11], K = e[12], Q = e[13], U = e[14], X = e[15], c = e[16]);
|
|
60
|
+
const h = Z === void 0 ? !1 : Z, Pe = J === void 0 ? !1 : J, o = K === void 0 ? !1 : K, g = Q === void 0 ? "Select" : Q, y = U === void 0 ? !1 : U, le = X === void 0 ? "medium" : X;
|
|
61
|
+
process.env.NODE_ENV !== "production" && al({
|
|
62
|
+
id: l,
|
|
63
|
+
label: f,
|
|
64
|
+
options: S
|
|
65
|
+
});
|
|
66
|
+
const qe = Fe(null), [pe, Ne] = Ie(c);
|
|
67
|
+
let te;
|
|
68
|
+
e[17] !== n || e[18] !== g || e[19] !== c ? (te = ol(g, n, c), e[17] = n, e[18] = g, e[19] = c, e[20] = te) : te = e[20];
|
|
69
|
+
const [Y, Ce] = Ie(te);
|
|
70
|
+
let se, ae;
|
|
71
|
+
e[21] !== c ? (se = () => {
|
|
72
|
+
Ne(c);
|
|
73
|
+
}, ae = [c], e[21] = c, e[22] = se, e[23] = ae) : (se = e[22], ae = e[23]), He(se, ae);
|
|
74
|
+
let oe;
|
|
75
|
+
e[24] !== s ? (oe = (ee) => {
|
|
76
|
+
qe.current = ee, typeof s == "function" ? s(ee) : s && (s.current = ee);
|
|
77
|
+
}, e[24] = s, e[25] = oe) : oe = e[25];
|
|
78
|
+
const ue = oe, G = Re(Pe), w = `${l}-label`, v = `${l}-feedback`, N = `${l}-hint`, _e = d ? ` ${N}` : "";
|
|
79
|
+
let ce;
|
|
80
|
+
e[26] !== o || e[27] !== a || e[28] !== v ? (ce = [o && a && v].filter(Boolean).join(" ") || void 0, e[26] = o, e[27] = a, e[28] = v, e[29] = ce) : ce = e[29];
|
|
81
|
+
const Se = ce;
|
|
82
|
+
let k, E, I, P, q, C, $, L, V, A, x, B, F, H, R, j, m, p, u;
|
|
83
|
+
if (e[30] !== Se || e[31] !== _e || e[32] !== i || e[33] !== n || e[34] !== h || e[35] !== ue || e[36] !== G || e[37] !== d || e[38] !== N || e[39] !== l || e[40] !== o || e[41] !== Y || e[42] !== f || e[43] !== b || e[44] !== S || e[45] !== g || e[46] !== y || e[47] !== D || e[48] !== w || e[49] !== pe || e[50] !== le || e[51] !== a || e[52] !== v) {
|
|
84
|
+
const ee = (he) => [g && /* @__PURE__ */ _("option", { value: "", children: g }, `${l}-hidden-option-disabled-placeholder`), ...he.map((O) => {
|
|
85
|
+
if ("options" in O) {
|
|
86
|
+
const {
|
|
87
|
+
label: Ee,
|
|
88
|
+
options: Ae
|
|
89
|
+
} = O;
|
|
90
|
+
return /* @__PURE__ */ _("optgroup", { label: Ee, children: Ae.map(ke) }, Ee);
|
|
91
|
+
} else
|
|
92
|
+
return ke(O);
|
|
93
|
+
})], ke = il;
|
|
94
|
+
let de;
|
|
95
|
+
e[72] !== i ? (de = ve(t.root, i), e[72] = i, e[73] = de) : de = e[73];
|
|
96
|
+
const $e = de, ge = le === "small";
|
|
97
|
+
let re;
|
|
98
|
+
e[74] !== o || e[75] !== Y || e[76] !== ge ? (re = ve(t.select, {
|
|
99
|
+
[t.selectSmall]: ge,
|
|
100
|
+
[t.selectInvalid]: o,
|
|
101
|
+
[t.selectPlaceholder]: Y
|
|
102
|
+
}), e[74] = o, e[75] = Y, e[76] = ge, e[77] = re) : re = e[77];
|
|
103
|
+
const Le = re;
|
|
104
|
+
let ne;
|
|
105
|
+
e[78] !== h || e[79] !== G ? (ne = ve(t.label, {
|
|
106
|
+
[t.labelHidden]: G,
|
|
107
|
+
[t.labelDisabled]: h
|
|
108
|
+
}), e[78] = h, e[79] = G, e[80] = ne) : ne = e[80];
|
|
109
|
+
const De = ne, ye = le === "small";
|
|
110
|
+
let fe;
|
|
111
|
+
e[81] !== h || e[82] !== ye ? (fe = ve(t.chevron, {
|
|
112
|
+
[t.chevronSmall]: ye,
|
|
113
|
+
[t.chevronDisabled]: h
|
|
114
|
+
}), e[81] = h, e[82] = ye, e[83] = fe) : fe = e[83], k = fe;
|
|
115
|
+
let be;
|
|
116
|
+
e[84] !== b ? (be = (he) => {
|
|
117
|
+
const {
|
|
118
|
+
value: O
|
|
119
|
+
} = he.target;
|
|
120
|
+
Ce(O === ""), Ne(O), b && b(he);
|
|
121
|
+
}, e[84] = b, e[85] = be) : be = e[85];
|
|
122
|
+
const Ve = be;
|
|
123
|
+
j = $e;
|
|
124
|
+
let T;
|
|
125
|
+
e[86] !== y ? (T = y && /* @__PURE__ */ _(je, {}), e[86] = y, e[87] = T) : T = e[87], e[88] !== l || e[89] !== f || e[90] !== De || e[91] !== w || e[92] !== T ? (m = /* @__PURE__ */ we("label", { className: De, id: w, htmlFor: l, children: [
|
|
126
|
+
f,
|
|
127
|
+
T
|
|
128
|
+
] }), e[88] = l, e[89] = f, e[90] = De, e[91] = w, e[92] = T, e[93] = m) : m = e[93], e[94] !== d || e[95] !== N ? (p = d && /* @__PURE__ */ _("div", { className: t.hint, id: N, children: d }), e[94] = d, e[95] = N, e[96] = p) : p = e[96], e[97] !== o || e[98] !== a || e[99] !== v ? (u = o && a && /* @__PURE__ */ _(ze, { className: t.feedback, message: a, variant: "error", id: v }), e[97] = o, e[98] = a, e[99] = v, e[100] = u) : u = e[100], R = t.selectWrapper, E = D, I = l, P = ue, q = Le, C = `${w}${_e}`, $ = Se, L = o, V = n, A = pe, x = h, B = y, F = Ve, H = ee(S), e[30] = Se, e[31] = _e, e[32] = i, e[33] = n, e[34] = h, e[35] = ue, e[36] = G, e[37] = d, e[38] = N, e[39] = l, e[40] = o, e[41] = Y, e[42] = f, e[43] = b, e[44] = S, e[45] = g, e[46] = y, e[47] = D, e[48] = w, e[49] = pe, e[50] = le, e[51] = a, e[52] = v, e[53] = k, e[54] = E, e[55] = I, e[56] = P, e[57] = q, e[58] = C, e[59] = $, e[60] = L, e[61] = V, e[62] = A, e[63] = x, e[64] = B, e[65] = F, e[66] = H, e[67] = R, e[68] = j, e[69] = m, e[70] = p, e[71] = u;
|
|
129
|
+
} else
|
|
130
|
+
k = e[53], E = e[54], I = e[55], P = e[56], q = e[57], C = e[58], $ = e[59], L = e[60], V = e[61], A = e[62], x = e[63], B = e[64], F = e[65], H = e[66], R = e[67], j = e[68], m = e[69], p = e[70], u = e[71];
|
|
131
|
+
let W;
|
|
132
|
+
e[101] !== E || e[102] !== I || e[103] !== P || e[104] !== q || e[105] !== C || e[106] !== $ || e[107] !== L || e[108] !== V || e[109] !== A || e[110] !== x || e[111] !== B || e[112] !== F || e[113] !== H ? (W = /* @__PURE__ */ _("select", { ...E, id: I, ref: P, className: q, "aria-labelledby": C, "aria-describedby": $, "aria-invalid": L, defaultValue: V, value: A, disabled: x, required: B, onChange: F, children: H }), e[101] = E, e[102] = I, e[103] = P, e[104] = q, e[105] = C, e[106] = $, e[107] = L, e[108] = V, e[109] = A, e[110] = x, e[111] = B, e[112] = F, e[113] = H, e[114] = W) : W = e[114];
|
|
133
|
+
let z;
|
|
134
|
+
e[115] !== k ? (z = /* @__PURE__ */ _(We, { name: "chevron-down", className: k, "aria-hidden": "true" }), e[115] = k, e[116] = z) : z = e[116];
|
|
135
|
+
let M;
|
|
136
|
+
e[117] !== R || e[118] !== W || e[119] !== z ? (M = /* @__PURE__ */ we("div", { className: R, children: [
|
|
137
|
+
W,
|
|
138
|
+
z
|
|
139
|
+
] }), e[117] = R, e[118] = W, e[119] = z, e[120] = M) : M = e[120];
|
|
140
|
+
let ie;
|
|
141
|
+
return e[121] !== j || e[122] !== m || e[123] !== p || e[124] !== u || e[125] !== M ? (ie = /* @__PURE__ */ we("div", { className: j, children: [
|
|
142
|
+
m,
|
|
143
|
+
p,
|
|
144
|
+
u,
|
|
145
|
+
M
|
|
146
|
+
] }), e[121] = j, e[122] = m, e[123] = p, e[124] = u, e[125] = M, e[126] = ie) : ie = e[126], ie;
|
|
147
|
+
});
|
|
148
|
+
cl.displayName = "DSSelect";
|
|
149
|
+
function il(r) {
|
|
150
|
+
const {
|
|
151
|
+
label: s,
|
|
152
|
+
value: e,
|
|
153
|
+
isDisabled: i
|
|
154
|
+
} = r;
|
|
155
|
+
return /* @__PURE__ */ _("option", { value: e, disabled: i, children: s }, e);
|
|
156
|
+
}
|
|
157
|
+
export {
|
|
158
|
+
cl as D,
|
|
159
|
+
ul as S,
|
|
160
|
+
ol as g,
|
|
161
|
+
al as v
|
|
162
|
+
};
|