@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,79 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as q } from "react/jsx-runtime";
|
|
3
|
-
import { d as z } from "./index.cKLI89Eg.js";
|
|
4
|
-
import { c as P } from "./index.DQOqod3i.js";
|
|
5
|
-
import { D as I } from "./Fieldset.DxhNhprT.js";
|
|
6
|
-
import E from "react";
|
|
7
|
-
import { g as v, r as L } from "./helpers.CexwVao7.js";
|
|
8
|
-
import { D as F } from "./Checkbox.C5Jgtwho.js";
|
|
9
|
-
import '../assets/CheckboxGroup.Dd-Huo7x.css';const H = "ds-checkbox-group_root_12fot_1", O = "ds-checkbox-group_root--horizontal_12fot_9", T = "ds-checkbox-group_root--invalid_12fot_12", G = {
|
|
10
|
-
root: H,
|
|
11
|
-
rootHorizontal: O,
|
|
12
|
-
rootInvalid: T
|
|
13
|
-
}, V = ({
|
|
14
|
-
children: l,
|
|
15
|
-
description: e,
|
|
16
|
-
hideLegend: t,
|
|
17
|
-
id: s,
|
|
18
|
-
legend: r,
|
|
19
|
-
popoverContent: i,
|
|
20
|
-
systemFeedback: n
|
|
21
|
-
}) => {
|
|
22
|
-
if (!s && (e || n))
|
|
23
|
-
throw new Error(v("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 (!r)
|
|
25
|
-
throw new Error(v("DSCheckboxGroup", L("legend", "DSCheckboxGroup")));
|
|
26
|
-
if (!l)
|
|
27
|
-
throw new Error(v("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
|
-
t && i && console.warn(v("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".')), E.Children.forEach(l, (o) => {
|
|
29
|
-
if (!E.isValidElement(o) || // Object.keys(child.type)[1] !== '_payload' checks if the object is currently in a hydration phase
|
|
30
|
-
o.type !== F && Object.keys(o.type)[1] !== "_payload") {
|
|
31
|
-
const a = E.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(v("DSCheckboxGroup", `The component requires the children to be DSCheckbox elements. ${a} Ensure that you include individual DSCheckbox components within the DSCheckboxGroup to create a cohesive checkbox group.`));
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
}, K = (l) => {
|
|
36
|
-
const e = z.c(35);
|
|
37
|
-
let t, s, r, i, n, o, a, d, c, h, u, m, f, b;
|
|
38
|
-
e[0] !== l ? ({
|
|
39
|
-
children: t,
|
|
40
|
-
legend: n,
|
|
41
|
-
className: s,
|
|
42
|
-
description: r,
|
|
43
|
-
direction: h,
|
|
44
|
-
disabled: u,
|
|
45
|
-
hideLegend: m,
|
|
46
|
-
id: i,
|
|
47
|
-
invalid: f,
|
|
48
|
-
popoverContent: o,
|
|
49
|
-
popoverInfoButtonProps: a,
|
|
50
|
-
required: b,
|
|
51
|
-
systemFeedback: c,
|
|
52
|
-
...d
|
|
53
|
-
} = l, e[0] = l, e[1] = t, e[2] = s, e[3] = r, e[4] = i, e[5] = n, e[6] = o, e[7] = a, e[8] = d, e[9] = c, e[10] = h, e[11] = u, e[12] = m, e[13] = f, e[14] = b) : (t = e[1], s = e[2], r = e[3], i = e[4], n = e[5], o = e[6], a = e[7], d = e[8], c = e[9], h = e[10], u = e[11], m = e[12], f = e[13], b = e[14]);
|
|
54
|
-
const N = h === void 0 ? "vertical" : h, D = u === void 0 ? !1 : u, x = m === void 0 ? !1 : m, k = f === void 0 ? !1 : f, S = b === void 0 ? !1 : b;
|
|
55
|
-
process.env.NODE_ENV !== "production" && V({
|
|
56
|
-
children: t,
|
|
57
|
-
description: r,
|
|
58
|
-
hideLegend: x,
|
|
59
|
-
id: i,
|
|
60
|
-
legend: n,
|
|
61
|
-
popoverContent: o,
|
|
62
|
-
systemFeedback: c
|
|
63
|
-
});
|
|
64
|
-
const y = N === "horizontal", w = k && !!c;
|
|
65
|
-
let C;
|
|
66
|
-
e[15] !== y || e[16] !== w ? (C = P(G.root, {
|
|
67
|
-
[G.rootHorizontal]: y,
|
|
68
|
-
[G.rootInvalid]: w
|
|
69
|
-
}), e[15] = y, e[16] = w, e[17] = C) : C = e[17];
|
|
70
|
-
const _ = C;
|
|
71
|
-
let p;
|
|
72
|
-
e[18] !== t || e[19] !== _ ? (p = /* @__PURE__ */ q("div", { className: _, children: t }), e[18] = t, e[19] = _, e[20] = p) : p = e[20];
|
|
73
|
-
let g;
|
|
74
|
-
return e[21] !== s || e[22] !== r || e[23] !== D || e[24] !== x || e[25] !== i || e[26] !== k || e[27] !== n || e[28] !== o || e[29] !== a || e[30] !== S || e[31] !== d || e[32] !== c || e[33] !== p ? (g = /* @__PURE__ */ q(I, { id: i, legend: n, className: s, description: r, disabled: D, hideLegend: x, required: S, invalid: k, systemFeedback: c, popoverContent: o, popoverInfoButtonProps: a, ...d, children: p }), e[21] = s, e[22] = r, e[23] = D, e[24] = x, e[25] = i, e[26] = k, e[27] = n, e[28] = o, e[29] = a, e[30] = S, e[31] = d, e[32] = c, e[33] = p, e[34] = g) : g = e[34], g;
|
|
75
|
-
};
|
|
76
|
-
export {
|
|
77
|
-
K as D,
|
|
78
|
-
V as v
|
|
79
|
-
};
|
package/chunks/Chip.DXS_ZMGD.js
DELETED
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs as G, jsx as T } from "react/jsx-runtime";
|
|
3
|
-
import { d as q } from "./index.cKLI89Eg.js";
|
|
4
|
-
import { c as H } from "./index.DQOqod3i.js";
|
|
5
|
-
import { forwardRef as U } from "react";
|
|
6
|
-
import { t as M } from "./translate.nuU7uChI.js";
|
|
7
|
-
import { D as z } from "./Icon.B0WqYErA.js";
|
|
8
|
-
import { Tooltip as N } from "../tooltip.C6HKano9.js";
|
|
9
|
-
import { g as $, r as x } from "./helpers.CexwVao7.js";
|
|
10
|
-
import '../assets/Chip.D3vV0wyV.css';const j = "ds-chip-group_chip_aidwn_1", B = "ds-chip-group_chip--small_aidwn_30", F = {
|
|
11
|
-
chip: j,
|
|
12
|
-
chipSmall: B
|
|
13
|
-
}, se = ({
|
|
14
|
-
chips: t,
|
|
15
|
-
id: i,
|
|
16
|
-
label: e
|
|
17
|
-
}) => {
|
|
18
|
-
if (!Array.isArray(t))
|
|
19
|
-
throw new Error($("DSChipGroup", x("chips", "DSChipGroup")));
|
|
20
|
-
if (!i)
|
|
21
|
-
throw new Error($("DSChipGroup", 'A unique "id" prop is required when providing the description or systemFeedback property. Please add a unique "id" prop to the DSChipGroup component.'));
|
|
22
|
-
if (!e)
|
|
23
|
-
throw new Error($("DSChipGroup", x("label", "DSChipGroup")));
|
|
24
|
-
}, ne = ["medium", "small"], W = {
|
|
25
|
-
disabled: "disabled",
|
|
26
|
-
selected: "selected",
|
|
27
|
-
notSelected: "not selected",
|
|
28
|
-
removed: "removed",
|
|
29
|
-
remaining: "remaining",
|
|
30
|
-
// {0} is the action (e.g. selectAction/unselectAction)
|
|
31
|
-
selectChip: "press space to {0}",
|
|
32
|
-
unselectAction: "unselect",
|
|
33
|
-
selectAction: "select",
|
|
34
|
-
addToSelection: "add this option to selection",
|
|
35
|
-
removeFromSelection: "remove this option from selection",
|
|
36
|
-
removeChip: "press Backspace to remove the currently focused value",
|
|
37
|
-
tooltipDisabled: "Disabled",
|
|
38
|
-
tooltipRemovable: "Remove filter",
|
|
39
|
-
tooltipDeactivate: "Deactivate property",
|
|
40
|
-
tooltipActivate: "Activate property",
|
|
41
|
-
// Singular form for item
|
|
42
|
-
item_one: "item",
|
|
43
|
-
// Plural forms for items
|
|
44
|
-
item_other: "items",
|
|
45
|
-
// Status message building blocks for screen readers
|
|
46
|
-
// {0} is the count, {1} is item_one or item_other, {2} is selected
|
|
47
|
-
// Results in messages like "3 items selected"
|
|
48
|
-
countSelected: "{0} {1} {2}",
|
|
49
|
-
// {0} is the count, {1} is item_one or item_other, {2} is remaining
|
|
50
|
-
// Results in messages like "3 items remaining"
|
|
51
|
-
countRemaining: "{0} {1} {2}"
|
|
52
|
-
}, Z = {
|
|
53
|
-
disabled: "deaktiviert",
|
|
54
|
-
selected: "ausgewählt",
|
|
55
|
-
notSelected: "nicht ausgewählt",
|
|
56
|
-
removed: "entfernt",
|
|
57
|
-
remaining: "verbleibend",
|
|
58
|
-
// {0} is the action (e.g. selectAction/unselectAction)
|
|
59
|
-
selectChip: "drücke Leertaste, um {0}",
|
|
60
|
-
unselectAction: "abzuwählen",
|
|
61
|
-
selectAction: "auszuwählen",
|
|
62
|
-
addToSelection: "diese Option zur Auswahl hinzuzufügen",
|
|
63
|
-
removeFromSelection: "diese Option aus der Auswahl zu entfernen",
|
|
64
|
-
removeChip: "drücke Backspace, um den aktuell fokussierten Wert zu entfernen",
|
|
65
|
-
tooltipDisabled: "Deaktiviert",
|
|
66
|
-
tooltipRemovable: "Filter entfernen",
|
|
67
|
-
tooltipDeactivate: "Eigenschaft deaktivieren",
|
|
68
|
-
tooltipActivate: "Eigenschaft aktivieren",
|
|
69
|
-
// Singular form for item
|
|
70
|
-
item_one: "Element",
|
|
71
|
-
// Plural form for items
|
|
72
|
-
item_other: "Elemente",
|
|
73
|
-
// Status message building blocks for screen readers
|
|
74
|
-
// {0} is the count, {1} is item_one or item_other, {2} is selected
|
|
75
|
-
// Results in messages like "3 items selected"
|
|
76
|
-
countSelected: "{0} {1} {2}",
|
|
77
|
-
// {0} is the count, {1} is item_one or item_other, {2} is remaining
|
|
78
|
-
// Results in messages like "3 items remaining"
|
|
79
|
-
countRemaining: "{0} {1} {2}"
|
|
80
|
-
}, J = {
|
|
81
|
-
en: W,
|
|
82
|
-
de: Z
|
|
83
|
-
}, K = (t, i, e, o, n, r) => e ? `${i}, ${t("disabled")}` : r ? `${i}, ${t("removeChip")}` : `${i}, ${o ? `${t("selected")}, ` : ""}${t("selectChip", [t(n === "single" ? o ? "unselectAction" : "selectAction" : o ? "removeFromSelection" : "addToSelection")])}`, Q = (t, i, e, o) => t(o ? "tooltipRemovable" : i ? "tooltipDisabled" : e ? "tooltipDeactivate" : "tooltipActivate"), ae = (t, i) => t(i === 1 ? "item_one" : "item_other"), V = U((t, i) => {
|
|
84
|
-
const e = q.c(49);
|
|
85
|
-
let o, n, r, p, l, a, s, d, m, h, u, g, C, f, v;
|
|
86
|
-
e[0] !== t ? ({
|
|
87
|
-
id: p,
|
|
88
|
-
label: s,
|
|
89
|
-
disableTooltips: o,
|
|
90
|
-
groupId: n,
|
|
91
|
-
isRemovable: l,
|
|
92
|
-
selectionMode: h,
|
|
93
|
-
disabled: g,
|
|
94
|
-
iconName: r,
|
|
95
|
-
isSelected: a,
|
|
96
|
-
lang: C,
|
|
97
|
-
size: u,
|
|
98
|
-
tabIndex: f,
|
|
99
|
-
translations: v,
|
|
100
|
-
onClick: d,
|
|
101
|
-
...m
|
|
102
|
-
} = t, e[0] = t, e[1] = o, e[2] = n, e[3] = r, e[4] = p, e[5] = l, e[6] = a, e[7] = s, e[8] = d, e[9] = m, e[10] = h, e[11] = u, e[12] = g, e[13] = C, e[14] = f, e[15] = v) : (o = e[1], n = e[2], r = e[3], p = e[4], l = e[5], a = e[6], s = e[7], d = e[8], m = e[9], h = e[10], u = e[11], g = e[12], C = e[13], f = e[14], v = e[15]);
|
|
103
|
-
const D = g === void 0 ? !1 : g, E = C === void 0 ? "en" : C;
|
|
104
|
-
let c, S;
|
|
105
|
-
if (e[16] !== o || e[17] !== D || e[18] !== n || e[19] !== r || e[20] !== p || e[21] !== l || e[22] !== a || e[23] !== s || e[24] !== E || e[25] !== d || e[26] !== i || e[27] !== m || e[28] !== h || e[29] !== u || e[30] !== f || e[31] !== v) {
|
|
106
|
-
S = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
107
|
-
e: {
|
|
108
|
-
const O = M(v || J[E]), I = u === "small";
|
|
109
|
-
let A;
|
|
110
|
-
e[34] !== I ? (A = H(F.chip, {
|
|
111
|
-
[F.chipSmall]: I
|
|
112
|
-
}), e[34] = I, e[35] = A) : A = e[35];
|
|
113
|
-
const L = A;
|
|
114
|
-
let w;
|
|
115
|
-
e[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = {
|
|
116
|
-
display: "contents"
|
|
117
|
-
}, e[36] = w) : w = e[36];
|
|
118
|
-
let _;
|
|
119
|
-
e[37] !== r ? (_ = r && /* @__PURE__ */ T(z, { name: r, "aria-hidden": "true" }), e[37] = r, e[38] = _) : _ = e[38];
|
|
120
|
-
let y;
|
|
121
|
-
e[39] !== s || e[40] !== _ ? (y = /* @__PURE__ */ G("div", { role: "gridcell", "aria-colindex": 1, style: w, children: [
|
|
122
|
-
_,
|
|
123
|
-
s
|
|
124
|
-
] }), e[39] = s, e[40] = _, e[41] = y) : y = e[41];
|
|
125
|
-
let R;
|
|
126
|
-
if (e[42] !== l ? (R = l && /* @__PURE__ */ T(z, { name: "cross" }), e[42] = l, e[43] = R) : R = e[43], c = /* @__PURE__ */ G("div", { role: "row", "aria-label": K(O, s, D, a, h, l), "aria-selected": a && !l, "aria-disabled": D && !l, id: `${n}-chip-${p}`, className: L, tabIndex: f, onClick: d, ref: i, ...m, children: [
|
|
127
|
-
y,
|
|
128
|
-
R
|
|
129
|
-
] }), !o) {
|
|
130
|
-
let b;
|
|
131
|
-
e[44] !== c ? (b = /* @__PURE__ */ T(N.Anchor, { children: c }), e[44] = c, e[45] = b) : b = e[45];
|
|
132
|
-
const P = /* @__PURE__ */ T(N.Content, { children: Q(O, D, a, l) });
|
|
133
|
-
let k;
|
|
134
|
-
e[46] !== b || e[47] !== P ? (k = /* @__PURE__ */ G(N, { placement: "top", tooltipOffset: 6, children: [
|
|
135
|
-
b,
|
|
136
|
-
P
|
|
137
|
-
] }), e[46] = b, e[47] = P, e[48] = k) : k = e[48], S = k;
|
|
138
|
-
break e;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
e[16] = o, e[17] = D, e[18] = n, e[19] = r, e[20] = p, e[21] = l, e[22] = a, e[23] = s, e[24] = E, e[25] = d, e[26] = i, e[27] = m, e[28] = h, e[29] = u, e[30] = f, e[31] = v, e[32] = c, e[33] = S;
|
|
142
|
-
} else
|
|
143
|
-
c = e[32], S = e[33];
|
|
144
|
-
return S !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel") ? S : c;
|
|
145
|
-
});
|
|
146
|
-
V.displayName = "DSChip";
|
|
147
|
-
export {
|
|
148
|
-
ne as C,
|
|
149
|
-
W as D,
|
|
150
|
-
Z as a,
|
|
151
|
-
J as b,
|
|
152
|
-
Q as c,
|
|
153
|
-
ae as d,
|
|
154
|
-
V as e,
|
|
155
|
-
K as g,
|
|
156
|
-
se as v
|
|
157
|
-
};
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as n, jsxs as E } from "react/jsx-runtime";
|
|
3
|
-
import { c as r } from "./index.DQOqod3i.js";
|
|
4
|
-
import { useRef as g, useState as F, useEffect as m } from "react";
|
|
5
|
-
import { D as W } from "./Button.Dauhc5op.js";
|
|
6
|
-
import { g as x } from "./helpers.CexwVao7.js";
|
|
7
|
-
import "./index.cKLI89Eg.js";
|
|
8
|
-
import '../assets/Dialog.BKwWy1g2.css';const R = "ds-dialog_root_11kdc_5", y = "ds-dialog_content-wrapper_11kdc_166", z = "ds-dialog_content-wrapper--no-footer_11kdc_172", L = "ds-dialog_close-button_11kdc_180", M = "ds-dialog_header_11kdc_193", j = "ds-dialog_content_11kdc_166", H = "ds-dialog_footer_11kdc_195", I = "ds-dialog_header--scrollable_11kdc_216", O = "ds-dialog_header--close-button_11kdc_225", P = "ds-dialog_content--no-footer_11kdc_238", T = "ds-dialog_footer--scrollable_11kdc_273", o = {
|
|
9
|
-
root: R,
|
|
10
|
-
contentWrapper: y,
|
|
11
|
-
contentWrapperNoFooter: z,
|
|
12
|
-
closeButton: L,
|
|
13
|
-
header: M,
|
|
14
|
-
content: j,
|
|
15
|
-
footer: H,
|
|
16
|
-
headerScrollable: I,
|
|
17
|
-
headerCloseButton: O,
|
|
18
|
-
contentNoFooter: P,
|
|
19
|
-
footerScrollable: T
|
|
20
|
-
}, V = ({
|
|
21
|
-
tabIndex: c
|
|
22
|
-
}) => {
|
|
23
|
-
if (c || c === 0)
|
|
24
|
-
throw new Error(x("DSDialog", "Do not pass the tabindex property to the DSDialog component as it is not interactive and does not receive focus. The DSDialogs contents, including the close button contained in the DSDialog, can receive focus and be interactive."));
|
|
25
|
-
}, U = ({
|
|
26
|
-
children: c,
|
|
27
|
-
className: b,
|
|
28
|
-
closeButtonProps: D,
|
|
29
|
-
disableBackdropClose: S = !1,
|
|
30
|
-
footer: s,
|
|
31
|
-
header: k,
|
|
32
|
-
hideCloseButton: a = !1,
|
|
33
|
-
isOpen: d = !1,
|
|
34
|
-
onClose: l,
|
|
35
|
-
...i
|
|
36
|
-
}) => {
|
|
37
|
-
if (process.env.NODE_ENV !== "production") {
|
|
38
|
-
const {
|
|
39
|
-
tabIndex: e
|
|
40
|
-
} = i;
|
|
41
|
-
V({
|
|
42
|
-
tabIndex: e
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
const {
|
|
46
|
-
label: v = "Close dialog",
|
|
47
|
-
...N
|
|
48
|
-
} = D || {}, t = g(null), u = g(null), [f, B] = F(!1);
|
|
49
|
-
m(() => {
|
|
50
|
-
const e = u.current;
|
|
51
|
-
if (e) {
|
|
52
|
-
const h = () => {
|
|
53
|
-
B(e.scrollHeight > e.clientHeight);
|
|
54
|
-
};
|
|
55
|
-
h();
|
|
56
|
-
const p = new ResizeObserver(h);
|
|
57
|
-
return p.observe(e), () => {
|
|
58
|
-
p.disconnect();
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
}, []), m(() => {
|
|
62
|
-
const e = t.current;
|
|
63
|
-
if (e)
|
|
64
|
-
return e.addEventListener("close", _), d ? e.showModal() : e.close(), () => {
|
|
65
|
-
e.removeEventListener("close", _);
|
|
66
|
-
};
|
|
67
|
-
}, [d, l]);
|
|
68
|
-
const _ = () => {
|
|
69
|
-
l && l();
|
|
70
|
-
}, w = (e) => {
|
|
71
|
-
S || t.current && e.target === t.current && t.current.close();
|
|
72
|
-
}, C = () => {
|
|
73
|
-
t.current && t.current.close();
|
|
74
|
-
};
|
|
75
|
-
return /* @__PURE__ */ n("dialog", { ...i, ref: t, className: r(o.root, b), onMouseDown: (e) => w(e), "aria-modal": "true", children: /* @__PURE__ */ E("div", { className: r(o.contentWrapper, {
|
|
76
|
-
[o.contentWrapperNoFooter]: !s
|
|
77
|
-
}), children: [
|
|
78
|
-
!a && /* @__PURE__ */ n(W, { ...N, className: o.closeButton, hideLabel: !0, iconName: "cross", size: "small", type: "button", variant: "ghost", onClick: () => C(), children: v }),
|
|
79
|
-
/* @__PURE__ */ n("header", { className: r(o.header, {
|
|
80
|
-
[o.headerCloseButton]: !a,
|
|
81
|
-
[o.headerScrollable]: f
|
|
82
|
-
}), children: k }),
|
|
83
|
-
/* @__PURE__ */ n(
|
|
84
|
-
"div",
|
|
85
|
-
{
|
|
86
|
-
ref: u,
|
|
87
|
-
className: r(o.content, {
|
|
88
|
-
[o.contentNoFooter]: !s
|
|
89
|
-
}),
|
|
90
|
-
tabIndex: 0,
|
|
91
|
-
children: c
|
|
92
|
-
}
|
|
93
|
-
),
|
|
94
|
-
s && /* @__PURE__ */ n("footer", { className: r(o.footer, {
|
|
95
|
-
[o.footerScrollable]: f
|
|
96
|
-
}), children: s })
|
|
97
|
-
] }) });
|
|
98
|
-
};
|
|
99
|
-
export {
|
|
100
|
-
U as D,
|
|
101
|
-
V as v
|
|
102
|
-
};
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as t, jsxs as W } from "react/jsx-runtime";
|
|
3
|
-
import { c as n } from "./index.DQOqod3i.js";
|
|
4
|
-
import { useRef as w, useState as F, useEffect as m } from "react";
|
|
5
|
-
import { D as R } from "./Button.Dauhc5op.js";
|
|
6
|
-
import { g as k } from "./helpers.CexwVao7.js";
|
|
7
|
-
import "./index.cKLI89Eg.js";
|
|
8
|
-
import '../assets/Drawer.BU-fi5Hk.css';const x = "ds-drawer_root_1fyfp_10", I = "ds-drawer_root--end_1fyfp_68", O = "ds-drawer_content-wrapper_1fyfp_169", z = "ds-drawer_content-wrapper--no-footer_1fyfp_175", L = "ds-drawer_close-button_1fyfp_178", M = "ds-drawer_header_1fyfp_191", P = "ds-drawer_content_1fyfp_169", j = "ds-drawer_footer_1fyfp_193", H = "ds-drawer_header--scrollable_1fyfp_214", T = "ds-drawer_header--close-button_1fyfp_223", A = "ds-drawer_content--no-footer_1fyfp_265", V = "ds-drawer_footer--scrollable_1fyfp_272", o = {
|
|
9
|
-
root: x,
|
|
10
|
-
rootEnd: I,
|
|
11
|
-
contentWrapper: O,
|
|
12
|
-
contentWrapperNoFooter: z,
|
|
13
|
-
closeButton: L,
|
|
14
|
-
header: M,
|
|
15
|
-
content: P,
|
|
16
|
-
footer: j,
|
|
17
|
-
headerScrollable: H,
|
|
18
|
-
headerCloseButton: T,
|
|
19
|
-
contentNoFooter: A,
|
|
20
|
-
footerScrollable: V
|
|
21
|
-
}, Y = ["start", "end"], q = ({
|
|
22
|
-
tabIndex: s
|
|
23
|
-
}) => {
|
|
24
|
-
if (s || s === 0)
|
|
25
|
-
throw new Error(k("DSDrawer", "Do not pass the tabindex property to the DSDrawer component as it is not interactive and does not receive focus. The DSDrawers contents, including the close button contained in the DSDrawer, can receive focus and be interactive."));
|
|
26
|
-
}, Z = ({
|
|
27
|
-
children: s,
|
|
28
|
-
className: b,
|
|
29
|
-
closeButtonProps: D,
|
|
30
|
-
disableBackdropClose: S = !1,
|
|
31
|
-
footer: c,
|
|
32
|
-
header: N,
|
|
33
|
-
hideCloseButton: l = !1,
|
|
34
|
-
position: v = "start",
|
|
35
|
-
isOpen: d = !1,
|
|
36
|
-
onClose: a,
|
|
37
|
-
...f
|
|
38
|
-
}) => {
|
|
39
|
-
if (process.env.NODE_ENV !== "production") {
|
|
40
|
-
const {
|
|
41
|
-
tabIndex: e
|
|
42
|
-
} = f;
|
|
43
|
-
q({
|
|
44
|
-
tabIndex: e
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
const {
|
|
48
|
-
label: y = "Close modal",
|
|
49
|
-
...E
|
|
50
|
-
} = D || {}, r = w(null), i = w(null), [p, g] = F(!1);
|
|
51
|
-
m(() => {
|
|
52
|
-
const e = i.current;
|
|
53
|
-
if (e) {
|
|
54
|
-
const u = () => {
|
|
55
|
-
g(e.scrollHeight > e.clientHeight);
|
|
56
|
-
};
|
|
57
|
-
u();
|
|
58
|
-
const h = new ResizeObserver(u);
|
|
59
|
-
return h.observe(e), () => {
|
|
60
|
-
h.disconnect();
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
}, []), m(() => {
|
|
64
|
-
const e = r.current;
|
|
65
|
-
if (e)
|
|
66
|
-
return e.addEventListener("close", _), d ? e.showModal() : e.close(), () => {
|
|
67
|
-
e.removeEventListener("close", _);
|
|
68
|
-
};
|
|
69
|
-
}, [d, a]);
|
|
70
|
-
const _ = () => {
|
|
71
|
-
a && a();
|
|
72
|
-
}, B = (e) => {
|
|
73
|
-
S || r.current && e.target === r.current && r.current.close();
|
|
74
|
-
}, C = () => {
|
|
75
|
-
r.current && r.current.close();
|
|
76
|
-
};
|
|
77
|
-
return /* @__PURE__ */ t("dialog", { ...f, ref: r, className: n(o.root, {
|
|
78
|
-
[o.rootEnd]: v === "end"
|
|
79
|
-
}), onMouseDown: (e) => B(e), "aria-modal": "true", children: /* @__PURE__ */ W("div", { className: n(o.contentWrapper, b, {
|
|
80
|
-
[o.contentWrapperNoFooter]: !c
|
|
81
|
-
}), children: [
|
|
82
|
-
!l && /* @__PURE__ */ t(R, { ...E, className: o.closeButton, hideLabel: !0, iconName: "cross", size: "small", type: "button", variant: "ghost", onClick: () => C(), children: y }),
|
|
83
|
-
/* @__PURE__ */ t("header", { className: n(o.header, {
|
|
84
|
-
[o.headerCloseButton]: !l,
|
|
85
|
-
[o.headerScrollable]: p
|
|
86
|
-
}), children: N }),
|
|
87
|
-
/* @__PURE__ */ t(
|
|
88
|
-
"div",
|
|
89
|
-
{
|
|
90
|
-
ref: i,
|
|
91
|
-
className: n(o.content, {
|
|
92
|
-
[o.contentNoFooter]: !c
|
|
93
|
-
}),
|
|
94
|
-
tabIndex: 0,
|
|
95
|
-
children: s
|
|
96
|
-
}
|
|
97
|
-
),
|
|
98
|
-
c && /* @__PURE__ */ t("footer", { className: n(o.footer, {
|
|
99
|
-
[o.footerScrollable]: p
|
|
100
|
-
}), children: c })
|
|
101
|
-
] }) });
|
|
102
|
-
};
|
|
103
|
-
export {
|
|
104
|
-
Z as D,
|
|
105
|
-
Y as a,
|
|
106
|
-
q as v
|
|
107
|
-
};
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs as l, jsx as t, Fragment as M } from "react/jsx-runtime";
|
|
3
|
-
import { c as h } from "./index.DQOqod3i.js";
|
|
4
|
-
import "react";
|
|
5
|
-
import { u as x } from "./useBreakpoint.1txsny17.js";
|
|
6
|
-
import { Asterisk as v } from "../asterisk.Dwtdwpkq.js";
|
|
7
|
-
import { DSHeading as E } from "../heading.BHSklXho.js";
|
|
8
|
-
import { D as T } from "./Popover.Cyf3CbLl.js";
|
|
9
|
-
import { D as q } from "./SystemFeedback.Dq3ZphgG.js";
|
|
10
|
-
import { g as _ } from "./helpers.CexwVao7.js";
|
|
11
|
-
import "./index.cKLI89Eg.js";
|
|
12
|
-
import '../assets/Fieldset.DCmr1Yir.css';const A = "ds-fieldset_root_onyd6_1", B = "ds-fieldset_child-wrapper_onyd6_98", C = "ds-fieldset_legend-wrapper_onyd6_105", L = "ds-fieldset_legend_onyd6_105", U = "ds-fieldset_legend--hidden_onyd6_116", z = "ds-fieldset_legend--utility--m_onyd6_131", I = "ds-fieldset_description_onyd6_143", O = "ds-fieldset_description--small_onyd6_157", V = "ds-fieldset_system-feedback_onyd6_161", e = {
|
|
13
|
-
root: A,
|
|
14
|
-
childWrapper: B,
|
|
15
|
-
legendWrapper: C,
|
|
16
|
-
legend: L,
|
|
17
|
-
legendHidden: U,
|
|
18
|
-
legendUtilityM: z,
|
|
19
|
-
description: I,
|
|
20
|
-
descriptionSmall: O,
|
|
21
|
-
systemFeedback: V
|
|
22
|
-
}, $ = ({
|
|
23
|
-
description: a,
|
|
24
|
-
hideLegend: s,
|
|
25
|
-
id: c,
|
|
26
|
-
legend: d,
|
|
27
|
-
popoverContent: p,
|
|
28
|
-
systemFeedback: i
|
|
29
|
-
}) => {
|
|
30
|
-
if (!c && (a || i))
|
|
31
|
-
throw new Error(_("DSFieldset", 'A unique "id" prop is required when providing the description or systemFeedback property. Please add a unique "id" prop to the DSFieldset component.'));
|
|
32
|
-
if (!d)
|
|
33
|
-
throw new Error(_("DSFieldset", "The legend prop is required. Please add the legend prop to the DSFieldset component."));
|
|
34
|
-
s && p && console.warn(_("DSFieldset", '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".'));
|
|
35
|
-
}, te = ({
|
|
36
|
-
children: a,
|
|
37
|
-
legend: s,
|
|
38
|
-
className: c,
|
|
39
|
-
description: d,
|
|
40
|
-
disabled: p = !1,
|
|
41
|
-
hideLegend: i = !1,
|
|
42
|
-
id: m,
|
|
43
|
-
invalid: g = !1,
|
|
44
|
-
popoverContent: f,
|
|
45
|
-
popoverInfoButtonProps: F,
|
|
46
|
-
required: y = !1,
|
|
47
|
-
systemFeedback: o,
|
|
48
|
-
...w
|
|
49
|
-
}) => {
|
|
50
|
-
const N = x(i);
|
|
51
|
-
process.env.NODE_ENV !== "production" && $({
|
|
52
|
-
description: d,
|
|
53
|
-
hideLegend: i,
|
|
54
|
-
id: m,
|
|
55
|
-
legend: s,
|
|
56
|
-
popoverContent: f,
|
|
57
|
-
systemFeedback: o
|
|
58
|
-
});
|
|
59
|
-
let n, u, S;
|
|
60
|
-
const r = typeof s == "object" && s !== void 0;
|
|
61
|
-
r && ({
|
|
62
|
-
headingSize: n,
|
|
63
|
-
headingTag: u,
|
|
64
|
-
headingText: S
|
|
65
|
-
} = s);
|
|
66
|
-
const D = `${m}-feedback`, b = `${m}-description`, k = [g && o && D, d && b].filter(Boolean).join(" ") || void 0, P = !r || n === "small" || n === "small-uppercase", W = h(e.root, c), j = h(e.legend, {
|
|
67
|
-
[e.legendHidden]: N,
|
|
68
|
-
[e.legendUtilityM]: !r
|
|
69
|
-
}), H = h(e.description, {
|
|
70
|
-
[e.descriptionSmall]: P
|
|
71
|
-
});
|
|
72
|
-
return /* @__PURE__ */ l("fieldset", { className: W, disabled: p, ...w, "aria-invalid": g, "aria-describedby": k, children: [
|
|
73
|
-
/* @__PURE__ */ l("legend", { className: j, children: [
|
|
74
|
-
/* @__PURE__ */ t("span", { className: e.legendWrapper, children: r ? /* @__PURE__ */ l(E, { tag: u, size: n, children: [
|
|
75
|
-
S,
|
|
76
|
-
y && /* @__PURE__ */ t(v, {})
|
|
77
|
-
] }) : /* @__PURE__ */ l(M, { children: [
|
|
78
|
-
s,
|
|
79
|
-
y && /* @__PURE__ */ t(v, {})
|
|
80
|
-
] }) }),
|
|
81
|
-
f && /* @__PURE__ */ t(T, { placement: "top", defaultAnchorButtonProps: F, children: f })
|
|
82
|
-
] }),
|
|
83
|
-
d && /* @__PURE__ */ t("span", { id: b, className: H, children: d }),
|
|
84
|
-
g && o && /* @__PURE__ */ t(q, { id: D, variant: "error", message: o, className: e.systemFeedback }),
|
|
85
|
-
/* @__PURE__ */ t("div", { className: e.childWrapper, children: a })
|
|
86
|
-
] });
|
|
87
|
-
};
|
|
88
|
-
export {
|
|
89
|
-
te as D,
|
|
90
|
-
$ as v
|
|
91
|
-
};
|