@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,31 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useCallback as I, useEffect as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import "./
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}, gt = ["left", "center"], Et = ["horizontal", "vertical"], et = ({
|
|
2
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
3
|
+
import { c as h } from "./index.DQOqod3i.js";
|
|
4
|
+
import { useCallback as I, useEffect as j, useRef as d } from "react";
|
|
5
|
+
import { f as q } from "./AriaLiveRegions.utils.xoETe2Ps.js";
|
|
6
|
+
import { DSScroller as H } from "../scroller.CgWp2WXG.js";
|
|
7
|
+
import { StepperStep as G } from "../step.DCQ6CawJ.js";
|
|
8
|
+
import { g as i, r as F } from "./helpers.CexwVao7.js";
|
|
9
|
+
import { t as J } from "./translate.DSb-TdWR.js";
|
|
10
|
+
import { u as L } from "./useIsomorphicLayoutEffect.CnJ9AMFS.js";
|
|
11
|
+
import { i as K } from "./is-animation-disabled.B-V_68K-.js";
|
|
12
|
+
import '../assets/Stepper.BCpjMiOX.css';const bt = ["prev", "next"], x = 48, Q = "ds-stepper_root_1vtkh_1", U = "ds-stepper_root--vertical_1vtkh_12", X = "ds-stepper_scroller--centered_1vtkh_17", Y = "ds-stepper_scroller-button_1vtkh_21", Z = "ds-stepper_list_1vtkh_26", tt = "ds-stepper_list--center_1vtkh_35", et = "ds-stepper_list--vertical_1vtkh_38", a = {
|
|
13
|
+
root: Q,
|
|
14
|
+
rootVertical: U,
|
|
15
|
+
scrollerCentered: X,
|
|
16
|
+
scrollerButton: Y,
|
|
17
|
+
list: Z,
|
|
18
|
+
listCenter: tt,
|
|
19
|
+
listVertical: et
|
|
20
|
+
}, _t = ["left", "center"], Et = ["horizontal", "vertical"], rt = ({
|
|
22
21
|
aria: e,
|
|
23
22
|
steps: n
|
|
24
23
|
}) => {
|
|
25
24
|
if (!e || typeof e != "object" || Object.keys(e).length === 0 || !e["aria-label"] && !e["aria-labelledby"] || e["aria-label"]?.trim() === "" && e["aria-labelledby"]?.trim() === "")
|
|
26
25
|
throw new Error(i("DSStepper", '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.'));
|
|
27
26
|
if (!Array.isArray(n))
|
|
28
|
-
throw new Error(i("DSStepper",
|
|
27
|
+
throw new Error(i("DSStepper", F("steps", "DSStepper")));
|
|
29
28
|
if (n.length < 2)
|
|
30
29
|
throw new Error(i("DSStepper", "The steps array must contain at least two steps."));
|
|
31
30
|
n.forEach((t, s) => {
|
|
@@ -34,60 +33,60 @@ import '../assets/Stepper.tXJl15yL.css';const _t = ["prev", "next"], L = 48, K =
|
|
|
34
33
|
if (t?.state === "current" && t?.disabled)
|
|
35
34
|
throw new Error(i("DSStepper", `The step at index ${s} has a current state but is disabled. Please remove the disabled property if this step is the current step.`));
|
|
36
35
|
});
|
|
37
|
-
},
|
|
36
|
+
}, ot = {
|
|
38
37
|
current: "Current step",
|
|
39
38
|
completed: "completed",
|
|
40
39
|
step: "Step",
|
|
41
40
|
of: "of"
|
|
42
|
-
},
|
|
41
|
+
}, st = {
|
|
43
42
|
current: "Aktueller Schritt",
|
|
44
43
|
completed: "abgeschlossen",
|
|
45
44
|
step: "Schritt",
|
|
46
45
|
of: "von"
|
|
47
|
-
},
|
|
48
|
-
en:
|
|
49
|
-
de:
|
|
50
|
-
}, nt = (e) => e.find((t) => t.state === "current") || e.findLast((t) => t.state) || e[0],
|
|
46
|
+
}, w = {
|
|
47
|
+
en: ot,
|
|
48
|
+
de: st
|
|
49
|
+
}, nt = (e) => e.find((t) => t.state === "current") || e.findLast((t) => t.state) || e[0], y = (e) => e.findIndex((n) => n.state === "current"), lt = (e, n) => !!e && e === "completed" && !n, Tt = ({
|
|
51
50
|
aria: e,
|
|
52
51
|
className: n,
|
|
53
52
|
steps: t,
|
|
54
53
|
orientation: s = "horizontal",
|
|
55
|
-
alignment:
|
|
56
|
-
lang:
|
|
57
|
-
translations:
|
|
58
|
-
onStepChange:
|
|
54
|
+
alignment: S = "left",
|
|
55
|
+
lang: m = "en",
|
|
56
|
+
translations: A,
|
|
57
|
+
onStepChange: k,
|
|
59
58
|
...P
|
|
60
59
|
}) => {
|
|
61
|
-
process.env.NODE_ENV !== "production" &&
|
|
60
|
+
process.env.NODE_ENV !== "production" && rt({
|
|
62
61
|
aria: e,
|
|
63
62
|
steps: t
|
|
64
63
|
});
|
|
65
|
-
const p =
|
|
66
|
-
|
|
67
|
-
}, []),
|
|
64
|
+
const p = J(A || w[m] || w.en, m), b = I((o) => {
|
|
65
|
+
q(o, "DSStepper");
|
|
66
|
+
}, []), _ = I(() => {
|
|
68
67
|
const o = nt(t), r = `${p("current")}: ${t.indexOf(o) + 1} ${p("of")} ${t.length} - ${o.label}`;
|
|
69
|
-
|
|
70
|
-
}, [t, p,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}, [t,
|
|
68
|
+
b(r);
|
|
69
|
+
}, [t, p, b]);
|
|
70
|
+
j(() => {
|
|
71
|
+
_();
|
|
72
|
+
}, [t, _]);
|
|
74
73
|
const O = (o, r) => {
|
|
75
74
|
const {
|
|
76
75
|
state: l,
|
|
77
76
|
disabled: c
|
|
78
77
|
} = t[o];
|
|
79
|
-
lt(l, c) && (t[o].onClick?.(r),
|
|
80
|
-
}, M =
|
|
78
|
+
lt(l, c) && (t[o].onClick?.(r), k(o));
|
|
79
|
+
}, M = h(a.root, {
|
|
81
80
|
[a.rootVertical]: s === "vertical"
|
|
82
|
-
}, n), B =
|
|
81
|
+
}, n), B = h(a.list, {
|
|
83
82
|
[a.listVertical]: s === "vertical",
|
|
84
|
-
[a.listCenter]: s === "horizontal" &&
|
|
85
|
-
}), $ =
|
|
86
|
-
[a.scrollerCentered]: s === "horizontal" &&
|
|
87
|
-
}),
|
|
88
|
-
|
|
89
|
-
} }, r)) }),
|
|
90
|
-
|
|
83
|
+
[a.listCenter]: s === "horizontal" && S === "center"
|
|
84
|
+
}), $ = h({
|
|
85
|
+
[a.scrollerCentered]: s === "horizontal" && S === "center"
|
|
86
|
+
}), E = d([]), T = /* @__PURE__ */ f("ol", { className: B, children: t.map((o, r) => /* @__PURE__ */ f(G, { step: o, index: r, stepsCount: t.length, t: p, orientation: s, onStepClick: (l) => O(r, l), buttonRef: (l) => {
|
|
87
|
+
E.current[r] = l;
|
|
88
|
+
} }, r)) }), g = d(null), C = d(!1);
|
|
89
|
+
L(() => {
|
|
91
90
|
if (s !== "horizontal")
|
|
92
91
|
return;
|
|
93
92
|
const o = [
|
|
@@ -101,46 +100,46 @@ import '../assets/Stepper.tXJl15yL.css';const _t = ["prev", "next"], L = 48, K =
|
|
|
101
100
|
// utility-small - number/hint base (regular variant for hint)
|
|
102
101
|
];
|
|
103
102
|
Promise.all(o.map((r) => document.fonts.load(r))).then(() => {
|
|
104
|
-
|
|
103
|
+
C.current = !0, y(t) !== -1 && v("instant");
|
|
105
104
|
}).catch((r) => {
|
|
106
105
|
throw new Error(i("DSStepper", `The component requires the fonts to be loaded: ${r}`));
|
|
107
106
|
});
|
|
108
107
|
}, [s]);
|
|
109
|
-
const
|
|
108
|
+
const v = (o = "smooth") => {
|
|
110
109
|
if (s !== "horizontal")
|
|
111
110
|
return;
|
|
112
|
-
const r =
|
|
111
|
+
const r = y(t);
|
|
113
112
|
if (r === -1)
|
|
114
113
|
return;
|
|
115
|
-
const l =
|
|
114
|
+
const l = E.current[r], c = g.current;
|
|
116
115
|
if (!l || !c)
|
|
117
116
|
return;
|
|
118
117
|
const R = l.getBoundingClientRect(), D = c.getBoundingClientRect();
|
|
119
|
-
if (R.left -
|
|
118
|
+
if (R.left - x >= D.left && R.right + x <= D.right)
|
|
120
119
|
return;
|
|
121
|
-
const
|
|
122
|
-
let
|
|
123
|
-
const
|
|
124
|
-
|
|
125
|
-
left:
|
|
126
|
-
behavior:
|
|
120
|
+
const z = l.offsetLeft, V = l.offsetWidth, N = c.clientWidth;
|
|
121
|
+
let u = z - Math.max(0, (N - V) / 2);
|
|
122
|
+
const W = c.scrollWidth - N;
|
|
123
|
+
u = Math.min(Math.max(0, u), W), c.scrollTo({
|
|
124
|
+
left: u,
|
|
125
|
+
behavior: K() ? "instant" : o
|
|
127
126
|
});
|
|
128
127
|
};
|
|
129
|
-
return
|
|
130
|
-
|
|
131
|
-
}, [t, s]), /* @__PURE__ */
|
|
128
|
+
return L(() => {
|
|
129
|
+
C.current && v("smooth");
|
|
130
|
+
}, [t, s]), /* @__PURE__ */ f("nav", { className: M, ...P, ...e, children: s === "horizontal" ? /* @__PURE__ */ f(H, { ref: g, className: a.scroller, scrollerClassName: $, scrollerButtonClassName: a.scrollerButton, children: T }) : T });
|
|
132
131
|
};
|
|
133
132
|
export {
|
|
134
133
|
Tt as D,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
134
|
+
bt as S,
|
|
135
|
+
w as a,
|
|
136
|
+
st as b,
|
|
137
|
+
ot as c,
|
|
138
|
+
x as d,
|
|
139
|
+
_t as e,
|
|
140
|
+
Et as f,
|
|
142
141
|
nt as g,
|
|
143
|
-
|
|
142
|
+
y as h,
|
|
144
143
|
lt as i,
|
|
145
|
-
|
|
144
|
+
rt as v
|
|
146
145
|
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as p, jsx as E } from "react/jsx-runtime";
|
|
3
|
+
import { d as h } from "./index.cKLI89Eg.js";
|
|
4
|
+
import { c as x } from "./index.DQOqod3i.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import { D as g } from "./Icon.DYtaQgbw.js";
|
|
7
|
+
import '../assets/SystemFeedback.DVMml_h9.css';const u = "ds-system-feedback_root_veno1_1", v = "ds-system-feedback_root--dark_veno1_17", D = {
|
|
8
|
+
root: u,
|
|
9
|
+
rootDark: v
|
|
10
|
+
}, I = ["success", "error", "warning"], A = {
|
|
11
|
+
success: "circle-check-colored",
|
|
12
|
+
error: "diamond-exclamationmark-colored",
|
|
13
|
+
warning: "triangle-exclamationmark-colored"
|
|
14
|
+
}, M = (S) => {
|
|
15
|
+
const t = h.c(19), d = S;
|
|
16
|
+
let e, o, s, r, c, n;
|
|
17
|
+
t[0] !== d ? ({
|
|
18
|
+
id: o,
|
|
19
|
+
message: s,
|
|
20
|
+
theme: c,
|
|
21
|
+
variant: n,
|
|
22
|
+
className: e,
|
|
23
|
+
...r
|
|
24
|
+
} = d, t[0] = d, t[1] = e, t[2] = o, t[3] = s, t[4] = r, t[5] = c, t[6] = n) : (e = t[1], o = t[2], s = t[3], r = t[4], c = t[5], n = t[6]);
|
|
25
|
+
const l = c === void 0 ? "light" : c, k = l === "dark";
|
|
26
|
+
let i;
|
|
27
|
+
t[7] !== e || t[8] !== k ? (i = x(D.root, e, {
|
|
28
|
+
[D.rootDark]: k
|
|
29
|
+
}), t[7] = e, t[8] = k, t[9] = i) : i = t[9];
|
|
30
|
+
const _ = i, f = A[n];
|
|
31
|
+
let a;
|
|
32
|
+
t[10] !== f || t[11] !== l ? (a = /* @__PURE__ */ E(g, { name: f, theme: l, "aria-hidden": "true" }), t[10] = f, t[11] = l, t[12] = a) : a = t[12];
|
|
33
|
+
let m;
|
|
34
|
+
return t[13] !== o || t[14] !== s || t[15] !== r || t[16] !== _ || t[17] !== a ? (m = /* @__PURE__ */ p("div", { id: o, className: _, ...r, children: [
|
|
35
|
+
a,
|
|
36
|
+
s
|
|
37
|
+
] }), t[13] = o, t[14] = s, t[15] = r, t[16] = _, t[17] = a, t[18] = m) : m = t[18], m;
|
|
38
|
+
};
|
|
39
|
+
export {
|
|
40
|
+
M as D,
|
|
41
|
+
A as S,
|
|
42
|
+
I as a
|
|
43
|
+
};
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsx as E, jsxs as M } from "react/jsx-runtime";
|
|
3
3
|
import { d as q } from "./index.cKLI89Eg.js";
|
|
4
4
|
import { useState as C } from "react";
|
|
5
|
-
import { TabList as V } from "../tablist.
|
|
6
|
-
import { TabPane as $ } from "../tabpane.
|
|
5
|
+
import { TabList as V } from "../tablist.BAm0_UIG.js";
|
|
6
|
+
import { TabPane as $ } from "../tabpane.B9rZghU6.js";
|
|
7
7
|
import { g as j } from "./TabPane.utils.DG16Y2uD.js";
|
|
8
8
|
import { g as p, r as B } from "./helpers.CexwVao7.js";
|
|
9
9
|
const J = ["left", "center"], K = ["prev", "next"], O = ({
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { a as e } from "./helpers.CexwVao7.js";
|
|
3
|
+
const n = ["address", "blockquote", "cite", "div", "dd", "dfn", "dt", "figcaption", "legend", "li", "p", "span", "time"], l = ["large", "medium", "small", "x-small", "xx-small"], m = ["bold", "normal"], r = (a, s) => Array.isArray(s) ? s.some((t) => !!e(a, t)) : !!e(a, s);
|
|
4
|
+
export {
|
|
5
|
+
l as T,
|
|
6
|
+
n as a,
|
|
7
|
+
m as b,
|
|
8
|
+
r as i
|
|
9
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as M } from "react/jsx-runtime";
|
|
3
|
+
import { d as X } from "./index.cKLI89Eg.js";
|
|
4
|
+
import { c as N } from "./index.DQOqod3i.js";
|
|
5
|
+
import { useRef as P, useEffect as Y } from "react";
|
|
6
|
+
import { i as L } from "./Text.utils.DzlY9pJS.js";
|
|
7
|
+
import { g as x } from "./helpers.CexwVao7.js";
|
|
8
|
+
import '../assets/TextUtility.BThulfyl.css';const $ = "ds-text-utility_root_5fggr_6", z = "ds-text-utility_root--large_5fggr_15", G = "ds-text-utility_root--large-bold_5fggr_26", R = "ds-text-utility_root--medium_5fggr_38", W = "ds-text-utility_root--medium-bold_5fggr_49", j = "ds-text-utility_root--small_5fggr_61", q = "ds-text-utility_root--small-bold_5fggr_72", A = "ds-text-utility_root--small-demi_5fggr_84", C = "ds-text-utility_root--x-small-demi_5fggr_94", H = "ds-text-utility_root--theme-dark_5fggr_205", l = {
|
|
9
|
+
root: $,
|
|
10
|
+
rootLarge: z,
|
|
11
|
+
rootLargeBold: G,
|
|
12
|
+
rootMedium: R,
|
|
13
|
+
rootMediumBold: W,
|
|
14
|
+
rootSmall: j,
|
|
15
|
+
rootSmallBold: q,
|
|
16
|
+
rootSmallDemi: A,
|
|
17
|
+
rootXSmallDemi: C,
|
|
18
|
+
rootThemeDark: H
|
|
19
|
+
}, tt = ["address", "blockquote", "cite", "div", "dd", "dfn", "dt", "figcaption", "legend", "li", "p", "span", "time"], ot = ["large", "medium", "small", "x-small"], et = ["bold", "demi", "normal"], O = ({
|
|
20
|
+
size: r,
|
|
21
|
+
weight: t
|
|
22
|
+
}) => {
|
|
23
|
+
t === "demi" && r !== "small" && r !== "x-small" && console.warn(x("DSTextUtility", 'Invalid prop combination: weight "demi" is only supported on sizes "small" and "x-small".')), r === "x-small" && t !== "demi" && console.warn(x("DSTextUtility", 'Invalid prop combination: size "x-small" only supports weight "demi".'));
|
|
24
|
+
}, lt = (r) => {
|
|
25
|
+
const t = X.c(29);
|
|
26
|
+
let s, a, m, n, d, c, g;
|
|
27
|
+
t[0] !== r ? ({
|
|
28
|
+
children: s,
|
|
29
|
+
className: a,
|
|
30
|
+
size: n,
|
|
31
|
+
tag: d,
|
|
32
|
+
theme: c,
|
|
33
|
+
weight: g,
|
|
34
|
+
...m
|
|
35
|
+
} = r, t[0] = r, t[1] = s, t[2] = a, t[3] = m, t[4] = n, t[5] = d, t[6] = c, t[7] = g) : (s = t[1], a = t[2], m = t[3], n = t[4], d = t[5], c = t[6], g = t[7]);
|
|
36
|
+
const o = n === void 0 ? "medium" : n, i = d === void 0 ? "p" : d, k = c === void 0 ? "light" : c, e = g === void 0 ? "normal" : g, u = P(null);
|
|
37
|
+
let _, f;
|
|
38
|
+
t[8] !== o || t[9] !== i || t[10] !== e ? (_ = () => {
|
|
39
|
+
if (process.env.NODE_ENV !== "production" && (O({
|
|
40
|
+
size: o,
|
|
41
|
+
weight: e
|
|
42
|
+
}), u.current))
|
|
43
|
+
t: switch (i) {
|
|
44
|
+
case "li": {
|
|
45
|
+
if (!L(u.current, "ul, ol"))
|
|
46
|
+
throw Error(x("DSTextUtility", `The DSTextUtility component with the tag "${i}" is not within a list element (ul, ol). Please ensure it's placed correctly.`));
|
|
47
|
+
break t;
|
|
48
|
+
}
|
|
49
|
+
case "dt":
|
|
50
|
+
case "dd": {
|
|
51
|
+
if (!L(u.current, "dl"))
|
|
52
|
+
throw Error(x("DSTextUtility", `The DSTextUtility component with the tag "${i}" is not within a description list element (dl). Please ensure it's placed correctly.`));
|
|
53
|
+
break t;
|
|
54
|
+
}
|
|
55
|
+
default:
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
}, f = [i, o, e], t[8] = o, t[9] = i, t[10] = e, t[11] = _, t[12] = f) : (_ = t[11], f = t[12]), Y(_, f);
|
|
59
|
+
const h = i, y = o === "large" && e === "normal", S = o === "large" && e === "bold", D = o === "medium" && e === "normal", b = o === "medium" && e === "bold", w = o === "small" && e === "normal", E = o === "small" && e === "bold", U = o === "small" && e === "demi", v = o === "x-small" && e === "demi", I = k === "dark";
|
|
60
|
+
let T;
|
|
61
|
+
t[13] !== a || t[14] !== b || t[15] !== w || t[16] !== E || t[17] !== U || t[18] !== v || t[19] !== I || t[20] !== y || t[21] !== S || t[22] !== D ? (T = N(l.root, a, {
|
|
62
|
+
[l.rootLarge]: y,
|
|
63
|
+
[l.rootLargeBold]: S,
|
|
64
|
+
[l.rootMedium]: D,
|
|
65
|
+
[l.rootMediumBold]: b,
|
|
66
|
+
[l.rootSmall]: w,
|
|
67
|
+
[l.rootSmallBold]: E,
|
|
68
|
+
[l.rootSmallDemi]: U,
|
|
69
|
+
[l.rootXSmallDemi]: v,
|
|
70
|
+
[l.rootThemeDark]: I
|
|
71
|
+
}), t[13] = a, t[14] = b, t[15] = w, t[16] = E, t[17] = U, t[18] = v, t[19] = I, t[20] = y, t[21] = S, t[22] = D, t[23] = T) : T = t[23];
|
|
72
|
+
const B = T;
|
|
73
|
+
let p;
|
|
74
|
+
return t[24] !== h || t[25] !== s || t[26] !== m || t[27] !== B ? (p = /* @__PURE__ */ M(h, { className: B, ref: u, ...m, children: s }), t[24] = h, t[25] = s, t[26] = m, t[27] = B, t[28] = p) : p = t[28], p;
|
|
75
|
+
};
|
|
76
|
+
export {
|
|
77
|
+
lt as D,
|
|
78
|
+
ot as T,
|
|
79
|
+
tt as a,
|
|
80
|
+
et as b,
|
|
81
|
+
O as v
|
|
82
|
+
};
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as o, jsx as p, Fragment as xe } from "react/jsx-runtime";
|
|
3
|
+
import { c as l } from "./index.DQOqod3i.js";
|
|
4
|
+
import { forwardRef as _e, useState as u, useRef as ve, useEffect as _ } from "react";
|
|
5
|
+
import { u as X } from "./useBreakpoint.1txsny17.js";
|
|
6
|
+
import { Asterisk as ke } from "../asterisk.Dwtdwpkq.js";
|
|
7
|
+
import { D as ge } from "./Popover.CxZZ_y1Z.js";
|
|
8
|
+
import { D as Ce } from "./SystemFeedback.DhWcYjnu.js";
|
|
9
|
+
import { g as I, p as Z } from "./helpers.CexwVao7.js";
|
|
10
|
+
import '../assets/Textarea.BO4AcRJD.css';const De = "ds-textarea_textarea_1mper_1", ye = "ds-textarea_textarea--small_1mper_9", Se = "ds-textarea_textarea--invalid_1mper_127", we = "ds-textarea_textarea--dark_1mper_145", Te = "ds-textarea_textarea--resize-auto_1mper_259", Ie = "ds-textarea_root_1mper_269", Ae = "ds-textarea_hint_1mper_269", Ne = "ds-textarea_label-wrapper_1mper_269", Le = "ds-textarea_label_1mper_269", Re = "ds-textarea_label--disabled_1mper_491", Fe = "ds-textarea_label--dark_1mper_495", Ee = "ds-textarea_label-wrapper--hidden_1mper_511", He = "ds-textarea_hint--dark_1mper_538", ze = "ds-textarea_feedback_1mper_542", Pe = "ds-textarea_footer_1mper_546", Ve = "ds-textarea_footer--has-system-feedback_1mper_551", $e = "ds-textarea_char-count_1mper_560", We = "ds-textarea_char-count--dark_1mper_572", Be = "ds-textarea_char-count-announcer_1mper_576", e = {
|
|
11
|
+
textarea: De,
|
|
12
|
+
textareaSmall: ye,
|
|
13
|
+
textareaInvalid: Se,
|
|
14
|
+
textareaDark: we,
|
|
15
|
+
textareaResizeAuto: Te,
|
|
16
|
+
root: Ie,
|
|
17
|
+
hint: Ae,
|
|
18
|
+
labelWrapper: Ne,
|
|
19
|
+
label: Le,
|
|
20
|
+
labelDisabled: Re,
|
|
21
|
+
labelDark: Fe,
|
|
22
|
+
labelWrapperHidden: Ee,
|
|
23
|
+
hintDark: He,
|
|
24
|
+
feedback: ze,
|
|
25
|
+
footer: Pe,
|
|
26
|
+
footerHasSystemFeedback: Ve,
|
|
27
|
+
charCount: $e,
|
|
28
|
+
charCountDark: We,
|
|
29
|
+
charCountAnnouncer: Be
|
|
30
|
+
}, Qe = ["medium", "small"], qe = ({
|
|
31
|
+
id: v,
|
|
32
|
+
label: i,
|
|
33
|
+
hideLabel: r,
|
|
34
|
+
popoverContent: h
|
|
35
|
+
}) => {
|
|
36
|
+
if (!v)
|
|
37
|
+
throw new Error(I("DSTextarea", 'A unique "id" prop is required. Please add a unique "id" prop to the DSTextarea component.'));
|
|
38
|
+
if (!i)
|
|
39
|
+
throw new Error(I("DSTextarea", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSTextarea component. If you don't want to display a label, set hideLabel={true}.`));
|
|
40
|
+
r && h && console.warn(I("DSTextarea", "Using a popover when hideLabel is set to true is not supported."));
|
|
41
|
+
}, je = _e((v, i) => {
|
|
42
|
+
const {
|
|
43
|
+
id: r,
|
|
44
|
+
label: h,
|
|
45
|
+
charsLimitText: G = "Character limit reached",
|
|
46
|
+
charsRemainingText: J = "Characters remaining:",
|
|
47
|
+
className: K,
|
|
48
|
+
defaultValue: Q,
|
|
49
|
+
disabled: A = !1,
|
|
50
|
+
hint: k,
|
|
51
|
+
hideLabel: N = !1,
|
|
52
|
+
invalid: s = !1,
|
|
53
|
+
maxLength: a,
|
|
54
|
+
popoverContent: g,
|
|
55
|
+
popoverInfoButtonProps: Y,
|
|
56
|
+
readonly: L = !1,
|
|
57
|
+
required: R = !1,
|
|
58
|
+
resize: b = "vertical",
|
|
59
|
+
size: ee = "medium",
|
|
60
|
+
systemFeedback: c,
|
|
61
|
+
theme: C = "light",
|
|
62
|
+
value: D,
|
|
63
|
+
wrapperClassName: ae,
|
|
64
|
+
onChange: F,
|
|
65
|
+
onInput: E,
|
|
66
|
+
...te
|
|
67
|
+
} = v;
|
|
68
|
+
process.env.NODE_ENV !== "production" && qe({
|
|
69
|
+
id: r,
|
|
70
|
+
label: h,
|
|
71
|
+
hideLabel: X(N),
|
|
72
|
+
popoverContent: g
|
|
73
|
+
});
|
|
74
|
+
const [re, H] = u(Q || ""), [d, z] = u(0), [se, P] = u(0), [ne, V] = u("off"), [$, y] = u(c), [S, w] = u(s), W = D !== void 0, f = W ? D : re, n = ve(null), B = a !== void 0 && a > 0, T = S && $, oe = (t) => {
|
|
75
|
+
n.current = t, typeof i == "function" ? i(t) : i && (i.current = t);
|
|
76
|
+
}, q = X(N);
|
|
77
|
+
_(() => {
|
|
78
|
+
if (!a || a <= 0)
|
|
79
|
+
return;
|
|
80
|
+
d >= a * 0.8 ? V("polite") : V("off");
|
|
81
|
+
const t = setTimeout(() => {
|
|
82
|
+
P(a - d || 0);
|
|
83
|
+
}, 1e3);
|
|
84
|
+
return () => clearTimeout(t);
|
|
85
|
+
}, [d]), _(() => {
|
|
86
|
+
H(f || ""), m(), a && a > 0 && (z(f.toString().length || 0), P(a - f.toString().length || 0));
|
|
87
|
+
}, [D]), _(() => {
|
|
88
|
+
s && c ? (y(c), w(s)) : !s && a && a >= 0 && d >= a ? (w(!0), y(G)) : (y(c), w(s));
|
|
89
|
+
}, [s, S, c, d]), _(() => {
|
|
90
|
+
if (b === "auto")
|
|
91
|
+
return m(), window.addEventListener("resize", m), () => window.removeEventListener("resize", m);
|
|
92
|
+
}, [b, n.current]);
|
|
93
|
+
const le = l(e.root, ae), x = C === "dark", ie = l(e.textarea, K, {
|
|
94
|
+
[e.textareaDark]: x,
|
|
95
|
+
// small textarea
|
|
96
|
+
[e.textareaSmall]: ee === "small",
|
|
97
|
+
// invalid state
|
|
98
|
+
[e.textareaInvalid]: S,
|
|
99
|
+
// resize handling
|
|
100
|
+
[e.textareaResizeAuto]: b === "auto"
|
|
101
|
+
}), ce = l(e.label, {
|
|
102
|
+
[e.labelDark]: x,
|
|
103
|
+
[e.labelDisabled]: A
|
|
104
|
+
}), de = l(e.labelWrapper, {
|
|
105
|
+
// hide label only visually to keep them available for assistive technologies
|
|
106
|
+
[e.labelWrapperHidden]: q
|
|
107
|
+
}), ue = l(e.footer, {
|
|
108
|
+
[e.footerHasSystemFeedback]: T
|
|
109
|
+
}), j = `${r}-label`, M = `${r}-feedback`, O = `${r}-hint`, U = `${r}-char-count-announcer`, me = k ? ` ${O}` : "", m = () => {
|
|
110
|
+
if (n.current && b === "auto") {
|
|
111
|
+
n.current.style.height = "auto";
|
|
112
|
+
const t = Z(n.current.scrollHeight), fe = Z(2);
|
|
113
|
+
n.current.style.height = `${// We need to add 2px (border-top & border-bottom) to the scrollHeight to prevent the textarea
|
|
114
|
+
// from jumping as soon as the user starts typing.
|
|
115
|
+
t + fe}rem`;
|
|
116
|
+
}
|
|
117
|
+
}, pe = () => {
|
|
118
|
+
const t = [];
|
|
119
|
+
return a && a > 0 && t.push(U), s && c && t.push(M), t.length > 0 ? t.join(" ") : void 0;
|
|
120
|
+
}, he = (t) => {
|
|
121
|
+
E && E(t), a && a > 0 && z(n.current?.value.length || 0), m();
|
|
122
|
+
}, be = (t) => {
|
|
123
|
+
F && F(t), W || H(t.target.value);
|
|
124
|
+
};
|
|
125
|
+
return /* @__PURE__ */ o("div", { className: le, children: [
|
|
126
|
+
/* @__PURE__ */ o("div", { className: de, children: [
|
|
127
|
+
/* @__PURE__ */ o("label", { className: ce, id: j, htmlFor: r, children: [
|
|
128
|
+
h,
|
|
129
|
+
R && /* @__PURE__ */ p(ke, {})
|
|
130
|
+
] }),
|
|
131
|
+
g && !q && /* @__PURE__ */ p(ge, { placement: "top", theme: C, defaultAnchorButtonProps: Y, children: g })
|
|
132
|
+
] }),
|
|
133
|
+
k && /* @__PURE__ */ p("div", { className: l(e.hint, {
|
|
134
|
+
[e.hintDark]: x
|
|
135
|
+
}), id: O, children: k }),
|
|
136
|
+
/* @__PURE__ */ p(
|
|
137
|
+
"textarea",
|
|
138
|
+
{
|
|
139
|
+
className: ie,
|
|
140
|
+
id: r,
|
|
141
|
+
...te,
|
|
142
|
+
ref: oe,
|
|
143
|
+
"aria-labelledby": `${j}${me}`,
|
|
144
|
+
"aria-describedby": pe(),
|
|
145
|
+
"aria-invalid": s,
|
|
146
|
+
"aria-disabled": L,
|
|
147
|
+
maxLength: a,
|
|
148
|
+
readOnly: L,
|
|
149
|
+
required: R,
|
|
150
|
+
disabled: A,
|
|
151
|
+
value: f,
|
|
152
|
+
defaultValue: void 0,
|
|
153
|
+
rows: void 0,
|
|
154
|
+
cols: void 0,
|
|
155
|
+
onChange: be,
|
|
156
|
+
onInput: he
|
|
157
|
+
}
|
|
158
|
+
),
|
|
159
|
+
B || T ? /* @__PURE__ */ o("div", { className: ue, children: [
|
|
160
|
+
T && /* @__PURE__ */ p(Ce, { className: e.feedback, message: $, variant: "error", id: M, theme: C }),
|
|
161
|
+
B && /* @__PURE__ */ o(xe, { children: [
|
|
162
|
+
/* @__PURE__ */ o("div", { className: l(e.charCount, {
|
|
163
|
+
[e.charCountDark]: x
|
|
164
|
+
}), "aria-hidden": "true", children: [
|
|
165
|
+
d,
|
|
166
|
+
"/",
|
|
167
|
+
a
|
|
168
|
+
] }),
|
|
169
|
+
/* @__PURE__ */ o(
|
|
170
|
+
"div",
|
|
171
|
+
{
|
|
172
|
+
className: e.charCountAnnouncer,
|
|
173
|
+
id: U,
|
|
174
|
+
"aria-live": ne,
|
|
175
|
+
"aria-atomic": "true",
|
|
176
|
+
children: [
|
|
177
|
+
J,
|
|
178
|
+
" ",
|
|
179
|
+
se
|
|
180
|
+
]
|
|
181
|
+
}
|
|
182
|
+
)
|
|
183
|
+
] })
|
|
184
|
+
] }) : null
|
|
185
|
+
] });
|
|
186
|
+
});
|
|
187
|
+
je.displayName = "DSTextarea";
|
|
188
|
+
export {
|
|
189
|
+
je as D,
|
|
190
|
+
Qe as T,
|
|
191
|
+
qe as v
|
|
192
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as D, jsxs as j } from "react/jsx-runtime";
|
|
3
|
+
import { d as E } from "./index.cKLI89Eg.js";
|
|
4
|
+
import { c as W } from "./index.DQOqod3i.js";
|
|
5
|
+
import { forwardRef as L } from "react";
|
|
6
|
+
import { D as M } from "./Button.CCol--xy.js";
|
|
7
|
+
import { D as O } from "./Icon.DYtaQgbw.js";
|
|
8
|
+
import '../assets/Toast.ChXfv24m.css';const P = "ds-toast_root_1gdlp_5", z = "ds-toast_root--closing_1gdlp_15", A = "ds-toast_root--success_1gdlp_66", R = "ds-toast_root--info_1gdlp_70", $ = "ds-toast_root--warning_1gdlp_74", q = "ds-toast_content_1gdlp_79", F = "ds-toast_content--hide-icon_1gdlp_86", G = "ds-toast_icon_1gdlp_90", J = "ds-toast_message_1gdlp_94", s = {
|
|
9
|
+
root: P,
|
|
10
|
+
rootClosing: z,
|
|
11
|
+
rootSuccess: A,
|
|
12
|
+
rootInfo: R,
|
|
13
|
+
rootWarning: $,
|
|
14
|
+
content: q,
|
|
15
|
+
contentHideIcon: F,
|
|
16
|
+
icon: G,
|
|
17
|
+
message: J
|
|
18
|
+
}, K = {
|
|
19
|
+
success: "circle-check-colored",
|
|
20
|
+
warning: "triangle-exclamationmark-colored",
|
|
21
|
+
info: "circle-info-colored"
|
|
22
|
+
}, Q = L((b, x) => {
|
|
23
|
+
const o = E.c(44);
|
|
24
|
+
let e, n, t, c, l, a, i, h, v;
|
|
25
|
+
o[0] !== b ? ({
|
|
26
|
+
message: t,
|
|
27
|
+
className: e,
|
|
28
|
+
closeButtonProps: n,
|
|
29
|
+
hideIcon: h,
|
|
30
|
+
variant: v,
|
|
31
|
+
onClick: c,
|
|
32
|
+
onMouseEnter: l,
|
|
33
|
+
onMouseLeave: a,
|
|
34
|
+
...i
|
|
35
|
+
} = b, o[0] = b, o[1] = e, o[2] = n, o[3] = t, o[4] = c, o[5] = l, o[6] = a, o[7] = i, o[8] = h, o[9] = v) : (e = o[1], n = o[2], t = o[3], c = o[4], l = o[5], a = o[6], i = o[7], h = o[8], v = o[9]);
|
|
36
|
+
const r = h === void 0 ? !1 : h, d = v === void 0 ? "info" : v;
|
|
37
|
+
let m;
|
|
38
|
+
o[10] !== n ? (m = n || {}, o[10] = n, o[11] = m) : m = o[11];
|
|
39
|
+
let _, I;
|
|
40
|
+
o[12] !== m ? ({
|
|
41
|
+
label: I,
|
|
42
|
+
..._
|
|
43
|
+
} = m, o[12] = m, o[13] = _, o[14] = I) : (_ = o[13], I = o[14]);
|
|
44
|
+
const w = I === void 0 ? "Close toast" : I, T = d === "success", k = d === "warning", y = d === "info";
|
|
45
|
+
let N;
|
|
46
|
+
o[15] !== e || o[16] !== T || o[17] !== k || o[18] !== y ? (N = W(s.root, e, {
|
|
47
|
+
[s.rootSuccess]: T,
|
|
48
|
+
[s.rootWarning]: k,
|
|
49
|
+
[s.rootInfo]: y
|
|
50
|
+
}), o[15] = e, o[16] = T, o[17] = k, o[18] = y, o[19] = N) : N = o[19];
|
|
51
|
+
const B = N;
|
|
52
|
+
let S;
|
|
53
|
+
o[20] !== r ? (S = W(s.content, {
|
|
54
|
+
[s.contentHideIcon]: r
|
|
55
|
+
}), o[20] = r, o[21] = S) : S = o[21];
|
|
56
|
+
const H = S;
|
|
57
|
+
let f;
|
|
58
|
+
o[22] !== r || o[23] !== d ? (f = !r && /* @__PURE__ */ D(O, { name: K[d], className: s.icon, "aria-hidden": "true" }), o[22] = r, o[23] = d, o[24] = f) : f = o[24];
|
|
59
|
+
let g;
|
|
60
|
+
o[25] !== t ? (g = /* @__PURE__ */ D("div", { className: s.message, children: t }), o[25] = t, o[26] = g) : g = o[26];
|
|
61
|
+
let p;
|
|
62
|
+
o[27] !== w || o[28] !== c || o[29] !== _ ? (p = /* @__PURE__ */ D(M, { ..._, hideLabel: !0, iconName: "cross", size: "small", variant: "ghost", onClick: c, type: "button", children: w }), o[27] = w, o[28] = c, o[29] = _, o[30] = p) : p = o[30];
|
|
63
|
+
let u;
|
|
64
|
+
o[31] !== H || o[32] !== f || o[33] !== g || o[34] !== p ? (u = /* @__PURE__ */ j("div", { className: H, children: [
|
|
65
|
+
f,
|
|
66
|
+
g,
|
|
67
|
+
p
|
|
68
|
+
] }), o[31] = H, o[32] = f, o[33] = g, o[34] = p, o[35] = u) : u = o[35];
|
|
69
|
+
let C;
|
|
70
|
+
return o[36] !== t || o[37] !== l || o[38] !== a || o[39] !== x || o[40] !== i || o[41] !== B || o[42] !== u ? (C = /* @__PURE__ */ D("aside", { className: B, ref: x, popover: "manual", "data-ds-toast": !0, onMouseEnter: l, onMouseLeave: a, "aria-label": t, ...i, children: u }), o[36] = t, o[37] = l, o[38] = a, o[39] = x, o[40] = i, o[41] = B, o[42] = u, o[43] = C) : C = o[43], C;
|
|
71
|
+
});
|
|
72
|
+
Q.displayName = "DSToast";
|
|
73
|
+
export {
|
|
74
|
+
Q as D,
|
|
75
|
+
s
|
|
76
|
+
};
|