@stihl-design-system/components 1.0.0-RC.34 → 1.0.0-RC.36

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.
Files changed (161) hide show
  1. package/Placeholder.svg +1 -1
  2. package/{actionbutton.DLQJU6AV.js → actionbutton.Du5CT-Mt.js} +2 -2
  3. package/{actionlink.DEBrWfN3.js → actionlink.BK9CaQUY.js} +2 -2
  4. package/assets/Button.CmeGVEAY.css +1 -0
  5. package/assets/CustomReactSelect.BihX36Uo.css +1 -0
  6. package/assets/Fieldset.Oqu7pOBv.css +1 -0
  7. package/assets/InputFile.D7Ihod7B.css +1 -0
  8. package/assets/InputNumber.z_UqRYdv.css +1 -0
  9. package/assets/InputPassword.DZENjxJ9.css +1 -0
  10. package/assets/InputSearch.GBH9Eh6F.css +1 -0
  11. package/assets/LinkButton.88j5ckLu.css +1 -0
  12. package/assets/RadioGroup.q1lQ-HIZ.css +1 -0
  13. package/assets/Select.CL0fqx7X.css +1 -0
  14. package/assets/Slider.DWLuIsNj.css +1 -0
  15. package/assets/Textarea.B1HOakic.css +1 -0
  16. package/assets/buttonround.DBpMesfr.css +1 -0
  17. package/assets/input.RPDR8qdT.css +1 -0
  18. package/assets/radio.CsfCywxz.css +1 -0
  19. package/{banner.CI5HnDqD.js → banner.AhUeW3HM.js} +1 -1
  20. package/{breadcrumb.CtwAux3P.js → breadcrumb.DpIAQk3r.js} +3 -3
  21. package/button.CqNYOfSj.js +12 -0
  22. package/buttonround.9IS0tUqw.js +96 -0
  23. package/{checkbox.DwccD0Mp.js → checkbox.XYQI-ubx.js} +2 -2
  24. package/{checkboxgroup.ZiUFfCJ1.js → checkboxgroup.C66ZwglF.js} +2 -2
  25. package/{chip.B0s_fS8L.js → chip.B-pxhsdb.js} +2 -2
  26. package/{chipgroup.Dpu66bo5.js → chipgroup.CY3pWyLO.js} +4 -3
  27. package/chunks/{ActionButton.DOYsEHPr.js → ActionButton.BOYQYo5M.js} +1 -1
  28. package/chunks/{ActionLink.DbyciN3Y.js → ActionLink.BlwvrnPN.js} +1 -1
  29. package/chunks/{Breadcrumb.BgnpTo01.js → Breadcrumb.C_Yaz_vw.js} +2 -2
  30. package/chunks/Button.CQlIao-Z.js +139 -0
  31. package/chunks/{Checkbox.BcGXAuuP.js → Checkbox.D5X5T6Yg.js} +1 -1
  32. package/chunks/CheckboxGroup.BIspWqeW.js +74 -0
  33. package/chunks/{Chip.D6pubCZV.js → Chip.DIp5hdRH.js} +1 -1
  34. package/chunks/{CustomReactSelect.Dg3wC_VH.js → CustomReactSelect.D4kopDzX.js} +816 -800
  35. package/chunks/{Dialog.DpqSVrYR.js → Dialog.DMxHRrxo.js} +1 -1
  36. package/chunks/{Drawer.DISWybOa.js → Drawer.CatmvDHJ.js} +1 -1
  37. package/chunks/Fieldset.Bk8W5h13.js +81 -0
  38. package/chunks/{Header.7TQL_J9t.js → Header.18sOO0Gf.js} +1 -1
  39. package/chunks/{Input.utils.Dkw7gRrr.js → Input.utils.CL1u4Ctq.js} +27 -25
  40. package/chunks/InputFile.CjK3gEst.js +236 -0
  41. package/chunks/InputNumber.wfDjnz58.js +242 -0
  42. package/chunks/InputPassword.Ctb0xbwg.js +121 -0
  43. package/chunks/InputSearch.C-r5ktR8.js +149 -0
  44. package/chunks/LinkButton.CWibqvhs.js +140 -0
  45. package/chunks/{MegaMenu.CQbOeaib.js → MegaMenu.qttkjGbD.js} +7 -8
  46. package/chunks/{NavigationTabs.BwM-6CRm.js → NavigationTabs.SBNLx87A.js} +1 -1
  47. package/chunks/{Notification.CrojkJ0E.js → Notification.DYl1rcGu.js} +1 -1
  48. package/chunks/{Popover.Bb0Pjmvg.js → Popover.C9tT8xkE.js} +9 -10
  49. package/chunks/RadioGroup.BDsVAhCK.js +125 -0
  50. package/chunks/Select.BjBPN-6W.js +147 -0
  51. package/chunks/Slider.Bh2jhGKn.js +306 -0
  52. package/chunks/{Stepper.PTQdQBYf.js → Stepper.D1Yzw-gL.js} +2 -2
  53. package/chunks/{Tabs.DyP4whX0.js → Tabs.BvG-OPWa.js} +1 -1
  54. package/chunks/Textarea.DibBqiam.js +181 -0
  55. package/chunks/{Toast.ug_RjGgF.js → Toast.ldZRNpGM.js} +1 -1
  56. package/chunks/floating-ui.react.COTL3jH5.js +2984 -0
  57. package/chunks/{useBreakpoint.BzR_yaIv.js → useBreakpoint.1txsny17.js} +8 -5
  58. package/combobox.C2XUM4fM.js +67 -0
  59. package/components/Button/Button.d.ts +5 -0
  60. package/components/Button/Button.utils.d.ts +4 -5
  61. package/components/CheckboxGroup/CheckboxGroup.d.ts +14 -1
  62. package/components/Combobox/Combobox.utils.d.ts +3 -2
  63. package/components/Combobox/CustomReactSelect/CustomReactSelect.d.ts +13 -0
  64. package/components/Fieldset/Fieldset.d.ts +14 -1
  65. package/components/Input/Input.d.ts +13 -0
  66. package/components/Input/Input.utils.d.ts +2 -2
  67. package/components/InputFile/InputFile.d.ts +13 -0
  68. package/components/InputFile/InputFile.utils.d.ts +4 -2
  69. package/components/InputNumber/InputNumber.d.ts +17 -4
  70. package/components/InputNumber/InputNumber.utils.d.ts +2 -2
  71. package/components/InputPassword/InputPassword.d.ts +13 -0
  72. package/components/InputPassword/InputPassword.utils.d.ts +2 -2
  73. package/components/InputSearch/InputSearch.d.ts +13 -0
  74. package/components/InputSearch/InputSearch.utils.d.ts +2 -2
  75. package/components/LinkButton/LinkButton.d.ts +5 -0
  76. package/components/LinkButton/LinkButton.utils.d.ts +4 -5
  77. package/components/RadioGroup/RadioGroup.d.ts +13 -0
  78. package/components/RadioGroup/RadioGroup.utils.d.ts +3 -2
  79. package/components/Scroller/Scroller.test.d.ts +1 -0
  80. package/components/Select/Select.d.ts +13 -0
  81. package/components/Select/Select.utils.d.ts +2 -2
  82. package/components/Slider/Slider.d.ts +13 -0
  83. package/components/Textarea/Textarea.d.ts +13 -0
  84. package/components/Textarea/Textarea.utils.d.ts +2 -2
  85. package/{customreactselect.BFN8cYJi.js → customreactselect.BNwzk8Qi.js} +4 -3
  86. package/{dialog.CzM_Cxp0.js → dialog.D5geKDtZ.js} +2 -2
  87. package/{drawer._A9MQ8Cj.js → drawer.ucjhpIF4.js} +2 -2
  88. package/{fieldset.CId-NtI5.js → fieldset.Crx4Cb9a.js} +3 -2
  89. package/{filelist.DgVuWpR3.js → filelist.Bcu6TZRj.js} +1 -1
  90. package/{floatingactionbutton.Bsnncudt.js → floatingactionbutton.B5hJ2At2.js} +1 -1
  91. package/{header.CelAkqtp.js → header.A77yIAH3.js} +1 -1
  92. package/index.es.js +103 -102
  93. package/input.DL_M_Pg3.js +190 -0
  94. package/{inputfile.BjgJGefV.js → inputfile.iwsNHjrc.js} +6 -5
  95. package/{inputnumber.BcrxBVv0.js → inputnumber.raC_7KIP.js} +7 -6
  96. package/{inputpassword.CddmBW-T.js → inputpassword.Brte78Sr.js} +4 -4
  97. package/{inputsearch.CFOASqrd.js → inputsearch.BP0EzFcF.js} +6 -5
  98. package/{link.f8MMZo-w.js → link.BtZeNdii.js} +2 -2
  99. package/{linkbutton.BYAvi-_V.js → linkbutton.In_ROT0Z.js} +4 -4
  100. package/{logo100years.B4d_DIiB.js → logo100years.DDzCrczW.js} +10 -10
  101. package/{megamenu.Cy9Cc-mC.js → megamenu.BurL9MfF.js} +3 -3
  102. package/{navigationtabs.Dp7D2fnc.js → navigationtabs.EbmfKv1R.js} +2 -2
  103. package/{notification.B-norGiB.js → notification.tadg6lCc.js} +2 -2
  104. package/package.json +4 -3
  105. package/partials/index.js +32 -32
  106. package/{popover.DFVDZY-m.js → popover.CXq7VoZt.js} +3 -3
  107. package/radio.pyM5ma9s.js +134 -0
  108. package/{radiogroup.DaThoMfq.js → radiogroup.sdob0iPE.js} +3 -3
  109. package/{scroller.Cu7H_VCT.js → scroller.B1LijjCF.js} +1 -1
  110. package/{select.CMdKf7tC.js → select.CZ0C3yJD.js} +5 -4
  111. package/{skiptocontent.CHVh0hbr.js → skiptocontent.CAQy194o.js} +1 -1
  112. package/slider.B3u5du_Q.js +12 -0
  113. package/{step.DKf4CHGr.js → step.DaJFsafj.js} +1 -1
  114. package/{stepper.CCP_igpJ.js → stepper.DcaZESJi.js} +3 -3
  115. package/styles/scss/ds/lib/ds-internal/_input.scss +12 -3
  116. package/styles/scss/ds/lib/ds-internal/_link-button.scss +10 -2
  117. package/styles/scss/ds/lib/link-button.scss +11 -3
  118. package/{tablist.DZgo49nZ.js → tablist.mX5nQWwH.js} +1 -1
  119. package/{tabs.BkoT7feH.js → tabs.DjWfks34.js} +2 -2
  120. package/{textarea.DMn20z4p.js → textarea.69r-5faY.js} +4 -3
  121. package/{toast.Dvs8woTH.js → toast.FzO5KoiK.js} +2 -2
  122. package/{toastmanager.pi_Fhd5t.js → toastmanager.BGIYNKkT.js} +1 -1
  123. package/{tooltip.QJe_bfO-.js → tooltip.Cj3AvYgB.js} +22 -23
  124. package/{topbar.Bxwvp9Lf.js → topbar.CAujTZAE.js} +2 -2
  125. package/utils/useIsomorphicLayoutEffect.d.ts +2 -2
  126. package/assets/Button.C8sNwIeW.css +0 -1
  127. package/assets/CustomReactSelect.E_jJFVew.css +0 -1
  128. package/assets/Fieldset.CW9dBvAo.css +0 -1
  129. package/assets/InputFile.BnIvK65P.css +0 -1
  130. package/assets/InputNumber.BoiCIR1f.css +0 -1
  131. package/assets/InputPassword.Dk3_vNLV.css +0 -1
  132. package/assets/InputSearch.C1_4cVCi.css +0 -1
  133. package/assets/LinkButton.B86yacK5.css +0 -1
  134. package/assets/RadioGroup.CM2mYOzc.css +0 -1
  135. package/assets/Select.COxLltX7.css +0 -1
  136. package/assets/Slider.DPEmJ3HD.css +0 -1
  137. package/assets/Textarea.y3MW7VW0.css +0 -1
  138. package/assets/buttonround.BN3vUDc_.css +0 -1
  139. package/assets/input.DTu4g_iA.css +0 -1
  140. package/assets/radio.CgpGvYc-.css +0 -1
  141. package/button.DHuKanZP.js +0 -13
  142. package/buttonround.CMlmEDaN.js +0 -96
  143. package/chunks/Button.DCZgBNmA.js +0 -142
  144. package/chunks/CheckboxGroup.BuFd1luB.js +0 -72
  145. package/chunks/Fieldset.DiMtr6Vw.js +0 -74
  146. package/chunks/InputFile.C8nt9Fu8.js +0 -218
  147. package/chunks/InputNumber.CbH1XJfl.js +0 -267
  148. package/chunks/InputPassword.DbdjuSiJ.js +0 -136
  149. package/chunks/InputSearch.joxmugiv.js +0 -173
  150. package/chunks/LinkButton.BZgIGgc8.js +0 -132
  151. package/chunks/RadioGroup.CexC4v2Z.js +0 -104
  152. package/chunks/Select.BEIdNMML.js +0 -164
  153. package/chunks/Slider.CR0zYHeZ.js +0 -291
  154. package/chunks/Textarea.Du2RII5u.js +0 -168
  155. package/chunks/floating-ui.dom.BT8pKtCQ.js +0 -1005
  156. package/chunks/floating-ui.react.3FjeMiuN.js +0 -1999
  157. package/combobox.jG5GRA7C.js +0 -65
  158. package/input.DuEbg7d6.js +0 -206
  159. package/radio.DHUfSPai.js +0 -126
  160. package/slider.C5dK6KcG.js +0 -11
  161. /package/components/InputNumber/{InputNumberutils.test.d.ts → InputNumber.utils.test.d.ts} +0 -0
@@ -0,0 +1,125 @@
1
+ "use client";
2
+ import { jsx as T } from "react/jsx-runtime";
3
+ import { d as X } from "./index.D-sRdssb.js";
4
+ import { c as J } from "./index.DL9mof6u.js";
5
+ import { forwardRef as Y, useState as Z } from "react";
6
+ import { D as oo } from "./Fieldset.Bk8W5h13.js";
7
+ import { DSRadio as eo } from "../radio.pyM5ma9s.js";
8
+ import { g, r as W } from "./helpers.CexwVao7.js";
9
+ import '../assets/RadioGroup.q1lQ-HIZ.css';const to = "ds-radio-group_fieldset--custom-area-above_1r3gv_1", ro = "ds-radio-group_root_1r3gv_5", so = "ds-radio-group_root--horizontal_1r3gv_13", io = "ds-radio-group_root--invalid_1r3gv_16", ao = "ds-radio-group_root--custom-area-above_1r3gv_19", no = "ds-radio-group_root--custom-area-above--horizontal_1r3gv_26", H = {
10
+ fieldsetCustomAreaAbove: to,
11
+ root: ro,
12
+ rootHorizontal: so,
13
+ rootInvalid: io,
14
+ rootCustomAreaAbove: ao,
15
+ rootCustomAreaAboveHorizontal: no
16
+ }, lo = (r) => r.some(({
17
+ hint: s
18
+ }) => !!s), co = (r) => r.some(({
19
+ customArea: s,
20
+ isCustomAreaAbove: o
21
+ }) => !!s && !o), F = (r) => r.some(({
22
+ customArea: s,
23
+ isCustomAreaAbove: o
24
+ }) => !!s && o), uo = ({
25
+ legend: r,
26
+ name: s,
27
+ options: o,
28
+ description: d,
29
+ direction: p,
30
+ hideUncheckedHints: a,
31
+ id: t,
32
+ systemFeedback: n
33
+ }) => {
34
+ if (!t && (d || n))
35
+ throw new Error(g("DSRadioGroup", 'A unique "id" prop is required when providing the description or systemFeedback property. Please add a unique "id" prop to the DSRadioGroup component.'));
36
+ if (!r)
37
+ throw new Error(g("DSRadioGroup", W("legend", "DSRadioGroup")));
38
+ if (!s)
39
+ throw new Error(g("DSRadioGroup", W("name", "DSRadioGroup")));
40
+ if (Array.isArray(o)) {
41
+ if (o.length === 0)
42
+ throw new Error(g("DSRadioGroup", "The options array must not be empty."));
43
+ } else throw new Error(g("DSRadioGroup", W("options", "DSRadioGroup")));
44
+ if (p === "horizontal" && co(o))
45
+ throw new Error(g("DSRadioGroup", "Horizontal direction is not possible when options contain a custom area without isCustomAreaAbove set to true. Please remove custom areas, change direction property to 'vertical' or set isCustomAreaAbove to true."));
46
+ p === "horizontal" && a && console.warn(g("DSRadioGroup", "Setting 'hideUncheckedHints' to 'true' is not possible when direction is 'horizontal'. Please remove 'hideUncheckedHints' or change direction property to 'vertical'."));
47
+ }, po = Y((r, s) => {
48
+ const o = X.c(66);
49
+ let d, p, a, t, n, v, m, e, A, b, C, c, z, G, R, y, E, k;
50
+ o[0] !== r ? ({
51
+ legend: n,
52
+ name: v,
53
+ options: e,
54
+ className: d,
55
+ defaultValue: p,
56
+ description: a,
57
+ direction: z,
58
+ disabled: G,
59
+ hideUncheckedHints: R,
60
+ id: t,
61
+ invalid: y,
62
+ popoverContent: A,
63
+ popoverInfoButtonProps: b,
64
+ required: E,
65
+ systemFeedback: c,
66
+ value: k,
67
+ onChange: m,
68
+ ...C
69
+ } = r, o[0] = r, o[1] = d, o[2] = p, o[3] = a, o[4] = t, o[5] = n, o[6] = v, o[7] = m, o[8] = e, o[9] = A, o[10] = b, o[11] = C, o[12] = c, o[13] = z, o[14] = G, o[15] = R, o[16] = y, o[17] = E, o[18] = k) : (d = o[1], p = o[2], a = o[3], t = o[4], n = o[5], v = o[6], m = o[7], e = o[8], A = o[9], b = o[10], C = o[11], c = o[12], z = o[13], G = o[14], R = o[15], y = o[16], E = o[17], k = o[18]);
70
+ const u = z === void 0 ? "vertical" : z, l = G === void 0 ? !1 : G, h = R === void 0 ? !1 : R, f = y === void 0 ? !1 : y, D = E === void 0 ? !1 : E;
71
+ process.env.NODE_ENV !== "production" && uo({
72
+ legend: n,
73
+ name: v,
74
+ options: e,
75
+ description: a,
76
+ direction: u,
77
+ hideUncheckedHints: h,
78
+ id: t,
79
+ systemFeedback: c
80
+ });
81
+ const [K, Q] = Z(p), N = k !== void 0, q = N ? k : K;
82
+ let x;
83
+ o[19] !== d || o[20] !== e ? (x = J({
84
+ [H.fieldsetCustomAreaAbove]: F(e)
85
+ }, d), o[19] = d, o[20] = e, o[21] = x) : x = o[21];
86
+ const V = x, M = u === "horizontal", O = f && !!c;
87
+ let I;
88
+ o[22] !== u || o[23] !== e || o[24] !== M || o[25] !== O ? (I = J(H.root, {
89
+ [H.rootHorizontal]: M,
90
+ [H.rootInvalid]: O,
91
+ [H.rootCustomAreaAbove]: F(e),
92
+ [H.rootCustomAreaAboveHorizontal]: F(e) && u === "horizontal"
93
+ }), o[22] = u, o[23] = e, o[24] = M, o[25] = O, o[26] = I) : I = o[26];
94
+ const $ = I;
95
+ let P;
96
+ o[27] !== l || o[28] !== N || o[29] !== m ? (P = (i) => {
97
+ if (l) {
98
+ i.preventDefault();
99
+ return;
100
+ }
101
+ N || Q(i.target.value), m && m(i);
102
+ }, o[27] = l, o[28] = N, o[29] = m, o[30] = P) : P = o[30];
103
+ const j = P;
104
+ let U;
105
+ o[31] !== h || o[32] !== e ? (U = lo(e) && !h, o[31] = h, o[32] = e, o[33] = U) : U = o[33];
106
+ const L = U;
107
+ let S;
108
+ o[34] !== u || o[35] !== e ? (S = F(e) && u === "horizontal" ? {
109
+ maxWidth: `calc(${e.length * 400}px + var(--ds-spacing-dynamic-xs))`
110
+ } : void 0, o[34] = u, o[35] = e, o[36] = S) : S = o[36];
111
+ let _;
112
+ o[37] !== L || o[38] !== q || o[39] !== l || o[40] !== h || o[41] !== t || o[42] !== f || o[43] !== v || o[44] !== e || o[45] !== s || o[46] !== D ? (_ = e.map((i) => /* @__PURE__ */ T(eo, { name: v, checked: i.value === q, disabled: l, fieldsetId: t, hideUncheckedHint: h, hint: i.hint, invalid: f, isBold: L, required: D, ref: i.value === q ? s : null, ...i }, t + i.label + i.value + i.hint)), o[37] = L, o[38] = q, o[39] = l, o[40] = h, o[41] = t, o[42] = f, o[43] = v, o[44] = e, o[45] = s, o[46] = D, o[47] = _) : _ = o[47];
113
+ let w;
114
+ o[48] !== $ || o[49] !== S || o[50] !== _ ? (w = /* @__PURE__ */ T("div", { className: $, style: S, children: _ }), o[48] = $, o[49] = S, o[50] = _, o[51] = w) : w = o[51];
115
+ let B;
116
+ return o[52] !== a || o[53] !== l || o[54] !== V || o[55] !== j || o[56] !== t || o[57] !== f || o[58] !== n || o[59] !== A || o[60] !== b || o[61] !== D || o[62] !== C || o[63] !== c || o[64] !== w ? (B = /* @__PURE__ */ T(oo, { id: t, legend: n, className: V, description: a, disabled: l, required: D, invalid: f, systemFeedback: c, popoverContent: A, popoverInfoButtonProps: b, ...C, role: "radiogroup", onChange: j, children: w }), o[52] = a, o[53] = l, o[54] = V, o[55] = j, o[56] = t, o[57] = f, o[58] = n, o[59] = A, o[60] = b, o[61] = D, o[62] = C, o[63] = c, o[64] = w, o[65] = B) : B = o[65], B;
117
+ });
118
+ po.displayName = "DSRadioGroup";
119
+ export {
120
+ po as D,
121
+ co as a,
122
+ F as b,
123
+ lo as o,
124
+ uo as v
125
+ };
@@ -0,0 +1,147 @@
1
+ "use client";
2
+ import { jsxs as b, jsx as a } from "react/jsx-runtime";
3
+ import { c as o } from "./index.DL9mof6u.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.D-sRdssb.js";
7
+ import { Asterisk as G } from "../asterisk.B2ih8VwF.js";
8
+ import { D as ee } from "./Icon.CDLyB7Pv.js";
9
+ import { D as le } from "./Popover.C9tT8xkE.js";
10
+ import { D as se } from "./SystemFeedback.CjlARKki.js";
11
+ import { g as n, r as te } from "./helpers.CexwVao7.js";
12
+ import '../assets/Select.CL0fqx7X.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
+ };
@@ -0,0 +1,306 @@
1
+ "use client";
2
+ import { jsx as b, jsxs as oe } from "react/jsx-runtime";
3
+ import { d as mt } from "./index.D-sRdssb.js";
4
+ import { c as v } from "./index.DL9mof6u.js";
5
+ import { forwardRef as bt, useState as tt, useRef as ft } from "react";
6
+ import { u as _t } from "./useBreakpoint.1txsny17.js";
7
+ import { DSInput as ht } from "../input.DL_M_Pg3.js";
8
+ import { D as vt } from "./Popover.C9tT8xkE.js";
9
+ import { g as lt } from "./helpers.CexwVao7.js";
10
+ import '../assets/Slider.DWLuIsNj.css';const Tt = "ds-slider_root_3zq13_1", xt = "ds-slider_hint_3zq13_4", gt = "ds-slider_label-wrapper_3zq13_4", kt = "ds-slider_label-hint-input-wrapper_3zq13_7", Nt = "ds-slider_number-input_3zq13_10", St = "ds-slider_label-wrapper--hidden_3zq13_20", Dt = "ds-slider_label_3zq13_4", yt = "ds-slider_label--disabled_3zq13_55", It = "ds-slider_number-input--small_3zq13_84", qt = "ds-slider_min-max-label-wrapper_3zq13_89", zt = "ds-slider_min-max-label-wrapper--disabled_3zq13_103", Mt = "ds-slider_min-label_3zq13_108", Lt = "ds-slider_max-label_3zq13_112", Wt = "ds-slider_slider-wrapper_3zq13_116", wt = "ds-slider_slider_3zq13_116", Vt = "ds-slider_value-tooltip_3zq13_135", Ct = "ds-slider_proxy-thumb_3zq13_139", Pt = "ds-slider_proxy-thumb--disabled_3zq13_217", $t = "ds-slider_custom-track_3zq13_246", At = "ds-slider_custom-track--progress_3zq13_251", Et = "ds-slider_custom-track--runnable_3zq13_263", Rt = "ds-slider_custom-track--disabled_3zq13_277", Ft = "ds-slider_tick-wrapper_3zq13_297", Bt = "ds-slider_tick_3zq13_297", Ht = "ds-slider_value-tooltip--visible_3zq13_356", Ot = "ds-slider_value-tooltip--disabled_3zq13_359", s = {
11
+ root: Tt,
12
+ hint: xt,
13
+ labelWrapper: gt,
14
+ labelHintInputWrapper: kt,
15
+ numberInput: Nt,
16
+ labelWrapperHidden: St,
17
+ label: Dt,
18
+ labelDisabled: yt,
19
+ numberInputSmall: It,
20
+ minMaxLabelWrapper: qt,
21
+ minMaxLabelWrapperDisabled: zt,
22
+ minLabel: Mt,
23
+ maxLabel: Lt,
24
+ sliderWrapper: Wt,
25
+ slider: wt,
26
+ valueTooltip: Vt,
27
+ proxyThumb: Ct,
28
+ proxyThumbDisabled: Pt,
29
+ customTrack: $t,
30
+ customTrackProgress: At,
31
+ customTrackRunnable: Et,
32
+ customTrackDisabled: Rt,
33
+ tickWrapper: Ft,
34
+ tick: Bt,
35
+ valueTooltipVisible: Ht,
36
+ valueTooltipDisabled: Ot
37
+ }, Kt = 11, st = 4, at = (p) => p.toString().length, jt = (p, r, e) => {
38
+ if (r === 0)
39
+ return !0;
40
+ const u = 1e-10, o = (p - e) / r;
41
+ return Math.abs(Math.round(o) - o) < u;
42
+ }, Ut = (p, r, e, u) => {
43
+ const o = parseFloat(r), f = e, n = Math.round((p - f) / o);
44
+ let c = f + n * o;
45
+ c = Math.min(Math.max(c, e), u);
46
+ const x = o.toString().split(".")[1]?.length || 0;
47
+ return parseFloat(c.toFixed(x));
48
+ }, Gt = (p, r, e) => {
49
+ const u = (p - r) / (e - r) * 100, o = `calc(-0.24 * ${u}px + 10px)`;
50
+ return `calc(${u}% + ${o})`;
51
+ }, Xt = ({
52
+ id: p,
53
+ label: r
54
+ }) => {
55
+ if (!p)
56
+ throw new Error(lt("DSSlider", 'A unique "id" prop is required. Please add a unique "id" prop to the DSSlider component.'));
57
+ if (!r)
58
+ throw new Error(lt("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
+ }, Jt = bt((p, r) => {
60
+ const e = mt.c(165);
61
+ let u, o, f, n, c, x, m, g, D, y, Y, Z, ee, te, le, se, ae, k;
62
+ e[0] !== p ? ({
63
+ id: n,
64
+ label: c,
65
+ className: u,
66
+ defaultValue: o,
67
+ disabled: Y,
68
+ hideLabel: Z,
69
+ hideNumberInput: ee,
70
+ hint: f,
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: m,
80
+ ...y
81
+ } = p, e[0] = p, e[1] = u, e[2] = o, e[3] = f, e[4] = n, e[5] = c, e[6] = x, e[7] = m, e[8] = g, e[9] = D, e[10] = y, e[11] = Y, e[12] = Z, e[13] = ee, e[14] = te, e[15] = le, e[16] = se, e[17] = ae, e[18] = k) : (u = e[1], o = e[2], f = e[3], n = e[4], c = e[5], x = e[6], m = e[7], g = e[8], D = e[9], y = 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, it = Z === void 0 ? !1 : Z, I = ee === void 0 ? !1 : ee, Le = te === void 0 ? !1 : te, rt = le === void 0 ? 100 : le, ot = se === void 0 ? 0 : se, ie = ae === void 0 ? 1 : ae;
83
+ process.env.NODE_ENV !== "production" && Xt({
84
+ id: n,
85
+ label: c
86
+ });
87
+ const i = Number(rt), t = Number(ot), d = Number(ie), q = _t(it), z = `${n}-label`, We = `${n}-hint`, we = `${n}-number-input`;
88
+ let ne;
89
+ e[19] !== o || e[20] !== t || e[21] !== k ? (ne = k || o || t.toString() || "0", e[19] = o, e[20] = t, e[21] = k, e[22] = ne) : ne = e[22];
90
+ const [M, ce] = tt(ne), [T, de] = tt(k || o || t || 0), nt = ft(null);
91
+ let pe;
92
+ e[23] !== r ? (pe = (l) => {
93
+ nt.current = l, typeof r == "function" ? r(l) : r && (r.current = l);
94
+ }, e[23] = r, e[24] = pe) : pe = e[24];
95
+ const Ve = pe;
96
+ let ue;
97
+ e[25] !== x ? (ue = x || {}, e[25] = x, e[26] = ue) : ue = e[26];
98
+ const {
99
+ size: et,
100
+ suffix: Ce
101
+ } = ue, me = et === void 0 ? "medium" : et;
102
+ let be;
103
+ e[27] !== m ? (be = (l) => {
104
+ const _ = parseFloat(l.target.value);
105
+ de(_), ce(l.target.value), m && m(l);
106
+ }, e[27] = m, e[28] = be) : be = e[28];
107
+ const Pe = be;
108
+ let fe;
109
+ e[29] === Symbol.for("react.memo_cache_sentinel") ? (fe = (l) => {
110
+ const _ = l.target.value;
111
+ if (ce(_), /^-?\d+(\.\d+)?$/.test(_)) {
112
+ const h = parseFloat(_);
113
+ Number.isNaN(h) || de(h);
114
+ }
115
+ }, e[29] = fe) : fe = e[29];
116
+ const ct = fe;
117
+ let N;
118
+ if (e[30] !== M || e[31] !== m || e[32] !== i || e[33] !== t || e[34] !== ie) {
119
+ N = (_) => {
120
+ const re = parseFloat(M);
121
+ if (Number.isNaN(re)) {
122
+ l(_);
123
+ return;
124
+ }
125
+ let h = Math.min(Math.max(re, t), i);
126
+ jt(h, parseFloat(ie), t) || (h = Ut(h, ie, t, i)), ce(h.toString()), de(h), m && m(_);
127
+ };
128
+ const l = (_) => {
129
+ ce(t.toString()), de(t), m && m(_);
130
+ };
131
+ e[30] = M, e[31] = m, e[32] = i, e[33] = t, e[34] = ie, e[35] = N;
132
+ } else
133
+ N = e[35];
134
+ const L = (d === 0 ? !1 : (i - t) / d <= Kt) && (i - t) / d || 0;
135
+ let _e;
136
+ if (e[36] !== i || e[37] !== t || e[38] !== d || e[39] !== L) {
137
+ let l;
138
+ e[41] !== i || e[42] !== t || e[43] !== d ? (l = (_, re) => {
139
+ const h = t + re * d, ut = Gt(h, t, i);
140
+ return /* @__PURE__ */ b("span", { className: s.tick, style: {
141
+ left: ut
142
+ } }, h);
143
+ }, e[41] = i, e[42] = t, e[43] = d, e[44] = l) : l = e[44], _e = Array.from({
144
+ length: L + 1
145
+ }, l), e[36] = i, e[37] = t, e[38] = d, e[39] = L, e[40] = _e;
146
+ } else
147
+ _e = e[40];
148
+ const $e = _e;
149
+ let he;
150
+ e[45] !== i || e[46] !== t || e[47] !== T ? (he = () => {
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] = he) : he = e[48];
156
+ const S = he;
157
+ let ve;
158
+ e[49] !== S ? (ve = () => {
159
+ const l = S();
160
+ return l < 50 ? `calc(${l}% + 4px)` : `calc(${l}% - 4px)`;
161
+ }, e[49] = S, e[50] = ve) : ve = e[50];
162
+ const dt = ve;
163
+ let Te;
164
+ e[51] !== S ? (Te = () => {
165
+ const l = 100 - S();
166
+ return l < 50 ? `calc(${l}% + 4px)` : `calc(${l}% - 4px)`;
167
+ }, e[51] = S, e[52] = Te) : Te = e[52];
168
+ const pt = Te;
169
+ let xe;
170
+ e[53] !== u ? (xe = v(s.slider, u), e[53] = u, e[54] = xe) : xe = e[54];
171
+ const Ae = xe;
172
+ let ge;
173
+ e[55] !== a ? (ge = v(s.label, {
174
+ [s.labelDisabled]: a
175
+ }), e[55] = a, e[56] = ge) : ge = e[56];
176
+ const Ee = ge;
177
+ let ke;
178
+ e[57] !== q ? (ke = v(s.labelWrapper, {
179
+ [s.labelWrapperHidden]: q
180
+ }), e[57] = q, e[58] = ke) : ke = e[58];
181
+ const Re = ke, Fe = me === "small";
182
+ let Ne;
183
+ e[59] !== Fe ? (Ne = v(s.numberInput, {
184
+ [s.numberInputSmall]: Fe
185
+ }), e[59] = Fe, e[60] = Ne) : Ne = e[60];
186
+ const Be = Ne;
187
+ let Se;
188
+ e[61] !== a ? (Se = v(s.minMaxLabelWrapper, {
189
+ [s.minMaxLabelWrapperDisabled]: a
190
+ }), e[61] = a, e[62] = Se) : Se = e[62];
191
+ const He = Se;
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 ye;
198
+ e[65] !== a ? (ye = v(s.customTrack, s.customTrackRunnable, {
199
+ [s.customTrackDisabled]: a
200
+ }), e[65] = a, e[66] = ye) : ye = e[66];
201
+ const Ke = ye;
202
+ let Ie;
203
+ e[67] !== a ? (Ie = v(s.proxyThumb, {
204
+ [s.proxyThumbDisabled]: a
205
+ }), e[67] = a, e[68] = Ie) : Ie = e[68];
206
+ const je = Ie;
207
+ let qe;
208
+ e[69] !== a || e[70] !== Le ? (qe = v(s.valueTooltip, {
209
+ [s.valueTooltipVisible]: Le,
210
+ [s.valueTooltipDisabled]: a
211
+ }), e[69] = a, e[70] = Le, e[71] = qe) : qe = e[71];
212
+ const Ue = qe;
213
+ let W;
214
+ e[72] !== n || e[73] !== c || e[74] !== Ee || e[75] !== z ? (W = /* @__PURE__ */ b("label", { className: Ee, htmlFor: n, id: z, children: c }), e[72] = n, e[73] = c, e[74] = Ee, e[75] = z, e[76] = W) : W = e[76];
215
+ let w;
216
+ e[77] !== q || e[78] !== g || e[79] !== D ? (w = g && !q && /* @__PURE__ */ b(vt, { placement: "top", defaultAnchorButtonProps: D, children: g }), e[77] = q, 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] !== f || e[86] !== We ? (C = f && /* @__PURE__ */ b("div", { className: s.hint, id: We, children: f }), e[85] = f, e[86] = We, e[87] = C) : C = e[87];
224
+ let P;
225
+ e[88] !== a || e[89] !== N || e[90] !== I || e[91] !== we || e[92] !== M || e[93] !== c || e[94] !== Be || e[95] !== me || e[96] !== Ce || e[97] !== i || e[98] !== t || e[99] !== d ? (P = !I && /* @__PURE__ */ b(ht, { id: we, className: Be, type: "number", min: t, max: i, step: d, inputMode: "decimal", autoComplete: "off", disabled: a, hideLabel: !0, value: M, onChange: ct, onBlur: N, onKeyDown: (l) => {
226
+ l.key === "Enter" && (l.preventDefault(), N(l));
227
+ }, label: c, size: me, suffix: Ce }), e[88] = a, e[89] = N, e[90] = I, e[91] = we, e[92] = M, e[93] = c, e[94] = Be, e[95] = me, e[96] = Ce, e[97] = i, e[98] = t, e[99] = d, e[100] = P) : P = e[100];
228
+ let $;
229
+ e[101] !== V || e[102] !== C || e[103] !== P ? ($ = /* @__PURE__ */ oe("div", { className: s.labelHintInputWrapper, children: [
230
+ V,
231
+ C,
232
+ P
233
+ ] }), e[101] = V, e[102] = C, e[103] = P, e[104] = $) : $ = e[104];
234
+ const Ge = at(t) < st;
235
+ let A;
236
+ e[105] !== Ge ? (A = v({
237
+ [s.minLabel]: Ge
238
+ }), e[105] = Ge, e[106] = A) : A = e[106];
239
+ let E;
240
+ e[107] !== t || e[108] !== A ? (E = /* @__PURE__ */ b("div", { className: A, children: t }), e[107] = t, e[108] = A, e[109] = E) : E = e[109];
241
+ const Xe = at(i) < st;
242
+ let R;
243
+ e[110] !== Xe ? (R = v({
244
+ [s.maxLabel]: Xe
245
+ }), e[110] = Xe, e[111] = R) : R = e[111];
246
+ let F;
247
+ e[112] !== i || e[113] !== R ? (F = /* @__PURE__ */ b("div", { className: R, children: i }), e[112] = i, e[113] = R, e[114] = F) : F = e[114];
248
+ let B;
249
+ e[115] !== He || e[116] !== E || e[117] !== F ? (B = /* @__PURE__ */ oe("div", { className: He, children: [
250
+ E,
251
+ F
252
+ ] }), e[115] = He, e[116] = E, e[117] = F, e[118] = B) : B = e[118];
253
+ const Je = `${S()}`;
254
+ let ze;
255
+ e[119] !== Je ? (ze = {
256
+ "--ds-input-slider-thumb-position": Je
257
+ }, e[119] = Je, e[120] = ze) : ze = e[120];
258
+ const Qe = ze, Ye = dt();
259
+ let H;
260
+ e[121] !== Ye ? (H = {
261
+ width: Ye
262
+ }, e[121] = Ye, e[122] = H) : H = e[122];
263
+ let O;
264
+ e[123] !== Oe || e[124] !== H ? (O = /* @__PURE__ */ b("div", { className: Oe, style: H }), e[123] = Oe, e[124] = H, e[125] = O) : O = e[125];
265
+ const Ze = pt();
266
+ let K;
267
+ e[126] !== Ze ? (K = {
268
+ width: Ze
269
+ }, e[126] = Ze, e[127] = K) : K = e[127];
270
+ let j;
271
+ e[128] !== Ke || e[129] !== K ? (j = /* @__PURE__ */ b("div", { className: Ke, style: K }), e[128] = Ke, e[129] = K, e[130] = j) : j = e[130];
272
+ let U;
273
+ e[131] !== a || e[132] !== Ve || e[133] !== Pe || e[134] !== n || e[135] !== i || e[136] !== t || e[137] !== d || e[138] !== y || e[139] !== Ae || e[140] !== z || e[141] !== T ? (U = /* @__PURE__ */ b("input", { ...y, id: n, type: "range", ref: Ve, className: Ae, min: t, max: i, step: d, value: T, disabled: a, "aria-labelledby": z, onChange: Pe }), e[131] = a, e[132] = Ve, e[133] = Pe, e[134] = n, e[135] = i, e[136] = t, e[137] = d, e[138] = y, e[139] = Ae, e[140] = z, e[141] = T, e[142] = U) : U = e[142];
274
+ let G;
275
+ e[143] !== L || e[144] !== $e ? (G = L > 0 && /* @__PURE__ */ b("div", { className: s.tickWrapper, children: $e }), e[143] = L, e[144] = $e, e[145] = G) : G = e[145];
276
+ let X;
277
+ e[146] !== je ? (X = /* @__PURE__ */ b("div", { className: je }), e[146] = je, e[147] = X) : X = e[147];
278
+ let J;
279
+ e[148] !== a || e[149] !== I || e[150] !== T || e[151] !== Ue ? (J = I && /* @__PURE__ */ b("div", { className: Ue, "aria-disabled": a, children: T }), e[148] = a, e[149] = I, e[150] = T, e[151] = Ue, e[152] = J) : J = e[152];
280
+ let Q;
281
+ e[153] !== Qe || e[154] !== O || e[155] !== j || e[156] !== U || e[157] !== G || e[158] !== X || e[159] !== J ? (Q = /* @__PURE__ */ oe("div", { className: s.sliderWrapper, style: Qe, children: [
282
+ O,
283
+ j,
284
+ U,
285
+ G,
286
+ X,
287
+ J
288
+ ] }), e[153] = Qe, e[154] = O, e[155] = j, e[156] = U, e[157] = G, e[158] = X, e[159] = J, e[160] = Q) : Q = e[160];
289
+ let Me;
290
+ return e[161] !== $ || e[162] !== B || e[163] !== Q ? (Me = /* @__PURE__ */ oe("div", { className: s.root, children: [
291
+ $,
292
+ B,
293
+ Q
294
+ ] }), e[161] = $, e[162] = B, e[163] = Q, e[164] = Me) : Me = e[164], Me;
295
+ });
296
+ Jt.displayName = "DSSlider";
297
+ export {
298
+ Jt as D,
299
+ st as L,
300
+ Kt as M,
301
+ Gt as a,
302
+ at as g,
303
+ jt as i,
304
+ Ut as s,
305
+ Xt as v
306
+ };
@@ -8,8 +8,8 @@ import { t as H } from "./translate.nuU7uChI.js";
8
8
  import { u as L } from "./useIsomorphicLayoutEffect.CnJ9AMFS.js";
9
9
  import "./index.D-sRdssb.js";
10
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";
11
+ import { DSScroller as F } from "../scroller.B1LijjCF.js";
12
+ import { StepperStep as G } from "../step.DaJFsafj.js";
13
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
14
  root: J,
15
15
  rootVertical: K,
@@ -2,7 +2,7 @@
2
2
  import { jsx as N, jsxs as C } from "react/jsx-runtime";
3
3
  import { d as L } from "./index.D-sRdssb.js";
4
4
  import { useState as M } from "react";
5
- import { TabList as $ } from "../tablist.DZgo49nZ.js";
5
+ import { TabList as $ } from "../tablist.mX5nQWwH.js";
6
6
  import { TabPane as j } from "../tabpane.C4nsUlwc.js";
7
7
  import { g as B } from "./TabPane.utils.DG16Y2uD.js";
8
8
  import { g, r as O } from "./helpers.CexwVao7.js";