@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,147 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs as b, jsx as a } from "react/jsx-runtime";
|
|
3
|
-
import { c as o } from "./index.DQOqod3i.js";
|
|
4
|
-
import { forwardRef as X, useRef as Y, useState as $, useEffect as z } from "react";
|
|
5
|
-
import { u as A } from "./useBreakpoint.1txsny17.js";
|
|
6
|
-
import "./index.cKLI89Eg.js";
|
|
7
|
-
import { Asterisk as G } from "../asterisk.Dwtdwpkq.js";
|
|
8
|
-
import { D as ee } from "./Icon.B0WqYErA.js";
|
|
9
|
-
import { D as le } from "./Popover.Cyf3CbLl.js";
|
|
10
|
-
import { D as se } from "./SystemFeedback.Dq3ZphgG.js";
|
|
11
|
-
import { g as n, r as te } from "./helpers.CexwVao7.js";
|
|
12
|
-
import '../assets/Select.BZYb_HAG.css';const ae = "ds-select_root_1p3qq_1", re = "ds-select_hint_1p3qq_1", ce = "ds-select_label-wrapper_1p3qq_1", oe = "ds-select_label_1p3qq_1", ne = "ds-select_label--disabled_1p3qq_123", ie = "ds-select_label-wrapper--hidden_1p3qq_135", de = "ds-select_feedback_1p3qq_163", pe = "ds-select_select-wrapper_1p3qq_167", he = "ds-select_select_1p3qq_167", me = "ds-select_select--small_1p3qq_181", be = "ds-select_select--invalid_1p3qq_293", _e = "ds-select_select--placeholder_1p3qq_401", fe = "ds-select_chevron_1p3qq_451", Se = "ds-select_chevron--small_1p3qq_455", ue = "ds-select_chevron--disabled_1p3qq_458", e = {
|
|
13
|
-
root: ae,
|
|
14
|
-
hint: re,
|
|
15
|
-
labelWrapper: ce,
|
|
16
|
-
label: oe,
|
|
17
|
-
labelDisabled: ne,
|
|
18
|
-
labelWrapperHidden: ie,
|
|
19
|
-
feedback: de,
|
|
20
|
-
selectWrapper: pe,
|
|
21
|
-
select: he,
|
|
22
|
-
selectSmall: me,
|
|
23
|
-
selectInvalid: be,
|
|
24
|
-
selectPlaceholder: _e,
|
|
25
|
-
chevron: fe,
|
|
26
|
-
chevronSmall: Se,
|
|
27
|
-
chevronDisabled: ue
|
|
28
|
-
}, Ae = ["medium", "small"], qe = ({
|
|
29
|
-
id: l,
|
|
30
|
-
label: c,
|
|
31
|
-
options: r,
|
|
32
|
-
hideLabel: _,
|
|
33
|
-
popoverContent: i
|
|
34
|
-
}) => {
|
|
35
|
-
if (!l)
|
|
36
|
-
throw new Error(n("DSSelect", 'A unique "id" prop is required. Please add a unique "id" prop to the DSSelect component.'));
|
|
37
|
-
if (!c)
|
|
38
|
-
throw new Error(n("DSSelect", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSSelect component. If you don't want to display a label, set hideLabel={true}.`));
|
|
39
|
-
if (Array.isArray(r)) {
|
|
40
|
-
if (r.length === 0)
|
|
41
|
-
throw new Error(n("DSSelect", "The options array must not be empty."));
|
|
42
|
-
} else throw new Error(n("DSSelect", te("options", "DSSelect")));
|
|
43
|
-
_ && i && console.warn(n("DSSelect", "Using a popover when hideLabel is set to true is not supported."));
|
|
44
|
-
}, ve = (l, c, r) => l === "" || c !== void 0 && c !== "" ? !1 : !(r !== void 0 && r !== ""), De = X(({
|
|
45
|
-
id: l,
|
|
46
|
-
label: c,
|
|
47
|
-
options: r,
|
|
48
|
-
className: _,
|
|
49
|
-
defaultValue: i,
|
|
50
|
-
disabled: f = !1,
|
|
51
|
-
hideLabel: D = !1,
|
|
52
|
-
hint: S,
|
|
53
|
-
invalid: d = !1,
|
|
54
|
-
popoverContent: u,
|
|
55
|
-
popoverInfoButtonProps: L,
|
|
56
|
-
placeholder: q = "Select",
|
|
57
|
-
required: w = !1,
|
|
58
|
-
size: y = "medium",
|
|
59
|
-
systemFeedback: v,
|
|
60
|
-
value: p,
|
|
61
|
-
onChange: g,
|
|
62
|
-
...B
|
|
63
|
-
}, h) => {
|
|
64
|
-
process.env.NODE_ENV !== "production" && qe({
|
|
65
|
-
id: l,
|
|
66
|
-
label: c,
|
|
67
|
-
options: r,
|
|
68
|
-
hideLabel: A(D),
|
|
69
|
-
popoverContent: u
|
|
70
|
-
});
|
|
71
|
-
const C = Y(null), [H, N] = $(p), [R, j] = $(ve(q, i, p));
|
|
72
|
-
z(() => {
|
|
73
|
-
N(p);
|
|
74
|
-
}, [p]);
|
|
75
|
-
const x = (s) => {
|
|
76
|
-
C.current = s, typeof h == "function" ? h(s) : h && (h.current = s);
|
|
77
|
-
}, P = A(D), I = `${l}-label`, E = `${l}-feedback`, W = `${l}-hint`, V = S ? ` ${W}` : "", M = [d && v && E].filter(Boolean).join(" ") || void 0, T = (s) => [q && /* @__PURE__ */ a("option", { value: "", children: q }, `${l}-hidden-option-disabled-placeholder`), ...s.map((t) => {
|
|
78
|
-
if ("options" in t) {
|
|
79
|
-
const {
|
|
80
|
-
label: m,
|
|
81
|
-
options: Q
|
|
82
|
-
} = t;
|
|
83
|
-
return /* @__PURE__ */ a("optgroup", { label: m, children: Q.map(k) }, m);
|
|
84
|
-
} else
|
|
85
|
-
return k(t);
|
|
86
|
-
})], k = ({
|
|
87
|
-
label: s,
|
|
88
|
-
value: t,
|
|
89
|
-
isDisabled: m
|
|
90
|
-
}) => /* @__PURE__ */ a("option", { value: t, disabled: m, children: s }, t), F = o(e.root, _), O = o(e.select, {
|
|
91
|
-
[e.selectSmall]: y === "small",
|
|
92
|
-
[e.selectInvalid]: d,
|
|
93
|
-
[e.selectPlaceholder]: R
|
|
94
|
-
}), U = o(e.label, {
|
|
95
|
-
[e.labelDisabled]: f
|
|
96
|
-
}), Z = o(e.labelWrapper, {
|
|
97
|
-
// hide label only visually to keep them available for assistive technologies
|
|
98
|
-
[e.labelWrapperHidden]: P
|
|
99
|
-
}), J = o(e.chevron, {
|
|
100
|
-
[e.chevronSmall]: y === "small",
|
|
101
|
-
[e.chevronDisabled]: f
|
|
102
|
-
}), K = (s) => {
|
|
103
|
-
const {
|
|
104
|
-
value: t
|
|
105
|
-
} = s.target;
|
|
106
|
-
j(t === ""), N(t), g && g(s);
|
|
107
|
-
};
|
|
108
|
-
return /* @__PURE__ */ b("div", { className: F, children: [
|
|
109
|
-
/* @__PURE__ */ b("div", { className: Z, children: [
|
|
110
|
-
/* @__PURE__ */ b("label", { className: U, id: I, htmlFor: l, children: [
|
|
111
|
-
c,
|
|
112
|
-
w && /* @__PURE__ */ a(G, {})
|
|
113
|
-
] }),
|
|
114
|
-
u && !P && /* @__PURE__ */ a(le, { placement: "top", defaultAnchorButtonProps: L, children: u })
|
|
115
|
-
] }),
|
|
116
|
-
S && /* @__PURE__ */ a("div", { className: e.hint, id: W, children: S }),
|
|
117
|
-
/* @__PURE__ */ b("div", { className: e.selectWrapper, children: [
|
|
118
|
-
/* @__PURE__ */ a(
|
|
119
|
-
"select",
|
|
120
|
-
{
|
|
121
|
-
...B,
|
|
122
|
-
id: l,
|
|
123
|
-
ref: x,
|
|
124
|
-
className: O,
|
|
125
|
-
"aria-labelledby": `${I}${V}`,
|
|
126
|
-
"aria-describedby": M,
|
|
127
|
-
"aria-invalid": d,
|
|
128
|
-
defaultValue: i,
|
|
129
|
-
value: H,
|
|
130
|
-
disabled: f,
|
|
131
|
-
required: w,
|
|
132
|
-
onChange: K,
|
|
133
|
-
children: T(r)
|
|
134
|
-
}
|
|
135
|
-
),
|
|
136
|
-
/* @__PURE__ */ a(ee, { name: "chevron-down", className: J, "aria-hidden": "true" })
|
|
137
|
-
] }),
|
|
138
|
-
d && v && /* @__PURE__ */ a(se, { className: e.feedback, message: v, variant: "error", id: E })
|
|
139
|
-
] });
|
|
140
|
-
});
|
|
141
|
-
De.displayName = "DSSelect";
|
|
142
|
-
export {
|
|
143
|
-
De as D,
|
|
144
|
-
Ae as S,
|
|
145
|
-
ve as g,
|
|
146
|
-
qe as v
|
|
147
|
-
};
|
|
@@ -1,309 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as f, jsxs as oe } from "react/jsx-runtime";
|
|
3
|
-
import { d as ft } from "./index.cKLI89Eg.js";
|
|
4
|
-
import { c as v } from "./index.DQOqod3i.js";
|
|
5
|
-
import { forwardRef as _t, useState as lt, useRef as ht } from "react";
|
|
6
|
-
import { u as vt } from "./useBreakpoint.1txsny17.js";
|
|
7
|
-
import { DSInput as Tt } from "../input.DNdSFW5k.js";
|
|
8
|
-
import { D as xt } from "./Popover.Cyf3CbLl.js";
|
|
9
|
-
import { g as st } from "./helpers.CexwVao7.js";
|
|
10
|
-
import '../assets/Slider.vnSU0ya0.css';const gt = "ds-slider_root_3zq13_1", kt = "ds-slider_hint_3zq13_4", Nt = "ds-slider_label-wrapper_3zq13_4", St = "ds-slider_label-hint-input-wrapper_3zq13_7", yt = "ds-slider_number-input_3zq13_10", Dt = "ds-slider_label-wrapper--hidden_3zq13_20", It = "ds-slider_label_3zq13_4", qt = "ds-slider_label--disabled_3zq13_55", zt = "ds-slider_number-input--small_3zq13_84", Lt = "ds-slider_min-max-label-wrapper_3zq13_89", Mt = "ds-slider_min-max-label-wrapper--disabled_3zq13_103", Wt = "ds-slider_min-label_3zq13_108", wt = "ds-slider_max-label_3zq13_112", Vt = "ds-slider_slider-wrapper_3zq13_116", Ct = "ds-slider_slider_3zq13_116", $t = "ds-slider_value-tooltip_3zq13_135", Pt = "ds-slider_proxy-thumb_3zq13_139", At = "ds-slider_proxy-thumb--disabled_3zq13_217", Et = "ds-slider_custom-track_3zq13_246", Rt = "ds-slider_custom-track--progress_3zq13_251", Bt = "ds-slider_custom-track--runnable_3zq13_263", Ft = "ds-slider_custom-track--disabled_3zq13_277", Ht = "ds-slider_tick-wrapper_3zq13_297", Ot = "ds-slider_tick_3zq13_297", Kt = "ds-slider_value-tooltip--visible_3zq13_356", jt = "ds-slider_value-tooltip--disabled_3zq13_359", s = {
|
|
11
|
-
root: gt,
|
|
12
|
-
hint: kt,
|
|
13
|
-
labelWrapper: Nt,
|
|
14
|
-
labelHintInputWrapper: St,
|
|
15
|
-
numberInput: yt,
|
|
16
|
-
labelWrapperHidden: Dt,
|
|
17
|
-
label: It,
|
|
18
|
-
labelDisabled: qt,
|
|
19
|
-
numberInputSmall: zt,
|
|
20
|
-
minMaxLabelWrapper: Lt,
|
|
21
|
-
minMaxLabelWrapperDisabled: Mt,
|
|
22
|
-
minLabel: Wt,
|
|
23
|
-
maxLabel: wt,
|
|
24
|
-
sliderWrapper: Vt,
|
|
25
|
-
slider: Ct,
|
|
26
|
-
valueTooltip: $t,
|
|
27
|
-
proxyThumb: Pt,
|
|
28
|
-
proxyThumbDisabled: At,
|
|
29
|
-
customTrack: Et,
|
|
30
|
-
customTrackProgress: Rt,
|
|
31
|
-
customTrackRunnable: Bt,
|
|
32
|
-
customTrackDisabled: Ft,
|
|
33
|
-
tickWrapper: Ht,
|
|
34
|
-
tick: Ot,
|
|
35
|
-
valueTooltipVisible: Kt,
|
|
36
|
-
valueTooltipDisabled: jt
|
|
37
|
-
}, Ut = 11, at = 4, it = (u) => u.toString().length, Gt = (u, r, e) => {
|
|
38
|
-
if (r === 0)
|
|
39
|
-
return !0;
|
|
40
|
-
const m = 1e-10, o = (u - e) / r;
|
|
41
|
-
return Math.abs(Math.round(o) - o) < m;
|
|
42
|
-
}, Xt = (u, r, e, m) => {
|
|
43
|
-
const o = parseFloat(r), n = e, c = Math.round((u - n) / o);
|
|
44
|
-
let d = n + c * o;
|
|
45
|
-
d = Math.min(Math.max(d, e), m);
|
|
46
|
-
const x = o.toString().split(".")[1]?.length || 0;
|
|
47
|
-
return parseFloat(d.toFixed(x));
|
|
48
|
-
}, Jt = (u, r, e) => {
|
|
49
|
-
const m = (u - r) / (e - r) * 100, o = `calc(-0.24 * ${m}px + 10px)`;
|
|
50
|
-
return `calc(${m}% + ${o})`;
|
|
51
|
-
}, Qt = ({
|
|
52
|
-
id: u,
|
|
53
|
-
label: r
|
|
54
|
-
}) => {
|
|
55
|
-
if (!u)
|
|
56
|
-
throw new Error(st("DSSlider", 'A unique "id" prop is required. Please add a unique "id" prop to the DSSlider component.'));
|
|
57
|
-
if (!r)
|
|
58
|
-
throw new Error(st("DSSlider", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSSlider component. If you don't want to display a label, set hideLabel={true}.`));
|
|
59
|
-
}, Yt = _t((u, r) => {
|
|
60
|
-
const e = ft.c(167);
|
|
61
|
-
let m, o, n, c, d, x, b, g, D, I, Y, Z, ee, te, le, se, ae, k;
|
|
62
|
-
e[0] !== u ? ({
|
|
63
|
-
id: c,
|
|
64
|
-
label: d,
|
|
65
|
-
className: m,
|
|
66
|
-
defaultValue: o,
|
|
67
|
-
disabled: Y,
|
|
68
|
-
hideLabel: Z,
|
|
69
|
-
hideNumberInput: ee,
|
|
70
|
-
hint: n,
|
|
71
|
-
isTooltipAlwaysVisible: te,
|
|
72
|
-
max: le,
|
|
73
|
-
min: se,
|
|
74
|
-
numberInputProps: x,
|
|
75
|
-
popoverContent: g,
|
|
76
|
-
popoverInfoButtonProps: D,
|
|
77
|
-
step: ae,
|
|
78
|
-
value: k,
|
|
79
|
-
onChange: b,
|
|
80
|
-
...I
|
|
81
|
-
} = u, e[0] = u, e[1] = m, e[2] = o, e[3] = n, e[4] = c, e[5] = d, e[6] = x, e[7] = b, e[8] = g, e[9] = D, e[10] = I, e[11] = Y, e[12] = Z, e[13] = ee, e[14] = te, e[15] = le, e[16] = se, e[17] = ae, e[18] = k) : (m = e[1], o = e[2], n = e[3], c = e[4], d = e[5], x = e[6], b = e[7], g = e[8], D = e[9], I = e[10], Y = e[11], Z = e[12], ee = e[13], te = e[14], le = e[15], se = e[16], ae = e[17], k = e[18]);
|
|
82
|
-
const a = Y === void 0 ? !1 : Y, rt = Z === void 0 ? !1 : Z, q = ee === void 0 ? !1 : ee, We = te === void 0 ? !1 : te, ot = le === void 0 ? 100 : le, nt = se === void 0 ? 0 : se, ie = ae === void 0 ? 1 : ae;
|
|
83
|
-
process.env.NODE_ENV !== "production" && Qt({
|
|
84
|
-
id: c,
|
|
85
|
-
label: d
|
|
86
|
-
});
|
|
87
|
-
const i = Number(ot), t = Number(nt), p = Number(ie), z = vt(rt), ne = `${c}-label`, we = `${c}-number-input`, N = `${c}-hint`, ct = n ? ` ${N}` : "";
|
|
88
|
-
let ce;
|
|
89
|
-
e[19] !== o || e[20] !== t || e[21] !== k ? (ce = k || o || t.toString() || "0", e[19] = o, e[20] = t, e[21] = k, e[22] = ce) : ce = e[22];
|
|
90
|
-
const [L, de] = lt(ce), [T, pe] = lt(k || o || t || 0), dt = ht(null);
|
|
91
|
-
let ue;
|
|
92
|
-
e[23] !== r ? (ue = (l) => {
|
|
93
|
-
dt.current = l, typeof r == "function" ? r(l) : r && (r.current = l);
|
|
94
|
-
}, e[23] = r, e[24] = ue) : ue = e[24];
|
|
95
|
-
const Ve = ue;
|
|
96
|
-
let me;
|
|
97
|
-
e[25] !== x ? (me = x || {}, e[25] = x, e[26] = me) : me = e[26];
|
|
98
|
-
const {
|
|
99
|
-
size: tt,
|
|
100
|
-
suffix: Ce
|
|
101
|
-
} = me, be = tt === void 0 ? "medium" : tt;
|
|
102
|
-
let fe;
|
|
103
|
-
e[27] !== b ? (fe = (l) => {
|
|
104
|
-
const _ = parseFloat(l.target.value);
|
|
105
|
-
pe(_), de(l.target.value), b && b(l);
|
|
106
|
-
}, e[27] = b, e[28] = fe) : fe = e[28];
|
|
107
|
-
const $e = fe;
|
|
108
|
-
let _e;
|
|
109
|
-
e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_e = (l) => {
|
|
110
|
-
const _ = l.target.value;
|
|
111
|
-
if (de(_), /^-?\d+(\.\d+)?$/.test(_)) {
|
|
112
|
-
const h = parseFloat(_);
|
|
113
|
-
Number.isNaN(h) || pe(h);
|
|
114
|
-
}
|
|
115
|
-
}, e[29] = _e) : _e = e[29];
|
|
116
|
-
const pt = _e;
|
|
117
|
-
let S;
|
|
118
|
-
if (e[30] !== L || e[31] !== b || e[32] !== i || e[33] !== t || e[34] !== ie) {
|
|
119
|
-
S = (_) => {
|
|
120
|
-
const re = parseFloat(L);
|
|
121
|
-
if (Number.isNaN(re)) {
|
|
122
|
-
l(_);
|
|
123
|
-
return;
|
|
124
|
-
}
|
|
125
|
-
let h = Math.min(Math.max(re, t), i);
|
|
126
|
-
Gt(h, parseFloat(ie), t) || (h = Xt(h, ie, t, i)), de(h.toString()), pe(h), b && b(_);
|
|
127
|
-
};
|
|
128
|
-
const l = (_) => {
|
|
129
|
-
de(t.toString()), pe(t), b && b(_);
|
|
130
|
-
};
|
|
131
|
-
e[30] = L, e[31] = b, e[32] = i, e[33] = t, e[34] = ie, e[35] = S;
|
|
132
|
-
} else
|
|
133
|
-
S = e[35];
|
|
134
|
-
const M = (p === 0 ? !1 : (i - t) / p <= Ut) && (i - t) / p || 0;
|
|
135
|
-
let he;
|
|
136
|
-
if (e[36] !== i || e[37] !== t || e[38] !== p || e[39] !== M) {
|
|
137
|
-
let l;
|
|
138
|
-
e[41] !== i || e[42] !== t || e[43] !== p ? (l = (_, re) => {
|
|
139
|
-
const h = t + re * p, bt = Jt(h, t, i);
|
|
140
|
-
return /* @__PURE__ */ f("span", { className: s.tick, style: {
|
|
141
|
-
left: bt
|
|
142
|
-
} }, h);
|
|
143
|
-
}, e[41] = i, e[42] = t, e[43] = p, e[44] = l) : l = e[44], he = Array.from({
|
|
144
|
-
length: M + 1
|
|
145
|
-
}, l), e[36] = i, e[37] = t, e[38] = p, e[39] = M, e[40] = he;
|
|
146
|
-
} else
|
|
147
|
-
he = e[40];
|
|
148
|
-
const Pe = he;
|
|
149
|
-
let ve;
|
|
150
|
-
e[45] !== i || e[46] !== t || e[47] !== T ? (ve = () => {
|
|
151
|
-
if (t === i)
|
|
152
|
-
throw new Error("Min and max values cannot be the same.");
|
|
153
|
-
const l = (T - t) / (i - t) * 100;
|
|
154
|
-
return Math.max(0, Math.min(l, 100));
|
|
155
|
-
}, e[45] = i, e[46] = t, e[47] = T, e[48] = ve) : ve = e[48];
|
|
156
|
-
const y = ve;
|
|
157
|
-
let Te;
|
|
158
|
-
e[49] !== y ? (Te = () => {
|
|
159
|
-
const l = y();
|
|
160
|
-
return l < 50 ? `calc(${l}% + 4px)` : `calc(${l}% - 4px)`;
|
|
161
|
-
}, e[49] = y, e[50] = Te) : Te = e[50];
|
|
162
|
-
const ut = Te;
|
|
163
|
-
let xe;
|
|
164
|
-
e[51] !== y ? (xe = () => {
|
|
165
|
-
const l = 100 - y();
|
|
166
|
-
return l < 50 ? `calc(${l}% + 4px)` : `calc(${l}% - 4px)`;
|
|
167
|
-
}, e[51] = y, e[52] = xe) : xe = e[52];
|
|
168
|
-
const mt = xe;
|
|
169
|
-
let ge;
|
|
170
|
-
e[53] !== m ? (ge = v(s.slider, m), e[53] = m, e[54] = ge) : ge = e[54];
|
|
171
|
-
const Ae = ge;
|
|
172
|
-
let ke;
|
|
173
|
-
e[55] !== a ? (ke = v(s.label, {
|
|
174
|
-
[s.labelDisabled]: a
|
|
175
|
-
}), e[55] = a, e[56] = ke) : ke = e[56];
|
|
176
|
-
const Ee = ke;
|
|
177
|
-
let Ne;
|
|
178
|
-
e[57] !== z ? (Ne = v(s.labelWrapper, {
|
|
179
|
-
[s.labelWrapperHidden]: z
|
|
180
|
-
}), e[57] = z, e[58] = Ne) : Ne = e[58];
|
|
181
|
-
const Re = Ne, Be = be === "small";
|
|
182
|
-
let Se;
|
|
183
|
-
e[59] !== Be ? (Se = v(s.numberInput, {
|
|
184
|
-
[s.numberInputSmall]: Be
|
|
185
|
-
}), e[59] = Be, e[60] = Se) : Se = e[60];
|
|
186
|
-
const Fe = Se;
|
|
187
|
-
let ye;
|
|
188
|
-
e[61] !== a ? (ye = v(s.minMaxLabelWrapper, {
|
|
189
|
-
[s.minMaxLabelWrapperDisabled]: a
|
|
190
|
-
}), e[61] = a, e[62] = ye) : ye = e[62];
|
|
191
|
-
const He = ye;
|
|
192
|
-
let De;
|
|
193
|
-
e[63] !== a ? (De = v(s.customTrack, s.customTrackProgress, {
|
|
194
|
-
[s.customTrackDisabled]: a
|
|
195
|
-
}), e[63] = a, e[64] = De) : De = e[64];
|
|
196
|
-
const Oe = De;
|
|
197
|
-
let Ie;
|
|
198
|
-
e[65] !== a ? (Ie = v(s.customTrack, s.customTrackRunnable, {
|
|
199
|
-
[s.customTrackDisabled]: a
|
|
200
|
-
}), e[65] = a, e[66] = Ie) : Ie = e[66];
|
|
201
|
-
const Ke = Ie;
|
|
202
|
-
let qe;
|
|
203
|
-
e[67] !== a ? (qe = v(s.proxyThumb, {
|
|
204
|
-
[s.proxyThumbDisabled]: a
|
|
205
|
-
}), e[67] = a, e[68] = qe) : qe = e[68];
|
|
206
|
-
const je = qe;
|
|
207
|
-
let ze;
|
|
208
|
-
e[69] !== a || e[70] !== We ? (ze = v(s.valueTooltip, {
|
|
209
|
-
[s.valueTooltipVisible]: We,
|
|
210
|
-
[s.valueTooltipDisabled]: a
|
|
211
|
-
}), e[69] = a, e[70] = We, e[71] = ze) : ze = e[71];
|
|
212
|
-
const Ue = ze;
|
|
213
|
-
let W;
|
|
214
|
-
e[72] !== c || e[73] !== d || e[74] !== Ee || e[75] !== ne ? (W = /* @__PURE__ */ f("label", { className: Ee, htmlFor: c, id: ne, children: d }), e[72] = c, e[73] = d, e[74] = Ee, e[75] = ne, e[76] = W) : W = e[76];
|
|
215
|
-
let w;
|
|
216
|
-
e[77] !== z || e[78] !== g || e[79] !== D ? (w = g && !z && /* @__PURE__ */ f(xt, { placement: "top", defaultAnchorButtonProps: D, children: g }), e[77] = z, e[78] = g, e[79] = D, e[80] = w) : w = e[80];
|
|
217
|
-
let V;
|
|
218
|
-
e[81] !== Re || e[82] !== W || e[83] !== w ? (V = /* @__PURE__ */ oe("div", { className: Re, children: [
|
|
219
|
-
W,
|
|
220
|
-
w
|
|
221
|
-
] }), e[81] = Re, e[82] = W, e[83] = w, e[84] = V) : V = e[84];
|
|
222
|
-
let C;
|
|
223
|
-
e[85] !== n || e[86] !== N ? (C = n && /* @__PURE__ */ f("div", { className: s.hint, id: N, children: n }), e[85] = n, e[86] = N, e[87] = C) : C = e[87];
|
|
224
|
-
let $;
|
|
225
|
-
e[88] !== a || e[89] !== S || e[90] !== q || e[91] !== n || e[92] !== N || e[93] !== we || e[94] !== L || e[95] !== d || e[96] !== Fe || e[97] !== be || e[98] !== Ce || e[99] !== i || e[100] !== t || e[101] !== p ? ($ = !q && /* @__PURE__ */ f(Tt, { id: we, aria: {
|
|
226
|
-
"aria-labelledby": n ? N : void 0
|
|
227
|
-
}, className: Fe, type: "number", min: t, max: i, step: p, inputMode: "decimal", autoComplete: "off", disabled: a, hideLabel: !0, value: L, onChange: pt, onBlur: S, onKeyDown: (l) => {
|
|
228
|
-
l.key === "Enter" && (l.preventDefault(), S(l));
|
|
229
|
-
}, label: d, size: be, suffix: Ce }), e[88] = a, e[89] = S, e[90] = q, e[91] = n, e[92] = N, e[93] = we, e[94] = L, e[95] = d, e[96] = Fe, e[97] = be, e[98] = Ce, e[99] = i, e[100] = t, e[101] = p, e[102] = $) : $ = e[102];
|
|
230
|
-
let P;
|
|
231
|
-
e[103] !== V || e[104] !== C || e[105] !== $ ? (P = /* @__PURE__ */ oe("div", { className: s.labelHintInputWrapper, children: [
|
|
232
|
-
V,
|
|
233
|
-
C,
|
|
234
|
-
$
|
|
235
|
-
] }), e[103] = V, e[104] = C, e[105] = $, e[106] = P) : P = e[106];
|
|
236
|
-
const Ge = it(t) < at;
|
|
237
|
-
let A;
|
|
238
|
-
e[107] !== Ge ? (A = v({
|
|
239
|
-
[s.minLabel]: Ge
|
|
240
|
-
}), e[107] = Ge, e[108] = A) : A = e[108];
|
|
241
|
-
let E;
|
|
242
|
-
e[109] !== t || e[110] !== A ? (E = /* @__PURE__ */ f("div", { className: A, children: t }), e[109] = t, e[110] = A, e[111] = E) : E = e[111];
|
|
243
|
-
const Xe = it(i) < at;
|
|
244
|
-
let R;
|
|
245
|
-
e[112] !== Xe ? (R = v({
|
|
246
|
-
[s.maxLabel]: Xe
|
|
247
|
-
}), e[112] = Xe, e[113] = R) : R = e[113];
|
|
248
|
-
let B;
|
|
249
|
-
e[114] !== i || e[115] !== R ? (B = /* @__PURE__ */ f("div", { className: R, children: i }), e[114] = i, e[115] = R, e[116] = B) : B = e[116];
|
|
250
|
-
let F;
|
|
251
|
-
e[117] !== He || e[118] !== E || e[119] !== B ? (F = /* @__PURE__ */ oe("div", { className: He, children: [
|
|
252
|
-
E,
|
|
253
|
-
B
|
|
254
|
-
] }), e[117] = He, e[118] = E, e[119] = B, e[120] = F) : F = e[120];
|
|
255
|
-
const Je = `${y()}`;
|
|
256
|
-
let Le;
|
|
257
|
-
e[121] !== Je ? (Le = {
|
|
258
|
-
"--ds-input-slider-thumb-position": Je
|
|
259
|
-
}, e[121] = Je, e[122] = Le) : Le = e[122];
|
|
260
|
-
const Qe = Le, Ye = ut();
|
|
261
|
-
let H;
|
|
262
|
-
e[123] !== Ye ? (H = {
|
|
263
|
-
width: Ye
|
|
264
|
-
}, e[123] = Ye, e[124] = H) : H = e[124];
|
|
265
|
-
let O;
|
|
266
|
-
e[125] !== Oe || e[126] !== H ? (O = /* @__PURE__ */ f("div", { className: Oe, style: H }), e[125] = Oe, e[126] = H, e[127] = O) : O = e[127];
|
|
267
|
-
const Ze = mt();
|
|
268
|
-
let K;
|
|
269
|
-
e[128] !== Ze ? (K = {
|
|
270
|
-
width: Ze
|
|
271
|
-
}, e[128] = Ze, e[129] = K) : K = e[129];
|
|
272
|
-
let j;
|
|
273
|
-
e[130] !== Ke || e[131] !== K ? (j = /* @__PURE__ */ f("div", { className: Ke, style: K }), e[130] = Ke, e[131] = K, e[132] = j) : j = e[132];
|
|
274
|
-
const et = `${ne}${ct}`;
|
|
275
|
-
let U;
|
|
276
|
-
e[133] !== a || e[134] !== Ve || e[135] !== $e || e[136] !== c || e[137] !== i || e[138] !== t || e[139] !== p || e[140] !== I || e[141] !== Ae || e[142] !== T || e[143] !== et ? (U = /* @__PURE__ */ f("input", { ...I, id: c, type: "range", ref: Ve, className: Ae, min: t, max: i, step: p, value: T, disabled: a, "aria-labelledby": et, onChange: $e }), e[133] = a, e[134] = Ve, e[135] = $e, e[136] = c, e[137] = i, e[138] = t, e[139] = p, e[140] = I, e[141] = Ae, e[142] = T, e[143] = et, e[144] = U) : U = e[144];
|
|
277
|
-
let G;
|
|
278
|
-
e[145] !== M || e[146] !== Pe ? (G = M > 0 && /* @__PURE__ */ f("div", { className: s.tickWrapper, children: Pe }), e[145] = M, e[146] = Pe, e[147] = G) : G = e[147];
|
|
279
|
-
let X;
|
|
280
|
-
e[148] !== je ? (X = /* @__PURE__ */ f("div", { className: je }), e[148] = je, e[149] = X) : X = e[149];
|
|
281
|
-
let J;
|
|
282
|
-
e[150] !== a || e[151] !== q || e[152] !== T || e[153] !== Ue ? (J = q && /* @__PURE__ */ f("div", { className: Ue, "aria-disabled": a, children: T }), e[150] = a, e[151] = q, e[152] = T, e[153] = Ue, e[154] = J) : J = e[154];
|
|
283
|
-
let Q;
|
|
284
|
-
e[155] !== Qe || e[156] !== O || e[157] !== j || e[158] !== U || e[159] !== G || e[160] !== X || e[161] !== J ? (Q = /* @__PURE__ */ oe("div", { className: s.sliderWrapper, style: Qe, children: [
|
|
285
|
-
O,
|
|
286
|
-
j,
|
|
287
|
-
U,
|
|
288
|
-
G,
|
|
289
|
-
X,
|
|
290
|
-
J
|
|
291
|
-
] }), e[155] = Qe, e[156] = O, e[157] = j, e[158] = U, e[159] = G, e[160] = X, e[161] = J, e[162] = Q) : Q = e[162];
|
|
292
|
-
let Me;
|
|
293
|
-
return e[163] !== P || e[164] !== F || e[165] !== Q ? (Me = /* @__PURE__ */ oe("div", { className: s.root, children: [
|
|
294
|
-
P,
|
|
295
|
-
F,
|
|
296
|
-
Q
|
|
297
|
-
] }), e[163] = P, e[164] = F, e[165] = Q, e[166] = Me) : Me = e[166], Me;
|
|
298
|
-
});
|
|
299
|
-
Yt.displayName = "DSSlider";
|
|
300
|
-
export {
|
|
301
|
-
Yt as D,
|
|
302
|
-
at as L,
|
|
303
|
-
Ut as M,
|
|
304
|
-
Jt as a,
|
|
305
|
-
it as g,
|
|
306
|
-
Gt as i,
|
|
307
|
-
Xt as s,
|
|
308
|
-
Qt as v
|
|
309
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs as f, jsx as S } from "react/jsx-runtime";
|
|
3
|
-
import { d as _ } from "./index.cKLI89Eg.js";
|
|
4
|
-
import { c as p } from "./index.DQOqod3i.js";
|
|
5
|
-
import "react";
|
|
6
|
-
import { D as E } from "./Icon.B0WqYErA.js";
|
|
7
|
-
import '../assets/SystemFeedback.PKzqnXUe.css';const k = "ds-system-feedback_root_1dkn4_1", x = {
|
|
8
|
-
root: k
|
|
9
|
-
}, h = ["success", "error", "warning"], D = {
|
|
10
|
-
success: "circle-check-colored",
|
|
11
|
-
error: "diamond-exclamationmark-colored",
|
|
12
|
-
warning: "triangle-exclamationmark-colored"
|
|
13
|
-
}, y = (n) => {
|
|
14
|
-
const e = _.c(16);
|
|
15
|
-
let s, t, o, r, c;
|
|
16
|
-
e[0] !== n ? ({
|
|
17
|
-
id: t,
|
|
18
|
-
message: o,
|
|
19
|
-
variant: c,
|
|
20
|
-
className: s,
|
|
21
|
-
...r
|
|
22
|
-
} = n, e[0] = n, e[1] = s, e[2] = t, e[3] = o, e[4] = r, e[5] = c) : (s = e[1], t = e[2], o = e[3], r = e[4], c = e[5]);
|
|
23
|
-
let l;
|
|
24
|
-
e[6] !== s ? (l = p(x.root, s), e[6] = s, e[7] = l) : l = e[7];
|
|
25
|
-
const m = l, d = D[c];
|
|
26
|
-
let a;
|
|
27
|
-
e[8] !== d ? (a = /* @__PURE__ */ S(E, { name: d, "aria-hidden": "true" }), e[8] = d, e[9] = a) : a = e[9];
|
|
28
|
-
let i;
|
|
29
|
-
return e[10] !== t || e[11] !== o || e[12] !== r || e[13] !== m || e[14] !== a ? (i = /* @__PURE__ */ f("div", { id: t, className: m, ...r, children: [
|
|
30
|
-
a,
|
|
31
|
-
o
|
|
32
|
-
] }), e[10] = t, e[11] = o, e[12] = r, e[13] = m, e[14] = a, e[15] = i) : i = e[15], i;
|
|
33
|
-
};
|
|
34
|
-
export {
|
|
35
|
-
y as D,
|
|
36
|
-
h as S,
|
|
37
|
-
D as a
|
|
38
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { a } from "./helpers.CexwVao7.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import "./index.cKLI89Eg.js";
|
|
5
|
-
const m = ["address", "blockquote", "cite", "div", "dd", "dfn", "dt", "figcaption", "legend", "li", "p", "span", "time"], r = ["large", "medium", "small", "x-small", "xx-small"], o = ["bold", "normal"], d = (t, s) => Array.isArray(s) ? s.some((i) => !!a(t, i)) : !!a(t, s);
|
|
6
|
-
export {
|
|
7
|
-
m as T,
|
|
8
|
-
r as a,
|
|
9
|
-
o as b,
|
|
10
|
-
d as i
|
|
11
|
-
};
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as k } from "react/jsx-runtime";
|
|
3
|
-
import { d as M } from "./index.cKLI89Eg.js";
|
|
4
|
-
import { c as X } from "./index.DQOqod3i.js";
|
|
5
|
-
import { useRef as N, useEffect as P } from "react";
|
|
6
|
-
import { g } from "./helpers.CexwVao7.js";
|
|
7
|
-
import { i as B } from "./Text.utils.D_iOyOSH.js";
|
|
8
|
-
import '../assets/TextUtility.CEBJaKBG.css';const Y = "ds-text-utility_root_1hq5u_6", $ = "ds-text-utility_root--large_1hq5u_15", z = "ds-text-utility_root--large-bold_1hq5u_26", G = "ds-text-utility_root--medium_1hq5u_37", R = "ds-text-utility_root--medium-bold_1hq5u_48", W = "ds-text-utility_root--small_1hq5u_59", j = "ds-text-utility_root--small-bold_1hq5u_70", A = "ds-text-utility_root--small-demi_1hq5u_81", C = "ds-text-utility_root--x-small-demi_1hq5u_92", H = "ds-text-utility_root--theme-dark_1hq5u_186", l = {
|
|
9
|
-
root: Y,
|
|
10
|
-
rootLarge: $,
|
|
11
|
-
rootLargeBold: z,
|
|
12
|
-
rootMedium: G,
|
|
13
|
-
rootMediumBold: R,
|
|
14
|
-
rootSmall: W,
|
|
15
|
-
rootSmallBold: j,
|
|
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: i,
|
|
21
|
-
weight: t
|
|
22
|
-
}) => {
|
|
23
|
-
t === "demi" && i !== "small" && i !== "x-small" && console.warn(g("DSTextUtility", 'Invalid prop combination: weight "demi" is only supported on sizes "small" and "x-small".')), i === "x-small" && t !== "demi" && console.warn(g("DSTextUtility", 'Invalid prop combination: size "x-small" only supports weight "demi".'));
|
|
24
|
-
}, lt = (i) => {
|
|
25
|
-
const t = M.c(29);
|
|
26
|
-
let r, a, m, n, d, c, u;
|
|
27
|
-
t[0] !== i ? ({
|
|
28
|
-
children: r,
|
|
29
|
-
className: a,
|
|
30
|
-
size: n,
|
|
31
|
-
tag: d,
|
|
32
|
-
theme: c,
|
|
33
|
-
weight: u,
|
|
34
|
-
...m
|
|
35
|
-
} = i, t[0] = i, t[1] = r, t[2] = a, t[3] = m, t[4] = n, t[5] = d, t[6] = c, t[7] = u) : (r = t[1], a = t[2], m = t[3], n = t[4], d = t[5], c = t[6], u = t[7]);
|
|
36
|
-
const o = n === void 0 ? "medium" : n, s = d === void 0 ? "p" : d, L = c === void 0 ? "light" : c, e = u === void 0 ? "normal" : u, _ = N(null);
|
|
37
|
-
let h, T;
|
|
38
|
-
t[8] !== o || t[9] !== s || t[10] !== e ? (h = () => {
|
|
39
|
-
if (process.env.NODE_ENV !== "production" && (O({
|
|
40
|
-
size: o,
|
|
41
|
-
weight: e
|
|
42
|
-
}), _.current))
|
|
43
|
-
t: switch (s) {
|
|
44
|
-
case "li": {
|
|
45
|
-
if (!B(_.current, "ul, ol"))
|
|
46
|
-
throw Error(g("DSTextUtility", `The DSTextUtility component with the tag "${s}" 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 (!B(_.current, "dl"))
|
|
52
|
-
throw Error(g("DSTextUtility", `The DSTextUtility component with the tag "${s}" is not within a description list element (dl). Please ensure it's placed correctly.`));
|
|
53
|
-
break t;
|
|
54
|
-
}
|
|
55
|
-
default:
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
}, T = [s, o, e], t[8] = o, t[9] = s, t[10] = e, t[11] = h, t[12] = T) : (h = t[11], T = t[12]), P(h, T);
|
|
59
|
-
const f = s, 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", q = o === "small" && e === "demi", U = o === "x-small" && e === "demi", v = L === "dark";
|
|
60
|
-
let p;
|
|
61
|
-
t[13] !== a || t[14] !== b || t[15] !== w || t[16] !== E || t[17] !== q || t[18] !== U || t[19] !== v || t[20] !== y || t[21] !== S || t[22] !== D ? (p = X(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]: q,
|
|
69
|
-
[l.rootXSmallDemi]: U,
|
|
70
|
-
[l.rootThemeDark]: v
|
|
71
|
-
}), t[13] = a, t[14] = b, t[15] = w, t[16] = E, t[17] = q, t[18] = U, t[19] = v, t[20] = y, t[21] = S, t[22] = D, t[23] = p) : p = t[23];
|
|
72
|
-
const I = p;
|
|
73
|
-
let x;
|
|
74
|
-
return t[24] !== f || t[25] !== r || t[26] !== m || t[27] !== I ? (x = /* @__PURE__ */ k(f, { className: I, ref: _, ...m, children: r }), t[24] = f, t[25] = r, t[26] = m, t[27] = I, t[28] = x) : x = t[28], x;
|
|
75
|
-
};
|
|
76
|
-
export {
|
|
77
|
-
lt as D,
|
|
78
|
-
tt as T,
|
|
79
|
-
ot as a,
|
|
80
|
-
et as b,
|
|
81
|
-
O as v
|
|
82
|
-
};
|