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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (330) hide show
  1. package/README.md +0 -9
  2. package/{accordion.B3UkxlAZ.js → accordion.Rvtiu8Y4.js} +3 -3
  3. package/accordion.d.ts +1 -0
  4. package/arialiveregions.Cyycgs8g.js +27 -0
  5. package/arialiveregions.d.ts +1 -0
  6. package/assets/Accordion.i4k5SMQM.css +1 -0
  7. package/assets/CheckboxGroup.BH1Br1dg.css +1 -0
  8. package/assets/Chip.DSdLuzoi.css +1 -0
  9. package/assets/CustomReactSelect.vHt8qNKC.css +1 -0
  10. package/assets/Dialog.BgzebVk4.css +1 -0
  11. package/assets/Drawer.Bauwxrk7.css +1 -0
  12. package/assets/Fieldset.DOdTbb7C.css +1 -0
  13. package/assets/Icon.DxRSBRSL.css +1 -0
  14. package/assets/InputPassword.CG7Ugu73.css +1 -0
  15. package/assets/InputSearch.CseChMc-.css +1 -0
  16. package/assets/InputStepper.C0eAYr7P.css +1 -0
  17. package/assets/Notification.DbRapUJo.css +1 -0
  18. package/assets/RadioGroup.BfMo157q.css +1 -0
  19. package/assets/Select.D4EXgIbz.css +1 -0
  20. package/assets/Textarea.KJGPTYMz.css +1 -0
  21. package/assets/Toast.CuafTAf7.css +1 -0
  22. package/assets/arialiveregions.DhsijBaL.css +1 -0
  23. package/assets/asterisk.BfVAUBO7.css +1 -0
  24. package/assets/button.DF4RBeC2.css +1 -0
  25. package/assets/buttonround.19uK_-oO.css +1 -0
  26. package/assets/checkbox.ByOoFouu.css +1 -0
  27. package/assets/chipgroup.BzfZLbkv.css +1 -0
  28. package/assets/flag.B-RLcMcf.css +1 -0
  29. package/assets/floatingactionbutton.E9HekT6S.css +1 -0
  30. package/assets/heading.u4f8Mz94.css +1 -0
  31. package/assets/input.BAkFKPW3.css +1 -0
  32. package/assets/link.DDJj0D1U.css +1 -0
  33. package/assets/linkstandalone.DIazcjIv.css +1 -0
  34. package/assets/logo.CnW8alZU.css +1 -0
  35. package/assets/optioncheckbox.BZaWtRD7.css +1 -0
  36. package/assets/radio.X-RTl_jo.css +1 -0
  37. package/assets/skiptocontent.PTL3256m.css +1 -0
  38. package/assets/spinner.2iWJWKyA.css +1 -0
  39. package/assets/switch.gw6aa3kx.css +1 -0
  40. package/assets/systemfeedback.BPz5YlPC.css +1 -0
  41. package/assets/text.DjTG_qNb.css +1 -0
  42. package/assets/title.rosWPEG3.css +1 -0
  43. package/asterisk.DpzETKdT.js +8 -0
  44. package/asterisk.d.ts +1 -0
  45. package/button.M4nXjcUn.js +135 -0
  46. package/button.d.ts +1 -0
  47. package/buttonround.E56F_805.js +118 -0
  48. package/buttonround.d.ts +1 -0
  49. package/checkbox.Cb2_ey6U.js +111 -0
  50. package/checkbox.d.ts +1 -0
  51. package/checkboxgroup.DBDmB-zR.js +8 -0
  52. package/checkboxgroup.d.ts +1 -0
  53. package/chip.C_1tGqvZ.js +10 -0
  54. package/chip.d.ts +2 -0
  55. package/chipgroup.BvTj1ziW.js +174 -0
  56. package/chipgroup.d.ts +2 -0
  57. package/chunks/Accordion.CB6jB3s_.js +125 -0
  58. package/chunks/{AriaLiveRegions.utils.D2ni4Yrf.js → AriaLiveRegions.utils.BGSZafnS.js} +2 -2
  59. package/chunks/CheckboxGroup.S6i5EOc4.js +92 -0
  60. package/chunks/Chip.CMlPUyOJ.js +142 -0
  61. package/chunks/{CustomReactSelect.ChAtL6fu.js → CustomReactSelect.Cg_XW3YK.js} +1056 -1049
  62. package/chunks/Dialog.CudsqNag.js +148 -0
  63. package/chunks/Drawer.ueG2Bzr9.js +154 -0
  64. package/chunks/Fieldset.Cjmkgxxk.js +99 -0
  65. package/chunks/{Icon.C2o2seDb.js → Icon.BCmt_XBG.js} +45 -45
  66. package/chunks/InputPassword.CNLbBFjx.js +143 -0
  67. package/chunks/InputSearch.CHA6mkX_.js +192 -0
  68. package/chunks/InputStepper.xmWGU9pU.js +294 -0
  69. package/chunks/Notification.o6pagKQy.js +93 -0
  70. package/chunks/RadioGroup.Crj7NoOs.js +137 -0
  71. package/chunks/Select.E6gLFYLk.js +194 -0
  72. package/chunks/Textarea.DUBSOpNL.js +198 -0
  73. package/chunks/Toast.DyEi2GEP.js +89 -0
  74. package/chunks/translate.isa3FHb8.js +11 -0
  75. package/{combobox.JL1Dsn3E.js → combobox.DUzv8jzM.js} +1 -1
  76. package/combobox.d.ts +1 -0
  77. package/components/Accordion/Accordion.d.ts +0 -1
  78. package/components/Accordion/Accordion.utils.d.ts +0 -1
  79. package/components/Button/Button.d.ts +0 -1
  80. package/components/ButtonRound/ButtonRound.d.ts +0 -1
  81. package/components/Checkbox/Checkbox.d.ts +0 -1
  82. package/components/CheckboxGroup/CheckboxGroup.d.ts +6 -7
  83. package/components/CheckboxGroup/CheckboxGroup.utils.d.ts +0 -1
  84. package/components/ChipGroup/Chip.d.ts +12 -0
  85. package/components/ChipGroup/ChipGroup.d.ts +42 -0
  86. package/components/ChipGroup/ChipGroup.utils.d.ts +60 -0
  87. package/components/ChipGroup/ChipGroup.utils.test.d.ts +1 -0
  88. package/components/Combobox/Combobox.d.ts +1 -2
  89. package/components/Combobox/Combobox.utils.d.ts +6 -1
  90. package/components/{CustomReactSelect → Combobox/CustomReactSelect}/CustomReactSelect.d.ts +2 -3
  91. package/components/Combobox/CustomReactSelect/CustomReactSelect.utils.d.ts +3 -0
  92. package/components/Combobox/CustomReactSelect/CustomReactSelect.utils.test.d.ts +1 -0
  93. package/components/{CustomReactSelect → Combobox/CustomReactSelect}/OptionCheckbox.d.ts +0 -1
  94. package/components/Dialog/Dialog.d.ts +0 -1
  95. package/components/Dialog/Dialog.utils.d.ts +0 -1
  96. package/components/Drawer/Drawer.d.ts +0 -1
  97. package/components/Drawer/Drawer.utils.d.ts +0 -1
  98. package/components/Fieldset/Fieldset.d.ts +0 -1
  99. package/components/Fieldset/Fieldset.utils.d.ts +7 -1
  100. package/components/Flag/Flag.d.ts +23 -0
  101. package/components/Flag/Flag.test.d.ts +1 -0
  102. package/components/Flag/Flag.utils.d.ts +2 -0
  103. package/components/FloatingActionButton/FloatingActionButton.d.ts +0 -1
  104. package/components/Heading/Heading.d.ts +0 -1
  105. package/components/Icon/Icon.d.ts +0 -1
  106. package/components/Icon/Icon.utils.d.ts +0 -1
  107. package/components/Input/Input.d.ts +0 -1
  108. package/components/Input/Input.utils.d.ts +0 -1
  109. package/components/InputPassword/InputPassword.d.ts +0 -1
  110. package/components/InputPassword/InputPassword.utils.d.ts +0 -1
  111. package/components/InputSearch/InputSearch.d.ts +0 -1
  112. package/components/InputSearch/InputSearch.utils.d.ts +0 -1
  113. package/components/InputStepper/InputStepper.d.ts +0 -1
  114. package/components/InputStepper/InputStepper.utils.d.ts +0 -1
  115. package/components/Link/Link.d.ts +0 -1
  116. package/components/LinkStandalone/LinkStandalone.d.ts +0 -1
  117. package/components/Logo/Logo.d.ts +1 -2
  118. package/components/Logo/Logo.utils.d.ts +0 -1
  119. package/components/Notification/Notification.d.ts +0 -1
  120. package/components/Notification/Notification.utils.d.ts +0 -1
  121. package/components/Radio/Radio.d.ts +1 -2
  122. package/components/RadioGroup/RadioGroup.d.ts +7 -8
  123. package/components/RadioGroup/RadioGroup.utils.d.ts +2 -3
  124. package/components/Select/Select.d.ts +0 -1
  125. package/components/Select/Select.utils.d.ts +0 -1
  126. package/components/SkipToContent/SkipToContent.d.ts +0 -1
  127. package/components/Spinner/Spinner.d.ts +0 -1
  128. package/components/Switch/Switch.d.ts +0 -1
  129. package/components/SystemFeedback/SystemFeedback.d.ts +0 -1
  130. package/components/Text/Text.d.ts +0 -1
  131. package/components/Textarea/Textarea.d.ts +0 -1
  132. package/components/Textarea/Textarea.utils.d.ts +0 -1
  133. package/components/Title/Title.d.ts +0 -1
  134. package/components/Toast/Toast.d.ts +0 -1
  135. package/components/Toast/Toast.utils.d.ts +0 -1
  136. package/components/Toast/ToastManager.d.ts +0 -1
  137. package/customreactselect.CXmBRqQ9.js +13 -0
  138. package/customreactselect.d.ts +2 -1
  139. package/{dialog.D3bJ0rsW.js → dialog.DYlBUsOD.js} +2 -2
  140. package/dialog.d.ts +1 -0
  141. package/{drawer.CNPF1-Kc.js → drawer.CvhbP1ra.js} +2 -2
  142. package/drawer.d.ts +1 -0
  143. package/fieldset.CtUGEdLv.js +11 -0
  144. package/fieldset.d.ts +1 -0
  145. package/flag.BKpsdB_-.js +43 -0
  146. package/flag.d.ts +2 -0
  147. package/floatingactionbutton.D5L0B7zI.js +87 -0
  148. package/floatingactionbutton.d.ts +1 -0
  149. package/heading.IPIYc5vW.js +50 -0
  150. package/heading.d.ts +1 -0
  151. package/{icon.BoMgOmC1.js → icon.Ck0BpI34.js} +1 -1
  152. package/icon.d.ts +1 -0
  153. package/index.d.ts +4 -0
  154. package/index.es.js +134 -114
  155. package/input.BEnCFNM-.js +239 -0
  156. package/input.d.ts +1 -0
  157. package/{inputpassword.nsYu6YeB.js → inputpassword.B-D_jB9w.js} +4 -4
  158. package/inputpassword.d.ts +1 -0
  159. package/{inputsearch.ZGIrDrcv.js → inputsearch.CaSpklR1.js} +4 -4
  160. package/inputsearch.d.ts +1 -0
  161. package/{inputstepper.BvY36hA1.js → inputstepper.C7KD1-0S.js} +4 -4
  162. package/inputstepper.d.ts +1 -0
  163. package/link.DREJAoPG.js +116 -0
  164. package/link.d.ts +1 -0
  165. package/linkstandalone.BBoEniZ_.js +79 -0
  166. package/linkstandalone.d.ts +1 -0
  167. package/logo.Hul8qCFo.js +65 -0
  168. package/logo.d.ts +1 -0
  169. package/{notification.BAS13UQ6.js → notification.JWhrkEcE.js} +3 -3
  170. package/notification.d.ts +1 -0
  171. package/optioncheckbox.BRUTnQnJ.js +43 -0
  172. package/optioncheckbox.d.ts +2 -1
  173. package/package.json +47 -40
  174. package/partials/index.js +407 -407
  175. package/partials/lib/partials.d.ts +0 -1
  176. package/radio.DEILy_lV.js +114 -0
  177. package/radio.d.ts +1 -0
  178. package/radiogroup.DeU-HdlP.js +10 -0
  179. package/radiogroup.d.ts +1 -0
  180. package/{select.C4OZMB-V.js → select.BYraFJzz.js} +4 -4
  181. package/select.d.ts +1 -0
  182. package/skiptocontent.BxvpIB7H.js +45 -0
  183. package/skiptocontent.d.ts +1 -0
  184. package/spinner.Bq97Og-6.js +58 -0
  185. package/spinner.d.ts +1 -0
  186. package/styles/fonts/STIHLContrafaceDigitalTextDemi.woff +0 -0
  187. package/styles/fonts/STIHLContrafaceDigitalTextDemi.woff2 +0 -0
  188. package/styles/fonts/font-face.min.css +1 -1
  189. package/styles/scss/ds/index.scss +19 -0
  190. package/styles/scss/ds/lib/animation.scss +21 -0
  191. package/styles/scss/ds/lib/breakpoints.scss +15 -0
  192. package/styles/scss/ds/lib/container-query.scss +54 -0
  193. package/styles/scss/ds/lib/ds-internal/_a11y.scss +15 -0
  194. package/styles/scss/{lib → ds/lib/ds-internal}/_focus.scss +13 -15
  195. package/styles/scss/ds/lib/ds-internal/_heading.scss +37 -0
  196. package/styles/scss/ds/lib/ds-internal/_helpers.scss +32 -0
  197. package/styles/scss/ds/lib/ds-internal/_high-contrast.scss +6 -0
  198. package/styles/scss/ds/lib/ds-internal/_hover.scss +6 -0
  199. package/styles/scss/ds/lib/ds-internal/_index.scss +9 -0
  200. package/styles/scss/ds/lib/ds-internal/_link.scss +62 -0
  201. package/styles/scss/ds/lib/ds-internal/_spacing-dynamic.scss +53 -0
  202. package/styles/scss/ds/lib/ds-internal/_text.scss +30 -0
  203. package/styles/scss/ds/lib/grid-extended.scss +11 -0
  204. package/styles/scss/ds/lib/grid-full.scss +6 -0
  205. package/styles/scss/ds/lib/grid-main.scss +119 -0
  206. package/styles/scss/ds/lib/grid-narrow.scss +14 -0
  207. package/styles/scss/ds/lib/grid-sidebar-sidebar.scss +52 -0
  208. package/styles/scss/{lib/_grid-sidebar.scss → ds/lib/grid-sidebar.scss} +23 -32
  209. package/styles/scss/{lib/_grid.scss → ds/lib/grid.scss} +15 -17
  210. package/styles/scss/ds/lib/heading.scss +75 -0
  211. package/styles/scss/ds/lib/link.scss +74 -0
  212. package/styles/scss/ds/lib/media-query.scss +32 -0
  213. package/styles/scss/{lib/_shadow.scss → ds/lib/shadow.scss} +2 -2
  214. package/styles/scss/ds/lib/spacing-dynamic.scss +7 -0
  215. package/styles/scss/ds/lib/spacing.scss +20 -0
  216. package/styles/scss/ds/lib/text.scss +83 -0
  217. package/styles/scss/ds/lib/theme.scss +162 -0
  218. package/styles/scss/ds/lib/transition.scss +36 -0
  219. package/switch.DI8YYa5G.js +65 -0
  220. package/switch.d.ts +1 -0
  221. package/{systemfeedback.ZzRUAVYX.js → systemfeedback.C3Pfxxpp.js} +6 -6
  222. package/systemfeedback.d.ts +1 -0
  223. package/text.DThvTwm8.js +57 -0
  224. package/text.d.ts +1 -0
  225. package/{textarea.CtQtGqn5.js → textarea.CBvH0ljM.js} +3 -3
  226. package/textarea.d.ts +1 -0
  227. package/title.DqzdB2Gq.js +36 -0
  228. package/title.d.ts +1 -0
  229. package/toast.d.ts +1 -0
  230. package/{toast.DVd9dLs2.js → toast.n1QUINSA.js} +3 -3
  231. package/{toastmanager.Dh0gzFkM.js → toastmanager.B7EZ4JSI.js} +2 -2
  232. package/toastmanager.d.ts +1 -0
  233. package/utils/index.d.ts +1 -0
  234. package/utils/translate.d.ts +11 -0
  235. package/utils/translate.test.d.ts +1 -0
  236. package/utils/useBreakpoint.d.ts +0 -1
  237. package/utils/useIsomorphicLayoutEffect.d.ts +0 -1
  238. package/utils/vitest.setup.d.ts +0 -1
  239. package/arialiveregions.BK4T7Vhk.js +0 -27
  240. package/assets/Accordion.lFv7Q_RG.css +0 -1
  241. package/assets/CustomReactSelect.CMkn-EGK.css +0 -1
  242. package/assets/Dialog.fiQvxJg_.css +0 -1
  243. package/assets/Drawer.BqBgbSuP.css +0 -1
  244. package/assets/Fieldset.qHYeUFZt.css +0 -1
  245. package/assets/Icon.Duy_0R8w.css +0 -1
  246. package/assets/InputPassword.Cf394z47.css +0 -1
  247. package/assets/InputSearch.eCRQoxjN.css +0 -1
  248. package/assets/InputStepper.B80KulYE.css +0 -1
  249. package/assets/Notification.DK6agBGS.css +0 -1
  250. package/assets/RadioGroup.Bz3_xkZU.css +0 -1
  251. package/assets/Select.BptsMxz4.css +0 -1
  252. package/assets/Textarea.CIIVh03G.css +0 -1
  253. package/assets/Toast.Dsvs1zdM.css +0 -1
  254. package/assets/arialiveregions.GsGx2USO.css +0 -1
  255. package/assets/asterisk.DlJ4YtSZ.css +0 -1
  256. package/assets/button.B1O7Yw3Q.css +0 -1
  257. package/assets/buttonround.DlH_ipDo.css +0 -1
  258. package/assets/checkbox.K4CVYK9g.css +0 -1
  259. package/assets/floatingactionbutton.DRYentYC.css +0 -1
  260. package/assets/heading.6bER-Eac.css +0 -1
  261. package/assets/input.C0MrSbQu.css +0 -1
  262. package/assets/link.vtTST2ki.css +0 -1
  263. package/assets/linkstandalone.BtAcziZ7.css +0 -1
  264. package/assets/logo.pETQEsvZ.css +0 -1
  265. package/assets/optioncheckbox.BJJAph5_.css +0 -1
  266. package/assets/radio.9kpIO3HC.css +0 -1
  267. package/assets/skiptocontent.CHcqLS7S.css +0 -1
  268. package/assets/spinner.D_Nnf1ZG.css +0 -1
  269. package/assets/switch.2DQF2zH-.css +0 -1
  270. package/assets/systemfeedback.Sq0bAIyf.css +0 -1
  271. package/assets/text.Dhb_l50R.css +0 -1
  272. package/assets/title.f74Bosn-.css +0 -1
  273. package/asterisk.DDn-yX4P.js +0 -8
  274. package/button.DH0h6uPs.js +0 -135
  275. package/buttonround.0mw4zzlU.js +0 -118
  276. package/checkbox.DETR3e3X.js +0 -112
  277. package/checkboxgroup.CZqrlF-x.js +0 -9
  278. package/chunks/Accordion.pI3JyHJL.js +0 -125
  279. package/chunks/CheckboxGroup.4J_gZ_XJ.js +0 -87
  280. package/chunks/Dialog.Z5ESJQMi.js +0 -148
  281. package/chunks/Drawer.BdowMqE0.js +0 -154
  282. package/chunks/Fieldset.COGbZwry.js +0 -99
  283. package/chunks/InputPassword.Dgo95-PU.js +0 -140
  284. package/chunks/InputSearch.BFof0pBn.js +0 -189
  285. package/chunks/InputStepper.4IqLa5tX.js +0 -291
  286. package/chunks/Notification.BhwbaXqk.js +0 -93
  287. package/chunks/RadioGroup.C5jbCJM4.js +0 -132
  288. package/chunks/RadioGroup.module.BBZwHDjW.js +0 -11
  289. package/chunks/Select.fXeQJXtz.js +0 -191
  290. package/chunks/Textarea.Bewrp0Za.js +0 -195
  291. package/chunks/Toast.DA_CQ9J-.js +0 -89
  292. package/components/CustomReactSelect/CustomReactSelect.utils.d.ts +0 -16
  293. package/customreactselect.Dg8Kgq3e.js +0 -13
  294. package/fieldset.CTshPWYX.js +0 -11
  295. package/floatingactionbutton.CCIj9Fjr.js +0 -87
  296. package/heading.CAkraI2D.js +0 -50
  297. package/input.CTgeAYdu.js +0 -236
  298. package/link.DAZNwQ0a.js +0 -116
  299. package/linkstandalone.C9X3er7g.js +0 -80
  300. package/logo.CEO6OV7u.js +0 -65
  301. package/optioncheckbox.DZWwtx6f.js +0 -43
  302. package/radio.CWGJtmKl.js +0 -115
  303. package/radiogroup.BhffFqN3.js +0 -11
  304. package/skiptocontent.C4yQfWr2.js +0 -46
  305. package/spinner.D-xrotcu.js +0 -58
  306. package/styles/scss/_index.scss +0 -23
  307. package/styles/scss/lib/_a11y.scss +0 -15
  308. package/styles/scss/lib/_animation.scss +0 -21
  309. package/styles/scss/lib/_breakpoints.scss +0 -16
  310. package/styles/scss/lib/_container-query.scss +0 -58
  311. package/styles/scss/lib/_grid-extended.scss +0 -11
  312. package/styles/scss/lib/_grid-full.scss +0 -6
  313. package/styles/scss/lib/_grid-main.scss +0 -117
  314. package/styles/scss/lib/_grid-narrow.scss +0 -16
  315. package/styles/scss/lib/_grid-sidebar-sidebar.scss +0 -50
  316. package/styles/scss/lib/_heading.scss +0 -107
  317. package/styles/scss/lib/_helpers.scss +0 -15
  318. package/styles/scss/lib/_high-contrast.scss +0 -24
  319. package/styles/scss/lib/_hover.scss +0 -10
  320. package/styles/scss/lib/_link.scss +0 -126
  321. package/styles/scss/lib/_media-query.scss +0 -32
  322. package/styles/scss/lib/_spacing.scss +0 -32
  323. package/styles/scss/lib/_text.scss +0 -110
  324. package/styles/scss/lib/_theme.scss +0 -162
  325. package/styles/scss/lib/_transition.scss +0 -45
  326. package/switch.CmpNUC7s.js +0 -65
  327. package/text.rgDKQBrU.js +0 -57
  328. package/title.LY1ylQsb.js +0 -36
  329. package/utils/render-in-iframe.d.ts +0 -15
  330. /package/components/{CustomReactSelect/CustomReactSelect.utils.test.d.ts → ChipGroup/ChipGroup.test.d.ts} +0 -0
@@ -1,154 +0,0 @@
1
- "use client";
2
- import { j as r } from "./jsx-runtime.C115EyI4.js";
3
- import { c as n } from "./index.CvOaL64Y.js";
4
- import { useRef as b, useState as j, useEffect as w } from "react";
5
- import { DSButton as B } from "../button.DH0h6uPs.js";
6
- import { g as R } from "./helpers.B1JT5ShS.js";
7
- import '../assets/Drawer.BqBgbSuP.css';const W = "_drawer_h62s5_85", C = "_drawer--end_h62s5_143", F = "_content-wrapper_h62s5_161", k = "_content-wrapper--no-footer_h62s5_167", I = "_close-button_h62s5_170", O = "_header_h62s5_183", y = "_content_h62s5_161", z = "_footer_h62s5_185", L = "_header--scrollable_h62s5_206", M = "_header--close-button_h62s5_215", H = "_content--no-footer_h62s5_229", P = "_footer--scrollable_h62s5_236", o = {
8
- drawer: W,
9
- "drawer--end": "_drawer--end_h62s5_143",
10
- drawerEnd: C,
11
- "content-wrapper": "_content-wrapper_h62s5_161",
12
- contentWrapper: F,
13
- "content-wrapper--no-footer": "_content-wrapper--no-footer_h62s5_167",
14
- contentWrapperNoFooter: k,
15
- "close-button": "_close-button_h62s5_170",
16
- closeButton: I,
17
- header: O,
18
- content: y,
19
- footer: z,
20
- "header--scrollable": "_header--scrollable_h62s5_206",
21
- headerScrollable: L,
22
- "header--close-button": "_header--close-button_h62s5_215",
23
- headerCloseButton: M,
24
- "content--no-footer": "_content--no-footer_h62s5_229",
25
- contentNoFooter: H,
26
- "footer--scrollable": "_footer--scrollable_h62s5_236",
27
- footerScrollable: P
28
- }, K = ["start", "end"], T = ({ tabIndex: s }) => {
29
- if (s || s === 0)
30
- throw new Error(
31
- R(
32
- "DSDrawer",
33
- "Do not pass the tabindex property to the DSDrawer component as it is not interactive and does not receive focus. The DSDrawers contents, including the close button contained in the DSDrawer, can receive focus and be interactive."
34
- )
35
- );
36
- }, Q = ({
37
- children: s,
38
- className: m,
39
- closeButtonLabel: D = "Close modal",
40
- disableBackdropClose: S = !1,
41
- footer: c,
42
- header: N,
43
- hideCloseButton: l = !1,
44
- position: v = "start",
45
- isOpen: d = !1,
46
- onClose: a,
47
- ..._
48
- }) => {
49
- if (process.env.NODE_ENV !== "production") {
50
- const { tabIndex: e } = _;
51
- T({
52
- tabIndex: e
53
- });
54
- }
55
- const t = b(null), h = b(null), [i, E] = j(!1);
56
- w(() => {
57
- const e = h.current;
58
- if (e) {
59
- const f = () => {
60
- E(
61
- e.scrollHeight > e.clientHeight
62
- );
63
- };
64
- f();
65
- const p = new ResizeObserver(f);
66
- return p.observe(e), () => {
67
- p.disconnect();
68
- };
69
- }
70
- }, []), w(() => {
71
- const e = t.current;
72
- if (e)
73
- return e.addEventListener("close", u), d ? e.showModal() : e.close(), () => {
74
- e.removeEventListener("close", u);
75
- };
76
- }, [d, a]);
77
- const u = () => {
78
- a && a();
79
- }, x = (e) => {
80
- S || t.current && e.target === t.current && t.current.close();
81
- }, g = () => {
82
- t.current && t.current.close();
83
- };
84
- return /* @__PURE__ */ r.jsx(
85
- "dialog",
86
- {
87
- ..._,
88
- ref: t,
89
- className: n(o.drawer, {
90
- [o.drawerEnd]: v === "end"
91
- }),
92
- onMouseDown: (e) => x(e),
93
- "aria-modal": "true",
94
- children: /* @__PURE__ */ r.jsxs(
95
- "div",
96
- {
97
- className: n(o.contentWrapper, m, {
98
- [o.contentWrapperNoFooter]: !c
99
- }),
100
- children: [
101
- !l && /* @__PURE__ */ r.jsx(
102
- B,
103
- {
104
- className: o.closeButton,
105
- hideLabel: !0,
106
- iconName: "cross",
107
- size: "small",
108
- type: "button",
109
- variant: "ghost",
110
- onClick: () => g(),
111
- children: D
112
- }
113
- ),
114
- /* @__PURE__ */ r.jsx(
115
- "header",
116
- {
117
- className: n(o.header, {
118
- [o.headerCloseButton]: !l,
119
- [o.headerScrollable]: i
120
- }),
121
- children: N
122
- }
123
- ),
124
- /* @__PURE__ */ r.jsx(
125
- "div",
126
- {
127
- ref: h,
128
- className: n(o.content, {
129
- [o.contentNoFooter]: !c
130
- }),
131
- tabIndex: 0,
132
- children: s
133
- }
134
- ),
135
- c && /* @__PURE__ */ r.jsx(
136
- "footer",
137
- {
138
- className: n(o.footer, {
139
- [o.footerScrollable]: i
140
- }),
141
- children: c
142
- }
143
- )
144
- ]
145
- }
146
- )
147
- }
148
- );
149
- };
150
- export {
151
- Q as D,
152
- K as a,
153
- T as v
154
- };
@@ -1,99 +0,0 @@
1
- "use client";
2
- import { j as e } from "./jsx-runtime.C115EyI4.js";
3
- import { c } from "./index.CvOaL64Y.js";
4
- import "react";
5
- import { Asterisk as z } from "../asterisk.DDn-yX4P.js";
6
- import { DSHeading as F } from "../heading.CAkraI2D.js";
7
- import { DSSystemFeedback as k } from "../systemfeedback.ZzRUAVYX.js";
8
- import { g as h } from "./helpers.B1JT5ShS.js";
9
- import '../assets/Fieldset.qHYeUFZt.css';const v = "_root_xfwzz_76", N = "_child-wrapper_xfwzz_82", E = "_legend_xfwzz_89", M = "_legend--utility--m_xfwzz_93", q = "_description_xfwzz_106", C = "_description--small_xfwzz_121", P = "_system-feedback_xfwzz_125", i = {
10
- root: v,
11
- "child-wrapper": "_child-wrapper_xfwzz_82",
12
- childWrapper: N,
13
- legend: E,
14
- "legend--utility--m": "_legend--utility--m_xfwzz_93",
15
- legendUtilityM: M,
16
- description: q,
17
- "description--small": "_description--small_xfwzz_121",
18
- descriptionSmall: C,
19
- "system-feedback": "_system-feedback_xfwzz_125",
20
- systemFeedback: P
21
- }, T = ({
22
- description: a,
23
- id: s,
24
- legend: n,
25
- systemFeedback: t
26
- }) => {
27
- if (!s && (a || t))
28
- throw new Error(
29
- h(
30
- "DSFieldset",
31
- 'A unique "id" prop is required when providing the description or systemFeedback property. Please add an unique "id" prop to the DSFieldset component.'
32
- )
33
- );
34
- if (!n)
35
- throw new Error(
36
- h(
37
- "DSFieldset",
38
- "The legend prop is required. Please add the legend prop to the DSFieldset component."
39
- )
40
- );
41
- }, H = ({
42
- children: a,
43
- legend: s,
44
- className: n,
45
- description: t,
46
- disabled: w = !1,
47
- id: d,
48
- invalid: p = !1,
49
- required: m = !1,
50
- systemFeedback: o,
51
- ...y
52
- }) => {
53
- process.env.NODE_ENV !== "production" && T({ description: t, id: d, legend: s, systemFeedback: o });
54
- let r, _, f;
55
- const l = typeof s == "object" && s !== void 0;
56
- l && ({ headingSize: r, headingTag: _, headingText: f } = s);
57
- const g = `${d}-feedback`, x = `${d}-description`, j = [
58
- o && g,
59
- t && x
60
- ].filter(Boolean).join(" "), S = !l || r === "small" || r === "small-uppercase", b = c(i.root, n), u = c(i.legend, {
61
- [i.legendUtilityM]: !l
62
- }), D = c(i.description, {
63
- [i.descriptionSmall]: S
64
- });
65
- return /* @__PURE__ */ e.jsxs(
66
- "fieldset",
67
- {
68
- className: b,
69
- disabled: w,
70
- ...y,
71
- "aria-invalid": p,
72
- "aria-describedby": j || void 0,
73
- children: [
74
- /* @__PURE__ */ e.jsx("legend", { className: u, children: l ? /* @__PURE__ */ e.jsxs(F, { tag: _, size: r, children: [
75
- f,
76
- m && /* @__PURE__ */ e.jsx(z, {})
77
- ] }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
78
- s,
79
- m && /* @__PURE__ */ e.jsx(z, {})
80
- ] }) }),
81
- t && /* @__PURE__ */ e.jsx("span", { id: x, className: D, children: t }),
82
- p && o && /* @__PURE__ */ e.jsx(
83
- k,
84
- {
85
- id: g,
86
- type: "invalid",
87
- message: o,
88
- className: i.systemFeedback
89
- }
90
- ),
91
- /* @__PURE__ */ e.jsx("div", { className: i.childWrapper, children: a })
92
- ]
93
- }
94
- );
95
- };
96
- export {
97
- H as D,
98
- T as v
99
- };
@@ -1,140 +0,0 @@
1
- "use client";
2
- import { j as a } from "./jsx-runtime.C115EyI4.js";
3
- import { c as i } from "./index.CvOaL64Y.js";
4
- import { useState as A } from "react";
5
- import { u as D } from "./useBreakpoint.5xBNDiCf.js";
6
- import { Asterisk as C } from "../asterisk.DDn-yX4P.js";
7
- import { DSButton as L } from "../button.DH0h6uPs.js";
8
- import { DSSystemFeedback as $ } from "../systemfeedback.ZzRUAVYX.js";
9
- import { g as x } from "./helpers.B1JT5ShS.js";
10
- import '../assets/InputPassword.Cf394z47.css';const E = "_input_1pqhx_226", R = "_input--invalid_1pqhx_338", V = "_input--small_1pqhx_345", O = "_input--has-leading-icon_1pqhx_399", F = "_input--has-action-button_1pqhx_402", M = "_input--has-second-action-button_1pqhx_405", T = "_input--has-affix_1pqhx_417", G = "_input--is-ready_1pqhx_431", J = "_root_1pqhx_438", K = "_hint_1pqhx_446", Q = "_label_1pqhx_446", U = "_wrapper_1pqhx_450", W = "_action-button_1pqhx_456", X = "_label--hidden_1pqhx_475", Y = "_feedback_1pqhx_504", t = {
11
- input: E,
12
- "input--invalid": "_input--invalid_1pqhx_338",
13
- inputInvalid: R,
14
- "input--small": "_input--small_1pqhx_345",
15
- inputSmall: V,
16
- "input--has-leading-icon": "_input--has-leading-icon_1pqhx_399",
17
- inputHasLeadingIcon: O,
18
- "input--has-action-button": "_input--has-action-button_1pqhx_402",
19
- inputHasActionButton: F,
20
- "input--has-second-action-button": "_input--has-second-action-button_1pqhx_405",
21
- inputHasSecondActionButton: M,
22
- "input--has-affix": "_input--has-affix_1pqhx_417",
23
- inputHasAffix: T,
24
- "input--is-ready": "_input--is-ready_1pqhx_431",
25
- inputIsReady: G,
26
- root: J,
27
- hint: K,
28
- label: Q,
29
- wrapper: U,
30
- "action-button": "_action-button_1pqhx_456",
31
- actionButton: W,
32
- "label--hidden": "_label--hidden_1pqhx_475",
33
- labelHidden: X,
34
- feedback: Y
35
- }, Z = ({ id: n, label: s }) => {
36
- if (!n)
37
- throw new Error(
38
- x(
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
- x(
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
- }, pt = ({
51
- id: n,
52
- label: s,
53
- autocomplete: b = "new-password",
54
- className: f,
55
- disabled: c = !1,
56
- hidePasswordText: q = "Hide password",
57
- hint: e,
58
- hideLabel: w = !1,
59
- invalid: o = !1,
60
- readonly: r = !1,
61
- required: d = !1,
62
- showPasswordText: y = "Show password",
63
- size: p = "medium",
64
- systemFeedback: l,
65
- ...S
66
- }) => {
67
- process.env.NODE_ENV !== "production" && Z({
68
- id: n,
69
- label: s
70
- });
71
- const [u, I] = A(!1), _ = `${n}-label`, h = `${n}-feedback`, m = `${n}-hint`, v = e ? ` ${m}` : "", B = D(w), H = i(t.root, f), g = i(t.input, {
72
- // small input
73
- [t.inputSmall]: p === "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]: B
81
- }), N = i(t.actionButton, {
82
- [t.actionButtonSmall]: p === "small"
83
- }), j = () => {
84
- I((k) => !k);
85
- };
86
- return /* @__PURE__ */ a.jsxs("div", { className: H, 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: m, children: e }),
92
- o && l && /* @__PURE__ */ a.jsx(
93
- $,
94
- {
95
- className: t.feedback,
96
- message: l,
97
- type: "invalid",
98
- id: h
99
- }
100
- ),
101
- /* @__PURE__ */ a.jsxs("div", { className: t.wrapper, children: [
102
- /* @__PURE__ */ a.jsx(
103
- "input",
104
- {
105
- className: g,
106
- id: n,
107
- ...S,
108
- "aria-labelledby": `${_}${v}`,
109
- "aria-describedby": o && l ? h : void 0,
110
- "aria-invalid": o,
111
- "aria-disabled": r,
112
- readOnly: r,
113
- required: d,
114
- disabled: c,
115
- autoComplete: b,
116
- type: u ? "text" : "password"
117
- }
118
- ),
119
- /* @__PURE__ */ a.jsx(
120
- L,
121
- {
122
- hideLabel: !0,
123
- theme: "light",
124
- iconName: u ? "eye-closed" : "eye",
125
- variant: "ghost",
126
- className: N,
127
- size: p,
128
- onClick: j,
129
- type: "button",
130
- disabled: c,
131
- children: u ? q : y
132
- }
133
- )
134
- ] })
135
- ] });
136
- };
137
- export {
138
- pt as D,
139
- Z as v
140
- };
@@ -1,189 +0,0 @@
1
- "use client";
2
- import { j as e } from "./jsx-runtime.C115EyI4.js";
3
- import { c } from "./index.CvOaL64Y.js";
4
- import { useState as G, useRef as N, useEffect as w } from "react";
5
- import { g as S, a as J } from "./helpers.B1JT5ShS.js";
6
- import { u as K } from "./useBreakpoint.5xBNDiCf.js";
7
- import { Asterisk as Q } from "../asterisk.DDn-yX4P.js";
8
- import { DSButton as D } from "../button.DH0h6uPs.js";
9
- import { DSSystemFeedback as U } from "../systemfeedback.ZzRUAVYX.js";
10
- import '../assets/InputSearch.eCRQoxjN.css';const X = "_input_8z3ht_226", Y = "_input--invalid_8z3ht_338", Z = "_input--small_8z3ht_345", tt = "_input--has-leading-icon_8z3ht_399", nt = "_input--has-action-button_8z3ht_402", et = "_input--has-second-action-button_8z3ht_405", at = "_input--has-affix_8z3ht_417", st = "_input--is-ready_8z3ht_431", ot = "_root_8z3ht_438", it = "_hint_8z3ht_446", ct = "_label_8z3ht_446", ut = "_wrapper_8z3ht_450", lt = "_action-button_8z3ht_456", rt = "_second-action-button_8z3ht_460", pt = "_label--hidden_8z3ht_479", ht = "_feedback_8z3ht_508", t = {
11
- input: X,
12
- "input--invalid": "_input--invalid_8z3ht_338",
13
- inputInvalid: Y,
14
- "input--small": "_input--small_8z3ht_345",
15
- inputSmall: Z,
16
- "input--has-leading-icon": "_input--has-leading-icon_8z3ht_399",
17
- inputHasLeadingIcon: tt,
18
- "input--has-action-button": "_input--has-action-button_8z3ht_402",
19
- inputHasActionButton: nt,
20
- "input--has-second-action-button": "_input--has-second-action-button_8z3ht_405",
21
- inputHasSecondActionButton: et,
22
- "input--has-affix": "_input--has-affix_8z3ht_417",
23
- inputHasAffix: at,
24
- "input--is-ready": "_input--is-ready_8z3ht_431",
25
- inputIsReady: st,
26
- root: ot,
27
- hint: it,
28
- label: ct,
29
- wrapper: ut,
30
- "action-button": "_action-button_8z3ht_456",
31
- actionButton: lt,
32
- "second-action-button": "_second-action-button_8z3ht_460",
33
- secondActionButton: rt,
34
- "label--hidden": "_label--hidden_8z3ht_479",
35
- labelHidden: pt,
36
- feedback: ht
37
- }, _t = ({ id: n, label: u }) => {
38
- if (!n)
39
- throw new Error(
40
- S(
41
- "DSInputSearch",
42
- 'A unique "id" prop is required. Please add an unique "id" prop to the DSInputSearch component.'
43
- )
44
- );
45
- if (!u)
46
- throw new Error(
47
- S(
48
- "DSInputSearch",
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
- )
51
- );
52
- }, dt = (n) => !!J(n, "form"), Bt = ({
53
- id: n,
54
- label: u,
55
- className: A,
56
- clearButtonLabel: H = "Clear search field",
57
- disabled: l = !1,
58
- hint: d,
59
- hideLabel: E = !1,
60
- invalid: r = !1,
61
- readonly: s = !1,
62
- required: I = !1,
63
- size: o = "medium",
64
- submitButtonLabel: j = "Search",
65
- systemFeedback: m,
66
- value: b,
67
- submitButtonOnClick: C,
68
- onChange: g,
69
- ...k
70
- }) => {
71
- process.env.NODE_ENV !== "production" && _t({
72
- id: n,
73
- label: u
74
- });
75
- const [p, v] = G(b), f = N(null), h = N(null), L = K(E);
76
- w(() => {
77
- v(b);
78
- }, [b]), w(() => {
79
- f.current && !dt(f.current) && process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && console.warn(
80
- S(
81
- "DSInputSearch",
82
- `The DSInputSearch component with the id "${n}" is not within a form element. This may cause issues with form submission. Please ensure the DSInputSearch component is within a form element.`
83
- )
84
- );
85
- }, []);
86
- const z = `${n}-label`, B = `${n}-feedback`, y = `${n}-hint`, V = d ? ` ${y}` : "", x = p !== "" && p !== void 0 && p !== null, O = c(t.root, A), P = c(t.input, {
87
- // small input
88
- [t.inputSmall]: o === "small",
89
- // invalid state
90
- [t.inputInvalid]: r,
91
- // action button - input password always has an action button
92
- [t.inputHasActionButton]: !0,
93
- // action second action button
94
- [t.inputHasSecondActionButton]: x && !s && !l
95
- }), $ = c(t.label, {
96
- // hide label only visually to keep them available for assistive technologies
97
- [t.labelHidden]: L
98
- }), R = c(t.actionButton, {
99
- [t.actionButtonSmall]: o === "small"
100
- }), q = c(t.secondActionButton, {
101
- [t.secondActionButtonSmall]: o === "small"
102
- }), T = (a, i) => {
103
- const W = Object.getPrototypeOf(a), _ = Object.getOwnPropertyDescriptor(
104
- W,
105
- "value"
106
- );
107
- _ != null && _.set ? _.set.call(a, i) : a.value = i;
108
- }, F = () => {
109
- var i;
110
- if (!h.current) return;
111
- T(h.current, "");
112
- const a = new Event("change", { bubbles: !0 });
113
- (i = h.current) == null || i.dispatchEvent(a);
114
- }, M = (a) => {
115
- v(a.target.value), g && g(a);
116
- };
117
- return /* @__PURE__ */ e.jsxs("div", { className: O, ref: f, children: [
118
- /* @__PURE__ */ e.jsxs("label", { className: $, id: z, htmlFor: n, children: [
119
- u,
120
- I && /* @__PURE__ */ e.jsx(Q, {})
121
- ] }),
122
- d && /* @__PURE__ */ e.jsx("div", { className: t.hint, id: y, children: d }),
123
- r && m && /* @__PURE__ */ e.jsx(
124
- U,
125
- {
126
- className: t.feedback,
127
- message: m,
128
- type: "invalid",
129
- id: B
130
- }
131
- ),
132
- /* @__PURE__ */ e.jsxs("div", { className: t.wrapper, children: [
133
- /* @__PURE__ */ e.jsx(
134
- "input",
135
- {
136
- className: P,
137
- id: n,
138
- ref: h,
139
- ...k,
140
- "aria-labelledby": `${z}${V}`,
141
- "aria-describedby": r && m ? B : void 0,
142
- "aria-invalid": r,
143
- "aria-disabled": s,
144
- readOnly: s,
145
- required: I,
146
- disabled: l,
147
- type: "search",
148
- value: p,
149
- onChange: M
150
- }
151
- ),
152
- x && !s && !l && /* @__PURE__ */ e.jsx(
153
- D,
154
- {
155
- hideLabel: !0,
156
- theme: "light",
157
- iconName: "cross",
158
- className: q,
159
- variant: "ghost",
160
- size: o,
161
- onClick: F,
162
- type: "button",
163
- tabIndex: -1,
164
- children: H
165
- }
166
- ),
167
- /* @__PURE__ */ e.jsx(
168
- D,
169
- {
170
- hideLabel: !0,
171
- theme: "light",
172
- iconName: "magnifying-glass",
173
- className: R,
174
- variant: "ghost",
175
- size: o,
176
- onClick: C,
177
- type: "submit",
178
- disabled: l || s,
179
- children: j
180
- }
181
- )
182
- ] })
183
- ] });
184
- };
185
- export {
186
- Bt as D,
187
- dt as i,
188
- _t as v
189
- };