@stihl-design-system/components 1.0.0-RC.0

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 (399) hide show
  1. package/LICENSE.md +42 -0
  2. package/README.md +56 -0
  3. package/apple-icon.png +0 -0
  4. package/assets/Asterisk.582f2067.css +1 -0
  5. package/assets/Button.684e8bda.css +1 -0
  6. package/assets/ButtonRound.ca8748cf.css +1 -0
  7. package/assets/Checkbox.84cf6398.css +1 -0
  8. package/assets/CustomReactSelect.d89ccccb.css +1 -0
  9. package/assets/Fieldset.5297efb8.css +1 -0
  10. package/assets/FloatingActionButton.de295f5d.css +1 -0
  11. package/assets/Heading.32278621.css +1 -0
  12. package/assets/Icon.8890ee9a.css +1 -0
  13. package/assets/Input.2c508b2f.css +1 -0
  14. package/assets/InputPassword.a534f047.css +1 -0
  15. package/assets/InputSearch.8f986307.css +1 -0
  16. package/assets/InputStepper.52fb45ca.css +1 -0
  17. package/assets/Link.03deeca0.css +1 -0
  18. package/assets/LinkStandalone.7e23a8ac.css +1 -0
  19. package/assets/Logo.09e48e82.css +1 -0
  20. package/assets/OptionCheckbox.9c20f6f1.css +1 -0
  21. package/assets/Radio.be8f06f5.css +1 -0
  22. package/assets/RadioGroup.8b55ee38.css +1 -0
  23. package/assets/Select.b2423b5f.css +1 -0
  24. package/assets/Spinner.af45d460.css +1 -0
  25. package/assets/Switch.f3ab20de.css +1 -0
  26. package/assets/SystemFeedback.f4421d60.css +1 -0
  27. package/assets/Text.4756effe.css +1 -0
  28. package/assets/Textarea.eecf04b3.css +1 -0
  29. package/assets/Title.60d50d3e.css +1 -0
  30. package/asterisk.91abccec.js +8 -0
  31. package/asterisk.d.ts +1 -0
  32. package/button.89b2675b.js +135 -0
  33. package/button.d.ts +1 -0
  34. package/buttonround.c60c8034.js +118 -0
  35. package/buttonround.d.ts +1 -0
  36. package/checkbox.7d414047.js +112 -0
  37. package/checkbox.d.ts +1 -0
  38. package/checkboxgroup.d.ts +1 -0
  39. package/checkboxgroup.e9e25471.js +78 -0
  40. package/chunks/360.3f3132d9.js +11 -0
  41. package/chunks/CustomReactSelect.9d0a378a.js +5011 -0
  42. package/chunks/Input.utils.f8f3286f.js +106 -0
  43. package/chunks/Link.module.b8230547.js +37 -0
  44. package/chunks/RadioGroup.module.59ca486a.js +11 -0
  45. package/chunks/academic-cap.a6849ffc.js +11 -0
  46. package/chunks/alarm-clock.542230f3.js +11 -0
  47. package/chunks/arrow-clockwise.0496f663.js +11 -0
  48. package/chunks/arrow-counterclockwise.635a0130.js +11 -0
  49. package/chunks/arrow-down-line.0976611e.js +11 -0
  50. package/chunks/arrow-down.9780d975.js +11 -0
  51. package/chunks/arrow-edge.3288acdd.js +11 -0
  52. package/chunks/arrow-left.ace9c808.js +11 -0
  53. package/chunks/arrow-out.0499f39e.js +11 -0
  54. package/chunks/arrow-outline-left.efc33275.js +11 -0
  55. package/chunks/arrow-right.133feef2.js +11 -0
  56. package/chunks/arrow-up-arrow-down.b612e9b1.js +11 -0
  57. package/chunks/arrow-up.3be6430a.js +11 -0
  58. package/chunks/at.6279d12b.js +11 -0
  59. package/chunks/barcode-scanner.0a4a314d.js +11 -0
  60. package/chunks/battery.e1249ee1.js +11 -0
  61. package/chunks/bell.87fe4f0b.js +11 -0
  62. package/chunks/bin-open.be4290d8.js +11 -0
  63. package/chunks/bin.b36466f3.js +11 -0
  64. package/chunks/bluetooth.54b89b90.js +11 -0
  65. package/chunks/bookmark.4d5ce4c3.js +11 -0
  66. package/chunks/burger.1301d91e.js +11 -0
  67. package/chunks/calendar.ba39a664.js +11 -0
  68. package/chunks/camera.3bed4f3b.js +11 -0
  69. package/chunks/cart-check.9fb6abdb.js +11 -0
  70. package/chunks/cart-plus.fd5c4674.js +11 -0
  71. package/chunks/cart.7516d35c.js +11 -0
  72. package/chunks/catalog.bd0c7830.js +11 -0
  73. package/chunks/certificate.1639c28e.js +11 -0
  74. package/chunks/chain-link.45025ed0.js +11 -0
  75. package/chunks/chainsaw.56d43a9f.js +11 -0
  76. package/chunks/check.a08beeae.js +11 -0
  77. package/chunks/chevron-down.80b0dc85.js +11 -0
  78. package/chunks/chevron-left.f5feade0.js +11 -0
  79. package/chunks/chevron-line-left.17b172d1.js +11 -0
  80. package/chunks/chevron-line-right.7cd234b7.js +11 -0
  81. package/chunks/chevron-right.259bc1a3.js +11 -0
  82. package/chunks/chevron-up.d1335850.js +11 -0
  83. package/chunks/circle-check-colored.98e13ab9.js +11 -0
  84. package/chunks/circle-check-inverted.db29ab06.js +11 -0
  85. package/chunks/circle-info-colored.8da47e36.js +11 -0
  86. package/chunks/circle-info-inverted.0ed118fb.js +11 -0
  87. package/chunks/circle-pause.55300d1b.js +11 -0
  88. package/chunks/circle-stroke.203dd7aa.js +11 -0
  89. package/chunks/circle.33ec82eb.js +11 -0
  90. package/chunks/clock.3014a102.js +11 -0
  91. package/chunks/coffee-cup.98d6531f.js +11 -0
  92. package/chunks/compare.c76b221b.js +11 -0
  93. package/chunks/connected-box-mobile.9cd742dd.js +11 -0
  94. package/chunks/connected-box-stationary.191a3ed0.js +11 -0
  95. package/chunks/connected-box.fe21c39b.js +11 -0
  96. package/chunks/cross.fe709ee7.js +11 -0
  97. package/chunks/diamond-exclamationmark-colored.bf3ffccf.js +11 -0
  98. package/chunks/diamond-exclamationmark-inverted.b5648587.js +11 -0
  99. package/chunks/diamond.e962c289.js +11 -0
  100. package/chunks/diskette.04733444.js +11 -0
  101. package/chunks/distance.9e6b56ff.js +11 -0
  102. package/chunks/dots-connected.9869fae1.js +11 -0
  103. package/chunks/download-complete.0b84a7cc.js +11 -0
  104. package/chunks/envelope-open.3c3fd714.js +11 -0
  105. package/chunks/envelope.5c9ff834.js +11 -0
  106. package/chunks/exclamationmark.92afe58f.js +11 -0
  107. package/chunks/exit.bde46887.js +11 -0
  108. package/chunks/eye-closed.0b517bb7.js +11 -0
  109. package/chunks/eye.8f4b311b.js +11 -0
  110. package/chunks/facebook.4a040606.js +11 -0
  111. package/chunks/filter.dee66683.js +11 -0
  112. package/chunks/finger-double-arrow.9cd4c623.js +11 -0
  113. package/chunks/flash.15646b5e.js +11 -0
  114. package/chunks/fullscreen.fdd976fe.js +11 -0
  115. package/chunks/gear.1f5f6fe9.js +11 -0
  116. package/chunks/globe.7f419498.js +11 -0
  117. package/chunks/grid.2c1cdc21.js +11 -0
  118. package/chunks/guidance.63bebf3e.js +11 -0
  119. package/chunks/haircross.0ac15319.js +11 -0
  120. package/chunks/hanger.edc848f4.js +11 -0
  121. package/chunks/headphones.a023699e.js +11 -0
  122. package/chunks/heart.d4440641.js +11 -0
  123. package/chunks/helpers.ea3ca41a.js +7 -0
  124. package/chunks/hexagon-arrow-clockwise.98e9b555.js +11 -0
  125. package/chunks/horizontal-ellipsis.84419429.js +11 -0
  126. package/chunks/house.70059642.js +11 -0
  127. package/chunks/imow.3374e620.js +11 -0
  128. package/chunks/index.8021d3e0.js +45 -0
  129. package/chunks/info.1787448e.js +11 -0
  130. package/chunks/instagram.e12dd682.js +11 -0
  131. package/chunks/jsx-runtime.5c071667.js +632 -0
  132. package/chunks/leave-fullscreen.def46043.js +11 -0
  133. package/chunks/lightbulb.b73d3ebf.js +11 -0
  134. package/chunks/linkedin.ce0c68cb.js +11 -0
  135. package/chunks/list-three-rows.ef44c7ef.js +11 -0
  136. package/chunks/list-two-rows.5ed8f1af.js +11 -0
  137. package/chunks/loading-spinner.8293421e.js +11 -0
  138. package/chunks/lock.3cbc8ced.js +11 -0
  139. package/chunks/magnifying-glass-minus.b0f906e5.js +11 -0
  140. package/chunks/magnifying-glass-plus.6ffc69c5.js +11 -0
  141. package/chunks/magnifying-glass.c297e41f.js +11 -0
  142. package/chunks/map.c96b1dcd.js +11 -0
  143. package/chunks/minus.7f6676e8.js +11 -0
  144. package/chunks/mobile.416ee5b0.js +11 -0
  145. package/chunks/nine-squares.34eeb0d4.js +11 -0
  146. package/chunks/note-check.aaf92ef9.js +11 -0
  147. package/chunks/note-plus.e7ab1b93.js +11 -0
  148. package/chunks/note.cc96375c.js +11 -0
  149. package/chunks/number-input.076fcf63.js +11 -0
  150. package/chunks/paperclip.e8831256.js +11 -0
  151. package/chunks/parcel.75534dbd.js +11 -0
  152. package/chunks/pause.901567cf.js +11 -0
  153. package/chunks/pdf.92c1781a.js +11 -0
  154. package/chunks/pen.ecbcb50d.js +11 -0
  155. package/chunks/percent.4b7fa587.js +11 -0
  156. package/chunks/petrol.41999bec.js +11 -0
  157. package/chunks/phone.3c23c041.js +11 -0
  158. package/chunks/pin-s.a5519070.js +11 -0
  159. package/chunks/pin.1137362d.js +11 -0
  160. package/chunks/pinterest.88763b51.js +11 -0
  161. package/chunks/placeholder.d6fdaf8f.js +11 -0
  162. package/chunks/play.dd0f1d8c.js +11 -0
  163. package/chunks/plug.00f114c4.js +11 -0
  164. package/chunks/plus.42721ebf.js +11 -0
  165. package/chunks/printer.5bb7ee0d.js +11 -0
  166. package/chunks/prohibition-sign.af5616b3.js +11 -0
  167. package/chunks/questionmark.db94a06d.js +11 -0
  168. package/chunks/security.2be491e3.js +11 -0
  169. package/chunks/share.ddae7aef.js +11 -0
  170. package/chunks/shirt.135d58c1.js +11 -0
  171. package/chunks/shop.f120426b.js +11 -0
  172. package/chunks/sound-off.c6f5ed43.js +11 -0
  173. package/chunks/sound-on.212c36bc.js +11 -0
  174. package/chunks/speechbubble.9428546e.js +11 -0
  175. package/chunks/speechbubbles.65cb946e.js +11 -0
  176. package/chunks/square.452f505f.js +11 -0
  177. package/chunks/star-half.1458bc5b.js +11 -0
  178. package/chunks/star.fab17456.js +11 -0
  179. package/chunks/tag.4d730d72.js +11 -0
  180. package/chunks/thumbs-down.cbf6e4ec.js +11 -0
  181. package/chunks/thumbs-up.435754e1.js +11 -0
  182. package/chunks/triangle-exclamationmark-colored.94025893.js +11 -0
  183. package/chunks/triangle-exclamationmark-inverted.bc4eed15.js +11 -0
  184. package/chunks/triangle.bff84ddf.js +11 -0
  185. package/chunks/truck.a904d6d3.js +11 -0
  186. package/chunks/two-people-screen.3e509922.js +11 -0
  187. package/chunks/two-sheets.d1cfef0f.js +11 -0
  188. package/chunks/upload.7f1850a3.js +11 -0
  189. package/chunks/useBreakpoint.6c1b06c2.js +48 -0
  190. package/chunks/user.bf5b30a5.js +11 -0
  191. package/chunks/vertical-ellipsis.1cac00e5.js +11 -0
  192. package/chunks/wc.9d108bd0.js +11 -0
  193. package/chunks/wifi-1bar.b6fc33aa.js +11 -0
  194. package/chunks/wifi-2bars.27e9da59.js +11 -0
  195. package/chunks/wifi-off.e5daf3a9.js +11 -0
  196. package/chunks/wifi.40bb915d.js +11 -0
  197. package/chunks/wind-rose.27fa658a.js +11 -0
  198. package/chunks/wrench.69493ef3.js +11 -0
  199. package/chunks/x.d9da4202.js +11 -0
  200. package/chunks/xing.e17c1a24.js +11 -0
  201. package/chunks/youtube.dbf50787.js +11 -0
  202. package/combobox.d.ts +1 -0
  203. package/combobox.f98a4472.js +45 -0
  204. package/components/Asterisk/Asterisk.d.ts +2 -0
  205. package/components/Button/Button.d.ts +45 -0
  206. package/components/Button/Button.test.d.ts +1 -0
  207. package/components/Button/Button.utils.d.ts +6 -0
  208. package/components/ButtonRound/ButtonRound.d.ts +11 -0
  209. package/components/ButtonRound/ButtonRound.test.d.ts +1 -0
  210. package/components/ButtonRound/ButtonRound.utils.d.ts +2 -0
  211. package/components/Checkbox/Checkbox.d.ts +26 -0
  212. package/components/Checkbox/Checkbox.test.d.ts +1 -0
  213. package/components/CheckboxGroup/CheckboxGroup.d.ts +41 -0
  214. package/components/CheckboxGroup/CheckboxGroup.test.d.ts +1 -0
  215. package/components/CheckboxGroup/CheckboxGroup.utils.d.ts +4 -0
  216. package/components/Combobox/Combobox.d.ts +18 -0
  217. package/components/Combobox/Combobox.test.d.ts +1 -0
  218. package/components/Combobox/Combobox.utils.d.ts +57 -0
  219. package/components/Combobox/Combobox.utils.test.d.ts +1 -0
  220. package/components/CustomReactSelect/CustomReactSelect.d.ts +60 -0
  221. package/components/CustomReactSelect/CustomReactSelect.utils.d.ts +15 -0
  222. package/components/CustomReactSelect/CustomReactSelect.utils.test.d.ts +1 -0
  223. package/components/CustomReactSelect/OptionCheckbox.d.ts +13 -0
  224. package/components/Fieldset/Fieldset.d.ts +35 -0
  225. package/components/Fieldset/Fieldset.test.d.ts +1 -0
  226. package/components/Fieldset/Fieldset.utils.d.ts +10 -0
  227. package/components/FloatingActionButton/FloatingActionButton.d.ts +13 -0
  228. package/components/FloatingActionButton/FloatingActionButton.test.d.ts +1 -0
  229. package/components/Heading/Heading.d.ts +18 -0
  230. package/components/Heading/Heading.test.d.ts +1 -0
  231. package/components/Heading/Heading.utils.d.ts +4 -0
  232. package/components/Icon/Icon.d.ts +23 -0
  233. package/components/Icon/Icon.test.d.ts +1 -0
  234. package/components/Icon/Icon.utils.d.ts +12 -0
  235. package/components/Input/Input.d.ts +54 -0
  236. package/components/Input/Input.test.d.ts +1 -0
  237. package/components/Input/Input.utils.d.ts +59 -0
  238. package/components/Input/Input.utils.test.d.ts +1 -0
  239. package/components/InputPassword/InputPassword.d.ts +41 -0
  240. package/components/InputPassword/InputPassword.test.d.ts +1 -0
  241. package/components/InputPassword/InputPassword.utils.d.ts +12 -0
  242. package/components/InputPassword/InputPassword.utils.test.d.ts +1 -0
  243. package/components/InputSearch/InputSearch.d.ts +44 -0
  244. package/components/InputSearch/InputSearch.test.d.ts +1 -0
  245. package/components/InputSearch/InputSearch.utils.d.ts +23 -0
  246. package/components/InputSearch/InputSearch.utils.test.d.ts +1 -0
  247. package/components/InputStepper/InputStepper.d.ts +52 -0
  248. package/components/InputStepper/InputStepper.test.d.ts +1 -0
  249. package/components/InputStepper/InputStepper.utils.d.ts +12 -0
  250. package/components/InputStepper/InputStepper.utils.test.d.ts +1 -0
  251. package/components/Link/Link.d.ts +50 -0
  252. package/components/Link/Link.test.d.ts +1 -0
  253. package/components/Link/Link.utils.d.ts +8 -0
  254. package/components/LinkStandalone/LinkStandalone.d.ts +15 -0
  255. package/components/LinkStandalone/LinkStandalone.test.d.ts +1 -0
  256. package/components/LinkStandalone/LinkStandalone.utils.d.ts +2 -0
  257. package/components/Logo/Logo.d.ts +21 -0
  258. package/components/Logo/Logo.utils.d.ts +3 -0
  259. package/components/Radio/Radio.d.ts +27 -0
  260. package/components/Radio/Radio.test.d.ts +1 -0
  261. package/components/RadioGroup/RadioGroup.d.ts +56 -0
  262. package/components/RadioGroup/RadioGroup.test.d.ts +1 -0
  263. package/components/RadioGroup/RadioGroup.utils.d.ts +6 -0
  264. package/components/Select/Select.d.ts +43 -0
  265. package/components/Select/Select.test.d.ts +1 -0
  266. package/components/Select/Select.utils.d.ts +35 -0
  267. package/components/Select/Select.utils.test.d.ts +1 -0
  268. package/components/Spinner/Spinner.d.ts +14 -0
  269. package/components/Spinner/Spinner.test.d.ts +1 -0
  270. package/components/Spinner/Spinner.utils.d.ts +3 -0
  271. package/components/Switch/Switch.d.ts +29 -0
  272. package/components/Switch/Switch.test.d.ts +1 -0
  273. package/components/Switch/Switch.utils.d.ts +2 -0
  274. package/components/SystemFeedback/SystemFeedback.d.ts +9 -0
  275. package/components/SystemFeedback/SystemFeedback.test.d.ts +1 -0
  276. package/components/SystemFeedback/SystemFeedback.utils.d.ts +8 -0
  277. package/components/Text/Text.d.ts +21 -0
  278. package/components/Text/Text.test.d.ts +1 -0
  279. package/components/Text/Text.utils.d.ts +6 -0
  280. package/components/Textarea/Textarea.d.ts +42 -0
  281. package/components/Textarea/Textarea.test.d.ts +1 -0
  282. package/components/Textarea/Textarea.utils.d.ts +13 -0
  283. package/components/Textarea/Textarea.utils.test.d.ts +1 -0
  284. package/components/Title/Title.d.ts +20 -0
  285. package/components/Title/Title.test.d.ts +1 -0
  286. package/components/Title/Title.utils.d.ts +3 -0
  287. package/customreactselect.a53f9932.js +13 -0
  288. package/customreactselect.d.ts +1 -0
  289. package/favicon.ico +0 -0
  290. package/fieldset.d.ts +1 -0
  291. package/fieldset.fb7b7e49.js +98 -0
  292. package/floatingactionbutton.281b5465.js +87 -0
  293. package/floatingactionbutton.d.ts +1 -0
  294. package/heading.cb7698f4.js +44 -0
  295. package/heading.d.ts +1 -0
  296. package/icon-192.png +0 -0
  297. package/icon-512.png +0 -0
  298. package/icon.b4211784.js +215 -0
  299. package/icon.d.ts +1 -0
  300. package/icon.svg +1 -0
  301. package/index.d.ts +23 -0
  302. package/index.es.js +49 -0
  303. package/input.abb902e3.js +228 -0
  304. package/input.d.ts +1 -0
  305. package/inputpassword.11c12c66.js +139 -0
  306. package/inputpassword.d.ts +1 -0
  307. package/inputsearch.0c88e71a.js +188 -0
  308. package/inputsearch.d.ts +1 -0
  309. package/inputstepper.b74dac4d.js +284 -0
  310. package/inputstepper.d.ts +1 -0
  311. package/link.cd3720d1.js +84 -0
  312. package/link.d.ts +1 -0
  313. package/linkstandalone.26b52de0.js +80 -0
  314. package/linkstandalone.d.ts +1 -0
  315. package/logo.d.ts +1 -0
  316. package/logo.e6576fe3.js +68 -0
  317. package/manifest.json +6 -0
  318. package/manifest.webmanifest +6 -0
  319. package/optioncheckbox.7195f001.js +43 -0
  320. package/optioncheckbox.d.ts +1 -0
  321. package/package.json +125 -0
  322. package/partials/apple-icon.png +0 -0
  323. package/partials/copyAssets.js +84 -0
  324. package/partials/favicon.ico +0 -0
  325. package/partials/icon-192.png +0 -0
  326. package/partials/icon-512.png +0 -0
  327. package/partials/icon.svg +1 -0
  328. package/partials/index.d.ts +2 -0
  329. package/partials/index.js +2167 -0
  330. package/partials/lib/partials.d.ts +17 -0
  331. package/partials/manifest.json +6 -0
  332. package/partials/manifest.webmanifest +6 -0
  333. package/partials/shared.d.ts +2 -0
  334. package/radio.1b205d64.js +79 -0
  335. package/radio.d.ts +1 -0
  336. package/radiogroup.6a22fe96.js +100 -0
  337. package/radiogroup.d.ts +1 -0
  338. package/react.svg +1 -0
  339. package/select.2ff31eab.js +188 -0
  340. package/select.d.ts +1 -0
  341. package/spinner.d.ts +1 -0
  342. package/spinner.ee015469.js +58 -0
  343. package/styles/fonts/STIHLContrafaceDisplayTitling.woff +0 -0
  344. package/styles/fonts/STIHLContrafaceDisplayTitling.woff2 +0 -0
  345. package/styles/fonts/STIHLContrafaceText-Bold.woff +0 -0
  346. package/styles/fonts/STIHLContrafaceText-Bold.woff2 +0 -0
  347. package/styles/fonts/STIHLContrafaceText.woff +0 -0
  348. package/styles/fonts/STIHLContrafaceText.woff2 +0 -0
  349. package/styles/fonts/font-face.min.css +1 -0
  350. package/styles/fonts/index.es.js +1 -0
  351. package/styles/scss/_index.scss +21 -0
  352. package/styles/scss/lib/_a11y.scss +15 -0
  353. package/styles/scss/lib/_animation.scss +6 -0
  354. package/styles/scss/lib/_breakpoints.scss +16 -0
  355. package/styles/scss/lib/_container-query.scss +58 -0
  356. package/styles/scss/lib/_focus.scss +61 -0
  357. package/styles/scss/lib/_grid-extended.scss +11 -0
  358. package/styles/scss/lib/_grid-full.scss +6 -0
  359. package/styles/scss/lib/_grid-main.scss +117 -0
  360. package/styles/scss/lib/_grid-narrow.scss +14 -0
  361. package/styles/scss/lib/_grid-sidebar-sidebar.scss +48 -0
  362. package/styles/scss/lib/_grid-sidebar.scss +174 -0
  363. package/styles/scss/lib/_grid.scss +86 -0
  364. package/styles/scss/lib/_heading.scss +45 -0
  365. package/styles/scss/lib/_helpers.scss +3 -0
  366. package/styles/scss/lib/_hover.scss +10 -0
  367. package/styles/scss/lib/_link.scss +155 -0
  368. package/styles/scss/lib/_media-query.scss +32 -0
  369. package/styles/scss/lib/_spacing.scss +18 -0
  370. package/styles/scss/lib/_text.scss +63 -0
  371. package/styles/scss/lib/_theme.scss +160 -0
  372. package/styles/scss/lib/_transition.scss +26 -0
  373. package/switch.2f011fcc.js +65 -0
  374. package/switch.d.ts +1 -0
  375. package/systemfeedback.6bbd1505.js +25 -0
  376. package/systemfeedback.d.ts +1 -0
  377. package/text.8d80704f.js +57 -0
  378. package/text.d.ts +1 -0
  379. package/textarea.d.ts +1 -0
  380. package/textarea.e156b0ce.js +189 -0
  381. package/title.d.ts +1 -0
  382. package/title.d855a8e4.js +36 -0
  383. package/types/aria-types.d.ts +330 -0
  384. package/types/common-types.d.ts +13 -0
  385. package/types/icon-types.d.ts +2 -0
  386. package/types/index.d.ts +3 -0
  387. package/utils/breakpoint-customizable.d.ts +12 -0
  388. package/utils/has-document.d.ts +1 -0
  389. package/utils/has-window.d.ts +1 -0
  390. package/utils/helpers.d.ts +27 -0
  391. package/utils/helpers.test.d.ts +1 -0
  392. package/utils/index.d.ts +4 -0
  393. package/utils/link-target.d.ts +2 -0
  394. package/utils/render-documentation.d.ts +26 -0
  395. package/utils/theme.d.ts +2 -0
  396. package/utils/useBreakpoint.d.ts +12 -0
  397. package/utils/useBreakpoint.test.d.ts +1 -0
  398. package/utils/vitest.setup.d.ts +0 -0
  399. package/utils/wait-for-icon.d.ts +25 -0
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ import type { Format } from '../shared';
3
+ type GetMetaIconLinksOptions = {
4
+ format?: Format;
5
+ };
6
+ export declare function getMetaIconLinks(opts: {
7
+ format: 'html';
8
+ }): string;
9
+ export declare function getMetaIconLinks(opts?: {
10
+ format: 'jsx' | 'cra';
11
+ }): JSX.Element;
12
+ export declare function getMetaIconLinks(opts?: GetMetaIconLinksOptions): string | JSX.Element;
13
+ type GetResetStylesOptions = {
14
+ format?: Exclude<Format, 'cra'>;
15
+ };
16
+ export declare function getResetStyles(opts?: GetResetStylesOptions): string | JSX.Element;
17
+ export {};
@@ -0,0 +1,6 @@
1
+ {
2
+ "icons": [
3
+ { "src": "/icon2.png", "type": "image/png", "sizes": "192x192" },
4
+ { "src": "/icon1.png", "type": "image/png", "sizes": "512x512" }
5
+ ]
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "icons": [
3
+ { "src": "/icon-192.png", "type": "image/png", "sizes": "192x192" },
4
+ { "src": "/icon-512.png", "type": "image/png", "sizes": "512x512" }
5
+ ]
6
+ }
@@ -0,0 +1,2 @@
1
+ export type Format = 'jsx' | 'cra' | 'html';
2
+ export declare const throwIfRunInBrowser: (partialName: string) => void;
@@ -0,0 +1,79 @@
1
+ import "./assets/Radio.be8f06f5.css";
2
+ import { j as a } from "./chunks/jsx-runtime.5c071667.js";
3
+ import { c as d } from "./chunks/index.8021d3e0.js";
4
+ import { forwardRef as H, useRef as I, useState as R, useCallback as S } from "react";
5
+ import { u as g } from "./chunks/useBreakpoint.6c1b06c2.js";
6
+ const B = "_root_11cbi_25", V = "_root--disabled_11cbi_44", w = "_radio_11cbi_48", E = "_dot_11cbi_63", L = "_radio--invalid_11cbi_85", O = "_label_11cbi_90", P = "_label--hidden_11cbi_100", U = "_input_11cbi_113", o = {
7
+ root: B,
8
+ "root--disabled": "_root--disabled_11cbi_44",
9
+ rootDisabled: V,
10
+ radio: w,
11
+ dot: E,
12
+ "radio--invalid": "_radio--invalid_11cbi_85",
13
+ radioInvalid: L,
14
+ label: O,
15
+ "label--hidden": "_label--hidden_11cbi_100",
16
+ labelHidden: P,
17
+ input: U
18
+ }, q = H(
19
+ ({
20
+ label: l,
21
+ name: c,
22
+ value: _,
23
+ defaultChecked: b = !1,
24
+ disabled: e = !1,
25
+ hideLabel: u = !1,
26
+ checked: r,
27
+ invalid: f = !1,
28
+ className: m,
29
+ onChange: t,
30
+ ...p
31
+ }, s) => {
32
+ const h = I(null), [v, x] = R(b), n = r !== void 0, C = n ? r : v, j = g(u), k = d(
33
+ o.root,
34
+ {
35
+ [o.rootDisabled]: e
36
+ },
37
+ m
38
+ ), N = d(o.label, {
39
+ // hide label only visually to keep them available for assistive technologies
40
+ [o.labelHidden]: j
41
+ }), D = d(o.radio, {
42
+ [o.radioInvalid]: f
43
+ }), y = S(
44
+ (i) => {
45
+ if (e) {
46
+ i.preventDefault();
47
+ return;
48
+ }
49
+ n || x(i.target.checked), t && t(i);
50
+ },
51
+ [e, n, t]
52
+ );
53
+ return /* @__PURE__ */ a.jsxs("label", { className: k, children: [
54
+ /* @__PURE__ */ a.jsx(
55
+ "input",
56
+ {
57
+ type: "radio",
58
+ value: _,
59
+ name: c,
60
+ className: o.input,
61
+ ref: (i) => {
62
+ typeof s == "function" ? s(i) : s !== null && (s.current = i), h.current = i;
63
+ },
64
+ onChange: y,
65
+ ...p,
66
+ disabled: e,
67
+ checked: C,
68
+ "aria-label": typeof l == "string" ? l : void 0
69
+ }
70
+ ),
71
+ /* @__PURE__ */ a.jsx("span", { className: D, children: /* @__PURE__ */ a.jsx("div", { className: o.dot }) }),
72
+ /* @__PURE__ */ a.jsx("span", { className: N, children: l })
73
+ ] });
74
+ }
75
+ );
76
+ q.displayName = "DSRadio";
77
+ export {
78
+ q as DSRadio
79
+ };
package/radio.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './components/Radio/Radio'
@@ -0,0 +1,100 @@
1
+ "use client";
2
+ import { j as d } from "./chunks/jsx-runtime.5c071667.js";
3
+ import { c as q } from "./chunks/index.8021d3e0.js";
4
+ import { forwardRef as N, useState as P } from "react";
5
+ import { DSFieldset as C } from "./fieldset.fb7b7e49.js";
6
+ import { DSRadio as y } from "./radio.1b205d64.js";
7
+ import { s as c } from "./chunks/RadioGroup.module.59ca486a.js";
8
+ import { g as s } from "./chunks/helpers.ea3ca41a.js";
9
+ const f = (o) => `The "${o}" prop is required. Please add the "${o}" prop to the DSRadioGroup component.`, z = ({
10
+ description: o,
11
+ id: e,
12
+ legend: t,
13
+ name: i,
14
+ options: n,
15
+ systemFeedback: a
16
+ }) => {
17
+ if (!e && (o || a))
18
+ throw new Error(
19
+ s(
20
+ "DSRadioGroup",
21
+ 'A unique "id" prop is required when providing the description or systemFeedback property. Please add an unique "id" prop to the DSRadioGroup component.'
22
+ )
23
+ );
24
+ if (!t)
25
+ throw new Error(
26
+ s("DSRadioGroup", f("legend"))
27
+ );
28
+ if (!i)
29
+ throw new Error(
30
+ s("DSRadioGroup", f("name"))
31
+ );
32
+ if (!n)
33
+ throw new Error(
34
+ s("DSRadioGroup", f("options"))
35
+ );
36
+ }, M = N(
37
+ ({
38
+ legend: o,
39
+ name: e,
40
+ options: t,
41
+ alignment: i = "vertical",
42
+ defaultValue: n,
43
+ description: a,
44
+ disabled: l = !1,
45
+ id: m,
46
+ invalid: p = !1,
47
+ required: h = !1,
48
+ systemFeedback: u,
49
+ value: S,
50
+ onChange: D,
51
+ ...g
52
+ }, G) => {
53
+ process.env.NODE_ENV !== "production" && z({ description: a, id: m, legend: o, name: e, options: t, systemFeedback: u });
54
+ const [v, E] = P(n), R = S !== void 0, w = R ? S : v, x = q(c.root, {
55
+ // In case of longer copy, use vertical alignment
56
+ [c.rootHorizontal]: i === "horizontal",
57
+ [c.rootInvalid]: p && !!u
58
+ }), j = (r) => {
59
+ if (l) {
60
+ r.preventDefault();
61
+ return;
62
+ }
63
+ R || E(
64
+ r.target.value
65
+ ), D && D(r);
66
+ };
67
+ return /* @__PURE__ */ d.jsx(
68
+ C,
69
+ {
70
+ id: m,
71
+ legend: o,
72
+ description: a,
73
+ disabled: l,
74
+ required: h,
75
+ invalid: p,
76
+ systemFeedback: u,
77
+ ...g,
78
+ role: "radiogroup",
79
+ onChange: j,
80
+ children: /* @__PURE__ */ d.jsx("div", { className: x, children: t.map((r) => /* @__PURE__ */ d.jsx(
81
+ y,
82
+ {
83
+ name: e,
84
+ checked: r.value === w,
85
+ disabled: l,
86
+ invalid: p,
87
+ required: h,
88
+ ref: r.value === w ? G : null,
89
+ ...r
90
+ },
91
+ r.label + r.value
92
+ )) })
93
+ }
94
+ );
95
+ }
96
+ );
97
+ M.displayName = "DSRadioGroup";
98
+ export {
99
+ M as DSRadioGroup
100
+ };
@@ -0,0 +1 @@
1
+ export * from './components/RadioGroup/RadioGroup'
package/react.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="35.93" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 228"><path fill="#00D8FF" d="M210.483 73.824a171.49 171.49 0 0 0-8.24-2.597c.465-1.9.893-3.777 1.273-5.621c6.238-30.281 2.16-54.676-11.769-62.708c-13.355-7.7-35.196.329-57.254 19.526a171.23 171.23 0 0 0-6.375 5.848a155.866 155.866 0 0 0-4.241-3.917C100.759 3.829 77.587-4.822 63.673 3.233C50.33 10.957 46.379 33.89 51.995 62.588a170.974 170.974 0 0 0 1.892 8.48c-3.28.932-6.445 1.924-9.474 2.98C17.309 83.498 0 98.307 0 113.668c0 15.865 18.582 31.778 46.812 41.427a145.52 145.52 0 0 0 6.921 2.165a167.467 167.467 0 0 0-2.01 9.138c-5.354 28.2-1.173 50.591 12.134 58.266c13.744 7.926 36.812-.22 59.273-19.855a145.567 145.567 0 0 0 5.342-4.923a168.064 168.064 0 0 0 6.92 6.314c21.758 18.722 43.246 26.282 56.54 18.586c13.731-7.949 18.194-32.003 12.4-61.268a145.016 145.016 0 0 0-1.535-6.842c1.62-.48 3.21-.974 4.76-1.488c29.348-9.723 48.443-25.443 48.443-41.52c0-15.417-17.868-30.326-45.517-39.844Zm-6.365 70.984c-1.4.463-2.836.91-4.3 1.345c-3.24-10.257-7.612-21.163-12.963-32.432c5.106-11 9.31-21.767 12.459-31.957c2.619.758 5.16 1.557 7.61 2.4c23.69 8.156 38.14 20.213 38.14 29.504c0 9.896-15.606 22.743-40.946 31.14Zm-10.514 20.834c2.562 12.94 2.927 24.64 1.23 33.787c-1.524 8.219-4.59 13.698-8.382 15.893c-8.067 4.67-25.32-1.4-43.927-17.412a156.726 156.726 0 0 1-6.437-5.87c7.214-7.889 14.423-17.06 21.459-27.246c12.376-1.098 24.068-2.894 34.671-5.345a134.17 134.17 0 0 1 1.386 6.193ZM87.276 214.515c-7.882 2.783-14.16 2.863-17.955.675c-8.075-4.657-11.432-22.636-6.853-46.752a156.923 156.923 0 0 1 1.869-8.499c10.486 2.32 22.093 3.988 34.498 4.994c7.084 9.967 14.501 19.128 21.976 27.15a134.668 134.668 0 0 1-4.877 4.492c-9.933 8.682-19.886 14.842-28.658 17.94ZM50.35 144.747c-12.483-4.267-22.792-9.812-29.858-15.863c-6.35-5.437-9.555-10.836-9.555-15.216c0-9.322 13.897-21.212 37.076-29.293c2.813-.98 5.757-1.905 8.812-2.773c3.204 10.42 7.406 21.315 12.477 32.332c-5.137 11.18-9.399 22.249-12.634 32.792a134.718 134.718 0 0 1-6.318-1.979Zm12.378-84.26c-4.811-24.587-1.616-43.134 6.425-47.789c8.564-4.958 27.502 2.111 47.463 19.835a144.318 144.318 0 0 1 3.841 3.545c-7.438 7.987-14.787 17.08-21.808 26.988c-12.04 1.116-23.565 2.908-34.161 5.309a160.342 160.342 0 0 1-1.76-7.887Zm110.427 27.268a347.8 347.8 0 0 0-7.785-12.803c8.168 1.033 15.994 2.404 23.343 4.08c-2.206 7.072-4.956 14.465-8.193 22.045a381.151 381.151 0 0 0-7.365-13.322Zm-45.032-43.861c5.044 5.465 10.096 11.566 15.065 18.186a322.04 322.04 0 0 0-30.257-.006c4.974-6.559 10.069-12.652 15.192-18.18ZM82.802 87.83a323.167 323.167 0 0 0-7.227 13.238c-3.184-7.553-5.909-14.98-8.134-22.152c7.304-1.634 15.093-2.97 23.209-3.984a321.524 321.524 0 0 0-7.848 12.897Zm8.081 65.352c-8.385-.936-16.291-2.203-23.593-3.793c2.26-7.3 5.045-14.885 8.298-22.6a321.187 321.187 0 0 0 7.257 13.246c2.594 4.48 5.28 8.868 8.038 13.147Zm37.542 31.03c-5.184-5.592-10.354-11.779-15.403-18.433c4.902.192 9.899.29 14.978.29c5.218 0 10.376-.117 15.453-.343c-4.985 6.774-10.018 12.97-15.028 18.486Zm52.198-57.817c3.422 7.8 6.306 15.345 8.596 22.52c-7.422 1.694-15.436 3.058-23.88 4.071a382.417 382.417 0 0 0 7.859-13.026a347.403 347.403 0 0 0 7.425-13.565Zm-16.898 8.101a358.557 358.557 0 0 1-12.281 19.815a329.4 329.4 0 0 1-23.444.823c-7.967 0-15.716-.248-23.178-.732a310.202 310.202 0 0 1-12.513-19.846h.001a307.41 307.41 0 0 1-10.923-20.627a310.278 310.278 0 0 1 10.89-20.637l-.001.001a307.318 307.318 0 0 1 12.413-19.761c7.613-.576 15.42-.876 23.31-.876H128c7.926 0 15.743.303 23.354.883a329.357 329.357 0 0 1 12.335 19.695a358.489 358.489 0 0 1 11.036 20.54a329.472 329.472 0 0 1-11 20.722Zm22.56-122.124c8.572 4.944 11.906 24.881 6.52 51.026c-.344 1.668-.73 3.367-1.15 5.09c-10.622-2.452-22.155-4.275-34.23-5.408c-7.034-10.017-14.323-19.124-21.64-27.008a160.789 160.789 0 0 1 5.888-5.4c18.9-16.447 36.564-22.941 44.612-18.3ZM128 90.808c12.625 0 22.86 10.235 22.86 22.86s-10.235 22.86-22.86 22.86s-22.86-10.235-22.86-22.86s10.235-22.86 22.86-22.86Z"></path></svg>
@@ -0,0 +1,188 @@
1
+ import "./assets/Select.b2423b5f.css";
2
+ import { j as s } from "./chunks/jsx-runtime.5c071667.js";
3
+ import { c as _ } from "./chunks/index.8021d3e0.js";
4
+ import { useRef as C, useState as R, useEffect as W } from "react";
5
+ import { u as F } from "./chunks/useBreakpoint.6c1b06c2.js";
6
+ import { Asterisk as M } from "./asterisk.91abccec.js";
7
+ import { DSIcon as O } from "./icon.b4211784.js";
8
+ import { DSSystemFeedback as V } from "./systemfeedback.6bbd1505.js";
9
+ import { g as q } from "./chunks/helpers.ea3ca41a.js";
10
+ const J = "_root_fqmqk_73", K = "_hint_fqmqk_81", Q = "_label_fqmqk_81", T = "_wrapper_fqmqk_85", U = "_affix_fqmqk_91", X = "_affix--small_fqmqk_109", Y = "_affix--disabled_fqmqk_121", Z = "_prefix_fqmqk_125", z = "_suffix_fqmqk_131", G = "_action-button_fqmqk_136", ee = "_label--hidden_fqmqk_153", te = "_feedback_fqmqk_180", se = "_select-wrapper_fqmqk_185", ne = "_select_fqmqk_185", ae = "_select--invalid_fqmqk_304", le = "_select--small_fqmqk_311", ce = "_input--has-leading-icon_fqmqk_357", oe = "_input--has-action-button_fqmqk_360", ie = "_input--has-second-action-button_fqmqk_363", re = "_select--has-leading-icon_fqmqk_366", _e = "_select--has-action-button_fqmqk_369", fe = "_select--has-second-action-button_fqmqk_372", de = "_select--has-affix_fqmqk_375", me = "_select--is-ready_fqmqk_387", qe = "_select--placeholder_fqmqk_399", ue = "_chevron_fqmqk_408", he = "_chevron--small_fqmqk_412", pe = "_chevron--disabled_fqmqk_415", e = {
11
+ root: J,
12
+ hint: K,
13
+ label: Q,
14
+ wrapper: T,
15
+ affix: U,
16
+ "affix--small": "_affix--small_fqmqk_109",
17
+ affixSmall: X,
18
+ "affix--disabled": "_affix--disabled_fqmqk_121",
19
+ affixDisabled: Y,
20
+ prefix: Z,
21
+ suffix: z,
22
+ "action-button": "_action-button_fqmqk_136",
23
+ actionButton: G,
24
+ "label--hidden": "_label--hidden_fqmqk_153",
25
+ labelHidden: ee,
26
+ feedback: te,
27
+ "select-wrapper": "_select-wrapper_fqmqk_185",
28
+ selectWrapper: se,
29
+ select: ne,
30
+ "select--invalid": "_select--invalid_fqmqk_304",
31
+ selectInvalid: ae,
32
+ "select--small": "_select--small_fqmqk_311",
33
+ selectSmall: le,
34
+ "input--has-leading-icon": "_input--has-leading-icon_fqmqk_357",
35
+ inputHasLeadingIcon: ce,
36
+ "input--has-action-button": "_input--has-action-button_fqmqk_360",
37
+ inputHasActionButton: oe,
38
+ "input--has-second-action-button": "_input--has-second-action-button_fqmqk_363",
39
+ inputHasSecondActionButton: ie,
40
+ "select--has-leading-icon": "_select--has-leading-icon_fqmqk_366",
41
+ selectHasLeadingIcon: re,
42
+ "select--has-action-button": "_select--has-action-button_fqmqk_369",
43
+ selectHasActionButton: _e,
44
+ "select--has-second-action-button": "_select--has-second-action-button_fqmqk_372",
45
+ selectHasSecondActionButton: fe,
46
+ "select--has-affix": "_select--has-affix_fqmqk_375",
47
+ selectHasAffix: de,
48
+ "select--is-ready": "_select--is-ready_fqmqk_387",
49
+ selectIsReady: me,
50
+ "select--placeholder": "_select--placeholder_fqmqk_399",
51
+ selectPlaceholder: qe,
52
+ chevron: ue,
53
+ "chevron--small": "_chevron--small_fqmqk_412",
54
+ chevronSmall: he,
55
+ "chevron--disabled": "_chevron--disabled_fqmqk_415",
56
+ chevronDisabled: pe
57
+ }, be = ({
58
+ id: t,
59
+ label: l,
60
+ options: a
61
+ }) => {
62
+ if (!t)
63
+ throw new Error(
64
+ q(
65
+ "DSSelect",
66
+ 'A unique "id" prop is required. Please add an unique "id" prop to the DSSelect component.'
67
+ )
68
+ );
69
+ if (!l)
70
+ throw new Error(
71
+ q(
72
+ "DSSelect",
73
+ `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSSelect component. If you don't want to display a label, set hideLabel={true}.`
74
+ )
75
+ );
76
+ if (!a || a.length === 0)
77
+ throw new Error(
78
+ q(
79
+ "DSSelect",
80
+ 'Options are always required. Please add an "options" prop to the DSSelect component.'
81
+ )
82
+ );
83
+ }, ke = (t, l, a) => t === "" || l !== void 0 && l !== "" ? !1 : !(a !== void 0 && a !== ""), je = ({
84
+ id: t,
85
+ label: l,
86
+ options: a,
87
+ className: H,
88
+ defaultValue: u,
89
+ disabled: h = !1,
90
+ hideLabel: w = !1,
91
+ hint: f,
92
+ invalid: r = !1,
93
+ placeholder: d = "Select",
94
+ required: p = !1,
95
+ size: b = "medium",
96
+ systemFeedback: m,
97
+ value: k,
98
+ ...D
99
+ }) => {
100
+ process.env.NODE_ENV !== "production" && be({
101
+ id: t,
102
+ label: l,
103
+ options: a
104
+ });
105
+ const i = C(null), [I, y] = R(
106
+ ke(d, u, k)
107
+ );
108
+ W(() => {
109
+ if (!i.current)
110
+ return;
111
+ const c = () => {
112
+ if (!i.current)
113
+ return;
114
+ const o = i.current.value;
115
+ y(o === "");
116
+ }, n = i.current;
117
+ return n.addEventListener("change", c), () => {
118
+ n.removeEventListener("change", c);
119
+ };
120
+ }, []);
121
+ const j = F(w), v = `${t}-label`, x = `${t}-feedback`, S = `${t}-hint`, A = f ? ` ${S}` : "", B = (c) => [
122
+ d && /* @__PURE__ */ s.jsx("option", { value: "", children: d }, `${t}-hidden-option-disabled-placeholder`),
123
+ ...c.map((n) => {
124
+ if ("options" in n) {
125
+ const { label: o, options: $ } = n;
126
+ return /* @__PURE__ */ s.jsx("optgroup", { label: o, children: $.map(g) }, o);
127
+ } else
128
+ return g(n);
129
+ })
130
+ ], g = ({ label: c, value: n, isDisabled: o }) => /* @__PURE__ */ s.jsx("option", { value: n, disabled: o, children: c }, n), N = _(e.root, H), P = _(e.select, {
131
+ [e.selectSmall]: b === "small",
132
+ [e.selectInvalid]: r,
133
+ [e.selectPlaceholder]: I
134
+ }), E = _(e.label, {
135
+ // hide label only visually to keep them available for assistive technologies
136
+ [e.labelHidden]: j
137
+ }), L = _(e.chevron, {
138
+ [e.chevronSmall]: b === "small",
139
+ [e.chevronDisabled]: h
140
+ });
141
+ return /* @__PURE__ */ s.jsxs("div", { className: N, children: [
142
+ /* @__PURE__ */ s.jsxs("label", { className: E, id: v, htmlFor: t, children: [
143
+ l,
144
+ p && /* @__PURE__ */ s.jsx(M, {})
145
+ ] }),
146
+ f && /* @__PURE__ */ s.jsx("div", { className: e.hint, id: S, children: f }),
147
+ r && m && /* @__PURE__ */ s.jsx(
148
+ V,
149
+ {
150
+ className: e.feedback,
151
+ message: m,
152
+ type: "invalid",
153
+ id: x,
154
+ "aria-live": "assertive"
155
+ }
156
+ ),
157
+ /* @__PURE__ */ s.jsxs("div", { className: e.selectWrapper, children: [
158
+ /* @__PURE__ */ s.jsx(
159
+ "select",
160
+ {
161
+ ...D,
162
+ id: t,
163
+ ref: i,
164
+ className: P,
165
+ "aria-labelledby": `${v}${A}`,
166
+ "aria-describedby": r && m ? x : void 0,
167
+ "aria-invalid": r,
168
+ defaultValue: u,
169
+ value: k,
170
+ disabled: h,
171
+ required: p,
172
+ children: B(a)
173
+ }
174
+ ),
175
+ /* @__PURE__ */ s.jsx(
176
+ O,
177
+ {
178
+ name: "chevron-down",
179
+ className: L,
180
+ "aria-hidden": "true"
181
+ }
182
+ )
183
+ ] })
184
+ ] });
185
+ };
186
+ export {
187
+ je as DSSelect
188
+ };
package/select.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './components/Select/Select'
package/spinner.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './components/Spinner/Spinner'
@@ -0,0 +1,58 @@
1
+ import "./assets/Spinner.af45d460.css";
2
+ import { j as t } from "./chunks/jsx-runtime.5c071667.js";
3
+ import { c as n } from "./chunks/index.8021d3e0.js";
4
+ import { DSIcon as _ } from "./icon.b4211784.js";
5
+ const m = "_root_1spts_25", z = "_root-size-small_1spts_31", c = "_root-size-medium_1spts_35", p = "_root-size-large_1spts_39", S = "_root-size-x-large_1spts_43", d = "_root-size-inherit_1spts_47", g = "_rotate_1spts_1", u = "_screenReaderOnly_1spts_67", e = {
6
+ root: m,
7
+ "root-size-small": "_root-size-small_1spts_31",
8
+ rootSizeSmall: z,
9
+ "root-size-medium": "_root-size-medium_1spts_35",
10
+ rootSizeMedium: c,
11
+ "root-size-large": "_root-size-large_1spts_39",
12
+ rootSizeLarge: p,
13
+ "root-size-x-large": "_root-size-x-large_1spts_43",
14
+ rootSizeXLarge: S,
15
+ "root-size-inherit": "_root-size-inherit_1spts_47",
16
+ rootSizeInherit: d,
17
+ rotate: g,
18
+ screenReaderOnly: u
19
+ }, j = ({
20
+ aria: r,
21
+ className: s,
22
+ size: o = "small",
23
+ theme: i = "light",
24
+ ...a
25
+ }) => {
26
+ const l = n(e.root, s, {
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__ */ t.jsxs(
34
+ "span",
35
+ {
36
+ className: l,
37
+ role: "alert",
38
+ "aria-live": "assertive",
39
+ "aria-label": (r == null ? void 0 : r["aria-label"]) || void 0,
40
+ ...a,
41
+ children: [
42
+ /* @__PURE__ */ t.jsx("span", { className: e.screenReaderOnly, children: " " }),
43
+ /* @__PURE__ */ t.jsx(
44
+ _,
45
+ {
46
+ name: "loading-spinner",
47
+ theme: i,
48
+ focusable: "false",
49
+ "aria-hidden": "true"
50
+ }
51
+ )
52
+ ]
53
+ }
54
+ );
55
+ };
56
+ export {
57
+ j as DSSpinner
58
+ };
@@ -0,0 +1 @@
1
+ @font-face{font-family:STIHL Contraface Display Title;font-weight:400;font-style:normal;font-display:swap;src:url(./STIHLContrafaceDisplayTitling.woff2) format("woff2"),url(./STIHLContrafaceDisplayTitling.woff) format("woff")}@font-face{font-family:STIHL Contraface Text Bold;font-weight:400;font-style:normal;font-display:swap;src:url(./STIHLContrafaceText-Bold.woff2) format("woff2"),url(./STIHLContrafaceText-Bold.woff) format("woff")}@font-face{font-family:STIHL Contraface Text Regular;font-weight:400;font-style:normal;font-display:swap;src:url(./STIHLContrafaceText.woff2) format("woff2"),url(./STIHLContrafaceText.woff) format("woff")}
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,21 @@
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/_hover.scss';
16
+ @import 'lib/_link.scss';
17
+ @import 'lib/_media-query.scss';
18
+ @import 'lib/_spacing.scss';
19
+ @import 'lib/_text.scss';
20
+ @import 'lib/_theme.scss';
21
+ @import 'lib/_transition.scss';
@@ -0,0 +1,15 @@
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
+ }
@@ -0,0 +1,6 @@
1
+ $ds-animation-duration-short: var(--ds-animation-duration, 550ms);
2
+ $ds-animation-duration-medium: var(--ds-animation-duration, 1100ms);
3
+ $ds-animation-duration-long: var(--ds-animation-duration, 1650ms);
4
+
5
+ $ds-animation-timing-function-ease-in-out: ease-in-out;
6
+ $ds-animation-timing-function-linear: linear;
@@ -0,0 +1,16 @@
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
+ );
@@ -0,0 +1,58 @@
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 "Passed #{$min} breakpoint is not available for used 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 "Passed #{$max} breakpoint is not available for used 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 "Passed #{$min} and/or #{$max} breakpoint is not available for used ds-container-query-min-max() mixin.";
57
+ }
58
+ }