@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.
Files changed (251) hide show
  1. package/accordion.Dmqocj97.js +12 -0
  2. package/actionbutton.DLQJU6AV.js +12 -0
  3. package/actionlink.DEBrWfN3.js +12 -0
  4. package/{arialiveregions.Fgcshs5k.js → arialiveregions.BUVY9NpY.js} +2 -2
  5. package/assets/Accordion.CzBGud45.css +1 -0
  6. package/assets/Button.C8sNwIeW.css +1 -0
  7. package/assets/Checkbox.CyOw3rXI.css +1 -0
  8. package/assets/CustomReactSelect.E_jJFVew.css +1 -0
  9. package/assets/Dialog.DJkn65Es.css +1 -0
  10. package/assets/Drawer.x3BCQvWE.css +1 -0
  11. package/assets/InputFile.BnIvK65P.css +1 -0
  12. package/assets/InputNumber.BoiCIR1f.css +1 -0
  13. package/assets/InputPassword.Dk3_vNLV.css +1 -0
  14. package/assets/InputSearch.C1_4cVCi.css +1 -0
  15. package/assets/LinkButton.B86yacK5.css +1 -0
  16. package/assets/{MegaMenu.DX9gChtY.css → MegaMenu.D5EtjFeL.css} +1 -1
  17. package/assets/Notification.CvohYEvT.css +1 -0
  18. package/assets/Select.COxLltX7.css +1 -0
  19. package/assets/Slider.DPEmJ3HD.css +1 -0
  20. package/assets/Stepper.tXJl15yL.css +1 -0
  21. package/assets/{SystemFeedback.RcrPepSZ.css → SystemFeedback.PKzqnXUe.css} +1 -1
  22. package/assets/Textarea.y3MW7VW0.css +1 -0
  23. package/assets/Toast.CGyKXb4V.css +1 -0
  24. package/assets/buttonround.BN3vUDc_.css +1 -0
  25. package/assets/input.DTu4g_iA.css +1 -0
  26. package/assets/step.BeLporJO.css +1 -0
  27. package/assets/switch.B9B-n_3y.css +1 -0
  28. package/{asterisk.CR60hx8S.js → asterisk.B2ih8VwF.js} +1 -1
  29. package/{banner.o4Etkjjo.js → banner.CI5HnDqD.js} +3 -3
  30. package/breadcrumb.CtwAux3P.js +11 -0
  31. package/button.DHuKanZP.js +13 -0
  32. package/{buttonround.ChKWHzsv.js → buttonround.CMlmEDaN.js} +6 -6
  33. package/checkbox.DwccD0Mp.js +12 -0
  34. package/checkboxgroup.ZiUFfCJ1.js +9 -0
  35. package/chip.B0s_fS8L.js +12 -0
  36. package/chipgroup.Dpu66bo5.js +143 -0
  37. package/chunks/Accordion.CYIfNOWr.js +168 -0
  38. package/chunks/{ActionButton.DdDesD7K.js → ActionButton.DOYsEHPr.js} +37 -37
  39. package/chunks/{ActionLink.DqAsPYda.js → ActionLink.DbyciN3Y.js} +36 -36
  40. package/chunks/{AriaLiveRegions.utils.Cb327d_2.js → AriaLiveRegions.utils.CybNIBSa.js} +2 -2
  41. package/chunks/{Breadcrumb.9KinNuyQ.js → Breadcrumb.BgnpTo01.js} +35 -37
  42. package/chunks/{Button.Cf1CKq8N.js → Button.DCZgBNmA.js} +8 -8
  43. package/chunks/Checkbox.BcGXAuuP.js +88 -0
  44. package/chunks/{CheckboxGroup.Cj68J6Ee.js → CheckboxGroup.BuFd1luB.js} +5 -5
  45. package/chunks/{Chip.BrbYu6i_.js → Chip.D6pubCZV.js} +6 -6
  46. package/chunks/{CustomReactSelect.Cqq70QC0.js → CustomReactSelect.Dg3wC_VH.js} +450 -447
  47. package/chunks/Dialog.DpqSVrYR.js +102 -0
  48. package/chunks/Drawer.DISWybOa.js +107 -0
  49. package/chunks/{Fieldset.D7cLR5ze.js → Fieldset.DiMtr6Vw.js} +6 -6
  50. package/chunks/Header.7TQL_J9t.js +370 -0
  51. package/chunks/{Icon.NSsVrYeq.js → Icon.CDLyB7Pv.js} +77 -79
  52. package/chunks/{Input.utils.Cnnzvuk4.js → Input.utils.Dkw7gRrr.js} +17 -17
  53. package/chunks/InputFile.C8nt9Fu8.js +218 -0
  54. package/chunks/InputNumber.CbH1XJfl.js +267 -0
  55. package/chunks/{InputPassword.Da3hEKTc.js → InputPassword.DbdjuSiJ.js} +34 -34
  56. package/chunks/InputSearch.joxmugiv.js +173 -0
  57. package/chunks/{LinkButton.59oNDwPU.js → LinkButton.BZgIGgc8.js} +7 -7
  58. package/chunks/MegaMenu.CQbOeaib.js +189 -0
  59. package/chunks/NavigationTabList.G_l0GiUa.js +67 -0
  60. package/chunks/{NavigationTabs.DspPFHPh.js → NavigationTabs.BwM-6CRm.js} +13 -14
  61. package/chunks/Notification.CrojkJ0E.js +91 -0
  62. package/chunks/Popover.Bb0Pjmvg.js +215 -0
  63. package/chunks/{RadioGroup.DeTz3c19.js → RadioGroup.CexC4v2Z.js} +5 -5
  64. package/chunks/Select.BEIdNMML.js +164 -0
  65. package/chunks/{Slider.84lkgq3W.js → Slider.CR0zYHeZ.js} +83 -84
  66. package/chunks/Stepper.PTQdQBYf.js +152 -0
  67. package/chunks/{SystemFeedback.CyGbUCzT.js → SystemFeedback.CjlARKki.js} +9 -9
  68. package/chunks/Tabs.DyP4whX0.js +83 -0
  69. package/chunks/{Text.DGWeWF1y.js → Text.DpRtTpB4.js} +3 -3
  70. package/chunks/Textarea.Du2RII5u.js +168 -0
  71. package/chunks/Toast.ug_RjGgF.js +76 -0
  72. package/chunks/{arrow-clockwise.BefOjGPg.js → arrow-clockwise.C4iOgjOc.js} +1 -1
  73. package/chunks/{arrow-counterclockwise.C7Ov32BZ.js → arrow-counterclockwise.CgQAuBUe.js} +1 -1
  74. package/chunks/{circle-check-colored.Bye_GwLy.js → circle-check-colored.qP2s3vjI.js} +1 -1
  75. package/chunks/{diamond-exclamationmark-colored.WNKYwZ8q.js → diamond-exclamationmark-colored.CzYiaTZ0.js} +1 -1
  76. package/chunks/feather.l1E4nFBx.js +10 -0
  77. package/chunks/file-type-doc.B_RSSYbu.js +10 -0
  78. package/chunks/floating-ui.dom.BT8pKtCQ.js +1005 -0
  79. package/chunks/floating-ui.react.3FjeMiuN.js +1999 -0
  80. package/chunks/helpers.CexwVao7.js +38 -0
  81. package/chunks/{index.CgTHIF3K.js → index.D-sRdssb.js} +1 -1
  82. package/chunks/{index.CEyLAtio.js → index.DL9mof6u.js} +2 -2
  83. package/chunks/{is-animation-disabled.CUl4N3LI.js → is-animation-disabled.B-V_68K-.js} +5 -5
  84. package/chunks/{map.CXgG1iGz.js → map.DNl7PF61.js} +1 -1
  85. package/chunks/moon.5yILPYXs.js +10 -0
  86. package/chunks/muscle.DbNjWasV.js +10 -0
  87. package/chunks/petrol.BGWwCsTw.js +10 -0
  88. package/chunks/sun.CY6ttzTL.js +10 -0
  89. package/chunks/{triangle-exclamationmark-colored.CbVC3Gzi.js → triangle-exclamationmark-colored.e93zvQ6Q.js} +1 -1
  90. package/chunks/upload.BogDfonx.js +10 -0
  91. package/chunks/useBreakpoint.BzR_yaIv.js +42 -0
  92. package/chunks/variants.-R3_RCW8.js +10 -0
  93. package/chunks/weight.DUPu2UT0.js +10 -0
  94. package/combobox.jG5GRA7C.js +65 -0
  95. package/components/ChipGroup/ChipGroup.utils.d.ts +1 -3
  96. package/components/Combobox/Combobox.utils.d.ts +3 -4
  97. package/components/Combobox/CustomReactSelect/CustomReactSelect.d.ts +4 -2
  98. package/components/{InputStepper/InputStepper.d.ts → InputNumber/InputNumber.d.ts} +4 -4
  99. package/components/InputNumber/InputNumber.utils.d.ts +13 -0
  100. package/components/Scroller/Scroller.d.ts +6 -2
  101. package/components/Stepper/Step.d.ts +33 -0
  102. package/components/Stepper/Step.utils.d.ts +5 -0
  103. package/components/Stepper/Stepper.d.ts +56 -0
  104. package/components/Stepper/Stepper.test.d.ts +1 -0
  105. package/components/Stepper/Stepper.utils.d.ts +30 -0
  106. package/components/Stepper/Stepper.utils.test.d.ts +1 -0
  107. package/customreactselect.BFN8cYJi.js +14 -0
  108. package/dialog.CzM_Cxp0.js +9 -0
  109. package/drawer._A9MQ8Cj.js +9 -0
  110. package/fieldset.CId-NtI5.js +11 -0
  111. package/{filelist.BiKMKCyg.js → filelist.DgVuWpR3.js} +23 -24
  112. package/{flag.72PONA83.js → flag.CE32qHPa.js} +3 -3
  113. package/{floatingactionbutton.B2YChsNU.js → floatingactionbutton.Bsnncudt.js} +5 -5
  114. package/header.CelAkqtp.js +12 -0
  115. package/{heading.BXFBZhKv.js → heading.DHLpT4dc.js} +2 -2
  116. package/icon.vzkPwgjZ.js +9 -0
  117. package/index.d.ts +4 -2
  118. package/index.es.js +218 -206
  119. package/input.DuEbg7d6.js +206 -0
  120. package/inputfile.BjgJGefV.js +17 -0
  121. package/inputnumber.BcrxBVv0.js +16 -0
  122. package/inputnumber.d.ts +2 -0
  123. package/inputpassword.CddmBW-T.js +13 -0
  124. package/inputsearch.CFOASqrd.js +14 -0
  125. package/{link.DbnvsD3j.js → link.f8MMZo-w.js} +5 -5
  126. package/linkbutton.BYAvi-_V.js +12 -0
  127. package/{logo.C96KaG1P.js → logo.DprmD8HU.js} +3 -3
  128. package/{logo100years.BcB6_c-o.js → logo100years.B4d_DIiB.js} +1 -1
  129. package/megamenu.Cy9Cc-mC.js +12 -0
  130. package/navigationtablist.CkkLyHrM.js +10 -0
  131. package/navigationtabs.Dp7D2fnc.js +9 -0
  132. package/notification.B-norGiB.js +10 -0
  133. package/{numberindicator.Ddf3ESi7.js → numberindicator.BdnPMogE.js} +2 -2
  134. package/{optioncheckbox.DqfXuPdi.js → optioncheckbox.nBVwGv6c.js} +3 -3
  135. package/package.json +41 -50
  136. package/partials/index.js +56 -50
  137. package/partials/lib/partials.d.ts +1 -1
  138. package/popover.DFVDZY-m.js +12 -0
  139. package/{radio.7_N_alaS.js → radio.DHUfSPai.js} +2 -2
  140. package/radiogroup.DaThoMfq.js +11 -0
  141. package/scroller.Cu7H_VCT.js +98 -0
  142. package/select.CMdKf7tC.js +13 -0
  143. package/{skiptocontent.BSCde5hT.js → skiptocontent.CHVh0hbr.js} +4 -4
  144. package/slider.C5dK6KcG.js +11 -0
  145. package/{spinner.BUjhjAvw.js → spinner.C9qCeq0R.js} +18 -18
  146. package/step.DKf4CHGr.js +82 -0
  147. package/step.d.ts +6 -0
  148. package/stepper.CCP_igpJ.js +16 -0
  149. package/stepper.d.ts +2 -0
  150. package/{switch.D7BCfyyZ.js → switch.Bqdyzi2E.js} +5 -5
  151. package/systemfeedback.O7tj1juR.js +10 -0
  152. package/tablist.DZgo49nZ.js +209 -0
  153. package/{tabpane.CB-eudyw.js → tabpane.C4nsUlwc.js} +2 -2
  154. package/tabs.BkoT7feH.js +11 -0
  155. package/text.cLv2PhjQ.js +10 -0
  156. package/textarea.DMn20z4p.js +13 -0
  157. package/{title.Bz_k5Vda.js → title.DuLPB-VK.js} +2 -2
  158. package/toast.Dvs8woTH.js +11 -0
  159. package/toastmanager.pi_Fhd5t.js +89 -0
  160. package/tooltip.QJe_bfO-.js +178 -0
  161. package/topbar.Bxwvp9Lf.js +12 -0
  162. package/types/icon-types.d.ts +1 -1
  163. package/utils/index.d.ts +1 -0
  164. package/utils/mergeRefs.d.ts +5 -0
  165. package/utils/mergeRefs.test.d.ts +1 -0
  166. package/accordion.HfUSDwQJ.js +0 -12
  167. package/actionbutton.kgd0E_xF.js +0 -12
  168. package/actionlink.CwC42RWc.js +0 -12
  169. package/assets/Accordion.BJb4TOG0.css +0 -1
  170. package/assets/Button.Dw8H5nFS.css +0 -1
  171. package/assets/Checkbox.BKHQN_tu.css +0 -1
  172. package/assets/CustomReactSelect.DGIItWIh.css +0 -1
  173. package/assets/Dialog.CGAg7bnN.css +0 -1
  174. package/assets/Drawer.VOvWQoEr.css +0 -1
  175. package/assets/InputFile.CCQxsulT.css +0 -1
  176. package/assets/InputPassword.124xVOiO.css +0 -1
  177. package/assets/InputSearch.Bkg-1urJ.css +0 -1
  178. package/assets/InputStepper.DvFJk1Mi.css +0 -1
  179. package/assets/LinkButton.xMvg_ojf.css +0 -1
  180. package/assets/Notification.BOuaA5GT.css +0 -1
  181. package/assets/Select.C1gWF32A.css +0 -1
  182. package/assets/Slider.Bidyhb-B.css +0 -1
  183. package/assets/Textarea.Dq4rH9Tg.css +0 -1
  184. package/assets/Toast.CJ1zhDIT.css +0 -1
  185. package/assets/buttonround.Cw9hnUan.css +0 -1
  186. package/assets/input.CUjGh-UM.css +0 -1
  187. package/assets/switch.Bc9KIyw9.css +0 -1
  188. package/breadcrumb.BsQm0kUD.js +0 -11
  189. package/button.Dyy6ajX6.js +0 -13
  190. package/checkbox.BNnp4ztM.js +0 -12
  191. package/checkboxgroup.BTVnKenc.js +0 -9
  192. package/chip.C7NstOHt.js +0 -12
  193. package/chipgroup.Zo1-IOCn.js +0 -210
  194. package/chunks/Accordion.CnqryAUu.js +0 -170
  195. package/chunks/Checkbox.CiwriItT.js +0 -88
  196. package/chunks/Dialog.Bv7k55He.js +0 -135
  197. package/chunks/Drawer.BVTvx276.js +0 -140
  198. package/chunks/Header.um5MlziB.js +0 -377
  199. package/chunks/InputFile.bVWWdePn.js +0 -220
  200. package/chunks/InputSearch.GOYqFCcZ.js +0 -174
  201. package/chunks/InputStepper.BuhPtfl-.js +0 -268
  202. package/chunks/MegaMenu._o3nNDAa.js +0 -192
  203. package/chunks/NavigationTabList.DuT7gzhj.js +0 -57
  204. package/chunks/Notification.Pts2oh0R.js +0 -92
  205. package/chunks/Popover.BRR8YZ-P.js +0 -228
  206. package/chunks/Select.D2ehd4yN.js +0 -162
  207. package/chunks/Tabs.C8ADTzJ0.js +0 -83
  208. package/chunks/Textarea.Cw85sxHL.js +0 -163
  209. package/chunks/Toast.DG3WVvau.js +0 -76
  210. package/chunks/file-type-doc.DlovDOBh.js +0 -10
  211. package/chunks/floating-ui.dom.VgHc0h4l.js +0 -989
  212. package/chunks/floating-ui.react.DCyAzlZ4.js +0 -2011
  213. package/chunks/helpers.BbWkXTr3.js +0 -37
  214. package/chunks/petrol.Du6qAgp0.js +0 -10
  215. package/chunks/upload.ZImTAIgx.js +0 -10
  216. package/chunks/useBreakpoint.CMOR9ZOB.js +0 -44
  217. package/combobox.orZ3z8CB.js +0 -60
  218. package/components/InputStepper/InputStepper.utils.d.ts +0 -13
  219. package/customreactselect.Np-RpzvU.js +0 -14
  220. package/dialog.D4rcbW6A.js +0 -10
  221. package/drawer.BCCB3Rkj.js +0 -10
  222. package/fieldset.ZLs9IGpE.js +0 -11
  223. package/header.DUbn3BZt.js +0 -12
  224. package/icon.CHVAZr5T.js +0 -9
  225. package/input.DG20x6gh.js +0 -203
  226. package/inputfile.Dc56lQ4t.js +0 -17
  227. package/inputpassword.znFHRLsI.js +0 -13
  228. package/inputsearch.B1G6rfVk.js +0 -14
  229. package/inputstepper.d.ts +0 -2
  230. package/inputstepper.o6rdM_CW.js +0 -16
  231. package/linkbutton.DU8Ih8ZF.js +0 -12
  232. package/megamenu.CPH8EeFF.js +0 -12
  233. package/navigationtablist.C0iwsAad.js +0 -9
  234. package/navigationtabs.JjJtbuUe.js +0 -9
  235. package/notification.Ds_Q7ifk.js +0 -10
  236. package/popover.B72W0OvU.js +0 -12
  237. package/radiogroup.C_3IcNBq.js +0 -11
  238. package/scroller.CQxmQU6U.js +0 -123
  239. package/select.Ceyt-zvu.js +0 -13
  240. package/slider.Dq2dcziy.js +0 -11
  241. package/systemfeedback.CSdWOWuf.js +0 -10
  242. package/tablist.V7DBklhE.js +0 -256
  243. package/tabs.DQNLPAEN.js +0 -11
  244. package/text.ZOUuesnU.js +0 -10
  245. package/textarea.CixKeQBp.js +0 -13
  246. package/toast.D8QprMCa.js +0 -11
  247. package/toastmanager.BSVjYsg9.js +0 -116
  248. package/tooltip.CUCSRXd3.js +0 -191
  249. package/topbar.CVhJy-Br.js +0 -12
  250. /package/components/{InputStepper/InputStepper.test.d.ts → InputNumber/InputNumber.test.d.ts} +0 -0
  251. /package/components/{InputStepper/InputStepper.utils.test.d.ts → InputNumber/InputNumberutils.test.d.ts} +0 -0
@@ -1,174 +0,0 @@
1
- "use client";
2
- import { jsx as L, jsxs as gt } from "react/jsx-runtime";
3
- import { d as Vt } from "./index.CgTHIF3K.js";
4
- import { c as R } from "./index.CEyLAtio.js";
5
- import { forwardRef as Ot, useState as $t, useRef as Et, useEffect as kt } from "react";
6
- import { g as Nt, a as qt } from "./helpers.BbWkXTr3.js";
7
- import { u as xt } from "./useBreakpoint.CMOR9ZOB.js";
8
- import { Asterisk as Ft } from "../asterisk.CR60hx8S.js";
9
- import { D as At } from "./Button.Cf1CKq8N.js";
10
- import { D as Rt } from "./SystemFeedback.CyGbUCzT.js";
11
- import '../assets/InputSearch.Bkg-1urJ.css';const Tt = "ds-input-search_root_12yjy_1", zt = "ds-input-search_input_12yjy_5", Mt = "ds-input-search_input--small_12yjy_13", Wt = "ds-input-search_input--invalid_12yjy_125", Gt = "ds-input-search_input--has-action-button_12yjy_186", Jt = "ds-input-search_input--has-second-action-button_12yjy_189", Kt = "ds-input-search_hint_12yjy_231", Qt = "ds-input-search_label_12yjy_231", Ut = "ds-input-search_wrapper_12yjy_235", Xt = "ds-input-search_action-button_12yjy_241", Yt = "ds-input-search_second-action-button_12yjy_245", Zt = "ds-input-search_label--hidden_12yjy_263", te = "ds-input-search_label--disabled_12yjy_276", ee = "ds-input-search_feedback_12yjy_296", s = {
12
- root: Tt,
13
- input: zt,
14
- inputSmall: Mt,
15
- inputInvalid: Wt,
16
- inputHasActionButton: Gt,
17
- inputHasSecondActionButton: Jt,
18
- hint: Kt,
19
- label: Qt,
20
- wrapper: Ut,
21
- actionButton: Xt,
22
- secondActionButton: Yt,
23
- labelHidden: Zt,
24
- labelDisabled: te,
25
- feedback: ee
26
- }, se = ({
27
- id: a,
28
- label: i
29
- }) => {
30
- if (!a)
31
- throw new Error(Nt("DSInputSearch", 'A unique "id" prop is required. Please add a unique "id" prop to the DSInputSearch component.'));
32
- if (!i)
33
- throw new Error(Nt("DSInputSearch", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSInputSearch component. If you don't want to display a label, set hideLabel={true}.`));
34
- }, ne = (a) => !!qt(a, "form"), ae = Ot((a, i) => {
35
- const t = Vt.c(103);
36
- let l, d, e, b, f, m, y, c, H, P, V, O, $, q, x, p;
37
- t[0] !== a ? ({
38
- id: e,
39
- label: b,
40
- className: l,
41
- clearButtonLabel: H,
42
- disabled: P,
43
- hint: d,
44
- hideLabel: V,
45
- invalid: O,
46
- readonly: $,
47
- required: q,
48
- size: x,
49
- systemFeedback: c,
50
- value: p,
51
- submitButtonProps: y,
52
- onChange: f,
53
- ...m
54
- } = a, t[0] = a, t[1] = l, t[2] = d, t[3] = e, t[4] = b, t[5] = f, t[6] = m, t[7] = y, t[8] = c, t[9] = H, t[10] = P, t[11] = V, t[12] = O, t[13] = $, t[14] = q, t[15] = x, t[16] = p) : (l = t[1], d = t[2], e = t[3], b = t[4], f = t[5], m = t[6], y = t[7], c = t[8], H = t[9], P = t[10], V = t[11], O = t[12], $ = t[13], q = t[14], x = t[15], p = t[16]);
55
- const lt = H === void 0 ? "Clear search field" : H, o = P === void 0 ? !1 : P, Ct = V === void 0 ? !1 : V, n = O === void 0 ? !1 : O, r = $ === void 0 ? !1 : $, _ = q === void 0 ? !1 : q, u = x === void 0 ? "medium" : x;
56
- process.env.NODE_ENV !== "production" && se({
57
- id: e,
58
- label: b
59
- });
60
- let v;
61
- t[17] !== y ? (v = y || {}, t[17] = y, t[18] = v) : v = t[18];
62
- let S, B, F;
63
- t[19] !== v ? ({
64
- label: F,
65
- onClick: S,
66
- ...B
67
- } = v, t[19] = v, t[20] = S, t[21] = B, t[22] = F) : (S = t[20], B = t[21], F = t[22]);
68
- const ot = F === void 0 ? "Search" : F, [D, jt] = $t(p), ct = Et(null), T = Et(null);
69
- let z;
70
- t[23] !== i ? (z = (h) => {
71
- T.current = h, typeof i == "function" ? i(h) : i && (i.current = h);
72
- }, t[23] = i, t[24] = z) : z = t[24];
73
- const rt = z, ut = xt(Ct);
74
- let M, W;
75
- t[25] !== p ? (M = () => {
76
- jt(p);
77
- }, W = [p], t[25] = p, t[26] = M, t[27] = W) : (M = t[26], W = t[27]), kt(M, W);
78
- let G;
79
- t[28] !== e ? (G = () => {
80
- ct.current && !ne(ct.current) && process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && console.warn(Nt("DSInputSearch", `The DSInputSearch component with the id "${e}" is not within a form element. This may cause issues with form submission. Please ensure the DSInputSearch component is within a form element.`));
81
- }, t[28] = e, t[29] = G) : G = t[29];
82
- let J;
83
- t[30] === Symbol.for("react.memo_cache_sentinel") ? (J = [], t[30] = J) : J = t[30], kt(G, J);
84
- const K = `${e}-label`, I = `${e}-feedback`, Q = `${e}-hint`, Lt = d ? ` ${Q}` : "";
85
- let U;
86
- t[31] !== n || t[32] !== c || t[33] !== I ? (U = [n && c && I].filter(Boolean).join(" ") || void 0, t[31] = n, t[32] = c, t[33] = I, t[34] = U) : U = t[34];
87
- const dt = U, X = D !== "" && D !== void 0 && D !== null;
88
- let Y;
89
- t[35] !== l ? (Y = R(s.root, l), t[35] = l, t[36] = Y) : Y = t[36];
90
- const pt = Y, ht = u === "small", bt = X && !r && !o;
91
- let Z;
92
- t[37] !== n || t[38] !== ht || t[39] !== bt ? (Z = R(s.input, {
93
- [s.inputSmall]: ht,
94
- [s.inputInvalid]: n,
95
- [s.inputHasActionButton]: !0,
96
- [s.inputHasSecondActionButton]: bt
97
- }), t[37] = n, t[38] = ht, t[39] = bt, t[40] = Z) : Z = t[40];
98
- const ft = Z;
99
- let tt;
100
- t[41] !== o || t[42] !== ut ? (tt = R(s.label, {
101
- [s.labelHidden]: ut,
102
- [s.labelDisabled]: o
103
- }), t[41] = o, t[42] = ut, t[43] = tt) : tt = t[43];
104
- const mt = tt, yt = u === "small";
105
- let et;
106
- t[44] !== yt ? (et = R(s.actionButton, {
107
- [s.actionButtonSmall]: yt
108
- }), t[44] = yt, t[45] = et) : et = t[45];
109
- const _t = et, vt = u === "small";
110
- let st;
111
- t[46] !== vt ? (st = R(s.secondActionButton, {
112
- [s.secondActionButtonSmall]: vt
113
- }), t[46] = vt, t[47] = st) : st = t[47];
114
- const St = st, Ht = ie;
115
- let nt;
116
- t[48] === Symbol.for("react.memo_cache_sentinel") ? (nt = () => {
117
- var wt;
118
- if (!T.current)
119
- return;
120
- Ht(T.current, "");
121
- const h = new Event("change", {
122
- bubbles: !0
123
- });
124
- (wt = T.current) == null || wt.dispatchEvent(h);
125
- }, t[48] = nt) : nt = t[48];
126
- const Pt = nt;
127
- let at;
128
- t[49] !== f ? (at = (h) => {
129
- jt(h.target.value), f && f(h);
130
- }, t[49] = f, t[50] = at) : at = t[50];
131
- const Bt = at;
132
- let g;
133
- t[51] !== _ ? (g = _ && /* @__PURE__ */ L(Ft, {}), t[51] = _, t[52] = g) : g = t[52];
134
- let N;
135
- t[53] !== e || t[54] !== K || t[55] !== b || t[56] !== mt || t[57] !== g ? (N = /* @__PURE__ */ gt("label", { className: mt, id: K, htmlFor: e, children: [
136
- b,
137
- g
138
- ] }), t[53] = e, t[54] = K, t[55] = b, t[56] = mt, t[57] = g, t[58] = N) : N = t[58];
139
- let j;
140
- t[59] !== d || t[60] !== Q ? (j = d && /* @__PURE__ */ L("div", { className: s.hint, id: Q, children: d }), t[59] = d, t[60] = Q, t[61] = j) : j = t[61];
141
- let w;
142
- t[62] !== n || t[63] !== c || t[64] !== I ? (w = n && c && /* @__PURE__ */ L(Rt, { className: s.feedback, message: c, variant: "error", id: I }), t[62] = n, t[63] = c, t[64] = I, t[65] = w) : w = t[65];
143
- const Dt = `${K}${Lt}`;
144
- let E;
145
- t[66] !== dt || t[67] !== o || t[68] !== rt || t[69] !== Bt || t[70] !== e || t[71] !== ft || t[72] !== D || t[73] !== n || t[74] !== r || t[75] !== _ || t[76] !== m || t[77] !== Dt ? (E = /* @__PURE__ */ L("input", { className: ft, id: e, ...m, ref: rt, "aria-labelledby": Dt, "aria-describedby": dt, "aria-invalid": n, "aria-disabled": r, readOnly: r, required: _, disabled: o, type: "search", value: D, onChange: Bt }), t[66] = dt, t[67] = o, t[68] = rt, t[69] = Bt, t[70] = e, t[71] = ft, t[72] = D, t[73] = n, t[74] = r, t[75] = _, t[76] = m, t[77] = Dt, t[78] = E) : E = t[78];
146
- let k;
147
- t[79] !== St || t[80] !== lt || t[81] !== o || t[82] !== X || t[83] !== r || t[84] !== u ? (k = X && !r && !o && /* @__PURE__ */ L(At, { hideLabel: !0, theme: "light", iconName: "cross", className: St, variant: "ghost", size: u, onClick: Pt, type: "button", tabIndex: -1, children: lt }), t[79] = St, t[80] = lt, t[81] = o, t[82] = X, t[83] = r, t[84] = u, t[85] = k) : k = t[85];
148
- const It = o || r;
149
- let A;
150
- t[86] !== S || t[87] !== B || t[88] !== u || t[89] !== _t || t[90] !== ot || t[91] !== It ? (A = /* @__PURE__ */ L(At, { ...B, hideLabel: !0, theme: "light", iconName: "magnifying-glass", className: _t, variant: "ghost", size: u, onClick: S, type: "submit", disabled: It, children: ot }), t[86] = S, t[87] = B, t[88] = u, t[89] = _t, t[90] = ot, t[91] = It, t[92] = A) : A = t[92];
151
- let C;
152
- t[93] !== E || t[94] !== k || t[95] !== A ? (C = /* @__PURE__ */ gt("div", { className: s.wrapper, children: [
153
- E,
154
- k,
155
- A
156
- ] }), t[93] = E, t[94] = k, t[95] = A, t[96] = C) : C = t[96];
157
- let it;
158
- return t[97] !== pt || t[98] !== N || t[99] !== j || t[100] !== w || t[101] !== C ? (it = /* @__PURE__ */ gt("div", { className: pt, ref: ct, children: [
159
- N,
160
- j,
161
- w,
162
- C
163
- ] }), t[97] = pt, t[98] = N, t[99] = j, t[100] = w, t[101] = C, t[102] = it) : it = t[102], it;
164
- });
165
- ae.displayName = "DSInputSearch";
166
- function ie(a, i) {
167
- const t = Object.getPrototypeOf(a), l = Object.getOwnPropertyDescriptor(t, "value");
168
- l != null && l.set ? l.set.call(a, i) : a.value = i;
169
- }
170
- export {
171
- ae as D,
172
- ne as i,
173
- se as v
174
- };
@@ -1,268 +0,0 @@
1
- "use client";
2
- import { jsx as I, jsxs as bt } from "react/jsx-runtime";
3
- import { d as Rt } from "./index.CgTHIF3K.js";
4
- import { c as C } from "./index.CEyLAtio.js";
5
- import { forwardRef as kt, useState as Ae, useRef as _t, useEffect as vt } from "react";
6
- import { h as Ct } from "./has-window.ut_-aShB.js";
7
- import { u as Ft } from "./useBreakpoint.CMOR9ZOB.js";
8
- import { u as St } from "./useIsomorphicLayoutEffect.CnJ9AMFS.js";
9
- import { Asterisk as Pt } from "../asterisk.CR60hx8S.js";
10
- import { D as It } from "./Button.Cf1CKq8N.js";
11
- import { M as ht, a as xt } from "./Input.utils.Cnnzvuk4.js";
12
- import { D as $t } from "./SystemFeedback.CyGbUCzT.js";
13
- import { g as Ke } from "./helpers.BbWkXTr3.js";
14
- import '../assets/InputStepper.DvFJk1Mi.css';const Vt = "ds-input-stepper_input_93jvc_1", Ht = "ds-input-stepper_input--small_93jvc_9", Tt = "ds-input-stepper_input--invalid_93jvc_121", qt = "ds-input-stepper_input--has-affix_93jvc_197", Wt = "ds-input-stepper_input--is-ready_93jvc_211", Mt = "ds-input-stepper_root_93jvc_222", Xt = "ds-input-stepper_hint_93jvc_231", zt = "ds-input-stepper_label_93jvc_231", Gt = "ds-input-stepper_wrapper_93jvc_235", Ot = "ds-input-stepper_affix_93jvc_241", Ut = "ds-input-stepper_affix--small_93jvc_262", Jt = "ds-input-stepper_prefix_93jvc_275", Kt = "ds-input-stepper_suffix_93jvc_281", Qt = "ds-input-stepper_affix--disabled_93jvc_287", Yt = "ds-input-stepper_affix--readonly_93jvc_298", Zt = "ds-input-stepper_action-button_93jvc_334", en = "ds-input-stepper_label--hidden_93jvc_352", tn = "ds-input-stepper_label--disabled_93jvc_365", nn = "ds-input-stepper_feedback_93jvc_385", sn = "ds-input-stepper_second-action-button_93jvc_399", ln = "ds-input-stepper_value-announcer_93jvc_403", t = {
15
- input: Vt,
16
- inputSmall: Ht,
17
- inputInvalid: Tt,
18
- inputHasAffix: qt,
19
- inputIsReady: Wt,
20
- root: Mt,
21
- hint: Xt,
22
- label: zt,
23
- wrapper: Gt,
24
- affix: Ot,
25
- affixSmall: Ut,
26
- prefix: Jt,
27
- suffix: Kt,
28
- affixDisabled: Qt,
29
- affixReadonly: Yt,
30
- actionButton: Zt,
31
- labelHidden: en,
32
- labelDisabled: tn,
33
- feedback: nn,
34
- secondActionButton: sn,
35
- valueAnnouncer: ln
36
- }, At = (m) => m != null && m !== "", an = ({
37
- id: m,
38
- label: A,
39
- prefix: e,
40
- suffix: b
41
- }) => {
42
- if (!m)
43
- throw new Error(Ke("DSInputStepper", 'A unique "id" prop is required. Please add a unique "id" prop to the DSInputStepper component.'));
44
- if (!A)
45
- throw new Error(Ke("DSInputStepper", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSInputStepper component. If you don't want to display a label, set hideLabel={true}.`));
46
- e && e.length > ht && console.warn(Ke("DSInputStepper", `Prefix length must not exceed ${ht} characters.`)), b && b.length > xt && console.warn(Ke("DSInputStepper", `Suffix length must not exceed ${xt} characters.`));
47
- }, on = kt((m, A) => {
48
- const e = Rt.c(201);
49
- let b, F, v, l, P, h, x, i, D, a, f, ie, ae, oe, re, ce, ue, de, pe, fe, me, g;
50
- e[0] !== m ? ({
51
- id: l,
52
- label: h,
53
- announcementText: ie,
54
- className: b,
55
- disabled: oe,
56
- decreaseAmountButtonProps: F,
57
- hint: v,
58
- hideLabel: re,
59
- invalid: ce,
60
- increaseAmountButtonProps: P,
61
- prefix: i,
62
- max: ue,
63
- min: de,
64
- readonly: pe,
65
- required: fe,
66
- size: me,
67
- step: ae,
68
- suffix: a,
69
- systemFeedback: f,
70
- value: g,
71
- onChange: x,
72
- ...D
73
- } = m, e[0] = m, e[1] = b, e[2] = F, e[3] = v, e[4] = l, e[5] = P, e[6] = h, e[7] = x, e[8] = i, e[9] = D, e[10] = a, e[11] = f, e[12] = ie, e[13] = ae, e[14] = oe, e[15] = re, e[16] = ce, e[17] = ue, e[18] = de, e[19] = pe, e[20] = fe, e[21] = me, e[22] = g) : (b = e[1], F = e[2], v = e[3], l = e[4], P = e[5], h = e[6], x = e[7], i = e[8], D = e[9], a = e[10], f = e[11], ie = e[12], ae = e[13], oe = e[14], re = e[15], ce = e[16], ue = e[17], de = e[18], pe = e[19], fe = e[20], me = e[21], g = e[22]);
74
- const be = ie === void 0 ? "Value changed to" : ie, s = oe === void 0 ? !1 : oe, Dt = re === void 0 ? !1 : re, r = ce === void 0 ? !1 : ce, j = ue === void 0 ? 100 : ue, N = de === void 0 ? 0 : de, u = pe === void 0 ? !1 : pe, B = fe === void 0 ? !1 : fe, n = me === void 0 ? "medium" : me, _e = ae === void 0 ? 1 : ae;
75
- process.env.NODE_ENV !== "production" && an({
76
- id: l,
77
- label: h,
78
- prefix: i,
79
- suffix: a
80
- });
81
- let $;
82
- e[23] !== F ? ($ = F || {}, e[23] = F, e[24] = $) : $ = e[24];
83
- let V, H, ve;
84
- e[25] !== $ ? ({
85
- label: ve,
86
- tooltip: V,
87
- ...H
88
- } = $, e[25] = $, e[26] = V, e[27] = H, e[28] = ve) : (V = e[26], H = e[27], ve = e[28]);
89
- const Qe = ve === void 0 ? "Decrease" : ve;
90
- let T;
91
- e[29] !== P ? (T = P || {}, e[29] = P, e[30] = T) : T = e[30];
92
- let q, W, he;
93
- e[31] !== T ? ({
94
- label: he,
95
- tooltip: q,
96
- ...W
97
- } = T, e[31] = T, e[32] = q, e[33] = W, e[34] = he) : (q = e[32], W = e[33], he = e[34]);
98
- const Ye = he === void 0 ? "Increase" : he, [xe, gt] = Ae(!1), [d, Ze] = Ae(g), [y, yt] = Ae(""), [et, jt] = Ae(!1);
99
- let De;
100
- e[35] === Symbol.for("react.memo_cache_sentinel") ? (De = {}, e[35] = De) : De = e[35];
101
- const [ye, Nt] = Ae(De), S = _t(null);
102
- let ge;
103
- e[36] !== A ? (ge = (o) => {
104
- S.current = o, typeof A == "function" ? A(o) : A && (A.current = o);
105
- }, e[36] = A, e[37] = ge) : ge = e[37];
106
- const Se = ge;
107
- let je;
108
- e[38] !== i ? (je = i == null ? void 0 : i.substring(0, ht), e[38] = i, e[39] = je) : je = e[39];
109
- const tt = je, nt = _t(null);
110
- let Ne;
111
- e[40] !== a ? (Ne = a == null ? void 0 : a.substring(0, xt), e[40] = a, e[41] = Ne) : Ne = e[41];
112
- const st = Ne, lt = _t(null), Ie = Ft(Dt);
113
- let Be, we;
114
- e[42] !== g ? (Be = () => {
115
- Ze(g);
116
- }, we = [g], e[42] = g, e[43] = Be, e[44] = we) : (Be = e[43], we = e[44]), vt(Be, we);
117
- let Le, Ee;
118
- e[45] !== y ? (Le = () => {
119
- if (y) {
120
- const o = setTimeout(() => {
121
- yt("");
122
- }, 3e3);
123
- return () => clearTimeout(o);
124
- }
125
- }, Ee = [y], e[45] = y, e[46] = Le, e[47] = Ee) : (Le = e[46], Ee = e[47]), vt(Le, Ee);
126
- let Re, ke;
127
- e[48] === Symbol.for("react.memo_cache_sentinel") ? (Re = () => {
128
- var _;
129
- const o = rn;
130
- return (_ = S.current) == null || _.addEventListener("wheel", o, {
131
- passive: !1
132
- }), () => {
133
- var p;
134
- (p = S.current) == null || p.removeEventListener("wheel", o);
135
- };
136
- }, ke = [], e[48] = Re, e[49] = ke) : (Re = e[48], ke = e[49]), vt(Re, ke);
137
- let Ce;
138
- e[50] !== n ? (Ce = () => {
139
- const o = n === "medium" ? 16 : 8, _ = {};
140
- if (nt.current) {
141
- const p = nt.current.offsetWidth;
142
- _.paddingInlineStart = o + p + "px";
143
- }
144
- if (lt.current) {
145
- const p = lt.current.offsetWidth;
146
- _.paddingInlineEnd = o + p + "px";
147
- }
148
- Nt(_), gt(!0);
149
- }, e[50] = n, e[51] = Ce) : Ce = e[51];
150
- let Fe;
151
- e[52] !== et || e[53] !== i || e[54] !== n || e[55] !== a ? (Fe = [i, a, n, et], e[52] = et, e[53] = i, e[54] = n, e[55] = a, e[56] = Fe) : Fe = e[56], St(Ce, Fe);
152
- let Pe, $e;
153
- e[57] === Symbol.for("react.memo_cache_sentinel") ? (Pe = () => {
154
- Ct && (async () => {
155
- "fonts" in document && (await document.fonts.load('1em "STIHL Contraface Digital Text Regular"'), jt(!0));
156
- })();
157
- }, $e = [], e[57] = Pe, e[58] = $e) : (Pe = e[57], $e = e[58]), St(Pe, $e);
158
- const it = n === "small";
159
- let M, X, z, G, O, U, w, J, K, L, E, R, k;
160
- if (e[59] !== be || e[60] !== b || e[61] !== s || e[62] !== tt || e[63] !== st || e[64] !== Se || e[65] !== Ie || e[66] !== v || e[67] !== l || e[68] !== ye || e[69] !== d || e[70] !== r || e[71] !== xe || e[72] !== h || e[73] !== j || e[74] !== N || e[75] !== x || e[76] !== i || e[77] !== u || e[78] !== B || e[79] !== D || e[80] !== n || e[81] !== _e || e[82] !== a || e[83] !== f || e[84] !== it || e[85] !== y) {
161
- const o = C(t.affix, {
162
- [t.affixSmall]: it,
163
- [t.affixDisabled]: s,
164
- [t.affixReadonly]: u
165
- }), _ = `${l}-label`, p = `${l}-feedback`, He = `${l}-hint`, ne = `${l}-value-announcer`, Bt = v ? ` ${He}` : "";
166
- let Te;
167
- e[99] !== b ? (Te = C(t.root, b), e[99] = b, e[100] = Te) : Te = e[100];
168
- const wt = Te, at = n === "small", ot = i || a;
169
- let qe;
170
- e[101] !== r || e[102] !== xe || e[103] !== at || e[104] !== ot ? (qe = C(t.input, {
171
- [t.inputSmall]: at,
172
- [t.inputInvalid]: r,
173
- [t.inputHasAffix]: ot,
174
- [t.inputIsReady]: xe
175
- }), e[101] = r, e[102] = xe, e[103] = at, e[104] = ot, e[105] = qe) : qe = e[105];
176
- const rt = qe;
177
- let We;
178
- e[106] !== s || e[107] !== Ie ? (We = C(t.label, {
179
- [t.labelHidden]: Ie,
180
- [t.labelDisabled]: s
181
- }), e[106] = s, e[107] = Ie, e[108] = We) : We = e[108];
182
- const ct = We, ut = n === "small";
183
- let Me;
184
- e[109] !== ut ? (Me = C(t.secondActionButton, {
185
- [t.secondActionButtonSmall]: ut
186
- }), e[109] = ut, e[110] = Me) : Me = e[110], M = Me;
187
- const dt = n === "small";
188
- let Xe;
189
- e[111] !== dt ? (Xe = C(t.actionButton, {
190
- [t.actionButtonSmall]: dt
191
- }), e[111] = dt, e[112] = Xe) : Xe = e[112], G = Xe;
192
- let ze;
193
- e[113] !== r || e[114] !== f || e[115] !== p || e[116] !== ne ? (ze = () => {
194
- const c = [ne];
195
- return r && f && c.push(p), c.join(" ");
196
- }, e[113] = r, e[114] = f, e[115] = p, e[116] = ne, e[117] = ze) : ze = e[117];
197
- const Lt = ze;
198
- let Ge;
199
- e[118] !== be ? (Ge = () => {
200
- var c;
201
- if (S.current) {
202
- Ze(S.current.value);
203
- const Et = new Event("change", {
204
- bubbles: !0
205
- });
206
- (c = S.current) == null || c.dispatchEvent(Et), yt(`${be} ${S.current.value}`);
207
- }
208
- }, e[118] = be, e[119] = Ge) : Ge = e[119];
209
- const se = Ge;
210
- let Oe;
211
- e[120] !== se ? (Oe = () => {
212
- var c;
213
- (c = S.current) == null || c.stepDown(), se();
214
- }, e[120] = se, e[121] = Oe) : Oe = e[121], X = Oe;
215
- let Ue;
216
- e[122] !== se ? (Ue = () => {
217
- var c;
218
- (c = S.current) == null || c.stepUp(), se();
219
- }, e[122] = se, e[123] = Ue) : Ue = e[123], z = Ue;
220
- let Je;
221
- e[124] !== x ? (Je = (c) => {
222
- Ze(c.target.value), x && x(c);
223
- }, e[124] = x, e[125] = Je) : Je = e[125];
224
- const pt = Je;
225
- K = wt;
226
- let le;
227
- e[126] !== B ? (le = B && /* @__PURE__ */ I(Pt, {}), e[126] = B, e[127] = le) : le = e[127], e[128] !== l || e[129] !== _ || e[130] !== h || e[131] !== ct || e[132] !== le ? (L = /* @__PURE__ */ bt("label", { className: ct, id: _, htmlFor: l, children: [
228
- h,
229
- le
230
- ] }), e[128] = l, e[129] = _, e[130] = h, e[131] = ct, e[132] = le, e[133] = L) : L = e[133], e[134] !== v || e[135] !== He ? (E = v && /* @__PURE__ */ I("div", { className: t.hint, id: He, children: v }), e[134] = v, e[135] = He, e[136] = E) : E = e[136], e[137] !== y || e[138] !== ne ? (R = /* @__PURE__ */ I("div", { "aria-live": "polite", "aria-atomic": "true", className: t.valueAnnouncer, id: ne, children: y }), e[137] = y, e[138] = ne, e[139] = R) : R = e[139], e[140] !== r || e[141] !== f || e[142] !== p ? (k = r && f && /* @__PURE__ */ I($t, { className: t.feedback, message: f, variant: "error", id: p }), e[140] = r, e[141] = f, e[142] = p, e[143] = k) : k = e[143], O = t.wrapper, U = i && /* @__PURE__ */ I("span", { className: C(o, t.prefix), ref: nt, "aria-disabled": s, children: tt });
231
- const ft = `${_}${Bt}`, mt = Lt();
232
- e[144] !== s || e[145] !== Se || e[146] !== pt || e[147] !== l || e[148] !== rt || e[149] !== ye || e[150] !== d || e[151] !== r || e[152] !== j || e[153] !== N || e[154] !== u || e[155] !== B || e[156] !== D || e[157] !== _e || e[158] !== ft || e[159] !== mt ? (w = /* @__PURE__ */ I("input", { className: rt, id: l, ...D, style: ye, ref: Se, "aria-labelledby": ft, "aria-describedby": mt, "aria-invalid": r, "aria-disabled": u, disabled: s, min: N, max: j, readOnly: u, required: B, step: _e, type: "number", value: d, onChange: pt }), e[144] = s, e[145] = Se, e[146] = pt, e[147] = l, e[148] = rt, e[149] = ye, e[150] = d, e[151] = r, e[152] = j, e[153] = N, e[154] = u, e[155] = B, e[156] = D, e[157] = _e, e[158] = ft, e[159] = mt, e[160] = w) : w = e[160], J = a && /* @__PURE__ */ I("span", { className: C(o, t.suffix), ref: lt, "aria-disabled": s, children: st }), e[59] = be, e[60] = b, e[61] = s, e[62] = tt, e[63] = st, e[64] = Se, e[65] = Ie, e[66] = v, e[67] = l, e[68] = ye, e[69] = d, e[70] = r, e[71] = xe, e[72] = h, e[73] = j, e[74] = N, e[75] = x, e[76] = i, e[77] = u, e[78] = B, e[79] = D, e[80] = n, e[81] = _e, e[82] = a, e[83] = f, e[84] = it, e[85] = y, e[86] = M, e[87] = X, e[88] = z, e[89] = G, e[90] = O, e[91] = U, e[92] = w, e[93] = J, e[94] = K, e[95] = L, e[96] = E, e[97] = R, e[98] = k;
233
- } else
234
- M = e[86], X = e[87], z = e[88], G = e[89], O = e[90], U = e[91], w = e[92], J = e[93], K = e[94], L = e[95], E = e[96], R = e[97], k = e[98];
235
- let Q;
236
- e[161] !== s || e[162] !== d || e[163] !== N || e[164] !== u ? (Q = s || u || At(d) && Number(d) <= Number(N), e[161] = s, e[162] = d, e[163] = N, e[164] = u, e[165] = Q) : Q = e[165];
237
- let Y;
238
- e[166] !== M || e[167] !== Qe || e[168] !== V || e[169] !== X || e[170] !== H || e[171] !== n || e[172] !== Q ? (Y = /* @__PURE__ */ I(It, { ...H, hideLabel: !0, theme: "light", iconName: "minus", variant: "filled", className: M, size: n, onClick: X, tooltip: V, disabled: Q, type: "button", children: Qe }), e[166] = M, e[167] = Qe, e[168] = V, e[169] = X, e[170] = H, e[171] = n, e[172] = Q, e[173] = Y) : Y = e[173];
239
- let Z;
240
- e[174] !== s || e[175] !== d || e[176] !== j || e[177] !== u ? (Z = s || u || At(d) && Number(d) >= Number(j), e[174] = s, e[175] = d, e[176] = j, e[177] = u, e[178] = Z) : Z = e[178];
241
- let ee;
242
- e[179] !== z || e[180] !== Ye || e[181] !== q || e[182] !== G || e[183] !== W || e[184] !== n || e[185] !== Z ? (ee = /* @__PURE__ */ I(It, { ...W, hideLabel: !0, theme: "light", iconName: "plus", variant: "filled", tooltip: q, className: G, size: n, onClick: z, disabled: Z, type: "button", children: Ye }), e[179] = z, e[180] = Ye, e[181] = q, e[182] = G, e[183] = W, e[184] = n, e[185] = Z, e[186] = ee) : ee = e[186];
243
- let te;
244
- e[187] !== O || e[188] !== U || e[189] !== w || e[190] !== J || e[191] !== Y || e[192] !== ee ? (te = /* @__PURE__ */ bt("div", { className: O, children: [
245
- U,
246
- w,
247
- J,
248
- Y,
249
- ee
250
- ] }), e[187] = O, e[188] = U, e[189] = w, e[190] = J, e[191] = Y, e[192] = ee, e[193] = te) : te = e[193];
251
- let Ve;
252
- return e[194] !== K || e[195] !== L || e[196] !== E || e[197] !== R || e[198] !== k || e[199] !== te ? (Ve = /* @__PURE__ */ bt("div", { className: K, children: [
253
- L,
254
- E,
255
- R,
256
- k,
257
- te
258
- ] }), e[194] = K, e[195] = L, e[196] = E, e[197] = R, e[198] = k, e[199] = te, e[200] = Ve) : Ve = e[200], Ve;
259
- });
260
- on.displayName = "DSInputStepper";
261
- function rn(m) {
262
- m.preventDefault();
263
- }
264
- export {
265
- on as D,
266
- At as i,
267
- an as v
268
- };
@@ -1,192 +0,0 @@
1
- "use client";
2
- import { jsx as k, jsxs as Y } from "react/jsx-runtime";
3
- import { d as U } from "./index.CgTHIF3K.js";
4
- import { isValidElement as z, useState as Z, createContext as A, forwardRef as J, cloneElement as B, useContext as K } from "react";
5
- import { u as R, a as ee, b as te, c as ne, d as se, o as oe, e as L, f as le, F as ce, g as ae, h as re } from "./floating-ui.react.DCyAzlZ4.js";
6
- import { c as H } from "./index.CEyLAtio.js";
7
- import { g as $, c as q } from "./helpers.BbWkXTr3.js";
8
- import { D as ie } from "./Header.um5MlziB.js";
9
- import { a as ue } from "./floating-ui.dom.VgHc0h4l.js";
10
- import '../assets/MegaMenu.DX9gChtY.css';const de = "ds-mega-menu_root_11fw1_1", fe = "ds-mega-menu_content_11fw1_109", me = "ds-mega-menu_content--variant-full_11fw1_134", Me = "ds-mega-menu_backdrop_11fw1_139", I = {
11
- root: de,
12
- content: fe,
13
- contentVariantFull: me,
14
- backdrop: Me
15
- }, ge = 9, he = (s) => {
16
- const t = U.c(17);
17
- let e;
18
- t[0] !== s ? (e = s === void 0 ? {} : s, t[0] = s, t[1] = e) : e = t[1];
19
- const {
20
- initialOpen: n,
21
- isOpen: o,
22
- onOpenChange: l
23
- } = e, r = n === void 0 ? !1 : n, [M, c] = Z(r), a = o ?? M, f = l ?? c;
24
- let g;
25
- t[2] === Symbol.for("react.memo_cache_sentinel") ? (g = [oe(ge)], t[2] = g) : g = t[2];
26
- let C;
27
- t[3] !== a || t[4] !== f ? (C = {
28
- placement: "bottom-start",
29
- open: a,
30
- onOpenChange: f,
31
- whileElementsMounted: ue,
32
- strategy: "absolute",
33
- transform: !1,
34
- middleware: g
35
- }, t[3] = a, t[4] = f, t[5] = C) : C = t[5];
36
- const i = R(C), m = i.context;
37
- let u;
38
- t[6] === Symbol.for("react.memo_cache_sentinel") ? (u = {
39
- enabled: !0
40
- }, t[6] = u) : u = t[6];
41
- const p = ee(m, u), _ = te(m);
42
- let h;
43
- t[7] === Symbol.for("react.memo_cache_sentinel") ? (h = {
44
- role: "menu"
45
- }, t[7] = h) : h = t[7];
46
- const N = ne(m, h);
47
- let d;
48
- t[8] !== p || t[9] !== _ || t[10] !== N ? (d = [p, _, N], t[8] = p, t[9] = _, t[10] = N, t[11] = d) : d = t[11];
49
- const S = se(d);
50
- let E, D;
51
- return t[12] !== i || t[13] !== S || t[14] !== a || t[15] !== f ? (D = {
52
- open: a,
53
- setOpen: f,
54
- ...S,
55
- ...i
56
- }, t[12] = i, t[13] = S, t[14] = a, t[15] = f, t[16] = D) : D = t[16], E = D, E;
57
- }, pe = (s) => {
58
- if (!z(s))
59
- throw new Error($("DSMegaMenu", "DSMegaMenu.Anchor child must be a valid React element."));
60
- }, Se = ({
61
- hasContent: s,
62
- hasAnchor: t
63
- }) => {
64
- if (!s)
65
- throw new Error($("DSMegaMenu", "A DSMegaMenu must have a <DSMegaMenu.Content> component as a child. Please add it to the children of DSMegaMenu."));
66
- if (!t)
67
- throw new Error($("DSMegaMenu", "A DSMegaMenu must have a <DSMegaMenu.Anchor> component as a child. Please add it to the children of DSMegaMenu."));
68
- }, Q = A(null), W = () => {
69
- const s = K(Q);
70
- if (s == null)
71
- throw new Error($("DSMegaMenu", "Components like DSMegaMenu.Anchor or DSMegaMenu.Content must be wrapped in <DSMegaMenu />."));
72
- return s;
73
- }, j = (s) => {
74
- const t = U.c(9);
75
- let e, n;
76
- t[0] !== s ? ({
77
- children: e,
78
- ...n
79
- } = s, t[0] = s, t[1] = e, t[2] = n) : (e = t[1], n = t[2]);
80
- let o;
81
- t[3] !== n ? (o = {
82
- ...n
83
- }, t[3] = n, t[4] = o) : o = t[4];
84
- const l = he(o), r = q(e, j.Content), M = q(e, G);
85
- process.env.NODE_ENV !== "production" && Se({
86
- hasContent: r,
87
- hasAnchor: M
88
- });
89
- let c;
90
- return t[5] !== e || t[6] !== l || t[7] !== n ? (c = /* @__PURE__ */ k(Q.Provider, { value: l, ...n, children: e }), t[5] = e, t[6] = l, t[7] = n, t[8] = c) : c = t[8], c;
91
- }, G = J((s, t) => {
92
- const e = U.c(12);
93
- let n, o;
94
- e[0] !== s ? ({
95
- children: n,
96
- ...o
97
- } = s, e[0] = s, e[1] = n, e[2] = o) : (n = e[1], o = e[2]), process.env.NODE_ENV !== "production" && pe(n);
98
- const l = W(), r = n.ref;
99
- let M;
100
- e[3] !== r || e[4] !== l.refs.setReference || e[5] !== t ? (M = [l.refs.setReference, t, r], e[3] = r, e[4] = l.refs.setReference, e[5] = t, e[6] = M) : M = e[6];
101
- const c = L(M);
102
- if (z(n)) {
103
- let a;
104
- return e[7] !== n || e[8] !== l || e[9] !== o || e[10] !== c ? (a = B(n, l.getReferenceProps({
105
- ref: c,
106
- ...o,
107
- ...n.props,
108
- "data-state": l.open ? "open" : "closed"
109
- })), e[7] = n, e[8] = l, e[9] = o, e[10] = c, e[11] = a) : a = e[11], a;
110
- }
111
- });
112
- G.displayName = "DSMegaMenu.Anchor";
113
- const X = J((s, t) => {
114
- const e = U.c(48);
115
- let n, o, l, r;
116
- e[0] !== s ? ({
117
- style: r,
118
- className: o,
119
- children: n,
120
- ...l
121
- } = s, e[0] = s, e[1] = n, e[2] = o, e[3] = l, e[4] = r) : (n = e[1], o = e[2], l = e[3], r = e[4]);
122
- const M = W();
123
- let c, a, f, g;
124
- e[5] !== M ? ({
125
- context: c,
126
- floatingStyles: a,
127
- getFloatingProps: f,
128
- ...g
129
- } = M, e[5] = M, e[6] = c, e[7] = a, e[8] = f, e[9] = g) : (c = e[6], a = e[7], f = e[8], g = e[9]);
130
- const {
131
- variant: C,
132
- bannerAreaRef: i,
133
- topBarAreaRef: m,
134
- mainNavigationAreaRef: u
135
- } = K(ie);
136
- let p;
137
- e[10] !== t || e[11] !== g.refs.setFloating ? (p = [g.refs.setFloating, t], e[10] = t, e[11] = g.refs.setFloating, e[12] = p) : p = e[12];
138
- const _ = L(p);
139
- let h;
140
- e[13] === Symbol.for("react.memo_cache_sentinel") ? (h = {
141
- duration: {
142
- open: 400,
143
- close: 400
144
- }
145
- }, e[13] = h) : h = e[13];
146
- const {
147
- isMounted: N,
148
- status: d
149
- } = le(c, h);
150
- let S;
151
- e[14] !== o ? (S = H(I.root, o), e[14] = o, e[15] = S) : S = e[15];
152
- const E = S, D = C === "full";
153
- let V;
154
- e[16] !== D ? (V = H(I.content, {
155
- [I.contentVariantFull]: D
156
- }), e[16] = D, e[17] = V) : V = e[17];
157
- const T = V;
158
- if (!N)
159
- return null;
160
- let w;
161
- e[18] !== d ? (w = /* @__PURE__ */ k("div", { className: I.backdrop, "data-status": d }), e[18] = d, e[19] = w) : w = e[19];
162
- let x;
163
- e[20] !== (i == null ? void 0 : i.current) || e[21] !== (u == null ? void 0 : u.current) || e[22] !== (m == null ? void 0 : m.current) ? (x = () => [u == null ? void 0 : u.current, m == null ? void 0 : m.current, i == null ? void 0 : i.current].filter(Boolean), e[20] = i == null ? void 0 : i.current, e[21] = u == null ? void 0 : u.current, e[22] = m == null ? void 0 : m.current, e[23] = x) : x = e[23];
164
- let F;
165
- e[24] !== a || e[25] !== r ? (F = {
166
- ...a,
167
- ...r
168
- }, e[24] = a, e[25] = r, e[26] = F) : F = e[26];
169
- let O;
170
- e[27] !== f || e[28] !== l ? (O = f(l), e[27] = f, e[28] = l, e[29] = O) : O = e[29];
171
- let v;
172
- e[30] !== n || e[31] !== T || e[32] !== d ? (v = /* @__PURE__ */ k("div", { className: T, "data-status": d, children: n }), e[30] = n, e[31] = T, e[32] = d, e[33] = v) : v = e[33];
173
- let y;
174
- e[34] !== E || e[35] !== _ || e[36] !== d || e[37] !== O || e[38] !== v || e[39] !== F ? (y = /* @__PURE__ */ k("div", { ref: _, style: F, className: E, "data-status": d, ...O, children: v }), e[34] = E, e[35] = _, e[36] = d, e[37] = O, e[38] = v, e[39] = F, e[40] = y) : y = e[40];
175
- let b;
176
- e[41] !== c || e[42] !== y || e[43] !== x ? (b = /* @__PURE__ */ k(ce, { context: c, modal: !1, outsideElementsInert: !0, getInsideElements: x, children: y }), e[41] = c, e[42] = y, e[43] = x, e[44] = b) : b = e[44];
177
- let P;
178
- return e[45] !== b || e[46] !== w ? (P = /* @__PURE__ */ k(ae, { children: /* @__PURE__ */ Y(re, { lockScroll: !0, children: [
179
- w,
180
- b
181
- ] }) }), e[45] = b, e[46] = w, e[47] = P) : P = e[47], P;
182
- });
183
- X.displayName = "DSMegaMenu.Content";
184
- j.Anchor = G;
185
- j.Content = X;
186
- j.displayName = "DSMegaMenu";
187
- export {
188
- j as D,
189
- Se as a,
190
- he as u,
191
- pe as v
192
- };