@stihl-design-system/components 1.0.0-RC.47 → 1.0.0-RC.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (261) hide show
  1. package/{accordion.BQ7vavIt.js → accordion.D4XR2R7e.js} +2 -2
  2. package/{actionbutton.C7lqEmBx.js → actionbutton.C8hePX-D.js} +3 -3
  3. package/{actioncard.dgVHW0BC.js → actioncard.kDxu01xm.js} +1 -1
  4. package/{actionlink.CL6v1mQA.js → actionlink.dccc5JQV.js} +3 -3
  5. package/{arialiveregions.DC1Gq9Lo.js → arialiveregions.BniSDuPM.js} +9 -10
  6. package/assets/Accordion.RlqWqpGo.css +1 -0
  7. package/assets/ActionButton.Dw2FeIaW.css +1 -0
  8. package/assets/ActionCard.viEoC26n.css +1 -0
  9. package/assets/ActionLink.B1Jjaf7k.css +1 -0
  10. package/assets/Button.Bi1KUKMv.css +1 -0
  11. package/assets/Checkbox.C6RWhy0V.css +1 -0
  12. package/assets/Chip.DfamkUPw.css +1 -0
  13. package/assets/CustomReactSelect.CvWMmrAU.css +1 -0
  14. package/assets/Dialog.6AkQo8ew.css +1 -0
  15. package/assets/Drawer.CDOlX809.css +1 -0
  16. package/assets/Fieldset.BbLGXCWa.css +1 -0
  17. package/assets/InputFile.CDtghZtl.css +1 -0
  18. package/assets/InputNumber.BNpO9p7n.css +1 -0
  19. package/assets/InputPassword.BgZo-RUc.css +1 -0
  20. package/assets/InputSearch.BROFFTK9.css +1 -0
  21. package/assets/LinkButton.IKIlFnpH.css +1 -0
  22. package/assets/Notification.2B81JHOp.css +1 -0
  23. package/assets/Pagination.DH71DZ0j.css +1 -0
  24. package/assets/Popover.58Tb0dOt.css +1 -0
  25. package/assets/Select.CfTN3CJo.css +1 -0
  26. package/assets/Slider.B4kzL60S.css +1 -0
  27. package/assets/{SystemFeedback.DYi9QetY.css → SystemFeedback.DVMml_h9.css} +1 -1
  28. package/assets/TextUtility.BThulfyl.css +1 -0
  29. package/assets/Textarea.BO4AcRJD.css +1 -0
  30. package/assets/buttonround.syTU1QSI.css +1 -0
  31. package/assets/chipgroup.DtCnsmS7.css +1 -0
  32. package/assets/filelist.B-Ru0GP_.css +1 -0
  33. package/assets/input.Dy8VS73e.css +1 -0
  34. package/assets/numberindicator.CtbitPQ8.css +1 -0
  35. package/assets/progressindicator.tyY_RVQ9.css +1 -0
  36. package/assets/radio.9hUUyg8R.css +1 -0
  37. package/assets/switch.8v7Wp1Fj.css +1 -0
  38. package/assets/tabpane.DDaeSDQb.css +1 -0
  39. package/assets/text.BwGsYzGM.css +1 -0
  40. package/assets/tooltip.C_BL2kou.css +1 -0
  41. package/{banner.BlB_7xue.js → banner.DO7GsDL_.js} +1 -1
  42. package/{breadcrumb.DajORKq7.js → breadcrumb.DYov6vtt.js} +3 -3
  43. package/{button.EooIlFBI.js → button.qxcuzbnv.js} +2 -2
  44. package/buttonround.BO7_ewzA.js +101 -0
  45. package/{checkbox.NJj9qMnx.js → checkbox.C9kyIY9P.js} +4 -5
  46. package/{checkboxgroup.DELdyn0X.js → checkboxgroup.kEUxnKLf.js} +2 -2
  47. package/{chip.C4h8Hm9g.js → chip.5ktNLRYf.js} +3 -3
  48. package/chipgroup.kRU3Z98U.js +226 -0
  49. package/chunks/Accordion.gih2ni1d.js +179 -0
  50. package/chunks/ActionButton.B-wm5sUy.js +194 -0
  51. package/chunks/{ActionCard.Dbq2VqyZ.js → ActionCard.Bm-2ewfS.js} +44 -44
  52. package/chunks/ActionLink.D0KzqbH4.js +166 -0
  53. package/chunks/{AriaLiveRegions.utils.BPvIKT6B.js → AriaLiveRegions.utils.xoETe2Ps.js} +14 -16
  54. package/chunks/{Breadcrumb.Ccm79ver.js → Breadcrumb.I2G-T0zc.js} +2 -2
  55. package/chunks/Button.CCol--xy.js +165 -0
  56. package/chunks/Checkbox.BxOGR1bR.js +96 -0
  57. package/chunks/CheckboxGroup.TneO0tuE.js +85 -0
  58. package/chunks/Chip.DffaXMkV.js +148 -0
  59. package/chunks/{CustomReactSelect.oEQpO9iN.js → CustomReactSelect.DTAavYaz.js} +282 -277
  60. package/chunks/Dialog.guuxflWL.js +101 -0
  61. package/chunks/{Drawer.CDe_g99S.js → Drawer.CjUZu6GW.js} +27 -28
  62. package/chunks/Fieldset.BBMuLKps.js +94 -0
  63. package/chunks/{Flag.X9tB3Mfv.js → Flag.CbQYBzVC.js} +12 -13
  64. package/chunks/{Header.bLSdAY9-.js → Header.CvcGSuhX.js} +1 -1
  65. package/chunks/{Input.utils.CkmzxIrU.js → Input.utils.Wycy2SzG.js} +23 -25
  66. package/chunks/InputFile.y71Cd5J9.js +260 -0
  67. package/chunks/InputNumber.Fn2YbF_s.js +250 -0
  68. package/chunks/InputPassword.DtT9yrlx.js +129 -0
  69. package/chunks/InputSearch.BoAfGqoH.js +157 -0
  70. package/chunks/LinkButton.BxG7fx1O.js +150 -0
  71. package/chunks/LinkCard.DM-5WrSt.js +200 -0
  72. package/chunks/{MegaMenu.DbunD_yW.js → MegaMenu.udXR1H3W.js} +1 -1
  73. package/chunks/{NavigationTabList.CyrKNAer.js → NavigationTabList.thzA1pU8.js} +1 -1
  74. package/chunks/{NavigationTabs.DVBe-Wt3.js → NavigationTabs.BWewgBch.js} +1 -1
  75. package/chunks/Notification.C_o7Ge6Q.js +91 -0
  76. package/chunks/Pagination.BrOMUJMi.js +272 -0
  77. package/chunks/Popover.CxZZ_y1Z.js +230 -0
  78. package/chunks/RadioGroup.CO91_5hA.js +136 -0
  79. package/chunks/Select.EzoMdk1u.js +157 -0
  80. package/chunks/Slider.CX38t4Sk.js +330 -0
  81. package/chunks/{Stepper.KBRikedB.js → Stepper.Ds_aIEF8.js} +68 -69
  82. package/chunks/SystemFeedback.DhWcYjnu.js +43 -0
  83. package/chunks/{Tabs.xXn4zpGp.js → Tabs.BHVlgp7L.js} +2 -2
  84. package/chunks/Text.utils.DzlY9pJS.js +9 -0
  85. package/chunks/TextUtility.BZLwqyic.js +82 -0
  86. package/chunks/Textarea.vuJgvW6_.js +192 -0
  87. package/chunks/{Toast.NZfb7z3q.js → Toast.V_ZUAsf2.js} +1 -1
  88. package/chunks/translate.DSb-TdWR.js +2460 -0
  89. package/{combobox.CPsl2TC0.js → combobox.C6cPz4AJ.js} +1 -1
  90. package/components/Accordion/Accordion.d.ts +5 -0
  91. package/components/ActionButton/ActionButton.d.ts +5 -1
  92. package/components/ActionLink/ActionLink.d.ts +1 -1
  93. package/components/Button/Button.utils.d.ts +1 -1
  94. package/components/Checkbox/Checkbox.d.ts +8 -1
  95. package/components/CheckboxGroup/CheckboxGroup.d.ts +9 -1
  96. package/components/ChipGroup/Chip.d.ts +2 -0
  97. package/components/ChipGroup/ChipGroup.d.ts +12 -2
  98. package/components/ChipGroup/ChipGroup.utils.d.ts +39 -15
  99. package/components/Combobox/Combobox.utils.d.ts +66 -9
  100. package/components/Combobox/CustomReactSelect/CustomReactSelect.d.ts +5 -1
  101. package/components/Combobox/CustomReactSelect/CustomReactSelect.utils.d.ts +1 -1
  102. package/components/Fieldset/Fieldset.d.ts +9 -2
  103. package/components/Input/Input.d.ts +8 -1
  104. package/components/InputFile/FileList/FileList.d.ts +4 -2
  105. package/components/InputFile/FileList/FilePreview/FilePreview.d.ts +8 -2
  106. package/components/InputFile/FileList/ProgressIndicator/ProgressIndicator.d.ts +8 -2
  107. package/components/InputFile/InputFile.d.ts +12 -2
  108. package/components/InputFile/InputFile.utils.d.ts +41 -23
  109. package/components/InputNumber/InputNumber.d.ts +8 -1
  110. package/components/InputPassword/InputPassword.d.ts +8 -1
  111. package/components/InputSearch/InputSearch.d.ts +8 -1
  112. package/components/LinkCard/LinkCard.d.ts +10 -4
  113. package/components/LinkCard/LinkCard.utils.d.ts +2 -2
  114. package/components/NumberIndicator/NumberIndicator.d.ts +6 -1
  115. package/components/Pagination/Pagination.d.ts +10 -3
  116. package/components/Pagination/Pagination.utils.d.ts +22 -9
  117. package/components/Popover/Popover.d.ts +9 -1
  118. package/components/Popover/Popover.utils.d.ts +3 -2
  119. package/components/Radio/Radio.d.ts +5 -0
  120. package/components/RadioGroup/RadioGroup.d.ts +8 -0
  121. package/components/Select/Select.d.ts +8 -1
  122. package/components/Slider/Slider.d.ts +8 -1
  123. package/components/Stepper/Step.d.ts +1 -1
  124. package/components/Stepper/Step.utils.d.ts +1 -1
  125. package/components/Stepper/Stepper.d.ts +4 -1
  126. package/components/Stepper/Stepper.utils.d.ts +9 -4
  127. package/components/SystemFeedback/SystemFeedback.d.ts +9 -1
  128. package/components/Textarea/Textarea.d.ts +8 -1
  129. package/{customreactselect.D7BJg-2s.js → customreactselect.L0zSh3Tg.js} +4 -4
  130. package/{dialog.BlprGigG.js → dialog.Ddq8o8Od.js} +2 -2
  131. package/{drawer.BoyrTFi1.js → drawer.rbbjQvqL.js} +2 -2
  132. package/{fieldset.D_e2-vo_.js → fieldset.BHf3XK2q.js} +3 -3
  133. package/filelist.GrEwoM1u.js +143 -0
  134. package/filepreview.B2Ot9SZ7.js +97 -0
  135. package/{flag.0vpitrQ-.js → flag.fX6LAgty.js} +3 -4
  136. package/{floatingactionbutton.BrdE1vi2.js → floatingactionbutton.BwCiybnc.js} +1 -1
  137. package/{header.C3AqYBtz.js → header.BCeCjYfG.js} +1 -1
  138. package/index.es.js +203 -204
  139. package/input.Dh0ws-9j.js +187 -0
  140. package/inputfile.DiZh3GcT.js +17 -0
  141. package/{inputnumber.Box5R2An.js → inputnumber.D2cmptaH.js} +8 -9
  142. package/{inputpassword.CBc8GNwI.js → inputpassword.C53Kg4EA.js} +4 -4
  143. package/inputsearch.BrsIDUSW.js +14 -0
  144. package/link.DEZDbUgq.js +81 -0
  145. package/{linkbutton.DxEPueLb.js → linkbutton._X50W2Md.js} +3 -3
  146. package/{linkcard.CCY-VFWN.js → linkcard.BtM3KnjT.js} +3 -3
  147. package/{logo.D7LnRA1E.js → logo.D6BTxbxv.js} +0 -1
  148. package/{megamenu.C8OynEzk.js → megamenu.odVCUm4c.js} +2 -2
  149. package/{navigationtablist.iSQd5PX4.js → navigationtablist.n9DrtYe5.js} +2 -2
  150. package/{navigationtabs.FtkVv_qV.js → navigationtabs.D0mSyAtK.js} +2 -2
  151. package/{notification.Cqg8HpJ8.js → notification._X8-8vOa.js} +2 -2
  152. package/numberindicator.DsK65Bj3.js +39 -0
  153. package/package.json +6 -1
  154. package/pagination.B7Hrx_sk.js +14 -0
  155. package/partials/index.js +68 -68
  156. package/{popover.DYiEGSnj.js → popover.BBaqL7y9.js} +3 -3
  157. package/progressindicator.D9CfVD95.js +74 -0
  158. package/radio.DjToa2aV.js +148 -0
  159. package/{radiogroup.wqgExwrG.js → radiogroup.mc-8lw65.js} +3 -3
  160. package/{scroller.Dqnsxq2M.js → scroller.CgWp2WXG.js} +10 -11
  161. package/{select.DkKuGI6O.js → select.DTZ6a6Ag.js} +5 -6
  162. package/{skeleton.DUkBgXxO.js → skeleton.CNJdNVav.js} +10 -10
  163. package/{skiptocontent.CRQywi6J.js → skiptocontent.BsRpWvyu.js} +4 -4
  164. package/{slider.BOjqQp9n.js → slider.BMGAihY0.js} +3 -3
  165. package/{step.C6zDRCBu.js → step.DCQ6CawJ.js} +1 -1
  166. package/stepper.D7-7BdSv.js +15 -0
  167. package/styles/scss/ds/index.scss +2 -0
  168. package/styles/scss/ds/lib/border-width.scss +3 -0
  169. package/styles/scss/ds/lib/ds-internal/_input.scss +65 -21
  170. package/styles/scss/ds/lib/ds-internal/_link-button.scss +4 -2
  171. package/styles/scss/ds/lib/ds-internal/_link.scss +23 -3
  172. package/styles/scss/ds/lib/input.scss +12 -7
  173. package/styles/scss/ds/lib/link.scss +2 -2
  174. package/styles/scss/ds/lib/radius.scss +5 -0
  175. package/{switch.CuNNdrkD.js → switch.tM2XBag8.js} +2 -2
  176. package/{systemfeedback.Da0wX0Eb.js → systemfeedback.BPPOht_9.js} +1 -1
  177. package/{tablist.BjKwrLz9.js → tablist.BAm0_UIG.js} +22 -23
  178. package/{tabpane.7vMXUKFX.js → tabpane.B9rZghU6.js} +1 -1
  179. package/{tabs.-U2k6Oll.js → tabs.BgTdWbTe.js} +3 -3
  180. package/text.BEO_ZfJq.js +72 -0
  181. package/{textarea.BWznY6Gg.js → textarea.Cki-uMkZ.js} +5 -6
  182. package/{textutility.CBLuAdaa.js → textutility.BypzssPt.js} +2 -2
  183. package/{toast.D9XLSgJg.js → toast.s0Hfuh5i.js} +2 -2
  184. package/{toastmanager.V5E05qgI.js → toastmanager.CPIPn4Io.js} +19 -20
  185. package/{tooltip.a1aWHK00.js → tooltip.BFQG-7VR.js} +1 -1
  186. package/{topbar.BdGK62KJ.js → topbar.Bbct-XkB.js} +3 -3
  187. package/utils/translate.d.ts +22 -6
  188. package/assets/Accordion.DPu2l_Kg.css +0 -1
  189. package/assets/ActionButton.DcQYatF1.css +0 -1
  190. package/assets/ActionCard.gRQVVFWz.css +0 -1
  191. package/assets/ActionLink.B62Aa8y9.css +0 -1
  192. package/assets/Button.BI6zz6Fw.css +0 -1
  193. package/assets/Checkbox.DknHnS9a.css +0 -1
  194. package/assets/Chip.CYhVB1Jh.css +0 -1
  195. package/assets/CustomReactSelect.lKMLwL7n.css +0 -1
  196. package/assets/Dialog.BKwWy1g2.css +0 -1
  197. package/assets/Drawer.IRb7Vc1n.css +0 -1
  198. package/assets/Fieldset.C4Fx4-UV.css +0 -1
  199. package/assets/InputFile.ne7gwc_5.css +0 -1
  200. package/assets/InputNumber.BIdsQuFc.css +0 -1
  201. package/assets/InputPassword.YSKTDTA1.css +0 -1
  202. package/assets/InputSearch.C3qtDQcj.css +0 -1
  203. package/assets/LinkButton.CmEE7Od_.css +0 -1
  204. package/assets/Notification.BO0Mu9No.css +0 -1
  205. package/assets/Pagination.OLmfdASf.css +0 -1
  206. package/assets/Popover.mL5g23EK.css +0 -1
  207. package/assets/Select.CDP-1_K9.css +0 -1
  208. package/assets/Slider.Cu7MgNph.css +0 -1
  209. package/assets/TextUtility.bwkCWEiV.css +0 -1
  210. package/assets/Textarea.Hsq68tg1.css +0 -1
  211. package/assets/buttonround.rmUb58WF.css +0 -1
  212. package/assets/chipgroup.BGxjdSDX.css +0 -1
  213. package/assets/filelist.cP3O1JeJ.css +0 -1
  214. package/assets/input.BEBgyvkK.css +0 -1
  215. package/assets/numberindicator.DSpNPJcs.css +0 -1
  216. package/assets/progressindicator.Dxrigyne.css +0 -1
  217. package/assets/radio.DsHt-9om.css +0 -1
  218. package/assets/switch.fwcMI6o7.css +0 -1
  219. package/assets/tabpane.o34hshTz.css +0 -1
  220. package/assets/text.Doa-APfR.css +0 -1
  221. package/assets/tooltip.DrSplliO.css +0 -1
  222. package/buttonround.BeQakrPs.js +0 -101
  223. package/chipgroup.BKjeuuM0.js +0 -213
  224. package/chunks/Accordion.8kTbiPxs.js +0 -173
  225. package/chunks/ActionButton.CBV1-_HP.js +0 -188
  226. package/chunks/ActionLink.BXxDS1Gg.js +0 -161
  227. package/chunks/Button.COycNYUI.js +0 -160
  228. package/chunks/Checkbox.CMshaWIU.js +0 -88
  229. package/chunks/CheckboxGroup.D3D1spfJ.js +0 -79
  230. package/chunks/Chip.DCJYE513.js +0 -157
  231. package/chunks/Dialog.lJXxzgu2.js +0 -102
  232. package/chunks/Fieldset.DOjI3DlI.js +0 -91
  233. package/chunks/InputFile.DYXvF6vT.js +0 -260
  234. package/chunks/InputNumber.CkWpchPo.js +0 -240
  235. package/chunks/InputPassword.21E6XMr5.js +0 -121
  236. package/chunks/InputSearch.Dy3EKa9f.js +0 -149
  237. package/chunks/LinkButton.BCHTLFMJ.js +0 -150
  238. package/chunks/LinkCard.BYmTwsS5.js +0 -197
  239. package/chunks/Notification.BjyLiO2h.js +0 -91
  240. package/chunks/Pagination.CJikF9Cw.js +0 -247
  241. package/chunks/Popover.ByaoNwGK.js +0 -221
  242. package/chunks/RadioGroup.Bh2X6pT9.js +0 -130
  243. package/chunks/Select.KWb09VmF.js +0 -147
  244. package/chunks/Slider.CxnIy51F.js +0 -309
  245. package/chunks/SystemFeedback.4osheYxC.js +0 -38
  246. package/chunks/Text.utils.BZ4nTZVu.js +0 -11
  247. package/chunks/TextUtility.BPrxUX-x.js +0 -82
  248. package/chunks/Textarea.CAOqZMUi.js +0 -181
  249. package/chunks/translate.nuU7uChI.js +0 -8
  250. package/filelist.DfAt2xJa.js +0 -128
  251. package/filepreview.Defs34bv.js +0 -94
  252. package/input.ChMzyHej.js +0 -175
  253. package/inputfile.DZIUs1EC.js +0 -18
  254. package/inputsearch.DzzYb-C0.js +0 -15
  255. package/link.aU1f2Xzu.js +0 -81
  256. package/numberindicator.Q7g4J3Ry.js +0 -36
  257. package/pagination.DA4PMLOq.js +0 -14
  258. package/progressindicator.DpmERE8T.js +0 -53
  259. package/radio.KQ8CUM3_.js +0 -137
  260. package/stepper.DHl3_XU9.js +0 -16
  261. package/text.CnP3baHy.js +0 -72
@@ -1,130 +0,0 @@
1
- "use client";
2
- import { jsx as J } from "react/jsx-runtime";
3
- import { d as Z } from "./index.cKLI89Eg.js";
4
- import { c as Q } from "./index.DQOqod3i.js";
5
- import { forwardRef as oo, useState as eo } from "react";
6
- import { D as to } from "./Fieldset.DOjI3DlI.js";
7
- import { DSRadio as ro } from "../radio.KQ8CUM3_.js";
8
- import { g as h, r as K } from "./helpers.CexwVao7.js";
9
- import '../assets/RadioGroup.q1lQ-HIZ.css';const io = "ds-radio-group_fieldset--custom-area-above_1r3gv_1", so = "ds-radio-group_root_1r3gv_5", ao = "ds-radio-group_root--horizontal_1r3gv_13", no = "ds-radio-group_root--invalid_1r3gv_16", lo = "ds-radio-group_root--custom-area-above_1r3gv_19", co = "ds-radio-group_root--custom-area-above--horizontal_1r3gv_26", H = {
10
- fieldsetCustomAreaAbove: io,
11
- root: so,
12
- rootHorizontal: ao,
13
- rootInvalid: no,
14
- rootCustomAreaAbove: lo,
15
- rootCustomAreaAboveHorizontal: co
16
- }, uo = (r) => r.some(({
17
- hint: i
18
- }) => !!i), po = (r) => r.some(({
19
- customArea: i,
20
- isCustomAreaAbove: o
21
- }) => !!i && !o), V = (r) => r.some(({
22
- customArea: i,
23
- isCustomAreaAbove: o
24
- }) => !!i && o), vo = ({
25
- legend: r,
26
- name: i,
27
- options: o,
28
- description: u,
29
- direction: m,
30
- hideLegend: a,
31
- hideUncheckedHints: t,
32
- id: n,
33
- popoverContent: l,
34
- systemFeedback: d
35
- }) => {
36
- if (!n && (u || d))
37
- throw new Error(h("DSRadioGroup", 'A unique "id" prop is required when providing the description or systemFeedback property. Please add a unique "id" prop to the DSRadioGroup component.'));
38
- if (!r)
39
- throw new Error(h("DSRadioGroup", K("legend", "DSRadioGroup")));
40
- if (!i)
41
- throw new Error(h("DSRadioGroup", K("name", "DSRadioGroup")));
42
- if (Array.isArray(o)) {
43
- if (o.length === 0)
44
- throw new Error(h("DSRadioGroup", "The options array must not be empty."));
45
- } else throw new Error(h("DSRadioGroup", K("options", "DSRadioGroup")));
46
- if (m === "horizontal" && po(o))
47
- throw new Error(h("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."));
48
- m === "horizontal" && t && console.warn(h("DSRadioGroup", "Setting 'hideUncheckedHints' to 'true' is not possible when direction is 'horizontal'. Please remove 'hideUncheckedHints' or change direction property to 'vertical'.")), a && l && console.warn(h("DSRadioGroup", 'Setting "hideLegend" and "popoverContent" at the same time is not supported. The popover info button is part of the legend and will be hidden along with it. Please remove either "hideLegend" or "popoverContent".'));
49
- }, ho = oo((r, i) => {
50
- const o = Z.c(68);
51
- let u, m, a, t, n, l, d, e, f, b, C, p, z, G, R, y, E, k, N;
52
- o[0] !== r ? ({
53
- legend: n,
54
- name: l,
55
- options: e,
56
- className: u,
57
- defaultValue: m,
58
- description: a,
59
- direction: z,
60
- disabled: G,
61
- hideLegend: R,
62
- hideUncheckedHints: y,
63
- id: t,
64
- invalid: E,
65
- popoverContent: f,
66
- popoverInfoButtonProps: b,
67
- required: k,
68
- systemFeedback: p,
69
- value: N,
70
- onChange: d,
71
- ...C
72
- } = r, o[0] = r, o[1] = u, o[2] = m, o[3] = a, o[4] = t, o[5] = n, o[6] = l, o[7] = d, o[8] = e, o[9] = f, o[10] = b, o[11] = C, o[12] = p, o[13] = z, o[14] = G, o[15] = R, o[16] = y, o[17] = E, o[18] = k, o[19] = N) : (u = o[1], m = o[2], a = o[3], t = o[4], n = o[5], l = o[6], d = o[7], e = o[8], f = o[9], b = o[10], C = o[11], p = o[12], z = o[13], G = o[14], R = o[15], y = o[16], E = o[17], k = o[18], N = o[19]);
73
- const v = z === void 0 ? "vertical" : z, c = G === void 0 ? !1 : G, P = R === void 0 ? !1 : R, g = y === void 0 ? !1 : y, A = E === void 0 ? !1 : E, S = k === void 0 ? !1 : k;
74
- process.env.NODE_ENV !== "production" && vo({
75
- legend: n,
76
- name: l,
77
- options: e,
78
- description: a,
79
- direction: v,
80
- hideLegend: P,
81
- hideUncheckedHints: g,
82
- id: t,
83
- popoverContent: f,
84
- systemFeedback: p
85
- });
86
- const [X, Y] = eo(m), q = N !== void 0, x = q ? N : X;
87
- let I;
88
- o[20] !== u || o[21] !== e ? (I = Q({
89
- [H.fieldsetCustomAreaAbove]: V(e)
90
- }, u), o[20] = u, o[21] = e, o[22] = I) : I = o[22];
91
- const M = I, O = v === "horizontal", T = A && !!p;
92
- let U;
93
- o[23] !== v || o[24] !== e || o[25] !== O || o[26] !== T ? (U = Q(H.root, {
94
- [H.rootHorizontal]: O,
95
- [H.rootInvalid]: T,
96
- [H.rootCustomAreaAbove]: V(e),
97
- [H.rootCustomAreaAboveHorizontal]: V(e) && v === "horizontal"
98
- }), o[23] = v, o[24] = e, o[25] = O, o[26] = T, o[27] = U) : U = o[27];
99
- const $ = U;
100
- let L;
101
- o[28] !== c || o[29] !== q || o[30] !== d ? (L = (s) => {
102
- if (c) {
103
- s.preventDefault();
104
- return;
105
- }
106
- q || Y(s.target.value), d && d(s);
107
- }, o[28] = c, o[29] = q, o[30] = d, o[31] = L) : L = o[31];
108
- const j = L;
109
- let B;
110
- o[32] !== g || o[33] !== e ? (B = uo(e) && !g, o[32] = g, o[33] = e, o[34] = B) : B = o[34];
111
- const W = B;
112
- let w;
113
- o[35] !== v || o[36] !== e ? (w = V(e) && v === "horizontal" ? {
114
- maxWidth: `calc(${e.length * 400}px + var(--ds-spacing-dynamic-xs))`
115
- } : void 0, o[35] = v, o[36] = e, o[37] = w) : w = o[37];
116
- let D;
117
- o[38] !== W || o[39] !== x || o[40] !== c || o[41] !== g || o[42] !== t || o[43] !== A || o[44] !== l || o[45] !== e || o[46] !== i || o[47] !== S ? (D = e.map((s) => /* @__PURE__ */ J(ro, { name: l, checked: s.value === x, disabled: c, fieldsetId: t, hideUncheckedHint: g, hint: s.hint, invalid: A, isBold: W, required: S, ref: s.value === x ? i : null, ...s }, t + s.label + s.value + s.hint)), o[38] = W, o[39] = x, o[40] = c, o[41] = g, o[42] = t, o[43] = A, o[44] = l, o[45] = e, o[46] = i, o[47] = S, o[48] = D) : D = o[48];
118
- let _;
119
- o[49] !== $ || o[50] !== w || o[51] !== D ? (_ = /* @__PURE__ */ J("div", { className: $, style: w, children: D }), o[49] = $, o[50] = w, o[51] = D, o[52] = _) : _ = o[52];
120
- let F;
121
- return o[53] !== a || o[54] !== c || o[55] !== M || o[56] !== j || o[57] !== P || o[58] !== t || o[59] !== A || o[60] !== n || o[61] !== f || o[62] !== b || o[63] !== S || o[64] !== C || o[65] !== p || o[66] !== _ ? (F = /* @__PURE__ */ J(to, { id: t, legend: n, className: M, description: a, disabled: c, hideLegend: P, required: S, invalid: A, systemFeedback: p, popoverContent: f, popoverInfoButtonProps: b, ...C, role: "radiogroup", onChange: j, children: _ }), o[53] = a, o[54] = c, o[55] = M, o[56] = j, o[57] = P, o[58] = t, o[59] = A, o[60] = n, o[61] = f, o[62] = b, o[63] = S, o[64] = C, o[65] = p, o[66] = _, o[67] = F) : F = o[67], F;
122
- });
123
- ho.displayName = "DSRadioGroup";
124
- export {
125
- ho as D,
126
- po as a,
127
- uo as b,
128
- V as o,
129
- vo as v
130
- };
@@ -1,147 +0,0 @@
1
- "use client";
2
- import { jsxs as b, jsx as t } from "react/jsx-runtime";
3
- import { c as o } from "./index.DQOqod3i.js";
4
- import { forwardRef as X, useRef as Y, useState as A, useEffect as z } from "react";
5
- import { u as L } from "./useBreakpoint.1txsny17.js";
6
- import "./index.cKLI89Eg.js";
7
- import { Asterisk as G } from "../asterisk.Dwtdwpkq.js";
8
- import { D as ee } from "./Icon.DYtaQgbw.js";
9
- import { D as le } from "./Popover.ByaoNwGK.js";
10
- import { D as se } from "./SystemFeedback.4osheYxC.js";
11
- import { g as n, r as ae } from "./helpers.CexwVao7.js";
12
- import '../assets/Select.CDP-1_K9.css';const te = "ds-select_root_1912a_1", re = "ds-select_hint_1912a_1", ce = "ds-select_label-wrapper_1912a_1", oe = "ds-select_label_1912a_1", ne = "ds-select_label--disabled_1912a_123", ie = "ds-select_label-wrapper--hidden_1912a_135", de = "ds-select_feedback_1912a_163", pe = "ds-select_select-wrapper_1912a_167", he = "ds-select_select_1912a_167", me = "ds-select_select--small_1912a_181", be = "ds-select_select--invalid_1912a_293", _e = "ds-select_select--placeholder_1912a_401", fe = "ds-select_chevron_1912a_452", Se = "ds-select_chevron--small_1912a_456", ue = "ds-select_chevron--disabled_1912a_459", e = {
13
- root: te,
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
- }, Le = ["medium", "small"], ve = ({
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", ae("options", "DSSelect")));
43
- _ && i && console.warn(n("DSSelect", "Using a popover when hideLabel is set to true is not supported."));
44
- }, De = (l, c, r) => l === "" || c !== void 0 && c !== "" ? !1 : !(r !== void 0 && r !== ""), we = X(({
45
- id: l,
46
- label: c,
47
- options: r,
48
- className: _,
49
- defaultValue: i,
50
- disabled: f = !1,
51
- hideLabel: w = !1,
52
- hint: S,
53
- invalid: d = !1,
54
- popoverContent: u,
55
- popoverInfoButtonProps: B,
56
- placeholder: v = "Select",
57
- required: y = !1,
58
- size: g = "medium",
59
- systemFeedback: D,
60
- value: p,
61
- onChange: N,
62
- ...C
63
- }, h) => {
64
- process.env.NODE_ENV !== "production" && ve({
65
- id: l,
66
- label: c,
67
- options: r,
68
- hideLabel: L(w),
69
- popoverContent: u
70
- });
71
- const q = Y(null), [H, P] = A(p), [R, j] = A(De(v, i, p));
72
- z(() => {
73
- P(p);
74
- }, [p]);
75
- const x = (s) => {
76
- q.current = s, typeof h == "function" ? h(s) : h && (h.current = s);
77
- }, I = L(w), E = `${l}-label`, W = `${l}-feedback`, k = `${l}-hint`, V = S ? ` ${k}` : "", M = [d && D && W].filter(Boolean).join(" ") || void 0, T = (s) => [v && /* @__PURE__ */ t("option", { value: "", children: v }, `${l}-hidden-option-disabled-placeholder`), ...s.map((a) => {
78
- if ("options" in a) {
79
- const {
80
- label: m,
81
- options: Q
82
- } = a;
83
- return /* @__PURE__ */ t("optgroup", { label: m, children: Q.map($) }, m);
84
- } else
85
- return $(a);
86
- })], $ = ({
87
- label: s,
88
- value: a,
89
- isDisabled: m
90
- }) => /* @__PURE__ */ t("option", { value: a, disabled: m, children: s }, a), F = o(e.root, _), O = o(e.select, {
91
- [e.selectSmall]: g === "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]: I
99
- }), J = o(e.chevron, {
100
- [e.chevronSmall]: g === "small",
101
- [e.chevronDisabled]: f
102
- }), K = (s) => {
103
- const {
104
- value: a
105
- } = s.target;
106
- j(a === ""), P(a), N && N(s);
107
- };
108
- return /* @__PURE__ */ b("div", { className: F, children: [
109
- /* @__PURE__ */ b("div", { className: Z, children: [
110
- /* @__PURE__ */ b("label", { className: U, id: E, htmlFor: l, children: [
111
- c,
112
- y && /* @__PURE__ */ t(G, {})
113
- ] }),
114
- u && !I && /* @__PURE__ */ t(le, { placement: "top", defaultAnchorButtonProps: B, children: u })
115
- ] }),
116
- S && /* @__PURE__ */ t("div", { className: e.hint, id: k, children: S }),
117
- /* @__PURE__ */ b("div", { className: e.selectWrapper, children: [
118
- /* @__PURE__ */ t(
119
- "select",
120
- {
121
- ...C,
122
- id: l,
123
- ref: x,
124
- className: O,
125
- "aria-labelledby": `${E}${V}`,
126
- "aria-describedby": M,
127
- "aria-invalid": d,
128
- defaultValue: i,
129
- value: H,
130
- disabled: f,
131
- required: y,
132
- onChange: K,
133
- children: T(r)
134
- }
135
- ),
136
- /* @__PURE__ */ t(ee, { name: "chevron-down", className: J, "aria-hidden": "true" })
137
- ] }),
138
- d && D && /* @__PURE__ */ t(se, { className: e.feedback, message: D, variant: "error", id: W })
139
- ] });
140
- });
141
- we.displayName = "DSSelect";
142
- export {
143
- we as D,
144
- Le as S,
145
- De as g,
146
- ve as v
147
- };
@@ -1,309 +0,0 @@
1
- "use client";
2
- import { jsx as h, jsxs as oe } from "react/jsx-runtime";
3
- import { d as ht } from "./index.cKLI89Eg.js";
4
- import { c as v } from "./index.DQOqod3i.js";
5
- import { forwardRef as ft, useState as lt, useRef as _t } from "react";
6
- import { u as vt } from "./useBreakpoint.1txsny17.js";
7
- import { DSInput as Tt } from "../input.ChMzyHej.js";
8
- import { D as xt } from "./Popover.ByaoNwGK.js";
9
- import { g as st } from "./helpers.CexwVao7.js";
10
- import '../assets/Slider.Cu7MgNph.css';const gt = "ds-slider_root_1u0ch_1", kt = "ds-slider_hint_1u0ch_4", Nt = "ds-slider_label-wrapper_1u0ch_4", St = "ds-slider_label-hint-input-wrapper_1u0ch_7", yt = "ds-slider_number-input_1u0ch_10", Dt = "ds-slider_label-wrapper--hidden_1u0ch_20", It = "ds-slider_label_1u0ch_4", Lt = "ds-slider_label--disabled_1u0ch_55", Mt = "ds-slider_number-input--small_1u0ch_84", Wt = "ds-slider_min-max-label-wrapper_1u0ch_89", wt = "ds-slider_min-max-label-wrapper--disabled_1u0ch_103", Vt = "ds-slider_min-label_1u0ch_108", Ct = "ds-slider_max-label_1u0ch_112", $t = "ds-slider_slider-wrapper_1u0ch_116", Pt = "ds-slider_slider_1u0ch_116", At = "ds-slider_value-tooltip_1u0ch_135", Et = "ds-slider_proxy-thumb_1u0ch_139", Rt = "ds-slider_proxy-thumb--disabled_1u0ch_217", Bt = "ds-slider_custom-track_1u0ch_246", Ft = "ds-slider_custom-track--progress_1u0ch_251", Ht = "ds-slider_custom-track--runnable_1u0ch_263", qt = "ds-slider_custom-track--disabled_1u0ch_277", Ot = "ds-slider_tick-wrapper_1u0ch_297", zt = "ds-slider_tick_1u0ch_297", Kt = "ds-slider_value-tooltip--visible_1u0ch_356", jt = "ds-slider_value-tooltip--disabled_1u0ch_359", s = {
11
- root: gt,
12
- hint: kt,
13
- labelWrapper: Nt,
14
- labelHintInputWrapper: St,
15
- numberInput: yt,
16
- labelWrapperHidden: Dt,
17
- label: It,
18
- labelDisabled: Lt,
19
- numberInputSmall: Mt,
20
- minMaxLabelWrapper: Wt,
21
- minMaxLabelWrapperDisabled: wt,
22
- minLabel: Vt,
23
- maxLabel: Ct,
24
- sliderWrapper: $t,
25
- slider: Pt,
26
- valueTooltip: At,
27
- proxyThumb: Et,
28
- proxyThumbDisabled: Rt,
29
- customTrack: Bt,
30
- customTrackProgress: Ft,
31
- customTrackRunnable: Ht,
32
- customTrackDisabled: qt,
33
- tickWrapper: Ot,
34
- tick: zt,
35
- valueTooltipVisible: Kt,
36
- valueTooltipDisabled: jt
37
- }, Ut = 11, at = 4, it = (p) => p.toString().length, Gt = (p, r, e) => {
38
- if (r === 0)
39
- return !0;
40
- const m = 1e-10, o = (p - e) / r;
41
- return Math.abs(Math.round(o) - o) < m;
42
- }, Xt = (p, r, e, m) => {
43
- const o = parseFloat(r), n = e, c = Math.round((p - n) / o);
44
- let d = n + c * o;
45
- d = Math.min(Math.max(d, e), m);
46
- const x = o.toString().split(".")[1]?.length || 0;
47
- return parseFloat(d.toFixed(x));
48
- }, Jt = (p, r, e) => {
49
- const m = (p - r) / (e - r) * 100, o = `calc(-0.24 * ${m}px + 10px)`;
50
- return `calc(${m}% + ${o})`;
51
- }, Qt = ({
52
- id: p,
53
- label: r
54
- }) => {
55
- if (!p)
56
- throw new Error(st("DSSlider", 'A unique "id" prop is required. Please add a unique "id" prop to the DSSlider component.'));
57
- if (!r)
58
- throw new Error(st("DSSlider", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSSlider component. If you don't want to display a label, set hideLabel={true}.`));
59
- }, Yt = ft((p, r) => {
60
- const e = ht.c(167);
61
- let m, o, n, c, d, x, b, g, D, I, Y, Z, ee, te, le, se, ae, k;
62
- e[0] !== p ? ({
63
- id: c,
64
- label: d,
65
- className: m,
66
- defaultValue: o,
67
- disabled: Y,
68
- hideLabel: Z,
69
- hideNumberInput: ee,
70
- hint: n,
71
- isTooltipAlwaysVisible: te,
72
- max: le,
73
- min: se,
74
- numberInputProps: x,
75
- popoverContent: g,
76
- popoverInfoButtonProps: D,
77
- step: ae,
78
- value: k,
79
- onChange: b,
80
- ...I
81
- } = p, e[0] = p, e[1] = m, e[2] = o, e[3] = n, e[4] = c, e[5] = d, e[6] = x, e[7] = b, e[8] = g, e[9] = D, e[10] = I, e[11] = Y, e[12] = Z, e[13] = ee, e[14] = te, e[15] = le, e[16] = se, e[17] = ae, e[18] = k) : (m = e[1], o = e[2], n = e[3], c = e[4], d = e[5], x = e[6], b = e[7], g = e[8], D = e[9], I = e[10], Y = e[11], Z = e[12], ee = e[13], te = e[14], le = e[15], se = e[16], ae = e[17], k = e[18]);
82
- const a = Y === void 0 ? !1 : Y, rt = Z === void 0 ? !1 : Z, L = ee === void 0 ? !1 : ee, Ve = te === void 0 ? !1 : te, ot = le === void 0 ? 100 : le, nt = se === void 0 ? 0 : se, ie = ae === void 0 ? 1 : ae;
83
- process.env.NODE_ENV !== "production" && Qt({
84
- id: c,
85
- label: d
86
- });
87
- const i = Number(ot), t = Number(nt), u = Number(ie), M = vt(rt), ne = `${c}-label`, Ce = `${c}-number-input`, N = `${c}-hint`, ct = n ? ` ${N}` : "";
88
- let ce;
89
- e[19] !== o || e[20] !== t || e[21] !== k ? (ce = k || o || t.toString() || "0", e[19] = o, e[20] = t, e[21] = k, e[22] = ce) : ce = e[22];
90
- const [W, de] = lt(ce), [T, ue] = lt(k || o || t || 0), dt = _t(null);
91
- let pe;
92
- e[23] !== r ? (pe = (l) => {
93
- dt.current = l, typeof r == "function" ? r(l) : r && (r.current = l);
94
- }, e[23] = r, e[24] = pe) : pe = e[24];
95
- const $e = pe;
96
- let me;
97
- e[25] !== x ? (me = x || {}, e[25] = x, e[26] = me) : me = e[26];
98
- const {
99
- size: tt,
100
- suffix: Pe
101
- } = me, be = tt === void 0 ? "medium" : tt;
102
- let he;
103
- e[27] !== b ? (he = (l) => {
104
- const f = parseFloat(l.target.value);
105
- ue(f), de(l.target.value), b && b(l);
106
- }, e[27] = b, e[28] = he) : he = e[28];
107
- const Ae = he;
108
- let fe;
109
- e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (fe = (l) => {
110
- const f = l.target.value;
111
- if (de(f), /^-?\d+(\.\d+)?$/.test(f)) {
112
- const _ = parseFloat(f);
113
- Number.isNaN(_) || ue(_);
114
- }
115
- }, e[29] = fe) : fe = e[29];
116
- const ut = fe;
117
- let S;
118
- if (e[30] !== W || e[31] !== b || e[32] !== i || e[33] !== t || e[34] !== ie) {
119
- S = (f) => {
120
- const re = parseFloat(W);
121
- if (Number.isNaN(re)) {
122
- l(f);
123
- return;
124
- }
125
- let _ = Math.min(Math.max(re, t), i);
126
- Gt(_, parseFloat(ie), t) || (_ = Xt(_, ie, t, i)), de(_.toString()), ue(_), b && b(f);
127
- };
128
- const l = (f) => {
129
- de(t.toString()), ue(t), b && b(f);
130
- };
131
- e[30] = W, e[31] = b, e[32] = i, e[33] = t, e[34] = ie, e[35] = S;
132
- } else
133
- S = e[35];
134
- const w = (u === 0 ? !1 : (i - t) / u <= Ut) && (i - t) / u || 0;
135
- let _e;
136
- if (e[36] !== i || e[37] !== t || e[38] !== u || e[39] !== w) {
137
- let l;
138
- e[41] !== i || e[42] !== t || e[43] !== u ? (l = (f, re) => {
139
- const _ = t + re * u, bt = Jt(_, t, i);
140
- return /* @__PURE__ */ h("span", { className: s.tick, style: {
141
- left: bt
142
- } }, _);
143
- }, e[41] = i, e[42] = t, e[43] = u, e[44] = l) : l = e[44], _e = Array.from({
144
- length: w + 1
145
- }, l), e[36] = i, e[37] = t, e[38] = u, e[39] = w, e[40] = _e;
146
- } else
147
- _e = e[40];
148
- const Ee = _e;
149
- let ve;
150
- e[45] !== i || e[46] !== t || e[47] !== T ? (ve = () => {
151
- if (t === i)
152
- throw new Error("Min and max values cannot be the same.");
153
- const l = (T - t) / (i - t) * 100;
154
- return Math.max(0, Math.min(l, 100));
155
- }, e[45] = i, e[46] = t, e[47] = T, e[48] = ve) : ve = e[48];
156
- const y = ve;
157
- let Te;
158
- e[49] !== y ? (Te = () => {
159
- const l = y();
160
- return l < 50 ? `calc(${l}% + 4px)` : `calc(${l}% - 4px)`;
161
- }, e[49] = y, e[50] = Te) : Te = e[50];
162
- const pt = Te;
163
- let xe;
164
- e[51] !== y ? (xe = () => {
165
- const l = 100 - y();
166
- return l < 50 ? `calc(${l}% + 4px)` : `calc(${l}% - 4px)`;
167
- }, e[51] = y, e[52] = xe) : xe = e[52];
168
- const mt = xe;
169
- let ge;
170
- e[53] !== m ? (ge = v(s.slider, m), e[53] = m, e[54] = ge) : ge = e[54];
171
- const Re = ge;
172
- let ke;
173
- e[55] !== a ? (ke = v(s.label, {
174
- [s.labelDisabled]: a
175
- }), e[55] = a, e[56] = ke) : ke = e[56];
176
- const Be = ke;
177
- let Ne;
178
- e[57] !== M ? (Ne = v(s.labelWrapper, {
179
- [s.labelWrapperHidden]: M
180
- }), e[57] = M, e[58] = Ne) : Ne = e[58];
181
- const Fe = Ne, He = be === "small";
182
- let Se;
183
- e[59] !== He ? (Se = v(s.numberInput, {
184
- [s.numberInputSmall]: He
185
- }), e[59] = He, e[60] = Se) : Se = e[60];
186
- const qe = Se;
187
- let ye;
188
- e[61] !== a ? (ye = v(s.minMaxLabelWrapper, {
189
- [s.minMaxLabelWrapperDisabled]: a
190
- }), e[61] = a, e[62] = ye) : ye = e[62];
191
- const Oe = ye;
192
- let De;
193
- e[63] !== a ? (De = v(s.customTrack, s.customTrackProgress, {
194
- [s.customTrackDisabled]: a
195
- }), e[63] = a, e[64] = De) : De = e[64];
196
- const ze = De;
197
- let Ie;
198
- e[65] !== a ? (Ie = v(s.customTrack, s.customTrackRunnable, {
199
- [s.customTrackDisabled]: a
200
- }), e[65] = a, e[66] = Ie) : Ie = e[66];
201
- const Ke = Ie;
202
- let Le;
203
- e[67] !== a ? (Le = v(s.proxyThumb, {
204
- [s.proxyThumbDisabled]: a
205
- }), e[67] = a, e[68] = Le) : Le = e[68];
206
- const je = Le;
207
- let Me;
208
- e[69] !== a || e[70] !== Ve ? (Me = v(s.valueTooltip, {
209
- [s.valueTooltipVisible]: Ve,
210
- [s.valueTooltipDisabled]: a
211
- }), e[69] = a, e[70] = Ve, e[71] = Me) : Me = e[71];
212
- const Ue = Me;
213
- let V;
214
- e[72] !== c || e[73] !== d || e[74] !== Be || e[75] !== ne ? (V = /* @__PURE__ */ h("label", { className: Be, htmlFor: c, id: ne, children: d }), e[72] = c, e[73] = d, e[74] = Be, e[75] = ne, e[76] = V) : V = e[76];
215
- let C;
216
- e[77] !== M || e[78] !== g || e[79] !== D ? (C = g && !M && /* @__PURE__ */ h(xt, { placement: "top", defaultAnchorButtonProps: D, children: g }), e[77] = M, e[78] = g, e[79] = D, e[80] = C) : C = e[80];
217
- let $;
218
- e[81] !== Fe || e[82] !== V || e[83] !== C ? ($ = /* @__PURE__ */ oe("div", { className: Fe, children: [
219
- V,
220
- C
221
- ] }), e[81] = Fe, e[82] = V, e[83] = C, e[84] = $) : $ = e[84];
222
- let P;
223
- e[85] !== n || e[86] !== N ? (P = n && /* @__PURE__ */ h("div", { className: s.hint, id: N, children: n }), e[85] = n, e[86] = N, e[87] = P) : P = e[87];
224
- let A;
225
- e[88] !== a || e[89] !== S || e[90] !== L || e[91] !== n || e[92] !== N || e[93] !== Ce || e[94] !== W || e[95] !== d || e[96] !== qe || e[97] !== be || e[98] !== Pe || e[99] !== i || e[100] !== t || e[101] !== u ? (A = !L && /* @__PURE__ */ h(Tt, { id: Ce, aria: {
226
- "aria-labelledby": n ? N : void 0
227
- }, className: qe, type: "number", min: t, max: i, step: u, inputMode: "decimal", autoComplete: "off", disabled: a, hideLabel: !0, value: W, onChange: ut, onBlur: S, onKeyDown: (l) => {
228
- l.key === "Enter" && (l.preventDefault(), S(l));
229
- }, label: d, size: be, suffix: Pe }), e[88] = a, e[89] = S, e[90] = L, e[91] = n, e[92] = N, e[93] = Ce, e[94] = W, e[95] = d, e[96] = qe, e[97] = be, e[98] = Pe, e[99] = i, e[100] = t, e[101] = u, e[102] = A) : A = e[102];
230
- let E;
231
- e[103] !== $ || e[104] !== P || e[105] !== A ? (E = /* @__PURE__ */ oe("div", { className: s.labelHintInputWrapper, children: [
232
- $,
233
- P,
234
- A
235
- ] }), e[103] = $, e[104] = P, e[105] = A, e[106] = E) : E = e[106];
236
- const Ge = it(t) < at;
237
- let R;
238
- e[107] !== Ge ? (R = v({
239
- [s.minLabel]: Ge
240
- }), e[107] = Ge, e[108] = R) : R = e[108];
241
- let B;
242
- e[109] !== t || e[110] !== R ? (B = /* @__PURE__ */ h("div", { className: R, children: t }), e[109] = t, e[110] = R, e[111] = B) : B = e[111];
243
- const Xe = it(i) < at;
244
- let F;
245
- e[112] !== Xe ? (F = v({
246
- [s.maxLabel]: Xe
247
- }), e[112] = Xe, e[113] = F) : F = e[113];
248
- let H;
249
- e[114] !== i || e[115] !== F ? (H = /* @__PURE__ */ h("div", { className: F, children: i }), e[114] = i, e[115] = F, e[116] = H) : H = e[116];
250
- let q;
251
- e[117] !== Oe || e[118] !== B || e[119] !== H ? (q = /* @__PURE__ */ oe("div", { className: Oe, children: [
252
- B,
253
- H
254
- ] }), e[117] = Oe, e[118] = B, e[119] = H, e[120] = q) : q = e[120];
255
- const Je = `${y()}`;
256
- let We;
257
- e[121] !== Je ? (We = {
258
- "--ds-input-slider-thumb-position": Je
259
- }, e[121] = Je, e[122] = We) : We = e[122];
260
- const Qe = We, Ye = pt();
261
- let O;
262
- e[123] !== Ye ? (O = {
263
- width: Ye
264
- }, e[123] = Ye, e[124] = O) : O = e[124];
265
- let z;
266
- e[125] !== ze || e[126] !== O ? (z = /* @__PURE__ */ h("div", { className: ze, style: O }), e[125] = ze, e[126] = O, e[127] = z) : z = e[127];
267
- const Ze = mt();
268
- let K;
269
- e[128] !== Ze ? (K = {
270
- width: Ze
271
- }, e[128] = Ze, e[129] = K) : K = e[129];
272
- let j;
273
- e[130] !== Ke || e[131] !== K ? (j = /* @__PURE__ */ h("div", { className: Ke, style: K }), e[130] = Ke, e[131] = K, e[132] = j) : j = e[132];
274
- const et = `${ne}${ct}`;
275
- let U;
276
- e[133] !== a || e[134] !== $e || e[135] !== Ae || e[136] !== c || e[137] !== i || e[138] !== t || e[139] !== u || e[140] !== I || e[141] !== Re || e[142] !== T || e[143] !== et ? (U = /* @__PURE__ */ h("input", { ...I, id: c, type: "range", ref: $e, className: Re, min: t, max: i, step: u, value: T, disabled: a, "aria-labelledby": et, onChange: Ae }), e[133] = a, e[134] = $e, e[135] = Ae, e[136] = c, e[137] = i, e[138] = t, e[139] = u, e[140] = I, e[141] = Re, e[142] = T, e[143] = et, e[144] = U) : U = e[144];
277
- let G;
278
- e[145] !== w || e[146] !== Ee ? (G = w > 0 && /* @__PURE__ */ h("div", { className: s.tickWrapper, children: Ee }), e[145] = w, e[146] = Ee, e[147] = G) : G = e[147];
279
- let X;
280
- e[148] !== je ? (X = /* @__PURE__ */ h("div", { className: je }), e[148] = je, e[149] = X) : X = e[149];
281
- let J;
282
- e[150] !== a || e[151] !== L || e[152] !== T || e[153] !== Ue ? (J = L && /* @__PURE__ */ h("div", { className: Ue, "aria-disabled": a, children: T }), e[150] = a, e[151] = L, e[152] = T, e[153] = Ue, e[154] = J) : J = e[154];
283
- let Q;
284
- e[155] !== Qe || e[156] !== z || e[157] !== j || e[158] !== U || e[159] !== G || e[160] !== X || e[161] !== J ? (Q = /* @__PURE__ */ oe("div", { className: s.sliderWrapper, style: Qe, children: [
285
- z,
286
- j,
287
- U,
288
- G,
289
- X,
290
- J
291
- ] }), e[155] = Qe, e[156] = z, e[157] = j, e[158] = U, e[159] = G, e[160] = X, e[161] = J, e[162] = Q) : Q = e[162];
292
- let we;
293
- return e[163] !== E || e[164] !== q || e[165] !== Q ? (we = /* @__PURE__ */ oe("div", { className: s.root, children: [
294
- E,
295
- q,
296
- Q
297
- ] }), e[163] = E, e[164] = q, e[165] = Q, e[166] = we) : we = e[166], we;
298
- });
299
- Yt.displayName = "DSSlider";
300
- export {
301
- Yt as D,
302
- at as L,
303
- Ut as M,
304
- Jt as a,
305
- it as g,
306
- Gt as i,
307
- Xt as s,
308
- Qt as v
309
- };
@@ -1,38 +0,0 @@
1
- "use client";
2
- import { jsxs as f, jsx as S } from "react/jsx-runtime";
3
- import { d as _ } from "./index.cKLI89Eg.js";
4
- import { c as p } from "./index.DQOqod3i.js";
5
- import "react";
6
- import { D as E } from "./Icon.DYtaQgbw.js";
7
- import '../assets/SystemFeedback.DYi9QetY.css';const x = "ds-system-feedback_root_1chv3_1", D = {
8
- root: x
9
- }, C = ["success", "error", "warning"], k = {
10
- success: "circle-check-colored",
11
- error: "diamond-exclamationmark-colored",
12
- warning: "triangle-exclamationmark-colored"
13
- }, v = (n) => {
14
- const e = _.c(16);
15
- let s, t, o, r, c;
16
- e[0] !== n ? ({
17
- id: t,
18
- message: o,
19
- variant: c,
20
- className: s,
21
- ...r
22
- } = n, e[0] = n, e[1] = s, e[2] = t, e[3] = o, e[4] = r, e[5] = c) : (s = e[1], t = e[2], o = e[3], r = e[4], c = e[5]);
23
- let l;
24
- e[6] !== s ? (l = p(D.root, s), e[6] = s, e[7] = l) : l = e[7];
25
- const m = l, d = k[c];
26
- let a;
27
- e[8] !== d ? (a = /* @__PURE__ */ S(E, { name: d, "aria-hidden": "true" }), e[8] = d, e[9] = a) : a = e[9];
28
- let i;
29
- return e[10] !== t || e[11] !== o || e[12] !== r || e[13] !== m || e[14] !== a ? (i = /* @__PURE__ */ f("div", { id: t, className: m, ...r, children: [
30
- a,
31
- o
32
- ] }), e[10] = t, e[11] = o, e[12] = r, e[13] = m, e[14] = a, e[15] = i) : i = e[15], i;
33
- };
34
- export {
35
- v as D,
36
- k as S,
37
- C as a
38
- };
@@ -1,11 +0,0 @@
1
- "use client";
2
- import { a } from "./helpers.CexwVao7.js";
3
- import "react";
4
- import "./index.cKLI89Eg.js";
5
- const m = ["address", "blockquote", "cite", "div", "dd", "dfn", "dt", "figcaption", "legend", "li", "p", "span", "time"], r = ["large", "medium", "small", "x-small", "xx-small"], o = ["bold", "normal"], d = (t, s) => Array.isArray(s) ? s.some((i) => !!a(t, i)) : !!a(t, s);
6
- export {
7
- r as T,
8
- m as a,
9
- o as b,
10
- d as i
11
- };