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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (330) hide show
  1. package/README.md +0 -9
  2. package/{accordion.B3UkxlAZ.js → accordion.Rvtiu8Y4.js} +3 -3
  3. package/accordion.d.ts +1 -0
  4. package/arialiveregions.Cyycgs8g.js +27 -0
  5. package/arialiveregions.d.ts +1 -0
  6. package/assets/Accordion.i4k5SMQM.css +1 -0
  7. package/assets/CheckboxGroup.BH1Br1dg.css +1 -0
  8. package/assets/Chip.DSdLuzoi.css +1 -0
  9. package/assets/CustomReactSelect.vHt8qNKC.css +1 -0
  10. package/assets/Dialog.BgzebVk4.css +1 -0
  11. package/assets/Drawer.Bauwxrk7.css +1 -0
  12. package/assets/Fieldset.DOdTbb7C.css +1 -0
  13. package/assets/Icon.DxRSBRSL.css +1 -0
  14. package/assets/InputPassword.CG7Ugu73.css +1 -0
  15. package/assets/InputSearch.CseChMc-.css +1 -0
  16. package/assets/InputStepper.C0eAYr7P.css +1 -0
  17. package/assets/Notification.DbRapUJo.css +1 -0
  18. package/assets/RadioGroup.BfMo157q.css +1 -0
  19. package/assets/Select.D4EXgIbz.css +1 -0
  20. package/assets/Textarea.KJGPTYMz.css +1 -0
  21. package/assets/Toast.CuafTAf7.css +1 -0
  22. package/assets/arialiveregions.DhsijBaL.css +1 -0
  23. package/assets/asterisk.BfVAUBO7.css +1 -0
  24. package/assets/button.DF4RBeC2.css +1 -0
  25. package/assets/buttonround.19uK_-oO.css +1 -0
  26. package/assets/checkbox.ByOoFouu.css +1 -0
  27. package/assets/chipgroup.BzfZLbkv.css +1 -0
  28. package/assets/flag.B-RLcMcf.css +1 -0
  29. package/assets/floatingactionbutton.E9HekT6S.css +1 -0
  30. package/assets/heading.u4f8Mz94.css +1 -0
  31. package/assets/input.BAkFKPW3.css +1 -0
  32. package/assets/link.DDJj0D1U.css +1 -0
  33. package/assets/linkstandalone.DIazcjIv.css +1 -0
  34. package/assets/logo.CnW8alZU.css +1 -0
  35. package/assets/optioncheckbox.BZaWtRD7.css +1 -0
  36. package/assets/radio.X-RTl_jo.css +1 -0
  37. package/assets/skiptocontent.PTL3256m.css +1 -0
  38. package/assets/spinner.2iWJWKyA.css +1 -0
  39. package/assets/switch.gw6aa3kx.css +1 -0
  40. package/assets/systemfeedback.BPz5YlPC.css +1 -0
  41. package/assets/text.DjTG_qNb.css +1 -0
  42. package/assets/title.rosWPEG3.css +1 -0
  43. package/asterisk.DpzETKdT.js +8 -0
  44. package/asterisk.d.ts +1 -0
  45. package/button.M4nXjcUn.js +135 -0
  46. package/button.d.ts +1 -0
  47. package/buttonround.E56F_805.js +118 -0
  48. package/buttonround.d.ts +1 -0
  49. package/checkbox.Cb2_ey6U.js +111 -0
  50. package/checkbox.d.ts +1 -0
  51. package/checkboxgroup.DBDmB-zR.js +8 -0
  52. package/checkboxgroup.d.ts +1 -0
  53. package/chip.C_1tGqvZ.js +10 -0
  54. package/chip.d.ts +2 -0
  55. package/chipgroup.BvTj1ziW.js +174 -0
  56. package/chipgroup.d.ts +2 -0
  57. package/chunks/Accordion.CB6jB3s_.js +125 -0
  58. package/chunks/{AriaLiveRegions.utils.D2ni4Yrf.js → AriaLiveRegions.utils.BGSZafnS.js} +2 -2
  59. package/chunks/CheckboxGroup.S6i5EOc4.js +92 -0
  60. package/chunks/Chip.CMlPUyOJ.js +142 -0
  61. package/chunks/{CustomReactSelect.ChAtL6fu.js → CustomReactSelect.Cg_XW3YK.js} +1056 -1049
  62. package/chunks/Dialog.CudsqNag.js +148 -0
  63. package/chunks/Drawer.ueG2Bzr9.js +154 -0
  64. package/chunks/Fieldset.Cjmkgxxk.js +99 -0
  65. package/chunks/{Icon.C2o2seDb.js → Icon.BCmt_XBG.js} +45 -45
  66. package/chunks/InputPassword.CNLbBFjx.js +143 -0
  67. package/chunks/InputSearch.CHA6mkX_.js +192 -0
  68. package/chunks/InputStepper.xmWGU9pU.js +294 -0
  69. package/chunks/Notification.o6pagKQy.js +93 -0
  70. package/chunks/RadioGroup.Crj7NoOs.js +137 -0
  71. package/chunks/Select.E6gLFYLk.js +194 -0
  72. package/chunks/Textarea.DUBSOpNL.js +198 -0
  73. package/chunks/Toast.DyEi2GEP.js +89 -0
  74. package/chunks/translate.isa3FHb8.js +11 -0
  75. package/{combobox.JL1Dsn3E.js → combobox.DUzv8jzM.js} +1 -1
  76. package/combobox.d.ts +1 -0
  77. package/components/Accordion/Accordion.d.ts +0 -1
  78. package/components/Accordion/Accordion.utils.d.ts +0 -1
  79. package/components/Button/Button.d.ts +0 -1
  80. package/components/ButtonRound/ButtonRound.d.ts +0 -1
  81. package/components/Checkbox/Checkbox.d.ts +0 -1
  82. package/components/CheckboxGroup/CheckboxGroup.d.ts +6 -7
  83. package/components/CheckboxGroup/CheckboxGroup.utils.d.ts +0 -1
  84. package/components/ChipGroup/Chip.d.ts +12 -0
  85. package/components/ChipGroup/ChipGroup.d.ts +42 -0
  86. package/components/ChipGroup/ChipGroup.utils.d.ts +60 -0
  87. package/components/ChipGroup/ChipGroup.utils.test.d.ts +1 -0
  88. package/components/Combobox/Combobox.d.ts +1 -2
  89. package/components/Combobox/Combobox.utils.d.ts +6 -1
  90. package/components/{CustomReactSelect → Combobox/CustomReactSelect}/CustomReactSelect.d.ts +2 -3
  91. package/components/Combobox/CustomReactSelect/CustomReactSelect.utils.d.ts +3 -0
  92. package/components/Combobox/CustomReactSelect/CustomReactSelect.utils.test.d.ts +1 -0
  93. package/components/{CustomReactSelect → Combobox/CustomReactSelect}/OptionCheckbox.d.ts +0 -1
  94. package/components/Dialog/Dialog.d.ts +0 -1
  95. package/components/Dialog/Dialog.utils.d.ts +0 -1
  96. package/components/Drawer/Drawer.d.ts +0 -1
  97. package/components/Drawer/Drawer.utils.d.ts +0 -1
  98. package/components/Fieldset/Fieldset.d.ts +0 -1
  99. package/components/Fieldset/Fieldset.utils.d.ts +7 -1
  100. package/components/Flag/Flag.d.ts +23 -0
  101. package/components/Flag/Flag.test.d.ts +1 -0
  102. package/components/Flag/Flag.utils.d.ts +2 -0
  103. package/components/FloatingActionButton/FloatingActionButton.d.ts +0 -1
  104. package/components/Heading/Heading.d.ts +0 -1
  105. package/components/Icon/Icon.d.ts +0 -1
  106. package/components/Icon/Icon.utils.d.ts +0 -1
  107. package/components/Input/Input.d.ts +0 -1
  108. package/components/Input/Input.utils.d.ts +0 -1
  109. package/components/InputPassword/InputPassword.d.ts +0 -1
  110. package/components/InputPassword/InputPassword.utils.d.ts +0 -1
  111. package/components/InputSearch/InputSearch.d.ts +0 -1
  112. package/components/InputSearch/InputSearch.utils.d.ts +0 -1
  113. package/components/InputStepper/InputStepper.d.ts +0 -1
  114. package/components/InputStepper/InputStepper.utils.d.ts +0 -1
  115. package/components/Link/Link.d.ts +0 -1
  116. package/components/LinkStandalone/LinkStandalone.d.ts +0 -1
  117. package/components/Logo/Logo.d.ts +1 -2
  118. package/components/Logo/Logo.utils.d.ts +0 -1
  119. package/components/Notification/Notification.d.ts +0 -1
  120. package/components/Notification/Notification.utils.d.ts +0 -1
  121. package/components/Radio/Radio.d.ts +1 -2
  122. package/components/RadioGroup/RadioGroup.d.ts +7 -8
  123. package/components/RadioGroup/RadioGroup.utils.d.ts +2 -3
  124. package/components/Select/Select.d.ts +0 -1
  125. package/components/Select/Select.utils.d.ts +0 -1
  126. package/components/SkipToContent/SkipToContent.d.ts +0 -1
  127. package/components/Spinner/Spinner.d.ts +0 -1
  128. package/components/Switch/Switch.d.ts +0 -1
  129. package/components/SystemFeedback/SystemFeedback.d.ts +0 -1
  130. package/components/Text/Text.d.ts +0 -1
  131. package/components/Textarea/Textarea.d.ts +0 -1
  132. package/components/Textarea/Textarea.utils.d.ts +0 -1
  133. package/components/Title/Title.d.ts +0 -1
  134. package/components/Toast/Toast.d.ts +0 -1
  135. package/components/Toast/Toast.utils.d.ts +0 -1
  136. package/components/Toast/ToastManager.d.ts +0 -1
  137. package/customreactselect.CXmBRqQ9.js +13 -0
  138. package/customreactselect.d.ts +2 -1
  139. package/{dialog.D3bJ0rsW.js → dialog.DYlBUsOD.js} +2 -2
  140. package/dialog.d.ts +1 -0
  141. package/{drawer.CNPF1-Kc.js → drawer.CvhbP1ra.js} +2 -2
  142. package/drawer.d.ts +1 -0
  143. package/fieldset.CtUGEdLv.js +11 -0
  144. package/fieldset.d.ts +1 -0
  145. package/flag.BKpsdB_-.js +43 -0
  146. package/flag.d.ts +2 -0
  147. package/floatingactionbutton.D5L0B7zI.js +87 -0
  148. package/floatingactionbutton.d.ts +1 -0
  149. package/heading.IPIYc5vW.js +50 -0
  150. package/heading.d.ts +1 -0
  151. package/{icon.BoMgOmC1.js → icon.Ck0BpI34.js} +1 -1
  152. package/icon.d.ts +1 -0
  153. package/index.d.ts +4 -0
  154. package/index.es.js +134 -114
  155. package/input.BEnCFNM-.js +239 -0
  156. package/input.d.ts +1 -0
  157. package/{inputpassword.nsYu6YeB.js → inputpassword.B-D_jB9w.js} +4 -4
  158. package/inputpassword.d.ts +1 -0
  159. package/{inputsearch.ZGIrDrcv.js → inputsearch.CaSpklR1.js} +4 -4
  160. package/inputsearch.d.ts +1 -0
  161. package/{inputstepper.BvY36hA1.js → inputstepper.C7KD1-0S.js} +4 -4
  162. package/inputstepper.d.ts +1 -0
  163. package/link.DREJAoPG.js +116 -0
  164. package/link.d.ts +1 -0
  165. package/linkstandalone.BBoEniZ_.js +79 -0
  166. package/linkstandalone.d.ts +1 -0
  167. package/logo.Hul8qCFo.js +65 -0
  168. package/logo.d.ts +1 -0
  169. package/{notification.BAS13UQ6.js → notification.JWhrkEcE.js} +3 -3
  170. package/notification.d.ts +1 -0
  171. package/optioncheckbox.BRUTnQnJ.js +43 -0
  172. package/optioncheckbox.d.ts +2 -1
  173. package/package.json +47 -40
  174. package/partials/index.js +407 -407
  175. package/partials/lib/partials.d.ts +0 -1
  176. package/radio.DEILy_lV.js +114 -0
  177. package/radio.d.ts +1 -0
  178. package/radiogroup.DeU-HdlP.js +10 -0
  179. package/radiogroup.d.ts +1 -0
  180. package/{select.C4OZMB-V.js → select.BYraFJzz.js} +4 -4
  181. package/select.d.ts +1 -0
  182. package/skiptocontent.BxvpIB7H.js +45 -0
  183. package/skiptocontent.d.ts +1 -0
  184. package/spinner.Bq97Og-6.js +58 -0
  185. package/spinner.d.ts +1 -0
  186. package/styles/fonts/STIHLContrafaceDigitalTextDemi.woff +0 -0
  187. package/styles/fonts/STIHLContrafaceDigitalTextDemi.woff2 +0 -0
  188. package/styles/fonts/font-face.min.css +1 -1
  189. package/styles/scss/ds/index.scss +19 -0
  190. package/styles/scss/ds/lib/animation.scss +21 -0
  191. package/styles/scss/ds/lib/breakpoints.scss +15 -0
  192. package/styles/scss/ds/lib/container-query.scss +54 -0
  193. package/styles/scss/ds/lib/ds-internal/_a11y.scss +15 -0
  194. package/styles/scss/{lib → ds/lib/ds-internal}/_focus.scss +13 -15
  195. package/styles/scss/ds/lib/ds-internal/_heading.scss +37 -0
  196. package/styles/scss/ds/lib/ds-internal/_helpers.scss +32 -0
  197. package/styles/scss/ds/lib/ds-internal/_high-contrast.scss +6 -0
  198. package/styles/scss/ds/lib/ds-internal/_hover.scss +6 -0
  199. package/styles/scss/ds/lib/ds-internal/_index.scss +9 -0
  200. package/styles/scss/ds/lib/ds-internal/_link.scss +62 -0
  201. package/styles/scss/ds/lib/ds-internal/_spacing-dynamic.scss +53 -0
  202. package/styles/scss/ds/lib/ds-internal/_text.scss +30 -0
  203. package/styles/scss/ds/lib/grid-extended.scss +11 -0
  204. package/styles/scss/ds/lib/grid-full.scss +6 -0
  205. package/styles/scss/ds/lib/grid-main.scss +119 -0
  206. package/styles/scss/ds/lib/grid-narrow.scss +14 -0
  207. package/styles/scss/ds/lib/grid-sidebar-sidebar.scss +52 -0
  208. package/styles/scss/{lib/_grid-sidebar.scss → ds/lib/grid-sidebar.scss} +23 -32
  209. package/styles/scss/{lib/_grid.scss → ds/lib/grid.scss} +15 -17
  210. package/styles/scss/ds/lib/heading.scss +75 -0
  211. package/styles/scss/ds/lib/link.scss +74 -0
  212. package/styles/scss/ds/lib/media-query.scss +32 -0
  213. package/styles/scss/{lib/_shadow.scss → ds/lib/shadow.scss} +2 -2
  214. package/styles/scss/ds/lib/spacing-dynamic.scss +7 -0
  215. package/styles/scss/ds/lib/spacing.scss +20 -0
  216. package/styles/scss/ds/lib/text.scss +83 -0
  217. package/styles/scss/ds/lib/theme.scss +162 -0
  218. package/styles/scss/ds/lib/transition.scss +36 -0
  219. package/switch.DI8YYa5G.js +65 -0
  220. package/switch.d.ts +1 -0
  221. package/{systemfeedback.ZzRUAVYX.js → systemfeedback.C3Pfxxpp.js} +6 -6
  222. package/systemfeedback.d.ts +1 -0
  223. package/text.DThvTwm8.js +57 -0
  224. package/text.d.ts +1 -0
  225. package/{textarea.CtQtGqn5.js → textarea.CBvH0ljM.js} +3 -3
  226. package/textarea.d.ts +1 -0
  227. package/title.DqzdB2Gq.js +36 -0
  228. package/title.d.ts +1 -0
  229. package/toast.d.ts +1 -0
  230. package/{toast.DVd9dLs2.js → toast.n1QUINSA.js} +3 -3
  231. package/{toastmanager.Dh0gzFkM.js → toastmanager.B7EZ4JSI.js} +2 -2
  232. package/toastmanager.d.ts +1 -0
  233. package/utils/index.d.ts +1 -0
  234. package/utils/translate.d.ts +11 -0
  235. package/utils/translate.test.d.ts +1 -0
  236. package/utils/useBreakpoint.d.ts +0 -1
  237. package/utils/useIsomorphicLayoutEffect.d.ts +0 -1
  238. package/utils/vitest.setup.d.ts +0 -1
  239. package/arialiveregions.BK4T7Vhk.js +0 -27
  240. package/assets/Accordion.lFv7Q_RG.css +0 -1
  241. package/assets/CustomReactSelect.CMkn-EGK.css +0 -1
  242. package/assets/Dialog.fiQvxJg_.css +0 -1
  243. package/assets/Drawer.BqBgbSuP.css +0 -1
  244. package/assets/Fieldset.qHYeUFZt.css +0 -1
  245. package/assets/Icon.Duy_0R8w.css +0 -1
  246. package/assets/InputPassword.Cf394z47.css +0 -1
  247. package/assets/InputSearch.eCRQoxjN.css +0 -1
  248. package/assets/InputStepper.B80KulYE.css +0 -1
  249. package/assets/Notification.DK6agBGS.css +0 -1
  250. package/assets/RadioGroup.Bz3_xkZU.css +0 -1
  251. package/assets/Select.BptsMxz4.css +0 -1
  252. package/assets/Textarea.CIIVh03G.css +0 -1
  253. package/assets/Toast.Dsvs1zdM.css +0 -1
  254. package/assets/arialiveregions.GsGx2USO.css +0 -1
  255. package/assets/asterisk.DlJ4YtSZ.css +0 -1
  256. package/assets/button.B1O7Yw3Q.css +0 -1
  257. package/assets/buttonround.DlH_ipDo.css +0 -1
  258. package/assets/checkbox.K4CVYK9g.css +0 -1
  259. package/assets/floatingactionbutton.DRYentYC.css +0 -1
  260. package/assets/heading.6bER-Eac.css +0 -1
  261. package/assets/input.C0MrSbQu.css +0 -1
  262. package/assets/link.vtTST2ki.css +0 -1
  263. package/assets/linkstandalone.BtAcziZ7.css +0 -1
  264. package/assets/logo.pETQEsvZ.css +0 -1
  265. package/assets/optioncheckbox.BJJAph5_.css +0 -1
  266. package/assets/radio.9kpIO3HC.css +0 -1
  267. package/assets/skiptocontent.CHcqLS7S.css +0 -1
  268. package/assets/spinner.D_Nnf1ZG.css +0 -1
  269. package/assets/switch.2DQF2zH-.css +0 -1
  270. package/assets/systemfeedback.Sq0bAIyf.css +0 -1
  271. package/assets/text.Dhb_l50R.css +0 -1
  272. package/assets/title.f74Bosn-.css +0 -1
  273. package/asterisk.DDn-yX4P.js +0 -8
  274. package/button.DH0h6uPs.js +0 -135
  275. package/buttonround.0mw4zzlU.js +0 -118
  276. package/checkbox.DETR3e3X.js +0 -112
  277. package/checkboxgroup.CZqrlF-x.js +0 -9
  278. package/chunks/Accordion.pI3JyHJL.js +0 -125
  279. package/chunks/CheckboxGroup.4J_gZ_XJ.js +0 -87
  280. package/chunks/Dialog.Z5ESJQMi.js +0 -148
  281. package/chunks/Drawer.BdowMqE0.js +0 -154
  282. package/chunks/Fieldset.COGbZwry.js +0 -99
  283. package/chunks/InputPassword.Dgo95-PU.js +0 -140
  284. package/chunks/InputSearch.BFof0pBn.js +0 -189
  285. package/chunks/InputStepper.4IqLa5tX.js +0 -291
  286. package/chunks/Notification.BhwbaXqk.js +0 -93
  287. package/chunks/RadioGroup.C5jbCJM4.js +0 -132
  288. package/chunks/RadioGroup.module.BBZwHDjW.js +0 -11
  289. package/chunks/Select.fXeQJXtz.js +0 -191
  290. package/chunks/Textarea.Bewrp0Za.js +0 -195
  291. package/chunks/Toast.DA_CQ9J-.js +0 -89
  292. package/components/CustomReactSelect/CustomReactSelect.utils.d.ts +0 -16
  293. package/customreactselect.Dg8Kgq3e.js +0 -13
  294. package/fieldset.CTshPWYX.js +0 -11
  295. package/floatingactionbutton.CCIj9Fjr.js +0 -87
  296. package/heading.CAkraI2D.js +0 -50
  297. package/input.CTgeAYdu.js +0 -236
  298. package/link.DAZNwQ0a.js +0 -116
  299. package/linkstandalone.C9X3er7g.js +0 -80
  300. package/logo.CEO6OV7u.js +0 -65
  301. package/optioncheckbox.DZWwtx6f.js +0 -43
  302. package/radio.CWGJtmKl.js +0 -115
  303. package/radiogroup.BhffFqN3.js +0 -11
  304. package/skiptocontent.C4yQfWr2.js +0 -46
  305. package/spinner.D-xrotcu.js +0 -58
  306. package/styles/scss/_index.scss +0 -23
  307. package/styles/scss/lib/_a11y.scss +0 -15
  308. package/styles/scss/lib/_animation.scss +0 -21
  309. package/styles/scss/lib/_breakpoints.scss +0 -16
  310. package/styles/scss/lib/_container-query.scss +0 -58
  311. package/styles/scss/lib/_grid-extended.scss +0 -11
  312. package/styles/scss/lib/_grid-full.scss +0 -6
  313. package/styles/scss/lib/_grid-main.scss +0 -117
  314. package/styles/scss/lib/_grid-narrow.scss +0 -16
  315. package/styles/scss/lib/_grid-sidebar-sidebar.scss +0 -50
  316. package/styles/scss/lib/_heading.scss +0 -107
  317. package/styles/scss/lib/_helpers.scss +0 -15
  318. package/styles/scss/lib/_high-contrast.scss +0 -24
  319. package/styles/scss/lib/_hover.scss +0 -10
  320. package/styles/scss/lib/_link.scss +0 -126
  321. package/styles/scss/lib/_media-query.scss +0 -32
  322. package/styles/scss/lib/_spacing.scss +0 -32
  323. package/styles/scss/lib/_text.scss +0 -110
  324. package/styles/scss/lib/_theme.scss +0 -162
  325. package/styles/scss/lib/_transition.scss +0 -45
  326. package/switch.CmpNUC7s.js +0 -65
  327. package/text.rgDKQBrU.js +0 -57
  328. package/title.LY1ylQsb.js +0 -36
  329. package/utils/render-in-iframe.d.ts +0 -15
  330. /package/components/{CustomReactSelect/CustomReactSelect.utils.test.d.ts → ChipGroup/ChipGroup.test.d.ts} +0 -0
@@ -0,0 +1,125 @@
1
+ "use client";
2
+ import { j as e } from "./jsx-runtime.C115EyI4.js";
3
+ import { c as a } from "./index.CvOaL64Y.js";
4
+ import { forwardRef as A, useRef as F, useState as I, useImperativeHandle as R, useEffect as w } from "react";
5
+ import { DSHeading as T } from "../heading.IPIYc5vW.js";
6
+ import { D as L } from "./Icon.BCmt_XBG.js";
7
+ import { g } from "./helpers.B1JT5ShS.js";
8
+ import '../assets/Accordion.i4k5SMQM.css';const M = "ds-accordion_details_1385s_1", b = "ds-accordion_summary_1385s_120", H = "ds-accordion_summary--utility--m_1385s_159", P = "ds-accordion_summary--flush_1385s_188", U = "ds-accordion_summary--small_1385s_256", q = "ds-accordion_summary-content-wrapper_1385s_261", V = "ds-accordion_summary-content-wrapper--flush_1385s_267", z = "ds-accordion_summary-content-wrapper--chevron-left_1385s_271", Z = "ds-accordion_heading-summary-wrapper_1385s_276", k = "ds-accordion_hint_1385s_280", B = "ds-accordion_icon_1385s_294", G = "ds-accordion_icon--open_1385s_305", J = "ds-accordion_content-wrapper_1385s_317", K = "ds-accordion_content-wrapper--flush_1385s_323", Q = "ds-accordion_content-wrapper--small_1385s_327", r = {
9
+ details: M,
10
+ summary: b,
11
+ "summary--utility--m": "ds-accordion_summary--utility--m_1385s_159",
12
+ summaryUtilityM: H,
13
+ "summary--flush": "ds-accordion_summary--flush_1385s_188",
14
+ summaryFlush: P,
15
+ "summary--small": "ds-accordion_summary--small_1385s_256",
16
+ summarySmall: U,
17
+ "summary-content-wrapper": "ds-accordion_summary-content-wrapper_1385s_261",
18
+ summaryContentWrapper: q,
19
+ "summary-content-wrapper--flush": "ds-accordion_summary-content-wrapper--flush_1385s_267",
20
+ summaryContentWrapperFlush: V,
21
+ "summary-content-wrapper--chevron-left": "ds-accordion_summary-content-wrapper--chevron-left_1385s_271",
22
+ summaryContentWrapperChevronLeft: z,
23
+ "heading-summary-wrapper": "ds-accordion_heading-summary-wrapper_1385s_276",
24
+ headingSummaryWrapper: Z,
25
+ hint: k,
26
+ icon: B,
27
+ "icon--open": "ds-accordion_icon--open_1385s_305",
28
+ iconOpen: G,
29
+ "content-wrapper": "ds-accordion_content-wrapper_1385s_317",
30
+ contentWrapper: J,
31
+ "content-wrapper--flush": "ds-accordion_content-wrapper--flush_1385s_323",
32
+ contentWrapperFlush: K,
33
+ "content-wrapper--small": "ds-accordion_content-wrapper--small_1385s_327",
34
+ contentWrapperSmall: Q
35
+ }, or = ["medium", "small"], tr = ["left", "right"], X = ({
36
+ children: o,
37
+ summary: n
38
+ }) => {
39
+ if (!o)
40
+ throw new Error(
41
+ g(
42
+ "DSAccordion",
43
+ "The component requires children to be set."
44
+ )
45
+ );
46
+ if (!n)
47
+ throw new Error(
48
+ g(
49
+ "DSAccordion",
50
+ "The summary prop is required. Please add the summary prop to the DSAccordion component."
51
+ )
52
+ );
53
+ }, Y = A(
54
+ ({
55
+ children: o,
56
+ summary: n,
57
+ chevronPosition: C = "right",
58
+ className: S,
59
+ hint: p,
60
+ isFlush: t = !1,
61
+ isOpen: c = !1,
62
+ size: i = "medium",
63
+ ...W
64
+ }, v) => {
65
+ process.env.NODE_ENV !== "production" && X({ children: o, summary: n });
66
+ const s = F(null), [D, l] = I(c);
67
+ R(v, () => s.current), w(() => {
68
+ s.current && l(s.current.open);
69
+ }, [c]), w(() => {
70
+ var h;
71
+ const y = () => {
72
+ s.current && l(s.current.open);
73
+ };
74
+ return (h = s.current) == null || h.addEventListener("toggle", y), () => {
75
+ var f;
76
+ (f = s.current) == null || f.removeEventListener("toggle", y);
77
+ };
78
+ }, []);
79
+ let d, u, _;
80
+ const m = typeof n == "object" && n !== void 0;
81
+ m && ({ headingSize: d, headingTag: u, headingText: _ } = n);
82
+ const N = a(r.details, S), j = a(r.summary, {
83
+ [r.summaryFlush]: t,
84
+ [r.summarySmall]: i === "small",
85
+ [r.summaryUtilityM]: !m
86
+ }), x = a(
87
+ r.summaryContentWrapper,
88
+ {
89
+ [r.summaryContentWrapperFlush]: t,
90
+ [r.summaryContentWrapperChevronLeft]: C === "left"
91
+ }
92
+ ), E = a(r.icon, {
93
+ [r.iconOpen]: D
94
+ }), O = a(r.contentWrapper, {
95
+ [r.contentWrapperFlush]: t,
96
+ [r.contentWrapperSmall]: i === "small"
97
+ });
98
+ return /* @__PURE__ */ e.jsxs(
99
+ "details",
100
+ {
101
+ ...W,
102
+ ref: s,
103
+ className: N,
104
+ open: c,
105
+ children: [
106
+ /* @__PURE__ */ e.jsx("summary", { className: j, children: /* @__PURE__ */ e.jsxs("div", { className: x, children: [
107
+ /* @__PURE__ */ e.jsxs("div", { className: r.headingSummaryWrapper, children: [
108
+ m ? /* @__PURE__ */ e.jsx(T, { tag: u, size: d, children: _ }) : n,
109
+ p && /* @__PURE__ */ e.jsx("div", { className: r.hint, children: p })
110
+ ] }),
111
+ /* @__PURE__ */ e.jsx(L, { name: "chevron-down", className: E })
112
+ ] }) }),
113
+ /* @__PURE__ */ e.jsx("div", { className: O, children: o })
114
+ ]
115
+ }
116
+ );
117
+ }
118
+ );
119
+ Y.displayName = "DSAccordion";
120
+ export {
121
+ or as A,
122
+ tr as C,
123
+ Y as D,
124
+ X as v
125
+ };
@@ -28,7 +28,7 @@ const e = "ds-alert-live-region", t = "ds-status-live-region", g = () => documen
28
28
  export {
29
29
  e as A,
30
30
  t as a,
31
- c as b,
32
- g,
31
+ g as b,
32
+ c as g,
33
33
  m as v
34
34
  };
@@ -0,0 +1,92 @@
1
+ "use client";
2
+ import { j as u } from "./jsx-runtime.C115EyI4.js";
3
+ import { c as m } from "./index.CvOaL64Y.js";
4
+ import { D as f } from "./Fieldset.Cjmkgxxk.js";
5
+ import l from "react";
6
+ import { g as i } from "./helpers.B1JT5ShS.js";
7
+ import { DSCheckbox as k } from "../checkbox.Cb2_ey6U.js";
8
+ import '../assets/CheckboxGroup.BH1Br1dg.css';const D = "ds-checkbox-group_root_12fot_1", _ = "ds-checkbox-group_root--horizontal_12fot_9", C = "ds-checkbox-group_root--invalid_12fot_12", h = {
9
+ root: D,
10
+ "root--horizontal": "ds-checkbox-group_root--horizontal_12fot_9",
11
+ rootHorizontal: _,
12
+ "root--invalid": "ds-checkbox-group_root--invalid_12fot_12",
13
+ rootInvalid: C
14
+ }, S = (o) => `The "${o}" prop is required. Please add the "${o}" prop to the DSCheckboxGroup component.`, v = ({
15
+ children: o,
16
+ description: e,
17
+ id: n,
18
+ legend: r,
19
+ systemFeedback: s
20
+ }) => {
21
+ if (!n && (e || s))
22
+ throw new Error(
23
+ i(
24
+ "DSCheckboxGroup",
25
+ 'A unique "id" prop is required when providing the description or systemFeedback property. Please add an unique "id" prop to the DSCheckboxGroup component.'
26
+ )
27
+ );
28
+ if (!r)
29
+ throw new Error(
30
+ i("DSCheckboxGroup", S("legend"))
31
+ );
32
+ if (!o)
33
+ throw new Error(
34
+ i(
35
+ "DSCheckboxGroup",
36
+ "The component requires DSCheckbox components to be explicitly set as its children. Ensure that you include individual DSCheckbox components within the DSCheckboxGroup to create a cohesive checkbox group."
37
+ )
38
+ );
39
+ l.Children.forEach(o, (t) => {
40
+ if (!(l.isValidElement(t) && t.type === k))
41
+ throw new Error(
42
+ i(
43
+ "DSCheckboxGroup",
44
+ "The component requires the children to be DSCheckbox elements. Ensure that you include individual DSCheckbox components within the DSCheckboxGroup to create a cohesive checkbox group."
45
+ )
46
+ );
47
+ });
48
+ }, y = ({
49
+ children: o,
50
+ legend: e,
51
+ className: n,
52
+ description: r,
53
+ direction: s = "vertical",
54
+ disabled: t = !1,
55
+ id: a,
56
+ invalid: p = !1,
57
+ required: d = !1,
58
+ systemFeedback: c,
59
+ ...x
60
+ }) => {
61
+ process.env.NODE_ENV !== "production" && v({
62
+ children: o,
63
+ legend: e,
64
+ description: r,
65
+ id: a,
66
+ systemFeedback: c
67
+ });
68
+ const b = m(h.root, {
69
+ // In case of longer copy, use vertical direction
70
+ [h.rootHorizontal]: s === "horizontal",
71
+ [h.rootInvalid]: p && !!c
72
+ });
73
+ return /* @__PURE__ */ u.jsx(
74
+ f,
75
+ {
76
+ id: a,
77
+ legend: e,
78
+ className: n,
79
+ description: r,
80
+ disabled: t,
81
+ required: d,
82
+ invalid: p,
83
+ systemFeedback: c,
84
+ ...x,
85
+ children: /* @__PURE__ */ u.jsx("div", { className: b, children: o })
86
+ }
87
+ );
88
+ };
89
+ export {
90
+ y as D,
91
+ v
92
+ };
@@ -0,0 +1,142 @@
1
+ "use client";
2
+ import { j as o } from "./jsx-runtime.C115EyI4.js";
3
+ import { c as _ } from "./index.CvOaL64Y.js";
4
+ import { forwardRef as w } from "react";
5
+ import { t as y } from "./translate.isa3FHb8.js";
6
+ import { D as d } from "./Icon.BCmt_XBG.js";
7
+ import { g as a } from "./helpers.B1JT5ShS.js";
8
+ import { g as P } from "./AriaLiveRegions.utils.BGSZafnS.js";
9
+ import '../assets/Chip.DSdLuzoi.css';const T = "ds-chip-group_chip_aidwn_1", b = "ds-chip-group_chip--small_aidwn_30", h = {
10
+ chip: T,
11
+ "chip--small": "ds-chip-group_chip--small_aidwn_30",
12
+ chipSmall: b
13
+ }, u = (e) => `The "${e}" prop is required. Please add the "${e}" prop to the DSChipGroup component.`, F = ({
14
+ chips: e,
15
+ id: i,
16
+ label: r
17
+ }) => {
18
+ if (!Array.isArray(e))
19
+ throw new Error(
20
+ a("DSChipGroup", u("chips"))
21
+ );
22
+ if (!i)
23
+ throw new Error(
24
+ a(
25
+ "DSChipGroup",
26
+ 'A unique "id" prop is required when providing the description or systemFeedback property. Please add an unique "id" prop to the DSChipGroup component.'
27
+ )
28
+ );
29
+ if (!r)
30
+ throw new Error(
31
+ a("DSChipGroup", u("label"))
32
+ );
33
+ }, H = () => {
34
+ if (!P())
35
+ throw new Error(
36
+ a(
37
+ "DSChipGroup",
38
+ 'The DSAriaLiveRegions component has to be placed at the root of your application, as close to the "body" as possible, e.g. in your "App.tsx" or "layout.tsx".'
39
+ )
40
+ );
41
+ }, U = ["medium", "small"], R = {
42
+ disabled: "disabled",
43
+ selected: "selected",
44
+ // {0} is the action (e.g., select/unselect)
45
+ selectChip: "press space to {0}",
46
+ unselectAction: "unselect",
47
+ selectAction: "select",
48
+ addToSelection: "add this option to selection",
49
+ removeFromSelection: "remove this option from selection",
50
+ removeChip: "press Backspace to remove the currently focused value",
51
+ titleDisabled: "Disabled",
52
+ titleRemovable: "Remove filter",
53
+ titleDeactivate: "Deactivate property",
54
+ titleActivate: "Activate property"
55
+ }, $ = {
56
+ disabled: "deaktiviert",
57
+ selected: "ausgewählt",
58
+ // {0} is the action (e.g., select/unselect)
59
+ selectChip: "drücke Leertaste, um {0}",
60
+ unselectAction: "abzuwählen",
61
+ selectAction: "auszuwählen",
62
+ addToSelection: "diese Option zur Auswahl hinzuzufügen",
63
+ removeFromSelection: "diese Option aus der Auswahl zu entfernen",
64
+ removeChip: "drücke Backspace, um den aktuell fokussierten Wert zu entfernen",
65
+ titleDisabled: "Deaktiviert",
66
+ titleRemovable: "Filter entfernen",
67
+ titleDeactivate: "Eigenschaft deaktivieren",
68
+ titleActivate: "Eigenschaft aktivieren"
69
+ }, k = {
70
+ en: R,
71
+ de: $
72
+ }, E = (e, i, r, t, n, s) => r ? `${i}, ${e("disabled")}` : s ? `${i}, ${e("removeChip")}` : `${i}, ${t ? `${e("selected")}, ` : ""}${e(
73
+ "selectChip",
74
+ [
75
+ e(n === "single" ? t ? "unselectAction" : "selectAction" : t ? "removeFromSelection" : "addToSelection")
76
+ ]
77
+ )}`, G = (e, i, r, t) => e(i ? "titleDisabled" : t ? "titleRemovable" : r ? "titleDeactivate" : "titleActivate"), x = w(
78
+ ({
79
+ id: e,
80
+ label: i,
81
+ groupId: r,
82
+ isRemovable: t,
83
+ selectionMode: n,
84
+ disabled: s = !1,
85
+ iconName: c,
86
+ isSelected: l,
87
+ lang: m = "en",
88
+ size: v,
89
+ tabIndex: f,
90
+ translations: S,
91
+ onClick: D,
92
+ ...A
93
+ }, g) => {
94
+ const p = y(
95
+ S || k[m]
96
+ ), C = _(h.chip, {
97
+ [h.chipSmall]: v === "small"
98
+ });
99
+ return /* @__PURE__ */ o.jsxs(
100
+ "div",
101
+ {
102
+ role: "row",
103
+ "aria-label": E(
104
+ p,
105
+ i,
106
+ s,
107
+ l,
108
+ n,
109
+ t
110
+ ),
111
+ "aria-selected": l && !t,
112
+ "aria-disabled": s && !t,
113
+ id: `${r}-chip-${e}`,
114
+ className: C,
115
+ tabIndex: f,
116
+ onClick: D,
117
+ ref: g,
118
+ ...A,
119
+ title: G(p, s, l, t),
120
+ children: [
121
+ /* @__PURE__ */ o.jsxs("div", { role: "gridcell", "aria-colindex": 1, style: { display: "contents" }, children: [
122
+ c && /* @__PURE__ */ o.jsx(d, { name: c, "aria-hidden": "true" }),
123
+ i
124
+ ] }),
125
+ t && /* @__PURE__ */ o.jsx(d, { name: "cross" })
126
+ ]
127
+ }
128
+ );
129
+ }
130
+ );
131
+ x.displayName = "DSChip";
132
+ export {
133
+ U as C,
134
+ R as D,
135
+ H as a,
136
+ $ as b,
137
+ k as c,
138
+ G as d,
139
+ x as e,
140
+ E as g,
141
+ F as v
142
+ };