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

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 (271) 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.C-HzRqYB.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.DeWHOXFn.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/LinkCard.CqjmRkfO.css +1 -0
  23. package/assets/Notification.2B81JHOp.css +1 -0
  24. package/assets/Pagination.DH71DZ0j.css +1 -0
  25. package/assets/Popover.58Tb0dOt.css +1 -0
  26. package/assets/Select.CfTN3CJo.css +1 -0
  27. package/assets/Slider.B4kzL60S.css +1 -0
  28. package/assets/{SystemFeedback.DYi9QetY.css → SystemFeedback.DVMml_h9.css} +1 -1
  29. package/assets/TextUtility.BThulfyl.css +1 -0
  30. package/assets/Textarea.BO4AcRJD.css +1 -0
  31. package/assets/buttonround.syTU1QSI.css +1 -0
  32. package/assets/chipgroup.DtCnsmS7.css +1 -0
  33. package/assets/filelist.B-Ru0GP_.css +1 -0
  34. package/assets/input.Dy8VS73e.css +1 -0
  35. package/assets/numberindicator.CtbitPQ8.css +1 -0
  36. package/assets/progressindicator.BK8L7Bd4.css +1 -0
  37. package/assets/radio.9hUUyg8R.css +1 -0
  38. package/assets/skeleton.D9MOCUK4.css +1 -0
  39. package/assets/switch.8v7Wp1Fj.css +1 -0
  40. package/assets/tabpane.DDaeSDQb.css +1 -0
  41. package/assets/text.BwGsYzGM.css +1 -0
  42. package/assets/tooltip.C_BL2kou.css +1 -0
  43. package/{banner.BlB_7xue.js → banner.DO7GsDL_.js} +1 -1
  44. package/{breadcrumb.DajORKq7.js → breadcrumb.DYov6vtt.js} +3 -3
  45. package/{button.EooIlFBI.js → button.qxcuzbnv.js} +2 -2
  46. package/buttonround.BO7_ewzA.js +101 -0
  47. package/{checkbox.NJj9qMnx.js → checkbox.C9kyIY9P.js} +4 -5
  48. package/{checkboxgroup.DELdyn0X.js → checkboxgroup.kEUxnKLf.js} +2 -2
  49. package/{chip.C4h8Hm9g.js → chip.5ktNLRYf.js} +3 -3
  50. package/chipgroup.kRU3Z98U.js +226 -0
  51. package/chunks/Accordion.gih2ni1d.js +179 -0
  52. package/chunks/ActionButton.B-wm5sUy.js +194 -0
  53. package/chunks/ActionCard.HYDpsdai.js +227 -0
  54. package/chunks/ActionLink.D0KzqbH4.js +166 -0
  55. package/chunks/{AriaLiveRegions.utils.BPvIKT6B.js → AriaLiveRegions.utils.xoETe2Ps.js} +14 -16
  56. package/chunks/{Breadcrumb.Ccm79ver.js → Breadcrumb.I2G-T0zc.js} +2 -2
  57. package/chunks/Button.CCol--xy.js +165 -0
  58. package/chunks/Checkbox.BxOGR1bR.js +96 -0
  59. package/chunks/CheckboxGroup.TneO0tuE.js +85 -0
  60. package/chunks/Chip.DffaXMkV.js +148 -0
  61. package/chunks/{CustomReactSelect.oEQpO9iN.js → CustomReactSelect.DTAavYaz.js} +282 -277
  62. package/chunks/Dialog.guuxflWL.js +101 -0
  63. package/chunks/{Drawer.CDe_g99S.js → Drawer.CjUZu6GW.js} +27 -28
  64. package/chunks/Fieldset.BBMuLKps.js +94 -0
  65. package/chunks/{Flag.X9tB3Mfv.js → Flag.CbQYBzVC.js} +12 -13
  66. package/chunks/{Header.bLSdAY9-.js → Header.CvcGSuhX.js} +1 -1
  67. package/chunks/{Input.utils.CkmzxIrU.js → Input.utils.Wycy2SzG.js} +23 -25
  68. package/chunks/InputFile.CkULfdaW.js +260 -0
  69. package/chunks/InputNumber.Fn2YbF_s.js +250 -0
  70. package/chunks/InputPassword.DtT9yrlx.js +129 -0
  71. package/chunks/InputSearch.BoAfGqoH.js +157 -0
  72. package/chunks/LinkButton.BxG7fx1O.js +150 -0
  73. package/chunks/LinkCard.BPvA2tuc.js +200 -0
  74. package/chunks/{MegaMenu.DbunD_yW.js → MegaMenu.udXR1H3W.js} +1 -1
  75. package/chunks/{NavigationTabList.CyrKNAer.js → NavigationTabList.thzA1pU8.js} +1 -1
  76. package/chunks/{NavigationTabs.DVBe-Wt3.js → NavigationTabs.BWewgBch.js} +1 -1
  77. package/chunks/Notification.C_o7Ge6Q.js +91 -0
  78. package/chunks/Pagination.BrOMUJMi.js +272 -0
  79. package/chunks/Popover.CxZZ_y1Z.js +230 -0
  80. package/chunks/RadioGroup.CO91_5hA.js +136 -0
  81. package/chunks/Select.EzoMdk1u.js +157 -0
  82. package/chunks/Slider.CX38t4Sk.js +330 -0
  83. package/chunks/{Stepper.KBRikedB.js → Stepper.Ds_aIEF8.js} +68 -69
  84. package/chunks/SystemFeedback.DhWcYjnu.js +43 -0
  85. package/chunks/{Tabs.xXn4zpGp.js → Tabs.BHVlgp7L.js} +2 -2
  86. package/chunks/Text.utils.DzlY9pJS.js +9 -0
  87. package/chunks/TextUtility.BZLwqyic.js +82 -0
  88. package/chunks/Textarea.vuJgvW6_.js +192 -0
  89. package/chunks/{Toast.NZfb7z3q.js → Toast.V_ZUAsf2.js} +1 -1
  90. package/chunks/translate.DSb-TdWR.js +2460 -0
  91. package/{combobox.CPsl2TC0.js → combobox.C6cPz4AJ.js} +1 -1
  92. package/components/Accordion/Accordion.d.ts +5 -0
  93. package/components/ActionButton/ActionButton.d.ts +5 -1
  94. package/components/ActionLink/ActionLink.d.ts +1 -1
  95. package/components/Button/Button.utils.d.ts +1 -1
  96. package/components/Checkbox/Checkbox.d.ts +8 -1
  97. package/components/CheckboxGroup/CheckboxGroup.d.ts +9 -1
  98. package/components/ChipGroup/Chip.d.ts +2 -0
  99. package/components/ChipGroup/ChipGroup.d.ts +12 -2
  100. package/components/ChipGroup/ChipGroup.utils.d.ts +39 -15
  101. package/components/Combobox/Combobox.utils.d.ts +66 -9
  102. package/components/Combobox/CustomReactSelect/CustomReactSelect.d.ts +5 -1
  103. package/components/Combobox/CustomReactSelect/CustomReactSelect.utils.d.ts +1 -1
  104. package/components/Fieldset/Fieldset.d.ts +9 -2
  105. package/components/Input/Input.d.ts +8 -1
  106. package/components/InputFile/FileList/FileList.d.ts +4 -2
  107. package/components/InputFile/FileList/FilePreview/FilePreview.d.ts +8 -2
  108. package/components/InputFile/FileList/ProgressIndicator/ProgressIndicator.d.ts +8 -2
  109. package/components/InputFile/InputFile.d.ts +12 -2
  110. package/components/InputFile/InputFile.utils.d.ts +41 -23
  111. package/components/InputNumber/InputNumber.d.ts +8 -1
  112. package/components/InputPassword/InputPassword.d.ts +8 -1
  113. package/components/InputSearch/InputSearch.d.ts +8 -1
  114. package/components/LinkCard/LinkCard.d.ts +10 -4
  115. package/components/LinkCard/LinkCard.utils.d.ts +2 -2
  116. package/components/NumberIndicator/NumberIndicator.d.ts +6 -1
  117. package/components/Pagination/Pagination.d.ts +10 -3
  118. package/components/Pagination/Pagination.utils.d.ts +22 -9
  119. package/components/Popover/Popover.d.ts +9 -1
  120. package/components/Popover/Popover.utils.d.ts +3 -2
  121. package/components/Radio/Radio.d.ts +5 -0
  122. package/components/RadioGroup/RadioGroup.d.ts +8 -0
  123. package/components/Select/Select.d.ts +8 -1
  124. package/components/Slider/Slider.d.ts +8 -1
  125. package/components/Stepper/Step.d.ts +1 -1
  126. package/components/Stepper/Step.utils.d.ts +1 -1
  127. package/components/Stepper/Stepper.d.ts +4 -1
  128. package/components/Stepper/Stepper.utils.d.ts +9 -4
  129. package/components/SystemFeedback/SystemFeedback.d.ts +9 -1
  130. package/components/Textarea/Textarea.d.ts +8 -1
  131. package/{customreactselect.D7BJg-2s.js → customreactselect.L0zSh3Tg.js} +4 -4
  132. package/{dialog.BlprGigG.js → dialog.Ddq8o8Od.js} +2 -2
  133. package/{drawer.BoyrTFi1.js → drawer.rbbjQvqL.js} +2 -2
  134. package/{fieldset.D_e2-vo_.js → fieldset.BHf3XK2q.js} +3 -3
  135. package/filelist.CabPo1pv.js +143 -0
  136. package/filepreview.B2Ot9SZ7.js +97 -0
  137. package/{flag.0vpitrQ-.js → flag.fX6LAgty.js} +3 -4
  138. package/{floatingactionbutton.BrdE1vi2.js → floatingactionbutton.BwCiybnc.js} +1 -1
  139. package/{header.C3AqYBtz.js → header.BCeCjYfG.js} +1 -1
  140. package/index.es.js +203 -204
  141. package/input.Dh0ws-9j.js +187 -0
  142. package/inputfile.0CCdkjg5.js +17 -0
  143. package/{inputnumber.Box5R2An.js → inputnumber.D2cmptaH.js} +8 -9
  144. package/{inputpassword.CBc8GNwI.js → inputpassword.C53Kg4EA.js} +4 -4
  145. package/inputsearch.BrsIDUSW.js +14 -0
  146. package/link.DEZDbUgq.js +81 -0
  147. package/{linkbutton.DxEPueLb.js → linkbutton._X50W2Md.js} +3 -3
  148. package/{linkcard.CCY-VFWN.js → linkcard.CrspFGLZ.js} +3 -3
  149. package/{logo.D7LnRA1E.js → logo.D6BTxbxv.js} +0 -1
  150. package/{megamenu.C8OynEzk.js → megamenu.odVCUm4c.js} +2 -2
  151. package/{navigationtablist.iSQd5PX4.js → navigationtablist.n9DrtYe5.js} +2 -2
  152. package/{navigationtabs.FtkVv_qV.js → navigationtabs.D0mSyAtK.js} +2 -2
  153. package/{notification.Cqg8HpJ8.js → notification._X8-8vOa.js} +2 -2
  154. package/numberindicator.DsK65Bj3.js +39 -0
  155. package/package.json +6 -1
  156. package/pagination.B7Hrx_sk.js +14 -0
  157. package/partials/index.js +72 -72
  158. package/{popover.DYiEGSnj.js → popover.BBaqL7y9.js} +3 -3
  159. package/product-card-example-8.webp +0 -0
  160. package/progressindicator.CAb_O3VK.js +74 -0
  161. package/radio.DjToa2aV.js +148 -0
  162. package/{radiogroup.wqgExwrG.js → radiogroup.mc-8lw65.js} +3 -3
  163. package/{scroller.Dqnsxq2M.js → scroller.CgWp2WXG.js} +10 -11
  164. package/{select.DkKuGI6O.js → select.DTZ6a6Ag.js} +5 -6
  165. package/skeleton.BmkcNeRD.js +148 -0
  166. package/{skiptocontent.CRQywi6J.js → skiptocontent.BsRpWvyu.js} +4 -4
  167. package/{slider.BOjqQp9n.js → slider.BMGAihY0.js} +3 -3
  168. package/{step.C6zDRCBu.js → step.DCQ6CawJ.js} +1 -1
  169. package/stepper.D7-7BdSv.js +15 -0
  170. package/styles/js/index.es.js +3 -1
  171. package/styles/js/lib/animation.d.ts +2 -0
  172. package/styles/scss/ds/index.scss +2 -0
  173. package/styles/scss/ds/lib/animation.scss +4 -0
  174. package/styles/scss/ds/lib/border-width.scss +3 -0
  175. package/styles/scss/ds/lib/ds-internal/_input.scss +65 -21
  176. package/styles/scss/ds/lib/ds-internal/_link-button.scss +4 -2
  177. package/styles/scss/ds/lib/ds-internal/_link.scss +23 -3
  178. package/styles/scss/ds/lib/input.scss +12 -7
  179. package/styles/scss/ds/lib/link.scss +2 -2
  180. package/styles/scss/ds/lib/radius.scss +5 -0
  181. package/{switch.CuNNdrkD.js → switch.tM2XBag8.js} +2 -2
  182. package/{systemfeedback.Da0wX0Eb.js → systemfeedback.BPPOht_9.js} +1 -1
  183. package/{tablist.BjKwrLz9.js → tablist.BAm0_UIG.js} +22 -23
  184. package/{tabpane.7vMXUKFX.js → tabpane.B9rZghU6.js} +1 -1
  185. package/{tabs.-U2k6Oll.js → tabs.BgTdWbTe.js} +3 -3
  186. package/text.BEO_ZfJq.js +72 -0
  187. package/{textarea.BWznY6Gg.js → textarea.Cki-uMkZ.js} +5 -6
  188. package/{textutility.CBLuAdaa.js → textutility.BypzssPt.js} +2 -2
  189. package/{toast.D9XLSgJg.js → toast.s0Hfuh5i.js} +2 -2
  190. package/{toastmanager.V5E05qgI.js → toastmanager.CPIPn4Io.js} +19 -20
  191. package/{tooltip.a1aWHK00.js → tooltip.BFQG-7VR.js} +1 -1
  192. package/{topbar.BdGK62KJ.js → topbar.Bbct-XkB.js} +3 -3
  193. package/utils/translate.d.ts +22 -6
  194. package/assets/Accordion.DPu2l_Kg.css +0 -1
  195. package/assets/ActionButton.DcQYatF1.css +0 -1
  196. package/assets/ActionCard.gRQVVFWz.css +0 -1
  197. package/assets/ActionLink.B62Aa8y9.css +0 -1
  198. package/assets/Button.BI6zz6Fw.css +0 -1
  199. package/assets/Checkbox.DknHnS9a.css +0 -1
  200. package/assets/Chip.CYhVB1Jh.css +0 -1
  201. package/assets/CustomReactSelect.lKMLwL7n.css +0 -1
  202. package/assets/Dialog.BKwWy1g2.css +0 -1
  203. package/assets/Drawer.IRb7Vc1n.css +0 -1
  204. package/assets/Fieldset.C4Fx4-UV.css +0 -1
  205. package/assets/InputFile.ne7gwc_5.css +0 -1
  206. package/assets/InputNumber.BIdsQuFc.css +0 -1
  207. package/assets/InputPassword.YSKTDTA1.css +0 -1
  208. package/assets/InputSearch.C3qtDQcj.css +0 -1
  209. package/assets/LinkButton.CmEE7Od_.css +0 -1
  210. package/assets/LinkCard.pJtgJRIh.css +0 -1
  211. package/assets/Notification.BO0Mu9No.css +0 -1
  212. package/assets/Pagination.OLmfdASf.css +0 -1
  213. package/assets/Popover.mL5g23EK.css +0 -1
  214. package/assets/Select.CDP-1_K9.css +0 -1
  215. package/assets/Slider.Cu7MgNph.css +0 -1
  216. package/assets/TextUtility.bwkCWEiV.css +0 -1
  217. package/assets/Textarea.Hsq68tg1.css +0 -1
  218. package/assets/buttonround.rmUb58WF.css +0 -1
  219. package/assets/chipgroup.BGxjdSDX.css +0 -1
  220. package/assets/filelist.cP3O1JeJ.css +0 -1
  221. package/assets/input.BEBgyvkK.css +0 -1
  222. package/assets/numberindicator.DSpNPJcs.css +0 -1
  223. package/assets/progressindicator.Dxrigyne.css +0 -1
  224. package/assets/radio.DsHt-9om.css +0 -1
  225. package/assets/skeleton.BjozXDiQ.css +0 -1
  226. package/assets/switch.fwcMI6o7.css +0 -1
  227. package/assets/tabpane.o34hshTz.css +0 -1
  228. package/assets/text.Doa-APfR.css +0 -1
  229. package/assets/tooltip.DrSplliO.css +0 -1
  230. package/buttonround.BeQakrPs.js +0 -101
  231. package/chipgroup.BKjeuuM0.js +0 -213
  232. package/chunks/Accordion.8kTbiPxs.js +0 -173
  233. package/chunks/ActionButton.CBV1-_HP.js +0 -188
  234. package/chunks/ActionCard.Dbq2VqyZ.js +0 -227
  235. package/chunks/ActionLink.BXxDS1Gg.js +0 -161
  236. package/chunks/Button.COycNYUI.js +0 -160
  237. package/chunks/Checkbox.CMshaWIU.js +0 -88
  238. package/chunks/CheckboxGroup.D3D1spfJ.js +0 -79
  239. package/chunks/Chip.DCJYE513.js +0 -157
  240. package/chunks/Dialog.lJXxzgu2.js +0 -102
  241. package/chunks/Fieldset.DOjI3DlI.js +0 -91
  242. package/chunks/InputFile.DYXvF6vT.js +0 -260
  243. package/chunks/InputNumber.CkWpchPo.js +0 -240
  244. package/chunks/InputPassword.21E6XMr5.js +0 -121
  245. package/chunks/InputSearch.Dy3EKa9f.js +0 -149
  246. package/chunks/LinkButton.BCHTLFMJ.js +0 -150
  247. package/chunks/LinkCard.BYmTwsS5.js +0 -197
  248. package/chunks/Notification.BjyLiO2h.js +0 -91
  249. package/chunks/Pagination.CJikF9Cw.js +0 -247
  250. package/chunks/Popover.ByaoNwGK.js +0 -221
  251. package/chunks/RadioGroup.Bh2X6pT9.js +0 -130
  252. package/chunks/Select.KWb09VmF.js +0 -147
  253. package/chunks/Slider.CxnIy51F.js +0 -309
  254. package/chunks/SystemFeedback.4osheYxC.js +0 -38
  255. package/chunks/Text.utils.BZ4nTZVu.js +0 -11
  256. package/chunks/TextUtility.BPrxUX-x.js +0 -82
  257. package/chunks/Textarea.CAOqZMUi.js +0 -181
  258. package/chunks/translate.nuU7uChI.js +0 -8
  259. package/filelist.DfAt2xJa.js +0 -128
  260. package/filepreview.Defs34bv.js +0 -94
  261. package/input.ChMzyHej.js +0 -175
  262. package/inputfile.DZIUs1EC.js +0 -18
  263. package/inputsearch.DzzYb-C0.js +0 -15
  264. package/link.aU1f2Xzu.js +0 -81
  265. package/numberindicator.Q7g4J3Ry.js +0 -36
  266. package/pagination.DA4PMLOq.js +0 -14
  267. package/progressindicator.DpmERE8T.js +0 -53
  268. package/radio.KQ8CUM3_.js +0 -137
  269. package/skeleton.DUkBgXxO.js +0 -148
  270. package/stepper.DHl3_XU9.js +0 -16
  271. package/text.CnP3baHy.js +0 -72
@@ -1,18 +1,24 @@
1
+ @use '../border-width' as *;
1
2
  @use '_focus' as *;
2
3
  @use '_helpers' as *;
3
4
  @use '_high-contrast' as *;
4
5
  @use '_hover' as *;
5
6
  @use '../spacing' as *;
6
7
  @use '../spacing-rem' as *;
8
+ @use '../radius' as *;
7
9
  @use '../text' as *;
8
10
  @use '../theme' as *;
9
11
  @use '../transition' as *;
10
12
 
11
- @mixin input-label-base($hasHint: false) {
13
+ @mixin input-label-base($hasHint: false, $theme: 'light') {
12
14
  @include utility-medium;
13
15
  display: block;
14
16
  min-height: $spacing-24-rem;
15
17
 
18
+ @if $theme == 'dark' {
19
+ color: $theme-dark-content-color-primary;
20
+ }
21
+
16
22
 
17
23
  &:has(input) {
18
24
  padding-block-start: $spacing-2;
@@ -68,14 +74,18 @@
68
74
  }
69
75
  }
70
76
 
71
- @mixin input-hint-base() {
77
+ @mixin input-hint-base($theme: 'light') {
72
78
  @include utility-small;
73
79
  display: block;
74
80
  max-width: 25.5rem;
75
81
  margin-block-end: $spacing-8;
82
+
83
+ @if $theme == 'dark' {
84
+ color: $theme-dark-content-color-primary;
85
+ }
76
86
  }
77
87
 
78
- @mixin input-base($size) {
88
+ @mixin input-base($size, $theme: 'light') {
79
89
  @if ($size == 'medium') {
80
90
 
81
91
  @include utility-medium;
@@ -95,12 +105,16 @@
95
105
  }
96
106
 
97
107
 
98
- @include focus($offset: 0, $thickness: $spacing-1);
108
+ @include focus($theme: $theme, $offset: 0, $thickness: $spacing-1);
99
109
  @include transition((background-color, color));
100
110
 
101
111
  @include hover-media-query {
102
112
  &:hover {
103
- background: $theme-light-background-color-transparent-hover;
113
+ @if $theme == 'light' {
114
+ background: $theme-light-background-color-transparent-hover;
115
+ } @else {
116
+ background: $theme-dark-background-color-transparent-hover;
117
+ }
104
118
  @include high-contrast-media-query {
105
119
  border-color: Highlight;
106
120
  }
@@ -109,31 +123,50 @@
109
123
 
110
124
  & {
111
125
  background: transparent;
112
- border: $spacing-1 solid $theme-light-border-color-primary;
113
- border-radius: 0;
114
- color: $theme-light-content-color-primary;
126
+ border-radius: $radius-none;
115
127
  width: 100%;
128
+ @if $theme == 'light' {
129
+ border: $border-width-1 solid $theme-light-border-color-primary;
130
+ color: $theme-light-content-color-primary;
131
+ } @else {
132
+ border: $border-width-1 solid $theme-dark-border-color-primary;
133
+ color: $theme-dark-content-color-primary;
134
+ }
116
135
  }
117
136
 
118
137
  &[readonly] {
119
- background-color: $theme-light-background-color-tertiary;
120
138
  border-color: transparent;
121
- color: $theme-light-content-color-primary;
139
+ @if $theme == 'light' {
140
+ background-color: $theme-light-background-color-tertiary;
141
+ color: $theme-light-content-color-primary;
142
+ } @else {
143
+ background-color: $theme-dark-background-color-tertiary;
144
+ color: $theme-dark-content-color-primary;
145
+ }
122
146
 
123
- @include focus($offset: 0, $thickness: $spacing-2);
147
+ @include focus($theme: $theme, $offset: 0, $thickness: $spacing-2);
124
148
  }
125
149
 
126
150
  &:disabled {
127
151
  background-color: transparent;
128
- border-color: $theme-light-border-color-primary-disabled;
129
- color: $theme-light-content-color-primary-disabled;
130
152
  cursor: not-allowed;
153
+ @if $theme == 'light' {
154
+ border-color: $theme-light-border-color-primary-disabled;
155
+ color: $theme-light-content-color-primary-disabled;
156
+ } @else {
157
+ border-color: $theme-dark-border-color-primary-disabled;
158
+ color: $theme-dark-content-color-primary-disabled;
159
+ }
131
160
  }
132
161
 
133
162
  &::-webkit-placeholder,
134
163
  &::placeholder {
135
- color: $theme-light-content-color-secondary;
136
164
  opacity: 1;
165
+ @if $theme == 'light' {
166
+ color: $theme-light-content-color-secondary;
167
+ } @else {
168
+ color: $theme-dark-content-color-secondary;
169
+ }
137
170
  }
138
171
 
139
172
 
@@ -185,13 +218,24 @@
185
218
  }
186
219
  }
187
220
 
188
- @mixin input-invalid() {
189
- border-color: $theme-light-border-color-feedback-error;
190
- outline-color: $theme-light-border-color-feedback-error;
221
+ @mixin input-invalid($theme: 'light') {
222
+ @if $theme == 'light' {
223
+ border-color: $theme-light-border-color-feedback-error;
224
+ outline-color: $theme-light-border-color-feedback-error;
191
225
 
192
- &:active,
193
- &:focus,
194
- &:focus-visible {
195
- border-color: $theme-light-border-color-primary;
226
+ &:active,
227
+ &:focus,
228
+ &:focus-visible {
229
+ border-color: $theme-light-border-color-primary;
230
+ }
231
+ } @else {
232
+ border-color: $theme-dark-border-color-feedback-error;
233
+ outline-color: $theme-dark-border-color-feedback-error;
234
+
235
+ &:active,
236
+ &:focus,
237
+ &:focus-visible {
238
+ border-color: $theme-dark-border-color-primary;
239
+ }
196
240
  }
197
241
  }
@@ -2,7 +2,9 @@
2
2
  @use '_helpers' as *;
3
3
  @use '_high-contrast' as *;
4
4
  @use '_hover' as *;
5
+ @use '../border-width' as *;
5
6
  @use '../media-query' as *;
7
+ @use '../radius' as *;
6
8
  @use '../spacing' as *;
7
9
  @use '../spacing-rem' as *;
8
10
  @use '../text' as *;
@@ -37,7 +39,7 @@ $link-button-size-medium: $spacing-48-rem;
37
39
  display: inline-flex;
38
40
  justify-content: center;
39
41
  align-items: center;
40
- border-width: $spacing-1;
42
+ border-width: $border-width-1;
41
43
  border-style: solid;
42
44
  border-color: transparent;
43
45
  gap: $spacing-8;
@@ -150,7 +152,7 @@ $link-button-size-medium: $spacing-48-rem;
150
152
  @include utility-large-bold;
151
153
  color: $theme-light-content-color-primary;
152
154
 
153
- border-radius: $spacing-2;
155
+ border-radius: $radius-xs;
154
156
 
155
157
  min-height: $link-button-size-small;
156
158
  min-width: $link-button-size-small;
@@ -37,9 +37,8 @@
37
37
  }
38
38
  }
39
39
 
40
- &[href^="http://"]::after,
41
- &[href^="https://"]::after
42
- {
40
+ &[href^='http://']::after,
41
+ &[href^='https://']::after {
43
42
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='#{urlEncodeHexColor($content-color)}' viewBox='0 0 16 16' focusable='false' width='100%25' height='100%25'%3E%3Cpath fill-rule='evenodd' d='M9 2V0h7v7h-2V3.4L8.1 9.3 6.7 7.9 12.6 2H9Zm5 8h-2v4H2V4h4V2H0v14h14v-6Z' clip-rule='evenodd'/%3E%3C/svg%3E");
44
43
  }
45
44
 
@@ -47,6 +46,27 @@
47
46
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='#{urlEncodeHexColor($content-color)}' viewBox='0 0 16 16' focusable='false' width='100%25' height='100%25'%3E%3Cpath d='M14.4 9.6 8 16 1.6 9.6 3 8.2l4 4V0h2v12.2l4-4 1.4 1.4Z'/%3E%3C/svg%3E");
48
47
  }
49
48
 
49
+ @include high-contrast-media-query {
50
+ &[href^='http://']::after,
51
+ &[href^='https://']::after {
52
+ forced-color-adjust: none;
53
+ content: '';
54
+ background-color: LinkText;
55
+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='100%25' height='100%25'%3E%3Cpath fill-rule='evenodd' d='M9 2V0h7v7h-2V3.4L8.1 9.3 6.7 7.9 12.6 2H9Zm5 8h-2v4H2V4h4V2H0v14h14v-6Z' clip-rule='evenodd'/%3E%3C/svg%3E");
56
+ mask-size: contain;
57
+ mask-repeat: no-repeat;
58
+ }
59
+
60
+ &[href^='#']::after {
61
+ forced-color-adjust: none;
62
+ content: '';
63
+ background-color: LinkText;
64
+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='100%25' height='100%25'%3E%3Cpath d='M14.4 9.6 8 16 1.6 9.6 3 8.2l4 4V0h2v12.2l4-4 1.4 1.4Z'/%3E%3C/svg%3E");
65
+ mask-size: contain;
66
+ mask-repeat: no-repeat;
67
+ }
68
+ }
69
+
50
70
 
51
71
 
52
72
  @include focus($theme, $offset: 0);
@@ -1,8 +1,13 @@
1
1
  @use './ds-internal/_input' as *;
2
2
 
3
- @mixin input-label($hasHint: false, $isDisabled: false, $isRequired: false) {
3
+ @mixin input-label(
4
+ $hasHint: false,
5
+ $isDisabled: false,
6
+ $isRequired: false,
7
+ $theme: 'light'
8
+ ) {
4
9
  @if (not $isDisabled and not $isRequired) {
5
- @include input-label-base($hasHint);
10
+ @include input-label-base($hasHint, $theme);
6
11
  }
7
12
  @if $isDisabled {
8
13
  @include input-label-disabled();
@@ -13,14 +18,14 @@
13
18
  }
14
19
  }
15
20
 
16
- @mixin input-hint() {
17
- @include input-hint-base();
21
+ @mixin input-hint($theme: 'light') {
22
+ @include input-hint-base($theme);
18
23
  }
19
24
 
20
- @mixin input($size: 'medium', $isInvalid: false) {
25
+ @mixin input($size: 'medium', $isInvalid: false, $theme: 'light') {
21
26
  @if (not $isInvalid) {
22
- @include input-base($size);
27
+ @include input-base($size, $theme);
23
28
  } @else {
24
- @include input-invalid();
29
+ @include input-invalid($theme);
25
30
  }
26
31
  }
@@ -25,8 +25,8 @@
25
25
 
26
26
 
27
27
 
28
- :where(&)[href^="http://"]::after,
29
- :where(&)[href^="https://"]::after,
28
+ :where(&)[href^='http://']::after,
29
+ :where(&)[href^='https://']::after,
30
30
  :where(&)[href^='#']::after {
31
31
  display: inline-block;
32
32
  margin-inline-start: 0.375em;
@@ -0,0 +1,5 @@
1
+ $radius-none: 0;
2
+ $radius-xs: 2px;
3
+ $radius-s: 4px;
4
+ $radius-circle: 50%;
5
+ $radius-full: 9999px;
@@ -5,11 +5,11 @@ import { c as q } from "./chunks/index.DQOqod3i.js";
5
5
  import { forwardRef as z } from "react";
6
6
  import { D as A } from "./chunks/Icon.DYtaQgbw.js";
7
7
  import { DSSpinner as B } from "./spinner.DtLnsqVV.js";
8
- import './assets/switch.fwcMI6o7.css';const F = "ds-switch_root_4381h_1", G = "ds-switch_root--label-right_4381h_40", H = "ds-switch_root--stretched_4381h_43", J = "ds-switch_loader_4381h_53", K = "ds-switch_thumb_4381h_111", M = "ds-switch_root--checked_4381h_126", o = {
8
+ import './assets/switch.8v7Wp1Fj.css';const F = "ds-switch_root_1c6he_1", G = "ds-switch_root--label-right_1c6he_40", H = "ds-switch_root--stretched_1c6he_43", J = "ds-switch_loader_1c6he_53", K = "ds-switch_thumb_1c6he_111", M = "ds-switch_root--checked_1c6he_126", o = {
9
9
  root: F,
10
10
  rootLabelRight: G,
11
11
  rootStretched: H,
12
- switch: "ds-switch_switch_4381h_48",
12
+ switch: "ds-switch_switch_1c6he_48",
13
13
  loader: J,
14
14
  thumb: K,
15
15
  rootChecked: M
@@ -4,7 +4,7 @@ import "./chunks/index.cKLI89Eg.js";
4
4
  import "./chunks/index.DQOqod3i.js";
5
5
  import "react";
6
6
  import "./chunks/Icon.DYtaQgbw.js";
7
- import { D as s } from "./chunks/SystemFeedback.4osheYxC.js";
7
+ import { D as s } from "./chunks/SystemFeedback.DhWcYjnu.js";
8
8
  export {
9
9
  s as DSSystemFeedback
10
10
  };
@@ -2,17 +2,16 @@
2
2
  import { jsxs as k, jsx as p } from "react/jsx-runtime";
3
3
  import { c as D } from "./chunks/index.DQOqod3i.js";
4
4
  import { useState as E, useRef as g, useEffect as ot } from "react";
5
- import { g as h, i as C } from "./chunks/is-animation-disabled.B-V_68K-.js";
6
- import { h as nt } from "./chunks/has-window.ut_-aShB.js";
7
- import { g as st } from "./chunks/helpers.CexwVao7.js";
8
- import { u as W } from "./chunks/useIsomorphicLayoutEffect.CnJ9AMFS.js";
9
- import "./chunks/index.cKLI89Eg.js";
10
- import { D as X } from "./chunks/Button.COycNYUI.js";
11
- import { D as ct } from "./chunks/Icon.DYtaQgbw.js";
12
- import { NumberIndicator as it } from "./numberindicator.Q7g4J3Ry.js";
13
- import { g as at, a as j } from "./chunks/TabPane.utils.DG16Y2uD.js";
14
- import { s as c, N as lt } from "./chunks/NavigationTabList.CyrKNAer.js";
15
- const b = 48, Lt = ({
5
+ import { D as X } from "./chunks/Button.CCol--xy.js";
6
+ import { D as nt } from "./chunks/Icon.DYtaQgbw.js";
7
+ import { NumberIndicator as st } from "./numberindicator.DsK65Bj3.js";
8
+ import { g as ct, a as j } from "./chunks/TabPane.utils.DG16Y2uD.js";
9
+ import { s as c, N as it } from "./chunks/NavigationTabList.thzA1pU8.js";
10
+ import { u as C } from "./chunks/useIsomorphicLayoutEffect.CnJ9AMFS.js";
11
+ import { g as at } from "./chunks/helpers.CexwVao7.js";
12
+ import { g as h, i as W } from "./chunks/is-animation-disabled.B-V_68K-.js";
13
+ import { h as lt } from "./chunks/has-window.ut_-aShB.js";
14
+ const b = 48, Dt = ({
16
15
  aria: q,
17
16
  id: L,
18
17
  selectedTabIndex: n,
@@ -28,12 +27,12 @@ const b = 48, Lt = ({
28
27
  const [A, u] = E(Q), [U, V] = E(!1), [Y, Z] = E(!1), d = g([]), v = g(null), s = g(null), i = g(null), w = g(!1), H = g(n), N = () => {
29
28
  P(), x();
30
29
  };
31
- W(() => {
30
+ C(() => {
32
31
  const e = new ResizeObserver(N);
33
32
  return s.current && e.observe(s.current), () => {
34
33
  e.disconnect();
35
34
  };
36
- }, []), W(() => {
35
+ }, []), C(() => {
37
36
  const e = [
38
37
  "18px 'STIHL Contraface Digital Text Regular'",
39
38
  // utility large - Tab
@@ -45,7 +44,7 @@ const b = 48, Lt = ({
45
44
  Promise.all(e.map((o) => document.fonts.load(o))).then(() => {
46
45
  S(n), R("next", n, "instant"), P(), w.current = !0;
47
46
  }).catch((o) => {
48
- throw new Error(st("DSTabs", `The component requires the fonts to be loaded: ${o}`));
47
+ throw new Error(at("DSTabs", `The component requires the fonts to be loaded: ${o}`));
49
48
  });
50
49
  const t = () => {
51
50
  !w.current || !i.current || (r.matches ? i.current.style.transitionDuration = "0s" : i.current.style.transitionDuration = "");
@@ -53,7 +52,7 @@ const b = 48, Lt = ({
53
52
  return r.addEventListener("change", t), s.current?.addEventListener("scroll", N), () => {
54
53
  r.removeEventListener("change", t), s.current?.removeEventListener("scroll", N);
55
54
  };
56
- }, [l, I]), W(() => {
55
+ }, [l, I]), C(() => {
57
56
  if (w.current && (S(n), T)) {
58
57
  const e = M(n);
59
58
  u(n), R(e, n);
@@ -75,7 +74,7 @@ const b = 48, Lt = ({
75
74
  V(t.left < e.left), Z(t.right > e.right + 4);
76
75
  }
77
76
  }, O = (e = 0) => {
78
- nt && i.current && !C() && setTimeout(() => {
77
+ lt && i.current && !W() && setTimeout(() => {
79
78
  i.current && (i.current.style.transitionDuration = "250ms");
80
79
  }, e);
81
80
  }, x = () => {
@@ -145,14 +144,14 @@ const b = 48, Lt = ({
145
144
  }
146
145
  f.scrollTo({
147
146
  left: B,
148
- behavior: C() ? "instant" : r
147
+ behavior: W() ? "instant" : r
149
148
  });
150
149
  }
151
150
  }, $ = (e) => {
152
151
  const t = et(e);
153
152
  s.current?.scrollTo({
154
153
  left: t,
155
- behavior: C() ? "instant" : "smooth"
154
+ behavior: W() ? "instant" : "smooth"
156
155
  });
157
156
  }, et = (e) => {
158
157
  if (!v.current || !s.current)
@@ -167,7 +166,7 @@ const b = 48, Lt = ({
167
166
  }), rt = T ? "nav" : "div";
168
167
  return /* @__PURE__ */ k("div", { className: D(c.tabsWrapper, G), ...J, children: [
169
168
  /* @__PURE__ */ k(rt, { className: c.scrollWrapper, ref: s, ...q, children: [
170
- T ? /* @__PURE__ */ p(lt, { tabs: l, tabRefs: d, scrollerRef: v, handleNavigationKeydown: tt, scrollerClass: K, selectedTabIndex: n, setSelectedTab: y }) : /* @__PURE__ */ p("div", { role: "tablist", className: K, ref: v, children: l.map(({
169
+ T ? /* @__PURE__ */ p(it, { tabs: l, tabRefs: d, scrollerRef: v, handleNavigationKeydown: tt, scrollerClass: K, selectedTabIndex: n, setSelectedTab: y }) : /* @__PURE__ */ p("div", { role: "tablist", className: K, ref: v, children: l.map(({
171
170
  id: e,
172
171
  label: t,
173
172
  iconName: r,
@@ -179,7 +178,7 @@ const b = 48, Lt = ({
179
178
  id: j(L, e),
180
179
  role: "tab",
181
180
  "aria-selected": n === a,
182
- "aria-controls": at(L, e, a),
181
+ "aria-controls": ct(L, e, a),
183
182
  tabIndex: n === a ? 0 : -1,
184
183
  className: c.tab,
185
184
  ref: (m) => {
@@ -189,9 +188,9 @@ const b = 48, Lt = ({
189
188
  onKeyDown: (m) => _(m, a),
190
189
  type: "button",
191
190
  children: [
192
- r && /* @__PURE__ */ p(ct, { name: r, "aria-hidden": "true" }),
191
+ r && /* @__PURE__ */ p(nt, { name: r, "aria-hidden": "true" }),
193
192
  t,
194
- o && /* @__PURE__ */ p(it, { "aria-label": f, label: o })
193
+ o && /* @__PURE__ */ p(st, { "aria-label": f, label: o })
195
194
  ]
196
195
  },
197
196
  j(L, e)
@@ -207,5 +206,5 @@ const b = 48, Lt = ({
207
206
  ] });
208
207
  };
209
208
  export {
210
- Lt as TabList
209
+ Dt as TabList
211
210
  };
@@ -4,7 +4,7 @@ import { d as T } from "./chunks/index.cKLI89Eg.js";
4
4
  import { c as g } from "./chunks/index.DQOqod3i.js";
5
5
  import { useRef as y, useState as F, useEffect as N } from "react";
6
6
  import { c as P, g as v, a as R } from "./chunks/TabPane.utils.DG16Y2uD.js";
7
- import './assets/tabpane.o34hshTz.css';const S = "ds-tabs_tabpane_30tnb_1", j = {
7
+ import './assets/tabpane.DDaeSDQb.css';const S = "ds-tabs_tabpane_1cps1_1", j = {
8
8
  tabpane: S
9
9
  }, k = (x) => {
10
10
  const e = T.c(19), {
@@ -2,10 +2,10 @@
2
2
  import "react/jsx-runtime";
3
3
  import "./chunks/index.cKLI89Eg.js";
4
4
  import "react";
5
- import "./tablist.BjKwrLz9.js";
6
- import "./tabpane.7vMXUKFX.js";
5
+ import "./tablist.BAm0_UIG.js";
6
+ import "./tabpane.B9rZghU6.js";
7
7
  import "./chunks/TabPane.utils.DG16Y2uD.js";
8
- import { D as a } from "./chunks/Tabs.xXn4zpGp.js";
8
+ import { D as a } from "./chunks/Tabs.BHVlgp7L.js";
9
9
  export {
10
10
  a as DSTabs
11
11
  };
@@ -0,0 +1,72 @@
1
+ "use client";
2
+ import { jsx as y } from "react/jsx-runtime";
3
+ import { d as $ } from "./chunks/index.cKLI89Eg.js";
4
+ import { c as P } from "./chunks/index.DQOqod3i.js";
5
+ import { useRef as R, useEffect as j } from "react";
6
+ import { i as M } from "./chunks/Text.utils.DzlY9pJS.js";
7
+ import { g as L } from "./chunks/helpers.CexwVao7.js";
8
+ import './assets/text.BwGsYzGM.css';const C = "ds-text_root_1skzv_6", O = "ds-text_root--large_1skzv_15", V = "ds-text_root--large-bold_1skzv_26", W = "ds-text_root--medium_1skzv_38", q = "ds-text_root--medium-bold_1skzv_49", A = "ds-text_root--small_1skzv_61", F = "ds-text_root--small-bold_1skzv_72", G = "ds-text_root--x-small_1skzv_84", H = "ds-text_root--x-small-bold_1skzv_95", I = "ds-text_root--xx-small_1skzv_107", J = "ds-text_root--theme-dark_1skzv_219", o = {
9
+ root: C,
10
+ rootLarge: O,
11
+ rootLargeBold: V,
12
+ rootMedium: W,
13
+ rootMediumBold: q,
14
+ rootSmall: A,
15
+ rootSmallBold: F,
16
+ rootXSmall: G,
17
+ rootXSmallBold: H,
18
+ rootXxSmall: I,
19
+ rootThemeDark: J
20
+ }, ot = (g) => {
21
+ const t = $.c(28);
22
+ let l, r, a, m, i, n, d;
23
+ t[0] !== g ? ({
24
+ children: l,
25
+ className: r,
26
+ size: m,
27
+ tag: i,
28
+ theme: n,
29
+ weight: d,
30
+ ...a
31
+ } = g, t[0] = g, t[1] = l, t[2] = r, t[3] = a, t[4] = m, t[5] = i, t[6] = n, t[7] = d) : (l = t[1], r = t[2], a = t[3], m = t[4], i = t[5], n = t[6], d = t[7]);
32
+ const e = m === void 0 ? "medium" : m, s = i === void 0 ? "p" : i, N = n === void 0 ? "light" : n, c = d === void 0 ? "normal" : d, _ = R(null);
33
+ let x, h;
34
+ t[8] !== s ? (x = () => {
35
+ if (_.current && process.env.NODE_ENV !== "production")
36
+ t: switch (s) {
37
+ case "li": {
38
+ if (!M(_.current, "ul, ol"))
39
+ throw Error(L("DSText", `The DSText component with the tag "${s}" is not within a list element (ul, ol). This may cause issues with list semantics. Please ensure the DSText component is within a list element.`));
40
+ break t;
41
+ }
42
+ case "dt":
43
+ case "dd": {
44
+ if (!M(_.current, "dl"))
45
+ throw Error(L("DSText", `The DSText component with the tag "${s}" is not within a list element (dl). This may cause issues with list semantics. Please ensure the DSText component is within a list element.`));
46
+ break t;
47
+ }
48
+ default:
49
+ return;
50
+ }
51
+ }, h = [s], t[8] = s, t[9] = x, t[10] = h) : (x = t[9], h = t[10]), j(x, h);
52
+ const f = s, k = e === "large", v = e === "large" && c === "bold", p = e == "medium", T = e === "medium" && c === "bold", w = e == "small", z = e == "small" && c === "bold", B = e == "x-small", D = e == "x-small" && c === "bold", b = e == "xx-small", X = N === "dark";
53
+ let u;
54
+ t[11] !== r || t[12] !== T || t[13] !== w || t[14] !== z || t[15] !== B || t[16] !== D || t[17] !== b || t[18] !== X || t[19] !== k || t[20] !== v || t[21] !== p ? (u = P(o.root, r, {
55
+ [o.rootLarge]: k,
56
+ [o.rootLargeBold]: v,
57
+ [o.rootMedium]: p,
58
+ [o.rootMediumBold]: T,
59
+ [o.rootSmall]: w,
60
+ [o.rootSmallBold]: z,
61
+ [o.rootXSmall]: B,
62
+ [o.rootXSmallBold]: D,
63
+ [o.rootXxSmall]: b,
64
+ [o.rootThemeDark]: X
65
+ }), t[11] = r, t[12] = T, t[13] = w, t[14] = z, t[15] = B, t[16] = D, t[17] = b, t[18] = X, t[19] = k, t[20] = v, t[21] = p, t[22] = u) : u = t[22];
66
+ const E = u;
67
+ let S;
68
+ return t[23] !== f || t[24] !== l || t[25] !== a || t[26] !== E ? (S = /* @__PURE__ */ y(f, { className: E, ref: _, ...a, children: l }), t[23] = f, t[24] = l, t[25] = a, t[26] = E, t[27] = S) : S = t[27], S;
69
+ };
70
+ export {
71
+ ot as DSText
72
+ };
@@ -2,13 +2,12 @@
2
2
  import "react/jsx-runtime";
3
3
  import "./chunks/index.DQOqod3i.js";
4
4
  import "react";
5
- import "./chunks/helpers.CexwVao7.js";
6
5
  import "./chunks/useBreakpoint.1txsny17.js";
7
- import "./chunks/index.cKLI89Eg.js";
8
6
  import "./asterisk.Dwtdwpkq.js";
9
- import "./chunks/Popover.ByaoNwGK.js";
10
- import "./chunks/SystemFeedback.4osheYxC.js";
11
- import { D as c } from "./chunks/Textarea.CAOqZMUi.js";
7
+ import "./chunks/Popover.CxZZ_y1Z.js";
8
+ import "./chunks/SystemFeedback.DhWcYjnu.js";
9
+ import { D } from "./chunks/Textarea.vuJgvW6_.js";
10
+ import "./chunks/helpers.CexwVao7.js";
12
11
  export {
13
- c as DSTextarea
12
+ D as DSTextarea
14
13
  };
@@ -3,9 +3,9 @@ import "react/jsx-runtime";
3
3
  import "./chunks/index.cKLI89Eg.js";
4
4
  import "./chunks/index.DQOqod3i.js";
5
5
  import "react";
6
+ import "./chunks/Text.utils.DzlY9pJS.js";
7
+ import { D as s } from "./chunks/TextUtility.BZLwqyic.js";
6
8
  import "./chunks/helpers.CexwVao7.js";
7
- import "./chunks/Text.utils.BZ4nTZVu.js";
8
- import { D as s } from "./chunks/TextUtility.BPrxUX-x.js";
9
9
  export {
10
10
  s as DSTextUtility
11
11
  };
@@ -3,9 +3,9 @@ import "react/jsx-runtime";
3
3
  import "./chunks/index.cKLI89Eg.js";
4
4
  import "./chunks/index.DQOqod3i.js";
5
5
  import "react";
6
- import "./chunks/Button.COycNYUI.js";
6
+ import "./chunks/Button.CCol--xy.js";
7
7
  import "./chunks/Icon.DYtaQgbw.js";
8
- import { D as a } from "./chunks/Toast.NZfb7z3q.js";
8
+ import { D as a } from "./chunks/Toast.V_ZUAsf2.js";
9
9
  export {
10
10
  a as DSToast
11
11
  };
@@ -1,35 +1,34 @@
1
1
  "use client";
2
2
  import { jsxs as C, jsx as O } from "react/jsx-runtime";
3
3
  import { createContext as b, useState as h, useRef as L, useEffect as v, useMemo as _, useContext as y } from "react";
4
- import { g } from "./chunks/helpers.CexwVao7.js";
5
- import "./chunks/index.cKLI89Eg.js";
6
- import { s as R, f as U } from "./chunks/AriaLiveRegions.utils.BPvIKT6B.js";
7
- import { D as j, s as q } from "./chunks/Toast.NZfb7z3q.js";
4
+ import { s as R, f as U } from "./chunks/AriaLiveRegions.utils.xoETe2Ps.js";
5
+ import { D as j, s as q } from "./chunks/Toast.V_ZUAsf2.js";
8
6
  import { h as Q } from "./chunks/has-window.ut_-aShB.js";
7
+ import { g } from "./chunks/helpers.CexwVao7.js";
9
8
  const k = () => {
10
9
  if (!Q)
11
10
  return;
12
11
  if (document.querySelectorAll("[data-ds-toast]").length > 1)
13
12
  throw new Error(g("DSToast", 'The destructured "toast" element should only be used once in the DOM.'));
14
- }, n = "data-ds-toast-timeout-id", S = "closing", B = 1e4, D = b(void 0), J = () => {
13
+ }, n = "data-ds-toast-timeout-id", S = "closing", B = 1e4, D = b(void 0), H = () => {
15
14
  const r = y(D);
16
15
  if (!r)
17
16
  throw new Error(g("DSToastProvider", "useDSToast must be used within a <DSToastProvider />, which wraps around your root component."));
18
17
  return r;
19
- }, K = ({
18
+ }, J = ({
20
19
  children: r
21
20
  }) => {
22
- const [u, a] = h([]), [o, i] = h(null), e = L(null);
21
+ const [u, a] = h([]), [o, c] = h(null), e = L(null);
23
22
  v(() => {
24
23
  !o && u.length > 0 && setTimeout(() => {
25
- i(u[0]);
24
+ c(u[0]);
26
25
  });
27
26
  }, [u]), v(() => {
28
- o && (p(o.message, o.variant), I());
27
+ o && (w(o.message, o.variant), I());
29
28
  }, [o]);
30
- const c = () => e.current?.getAttribute(n) || null, l = (t) => {
29
+ const i = () => e.current?.getAttribute(n) || null, l = (t) => {
31
30
  e.current?.setAttribute(n, t);
32
- }, M = () => e.current?.removeAttribute(n), p = (t, s) => {
31
+ }, M = () => e.current?.removeAttribute(n), w = (t, s) => {
33
32
  s === "warning" ? R(t, "DSToast") : (s === "success" || s === "info") && U(t, "DSToast");
34
33
  }, T = (t, s) => {
35
34
  const P = {
@@ -40,27 +39,27 @@ const k = () => {
40
39
  onClick: () => {
41
40
  f();
42
41
  },
43
- onMouseEnter: w,
44
- onMouseLeave: A
42
+ onMouseEnter: A,
43
+ onMouseLeave: p
45
44
  };
46
45
  a((x) => [...x, P]);
47
- }, w = () => {
46
+ }, A = () => {
48
47
  m();
49
48
  }, m = () => {
50
- const t = c();
49
+ const t = i();
51
50
  t && (clearTimeout(t), e.current?.removeAttribute(n));
52
51
  }, d = () => {
53
52
  const t = setTimeout(() => {
54
53
  f();
55
54
  }, B);
56
55
  l(String(t));
57
- }, A = () => {
58
- c() !== S && e.current && d();
56
+ }, p = () => {
57
+ i() !== S && e.current && d();
59
58
  }, I = () => {
60
59
  k(), o && e.current?.showPopover && (e.current.showPopover(), d());
61
60
  }, f = () => {
62
61
  m(), l(S), e.current && (e.current.addEventListener("animationend", () => {
63
- e.current?.hidePopover && (e.current.hidePopover(), M(), e.current = null, a((t) => t.slice(1)), i(null));
62
+ e.current?.hidePopover && (e.current.hidePopover(), M(), e.current = null, a((t) => t.slice(1)), c(null));
64
63
  }, {
65
64
  once: !0
66
65
  // removes event listener after being called once
@@ -74,6 +73,6 @@ const k = () => {
74
73
  ] });
75
74
  };
76
75
  export {
77
- K as DSToastProvider,
78
- J as useDSToast
76
+ J as DSToastProvider,
77
+ H as useDSToast
79
78
  };