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

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 (251) hide show
  1. package/accordion.Dmqocj97.js +12 -0
  2. package/actionbutton.DLQJU6AV.js +12 -0
  3. package/actionlink.DEBrWfN3.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.C8sNwIeW.css +1 -0
  7. package/assets/Checkbox.CyOw3rXI.css +1 -0
  8. package/assets/CustomReactSelect.E_jJFVew.css +1 -0
  9. package/assets/Dialog.DJkn65Es.css +1 -0
  10. package/assets/Drawer.x3BCQvWE.css +1 -0
  11. package/assets/InputFile.BnIvK65P.css +1 -0
  12. package/assets/InputNumber.BoiCIR1f.css +1 -0
  13. package/assets/InputPassword.Dk3_vNLV.css +1 -0
  14. package/assets/InputSearch.C1_4cVCi.css +1 -0
  15. package/assets/LinkButton.B86yacK5.css +1 -0
  16. package/assets/{MegaMenu.DX9gChtY.css → MegaMenu.D5EtjFeL.css} +1 -1
  17. package/assets/Notification.CvohYEvT.css +1 -0
  18. package/assets/Select.COxLltX7.css +1 -0
  19. package/assets/Slider.DPEmJ3HD.css +1 -0
  20. package/assets/Stepper.tXJl15yL.css +1 -0
  21. package/assets/{SystemFeedback.RcrPepSZ.css → SystemFeedback.PKzqnXUe.css} +1 -1
  22. package/assets/Textarea.y3MW7VW0.css +1 -0
  23. package/assets/Toast.CGyKXb4V.css +1 -0
  24. package/assets/buttonround.BN3vUDc_.css +1 -0
  25. package/assets/input.DTu4g_iA.css +1 -0
  26. package/assets/step.BeLporJO.css +1 -0
  27. package/assets/switch.B9B-n_3y.css +1 -0
  28. package/{asterisk.CR60hx8S.js → asterisk.B2ih8VwF.js} +1 -1
  29. package/{banner.o4Etkjjo.js → banner.CI5HnDqD.js} +3 -3
  30. package/breadcrumb.CtwAux3P.js +11 -0
  31. package/button.DHuKanZP.js +13 -0
  32. package/{buttonround.ChKWHzsv.js → buttonround.CMlmEDaN.js} +6 -6
  33. package/checkbox.DwccD0Mp.js +12 -0
  34. package/checkboxgroup.ZiUFfCJ1.js +9 -0
  35. package/chip.B0s_fS8L.js +12 -0
  36. package/chipgroup.Dpu66bo5.js +143 -0
  37. package/chunks/Accordion.CYIfNOWr.js +168 -0
  38. package/chunks/{ActionButton.DdDesD7K.js → ActionButton.DOYsEHPr.js} +37 -37
  39. package/chunks/{ActionLink.DqAsPYda.js → ActionLink.DbyciN3Y.js} +36 -36
  40. package/chunks/{AriaLiveRegions.utils.Cb327d_2.js → AriaLiveRegions.utils.CybNIBSa.js} +2 -2
  41. package/chunks/{Breadcrumb.9KinNuyQ.js → Breadcrumb.BgnpTo01.js} +35 -37
  42. package/chunks/{Button.Cf1CKq8N.js → Button.DCZgBNmA.js} +8 -8
  43. package/chunks/Checkbox.BcGXAuuP.js +88 -0
  44. package/chunks/{CheckboxGroup.Cj68J6Ee.js → CheckboxGroup.BuFd1luB.js} +5 -5
  45. package/chunks/{Chip.BrbYu6i_.js → Chip.D6pubCZV.js} +6 -6
  46. package/chunks/{CustomReactSelect.Cqq70QC0.js → CustomReactSelect.Dg3wC_VH.js} +450 -447
  47. package/chunks/Dialog.DpqSVrYR.js +102 -0
  48. package/chunks/Drawer.DISWybOa.js +107 -0
  49. package/chunks/{Fieldset.D7cLR5ze.js → Fieldset.DiMtr6Vw.js} +6 -6
  50. package/chunks/Header.7TQL_J9t.js +370 -0
  51. package/chunks/{Icon.NSsVrYeq.js → Icon.CDLyB7Pv.js} +77 -79
  52. package/chunks/{Input.utils.Cnnzvuk4.js → Input.utils.Dkw7gRrr.js} +17 -17
  53. package/chunks/InputFile.C8nt9Fu8.js +218 -0
  54. package/chunks/InputNumber.CbH1XJfl.js +267 -0
  55. package/chunks/{InputPassword.Da3hEKTc.js → InputPassword.DbdjuSiJ.js} +34 -34
  56. package/chunks/InputSearch.joxmugiv.js +173 -0
  57. package/chunks/{LinkButton.59oNDwPU.js → LinkButton.BZgIGgc8.js} +7 -7
  58. package/chunks/MegaMenu.CQbOeaib.js +189 -0
  59. package/chunks/NavigationTabList.G_l0GiUa.js +67 -0
  60. package/chunks/{NavigationTabs.DspPFHPh.js → NavigationTabs.BwM-6CRm.js} +13 -14
  61. package/chunks/Notification.CrojkJ0E.js +91 -0
  62. package/chunks/Popover.Bb0Pjmvg.js +215 -0
  63. package/chunks/{RadioGroup.DeTz3c19.js → RadioGroup.CexC4v2Z.js} +5 -5
  64. package/chunks/Select.BEIdNMML.js +164 -0
  65. package/chunks/{Slider.84lkgq3W.js → Slider.CR0zYHeZ.js} +83 -84
  66. package/chunks/Stepper.PTQdQBYf.js +152 -0
  67. package/chunks/{SystemFeedback.CyGbUCzT.js → SystemFeedback.CjlARKki.js} +9 -9
  68. package/chunks/Tabs.DyP4whX0.js +83 -0
  69. package/chunks/{Text.DGWeWF1y.js → Text.DpRtTpB4.js} +3 -3
  70. package/chunks/Textarea.Du2RII5u.js +168 -0
  71. package/chunks/Toast.ug_RjGgF.js +76 -0
  72. package/chunks/{arrow-clockwise.BefOjGPg.js → arrow-clockwise.C4iOgjOc.js} +1 -1
  73. package/chunks/{arrow-counterclockwise.C7Ov32BZ.js → arrow-counterclockwise.CgQAuBUe.js} +1 -1
  74. package/chunks/{circle-check-colored.Bye_GwLy.js → circle-check-colored.qP2s3vjI.js} +1 -1
  75. package/chunks/{diamond-exclamationmark-colored.WNKYwZ8q.js → diamond-exclamationmark-colored.CzYiaTZ0.js} +1 -1
  76. package/chunks/feather.l1E4nFBx.js +10 -0
  77. package/chunks/file-type-doc.B_RSSYbu.js +10 -0
  78. package/chunks/floating-ui.dom.BT8pKtCQ.js +1005 -0
  79. package/chunks/floating-ui.react.3FjeMiuN.js +1999 -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.BzR_yaIv.js +42 -0
  92. package/chunks/variants.-R3_RCW8.js +10 -0
  93. package/chunks/weight.DUPu2UT0.js +10 -0
  94. package/combobox.jG5GRA7C.js +65 -0
  95. package/components/ChipGroup/ChipGroup.utils.d.ts +1 -3
  96. package/components/Combobox/Combobox.utils.d.ts +3 -4
  97. package/components/Combobox/CustomReactSelect/CustomReactSelect.d.ts +4 -2
  98. package/components/{InputStepper/InputStepper.d.ts → InputNumber/InputNumber.d.ts} +4 -4
  99. package/components/InputNumber/InputNumber.utils.d.ts +13 -0
  100. package/components/Scroller/Scroller.d.ts +6 -2
  101. package/components/Stepper/Step.d.ts +33 -0
  102. package/components/Stepper/Step.utils.d.ts +5 -0
  103. package/components/Stepper/Stepper.d.ts +56 -0
  104. package/components/Stepper/Stepper.test.d.ts +1 -0
  105. package/components/Stepper/Stepper.utils.d.ts +30 -0
  106. package/components/Stepper/Stepper.utils.test.d.ts +1 -0
  107. package/customreactselect.BFN8cYJi.js +14 -0
  108. package/dialog.CzM_Cxp0.js +9 -0
  109. package/drawer._A9MQ8Cj.js +9 -0
  110. package/fieldset.CId-NtI5.js +11 -0
  111. package/{filelist.BiKMKCyg.js → filelist.DgVuWpR3.js} +23 -24
  112. package/{flag.72PONA83.js → flag.CE32qHPa.js} +3 -3
  113. package/{floatingactionbutton.B2YChsNU.js → floatingactionbutton.Bsnncudt.js} +5 -5
  114. package/header.CelAkqtp.js +12 -0
  115. package/{heading.BXFBZhKv.js → heading.DHLpT4dc.js} +2 -2
  116. package/icon.vzkPwgjZ.js +9 -0
  117. package/index.d.ts +4 -2
  118. package/index.es.js +218 -206
  119. package/input.DuEbg7d6.js +206 -0
  120. package/inputfile.BjgJGefV.js +17 -0
  121. package/inputnumber.BcrxBVv0.js +16 -0
  122. package/inputnumber.d.ts +2 -0
  123. package/inputpassword.CddmBW-T.js +13 -0
  124. package/inputsearch.CFOASqrd.js +14 -0
  125. package/{link.DbnvsD3j.js → link.f8MMZo-w.js} +5 -5
  126. package/linkbutton.BYAvi-_V.js +12 -0
  127. package/{logo.C96KaG1P.js → logo.DprmD8HU.js} +3 -3
  128. package/{logo100years.BcB6_c-o.js → logo100years.B4d_DIiB.js} +1 -1
  129. package/megamenu.Cy9Cc-mC.js +12 -0
  130. package/navigationtablist.CkkLyHrM.js +10 -0
  131. package/navigationtabs.Dp7D2fnc.js +9 -0
  132. package/notification.B-norGiB.js +10 -0
  133. package/{numberindicator.Ddf3ESi7.js → numberindicator.BdnPMogE.js} +2 -2
  134. package/{optioncheckbox.DqfXuPdi.js → optioncheckbox.nBVwGv6c.js} +3 -3
  135. package/package.json +41 -50
  136. package/partials/index.js +56 -50
  137. package/partials/lib/partials.d.ts +1 -1
  138. package/popover.DFVDZY-m.js +12 -0
  139. package/{radio.7_N_alaS.js → radio.DHUfSPai.js} +2 -2
  140. package/radiogroup.DaThoMfq.js +11 -0
  141. package/scroller.Cu7H_VCT.js +98 -0
  142. package/select.CMdKf7tC.js +13 -0
  143. package/{skiptocontent.BSCde5hT.js → skiptocontent.CHVh0hbr.js} +4 -4
  144. package/slider.C5dK6KcG.js +11 -0
  145. package/{spinner.BUjhjAvw.js → spinner.C9qCeq0R.js} +18 -18
  146. package/step.DKf4CHGr.js +82 -0
  147. package/step.d.ts +6 -0
  148. package/stepper.CCP_igpJ.js +16 -0
  149. package/stepper.d.ts +2 -0
  150. package/{switch.D7BCfyyZ.js → switch.Bqdyzi2E.js} +5 -5
  151. package/systemfeedback.O7tj1juR.js +10 -0
  152. package/tablist.DZgo49nZ.js +209 -0
  153. package/{tabpane.CB-eudyw.js → tabpane.C4nsUlwc.js} +2 -2
  154. package/tabs.BkoT7feH.js +11 -0
  155. package/text.cLv2PhjQ.js +10 -0
  156. package/textarea.DMn20z4p.js +13 -0
  157. package/{title.Bz_k5Vda.js → title.DuLPB-VK.js} +2 -2
  158. package/toast.Dvs8woTH.js +11 -0
  159. package/toastmanager.pi_Fhd5t.js +89 -0
  160. package/tooltip.QJe_bfO-.js +178 -0
  161. package/topbar.Bxwvp9Lf.js +12 -0
  162. package/types/icon-types.d.ts +1 -1
  163. package/utils/index.d.ts +1 -0
  164. package/utils/mergeRefs.d.ts +5 -0
  165. package/utils/mergeRefs.test.d.ts +1 -0
  166. package/accordion.HfUSDwQJ.js +0 -12
  167. package/actionbutton.kgd0E_xF.js +0 -12
  168. package/actionlink.CwC42RWc.js +0 -12
  169. package/assets/Accordion.BJb4TOG0.css +0 -1
  170. package/assets/Button.Dw8H5nFS.css +0 -1
  171. package/assets/Checkbox.BKHQN_tu.css +0 -1
  172. package/assets/CustomReactSelect.DGIItWIh.css +0 -1
  173. package/assets/Dialog.CGAg7bnN.css +0 -1
  174. package/assets/Drawer.VOvWQoEr.css +0 -1
  175. package/assets/InputFile.CCQxsulT.css +0 -1
  176. package/assets/InputPassword.124xVOiO.css +0 -1
  177. package/assets/InputSearch.Bkg-1urJ.css +0 -1
  178. package/assets/InputStepper.DvFJk1Mi.css +0 -1
  179. package/assets/LinkButton.xMvg_ojf.css +0 -1
  180. package/assets/Notification.BOuaA5GT.css +0 -1
  181. package/assets/Select.C1gWF32A.css +0 -1
  182. package/assets/Slider.Bidyhb-B.css +0 -1
  183. package/assets/Textarea.Dq4rH9Tg.css +0 -1
  184. package/assets/Toast.CJ1zhDIT.css +0 -1
  185. package/assets/buttonround.Cw9hnUan.css +0 -1
  186. package/assets/input.CUjGh-UM.css +0 -1
  187. package/assets/switch.Bc9KIyw9.css +0 -1
  188. package/breadcrumb.BsQm0kUD.js +0 -11
  189. package/button.Dyy6ajX6.js +0 -13
  190. package/checkbox.BNnp4ztM.js +0 -12
  191. package/checkboxgroup.BTVnKenc.js +0 -9
  192. package/chip.C7NstOHt.js +0 -12
  193. package/chipgroup.Zo1-IOCn.js +0 -210
  194. package/chunks/Accordion.CnqryAUu.js +0 -170
  195. package/chunks/Checkbox.CiwriItT.js +0 -88
  196. package/chunks/Dialog.Bv7k55He.js +0 -135
  197. package/chunks/Drawer.BVTvx276.js +0 -140
  198. package/chunks/Header.um5MlziB.js +0 -377
  199. package/chunks/InputFile.bVWWdePn.js +0 -220
  200. package/chunks/InputSearch.GOYqFCcZ.js +0 -174
  201. package/chunks/InputStepper.BuhPtfl-.js +0 -268
  202. package/chunks/MegaMenu._o3nNDAa.js +0 -192
  203. package/chunks/NavigationTabList.DuT7gzhj.js +0 -57
  204. package/chunks/Notification.Pts2oh0R.js +0 -92
  205. package/chunks/Popover.BRR8YZ-P.js +0 -228
  206. package/chunks/Select.D2ehd4yN.js +0 -162
  207. package/chunks/Tabs.C8ADTzJ0.js +0 -83
  208. package/chunks/Textarea.Cw85sxHL.js +0 -163
  209. package/chunks/Toast.DG3WVvau.js +0 -76
  210. package/chunks/file-type-doc.DlovDOBh.js +0 -10
  211. package/chunks/floating-ui.dom.VgHc0h4l.js +0 -989
  212. package/chunks/floating-ui.react.DCyAzlZ4.js +0 -2011
  213. package/chunks/helpers.BbWkXTr3.js +0 -37
  214. package/chunks/petrol.Du6qAgp0.js +0 -10
  215. package/chunks/upload.ZImTAIgx.js +0 -10
  216. package/chunks/useBreakpoint.CMOR9ZOB.js +0 -44
  217. package/combobox.orZ3z8CB.js +0 -60
  218. package/components/InputStepper/InputStepper.utils.d.ts +0 -13
  219. package/customreactselect.Np-RpzvU.js +0 -14
  220. package/dialog.D4rcbW6A.js +0 -10
  221. package/drawer.BCCB3Rkj.js +0 -10
  222. package/fieldset.ZLs9IGpE.js +0 -11
  223. package/header.DUbn3BZt.js +0 -12
  224. package/icon.CHVAZr5T.js +0 -9
  225. package/input.DG20x6gh.js +0 -203
  226. package/inputfile.Dc56lQ4t.js +0 -17
  227. package/inputpassword.znFHRLsI.js +0 -13
  228. package/inputsearch.B1G6rfVk.js +0 -14
  229. package/inputstepper.d.ts +0 -2
  230. package/inputstepper.o6rdM_CW.js +0 -16
  231. package/linkbutton.DU8Ih8ZF.js +0 -12
  232. package/megamenu.CPH8EeFF.js +0 -12
  233. package/navigationtablist.C0iwsAad.js +0 -9
  234. package/navigationtabs.JjJtbuUe.js +0 -9
  235. package/notification.Ds_Q7ifk.js +0 -10
  236. package/popover.B72W0OvU.js +0 -12
  237. package/radiogroup.C_3IcNBq.js +0 -11
  238. package/scroller.CQxmQU6U.js +0 -123
  239. package/select.Ceyt-zvu.js +0 -13
  240. package/slider.Dq2dcziy.js +0 -11
  241. package/systemfeedback.CSdWOWuf.js +0 -10
  242. package/tablist.V7DBklhE.js +0 -256
  243. package/tabs.DQNLPAEN.js +0 -11
  244. package/text.ZOUuesnU.js +0 -10
  245. package/textarea.CixKeQBp.js +0 -13
  246. package/toast.D8QprMCa.js +0 -11
  247. package/toastmanager.BSVjYsg9.js +0 -116
  248. package/tooltip.CUCSRXd3.js +0 -191
  249. package/topbar.CVhJy-Br.js +0 -12
  250. /package/components/{InputStepper/InputStepper.test.d.ts → InputNumber/InputNumber.test.d.ts} +0 -0
  251. /package/components/{InputStepper/InputStepper.utils.test.d.ts → InputNumber/InputNumberutils.test.d.ts} +0 -0
@@ -0,0 +1,168 @@
1
+ "use client";
2
+ import { jsxs as l, jsx as h, Fragment as de } from "react/jsx-runtime";
3
+ import { c as m } from "./index.DL9mof6u.js";
4
+ import { forwardRef as ue, useState as c, useRef as fe, useEffect as p } from "react";
5
+ import { g as q, p as z } from "./helpers.CexwVao7.js";
6
+ import { u as _e } from "./useBreakpoint.BzR_yaIv.js";
7
+ import "./index.D-sRdssb.js";
8
+ import { Asterisk as be } from "../asterisk.B2ih8VwF.js";
9
+ import { D as he } from "./SystemFeedback.CjlARKki.js";
10
+ import '../assets/Textarea.y3MW7VW0.css';const me = "ds-textarea_textarea_16wji_1", pe = "ds-textarea_textarea--small_16wji_9", xe = "ds-textarea_textarea--invalid_16wji_121", we = "ds-textarea_textarea--resize-auto_16wji_145", ve = "ds-textarea_root_16wji_155", Ce = "ds-textarea_hint_16wji_155", Se = "ds-textarea_label_16wji_155", je = "ds-textarea_label--hidden_16wji_294", ye = "ds-textarea_label--disabled_16wji_307", Ae = "ds-textarea_feedback_16wji_327", De = "ds-textarea_footer_16wji_331", Ie = "ds-textarea_footer--has-system-feedback_16wji_336", Te = "ds-textarea_char-count_16wji_345", ke = "ds-textarea_char-count-announcer_16wji_358", a = {
11
+ textarea: me,
12
+ textareaSmall: pe,
13
+ textareaInvalid: xe,
14
+ textareaResizeAuto: we,
15
+ root: ve,
16
+ hint: Ce,
17
+ label: Se,
18
+ labelHidden: je,
19
+ labelDisabled: ye,
20
+ feedback: Ae,
21
+ footer: De,
22
+ footerHasSystemFeedback: Ie,
23
+ charCount: Te,
24
+ charCountAnnouncer: ke
25
+ }, qe = ["medium", "small"], Ne = ({
26
+ id: r,
27
+ label: u
28
+ }) => {
29
+ if (!r)
30
+ throw new Error(q("DSTextarea", 'A unique "id" prop is required. Please add a unique "id" prop to the DSTextarea component.'));
31
+ if (!u)
32
+ throw new Error(q("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}.`));
33
+ }, Re = ue(({
34
+ id: r,
35
+ label: u,
36
+ charsLimitText: M = "Character limit reached",
37
+ charsRemainingText: O = "Characters remaining:",
38
+ className: X,
39
+ defaultValue: Z,
40
+ disabled: y = !1,
41
+ hint: x,
42
+ hideLabel: G = !1,
43
+ invalid: s = !1,
44
+ maxLength: e,
45
+ readonly: A = !1,
46
+ required: D = !1,
47
+ resize: f = "vertical",
48
+ size: J = "medium",
49
+ systemFeedback: n,
50
+ value: w,
51
+ wrapperClassName: K,
52
+ onChange: I,
53
+ onInput: T,
54
+ ...Q
55
+ }, _) => {
56
+ process.env.NODE_ENV !== "production" && Ne({
57
+ id: r,
58
+ label: u
59
+ });
60
+ const [U, k] = c(Z || ""), [i, N] = c(0), [W, R] = c(0), [Y, E] = c("off"), [H, v] = c(n), [C, S] = c(s), g = w !== void 0, b = g ? w : U, o = fe(null), $ = e !== void 0 && e > 0, j = C && H, L = (t) => {
61
+ o.current = t, typeof _ == "function" ? _(t) : _ && (_.current = t);
62
+ }, ee = _e(G);
63
+ p(() => {
64
+ if (!e || e <= 0)
65
+ return;
66
+ i >= e * 0.8 ? E("polite") : E("off");
67
+ const t = setTimeout(() => {
68
+ R(e - i || 0);
69
+ }, 1e3);
70
+ return () => clearTimeout(t);
71
+ }, [i]), p(() => {
72
+ k(b || ""), d(), e && e > 0 && (N(b.toString().length || 0), R(e - b.toString().length || 0));
73
+ }, [w]), p(() => {
74
+ s && n ? (v(n), S(s)) : !s && e && e >= 0 && i >= e ? (S(!0), v(M)) : (v(n), S(s));
75
+ }, [s, C, n, i]), p(() => {
76
+ if (f === "auto")
77
+ return d(), window.addEventListener("resize", d), () => window.removeEventListener("resize", d);
78
+ }, [f, o.current]);
79
+ const te = m(a.root, K), ae = m(a.textarea, X, {
80
+ // small textarea
81
+ [a.textareaSmall]: J === "small",
82
+ // invalid state
83
+ [a.textareaInvalid]: C,
84
+ // resize handling
85
+ [a.textareaResizeAuto]: f === "auto"
86
+ }), re = m(a.label, {
87
+ // hide label only visually to keep them available for assistive technologies
88
+ [a.labelHidden]: ee,
89
+ [a.labelDisabled]: y
90
+ }), se = m(a.footer, {
91
+ [a.footerHasSystemFeedback]: j
92
+ }), V = `${r}-label`, F = `${r}-feedback`, P = `${r}-hint`, B = `${r}-char-count-announcer`, oe = x ? ` ${P}` : "", d = () => {
93
+ if (o.current && f === "auto") {
94
+ o.current.style.height = "auto";
95
+ const t = z(o.current.scrollHeight), ce = z(2);
96
+ o.current.style.height = `${// We need to add 2px (border-top & border-bottom) to the scrollHeight to prevent the textarea
97
+ // from jumping as soon as the user starts typing.
98
+ t + ce}rem`;
99
+ }
100
+ }, ne = () => {
101
+ const t = [];
102
+ return e && e > 0 && t.push(B), s && n && t.push(F), t.length > 0 ? t.join(" ") : void 0;
103
+ }, ie = (t) => {
104
+ T && T(t), e && e > 0 && N(o.current?.value.length || 0), d();
105
+ }, le = (t) => {
106
+ I && I(t), g || k(t.target.value);
107
+ };
108
+ return /* @__PURE__ */ l("div", { className: te, children: [
109
+ /* @__PURE__ */ l("label", { className: re, id: V, htmlFor: r, children: [
110
+ u,
111
+ D && /* @__PURE__ */ h(be, {})
112
+ ] }),
113
+ x && /* @__PURE__ */ h("div", { className: a.hint, id: P, children: x }),
114
+ /* @__PURE__ */ h(
115
+ "textarea",
116
+ {
117
+ className: ae,
118
+ id: r,
119
+ ...Q,
120
+ ref: L,
121
+ "aria-labelledby": `${V}${oe}`,
122
+ "aria-describedby": ne(),
123
+ "aria-invalid": s,
124
+ "aria-disabled": A,
125
+ maxLength: e,
126
+ readOnly: A,
127
+ required: D,
128
+ disabled: y,
129
+ value: b,
130
+ defaultValue: void 0,
131
+ rows: void 0,
132
+ cols: void 0,
133
+ onChange: le,
134
+ onInput: ie
135
+ }
136
+ ),
137
+ $ || j ? /* @__PURE__ */ l("div", { className: se, children: [
138
+ j && /* @__PURE__ */ h(he, { className: a.feedback, message: H, variant: "error", id: F }),
139
+ $ && /* @__PURE__ */ l(de, { children: [
140
+ /* @__PURE__ */ l("div", { className: a.charCount, "aria-hidden": "true", children: [
141
+ i,
142
+ "/",
143
+ e
144
+ ] }),
145
+ /* @__PURE__ */ l(
146
+ "div",
147
+ {
148
+ className: a.charCountAnnouncer,
149
+ id: B,
150
+ "aria-live": Y,
151
+ "aria-atomic": "true",
152
+ children: [
153
+ O,
154
+ " ",
155
+ W
156
+ ]
157
+ }
158
+ )
159
+ ] })
160
+ ] }) : null
161
+ ] });
162
+ });
163
+ Re.displayName = "DSTextarea";
164
+ export {
165
+ Re as D,
166
+ qe as T,
167
+ Ne as v
168
+ };
@@ -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.DCZgBNmA.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
+ };