@stihl-design-system/components 1.0.0-RC.27 → 1.0.0-RC.29

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 (138) hide show
  1. package/{accordion.CBaDU14g.js → accordion.DkwtJy--.js} +2 -2
  2. package/{actionbutton.DEJsLxnQ.js → actionbutton.DHt1AL7U.js} +2 -2
  3. package/{actionlink.Cs6BTCA3.js → actionlink.BML1jenE.js} +2 -2
  4. package/assets/Accordion.BJb4TOG0.css +1 -0
  5. package/assets/CustomReactSelect.D0b1Hg1T.css +1 -0
  6. package/assets/{Fieldset.Cy5r0K7n.css → Fieldset.CW9dBvAo.css} +1 -1
  7. package/assets/InputFile.CCQxsulT.css +1 -0
  8. package/assets/InputPassword.124xVOiO.css +1 -0
  9. package/assets/InputSearch.Bkg-1urJ.css +1 -0
  10. package/assets/InputStepper.Dth4qZN_.css +1 -0
  11. package/assets/Select.CYACicZ3.css +1 -0
  12. package/assets/Slider.DzwSjDPV.css +1 -0
  13. package/assets/{systemfeedback.BX2zCzSL.css → SystemFeedback.RcrPepSZ.css} +1 -1
  14. package/assets/Textarea.BXWhXpXx.css +1 -0
  15. package/assets/input.ONbL-_C1.css +1 -0
  16. package/assets/radio.CgpGvYc-.css +1 -0
  17. package/{banner.CgQdUb_c.js → banner.B2YO054K.js} +1 -1
  18. package/{breadcrumb.x78HJy5P.js → breadcrumb.BS-S3zUI.js} +3 -3
  19. package/{button.BD_04tIG.js → button.CPilCCUI.js} +3 -3
  20. package/{buttonround.BT3OfowK.js → buttonround.C426mO4d.js} +2 -2
  21. package/{checkbox.BktYXQmJ.js → checkbox.BtlUvs0z.js} +3 -3
  22. package/{checkboxgroup.YK8H0YoX.js → checkboxgroup.C5NgyyQF.js} +2 -2
  23. package/{chip.BKtNbt4y.js → chip.tVIG1ysH.js} +2 -2
  24. package/{chipgroup.BWpqUzXF.js → chipgroup.CjIK0Z0x.js} +1 -1
  25. package/chunks/Accordion.C5V5IcM-.js +170 -0
  26. package/chunks/ActionButton.CzaWZGPt.js +165 -0
  27. package/chunks/ActionLink.BlhqDEtq.js +138 -0
  28. package/chunks/{Breadcrumb.B7g30dIO.js → Breadcrumb.BGzwzvh8.js} +2 -2
  29. package/chunks/{Button.CC0qEsuR.js → Button.B7xF1E19.js} +2 -2
  30. package/chunks/{Checkbox.BIQAKBVy.js → Checkbox.DxV7-F5W.js} +14 -14
  31. package/chunks/{CheckboxGroup.DHzpgOWp.js → CheckboxGroup.Dy_6tiGk.js} +2 -2
  32. package/chunks/{Chip.DifLxHH7.js → Chip.31UfPwQF.js} +1 -1
  33. package/chunks/{CustomReactSelect.BPnzhvw1.js → CustomReactSelect.iE5iTdez.js} +380 -379
  34. package/chunks/{Dialog.BuEEJ199.js → Dialog.B_2pKRnd.js} +1 -1
  35. package/chunks/{Drawer.BXUGmpJI.js → Drawer.HFlBTcqN.js} +1 -1
  36. package/chunks/Fieldset.CjIfmN_5.js +74 -0
  37. package/chunks/Header.BSvyYrIV.js +368 -0
  38. package/chunks/Icon.DGTYCv63.js +231 -0
  39. package/chunks/{InputFile.vkkg5Pab.js → InputFile.DvOatDzg.js} +59 -59
  40. package/chunks/InputPassword.DC2POUc1.js +136 -0
  41. package/chunks/{InputSearch.aIbUXVQU.js → InputSearch.B0aCuPRZ.js} +38 -38
  42. package/chunks/InputStepper.B_ZjgY_f.js +263 -0
  43. package/chunks/{LinkButton.DmXVHeyZ.js → LinkButton.DdTspmJz.js} +1 -1
  44. package/chunks/{NavigationTabList.IQM074Vb.js → NavigationTabList.dYFYTmWv.js} +1 -1
  45. package/chunks/{NavigationTabs.BofhX8bD.js → NavigationTabs.ClpVGcl0.js} +1 -1
  46. package/chunks/{Notification.B-3dPVUE.js → Notification.DIdIhGTQ.js} +2 -2
  47. package/chunks/{RadioGroup.c7YYJdUe.js → RadioGroup.peTeMK45.js} +2 -2
  48. package/chunks/Select.BDHLJ2ma.js +162 -0
  49. package/chunks/Slider.kyVr7BLk.js +292 -0
  50. package/chunks/SystemFeedback.B9f67mjJ.js +38 -0
  51. package/chunks/{Tabs.Bl4K3Kjn.js → Tabs.CkVL8Jw8.js} +1 -1
  52. package/chunks/Textarea.ORkJUx-S.js +163 -0
  53. package/chunks/{Toast.BHz0vlGz.js → Toast.DHo4pLH3.js} +2 -2
  54. package/chunks/caret-down.CupuwAF6.js +10 -0
  55. package/chunks/caret-right.DKtu4PQe.js +10 -0
  56. package/chunks/collapse.Dvv3mgkv.js +10 -0
  57. package/combobox.Bk2ycofh.js +60 -0
  58. package/components/Accordion/Accordion.utils.d.ts +3 -1
  59. package/components/ActionButton/ActionButton.d.ts +5 -5
  60. package/components/ActionLink/ActionLink.d.ts +5 -5
  61. package/components/Combobox/Combobox.d.ts +4 -0
  62. package/components/Combobox/CustomReactSelect/CustomReactSelect.d.ts +1 -1
  63. package/components/Header/Header.d.ts +1 -1
  64. package/components/Radio/Radio.d.ts +0 -6
  65. package/components/SystemFeedback/SystemFeedback.d.ts +13 -5
  66. package/components/SystemFeedback/SystemFeedback.utils.d.ts +4 -7
  67. package/components/TopBar/TopBar.d.ts +1 -1
  68. package/{customreactselect.Bu1i8wkh.js → customreactselect.Hnch9LGg.js} +4 -4
  69. package/{dialog.CGsUCqhR.js → dialog.7sWoqGwL.js} +2 -2
  70. package/{drawer.BcAo4TO0.js → drawer.DsF4KIPn.js} +2 -2
  71. package/{fieldset.DM9ELUJa.js → fieldset.DUFUMcT-.js} +2 -2
  72. package/{filelist.Cj9U-Jx8.js → filelist.nunJKxkv.js} +7 -7
  73. package/{flag.BHaAfp6B.js → flag.D_iN8iD6.js} +1 -1
  74. package/{floatingactionbutton.DSZXUHB_.js → floatingactionbutton.DOH2k0gv.js} +2 -2
  75. package/{header.WhQHSuB1.js → header.Z4Oxj_xL.js} +1 -1
  76. package/{icon.DwfGhFCd.js → icon.vMQcEBnH.js} +1 -1
  77. package/index.d.ts +2 -0
  78. package/index.es.js +175 -170
  79. package/input.BKHOY118.js +203 -0
  80. package/{inputfile.Cmkxf4Vq.js → inputfile.DK8759wV.js} +5 -5
  81. package/{inputpassword.CaJBCMA0.js → inputpassword.rV_ZZw5F.js} +3 -3
  82. package/{inputsearch.B06DhYzo.js → inputsearch.CmhakTpa.js} +3 -3
  83. package/{inputstepper.DNY7nzP8.js → inputstepper.5olvh4tk.js} +3 -3
  84. package/{link.DGuYGfh2.js → link.D_FjTyoZ.js} +2 -2
  85. package/{linkbutton.B3q0B_yb.js → linkbutton.D2C4vykc.js} +2 -2
  86. package/{navigationtablist.CS9yEGdP.js → navigationtablist.CVjh1k-b.js} +2 -2
  87. package/{navigationtabs.DQ1kE-h4.js → navigationtabs.BGfi9AG2.js} +2 -2
  88. package/{notification.D8BDaU5x.js → notification.Dn-FZWEL.js} +3 -3
  89. package/{optioncheckbox.CEEPAq0u.js → optioncheckbox.D97W3zeW.js} +1 -1
  90. package/package.json +1 -1
  91. package/partials/index.js +30 -24
  92. package/partials/lib/partials.d.ts +1 -1
  93. package/radio.7_N_alaS.js +126 -0
  94. package/{radiogroup.BRjwP01C.js → radiogroup.J8WpEEo8.js} +3 -3
  95. package/{scroller.CCA6kFR6.js → scroller.BiRLQg__.js} +1 -1
  96. package/{select.3zE96eWc.js → select.DIzGPVx3.js} +3 -3
  97. package/{skiptocontent.D1UkPmhD.js → skiptocontent._F-d8y5b.js} +1 -1
  98. package/{slider.CTCf7Xdm.js → slider.DuJK0RdB.js} +2 -2
  99. package/{spinner.CeGt8DxU.js → spinner.Dht6FspZ.js} +1 -1
  100. package/styles/scss/ds/index.scss +1 -0
  101. package/styles/scss/ds/lib/ds-internal/_index.scss +1 -0
  102. package/styles/scss/ds/lib/ds-internal/_input.scss +187 -0
  103. package/styles/scss/ds/lib/input.scss +26 -0
  104. package/{switch.CtULjgZq.js → switch.B37S4vfP.js} +2 -2
  105. package/systemfeedback.C_2PhwKe.js +10 -0
  106. package/{tablist.Dzwe0_J4.js → tablist.g_Nwu6GA.js} +3 -3
  107. package/{tabs.yudjJk9d.js → tabs.oh9-wHPp.js} +2 -2
  108. package/{textarea.B_3fPtmd.js → textarea.dQ12-oYB.js} +2 -2
  109. package/{toast.Bhpwj1NF.js → toast.sMNbfKxi.js} +3 -3
  110. package/{toastmanager.BHk65ynQ.js → toastmanager.CVamaS5T.js} +1 -1
  111. package/{topbar.2b8fjmA4.js → topbar.Bccms0xZ.js} +1 -1
  112. package/types/icon-types.d.ts +1 -1
  113. package/assets/Accordion.DOcfZwq8.css +0 -1
  114. package/assets/CustomReactSelect.B9f_KYFg.css +0 -1
  115. package/assets/InputFile.Dqjz53mb.css +0 -1
  116. package/assets/InputPassword.BuVQ9dRy.css +0 -1
  117. package/assets/InputSearch.Dwtb3Mhw.css +0 -1
  118. package/assets/InputStepper.CBt99L83.css +0 -1
  119. package/assets/Select.CghDnBUQ.css +0 -1
  120. package/assets/Slider.C8i4U4iT.css +0 -1
  121. package/assets/Textarea.BgtH-TTe.css +0 -1
  122. package/assets/input.DFwunFjw.css +0 -1
  123. package/assets/radio.BCB51D_y.css +0 -1
  124. package/chunks/Accordion.eVOD7J_8.js +0 -154
  125. package/chunks/ActionButton.Ck1rGqgm.js +0 -165
  126. package/chunks/ActionLink.DnUNjoAT.js +0 -138
  127. package/chunks/Fieldset.BX46NuLh.js +0 -74
  128. package/chunks/Header.Djs1adPW.js +0 -361
  129. package/chunks/Icon.C0161Glk.js +0 -231
  130. package/chunks/InputPassword.D42uUEGy.js +0 -136
  131. package/chunks/InputStepper.DFEdUWm7.js +0 -263
  132. package/chunks/Select.B_EHpk22.js +0 -162
  133. package/chunks/Slider.DMSwmGwD.js +0 -292
  134. package/chunks/Textarea.Ce26v6ht.js +0 -163
  135. package/combobox.AaK6QjRl.js +0 -58
  136. package/input.DhxUW3zc.js +0 -203
  137. package/radio.Be4pFOLf.js +0 -134
  138. package/systemfeedback.CLQCbTF6.js +0 -44
@@ -0,0 +1,231 @@
1
+ "use client";
2
+ import { jsx as A } from "react/jsx-runtime";
3
+ import { d as P } from "./index.CgTHIF3K.js";
4
+ import { c as H } from "./index.CEyLAtio.js";
5
+ import * as x from "react";
6
+ import { useRef as U, useState as C, useEffect as G } from "react";
7
+ import { g as W } from "./helpers.BbWkXTr3.js";
8
+ import '../assets/Icon.QeJ7TxZs.css';var $ = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new WeakMap(), B = 0, Z = void 0;
9
+ function F(t) {
10
+ return t ? (D.has(t) || (B += 1, D.set(t, B.toString())), D.get(t)) : "0";
11
+ }
12
+ function J(t) {
13
+ return Object.keys(t).sort().filter(
14
+ (s) => t[s] !== void 0
15
+ ).map((s) => `${s}_${s === "root" ? F(t.root) : t[s]}`).toString();
16
+ }
17
+ function K(t) {
18
+ const s = J(t);
19
+ let i = $.get(s);
20
+ if (!i) {
21
+ const o = /* @__PURE__ */ new Map();
22
+ let c;
23
+ const e = new IntersectionObserver((n) => {
24
+ n.forEach((r) => {
25
+ var a;
26
+ const m = r.isIntersecting && c.some((d) => r.intersectionRatio >= d);
27
+ t.trackVisibility && typeof r.isVisible > "u" && (r.isVisible = m), (a = o.get(r.target)) == null || a.forEach((d) => {
28
+ d(m, r);
29
+ });
30
+ });
31
+ }, t);
32
+ c = e.thresholds || (Array.isArray(t.threshold) ? t.threshold : [t.threshold || 0]), i = {
33
+ id: s,
34
+ observer: e,
35
+ elements: o
36
+ }, $.set(s, i);
37
+ }
38
+ return i;
39
+ }
40
+ function Q(t, s, i = {}, o = Z) {
41
+ if (typeof window.IntersectionObserver > "u" && o !== void 0) {
42
+ const a = t.getBoundingClientRect();
43
+ return s(o, {
44
+ isIntersecting: o,
45
+ target: t,
46
+ intersectionRatio: typeof i.threshold == "number" ? i.threshold : 0,
47
+ time: 0,
48
+ boundingClientRect: a,
49
+ intersectionRect: a,
50
+ rootBounds: a
51
+ }), () => {
52
+ };
53
+ }
54
+ const { id: c, observer: e, elements: n } = K(i), r = n.get(t) || [];
55
+ return n.has(t) || n.set(t, r), r.push(s), e.observe(t), function() {
56
+ r.splice(r.indexOf(s), 1), r.length === 0 && (n.delete(t), e.unobserve(t)), n.size === 0 && (e.disconnect(), $.delete(c));
57
+ };
58
+ }
59
+ function Y({
60
+ threshold: t,
61
+ delay: s,
62
+ trackVisibility: i,
63
+ rootMargin: o,
64
+ root: c,
65
+ triggerOnce: e,
66
+ skip: n,
67
+ initialInView: r,
68
+ fallbackInView: a,
69
+ onChange: m
70
+ } = {}) {
71
+ var d;
72
+ const [h, b] = x.useState(null), u = x.useRef(m), [f, w] = x.useState({
73
+ inView: !!r,
74
+ entry: void 0
75
+ });
76
+ u.current = m, x.useEffect(
77
+ () => {
78
+ if (n || !h) return;
79
+ let p;
80
+ return p = Q(
81
+ h,
82
+ (S, v) => {
83
+ w({
84
+ inView: S,
85
+ entry: v
86
+ }), u.current && u.current(S, v), v.isIntersecting && e && p && (p(), p = void 0);
87
+ },
88
+ {
89
+ root: c,
90
+ rootMargin: o,
91
+ threshold: t,
92
+ // @ts-ignore
93
+ trackVisibility: i,
94
+ // @ts-ignore
95
+ delay: s
96
+ },
97
+ a
98
+ ), () => {
99
+ p && p();
100
+ };
101
+ },
102
+ // We break the rule here, because we aren't including the actual `threshold` variable
103
+ // eslint-disable-next-line react-hooks/exhaustive-deps
104
+ [
105
+ // If the threshold is an array, convert it to a string, so it won't change between renders.
106
+ Array.isArray(t) ? t.toString() : t,
107
+ h,
108
+ c,
109
+ o,
110
+ e,
111
+ n,
112
+ i,
113
+ a,
114
+ s
115
+ ]
116
+ );
117
+ const l = (d = f.entry) == null ? void 0 : d.target, k = x.useRef(void 0);
118
+ !h && l && !e && !n && k.current !== l && (k.current = l, w({
119
+ inView: !!r,
120
+ entry: void 0
121
+ }));
122
+ const g = [b, f.inView, f.entry];
123
+ return g.ref = g[0], g.inView = g[1], g.entry = g[2], g;
124
+ }
125
+ const ss = "ds-icon_image_clh5i_1", ts = "ds-icon_image--theme-dark_clh5i_10", is = "ds-icon_image--size-x-large_clh5i_13", es = "ds-icon_image--size-medium_clh5i_19", os = "ds-icon_image--size-small_clh5i_25", rs = "ds-icon_image--size-x-small_clh5i_31", y = {
126
+ image: ss,
127
+ imageThemeDark: ts,
128
+ imageSizeXLarge: is,
129
+ imageSizeMedium: es,
130
+ imageSizeSmall: os,
131
+ imageSizeXSmall: rs
132
+ }, ns = (t, s, i) => {
133
+ const o = t[s];
134
+ return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((c, e) => {
135
+ (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
136
+ e.bind(
137
+ null,
138
+ new Error(
139
+ "Unknown variable dynamic import: " + s + (s.split("/").length !== i ? ". Note that variables only represent file names one level deep." : "")
140
+ )
141
+ )
142
+ );
143
+ });
144
+ }, vs = ["x-large", "large", "medium", "small", "x-small"], as = (t) => {
145
+ var n;
146
+ const s = U(void 0), [i, o] = C(!1), [c, e] = C(!0);
147
+ return G(() => {
148
+ i && (e(!0), (async () => {
149
+ try {
150
+ s.current = await ns(/* @__PURE__ */ Object.assign({ "../../../../icons/dist/assets/360.svg": () => import("./360.CfjUtgxq.js"), "../../../../icons/dist/assets/academic-cap.svg": () => import("./academic-cap.OBigTQQS.js"), "../../../../icons/dist/assets/accessibility.svg": () => import("./accessibility.B57oX4yV.js"), "../../../../icons/dist/assets/alarm-clock.svg": () => import("./alarm-clock.CpK-AEZG.js"), "../../../../icons/dist/assets/arrow-clockwise.svg": () => import("./arrow-clockwise.BefOjGPg.js"), "../../../../icons/dist/assets/arrow-counterclockwise.svg": () => import("./arrow-counterclockwise.C7Ov32BZ.js"), "../../../../icons/dist/assets/arrow-down-line.svg": () => import("./arrow-down-line.RDD2pRZY.js"), "../../../../icons/dist/assets/arrow-down.svg": () => import("./arrow-down.XpokLh98.js"), "../../../../icons/dist/assets/arrow-edge.svg": () => import("./arrow-edge.CPA93M81.js"), "../../../../icons/dist/assets/arrow-left.svg": () => import("./arrow-left.C8NG5I2X.js"), "../../../../icons/dist/assets/arrow-out.svg": () => import("./arrow-out.CsHHHYN9.js"), "../../../../icons/dist/assets/arrow-outline-left.svg": () => import("./arrow-outline-left.Bhw_LzfV.js"), "../../../../icons/dist/assets/arrow-right.svg": () => import("./arrow-right.HNwAz18h.js"), "../../../../icons/dist/assets/arrow-up-arrow-down.svg": () => import("./arrow-up-arrow-down.BVyuVJP5.js"), "../../../../icons/dist/assets/arrow-up.svg": () => import("./arrow-up.Ca1GnLaY.js"), "../../../../icons/dist/assets/at.svg": () => import("./at.BNfdp4M0.js"), "../../../../icons/dist/assets/barcode-scanner.svg": () => import("./barcode-scanner.D0olxB_m.js"), "../../../../icons/dist/assets/battery.svg": () => import("./battery.YCg9lYqC.js"), "../../../../icons/dist/assets/bell.svg": () => import("./bell.DbPxCAUM.js"), "../../../../icons/dist/assets/bin-open.svg": () => import("./bin-open.DsjIBW00.js"), "../../../../icons/dist/assets/bin.svg": () => import("./bin.ktpYUJmK.js"), "../../../../icons/dist/assets/bluetooth.svg": () => import("./bluetooth.dW5tTwby.js"), "../../../../icons/dist/assets/bookmark.svg": () => import("./bookmark.B7Mbr-d6.js"), "../../../../icons/dist/assets/burger.svg": () => import("./burger.DLP81BXa.js"), "../../../../icons/dist/assets/calendar.svg": () => import("./calendar.Cig7yG7m.js"), "../../../../icons/dist/assets/camera.svg": () => import("./camera.BoCB0Emp.js"), "../../../../icons/dist/assets/caret-down.svg": () => import("./caret-down.CupuwAF6.js"), "../../../../icons/dist/assets/caret-right.svg": () => import("./caret-right.DKtu4PQe.js"), "../../../../icons/dist/assets/cart-check.svg": () => import("./cart-check.CYH0vTB8.js"), "../../../../icons/dist/assets/cart-plus.svg": () => import("./cart-plus.DzXXFMZj.js"), "../../../../icons/dist/assets/cart.svg": () => import("./cart.CoEwMABr.js"), "../../../../icons/dist/assets/catalog.svg": () => import("./catalog.CwV-J6Kb.js"), "../../../../icons/dist/assets/certificate.svg": () => import("./certificate.Crs4RohK.js"), "../../../../icons/dist/assets/chain-link.svg": () => import("./chain-link.BMV2WV6k.js"), "../../../../icons/dist/assets/chainsaw.svg": () => import("./chainsaw.CI1EYF7a.js"), "../../../../icons/dist/assets/check.svg": () => import("./check.CuZKWgYj.js"), "../../../../icons/dist/assets/chevron-down.svg": () => import("./chevron-down.5UkGOwK_.js"), "../../../../icons/dist/assets/chevron-left.svg": () => import("./chevron-left.DRFQ-efY.js"), "../../../../icons/dist/assets/chevron-line-left.svg": () => import("./chevron-line-left.SQvDJQ1t.js"), "../../../../icons/dist/assets/chevron-line-right.svg": () => import("./chevron-line-right.CYQ3b2cQ.js"), "../../../../icons/dist/assets/chevron-right.svg": () => import("./chevron-right.B_Ew9QUt.js"), "../../../../icons/dist/assets/chevron-up.svg": () => import("./chevron-up.DqETUWqG.js"), "../../../../icons/dist/assets/circle-check-colored.svg": () => import("./circle-check-colored.Bye_GwLy.js"), "../../../../icons/dist/assets/circle-check-inverted.svg": () => import("./circle-check-inverted.Cc2cUmWT.js"), "../../../../icons/dist/assets/circle-info-colored.svg": () => import("./circle-info-colored.D2pp54gf.js"), "../../../../icons/dist/assets/circle-info-inverted.svg": () => import("./circle-info-inverted.D8Z0vTmu.js"), "../../../../icons/dist/assets/circle-pause.svg": () => import("./circle-pause.DaRfXOff.js"), "../../../../icons/dist/assets/circle-stroke.svg": () => import("./circle-stroke.CWu_o3Gx.js"), "../../../../icons/dist/assets/circle.svg": () => import("./circle.471EUzv6.js"), "../../../../icons/dist/assets/clock.svg": () => import("./clock.Bw5ICIVH.js"), "../../../../icons/dist/assets/coffee-cup.svg": () => import("./coffee-cup.DIijzKx_.js"), "../../../../icons/dist/assets/collapse.svg": () => import("./collapse.Dvv3mgkv.js"), "../../../../icons/dist/assets/compare.svg": () => import("./compare.BgktBbYD.js"), "../../../../icons/dist/assets/connected-box-mobile.svg": () => import("./connected-box-mobile.DboMCVxp.js"), "../../../../icons/dist/assets/connected-box-stationary.svg": () => import("./connected-box-stationary.CAPCPQ1d.js"), "../../../../icons/dist/assets/connected-box.svg": () => import("./connected-box.DVqJw-ws.js"), "../../../../icons/dist/assets/cross.svg": () => import("./cross.rEw3TuHs.js"), "../../../../icons/dist/assets/diamond-exclamationmark-colored.svg": () => import("./diamond-exclamationmark-colored.WNKYwZ8q.js"), "../../../../icons/dist/assets/diamond-exclamationmark-inverted.svg": () => import("./diamond-exclamationmark-inverted.DzAIb8Nt.js"), "../../../../icons/dist/assets/diamond.svg": () => import("./diamond.CXZHFpPC.js"), "../../../../icons/dist/assets/diskette.svg": () => import("./diskette._0C2VZ9v.js"), "../../../../icons/dist/assets/distance.svg": () => import("./distance.FA6pTjcW.js"), "../../../../icons/dist/assets/document-magnifying-glass.svg": () => import("./document-magnifying-glass.DkvpNz-D.js"), "../../../../icons/dist/assets/dots-connected.svg": () => import("./dots-connected.ZMYjHeNS.js"), "../../../../icons/dist/assets/download-complete.svg": () => import("./download-complete.CZVpzrvY.js"), "../../../../icons/dist/assets/envelope-open.svg": () => import("./envelope-open.CA4cE5lk.js"), "../../../../icons/dist/assets/envelope.svg": () => import("./envelope.re-RxZVw.js"), "../../../../icons/dist/assets/exclamationmark.svg": () => import("./exclamationmark.DEbIGqGC.js"), "../../../../icons/dist/assets/exit.svg": () => import("./exit.Cgb8AB-k.js"), "../../../../icons/dist/assets/eye-closed.svg": () => import("./eye-closed.CvqozUwK.js"), "../../../../icons/dist/assets/eye.svg": () => import("./eye.CRQMKZs4.js"), "../../../../icons/dist/assets/facebook.svg": () => import("./facebook.CVcxa0rV.js"), "../../../../icons/dist/assets/file-type-doc.svg": () => import("./file-type-doc.DlovDOBh.js"), "../../../../icons/dist/assets/file-type-image.svg": () => import("./file-type-image.Cg2NRd7y.js"), "../../../../icons/dist/assets/file-type-pdf.svg": () => import("./file-type-pdf.Dm94xL2i.js"), "../../../../icons/dist/assets/file-type-video.svg": () => import("./file-type-video.CFwfiP-D.js"), "../../../../icons/dist/assets/file-type-zip.svg": () => import("./file-type-zip.SNixmKhQ.js"), "../../../../icons/dist/assets/file.svg": () => import("./file.DLgRXiem.js"), "../../../../icons/dist/assets/filter.svg": () => import("./filter.DrPSKpaG.js"), "../../../../icons/dist/assets/finger-double-arrow.svg": () => import("./finger-double-arrow.DDUZoPh8.js"), "../../../../icons/dist/assets/flash.svg": () => import("./flash.CgJJ1bUx.js"), "../../../../icons/dist/assets/fullscreen.svg": () => import("./fullscreen.Be2rBj1i.js"), "../../../../icons/dist/assets/gear.svg": () => import("./gear.DEltGVSA.js"), "../../../../icons/dist/assets/globe.svg": () => import("./globe.DG6uw6fi.js"), "../../../../icons/dist/assets/grid.svg": () => import("./grid.DH1impeF.js"), "../../../../icons/dist/assets/guidance.svg": () => import("./guidance.BBYB3JpW.js"), "../../../../icons/dist/assets/haircross.svg": () => import("./haircross.D-whkit9.js"), "../../../../icons/dist/assets/hanger.svg": () => import("./hanger.Bo8qtNo5.js"), "../../../../icons/dist/assets/headphones.svg": () => import("./headphones.DjWXOuJJ.js"), "../../../../icons/dist/assets/heart.svg": () => import("./heart.D-BnHMb-.js"), "../../../../icons/dist/assets/hexagon-arrow-clockwise.svg": () => import("./hexagon-arrow-clockwise.D0eeDQQx.js"), "../../../../icons/dist/assets/horizontal-ellipsis.svg": () => import("./horizontal-ellipsis.ChdN6RnG.js"), "../../../../icons/dist/assets/house.svg": () => import("./house.BohpDQ3q.js"), "../../../../icons/dist/assets/imow.svg": () => import("./imow.Dh1oMqcW.js"), "../../../../icons/dist/assets/info.svg": () => import("./info.BZVg9FLA.js"), "../../../../icons/dist/assets/instagram.svg": () => import("./instagram.CIlKb7xj.js"), "../../../../icons/dist/assets/leave-fullscreen.svg": () => import("./leave-fullscreen.BC5iwDur.js"), "../../../../icons/dist/assets/lightbulb.svg": () => import("./lightbulb.DQ7TiRsr.js"), "../../../../icons/dist/assets/linkedin.svg": () => import("./linkedin.br5zvxco.js"), "../../../../icons/dist/assets/list-three-rows.svg": () => import("./list-three-rows.Cso4ybs8.js"), "../../../../icons/dist/assets/list-two-rows.svg": () => import("./list-two-rows.DOsZEv0-.js"), "../../../../icons/dist/assets/loading-spinner.svg": () => import("./loading-spinner.BukfMaU6.js"), "../../../../icons/dist/assets/lock.svg": () => import("./lock.Dw_GOpTn.js"), "../../../../icons/dist/assets/magnifying-glass-minus.svg": () => import("./magnifying-glass-minus.BYztw2P1.js"), "../../../../icons/dist/assets/magnifying-glass-plus.svg": () => import("./magnifying-glass-plus.BTgviDVh.js"), "../../../../icons/dist/assets/magnifying-glass.svg": () => import("./magnifying-glass.C8DfRaIO.js"), "../../../../icons/dist/assets/map.svg": () => import("./map.CXgG1iGz.js"), "../../../../icons/dist/assets/minus.svg": () => import("./minus.BkhCuIH4.js"), "../../../../icons/dist/assets/mobile.svg": () => import("./mobile.C1Kj9VnC.js"), "../../../../icons/dist/assets/nine-squares.svg": () => import("./nine-squares.DVsNAOzz.js"), "../../../../icons/dist/assets/note-check.svg": () => import("./note-check.CM_kmt0M.js"), "../../../../icons/dist/assets/note-plus.svg": () => import("./note-plus.Bkn78EyA.js"), "../../../../icons/dist/assets/note.svg": () => import("./note.CE0ACLn8.js"), "../../../../icons/dist/assets/number-input.svg": () => import("./number-input.BLhoh5mh.js"), "../../../../icons/dist/assets/paperclip.svg": () => import("./paperclip.BMerX4rj.js"), "../../../../icons/dist/assets/parcel.svg": () => import("./parcel.Ve9GL_EG.js"), "../../../../icons/dist/assets/pause.svg": () => import("./pause.B91Ejn-O.js"), "../../../../icons/dist/assets/pen.svg": () => import("./pen.CvKw2PvE.js"), "../../../../icons/dist/assets/percent.svg": () => import("./percent.BlB6rG-B.js"), "../../../../icons/dist/assets/petrol.svg": () => import("./petrol.Du6qAgp0.js"), "../../../../icons/dist/assets/phone.svg": () => import("./phone.DzdXfmNC.js"), "../../../../icons/dist/assets/pin-s.svg": () => import("./pin-s.DXgYuN9C.js"), "../../../../icons/dist/assets/pin.svg": () => import("./pin.DZfZr4El.js"), "../../../../icons/dist/assets/pinterest.svg": () => import("./pinterest.sUPAub_q.js"), "../../../../icons/dist/assets/placeholder.svg": () => import("./placeholder.Dbb0hT5R.js"), "../../../../icons/dist/assets/play.svg": () => import("./play.BDiY2JrT.js"), "../../../../icons/dist/assets/plug.svg": () => import("./plug.DZozve4C.js"), "../../../../icons/dist/assets/plus.svg": () => import("./plus.zdu17kAe.js"), "../../../../icons/dist/assets/printer.svg": () => import("./printer.CaFaWfeS.js"), "../../../../icons/dist/assets/prohibition-sign.svg": () => import("./prohibition-sign.DUFn0QiV.js"), "../../../../icons/dist/assets/questionmark.svg": () => import("./questionmark.QyDxanQy.js"), "../../../../icons/dist/assets/security.svg": () => import("./security.DkLw5ym4.js"), "../../../../icons/dist/assets/share.svg": () => import("./share.C3wwEl8n.js"), "../../../../icons/dist/assets/shirt.svg": () => import("./shirt.BC8W-yCI.js"), "../../../../icons/dist/assets/shop.svg": () => import("./shop.DdPV35mK.js"), "../../../../icons/dist/assets/sound-off.svg": () => import("./sound-off.D4kGcehG.js"), "../../../../icons/dist/assets/sound-on.svg": () => import("./sound-on.Cynkb0_t.js"), "../../../../icons/dist/assets/speechbubble.svg": () => import("./speechbubble.87vuoKUp.js"), "../../../../icons/dist/assets/speechbubbles.svg": () => import("./speechbubbles.CSFhpNJn.js"), "../../../../icons/dist/assets/square.svg": () => import("./square.D6PgEi_r.js"), "../../../../icons/dist/assets/star-half.svg": () => import("./star-half.DZTtM5Bw.js"), "../../../../icons/dist/assets/star.svg": () => import("./star.BkjednvI.js"), "../../../../icons/dist/assets/tag.svg": () => import("./tag.yO7uMsHj.js"), "../../../../icons/dist/assets/thumbs-down.svg": () => import("./thumbs-down.DeBD6wnK.js"), "../../../../icons/dist/assets/thumbs-up.svg": () => import("./thumbs-up.D-44gexH.js"), "../../../../icons/dist/assets/tiktok.svg": () => import("./tiktok.BWJTDGYm.js"), "../../../../icons/dist/assets/triangle-exclamationmark-colored.svg": () => import("./triangle-exclamationmark-colored.CbVC3Gzi.js"), "../../../../icons/dist/assets/triangle-exclamationmark-inverted.svg": () => import("./triangle-exclamationmark-inverted.BiGoK7TV.js"), "../../../../icons/dist/assets/triangle.svg": () => import("./triangle.ibv6NDnt.js"), "../../../../icons/dist/assets/truck.svg": () => import("./truck.xIk5wW6T.js"), "../../../../icons/dist/assets/twitch.svg": () => import("./twitch.C893cAK8.js"), "../../../../icons/dist/assets/two-people-screen.svg": () => import("./two-people-screen.BBLouaW4.js"), "../../../../icons/dist/assets/two-sheets.svg": () => import("./two-sheets.DWFmuL7N.js"), "../../../../icons/dist/assets/upload.svg": () => import("./upload.ZImTAIgx.js"), "../../../../icons/dist/assets/user.svg": () => import("./user.BMARueuy.js"), "../../../../icons/dist/assets/vertical-ellipsis.svg": () => import("./vertical-ellipsis.Bc9eBsDF.js"), "../../../../icons/dist/assets/wc.svg": () => import("./wc.gmKE1r5l.js"), "../../../../icons/dist/assets/whatsapp.svg": () => import("./whatsapp.CPpu-7Nn.js"), "../../../../icons/dist/assets/wifi-1bar.svg": () => import("./wifi-1bar.BcEP-r8w.js"), "../../../../icons/dist/assets/wifi-2bars.svg": () => import("./wifi-2bars.jDOd4Q3q.js"), "../../../../icons/dist/assets/wifi-off.svg": () => import("./wifi-off.D9xPqVWn.js"), "../../../../icons/dist/assets/wifi.svg": () => import("./wifi.CuQykF6X.js"), "../../../../icons/dist/assets/wind-rose.svg": () => import("./wind-rose.C-XcKdy-.js"), "../../../../icons/dist/assets/wrench.svg": () => import("./wrench.DMFV2S9u.js"), "../../../../icons/dist/assets/x.svg": () => import("./x.BqbpXd7O.js"), "../../../../icons/dist/assets/xing.svg": () => import("./xing.CiKYLbPq.js"), "../../../../icons/dist/assets/youtube.svg": () => import("./youtube.DrImaRSP.js") }), `../../../../icons/dist/assets/${t}.svg`, 8);
151
+ } catch (a) {
152
+ console.error(W("DSIcon", a instanceof Error ? a.message : String(a)));
153
+ } finally {
154
+ e(!1);
155
+ }
156
+ })());
157
+ }, [t, i]), {
158
+ isLoading: c,
159
+ SVGIcon: (n = s.current) == null ? void 0 : n.default,
160
+ setShouldLoad: o
161
+ };
162
+ }, ls = (t) => {
163
+ const s = P.c(38);
164
+ let i, o, c, e, n, r, a;
165
+ s[0] !== t ? ({
166
+ aria: i,
167
+ className: o,
168
+ name: n,
169
+ size: r,
170
+ source: e,
171
+ theme: a,
172
+ ...c
173
+ } = t, s[0] = t, s[1] = i, s[2] = o, s[3] = c, s[4] = e, s[5] = n, s[6] = r, s[7] = a) : (i = s[1], o = s[2], c = s[3], e = s[4], n = s[5], r = s[6], a = s[7]);
174
+ const m = n === void 0 ? "placeholder" : n, d = r === void 0 ? "large" : r, h = a === void 0 ? "light" : a, {
175
+ SVGIcon: b,
176
+ isLoading: u,
177
+ setShouldLoad: f
178
+ } = as(m), [, w] = C(m);
179
+ let l;
180
+ s[8] === Symbol.for("react.memo_cache_sentinel") ? (l = {
181
+ "x-large": 24,
182
+ large: 16,
183
+ medium: 12,
184
+ small: 10,
185
+ "x-small": 8
186
+ }, s[8] = l) : l = s[8];
187
+ const k = l;
188
+ let g;
189
+ s[9] !== m || s[10] !== w ? (g = () => {
190
+ w(m);
191
+ }, s[9] = m, s[10] = w, s[11] = g) : g = s[11];
192
+ let p;
193
+ s[12] !== m ? (p = [m], s[12] = m, s[13] = p) : p = s[13], G(g, p);
194
+ const S = !!e;
195
+ let v;
196
+ s[14] !== f ? (v = (q) => {
197
+ f(q);
198
+ }, s[14] = f, s[15] = v) : v = s[15];
199
+ let z;
200
+ s[16] !== S || s[17] !== v ? (z = {
201
+ rootMargin: "200px 0px",
202
+ triggerOnce: !0,
203
+ fallbackInView: !0,
204
+ skip: S,
205
+ onChange: v
206
+ }, s[16] = S, s[17] = v, s[18] = z) : z = s[18];
207
+ const {
208
+ ref: E
209
+ } = Y(z);
210
+ let I;
211
+ s[19] !== e ? (I = (q) => (j) => {
212
+ e && j && (j.src = q);
213
+ }, s[19] = e, s[20] = I) : I = s[20];
214
+ const L = I, N = h === "dark" && !e && !m.includes("-colored"), T = d === "x-large", V = d === "medium", O = d === "small", X = d === "x-small";
215
+ let R;
216
+ s[21] !== o || s[22] !== N || s[23] !== T || s[24] !== V || s[25] !== O || s[26] !== X ? (R = H(y.image, o, {
217
+ [y.imageThemeDark]: N,
218
+ [y.imageSizeXLarge]: T,
219
+ [y.imageSizeMedium]: V,
220
+ [y.imageSizeSmall]: O,
221
+ [y.imageSizeXSmall]: X
222
+ }), s[21] = o, s[22] = N, s[23] = T, s[24] = V, s[25] = O, s[26] = X, s[27] = R) : R = s[27];
223
+ const _ = R;
224
+ let M;
225
+ return s[28] !== b || s[29] !== L || s[30] !== i || s[31] !== _ || s[32] !== u || s[33] !== E || s[34] !== c || s[35] !== d || s[36] !== e ? (M = e ? /* @__PURE__ */ A("img", { className: _, ref: L(e), width: k[d], height: k[d], loading: "lazy", alt: (i == null ? void 0 : i["aria-label"]) || "", ...c }) : !u && b ? /* @__PURE__ */ A(b, { className: _, title: (i == null ? void 0 : i["aria-label"]) || "", role: i != null && i["aria-label"] ? "img" : void 0, ...c }) : /* @__PURE__ */ A("div", { className: _, ref: E }), s[28] = b, s[29] = L, s[30] = i, s[31] = _, s[32] = u, s[33] = E, s[34] = c, s[35] = d, s[36] = e, s[37] = M) : M = s[37], M;
226
+ };
227
+ export {
228
+ ls as D,
229
+ vs as I,
230
+ as as u
231
+ };
@@ -1,23 +1,23 @@
1
1
  "use client";
2
- import { jsxs as y, jsx as a, Fragment as fe } from "react/jsx-runtime";
3
- import { c as D } from "./index.CEyLAtio.js";
4
- import { forwardRef as ge, useState as U, useRef as me, useCallback as be } from "react";
5
- import { t as _e } from "./translate.nuU7uChI.js";
2
+ import { jsxs as v, jsx as a, Fragment as fe } from "react/jsx-runtime";
3
+ import { c as _ } from "./index.CEyLAtio.js";
4
+ import { forwardRef as ge, useState as U, useRef as be, useCallback as me } from "react";
5
+ import { t as De } from "./translate.nuU7uChI.js";
6
6
  import { u as Z } from "./useBreakpoint.CMOR9ZOB.js";
7
7
  import "./index.CgTHIF3K.js";
8
- import { g as De } from "./AriaLiveRegions.utils.Cb327d_2.js";
8
+ import { g as _e } from "./AriaLiveRegions.utils.Cb327d_2.js";
9
9
  import { Asterisk as he } from "../asterisk.CR60hx8S.js";
10
- import { D as Ie } from "./Button.CC0qEsuR.js";
11
- import { FileList as ye } from "../filelist.Cj9U-Jx8.js";
12
- import { D as ve } from "./Icon.C0161Glk.js";
13
- import { DSSystemFeedback as we } from "../systemfeedback.CLQCbTF6.js";
14
- import { g as v } from "./helpers.BbWkXTr3.js";
15
- import '../assets/InputFile.Dqjz53mb.css';const ze = "ds-input-file_root_1pm2y_1", Se = "ds-input-file_hint_1pm2y_1", Ne = "ds-input-file_label_1pm2y_1", Le = "ds-input-file_browse-button--is-dragging-filled_1pm2y_4", ke = "ds-input-file_browse-button--is-dragging_1pm2y_4", Be = "ds-input-file_label--hidden_1pm2y_44", Fe = "ds-input-file_label--disabled_1pm2y_57", Te = "ds-input-file_feedback_1pm2y_77", Ae = "ds-input-file_dropzone_1pm2y_82", $e = "ds-input-file_dropzone--disabled_1pm2y_88", Ce = "ds-input-file_dropzone--invalid_1pm2y_102", Ee = "ds-input-file_dropzone--is-dragging_1pm2y_105", Re = "ds-input-file_hint-drop-zone_1pm2y_108", qe = "ds-input-file_upload-icon_1pm2y_111", Pe = "ds-input-file_browse-button-dropzone--is-dragging_1pm2y_114", xe = "ds-input-file_instructions_1pm2y_117", He = "ds-input-file_input_1pm2y_154", Oe = "ds-input-file_required-sr-info_1pm2y_158", t = {
16
- root: ze,
17
- hint: Se,
18
- label: Ne,
19
- browseButtonIsDraggingFilled: Le,
20
- browseButtonIsDragging: ke,
10
+ import { D as Ie } from "./Button.B7xF1E19.js";
11
+ import { FileList as ve } from "../filelist.nunJKxkv.js";
12
+ import { D as we } from "./Icon.DGTYCv63.js";
13
+ import { D as ze } from "./SystemFeedback.B9f67mjJ.js";
14
+ import { g as w } from "./helpers.BbWkXTr3.js";
15
+ import '../assets/InputFile.CCQxsulT.css';const Se = "ds-input-file_root_1pdsr_1", Ne = "ds-input-file_hint_1pdsr_1", Le = "ds-input-file_label_1pdsr_1", ke = "ds-input-file_browse-button--is-dragging-filled_1pdsr_4", ye = "ds-input-file_browse-button--is-dragging_1pdsr_4", Be = "ds-input-file_label--hidden_1pdsr_44", Fe = "ds-input-file_label--disabled_1pdsr_57", Te = "ds-input-file_feedback_1pdsr_77", Ae = "ds-input-file_dropzone_1pdsr_82", $e = "ds-input-file_dropzone--disabled_1pdsr_88", Ce = "ds-input-file_dropzone--invalid_1pdsr_102", Ee = "ds-input-file_dropzone--is-dragging_1pdsr_105", Re = "ds-input-file_hint-drop-zone_1pdsr_108", qe = "ds-input-file_upload-icon_1pdsr_111", Pe = "ds-input-file_browse-button-dropzone--is-dragging_1pdsr_114", xe = "ds-input-file_instructions_1pdsr_117", He = "ds-input-file_input_1pdsr_154", Oe = "ds-input-file_required-sr-info_1pdsr_158", t = {
16
+ root: Se,
17
+ hint: Ne,
18
+ label: Le,
19
+ browseButtonIsDraggingFilled: ke,
20
+ browseButtonIsDragging: ye,
21
21
  labelHidden: Be,
22
22
  labelDisabled: Fe,
23
23
  feedback: Te,
@@ -58,8 +58,8 @@ import '../assets/InputFile.Dqjz53mb.css';const ze = "ds-input-file_root_1pm2y_1
58
58
  if (l.startsWith("."))
59
59
  return u.endsWith(l);
60
60
  if (l.endsWith("/*")) {
61
- const [w] = o.split("/");
62
- return w === l.slice(0, -2);
61
+ const [z] = o.split("/");
62
+ return z === l.slice(0, -2);
63
63
  }
64
64
  return o === l;
65
65
  });
@@ -70,13 +70,13 @@ import '../assets/InputFile.Dqjz53mb.css';const ze = "ds-input-file_root_1pm2y_1
70
70
  }) => {
71
71
  var u;
72
72
  if (!r)
73
- throw new Error(v("DSInputFile", 'A unique "id" prop is required. Please add a unique "id" prop to the DSInputFile component.'));
73
+ throw new Error(w("DSInputFile", 'A unique "id" prop is required. Please add a unique "id" prop to the DSInputFile component.'));
74
74
  if (!d)
75
- throw new Error(v("DSInputFile", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSInputFile component. If you don't want to display a label, set hideLabel={true}.`));
75
+ throw new Error(w("DSInputFile", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSInputFile component. If you don't want to display a label, set hideLabel={true}.`));
76
76
  if (i && ((u = i.label) == null ? void 0 : u.trim()) === "")
77
- throw new Error(v("DSInputFile", "The input file button needs to have a label for a11y reasons. Please add a label to the inputFileButtonProps."));
77
+ throw new Error(w("DSInputFile", "The input file button needs to have a label for a11y reasons. Please add a label to the inputFileButtonProps."));
78
78
  if (i && i.variant && i.variant !== "outline" && i.variant !== "filled")
79
- throw new Error(v("DSInputFile", "The inputFileButtonProps variant value can only be 'outline' for DSInputFile components inside forms or 'filled' for standalone DSInputFile components."));
79
+ throw new Error(w("DSInputFile", "The inputFileButtonProps variant value can only be 'outline' for DSInputFile components inside forms or 'filled' for standalone DSInputFile components."));
80
80
  }, Ze = ge(({
81
81
  id: r,
82
82
  label: d,
@@ -84,8 +84,8 @@ import '../assets/InputFile.Dqjz53mb.css';const ze = "ds-input-file_root_1pm2y_1
84
84
  className: u,
85
85
  disabled: o = !1,
86
86
  fileListItemRemoveButtonProps: l,
87
- hideLabel: w = !1,
88
- hint: b,
87
+ hideLabel: z = !1,
88
+ hint: m,
89
89
  inputFileButtonProps: T,
90
90
  invalid: h = !1,
91
91
  isHintOutsideDropzone: G = {
@@ -93,47 +93,47 @@ import '../assets/InputFile.Dqjz53mb.css';const ze = "ds-input-file_root_1pm2y_1
93
93
  m: !1
94
94
  },
95
95
  lang: A = "en",
96
- maxSizeInMb: z = 7,
97
- multiple: _ = !1,
96
+ maxSizeInMb: S = 7,
97
+ multiple: D = !1,
98
98
  required: $ = !1,
99
99
  showFileList: J = !0,
100
100
  showDropzone: c = !1,
101
- systemFeedback: S,
101
+ systemFeedback: N,
102
102
  translations: K,
103
103
  onFilesSelect: p,
104
104
  ...Q
105
105
  }, I) => {
106
- const f = _e(K || je[A]);
106
+ const f = De(K || je[A]);
107
107
  process.env.NODE_ENV !== "production" && Ue({
108
108
  id: r,
109
109
  label: d,
110
110
  inputFileButtonProps: T
111
111
  });
112
112
  const {
113
- label: X = A === "en" ? `Choose File${_ ? "s" : ""}` : `Datei${_ ? "en" : ""} auswählen`,
114
- variant: N = "outline",
113
+ label: X = A === "en" ? `Choose File${D ? "s" : ""}` : `Datei${D ? "en" : ""} auswählen`,
114
+ variant: L = "outline",
115
115
  ...Y
116
- } = T || {}, [C, E] = U([]), g = me(null), [m, L] = U(!1), ee = z * 1024 * 1024, k = `${r}-label`, R = `${r}-feedback`, B = `${r}-hint`, q = b ? ` ${B}` : "", te = Z(w), P = Z(G), ne = D(t.root, u), ie = D(t.dropzone, {
116
+ } = T || {}, [C, E] = U([]), g = be(null), [b, k] = U(!1), ee = S * 1024 * 1024, y = `${r}-label`, R = `${r}-feedback`, B = `${r}-hint`, q = m ? ` ${B}` : "", te = Z(z), P = Z(G), ne = _(t.root, u), ie = _(t.dropzone, {
117
117
  [t.dropzoneDisabled]: o,
118
118
  [t.dropzoneInvalid]: h,
119
- [t.dropzoneIsDragging]: m
120
- }), oe = D(t.label, {
119
+ [t.dropzoneIsDragging]: b
120
+ }), oe = _(t.label, {
121
121
  // hide label only visually to keep them available for assistive technologies
122
122
  [t.labelHidden]: te,
123
123
  [t.labelDisabled]: o
124
- }), se = D(t.browseButton, {
125
- [t.browseButtonIsDragging]: m && N === "outline",
126
- [t.browseButtonIsDraggingFilled]: m && N === "filled"
127
- }), re = D(t.browseButtonDropzone, {
128
- [t.browseButtonDropzoneIsDragging]: m
129
- }), ae = [h && S && R].filter(Boolean).join(" ") || void 0, le = (e) => {
124
+ }), se = _(t.browseButton, {
125
+ [t.browseButtonIsDragging]: b && L === "outline",
126
+ [t.browseButtonIsDraggingFilled]: b && L === "filled"
127
+ }), re = _(t.browseButtonDropzone, {
128
+ [t.browseButtonDropzoneIsDragging]: b
129
+ }), ae = [h && N && R].filter(Boolean).join(" ") || void 0, le = (e) => {
130
130
  g.current = e, typeof I == "function" ? I(e) : I && (I.current = e);
131
131
  }, x = (e) => {
132
132
  if (!e)
133
133
  return;
134
134
  const n = [];
135
135
  for (const s of e)
136
- if (i && !Me(s, i) && (s.feedback = `${f("feedbackFileType")}: ${s.type}.`), s.size > ee && (s.feedback = `${f("feedbackFileSize")} ${z} MB.`), n.push(s), !_ && n.length > 0)
136
+ if (i && !Me(s, i) && (s.feedback = `${f("feedbackFileType")}: ${s.type}.`), s.size > ee && (s.feedback = `${f("feedbackFileSize")} ${S} MB.`), n.push(s), !D && n.length > 0)
137
137
  break;
138
138
  n.length > 0 && (E(() => {
139
139
  const s = [...n], M = s.map(({
@@ -148,12 +148,12 @@ import '../assets/InputFile.Dqjz53mb.css';const ze = "ds-input-file_root_1pm2y_1
148
148
  var n;
149
149
  o || ((n = g.current) == null || n.click(), e.stopPropagation());
150
150
  }, O = (e) => {
151
- e.preventDefault(), m || L(!0);
151
+ e.preventDefault(), b || k(!0);
152
152
  }, W = (e) => {
153
- e.preventDefault(), m && L(!1);
154
- }, V = be((e) => {
155
- e.preventDefault(), !o && (L(!1), x(e.dataTransfer.files));
156
- }, [_, i, z, o]), de = (e) => {
153
+ e.preventDefault(), b && k(!1);
154
+ }, V = me((e) => {
155
+ e.preventDefault(), !o && (k(!1), x(e.dataTransfer.files));
156
+ }, [D, i, S, o]), de = (e) => {
157
157
  x(e.target.files), g != null && g.current && (g.current.value = "");
158
158
  }, ue = (e) => {
159
159
  E((n) => {
@@ -161,33 +161,33 @@ import '../assets/InputFile.Dqjz53mb.css';const ze = "ds-input-file_root_1pm2y_1
161
161
  return p == null || p(s), s;
162
162
  });
163
163
  }, ce = (e) => {
164
- const n = De();
164
+ const n = _e();
165
165
  n && (n.innerText = e, setTimeout(() => {
166
166
  n.innerText = "";
167
167
  }, 350));
168
- }, j = () => /* @__PURE__ */ a(Ie, { ...Y, className: c ? re : se, type: "button", variant: N, size: c ? "small" : "medium", disabled: o, iconName: c ? void 0 : "upload", onClick: H, "aria-describedby": ae, "aria-invalid": h, children: X });
169
- return /* @__PURE__ */ y("div", { className: ne, children: [
170
- /* @__PURE__ */ y("label", { className: oe, id: k, htmlFor: r, children: [
168
+ }, j = () => /* @__PURE__ */ a(Ie, { ...Y, className: c ? re : se, type: "button", variant: L, size: c ? "small" : "medium", disabled: o, iconName: c ? void 0 : "upload", onClick: H, "aria-describedby": ae, "aria-invalid": h, children: X });
169
+ return /* @__PURE__ */ v("div", { className: ne, children: [
170
+ /* @__PURE__ */ v("label", { className: oe, id: y, htmlFor: r, children: [
171
171
  d,
172
- $ && /* @__PURE__ */ y(fe, { children: [
172
+ $ && /* @__PURE__ */ v(fe, { children: [
173
173
  /* @__PURE__ */ a(he, {}),
174
174
  /* @__PURE__ */ a("span", { className: t.requiredSrInfo, children: f("required") })
175
175
  ] })
176
176
  ] }),
177
- b && (P || !c) && /* @__PURE__ */ a("div", { className: t.hint, id: B, children: b }),
178
- h && S && /* @__PURE__ */ a(we, { className: t.feedback, message: S, type: "invalid", id: R }),
177
+ m && (P || !c) && /* @__PURE__ */ a("div", { className: t.hint, id: B, children: m }),
178
+ h && N && /* @__PURE__ */ a(ze, { className: t.feedback, message: N, variant: "error", id: R }),
179
179
  !c && /* @__PURE__ */ a(
180
180
  "div",
181
181
  {
182
182
  onDragOver: O,
183
183
  onDragLeave: W,
184
184
  onDrop: V,
185
- "aria-labelledby": `${k}${q}`,
185
+ "aria-labelledby": `${y}${q}`,
186
186
  "aria-disabled": o,
187
187
  children: j()
188
188
  }
189
189
  ),
190
- c && /* @__PURE__ */ y(
190
+ c && /* @__PURE__ */ v(
191
191
  "div",
192
192
  {
193
193
  className: ie,
@@ -195,18 +195,18 @@ import '../assets/InputFile.Dqjz53mb.css';const ze = "ds-input-file_root_1pm2y_1
195
195
  onDragOver: O,
196
196
  onDragLeave: W,
197
197
  onDrop: V,
198
- "aria-labelledby": `${k}${q}`,
198
+ "aria-labelledby": `${y}${q}`,
199
199
  "aria-disabled": o,
200
200
  children: [
201
- /* @__PURE__ */ a(ve, { name: "upload", className: t.uploadIcon, size: "x-large" }),
201
+ /* @__PURE__ */ a(we, { name: "upload", className: t.uploadIcon, size: "x-large" }),
202
202
  /* @__PURE__ */ a("p", { id: "file-upload-instructions", className: t.instructions, children: f("dragAndDropInstructions") }),
203
203
  j(),
204
- b && !P && /* @__PURE__ */ a("div", { className: t.hintDropZone, id: B, children: b })
204
+ m && !P && /* @__PURE__ */ a("div", { className: t.hintDropZone, id: B, children: m })
205
205
  ]
206
206
  }
207
207
  ),
208
- /* @__PURE__ */ a("input", { ...Q, type: "file", className: t.input, id: r, ref: le, accept: i, multiple: _, "aria-hidden": "true", required: $, disabled: o, onChange: de }),
209
- C.length > 0 && J && /* @__PURE__ */ a(ye, { files: C, onRemoveFile: ue, fileListItemRemoveButtonProps: l, t: f })
208
+ /* @__PURE__ */ a("input", { ...Q, type: "file", className: t.input, id: r, ref: le, accept: i, multiple: D, "aria-hidden": "true", required: $, disabled: o, onChange: de }),
209
+ C.length > 0 && J && /* @__PURE__ */ a(ve, { files: C, onRemoveFile: ue, fileListItemRemoveButtonProps: l, t: f })
210
210
  ] });
211
211
  });
212
212
  Ze.displayName = "DSInputFile";
@@ -0,0 +1,136 @@
1
+ "use client";
2
+ import { jsx as q, jsxs as rt } from "react/jsx-runtime";
3
+ import { d as ht } from "./index.CgTHIF3K.js";
4
+ import { c as J } from "./index.CEyLAtio.js";
5
+ import { forwardRef as vt, useState as yt, useRef as Pt } from "react";
6
+ import { u as St } from "./useBreakpoint.CMOR9ZOB.js";
7
+ import { Asterisk as Dt } from "../asterisk.CR60hx8S.js";
8
+ import { D as Bt } from "./Button.B7xF1E19.js";
9
+ import { D as It } from "./SystemFeedback.B9f67mjJ.js";
10
+ import { g as ct } from "./helpers.BbWkXTr3.js";
11
+ import '../assets/InputPassword.124xVOiO.css';const gt = "ds-input-password_input_15c4p_1", kt = "ds-input-password_input--small_15c4p_9", Nt = "ds-input-password_input--invalid_15c4p_121", xt = "ds-input-password_input--has-action-button_15c4p_182", Ct = "ds-input-password_root_15c4p_218", Ht = "ds-input-password_hint_15c4p_227", Lt = "ds-input-password_label_15c4p_227", $t = "ds-input-password_wrapper_15c4p_231", qt = "ds-input-password_action-button_15c4p_237", At = "ds-input-password_label--hidden_15c4p_255", Tt = "ds-input-password_label--disabled_15c4p_268", Et = "ds-input-password_feedback_15c4p_288", s = {
12
+ input: gt,
13
+ inputSmall: kt,
14
+ inputInvalid: Nt,
15
+ inputHasActionButton: xt,
16
+ root: Ct,
17
+ hint: Ht,
18
+ label: Lt,
19
+ wrapper: $t,
20
+ actionButton: qt,
21
+ labelHidden: At,
22
+ labelDisabled: Tt,
23
+ feedback: Et
24
+ }, Vt = ({
25
+ id: d,
26
+ label: l
27
+ }) => {
28
+ if (!d)
29
+ throw new Error(ct("DSInputPassword", 'A unique "id" prop is required. Please add a unique "id" prop to the DSInputPassword component.'));
30
+ if (!l)
31
+ throw new Error(ct("DSInputPassword", `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}.`));
32
+ }, Ft = vt((d, l) => {
33
+ const t = ht.c(82);
34
+ let c, n, e, r, p, a, B, I, g, k, N, x, C, u;
35
+ t[0] !== d ? ({
36
+ id: e,
37
+ label: r,
38
+ autoComplete: B,
39
+ className: c,
40
+ disabled: I,
41
+ hint: n,
42
+ hideLabel: g,
43
+ invalid: k,
44
+ readonly: N,
45
+ required: x,
46
+ togglePasswordVisibilityButtonProps: u,
47
+ size: C,
48
+ systemFeedback: a,
49
+ ...p
50
+ } = d, t[0] = d, t[1] = c, t[2] = n, t[3] = e, t[4] = r, t[5] = p, t[6] = a, t[7] = B, t[8] = I, t[9] = g, t[10] = k, t[11] = N, t[12] = x, t[13] = C, t[14] = u) : (c = t[1], n = t[2], e = t[3], r = t[4], p = t[5], a = t[6], B = t[7], I = t[8], g = t[9], k = t[10], N = t[11], x = t[12], C = t[13], u = t[14]);
51
+ const K = B === void 0 ? "new-password" : B, i = I === void 0 ? !1 : I, pt = g === void 0 ? !1 : g, o = k === void 0 ? !1 : k, A = N === void 0 ? !1 : N, b = x === void 0 ? !1 : x, H = C === void 0 ? "medium" : C;
52
+ process.env.NODE_ENV !== "production" && Vt({
53
+ id: e,
54
+ label: r
55
+ });
56
+ let f;
57
+ t[15] !== u ? (f = u || {}, t[15] = u, t[16] = f) : f = t[16];
58
+ let m, L, $;
59
+ t[17] !== f ? ({
60
+ hidePasswordText: $,
61
+ showPasswordText: L,
62
+ ...m
63
+ } = f, t[17] = f, t[18] = m, t[19] = L, t[20] = $) : (m = t[18], L = t[19], $ = t[20]);
64
+ const ut = $ === void 0 ? "Hide password" : $, bt = L === void 0 ? "Show password" : L, [Q, ft] = yt(!1), T = `${e}-label`, w = `${e}-feedback`, E = `${e}-hint`, mt = n ? ` ${E}` : "";
65
+ let V;
66
+ t[21] !== o || t[22] !== a || t[23] !== w ? (V = [o && a && w].filter(Boolean).join(" ") || void 0, t[21] = o, t[22] = a, t[23] = w, t[24] = V) : V = t[24];
67
+ const U = V, W = St(pt);
68
+ let F;
69
+ t[25] !== c ? (F = J(s.root, c), t[25] = c, t[26] = F) : F = t[26];
70
+ const X = F, Y = H === "small";
71
+ let R;
72
+ t[27] !== o || t[28] !== Y ? (R = J(s.input, {
73
+ [s.inputSmall]: Y,
74
+ [s.inputInvalid]: o,
75
+ [s.inputHasActionButton]: !0
76
+ }), t[27] = o, t[28] = Y, t[29] = R) : R = t[29];
77
+ const Z = R;
78
+ let j;
79
+ t[30] !== i || t[31] !== W ? (j = J(s.label, {
80
+ [s.labelHidden]: W,
81
+ [s.labelDisabled]: i
82
+ }), t[30] = i, t[31] = W, t[32] = j) : j = t[32];
83
+ const tt = j, et = H === "small";
84
+ let z;
85
+ t[33] !== et ? (z = J(s.actionButton, {
86
+ [s.actionButtonSmall]: et
87
+ }), t[33] = et, t[34] = z) : z = t[34];
88
+ const st = z, wt = Pt(null);
89
+ let O;
90
+ t[35] !== l ? (O = (dt) => {
91
+ wt.current = dt, typeof l == "function" ? l(dt) : l && (l.current = dt);
92
+ }, t[35] = l, t[36] = O) : O = t[36];
93
+ const ot = O;
94
+ let M;
95
+ t[37] === Symbol.for("react.memo_cache_sentinel") ? (M = () => {
96
+ ft(Rt);
97
+ }, t[37] = M) : M = t[37];
98
+ const _t = M;
99
+ let _;
100
+ t[38] !== b ? (_ = b && /* @__PURE__ */ q(Dt, {}), t[38] = b, t[39] = _) : _ = t[39];
101
+ let h;
102
+ t[40] !== e || t[41] !== T || t[42] !== r || t[43] !== tt || t[44] !== _ ? (h = /* @__PURE__ */ rt("label", { className: tt, id: T, htmlFor: e, children: [
103
+ r,
104
+ _
105
+ ] }), t[40] = e, t[41] = T, t[42] = r, t[43] = tt, t[44] = _, t[45] = h) : h = t[45];
106
+ let v;
107
+ t[46] !== n || t[47] !== E ? (v = n && /* @__PURE__ */ q("div", { className: s.hint, id: E, children: n }), t[46] = n, t[47] = E, t[48] = v) : v = t[48];
108
+ let y;
109
+ t[49] !== o || t[50] !== a || t[51] !== w ? (y = o && a && /* @__PURE__ */ q(It, { className: s.feedback, message: a, variant: "error", id: w }), t[49] = o, t[50] = a, t[51] = w, t[52] = y) : y = t[52];
110
+ const at = `${T}${mt}`, it = Q ? "text" : "password";
111
+ let P;
112
+ t[53] !== U || t[54] !== K || t[55] !== i || t[56] !== ot || t[57] !== e || t[58] !== Z || t[59] !== o || t[60] !== A || t[61] !== b || t[62] !== p || t[63] !== at || t[64] !== it ? (P = /* @__PURE__ */ q("input", { className: Z, id: e, ...p, ref: ot, "aria-labelledby": at, "aria-describedby": U, "aria-invalid": o, "aria-disabled": A, readOnly: A, required: b, disabled: i, autoComplete: K, type: it }), t[53] = U, t[54] = K, t[55] = i, t[56] = ot, t[57] = e, t[58] = Z, t[59] = o, t[60] = A, t[61] = b, t[62] = p, t[63] = at, t[64] = it, t[65] = P) : P = t[65];
113
+ const lt = Q ? "eye-closed" : "eye", nt = Q ? ut : bt;
114
+ let S;
115
+ t[66] !== st || t[67] !== i || t[68] !== m || t[69] !== H || t[70] !== lt || t[71] !== nt ? (S = /* @__PURE__ */ q(Bt, { ...m, hideLabel: !0, theme: "light", iconName: lt, variant: "ghost", className: st, size: H, onClick: _t, type: "button", disabled: i, children: nt }), t[66] = st, t[67] = i, t[68] = m, t[69] = H, t[70] = lt, t[71] = nt, t[72] = S) : S = t[72];
116
+ let D;
117
+ t[73] !== P || t[74] !== S ? (D = /* @__PURE__ */ rt("div", { className: s.wrapper, children: [
118
+ P,
119
+ S
120
+ ] }), t[73] = P, t[74] = S, t[75] = D) : D = t[75];
121
+ let G;
122
+ return t[76] !== X || t[77] !== h || t[78] !== v || t[79] !== y || t[80] !== D ? (G = /* @__PURE__ */ rt("div", { className: X, children: [
123
+ h,
124
+ v,
125
+ y,
126
+ D
127
+ ] }), t[76] = X, t[77] = h, t[78] = v, t[79] = y, t[80] = D, t[81] = G) : G = t[81], G;
128
+ });
129
+ Ft.displayName = "DSInputPassword";
130
+ function Rt(d) {
131
+ return !d;
132
+ }
133
+ export {
134
+ Ft as D,
135
+ Vt as v
136
+ };