@stihl-design-system/components 1.0.0-RC.32 → 1.0.0-RC.35

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 (284) hide show
  1. package/accordion.Dmqocj97.js +12 -0
  2. package/actionbutton.Du5CT-Mt.js +12 -0
  3. package/actionlink.BK9CaQUY.js +12 -0
  4. package/{arialiveregions.Fgcshs5k.js → arialiveregions.BUVY9NpY.js} +2 -2
  5. package/assets/Accordion.CzBGud45.css +1 -0
  6. package/assets/Button.CmeGVEAY.css +1 -0
  7. package/assets/Checkbox.CyOw3rXI.css +1 -0
  8. package/assets/CustomReactSelect.BihX36Uo.css +1 -0
  9. package/assets/Dialog.DJkn65Es.css +1 -0
  10. package/assets/Drawer.x3BCQvWE.css +1 -0
  11. package/assets/Fieldset.Oqu7pOBv.css +1 -0
  12. package/assets/InputFile.D7Ihod7B.css +1 -0
  13. package/assets/InputNumber.z_UqRYdv.css +1 -0
  14. package/assets/InputPassword.DZENjxJ9.css +1 -0
  15. package/assets/InputSearch.GBH9Eh6F.css +1 -0
  16. package/assets/LinkButton.88j5ckLu.css +1 -0
  17. package/assets/{MegaMenu.DX9gChtY.css → MegaMenu.D5EtjFeL.css} +1 -1
  18. package/assets/Notification.CvohYEvT.css +1 -0
  19. package/assets/Select.CL0fqx7X.css +1 -0
  20. package/assets/Slider.DWLuIsNj.css +1 -0
  21. package/assets/Stepper.tXJl15yL.css +1 -0
  22. package/assets/{SystemFeedback.RcrPepSZ.css → SystemFeedback.PKzqnXUe.css} +1 -1
  23. package/assets/Textarea.B1HOakic.css +1 -0
  24. package/assets/Toast.CGyKXb4V.css +1 -0
  25. package/assets/buttonround.DBpMesfr.css +1 -0
  26. package/assets/input.RPDR8qdT.css +1 -0
  27. package/assets/step.BeLporJO.css +1 -0
  28. package/assets/switch.B9B-n_3y.css +1 -0
  29. package/{asterisk.CR60hx8S.js → asterisk.B2ih8VwF.js} +1 -1
  30. package/{banner.o4Etkjjo.js → banner.D-RX60nJ.js} +3 -3
  31. package/breadcrumb.tvMByFgp.js +11 -0
  32. package/button.CZupaV9L.js +12 -0
  33. package/buttonround.9IS0tUqw.js +96 -0
  34. package/checkbox.XYQI-ubx.js +12 -0
  35. package/checkboxgroup.CjnNJ8e6.js +9 -0
  36. package/chip.B-pxhsdb.js +12 -0
  37. package/chipgroup.cGjn4LVV.js +143 -0
  38. package/chunks/Accordion.CYIfNOWr.js +168 -0
  39. package/chunks/{ActionButton.DdDesD7K.js → ActionButton.BOYQYo5M.js} +37 -37
  40. package/chunks/{ActionLink.DqAsPYda.js → ActionLink.BlwvrnPN.js} +36 -36
  41. package/chunks/{AriaLiveRegions.utils.Cb327d_2.js → AriaLiveRegions.utils.CybNIBSa.js} +2 -2
  42. package/chunks/{Breadcrumb.9KinNuyQ.js → Breadcrumb.Qr6bDP2N.js} +35 -37
  43. package/chunks/Button.Cn5yg7dG.js +138 -0
  44. package/chunks/Checkbox.D5X5T6Yg.js +88 -0
  45. package/chunks/CheckboxGroup.CUR_0VMc.js +74 -0
  46. package/chunks/{Chip.BrbYu6i_.js → Chip.DIp5hdRH.js} +6 -6
  47. package/chunks/{CustomReactSelect.Cqq70QC0.js → CustomReactSelect.BA3hUVkh.js} +897 -878
  48. package/chunks/Dialog.DRk_jSj5.js +102 -0
  49. package/chunks/Drawer.Dj6WeUC8.js +107 -0
  50. package/chunks/Fieldset.C0RzpI-h.js +81 -0
  51. package/chunks/Header.18sOO0Gf.js +370 -0
  52. package/chunks/{Icon.NSsVrYeq.js → Icon.CDLyB7Pv.js} +77 -79
  53. package/chunks/{Input.utils.Cnnzvuk4.js → Input.utils.CL1u4Ctq.js} +30 -28
  54. package/chunks/InputFile.Bki3bs3U.js +236 -0
  55. package/chunks/InputNumber.B43cqBH0.js +242 -0
  56. package/chunks/InputPassword.DcdMjsXr.js +121 -0
  57. package/chunks/InputSearch.CJm6ph8W.js +149 -0
  58. package/chunks/LinkButton.C6F-yuLL.js +139 -0
  59. package/chunks/MegaMenu.qttkjGbD.js +188 -0
  60. package/chunks/NavigationTabList.G_l0GiUa.js +67 -0
  61. package/chunks/{NavigationTabs.DspPFHPh.js → NavigationTabs.CQxlahX1.js} +13 -14
  62. package/chunks/Notification.Qzz88ngL.js +91 -0
  63. package/chunks/Popover.D7McfVaH.js +214 -0
  64. package/chunks/RadioGroup.B2VCD9x-.js +106 -0
  65. package/chunks/Select.B0uMOSSD.js +147 -0
  66. package/chunks/Slider.YTIktxxD.js +306 -0
  67. package/chunks/Stepper.BvPmbbqw.js +152 -0
  68. package/chunks/{SystemFeedback.CyGbUCzT.js → SystemFeedback.CjlARKki.js} +9 -9
  69. package/chunks/Tabs.CoO_lrhV.js +83 -0
  70. package/chunks/{Text.DGWeWF1y.js → Text.DpRtTpB4.js} +3 -3
  71. package/chunks/Textarea.lYiPXerd.js +181 -0
  72. package/chunks/Toast.L5HAuEOn.js +76 -0
  73. package/chunks/{arrow-clockwise.BefOjGPg.js → arrow-clockwise.C4iOgjOc.js} +1 -1
  74. package/chunks/{arrow-counterclockwise.C7Ov32BZ.js → arrow-counterclockwise.CgQAuBUe.js} +1 -1
  75. package/chunks/{circle-check-colored.Bye_GwLy.js → circle-check-colored.qP2s3vjI.js} +1 -1
  76. package/chunks/{diamond-exclamationmark-colored.WNKYwZ8q.js → diamond-exclamationmark-colored.CzYiaTZ0.js} +1 -1
  77. package/chunks/feather.l1E4nFBx.js +10 -0
  78. package/chunks/file-type-doc.B_RSSYbu.js +10 -0
  79. package/chunks/floating-ui.react.COTL3jH5.js +2984 -0
  80. package/chunks/helpers.CexwVao7.js +38 -0
  81. package/chunks/{index.CgTHIF3K.js → index.D-sRdssb.js} +1 -1
  82. package/chunks/{index.CEyLAtio.js → index.DL9mof6u.js} +2 -2
  83. package/chunks/{is-animation-disabled.CUl4N3LI.js → is-animation-disabled.B-V_68K-.js} +5 -5
  84. package/chunks/{map.CXgG1iGz.js → map.DNl7PF61.js} +1 -1
  85. package/chunks/moon.5yILPYXs.js +10 -0
  86. package/chunks/muscle.DbNjWasV.js +10 -0
  87. package/chunks/petrol.BGWwCsTw.js +10 -0
  88. package/chunks/sun.CY6ttzTL.js +10 -0
  89. package/chunks/{triangle-exclamationmark-colored.CbVC3Gzi.js → triangle-exclamationmark-colored.e93zvQ6Q.js} +1 -1
  90. package/chunks/upload.BogDfonx.js +10 -0
  91. package/chunks/useBreakpoint.1txsny17.js +45 -0
  92. package/chunks/variants.-R3_RCW8.js +10 -0
  93. package/chunks/weight.DUPu2UT0.js +10 -0
  94. package/combobox.CGEDlMo0.js +71 -0
  95. package/components/Button/Button.d.ts +5 -0
  96. package/components/Button/Button.utils.d.ts +4 -5
  97. package/components/CheckboxGroup/CheckboxGroup.d.ts +14 -1
  98. package/components/ChipGroup/ChipGroup.utils.d.ts +1 -3
  99. package/components/Combobox/Combobox.utils.d.ts +6 -6
  100. package/components/Combobox/CustomReactSelect/CustomReactSelect.d.ts +17 -2
  101. package/components/Fieldset/Fieldset.d.ts +14 -1
  102. package/components/Input/Input.d.ts +13 -0
  103. package/components/Input/Input.utils.d.ts +2 -2
  104. package/components/InputFile/InputFile.d.ts +13 -0
  105. package/components/InputFile/InputFile.utils.d.ts +4 -2
  106. package/components/{InputStepper/InputStepper.d.ts → InputNumber/InputNumber.d.ts} +21 -8
  107. package/components/InputNumber/InputNumber.utils.d.ts +13 -0
  108. package/components/InputPassword/InputPassword.d.ts +13 -0
  109. package/components/InputPassword/InputPassword.utils.d.ts +2 -2
  110. package/components/InputSearch/InputSearch.d.ts +13 -0
  111. package/components/InputSearch/InputSearch.utils.d.ts +2 -2
  112. package/components/LinkButton/LinkButton.d.ts +5 -0
  113. package/components/LinkButton/LinkButton.utils.d.ts +4 -5
  114. package/components/RadioGroup/RadioGroup.d.ts +13 -0
  115. package/components/Scroller/Scroller.d.ts +6 -2
  116. package/components/Select/Select.d.ts +13 -0
  117. package/components/Select/Select.utils.d.ts +2 -2
  118. package/components/Slider/Slider.d.ts +13 -0
  119. package/components/Stepper/Step.d.ts +33 -0
  120. package/components/Stepper/Step.utils.d.ts +5 -0
  121. package/components/Stepper/Stepper.d.ts +56 -0
  122. package/components/Stepper/Stepper.test.d.ts +1 -0
  123. package/components/Stepper/Stepper.utils.d.ts +30 -0
  124. package/components/Stepper/Stepper.utils.test.d.ts +1 -0
  125. package/components/Textarea/Textarea.d.ts +13 -0
  126. package/components/Textarea/Textarea.utils.d.ts +2 -2
  127. package/customreactselect.BgYf8rKE.js +15 -0
  128. package/dialog.Bq-ZyzR8.js +9 -0
  129. package/drawer.DL5UzLWf.js +9 -0
  130. package/fieldset.BFLW2D9H.js +12 -0
  131. package/{filelist.BiKMKCyg.js → filelist.BG6SGVJ8.js} +23 -24
  132. package/{flag.72PONA83.js → flag.CE32qHPa.js} +3 -3
  133. package/{floatingactionbutton.B2YChsNU.js → floatingactionbutton.B5hJ2At2.js} +5 -5
  134. package/header.A77yIAH3.js +12 -0
  135. package/{heading.BXFBZhKv.js → heading.DHLpT4dc.js} +2 -2
  136. package/icon.vzkPwgjZ.js +9 -0
  137. package/index.d.ts +4 -2
  138. package/index.es.js +218 -206
  139. package/input.hBWqQr3X.js +190 -0
  140. package/inputfile.BSZuRujU.js +18 -0
  141. package/inputnumber.CA4JiUmq.js +17 -0
  142. package/inputnumber.d.ts +2 -0
  143. package/inputpassword.Cju_crMi.js +13 -0
  144. package/inputsearch.CU9AhVVv.js +15 -0
  145. package/{link.DbnvsD3j.js → link.DoiK003-.js} +5 -5
  146. package/linkbutton.CWco_B7v.js +12 -0
  147. package/{logo.C96KaG1P.js → logo.DprmD8HU.js} +3 -3
  148. package/{logo100years.BcB6_c-o.js → logo100years.DDzCrczW.js} +11 -11
  149. package/megamenu.BurL9MfF.js +12 -0
  150. package/navigationtablist.CkkLyHrM.js +10 -0
  151. package/navigationtabs.zhRZHjgs.js +9 -0
  152. package/notification.BiXdWNo7.js +10 -0
  153. package/{numberindicator.Ddf3ESi7.js → numberindicator.BdnPMogE.js} +2 -2
  154. package/{optioncheckbox.DqfXuPdi.js → optioncheckbox.nBVwGv6c.js} +3 -3
  155. package/package.json +42 -50
  156. package/partials/index.js +54 -48
  157. package/partials/lib/partials.d.ts +1 -1
  158. package/popover.79Voiadz.js +12 -0
  159. package/{radio.7_N_alaS.js → radio.DHUfSPai.js} +2 -2
  160. package/radiogroup.CwBh7u9L.js +11 -0
  161. package/scroller.IpfbFV8B.js +98 -0
  162. package/select.NHaEtX_u.js +14 -0
  163. package/{skiptocontent.BSCde5hT.js → skiptocontent.X4USTODk.js} +4 -4
  164. package/slider.jnNGEyBq.js +12 -0
  165. package/{spinner.BUjhjAvw.js → spinner.C9qCeq0R.js} +18 -18
  166. package/step.D5p7qppy.js +82 -0
  167. package/step.d.ts +6 -0
  168. package/stepper.DnMc4ex6.js +16 -0
  169. package/stepper.d.ts +2 -0
  170. package/styles/scss/ds/lib/ds-internal/_input.scss +12 -3
  171. package/styles/scss/ds/lib/ds-internal/_link-button.scss +10 -2
  172. package/styles/scss/ds/lib/link-button.scss +11 -3
  173. package/{switch.D7BCfyyZ.js → switch.Bqdyzi2E.js} +5 -5
  174. package/systemfeedback.O7tj1juR.js +10 -0
  175. package/tablist.BFE6RAPD.js +209 -0
  176. package/{tabpane.CB-eudyw.js → tabpane.C4nsUlwc.js} +2 -2
  177. package/tabs.CsOxxQyQ.js +11 -0
  178. package/text.cLv2PhjQ.js +10 -0
  179. package/textarea.C9OAAjhG.js +14 -0
  180. package/{title.Bz_k5Vda.js → title.DuLPB-VK.js} +2 -2
  181. package/toast.OBI9qnAM.js +11 -0
  182. package/toastmanager.CgsA-1y_.js +89 -0
  183. package/tooltip.Cj3AvYgB.js +177 -0
  184. package/topbar.CAujTZAE.js +12 -0
  185. package/types/icon-types.d.ts +1 -1
  186. package/utils/index.d.ts +1 -0
  187. package/utils/mergeRefs.d.ts +5 -0
  188. package/utils/mergeRefs.test.d.ts +1 -0
  189. package/utils/useIsomorphicLayoutEffect.d.ts +2 -2
  190. package/accordion.HfUSDwQJ.js +0 -12
  191. package/actionbutton.kgd0E_xF.js +0 -12
  192. package/actionlink.CwC42RWc.js +0 -12
  193. package/assets/Accordion.BJb4TOG0.css +0 -1
  194. package/assets/Button.Dw8H5nFS.css +0 -1
  195. package/assets/Checkbox.BKHQN_tu.css +0 -1
  196. package/assets/CustomReactSelect.DGIItWIh.css +0 -1
  197. package/assets/Dialog.CGAg7bnN.css +0 -1
  198. package/assets/Drawer.VOvWQoEr.css +0 -1
  199. package/assets/Fieldset.CW9dBvAo.css +0 -1
  200. package/assets/InputFile.CCQxsulT.css +0 -1
  201. package/assets/InputPassword.124xVOiO.css +0 -1
  202. package/assets/InputSearch.Bkg-1urJ.css +0 -1
  203. package/assets/InputStepper.DvFJk1Mi.css +0 -1
  204. package/assets/LinkButton.xMvg_ojf.css +0 -1
  205. package/assets/Notification.BOuaA5GT.css +0 -1
  206. package/assets/Select.C1gWF32A.css +0 -1
  207. package/assets/Slider.Bidyhb-B.css +0 -1
  208. package/assets/Textarea.Dq4rH9Tg.css +0 -1
  209. package/assets/Toast.CJ1zhDIT.css +0 -1
  210. package/assets/buttonround.Cw9hnUan.css +0 -1
  211. package/assets/input.CUjGh-UM.css +0 -1
  212. package/assets/switch.Bc9KIyw9.css +0 -1
  213. package/breadcrumb.BsQm0kUD.js +0 -11
  214. package/button.Dyy6ajX6.js +0 -13
  215. package/buttonround.ChKWHzsv.js +0 -96
  216. package/checkbox.BNnp4ztM.js +0 -12
  217. package/checkboxgroup.BTVnKenc.js +0 -9
  218. package/chip.C7NstOHt.js +0 -12
  219. package/chipgroup.Zo1-IOCn.js +0 -210
  220. package/chunks/Accordion.CnqryAUu.js +0 -170
  221. package/chunks/Button.Cf1CKq8N.js +0 -142
  222. package/chunks/Checkbox.CiwriItT.js +0 -88
  223. package/chunks/CheckboxGroup.Cj68J6Ee.js +0 -72
  224. package/chunks/Dialog.Bv7k55He.js +0 -135
  225. package/chunks/Drawer.BVTvx276.js +0 -140
  226. package/chunks/Fieldset.D7cLR5ze.js +0 -74
  227. package/chunks/Header.um5MlziB.js +0 -377
  228. package/chunks/InputFile.bVWWdePn.js +0 -220
  229. package/chunks/InputPassword.Da3hEKTc.js +0 -136
  230. package/chunks/InputSearch.GOYqFCcZ.js +0 -174
  231. package/chunks/InputStepper.BuhPtfl-.js +0 -268
  232. package/chunks/LinkButton.59oNDwPU.js +0 -132
  233. package/chunks/MegaMenu._o3nNDAa.js +0 -192
  234. package/chunks/NavigationTabList.DuT7gzhj.js +0 -57
  235. package/chunks/Notification.Pts2oh0R.js +0 -92
  236. package/chunks/Popover.BRR8YZ-P.js +0 -228
  237. package/chunks/RadioGroup.DeTz3c19.js +0 -104
  238. package/chunks/Select.D2ehd4yN.js +0 -162
  239. package/chunks/Slider.84lkgq3W.js +0 -292
  240. package/chunks/Tabs.C8ADTzJ0.js +0 -83
  241. package/chunks/Textarea.Cw85sxHL.js +0 -163
  242. package/chunks/Toast.DG3WVvau.js +0 -76
  243. package/chunks/file-type-doc.DlovDOBh.js +0 -10
  244. package/chunks/floating-ui.dom.VgHc0h4l.js +0 -989
  245. package/chunks/floating-ui.react.DCyAzlZ4.js +0 -2011
  246. package/chunks/helpers.BbWkXTr3.js +0 -37
  247. package/chunks/petrol.Du6qAgp0.js +0 -10
  248. package/chunks/upload.ZImTAIgx.js +0 -10
  249. package/chunks/useBreakpoint.CMOR9ZOB.js +0 -44
  250. package/combobox.orZ3z8CB.js +0 -60
  251. package/components/InputStepper/InputStepper.utils.d.ts +0 -13
  252. package/customreactselect.Np-RpzvU.js +0 -14
  253. package/dialog.D4rcbW6A.js +0 -10
  254. package/drawer.BCCB3Rkj.js +0 -10
  255. package/fieldset.ZLs9IGpE.js +0 -11
  256. package/header.DUbn3BZt.js +0 -12
  257. package/icon.CHVAZr5T.js +0 -9
  258. package/input.DG20x6gh.js +0 -203
  259. package/inputfile.Dc56lQ4t.js +0 -17
  260. package/inputpassword.znFHRLsI.js +0 -13
  261. package/inputsearch.B1G6rfVk.js +0 -14
  262. package/inputstepper.d.ts +0 -2
  263. package/inputstepper.o6rdM_CW.js +0 -16
  264. package/linkbutton.DU8Ih8ZF.js +0 -12
  265. package/megamenu.CPH8EeFF.js +0 -12
  266. package/navigationtablist.C0iwsAad.js +0 -9
  267. package/navigationtabs.JjJtbuUe.js +0 -9
  268. package/notification.Ds_Q7ifk.js +0 -10
  269. package/popover.B72W0OvU.js +0 -12
  270. package/radiogroup.C_3IcNBq.js +0 -11
  271. package/scroller.CQxmQU6U.js +0 -123
  272. package/select.Ceyt-zvu.js +0 -13
  273. package/slider.Dq2dcziy.js +0 -11
  274. package/systemfeedback.CSdWOWuf.js +0 -10
  275. package/tablist.V7DBklhE.js +0 -256
  276. package/tabs.DQNLPAEN.js +0 -11
  277. package/text.ZOUuesnU.js +0 -10
  278. package/textarea.CixKeQBp.js +0 -13
  279. package/toast.D8QprMCa.js +0 -11
  280. package/toastmanager.BSVjYsg9.js +0 -116
  281. package/tooltip.CUCSRXd3.js +0 -191
  282. package/topbar.CVhJy-Br.js +0 -12
  283. /package/components/{InputStepper/InputStepper.test.d.ts → InputNumber/InputNumber.test.d.ts} +0 -0
  284. /package/components/{InputStepper/InputStepper.utils.test.d.ts → InputNumber/InputNumber.utils.test.d.ts} +0 -0
@@ -0,0 +1,181 @@
1
+ "use client";
2
+ import { jsxs as n, jsx as u, Fragment as be } from "react/jsx-runtime";
3
+ import { c as f } from "./index.DL9mof6u.js";
4
+ import { forwardRef as _e, useState as i, useRef as he, useEffect as m } from "react";
5
+ import { g as I, p as X } from "./helpers.CexwVao7.js";
6
+ import { u as Z } from "./useBreakpoint.1txsny17.js";
7
+ import "./index.D-sRdssb.js";
8
+ import { Asterisk as me } from "../asterisk.B2ih8VwF.js";
9
+ import { D as xe } from "./Popover.D7McfVaH.js";
10
+ import { D as ve } from "./SystemFeedback.CjlARKki.js";
11
+ import '../assets/Textarea.B1HOakic.css';const Se = "ds-textarea_textarea_19e2t_1", Ce = "ds-textarea_textarea--small_19e2t_9", we = "ds-textarea_textarea--invalid_19e2t_121", ye = "ds-textarea_textarea--resize-auto_19e2t_145", De = "ds-textarea_root_19e2t_155", Ae = "ds-textarea_hint_19e2t_155", Te = "ds-textarea_label-wrapper_19e2t_155", Ie = "ds-textarea_label_19e2t_155", Ne = "ds-textarea_label--disabled_19e2t_295", ke = "ds-textarea_label-wrapper--hidden_19e2t_307", Re = "ds-textarea_feedback_19e2t_335", Ee = "ds-textarea_footer_19e2t_339", He = "ds-textarea_footer--has-system-feedback_19e2t_344", ge = "ds-textarea_char-count_19e2t_353", $e = "ds-textarea_char-count-announcer_19e2t_366", a = {
12
+ textarea: Se,
13
+ textareaSmall: Ce,
14
+ textareaInvalid: we,
15
+ textareaResizeAuto: ye,
16
+ root: De,
17
+ hint: Ae,
18
+ labelWrapper: Te,
19
+ label: Ie,
20
+ labelDisabled: Ne,
21
+ labelWrapperHidden: ke,
22
+ feedback: Re,
23
+ footer: Ee,
24
+ footerHasSystemFeedback: He,
25
+ charCount: ge,
26
+ charCountAnnouncer: $e
27
+ }, Xe = ["medium", "small"], Pe = ({
28
+ id: r,
29
+ label: p,
30
+ hideLabel: x,
31
+ popoverContent: v
32
+ }) => {
33
+ if (!r)
34
+ throw new Error(I("DSTextarea", 'A unique "id" prop is required. Please add a unique "id" prop to the DSTextarea component.'));
35
+ if (!p)
36
+ throw new Error(I("DSTextarea", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSTextarea component. If you don't want to display a label, set hideLabel={true}.`));
37
+ x && v && console.warn(I("DSTextarea", "Using a popover when hideLabel is set to true is not supported."));
38
+ }, Ve = _e(({
39
+ id: r,
40
+ label: p,
41
+ charsLimitText: x = "Character limit reached",
42
+ charsRemainingText: v = "Characters remaining:",
43
+ className: G,
44
+ defaultValue: J,
45
+ disabled: N = !1,
46
+ hint: S,
47
+ hideLabel: k = !1,
48
+ invalid: s = !1,
49
+ maxLength: e,
50
+ popoverContent: C,
51
+ popoverInfoButtonProps: K,
52
+ readonly: R = !1,
53
+ required: E = !1,
54
+ resize: b = "vertical",
55
+ size: Q = "medium",
56
+ systemFeedback: l,
57
+ value: w,
58
+ wrapperClassName: Y,
59
+ onChange: H,
60
+ onInput: g,
61
+ ...L
62
+ }, _) => {
63
+ process.env.NODE_ENV !== "production" && Pe({
64
+ id: r,
65
+ label: p,
66
+ hideLabel: Z(k),
67
+ popoverContent: C
68
+ });
69
+ const [ee, $] = i(J || ""), [c, P] = i(0), [te, V] = i(0), [ae, W] = i("off"), [B, y] = i(l), [D, A] = i(s), F = w !== void 0, h = F ? w : ee, o = he(null), j = e !== void 0 && e > 0, T = D && B, re = (t) => {
70
+ o.current = t, typeof _ == "function" ? _(t) : _ && (_.current = t);
71
+ }, q = Z(k);
72
+ m(() => {
73
+ if (!e || e <= 0)
74
+ return;
75
+ c >= e * 0.8 ? W("polite") : W("off");
76
+ const t = setTimeout(() => {
77
+ V(e - c || 0);
78
+ }, 1e3);
79
+ return () => clearTimeout(t);
80
+ }, [c]), m(() => {
81
+ $(h || ""), d(), e && e > 0 && (P(h.toString().length || 0), V(e - h.toString().length || 0));
82
+ }, [w]), m(() => {
83
+ s && l ? (y(l), A(s)) : !s && e && e >= 0 && c >= e ? (A(!0), y(x)) : (y(l), A(s));
84
+ }, [s, D, l, c]), m(() => {
85
+ if (b === "auto")
86
+ return d(), window.addEventListener("resize", d), () => window.removeEventListener("resize", d);
87
+ }, [b, o.current]);
88
+ const se = f(a.root, Y), oe = f(a.textarea, G, {
89
+ // small textarea
90
+ [a.textareaSmall]: Q === "small",
91
+ // invalid state
92
+ [a.textareaInvalid]: D,
93
+ // resize handling
94
+ [a.textareaResizeAuto]: b === "auto"
95
+ }), ne = f(a.label, {
96
+ [a.labelDisabled]: N
97
+ }), le = f(a.labelWrapper, {
98
+ // hide label only visually to keep them available for assistive technologies
99
+ [a.labelWrapperHidden]: q
100
+ }), ce = f(a.footer, {
101
+ [a.footerHasSystemFeedback]: T
102
+ }), z = `${r}-label`, M = `${r}-feedback`, O = `${r}-hint`, U = `${r}-char-count-announcer`, ie = S ? ` ${O}` : "", d = () => {
103
+ if (o.current && b === "auto") {
104
+ o.current.style.height = "auto";
105
+ const t = X(o.current.scrollHeight), pe = X(2);
106
+ o.current.style.height = `${// We need to add 2px (border-top & border-bottom) to the scrollHeight to prevent the textarea
107
+ // from jumping as soon as the user starts typing.
108
+ t + pe}rem`;
109
+ }
110
+ }, de = () => {
111
+ const t = [];
112
+ return e && e > 0 && t.push(U), s && l && t.push(M), t.length > 0 ? t.join(" ") : void 0;
113
+ }, ue = (t) => {
114
+ g && g(t), e && e > 0 && P(o.current?.value.length || 0), d();
115
+ }, fe = (t) => {
116
+ H && H(t), F || $(t.target.value);
117
+ };
118
+ return /* @__PURE__ */ n("div", { className: se, children: [
119
+ /* @__PURE__ */ n("div", { className: le, children: [
120
+ /* @__PURE__ */ n("label", { className: ne, id: z, htmlFor: r, children: [
121
+ p,
122
+ E && /* @__PURE__ */ u(me, {})
123
+ ] }),
124
+ C && !q && /* @__PURE__ */ u(xe, { placement: "top", defaultAnchorButtonProps: K, children: C })
125
+ ] }),
126
+ S && /* @__PURE__ */ u("div", { className: a.hint, id: O, children: S }),
127
+ /* @__PURE__ */ u(
128
+ "textarea",
129
+ {
130
+ className: oe,
131
+ id: r,
132
+ ...L,
133
+ ref: re,
134
+ "aria-labelledby": `${z}${ie}`,
135
+ "aria-describedby": de(),
136
+ "aria-invalid": s,
137
+ "aria-disabled": R,
138
+ maxLength: e,
139
+ readOnly: R,
140
+ required: E,
141
+ disabled: N,
142
+ value: h,
143
+ defaultValue: void 0,
144
+ rows: void 0,
145
+ cols: void 0,
146
+ onChange: fe,
147
+ onInput: ue
148
+ }
149
+ ),
150
+ j || T ? /* @__PURE__ */ n("div", { className: ce, children: [
151
+ T && /* @__PURE__ */ u(ve, { className: a.feedback, message: B, variant: "error", id: M }),
152
+ j && /* @__PURE__ */ n(be, { children: [
153
+ /* @__PURE__ */ n("div", { className: a.charCount, "aria-hidden": "true", children: [
154
+ c,
155
+ "/",
156
+ e
157
+ ] }),
158
+ /* @__PURE__ */ n(
159
+ "div",
160
+ {
161
+ className: a.charCountAnnouncer,
162
+ id: U,
163
+ "aria-live": ae,
164
+ "aria-atomic": "true",
165
+ children: [
166
+ v,
167
+ " ",
168
+ te
169
+ ]
170
+ }
171
+ )
172
+ ] })
173
+ ] }) : null
174
+ ] });
175
+ });
176
+ Ve.displayName = "DSTextarea";
177
+ export {
178
+ Ve as D,
179
+ Xe as T,
180
+ Pe as v
181
+ };
@@ -0,0 +1,76 @@
1
+ "use client";
2
+ import { jsx as S, jsxs as y } from "react/jsx-runtime";
3
+ import { d as E } from "./index.D-sRdssb.js";
4
+ import { c as W } from "./index.DL9mof6u.js";
5
+ import { forwardRef as L } from "react";
6
+ import { D as M } from "./Button.Cn5yg7dG.js";
7
+ import { D as O } from "./Icon.CDLyB7Pv.js";
8
+ import '../assets/Toast.CGyKXb4V.css';const P = "ds-toast_root_1jbef_5", z = "ds-toast_root--closing_1jbef_15", A = "ds-toast_root--success_1jbef_56", R = "ds-toast_root--info_1jbef_60", $ = "ds-toast_root--warning_1jbef_64", q = "ds-toast_content_1jbef_69", F = "ds-toast_content--hide-icon_1jbef_76", G = "ds-toast_icon_1jbef_80", J = "ds-toast_message_1jbef_84", s = {
9
+ root: P,
10
+ rootClosing: z,
11
+ rootSuccess: A,
12
+ rootInfo: R,
13
+ rootWarning: $,
14
+ content: q,
15
+ contentHideIcon: F,
16
+ icon: G,
17
+ message: J
18
+ }, K = {
19
+ success: "circle-check-colored",
20
+ warning: "triangle-exclamationmark-colored",
21
+ info: "circle-info-colored"
22
+ }, Q = L((C, D) => {
23
+ const o = E.c(44);
24
+ let e, n, t, c, a, l, i, p, h;
25
+ o[0] !== C ? ({
26
+ message: t,
27
+ className: e,
28
+ closeButtonProps: n,
29
+ hideIcon: p,
30
+ variant: h,
31
+ onClick: c,
32
+ onMouseEnter: a,
33
+ onMouseLeave: l,
34
+ ...i
35
+ } = C, o[0] = C, o[1] = e, o[2] = n, o[3] = t, o[4] = c, o[5] = a, o[6] = l, o[7] = i, o[8] = p, o[9] = h) : (e = o[1], n = o[2], t = o[3], c = o[4], a = o[5], l = o[6], i = o[7], p = o[8], h = o[9]);
36
+ const r = p === void 0 ? !1 : p, d = h === void 0 ? "info" : h;
37
+ let f;
38
+ o[10] !== n ? (f = n || {}, o[10] = n, o[11] = f) : f = o[11];
39
+ let m, j;
40
+ o[12] !== f ? ({
41
+ label: j,
42
+ ...m
43
+ } = f, o[12] = f, o[13] = m, o[14] = j) : (m = o[13], j = o[14]);
44
+ const x = j === void 0 ? "Close toast" : j, w = d === "success", T = d === "warning", k = d === "info";
45
+ let v;
46
+ o[15] !== e || o[16] !== w || o[17] !== T || o[18] !== k ? (v = W(s.root, e, {
47
+ [s.rootSuccess]: w,
48
+ [s.rootWarning]: T,
49
+ [s.rootInfo]: k
50
+ }), o[15] = e, o[16] = w, o[17] = T, o[18] = k, o[19] = v) : v = o[19];
51
+ const B = v;
52
+ let I;
53
+ o[20] !== r ? (I = W(s.content, {
54
+ [s.contentHideIcon]: r
55
+ }), o[20] = r, o[21] = I) : I = o[21];
56
+ const H = I;
57
+ let _;
58
+ o[22] !== r || o[23] !== d ? (_ = !r && /* @__PURE__ */ S(O, { name: K[d], className: s.icon, "aria-hidden": "true" }), o[22] = r, o[23] = d, o[24] = _) : _ = o[24];
59
+ let u;
60
+ o[25] !== t ? (u = /* @__PURE__ */ S("div", { className: s.message, children: t }), o[25] = t, o[26] = u) : u = o[26];
61
+ let g;
62
+ o[27] !== x || o[28] !== c || o[29] !== m ? (g = /* @__PURE__ */ S(M, { ...m, hideLabel: !0, iconName: "cross", size: "small", variant: "ghost", onClick: c, children: x }), o[27] = x, o[28] = c, o[29] = m, o[30] = g) : g = o[30];
63
+ let b;
64
+ o[31] !== H || o[32] !== _ || o[33] !== u || o[34] !== g ? (b = /* @__PURE__ */ y("div", { className: H, children: [
65
+ _,
66
+ u,
67
+ g
68
+ ] }), o[31] = H, o[32] = _, o[33] = u, o[34] = g, o[35] = b) : b = o[35];
69
+ let N;
70
+ return o[36] !== t || o[37] !== a || o[38] !== l || o[39] !== D || o[40] !== i || o[41] !== B || o[42] !== b ? (N = /* @__PURE__ */ S("aside", { className: B, ref: D, popover: "manual", "data-ds-toast": !0, onMouseEnter: a, onMouseLeave: l, "aria-label": t, ...i, children: b }), o[36] = t, o[37] = a, o[38] = l, o[39] = D, o[40] = i, o[41] = B, o[42] = b, o[43] = N) : N = o[43], N;
71
+ });
72
+ Q.displayName = "DSToast";
73
+ export {
74
+ Q as D,
75
+ s
76
+ };
@@ -4,7 +4,7 @@ const c = ({
4
4
  title: l,
5
5
  titleId: t,
6
6
  ...a
7
- }) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "#252525", viewBox: "0 0 17 16", focusable: "false", width: "100%", height: "100%", "aria-labelledby": t, ...a }, l ? /* @__PURE__ */ e.createElement("title", { id: t }, l) : null, /* @__PURE__ */ e.createElement("path", { d: "M16 .5v7H9v-2h3.6l-1.5-1.6c-.1-.1-.3-.2-.5-.4-2.1-1.5-5.1-1.3-7 .6-2.1 2.2-2.1 5.6 0 7.8 2.2 2.1 5.6 2.1 7.8 0 .7-.7 1.2-1.5 1.4-2.4h2.1c-.3 1.4-1 2.7-2 3.8-2.9 2.9-7.7 2.9-10.6 0s-2.9-7.7 0-10.6C5-.1 9.4-.2 12.3 2.3c.2.1.3.3.5.4L14 4.1V.5z" }));
7
+ }) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "#252525", viewBox: "0 0 16 16", focusable: "false", width: "100%", height: "100%", "aria-labelledby": t, ...a }, l ? /* @__PURE__ */ e.createElement("title", { id: t }, l) : null, /* @__PURE__ */ e.createElement("path", { d: "M16 .5v7H9v-2h3.6l-1.5-1.6c-.1-.1-.3-.2-.5-.4-2.1-1.5-5.1-1.3-7 .6-2.1 2.2-2.1 5.6 0 7.8 2.2 2.1 5.6 2.1 7.8 0 .7-.7 1.2-1.5 1.4-2.4h2.1c-.3 1.4-1 2.7-2 3.8-2.9 2.9-7.7 2.9-10.6 0s-2.9-7.7 0-10.6C5-.1 9.4-.2 12.3 2.3c.2.1.3.3.5.4L14 4.1V.5z" }));
8
8
  export {
9
9
  c as default
10
10
  };
@@ -4,7 +4,7 @@ const c = ({
4
4
  title: l,
5
5
  titleId: t,
6
6
  ...a
7
- }) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "#252525", viewBox: "0 0 17 16", focusable: "false", width: "100%", height: "100%", "aria-labelledby": t, ...a }, l ? /* @__PURE__ */ e.createElement("title", { id: t }, l) : null, /* @__PURE__ */ e.createElement("path", { d: "M.125.5v7h7v-2h-3.6l1.5-1.6c.1-.1.3-.2.5-.4 2.1-1.5 5.1-1.3 7 .6 2.1 2.2 2.1 5.6 0 7.8-2.2 2.1-5.6 2.1-7.8 0-.7-.7-1.2-1.5-1.4-2.4h-2.1c.3 1.4 1 2.7 2 3.8 2.9 2.9 7.7 2.9 10.6 0s2.9-7.7 0-10.6c-2.7-2.8-7.1-2.9-10-.4-.2.1-.3.3-.5.4l-1.2 1.4V.5z" }));
7
+ }) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "#252525", viewBox: "0 0 16 16", focusable: "false", width: "100%", height: "100%", "aria-labelledby": t, ...a }, l ? /* @__PURE__ */ e.createElement("title", { id: t }, l) : null, /* @__PURE__ */ e.createElement("path", { d: "M.125.5v7h7v-2h-3.6l1.5-1.6c.1-.1.3-.2.5-.4 2.1-1.5 5.1-1.3 7 .6 2.1 2.2 2.1 5.6 0 7.8-2.2 2.1-5.6 2.1-7.8 0-.7-.7-1.2-1.5-1.4-2.4h-2.1c.3 1.4 1 2.7 2 3.8 2.9 2.9 7.7 2.9 10.6 0s2.9-7.7 0-10.6c-2.7-2.8-7.1-2.9-10-.4-.2.1-.3.3-.5.4l-1.2 1.4V.5z" }));
8
8
  export {
9
9
  c as default
10
10
  };
@@ -4,7 +4,7 @@ const r = ({
4
4
  title: l,
5
5
  titleId: t,
6
6
  ...a
7
- }) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", focusable: "false", width: "100%", height: "100%", "aria-labelledby": t, ...a }, l ? /* @__PURE__ */ e.createElement("title", { id: t }, l) : null, /* @__PURE__ */ e.createElement("g", { clipPath: "url(#a)" }, /* @__PURE__ */ e.createElement("path", { fill: "#749F4A", d: "M8 0C3.584 0 0 3.584 0 8s3.584 8 8 8 8-3.584 8-8-3.584-8-8-8" }), /* @__PURE__ */ e.createElement("path", { fill: "#fff", d: "m6.4 12-4-4 1.128-1.128L6.4 9.736l6.072-6.072L13.6 4.8z" })));
7
+ }) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", focusable: "false", width: "100%", height: "100%", "aria-labelledby": t, ...a }, l ? /* @__PURE__ */ e.createElement("title", { id: t }, l) : null, /* @__PURE__ */ e.createElement("g", { clipPath: "url(#a)" }, /* @__PURE__ */ e.createElement("path", { fill: "#749f4a", d: "M8 0C3.584 0 0 3.584 0 8s3.584 8 8 8 8-3.584 8-8-3.584-8-8-8" }), /* @__PURE__ */ e.createElement("path", { fill: "#fff", d: "m6.4 12-4-4 1.128-1.128L6.4 9.736l6.072-6.072L13.6 4.8z" })));
8
8
  export {
9
9
  r as default
10
10
  };
@@ -4,7 +4,7 @@ const n = ({
4
4
  title: l,
5
5
  titleId: a,
6
6
  ...t
7
- }) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", focusable: "false", width: "100%", height: "100%", "aria-labelledby": a, ...t }, l ? /* @__PURE__ */ e.createElement("title", { id: a }, l) : null, /* @__PURE__ */ e.createElement("path", { fill: "#D43B3B", d: "m8 0 8 8-8 8-8-8z" }), /* @__PURE__ */ e.createElement("path", { fill: "#fff", fillRule: "evenodd", d: "M8.7 8.9 9.2 4H6.8l.5 4.9zM6.9 11c0 .6.5 1.1 1.1 1.1s1.1-.4 1.1-1.1c0-.6-.5-1.1-1.1-1.1s-1.1.5-1.1 1.1", clipRule: "evenodd" }));
7
+ }) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", focusable: "false", width: "100%", height: "100%", "aria-labelledby": a, ...t }, l ? /* @__PURE__ */ e.createElement("title", { id: a }, l) : null, /* @__PURE__ */ e.createElement("path", { fill: "#d43b3b", d: "m8 0 8 8-8 8-8-8z" }), /* @__PURE__ */ e.createElement("path", { fill: "#fff", fillRule: "evenodd", d: "M8.7 8.9 9.2 4H6.8l.5 4.9zM6.9 11c0 .6.5 1.1 1.1 1.1s1.1-.4 1.1-1.1c0-.6-.5-1.1-1.1-1.1s-1.1.5-1.1 1.1", clipRule: "evenodd" }));
8
8
  export {
9
9
  n as default
10
10
  };
@@ -0,0 +1,10 @@
1
+ "use client";
2
+ import * as e from "react";
3
+ const a = ({
4
+ title: l,
5
+ titleId: c,
6
+ ...t
7
+ }) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "#252525", viewBox: "0 0 16 16", focusable: "false", width: "100%", height: "100%", "aria-labelledby": c, ...t }, l ? /* @__PURE__ */ e.createElement("title", { id: c }, l) : null, /* @__PURE__ */ e.createElement("g", { clipPath: "url(#a)" }, /* @__PURE__ */ e.createElement("path", { d: "M8.241 14.362V10.82a7.8 7.8 0 0 0 2.186.304q.285.002.582-.018V9.83c-2.488.15-4.14-.68-5.44-2.458-.564-.767-.99-1.184-1.273-2.073C5.5 4.5 6.75 4.739 7.5 5L6.249 6.02l.591.621c.1.105 2.39 2.436 7.655 1.887-.432 1.847-1.843 5.553-6.254 5.825m-2.269-.961c-.695-.504-2.158-1.742-3.054-3.77.273-1.27.743-2.808.743-2.808s.649 1.009 1.16 1.578c.978 1.093 1.794 1.847 2.98 2.282zm9.24-6.583c-3.653.567-5.87-.317-6.902-.925l1.215-1.32-1.284-.728c-1.07-.5-2.672-.629-4.215-.283C3.642 1.557 3.996.027 4 0H2.738c-.007.122-.426 1.872 0 4C.925 4.98.02 6.375 0 6.407l1.029 1.35c.055-.077.657-.939 1.657-1.692-.515 1.066-1.214 2.763-1.37 3.557l-.058.304.11.276c1.373 3.42 4.393 4.877 4.507 4.945l.412.232.716-1.062v1.678l.616.005h.096c5.86 0 7.918-5.407 8.188-8.284L16 6.691l-.782.123z" })));
8
+ export {
9
+ a as default
10
+ };
@@ -0,0 +1,10 @@
1
+ "use client";
2
+ import * as e from "react";
3
+ const a = ({
4
+ title: l,
5
+ titleId: c,
6
+ ...t
7
+ }) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "#252525", viewBox: "0 0 16 16", focusable: "false", width: "100%", height: "100%", "aria-labelledby": c, ...t }, l ? /* @__PURE__ */ e.createElement("title", { id: c }, l) : null, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", d: "M3.333 1.327h5.334V5.31h4v4.148H14V3.982L10 0H2v9.457h1.333zM12 3.982l-2-1.991v1.991z", clipRule: "evenodd" }), /* @__PURE__ */ e.createElement("path", { d: "M0 15.931V10.75h2.014c1.5 0 2.633.983 2.633 2.591s-1.133 2.591-2.633 2.591zm1.393-1.173h.467c.843 0 1.363-.557 1.363-1.418s-.52-1.418-1.363-1.418h-.467zM7.81 16c-1.501 0-2.795-1.098-2.795-2.66s1.294-2.652 2.795-2.652 2.794 1.09 2.794 2.652S9.31 16 7.81 16m0-1.204c.872 0 1.37-.64 1.37-1.456s-.498-1.448-1.37-1.448-1.37.633-1.37 1.448c0 .816.497 1.456 1.37 1.456m8.19-.031c-.513.861-1.233 1.235-2.29 1.235-1.462 0-2.71-1.098-2.71-2.66a2.62 2.62 0 0 1 2.634-2.652c1.126 0 1.815.472 2.251 1.112l-1.049.71c-.199-.306-.52-.618-1.179-.618-.765 0-1.232.633-1.232 1.448 0 .816.482 1.456 1.278 1.456.674 0 1.003-.305 1.225-.717z" }));
8
+ export {
9
+ a as default
10
+ };