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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (330) hide show
  1. package/README.md +0 -9
  2. package/{accordion.B3UkxlAZ.js → accordion.Rvtiu8Y4.js} +3 -3
  3. package/accordion.d.ts +1 -0
  4. package/arialiveregions.Cyycgs8g.js +27 -0
  5. package/arialiveregions.d.ts +1 -0
  6. package/assets/Accordion.i4k5SMQM.css +1 -0
  7. package/assets/CheckboxGroup.BH1Br1dg.css +1 -0
  8. package/assets/Chip.DSdLuzoi.css +1 -0
  9. package/assets/CustomReactSelect.vHt8qNKC.css +1 -0
  10. package/assets/Dialog.BgzebVk4.css +1 -0
  11. package/assets/Drawer.Bauwxrk7.css +1 -0
  12. package/assets/Fieldset.DOdTbb7C.css +1 -0
  13. package/assets/Icon.DxRSBRSL.css +1 -0
  14. package/assets/InputPassword.CG7Ugu73.css +1 -0
  15. package/assets/InputSearch.CseChMc-.css +1 -0
  16. package/assets/InputStepper.C0eAYr7P.css +1 -0
  17. package/assets/Notification.DbRapUJo.css +1 -0
  18. package/assets/RadioGroup.BfMo157q.css +1 -0
  19. package/assets/Select.D4EXgIbz.css +1 -0
  20. package/assets/Textarea.KJGPTYMz.css +1 -0
  21. package/assets/Toast.CuafTAf7.css +1 -0
  22. package/assets/arialiveregions.DhsijBaL.css +1 -0
  23. package/assets/asterisk.BfVAUBO7.css +1 -0
  24. package/assets/button.DF4RBeC2.css +1 -0
  25. package/assets/buttonround.19uK_-oO.css +1 -0
  26. package/assets/checkbox.ByOoFouu.css +1 -0
  27. package/assets/chipgroup.BzfZLbkv.css +1 -0
  28. package/assets/flag.B-RLcMcf.css +1 -0
  29. package/assets/floatingactionbutton.E9HekT6S.css +1 -0
  30. package/assets/heading.u4f8Mz94.css +1 -0
  31. package/assets/input.BAkFKPW3.css +1 -0
  32. package/assets/link.DDJj0D1U.css +1 -0
  33. package/assets/linkstandalone.DIazcjIv.css +1 -0
  34. package/assets/logo.CnW8alZU.css +1 -0
  35. package/assets/optioncheckbox.BZaWtRD7.css +1 -0
  36. package/assets/radio.X-RTl_jo.css +1 -0
  37. package/assets/skiptocontent.PTL3256m.css +1 -0
  38. package/assets/spinner.2iWJWKyA.css +1 -0
  39. package/assets/switch.gw6aa3kx.css +1 -0
  40. package/assets/systemfeedback.BPz5YlPC.css +1 -0
  41. package/assets/text.DjTG_qNb.css +1 -0
  42. package/assets/title.rosWPEG3.css +1 -0
  43. package/asterisk.DpzETKdT.js +8 -0
  44. package/asterisk.d.ts +1 -0
  45. package/button.M4nXjcUn.js +135 -0
  46. package/button.d.ts +1 -0
  47. package/buttonround.E56F_805.js +118 -0
  48. package/buttonround.d.ts +1 -0
  49. package/checkbox.Cb2_ey6U.js +111 -0
  50. package/checkbox.d.ts +1 -0
  51. package/checkboxgroup.DBDmB-zR.js +8 -0
  52. package/checkboxgroup.d.ts +1 -0
  53. package/chip.C_1tGqvZ.js +10 -0
  54. package/chip.d.ts +2 -0
  55. package/chipgroup.BvTj1ziW.js +174 -0
  56. package/chipgroup.d.ts +2 -0
  57. package/chunks/Accordion.CB6jB3s_.js +125 -0
  58. package/chunks/{AriaLiveRegions.utils.D2ni4Yrf.js → AriaLiveRegions.utils.BGSZafnS.js} +2 -2
  59. package/chunks/CheckboxGroup.S6i5EOc4.js +92 -0
  60. package/chunks/Chip.CMlPUyOJ.js +142 -0
  61. package/chunks/{CustomReactSelect.ChAtL6fu.js → CustomReactSelect.Cg_XW3YK.js} +1056 -1049
  62. package/chunks/Dialog.CudsqNag.js +148 -0
  63. package/chunks/Drawer.ueG2Bzr9.js +154 -0
  64. package/chunks/Fieldset.Cjmkgxxk.js +99 -0
  65. package/chunks/{Icon.C2o2seDb.js → Icon.BCmt_XBG.js} +45 -45
  66. package/chunks/InputPassword.CNLbBFjx.js +143 -0
  67. package/chunks/InputSearch.CHA6mkX_.js +192 -0
  68. package/chunks/InputStepper.xmWGU9pU.js +294 -0
  69. package/chunks/Notification.o6pagKQy.js +93 -0
  70. package/chunks/RadioGroup.Crj7NoOs.js +137 -0
  71. package/chunks/Select.E6gLFYLk.js +194 -0
  72. package/chunks/Textarea.DUBSOpNL.js +198 -0
  73. package/chunks/Toast.DyEi2GEP.js +89 -0
  74. package/chunks/translate.isa3FHb8.js +11 -0
  75. package/{combobox.JL1Dsn3E.js → combobox.DUzv8jzM.js} +1 -1
  76. package/combobox.d.ts +1 -0
  77. package/components/Accordion/Accordion.d.ts +0 -1
  78. package/components/Accordion/Accordion.utils.d.ts +0 -1
  79. package/components/Button/Button.d.ts +0 -1
  80. package/components/ButtonRound/ButtonRound.d.ts +0 -1
  81. package/components/Checkbox/Checkbox.d.ts +0 -1
  82. package/components/CheckboxGroup/CheckboxGroup.d.ts +6 -7
  83. package/components/CheckboxGroup/CheckboxGroup.utils.d.ts +0 -1
  84. package/components/ChipGroup/Chip.d.ts +12 -0
  85. package/components/ChipGroup/ChipGroup.d.ts +42 -0
  86. package/components/ChipGroup/ChipGroup.utils.d.ts +60 -0
  87. package/components/ChipGroup/ChipGroup.utils.test.d.ts +1 -0
  88. package/components/Combobox/Combobox.d.ts +1 -2
  89. package/components/Combobox/Combobox.utils.d.ts +6 -1
  90. package/components/{CustomReactSelect → Combobox/CustomReactSelect}/CustomReactSelect.d.ts +2 -3
  91. package/components/Combobox/CustomReactSelect/CustomReactSelect.utils.d.ts +3 -0
  92. package/components/Combobox/CustomReactSelect/CustomReactSelect.utils.test.d.ts +1 -0
  93. package/components/{CustomReactSelect → Combobox/CustomReactSelect}/OptionCheckbox.d.ts +0 -1
  94. package/components/Dialog/Dialog.d.ts +0 -1
  95. package/components/Dialog/Dialog.utils.d.ts +0 -1
  96. package/components/Drawer/Drawer.d.ts +0 -1
  97. package/components/Drawer/Drawer.utils.d.ts +0 -1
  98. package/components/Fieldset/Fieldset.d.ts +0 -1
  99. package/components/Fieldset/Fieldset.utils.d.ts +7 -1
  100. package/components/Flag/Flag.d.ts +23 -0
  101. package/components/Flag/Flag.test.d.ts +1 -0
  102. package/components/Flag/Flag.utils.d.ts +2 -0
  103. package/components/FloatingActionButton/FloatingActionButton.d.ts +0 -1
  104. package/components/Heading/Heading.d.ts +0 -1
  105. package/components/Icon/Icon.d.ts +0 -1
  106. package/components/Icon/Icon.utils.d.ts +0 -1
  107. package/components/Input/Input.d.ts +0 -1
  108. package/components/Input/Input.utils.d.ts +0 -1
  109. package/components/InputPassword/InputPassword.d.ts +0 -1
  110. package/components/InputPassword/InputPassword.utils.d.ts +0 -1
  111. package/components/InputSearch/InputSearch.d.ts +0 -1
  112. package/components/InputSearch/InputSearch.utils.d.ts +0 -1
  113. package/components/InputStepper/InputStepper.d.ts +0 -1
  114. package/components/InputStepper/InputStepper.utils.d.ts +0 -1
  115. package/components/Link/Link.d.ts +0 -1
  116. package/components/LinkStandalone/LinkStandalone.d.ts +0 -1
  117. package/components/Logo/Logo.d.ts +1 -2
  118. package/components/Logo/Logo.utils.d.ts +0 -1
  119. package/components/Notification/Notification.d.ts +0 -1
  120. package/components/Notification/Notification.utils.d.ts +0 -1
  121. package/components/Radio/Radio.d.ts +1 -2
  122. package/components/RadioGroup/RadioGroup.d.ts +7 -8
  123. package/components/RadioGroup/RadioGroup.utils.d.ts +2 -3
  124. package/components/Select/Select.d.ts +0 -1
  125. package/components/Select/Select.utils.d.ts +0 -1
  126. package/components/SkipToContent/SkipToContent.d.ts +0 -1
  127. package/components/Spinner/Spinner.d.ts +0 -1
  128. package/components/Switch/Switch.d.ts +0 -1
  129. package/components/SystemFeedback/SystemFeedback.d.ts +0 -1
  130. package/components/Text/Text.d.ts +0 -1
  131. package/components/Textarea/Textarea.d.ts +0 -1
  132. package/components/Textarea/Textarea.utils.d.ts +0 -1
  133. package/components/Title/Title.d.ts +0 -1
  134. package/components/Toast/Toast.d.ts +0 -1
  135. package/components/Toast/Toast.utils.d.ts +0 -1
  136. package/components/Toast/ToastManager.d.ts +0 -1
  137. package/customreactselect.CXmBRqQ9.js +13 -0
  138. package/customreactselect.d.ts +2 -1
  139. package/{dialog.D3bJ0rsW.js → dialog.DYlBUsOD.js} +2 -2
  140. package/dialog.d.ts +1 -0
  141. package/{drawer.CNPF1-Kc.js → drawer.CvhbP1ra.js} +2 -2
  142. package/drawer.d.ts +1 -0
  143. package/fieldset.CtUGEdLv.js +11 -0
  144. package/fieldset.d.ts +1 -0
  145. package/flag.BKpsdB_-.js +43 -0
  146. package/flag.d.ts +2 -0
  147. package/floatingactionbutton.D5L0B7zI.js +87 -0
  148. package/floatingactionbutton.d.ts +1 -0
  149. package/heading.IPIYc5vW.js +50 -0
  150. package/heading.d.ts +1 -0
  151. package/{icon.BoMgOmC1.js → icon.Ck0BpI34.js} +1 -1
  152. package/icon.d.ts +1 -0
  153. package/index.d.ts +4 -0
  154. package/index.es.js +134 -114
  155. package/input.BEnCFNM-.js +239 -0
  156. package/input.d.ts +1 -0
  157. package/{inputpassword.nsYu6YeB.js → inputpassword.B-D_jB9w.js} +4 -4
  158. package/inputpassword.d.ts +1 -0
  159. package/{inputsearch.ZGIrDrcv.js → inputsearch.CaSpklR1.js} +4 -4
  160. package/inputsearch.d.ts +1 -0
  161. package/{inputstepper.BvY36hA1.js → inputstepper.C7KD1-0S.js} +4 -4
  162. package/inputstepper.d.ts +1 -0
  163. package/link.DREJAoPG.js +116 -0
  164. package/link.d.ts +1 -0
  165. package/linkstandalone.BBoEniZ_.js +79 -0
  166. package/linkstandalone.d.ts +1 -0
  167. package/logo.Hul8qCFo.js +65 -0
  168. package/logo.d.ts +1 -0
  169. package/{notification.BAS13UQ6.js → notification.JWhrkEcE.js} +3 -3
  170. package/notification.d.ts +1 -0
  171. package/optioncheckbox.BRUTnQnJ.js +43 -0
  172. package/optioncheckbox.d.ts +2 -1
  173. package/package.json +47 -40
  174. package/partials/index.js +407 -407
  175. package/partials/lib/partials.d.ts +0 -1
  176. package/radio.DEILy_lV.js +114 -0
  177. package/radio.d.ts +1 -0
  178. package/radiogroup.DeU-HdlP.js +10 -0
  179. package/radiogroup.d.ts +1 -0
  180. package/{select.C4OZMB-V.js → select.BYraFJzz.js} +4 -4
  181. package/select.d.ts +1 -0
  182. package/skiptocontent.BxvpIB7H.js +45 -0
  183. package/skiptocontent.d.ts +1 -0
  184. package/spinner.Bq97Og-6.js +58 -0
  185. package/spinner.d.ts +1 -0
  186. package/styles/fonts/STIHLContrafaceDigitalTextDemi.woff +0 -0
  187. package/styles/fonts/STIHLContrafaceDigitalTextDemi.woff2 +0 -0
  188. package/styles/fonts/font-face.min.css +1 -1
  189. package/styles/scss/ds/index.scss +19 -0
  190. package/styles/scss/ds/lib/animation.scss +21 -0
  191. package/styles/scss/ds/lib/breakpoints.scss +15 -0
  192. package/styles/scss/ds/lib/container-query.scss +54 -0
  193. package/styles/scss/ds/lib/ds-internal/_a11y.scss +15 -0
  194. package/styles/scss/{lib → ds/lib/ds-internal}/_focus.scss +13 -15
  195. package/styles/scss/ds/lib/ds-internal/_heading.scss +37 -0
  196. package/styles/scss/ds/lib/ds-internal/_helpers.scss +32 -0
  197. package/styles/scss/ds/lib/ds-internal/_high-contrast.scss +6 -0
  198. package/styles/scss/ds/lib/ds-internal/_hover.scss +6 -0
  199. package/styles/scss/ds/lib/ds-internal/_index.scss +9 -0
  200. package/styles/scss/ds/lib/ds-internal/_link.scss +62 -0
  201. package/styles/scss/ds/lib/ds-internal/_spacing-dynamic.scss +53 -0
  202. package/styles/scss/ds/lib/ds-internal/_text.scss +30 -0
  203. package/styles/scss/ds/lib/grid-extended.scss +11 -0
  204. package/styles/scss/ds/lib/grid-full.scss +6 -0
  205. package/styles/scss/ds/lib/grid-main.scss +119 -0
  206. package/styles/scss/ds/lib/grid-narrow.scss +14 -0
  207. package/styles/scss/ds/lib/grid-sidebar-sidebar.scss +52 -0
  208. package/styles/scss/{lib/_grid-sidebar.scss → ds/lib/grid-sidebar.scss} +23 -32
  209. package/styles/scss/{lib/_grid.scss → ds/lib/grid.scss} +15 -17
  210. package/styles/scss/ds/lib/heading.scss +75 -0
  211. package/styles/scss/ds/lib/link.scss +74 -0
  212. package/styles/scss/ds/lib/media-query.scss +32 -0
  213. package/styles/scss/{lib/_shadow.scss → ds/lib/shadow.scss} +2 -2
  214. package/styles/scss/ds/lib/spacing-dynamic.scss +7 -0
  215. package/styles/scss/ds/lib/spacing.scss +20 -0
  216. package/styles/scss/ds/lib/text.scss +83 -0
  217. package/styles/scss/ds/lib/theme.scss +162 -0
  218. package/styles/scss/ds/lib/transition.scss +36 -0
  219. package/switch.DI8YYa5G.js +65 -0
  220. package/switch.d.ts +1 -0
  221. package/{systemfeedback.ZzRUAVYX.js → systemfeedback.C3Pfxxpp.js} +6 -6
  222. package/systemfeedback.d.ts +1 -0
  223. package/text.DThvTwm8.js +57 -0
  224. package/text.d.ts +1 -0
  225. package/{textarea.CtQtGqn5.js → textarea.CBvH0ljM.js} +3 -3
  226. package/textarea.d.ts +1 -0
  227. package/title.DqzdB2Gq.js +36 -0
  228. package/title.d.ts +1 -0
  229. package/toast.d.ts +1 -0
  230. package/{toast.DVd9dLs2.js → toast.n1QUINSA.js} +3 -3
  231. package/{toastmanager.Dh0gzFkM.js → toastmanager.B7EZ4JSI.js} +2 -2
  232. package/toastmanager.d.ts +1 -0
  233. package/utils/index.d.ts +1 -0
  234. package/utils/translate.d.ts +11 -0
  235. package/utils/translate.test.d.ts +1 -0
  236. package/utils/useBreakpoint.d.ts +0 -1
  237. package/utils/useIsomorphicLayoutEffect.d.ts +0 -1
  238. package/utils/vitest.setup.d.ts +0 -1
  239. package/arialiveregions.BK4T7Vhk.js +0 -27
  240. package/assets/Accordion.lFv7Q_RG.css +0 -1
  241. package/assets/CustomReactSelect.CMkn-EGK.css +0 -1
  242. package/assets/Dialog.fiQvxJg_.css +0 -1
  243. package/assets/Drawer.BqBgbSuP.css +0 -1
  244. package/assets/Fieldset.qHYeUFZt.css +0 -1
  245. package/assets/Icon.Duy_0R8w.css +0 -1
  246. package/assets/InputPassword.Cf394z47.css +0 -1
  247. package/assets/InputSearch.eCRQoxjN.css +0 -1
  248. package/assets/InputStepper.B80KulYE.css +0 -1
  249. package/assets/Notification.DK6agBGS.css +0 -1
  250. package/assets/RadioGroup.Bz3_xkZU.css +0 -1
  251. package/assets/Select.BptsMxz4.css +0 -1
  252. package/assets/Textarea.CIIVh03G.css +0 -1
  253. package/assets/Toast.Dsvs1zdM.css +0 -1
  254. package/assets/arialiveregions.GsGx2USO.css +0 -1
  255. package/assets/asterisk.DlJ4YtSZ.css +0 -1
  256. package/assets/button.B1O7Yw3Q.css +0 -1
  257. package/assets/buttonround.DlH_ipDo.css +0 -1
  258. package/assets/checkbox.K4CVYK9g.css +0 -1
  259. package/assets/floatingactionbutton.DRYentYC.css +0 -1
  260. package/assets/heading.6bER-Eac.css +0 -1
  261. package/assets/input.C0MrSbQu.css +0 -1
  262. package/assets/link.vtTST2ki.css +0 -1
  263. package/assets/linkstandalone.BtAcziZ7.css +0 -1
  264. package/assets/logo.pETQEsvZ.css +0 -1
  265. package/assets/optioncheckbox.BJJAph5_.css +0 -1
  266. package/assets/radio.9kpIO3HC.css +0 -1
  267. package/assets/skiptocontent.CHcqLS7S.css +0 -1
  268. package/assets/spinner.D_Nnf1ZG.css +0 -1
  269. package/assets/switch.2DQF2zH-.css +0 -1
  270. package/assets/systemfeedback.Sq0bAIyf.css +0 -1
  271. package/assets/text.Dhb_l50R.css +0 -1
  272. package/assets/title.f74Bosn-.css +0 -1
  273. package/asterisk.DDn-yX4P.js +0 -8
  274. package/button.DH0h6uPs.js +0 -135
  275. package/buttonround.0mw4zzlU.js +0 -118
  276. package/checkbox.DETR3e3X.js +0 -112
  277. package/checkboxgroup.CZqrlF-x.js +0 -9
  278. package/chunks/Accordion.pI3JyHJL.js +0 -125
  279. package/chunks/CheckboxGroup.4J_gZ_XJ.js +0 -87
  280. package/chunks/Dialog.Z5ESJQMi.js +0 -148
  281. package/chunks/Drawer.BdowMqE0.js +0 -154
  282. package/chunks/Fieldset.COGbZwry.js +0 -99
  283. package/chunks/InputPassword.Dgo95-PU.js +0 -140
  284. package/chunks/InputSearch.BFof0pBn.js +0 -189
  285. package/chunks/InputStepper.4IqLa5tX.js +0 -291
  286. package/chunks/Notification.BhwbaXqk.js +0 -93
  287. package/chunks/RadioGroup.C5jbCJM4.js +0 -132
  288. package/chunks/RadioGroup.module.BBZwHDjW.js +0 -11
  289. package/chunks/Select.fXeQJXtz.js +0 -191
  290. package/chunks/Textarea.Bewrp0Za.js +0 -195
  291. package/chunks/Toast.DA_CQ9J-.js +0 -89
  292. package/components/CustomReactSelect/CustomReactSelect.utils.d.ts +0 -16
  293. package/customreactselect.Dg8Kgq3e.js +0 -13
  294. package/fieldset.CTshPWYX.js +0 -11
  295. package/floatingactionbutton.CCIj9Fjr.js +0 -87
  296. package/heading.CAkraI2D.js +0 -50
  297. package/input.CTgeAYdu.js +0 -236
  298. package/link.DAZNwQ0a.js +0 -116
  299. package/linkstandalone.C9X3er7g.js +0 -80
  300. package/logo.CEO6OV7u.js +0 -65
  301. package/optioncheckbox.DZWwtx6f.js +0 -43
  302. package/radio.CWGJtmKl.js +0 -115
  303. package/radiogroup.BhffFqN3.js +0 -11
  304. package/skiptocontent.C4yQfWr2.js +0 -46
  305. package/spinner.D-xrotcu.js +0 -58
  306. package/styles/scss/_index.scss +0 -23
  307. package/styles/scss/lib/_a11y.scss +0 -15
  308. package/styles/scss/lib/_animation.scss +0 -21
  309. package/styles/scss/lib/_breakpoints.scss +0 -16
  310. package/styles/scss/lib/_container-query.scss +0 -58
  311. package/styles/scss/lib/_grid-extended.scss +0 -11
  312. package/styles/scss/lib/_grid-full.scss +0 -6
  313. package/styles/scss/lib/_grid-main.scss +0 -117
  314. package/styles/scss/lib/_grid-narrow.scss +0 -16
  315. package/styles/scss/lib/_grid-sidebar-sidebar.scss +0 -50
  316. package/styles/scss/lib/_heading.scss +0 -107
  317. package/styles/scss/lib/_helpers.scss +0 -15
  318. package/styles/scss/lib/_high-contrast.scss +0 -24
  319. package/styles/scss/lib/_hover.scss +0 -10
  320. package/styles/scss/lib/_link.scss +0 -126
  321. package/styles/scss/lib/_media-query.scss +0 -32
  322. package/styles/scss/lib/_spacing.scss +0 -32
  323. package/styles/scss/lib/_text.scss +0 -110
  324. package/styles/scss/lib/_theme.scss +0 -162
  325. package/styles/scss/lib/_transition.scss +0 -45
  326. package/switch.CmpNUC7s.js +0 -65
  327. package/text.rgDKQBrU.js +0 -57
  328. package/title.LY1ylQsb.js +0 -36
  329. package/utils/render-in-iframe.d.ts +0 -15
  330. /package/components/{CustomReactSelect/CustomReactSelect.utils.test.d.ts → ChipGroup/ChipGroup.test.d.ts} +0 -0
package/input.CTgeAYdu.js DELETED
@@ -1,236 +0,0 @@
1
- "use client";
2
- import { j as a } from "./chunks/jsx-runtime.C115EyI4.js";
3
- import { c as l } from "./chunks/index.CvOaL64Y.js";
4
- import { useState as m, useRef as v, useEffect as ti } from "react";
5
- import { u as si } from "./chunks/useBreakpoint.5xBNDiCf.js";
6
- import { v as ei, b as li, M as oi, a as ui, u as w, s as ci, c as di, i as C } from "./chunks/Input.utils.ChV6RJsh.js";
7
- import { Asterisk as _i } from "./asterisk.DDn-yX4P.js";
8
- import { DSButton as E } from "./button.DH0h6uPs.js";
9
- import { D as fi } from "./chunks/Icon.C2o2seDb.js";
10
- import { DSSystemFeedback as ri } from "./systemfeedback.ZzRUAVYX.js";
11
- import './assets/input.C0MrSbQu.css';const pi = "_input_13i6u_226", mi = "_input--invalid_13i6u_338", hi = "_input--small_13i6u_345", bi = "_input--has-leading-icon_13i6u_399", xi = "_input--has-action-button_13i6u_402", gi = "_input--has-second-action-button_13i6u_405", Ii = "_input--has-affix_13i6u_417", Si = "_input--is-ready_13i6u_431", yi = "_root_13i6u_438", Hi = "_hint_13i6u_446", ki = "_label_13i6u_446", vi = "_wrapper_13i6u_450", Ci = "_affix_13i6u_456", Ri = "_affix--small_13i6u_478", ji = "_affix--disabled_13i6u_492", Di = "_prefix_13i6u_495", Li = "_affix--readonly_13i6u_498", Ai = "_suffix_13i6u_508", Ni = "_leading-icon_13i6u_515", Bi = "_leading-icon--small_13i6u_527", wi = "_leading-icon--disabled_13i6u_530", Ei = "_action-button_13i6u_539", Ti = "_label--hidden_13i6u_558", Fi = "_feedback_13i6u_587", i = {
12
- input: pi,
13
- "input--invalid": "_input--invalid_13i6u_338",
14
- inputInvalid: mi,
15
- "input--small": "_input--small_13i6u_345",
16
- inputSmall: hi,
17
- "input--has-leading-icon": "_input--has-leading-icon_13i6u_399",
18
- inputHasLeadingIcon: bi,
19
- "input--has-action-button": "_input--has-action-button_13i6u_402",
20
- inputHasActionButton: xi,
21
- "input--has-second-action-button": "_input--has-second-action-button_13i6u_405",
22
- inputHasSecondActionButton: gi,
23
- "input--has-affix": "_input--has-affix_13i6u_417",
24
- inputHasAffix: Ii,
25
- "input--is-ready": "_input--is-ready_13i6u_431",
26
- inputIsReady: Si,
27
- root: yi,
28
- hint: Hi,
29
- label: ki,
30
- wrapper: vi,
31
- affix: Ci,
32
- "affix--small": "_affix--small_13i6u_478",
33
- affixSmall: Ri,
34
- "affix--disabled": "_affix--disabled_13i6u_492",
35
- affixDisabled: ji,
36
- prefix: Di,
37
- "affix--readonly": "_affix--readonly_13i6u_498",
38
- affixReadonly: Li,
39
- suffix: Ai,
40
- "leading-icon": "_leading-icon_13i6u_515",
41
- leadingIcon: Ni,
42
- "leading-icon--small": "_leading-icon--small_13i6u_527",
43
- leadingIconSmall: Bi,
44
- "leading-icon--disabled": "_leading-icon--disabled_13i6u_530",
45
- leadingIconDisabled: wi,
46
- "action-button": "_action-button_13i6u_539",
47
- actionButton: Ei,
48
- "label--hidden": "_label--hidden_13i6u_558",
49
- labelHidden: Ti,
50
- feedback: Fi
51
- }, Ji = ({
52
- id: c,
53
- label: R,
54
- actionButtonLabel: T,
55
- actionButtonIconName: _,
56
- actionButtonIconSource: h,
57
- actionButtonOnClick: F,
58
- className: P,
59
- disabled: t = !1,
60
- hint: b,
61
- hideLabel: O = !1,
62
- invalid: f = !1,
63
- leadingIconName: r,
64
- leadingIconSource: p,
65
- prefix: s,
66
- readonly: d = !1,
67
- required: j = !1,
68
- size: e = "medium",
69
- suffix: n,
70
- systemFeedback: x,
71
- type: o = "text",
72
- ...$
73
- }) => {
74
- process.env.NODE_ENV !== "production" && (ei({
75
- id: c,
76
- label: R,
77
- prefix: s,
78
- suffix: n,
79
- leadingIconName: r,
80
- leadingIconSource: p,
81
- actionButtonIconName: _,
82
- actionButtonIconSource: h
83
- }), li(o));
84
- const [W, X] = m(!1), [M, V] = m(!1), [g, G] = m(!1), [U, J] = m({}), I = v(null), K = s == null ? void 0 : s.substring(0, oi), S = v(null), Q = n == null ? void 0 : n.substring(0, ui), y = v(null), Y = si(O);
85
- w(() => {
86
- const u = e === "medium" ? 16 : 8, H = {};
87
- if (S.current) {
88
- const k = S.current.offsetWidth;
89
- H.paddingInlineStart = u + k + "px";
90
- }
91
- if (y.current) {
92
- const k = y.current.offsetWidth;
93
- H.paddingInlineEnd = u + k + "px";
94
- }
95
- J(H), X(!0);
96
- }, [s, n, e, M]), w(() => {
97
- (async () => {
98
- "fonts" in document && (await document.fonts.load(
99
- '1em "STIHL Contraface Digital Text Regular"'
100
- ), V(!0));
101
- })();
102
- }, []), ti(() => {
103
- const u = ci(
104
- C(o),
105
- di(o)
106
- );
107
- G(u);
108
- }, [o]);
109
- const D = l(i.affix, {
110
- [i.affixSmall]: e === "small",
111
- [i.affixDisabled]: t,
112
- [i.affixReadonly]: d
113
- }), L = `${c}-label`, A = `${c}-feedback`, N = `${c}-hint`, Z = b ? ` ${N}` : "", q = l(i.root, P), z = l(i.input, {
114
- // small input
115
- [i.inputSmall]: e === "small",
116
- // invalid state
117
- [i.inputInvalid]: f,
118
- // leading icon
119
- [i.inputHasLeadingIcon]: r || p,
120
- // prefix/suffix
121
- [i.inputHasAffix]: s || n,
122
- // action button
123
- [i.inputHasActionButton]: _ || h || g,
124
- [i.inputIsReady]: W
125
- }), ii = l(i.label, {
126
- // hide label only visually to keep them available for assistive technologies
127
- [i.labelHidden]: Y
128
- }), ai = l(i.leadingIcon, {
129
- [i.leadingIconSmall]: e === "small",
130
- [i.leadingIconDisabled]: t
131
- }), B = l(i.actionButton, {
132
- [i.actionButtonSmall]: e === "small"
133
- }), ni = (u) => {
134
- I.current && !t && !d && I.current.showPicker(), u.preventDefault();
135
- };
136
- return /* @__PURE__ */ a.jsxs("div", { className: q, children: [
137
- /* @__PURE__ */ a.jsxs("label", { className: ii, id: L, htmlFor: c, children: [
138
- R,
139
- j && /* @__PURE__ */ a.jsx(_i, {})
140
- ] }),
141
- b && /* @__PURE__ */ a.jsx("div", { className: i.hint, id: N, children: b }),
142
- f && x && /* @__PURE__ */ a.jsx(
143
- ri,
144
- {
145
- className: i.feedback,
146
- message: x,
147
- type: "invalid",
148
- id: A
149
- }
150
- ),
151
- /* @__PURE__ */ a.jsxs("div", { className: i.wrapper, children: [
152
- s && /* @__PURE__ */ a.jsx(
153
- "span",
154
- {
155
- className: l(D, i.prefix),
156
- ref: S,
157
- "aria-disabled": t,
158
- children: K
159
- }
160
- ),
161
- !s && (r || p) && /* @__PURE__ */ a.jsx(
162
- fi,
163
- {
164
- name: r,
165
- theme: "light",
166
- source: p,
167
- className: ai,
168
- "aria-hidden": "true"
169
- }
170
- ),
171
- /* @__PURE__ */ a.jsx(
172
- "input",
173
- {
174
- type: o,
175
- className: z,
176
- id: c,
177
- ref: I,
178
- ...$,
179
- style: U,
180
- "aria-labelledby": `${L}${Z}`,
181
- "aria-describedby": f && x ? A : void 0,
182
- "aria-invalid": f,
183
- "aria-disabled": d,
184
- readOnly: d,
185
- required: j,
186
- disabled: t
187
- }
188
- ),
189
- n && /* @__PURE__ */ a.jsx(
190
- "span",
191
- {
192
- className: l(D, i.suffix),
193
- ref: y,
194
- "aria-disabled": t,
195
- children: Q
196
- }
197
- ),
198
- !n && !g && (_ || h) && /* @__PURE__ */ a.jsx(
199
- E,
200
- {
201
- hideLabel: !0,
202
- theme: "light",
203
- iconName: _,
204
- variant: "ghost",
205
- className: B,
206
- size: e,
207
- onClick: F,
208
- type: "button",
209
- disabled: t || d,
210
- children: T
211
- }
212
- ),
213
- !n && g && !d && !t && /* @__PURE__ */ a.jsxs(
214
- E,
215
- {
216
- hideLabel: !0,
217
- theme: "light",
218
- iconName: C(o) ? "calendar" : "clock",
219
- variant: "ghost",
220
- className: B,
221
- size: e,
222
- onClick: ni,
223
- type: "button",
224
- children: [
225
- "Open ",
226
- C(o) ? "date" : "time",
227
- " picker"
228
- ]
229
- }
230
- )
231
- ] })
232
- ] });
233
- };
234
- export {
235
- Ji as DSInput
236
- };
package/link.DAZNwQ0a.js DELETED
@@ -1,116 +0,0 @@
1
- "use client";
2
- import { j as _ } from "./chunks/jsx-runtime.C115EyI4.js";
3
- import { c as e } from "./chunks/index.CvOaL64Y.js";
4
- import { u as i } from "./chunks/useBreakpoint.5xBNDiCf.js";
5
- import "react";
6
- import { D as H } from "./chunks/Icon.C2o2seDb.js";
7
- import './assets/link.vtTST2ki.css';const S = "_root_unbkm_151", x = "_root--highlight_unbkm_220", j = "_root--dark-highlight_unbkm_220", L = "_root--filled_unbkm_298", C = "_root--outline_unbkm_326", N = "_root--ghost_unbkm_353", T = "_root--ghost-flush_unbkm_378", B = "_root--small_unbkm_384", E = "_root--dark-filled_unbkm_461", R = "_root--dark-outline_unbkm_520", V = "_root--dark-ghost_unbkm_578", q = "_root--dark-ghost-flush_unbkm_634", w = "_root--icon-left_unbkm_693", A = "_root--icon-only_unbkm_709", J = "_root--icon-only-small_unbkm_718", K = "_label--hidden_unbkm_729", o = {
8
- root: S,
9
- "root--highlight": "_root--highlight_unbkm_220",
10
- rootHighlight: x,
11
- "root--dark-highlight": "_root--dark-highlight_unbkm_220",
12
- rootDarkHighlight: j,
13
- "root--filled": "_root--filled_unbkm_298",
14
- rootFilled: L,
15
- "root--outline": "_root--outline_unbkm_326",
16
- rootOutline: C,
17
- "root--ghost": "_root--ghost_unbkm_353",
18
- rootGhost: N,
19
- "root--ghost-flush": "_root--ghost-flush_unbkm_378",
20
- rootGhostFlush: T,
21
- "root--small": "_root--small_unbkm_384",
22
- rootSmall: B,
23
- "root--dark-filled": "_root--dark-filled_unbkm_461",
24
- rootDarkFilled: E,
25
- "root--dark-outline": "_root--dark-outline_unbkm_520",
26
- rootDarkOutline: R,
27
- "root--dark-ghost": "_root--dark-ghost_unbkm_578",
28
- rootDarkGhost: V,
29
- "root--dark-ghost-flush": "_root--dark-ghost-flush_unbkm_634",
30
- rootDarkGhostFlush: q,
31
- "root--icon-left": "_root--icon-left_unbkm_693",
32
- rootIconLeft: w,
33
- "root--icon-only": "_root--icon-only_unbkm_709",
34
- rootIconOnly: A,
35
- "root--icon-only-small": "_root--icon-only-small_unbkm_718",
36
- rootIconOnlySmall: J,
37
- "label--hidden": "_label--hidden_unbkm_729",
38
- labelHidden: K
39
- }, X = ({
40
- children: d,
41
- aria: m,
42
- className: g,
43
- dataTrackingid: c,
44
- download: b,
45
- hideLabel: n = !1,
46
- href: h,
47
- iconName: k,
48
- iconPosition: f = "left",
49
- iconSource: u,
50
- isFlush: r = !1,
51
- referrerPolicy: D,
52
- rel: y,
53
- size: s = "medium",
54
- target: G = "_self",
55
- theme: l = "light",
56
- variant: t = "filled",
57
- ...O
58
- }) => {
59
- const p = e(o.root, g, {
60
- // variant
61
- [o.rootFilled]: t === "filled",
62
- [o.rootHighlight]: t === "highlight",
63
- [o.rootOutline]: t === "outline",
64
- [o.rootGhost]: t === "ghost" && r !== !0,
65
- // isFlush
66
- [o.rootGhostFlush]: t === "ghost" && r === !0,
67
- // dark theme
68
- [o.rootDarkFilled]: l === "dark" && t === "filled",
69
- [o.rootDarkHighlight]: l === "dark" && t === "highlight",
70
- [o.rootDarkOutline]: l === "dark" && t === "outline",
71
- [o.rootDarkGhost]: l === "dark" && t === "ghost" && r !== !0,
72
- // dark isFlush
73
- [o.rootDarkGhostFlush]: l === "dark" && t === "ghost" && r === !0,
74
- // size
75
- [o.rootSmall]: s === "small",
76
- // icon position
77
- [o.rootIconLeft]: f === "left",
78
- // icon only
79
- [o.rootIconOnly]: i(n) && s === "medium",
80
- [o.rootIconOnlySmall]: i(n) && s === "small"
81
- }), I = e({
82
- // hide label only visually to keep them available for assistive technologies
83
- [o.labelHidden]: i(n)
84
- }), F = l === "light" && t === "filled" || l === "dark" && t === "outline" || l === "dark" && t === "ghost" ? "dark" : "light", a = h === void 0 ? "span" : "a";
85
- return /* @__PURE__ */ _.jsxs(
86
- a,
87
- {
88
- className: p,
89
- "data-trackingid": c,
90
- ...a === "a" && {
91
- href: h,
92
- target: G,
93
- rel: y,
94
- referrerPolicy: D,
95
- download: b
96
- },
97
- ...m,
98
- ...O,
99
- children: [
100
- /* @__PURE__ */ _.jsx("span", { className: I, children: d }),
101
- (k || u) && /* @__PURE__ */ _.jsx(
102
- H,
103
- {
104
- name: k,
105
- theme: F,
106
- source: u,
107
- "aria-hidden": "true"
108
- }
109
- )
110
- ]
111
- }
112
- );
113
- };
114
- export {
115
- X as DSLink
116
- };
@@ -1,80 +0,0 @@
1
- "use client";
2
- import { j as t } from "./chunks/jsx-runtime.C115EyI4.js";
3
- import { c as D } from "./chunks/index.CvOaL64Y.js";
4
- import { D as p } from "./chunks/Icon.C2o2seDb.js";
5
- import "react";
6
- import './assets/linkstandalone.BtAcziZ7.css';const x = "_link-standalone_cjaj8_76", H = "_link-standalone--highlight_cjaj8_141", v = "_link-standalone--neutral-dark_cjaj8_155", L = "_link-standalone--highlight-dark_cjaj8_201", N = "_link-standalone--active_cjaj8_247", I = "_link-standalone--icon-left_cjaj8_254", n = {
7
- "link-standalone": "_link-standalone_cjaj8_76",
8
- linkStandalone: x,
9
- "link-standalone--highlight": "_link-standalone--highlight_cjaj8_141",
10
- linkStandaloneHighlight: H,
11
- "link-standalone--neutral-dark": "_link-standalone--neutral-dark_cjaj8_155",
12
- linkStandaloneNeutralDark: v,
13
- "link-standalone--highlight-dark": "_link-standalone--highlight-dark_cjaj8_201",
14
- linkStandaloneHighlightDark: L,
15
- "link-standalone--active": "_link-standalone--active_cjaj8_247",
16
- linkStandaloneActive: N,
17
- "link-standalone--icon-left": "_link-standalone--icon-left_cjaj8_254",
18
- linkStandaloneIconLeft: I
19
- }, C = ({
20
- children: s,
21
- aria: d,
22
- active: c,
23
- className: _,
24
- dataTrackingid: h,
25
- download: r,
26
- href: i,
27
- iconName: e,
28
- iconPosition: g = "left",
29
- iconSource: o,
30
- referrerPolicy: j,
31
- rel: S,
32
- target: u = "_self",
33
- theme: a = "light",
34
- variant: l = "neutral",
35
- ...f
36
- }) => {
37
- const m = D(n.linkStandalone, _, {
38
- // variant
39
- [n.linkStandaloneHighlight]: l === "highlight",
40
- // theme
41
- [n.linkStandaloneNeutralDark]: a === "dark" && l === "neutral",
42
- [n.linkStandaloneHighlightDark]: a === "dark" && l === "highlight",
43
- // active
44
- [n.linkStandaloneActive]: c,
45
- // icon position
46
- [n.linkStandaloneIconLeft]: g === "left"
47
- }), k = i === void 0 ? "span" : "a";
48
- return /* @__PURE__ */ t.jsxs(
49
- k,
50
- {
51
- className: m,
52
- "data-trackingid": h,
53
- ...k === "a" && {
54
- href: i,
55
- target: u,
56
- rel: S,
57
- referrerPolicy: j,
58
- download: r
59
- },
60
- ...d,
61
- ...f,
62
- children: [
63
- /* @__PURE__ */ t.jsx("span", { className: n.label, children: s }),
64
- (e || o) && /* @__PURE__ */ t.jsx(
65
- p,
66
- {
67
- name: e,
68
- theme: a,
69
- source: o,
70
- size: "medium",
71
- "aria-hidden": "true"
72
- }
73
- )
74
- ]
75
- }
76
- );
77
- };
78
- export {
79
- C as DSLinkStandalone
80
- };
package/logo.CEO6OV7u.js DELETED
@@ -1,65 +0,0 @@
1
- "use client";
2
- import { j as a } from "./chunks/jsx-runtime.C115EyI4.js";
3
- import { c as o } from "./chunks/index.CvOaL64Y.js";
4
- import './assets/logo.pETQEsvZ.css';const d = "_anchor_q0uqp_76", e = "_svg_q0uqp_77", k = "_svg-background_q0uqp_117", u = "_svg-background--dark_q0uqp_120", x = "_svg-text_q0uqp_123", q = "_svg-text--dark_q0uqp_126", s = {
5
- anchor: d,
6
- svg: e,
7
- "svg-background": "_svg-background_q0uqp_117",
8
- svgBackground: k,
9
- "svg-background--dark": "_svg-background--dark_q0uqp_120",
10
- svgBackgroundDark: u,
11
- "svg-text": "_svg-text_q0uqp_123",
12
- svgText: x,
13
- "svg-text--dark": "_svg-text--dark_q0uqp_126",
14
- svgTextDark: q
15
- }, m = ({
16
- aria: n,
17
- className: t,
18
- href: g,
19
- target: l = "_self",
20
- theme: v = "light",
21
- variant: _ = "standard",
22
- ...h
23
- }) => {
24
- const r = _ === "background" || v === "dark", c = /* @__PURE__ */ a.jsxs(
25
- "svg",
26
- {
27
- xmlns: "http://www.w3.org/2000/svg",
28
- className: o(s.svg, !g && t),
29
- viewBox: "0 0 408 179",
30
- width: "100%",
31
- height: "100%",
32
- children: [
33
- /* @__PURE__ */ a.jsx("title", { children: "STIHL" }),
34
- /* @__PURE__ */ a.jsx(
35
- "path",
36
- {
37
- className: r ? s.svgBackgroundDark : s.svgBackground,
38
- d: "M408 0H0v179h408V0Z"
39
- }
40
- ),
41
- /* @__PURE__ */ a.jsx(
42
- "path",
43
- {
44
- className: r ? s.svgTextDark : s.svgText,
45
- d: "M195.459 56.314h-61.656l-4.936 16.193h20.668l-15.304 50.179h20.106l15.293-50.18h20.893l4.936-16.192ZM62.286 66.62l-5.353 17.558c-2.384 7.814 1.957 13.531 9.637 13.531h25.065a1.626 1.626 0 0 1 1.288.7 1.638 1.638 0 0 1 .207 1.454l-1.349 4.42a3.37 3.37 0 0 1-2.8 2.154H49.624l-4.993 16.249h50.816c5.622 0 10.39-2.605 12.842-10.645l5.094-16.677c2.406-7.894-2.081-13.532-9.086-13.532H79.108c-1.394 0-1.945-1.015-1.563-2.255l1.35-4.42a3.385 3.385 0 0 1 1.185-1.872 3.368 3.368 0 0 1 2.087-.733h36.253l4.937-16.193H75.251c-6.87-.045-11.155 4.364-12.965 10.261ZM320.571 106.493l15.304-50.18h-20.218l-20.23 66.373h63.017l4.936-16.193h-42.809ZM282.653 56.314l-7.771 25.484H250.83l7.77-25.484h-19.319l-20.23 66.372h19.308l7.736-25.372h24.053l-7.725 25.372h19.836l20.23-66.372h-19.836ZM205.917 56.314l-20.229 66.372h20.218l20.23-66.372h-20.219Z"
46
- }
47
- )
48
- ]
49
- }
50
- );
51
- return g ? /* @__PURE__ */ a.jsx(
52
- "a",
53
- {
54
- className: o(s.anchor, t),
55
- href: g,
56
- target: l,
57
- ...n,
58
- ...h,
59
- children: c
60
- }
61
- ) : c;
62
- };
63
- export {
64
- m as DSLogo
65
- };
@@ -1,43 +0,0 @@
1
- "use client";
2
- import { j as o } from "./chunks/jsx-runtime.C115EyI4.js";
3
- import { c as s } from "./chunks/index.CvOaL64Y.js";
4
- import { D as _ } from "./chunks/Icon.C2o2seDb.js";
5
- import './assets/optioncheckbox.BJJAph5_.css';const l = "_root_oj6mx_151", i = "_root--disabled_oj6mx_172", k = "_checkbox_oj6mx_176", d = "_icon-check_oj6mx_192", n = "_checkbox--checked_oj6mx_213", r = "_checkbox--disabled_oj6mx_216", m = "_label_oj6mx_233", c = {
6
- root: l,
7
- "root--disabled": "_root--disabled_oj6mx_172",
8
- rootDisabled: i,
9
- checkbox: k,
10
- "icon-check": "_icon-check_oj6mx_192",
11
- iconCheck: d,
12
- "checkbox--checked": "_checkbox--checked_oj6mx_213",
13
- checkboxChecked: n,
14
- "checkbox--disabled": "_checkbox--disabled_oj6mx_216",
15
- checkboxDisabled: r,
16
- label: m
17
- }, D = ({
18
- label: x,
19
- checked: h,
20
- className: a,
21
- disabled: e
22
- }) => {
23
- const b = s(c.root, {
24
- [c.rootDisabled]: e
25
- }), t = s(c.checkbox, {
26
- [c.checkboxDisabled]: e,
27
- [c.checkboxChecked]: h
28
- });
29
- return /* @__PURE__ */ o.jsx("div", { className: a, children: /* @__PURE__ */ o.jsxs("div", { className: b, children: [
30
- /* @__PURE__ */ o.jsx("span", { className: t, children: /* @__PURE__ */ o.jsx(
31
- _,
32
- {
33
- name: "check",
34
- className: c.iconCheck,
35
- "aria-hidden": "true"
36
- }
37
- ) }),
38
- /* @__PURE__ */ o.jsx("span", { className: c.label, children: x })
39
- ] }) });
40
- };
41
- export {
42
- D as OptionCheckbox
43
- };
package/radio.CWGJtmKl.js DELETED
@@ -1,115 +0,0 @@
1
- "use client";
2
- import { j as i } from "./chunks/jsx-runtime.C115EyI4.js";
3
- import { c as _ } from "./chunks/index.CvOaL64Y.js";
4
- import { forwardRef as $, useRef as y, useState as E, useEffect as L, useCallback as O } from "react";
5
- import { u as P } from "./chunks/useBreakpoint.5xBNDiCf.js";
6
- import './assets/radio.9kpIO3HC.css';const C = (n) => n.replace(/\s+/g, ""), U = "_radio-root_o7n7v_76", q = "_radio-root--disabled_o7n7v_97", z = "_radio-root--with-custom-area_o7n7v_100", F = "_radio_o7n7v_76", G = "_dot_o7n7v_121", J = "_radio--invalid_o7n7v_145", K = "_label_o7n7v_150", M = "_label--bold_o7n7v_165", Q = "_label--hidden_o7n7v_177", T = "_label--with-custom-area_o7n7v_189", X = "_custom-area_o7n7v_193", Y = "_hint_o7n7v_201", Z = "_hint--visible_o7n7v_225", oo = "_hint--unchecked-hidden_o7n7v_229", eo = "_hint--hidden_o7n7v_234", to = "_input_o7n7v_247", o = {
7
- "radio-root": "_radio-root_o7n7v_76",
8
- radioRoot: U,
9
- "radio-root--disabled": "_radio-root--disabled_o7n7v_97",
10
- radioRootDisabled: q,
11
- "radio-root--with-custom-area": "_radio-root--with-custom-area_o7n7v_100",
12
- radioRootWithCustomArea: z,
13
- radio: F,
14
- dot: G,
15
- "radio--invalid": "_radio--invalid_o7n7v_145",
16
- radioInvalid: J,
17
- label: K,
18
- "label--bold": "_label--bold_o7n7v_165",
19
- labelBold: M,
20
- "label--hidden": "_label--hidden_o7n7v_177",
21
- labelHidden: Q,
22
- "label--with-custom-area": "_label--with-custom-area_o7n7v_189",
23
- labelWithCustomArea: T,
24
- "custom-area": "_custom-area_o7n7v_193",
25
- customArea: X,
26
- hint: Y,
27
- "hint--visible": "_hint--visible_o7n7v_225",
28
- hintVisible: Z,
29
- "hint--unchecked-hidden": "_hint--unchecked-hidden_o7n7v_229",
30
- hintUncheckedHidden: oo,
31
- "hint--hidden": "_hint--hidden_o7n7v_234",
32
- hintHidden: eo,
33
- input: to
34
- }, io = $(
35
- ({
36
- label: n,
37
- name: v,
38
- value: b,
39
- checked: m,
40
- className: R,
41
- customArea: a,
42
- defaultChecked: x = !1,
43
- disabled: s = !1,
44
- hideLabel: k = !1,
45
- hint: l,
46
- invalid: j = !1,
47
- isBold: N = !1,
48
- hideUncheckedHint: r = !1,
49
- onChange: h,
50
- ...g
51
- }, d) => {
52
- const H = y(null), e = y(null), [w, D] = E(x), u = m !== void 0, c = u ? m : w;
53
- L(() => {
54
- e.current && r && ((e.current.style.height === "0px" || e.current.style.height === "") && c ? (e.current.style.height = `${e.current.scrollHeight}px`, e.current.style.opacity = "1") : (e.current.style.opacity = "0", e.current.style.height = "0px"));
55
- }, [e, c]);
56
- const f = P(k), A = _(
57
- o.radioRoot,
58
- {
59
- [o.radioRootDisabled]: s,
60
- [o.radioRootWithCustomArea]: !!a
61
- },
62
- R
63
- ), W = _(o.label, {
64
- [o.labelBold]: N,
65
- // hide label only visually to keep them available for assistive technologies
66
- [o.labelHidden]: f,
67
- [o.labelWithCustomArea]: !!a
68
- }), B = () => !r && l ? !0 : !!(r && l && c), V = _(o.hint, {
69
- [o.hintHidden]: f,
70
- [o.hintUncheckedHidden]: r,
71
- [o.hintVisible]: B()
72
- }), I = _(o.radio, {
73
- [o.radioInvalid]: j
74
- }), S = O(
75
- (t) => {
76
- if (s) {
77
- t.preventDefault();
78
- return;
79
- }
80
- u || D(t.target.checked), h && h(t);
81
- },
82
- [s, u, h]
83
- ), p = l ? `${C(v)}-${C(b)}-description` : void 0;
84
- return /* @__PURE__ */ i.jsxs("label", { className: A, children: [
85
- /* @__PURE__ */ i.jsx(
86
- "input",
87
- {
88
- type: "radio",
89
- value: b,
90
- name: v,
91
- className: o.input,
92
- ref: (t) => {
93
- typeof d == "function" ? d(t) : d !== null && (d.current = t), H.current = t;
94
- },
95
- onChange: S,
96
- ...g,
97
- disabled: s,
98
- checked: c,
99
- "aria-label": typeof n == "string" ? n : void 0,
100
- "aria-describedby": p
101
- }
102
- ),
103
- /* @__PURE__ */ i.jsx("span", { className: I, children: /* @__PURE__ */ i.jsx("div", { className: o.dot }) }),
104
- /* @__PURE__ */ i.jsxs("span", { className: W, children: [
105
- n,
106
- a && /* @__PURE__ */ i.jsx("div", { className: o.customArea, children: a }),
107
- /* @__PURE__ */ i.jsx("span", { id: p, className: V, ref: e, children: l })
108
- ] })
109
- ] });
110
- }
111
- );
112
- io.displayName = "DSRadio";
113
- export {
114
- io as DSRadio
115
- };
@@ -1,11 +0,0 @@
1
- "use client";
2
- import "./chunks/jsx-runtime.C115EyI4.js";
3
- import "./chunks/index.CvOaL64Y.js";
4
- import "react";
5
- import "./chunks/Fieldset.COGbZwry.js";
6
- import "./radio.CWGJtmKl.js";
7
- import "./chunks/RadioGroup.module.BBZwHDjW.js";
8
- import { D as s } from "./chunks/RadioGroup.C5jbCJM4.js";
9
- export {
10
- s as DSRadioGroup
11
- };