@stihl-design-system/components 1.0.0-RC.10 → 1.0.0-RC.12

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 (330) hide show
  1. package/README.md +0 -9
  2. package/{accordion.B3UkxlAZ.js → accordion.Rvtiu8Y4.js} +3 -3
  3. package/accordion.d.ts +1 -0
  4. package/arialiveregions.Cyycgs8g.js +27 -0
  5. package/arialiveregions.d.ts +1 -0
  6. package/assets/Accordion.i4k5SMQM.css +1 -0
  7. package/assets/CheckboxGroup.BH1Br1dg.css +1 -0
  8. package/assets/Chip.DSdLuzoi.css +1 -0
  9. package/assets/CustomReactSelect.vHt8qNKC.css +1 -0
  10. package/assets/Dialog.BgzebVk4.css +1 -0
  11. package/assets/Drawer.Bauwxrk7.css +1 -0
  12. package/assets/Fieldset.DOdTbb7C.css +1 -0
  13. package/assets/Icon.DxRSBRSL.css +1 -0
  14. package/assets/InputPassword.CG7Ugu73.css +1 -0
  15. package/assets/InputSearch.CseChMc-.css +1 -0
  16. package/assets/InputStepper.C0eAYr7P.css +1 -0
  17. package/assets/Notification.DbRapUJo.css +1 -0
  18. package/assets/RadioGroup.BfMo157q.css +1 -0
  19. package/assets/Select.D4EXgIbz.css +1 -0
  20. package/assets/Textarea.KJGPTYMz.css +1 -0
  21. package/assets/Toast.CuafTAf7.css +1 -0
  22. package/assets/arialiveregions.DhsijBaL.css +1 -0
  23. package/assets/asterisk.BfVAUBO7.css +1 -0
  24. package/assets/button.DF4RBeC2.css +1 -0
  25. package/assets/buttonround.19uK_-oO.css +1 -0
  26. package/assets/checkbox.ByOoFouu.css +1 -0
  27. package/assets/chipgroup.BzfZLbkv.css +1 -0
  28. package/assets/flag.B-RLcMcf.css +1 -0
  29. package/assets/floatingactionbutton.E9HekT6S.css +1 -0
  30. package/assets/heading.u4f8Mz94.css +1 -0
  31. package/assets/input.BAkFKPW3.css +1 -0
  32. package/assets/link.DDJj0D1U.css +1 -0
  33. package/assets/linkstandalone.DIazcjIv.css +1 -0
  34. package/assets/logo.CnW8alZU.css +1 -0
  35. package/assets/optioncheckbox.BZaWtRD7.css +1 -0
  36. package/assets/radio.X-RTl_jo.css +1 -0
  37. package/assets/skiptocontent.PTL3256m.css +1 -0
  38. package/assets/spinner.2iWJWKyA.css +1 -0
  39. package/assets/switch.gw6aa3kx.css +1 -0
  40. package/assets/systemfeedback.BPz5YlPC.css +1 -0
  41. package/assets/text.DjTG_qNb.css +1 -0
  42. package/assets/title.rosWPEG3.css +1 -0
  43. package/asterisk.DpzETKdT.js +8 -0
  44. package/asterisk.d.ts +1 -0
  45. package/button.M4nXjcUn.js +135 -0
  46. package/button.d.ts +1 -0
  47. package/buttonround.E56F_805.js +118 -0
  48. package/buttonround.d.ts +1 -0
  49. package/checkbox.Cb2_ey6U.js +111 -0
  50. package/checkbox.d.ts +1 -0
  51. package/checkboxgroup.DBDmB-zR.js +8 -0
  52. package/checkboxgroup.d.ts +1 -0
  53. package/chip.C_1tGqvZ.js +10 -0
  54. package/chip.d.ts +2 -0
  55. package/chipgroup.BvTj1ziW.js +174 -0
  56. package/chipgroup.d.ts +2 -0
  57. package/chunks/Accordion.CB6jB3s_.js +125 -0
  58. package/chunks/{AriaLiveRegions.utils.D2ni4Yrf.js → AriaLiveRegions.utils.BGSZafnS.js} +2 -2
  59. package/chunks/CheckboxGroup.S6i5EOc4.js +92 -0
  60. package/chunks/Chip.CMlPUyOJ.js +142 -0
  61. package/chunks/{CustomReactSelect.ChAtL6fu.js → CustomReactSelect.Cg_XW3YK.js} +1056 -1049
  62. package/chunks/Dialog.CudsqNag.js +148 -0
  63. package/chunks/Drawer.ueG2Bzr9.js +154 -0
  64. package/chunks/Fieldset.Cjmkgxxk.js +99 -0
  65. package/chunks/{Icon.C2o2seDb.js → Icon.BCmt_XBG.js} +45 -45
  66. package/chunks/InputPassword.CNLbBFjx.js +143 -0
  67. package/chunks/InputSearch.CHA6mkX_.js +192 -0
  68. package/chunks/InputStepper.xmWGU9pU.js +294 -0
  69. package/chunks/Notification.o6pagKQy.js +93 -0
  70. package/chunks/RadioGroup.Crj7NoOs.js +137 -0
  71. package/chunks/Select.E6gLFYLk.js +194 -0
  72. package/chunks/Textarea.DUBSOpNL.js +198 -0
  73. package/chunks/Toast.DyEi2GEP.js +89 -0
  74. package/chunks/translate.isa3FHb8.js +11 -0
  75. package/{combobox.JL1Dsn3E.js → combobox.DUzv8jzM.js} +1 -1
  76. package/combobox.d.ts +1 -0
  77. package/components/Accordion/Accordion.d.ts +0 -1
  78. package/components/Accordion/Accordion.utils.d.ts +0 -1
  79. package/components/Button/Button.d.ts +0 -1
  80. package/components/ButtonRound/ButtonRound.d.ts +0 -1
  81. package/components/Checkbox/Checkbox.d.ts +0 -1
  82. package/components/CheckboxGroup/CheckboxGroup.d.ts +6 -7
  83. package/components/CheckboxGroup/CheckboxGroup.utils.d.ts +0 -1
  84. package/components/ChipGroup/Chip.d.ts +12 -0
  85. package/components/ChipGroup/ChipGroup.d.ts +42 -0
  86. package/components/ChipGroup/ChipGroup.utils.d.ts +60 -0
  87. package/components/ChipGroup/ChipGroup.utils.test.d.ts +1 -0
  88. package/components/Combobox/Combobox.d.ts +1 -2
  89. package/components/Combobox/Combobox.utils.d.ts +6 -1
  90. package/components/{CustomReactSelect → Combobox/CustomReactSelect}/CustomReactSelect.d.ts +2 -3
  91. package/components/Combobox/CustomReactSelect/CustomReactSelect.utils.d.ts +3 -0
  92. package/components/Combobox/CustomReactSelect/CustomReactSelect.utils.test.d.ts +1 -0
  93. package/components/{CustomReactSelect → Combobox/CustomReactSelect}/OptionCheckbox.d.ts +0 -1
  94. package/components/Dialog/Dialog.d.ts +0 -1
  95. package/components/Dialog/Dialog.utils.d.ts +0 -1
  96. package/components/Drawer/Drawer.d.ts +0 -1
  97. package/components/Drawer/Drawer.utils.d.ts +0 -1
  98. package/components/Fieldset/Fieldset.d.ts +0 -1
  99. package/components/Fieldset/Fieldset.utils.d.ts +7 -1
  100. package/components/Flag/Flag.d.ts +23 -0
  101. package/components/Flag/Flag.test.d.ts +1 -0
  102. package/components/Flag/Flag.utils.d.ts +2 -0
  103. package/components/FloatingActionButton/FloatingActionButton.d.ts +0 -1
  104. package/components/Heading/Heading.d.ts +0 -1
  105. package/components/Icon/Icon.d.ts +0 -1
  106. package/components/Icon/Icon.utils.d.ts +0 -1
  107. package/components/Input/Input.d.ts +0 -1
  108. package/components/Input/Input.utils.d.ts +0 -1
  109. package/components/InputPassword/InputPassword.d.ts +0 -1
  110. package/components/InputPassword/InputPassword.utils.d.ts +0 -1
  111. package/components/InputSearch/InputSearch.d.ts +0 -1
  112. package/components/InputSearch/InputSearch.utils.d.ts +0 -1
  113. package/components/InputStepper/InputStepper.d.ts +0 -1
  114. package/components/InputStepper/InputStepper.utils.d.ts +0 -1
  115. package/components/Link/Link.d.ts +0 -1
  116. package/components/LinkStandalone/LinkStandalone.d.ts +0 -1
  117. package/components/Logo/Logo.d.ts +1 -2
  118. package/components/Logo/Logo.utils.d.ts +0 -1
  119. package/components/Notification/Notification.d.ts +0 -1
  120. package/components/Notification/Notification.utils.d.ts +0 -1
  121. package/components/Radio/Radio.d.ts +1 -2
  122. package/components/RadioGroup/RadioGroup.d.ts +7 -8
  123. package/components/RadioGroup/RadioGroup.utils.d.ts +2 -3
  124. package/components/Select/Select.d.ts +0 -1
  125. package/components/Select/Select.utils.d.ts +0 -1
  126. package/components/SkipToContent/SkipToContent.d.ts +0 -1
  127. package/components/Spinner/Spinner.d.ts +0 -1
  128. package/components/Switch/Switch.d.ts +0 -1
  129. package/components/SystemFeedback/SystemFeedback.d.ts +0 -1
  130. package/components/Text/Text.d.ts +0 -1
  131. package/components/Textarea/Textarea.d.ts +0 -1
  132. package/components/Textarea/Textarea.utils.d.ts +0 -1
  133. package/components/Title/Title.d.ts +0 -1
  134. package/components/Toast/Toast.d.ts +0 -1
  135. package/components/Toast/Toast.utils.d.ts +0 -1
  136. package/components/Toast/ToastManager.d.ts +0 -1
  137. package/customreactselect.CXmBRqQ9.js +13 -0
  138. package/customreactselect.d.ts +2 -1
  139. package/{dialog.D3bJ0rsW.js → dialog.DYlBUsOD.js} +2 -2
  140. package/dialog.d.ts +1 -0
  141. package/{drawer.CNPF1-Kc.js → drawer.CvhbP1ra.js} +2 -2
  142. package/drawer.d.ts +1 -0
  143. package/fieldset.CtUGEdLv.js +11 -0
  144. package/fieldset.d.ts +1 -0
  145. package/flag.BKpsdB_-.js +43 -0
  146. package/flag.d.ts +2 -0
  147. package/floatingactionbutton.D5L0B7zI.js +87 -0
  148. package/floatingactionbutton.d.ts +1 -0
  149. package/heading.IPIYc5vW.js +50 -0
  150. package/heading.d.ts +1 -0
  151. package/{icon.BoMgOmC1.js → icon.Ck0BpI34.js} +1 -1
  152. package/icon.d.ts +1 -0
  153. package/index.d.ts +4 -0
  154. package/index.es.js +134 -114
  155. package/input.BEnCFNM-.js +239 -0
  156. package/input.d.ts +1 -0
  157. package/{inputpassword.nsYu6YeB.js → inputpassword.B-D_jB9w.js} +4 -4
  158. package/inputpassword.d.ts +1 -0
  159. package/{inputsearch.ZGIrDrcv.js → inputsearch.CaSpklR1.js} +4 -4
  160. package/inputsearch.d.ts +1 -0
  161. package/{inputstepper.BvY36hA1.js → inputstepper.C7KD1-0S.js} +4 -4
  162. package/inputstepper.d.ts +1 -0
  163. package/link.DREJAoPG.js +116 -0
  164. package/link.d.ts +1 -0
  165. package/linkstandalone.BBoEniZ_.js +79 -0
  166. package/linkstandalone.d.ts +1 -0
  167. package/logo.Hul8qCFo.js +65 -0
  168. package/logo.d.ts +1 -0
  169. package/{notification.BAS13UQ6.js → notification.JWhrkEcE.js} +3 -3
  170. package/notification.d.ts +1 -0
  171. package/optioncheckbox.BRUTnQnJ.js +43 -0
  172. package/optioncheckbox.d.ts +2 -1
  173. package/package.json +47 -40
  174. package/partials/index.js +407 -407
  175. package/partials/lib/partials.d.ts +0 -1
  176. package/radio.DEILy_lV.js +114 -0
  177. package/radio.d.ts +1 -0
  178. package/radiogroup.DeU-HdlP.js +10 -0
  179. package/radiogroup.d.ts +1 -0
  180. package/{select.C4OZMB-V.js → select.BYraFJzz.js} +4 -4
  181. package/select.d.ts +1 -0
  182. package/skiptocontent.BxvpIB7H.js +45 -0
  183. package/skiptocontent.d.ts +1 -0
  184. package/spinner.Bq97Og-6.js +58 -0
  185. package/spinner.d.ts +1 -0
  186. package/styles/fonts/STIHLContrafaceDigitalTextDemi.woff +0 -0
  187. package/styles/fonts/STIHLContrafaceDigitalTextDemi.woff2 +0 -0
  188. package/styles/fonts/font-face.min.css +1 -1
  189. package/styles/scss/ds/index.scss +19 -0
  190. package/styles/scss/ds/lib/animation.scss +21 -0
  191. package/styles/scss/ds/lib/breakpoints.scss +15 -0
  192. package/styles/scss/ds/lib/container-query.scss +54 -0
  193. package/styles/scss/ds/lib/ds-internal/_a11y.scss +15 -0
  194. package/styles/scss/{lib → ds/lib/ds-internal}/_focus.scss +13 -15
  195. package/styles/scss/ds/lib/ds-internal/_heading.scss +37 -0
  196. package/styles/scss/ds/lib/ds-internal/_helpers.scss +32 -0
  197. package/styles/scss/ds/lib/ds-internal/_high-contrast.scss +6 -0
  198. package/styles/scss/ds/lib/ds-internal/_hover.scss +6 -0
  199. package/styles/scss/ds/lib/ds-internal/_index.scss +9 -0
  200. package/styles/scss/ds/lib/ds-internal/_link.scss +62 -0
  201. package/styles/scss/ds/lib/ds-internal/_spacing-dynamic.scss +53 -0
  202. package/styles/scss/ds/lib/ds-internal/_text.scss +30 -0
  203. package/styles/scss/ds/lib/grid-extended.scss +11 -0
  204. package/styles/scss/ds/lib/grid-full.scss +6 -0
  205. package/styles/scss/ds/lib/grid-main.scss +119 -0
  206. package/styles/scss/ds/lib/grid-narrow.scss +14 -0
  207. package/styles/scss/ds/lib/grid-sidebar-sidebar.scss +52 -0
  208. package/styles/scss/{lib/_grid-sidebar.scss → ds/lib/grid-sidebar.scss} +23 -32
  209. package/styles/scss/{lib/_grid.scss → ds/lib/grid.scss} +15 -17
  210. package/styles/scss/ds/lib/heading.scss +75 -0
  211. package/styles/scss/ds/lib/link.scss +74 -0
  212. package/styles/scss/ds/lib/media-query.scss +32 -0
  213. package/styles/scss/{lib/_shadow.scss → ds/lib/shadow.scss} +2 -2
  214. package/styles/scss/ds/lib/spacing-dynamic.scss +7 -0
  215. package/styles/scss/ds/lib/spacing.scss +20 -0
  216. package/styles/scss/ds/lib/text.scss +83 -0
  217. package/styles/scss/ds/lib/theme.scss +162 -0
  218. package/styles/scss/ds/lib/transition.scss +36 -0
  219. package/switch.DI8YYa5G.js +65 -0
  220. package/switch.d.ts +1 -0
  221. package/{systemfeedback.ZzRUAVYX.js → systemfeedback.C3Pfxxpp.js} +6 -6
  222. package/systemfeedback.d.ts +1 -0
  223. package/text.DThvTwm8.js +57 -0
  224. package/text.d.ts +1 -0
  225. package/{textarea.CtQtGqn5.js → textarea.CBvH0ljM.js} +3 -3
  226. package/textarea.d.ts +1 -0
  227. package/title.DqzdB2Gq.js +36 -0
  228. package/title.d.ts +1 -0
  229. package/toast.d.ts +1 -0
  230. package/{toast.DVd9dLs2.js → toast.n1QUINSA.js} +3 -3
  231. package/{toastmanager.Dh0gzFkM.js → toastmanager.B7EZ4JSI.js} +2 -2
  232. package/toastmanager.d.ts +1 -0
  233. package/utils/index.d.ts +1 -0
  234. package/utils/translate.d.ts +11 -0
  235. package/utils/translate.test.d.ts +1 -0
  236. package/utils/useBreakpoint.d.ts +0 -1
  237. package/utils/useIsomorphicLayoutEffect.d.ts +0 -1
  238. package/utils/vitest.setup.d.ts +0 -1
  239. package/arialiveregions.BK4T7Vhk.js +0 -27
  240. package/assets/Accordion.lFv7Q_RG.css +0 -1
  241. package/assets/CustomReactSelect.CMkn-EGK.css +0 -1
  242. package/assets/Dialog.fiQvxJg_.css +0 -1
  243. package/assets/Drawer.BqBgbSuP.css +0 -1
  244. package/assets/Fieldset.qHYeUFZt.css +0 -1
  245. package/assets/Icon.Duy_0R8w.css +0 -1
  246. package/assets/InputPassword.Cf394z47.css +0 -1
  247. package/assets/InputSearch.eCRQoxjN.css +0 -1
  248. package/assets/InputStepper.B80KulYE.css +0 -1
  249. package/assets/Notification.DK6agBGS.css +0 -1
  250. package/assets/RadioGroup.Bz3_xkZU.css +0 -1
  251. package/assets/Select.BptsMxz4.css +0 -1
  252. package/assets/Textarea.CIIVh03G.css +0 -1
  253. package/assets/Toast.Dsvs1zdM.css +0 -1
  254. package/assets/arialiveregions.GsGx2USO.css +0 -1
  255. package/assets/asterisk.DlJ4YtSZ.css +0 -1
  256. package/assets/button.B1O7Yw3Q.css +0 -1
  257. package/assets/buttonround.DlH_ipDo.css +0 -1
  258. package/assets/checkbox.K4CVYK9g.css +0 -1
  259. package/assets/floatingactionbutton.DRYentYC.css +0 -1
  260. package/assets/heading.6bER-Eac.css +0 -1
  261. package/assets/input.C0MrSbQu.css +0 -1
  262. package/assets/link.vtTST2ki.css +0 -1
  263. package/assets/linkstandalone.BtAcziZ7.css +0 -1
  264. package/assets/logo.pETQEsvZ.css +0 -1
  265. package/assets/optioncheckbox.BJJAph5_.css +0 -1
  266. package/assets/radio.9kpIO3HC.css +0 -1
  267. package/assets/skiptocontent.CHcqLS7S.css +0 -1
  268. package/assets/spinner.D_Nnf1ZG.css +0 -1
  269. package/assets/switch.2DQF2zH-.css +0 -1
  270. package/assets/systemfeedback.Sq0bAIyf.css +0 -1
  271. package/assets/text.Dhb_l50R.css +0 -1
  272. package/assets/title.f74Bosn-.css +0 -1
  273. package/asterisk.DDn-yX4P.js +0 -8
  274. package/button.DH0h6uPs.js +0 -135
  275. package/buttonround.0mw4zzlU.js +0 -118
  276. package/checkbox.DETR3e3X.js +0 -112
  277. package/checkboxgroup.CZqrlF-x.js +0 -9
  278. package/chunks/Accordion.pI3JyHJL.js +0 -125
  279. package/chunks/CheckboxGroup.4J_gZ_XJ.js +0 -87
  280. package/chunks/Dialog.Z5ESJQMi.js +0 -148
  281. package/chunks/Drawer.BdowMqE0.js +0 -154
  282. package/chunks/Fieldset.COGbZwry.js +0 -99
  283. package/chunks/InputPassword.Dgo95-PU.js +0 -140
  284. package/chunks/InputSearch.BFof0pBn.js +0 -189
  285. package/chunks/InputStepper.4IqLa5tX.js +0 -291
  286. package/chunks/Notification.BhwbaXqk.js +0 -93
  287. package/chunks/RadioGroup.C5jbCJM4.js +0 -132
  288. package/chunks/RadioGroup.module.BBZwHDjW.js +0 -11
  289. package/chunks/Select.fXeQJXtz.js +0 -191
  290. package/chunks/Textarea.Bewrp0Za.js +0 -195
  291. package/chunks/Toast.DA_CQ9J-.js +0 -89
  292. package/components/CustomReactSelect/CustomReactSelect.utils.d.ts +0 -16
  293. package/customreactselect.Dg8Kgq3e.js +0 -13
  294. package/fieldset.CTshPWYX.js +0 -11
  295. package/floatingactionbutton.CCIj9Fjr.js +0 -87
  296. package/heading.CAkraI2D.js +0 -50
  297. package/input.CTgeAYdu.js +0 -236
  298. package/link.DAZNwQ0a.js +0 -116
  299. package/linkstandalone.C9X3er7g.js +0 -80
  300. package/logo.CEO6OV7u.js +0 -65
  301. package/optioncheckbox.DZWwtx6f.js +0 -43
  302. package/radio.CWGJtmKl.js +0 -115
  303. package/radiogroup.BhffFqN3.js +0 -11
  304. package/skiptocontent.C4yQfWr2.js +0 -46
  305. package/spinner.D-xrotcu.js +0 -58
  306. package/styles/scss/_index.scss +0 -23
  307. package/styles/scss/lib/_a11y.scss +0 -15
  308. package/styles/scss/lib/_animation.scss +0 -21
  309. package/styles/scss/lib/_breakpoints.scss +0 -16
  310. package/styles/scss/lib/_container-query.scss +0 -58
  311. package/styles/scss/lib/_grid-extended.scss +0 -11
  312. package/styles/scss/lib/_grid-full.scss +0 -6
  313. package/styles/scss/lib/_grid-main.scss +0 -117
  314. package/styles/scss/lib/_grid-narrow.scss +0 -16
  315. package/styles/scss/lib/_grid-sidebar-sidebar.scss +0 -50
  316. package/styles/scss/lib/_heading.scss +0 -107
  317. package/styles/scss/lib/_helpers.scss +0 -15
  318. package/styles/scss/lib/_high-contrast.scss +0 -24
  319. package/styles/scss/lib/_hover.scss +0 -10
  320. package/styles/scss/lib/_link.scss +0 -126
  321. package/styles/scss/lib/_media-query.scss +0 -32
  322. package/styles/scss/lib/_spacing.scss +0 -32
  323. package/styles/scss/lib/_text.scss +0 -110
  324. package/styles/scss/lib/_theme.scss +0 -162
  325. package/styles/scss/lib/_transition.scss +0 -45
  326. package/switch.CmpNUC7s.js +0 -65
  327. package/text.rgDKQBrU.js +0 -57
  328. package/title.LY1ylQsb.js +0 -36
  329. package/utils/render-in-iframe.d.ts +0 -15
  330. /package/components/{CustomReactSelect/CustomReactSelect.utils.test.d.ts → ChipGroup/ChipGroup.test.d.ts} +0 -0
@@ -0,0 +1,7 @@
1
+
2
+ $spacing-dynamic-xs: var(--ds-spacing-dynamic-xs);
3
+ $spacing-dynamic-s: var(--ds-spacing-dynamic-s);
4
+ $spacing-dynamic-m: var(--ds-spacing-dynamic-m);
5
+ $spacing-dynamic-l: var(--ds-spacing-dynamic-l);
6
+ $spacing-dynamic-xl: var(--ds-spacing-dynamic-xl);
7
+ $spacing-dynamic-xxl: var(--ds-spacing-dynamic-xxl);
@@ -0,0 +1,20 @@
1
+ $spacing-0: 0px;
2
+ $spacing-1: 1px;
3
+ $spacing-2: 2px;
4
+ $spacing-4: 4px;
5
+ $spacing-6: 6px;
6
+ $spacing-8: 8px;
7
+ $spacing-12: 12px;
8
+ $spacing-14: 14px;
9
+ $spacing-16: 16px;
10
+ $spacing-20: 20px;
11
+ $spacing-24: 24px;
12
+ $spacing-32: 32px;
13
+ $spacing-40: 40px;
14
+ $spacing-48: 48px;
15
+ $spacing-56: 56px;
16
+ $spacing-64: 64px;
17
+ $spacing-80: 80px;
18
+ $spacing-96: 96px;
19
+ $spacing-128: 128px;
20
+ $spacing-160: 160px;
@@ -0,0 +1,83 @@
1
+ @use './ds-internal/_text' as *;
2
+
3
+
4
+ @mixin text-large {
5
+ @include base-text-regular(
6
+ 'STIHL Contraface Digital Text Regular',
7
+ 1.25rem,
8
+ 1.6
9
+ );
10
+ }
11
+
12
+ @mixin text-large-bold {
13
+ @include base-text-bold('STIHL Contraface Digital Text Bold', 1.25rem, 1.6);
14
+ }
15
+
16
+ @mixin text-medium {
17
+ @include base-text-regular(
18
+ 'STIHL Contraface Digital Text Regular',
19
+ 1rem,
20
+ 1.5
21
+ );
22
+ }
23
+
24
+ @mixin text-medium-bold {
25
+ @include base-text-bold('STIHL Contraface Digital Text Bold', 1rem, 1.5);
26
+ }
27
+
28
+ @mixin text-small {
29
+ @include base-text-regular(
30
+ 'STIHL Contraface Digital Text Regular',
31
+ 0.875rem,
32
+ 1.14
33
+ );
34
+ }
35
+
36
+ @mixin text-small-bold {
37
+ @include base-text-bold('STIHL Contraface Digital Text Bold', 0.875rem, 1.14);
38
+ }
39
+
40
+ @mixin text-x-small {
41
+ @include base-text-regular(
42
+ 'STIHL Contraface Digital Text Regular',
43
+ 0.75rem,
44
+ 1.33
45
+ );
46
+ }
47
+
48
+ @mixin text-x-small-bold {
49
+ @include base-text-bold('STIHL Contraface Digital Text Bold', 0.75rem, 1.33);
50
+ }
51
+
52
+ @mixin text-xx-small {
53
+ @include base-text-regular(
54
+ 'STIHL Contraface Digital Text Regular',
55
+ 0.625rem,
56
+ 1.6
57
+ );
58
+ }
59
+
60
+
61
+ @mixin utility-medium {
62
+ @include base-text-regular(
63
+ 'STIHL Contraface Digital Text Regular',
64
+ 1rem,
65
+ 1.25
66
+ );
67
+ }
68
+
69
+ @mixin utility-medium-bold {
70
+ @include base-text-bold('STIHL Contraface Digital Text Bold', 1rem, 1.25);
71
+ }
72
+
73
+ @mixin utility-small {
74
+ @include base-text-regular(
75
+ 'STIHL Contraface Digital Text Regular',
76
+ 0.875rem,
77
+ 1.14
78
+ );
79
+ }
80
+
81
+ @mixin utility-small-bold {
82
+ @include base-text-bold('STIHL Contraface Digital Text Bold', 0.875rem, 1.14);
83
+ }
@@ -0,0 +1,162 @@
1
+
2
+
3
+
4
+ $color-core-black-base: #050505;
5
+ $color-core-black-opacity-10: #0000001A;
6
+ $color-core-black-opacity-50: #00000080;
7
+ $color-core-blue-base: #249ABE;
8
+ $color-core-blue-dark: #1E71A1;
9
+ $color-core-blue-deep: #19618B;
10
+ $color-core-blue-light: #D4ECF7;
11
+ $color-core-blue-mid: #8DCFE8;
12
+ $color-core-forest-base: #4A9E5F;
13
+ $color-core-forest-dark: #3C8653;
14
+ $color-core-forest-deep: #2D7644;
15
+ $color-core-forest-light: #DBF0E1;
16
+ $color-core-forest-mid: #77C089;
17
+ $color-core-green-base: #749F4A;
18
+ $color-core-green-dark: #5B863C;
19
+ $color-core-green-deep: #46762D;
20
+ $color-core-green-light: #E5F0DB;
21
+ $color-core-green-mid: #9BC077;
22
+ $color-core-grey-base: #B1B1B1;
23
+ $color-core-grey-dark: #666666;
24
+ $color-core-grey-deep: #444444;
25
+ $color-core-grey-light: #EDEDED;
26
+ $color-core-grey-mid: #DADADA;
27
+ $color-core-grey-ultra-deep: #252525;
28
+ $color-core-grey-ultra-light: #F8F8F8;
29
+ $color-core-orange-base: #F37A1F;
30
+ $color-core-orange-dark: #E9640C;
31
+ $color-core-orange-deep: #D9480F;
32
+ $color-core-orange-light: #FEE2CD;
33
+ $color-core-orange-mid: #F7A669;
34
+ $color-core-red-base: #D43B3B;
35
+ $color-core-red-dark: #B72427;
36
+ $color-core-red-deep: #A5181D;
37
+ $color-core-red-light: #EEBCBD;
38
+ $color-core-red-mid: #DA6B6D;
39
+ $color-core-white-base: #FFFFFF;
40
+ $color-core-white-opacity-15: #FFFFFF26;
41
+ $color-core-white-opacity-50: #FFFFFF80;
42
+ $color-core-yellow-base: #FDC543;
43
+ $color-core-yellow-dark: #F9A521;
44
+ $color-core-yellow-deep: #EE8F00;
45
+ $color-core-yellow-light: #FDECC3;
46
+ $color-core-yellow-mid: #FED277;
47
+
48
+
49
+ $theme-light-background-color-brand-disabled: $color-core-grey-mid;
50
+ $theme-light-background-color-brand-hover: $color-core-orange-dark;
51
+ $theme-light-background-color-brand-pressed: $color-core-orange-dark;
52
+ $theme-light-background-color-brand: $color-core-orange-base;
53
+ $theme-light-background-color-feedback-error: $color-core-red-light;
54
+ $theme-light-background-color-feedback-info: $color-core-grey-light;
55
+ $theme-light-background-color-feedback-success: $color-core-green-light;
56
+ $theme-light-background-color-feedback-warning: $color-core-yellow-light;
57
+ $theme-light-background-color-primary-disabled: $color-core-white-base;
58
+ $theme-light-background-color-primary-hover: $color-core-grey-light;
59
+ $theme-light-background-color-primary-inverse-disabled: $color-core-grey-mid;
60
+ $theme-light-background-color-primary-inverse-hover: $color-core-grey-deep;
61
+ $theme-light-background-color-primary-inverse-pressed: $color-core-grey-deep;
62
+ $theme-light-background-color-primary-inverse: $color-core-grey-ultra-deep;
63
+ $theme-light-background-color-primary-pressed: $color-core-grey-light;
64
+ $theme-light-background-color-primary: $color-core-white-base;
65
+ $theme-light-background-color-secondary-disabled: $color-core-grey-ultra-light;
66
+ $theme-light-background-color-secondary-inverse: $color-core-grey-deep;
67
+ $theme-light-background-color-secondary: $color-core-grey-ultra-light;
68
+ $theme-light-background-color-sustainability: $color-core-forest-light;
69
+ $theme-light-background-color-tertiary: $color-core-grey-light;
70
+ $theme-light-background-color-transparent-hover: $color-core-black-opacity-10;
71
+ $theme-light-background-color-transparent-pressed: $color-core-black-opacity-10;
72
+ $theme-light-border-color-feedback-error: $color-core-red-base;
73
+ $theme-light-border-color-feedback-info: $color-core-grey-dark;
74
+ $theme-light-border-color-feedback-success: $color-core-green-base;
75
+ $theme-light-border-color-feedback-warning: $color-core-yellow-base;
76
+ $theme-light-border-color-focus: $color-core-grey-ultra-deep;
77
+ $theme-light-border-color-primary-disabled: $color-core-black-opacity-50;
78
+ $theme-light-border-color-primary-inverse: $color-core-white-base;
79
+ $theme-light-border-color-primary: $color-core-grey-ultra-deep;
80
+ $theme-light-border-color-secondary-disabled: $color-core-black-opacity-10;
81
+ $theme-light-border-color-secondary: $color-core-grey-base;
82
+ $theme-light-border-color-tertiary: $color-core-grey-mid;
83
+ $theme-light-content-color-brand-disabled: $color-core-black-opacity-50;
84
+ $theme-light-content-color-brand-hover: $color-core-orange-deep;
85
+ $theme-light-content-color-brand-pressed: $color-core-orange-deep;
86
+ $theme-light-content-color-brand: $color-core-orange-dark;
87
+ $theme-light-content-color-feedback-error: $color-core-red-base;
88
+ $theme-light-content-color-feedback-info: $color-core-grey-base;
89
+ $theme-light-content-color-feedback-success: $color-core-green-base;
90
+ $theme-light-content-color-feedback-warning: $color-core-yellow-base;
91
+ $theme-light-content-color-interaction-accent-hover: $color-core-blue-deep;
92
+ $theme-light-content-color-interaction-accent-pressed: $color-core-blue-deep;
93
+ $theme-light-content-color-interaction-accent: $color-core-blue-dark;
94
+ $theme-light-content-color-interaction-neutral: $color-core-grey-ultra-deep;
95
+ $theme-light-content-color-primary-disabled: $color-core-black-opacity-50;
96
+ $theme-light-content-color-primary-inverse-disabled: $color-core-black-opacity-50;
97
+ $theme-light-content-color-primary-inverse: $color-core-white-base;
98
+ $theme-light-content-color-primary-on-brand-disabled: $color-core-black-opacity-50;
99
+ $theme-light-content-color-primary-on-brand: $color-core-grey-ultra-deep;
100
+ $theme-light-content-color-primary: $color-core-grey-ultra-deep;
101
+ $theme-light-content-color-secondary-disabled: $color-core-black-opacity-50;
102
+ $theme-light-content-color-secondary: $color-core-grey-dark;
103
+ $theme-light-content-color-sustainability: $color-core-forest-base;
104
+ $theme-light-content-color-tertiary: $color-core-grey-base;
105
+
106
+
107
+ $theme-dark-background-color-brand-disabled: $color-core-grey-mid;
108
+ $theme-dark-background-color-brand-hover: $color-core-orange-dark;
109
+ $theme-dark-background-color-brand-pressed: $color-core-orange-dark;
110
+ $theme-dark-background-color-brand: $color-core-orange-base;
111
+ $theme-dark-background-color-feedback-error: $color-core-grey-deep;
112
+ $theme-dark-background-color-feedback-info: $color-core-grey-deep;
113
+ $theme-dark-background-color-feedback-success: $color-core-grey-deep;
114
+ $theme-dark-background-color-feedback-warning: $color-core-grey-deep;
115
+ $theme-dark-background-color-primary-disabled: $color-core-black-base;
116
+ $theme-dark-background-color-primary-hover: $color-core-grey-deep;
117
+ $theme-dark-background-color-primary-inverse-disabled: $color-core-grey-mid;
118
+ $theme-dark-background-color-primary-inverse-hover: $color-core-grey-mid;
119
+ $theme-dark-background-color-primary-inverse-pressed: $color-core-grey-mid;
120
+ $theme-dark-background-color-primary-inverse: $color-core-grey-ultra-light;
121
+ $theme-dark-background-color-primary-pressed: $color-core-grey-deep;
122
+ $theme-dark-background-color-primary: $color-core-black-base;
123
+ $theme-dark-background-color-secondary-disabled: $color-core-grey-ultra-deep;
124
+ $theme-dark-background-color-secondary-inverse: $color-core-grey-light;
125
+ $theme-dark-background-color-secondary: $color-core-grey-ultra-deep;
126
+ $theme-dark-background-color-sustainability: $color-core-grey-deep;
127
+ $theme-dark-background-color-tertiary: $color-core-grey-ultra-deep;
128
+ $theme-dark-background-color-transparent-hover: $color-core-white-opacity-15;
129
+ $theme-dark-background-color-transparent-pressed: $color-core-white-opacity-15;
130
+ $theme-dark-border-color-feedback-error: $color-core-red-base;
131
+ $theme-dark-border-color-feedback-info: $color-core-grey-dark;
132
+ $theme-dark-border-color-feedback-success: $color-core-green-base;
133
+ $theme-dark-border-color-feedback-warning: $color-core-yellow-base;
134
+ $theme-dark-border-color-focus: $color-core-white-base;
135
+ $theme-dark-border-color-primary-disabled: $color-core-white-opacity-50;
136
+ $theme-dark-border-color-primary-inverse: $color-core-grey-ultra-deep;
137
+ $theme-dark-border-color-primary: $color-core-grey-ultra-light;
138
+ $theme-dark-border-color-secondary-disabled: $color-core-white-opacity-15;
139
+ $theme-dark-border-color-secondary: $color-core-grey-dark;
140
+ $theme-dark-border-color-tertiary: $color-core-grey-deep;
141
+ $theme-dark-content-color-brand-disabled: $color-core-white-opacity-50;
142
+ $theme-dark-content-color-brand-hover: $color-core-orange-mid;
143
+ $theme-dark-content-color-brand-pressed: $color-core-orange-mid;
144
+ $theme-dark-content-color-brand: $color-core-orange-base;
145
+ $theme-dark-content-color-feedback-error: $color-core-red-mid;
146
+ $theme-dark-content-color-feedback-info: $color-core-grey-base;
147
+ $theme-dark-content-color-feedback-success: $color-core-green-mid;
148
+ $theme-dark-content-color-feedback-warning: $color-core-yellow-mid;
149
+ $theme-dark-content-color-interaction-accent-hover: $color-core-blue-mid;
150
+ $theme-dark-content-color-interaction-accent-pressed: $color-core-blue-mid;
151
+ $theme-dark-content-color-interaction-accent: $color-core-blue-mid;
152
+ $theme-dark-content-color-interaction-neutral: $color-core-white-base;
153
+ $theme-dark-content-color-primary-disabled: $color-core-white-opacity-50;
154
+ $theme-dark-content-color-primary-inverse-disabled: $color-core-black-opacity-50;
155
+ $theme-dark-content-color-primary-inverse: $color-core-grey-ultra-deep;
156
+ $theme-dark-content-color-primary-on-brand-disabled: $color-core-black-opacity-50;
157
+ $theme-dark-content-color-primary-on-brand: $color-core-grey-ultra-deep;
158
+ $theme-dark-content-color-primary: $color-core-white-base;
159
+ $theme-dark-content-color-secondary-disabled: $color-core-white-opacity-50;
160
+ $theme-dark-content-color-secondary: $color-core-grey-base;
161
+ $theme-dark-content-color-sustainability: $color-core-forest-mid;
162
+ $theme-dark-content-color-tertiary: $color-core-grey-dark;
@@ -0,0 +1,36 @@
1
+ @use 'sass:list';
2
+ @use 'sass:map';
3
+ @use 'animation' as *;
4
+
5
+ @mixin transition($properties, $duration-key: '100', $easing-key: 'linear') {
6
+ @if list.length($properties) == 0 or $properties == null {
7
+ @error "[STIHL Design System] - [ds.transition()]: No properties provided for ds.transition() mixin.";
8
+ }
9
+
10
+ $duration: map.get($animation-durations, $duration-key);
11
+ $easing: map.get($animation-easing-functions, $easing-key);
12
+
13
+ @if not map.has-key($animation-durations, $duration-key) {
14
+ @error "[STIHL Design System] - [ds.transition()]: Duration key '#{$duration-key}' is not available in the ds.transition() mixin.";
15
+ }
16
+
17
+ @if not map.has-key($animation-easing-functions, $easing-key) {
18
+ @error "[STIHL Design System] - [ds.transition()]: Easing key '#{$easing-key}' is not available in the ds.transition() mixin.";
19
+ }
20
+
21
+ $transition-values: ();
22
+ @each $prop in $properties {
23
+ $transition-values: list.append(
24
+ $transition-values,
25
+ #{$prop} #{$duration} #{$easing},
26
+ comma
27
+ );
28
+ }
29
+ & {
30
+ transition: $transition-values;
31
+
32
+ @media (prefers-reduced-motion: reduce) {
33
+ transition-duration: 0ms;
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,65 @@
1
+ "use client";
2
+ import { j as t } from "./chunks/jsx-runtime.C115EyI4.js";
3
+ import { c as w } from "./chunks/index.CvOaL64Y.js";
4
+ import "react";
5
+ import { D as b } from "./chunks/Icon.BCmt_XBG.js";
6
+ import { DSSpinner as p } from "./spinner.Bq97Og-6.js";
7
+ import './assets/switch.gw6aa3kx.css';const f = "ds-switch_root_gdcld_1", x = "ds-switch_root--label-right_gdcld_40", j = "ds-switch_root--stretched_gdcld_43", k = "ds-switch_loader_gdcld_53", S = "ds-switch_thumb_gdcld_111", C = "ds-switch_root--checked_gdcld_126", s = {
8
+ root: f,
9
+ "root--label-right": "ds-switch_root--label-right_gdcld_40",
10
+ rootLabelRight: x,
11
+ "root--stretched": "ds-switch_root--stretched_gdcld_43",
12
+ rootStretched: j,
13
+ switch: "ds-switch_switch_gdcld_48",
14
+ loader: k,
15
+ thumb: S,
16
+ "root--checked": "ds-switch_root--checked_gdcld_126",
17
+ rootChecked: C
18
+ }, E = ({
19
+ children: a,
20
+ aria: h,
21
+ alignLabel: i = "left",
22
+ checked: r = !1,
23
+ className: l,
24
+ dataTrackingid: _,
25
+ disabled: e = !1,
26
+ loading: o = !1,
27
+ stretched: n = !1,
28
+ onClick: c,
29
+ ...m
30
+ }) => {
31
+ const g = w(s.root, l, {
32
+ [s.rootChecked]: r === !0,
33
+ [s.rootStretched]: n === !0,
34
+ [s.rootLabelRight]: i === "right"
35
+ }), u = (d) => {
36
+ if (e || o) {
37
+ d.preventDefault();
38
+ return;
39
+ }
40
+ c && c(d);
41
+ };
42
+ return /* @__PURE__ */ t.jsxs(
43
+ "button",
44
+ {
45
+ className: g,
46
+ "data-trackingid": _,
47
+ onClick: u,
48
+ ...h,
49
+ ...m,
50
+ type: "button",
51
+ role: "switch",
52
+ "aria-checked": r,
53
+ "aria-disabled": e || o,
54
+ "aria-busy": o,
55
+ children: [
56
+ /* @__PURE__ */ t.jsx("span", { children: a }),
57
+ !o && /* @__PURE__ */ t.jsx("span", { className: s.switch, children: /* @__PURE__ */ t.jsx("span", { className: s.thumb, children: /* @__PURE__ */ t.jsx(b, { name: "check", "aria-hidden": "true" }) }) }),
58
+ o && /* @__PURE__ */ t.jsx("span", { className: s.loader, children: /* @__PURE__ */ t.jsx(p, { aria: { "aria-label": "Loading state" } }) })
59
+ ]
60
+ }
61
+ );
62
+ };
63
+ export {
64
+ E as DSSwitch
65
+ };
package/switch.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from './components/Switch/Switch'
2
+ export {}
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { j as o } from "./chunks/jsx-runtime.C115EyI4.js";
3
3
  import { c } from "./chunks/index.CvOaL64Y.js";
4
- import { D as n } from "./chunks/Icon.C2o2seDb.js";
5
- import './assets/systemfeedback.Sq0bAIyf.css';const i = "_root_10tno_76", l = {
4
+ import { D as n } from "./chunks/Icon.BCmt_XBG.js";
5
+ import './assets/systemfeedback.BPz5YlPC.css';const i = "ds-system-feedback_root_1l65g_1", l = {
6
6
  root: i
7
7
  }, m = {
8
8
  valid: "circle-check-colored",
@@ -10,14 +10,14 @@ import './assets/systemfeedback.Sq0bAIyf.css';const i = "_root_10tno_76", l = {
10
10
  warning: "triangle-exclamationmark-colored"
11
11
  }, p = ({
12
12
  className: e,
13
- message: r,
14
- type: s,
13
+ message: s,
14
+ type: r,
15
15
  ...t
16
16
  }) => {
17
17
  const a = c(l.root, e);
18
18
  return /* @__PURE__ */ o.jsxs("div", { className: a, ...t, role: "alert", children: [
19
- /* @__PURE__ */ o.jsx(n, { name: m[s], "aria-hidden": "true" }),
20
- r
19
+ /* @__PURE__ */ o.jsx(n, { name: m[r], "aria-hidden": "true" }),
20
+ s
21
21
  ] });
22
22
  };
23
23
  export {
@@ -1 +1,2 @@
1
1
  export * from './components/SystemFeedback/SystemFeedback'
2
+ export {}
@@ -0,0 +1,57 @@
1
+ "use client";
2
+ import { j as x } from "./chunks/jsx-runtime.C115EyI4.js";
3
+ import { c as k } from "./chunks/index.CvOaL64Y.js";
4
+ import './assets/text.DjTG_qNb.css';const c = "ds-text_root_12k0t_1", n = "ds-text_root--large_12k0t_7", u = "ds-text_root--large-bold_12k0t_18", b = "ds-text_root--medium_12k0t_29", S = "ds-text_root--medium-bold_12k0t_40", g = "ds-text_root--small_12k0t_51", B = "ds-text_root--small-bold_12k0t_62", i = "ds-text_root--x-small_12k0t_73", X = "ds-text_root--x-small-bold_12k0t_84", L = "ds-text_root--xx-small_12k0t_95", M = "ds-text_root--theme-dark_12k0t_189", o = {
5
+ root: c,
6
+ "root--large": "ds-text_root--large_12k0t_7",
7
+ rootLarge: n,
8
+ "root--large-bold": "ds-text_root--large-bold_12k0t_18",
9
+ rootLargeBold: u,
10
+ "root--medium": "ds-text_root--medium_12k0t_29",
11
+ rootMedium: b,
12
+ "root--medium-bold": "ds-text_root--medium-bold_12k0t_40",
13
+ rootMediumBold: S,
14
+ "root--small": "ds-text_root--small_12k0t_51",
15
+ rootSmall: g,
16
+ "root--small-bold": "ds-text_root--small-bold_12k0t_62",
17
+ rootSmallBold: B,
18
+ "root--x-small": "ds-text_root--x-small_12k0t_73",
19
+ rootXSmall: i,
20
+ "root--x-small-bold": "ds-text_root--x-small-bold_12k0t_84",
21
+ rootXSmallBold: X,
22
+ "root--xx-small": "ds-text_root--xx-small_12k0t_95",
23
+ rootXxSmall: L,
24
+ "root--theme-dark": "ds-text_root--theme-dark_12k0t_189",
25
+ rootThemeDark: M
26
+ }, h = ({
27
+ children: r,
28
+ className: m,
29
+ size: t = "medium",
30
+ tag: d = "p",
31
+ theme: a = "light",
32
+ weight: l = "normal",
33
+ ...s
34
+ }) => {
35
+ const _ = d, e = k(o.root, m, {
36
+ // large
37
+ [o.rootLarge]: t === "large",
38
+ [o.rootLargeBold]: t === "large" && l === "bold",
39
+ // medium
40
+ [o.rootMedium]: t == "medium",
41
+ [o.rootMediumBold]: t === "medium" && l === "bold",
42
+ // small
43
+ [o.rootSmall]: t == "small",
44
+ [o.rootSmallBold]: t == "small" && l === "bold",
45
+ // x-small
46
+ [o.rootXSmall]: t == "x-small",
47
+ [o.rootXSmallBold]: t == "x-small" && l === "bold",
48
+ // xx-small
49
+ [o.rootXxSmall]: t == "xx-small",
50
+ // dark theme
51
+ [o.rootThemeDark]: a === "dark"
52
+ });
53
+ return /* @__PURE__ */ x.jsx(_, { className: e, ...s, children: r });
54
+ };
55
+ export {
56
+ h as DSText
57
+ };
package/text.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from './components/Text/Text'
2
+ export {}
@@ -4,9 +4,9 @@ import "./chunks/index.CvOaL64Y.js";
4
4
  import "react";
5
5
  import "./chunks/useBreakpoint.5xBNDiCf.js";
6
6
  import "./chunks/helpers.B1JT5ShS.js";
7
- import "./asterisk.DDn-yX4P.js";
8
- import "./systemfeedback.ZzRUAVYX.js";
9
- import { D as x } from "./chunks/Textarea.Bewrp0Za.js";
7
+ import "./asterisk.DpzETKdT.js";
8
+ import "./systemfeedback.C3Pfxxpp.js";
9
+ import { D as x } from "./chunks/Textarea.DUBSOpNL.js";
10
10
  export {
11
11
  x as DSTextarea
12
12
  };
package/textarea.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from './components/Textarea/Textarea'
2
+ export {}
@@ -0,0 +1,36 @@
1
+ "use client";
2
+ import { j as r } from "./chunks/jsx-runtime.C115EyI4.js";
3
+ import { c as d } from "./chunks/index.CvOaL64Y.js";
4
+ import './assets/title.rosWPEG3.css';const g = "ds-title_root_tt8l3_1", i = "ds-title_root--x-large-uppercase_tt8l3_4", n = "ds-title_root--large-uppercase_tt8l3_20", h = "ds-title_root--theme-dark_tt8l3_36", m = "ds-title_dash_tt8l3_39", t = {
5
+ root: g,
6
+ "root--x-large-uppercase": "ds-title_root--x-large-uppercase_tt8l3_4",
7
+ rootXLargeUppercase: i,
8
+ "root--large-uppercase": "ds-title_root--large-uppercase_tt8l3_20",
9
+ rootLargeUppercase: n,
10
+ "root--theme-dark": "ds-title_root--theme-dark_tt8l3_36",
11
+ rootThemeDark: h,
12
+ dash: m
13
+ }, k = ({
14
+ children: o,
15
+ className: s,
16
+ size: e = "x-large",
17
+ tag: a = "h1",
18
+ // Design suggested to set default tag to h1
19
+ theme: l = "light",
20
+ ...p
21
+ }) => {
22
+ const c = a, _ = d(t.root, s, {
23
+ // sizes
24
+ [t.rootXLargeUppercase]: e === "x-large",
25
+ [t.rootLargeUppercase]: e === "large",
26
+ // dark theme
27
+ [t.rootThemeDark]: l === "dark"
28
+ });
29
+ return /* @__PURE__ */ r.jsxs(c, { className: _, ...p, children: [
30
+ o,
31
+ /* @__PURE__ */ r.jsx("span", { className: t.dash, "aria-hidden": "true", children: "ƒ" })
32
+ ] });
33
+ };
34
+ export {
35
+ k as DSTitle
36
+ };
package/title.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from './components/Title/Title'
2
+ export {}
package/toast.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from './components/Toast/Toast'
2
+ export {}
@@ -2,9 +2,9 @@
2
2
  import "./chunks/jsx-runtime.C115EyI4.js";
3
3
  import "./chunks/index.CvOaL64Y.js";
4
4
  import "react";
5
- import "./button.DH0h6uPs.js";
6
- import "./chunks/Icon.C2o2seDb.js";
7
- import { D as s } from "./chunks/Toast.DA_CQ9J-.js";
5
+ import "./button.M4nXjcUn.js";
6
+ import "./chunks/Icon.BCmt_XBG.js";
7
+ import { D as s } from "./chunks/Toast.DyEi2GEP.js";
8
8
  export {
9
9
  s as DSToast
10
10
  };
@@ -2,8 +2,8 @@
2
2
  import { j as g } from "./chunks/jsx-runtime.C115EyI4.js";
3
3
  import { createContext as y, useContext as C, useState as S, useRef as O, useEffect as A, useMemo as j } from "react";
4
4
  import { g as a } from "./chunks/helpers.B1JT5ShS.js";
5
- import { g as E, b as w } from "./chunks/AriaLiveRegions.utils.D2ni4Yrf.js";
6
- import { D as _, s as U } from "./chunks/Toast.DA_CQ9J-.js";
5
+ import { b as E, g as w } from "./chunks/AriaLiveRegions.utils.BGSZafnS.js";
6
+ import { D as _, s as U } from "./chunks/Toast.DyEi2GEP.js";
7
7
  import { h as q } from "./chunks/has-document.r9i9TxKV.js";
8
8
  const Q = () => {
9
9
  if (!E() || !w())
package/toastmanager.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from './components/Toast/ToastManager'
2
+ export {}
package/utils/index.d.ts CHANGED
@@ -2,5 +2,6 @@ export * from './has-window';
2
2
  export * from './helpers';
3
3
  export * from './remove-spaces';
4
4
  export * from './theme';
5
+ export * from './translate';
5
6
  export * from './useBreakpoint';
6
7
  export * from './useIsomorphicLayoutEffect';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Translates a given key using specified translations and dynamic replacements of placeholders like {0} or {1}.
3
+ * Unmatched placeholders in the translation are removed.
4
+ *
5
+ * @param key - The key identifying the text to be translated.
6
+ * @param translations - Object containing translation mappings.
7
+ * @param {string[]} [replacements=[]] - Optional array of replacement strings for placeholders in the translation.
8
+ * @returns {string} The translated string with placeholders replaced by corresponding values in replacements array or removed if no match is found.
9
+ */
10
+ export declare const translate: <T extends Record<string, string>>(key: keyof T, translations: T, replacements?: string[]) => string;
11
+ export declare const translateWithTranslations: <T extends Record<string, string>>(translations: T) => (key: keyof T, replacements?: string[]) => string;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +1,4 @@
1
1
  import { BreakpointCustomizable } from './breakpoint-customizable';
2
-
3
2
  /**
4
3
  * A React hook that consumes a `BreakpointCustomizable` property and returns the value
5
4
  * corresponding to the current breakpoint. If the property is a primitive value, it is
@@ -1,5 +1,4 @@
1
1
  import { useEffect } from 'react';
2
-
3
2
  /**
4
3
  * A custom hook that conditionally uses `useLayoutEffect` or `useEffect` based on the environment.
5
4
  *
@@ -1,4 +1,3 @@
1
-
2
1
  export declare function showPopoverPolyfill(): void;
3
2
  export declare function hidePopoverPolyfill(): void;
4
3
  export declare function showModalPolyfill(): void;
@@ -1,27 +0,0 @@
1
- "use client";
2
- import { j as s } from "./chunks/jsx-runtime.C115EyI4.js";
3
- import { v as r, A as n, a } from "./chunks/AriaLiveRegions.utils.D2ni4Yrf.js";
4
- import './assets/arialiveregions.GsGx2USO.css';const l = "_sr-only_echuy_76", e = {
5
- "sr-only": "_sr-only_echuy_76",
6
- srOnly: l
7
- }, i = () => (r(), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
8
- /* @__PURE__ */ s.jsx(
9
- "span",
10
- {
11
- id: n,
12
- role: "alert",
13
- className: e.srOnly
14
- }
15
- ),
16
- /* @__PURE__ */ s.jsx(
17
- "span",
18
- {
19
- id: a,
20
- role: "status",
21
- className: e.srOnly
22
- }
23
- )
24
- ] }));
25
- export {
26
- i as DSAriaLiveRegions
27
- };
@@ -1 +0,0 @@
1
- ._details_15or5_76{max-width:948px;min-width:288px;border-bottom:1px solid #B1B1B1}._details_15or5_76:only-of-type{border-bottom:none}._details_15or5_76::details-content{block-size:0;overflow:hidden;opacity:0;transition-property:block-size,content-visibility,opacity;transition-behavior:allow-discrete;transition-duration:var(--ds-animation-duration, .25s);transition-timing-function:cubic-bezier(.5,0,1,1)}@media (prefers-reduced-motion: reduce){._details_15or5_76::details-content{transition-duration:0ms}}._details_15or5_76[open]::details-content{transition-timing-function:cubic-bezier(0,0,.5,1);block-size:auto;block-size:calc-size(auto);opacity:1}@media (min-width: 1024px){._details_15or5_76{min-width:213px}}._summary_15or5_112{cursor:pointer;padding-block-start:12px;padding-inline-end:16px;padding-block-end:12px;padding-inline-start:16px;list-style:none}._summary_15or5_112:focus{outline:2px solid;outline-color:#252525;outline-offset:0px}@media screen and (forced-colors: active){._summary_15or5_112:focus{forced-color-adjust:auto;outline-color:Highlight}}@supports selector(:focus-visible){._summary_15or5_112:focus{outline:revert;outline-offset:revert}._summary_15or5_112:focus-visible{outline:2px solid;outline-color:#252525;outline-offset:0px}@media screen and (forced-colors: active){._summary_15or5_112:focus-visible{forced-color-adjust:auto;outline-color:Highlight}}}._summary_15or5_112::-webkit-details-marker{display:none}._summary--utility--m_15or5_153{font-family:STIHL Contraface Digital Text Regular,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-style:normal;font-variant:normal;-webkit-hyphens:manual;hyphens:manual;overflow-wrap:break-word;font-weight:400;font-size:1rem;line-height:1.25;font-size-adjust:.414}._summary_15or5_112{transition:background-color var(--ds-animation-duration, .1s) linear}@media (prefers-reduced-motion: reduce){._summary_15or5_112{transition-duration:0ms}}@media (hover: hover){._summary_15or5_112:hover{background-color:#ededed}}._summary--flush_15or5_178{color:#252525;position:relative;padding-inline-start:0;padding-inline-end:0}@media (hover: hover){._summary--flush_15or5_178:hover:before{background-color:#ededed}}._summary--flush_15or5_178:before{content:"";position:absolute;top:0;right:-16px;bottom:0;left:-16px}._summary--flush_15or5_178:before{transition:background-color var(--ds-animation-duration, .1s) linear,color var(--ds-animation-duration, .1s) linear}@media (prefers-reduced-motion: reduce){._summary--flush_15or5_178:before{transition-duration:0ms}}._summary--flush_15or5_178:focus,._summary--flush_15or5_178:focus-visible{outline:none}._summary--flush_15or5_178:focus:before{outline:2px solid;outline-color:#252525;outline-offset:0px}@media screen and (forced-colors: active){._summary--flush_15or5_178:focus:before{forced-color-adjust:auto;outline-color:Highlight}}@supports selector(:focus-visible){._summary--flush_15or5_178:focus:before{outline:revert;outline-offset:revert}._summary--flush_15or5_178:focus-visible:before{outline:2px solid;outline-color:#252525;outline-offset:0px}@media screen and (forced-colors: active){._summary--flush_15or5_178:focus-visible:before{forced-color-adjust:auto;outline-color:Highlight}}}._summary--small_15or5_238{padding-block-start:8px;padding-block-end:8px}._summary-content-wrapper_15or5_243{display:flex;justify-content:space-between;align-items:center;gap:16px}._summary-content-wrapper--flush_15or5_249{position:relative;z-index:1}._summary-content-wrapper--chevron-left_15or5_253{flex-flow:row-reverse;justify-content:flex-end}._heading-summary-wrapper_15or5_258{flex-grow:1}._hint_15or5_262{font-family:STIHL Contraface Digital Text Regular,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-style:normal;font-variant:normal;-webkit-hyphens:manual;hyphens:manual;overflow-wrap:break-word;font-weight:400;font-size:.875rem;line-height:1.14;font-size-adjust:.414;display:block;margin-block-start:4px}._icon_15or5_277{transform:rotate(0)}._icon_15or5_277{transition:transform var(--ds-animation-duration, .25s) cubic-bezier(.5,0,1,1)}@media (prefers-reduced-motion: reduce){._icon_15or5_277{transition-duration:0ms}}._icon--open_15or5_288{transform:rotate(-180deg)}._icon--open_15or5_288{transition:transform var(--ds-animation-duration, .25s) cubic-bezier(0,0,.5,1)}@media (prefers-reduced-motion: reduce){._icon--open_15or5_288{transition-duration:0ms}}._content-wrapper_15or5_300{padding-block-start:4px;padding-inline-end:16px;padding-block-end:32px;padding-inline-start:16px}._content-wrapper--flush_15or5_306{padding-inline-start:0;padding-inline-end:0}._content-wrapper--small_15or5_310{padding-block-start:4px;padding-block-end:20px}