@stihl-design-system/components 1.0.0-RC.46 → 1.0.0-RC.48
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/{accordion.Dvt4S5qg.js → accordion.D4XR2R7e.js} +3 -3
- package/actionbutton.C8hePX-D.js +12 -0
- package/{actioncard.BwquHtM_.js → actioncard.kDxu01xm.js} +1 -1
- package/actionlink.dccc5JQV.js +12 -0
- package/{arialiveregions.BF6mUlPU.js → arialiveregions.BniSDuPM.js} +9 -10
- package/assets/Accordion.RlqWqpGo.css +1 -0
- package/assets/ActionButton.Dw2FeIaW.css +1 -0
- package/assets/ActionCard.viEoC26n.css +1 -0
- package/assets/ActionLink.B1Jjaf7k.css +1 -0
- package/assets/Breadcrumb.BJ6sa2am.css +1 -0
- package/assets/Button.Bi1KUKMv.css +1 -0
- package/assets/Checkbox.C6RWhy0V.css +1 -0
- package/assets/Chip.DfamkUPw.css +1 -0
- package/assets/CustomReactSelect.CvWMmrAU.css +1 -0
- package/assets/Dialog.6AkQo8ew.css +1 -0
- package/assets/Drawer.CDOlX809.css +1 -0
- package/assets/Fieldset.BbLGXCWa.css +1 -0
- package/assets/Flag.qP1xbolI.css +1 -0
- package/assets/Header.CSPbSqR5.css +1 -0
- package/assets/InputFile.CDtghZtl.css +1 -0
- package/assets/InputNumber.BNpO9p7n.css +1 -0
- package/assets/InputPassword.BgZo-RUc.css +1 -0
- package/assets/InputSearch.BROFFTK9.css +1 -0
- package/assets/LinkButton.IKIlFnpH.css +1 -0
- package/assets/LinkCard.pJtgJRIh.css +1 -0
- package/assets/NavigationTabList.D5VV0C7Y.css +1 -0
- package/assets/Notification.2B81JHOp.css +1 -0
- package/assets/Pagination.DH71DZ0j.css +1 -0
- package/assets/Popover.58Tb0dOt.css +1 -0
- package/assets/Select.CfTN3CJo.css +1 -0
- package/assets/Slider.B4kzL60S.css +1 -0
- package/assets/Stepper.BCpjMiOX.css +1 -0
- package/assets/SystemFeedback.DVMml_h9.css +1 -0
- package/assets/TextUtility.BThulfyl.css +1 -0
- package/assets/Textarea.BO4AcRJD.css +1 -0
- package/assets/Toast.ChXfv24m.css +1 -0
- package/assets/buttonround.syTU1QSI.css +1 -0
- package/assets/chipgroup.DtCnsmS7.css +1 -0
- package/assets/filelist.B-Ru0GP_.css +1 -0
- package/assets/input.Dy8VS73e.css +1 -0
- package/assets/link.EZrauC8s.css +1 -0
- package/assets/numberindicator.CtbitPQ8.css +1 -0
- package/assets/optioncheckbox.BwkbIDOt.css +1 -0
- package/assets/progressindicator.tyY_RVQ9.css +1 -0
- package/assets/radio.9hUUyg8R.css +1 -0
- package/assets/step.DOAmuuEQ.css +1 -0
- package/assets/switch.8v7Wp1Fj.css +1 -0
- package/assets/tabpane.DDaeSDQb.css +1 -0
- package/assets/text.BwGsYzGM.css +1 -0
- package/assets/tooltip.C_BL2kou.css +1 -0
- package/{banner.CwZXWMc_.js → banner.DO7GsDL_.js} +1 -1
- package/{breadcrumb.DMqAgUyk.js → breadcrumb.DYov6vtt.js} +3 -3
- package/{button.BDCfI_fj.js → button.qxcuzbnv.js} +4 -4
- package/buttonround.BO7_ewzA.js +101 -0
- package/checkbox.C9kyIY9P.js +11 -0
- package/{checkboxgroup.DDWYxYzk.js → checkboxgroup.kEUxnKLf.js} +2 -2
- package/chip.5ktNLRYf.js +12 -0
- package/chipgroup.kRU3Z98U.js +226 -0
- package/chunks/Accordion.gih2ni1d.js +179 -0
- package/chunks/ActionButton.B-wm5sUy.js +194 -0
- package/chunks/{ActionCard.DJSGkwVG.js → ActionCard.Bm-2ewfS.js} +38 -38
- package/chunks/ActionLink.D0KzqbH4.js +166 -0
- package/chunks/{AriaLiveRegions.utils.8ofDlHnN.js → AriaLiveRegions.utils.xoETe2Ps.js} +16 -18
- package/chunks/{Breadcrumb.BkP2B-Vm.js → Breadcrumb.I2G-T0zc.js} +14 -14
- package/chunks/Button.CCol--xy.js +165 -0
- package/chunks/Checkbox.BxOGR1bR.js +96 -0
- package/chunks/CheckboxGroup.TneO0tuE.js +85 -0
- package/chunks/Chip.DffaXMkV.js +148 -0
- package/chunks/{CustomReactSelect.yVERtd4R.js → CustomReactSelect.DTAavYaz.js} +250 -245
- package/chunks/Dialog.guuxflWL.js +101 -0
- package/chunks/Drawer.CjUZu6GW.js +106 -0
- package/chunks/Fieldset.BBMuLKps.js +94 -0
- package/chunks/Flag.CbQYBzVC.js +74 -0
- package/chunks/{Header.DyqOlV8L.js → Header.CvcGSuhX.js} +140 -140
- package/chunks/{Icon.B0WqYErA.js → Icon.DYtaQgbw.js} +1 -1
- package/chunks/{Input.utils.D78E4MGO.js → Input.utils.Wycy2SzG.js} +23 -25
- package/chunks/InputFile.y71Cd5J9.js +260 -0
- package/chunks/InputNumber.Fn2YbF_s.js +250 -0
- package/chunks/InputPassword.DtT9yrlx.js +129 -0
- package/chunks/InputSearch.BoAfGqoH.js +157 -0
- package/chunks/LinkButton.BxG7fx1O.js +150 -0
- package/chunks/LinkCard.DM-5WrSt.js +200 -0
- package/chunks/{MegaMenu.CiSiMlE3.js → MegaMenu.udXR1H3W.js} +2 -2
- package/chunks/NavigationTabList.thzA1pU8.js +68 -0
- package/chunks/{NavigationTabs.BqaUbfFC.js → NavigationTabs.BWewgBch.js} +1 -1
- package/chunks/Notification.C_o7Ge6Q.js +91 -0
- package/chunks/Pagination.BrOMUJMi.js +272 -0
- package/chunks/Popover.CxZZ_y1Z.js +230 -0
- package/chunks/RadioGroup.CO91_5hA.js +136 -0
- package/chunks/Select.EzoMdk1u.js +157 -0
- package/chunks/Slider.CX38t4Sk.js +330 -0
- package/chunks/{Stepper.Bqnak38-.js → Stepper.Ds_aIEF8.js} +72 -73
- package/chunks/SystemFeedback.DhWcYjnu.js +43 -0
- package/chunks/{Tabs.cMCZMPCy.js → Tabs.BHVlgp7L.js} +2 -2
- package/chunks/Text.utils.DzlY9pJS.js +9 -0
- package/chunks/TextUtility.BZLwqyic.js +82 -0
- package/chunks/Textarea.vuJgvW6_.js +192 -0
- package/chunks/Toast.V_ZUAsf2.js +76 -0
- package/chunks/floating-ui.react.Chmq0RmI.js +3014 -0
- package/chunks/translate.DSb-TdWR.js +2460 -0
- package/{combobox.CpX-Vlyd.js → combobox.C6cPz4AJ.js} +1 -1
- package/components/Accordion/Accordion.d.ts +5 -0
- package/components/ActionButton/ActionButton.d.ts +5 -1
- package/components/ActionLink/ActionLink.d.ts +1 -1
- package/components/Button/Button.utils.d.ts +1 -1
- package/components/Checkbox/Checkbox.d.ts +8 -1
- package/components/CheckboxGroup/CheckboxGroup.d.ts +9 -1
- package/components/ChipGroup/Chip.d.ts +2 -0
- package/components/ChipGroup/ChipGroup.d.ts +12 -2
- package/components/ChipGroup/ChipGroup.utils.d.ts +39 -15
- package/components/Combobox/Combobox.utils.d.ts +66 -9
- package/components/Combobox/CustomReactSelect/CustomReactSelect.d.ts +5 -1
- package/components/Combobox/CustomReactSelect/CustomReactSelect.utils.d.ts +1 -1
- package/components/Fieldset/Fieldset.d.ts +9 -2
- package/components/Flag/Flag.d.ts +3 -3
- package/components/Flag/Flag.utils.d.ts +7 -2
- package/components/Input/Input.d.ts +8 -1
- package/components/InputFile/FileList/FileList.d.ts +4 -2
- package/components/InputFile/FileList/FilePreview/FilePreview.d.ts +8 -2
- package/components/InputFile/FileList/ProgressIndicator/ProgressIndicator.d.ts +8 -2
- package/components/InputFile/InputFile.d.ts +12 -2
- package/components/InputFile/InputFile.utils.d.ts +41 -23
- package/components/InputNumber/InputNumber.d.ts +8 -1
- package/components/InputPassword/InputPassword.d.ts +8 -1
- package/components/InputSearch/InputSearch.d.ts +8 -1
- package/components/LinkCard/LinkCard.d.ts +10 -4
- package/components/LinkCard/LinkCard.utils.d.ts +2 -2
- package/components/NumberIndicator/NumberIndicator.d.ts +6 -1
- package/components/Pagination/Pagination.d.ts +10 -3
- package/components/Pagination/Pagination.utils.d.ts +22 -9
- package/components/Popover/Popover.d.ts +9 -1
- package/components/Popover/Popover.utils.d.ts +3 -2
- package/components/Radio/Radio.d.ts +5 -0
- package/components/RadioGroup/RadioGroup.d.ts +8 -0
- package/components/Select/Select.d.ts +8 -1
- package/components/Slider/Slider.d.ts +8 -1
- package/components/Stepper/Step.d.ts +1 -1
- package/components/Stepper/Step.utils.d.ts +1 -1
- package/components/Stepper/Stepper.d.ts +4 -1
- package/components/Stepper/Stepper.utils.d.ts +9 -4
- package/components/SystemFeedback/SystemFeedback.d.ts +9 -1
- package/components/Textarea/Textarea.d.ts +8 -1
- package/{customreactselect.B1FFXsJ8.js → customreactselect.L0zSh3Tg.js} +6 -6
- package/{dialog.ZQ-HnvZs.js → dialog.Ddq8o8Od.js} +2 -2
- package/{drawer.D0-RM0WZ.js → drawer.rbbjQvqL.js} +2 -2
- package/{fieldset.BzOeuWjO.js → fieldset.BHf3XK2q.js} +3 -3
- package/filelist.GrEwoM1u.js +143 -0
- package/filepreview.B2Ot9SZ7.js +97 -0
- package/flag.fX6LAgty.js +10 -0
- package/{floatingactionbutton.AVc4qY0u.js → floatingactionbutton.BwCiybnc.js} +3 -3
- package/{header.BtGgmM59.js → header.BCeCjYfG.js} +1 -1
- package/{icon.DrTLVrpN.js → icon.CRr1FGOu.js} +1 -1
- package/index.es.js +231 -230
- package/input.Dh0ws-9j.js +187 -0
- package/inputfile.DiZh3GcT.js +17 -0
- package/{inputnumber.r0iVYkjd.js → inputnumber.D2cmptaH.js} +8 -9
- package/{inputpassword.PXBZo3f0.js → inputpassword.C53Kg4EA.js} +4 -4
- package/inputsearch.BrsIDUSW.js +14 -0
- package/link.DEZDbUgq.js +81 -0
- package/{linkbutton.DVFXzn-A.js → linkbutton._X50W2Md.js} +3 -3
- package/{linkcard.BwSMt03V.js → linkcard.BtM3KnjT.js} +4 -4
- package/{logo.D7LnRA1E.js → logo.D6BTxbxv.js} +0 -1
- package/{megamenu.CUjk3_h2.js → megamenu.odVCUm4c.js} +3 -3
- package/navigationtablist.n9DrtYe5.js +10 -0
- package/{navigationtabs.DmcYShPs.js → navigationtabs.D0mSyAtK.js} +2 -2
- package/{notification.BVoapVVg.js → notification._X8-8vOa.js} +3 -3
- package/numberindicator.DsK65Bj3.js +39 -0
- package/optioncheckbox.tlMEoyT0.js +48 -0
- package/package.json +38 -33
- package/pagination.B7Hrx_sk.js +14 -0
- package/partials/index.js +91 -91
- package/{popover.OcE_5SfG.js → popover.BBaqL7y9.js} +4 -4
- package/progressindicator.D9CfVD95.js +74 -0
- package/radio.DjToa2aV.js +148 -0
- package/{radiogroup.N06_e0b8.js → radiogroup.mc-8lw65.js} +3 -3
- package/{scroller.CwTXbzb8.js → scroller.CgWp2WXG.js} +10 -11
- package/select.DTZ6a6Ag.js +13 -0
- package/{skeleton.DUkBgXxO.js → skeleton.CNJdNVav.js} +10 -10
- package/{skiptocontent.Bujq9t3i.js → skiptocontent.BsRpWvyu.js} +4 -4
- package/{slider.JAKEAwOB.js → slider.BMGAihY0.js} +3 -3
- package/{spinner.D1W-X96t.js → spinner.DtLnsqVV.js} +1 -1
- package/step.DCQ6CawJ.js +82 -0
- package/stepper.D7-7BdSv.js +15 -0
- package/styles/js/index.d.ts +1 -0
- package/styles/js/index.es.js +24 -4
- package/styles/js/lib/spacing-rem.d.ts +21 -0
- package/styles/js/lib/spacing.d.ts +0 -1
- package/styles/scss/ds/index.scss +4 -1
- package/styles/scss/ds/lib/border-width.scss +3 -0
- package/styles/scss/ds/lib/ds-internal/_input.scss +71 -26
- package/styles/scss/ds/lib/ds-internal/_link-button.scss +7 -4
- package/styles/scss/ds/lib/ds-internal/_link.scss +23 -3
- package/styles/scss/ds/lib/ds-internal/_text.scss +3 -1
- package/styles/scss/ds/lib/grid-narrow.scss +1 -0
- package/styles/scss/ds/lib/input.scss +12 -7
- package/styles/scss/ds/lib/link.scss +2 -2
- package/styles/scss/ds/lib/radius.scss +5 -0
- package/styles/scss/ds/lib/spacing-rem.scss +19 -0
- package/styles/scss/ds/lib/spacing.scss +0 -1
- package/switch.tM2XBag8.js +66 -0
- package/{systemfeedback.B8FBckG4.js → systemfeedback.BPPOht_9.js} +2 -2
- package/{tablist.D3n9E4KM.js → tablist.BAm0_UIG.js} +22 -23
- package/{tabpane.7vMXUKFX.js → tabpane.B9rZghU6.js} +1 -1
- package/{tabs.IVNsM5Gn.js → tabs.BgTdWbTe.js} +3 -3
- package/text.BEO_ZfJq.js +72 -0
- package/{textarea.gjb8VGgh.js → textarea.Cki-uMkZ.js} +5 -6
- package/{textutility.CNWCGYOy.js → textutility.BypzssPt.js} +2 -2
- package/{toast.DU8Sd_4c.js → toast.s0Hfuh5i.js} +3 -3
- package/{toastmanager.UlkvsO5p.js → toastmanager.CPIPn4Io.js} +22 -23
- package/{tooltip.C6HKano9.js → tooltip.BFQG-7VR.js} +22 -22
- package/{topbar.Z9NNkxKU.js → topbar.Bbct-XkB.js} +3 -3
- package/utils/translate.d.ts +22 -6
- package/actionbutton.D6qmbuAA.js +0 -12
- package/actionlink.fWwe7J0H.js +0 -12
- package/assets/Accordion.Cr1dbVTH.css +0 -1
- package/assets/ActionButton.BLOWs6IZ.css +0 -1
- package/assets/ActionCard.BG8w8xUC.css +0 -1
- package/assets/ActionLink.BJDUVdT7.css +0 -1
- package/assets/Breadcrumb.BavNNzAA.css +0 -1
- package/assets/Button.C-UYIggc.css +0 -1
- package/assets/Checkbox.ZAPIO2N8.css +0 -1
- package/assets/Chip.D3vV0wyV.css +0 -1
- package/assets/CustomReactSelect.Ctze4SRN.css +0 -1
- package/assets/Dialog.BKwWy1g2.css +0 -1
- package/assets/Drawer.BU-fi5Hk.css +0 -1
- package/assets/Fieldset.DCmr1Yir.css +0 -1
- package/assets/Header.BNYL2Y78.css +0 -1
- package/assets/InputFile.BUMCNCrj.css +0 -1
- package/assets/InputNumber.Bmz8cNKg.css +0 -1
- package/assets/InputPassword.CutbykTm.css +0 -1
- package/assets/InputSearch.Sr9jVpKt.css +0 -1
- package/assets/LinkButton.CxJvjEY5.css +0 -1
- package/assets/LinkCard.DkQoQJxx.css +0 -1
- package/assets/NavigationTabList.DYjNT2Di.css +0 -1
- package/assets/Notification.DBGpHzov.css +0 -1
- package/assets/Pagination.DZ1yCAMR.css +0 -1
- package/assets/Popover.mL5g23EK.css +0 -1
- package/assets/Select.BZYb_HAG.css +0 -1
- package/assets/Slider.vnSU0ya0.css +0 -1
- package/assets/Stepper.tXJl15yL.css +0 -1
- package/assets/SystemFeedback.PKzqnXUe.css +0 -1
- package/assets/TextUtility.CEBJaKBG.css +0 -1
- package/assets/Textarea.BIgA9_fl.css +0 -1
- package/assets/Toast.CGl8z6mX.css +0 -1
- package/assets/buttonround.CMrJRIeW.css +0 -1
- package/assets/chipgroup.BGxjdSDX.css +0 -1
- package/assets/filelist.CHVupL8T.css +0 -1
- package/assets/flag.CyCIPu_J.css +0 -1
- package/assets/input.BEOus9jX.css +0 -1
- package/assets/link.Dcsio57m.css +0 -1
- package/assets/numberindicator.BYIPwkAK.css +0 -1
- package/assets/optioncheckbox.6zYgifUk.css +0 -1
- package/assets/progressindicator.Cbbzo5-b.css +0 -1
- package/assets/radio.l9OTraQU.css +0 -1
- package/assets/step.Ch508u7I.css +0 -1
- package/assets/switch.DYamtd9O.css +0 -1
- package/assets/tabpane.o34hshTz.css +0 -1
- package/assets/text.BA1eUihR.css +0 -1
- package/assets/tooltip.BPcysHGE.css +0 -1
- package/buttonround.DZCu35Zw.js +0 -101
- package/checkbox.RYvu23i4.js +0 -12
- package/chip.CtZK5gH7.js +0 -12
- package/chipgroup.C-UJt9Nb.js +0 -213
- package/chunks/Accordion.Tz7cWkk5.js +0 -173
- package/chunks/ActionButton.Dqay6Dxt.js +0 -188
- package/chunks/ActionLink.BgWqWSKi.js +0 -161
- package/chunks/Button.Dauhc5op.js +0 -160
- package/chunks/Checkbox.C5Jgtwho.js +0 -88
- package/chunks/CheckboxGroup.Df_nLGBa.js +0 -79
- package/chunks/Chip.DXS_ZMGD.js +0 -157
- package/chunks/Dialog.mP1tZEbW.js +0 -102
- package/chunks/Drawer.D6IG0DRe.js +0 -107
- package/chunks/Fieldset.DxhNhprT.js +0 -91
- package/chunks/InputFile.BSGunqyW.js +0 -260
- package/chunks/InputNumber.BsBAdxWr.js +0 -240
- package/chunks/InputPassword.hZYiAKYC.js +0 -121
- package/chunks/InputSearch.Dp3x5RE4.js +0 -149
- package/chunks/LinkButton.DHcfHamd.js +0 -150
- package/chunks/LinkCard.DV-V9qHd.js +0 -197
- package/chunks/NavigationTabList.BIApwNzg.js +0 -68
- package/chunks/Notification.DeedcinQ.js +0 -91
- package/chunks/Pagination.DhD8i5AV.js +0 -247
- package/chunks/Popover.Cyf3CbLl.js +0 -221
- package/chunks/RadioGroup.D3omhLuC.js +0 -130
- package/chunks/Select.DOeJaqzM.js +0 -147
- package/chunks/Slider.d3gCkWL_.js +0 -309
- package/chunks/SystemFeedback.Dq3ZphgG.js +0 -38
- package/chunks/Text.utils.D_iOyOSH.js +0 -11
- package/chunks/TextUtility.Wbd4oQXI.js +0 -82
- package/chunks/Textarea.DhRMfiWu.js +0 -181
- package/chunks/Toast.KMEq0p-E.js +0 -76
- package/chunks/floating-ui.react.CP5A99-c.js +0 -2980
- package/chunks/translate.nuU7uChI.js +0 -8
- package/filelist.BaYCDtxD.js +0 -128
- package/filepreview.BCslhbM5.js +0 -94
- package/flag.DyZLEgAw.js +0 -50
- package/input.DNdSFW5k.js +0 -175
- package/inputfile.CTXJ_ZSi.js +0 -18
- package/inputsearch.JLM0fNPt.js +0 -15
- package/link.CArLlIsR.js +0 -81
- package/navigationtablist.BerRIzu-.js +0 -10
- package/numberindicator.ZGVRSmqf.js +0 -36
- package/optioncheckbox.BQo8riVL.js +0 -48
- package/pagination.Dm1WnFhY.js +0 -14
- package/progressindicator.1JRFwf-H.js +0 -53
- package/radio.DxdVKoxe.js +0 -137
- package/select.DVuQMz7l.js +0 -14
- package/step.CDNmsF4m.js +0 -82
- package/stepper.D0kSuiYh.js +0 -16
- package/switch.pN105F5-.js +0 -66
- package/text.D_e3JBvf.js +0 -72
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as w, jsxs as
|
|
3
|
-
import { d as
|
|
2
|
+
import { jsx as w, jsxs as C } from "react/jsx-runtime";
|
|
3
|
+
import { d as V } from "./index.cKLI89Eg.js";
|
|
4
4
|
import { c as F } from "./index.DQOqod3i.js";
|
|
5
5
|
import { isValidElement as M, useState as I, useEffect as O, cloneElement as R } from "react";
|
|
6
|
-
import { D as K } from "./Button.
|
|
7
|
-
import { DSLink as X } from "../link.
|
|
6
|
+
import { D as K } from "./Button.CCol--xy.js";
|
|
7
|
+
import { DSLink as X } from "../link.DEZDbUgq.js";
|
|
8
8
|
import { g as d, r as z } from "./helpers.CexwVao7.js";
|
|
9
|
-
import '../assets/Breadcrumb.
|
|
9
|
+
import '../assets/Breadcrumb.BJ6sa2am.css';const G = "ds-breadcrumb_root_2qdaj_1", H = "ds-breadcrumb_show-all-button_2qdaj_30", T = {
|
|
10
10
|
root: G,
|
|
11
11
|
showAllButton: H
|
|
12
|
-
},
|
|
12
|
+
}, q = 4, J = ({
|
|
13
13
|
aria: r,
|
|
14
14
|
links: e
|
|
15
15
|
}) => {
|
|
@@ -31,7 +31,7 @@ import '../assets/Breadcrumb.BavNNzAA.css';const G = "ds-breadcrumb_root_1e9hu_1
|
|
|
31
31
|
t && o && console.warn(d("DSBreadcrumb", `The link with label "${l}" has both a wrapper and an href property. Please use only one.`)), t && M(t) && t.props?.children && console.warn(d("DSBreadcrumb", `The link with label "${l}" contains a wrapper with children. Please remove the children, as they will be replaced. For example: <Link href="#" />`));
|
|
32
32
|
});
|
|
33
33
|
}, le = (r) => {
|
|
34
|
-
const e =
|
|
34
|
+
const e = V.c(40);
|
|
35
35
|
let o, l, t, s, i;
|
|
36
36
|
e[0] !== r ? ({
|
|
37
37
|
aria: o,
|
|
@@ -50,10 +50,10 @@ import '../assets/Breadcrumb.BavNNzAA.css';const G = "ds-breadcrumb_root_1e9hu_1
|
|
|
50
50
|
label: c,
|
|
51
51
|
...a
|
|
52
52
|
} = n, e[8] = n, e[9] = a, e[10] = c) : (a = e[9], c = e[10]);
|
|
53
|
-
const m = c === void 0 ? "Show all links" : c, [h,
|
|
53
|
+
const m = c === void 0 ? "Show all links" : c, [h, j] = I(t.length <= q);
|
|
54
54
|
let S;
|
|
55
55
|
e[11] !== t.length ? (S = () => {
|
|
56
|
-
|
|
56
|
+
j(t.length <= q);
|
|
57
57
|
}, e[11] = t.length, e[12] = S) : S = e[12];
|
|
58
58
|
let g;
|
|
59
59
|
e[13] !== t ? (g = [t], e[13] = t, e[14] = g) : g = e[14], O(S, g);
|
|
@@ -61,10 +61,10 @@ import '../assets/Breadcrumb.BavNNzAA.css';const G = "ds-breadcrumb_root_1e9hu_1
|
|
|
61
61
|
e[15] !== l ? (B = F(T.root, l), e[15] = l, e[16] = B) : B = e[16];
|
|
62
62
|
const L = B;
|
|
63
63
|
let k;
|
|
64
|
-
e[17] !== m || e[18] !== a || e[19] !== h ? (k = () => h ? null : /* @__PURE__ */ w("li", { children: /* @__PURE__ */ w(K, { ...a, className: T.showAllButton, type: "button", title: m, variant: "ghost", onClick: () =>
|
|
65
|
-
const A = k,
|
|
64
|
+
e[17] !== m || e[18] !== a || e[19] !== h ? (k = () => h ? null : /* @__PURE__ */ w("li", { children: /* @__PURE__ */ w(K, { ...a, className: T.showAllButton, type: "button", title: m, variant: "ghost", onClick: () => j(!0), children: /* @__PURE__ */ w("span", { "aria-hidden": "true", children: "..." }) }) }), e[17] = m, e[18] = a, e[19] = h, e[20] = k) : k = e[20];
|
|
65
|
+
const A = k, $ = Q;
|
|
66
66
|
let v;
|
|
67
|
-
e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = (y) => y.map((
|
|
67
|
+
e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = (y) => y.map((x, P) => /* @__PURE__ */ w("li", { children: $(x, y.length - 1, P) }, P)), e[21] = v) : v = e[21];
|
|
68
68
|
const _ = v;
|
|
69
69
|
let D;
|
|
70
70
|
e[22] !== h ? (D = (y) => _(h ? y : y.slice(-2)), e[22] = h, e[23] = D) : D = e[23];
|
|
@@ -76,7 +76,7 @@ import '../assets/Breadcrumb.BavNNzAA.css';const G = "ds-breadcrumb_root_1e9hu_1
|
|
|
76
76
|
let f;
|
|
77
77
|
e[28] !== N || e[29] !== t ? (f = N(t.slice(1)), e[28] = N, e[29] = t, e[30] = f) : f = e[30];
|
|
78
78
|
let p;
|
|
79
|
-
e[31] !== b || e[32] !== f || e[33] !== u ? (p = /* @__PURE__ */
|
|
79
|
+
e[31] !== b || e[32] !== f || e[33] !== u ? (p = /* @__PURE__ */ C("ol", { children: [
|
|
80
80
|
u,
|
|
81
81
|
b,
|
|
82
82
|
f
|
|
@@ -98,6 +98,6 @@ function Q(r, e, o) {
|
|
|
98
98
|
}
|
|
99
99
|
export {
|
|
100
100
|
le as D,
|
|
101
|
-
|
|
101
|
+
q as M,
|
|
102
102
|
J as v
|
|
103
103
|
};
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as kt, jsx as H } from "react/jsx-runtime";
|
|
3
|
+
import { d as yt } from "./index.cKLI89Eg.js";
|
|
4
|
+
import { c as vt } from "./index.DQOqod3i.js";
|
|
5
|
+
import { forwardRef as qt } from "react";
|
|
6
|
+
import { u as St } from "./useBreakpoint.1txsny17.js";
|
|
7
|
+
import { D as Nt } from "./Icon.DYtaQgbw.js";
|
|
8
|
+
import { DSSpinner as Ot } from "../spinner.DtLnsqVV.js";
|
|
9
|
+
import { Tooltip as pt } from "../tooltip.BFQG-7VR.js";
|
|
10
|
+
import { g as p } from "./helpers.CexwVao7.js";
|
|
11
|
+
import '../assets/Button.Bi1KUKMv.css';const Ft = "ds-button_root_eqbz4_1", Lt = "ds-button_root--highlight_eqbz4_76", wt = "ds-button_root--dark-highlight_eqbz4_76", It = "ds-button_root--filled_eqbz4_152", Bt = "ds-button_root--outline_eqbz4_180", Ht = "ds-button_root--ghost_eqbz4_207", Gt = "ds-button_root--ghost-flush_eqbz4_232", Tt = "ds-button_root--small_eqbz4_238", Pt = "ds-button_root--utility_eqbz4_318", Ut = "ds-button_loader_eqbz4_408", Ct = "ds-button_root--navigation_eqbz4_429", Et = "ds-button_root--navigation--stretched_eqbz4_507", At = "ds-button_root--navigation--stretched--icon-left_eqbz4_510", xt = "ds-button_root--dark-filled_eqbz4_513", Vt = "ds-button_root--dark-outline_eqbz4_570", jt = "ds-button_root--dark-ghost_eqbz4_626", Rt = "ds-button_root--dark-ghost-flush_eqbz4_680", Mt = "ds-button_root--dark-utility_eqbz4_742", Zt = "ds-button_root--stretched_eqbz4_855", $t = "ds-button_root--icon-left_eqbz4_858", Jt = "ds-button_root--icon-only_eqbz4_861", Kt = "ds-button_root--icon-only-small_eqbz4_877", Qt = "ds-button_icon--navigation_eqbz4_900", Wt = "ds-button_icon--hidden_eqbz4_907", Xt = "ds-button_label--hidden_eqbz4_911", Yt = "ds-button_label--loading_eqbz4_923", e = {
|
|
12
|
+
root: Ft,
|
|
13
|
+
rootHighlight: Lt,
|
|
14
|
+
rootDarkHighlight: wt,
|
|
15
|
+
rootFilled: It,
|
|
16
|
+
rootOutline: Bt,
|
|
17
|
+
rootGhost: Ht,
|
|
18
|
+
rootGhostFlush: Gt,
|
|
19
|
+
rootSmall: Tt,
|
|
20
|
+
rootUtility: Pt,
|
|
21
|
+
loader: Ut,
|
|
22
|
+
rootNavigation: Ct,
|
|
23
|
+
rootNavigationStretched: Et,
|
|
24
|
+
rootNavigationStretchedIconLeft: At,
|
|
25
|
+
rootDarkFilled: xt,
|
|
26
|
+
rootDarkOutline: Vt,
|
|
27
|
+
rootDarkGhost: jt,
|
|
28
|
+
rootDarkGhostFlush: Rt,
|
|
29
|
+
rootDarkUtility: Mt,
|
|
30
|
+
rootStretched: Zt,
|
|
31
|
+
rootIconLeft: $t,
|
|
32
|
+
rootIconOnly: Jt,
|
|
33
|
+
rootIconOnlySmall: Kt,
|
|
34
|
+
iconNavigation: Qt,
|
|
35
|
+
iconHidden: Wt,
|
|
36
|
+
labelHidden: Xt,
|
|
37
|
+
labelLoading: Yt
|
|
38
|
+
}, uo = ["medium", "small"], _o = ["highlight", "filled", "outline", "ghost", "utility", "navigation"], to = ({
|
|
39
|
+
hideLabel: D,
|
|
40
|
+
iconName: k,
|
|
41
|
+
iconSource: t,
|
|
42
|
+
isFlush: l,
|
|
43
|
+
size: d,
|
|
44
|
+
stretched: r,
|
|
45
|
+
theme: s,
|
|
46
|
+
variant: i
|
|
47
|
+
}) => {
|
|
48
|
+
if (i === "navigation" && (d === "small" && console.warn(p("DSButton", 'A "size" prop should not be used in combination with variant="navigation". Please remove the "size" prop.')), s === "dark"))
|
|
49
|
+
throw new Error(p("DSButton", 'A DSButton with variant="navigation" does not support theme="dark". Please remove the "theme" prop.'));
|
|
50
|
+
i !== "ghost" && l ? console.warn(p("DSButton", 'The "isFlush" prop only has an effect when used with variant="ghost". Please remove the "isFlush" prop or set variant="ghost".')) : i === "ghost" && l && r && console.warn(p("DSButton", 'The "stretched" and "isFlush" props do not have an effect when used together. Please remove one of them.')), D && (!k && !t && console.warn(p("DSButton", 'The "hideLabel" prop is set to true but no icon is provided via "iconName" or "iconSource". Please provide an icon to ensure the button is not empty when the label is hidden.')), r && console.warn(p("DSButton", 'The "stretched" and "hideLabel" props do not have an effect when used together. Please remove one of them.')));
|
|
51
|
+
}, oo = qt((D, k) => {
|
|
52
|
+
const t = yt.c(80);
|
|
53
|
+
let l, d, r, s, i, h, _, S, z, y, q, N, O, F, L, w, u;
|
|
54
|
+
t[0] !== D ? ({
|
|
55
|
+
children: d,
|
|
56
|
+
aria: l,
|
|
57
|
+
className: r,
|
|
58
|
+
disabled: S,
|
|
59
|
+
hideLabel: z,
|
|
60
|
+
iconName: s,
|
|
61
|
+
iconPosition: y,
|
|
62
|
+
iconSource: i,
|
|
63
|
+
isFlush: q,
|
|
64
|
+
loading: N,
|
|
65
|
+
size: O,
|
|
66
|
+
stretched: F,
|
|
67
|
+
theme: L,
|
|
68
|
+
tooltip: u,
|
|
69
|
+
variant: w,
|
|
70
|
+
onClick: h,
|
|
71
|
+
..._
|
|
72
|
+
} = D, t[0] = D, t[1] = l, t[2] = d, t[3] = r, t[4] = s, t[5] = i, t[6] = h, t[7] = _, t[8] = S, t[9] = z, t[10] = y, t[11] = q, t[12] = N, t[13] = O, t[14] = F, t[15] = L, t[16] = w, t[17] = u) : (l = t[1], d = t[2], r = t[3], s = t[4], i = t[5], h = t[6], _ = t[7], S = t[8], z = t[9], y = t[10], q = t[11], N = t[12], O = t[13], F = t[14], L = t[15], w = t[16], u = t[17]);
|
|
73
|
+
const G = S === void 0 ? !1 : S, zt = z === void 0 ? !1 : z, j = y === void 0 ? "left" : y, I = q === void 0 ? !1 : q, n = N === void 0 ? !1 : N, T = O === void 0 ? "medium" : O, Dt = F === void 0 ? !1 : F, R = L === void 0 ? "light" : L, o = w === void 0 ? "filled" : w, b = St(zt), B = St(Dt);
|
|
74
|
+
process.env.NODE_ENV !== "production" && to({
|
|
75
|
+
hideLabel: b,
|
|
76
|
+
iconName: s,
|
|
77
|
+
iconSource: i,
|
|
78
|
+
isFlush: I,
|
|
79
|
+
size: T,
|
|
80
|
+
stretched: Dt,
|
|
81
|
+
theme: R,
|
|
82
|
+
variant: o
|
|
83
|
+
});
|
|
84
|
+
const a = R === "dark", M = o === "filled", Z = o === "highlight", $ = o === "outline", J = o === "ghost" && I !== !0, K = o === "utility", Q = o === "navigation", W = o === "navigation" && B && j === "right", X = o === "navigation" && B && j === "left", Y = o === "ghost" && I === !0, tt = a && o === "filled", ot = a && o === "highlight", et = a && o === "outline", nt = a && o === "ghost" && I !== !0, it = a && o === "utility", st = a && o === "ghost" && I === !0, lt = T === "small" || o === "navigation", rt = j === "left", at = b && T === "medium" && o !== "navigation", ct = b && T === "small" && o !== "navigation";
|
|
85
|
+
let P;
|
|
86
|
+
t[18] !== r || t[19] !== B || t[20] !== M || t[21] !== Z || t[22] !== $ || t[23] !== J || t[24] !== K || t[25] !== Q || t[26] !== W || t[27] !== X || t[28] !== Y || t[29] !== tt || t[30] !== ot || t[31] !== et || t[32] !== nt || t[33] !== it || t[34] !== st || t[35] !== lt || t[36] !== rt || t[37] !== at || t[38] !== ct ? (P = vt(e.root, r, {
|
|
87
|
+
[e.rootFilled]: M,
|
|
88
|
+
[e.rootHighlight]: Z,
|
|
89
|
+
[e.rootOutline]: $,
|
|
90
|
+
[e.rootGhost]: J,
|
|
91
|
+
[e.rootUtility]: K,
|
|
92
|
+
[e.rootNavigation]: Q,
|
|
93
|
+
[e.rootNavigationStretched]: W,
|
|
94
|
+
[e.rootNavigationStretchedIconLeft]: X,
|
|
95
|
+
[e.rootGhostFlush]: Y,
|
|
96
|
+
[e.rootDarkFilled]: tt,
|
|
97
|
+
[e.rootDarkHighlight]: ot,
|
|
98
|
+
[e.rootDarkOutline]: et,
|
|
99
|
+
[e.rootDarkGhost]: nt,
|
|
100
|
+
[e.rootDarkUtility]: it,
|
|
101
|
+
[e.rootDarkGhostFlush]: st,
|
|
102
|
+
[e.rootSmall]: lt,
|
|
103
|
+
[e.rootStretched]: B,
|
|
104
|
+
[e.rootIconLeft]: rt,
|
|
105
|
+
[e.rootIconOnly]: at,
|
|
106
|
+
[e.rootIconOnlySmall]: ct
|
|
107
|
+
}), t[18] = r, t[19] = B, t[20] = M, t[21] = Z, t[22] = $, t[23] = J, t[24] = K, t[25] = Q, t[26] = W, t[27] = X, t[28] = Y, t[29] = tt, t[30] = ot, t[31] = et, t[32] = nt, t[33] = it, t[34] = st, t[35] = lt, t[36] = rt, t[37] = at, t[38] = ct, t[39] = P) : P = t[39];
|
|
108
|
+
const dt = P;
|
|
109
|
+
let U;
|
|
110
|
+
t[40] !== n || t[41] !== b || t[42] !== o ? (U = vt({
|
|
111
|
+
[e.labelHidden]: b && o !== "navigation",
|
|
112
|
+
[e.labelLoading]: n
|
|
113
|
+
}) || void 0, t[40] = n, t[41] = b, t[42] = o, t[43] = U) : U = t[43];
|
|
114
|
+
const ht = U, ut = o === "navigation", _t = o === "utility";
|
|
115
|
+
let C;
|
|
116
|
+
t[44] !== n || t[45] !== ut || t[46] !== _t ? (C = vt({
|
|
117
|
+
[e.iconNavigation]: ut,
|
|
118
|
+
[e.iconUtility]: _t,
|
|
119
|
+
[e.iconHidden]: n
|
|
120
|
+
}), t[44] = n, t[45] = ut, t[46] = _t, t[47] = C) : C = t[47];
|
|
121
|
+
const bt = C, gt = R === "light" && o === "filled" || a && o === "outline" || a && o === "ghost" || a && o === "utility" ? "dark" : "light";
|
|
122
|
+
let E;
|
|
123
|
+
t[48] !== G || t[49] !== n || t[50] !== h ? (E = (c) => {
|
|
124
|
+
if (G || n) {
|
|
125
|
+
c.preventDefault();
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
h && h(c);
|
|
129
|
+
}, t[48] = G, t[49] = n, t[50] = h, t[51] = E) : E = t[51];
|
|
130
|
+
const ft = E, mt = G || n;
|
|
131
|
+
let g;
|
|
132
|
+
t[52] !== n ? (g = n && /* @__PURE__ */ H(Ot, { className: e.loader, aria: {
|
|
133
|
+
"aria-label": "Loading state"
|
|
134
|
+
} }), t[52] = n, t[53] = g) : g = t[53];
|
|
135
|
+
let f;
|
|
136
|
+
t[54] !== d || t[55] !== ht ? (f = /* @__PURE__ */ H("span", { className: ht, children: d }), t[54] = d, t[55] = ht, t[56] = f) : f = t[56];
|
|
137
|
+
let m;
|
|
138
|
+
t[57] !== bt || t[58] !== s || t[59] !== i || t[60] !== gt ? (m = (s || i) && /* @__PURE__ */ H(Nt, { name: s, theme: gt, source: i, className: bt, "aria-hidden": "true" }), t[57] = bt, t[58] = s, t[59] = i, t[60] = gt, t[61] = m) : m = t[61];
|
|
139
|
+
let A;
|
|
140
|
+
t[62] !== l || t[63] !== ft || t[64] !== n || t[65] !== k || t[66] !== _ || t[67] !== dt || t[68] !== mt || t[69] !== g || t[70] !== f || t[71] !== m ? (A = /* @__PURE__ */ kt("button", { className: dt, type: "submit", onClick: ft, ...l, ..._, "aria-disabled": mt, "aria-busy": n, ref: k, children: [
|
|
141
|
+
g,
|
|
142
|
+
f,
|
|
143
|
+
m
|
|
144
|
+
] }), t[62] = l, t[63] = ft, t[64] = n, t[65] = k, t[66] = _, t[67] = dt, t[68] = mt, t[69] = g, t[70] = f, t[71] = m, t[72] = A) : A = t[72];
|
|
145
|
+
const x = A;
|
|
146
|
+
if (u) {
|
|
147
|
+
let c;
|
|
148
|
+
t[73] !== x ? (c = /* @__PURE__ */ H(pt.Anchor, { children: x }), t[73] = x, t[74] = c) : c = t[74];
|
|
149
|
+
let v;
|
|
150
|
+
t[75] !== u ? (v = /* @__PURE__ */ H(pt.Content, { children: u }), t[75] = u, t[76] = v) : v = t[76];
|
|
151
|
+
let V;
|
|
152
|
+
return t[77] !== c || t[78] !== v ? (V = /* @__PURE__ */ kt(pt, { placement: "top", tooltipOffset: 6, children: [
|
|
153
|
+
c,
|
|
154
|
+
v
|
|
155
|
+
] }), t[77] = c, t[78] = v, t[79] = V) : V = t[79], V;
|
|
156
|
+
}
|
|
157
|
+
return x;
|
|
158
|
+
});
|
|
159
|
+
oo.displayName = "DSButton";
|
|
160
|
+
export {
|
|
161
|
+
uo as B,
|
|
162
|
+
oo as D,
|
|
163
|
+
_o as a,
|
|
164
|
+
to as v
|
|
165
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as f, jsx as n } from "react/jsx-runtime";
|
|
3
|
+
import { c as k } from "./index.DQOqod3i.js";
|
|
4
|
+
import { forwardRef as L, useRef as V, useState as $, useEffect as A, useCallback as O } from "react";
|
|
5
|
+
import { D as C } from "./Icon.DYtaQgbw.js";
|
|
6
|
+
import { D as G } from "./SystemFeedback.DhWcYjnu.js";
|
|
7
|
+
import { g as v } from "./helpers.CexwVao7.js";
|
|
8
|
+
import { u as T } from "./useBreakpoint.1txsny17.js";
|
|
9
|
+
import '../assets/Checkbox.C6RWhy0V.css';const U = "ds-checkbox_root_1fk9p_1", z = "ds-checkbox_root--disabled_1fk9p_21", J = "ds-checkbox_root--dark_1fk9p_24", K = "ds-checkbox_checkbox_1fk9p_48", Q = "ds-checkbox_icon-check_1fk9p_64", R = "ds-checkbox_icon-minus_1fk9p_65", W = "ds-checkbox_checkbox--dark_1fk9p_89", X = "ds-checkbox_checkbox--invalid_1fk9p_130", Y = "ds-checkbox_label--hidden_1fk9p_139", Z = "ds-checkbox_input_1fk9p_152", ee = "ds-checkbox_label_1fk9p_139", ce = "ds-checkbox_input--dark_1fk9p_265", oe = "ds-checkbox_feedback_1fk9p_338", e = {
|
|
10
|
+
root: U,
|
|
11
|
+
rootDisabled: z,
|
|
12
|
+
rootDark: J,
|
|
13
|
+
checkbox: K,
|
|
14
|
+
iconCheck: Q,
|
|
15
|
+
iconMinus: R,
|
|
16
|
+
checkboxDark: W,
|
|
17
|
+
checkboxInvalid: X,
|
|
18
|
+
labelHidden: Y,
|
|
19
|
+
input: Z,
|
|
20
|
+
label: ee,
|
|
21
|
+
inputDark: ce,
|
|
22
|
+
feedback: oe
|
|
23
|
+
}, ae = ({
|
|
24
|
+
label: t,
|
|
25
|
+
id: o,
|
|
26
|
+
invalid: s,
|
|
27
|
+
systemFeedback: i
|
|
28
|
+
}) => {
|
|
29
|
+
if (!t)
|
|
30
|
+
throw new Error(v("DSCheckbox", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSCheckbox component. If you don't want to display a label, set hideLabel={true}.`));
|
|
31
|
+
if (i && s && !o)
|
|
32
|
+
throw new Error(v("DSCheckbox", `A unique "id" prop is required when passing in the systemFeedback prop and setting invalid to true. Please add a unique "id" prop to the DSCheckbox component with label: "${t}".`));
|
|
33
|
+
}, se = L((t, o) => {
|
|
34
|
+
const {
|
|
35
|
+
label: s,
|
|
36
|
+
checkboxGroupId: i,
|
|
37
|
+
checked: _,
|
|
38
|
+
className: y,
|
|
39
|
+
defaultChecked: N = !1,
|
|
40
|
+
disabled: r = !1,
|
|
41
|
+
hideLabel: g = !1,
|
|
42
|
+
id: b,
|
|
43
|
+
indeterminate: m = !1,
|
|
44
|
+
invalid: a = !1,
|
|
45
|
+
systemFeedback: d,
|
|
46
|
+
theme: x = "light",
|
|
47
|
+
onChange: h,
|
|
48
|
+
...S
|
|
49
|
+
} = t;
|
|
50
|
+
process.env.NODE_ENV !== "production" && ae({
|
|
51
|
+
label: s,
|
|
52
|
+
id: b,
|
|
53
|
+
invalid: a,
|
|
54
|
+
systemFeedback: d
|
|
55
|
+
});
|
|
56
|
+
const p = x === "dark", l = V(null), [w, I] = $(N), E = T(g);
|
|
57
|
+
A(() => {
|
|
58
|
+
l && l.current && (l.current.indeterminate = m);
|
|
59
|
+
}, [m]);
|
|
60
|
+
const u = _ !== void 0, q = u ? _ : w, D = `${b}-feedback`, F = [a && d && D, a && i && `${i}-feedback`].filter(Boolean).join(" ") || void 0, M = k(e.root, {
|
|
61
|
+
[e.rootDark]: p,
|
|
62
|
+
[e.rootDisabled]: r
|
|
63
|
+
}), P = k(e.label, {
|
|
64
|
+
// hide label only visually to keep them available for assistive technologies
|
|
65
|
+
[e.labelHidden]: E
|
|
66
|
+
}), j = k(e.checkbox, {
|
|
67
|
+
[e.checkboxDark]: p,
|
|
68
|
+
[e.checkboxInvalid]: a
|
|
69
|
+
}), B = k(e.input, {
|
|
70
|
+
[e.inputDark]: p
|
|
71
|
+
}), H = O((c) => {
|
|
72
|
+
if (r) {
|
|
73
|
+
c.preventDefault();
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
u || I(c.target.checked), h && h(c);
|
|
77
|
+
}, [r, u, h]);
|
|
78
|
+
return /* @__PURE__ */ f("div", { className: y, children: [
|
|
79
|
+
/* @__PURE__ */ f("label", { className: M, children: [
|
|
80
|
+
/* @__PURE__ */ n("input", { id: b, type: "checkbox", className: B, ref: (c) => {
|
|
81
|
+
typeof o == "function" ? o(c) : o !== null && (o.current = c), l.current = c;
|
|
82
|
+
}, ...S, checked: q, disabled: r, "aria-label": s, "aria-describedby": F, "aria-invalid": a, onChange: H }),
|
|
83
|
+
/* @__PURE__ */ f("div", { className: j, children: [
|
|
84
|
+
/* @__PURE__ */ n(C, { name: "check", className: e.iconCheck, "aria-hidden": "true" }),
|
|
85
|
+
/* @__PURE__ */ n(C, { name: "minus", className: e.iconMinus, "aria-hidden": "true" })
|
|
86
|
+
] }),
|
|
87
|
+
/* @__PURE__ */ n("span", { className: P, children: s })
|
|
88
|
+
] }),
|
|
89
|
+
a && d && /* @__PURE__ */ n(G, { id: D, variant: "error", className: e.feedback, message: d, theme: x })
|
|
90
|
+
] });
|
|
91
|
+
});
|
|
92
|
+
se.displayName = "DSCheckbox";
|
|
93
|
+
export {
|
|
94
|
+
se as D,
|
|
95
|
+
ae as v
|
|
96
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as L } from "react/jsx-runtime";
|
|
3
|
+
import { d as H } from "./index.cKLI89Eg.js";
|
|
4
|
+
import { c as O } from "./index.DQOqod3i.js";
|
|
5
|
+
import { D as T } from "./Fieldset.BBMuLKps.js";
|
|
6
|
+
import P from "react";
|
|
7
|
+
import { D as V } from "./Checkbox.BxOGR1bR.js";
|
|
8
|
+
import { g as x, r as $ } from "./helpers.CexwVao7.js";
|
|
9
|
+
import '../assets/CheckboxGroup.Dd-Huo7x.css';const j = "ds-checkbox-group_root_12fot_1", M = "ds-checkbox-group_root--horizontal_12fot_9", R = "ds-checkbox-group_root--invalid_12fot_12", I = {
|
|
10
|
+
root: j,
|
|
11
|
+
rootHorizontal: M,
|
|
12
|
+
rootInvalid: R
|
|
13
|
+
}, A = ({
|
|
14
|
+
children: k,
|
|
15
|
+
description: e,
|
|
16
|
+
hideLegend: p,
|
|
17
|
+
id: t,
|
|
18
|
+
legend: s,
|
|
19
|
+
popoverContent: r,
|
|
20
|
+
systemFeedback: i
|
|
21
|
+
}) => {
|
|
22
|
+
if (!t && (e || i))
|
|
23
|
+
throw new Error(x("DSCheckboxGroup", 'A unique "id" prop is required when providing the description or systemFeedback property. Please add a unique "id" prop to the DSCheckboxGroup component.'));
|
|
24
|
+
if (!s)
|
|
25
|
+
throw new Error(x("DSCheckboxGroup", $("legend", "DSCheckboxGroup")));
|
|
26
|
+
if (!k)
|
|
27
|
+
throw new Error(x("DSCheckboxGroup", "The component requires DSCheckbox components to be explicitly set as its children. Ensure that you include individual DSCheckbox components within the DSCheckboxGroup to create a cohesive checkbox group."));
|
|
28
|
+
p && r && console.warn(x("DSCheckboxGroup", 'Setting "hideLegend" and "popoverContent" at the same time is not supported. The popover info button is part of the legend and will be hidden along with it. Please remove either "hideLegend" or "popoverContent".')), P.Children.forEach(k, (o) => {
|
|
29
|
+
if (!P.isValidElement(o) || // Object.keys(child.type)[1] !== '_payload' checks if the object is currently in a hydration phase
|
|
30
|
+
o.type !== V && Object.keys(o.type)[1] !== "_payload") {
|
|
31
|
+
const n = P.isValidElement(o) ? `Currently you are passing a child of type: ${JSON.stringify(o.type)}.` : "Currently you are passing an invalid React element.";
|
|
32
|
+
throw new Error(x("DSCheckboxGroup", `The component requires the children to be DSCheckbox elements. ${n} Ensure that you include individual DSCheckbox components within the DSCheckboxGroup to create a cohesive checkbox group.`));
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
}, Y = (k) => {
|
|
36
|
+
const e = H.c(39), p = k;
|
|
37
|
+
let t, s, r, i, o, n, l, a, c, h, u, m, f, b, v;
|
|
38
|
+
e[0] !== p ? ({
|
|
39
|
+
children: t,
|
|
40
|
+
legend: o,
|
|
41
|
+
className: s,
|
|
42
|
+
description: r,
|
|
43
|
+
direction: h,
|
|
44
|
+
disabled: u,
|
|
45
|
+
hideLegend: m,
|
|
46
|
+
id: i,
|
|
47
|
+
invalid: f,
|
|
48
|
+
popoverContent: n,
|
|
49
|
+
popoverInfoButtonProps: l,
|
|
50
|
+
required: b,
|
|
51
|
+
systemFeedback: c,
|
|
52
|
+
theme: v,
|
|
53
|
+
...a
|
|
54
|
+
} = p, e[0] = p, e[1] = t, e[2] = s, e[3] = r, e[4] = i, e[5] = o, e[6] = n, e[7] = l, e[8] = a, e[9] = c, e[10] = h, e[11] = u, e[12] = m, e[13] = f, e[14] = b, e[15] = v) : (t = e[1], s = e[2], r = e[3], i = e[4], o = e[5], n = e[6], l = e[7], a = e[8], c = e[9], h = e[10], u = e[11], m = e[12], f = e[13], b = e[14], v = e[15]);
|
|
55
|
+
const F = h === void 0 ? "vertical" : h, w = u === void 0 ? !1 : u, g = m === void 0 ? !1 : m, C = f === void 0 ? !1 : f, _ = b === void 0 ? !1 : b, E = v === void 0 ? "light" : v;
|
|
56
|
+
process.env.NODE_ENV !== "production" && A({
|
|
57
|
+
children: t,
|
|
58
|
+
description: r,
|
|
59
|
+
hideLegend: g,
|
|
60
|
+
id: i,
|
|
61
|
+
legend: o,
|
|
62
|
+
popoverContent: n,
|
|
63
|
+
systemFeedback: c
|
|
64
|
+
});
|
|
65
|
+
const G = F === "horizontal", q = C && !!c;
|
|
66
|
+
let D;
|
|
67
|
+
e[16] !== G || e[17] !== q ? (D = O(I.root, {
|
|
68
|
+
[I.rootHorizontal]: G,
|
|
69
|
+
[I.rootInvalid]: q
|
|
70
|
+
}), e[16] = G, e[17] = q, e[18] = D) : D = e[18];
|
|
71
|
+
const N = D;
|
|
72
|
+
let S;
|
|
73
|
+
e[19] !== E ? (S = {
|
|
74
|
+
theme: E
|
|
75
|
+
}, e[19] = E, e[20] = S) : S = e[20];
|
|
76
|
+
const z = S;
|
|
77
|
+
let d;
|
|
78
|
+
e[21] !== t || e[22] !== N ? (d = /* @__PURE__ */ L("div", { className: N, children: t }), e[21] = t, e[22] = N, e[23] = d) : d = e[23];
|
|
79
|
+
let y;
|
|
80
|
+
return e[24] !== s || e[25] !== r || e[26] !== w || e[27] !== g || e[28] !== i || e[29] !== C || e[30] !== o || e[31] !== n || e[32] !== l || e[33] !== _ || e[34] !== a || e[35] !== c || e[36] !== z || e[37] !== d ? (y = /* @__PURE__ */ L(T, { id: i, legend: o, className: s, description: r, disabled: w, hideLegend: g, required: _, invalid: C, systemFeedback: c, popoverContent: n, popoverInfoButtonProps: l, ...z, ...a, children: d }), e[24] = s, e[25] = r, e[26] = w, e[27] = g, e[28] = i, e[29] = C, e[30] = o, e[31] = n, e[32] = l, e[33] = _, e[34] = a, e[35] = c, e[36] = z, e[37] = d, e[38] = y) : y = e[38], y;
|
|
81
|
+
};
|
|
82
|
+
export {
|
|
83
|
+
Y as D,
|
|
84
|
+
A as v
|
|
85
|
+
};
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as O, jsx as I } from "react/jsx-runtime";
|
|
3
|
+
import { d as j } from "./index.cKLI89Eg.js";
|
|
4
|
+
import { c as B } from "./index.DQOqod3i.js";
|
|
5
|
+
import { forwardRef as W } from "react";
|
|
6
|
+
import { D as q } from "./Icon.DYtaQgbw.js";
|
|
7
|
+
import { Tooltip as z } from "../tooltip.BFQG-7VR.js";
|
|
8
|
+
import { g as x, r as H } from "./helpers.CexwVao7.js";
|
|
9
|
+
import { t as Z } from "./translate.DSb-TdWR.js";
|
|
10
|
+
import '../assets/Chip.DfamkUPw.css';const J = "ds-chip-group_chip_kwgno_1", K = "ds-chip-group_chip--small_kwgno_30", Q = "ds-chip-group_chip--dark_kwgno_133", F = {
|
|
11
|
+
chip: J,
|
|
12
|
+
chipSmall: K,
|
|
13
|
+
chipDark: Q
|
|
14
|
+
}, pe = ({
|
|
15
|
+
chips: t,
|
|
16
|
+
id: l,
|
|
17
|
+
label: e
|
|
18
|
+
}) => {
|
|
19
|
+
if (!Array.isArray(t))
|
|
20
|
+
throw new Error(x("DSChipGroup", H("chips", "DSChipGroup")));
|
|
21
|
+
if (!l)
|
|
22
|
+
throw new Error(x("DSChipGroup", 'A unique "id" prop is required when providing the description or systemFeedback property. Please add a unique "id" prop to the DSChipGroup component.'));
|
|
23
|
+
if (!e)
|
|
24
|
+
throw new Error(x("DSChipGroup", H("label", "DSChipGroup")));
|
|
25
|
+
}, de = ["medium", "small"], V = {
|
|
26
|
+
disabled: "disabled",
|
|
27
|
+
selected: "selected",
|
|
28
|
+
notSelected: "not selected",
|
|
29
|
+
removed: "removed",
|
|
30
|
+
selectChip: "press space to {action}",
|
|
31
|
+
unselectAction: "unselect",
|
|
32
|
+
selectAction: "select",
|
|
33
|
+
addToSelection: "add this option to selection",
|
|
34
|
+
removeFromSelection: "remove this option from selection",
|
|
35
|
+
removeChip: "press Backspace to remove the currently focused value",
|
|
36
|
+
tooltipDisabled: "Disabled",
|
|
37
|
+
tooltipRemovable: "Remove filter",
|
|
38
|
+
tooltipDeactivate: "Deactivate property",
|
|
39
|
+
tooltipActivate: "Activate property",
|
|
40
|
+
countSelected: "{count, plural, one {# item selected} other {# items selected}}",
|
|
41
|
+
countRemaining: "{count, plural, one {# item remaining} other {# items remaining}}"
|
|
42
|
+
}, X = {
|
|
43
|
+
disabled: "deaktiviert",
|
|
44
|
+
selected: "ausgewählt",
|
|
45
|
+
notSelected: "nicht ausgewählt",
|
|
46
|
+
removed: "entfernt",
|
|
47
|
+
selectChip: "drücke Leertaste, um {action}",
|
|
48
|
+
unselectAction: "abzuwählen",
|
|
49
|
+
selectAction: "auszuwählen",
|
|
50
|
+
addToSelection: "diese Option zur Auswahl hinzuzufügen",
|
|
51
|
+
removeFromSelection: "diese Option aus der Auswahl zu entfernen",
|
|
52
|
+
removeChip: "drücke Backspace, um den aktuell fokussierten Wert zu entfernen",
|
|
53
|
+
tooltipDisabled: "Deaktiviert",
|
|
54
|
+
tooltipRemovable: "Filter entfernen",
|
|
55
|
+
tooltipDeactivate: "Eigenschaft deaktivieren",
|
|
56
|
+
tooltipActivate: "Eigenschaft aktivieren",
|
|
57
|
+
countSelected: "{count, plural, one {# Element ausgewählt} other {# Elemente ausgewählt}}",
|
|
58
|
+
countRemaining: "{count, plural, one {# Element verbleibend} other {# Elemente verbleibend}}"
|
|
59
|
+
}, U = {
|
|
60
|
+
en: V,
|
|
61
|
+
de: X
|
|
62
|
+
}, Y = (t, l, e, i, a, r) => {
|
|
63
|
+
if (e)
|
|
64
|
+
return `${l}, ${t("disabled")}`;
|
|
65
|
+
if (r)
|
|
66
|
+
return `${l}, ${t("removeChip")}`;
|
|
67
|
+
{
|
|
68
|
+
const c = t(a === "single" ? i ? "unselectAction" : "selectAction" : i ? "removeFromSelection" : "addToSelection");
|
|
69
|
+
return `${l}, ${i ? `${t("selected")}, ` : ""}${t("selectChip", {
|
|
70
|
+
action: c
|
|
71
|
+
})}`;
|
|
72
|
+
}
|
|
73
|
+
}, ee = (t, l, e, i) => t(i ? "tooltipRemovable" : l ? "tooltipDisabled" : e ? "tooltipDeactivate" : "tooltipActivate"), te = W((t, l) => {
|
|
74
|
+
const e = j.c(54);
|
|
75
|
+
let i, a, r, c, o, p, n, m, h, u, f, _, C, A, v, S;
|
|
76
|
+
e[0] !== t ? ({
|
|
77
|
+
id: c,
|
|
78
|
+
label: n,
|
|
79
|
+
disableTooltips: i,
|
|
80
|
+
groupId: a,
|
|
81
|
+
isRemovable: o,
|
|
82
|
+
selectionMode: u,
|
|
83
|
+
disabled: _,
|
|
84
|
+
iconName: r,
|
|
85
|
+
isSelected: p,
|
|
86
|
+
lang: C,
|
|
87
|
+
size: f,
|
|
88
|
+
tabIndex: v,
|
|
89
|
+
theme: A,
|
|
90
|
+
translations: S,
|
|
91
|
+
onClick: m,
|
|
92
|
+
...h
|
|
93
|
+
} = t, e[0] = t, e[1] = i, e[2] = a, e[3] = r, e[4] = c, e[5] = o, e[6] = p, e[7] = n, e[8] = m, e[9] = h, e[10] = u, e[11] = f, e[12] = _, e[13] = C, e[14] = A, e[15] = v, e[16] = S) : (i = e[1], a = e[2], r = e[3], c = e[4], o = e[5], p = e[6], n = e[7], m = e[8], h = e[9], u = e[10], f = e[11], _ = e[12], C = e[13], A = e[14], v = e[15], S = e[16]);
|
|
94
|
+
const k = _ === void 0 ? !1 : _, w = C === void 0 ? "en" : C, s = A === void 0 ? "light" : A;
|
|
95
|
+
let d, g;
|
|
96
|
+
if (e[17] !== i || e[18] !== k || e[19] !== a || e[20] !== r || e[21] !== c || e[22] !== o || e[23] !== p || e[24] !== n || e[25] !== w || e[26] !== m || e[27] !== l || e[28] !== h || e[29] !== u || e[30] !== f || e[31] !== v || e[32] !== s || e[33] !== S) {
|
|
97
|
+
g = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
98
|
+
e: {
|
|
99
|
+
const L = Z(S || U[w] || U.en, w), N = s === "dark", P = f === "small";
|
|
100
|
+
let y;
|
|
101
|
+
e[36] !== N || e[37] !== P ? (y = B(F.chip, {
|
|
102
|
+
[F.chipDark]: N,
|
|
103
|
+
[F.chipSmall]: P
|
|
104
|
+
}), e[36] = N, e[37] = P, e[38] = y) : y = e[38];
|
|
105
|
+
const M = y;
|
|
106
|
+
let R;
|
|
107
|
+
e[39] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = {
|
|
108
|
+
display: "contents"
|
|
109
|
+
}, e[39] = R) : R = e[39];
|
|
110
|
+
let b;
|
|
111
|
+
e[40] !== r || e[41] !== s ? (b = r && /* @__PURE__ */ I(q, { name: r, theme: s, "aria-hidden": "true" }), e[40] = r, e[41] = s, e[42] = b) : b = e[42];
|
|
112
|
+
let E;
|
|
113
|
+
e[43] !== n || e[44] !== b ? (E = /* @__PURE__ */ O("div", { role: "gridcell", "aria-colindex": 1, style: R, children: [
|
|
114
|
+
b,
|
|
115
|
+
n
|
|
116
|
+
] }), e[43] = n, e[44] = b, e[45] = E) : E = e[45];
|
|
117
|
+
let T;
|
|
118
|
+
if (e[46] !== o || e[47] !== s ? (T = o && /* @__PURE__ */ I(q, { name: "cross", theme: s }), e[46] = o, e[47] = s, e[48] = T) : T = e[48], d = /* @__PURE__ */ O("div", { role: "row", "aria-label": Y(L, n, k, p, u, o), "aria-selected": p && !o, "aria-disabled": k && !o, id: `${a}-chip-${c}`, className: M, tabIndex: v, onClick: m, ref: l, ...h, children: [
|
|
119
|
+
E,
|
|
120
|
+
T
|
|
121
|
+
] }), !i) {
|
|
122
|
+
let D;
|
|
123
|
+
e[49] !== d ? (D = /* @__PURE__ */ I(z.Anchor, { children: d }), e[49] = d, e[50] = D) : D = e[50];
|
|
124
|
+
const $ = /* @__PURE__ */ I(z.Content, { children: ee(L, k, p, o) });
|
|
125
|
+
let G;
|
|
126
|
+
e[51] !== D || e[52] !== $ ? (G = /* @__PURE__ */ O(z, { placement: "top", tooltipOffset: 6, children: [
|
|
127
|
+
D,
|
|
128
|
+
$
|
|
129
|
+
] }), e[51] = D, e[52] = $, e[53] = G) : G = e[53], g = G;
|
|
130
|
+
break e;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
e[17] = i, e[18] = k, e[19] = a, e[20] = r, e[21] = c, e[22] = o, e[23] = p, e[24] = n, e[25] = w, e[26] = m, e[27] = l, e[28] = h, e[29] = u, e[30] = f, e[31] = v, e[32] = s, e[33] = S, e[34] = d, e[35] = g;
|
|
134
|
+
} else
|
|
135
|
+
d = e[34], g = e[35];
|
|
136
|
+
return g !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel") ? g : d;
|
|
137
|
+
});
|
|
138
|
+
te.displayName = "DSChip";
|
|
139
|
+
export {
|
|
140
|
+
de as C,
|
|
141
|
+
U as D,
|
|
142
|
+
X as a,
|
|
143
|
+
V as b,
|
|
144
|
+
ee as c,
|
|
145
|
+
te as d,
|
|
146
|
+
Y as g,
|
|
147
|
+
pe as v
|
|
148
|
+
};
|