@stihl-design-system/components 1.0.0-RC.32 → 1.0.0-RC.34
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.Dmqocj97.js +12 -0
- package/actionbutton.DLQJU6AV.js +12 -0
- package/actionlink.DEBrWfN3.js +12 -0
- package/{arialiveregions.Fgcshs5k.js → arialiveregions.BUVY9NpY.js} +2 -2
- package/assets/Accordion.CzBGud45.css +1 -0
- package/assets/Button.C8sNwIeW.css +1 -0
- package/assets/Checkbox.CyOw3rXI.css +1 -0
- package/assets/CustomReactSelect.E_jJFVew.css +1 -0
- package/assets/Dialog.DJkn65Es.css +1 -0
- package/assets/Drawer.x3BCQvWE.css +1 -0
- package/assets/InputFile.BnIvK65P.css +1 -0
- package/assets/InputNumber.BoiCIR1f.css +1 -0
- package/assets/InputPassword.Dk3_vNLV.css +1 -0
- package/assets/InputSearch.C1_4cVCi.css +1 -0
- package/assets/LinkButton.B86yacK5.css +1 -0
- package/assets/{MegaMenu.DX9gChtY.css → MegaMenu.D5EtjFeL.css} +1 -1
- package/assets/Notification.CvohYEvT.css +1 -0
- package/assets/Select.COxLltX7.css +1 -0
- package/assets/Slider.DPEmJ3HD.css +1 -0
- package/assets/Stepper.tXJl15yL.css +1 -0
- package/assets/{SystemFeedback.RcrPepSZ.css → SystemFeedback.PKzqnXUe.css} +1 -1
- package/assets/Textarea.y3MW7VW0.css +1 -0
- package/assets/Toast.CGyKXb4V.css +1 -0
- package/assets/buttonround.BN3vUDc_.css +1 -0
- package/assets/input.DTu4g_iA.css +1 -0
- package/assets/step.BeLporJO.css +1 -0
- package/assets/switch.B9B-n_3y.css +1 -0
- package/{asterisk.CR60hx8S.js → asterisk.B2ih8VwF.js} +1 -1
- package/{banner.o4Etkjjo.js → banner.CI5HnDqD.js} +3 -3
- package/breadcrumb.CtwAux3P.js +11 -0
- package/button.DHuKanZP.js +13 -0
- package/{buttonround.ChKWHzsv.js → buttonround.CMlmEDaN.js} +6 -6
- package/checkbox.DwccD0Mp.js +12 -0
- package/checkboxgroup.ZiUFfCJ1.js +9 -0
- package/chip.B0s_fS8L.js +12 -0
- package/chipgroup.Dpu66bo5.js +143 -0
- package/chunks/Accordion.CYIfNOWr.js +168 -0
- package/chunks/{ActionButton.DdDesD7K.js → ActionButton.DOYsEHPr.js} +37 -37
- package/chunks/{ActionLink.DqAsPYda.js → ActionLink.DbyciN3Y.js} +36 -36
- package/chunks/{AriaLiveRegions.utils.Cb327d_2.js → AriaLiveRegions.utils.CybNIBSa.js} +2 -2
- package/chunks/{Breadcrumb.9KinNuyQ.js → Breadcrumb.BgnpTo01.js} +35 -37
- package/chunks/{Button.Cf1CKq8N.js → Button.DCZgBNmA.js} +8 -8
- package/chunks/Checkbox.BcGXAuuP.js +88 -0
- package/chunks/{CheckboxGroup.Cj68J6Ee.js → CheckboxGroup.BuFd1luB.js} +5 -5
- package/chunks/{Chip.BrbYu6i_.js → Chip.D6pubCZV.js} +6 -6
- package/chunks/{CustomReactSelect.Cqq70QC0.js → CustomReactSelect.Dg3wC_VH.js} +450 -447
- package/chunks/Dialog.DpqSVrYR.js +102 -0
- package/chunks/Drawer.DISWybOa.js +107 -0
- package/chunks/{Fieldset.D7cLR5ze.js → Fieldset.DiMtr6Vw.js} +6 -6
- package/chunks/Header.7TQL_J9t.js +370 -0
- package/chunks/{Icon.NSsVrYeq.js → Icon.CDLyB7Pv.js} +77 -79
- package/chunks/{Input.utils.Cnnzvuk4.js → Input.utils.Dkw7gRrr.js} +17 -17
- package/chunks/InputFile.C8nt9Fu8.js +218 -0
- package/chunks/InputNumber.CbH1XJfl.js +267 -0
- package/chunks/{InputPassword.Da3hEKTc.js → InputPassword.DbdjuSiJ.js} +34 -34
- package/chunks/InputSearch.joxmugiv.js +173 -0
- package/chunks/{LinkButton.59oNDwPU.js → LinkButton.BZgIGgc8.js} +7 -7
- package/chunks/MegaMenu.CQbOeaib.js +189 -0
- package/chunks/NavigationTabList.G_l0GiUa.js +67 -0
- package/chunks/{NavigationTabs.DspPFHPh.js → NavigationTabs.BwM-6CRm.js} +13 -14
- package/chunks/Notification.CrojkJ0E.js +91 -0
- package/chunks/Popover.Bb0Pjmvg.js +215 -0
- package/chunks/{RadioGroup.DeTz3c19.js → RadioGroup.CexC4v2Z.js} +5 -5
- package/chunks/Select.BEIdNMML.js +164 -0
- package/chunks/{Slider.84lkgq3W.js → Slider.CR0zYHeZ.js} +83 -84
- package/chunks/Stepper.PTQdQBYf.js +152 -0
- package/chunks/{SystemFeedback.CyGbUCzT.js → SystemFeedback.CjlARKki.js} +9 -9
- package/chunks/Tabs.DyP4whX0.js +83 -0
- package/chunks/{Text.DGWeWF1y.js → Text.DpRtTpB4.js} +3 -3
- package/chunks/Textarea.Du2RII5u.js +168 -0
- package/chunks/Toast.ug_RjGgF.js +76 -0
- package/chunks/{arrow-clockwise.BefOjGPg.js → arrow-clockwise.C4iOgjOc.js} +1 -1
- package/chunks/{arrow-counterclockwise.C7Ov32BZ.js → arrow-counterclockwise.CgQAuBUe.js} +1 -1
- package/chunks/{circle-check-colored.Bye_GwLy.js → circle-check-colored.qP2s3vjI.js} +1 -1
- package/chunks/{diamond-exclamationmark-colored.WNKYwZ8q.js → diamond-exclamationmark-colored.CzYiaTZ0.js} +1 -1
- package/chunks/feather.l1E4nFBx.js +10 -0
- package/chunks/file-type-doc.B_RSSYbu.js +10 -0
- package/chunks/floating-ui.dom.BT8pKtCQ.js +1005 -0
- package/chunks/floating-ui.react.3FjeMiuN.js +1999 -0
- package/chunks/helpers.CexwVao7.js +38 -0
- package/chunks/{index.CgTHIF3K.js → index.D-sRdssb.js} +1 -1
- package/chunks/{index.CEyLAtio.js → index.DL9mof6u.js} +2 -2
- package/chunks/{is-animation-disabled.CUl4N3LI.js → is-animation-disabled.B-V_68K-.js} +5 -5
- package/chunks/{map.CXgG1iGz.js → map.DNl7PF61.js} +1 -1
- package/chunks/moon.5yILPYXs.js +10 -0
- package/chunks/muscle.DbNjWasV.js +10 -0
- package/chunks/petrol.BGWwCsTw.js +10 -0
- package/chunks/sun.CY6ttzTL.js +10 -0
- package/chunks/{triangle-exclamationmark-colored.CbVC3Gzi.js → triangle-exclamationmark-colored.e93zvQ6Q.js} +1 -1
- package/chunks/upload.BogDfonx.js +10 -0
- package/chunks/useBreakpoint.BzR_yaIv.js +42 -0
- package/chunks/variants.-R3_RCW8.js +10 -0
- package/chunks/weight.DUPu2UT0.js +10 -0
- package/combobox.jG5GRA7C.js +65 -0
- package/components/ChipGroup/ChipGroup.utils.d.ts +1 -3
- package/components/Combobox/Combobox.utils.d.ts +3 -4
- package/components/Combobox/CustomReactSelect/CustomReactSelect.d.ts +4 -2
- package/components/{InputStepper/InputStepper.d.ts → InputNumber/InputNumber.d.ts} +4 -4
- package/components/InputNumber/InputNumber.utils.d.ts +13 -0
- package/components/Scroller/Scroller.d.ts +6 -2
- package/components/Stepper/Step.d.ts +33 -0
- package/components/Stepper/Step.utils.d.ts +5 -0
- package/components/Stepper/Stepper.d.ts +56 -0
- package/components/Stepper/Stepper.test.d.ts +1 -0
- package/components/Stepper/Stepper.utils.d.ts +30 -0
- package/components/Stepper/Stepper.utils.test.d.ts +1 -0
- package/customreactselect.BFN8cYJi.js +14 -0
- package/dialog.CzM_Cxp0.js +9 -0
- package/drawer._A9MQ8Cj.js +9 -0
- package/fieldset.CId-NtI5.js +11 -0
- package/{filelist.BiKMKCyg.js → filelist.DgVuWpR3.js} +23 -24
- package/{flag.72PONA83.js → flag.CE32qHPa.js} +3 -3
- package/{floatingactionbutton.B2YChsNU.js → floatingactionbutton.Bsnncudt.js} +5 -5
- package/header.CelAkqtp.js +12 -0
- package/{heading.BXFBZhKv.js → heading.DHLpT4dc.js} +2 -2
- package/icon.vzkPwgjZ.js +9 -0
- package/index.d.ts +4 -2
- package/index.es.js +218 -206
- package/input.DuEbg7d6.js +206 -0
- package/inputfile.BjgJGefV.js +17 -0
- package/inputnumber.BcrxBVv0.js +16 -0
- package/inputnumber.d.ts +2 -0
- package/inputpassword.CddmBW-T.js +13 -0
- package/inputsearch.CFOASqrd.js +14 -0
- package/{link.DbnvsD3j.js → link.f8MMZo-w.js} +5 -5
- package/linkbutton.BYAvi-_V.js +12 -0
- package/{logo.C96KaG1P.js → logo.DprmD8HU.js} +3 -3
- package/{logo100years.BcB6_c-o.js → logo100years.B4d_DIiB.js} +1 -1
- package/megamenu.Cy9Cc-mC.js +12 -0
- package/navigationtablist.CkkLyHrM.js +10 -0
- package/navigationtabs.Dp7D2fnc.js +9 -0
- package/notification.B-norGiB.js +10 -0
- package/{numberindicator.Ddf3ESi7.js → numberindicator.BdnPMogE.js} +2 -2
- package/{optioncheckbox.DqfXuPdi.js → optioncheckbox.nBVwGv6c.js} +3 -3
- package/package.json +41 -50
- package/partials/index.js +56 -50
- package/partials/lib/partials.d.ts +1 -1
- package/popover.DFVDZY-m.js +12 -0
- package/{radio.7_N_alaS.js → radio.DHUfSPai.js} +2 -2
- package/radiogroup.DaThoMfq.js +11 -0
- package/scroller.Cu7H_VCT.js +98 -0
- package/select.CMdKf7tC.js +13 -0
- package/{skiptocontent.BSCde5hT.js → skiptocontent.CHVh0hbr.js} +4 -4
- package/slider.C5dK6KcG.js +11 -0
- package/{spinner.BUjhjAvw.js → spinner.C9qCeq0R.js} +18 -18
- package/step.DKf4CHGr.js +82 -0
- package/step.d.ts +6 -0
- package/stepper.CCP_igpJ.js +16 -0
- package/stepper.d.ts +2 -0
- package/{switch.D7BCfyyZ.js → switch.Bqdyzi2E.js} +5 -5
- package/systemfeedback.O7tj1juR.js +10 -0
- package/tablist.DZgo49nZ.js +209 -0
- package/{tabpane.CB-eudyw.js → tabpane.C4nsUlwc.js} +2 -2
- package/tabs.BkoT7feH.js +11 -0
- package/text.cLv2PhjQ.js +10 -0
- package/textarea.DMn20z4p.js +13 -0
- package/{title.Bz_k5Vda.js → title.DuLPB-VK.js} +2 -2
- package/toast.Dvs8woTH.js +11 -0
- package/toastmanager.pi_Fhd5t.js +89 -0
- package/tooltip.QJe_bfO-.js +178 -0
- package/topbar.Bxwvp9Lf.js +12 -0
- package/types/icon-types.d.ts +1 -1
- package/utils/index.d.ts +1 -0
- package/utils/mergeRefs.d.ts +5 -0
- package/utils/mergeRefs.test.d.ts +1 -0
- package/accordion.HfUSDwQJ.js +0 -12
- package/actionbutton.kgd0E_xF.js +0 -12
- package/actionlink.CwC42RWc.js +0 -12
- package/assets/Accordion.BJb4TOG0.css +0 -1
- package/assets/Button.Dw8H5nFS.css +0 -1
- package/assets/Checkbox.BKHQN_tu.css +0 -1
- package/assets/CustomReactSelect.DGIItWIh.css +0 -1
- package/assets/Dialog.CGAg7bnN.css +0 -1
- package/assets/Drawer.VOvWQoEr.css +0 -1
- package/assets/InputFile.CCQxsulT.css +0 -1
- package/assets/InputPassword.124xVOiO.css +0 -1
- package/assets/InputSearch.Bkg-1urJ.css +0 -1
- package/assets/InputStepper.DvFJk1Mi.css +0 -1
- package/assets/LinkButton.xMvg_ojf.css +0 -1
- package/assets/Notification.BOuaA5GT.css +0 -1
- package/assets/Select.C1gWF32A.css +0 -1
- package/assets/Slider.Bidyhb-B.css +0 -1
- package/assets/Textarea.Dq4rH9Tg.css +0 -1
- package/assets/Toast.CJ1zhDIT.css +0 -1
- package/assets/buttonround.Cw9hnUan.css +0 -1
- package/assets/input.CUjGh-UM.css +0 -1
- package/assets/switch.Bc9KIyw9.css +0 -1
- package/breadcrumb.BsQm0kUD.js +0 -11
- package/button.Dyy6ajX6.js +0 -13
- package/checkbox.BNnp4ztM.js +0 -12
- package/checkboxgroup.BTVnKenc.js +0 -9
- package/chip.C7NstOHt.js +0 -12
- package/chipgroup.Zo1-IOCn.js +0 -210
- package/chunks/Accordion.CnqryAUu.js +0 -170
- package/chunks/Checkbox.CiwriItT.js +0 -88
- package/chunks/Dialog.Bv7k55He.js +0 -135
- package/chunks/Drawer.BVTvx276.js +0 -140
- package/chunks/Header.um5MlziB.js +0 -377
- package/chunks/InputFile.bVWWdePn.js +0 -220
- package/chunks/InputSearch.GOYqFCcZ.js +0 -174
- package/chunks/InputStepper.BuhPtfl-.js +0 -268
- package/chunks/MegaMenu._o3nNDAa.js +0 -192
- package/chunks/NavigationTabList.DuT7gzhj.js +0 -57
- package/chunks/Notification.Pts2oh0R.js +0 -92
- package/chunks/Popover.BRR8YZ-P.js +0 -228
- package/chunks/Select.D2ehd4yN.js +0 -162
- package/chunks/Tabs.C8ADTzJ0.js +0 -83
- package/chunks/Textarea.Cw85sxHL.js +0 -163
- package/chunks/Toast.DG3WVvau.js +0 -76
- package/chunks/file-type-doc.DlovDOBh.js +0 -10
- package/chunks/floating-ui.dom.VgHc0h4l.js +0 -989
- package/chunks/floating-ui.react.DCyAzlZ4.js +0 -2011
- package/chunks/helpers.BbWkXTr3.js +0 -37
- package/chunks/petrol.Du6qAgp0.js +0 -10
- package/chunks/upload.ZImTAIgx.js +0 -10
- package/chunks/useBreakpoint.CMOR9ZOB.js +0 -44
- package/combobox.orZ3z8CB.js +0 -60
- package/components/InputStepper/InputStepper.utils.d.ts +0 -13
- package/customreactselect.Np-RpzvU.js +0 -14
- package/dialog.D4rcbW6A.js +0 -10
- package/drawer.BCCB3Rkj.js +0 -10
- package/fieldset.ZLs9IGpE.js +0 -11
- package/header.DUbn3BZt.js +0 -12
- package/icon.CHVAZr5T.js +0 -9
- package/input.DG20x6gh.js +0 -203
- package/inputfile.Dc56lQ4t.js +0 -17
- package/inputpassword.znFHRLsI.js +0 -13
- package/inputsearch.B1G6rfVk.js +0 -14
- package/inputstepper.d.ts +0 -2
- package/inputstepper.o6rdM_CW.js +0 -16
- package/linkbutton.DU8Ih8ZF.js +0 -12
- package/megamenu.CPH8EeFF.js +0 -12
- package/navigationtablist.C0iwsAad.js +0 -9
- package/navigationtabs.JjJtbuUe.js +0 -9
- package/notification.Ds_Q7ifk.js +0 -10
- package/popover.B72W0OvU.js +0 -12
- package/radiogroup.C_3IcNBq.js +0 -11
- package/scroller.CQxmQU6U.js +0 -123
- package/select.Ceyt-zvu.js +0 -13
- package/slider.Dq2dcziy.js +0 -11
- package/systemfeedback.CSdWOWuf.js +0 -10
- package/tablist.V7DBklhE.js +0 -256
- package/tabs.DQNLPAEN.js +0 -11
- package/text.ZOUuesnU.js +0 -10
- package/textarea.CixKeQBp.js +0 -13
- package/toast.D8QprMCa.js +0 -11
- package/toastmanager.BSVjYsg9.js +0 -116
- package/tooltip.CUCSRXd3.js +0 -191
- package/topbar.CVhJy-Br.js +0 -12
- /package/components/{InputStepper/InputStepper.test.d.ts → InputNumber/InputNumber.test.d.ts} +0 -0
- /package/components/{InputStepper/InputStepper.utils.test.d.ts → InputNumber/InputNumberutils.test.d.ts} +0 -0
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as b, jsxs as Se } from "react/jsx-runtime";
|
|
3
|
-
import { d as nt } from "./index.
|
|
4
|
-
import { c as
|
|
3
|
+
import { d as nt } from "./index.D-sRdssb.js";
|
|
4
|
+
import { c as T } from "./index.DL9mof6u.js";
|
|
5
5
|
import { forwardRef as ot, useState as Xe, useRef as ct } from "react";
|
|
6
|
-
import { u as dt } from "./useBreakpoint.
|
|
7
|
-
import { DSInput as ut } from "../input.
|
|
8
|
-
import { g as Je } from "./helpers.
|
|
9
|
-
import '../assets/Slider.
|
|
6
|
+
import { u as dt } from "./useBreakpoint.BzR_yaIv.js";
|
|
7
|
+
import { DSInput as ut } from "../input.DuEbg7d6.js";
|
|
8
|
+
import { g as Je } from "./helpers.CexwVao7.js";
|
|
9
|
+
import '../assets/Slider.DPEmJ3HD.css';const pt = "ds-slider_root_164e2_1", mt = "ds-slider_hint_164e2_4", bt = "ds-slider_label_164e2_4", ft = "ds-slider_number-input_164e2_7", _t = "ds-slider_label-hint-input-wrapper_164e2_11", ht = "ds-slider_label--hidden_164e2_31", Tt = "ds-slider_label--disabled_164e2_44", xt = "ds-slider_number-input--small_164e2_73", vt = "ds-slider_min-max-label-wrapper_164e2_78", gt = "ds-slider_min-max-label-wrapper--disabled_164e2_92", kt = "ds-slider_min-label_164e2_97", Nt = "ds-slider_max-label_164e2_101", St = "ds-slider_slider-wrapper_164e2_105", yt = "ds-slider_slider_164e2_105", Dt = "ds-slider_value-tooltip_164e2_124", It = "ds-slider_proxy-thumb_164e2_128", Mt = "ds-slider_proxy-thumb--disabled_164e2_206", Lt = "ds-slider_custom-track_164e2_235", Vt = "ds-slider_custom-track--progress_164e2_240", wt = "ds-slider_custom-track--runnable_164e2_252", Ct = "ds-slider_custom-track--disabled_164e2_266", Wt = "ds-slider_tick-wrapper_164e2_286", $t = "ds-slider_tick_164e2_286", Pt = "ds-slider_value-tooltip--visible_164e2_345", At = "ds-slider_value-tooltip--disabled_164e2_348", a = {
|
|
10
10
|
root: pt,
|
|
11
11
|
hint: mt,
|
|
12
12
|
label: bt,
|
|
13
13
|
numberInput: ft,
|
|
14
14
|
labelHintInputWrapper: _t,
|
|
15
15
|
labelHidden: ht,
|
|
16
|
-
labelDisabled:
|
|
17
|
-
numberInputSmall:
|
|
18
|
-
minMaxLabelWrapper:
|
|
19
|
-
minMaxLabelWrapperDisabled:
|
|
16
|
+
labelDisabled: Tt,
|
|
17
|
+
numberInputSmall: xt,
|
|
18
|
+
minMaxLabelWrapper: vt,
|
|
19
|
+
minMaxLabelWrapperDisabled: gt,
|
|
20
20
|
minLabel: kt,
|
|
21
21
|
maxLabel: Nt,
|
|
22
22
|
sliderWrapper: St,
|
|
@@ -32,36 +32,35 @@ import '../assets/Slider.Bidyhb-B.css';const pt = "ds-slider_root_13uvg_1", mt =
|
|
|
32
32
|
tick: $t,
|
|
33
33
|
valueTooltipVisible: Pt,
|
|
34
34
|
valueTooltipDisabled: At
|
|
35
|
-
}, Et = 11, Qe = 4, Ye = (
|
|
35
|
+
}, Et = 11, Qe = 4, Ye = (u) => u.toString().length, Rt = (u, r, e) => {
|
|
36
36
|
if (r === 0)
|
|
37
37
|
return !0;
|
|
38
|
-
const
|
|
39
|
-
return Math.abs(Math.round(n) - n) <
|
|
40
|
-
}, Ft = (
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
return `calc(${m}% + ${n})`;
|
|
38
|
+
const p = 1e-10, n = (u - e) / r;
|
|
39
|
+
return Math.abs(Math.round(n) - n) < p;
|
|
40
|
+
}, Ft = (u, r, e, p) => {
|
|
41
|
+
const n = parseFloat(r), f = e, o = Math.round((u - f) / n);
|
|
42
|
+
let c = f + o * n;
|
|
43
|
+
c = Math.min(Math.max(c, e), p);
|
|
44
|
+
const v = n.toString().split(".")[1]?.length || 0;
|
|
45
|
+
return parseFloat(c.toFixed(v));
|
|
46
|
+
}, Ht = (u, r, e) => {
|
|
47
|
+
const p = (u - r) / (e - r) * 100, n = `calc(-0.24 * ${p}px + 10px)`;
|
|
48
|
+
return `calc(${p}% + ${n})`;
|
|
50
49
|
}, Bt = ({
|
|
51
|
-
id:
|
|
50
|
+
id: u,
|
|
52
51
|
label: r
|
|
53
52
|
}) => {
|
|
54
|
-
if (!
|
|
53
|
+
if (!u)
|
|
55
54
|
throw new Error(Je("DSSlider", 'A unique "id" prop is required. Please add a unique "id" prop to the DSSlider component.'));
|
|
56
55
|
if (!r)
|
|
57
56
|
throw new Error(Je("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}.`));
|
|
58
|
-
}, qt = ot((
|
|
57
|
+
}, qt = ot((u, r) => {
|
|
59
58
|
const e = nt.c(154);
|
|
60
|
-
let
|
|
61
|
-
e[0] !==
|
|
62
|
-
id:
|
|
63
|
-
label:
|
|
64
|
-
className:
|
|
59
|
+
let p, n, f, o, c, v, m, S, U, G, X, J, Q, Y, Z, g;
|
|
60
|
+
e[0] !== u ? ({
|
|
61
|
+
id: o,
|
|
62
|
+
label: c,
|
|
63
|
+
className: p,
|
|
65
64
|
defaultValue: n,
|
|
66
65
|
disabled: U,
|
|
67
66
|
hideLabel: G,
|
|
@@ -70,37 +69,37 @@ import '../assets/Slider.Bidyhb-B.css';const pt = "ds-slider_root_13uvg_1", mt =
|
|
|
70
69
|
isTooltipAlwaysVisible: J,
|
|
71
70
|
max: Q,
|
|
72
71
|
min: Y,
|
|
73
|
-
numberInputProps:
|
|
72
|
+
numberInputProps: v,
|
|
74
73
|
step: Z,
|
|
75
|
-
value:
|
|
76
|
-
onChange:
|
|
74
|
+
value: g,
|
|
75
|
+
onChange: m,
|
|
77
76
|
...S
|
|
78
|
-
} =
|
|
77
|
+
} = u, e[0] = u, e[1] = p, e[2] = n, e[3] = f, e[4] = o, e[5] = c, e[6] = v, e[7] = m, e[8] = S, e[9] = U, e[10] = G, e[11] = X, e[12] = J, e[13] = Q, e[14] = Y, e[15] = Z, e[16] = g) : (p = e[1], n = e[2], f = e[3], o = e[4], c = e[5], v = e[6], m = e[7], S = e[8], U = e[9], G = e[10], X = e[11], J = e[12], Q = e[13], Y = e[14], Z = e[15], g = e[16]);
|
|
79
78
|
const l = U === void 0 ? !1 : U, Ze = G === void 0 ? !1 : G, y = X === void 0 ? !1 : X, ye = J === void 0 ? !1 : J, et = Q === void 0 ? 100 : Q, tt = Y === void 0 ? 0 : Y, ee = Z === void 0 ? 1 : Z;
|
|
80
79
|
process.env.NODE_ENV !== "production" && Bt({
|
|
81
|
-
id:
|
|
82
|
-
label:
|
|
80
|
+
id: o,
|
|
81
|
+
label: c
|
|
83
82
|
});
|
|
84
|
-
const i = Number(et), t = Number(tt),
|
|
83
|
+
const i = Number(et), t = Number(tt), d = Number(ee), De = dt(Ze), D = `${o}-label`, Ie = `${o}-hint`, Me = `${o}-number-input`;
|
|
85
84
|
let se;
|
|
86
|
-
e[17] !== n || e[18] !== t || e[19] !==
|
|
87
|
-
const [I, le] = Xe(se), [
|
|
85
|
+
e[17] !== n || e[18] !== t || e[19] !== g ? (se = g || n || t.toString() || "0", e[17] = n, e[18] = t, e[19] = g, e[20] = se) : se = e[20];
|
|
86
|
+
const [I, le] = Xe(se), [x, ae] = Xe(g || n || t || 0), st = ct(null);
|
|
88
87
|
let ie;
|
|
89
88
|
e[21] !== r ? (ie = (s) => {
|
|
90
89
|
st.current = s, typeof r == "function" ? r(s) : r && (r.current = s);
|
|
91
90
|
}, e[21] = r, e[22] = ie) : ie = e[22];
|
|
92
91
|
const Le = ie;
|
|
93
92
|
let re;
|
|
94
|
-
e[23] !==
|
|
93
|
+
e[23] !== v ? (re = v || {}, e[23] = v, e[24] = re) : re = e[24];
|
|
95
94
|
const {
|
|
96
95
|
size: Ge,
|
|
97
96
|
suffix: Ve
|
|
98
97
|
} = re, ne = Ge === void 0 ? "medium" : Ge;
|
|
99
98
|
let oe;
|
|
100
|
-
e[25] !==
|
|
99
|
+
e[25] !== m ? (oe = (s) => {
|
|
101
100
|
const _ = parseFloat(s.target.value);
|
|
102
|
-
ae(_), le(s.target.value),
|
|
103
|
-
}, e[25] =
|
|
101
|
+
ae(_), le(s.target.value), m && m(s);
|
|
102
|
+
}, e[25] = m, e[26] = oe) : oe = e[26];
|
|
104
103
|
const we = oe;
|
|
105
104
|
let ce;
|
|
106
105
|
e[27] === Symbol.for("react.memo_cache_sentinel") ? (ce = (s) => {
|
|
@@ -112,7 +111,7 @@ import '../assets/Slider.Bidyhb-B.css';const pt = "ds-slider_root_13uvg_1", mt =
|
|
|
112
111
|
}, e[27] = ce) : ce = e[27];
|
|
113
112
|
const lt = ce;
|
|
114
113
|
let k;
|
|
115
|
-
if (e[28] !== I || e[29] !==
|
|
114
|
+
if (e[28] !== I || e[29] !== m || e[30] !== i || e[31] !== t || e[32] !== ee) {
|
|
116
115
|
k = (_) => {
|
|
117
116
|
const te = parseFloat(I);
|
|
118
117
|
if (Number.isNaN(te)) {
|
|
@@ -120,36 +119,36 @@ import '../assets/Slider.Bidyhb-B.css';const pt = "ds-slider_root_13uvg_1", mt =
|
|
|
120
119
|
return;
|
|
121
120
|
}
|
|
122
121
|
let h = Math.min(Math.max(te, t), i);
|
|
123
|
-
Rt(h, parseFloat(ee), t) || (h = Ft(h, ee, t, i)), le(h.toString()), ae(h),
|
|
122
|
+
Rt(h, parseFloat(ee), t) || (h = Ft(h, ee, t, i)), le(h.toString()), ae(h), m && m(_);
|
|
124
123
|
};
|
|
125
124
|
const s = (_) => {
|
|
126
|
-
le(t.toString()), ae(t),
|
|
125
|
+
le(t.toString()), ae(t), m && m(_);
|
|
127
126
|
};
|
|
128
|
-
e[28] = I, e[29] =
|
|
127
|
+
e[28] = I, e[29] = m, e[30] = i, e[31] = t, e[32] = ee, e[33] = k;
|
|
129
128
|
} else
|
|
130
129
|
k = e[33];
|
|
131
|
-
const M = (
|
|
130
|
+
const M = (d === 0 ? !1 : (i - t) / d <= Et) && (i - t) / d || 0;
|
|
132
131
|
let de;
|
|
133
|
-
if (e[34] !== i || e[35] !== t || e[36] !==
|
|
132
|
+
if (e[34] !== i || e[35] !== t || e[36] !== d || e[37] !== M) {
|
|
134
133
|
let s;
|
|
135
|
-
e[39] !== i || e[40] !== t || e[41] !==
|
|
136
|
-
const h = t + te *
|
|
134
|
+
e[39] !== i || e[40] !== t || e[41] !== d ? (s = (_, te) => {
|
|
135
|
+
const h = t + te * d, rt = Ht(h, t, i);
|
|
137
136
|
return /* @__PURE__ */ b("span", { className: a.tick, style: {
|
|
138
137
|
left: rt
|
|
139
138
|
} }, h);
|
|
140
|
-
}, e[39] = i, e[40] = t, e[41] =
|
|
139
|
+
}, e[39] = i, e[40] = t, e[41] = d, e[42] = s) : s = e[42], de = Array.from({
|
|
141
140
|
length: M + 1
|
|
142
|
-
}, s), e[34] = i, e[35] = t, e[36] =
|
|
141
|
+
}, s), e[34] = i, e[35] = t, e[36] = d, e[37] = M, e[38] = de;
|
|
143
142
|
} else
|
|
144
143
|
de = e[38];
|
|
145
144
|
const Ce = de;
|
|
146
145
|
let ue;
|
|
147
|
-
e[43] !== i || e[44] !== t || e[45] !==
|
|
146
|
+
e[43] !== i || e[44] !== t || e[45] !== x ? (ue = () => {
|
|
148
147
|
if (t === i)
|
|
149
148
|
throw new Error("Min and max values cannot be the same.");
|
|
150
|
-
const s = (
|
|
149
|
+
const s = (x - t) / (i - t) * 100;
|
|
151
150
|
return Math.max(0, Math.min(s, 100));
|
|
152
|
-
}, e[43] = i, e[44] = t, e[45] =
|
|
151
|
+
}, e[43] = i, e[44] = t, e[45] = x, e[46] = ue) : ue = e[46];
|
|
153
152
|
const N = ue;
|
|
154
153
|
let pe;
|
|
155
154
|
e[47] !== N ? (pe = () => {
|
|
@@ -164,53 +163,53 @@ import '../assets/Slider.Bidyhb-B.css';const pt = "ds-slider_root_13uvg_1", mt =
|
|
|
164
163
|
}, e[49] = N, e[50] = me) : me = e[50];
|
|
165
164
|
const it = me;
|
|
166
165
|
let be;
|
|
167
|
-
e[51] !==
|
|
166
|
+
e[51] !== p ? (be = T(a.slider, p), e[51] = p, e[52] = be) : be = e[52];
|
|
168
167
|
const We = be;
|
|
169
168
|
let fe;
|
|
170
|
-
e[53] !== l || e[54] !== De ? (fe =
|
|
169
|
+
e[53] !== l || e[54] !== De ? (fe = T(a.label, {
|
|
171
170
|
[a.labelHidden]: De,
|
|
172
171
|
[a.labelDisabled]: l
|
|
173
172
|
}), e[53] = l, e[54] = De, e[55] = fe) : fe = e[55];
|
|
174
173
|
const $e = fe, Pe = ne === "small";
|
|
175
174
|
let _e;
|
|
176
|
-
e[56] !== Pe ? (_e =
|
|
175
|
+
e[56] !== Pe ? (_e = T(a.numberInput, {
|
|
177
176
|
[a.numberInputSmall]: Pe
|
|
178
177
|
}), e[56] = Pe, e[57] = _e) : _e = e[57];
|
|
179
178
|
const Ae = _e;
|
|
180
179
|
let he;
|
|
181
|
-
e[58] !== l ? (he =
|
|
180
|
+
e[58] !== l ? (he = T(a.minMaxLabelWrapper, {
|
|
182
181
|
[a.minMaxLabelWrapperDisabled]: l
|
|
183
182
|
}), e[58] = l, e[59] = he) : he = e[59];
|
|
184
183
|
const Ee = he;
|
|
185
|
-
let
|
|
186
|
-
e[60] !== l ? (
|
|
184
|
+
let Te;
|
|
185
|
+
e[60] !== l ? (Te = T(a.customTrack, a.customTrackProgress, {
|
|
187
186
|
[a.customTrackDisabled]: l
|
|
188
|
-
}), e[60] = l, e[61] =
|
|
189
|
-
const Re =
|
|
190
|
-
let
|
|
191
|
-
e[62] !== l ? (
|
|
187
|
+
}), e[60] = l, e[61] = Te) : Te = e[61];
|
|
188
|
+
const Re = Te;
|
|
189
|
+
let xe;
|
|
190
|
+
e[62] !== l ? (xe = T(a.customTrack, a.customTrackRunnable, {
|
|
192
191
|
[a.customTrackDisabled]: l
|
|
193
|
-
}), e[62] = l, e[63] =
|
|
194
|
-
const Fe =
|
|
195
|
-
let
|
|
196
|
-
e[64] !== l ? (
|
|
192
|
+
}), e[62] = l, e[63] = xe) : xe = e[63];
|
|
193
|
+
const Fe = xe;
|
|
194
|
+
let ve;
|
|
195
|
+
e[64] !== l ? (ve = T(a.proxyThumb, {
|
|
197
196
|
[a.proxyThumbDisabled]: l
|
|
198
|
-
}), e[64] = l, e[65] =
|
|
199
|
-
const He =
|
|
200
|
-
let
|
|
201
|
-
e[66] !== l || e[67] !== ye ? (
|
|
197
|
+
}), e[64] = l, e[65] = ve) : ve = e[65];
|
|
198
|
+
const He = ve;
|
|
199
|
+
let ge;
|
|
200
|
+
e[66] !== l || e[67] !== ye ? (ge = T(a.valueTooltip, {
|
|
202
201
|
[a.valueTooltipVisible]: ye,
|
|
203
202
|
[a.valueTooltipDisabled]: l
|
|
204
|
-
}), e[66] = l, e[67] = ye, e[68] =
|
|
205
|
-
const Be =
|
|
203
|
+
}), e[66] = l, e[67] = ye, e[68] = ge) : ge = e[68];
|
|
204
|
+
const Be = ge;
|
|
206
205
|
let L;
|
|
207
|
-
e[69] !==
|
|
206
|
+
e[69] !== o || e[70] !== c || e[71] !== $e || e[72] !== D ? (L = /* @__PURE__ */ b("label", { className: $e, htmlFor: o, id: D, children: c }), e[69] = o, e[70] = c, e[71] = $e, e[72] = D, e[73] = L) : L = e[73];
|
|
208
207
|
let V;
|
|
209
208
|
e[74] !== f || e[75] !== Ie ? (V = f && /* @__PURE__ */ b("div", { className: a.hint, id: Ie, children: f }), e[74] = f, e[75] = Ie, e[76] = V) : V = e[76];
|
|
210
209
|
let w;
|
|
211
|
-
e[77] !== l || e[78] !== k || e[79] !== y || e[80] !== Me || e[81] !== I || e[82] !==
|
|
210
|
+
e[77] !== l || e[78] !== k || e[79] !== y || e[80] !== Me || e[81] !== I || e[82] !== c || e[83] !== Ae || e[84] !== ne || e[85] !== Ve || e[86] !== i || e[87] !== t || e[88] !== d ? (w = !y && /* @__PURE__ */ b(ut, { id: Me, className: Ae, type: "number", min: t, max: i, step: d, inputMode: "decimal", autoComplete: "off", disabled: l, hideLabel: !0, value: I, onChange: lt, onBlur: k, onKeyDown: (s) => {
|
|
212
211
|
s.key === "Enter" && (s.preventDefault(), k(s));
|
|
213
|
-
}, label:
|
|
212
|
+
}, label: c, size: ne, suffix: Ve }), e[77] = l, e[78] = k, e[79] = y, e[80] = Me, e[81] = I, e[82] = c, e[83] = Ae, e[84] = ne, e[85] = Ve, e[86] = i, e[87] = t, e[88] = d, e[89] = w) : w = e[89];
|
|
214
213
|
let C;
|
|
215
214
|
e[90] !== L || e[91] !== V || e[92] !== w ? (C = /* @__PURE__ */ Se("div", { className: a.labelHintInputWrapper, children: [
|
|
216
215
|
L,
|
|
@@ -219,14 +218,14 @@ import '../assets/Slider.Bidyhb-B.css';const pt = "ds-slider_root_13uvg_1", mt =
|
|
|
219
218
|
] }), e[90] = L, e[91] = V, e[92] = w, e[93] = C) : C = e[93];
|
|
220
219
|
const qe = Ye(t) < Qe;
|
|
221
220
|
let W;
|
|
222
|
-
e[94] !== qe ? (W =
|
|
221
|
+
e[94] !== qe ? (W = T({
|
|
223
222
|
[a.minLabel]: qe
|
|
224
223
|
}), e[94] = qe, e[95] = W) : W = e[95];
|
|
225
224
|
let $;
|
|
226
225
|
e[96] !== t || e[97] !== W ? ($ = /* @__PURE__ */ b("div", { className: W, children: t }), e[96] = t, e[97] = W, e[98] = $) : $ = e[98];
|
|
227
226
|
const Oe = Ye(i) < Qe;
|
|
228
227
|
let P;
|
|
229
|
-
e[99] !== Oe ? (P =
|
|
228
|
+
e[99] !== Oe ? (P = T({
|
|
230
229
|
[a.maxLabel]: Oe
|
|
231
230
|
}), e[99] = Oe, e[100] = P) : P = e[100];
|
|
232
231
|
let A;
|
|
@@ -256,13 +255,13 @@ import '../assets/Slider.Bidyhb-B.css';const pt = "ds-slider_root_13uvg_1", mt =
|
|
|
256
255
|
let B;
|
|
257
256
|
e[117] !== Fe || e[118] !== H ? (B = /* @__PURE__ */ b("div", { className: Fe, style: H }), e[117] = Fe, e[118] = H, e[119] = B) : B = e[119];
|
|
258
257
|
let q;
|
|
259
|
-
e[120] !== l || e[121] !== Le || e[122] !== we || e[123] !==
|
|
258
|
+
e[120] !== l || e[121] !== Le || e[122] !== we || e[123] !== o || e[124] !== i || e[125] !== t || e[126] !== d || e[127] !== S || e[128] !== We || e[129] !== D || e[130] !== x ? (q = /* @__PURE__ */ b("input", { ...S, id: o, type: "range", ref: Le, className: We, min: t, max: i, step: d, value: x, disabled: l, "aria-labelledby": D, onChange: we }), e[120] = l, e[121] = Le, e[122] = we, e[123] = o, e[124] = i, e[125] = t, e[126] = d, e[127] = S, e[128] = We, e[129] = D, e[130] = x, e[131] = q) : q = e[131];
|
|
260
259
|
let O;
|
|
261
260
|
e[132] !== M || e[133] !== Ce ? (O = M > 0 && /* @__PURE__ */ b("div", { className: a.tickWrapper, children: Ce }), e[132] = M, e[133] = Ce, e[134] = O) : O = e[134];
|
|
262
261
|
let z;
|
|
263
262
|
e[135] !== He ? (z = /* @__PURE__ */ b("div", { className: He }), e[135] = He, e[136] = z) : z = e[136];
|
|
264
263
|
let K;
|
|
265
|
-
e[137] !== l || e[138] !== y || e[139] !==
|
|
264
|
+
e[137] !== l || e[138] !== y || e[139] !== x || e[140] !== Be ? (K = y && /* @__PURE__ */ b("div", { className: Be, "aria-disabled": l, children: x }), e[137] = l, e[138] = y, e[139] = x, e[140] = Be, e[141] = K) : K = e[141];
|
|
266
265
|
let j;
|
|
267
266
|
e[142] !== Ke || e[143] !== F || e[144] !== B || e[145] !== q || e[146] !== O || e[147] !== z || e[148] !== K ? (j = /* @__PURE__ */ Se("div", { className: a.sliderWrapper, style: Ke, children: [
|
|
268
267
|
F,
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
3
|
+
import { c as f } from "./index.DL9mof6u.js";
|
|
4
|
+
import { useCallback as V, useEffect as W, useRef as S } from "react";
|
|
5
|
+
import { g as i, r as j } from "./helpers.CexwVao7.js";
|
|
6
|
+
import { i as q } from "./is-animation-disabled.B-V_68K-.js";
|
|
7
|
+
import { t as H } from "./translate.nuU7uChI.js";
|
|
8
|
+
import { u as L } from "./useIsomorphicLayoutEffect.CnJ9AMFS.js";
|
|
9
|
+
import "./index.D-sRdssb.js";
|
|
10
|
+
import { g as w } from "./AriaLiveRegions.utils.CybNIBSa.js";
|
|
11
|
+
import { DSScroller as F } from "../scroller.Cu7H_VCT.js";
|
|
12
|
+
import { StepperStep as G } from "../step.DKf4CHGr.js";
|
|
13
|
+
import '../assets/Stepper.tXJl15yL.css';const ge = ["prev", "next"], N = 48, J = "ds-stepper_root_1d1si_1", K = "ds-stepper_root--vertical_1d1si_12", Q = "ds-stepper_scroller--centered_1d1si_17", U = "ds-stepper_scroller-button_1d1si_21", X = "ds-stepper_list_1d1si_26", Y = "ds-stepper_list--center_1d1si_35", Z = "ds-stepper_list--vertical_1d1si_38", a = {
|
|
14
|
+
root: J,
|
|
15
|
+
rootVertical: K,
|
|
16
|
+
scrollerCentered: Q,
|
|
17
|
+
scrollerButton: U,
|
|
18
|
+
list: X,
|
|
19
|
+
listCenter: Y,
|
|
20
|
+
listVertical: Z
|
|
21
|
+
}, Te = ["left", "center"], _e = ["horizontal", "vertical"], ee = ({
|
|
22
|
+
aria: t,
|
|
23
|
+
steps: n
|
|
24
|
+
}) => {
|
|
25
|
+
if (!t || typeof t != "object" || Object.keys(t).length === 0 || !t["aria-label"] && !t["aria-labelledby"] || t["aria-label"]?.trim() === "" && t["aria-labelledby"]?.trim() === "")
|
|
26
|
+
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
|
+
if (!Array.isArray(n))
|
|
28
|
+
throw new Error(i("DSStepper", j("steps", "DSStepper")));
|
|
29
|
+
if (n.length < 2)
|
|
30
|
+
throw new Error(i("DSStepper", "The steps array must contain at least two steps."));
|
|
31
|
+
n.forEach((e, o) => {
|
|
32
|
+
if (!e.label || e.label.trim() === "")
|
|
33
|
+
throw new Error(i("DSStepper", `The step at index ${o} is missing a non-empty label. Each step requires a valid label string.`));
|
|
34
|
+
if (e?.state === "current" && e?.disabled)
|
|
35
|
+
throw new Error(i("DSStepper", `The step at index ${o} has a current state but is disabled. Please remove the disabled property if this step is the current step.`));
|
|
36
|
+
});
|
|
37
|
+
}, te = () => {
|
|
38
|
+
w() || console.warn(i("DSStepper", "For accessible announcements place <DSAriaLiveRegions /> once close to <body>. Announcements will be skipped otherwise."));
|
|
39
|
+
}, re = {
|
|
40
|
+
current: "Current step",
|
|
41
|
+
completed: "completed",
|
|
42
|
+
step: "Step",
|
|
43
|
+
of: "of"
|
|
44
|
+
}, oe = {
|
|
45
|
+
current: "Aktueller Schritt",
|
|
46
|
+
completed: "abgeschlossen",
|
|
47
|
+
step: "Schritt",
|
|
48
|
+
of: "von"
|
|
49
|
+
}, se = {
|
|
50
|
+
en: re,
|
|
51
|
+
de: oe
|
|
52
|
+
}, ne = (t) => t.find((e) => e.state === "current") || t.findLast((e) => e.state) || t[0], I = (t) => t.findIndex((n) => n.state === "current"), le = (t, n) => !!t && t === "completed" && !n, Ee = ({
|
|
53
|
+
aria: t,
|
|
54
|
+
className: n,
|
|
55
|
+
steps: e,
|
|
56
|
+
orientation: o = "horizontal",
|
|
57
|
+
alignment: h = "left",
|
|
58
|
+
lang: x = "en",
|
|
59
|
+
translations: m,
|
|
60
|
+
onStepChange: A,
|
|
61
|
+
...y
|
|
62
|
+
}) => {
|
|
63
|
+
process.env.NODE_ENV !== "production" && (ee({
|
|
64
|
+
aria: t,
|
|
65
|
+
steps: e
|
|
66
|
+
}), te());
|
|
67
|
+
const p = H(m || se[x]), b = V(() => {
|
|
68
|
+
const s = w();
|
|
69
|
+
if (s) {
|
|
70
|
+
const r = ne(e);
|
|
71
|
+
s.innerText = `${p("current")}: ${e.indexOf(r) + 1} ${p("of")} ${e.length} - ${r.label}`, setTimeout(() => {
|
|
72
|
+
s.innerText = "";
|
|
73
|
+
}, 350);
|
|
74
|
+
}
|
|
75
|
+
}, [e, m, p]);
|
|
76
|
+
W(() => {
|
|
77
|
+
b();
|
|
78
|
+
}, [e, b]);
|
|
79
|
+
const P = (s, r) => {
|
|
80
|
+
const {
|
|
81
|
+
state: l,
|
|
82
|
+
disabled: c
|
|
83
|
+
} = e[s];
|
|
84
|
+
le(l, c) && (e[s].onClick?.(r), A(s));
|
|
85
|
+
}, O = f(a.root, {
|
|
86
|
+
[a.rootVertical]: o === "vertical"
|
|
87
|
+
}, n), B = f(a.list, {
|
|
88
|
+
[a.listVertical]: o === "vertical",
|
|
89
|
+
[a.listCenter]: o === "horizontal" && h === "center"
|
|
90
|
+
}), k = f({
|
|
91
|
+
[a.scrollerCentered]: o === "horizontal" && h === "center"
|
|
92
|
+
}), g = S([]), T = /* @__PURE__ */ d("ol", { className: B, children: e.map((s, r) => /* @__PURE__ */ d(G, { step: s, index: r, stepsCount: e.length, t: p, orientation: o, onStepClick: (l) => P(r, l), buttonRef: (l) => {
|
|
93
|
+
g.current[r] = l;
|
|
94
|
+
} }, r)) }), _ = S(null), E = S(!1);
|
|
95
|
+
L(() => {
|
|
96
|
+
if (o !== "horizontal")
|
|
97
|
+
return;
|
|
98
|
+
const s = [
|
|
99
|
+
"16px 'STIHL Contraface Digital Text Regular'",
|
|
100
|
+
// text-medium - label default
|
|
101
|
+
"14px 'STIHL Contraface Digital Text Bold'",
|
|
102
|
+
// text-small-bold - number
|
|
103
|
+
"16px 'STIHL Contraface Digital Text Bold'",
|
|
104
|
+
// text-medium-bold - current label
|
|
105
|
+
"14px 'STIHL Contraface Digital Text Regular'"
|
|
106
|
+
// utility-small - number/hint base (regular variant for hint)
|
|
107
|
+
];
|
|
108
|
+
Promise.all(s.map((r) => document.fonts.load(r))).then(() => {
|
|
109
|
+
E.current = !0, I(e) !== -1 && C("instant");
|
|
110
|
+
}).catch((r) => {
|
|
111
|
+
throw new Error(i("DSStepper", `The component requires the fonts to be loaded: ${r}`));
|
|
112
|
+
});
|
|
113
|
+
}, [o]);
|
|
114
|
+
const C = (s = "smooth") => {
|
|
115
|
+
if (o !== "horizontal")
|
|
116
|
+
return;
|
|
117
|
+
const r = I(e);
|
|
118
|
+
if (r === -1)
|
|
119
|
+
return;
|
|
120
|
+
const l = g.current[r], c = _.current;
|
|
121
|
+
if (!l || !c)
|
|
122
|
+
return;
|
|
123
|
+
const R = l.getBoundingClientRect(), v = c.getBoundingClientRect();
|
|
124
|
+
if (R.left - N >= v.left && R.right + N <= v.right)
|
|
125
|
+
return;
|
|
126
|
+
const M = l.offsetLeft, $ = l.offsetWidth, D = c.clientWidth;
|
|
127
|
+
let u = M - Math.max(0, (D - $) / 2);
|
|
128
|
+
const z = c.scrollWidth - D;
|
|
129
|
+
u = Math.min(Math.max(0, u), z), c.scrollTo({
|
|
130
|
+
left: u,
|
|
131
|
+
behavior: q() ? "instant" : s
|
|
132
|
+
});
|
|
133
|
+
};
|
|
134
|
+
return L(() => {
|
|
135
|
+
E.current && C("smooth");
|
|
136
|
+
}, [e, o]), /* @__PURE__ */ d("nav", { className: O, ...y, ...t, children: o === "horizontal" ? /* @__PURE__ */ d(F, { ref: _, className: a.scroller, scrollerClassName: k, scrollerButtonClassName: a.scrollerButton, children: T }) : T });
|
|
137
|
+
};
|
|
138
|
+
export {
|
|
139
|
+
Ee as D,
|
|
140
|
+
ge as S,
|
|
141
|
+
N as a,
|
|
142
|
+
Te as b,
|
|
143
|
+
_e as c,
|
|
144
|
+
te as d,
|
|
145
|
+
re as e,
|
|
146
|
+
oe as f,
|
|
147
|
+
se as g,
|
|
148
|
+
ne as h,
|
|
149
|
+
I as i,
|
|
150
|
+
le as j,
|
|
151
|
+
ee as v
|
|
152
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as f, jsx as S } from "react/jsx-runtime";
|
|
3
|
-
import { d as _ } from "./index.
|
|
4
|
-
import { c as p } from "./index.
|
|
3
|
+
import { d as _ } from "./index.D-sRdssb.js";
|
|
4
|
+
import { c as p } from "./index.DL9mof6u.js";
|
|
5
5
|
import "react";
|
|
6
|
-
import { D as E } from "./Icon.
|
|
7
|
-
import '../assets/SystemFeedback.
|
|
8
|
-
root:
|
|
9
|
-
}, h = ["success", "error", "warning"],
|
|
6
|
+
import { D as E } from "./Icon.CDLyB7Pv.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
10
|
success: "circle-check-colored",
|
|
11
11
|
error: "diamond-exclamationmark-colored",
|
|
12
12
|
warning: "triangle-exclamationmark-colored"
|
|
@@ -21,8 +21,8 @@ import '../assets/SystemFeedback.RcrPepSZ.css';const x = "ds-system-feedback_roo
|
|
|
21
21
|
...r
|
|
22
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
23
|
let l;
|
|
24
|
-
e[6] !== s ? (l = p(
|
|
25
|
-
const m = l, d =
|
|
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
26
|
let a;
|
|
27
27
|
e[8] !== d ? (a = /* @__PURE__ */ S(E, { name: d, "aria-hidden": "true" }), e[8] = d, e[9] = a) : a = e[9];
|
|
28
28
|
let i;
|
|
@@ -34,5 +34,5 @@ import '../assets/SystemFeedback.RcrPepSZ.css';const x = "ds-system-feedback_roo
|
|
|
34
34
|
export {
|
|
35
35
|
y as D,
|
|
36
36
|
h as S,
|
|
37
|
-
|
|
37
|
+
D as a
|
|
38
38
|
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as N, jsxs as C } from "react/jsx-runtime";
|
|
3
|
+
import { d as L } from "./index.D-sRdssb.js";
|
|
4
|
+
import { useState as M } from "react";
|
|
5
|
+
import { TabList as $ } from "../tablist.DZgo49nZ.js";
|
|
6
|
+
import { TabPane as j } from "../tabpane.C4nsUlwc.js";
|
|
7
|
+
import { g as B } from "./TabPane.utils.DG16Y2uD.js";
|
|
8
|
+
import { g, r as O } from "./helpers.CexwVao7.js";
|
|
9
|
+
const J = ["left", "center"], K = ["prev", "next"], _ = ({
|
|
10
|
+
id: b,
|
|
11
|
+
tabs: e,
|
|
12
|
+
defaultSelectedTabIndex: s = 0
|
|
13
|
+
}) => {
|
|
14
|
+
if (!b)
|
|
15
|
+
throw new Error(g("DSTabs", 'A unique "id" prop is required. Please add a unique "id" prop to the DSTabs component.'));
|
|
16
|
+
if (Array.isArray(e)) {
|
|
17
|
+
if (e.length === 0)
|
|
18
|
+
throw new Error(g("DSTabs", "The tabs array must not be empty."));
|
|
19
|
+
} else throw new Error(g("DSTabs", O("tabs", "DSTabs")));
|
|
20
|
+
if (s < 0 || s >= e.length)
|
|
21
|
+
throw new Error(g("DSTabs", `Invalid defaultSelectedTabIndex: ${s}. It must be between 0 and ${e.length - 1}.`));
|
|
22
|
+
}, Q = (b) => {
|
|
23
|
+
const e = L.c(37);
|
|
24
|
+
let s, l, n, r, d, m, f, t, a;
|
|
25
|
+
e[0] !== b ? ({
|
|
26
|
+
id: t,
|
|
27
|
+
tabs: a,
|
|
28
|
+
activeTabIndex: s,
|
|
29
|
+
alignment: m,
|
|
30
|
+
className: l,
|
|
31
|
+
classNameTabPane: n,
|
|
32
|
+
defaultSelectedTabIndex: f,
|
|
33
|
+
onTabChange: r,
|
|
34
|
+
...d
|
|
35
|
+
} = b, e[0] = b, e[1] = s, e[2] = l, e[3] = n, e[4] = r, e[5] = d, e[6] = m, e[7] = f, e[8] = t, e[9] = a) : (s = e[1], l = e[2], n = e[3], r = e[4], d = e[5], m = e[6], f = e[7], t = e[8], a = e[9]);
|
|
36
|
+
const h = m === void 0 ? "left" : m, x = f === void 0 ? 0 : f;
|
|
37
|
+
process.env.NODE_ENV !== "production" && _({
|
|
38
|
+
id: t,
|
|
39
|
+
tabs: a,
|
|
40
|
+
defaultSelectedTabIndex: x
|
|
41
|
+
});
|
|
42
|
+
const [A, P] = M(s || x), p = s !== void 0, o = p ? s : A;
|
|
43
|
+
let S;
|
|
44
|
+
e[10] !== p || e[11] !== r ? (S = (i) => {
|
|
45
|
+
p || P(i), r?.(i);
|
|
46
|
+
}, e[10] = p, e[11] = r, e[12] = S) : S = e[12];
|
|
47
|
+
const D = S;
|
|
48
|
+
let u;
|
|
49
|
+
e[13] !== h || e[14] !== D || e[15] !== r || e[16] !== o || e[17] !== t || e[18] !== a ? (u = {
|
|
50
|
+
id: t,
|
|
51
|
+
tabs: a,
|
|
52
|
+
setSelectedTabIndex: D,
|
|
53
|
+
selectedTabIndex: o,
|
|
54
|
+
alignment: h,
|
|
55
|
+
onTabChange: r
|
|
56
|
+
}, e[13] = h, e[14] = D, e[15] = r, e[16] = o, e[17] = t, e[18] = a, e[19] = u) : u = e[19];
|
|
57
|
+
const v = u;
|
|
58
|
+
let c;
|
|
59
|
+
e[20] !== v ? (c = /* @__PURE__ */ N($, { ...v }), e[20] = v, e[21] = c) : c = e[21];
|
|
60
|
+
let T;
|
|
61
|
+
if (e[22] !== n || e[23] !== o || e[24] !== t || e[25] !== a) {
|
|
62
|
+
let i;
|
|
63
|
+
e[27] !== n || e[28] !== o || e[29] !== t ? (i = (q, w) => {
|
|
64
|
+
const {
|
|
65
|
+
id: E,
|
|
66
|
+
content: y
|
|
67
|
+
} = q;
|
|
68
|
+
return /* @__PURE__ */ N(j, { id: E, content: y, index: w, selectedTabIndex: o, tabListId: t, className: n }, B(t, E, w));
|
|
69
|
+
}, e[27] = n, e[28] = o, e[29] = t, e[30] = i) : i = e[30], T = a.map(i), e[22] = n, e[23] = o, e[24] = t, e[25] = a, e[26] = T;
|
|
70
|
+
} else
|
|
71
|
+
T = e[26];
|
|
72
|
+
let I;
|
|
73
|
+
return e[31] !== l || e[32] !== d || e[33] !== c || e[34] !== T || e[35] !== t ? (I = /* @__PURE__ */ C("div", { className: l, id: t, ...d, children: [
|
|
74
|
+
c,
|
|
75
|
+
T
|
|
76
|
+
] }), e[31] = l, e[32] = d, e[33] = c, e[34] = T, e[35] = t, e[36] = I) : I = e[36], I;
|
|
77
|
+
};
|
|
78
|
+
export {
|
|
79
|
+
Q as D,
|
|
80
|
+
J as T,
|
|
81
|
+
K as a,
|
|
82
|
+
_ as v
|
|
83
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as $ } from "react/jsx-runtime";
|
|
3
|
-
import { d as z } from "./index.
|
|
4
|
-
import { c as C } from "./index.
|
|
3
|
+
import { d as z } from "./index.D-sRdssb.js";
|
|
4
|
+
import { c as C } from "./index.DL9mof6u.js";
|
|
5
5
|
import { useRef as G, useEffect as H } from "react";
|
|
6
|
-
import { a as v, g as y } from "./helpers.
|
|
6
|
+
import { a as v, g as y } from "./helpers.CexwVao7.js";
|
|
7
7
|
import '../assets/Text.Dgpj61UP.css';const I = "ds-text_root_1mo26_6", P = "ds-text_root--large_1mo26_15", R = "ds-text_root--large-bold_1mo26_26", W = "ds-text_root--medium_1mo26_37", j = "ds-text_root--medium-bold_1mo26_48", q = "ds-text_root--small_1mo26_59", O = "ds-text_root--small-bold_1mo26_70", V = "ds-text_root--x-small_1mo26_81", Z = "ds-text_root--x-small-bold_1mo26_92", F = "ds-text_root--xx-small_1mo26_103", J = "ds-text_root--theme-dark_1mo26_197", o = {
|
|
8
8
|
root: I,
|
|
9
9
|
rootLarge: P,
|