@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
@@ -0,0 +1,226 @@
1
+ "use client";
2
+ import { jsxs as me, jsx as x } from "react/jsx-runtime";
3
+ import { useState as q, useRef as ee, useEffect as j, createElement as pe } from "react";
4
+ import { d as he } from "./chunks/index.cKLI89Eg.js";
5
+ import { c as te } from "./chunks/index.DQOqod3i.js";
6
+ import { f as be } from "./chunks/AriaLiveRegions.utils.xoETe2Ps.js";
7
+ import { v as ge, D as le, d as Se } from "./chunks/Chip.DffaXMkV.js";
8
+ import { t as ke } from "./chunks/translate.DSb-TdWR.js";
9
+ import { u as Ce } from "./chunks/useBreakpoint.1txsny17.js";
10
+ import './assets/chipgroup.DtCnsmS7.css';const ye = "ds-chip-group_label--hidden_137ot_1", we = "ds-chip-group_label_137ot_1", De = "ds-chip-group_label--dark_137ot_25", ve = "ds-chip-group_root_137ot_29", z = {
11
+ labelHidden: ye,
12
+ label: we,
13
+ labelDark: De,
14
+ root: ve
15
+ }, Ve = (c) => {
16
+ const e = he.c(37);
17
+ let i, p, f, S, r, k, C, y, w, D, v, $, _;
18
+ e[0] !== c ? ({
19
+ chips: i,
20
+ id: f,
21
+ label: S,
22
+ className: p,
23
+ disableTooltips: C,
24
+ hideLabel: y,
25
+ isRemovable: w,
26
+ lang: D,
27
+ selectionMode: v,
28
+ size: $,
29
+ translations: _,
30
+ onChipsChange: r,
31
+ ...k
32
+ } = c, e[0] = c, e[1] = i, e[2] = p, e[3] = f, e[4] = S, e[5] = r, e[6] = k, e[7] = C, e[8] = y, e[9] = w, e[10] = D, e[11] = v, e[12] = $, e[13] = _) : (i = e[1], p = e[2], f = e[3], S = e[4], r = e[5], k = e[6], C = e[7], y = e[8], w = e[9], D = e[10], v = e[11], $ = e[12], _ = e[13]);
33
+ const ne = C === void 0 ? !1 : C, se = y === void 0 ? !1 : y, d = w === void 0 ? !1 : w, U = D === void 0 ? "en" : D, m = v === void 0 ? "single" : v, oe = $ === void 0 ? "medium" : $, {
34
+ theme: J
35
+ } = k, Q = J === void 0 ? "light" : J;
36
+ process.env.NODE_ENV !== "production" && ge({
37
+ chips: i,
38
+ id: f,
39
+ label: S
40
+ });
41
+ const a = ke(_ || le[U] || le.en, U), [n, h] = q(null);
42
+ let A;
43
+ e[14] !== i ? (A = () => i.map($e), e[14] = i, e[15] = A) : A = e[15];
44
+ const [s, E] = q(A), X = ee(null), [u, P] = q();
45
+ let N;
46
+ e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = [], e[16] = N) : N = e[16];
47
+ const I = ee(N);
48
+ let K, M;
49
+ e[17] !== i ? (K = () => {
50
+ E(i.map(_e));
51
+ }, M = [i], e[17] = i, e[18] = K, e[19] = M) : (K = e[18], M = e[19]), j(K, M);
52
+ let T, G;
53
+ e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = () => {
54
+ const t = () => P("keydown"), l = () => P(null), o = () => P(null);
55
+ return document.addEventListener("keydown", t), document.addEventListener("mousedown", l), document.addEventListener("touchstart", o), () => {
56
+ document.removeEventListener("keydown", t), document.removeEventListener("mousedown", l), document.removeEventListener("touchstart", o);
57
+ };
58
+ }, G = [], e[20] = T, e[21] = G) : (T = e[20], G = e[21]), j(T, G);
59
+ let R;
60
+ e[22] !== n || e[23] !== u ? (R = () => {
61
+ n !== null && I.current[n] && u === "keydown" && I.current[n]?.focus();
62
+ }, e[22] = n, e[23] = u, e[24] = R) : R = e[24];
63
+ let B;
64
+ e[25] !== n ? (B = [n], e[25] = n, e[26] = B) : B = e[26], j(R, B);
65
+ let F;
66
+ e[27] !== s.length || e[28] !== n || e[29] !== u ? (F = () => {
67
+ u === "keydown" && n !== null && s.length > 0 && I.current.forEach((t, l) => {
68
+ t && (t.tabIndex = l === n ? 0 : -1, l === n && t.focus());
69
+ });
70
+ }, e[27] = s.length, e[28] = n, e[29] = u, e[30] = F) : F = e[30];
71
+ let H;
72
+ e[31] !== s ? (H = [s], e[31] = s, e[32] = H) : H = e[32], j(F, H);
73
+ const ce = (t) => {
74
+ if (n === null)
75
+ return;
76
+ let l = n;
77
+ e: switch (t.key) {
78
+ case "a": {
79
+ (t.metaKey || t.ctrlKey) && (t.preventDefault(), ie());
80
+ break e;
81
+ }
82
+ case "ArrowRight":
83
+ case "ArrowDown": {
84
+ t.shiftKey && m === "multiple" && !d ? (l = n + 1 > s.length - 1 ? s.length - 1 : n + 1, n !== l ? (b(n), b(l)) : s[n].isSelected || b(n)) : (l = (n + 1) % s.length, t.preventDefault());
85
+ break e;
86
+ }
87
+ case "ArrowLeft":
88
+ case "ArrowUp": {
89
+ t.shiftKey && m === "multiple" && !d ? (l = n - 1 < 0 ? 0 : n - 1, n !== l ? (b(n), b(l)) : s[0].isSelected || b(0)) : (l = (n - 1 + s.length) % s.length, t.preventDefault());
90
+ break e;
91
+ }
92
+ case "Enter":
93
+ case " ": {
94
+ if (t.preventDefault(), d) {
95
+ W(l), s[l]?.onClick?.(t);
96
+ return;
97
+ } else
98
+ Y(l), s[l]?.onClick?.(t);
99
+ break e;
100
+ }
101
+ case "Backspace": {
102
+ d && W(l), t.preventDefault();
103
+ return;
104
+ }
105
+ default:
106
+ return;
107
+ }
108
+ h(l);
109
+ }, ie = () => {
110
+ if (m !== "multiple")
111
+ return;
112
+ const t = s.map(Ee);
113
+ E(t);
114
+ const l = t.length;
115
+ L(a("countSelected", {
116
+ count: l
117
+ })), r && r(t);
118
+ }, b = (t) => {
119
+ if (d)
120
+ return;
121
+ const l = s.map(Ie);
122
+ if (l[t].disabled)
123
+ return;
124
+ l[t].isSelected = !0;
125
+ const o = l.filter(Le).length;
126
+ L(`${l[t].label} ${a("selected")}, ${a("countSelected", {
127
+ count: o
128
+ })}`), E(l), r && r(l);
129
+ }, Y = (t) => {
130
+ if (d)
131
+ return;
132
+ const l = [...s];
133
+ if (!l[t].disabled) {
134
+ if (m === "single")
135
+ l.forEach((o, g) => {
136
+ g === t ? (o.isSelected = !o.isSelected, L(o.isSelected ? `${o.label} ${a("selected")}` : `${o.label} ${a("notSelected")}`)) : o.isSelected = !1;
137
+ });
138
+ else if (m === "multiple") {
139
+ l[t].isSelected = !l[t].isSelected;
140
+ const o = l.filter(Ae).length, g = a("countSelected", {
141
+ count: o
142
+ });
143
+ L(l[t].isSelected ? `${l[t].label} ${a("selected")}, ${g}` : `${l[t].label} ${a("notSelected")}, ${g}`);
144
+ }
145
+ E(l), r && r(l);
146
+ }
147
+ }, W = (t) => {
148
+ const l = s[t], o = s.filter((Z, fe) => fe !== t).map(Ne);
149
+ E(o);
150
+ const g = o.length;
151
+ if (L(`${l.label} ${a("removed")}, ${a("countRemaining", {
152
+ count: g
153
+ })}`), u === "keydown")
154
+ if (o.length > 0) {
155
+ const Z = Math.min(t, o.length - 1);
156
+ h(Z);
157
+ } else
158
+ X.current?.focus(), h(null);
159
+ r && r(o);
160
+ }, re = (t) => {
161
+ d ? W(t) : s[t].disabled || Y(t);
162
+ }, L = Ke;
163
+ let O;
164
+ e[33] !== n ? (O = (t) => n === null || n === t ? 0 : -1, e[33] = n, e[34] = O) : O = e[34];
165
+ const ae = O, ue = Ce(se);
166
+ let V;
167
+ e[35] !== p ? (V = te(z.root, p), e[35] = p, e[36] = V) : V = e[36];
168
+ const de = V;
169
+ return s.length === 0 ? null : /* @__PURE__ */ me("div", { children: [
170
+ /* @__PURE__ */ x("div", { id: f, className: te(z.label, {
171
+ [z.labelHidden]: ue,
172
+ [z.labelDark]: Q === "dark"
173
+ }) || void 0, children: S }),
174
+ s.length > 0 && /* @__PURE__ */ x("div", { ref: X, role: "grid", "aria-labelledby": f, "aria-multiselectable": m === "multiple", tabIndex: -1, onKeyDown: ce, onFocus: () => {
175
+ n === null ? (I.current[0].focus(), u === "keydown" && h(0)) : u === "keydown" && h(n);
176
+ }, onBlur: () => h(null), className: de, ...k, children: s.map((t, l) => /* @__PURE__ */ pe(Se, { ...t, key: `${t.id}-${l}`, "data-focused": n === l, disableTooltips: ne, groupId: f, isRemovable: d, lang: U, selectionMode: m, size: oe, theme: Q, tabIndex: ae(l), translations: _, onClick: (o) => {
177
+ re(l), t.onClick && t.onClick(o);
178
+ }, ref: (o) => {
179
+ I.current[l] = o;
180
+ } })) })
181
+ ] });
182
+ };
183
+ function $e(c) {
184
+ return {
185
+ ...c
186
+ };
187
+ }
188
+ function _e(c) {
189
+ return {
190
+ ...c
191
+ };
192
+ }
193
+ function Ee(c) {
194
+ return {
195
+ ...c,
196
+ selected: !c.disabled
197
+ };
198
+ }
199
+ function Ie(c) {
200
+ return {
201
+ ...c
202
+ };
203
+ }
204
+ function Le(c) {
205
+ const {
206
+ isSelected: e
207
+ } = c;
208
+ return e;
209
+ }
210
+ function Ae(c) {
211
+ const {
212
+ isSelected: e
213
+ } = c;
214
+ return e;
215
+ }
216
+ function Ne(c) {
217
+ return {
218
+ ...c
219
+ };
220
+ }
221
+ function Ke(c) {
222
+ be(c, "DSChipGroup");
223
+ }
224
+ export {
225
+ Ve as DSChipGroup
226
+ };
@@ -0,0 +1,179 @@
1
+ "use client";
2
+ import { jsx as p, jsxs as G } from "react/jsx-runtime";
3
+ import { d as ve } from "./index.cKLI89Eg.js";
4
+ import { c as N } from "./index.DQOqod3i.js";
5
+ import { forwardRef as Ce, useRef as We, useState as ze, useImperativeHandle as De, useEffect as ge } from "react";
6
+ import { DSHeading as Ne } from "../heading.BHSklXho.js";
7
+ import { D as Oe } from "./Icon.DYtaQgbw.js";
8
+ import { NumberIndicator as be } from "../numberindicator.DsK65Bj3.js";
9
+ import { g as J } from "./helpers.CexwVao7.js";
10
+ import '../assets/Accordion.RlqWqpGo.css';const xe = "ds-accordion_details_zfwi3_1", Ae = "ds-accordion_details--dark_zfwi3_112", Ie = "ds-accordion_summary_zfwi3_241", Ee = "ds-accordion_summary--utility--m_zfwi3_280", Te = "ds-accordion_summary--dark_zfwi3_309", Xe = "ds-accordion_summary--flush_zfwi3_348", Fe = "ds-accordion_summary--small_zfwi3_460", ke = "ds-accordion_summary--x-small_zfwi3_464", Pe = "ds-accordion_summary-content-wrapper_zfwi3_469", Re = "ds-accordion_summary-content-wrapper--flush_zfwi3_475", Le = "ds-accordion_summary-content-wrapper--chevron-left_zfwi3_479", je = "ds-accordion_summary-content-wrapper--x-small_zfwi3_483", Me = "ds-accordion_heading-summary-wrapper_zfwi3_487", He = "ds-accordion_heading-summary_zfwi3_487", Ue = "ds-accordion_heading-summary--x-small_zfwi3_497", qe = "ds-accordion_hint_zfwi3_501", Ve = "ds-accordion_icon_zfwi3_515", Ze = "ds-accordion_icon--open_zfwi3_526", $e = "ds-accordion_icon--open-caret_zfwi3_537", Be = "ds-accordion_content-wrapper_zfwi3_549", Ge = "ds-accordion_content-wrapper--flush_zfwi3_555", Je = "ds-accordion_content-wrapper--small_zfwi3_559", Ke = "ds-accordion_content-wrapper--x-small_zfwi3_563", t = {
11
+ details: xe,
12
+ detailsDark: Ae,
13
+ summary: Ie,
14
+ summaryUtilityM: Ee,
15
+ summaryDark: Te,
16
+ summaryFlush: Xe,
17
+ summarySmall: Fe,
18
+ summaryXSmall: ke,
19
+ summaryContentWrapper: Pe,
20
+ summaryContentWrapperFlush: Re,
21
+ summaryContentWrapperChevronLeft: Le,
22
+ summaryContentWrapperXSmall: je,
23
+ headingSummaryWrapper: Me,
24
+ headingSummary: He,
25
+ headingSummaryXSmall: Ue,
26
+ hint: qe,
27
+ icon: Ve,
28
+ iconOpen: Ze,
29
+ iconOpenCaret: $e,
30
+ contentWrapper: Be,
31
+ contentWrapperFlush: Ge,
32
+ contentWrapperSmall: Je,
33
+ contentWrapperXSmall: Ke
34
+ }, ct = ["medium", "small", "x-small"], lt = ["chevron", "caret"], mt = ["left", "right"], Qe = ({
35
+ children: O,
36
+ hint: K,
37
+ numberIndicatorValue: e,
38
+ numberIndicatorAriaLabel: a,
39
+ summary: i
40
+ }) => {
41
+ if (!O)
42
+ throw new Error(J("DSAccordion", "The component requires children to be set."));
43
+ if (!i)
44
+ throw new Error(J("DSAccordion", "The summary prop is required. Please add the summary prop to the DSAccordion component."));
45
+ if (K && (e || e === ""))
46
+ throw new Error(J("DSAccordion", "The hint and numberIndicator props cannot be used together. Please remove either the hint prop or the numberIndicatorValue prop."));
47
+ (e || e === "") && !a && console.warn(J("DSAccordion", "Please provide a descriptive aria-label for the Number Indicator for better accessibility."));
48
+ }, Ye = Ce((O, K) => {
49
+ const e = ve.c(83);
50
+ let a, i, c, m, n, u, f, r, b, x, A, I, E;
51
+ e[0] !== O ? ({
52
+ children: a,
53
+ summary: r,
54
+ chevronPosition: b,
55
+ className: i,
56
+ hint: c,
57
+ isFlush: x,
58
+ isOpen: A,
59
+ numberIndicatorValue: n,
60
+ numberIndicatorAriaLabel: m,
61
+ size: I,
62
+ theme: E,
63
+ onToggle: u,
64
+ ...f
65
+ } = O, e[0] = O, e[1] = a, e[2] = i, e[3] = c, e[4] = m, e[5] = n, e[6] = u, e[7] = f, e[8] = r, e[9] = b, e[10] = x, e[11] = A, e[12] = I, e[13] = E) : (a = e[1], i = e[2], c = e[3], m = e[4], n = e[5], u = e[6], f = e[7], r = e[8], b = e[9], x = e[10], A = e[11], I = e[12], E = e[13]);
66
+ const _e = b === void 0 ? "right" : b, o = x === void 0 ? !1 : x, d = A === void 0 ? !1 : A, h = I === void 0 ? "medium" : I, s = E === void 0 ? "light" : E;
67
+ process.env.NODE_ENV !== "production" && Qe({
68
+ children: a,
69
+ hint: c,
70
+ numberIndicatorValue: n,
71
+ numberIndicatorAriaLabel: m,
72
+ summary: r
73
+ });
74
+ const _ = s === "dark", Q = _e === "right" ? "chevron" : "caret", l = We(null), [ye, Se] = ze(d);
75
+ let X;
76
+ e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = () => l.current, e[14] = X) : X = e[14], De(K, X);
77
+ let F;
78
+ e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (F = () => {
79
+ l.current && Se(l.current.open);
80
+ }, e[15] = F) : F = e[15];
81
+ let k;
82
+ e[16] !== d ? (k = [d], e[16] = d, e[17] = k) : k = e[17], ge(F, k);
83
+ let P, R;
84
+ e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = () => {
85
+ const we = () => {
86
+ l.current && Se(l.current.open);
87
+ };
88
+ return l.current?.addEventListener("toggle", we), () => {
89
+ l.current?.removeEventListener("toggle", we);
90
+ };
91
+ }, P = [], e[18] = P, e[19] = R) : (P = e[18], R = e[19]), ge(R, P);
92
+ let L, j, M;
93
+ const T = typeof r == "object" && r !== void 0;
94
+ T && ({
95
+ headingSize: L,
96
+ headingTag: j,
97
+ headingText: M
98
+ } = r);
99
+ let H;
100
+ e[20] !== i || e[21] !== _ ? (H = N(t.details, i, {
101
+ [t.detailsDark]: _
102
+ }), e[20] = i, e[21] = _, e[22] = H) : H = e[22];
103
+ const Y = H, ee = h === "small", te = h === "x-small", re = !T;
104
+ let U;
105
+ e[23] !== _ || e[24] !== o || e[25] !== ee || e[26] !== te || e[27] !== re ? (U = N(t.summary, {
106
+ [t.summaryDark]: _,
107
+ [t.summaryFlush]: o,
108
+ [t.summarySmall]: ee,
109
+ [t.summaryXSmall]: te,
110
+ [t.summaryUtilityM]: re
111
+ }), e[23] = _, e[24] = o, e[25] = ee, e[26] = te, e[27] = re, e[28] = U) : U = e[28];
112
+ const se = U, ae = _e === "left", ne = h === "x-small";
113
+ let q;
114
+ e[29] !== o || e[30] !== ae || e[31] !== ne ? (q = N(t.summaryContentWrapper, {
115
+ [t.summaryContentWrapperFlush]: o,
116
+ [t.summaryContentWrapperChevronLeft]: ae,
117
+ [t.summaryContentWrapperXSmall]: ne
118
+ }), e[29] = o, e[30] = ae, e[31] = ne, e[32] = q) : q = e[32];
119
+ const oe = q, ie = h === "x-small";
120
+ let V;
121
+ e[33] !== ie ? (V = N(t.headingSummary, {
122
+ [t.headingSummaryXSmall]: ie
123
+ }), e[33] = ie, e[34] = V) : V = e[34];
124
+ const ce = V, le = Q === "chevron" && ye, me = Q === "caret" && ye;
125
+ let Z;
126
+ e[35] !== le || e[36] !== me ? (Z = N(t.icon, {
127
+ [t.iconOpen]: le,
128
+ [t.iconOpenCaret]: me
129
+ }), e[35] = le, e[36] = me, e[37] = Z) : Z = e[37];
130
+ const de = Z, pe = h === "small", ue = h === "x-small";
131
+ let $;
132
+ e[38] !== o || e[39] !== pe || e[40] !== ue ? ($ = N(t.contentWrapper, {
133
+ [t.contentWrapperFlush]: o,
134
+ [t.contentWrapperSmall]: pe,
135
+ [t.contentWrapperXSmall]: ue
136
+ }), e[38] = o, e[39] = pe, e[40] = ue, e[41] = $) : $ = e[41];
137
+ const fe = $;
138
+ let y;
139
+ e[42] !== L || e[43] !== j || e[44] !== M || e[45] !== T || e[46] !== r || e[47] !== s ? (y = T ? /* @__PURE__ */ p(Ne, { tag: j, size: L, theme: s, children: M }) : r, e[42] = L, e[43] = j, e[44] = M, e[45] = T, e[46] = r, e[47] = s, e[48] = y) : y = e[48];
140
+ let S;
141
+ e[49] !== m || e[50] !== n || e[51] !== s ? (S = (n || n?.trim() === "") && /* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(be, { "aria-label": m, label: n, theme: s }) }), e[49] = m, e[50] = n, e[51] = s, e[52] = S) : S = e[52];
142
+ let w;
143
+ e[53] !== ce || e[54] !== y || e[55] !== S ? (w = /* @__PURE__ */ G("div", { className: ce, children: [
144
+ y,
145
+ S
146
+ ] }), e[53] = ce, e[54] = y, e[55] = S, e[56] = w) : w = e[56];
147
+ let g;
148
+ e[57] !== c ? (g = c && /* @__PURE__ */ p("div", { className: t.hint, children: c }), e[57] = c, e[58] = g) : g = e[58];
149
+ let v;
150
+ e[59] !== w || e[60] !== g ? (v = /* @__PURE__ */ G("div", { className: t.headingSummaryWrapper, children: [
151
+ w,
152
+ g
153
+ ] }), e[59] = w, e[60] = g, e[61] = v) : v = e[61];
154
+ const he = Q === "chevron" ? "chevron-down" : "caret-right";
155
+ let C;
156
+ e[62] !== de || e[63] !== he || e[64] !== s ? (C = /* @__PURE__ */ p(Oe, { name: he, "aria-hidden": "true", className: de, theme: s }), e[62] = de, e[63] = he, e[64] = s, e[65] = C) : C = e[65];
157
+ let W;
158
+ e[66] !== oe || e[67] !== v || e[68] !== C ? (W = /* @__PURE__ */ G("div", { className: oe, children: [
159
+ v,
160
+ C
161
+ ] }), e[66] = oe, e[67] = v, e[68] = C, e[69] = W) : W = e[69];
162
+ let z;
163
+ e[70] !== se || e[71] !== W ? (z = /* @__PURE__ */ p("summary", { className: se, children: W }), e[70] = se, e[71] = W, e[72] = z) : z = e[72];
164
+ let D;
165
+ e[73] !== a || e[74] !== fe ? (D = /* @__PURE__ */ p("div", { className: fe, children: a }), e[73] = a, e[74] = fe, e[75] = D) : D = e[75];
166
+ let B;
167
+ return e[76] !== Y || e[77] !== d || e[78] !== u || e[79] !== f || e[80] !== z || e[81] !== D ? (B = /* @__PURE__ */ G("details", { ...f, ref: l, className: Y, open: d, onToggle: u, children: [
168
+ z,
169
+ D
170
+ ] }), e[76] = Y, e[77] = d, e[78] = u, e[79] = f, e[80] = z, e[81] = D, e[82] = B) : B = e[82], B;
171
+ });
172
+ Ye.displayName = "DSAccordion";
173
+ export {
174
+ lt as A,
175
+ mt as C,
176
+ Ye as D,
177
+ ct as a,
178
+ Qe as v
179
+ };
@@ -0,0 +1,194 @@
1
+ "use client";
2
+ import { jsxs as Q, jsx as d, Fragment as Pt } from "react/jsx-runtime";
3
+ import { d as Ct } from "./index.cKLI89Eg.js";
4
+ import { c as O } from "./index.DQOqod3i.js";
5
+ import { forwardRef as Ot } from "react";
6
+ import { D as Dt } from "./Icon.DYtaQgbw.js";
7
+ import { NumberIndicator as St } from "../numberindicator.DsK65Bj3.js";
8
+ import { Tooltip as wt } from "../tooltip.BFQG-7VR.js";
9
+ import { g as m } from "./helpers.CexwVao7.js";
10
+ import '../assets/ActionButton.Dw2FeIaW.css';const Bt = "ds-action-button_root_1hfui_1", Lt = "ds-action-button_root--indent-level-1_1hfui_75", Mt = "ds-action-button_root--active_1hfui_78", Et = "ds-action-button_root--active--with-marker_1hfui_81", xt = "ds-action-button_root--icon--top_1hfui_84", Ut = "ds-action-button_root--stretched_1hfui_110", zt = "ds-action-button_root--dark_1hfui_114", Rt = "ds-action-button_active-marker_1hfui_164", Vt = "ds-action-button_active-marker--with-indent_1hfui_176", yt = "ds-action-button_active-marker--dark_1hfui_179", Ht = "ds-action-button_icon-wrapper_1hfui_188", Xt = "ds-action-button_icon-wrapper--x-large_1hfui_191", jt = "ds-action-button_icon-wrapper--with-number-indicator_1hfui_194", Ft = "ds-action-button_icon-wrapper--with-number-indicator--with-value_1hfui_202", Gt = "ds-action-button_label_1hfui_206", Zt = "ds-action-button_label--bold_1hfui_217", $t = "ds-action-button_label--active_1hfui_229", qt = "ds-action-button_label--icon-top_1hfui_241", Jt = "ds-action-button_number-indicator_1hfui_264", Kt = "ds-action-button_label-wrapper_1hfui_268", Qt = "ds-action-button_label-wrapper--icon-top_1hfui_273", Yt = "ds-action-button_chevron_1hfui_277", to = "ds-action-button_chevron--icon-position-top_1hfui_292", oo = "ds-action-button_chevron--up_1hfui_298", eo = "ds-action-button_chevron--right_1hfui_309", no = "ds-action-button_chevron--left_1hfui_320", o = {
11
+ root: Bt,
12
+ rootIndentLevel1: Lt,
13
+ rootActive: Mt,
14
+ rootActiveWithMarker: Et,
15
+ rootIconTop: xt,
16
+ rootStretched: Ut,
17
+ rootDark: zt,
18
+ activeMarker: Rt,
19
+ activeMarkerWithIndent: Vt,
20
+ activeMarkerDark: yt,
21
+ iconWrapper: Ht,
22
+ iconWrapperXLarge: Xt,
23
+ iconWrapperWithNumberIndicator: jt,
24
+ iconWrapperWithNumberIndicatorWithValue: Ft,
25
+ label: Gt,
26
+ labelBold: Zt,
27
+ labelActive: $t,
28
+ labelIconTop: qt,
29
+ numberIndicator: Jt,
30
+ labelWrapper: Kt,
31
+ labelWrapperIconTop: Qt,
32
+ chevron: Yt,
33
+ chevronIconPositionTop: to,
34
+ chevronUp: oo,
35
+ chevronRight: eo,
36
+ chevronLeft: no
37
+ }, _o = ["left", "top"], bo = ["large", "x-large"], vo = [0, 1], mo = ["normal", "bold"], Io = ["up", "down", "right", "left"], io = ({
38
+ iconName: I,
39
+ iconSize: N,
40
+ iconSource: t,
41
+ iconPosition: u,
42
+ indentLevel: a,
43
+ stretched: f,
44
+ weight: _,
45
+ numberIndicatorValue: r,
46
+ numberIndicatorAriaLabel: c
47
+ }) => {
48
+ if (I && !t && N === "x-large" && console.warn(m("DSActionButton", 'An "iconSize" prop set to "x-large" has no effect when "iconName" is set. Please remove the "iconSize" prop or provide a custom icon via the "iconSource" prop.')), u === "top") {
49
+ if (!I && !t)
50
+ throw new Error(m("DSActionButton", 'The "iconPosition" prop should not be set to "top", when no "iconName" or "iconSource" prop was provided. Please either remove the "iconPosition" prop or set a valid icon via the "iconName" or "iconSource" prop.'));
51
+ N === "x-large" && console.warn(m("DSActionButton", 'An "iconSize" prop set to "x-large" has no effect when "iconPosition" is set to "top". Please remove the "iconSize" prop.')), _ === "bold" && console.warn(m("DSActionButton", 'A "weight" prop set to "bold" with "iconPosition" set to "top" has no effect. Please remove the "weight" prop.')), a === 1 && console.warn(m("DSActionButton", 'An "indentLevel" prop set to "1" with "iconPosition" set to "top" has no effect. Please remove the "indentLevel" prop.')), f && console.warn(m("DSActionButton", 'A "stretched" prop set to "true" with "iconPosition" set to "top" has no effect. Please remove the "stretched" prop.'));
52
+ }
53
+ (r || r === "") && !c && console.warn(m("DSActionButton", "Please provide a descriptive aria-label for the Number Indicator for better accessibility."));
54
+ }, ro = Ot((I, N) => {
55
+ const t = Ct.c(102);
56
+ let u, a, f, _, r, c, l, n, b, W, B, L, M, E, x, U, z, R, v;
57
+ t[0] !== I ? ({
58
+ children: f,
59
+ aria: u,
60
+ chevronDirection: a,
61
+ className: _,
62
+ disabled: B,
63
+ iconName: r,
64
+ iconPosition: L,
65
+ iconSize: M,
66
+ iconSource: c,
67
+ indentLevel: E,
68
+ isActive: x,
69
+ numberIndicatorValue: n,
70
+ numberIndicatorAriaLabel: l,
71
+ stretched: U,
72
+ weight: z,
73
+ theme: R,
74
+ tooltip: v,
75
+ onClick: b,
76
+ ...W
77
+ } = I, t[0] = I, t[1] = u, t[2] = a, t[3] = f, t[4] = _, t[5] = r, t[6] = c, t[7] = l, t[8] = n, t[9] = b, t[10] = W, t[11] = B, t[12] = L, t[13] = M, t[14] = E, t[15] = x, t[16] = U, t[17] = z, t[18] = R, t[19] = v) : (u = t[1], a = t[2], f = t[3], _ = t[4], r = t[5], c = t[6], l = t[7], n = t[8], b = t[9], W = t[10], B = t[11], L = t[12], M = t[13], E = t[14], x = t[15], U = t[16], z = t[17], R = t[18], v = t[19]);
78
+ const i = B === void 0 ? !1 : B, e = L === void 0 ? "left" : L, V = M === void 0 ? "large" : M, Y = E === void 0 ? 0 : E, A = x === void 0 ? !1 : x, gt = U === void 0 ? !1 : U, kt = z === void 0 ? "normal" : z, s = R === void 0 ? "light" : R;
79
+ process.env.NODE_ENV !== "production" && io({
80
+ iconName: r,
81
+ iconSize: V,
82
+ iconSource: c,
83
+ iconPosition: e,
84
+ indentLevel: Y,
85
+ numberIndicatorValue: n,
86
+ numberIndicatorAriaLabel: l,
87
+ stretched: gt,
88
+ weight: kt
89
+ });
90
+ const T = s === "dark";
91
+ let y;
92
+ t[20] !== n ? (y = n?.trim(), t[20] = n, t[21] = y) : y = t[21];
93
+ const p = y === "", tt = e === "top", ot = Y === 1, et = A && !i, nt = A && !i && e === "left", it = gt === !0 && e === "left";
94
+ let H;
95
+ t[22] !== _ || t[23] !== T || t[24] !== tt || t[25] !== ot || t[26] !== et || t[27] !== nt || t[28] !== it ? (H = O(o.root, _, {
96
+ [o.rootDark]: T,
97
+ [o.rootIconTop]: tt,
98
+ [o.rootIndentLevel1]: ot,
99
+ [o.rootActive]: et,
100
+ [o.rootActiveWithMarker]: nt,
101
+ [o.rootStretched]: it
102
+ }), t[22] = _, t[23] = T, t[24] = tt, t[25] = ot, t[26] = et, t[27] = nt, t[28] = it, t[29] = H) : H = t[29];
103
+ const rt = H, ct = Y === 1;
104
+ let X;
105
+ t[30] !== T || t[31] !== ct ? (X = O(o.activeMarker, {
106
+ [o.activeMarkerDark]: T,
107
+ [o.activeMarkerWithIndent]: ct
108
+ }), t[30] = T, t[31] = ct, t[32] = X) : X = t[32];
109
+ const at = X, st = A && !i, lt = kt === "bold", pt = e === "top";
110
+ let j;
111
+ t[33] !== st || t[34] !== lt || t[35] !== pt ? (j = O(o.label, {
112
+ [o.labelActive]: st,
113
+ [o.labelBold]: lt,
114
+ [o.labelIconTop]: pt
115
+ }), t[33] = st, t[34] = lt, t[35] = pt, t[36] = j) : j = t[36];
116
+ const ht = j, dt = e === "top";
117
+ let F;
118
+ t[37] !== dt ? (F = O(o.labelWrapper, {
119
+ [o.labelWrapperIconTop]: dt
120
+ }), t[37] = dt, t[38] = F) : F = t[38];
121
+ const ut = F, ft = e === "top", _t = a === "up", bt = a === "right", vt = a === "left";
122
+ let G;
123
+ t[39] !== ft || t[40] !== _t || t[41] !== bt || t[42] !== vt ? (G = O(o.chevron, {
124
+ [o.chevronIconPositionTop]: ft,
125
+ [o.chevronUp]: _t,
126
+ [o.chevronRight]: bt,
127
+ [o.chevronLeft]: vt
128
+ }), t[39] = ft, t[40] = _t, t[41] = bt, t[42] = vt, t[43] = G) : G = t[43];
129
+ const mt = G, It = V === "x-large", Nt = (r || c) && (n || p), Wt = (r || c) && !p;
130
+ let Z;
131
+ t[44] !== It || t[45] !== Nt || t[46] !== Wt ? (Z = O(o.iconWrapper, {
132
+ [o.iconWrapperXLarge]: It,
133
+ [o.iconWrapperWithNumberIndicator]: Nt,
134
+ [o.iconWrapperWithNumberIndicatorWithValue]: Wt
135
+ }), t[44] = It, t[45] = Nt, t[46] = Wt, t[47] = Z) : Z = t[47];
136
+ const At = Z;
137
+ let $;
138
+ t[48] !== i || t[49] !== b ? ($ = (h) => {
139
+ if (i) {
140
+ h.preventDefault();
141
+ return;
142
+ }
143
+ b && b(h);
144
+ }, t[48] = i, t[49] = b, t[50] = $) : $ = t[50];
145
+ const Tt = $;
146
+ let w;
147
+ t[51] !== at || t[52] !== e || t[53] !== A ? (w = A && e === "left" && /* @__PURE__ */ d("div", { className: at }), t[51] = at, t[52] = e, t[53] = A, t[54] = w) : w = t[54];
148
+ let g;
149
+ t[55] !== i || t[56] !== r || t[57] !== e || t[58] !== V || t[59] !== c || t[60] !== At || t[61] !== p || t[62] !== l || t[63] !== n || t[64] !== s ? (g = (r || c) && /* @__PURE__ */ d(Pt, { children: /* @__PURE__ */ Q("span", { className: At, children: [
150
+ /* @__PURE__ */ d(Dt, { name: r, theme: s, source: c, "aria-hidden": "true", size: r || e === "top" ? "large" : V }),
151
+ !i && (e === "left" && p || e === "top" && (n || p)) && /* @__PURE__ */ d(St, { variant: "highlight", "aria-label": l, label: n, theme: s })
152
+ ] }) }), t[55] = i, t[56] = r, t[57] = e, t[58] = V, t[59] = c, t[60] = At, t[61] = p, t[62] = l, t[63] = n, t[64] = s, t[65] = g) : g = t[65];
153
+ let k;
154
+ t[66] !== f || t[67] !== ht ? (k = /* @__PURE__ */ d("span", { className: ht, children: f }), t[66] = f, t[67] = ht, t[68] = k) : k = t[68];
155
+ let D;
156
+ t[69] !== mt || t[70] !== a || t[71] !== s ? (D = a && /* @__PURE__ */ d(Dt, { name: "chevron-down", theme: s, "aria-hidden": "true", className: mt }), t[69] = mt, t[70] = a, t[71] = s, t[72] = D) : D = t[72];
157
+ let S;
158
+ t[73] !== ut || t[74] !== k || t[75] !== D ? (S = /* @__PURE__ */ Q("div", { className: ut, children: [
159
+ k,
160
+ D
161
+ ] }), t[73] = ut, t[74] = k, t[75] = D, t[76] = S) : S = t[76];
162
+ let P;
163
+ t[77] !== i || t[78] !== e || t[79] !== p || t[80] !== l || t[81] !== n || t[82] !== s ? (P = e === "left" && !i && n && !p && /* @__PURE__ */ d(St, { variant: "default", "aria-label": l, label: n, className: o.numberIndicator, theme: s }), t[77] = i, t[78] = e, t[79] = p, t[80] = l, t[81] = n, t[82] = s, t[83] = P) : P = t[83];
164
+ let q;
165
+ t[84] !== u || t[85] !== i || t[86] !== Tt || t[87] !== N || t[88] !== W || t[89] !== rt || t[90] !== w || t[91] !== g || t[92] !== S || t[93] !== P ? (q = /* @__PURE__ */ Q("button", { className: rt, type: "button", onClick: Tt, ...u, ...W, "aria-disabled": i, ref: N, children: [
166
+ w,
167
+ g,
168
+ S,
169
+ P
170
+ ] }), t[84] = u, t[85] = i, t[86] = Tt, t[87] = N, t[88] = W, t[89] = rt, t[90] = w, t[91] = g, t[92] = S, t[93] = P, t[94] = q) : q = t[94];
171
+ const J = q;
172
+ if (v) {
173
+ let h;
174
+ t[95] !== J ? (h = /* @__PURE__ */ d(wt.Anchor, { children: J }), t[95] = J, t[96] = h) : h = t[96];
175
+ let C;
176
+ t[97] !== v ? (C = /* @__PURE__ */ d(wt.Content, { children: v }), t[97] = v, t[98] = C) : C = t[98];
177
+ let K;
178
+ return t[99] !== h || t[100] !== C ? (K = /* @__PURE__ */ Q(wt, { placement: "top", tooltipOffset: 6, children: [
179
+ h,
180
+ C
181
+ ] }), t[99] = h, t[100] = C, t[101] = K) : K = t[101], K;
182
+ }
183
+ return J;
184
+ });
185
+ ro.displayName = "DSActionButton";
186
+ export {
187
+ Io as A,
188
+ ro as D,
189
+ _o as a,
190
+ bo as b,
191
+ vo as c,
192
+ mo as d,
193
+ io as v
194
+ };