@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
@@ -1,46 +0,0 @@
1
- "use client";
2
- import { j as p } from "./chunks/jsx-runtime.C115EyI4.js";
3
- import { c as k } from "./chunks/index.CvOaL64Y.js";
4
- import { g as n } from "./chunks/helpers.B1JT5ShS.js";
5
- import "react";
6
- import { DSLink as c } from "./link.DAZNwQ0a.js";
7
- import './assets/skiptocontent.CHcqLS7S.css';const h = "_skip-to-content_cxg2l_76", l = "_skip-to-content--dark_cxg2l_83", s = {
8
- "skip-to-content": "_skip-to-content_cxg2l_76",
9
- skipToContent: h,
10
- "skip-to-content--dark": "_skip-to-content--dark_cxg2l_83",
11
- skipToContentDark: l
12
- }, f = ({
13
- children: e = "Skip to main content",
14
- className: i,
15
- targetElementId: t = "main",
16
- theme: o = "light",
17
- ...r
18
- }) => {
19
- t.startsWith("#") && console.warn(
20
- n(
21
- "DSSkipToContent",
22
- 'The targetElementId should not start with a "#" character. Please provide the id of the element you want to skip to.'
23
- )
24
- ), (t.startsWith("http") || t.startsWith(".")) && console.warn(
25
- n(
26
- "DSSkipToContent",
27
- 'The targetElementId should not start with "http" or ".". Please provide the id of the element you want to skip to.'
28
- )
29
- );
30
- const a = k(s.skipToContent, i, {
31
- [s.skipToContentDark]: o === "dark"
32
- });
33
- return /* @__PURE__ */ p.jsx(
34
- c,
35
- {
36
- ...r,
37
- className: a,
38
- href: `#${t}`,
39
- theme: o,
40
- children: e
41
- }
42
- );
43
- };
44
- export {
45
- f as DSSkipToContent
46
- };
@@ -1,58 +0,0 @@
1
- "use client";
2
- import { j as r } from "./chunks/jsx-runtime.C115EyI4.js";
3
- import { c as n } from "./chunks/index.CvOaL64Y.js";
4
- import { D as _ } from "./chunks/Icon.C2o2seDb.js";
5
- import './assets/spinner.D_Nnf1ZG.css';const m = "_root_11iwi_76", z = "_root-size-small_11iwi_82", c = "_root-size-medium_11iwi_86", S = "_root-size-large_11iwi_90", d = "_root-size-x-large_11iwi_94", g = "_root-size-inherit_11iwi_98", w = "_rotate_11iwi_1", u = "_screenReaderOnly_11iwi_123", e = {
6
- root: m,
7
- "root-size-small": "_root-size-small_11iwi_82",
8
- rootSizeSmall: z,
9
- "root-size-medium": "_root-size-medium_11iwi_86",
10
- rootSizeMedium: c,
11
- "root-size-large": "_root-size-large_11iwi_90",
12
- rootSizeLarge: S,
13
- "root-size-x-large": "_root-size-x-large_11iwi_94",
14
- rootSizeXLarge: d,
15
- "root-size-inherit": "_root-size-inherit_11iwi_98",
16
- rootSizeInherit: g,
17
- rotate: w,
18
- screenReaderOnly: u
19
- }, L = ({
20
- aria: i,
21
- className: t,
22
- size: o = "small",
23
- theme: s = "light",
24
- ...a
25
- }) => {
26
- const l = n(e.root, t, {
27
- [e.rootSizeSmall]: o === "small",
28
- [e.rootSizeMedium]: o === "medium",
29
- [e.rootSizeLarge]: o === "large",
30
- [e.rootSizeXLarge]: o === "x-large",
31
- [e.rootSizeInherit]: o === "inherit"
32
- });
33
- return /* @__PURE__ */ r.jsxs(
34
- "span",
35
- {
36
- className: l,
37
- role: "alert",
38
- "aria-live": "assertive",
39
- "aria-label": (i == null ? void 0 : i["aria-label"]) || void 0,
40
- ...a,
41
- children: [
42
- /* @__PURE__ */ r.jsx("span", { className: e.screenReaderOnly, children: " " }),
43
- /* @__PURE__ */ r.jsx(
44
- _,
45
- {
46
- name: "loading-spinner",
47
- theme: s,
48
- focusable: "false",
49
- "aria-hidden": "true"
50
- }
51
- )
52
- ]
53
- }
54
- );
55
- };
56
- export {
57
- L as DSSpinner
58
- };
@@ -1,23 +0,0 @@
1
- @import 'lib/_a11y.scss';
2
- @import 'lib/_animation.scss';
3
- @import 'lib/_breakpoints.scss';
4
- @import 'lib/_container-query.scss';
5
- @import 'lib/_focus.scss';
6
- @import 'lib/_grid.scss';
7
- @import 'lib/_grid-extended.scss';
8
- @import 'lib/_grid-full.scss';
9
- @import 'lib/_grid-main.scss';
10
- @import 'lib/_grid-narrow.scss';
11
- @import 'lib/_grid-sidebar.scss';
12
- @import 'lib/_grid-sidebar-sidebar.scss';
13
- @import 'lib/_heading.scss';
14
- @import 'lib/_helpers.scss';
15
- @import 'lib/_high-contrast.scss';
16
- @import 'lib/_hover.scss';
17
- @import 'lib/_link.scss';
18
- @import 'lib/_media-query.scss';
19
- @import 'lib/_shadow.scss';
20
- @import 'lib/_spacing.scss';
21
- @import 'lib/_text.scss';
22
- @import 'lib/_theme.scss';
23
- @import 'lib/_transition.scss';
@@ -1,15 +0,0 @@
1
- // Visually hide an element but keep them available to screen reader and other assistive
2
- // technology users.
3
- // https://www.w3.org/WAI/tutorials/forms/labels/#note-on-hiding-elements
4
- @mixin ds-visually-hidden {
5
- border: 0;
6
- clip: rect(0 0 0 0);
7
- width: 1px;
8
- height: 1px;
9
- margin: -1px;
10
- overflow: hidden;
11
- padding: 0;
12
- position: absolute;
13
- text-indent: -999999px;
14
- white-space: nowrap;
15
- }
@@ -1,21 +0,0 @@
1
- $ds-animation-duration-100: var(--ds-animation-duration, 100ms);
2
- $ds-animation-duration-250: var(--ds-animation-duration, 250ms);
3
- $ds-animation-duration-400: var(--ds-animation-duration, 400ms);
4
-
5
- $ds-animation-durations: (
6
- '100': $ds-animation-duration-100,
7
- '250': $ds-animation-duration-250,
8
- '400': $ds-animation-duration-400,
9
- );
10
-
11
- $ds-motion-functional-linear: linear;
12
- $ds-motion-functional-ease-in: cubic-bezier(0.5, 0, 1, 1);
13
- $ds-motion-functional-ease-out: cubic-bezier(0, 0, 0.5, 1);
14
- $ds-motion-functional-ease-in-out: cubic-bezier(0.5, 0, 0.5, 1);
15
-
16
- $ds-animation-easing-functions: (
17
- 'linear': $ds-motion-functional-linear,
18
- 'ease-in': $ds-motion-functional-ease-in,
19
- 'ease-out': $ds-motion-functional-ease-out,
20
- 'ease-in-out': $ds-motion-functional-ease-in-out,
21
- );
@@ -1,16 +0,0 @@
1
- $ds-breakpoint-base: 0;
2
- $ds-breakpoint-s: 320;
3
- $ds-breakpoint-m: 768;
4
- $ds-breakpoint-l: 1024;
5
- $ds-breakpoint-xl: 1536;
6
- // only used in grid, exposed in media query stories for custom control over grid
7
- $ds-breakpoint-xxl: 1668;
8
-
9
- $ds-breakpoints: (
10
- 'base': $ds-breakpoint-base,
11
- 's': $ds-breakpoint-s,
12
- 'm': $ds-breakpoint-m,
13
- 'l': $ds-breakpoint-l,
14
- 'xl': $ds-breakpoint-xl,
15
- 'xxl': $ds-breakpoint-xxl,
16
- );
@@ -1,58 +0,0 @@
1
- @import '_breakpoints.scss';
2
-
3
- @mixin ds-container-query-min($min: null, $container-name: null) {
4
- @if map-has-key($ds-breakpoints, $min) {
5
- $value: #{map-get($ds-breakpoints, $min)}px;
6
- @if $container-name {
7
- @container #{$container-name} (min-width: #{$value}) {
8
- @content;
9
- }
10
- } @else {
11
- @container (min-width: #{$value}) {
12
- @content;
13
- }
14
- }
15
- } @else {
16
- @error "[STIHL Design System] - [ds-container-query-min()]: Passed '#{$min}' breakpoint is not available in ds-container-query-min() mixin.";
17
- }
18
- }
19
-
20
- @mixin ds-container-query-max($max: null, $container-name: null) {
21
- @if map-has-key($ds-breakpoints, $max) {
22
- $value: #{map-get($ds-breakpoints, $max)}px;
23
- @if $container-name {
24
- @container #{$container-name} (width < #{$value}) {
25
- @content;
26
- }
27
- } @else {
28
- @container (width < #{$value}) {
29
- @content;
30
- }
31
- }
32
- } @else {
33
- @error "[STIHL Design System] - [ds-container-query-max()]: Passed '#{$max}' breakpoint is not available in ds-container-query-max() mixin.";
34
- }
35
- }
36
-
37
- @mixin ds-container-query-min-max(
38
- $min: null,
39
- $max: null,
40
- $container-name: null
41
- ) {
42
- @if map-has-key($ds-breakpoints, $min) and map-has-key($ds-breakpoints, $max)
43
- {
44
- $min-value: #{map-get($ds-breakpoints, $min)}px;
45
- $max-value: #{map-get($ds-breakpoints, $max)}px;
46
- @if $container-name {
47
- @container #{$container-name} (min-width: #{$min-value}) and (width < #{$max-value}) {
48
- @content;
49
- }
50
- } @else {
51
- @container (min-width: #{$min-value}) and (width < #{$max-value}) {
52
- @content;
53
- }
54
- }
55
- } @else {
56
- @error "[STIHL Design System] - [ds-container-query-min-max()]: Passed '#{$min}' and/or '#{$max}' breakpoint is not available in ds-container-query-min-max() mixin.";
57
- }
58
- }
@@ -1,11 +0,0 @@
1
- $ds-grid-extended-column-start: extended-start;
2
- $ds-grid-extended-column-end: extended-end;
3
-
4
- @mixin ds-grid-extended-column {
5
- grid-column: $ds-grid-extended-column-start / $ds-grid-extended-column-end;
6
-
7
- @media (min-width: 1668px) {
8
- margin-inline-start: -32px;
9
- margin-inline-end: -32px;
10
- }
11
- }
@@ -1,6 +0,0 @@
1
- $ds-grid-full-column-start: full-start;
2
- $ds-grid-full-column-end: full-end;
3
-
4
- @mixin ds-grid-full-column {
5
- grid-column: $ds-grid-full-column-start / $ds-grid-full-column-end;
6
- }
@@ -1,117 +0,0 @@
1
- $ds-grid-main-column-start: main-start;
2
- $ds-grid-main-column-end: main-end;
3
- $ds-grid-sidebar-main-column-start: $ds-grid-main-column-start;
4
- $ds-grid-sidebar-main-column-end: $ds-grid-main-column-end;
5
-
6
- @mixin ds-grid-main-column {
7
- grid-column: $ds-grid-main-column-start / $ds-grid-main-column-end;
8
- }
9
-
10
- @mixin ds-grid-sidebar-main-column {
11
- @include ds-grid-main-column;
12
- }
13
-
14
- // Half
15
- @mixin ds-grid-span-first-half {
16
- grid-column: $ds-grid-main-column-start / $ds-grid-span-one-half;
17
- }
18
- @mixin ds-grid-span-second-half {
19
- grid-column: $ds-grid-span-one-half / $ds-grid-main-column-end;
20
- }
21
-
22
- @mixin ds-grid-sidebar-span-first-half {
23
- @include ds-grid-span-first-half;
24
- }
25
- @mixin ds-grid-sidebar-span-second-half {
26
- @include ds-grid-span-second-half;
27
- }
28
-
29
- // Third
30
- @mixin ds-grid-span-first-third {
31
- grid-column: $ds-grid-main-column-start / $ds-grid-main-column-end;
32
- @include ds-media-query-min('m') {
33
- grid-column: $ds-grid-main-column-start / $ds-grid-span-one-third;
34
- }
35
- }
36
- @mixin ds-grid-span-one-third {
37
- grid-column: $ds-grid-main-column-start / $ds-grid-main-column-end;
38
- @include ds-media-query-min('m') {
39
- grid-column: $ds-grid-span-one-third;
40
- }
41
- }
42
-
43
- @mixin ds-grid-sidebar-span-first-third {
44
- @include ds-grid-span-first-third;
45
- }
46
- @mixin ds-grid-sidebar-span-one-third {
47
- @include ds-grid-span-one-third;
48
- }
49
-
50
- // Two Thirds
51
- @mixin ds-grid-span-first-two-thirds {
52
- grid-column: $ds-grid-main-column-start / $ds-grid-main-column-end;
53
- @include ds-media-query-min('m') {
54
- grid-column: $ds-grid-main-column-start / $ds-grid-span-two-thirds;
55
- }
56
- }
57
- @mixin ds-grid-span-two-thirds {
58
- grid-column: $ds-grid-main-column-start / $ds-grid-main-column-end;
59
- @include ds-media-query-min('m') {
60
- grid-column: $ds-grid-span-two-thirds / $ds-grid-main-column-end;
61
- }
62
- }
63
-
64
- @mixin ds-grid-sidebar-span-first-two-thirds {
65
- @include ds-grid-span-first-two-thirds;
66
- }
67
- @mixin ds-grid-sidebar-span-two-thirds {
68
- @include ds-grid-span-two-thirds;
69
- }
70
-
71
- // Quarter
72
- @mixin ds-grid-span-first-quarter {
73
- grid-column: $ds-grid-main-column-start / $ds-grid-span-one-quarter;
74
- }
75
- @mixin ds-grid-span-one-quarter {
76
- grid-column: $ds-grid-span-one-quarter;
77
- // one quarter on viewports smaller than xl should behave like "first" quarter by starting a new row on "overflow":
78
- // first-quarter one-quarter
79
- // one-quarter one-quarter
80
- &:nth-of-type(odd) {
81
- grid-column: $ds-grid-main-column-start / $ds-grid-span-one-quarter;
82
- }
83
- @include ds-media-query-min('l') {
84
- &:nth-of-type(odd) {
85
- grid-column: $ds-grid-span-one-quarter;
86
- }
87
- }
88
- }
89
-
90
- @mixin ds-grid-sidebar-span-first-quarter {
91
- @include ds-grid-span-first-quarter;
92
- }
93
-
94
- @mixin ds-grid-sidebar-span-one-quarter {
95
- grid-column: $ds-grid-span-one-quarter;
96
- // one quarter on viewports smaller than xl should behave like "first" quarter by starting a new row on "overflow":
97
- // first-quarter one-quarter
98
- // one-quarter one-quarter
99
- &:nth-of-type(odd) {
100
- grid-column: $ds-grid-main-column-start / $ds-grid-span-one-quarter;
101
- }
102
- @include ds-media-query-min('xl') {
103
- &:nth-of-type(odd) {
104
- grid-column: $ds-grid-span-one-quarter;
105
- }
106
- }
107
- }
108
-
109
- $ds-grid-span-one-half: var(--ds-grid-span-one-half);
110
- $ds-grid-span-one-third: var(--ds-grid-span-one-third);
111
- $ds-grid-span-two-thirds: var(--ds-grid-span-two-thirds);
112
- $ds-grid-span-one-quarter: var(--ds-grid-span-one-quarter);
113
-
114
- $ds-grid-sidebar-span-one-half: $ds-grid-span-one-half;
115
- $ds-grid-sidebar-span-one-third: $ds-grid-span-one-third;
116
- $ds-grid-sidebar-span-two-thirds: $ds-grid-span-two-thirds;
117
- $ds-grid-sidebar-span-one-quarter: $ds-grid-span-one-quarter;
@@ -1,16 +0,0 @@
1
- // The max-width of the narrow content center/left area in our grid.
2
- $ds-grid-narrow-max-width: 948px;
3
- $ds-grid-narrow-left-column-start: narrow-left-start;
4
- $ds-grid-narrow-left-column-end: narrow-left-end;
5
- $ds-grid-narrow-center-column-start: narrow-center-start;
6
- $ds-grid-narrow-center-column-end: narrow-center-end;
7
-
8
- @mixin ds-grid-narrow-left-column {
9
- grid-column: $ds-grid-narrow-left-column-start /
10
- $ds-grid-narrow-left-column-end;
11
- }
12
-
13
- @mixin ds-grid-narrow-center-column {
14
- grid-column: $ds-grid-narrow-center-column-start /
15
- $ds-grid-narrow-center-column-end;
16
- }
@@ -1,50 +0,0 @@
1
- $ds-grid-sidebar-sidebar-1-column-start: sidebar-1-start;
2
- $ds-grid-sidebar-sidebar-1-column-end: sidebar-1-end;
3
- $ds-grid-sidebar-sidebar-2-column-start: sidebar-2-start;
4
- $ds-grid-sidebar-sidebar-2-column-end: sidebar-2-end;
5
-
6
- // Sidebar 1
7
- @mixin ds-grid-sidebar-sidebar-1($is-open: false) {
8
- display: none;
9
- @include ds-media-query-min('l') {
10
- display: unset;
11
- // This is a hack for implicit grid spanning a row from 1 till -1
12
- // Using it leads us to not being able to use the row-gap property and requires us to use margins instead
13
- // https://stackoverflow.com/a/49076465/2346207
14
- // https://stackoverflow.com/a/56876772/2346207
15
- grid-row: span 300;
16
- grid-column: $ds-grid-sidebar-sidebar-1-column-start /
17
- $ds-grid-sidebar-sidebar-1-column-end;
18
- margin-block-end: 0;
19
- @if ($is-open == true) {
20
- width: 264px;
21
- max-width: 264px;
22
- } @else {
23
- width: 64px;
24
- max-width: 64px;
25
- }
26
- }
27
- }
28
- // Sidebar 2
29
- @mixin ds-grid-sidebar-sidebar-2($is-open: false) {
30
- display: none;
31
- @include ds-media-query-min('l') {
32
- // This is a hack for implicit grid spanning a row from 1 till -1
33
- // Using it leads us to not being able to use the row-gap property and requires us to use margins instead
34
- // https://stackoverflow.com/a/49076465/2346207
35
- // https://stackoverflow.com/a/56876772/2346207
36
- grid-row: span 300;
37
- margin-block-end: 0;
38
- @if ($is-open == true) {
39
- grid-column: $ds-grid-sidebar-sidebar-2-column-start /
40
- $ds-grid-sidebar-sidebar-2-column-end;
41
- display: unset;
42
- width: 320px;
43
- max-width: 320px;
44
- margin-inline-start: -24px;
45
- }
46
- }
47
- @media (min-width: 1535px) {
48
- margin-inline-start: -32px;
49
- }
50
- }
@@ -1,107 +0,0 @@
1
- // Base mixin to define common styles
2
- @mixin base-heading($fontFamily, $fontSize, $lineHeight) {
3
- font-family: #{unquote(
4
- $fontFamily +
5
- ', -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif'
6
- )};
7
- font-style: normal;
8
- font-variant: normal;
9
- font-weight: normal;
10
- font-size: $fontSize;
11
- line-height: $lineHeight;
12
- }
13
-
14
- // Mixin for bold title
15
- @mixin base-heading-bold($fontFamily, $fontSize, $lineHeight) {
16
- @include base-heading($fontFamily, $fontSize, $lineHeight);
17
-
18
- /* x-height 426 https://vertical-metrics.netlify.app/ */
19
- font-size-adjust: 0.426;
20
- }
21
-
22
- // Mixin for display title text
23
- @mixin base-heading-display-title($fontFamily, $fontSize, $lineHeight) {
24
- @include base-heading($fontFamily, $fontSize, $lineHeight);
25
- /* cap-height 680 https://vertical-metrics.netlify.app/*/
26
- font-size-adjust: cap-height 0.68;
27
- }
28
-
29
- @mixin responsive-heading($min, $fontSize, $lineHeight) {
30
- @include ds-media-query-min($min: $min) {
31
- font-size: $fontSize;
32
- line-height: $lineHeight;
33
- }
34
- }
35
-
36
- // Mixins for specific heading sizes
37
- // XL
38
- @mixin ds-heading-x-large {
39
- @include base-heading-bold(
40
- 'STIHL Contraface Digital Text Bold',
41
- 1.625rem,
42
- 1.2
43
- );
44
- @include responsive-heading('l', 1.875rem, 1.25);
45
- }
46
-
47
- @mixin ds-heading-x-large-uppercase {
48
- @include base-heading-display-title(
49
- 'STIHL Contraface Digital Display Title',
50
- 1.625rem,
51
- 1.2
52
- );
53
- text-transform: uppercase;
54
- @include responsive-heading('l', 1.875rem, 1.25);
55
- }
56
-
57
- // Large
58
- @mixin ds-heading-large {
59
- @include base-heading-bold(
60
- 'STIHL Contraface Digital Text Bold',
61
- 1.375rem,
62
- 1.25
63
- );
64
- @include responsive-heading('l', 1.625rem, 1.2);
65
- }
66
-
67
- @mixin ds-heading-large-uppercase {
68
- @include base-heading-display-title(
69
- 'STIHL Contraface Digital Display Title',
70
- 1.375rem,
71
- 1.25
72
- );
73
- text-transform: uppercase;
74
- @include responsive-heading('l', 1.625rem, 1.2);
75
- }
76
-
77
- // Medium
78
- @mixin ds-heading-medium {
79
- @include base-heading-bold(
80
- 'STIHL Contraface Digital Text Bold',
81
- 1.25rem,
82
- 1.2
83
- );
84
- }
85
-
86
- @mixin ds-heading-medium-uppercase {
87
- @include base-heading-display-title(
88
- 'STIHL Contraface Digital Display Title',
89
- 1.25rem,
90
- 1.2
91
- );
92
- text-transform: uppercase;
93
- }
94
-
95
- // Small
96
- @mixin ds-heading-small {
97
- @include base-heading-bold('STIHL Contraface Digital Text Bold', 1rem, 1.5);
98
- }
99
-
100
- @mixin ds-heading-small-uppercase {
101
- @include base-heading-display-title(
102
- 'STIHL Contraface Digital Display Title',
103
- 1rem,
104
- 1.5
105
- );
106
- text-transform: uppercase;
107
- }
@@ -1,15 +0,0 @@
1
- @function px-to-rem($pixels, $base-font-size: 16px) {
2
- @return #{calc($pixels / $base-font-size)}rem;
3
- }
4
-
5
- // Encode a color to be used in a data url.
6
- @function urlEncodeHexColor($string) {
7
- @if type-of($string) == 'color' and str-index(#{$string}, '#') == 1 {
8
- $hex: str-slice(ie-hex-str($string), 4);
9
- $string: unquote('#{$hex}');
10
-
11
- @return '%23' + $string;
12
- }
13
-
14
- @return $string;
15
- }
@@ -1,24 +0,0 @@
1
- /**
2
- * This mixin provides a utility to wrap styles within a media query specifically
3
- * targeting devices that have forced-colors active and thus are in high-contrast mode.
4
- *
5
- * You can use the following keywords to set specific colors for elements in high contrast mode:
6
- * @example
7
- * ```markdown
8
- * | Content | Keyword |
9
- * |--------------------------|---------------|
10
- * | Text | CanvasText |
11
- * | Hyperlinks | LinkText |
12
- * | Disabled Text | GrayText |
13
- * | Selected Text, foreground| HighlightText |
14
- * | Selected Text, background| Highlight |
15
- * | Buttons, foreground | ButtonText |
16
- * | Buttons, background | ButtonFace |
17
- * | Backgrounds | Canvas |
18
- * ```
19
- */
20
- @mixin high-contrast-media-query {
21
- @media screen and (forced-colors: active) {
22
- @content;
23
- }
24
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * This mixin provides a utility to wrap styles within a media query specifically
3
- * targeting devices that support hover. It ensures that hover styles are
4
- * applied only to non-touch (hover capable) devices.
5
- */
6
- @mixin hover-media-query {
7
- @media (hover: hover) {
8
- @content;
9
- }
10
- }