@stihl-design-system/components 1.0.0-RC.1 → 1.0.0-RC.3

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 (483) hide show
  1. package/README.md +1 -1
  2. package/assets/CustomReactSelect.BdwXfLLO.css +1 -0
  3. package/assets/RadioGroup.Ur8Ro-XL.css +1 -0
  4. package/assets/asterisk.C-o6rbGQ.css +1 -0
  5. package/assets/button.DJvR-58w.css +1 -0
  6. package/assets/buttonround.BlfQkmMV.css +1 -0
  7. package/assets/checkbox.BsFEWfQe.css +1 -0
  8. package/assets/fieldset.xazpUXJX.css +1 -0
  9. package/assets/floatingactionbutton.D7ywURL3.css +1 -0
  10. package/assets/heading.CGFucb-C.css +1 -0
  11. package/assets/icon.CB-KQmw4.css +1 -0
  12. package/assets/input.BcP5kkZ2.css +1 -0
  13. package/assets/inputpassword.C3Uyj7oA.css +1 -0
  14. package/assets/inputsearch.tL3e9-Ob.css +1 -0
  15. package/assets/inputstepper.paPJix5A.css +1 -0
  16. package/assets/link.V7pJOW1p.css +1 -0
  17. package/assets/linkstandalone.D3RbBp23.css +1 -0
  18. package/assets/logo.BbHYgnWo.css +1 -0
  19. package/assets/optioncheckbox.C-K1FLhc.css +1 -0
  20. package/assets/radio.CSHQGdpr.css +1 -0
  21. package/assets/select.D2qBxaHP.css +1 -0
  22. package/assets/spinner.C5rBmKiF.css +1 -0
  23. package/assets/switch.sqve8ApJ.css +1 -0
  24. package/assets/{SystemFeedback.c30264c0.css → systemfeedback.WE3wClZ3.css} +1 -1
  25. package/assets/text.DDAveG7E.css +1 -0
  26. package/assets/textarea.BKbocznb.css +1 -0
  27. package/assets/title.CE0Dm7PI.css +1 -0
  28. package/asterisk.DU8THnoC.js +8 -0
  29. package/button.BUUGRxIp.js +135 -0
  30. package/buttonround.CKc-a-hd.js +118 -0
  31. package/{checkbox.42617f46.js → checkbox.C2Ga9yTK.js} +30 -30
  32. package/checkboxgroup.Cfxz9bk6.js +80 -0
  33. package/chunks/360.CfjUtgxq.js +10 -0
  34. package/chunks/{CustomReactSelect.2e4e7ba0.js → CustomReactSelect.uzWNynay.js} +797 -785
  35. package/chunks/{Input.utils.f8f3286f.js → Input.utils.Bly6ZzLI.js} +1 -1
  36. package/chunks/RadioGroup.module.bi3leRes.js +11 -0
  37. package/chunks/academic-cap.OBigTQQS.js +10 -0
  38. package/chunks/alarm-clock.CpK-AEZG.js +10 -0
  39. package/chunks/arrow-clockwise.BefOjGPg.js +10 -0
  40. package/chunks/arrow-counterclockwise.C7Ov32BZ.js +10 -0
  41. package/chunks/arrow-down-line.RDD2pRZY.js +10 -0
  42. package/chunks/arrow-down.XpokLh98.js +10 -0
  43. package/chunks/arrow-edge.CPA93M81.js +10 -0
  44. package/chunks/arrow-left.C8NG5I2X.js +10 -0
  45. package/chunks/arrow-out.CsHHHYN9.js +10 -0
  46. package/chunks/arrow-outline-left.Bhw_LzfV.js +10 -0
  47. package/chunks/arrow-right.HNwAz18h.js +10 -0
  48. package/chunks/arrow-up-arrow-down.BVyuVJP5.js +10 -0
  49. package/chunks/arrow-up.Ca1GnLaY.js +10 -0
  50. package/chunks/at.BNfdp4M0.js +10 -0
  51. package/chunks/barcode-scanner.D0olxB_m.js +10 -0
  52. package/chunks/battery.YCg9lYqC.js +10 -0
  53. package/chunks/bell.DbPxCAUM.js +10 -0
  54. package/chunks/bin-open.DsjIBW00.js +10 -0
  55. package/chunks/bin.ktpYUJmK.js +10 -0
  56. package/chunks/bluetooth.dW5tTwby.js +10 -0
  57. package/chunks/bookmark.B7Mbr-d6.js +10 -0
  58. package/chunks/burger.DLP81BXa.js +10 -0
  59. package/chunks/calendar.Cig7yG7m.js +10 -0
  60. package/chunks/camera.BoCB0Emp.js +10 -0
  61. package/chunks/cart-check.CYH0vTB8.js +10 -0
  62. package/chunks/cart-plus.DzXXFMZj.js +10 -0
  63. package/chunks/cart.CoEwMABr.js +10 -0
  64. package/chunks/catalog.CwV-J6Kb.js +10 -0
  65. package/chunks/certificate.Crs4RohK.js +10 -0
  66. package/chunks/chain-link.BMV2WV6k.js +10 -0
  67. package/chunks/chainsaw.CI1EYF7a.js +10 -0
  68. package/chunks/check.CuZKWgYj.js +10 -0
  69. package/chunks/chevron-down.5UkGOwK_.js +10 -0
  70. package/chunks/chevron-left.DRFQ-efY.js +10 -0
  71. package/chunks/chevron-line-left.SQvDJQ1t.js +10 -0
  72. package/chunks/chevron-line-right.CYQ3b2cQ.js +10 -0
  73. package/chunks/chevron-right.B_Ew9QUt.js +10 -0
  74. package/chunks/chevron-up.DqETUWqG.js +10 -0
  75. package/chunks/circle-check-colored.Bye_GwLy.js +10 -0
  76. package/chunks/circle-check-inverted.Cc2cUmWT.js +10 -0
  77. package/chunks/circle-info-colored.DLY6BTL4.js +10 -0
  78. package/chunks/circle-info-inverted.D8Z0vTmu.js +10 -0
  79. package/chunks/circle-pause.DaRfXOff.js +10 -0
  80. package/chunks/circle-stroke.CWu_o3Gx.js +10 -0
  81. package/chunks/circle.471EUzv6.js +10 -0
  82. package/chunks/clock.Bw5ICIVH.js +10 -0
  83. package/chunks/coffee-cup.DIijzKx_.js +10 -0
  84. package/chunks/compare.BgktBbYD.js +10 -0
  85. package/chunks/connected-box-mobile.DboMCVxp.js +10 -0
  86. package/chunks/connected-box-stationary.CAPCPQ1d.js +10 -0
  87. package/chunks/connected-box.DVqJw-ws.js +10 -0
  88. package/chunks/cross.rEw3TuHs.js +10 -0
  89. package/chunks/diamond-exclamationmark-colored.WNKYwZ8q.js +10 -0
  90. package/chunks/diamond-exclamationmark-inverted.DzAIb8Nt.js +10 -0
  91. package/chunks/diamond.CXZHFpPC.js +10 -0
  92. package/chunks/diskette._0C2VZ9v.js +10 -0
  93. package/chunks/distance.FA6pTjcW.js +10 -0
  94. package/chunks/dots-connected.ZMYjHeNS.js +10 -0
  95. package/chunks/{download-complete.0b84a7cc.js → download-complete.CZVpzrvY.js} +3 -4
  96. package/chunks/envelope-open.CA4cE5lk.js +10 -0
  97. package/chunks/envelope.re-RxZVw.js +10 -0
  98. package/chunks/exclamationmark.DEbIGqGC.js +10 -0
  99. package/chunks/exit.Cgb8AB-k.js +10 -0
  100. package/chunks/eye-closed.CvqozUwK.js +10 -0
  101. package/chunks/eye.CRQMKZs4.js +10 -0
  102. package/chunks/{triangle.bff84ddf.js → facebook.CVcxa0rV.js} +2 -3
  103. package/chunks/filter.DrPSKpaG.js +10 -0
  104. package/chunks/finger-double-arrow.DDUZoPh8.js +10 -0
  105. package/chunks/flash.CgJJ1bUx.js +10 -0
  106. package/chunks/fullscreen.Be2rBj1i.js +10 -0
  107. package/chunks/gear.DEltGVSA.js +10 -0
  108. package/chunks/globe.DG6uw6fi.js +10 -0
  109. package/chunks/grid.DH1impeF.js +10 -0
  110. package/chunks/guidance.BBYB3JpW.js +10 -0
  111. package/chunks/haircross.D-whkit9.js +10 -0
  112. package/chunks/hanger.Bo8qtNo5.js +10 -0
  113. package/chunks/headphones.DjWXOuJJ.js +10 -0
  114. package/chunks/heart.D-BnHMb-.js +10 -0
  115. package/chunks/hexagon-arrow-clockwise.D0eeDQQx.js +10 -0
  116. package/chunks/horizontal-ellipsis.ChdN6RnG.js +10 -0
  117. package/chunks/house.BohpDQ3q.js +10 -0
  118. package/chunks/imow.Dh1oMqcW.js +10 -0
  119. package/chunks/info.BZVg9FLA.js +10 -0
  120. package/chunks/instagram.CIlKb7xj.js +10 -0
  121. package/chunks/{jsx-runtime.5c071667.js → jsx-runtime.C-kxDJ4g.js} +263 -256
  122. package/chunks/leave-fullscreen.BC5iwDur.js +10 -0
  123. package/chunks/lightbulb.DQ7TiRsr.js +10 -0
  124. package/chunks/linkedin.br5zvxco.js +10 -0
  125. package/chunks/list-three-rows.Cso4ybs8.js +10 -0
  126. package/chunks/list-two-rows.DOsZEv0-.js +10 -0
  127. package/chunks/loading-spinner.BukfMaU6.js +10 -0
  128. package/chunks/lock.Dw_GOpTn.js +10 -0
  129. package/chunks/magnifying-glass-minus.BYztw2P1.js +10 -0
  130. package/chunks/magnifying-glass-plus.BTgviDVh.js +10 -0
  131. package/chunks/magnifying-glass.C8DfRaIO.js +10 -0
  132. package/chunks/map.CXgG1iGz.js +10 -0
  133. package/chunks/minus.BkhCuIH4.js +10 -0
  134. package/chunks/mobile.C1Kj9VnC.js +10 -0
  135. package/chunks/nine-squares.DVsNAOzz.js +10 -0
  136. package/chunks/note-check.CM_kmt0M.js +10 -0
  137. package/chunks/note-plus.Bkn78EyA.js +10 -0
  138. package/chunks/note.CE0ACLn8.js +10 -0
  139. package/chunks/number-input.BLhoh5mh.js +10 -0
  140. package/chunks/paperclip.BMerX4rj.js +10 -0
  141. package/chunks/parcel.Ve9GL_EG.js +10 -0
  142. package/chunks/pause.B91Ejn-O.js +10 -0
  143. package/chunks/pdf.9kZbElrZ.js +10 -0
  144. package/chunks/pen.CvKw2PvE.js +10 -0
  145. package/chunks/percent.BlB6rG-B.js +10 -0
  146. package/chunks/petrol.Du6qAgp0.js +10 -0
  147. package/chunks/phone.DzdXfmNC.js +10 -0
  148. package/chunks/pin-s.DXgYuN9C.js +10 -0
  149. package/chunks/pin.DZfZr4El.js +10 -0
  150. package/chunks/pinterest.sUPAub_q.js +10 -0
  151. package/chunks/placeholder.Dbb0hT5R.js +10 -0
  152. package/chunks/play.BDiY2JrT.js +10 -0
  153. package/chunks/plug.DZozve4C.js +10 -0
  154. package/chunks/plus.zdu17kAe.js +10 -0
  155. package/chunks/printer.CaFaWfeS.js +10 -0
  156. package/chunks/prohibition-sign.DUFn0QiV.js +10 -0
  157. package/chunks/questionmark.QyDxanQy.js +10 -0
  158. package/chunks/security.DkLw5ym4.js +10 -0
  159. package/chunks/share.C3wwEl8n.js +10 -0
  160. package/chunks/shirt.BC8W-yCI.js +10 -0
  161. package/chunks/shop.DdPV35mK.js +10 -0
  162. package/chunks/sound-off.D4kGcehG.js +10 -0
  163. package/chunks/sound-on.Cynkb0_t.js +10 -0
  164. package/chunks/speechbubble.87vuoKUp.js +10 -0
  165. package/chunks/speechbubbles.CSFhpNJn.js +10 -0
  166. package/chunks/square.D6PgEi_r.js +10 -0
  167. package/chunks/star-half.DZTtM5Bw.js +10 -0
  168. package/chunks/star.BkjednvI.js +10 -0
  169. package/chunks/tag.yO7uMsHj.js +10 -0
  170. package/chunks/thumbs-down.DeBD6wnK.js +10 -0
  171. package/chunks/thumbs-up.D-44gexH.js +10 -0
  172. package/chunks/triangle-exclamationmark-colored.CbVC3Gzi.js +10 -0
  173. package/chunks/triangle-exclamationmark-inverted.BiGoK7TV.js +10 -0
  174. package/chunks/triangle.ibv6NDnt.js +10 -0
  175. package/chunks/truck.xIk5wW6T.js +10 -0
  176. package/chunks/two-people-screen.BBLouaW4.js +10 -0
  177. package/chunks/two-sheets.DWFmuL7N.js +10 -0
  178. package/chunks/upload.ZImTAIgx.js +10 -0
  179. package/chunks/user.BMARueuy.js +10 -0
  180. package/chunks/vertical-ellipsis.Bc9eBsDF.js +10 -0
  181. package/chunks/wc.gmKE1r5l.js +10 -0
  182. package/chunks/whatsapp.CPpu-7Nn.js +10 -0
  183. package/chunks/wifi-1bar.BcEP-r8w.js +10 -0
  184. package/chunks/wifi-2bars.jDOd4Q3q.js +10 -0
  185. package/chunks/wifi-off.D9xPqVWn.js +10 -0
  186. package/chunks/wifi.CuQykF6X.js +10 -0
  187. package/chunks/wind-rose.C-XcKdy-.js +10 -0
  188. package/chunks/wrench.DMFV2S9u.js +10 -0
  189. package/chunks/x.BqbpXd7O.js +10 -0
  190. package/chunks/xing.CiKYLbPq.js +10 -0
  191. package/chunks/youtube.DrImaRSP.js +10 -0
  192. package/combobox.BXHAo4Wx.js +47 -0
  193. package/components/Asterisk/Asterisk.d.ts +0 -1
  194. package/components/Button/Button.d.ts +5 -4
  195. package/components/ButtonRound/ButtonRound.d.ts +3 -3
  196. package/components/Checkbox/Checkbox.d.ts +4 -3
  197. package/components/CheckboxGroup/CheckboxGroup.d.ts +5 -4
  198. package/components/CheckboxGroup/CheckboxGroup.utils.d.ts +2 -1
  199. package/components/Combobox/Combobox.d.ts +3 -3
  200. package/components/Combobox/Combobox.utils.d.ts +4 -3
  201. package/components/CustomReactSelect/CustomReactSelect.d.ts +7 -7
  202. package/components/CustomReactSelect/CustomReactSelect.utils.d.ts +3 -2
  203. package/components/CustomReactSelect/OptionCheckbox.d.ts +2 -1
  204. package/components/Fieldset/Fieldset.d.ts +4 -3
  205. package/components/Fieldset/Fieldset.utils.d.ts +3 -2
  206. package/components/FloatingActionButton/FloatingActionButton.d.ts +2 -2
  207. package/components/Heading/Heading.d.ts +4 -3
  208. package/components/Heading/Heading.utils.d.ts +1 -1
  209. package/components/Icon/Icon.d.ts +4 -3
  210. package/components/Icon/Icon.utils.d.ts +4 -6
  211. package/components/Input/Input.d.ts +5 -4
  212. package/components/Input/Input.utils.d.ts +2 -1
  213. package/components/InputPassword/InputPassword.d.ts +5 -4
  214. package/components/InputPassword/InputPassword.utils.d.ts +2 -1
  215. package/components/InputSearch/InputSearch.d.ts +5 -4
  216. package/components/InputSearch/InputSearch.utils.d.ts +2 -1
  217. package/components/InputStepper/InputStepper.d.ts +5 -4
  218. package/components/InputStepper/InputStepper.utils.d.ts +2 -1
  219. package/components/Link/Link.d.ts +4 -4
  220. package/components/LinkStandalone/LinkStandalone.d.ts +3 -3
  221. package/components/Logo/Logo.d.ts +7 -4
  222. package/components/Logo/Logo.utils.d.ts +3 -1
  223. package/components/Radio/Radio.d.ts +4 -3
  224. package/components/RadioGroup/RadioGroup.d.ts +6 -5
  225. package/components/RadioGroup/RadioGroup.utils.d.ts +3 -2
  226. package/components/Select/Select.d.ts +4 -3
  227. package/components/Select/Select.utils.d.ts +4 -3
  228. package/components/Spinner/Spinner.d.ts +4 -3
  229. package/components/Switch/Switch.d.ts +4 -3
  230. package/components/SystemFeedback/SystemFeedback.d.ts +3 -2
  231. package/components/Text/Text.d.ts +4 -3
  232. package/components/Textarea/Textarea.d.ts +4 -3
  233. package/components/Textarea/Textarea.utils.d.ts +2 -1
  234. package/components/Title/Title.d.ts +4 -3
  235. package/customreactselect.CipgVXTR.js +13 -0
  236. package/fieldset.DGcIKzDI.js +98 -0
  237. package/floatingactionbutton.DzHD39NY.js +87 -0
  238. package/heading.DqGbFfj2.js +50 -0
  239. package/icon.PX9_1kNB.js +215 -0
  240. package/index.es.js +23 -23
  241. package/input.o8OT6rxJ.js +236 -0
  242. package/inputpassword.-MXq8baU.js +139 -0
  243. package/{inputsearch.6e913fc6.js → inputsearch.CoYTSjox.js} +50 -50
  244. package/inputstepper.BBMQr6kM.js +290 -0
  245. package/link.BN6AZfhG.js +115 -0
  246. package/linkstandalone.4-fyRd08.js +79 -0
  247. package/{logo.e6576fe3.js → logo.C_oJ8isW.js} +31 -30
  248. package/optioncheckbox.-DRnW_ch.js +43 -0
  249. package/package.json +42 -42
  250. package/partials/index.js +938 -930
  251. package/partials/lib/partials.d.ts +2 -2
  252. package/radio.Bhu9OUY-.js +79 -0
  253. package/radiogroup.oILRMrX-.js +102 -0
  254. package/select.OGcreXnT.js +190 -0
  255. package/spinner.Diy_EeFY.js +58 -0
  256. package/styles/scss/_index.scss +1 -0
  257. package/styles/scss/lib/_focus.scss +2 -1
  258. package/styles/scss/lib/_grid-extended.scss +2 -2
  259. package/styles/scss/lib/_grid-sidebar-sidebar.scss +2 -2
  260. package/styles/scss/lib/_grid-sidebar.scss +23 -40
  261. package/styles/scss/lib/_grid.scss +15 -13
  262. package/styles/scss/lib/_heading.scss +14 -1
  263. package/styles/scss/lib/_high-contrast.scss +24 -0
  264. package/styles/scss/lib/_link.scss +9 -9
  265. package/styles/scss/lib/_spacing.scss +12 -0
  266. package/styles/scss/lib/_text.scss +4 -0
  267. package/styles/scss/lib/_theme.scss +2 -2
  268. package/switch.BjoFKMQC.js +65 -0
  269. package/systemfeedback.C7iXO5A1.js +25 -0
  270. package/text.CPU8IUqY.js +57 -0
  271. package/textarea.kc_Sfbgr.js +193 -0
  272. package/title.icX0VDiO.js +36 -0
  273. package/types/icon-types.d.ts +1 -1
  274. package/utils/render-documentation.d.ts +0 -1
  275. package/utils/useBreakpoint.d.ts +2 -1
  276. package/utils/vitest.setup.d.ts +1 -0
  277. package/assets/Asterisk.288a3f48.css +0 -1
  278. package/assets/Button.c09c516e.css +0 -1
  279. package/assets/ButtonRound.fd628e54.css +0 -1
  280. package/assets/Checkbox.cde01607.css +0 -1
  281. package/assets/CustomReactSelect.cdb5f164.css +0 -1
  282. package/assets/Fieldset.729910fe.css +0 -1
  283. package/assets/FloatingActionButton.de295f5d.css +0 -1
  284. package/assets/Heading.50f5e903.css +0 -1
  285. package/assets/Icon.8890ee9a.css +0 -1
  286. package/assets/Input.92913cfe.css +0 -1
  287. package/assets/InputPassword.d7b9c937.css +0 -1
  288. package/assets/InputSearch.888f630a.css +0 -1
  289. package/assets/InputStepper.969db0d2.css +0 -1
  290. package/assets/Link.75834750.css +0 -1
  291. package/assets/LinkStandalone.19bdab0d.css +0 -1
  292. package/assets/Logo.09e48e82.css +0 -1
  293. package/assets/OptionCheckbox.c56568a3.css +0 -1
  294. package/assets/Radio.79d98dde.css +0 -1
  295. package/assets/RadioGroup.8b55ee38.css +0 -1
  296. package/assets/Select.b9c135c2.css +0 -1
  297. package/assets/Spinner.af45d460.css +0 -1
  298. package/assets/Switch.781e3de6.css +0 -1
  299. package/assets/Text.ac70cc84.css +0 -1
  300. package/assets/Textarea.12046393.css +0 -1
  301. package/assets/Title.e9e5a7e6.css +0 -1
  302. package/asterisk.cb74ea72.js +0 -8
  303. package/button.87ad387c.js +0 -135
  304. package/buttonround.ecb24c29.js +0 -118
  305. package/checkboxgroup.fa110fdf.js +0 -78
  306. package/chunks/360.3f3132d9.js +0 -11
  307. package/chunks/Link.module.15dedc23.js +0 -37
  308. package/chunks/RadioGroup.module.59ca486a.js +0 -11
  309. package/chunks/academic-cap.a6849ffc.js +0 -11
  310. package/chunks/alarm-clock.542230f3.js +0 -11
  311. package/chunks/arrow-clockwise.0496f663.js +0 -11
  312. package/chunks/arrow-counterclockwise.635a0130.js +0 -11
  313. package/chunks/arrow-down-line.0976611e.js +0 -11
  314. package/chunks/arrow-down.9780d975.js +0 -11
  315. package/chunks/arrow-edge.3288acdd.js +0 -11
  316. package/chunks/arrow-left.ace9c808.js +0 -11
  317. package/chunks/arrow-out.0499f39e.js +0 -11
  318. package/chunks/arrow-outline-left.efc33275.js +0 -11
  319. package/chunks/arrow-right.133feef2.js +0 -11
  320. package/chunks/arrow-up-arrow-down.b612e9b1.js +0 -11
  321. package/chunks/arrow-up.3be6430a.js +0 -11
  322. package/chunks/at.6279d12b.js +0 -11
  323. package/chunks/barcode-scanner.0a4a314d.js +0 -11
  324. package/chunks/battery.e1249ee1.js +0 -11
  325. package/chunks/bell.87fe4f0b.js +0 -11
  326. package/chunks/bin-open.be4290d8.js +0 -11
  327. package/chunks/bin.b36466f3.js +0 -11
  328. package/chunks/bluetooth.54b89b90.js +0 -11
  329. package/chunks/bookmark.4d5ce4c3.js +0 -11
  330. package/chunks/burger.1301d91e.js +0 -11
  331. package/chunks/calendar.ba39a664.js +0 -11
  332. package/chunks/camera.3bed4f3b.js +0 -11
  333. package/chunks/cart-check.9fb6abdb.js +0 -11
  334. package/chunks/cart-plus.fd5c4674.js +0 -11
  335. package/chunks/cart.7516d35c.js +0 -11
  336. package/chunks/catalog.bd0c7830.js +0 -11
  337. package/chunks/certificate.1639c28e.js +0 -11
  338. package/chunks/chain-link.45025ed0.js +0 -11
  339. package/chunks/chainsaw.56d43a9f.js +0 -11
  340. package/chunks/check.a08beeae.js +0 -11
  341. package/chunks/chevron-down.80b0dc85.js +0 -11
  342. package/chunks/chevron-left.f5feade0.js +0 -11
  343. package/chunks/chevron-line-left.17b172d1.js +0 -11
  344. package/chunks/chevron-line-right.7cd234b7.js +0 -11
  345. package/chunks/chevron-right.259bc1a3.js +0 -11
  346. package/chunks/chevron-up.d1335850.js +0 -11
  347. package/chunks/circle-check-colored.98e13ab9.js +0 -11
  348. package/chunks/circle-check-inverted.db29ab06.js +0 -11
  349. package/chunks/circle-info-colored.8da47e36.js +0 -11
  350. package/chunks/circle-info-inverted.0ed118fb.js +0 -11
  351. package/chunks/circle-pause.55300d1b.js +0 -11
  352. package/chunks/circle-stroke.203dd7aa.js +0 -11
  353. package/chunks/circle.33ec82eb.js +0 -11
  354. package/chunks/clock.3014a102.js +0 -11
  355. package/chunks/coffee-cup.98d6531f.js +0 -11
  356. package/chunks/compare.c76b221b.js +0 -11
  357. package/chunks/connected-box-mobile.9cd742dd.js +0 -11
  358. package/chunks/connected-box-stationary.191a3ed0.js +0 -11
  359. package/chunks/connected-box.fe21c39b.js +0 -11
  360. package/chunks/cross.fe709ee7.js +0 -11
  361. package/chunks/diamond-exclamationmark-colored.bf3ffccf.js +0 -11
  362. package/chunks/diamond-exclamationmark-inverted.b5648587.js +0 -11
  363. package/chunks/diamond.e962c289.js +0 -11
  364. package/chunks/diskette.04733444.js +0 -11
  365. package/chunks/distance.9e6b56ff.js +0 -11
  366. package/chunks/dots-connected.9869fae1.js +0 -11
  367. package/chunks/envelope-open.3c3fd714.js +0 -11
  368. package/chunks/envelope.5c9ff834.js +0 -11
  369. package/chunks/exclamationmark.92afe58f.js +0 -11
  370. package/chunks/exit.bde46887.js +0 -11
  371. package/chunks/eye-closed.0b517bb7.js +0 -11
  372. package/chunks/eye.8f4b311b.js +0 -11
  373. package/chunks/facebook.4a040606.js +0 -11
  374. package/chunks/filter.dee66683.js +0 -11
  375. package/chunks/finger-double-arrow.9cd4c623.js +0 -11
  376. package/chunks/flash.15646b5e.js +0 -11
  377. package/chunks/fullscreen.fdd976fe.js +0 -11
  378. package/chunks/gear.1f5f6fe9.js +0 -11
  379. package/chunks/globe.7f419498.js +0 -11
  380. package/chunks/grid.2c1cdc21.js +0 -11
  381. package/chunks/guidance.63bebf3e.js +0 -11
  382. package/chunks/haircross.0ac15319.js +0 -11
  383. package/chunks/hanger.edc848f4.js +0 -11
  384. package/chunks/headphones.a023699e.js +0 -11
  385. package/chunks/heart.d4440641.js +0 -11
  386. package/chunks/hexagon-arrow-clockwise.98e9b555.js +0 -11
  387. package/chunks/horizontal-ellipsis.84419429.js +0 -11
  388. package/chunks/house.70059642.js +0 -11
  389. package/chunks/imow.3374e620.js +0 -11
  390. package/chunks/info.1787448e.js +0 -11
  391. package/chunks/instagram.e12dd682.js +0 -11
  392. package/chunks/leave-fullscreen.def46043.js +0 -11
  393. package/chunks/lightbulb.b73d3ebf.js +0 -11
  394. package/chunks/linkedin.ce0c68cb.js +0 -11
  395. package/chunks/list-three-rows.ef44c7ef.js +0 -11
  396. package/chunks/list-two-rows.5ed8f1af.js +0 -11
  397. package/chunks/loading-spinner.8293421e.js +0 -11
  398. package/chunks/lock.3cbc8ced.js +0 -11
  399. package/chunks/magnifying-glass-minus.b0f906e5.js +0 -11
  400. package/chunks/magnifying-glass-plus.6ffc69c5.js +0 -11
  401. package/chunks/magnifying-glass.c297e41f.js +0 -11
  402. package/chunks/map.c96b1dcd.js +0 -11
  403. package/chunks/minus.7f6676e8.js +0 -11
  404. package/chunks/mobile.416ee5b0.js +0 -11
  405. package/chunks/nine-squares.34eeb0d4.js +0 -11
  406. package/chunks/note-check.aaf92ef9.js +0 -11
  407. package/chunks/note-plus.e7ab1b93.js +0 -11
  408. package/chunks/note.cc96375c.js +0 -11
  409. package/chunks/number-input.076fcf63.js +0 -11
  410. package/chunks/paperclip.e8831256.js +0 -11
  411. package/chunks/parcel.75534dbd.js +0 -11
  412. package/chunks/pause.901567cf.js +0 -11
  413. package/chunks/pdf.92c1781a.js +0 -11
  414. package/chunks/pen.ecbcb50d.js +0 -11
  415. package/chunks/percent.4b7fa587.js +0 -11
  416. package/chunks/petrol.41999bec.js +0 -11
  417. package/chunks/phone.3c23c041.js +0 -11
  418. package/chunks/pin-s.a5519070.js +0 -11
  419. package/chunks/pin.1137362d.js +0 -11
  420. package/chunks/pinterest.88763b51.js +0 -11
  421. package/chunks/placeholder.d6fdaf8f.js +0 -11
  422. package/chunks/play.dd0f1d8c.js +0 -11
  423. package/chunks/plug.00f114c4.js +0 -11
  424. package/chunks/plus.42721ebf.js +0 -11
  425. package/chunks/printer.5bb7ee0d.js +0 -11
  426. package/chunks/prohibition-sign.af5616b3.js +0 -11
  427. package/chunks/questionmark.db94a06d.js +0 -11
  428. package/chunks/security.2be491e3.js +0 -11
  429. package/chunks/share.ddae7aef.js +0 -11
  430. package/chunks/shirt.135d58c1.js +0 -11
  431. package/chunks/shop.f120426b.js +0 -11
  432. package/chunks/sound-off.c6f5ed43.js +0 -11
  433. package/chunks/sound-on.212c36bc.js +0 -11
  434. package/chunks/speechbubble.9428546e.js +0 -11
  435. package/chunks/speechbubbles.65cb946e.js +0 -11
  436. package/chunks/square.452f505f.js +0 -11
  437. package/chunks/star-half.1458bc5b.js +0 -11
  438. package/chunks/star.fab17456.js +0 -11
  439. package/chunks/tag.4d730d72.js +0 -11
  440. package/chunks/thumbs-down.cbf6e4ec.js +0 -11
  441. package/chunks/thumbs-up.435754e1.js +0 -11
  442. package/chunks/triangle-exclamationmark-colored.94025893.js +0 -11
  443. package/chunks/triangle-exclamationmark-inverted.bc4eed15.js +0 -11
  444. package/chunks/truck.a904d6d3.js +0 -11
  445. package/chunks/two-people-screen.3e509922.js +0 -11
  446. package/chunks/two-sheets.d1cfef0f.js +0 -11
  447. package/chunks/upload.7f1850a3.js +0 -11
  448. package/chunks/user.bf5b30a5.js +0 -11
  449. package/chunks/vertical-ellipsis.1cac00e5.js +0 -11
  450. package/chunks/wc.9d108bd0.js +0 -11
  451. package/chunks/wifi-1bar.b6fc33aa.js +0 -11
  452. package/chunks/wifi-2bars.27e9da59.js +0 -11
  453. package/chunks/wifi-off.e5daf3a9.js +0 -11
  454. package/chunks/wifi.40bb915d.js +0 -11
  455. package/chunks/wind-rose.27fa658a.js +0 -11
  456. package/chunks/wrench.69493ef3.js +0 -11
  457. package/chunks/x.d9da4202.js +0 -11
  458. package/chunks/xing.e17c1a24.js +0 -11
  459. package/chunks/youtube.dbf50787.js +0 -11
  460. package/combobox.d93091e0.js +0 -45
  461. package/customreactselect.7c77375a.js +0 -13
  462. package/fieldset.fdd84bda.js +0 -98
  463. package/floatingactionbutton.281b5465.js +0 -87
  464. package/heading.c02dcb70.js +0 -44
  465. package/icon.b4211784.js +0 -215
  466. package/input.064e0bbf.js +0 -230
  467. package/inputpassword.f76c2f62.js +0 -139
  468. package/inputstepper.2047ec77.js +0 -286
  469. package/link.5eb13d6e.js +0 -84
  470. package/linkstandalone.edfd6288.js +0 -80
  471. package/optioncheckbox.2369560b.js +0 -43
  472. package/radio.fd841ab0.js +0 -79
  473. package/radiogroup.e1c8ea3d.js +0 -100
  474. package/select.88d40c51.js +0 -188
  475. package/spinner.ee015469.js +0 -58
  476. package/switch.96fd1689.js +0 -65
  477. package/systemfeedback.8515a4e0.js +0 -25
  478. package/text.de8facb9.js +0 -57
  479. package/textarea.b8c40c8b.js +0 -189
  480. package/title.7be43d50.js +0 -36
  481. /package/chunks/{helpers.ea3ca41a.js → helpers.B1JT5ShS.js} +0 -0
  482. /package/chunks/{index.8021d3e0.js → index.CvOaL64Y.js} +0 -0
  483. /package/chunks/{useBreakpoint.6c1b06c2.js → useBreakpoint.5xBNDiCf.js} +0 -0
@@ -0,0 +1,139 @@
1
+ "use client";
2
+ import { j as a } from "./chunks/jsx-runtime.C-kxDJ4g.js";
3
+ import { c as i } from "./chunks/index.CvOaL64Y.js";
4
+ import { useState as A } from "react";
5
+ import { u as D } from "./chunks/useBreakpoint.5xBNDiCf.js";
6
+ import { Asterisk as C } from "./asterisk.DU8THnoC.js";
7
+ import { DSButton as L } from "./button.BUUGRxIp.js";
8
+ import { DSSystemFeedback as $ } from "./systemfeedback.C7iXO5A1.js";
9
+ import { g as b } from "./chunks/helpers.B1JT5ShS.js";
10
+ import './assets/inputpassword.C3Uyj7oA.css';const E = "_input_8z84y_187", q = "_input--invalid_8z84y_297", R = "_input--small_8z84y_304", V = "_input--has-leading-icon_8z84y_350", O = "_input--has-action-button_8z84y_353", F = "_input--has-second-action-button_8z84y_356", M = "_input--has-affix_8z84y_368", T = "_input--is-ready_8z84y_380", G = "_root_8z84y_387", J = "_hint_8z84y_395", K = "_label_8z84y_395", Q = "_wrapper_8z84y_399", U = "_action-button_8z84y_405", W = "_label--hidden_8z84y_422", X = "_feedback_8z84y_449", t = {
11
+ input: E,
12
+ "input--invalid": "_input--invalid_8z84y_297",
13
+ inputInvalid: q,
14
+ "input--small": "_input--small_8z84y_304",
15
+ inputSmall: R,
16
+ "input--has-leading-icon": "_input--has-leading-icon_8z84y_350",
17
+ inputHasLeadingIcon: V,
18
+ "input--has-action-button": "_input--has-action-button_8z84y_353",
19
+ inputHasActionButton: O,
20
+ "input--has-second-action-button": "_input--has-second-action-button_8z84y_356",
21
+ inputHasSecondActionButton: F,
22
+ "input--has-affix": "_input--has-affix_8z84y_368",
23
+ inputHasAffix: M,
24
+ "input--is-ready": "_input--is-ready_8z84y_380",
25
+ inputIsReady: T,
26
+ root: G,
27
+ hint: J,
28
+ label: K,
29
+ wrapper: Q,
30
+ "action-button": "_action-button_8z84y_405",
31
+ actionButton: U,
32
+ "label--hidden": "_label--hidden_8z84y_422",
33
+ labelHidden: W,
34
+ feedback: X
35
+ }, Y = ({ id: n, label: s }) => {
36
+ if (!n)
37
+ throw new Error(
38
+ b(
39
+ "DSInputPassword",
40
+ 'A unique "id" prop is required. Please add an unique "id" prop to the DSInputPassword component.'
41
+ )
42
+ );
43
+ if (!s)
44
+ throw new Error(
45
+ b(
46
+ "DSInputPassword",
47
+ `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSInputPassword component. If you don't want to display a label, set hideLabel={true}.`
48
+ )
49
+ );
50
+ }, lt = ({
51
+ id: n,
52
+ label: s,
53
+ autocomplete: h = "new-password",
54
+ className: f,
55
+ disabled: c = !1,
56
+ hidePasswordText: w = "Hide password",
57
+ hint: e,
58
+ hideLabel: z = !1,
59
+ invalid: o = !1,
60
+ readonly: r = !1,
61
+ required: d = !1,
62
+ showPasswordText: S = "Show password",
63
+ size: l = "medium",
64
+ systemFeedback: u,
65
+ ...x
66
+ }) => {
67
+ process.env.NODE_ENV !== "production" && Y({
68
+ id: n,
69
+ label: s
70
+ });
71
+ const [p, I] = A(!1), _ = `${n}-label`, m = `${n}-feedback`, y = `${n}-hint`, B = e ? ` ${y}` : "", H = D(z), g = i(t.root, f), v = i(t.input, {
72
+ // small input
73
+ [t.inputSmall]: l === "small",
74
+ // invalid state
75
+ [t.inputInvalid]: o,
76
+ // action button - input password always has an action button
77
+ [t.inputHasActionButton]: !0
78
+ }), P = i(t.label, {
79
+ // hide label only visually to keep them available for assistive technologies
80
+ [t.labelHidden]: H
81
+ }), N = i(t.actionButton, {
82
+ [t.actionButtonSmall]: l === "small"
83
+ }), j = () => {
84
+ I((k) => !k);
85
+ };
86
+ return /* @__PURE__ */ a.jsxs("div", { className: g, children: [
87
+ /* @__PURE__ */ a.jsxs("label", { className: P, id: _, htmlFor: n, children: [
88
+ s,
89
+ d && /* @__PURE__ */ a.jsx(C, {})
90
+ ] }),
91
+ e && /* @__PURE__ */ a.jsx("div", { className: t.hint, id: y, children: e }),
92
+ o && u && /* @__PURE__ */ a.jsx(
93
+ $,
94
+ {
95
+ className: t.feedback,
96
+ message: u,
97
+ type: "invalid",
98
+ id: m
99
+ }
100
+ ),
101
+ /* @__PURE__ */ a.jsxs("div", { className: t.wrapper, children: [
102
+ /* @__PURE__ */ a.jsx(
103
+ "input",
104
+ {
105
+ className: v,
106
+ id: n,
107
+ ...x,
108
+ "aria-labelledby": `${_}${B}`,
109
+ "aria-describedby": o && u ? m : void 0,
110
+ "aria-invalid": o,
111
+ "aria-disabled": r,
112
+ readOnly: r,
113
+ required: d,
114
+ disabled: c,
115
+ autoComplete: h,
116
+ type: p ? "text" : "password"
117
+ }
118
+ ),
119
+ /* @__PURE__ */ a.jsx(
120
+ L,
121
+ {
122
+ hideLabel: !0,
123
+ theme: "light",
124
+ iconName: p ? "eye-closed" : "eye",
125
+ variant: "ghost",
126
+ className: N,
127
+ size: l,
128
+ onClick: j,
129
+ type: "button",
130
+ disabled: c,
131
+ children: p ? w : S
132
+ }
133
+ )
134
+ ] })
135
+ ] });
136
+ };
137
+ export {
138
+ lt as DSInputPassword
139
+ };
@@ -1,40 +1,40 @@
1
- import "./assets/InputSearch.888f630a.css";
2
- import { j as e } from "./chunks/jsx-runtime.5c071667.js";
3
- import { c } from "./chunks/index.8021d3e0.js";
1
+ "use client";
2
+ import { j as e } from "./chunks/jsx-runtime.C-kxDJ4g.js";
3
+ import { c } from "./chunks/index.CvOaL64Y.js";
4
4
  import { useState as J, useRef as w, useEffect as A } from "react";
5
- import { g as y, a as K } from "./chunks/helpers.ea3ca41a.js";
6
- import { u as Q } from "./chunks/useBreakpoint.6c1b06c2.js";
7
- import { Asterisk as U } from "./asterisk.cb74ea72.js";
8
- import { DSButton as D } from "./button.87ad387c.js";
9
- import { DSSystemFeedback as X } from "./systemfeedback.8515a4e0.js";
10
- const Y = "_input_1ym7n_73", Z = "_input--invalid_1ym7n_183", z = "_input--small_1ym7n_190", tt = "_input--has-leading-icon_1ym7n_236", nt = "_input--has-action-button_1ym7n_239", et = "_input--has-second-action-button_1ym7n_242", at = "_input--has-affix_1ym7n_254", ot = "_input--is-ready_1ym7n_266", st = "_root_1ym7n_273", it = "_hint_1ym7n_281", ct = "_label_1ym7n_281", ut = "_wrapper_1ym7n_285", lt = "_action-button_1ym7n_291", rt = "_second-action-button_1ym7n_295", pt = "_label--hidden_1ym7n_312", mt = "_feedback_1ym7n_339", t = {
5
+ import { g as y, a as K } from "./chunks/helpers.B1JT5ShS.js";
6
+ import { u as Q } from "./chunks/useBreakpoint.5xBNDiCf.js";
7
+ import { Asterisk as U } from "./asterisk.DU8THnoC.js";
8
+ import { DSButton as D } from "./button.BUUGRxIp.js";
9
+ import { DSSystemFeedback as X } from "./systemfeedback.C7iXO5A1.js";
10
+ import './assets/inputsearch.tL3e9-Ob.css';const Y = "_input_17rym_187", Z = "_input--invalid_17rym_297", z = "_input--small_17rym_304", tt = "_input--has-leading-icon_17rym_350", nt = "_input--has-action-button_17rym_353", et = "_input--has-second-action-button_17rym_356", at = "_input--has-affix_17rym_368", st = "_input--is-ready_17rym_380", ot = "_root_17rym_387", it = "_hint_17rym_395", ct = "_label_17rym_395", rt = "_wrapper_17rym_399", ut = "_action-button_17rym_405", lt = "_second-action-button_17rym_409", pt = "_label--hidden_17rym_426", mt = "_feedback_17rym_453", t = {
11
11
  input: Y,
12
- "input--invalid": "_input--invalid_1ym7n_183",
12
+ "input--invalid": "_input--invalid_17rym_297",
13
13
  inputInvalid: Z,
14
- "input--small": "_input--small_1ym7n_190",
14
+ "input--small": "_input--small_17rym_304",
15
15
  inputSmall: z,
16
- "input--has-leading-icon": "_input--has-leading-icon_1ym7n_236",
16
+ "input--has-leading-icon": "_input--has-leading-icon_17rym_350",
17
17
  inputHasLeadingIcon: tt,
18
- "input--has-action-button": "_input--has-action-button_1ym7n_239",
18
+ "input--has-action-button": "_input--has-action-button_17rym_353",
19
19
  inputHasActionButton: nt,
20
- "input--has-second-action-button": "_input--has-second-action-button_1ym7n_242",
20
+ "input--has-second-action-button": "_input--has-second-action-button_17rym_356",
21
21
  inputHasSecondActionButton: et,
22
- "input--has-affix": "_input--has-affix_1ym7n_254",
22
+ "input--has-affix": "_input--has-affix_17rym_368",
23
23
  inputHasAffix: at,
24
- "input--is-ready": "_input--is-ready_1ym7n_266",
25
- inputIsReady: ot,
26
- root: st,
24
+ "input--is-ready": "_input--is-ready_17rym_380",
25
+ inputIsReady: st,
26
+ root: ot,
27
27
  hint: it,
28
28
  label: ct,
29
- wrapper: ut,
30
- "action-button": "_action-button_1ym7n_291",
31
- actionButton: lt,
32
- "second-action-button": "_second-action-button_1ym7n_295",
33
- secondActionButton: rt,
34
- "label--hidden": "_label--hidden_1ym7n_312",
29
+ wrapper: rt,
30
+ "action-button": "_action-button_17rym_405",
31
+ actionButton: ut,
32
+ "second-action-button": "_second-action-button_17rym_409",
33
+ secondActionButton: lt,
34
+ "label--hidden": "_label--hidden_17rym_426",
35
35
  labelHidden: pt,
36
36
  feedback: mt
37
- }, _t = ({ id: n, label: u }) => {
37
+ }, _t = ({ id: n, label: r }) => {
38
38
  if (!n)
39
39
  throw new Error(
40
40
  y(
@@ -42,25 +42,25 @@ const Y = "_input_1ym7n_73", Z = "_input--invalid_1ym7n_183", z = "_input--small
42
42
  'A unique "id" prop is required. Please add an unique "id" prop to the DSInputSearch component.'
43
43
  )
44
44
  );
45
- if (!u)
45
+ if (!r)
46
46
  throw new Error(
47
47
  y(
48
48
  "DSInputSearch",
49
49
  `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSInputSearch component. If you don't want to display a label, set hideLabel={true}.`
50
50
  )
51
51
  );
52
- }, dt = (n) => !!K(n, "form"), xt = ({
52
+ }, dt = (n) => !!K(n, "form"), Bt = ({
53
53
  id: n,
54
- label: u,
54
+ label: r,
55
55
  className: H,
56
56
  clearButtonLabel: E = "Clear search field",
57
- disabled: l = !1,
57
+ disabled: u = !1,
58
58
  hint: d,
59
59
  hideLabel: j = !1,
60
- invalid: r = !1,
61
- readonly: o = !1,
60
+ invalid: l = !1,
61
+ readonly: s = !1,
62
62
  required: S = !1,
63
- size: s = "medium",
63
+ size: o = "medium",
64
64
  submitButtonLabel: C = "Search",
65
65
  systemFeedback: h,
66
66
  value: b,
@@ -70,7 +70,7 @@ const Y = "_input_1ym7n_73", Z = "_input--invalid_1ym7n_183", z = "_input--small
70
70
  }) => {
71
71
  process.env.NODE_ENV !== "production" && _t({
72
72
  id: n,
73
- label: u
73
+ label: r
74
74
  });
75
75
  const [p, g] = J(b), f = w(null), m = w(null), V = Q(j);
76
76
  A(() => {
@@ -85,20 +85,20 @@ const Y = "_input_1ym7n_73", Z = "_input--invalid_1ym7n_183", z = "_input--small
85
85
  }, []);
86
86
  const v = `${n}-label`, B = `${n}-feedback`, x = `${n}-hint`, O = d ? ` ${x}` : "", N = p !== "" && p !== void 0 && p !== null, P = c(t.root, H), $ = c(t.input, {
87
87
  // small input
88
- [t.inputSmall]: s === "small",
88
+ [t.inputSmall]: o === "small",
89
89
  // invalid state
90
- [t.inputInvalid]: r,
90
+ [t.inputInvalid]: l,
91
91
  // action button - input password always has an action button
92
92
  [t.inputHasActionButton]: !0,
93
93
  // action second action button
94
- [t.inputHasSecondActionButton]: N && !o && !l
94
+ [t.inputHasSecondActionButton]: N && !s && !u
95
95
  }), R = c(t.label, {
96
96
  // hide label only visually to keep them available for assistive technologies
97
97
  [t.labelHidden]: V
98
98
  }), q = c(t.actionButton, {
99
- [t.actionButtonSmall]: s === "small"
99
+ [t.actionButtonSmall]: o === "small"
100
100
  }), T = c(t.secondActionButton, {
101
- [t.secondActionButtonSmall]: s === "small"
101
+ [t.secondActionButtonSmall]: o === "small"
102
102
  }), F = (a, i) => {
103
103
  const G = Object.getPrototypeOf(a), _ = Object.getOwnPropertyDescriptor(
104
104
  G,
@@ -117,11 +117,11 @@ const Y = "_input_1ym7n_73", Z = "_input--invalid_1ym7n_183", z = "_input--small
117
117
  };
118
118
  return /* @__PURE__ */ e.jsxs("div", { className: P, ref: f, children: [
119
119
  /* @__PURE__ */ e.jsxs("label", { className: R, id: v, htmlFor: n, children: [
120
- u,
120
+ r,
121
121
  S && /* @__PURE__ */ e.jsx(U, {})
122
122
  ] }),
123
123
  d && /* @__PURE__ */ e.jsx("div", { className: t.hint, id: x, children: d }),
124
- r && h && /* @__PURE__ */ e.jsx(
124
+ l && h && /* @__PURE__ */ e.jsx(
125
125
  X,
126
126
  {
127
127
  className: t.feedback,
@@ -139,18 +139,18 @@ const Y = "_input_1ym7n_73", Z = "_input--invalid_1ym7n_183", z = "_input--small
139
139
  ref: m,
140
140
  ...L,
141
141
  "aria-labelledby": `${v}${O}`,
142
- "aria-describedby": r && h ? B : void 0,
143
- "aria-invalid": r,
144
- "aria-disabled": o,
145
- readOnly: o,
142
+ "aria-describedby": l && h ? B : void 0,
143
+ "aria-invalid": l,
144
+ "aria-disabled": s,
145
+ readOnly: s,
146
146
  required: S,
147
- disabled: l,
147
+ disabled: u,
148
148
  type: "search",
149
149
  value: p,
150
150
  onChange: W
151
151
  }
152
152
  ),
153
- N && !o && !l && /* @__PURE__ */ e.jsx(
153
+ N && !s && !u && /* @__PURE__ */ e.jsx(
154
154
  D,
155
155
  {
156
156
  hideLabel: !0,
@@ -158,7 +158,7 @@ const Y = "_input_1ym7n_73", Z = "_input--invalid_1ym7n_183", z = "_input--small
158
158
  iconName: "cross",
159
159
  className: T,
160
160
  variant: "ghost",
161
- size: s,
161
+ size: o,
162
162
  onClick: M,
163
163
  type: "button",
164
164
  tabIndex: -1,
@@ -173,10 +173,10 @@ const Y = "_input_1ym7n_73", Z = "_input--invalid_1ym7n_183", z = "_input--small
173
173
  iconName: "magnifying-glass",
174
174
  className: q,
175
175
  variant: "ghost",
176
- size: s,
176
+ size: o,
177
177
  onClick: k,
178
178
  type: "submit",
179
- disabled: l || o,
179
+ disabled: u || s,
180
180
  children: C
181
181
  }
182
182
  )
@@ -184,5 +184,5 @@ const Y = "_input_1ym7n_73", Z = "_input--invalid_1ym7n_183", z = "_input--small
184
184
  ] });
185
185
  };
186
186
  export {
187
- xt as DSInputSearch
187
+ Bt as DSInputSearch
188
188
  };
@@ -0,0 +1,290 @@
1
+ "use client";
2
+ import { j as e } from "./chunks/jsx-runtime.C-kxDJ4g.js";
3
+ import { c } from "./chunks/index.CvOaL64Y.js";
4
+ import { useState as f, useRef as N, useEffect as w, useLayoutEffect as M } from "react";
5
+ import { u as bn } from "./chunks/useBreakpoint.5xBNDiCf.js";
6
+ import { Asterisk as mn } from "./asterisk.DU8THnoC.js";
7
+ import { DSButton as X } from "./button.BUUGRxIp.js";
8
+ import { M as E, b as H } from "./chunks/Input.utils.Bly6ZzLI.js";
9
+ import { DSSystemFeedback as hn } from "./systemfeedback.C7iXO5A1.js";
10
+ import { g as y } from "./chunks/helpers.B1JT5ShS.js";
11
+ import './assets/inputstepper.paPJix5A.css';const xn = "_input_134nb_187", Sn = "_input--invalid_134nb_298", yn = "_input--small_134nb_305", In = "_input--has-leading-icon_134nb_351", vn = "_input--has-action-button_134nb_354", gn = "_input--has-second-action-button_134nb_357", An = "_input--has-affix_134nb_369", Bn = "_input--is-ready_134nb_381", Dn = "_root_134nb_388", Nn = "_hint_134nb_396", wn = "_label_134nb_396", En = "_wrapper_134nb_400", Hn = "_affix_134nb_406", Ln = "_affix--small_134nb_426", jn = "_affix--disabled_134nb_438", Rn = "_prefix_134nb_441", kn = "_affix--readonly_134nb_444", Cn = "_suffix_134nb_454", $n = "_action-button_134nb_461", Fn = "_label--hidden_134nb_478", Vn = "_feedback_134nb_505", Pn = "_second-action-button_134nb_519", Tn = "_value-announcer_134nb_523", t = {
12
+ input: xn,
13
+ "input--invalid": "_input--invalid_134nb_298",
14
+ inputInvalid: Sn,
15
+ "input--small": "_input--small_134nb_305",
16
+ inputSmall: yn,
17
+ "input--has-leading-icon": "_input--has-leading-icon_134nb_351",
18
+ inputHasLeadingIcon: In,
19
+ "input--has-action-button": "_input--has-action-button_134nb_354",
20
+ inputHasActionButton: vn,
21
+ "input--has-second-action-button": "_input--has-second-action-button_134nb_357",
22
+ inputHasSecondActionButton: gn,
23
+ "input--has-affix": "_input--has-affix_134nb_369",
24
+ inputHasAffix: An,
25
+ "input--is-ready": "_input--is-ready_134nb_381",
26
+ inputIsReady: Bn,
27
+ root: Dn,
28
+ hint: Nn,
29
+ label: wn,
30
+ wrapper: En,
31
+ affix: Hn,
32
+ "affix--small": "_affix--small_134nb_426",
33
+ affixSmall: Ln,
34
+ "affix--disabled": "_affix--disabled_134nb_438",
35
+ affixDisabled: jn,
36
+ prefix: Rn,
37
+ "affix--readonly": "_affix--readonly_134nb_444",
38
+ affixReadonly: kn,
39
+ suffix: Cn,
40
+ "action-button": "_action-button_134nb_461",
41
+ actionButton: $n,
42
+ "label--hidden": "_label--hidden_134nb_478",
43
+ labelHidden: Fn,
44
+ feedback: Vn,
45
+ "second-action-button": "_second-action-button_134nb_519",
46
+ secondActionButton: Pn,
47
+ "value-announcer": "_value-announcer_134nb_523",
48
+ valueAnnouncer: Tn
49
+ }, Wn = ({
50
+ id: a,
51
+ label: b,
52
+ prefix: m,
53
+ suffix: h
54
+ }) => {
55
+ if (!a)
56
+ throw new Error(
57
+ y(
58
+ "DSInputStepper",
59
+ 'A unique "id" prop is required. Please add an unique "id" prop to the DSInputStepper component.'
60
+ )
61
+ );
62
+ if (!b)
63
+ throw new Error(
64
+ y(
65
+ "DSInputStepper",
66
+ `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSInputStepper component. If you don't want to display a label, set hideLabel={true}.`
67
+ )
68
+ );
69
+ m && m.length > E && console.warn(
70
+ y(
71
+ "DSInputStepper",
72
+ `Prefix length must not exceed ${E} characters.`
73
+ )
74
+ ), h && h.length > H && console.warn(
75
+ y(
76
+ "DSInputStepper",
77
+ `Suffix length must not exceed ${H} characters.`
78
+ )
79
+ );
80
+ }, Yn = ({
81
+ id: a,
82
+ label: b,
83
+ announcementText: m = "Value changed to",
84
+ className: h,
85
+ disabled: d = !1,
86
+ decreaseAmountButtonLabel: q = "Decrease",
87
+ hint: I,
88
+ hideLabel: G = !1,
89
+ invalid: x = !1,
90
+ increaseAmountButtonLabel: O = "Increase",
91
+ prefix: u,
92
+ max: L = 100,
93
+ min: j = 0,
94
+ readonly: p = !1,
95
+ required: R = !1,
96
+ size: i = "medium",
97
+ step: U = 1,
98
+ suffix: r,
99
+ systemFeedback: v,
100
+ value: S,
101
+ onChange: k,
102
+ ...J
103
+ }) => {
104
+ process.env.NODE_ENV !== "production" && Wn({
105
+ id: a,
106
+ label: b,
107
+ prefix: u,
108
+ suffix: r
109
+ });
110
+ const [K, Q] = f(!1), [_, g] = f(S), [A, C] = f(""), [Y, Z] = f(!1), [z, nn] = f({}), s = N(null), tn = u == null ? void 0 : u.substring(0, E), B = N(null), en = r == null ? void 0 : r.substring(0, H), D = N(null), an = bn(G);
111
+ w(() => {
112
+ S && g(S);
113
+ }, [S]), w(() => {
114
+ if (A) {
115
+ const n = setTimeout(() => {
116
+ C("");
117
+ }, 3e3);
118
+ return () => clearTimeout(n);
119
+ }
120
+ }, [A]), w(() => {
121
+ var o;
122
+ const n = (l) => {
123
+ l.preventDefault();
124
+ };
125
+ return (o = s.current) == null || o.addEventListener("wheel", n, {
126
+ // The { passive: false } option is used to indicate that the event listener wants to cancel the event, allowing preventDefault to work as expected.
127
+ passive: !1
128
+ }), () => {
129
+ var l;
130
+ (l = s.current) == null || l.removeEventListener("wheel", n);
131
+ };
132
+ }, []), M(() => {
133
+ const n = i === "medium" ? 16 : 8, o = {};
134
+ if (B.current) {
135
+ const l = B.current.offsetWidth;
136
+ o.paddingInlineStart = n + l + "px";
137
+ }
138
+ if (D.current) {
139
+ const l = D.current.offsetWidth;
140
+ o.paddingInlineEnd = n + l + "px";
141
+ }
142
+ nn(o), Q(!0);
143
+ }, [u, r, i, Y]), M(() => {
144
+ (async () => {
145
+ "fonts" in document && (await document.fonts.load(
146
+ '1em "STIHL Contraface Digital Text Regular"'
147
+ ), Z(!0));
148
+ })();
149
+ }, []);
150
+ const $ = c(t.affix, {
151
+ [t.affixSmall]: i === "small",
152
+ [t.affixDisabled]: d,
153
+ [t.affixReadonly]: p
154
+ }), F = `${a}-label`, V = `${a}-feedback`, P = `${a}-hint`, T = `${a}-value-announcer`, sn = I ? ` ${P}` : "", on = c(t.root, h), ln = c(t.input, {
155
+ // small input
156
+ [t.inputSmall]: i === "small",
157
+ // invalid state
158
+ [t.inputInvalid]: x,
159
+ // prefix/suffix
160
+ [t.inputHasAffix]: u || r,
161
+ [t.inputIsReady]: K
162
+ }), cn = c(t.label, {
163
+ // hide label only visually to keep them available for assistive technologies
164
+ [t.labelHidden]: an
165
+ }), un = c(t.secondActionButton, {
166
+ [t.secondActionButtonSmall]: i === "small"
167
+ }), rn = c(t.actionButton, {
168
+ [t.actionButtonSmall]: i === "small"
169
+ }), dn = () => {
170
+ const n = [T];
171
+ return x && v && n.push(V), n.join(" ");
172
+ }, W = () => {
173
+ var n;
174
+ if (s.current) {
175
+ g(s.current.value);
176
+ const o = new Event("change", { bubbles: !0 });
177
+ (n = s.current) == null || n.dispatchEvent(o), C(`${m} ${s.current.value}`);
178
+ }
179
+ }, pn = () => {
180
+ var n;
181
+ (n = s.current) == null || n.stepDown(), W();
182
+ }, _n = () => {
183
+ var n;
184
+ (n = s.current) == null || n.stepUp(), W();
185
+ }, fn = (n) => {
186
+ g(n.target.value), k && k(n);
187
+ };
188
+ return /* @__PURE__ */ e.jsxs("div", { className: on, children: [
189
+ /* @__PURE__ */ e.jsxs("label", { className: cn, id: F, htmlFor: a, children: [
190
+ b,
191
+ R && /* @__PURE__ */ e.jsx(mn, {})
192
+ ] }),
193
+ I && /* @__PURE__ */ e.jsx("div", { className: t.hint, id: P, children: I }),
194
+ /* @__PURE__ */ e.jsx(
195
+ "div",
196
+ {
197
+ "aria-live": "polite",
198
+ "aria-atomic": "true",
199
+ className: t.valueAnnouncer,
200
+ id: T,
201
+ children: A
202
+ }
203
+ ),
204
+ x && v && /* @__PURE__ */ e.jsx(
205
+ hn,
206
+ {
207
+ className: t.feedback,
208
+ message: v,
209
+ type: "invalid",
210
+ id: V
211
+ }
212
+ ),
213
+ /* @__PURE__ */ e.jsxs("div", { className: t.wrapper, children: [
214
+ u && /* @__PURE__ */ e.jsx(
215
+ "span",
216
+ {
217
+ className: c($, t.prefix),
218
+ ref: B,
219
+ "aria-disabled": d,
220
+ children: tn
221
+ }
222
+ ),
223
+ /* @__PURE__ */ e.jsx(
224
+ "input",
225
+ {
226
+ className: ln,
227
+ id: a,
228
+ ref: s,
229
+ ...J,
230
+ style: z,
231
+ "aria-labelledby": `${F}${sn}`,
232
+ "aria-describedby": dn(),
233
+ "aria-invalid": x,
234
+ "aria-disabled": p,
235
+ disabled: d,
236
+ min: j,
237
+ max: L,
238
+ readOnly: p,
239
+ required: R,
240
+ step: U,
241
+ type: "number",
242
+ value: _,
243
+ onChange: fn
244
+ }
245
+ ),
246
+ r && /* @__PURE__ */ e.jsx(
247
+ "span",
248
+ {
249
+ className: c($, t.suffix),
250
+ ref: D,
251
+ "aria-disabled": d,
252
+ children: en
253
+ }
254
+ ),
255
+ /* @__PURE__ */ e.jsx(
256
+ X,
257
+ {
258
+ hideLabel: !0,
259
+ theme: "light",
260
+ iconName: "minus",
261
+ variant: "filled",
262
+ className: un,
263
+ size: i,
264
+ onClick: pn,
265
+ disabled: d || p || !!_ && Number(_) <= j,
266
+ type: "button",
267
+ children: q
268
+ }
269
+ ),
270
+ /* @__PURE__ */ e.jsx(
271
+ X,
272
+ {
273
+ hideLabel: !0,
274
+ theme: "light",
275
+ iconName: "plus",
276
+ variant: "filled",
277
+ className: rn,
278
+ size: i,
279
+ onClick: _n,
280
+ disabled: d || p || !!_ && Number(_) >= L,
281
+ type: "button",
282
+ children: O
283
+ }
284
+ )
285
+ ] })
286
+ ] });
287
+ };
288
+ export {
289
+ Yn as DSInputStepper
290
+ };