@stihl-design-system/components 1.0.0-RC.28 → 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.
- package/{accordion.B9X4Vlig.js → accordion.DkwtJy--.js} +2 -2
- package/{actionbutton.7x4F7a0U.js → actionbutton.DHt1AL7U.js} +2 -2
- package/{actionlink.CV0n19ik.js → actionlink.BML1jenE.js} +2 -2
- package/assets/Accordion.BJb4TOG0.css +1 -0
- package/assets/CustomReactSelect.D0b1Hg1T.css +1 -0
- package/assets/InputFile.CCQxsulT.css +1 -0
- package/assets/InputPassword.124xVOiO.css +1 -0
- package/assets/InputSearch.Bkg-1urJ.css +1 -0
- package/assets/InputStepper.Dth4qZN_.css +1 -0
- package/assets/Select.CYACicZ3.css +1 -0
- package/assets/{systemfeedback.BX2zCzSL.css → SystemFeedback.RcrPepSZ.css} +1 -1
- package/assets/Textarea.BXWhXpXx.css +1 -0
- package/assets/input.ONbL-_C1.css +1 -0
- package/assets/radio.CgpGvYc-.css +1 -0
- package/{banner.CgQdUb_c.js → banner.B2YO054K.js} +1 -1
- package/{breadcrumb.x78HJy5P.js → breadcrumb.BS-S3zUI.js} +3 -3
- package/{button.BD_04tIG.js → button.CPilCCUI.js} +3 -3
- package/{buttonround.BT3OfowK.js → buttonround.C426mO4d.js} +2 -2
- package/{checkbox.BktYXQmJ.js → checkbox.BtlUvs0z.js} +3 -3
- package/{checkboxgroup.Bylq97Q9.js → checkboxgroup.C5NgyyQF.js} +2 -2
- package/{chip.BKtNbt4y.js → chip.tVIG1ysH.js} +2 -2
- package/{chipgroup.BWpqUzXF.js → chipgroup.CjIK0Z0x.js} +1 -1
- package/chunks/Accordion.C5V5IcM-.js +170 -0
- package/chunks/{ActionButton.BlhiiU3l.js → ActionButton.CzaWZGPt.js} +1 -1
- package/chunks/{ActionLink.BvFL6rgb.js → ActionLink.BlhqDEtq.js} +1 -1
- package/chunks/{Breadcrumb.B7g30dIO.js → Breadcrumb.BGzwzvh8.js} +2 -2
- package/chunks/{Button.CC0qEsuR.js → Button.B7xF1E19.js} +2 -2
- package/chunks/{Checkbox.BIQAKBVy.js → Checkbox.DxV7-F5W.js} +14 -14
- package/chunks/{CheckboxGroup.D4MQD0i0.js → CheckboxGroup.Dy_6tiGk.js} +2 -2
- package/chunks/{Chip.DifLxHH7.js → Chip.31UfPwQF.js} +1 -1
- package/chunks/{CustomReactSelect.D9B928kB.js → CustomReactSelect.iE5iTdez.js} +348 -346
- package/chunks/{Dialog.BuEEJ199.js → Dialog.B_2pKRnd.js} +1 -1
- package/chunks/{Drawer.BXUGmpJI.js → Drawer.HFlBTcqN.js} +1 -1
- package/chunks/{Fieldset.BgZMYAH-.js → Fieldset.CjIfmN_5.js} +12 -12
- package/chunks/Icon.DGTYCv63.js +231 -0
- package/chunks/InputFile.DvOatDzg.js +220 -0
- package/chunks/InputPassword.DC2POUc1.js +136 -0
- package/chunks/InputSearch.B0aCuPRZ.js +174 -0
- package/chunks/InputStepper.B_ZjgY_f.js +263 -0
- package/chunks/{LinkButton.DmXVHeyZ.js → LinkButton.DdTspmJz.js} +1 -1
- package/chunks/{NavigationTabList.IQM074Vb.js → NavigationTabList.dYFYTmWv.js} +1 -1
- package/chunks/{NavigationTabs.BofhX8bD.js → NavigationTabs.ClpVGcl0.js} +1 -1
- package/chunks/{Notification.B-3dPVUE.js → Notification.DIdIhGTQ.js} +2 -2
- package/chunks/{RadioGroup.CRP8_vsg.js → RadioGroup.peTeMK45.js} +2 -2
- package/chunks/Select.BDHLJ2ma.js +162 -0
- package/chunks/{Slider.D9MHH4cZ.js → Slider.kyVr7BLk.js} +1 -1
- package/chunks/SystemFeedback.B9f67mjJ.js +38 -0
- package/chunks/{Tabs.Bl4K3Kjn.js → Tabs.CkVL8Jw8.js} +1 -1
- package/chunks/Textarea.ORkJUx-S.js +163 -0
- package/chunks/{Toast.BHz0vlGz.js → Toast.DHo4pLH3.js} +2 -2
- package/chunks/caret-down.CupuwAF6.js +10 -0
- package/chunks/caret-right.DKtu4PQe.js +10 -0
- package/chunks/collapse.Dvv3mgkv.js +10 -0
- package/{combobox.pMk_oggm.js → combobox.Bk2ycofh.js} +1 -1
- package/components/Accordion/Accordion.utils.d.ts +3 -1
- package/components/ActionButton/ActionButton.d.ts +5 -5
- package/components/ActionLink/ActionLink.d.ts +5 -5
- package/components/Header/Header.d.ts +1 -1
- package/components/Radio/Radio.d.ts +0 -6
- package/components/SystemFeedback/SystemFeedback.d.ts +13 -5
- package/components/SystemFeedback/SystemFeedback.utils.d.ts +4 -7
- package/components/TopBar/TopBar.d.ts +1 -1
- package/customreactselect.Hnch9LGg.js +14 -0
- package/{dialog.CGsUCqhR.js → dialog.7sWoqGwL.js} +2 -2
- package/{drawer.BcAo4TO0.js → drawer.DsF4KIPn.js} +2 -2
- package/{fieldset.BR9fZReW.js → fieldset.DUFUMcT-.js} +2 -2
- package/{filelist.Cj9U-Jx8.js → filelist.nunJKxkv.js} +7 -7
- package/{flag.BHaAfp6B.js → flag.D_iN8iD6.js} +1 -1
- package/{floatingactionbutton.DSZXUHB_.js → floatingactionbutton.DOH2k0gv.js} +2 -2
- package/{icon.DwfGhFCd.js → icon.vMQcEBnH.js} +1 -1
- package/index.d.ts +2 -0
- package/index.es.js +175 -170
- package/input.BKHOY118.js +203 -0
- package/{inputfile.CB-QTIDn.js → inputfile.DK8759wV.js} +7 -6
- package/inputpassword.rV_ZZw5F.js +13 -0
- package/{inputsearch.DUgTkPWm.js → inputsearch.CmhakTpa.js} +5 -4
- package/{inputstepper.DKmlBa0Y.js → inputstepper.5olvh4tk.js} +5 -4
- package/{link.DGuYGfh2.js → link.D_FjTyoZ.js} +2 -2
- package/{linkbutton.B3q0B_yb.js → linkbutton.D2C4vykc.js} +2 -2
- package/{navigationtablist.CS9yEGdP.js → navigationtablist.CVjh1k-b.js} +2 -2
- package/{navigationtabs.DQ1kE-h4.js → navigationtabs.BGfi9AG2.js} +2 -2
- package/{notification.D8BDaU5x.js → notification.Dn-FZWEL.js} +3 -3
- package/{optioncheckbox.CEEPAq0u.js → optioncheckbox.D97W3zeW.js} +1 -1
- package/package.json +1 -1
- package/partials/index.js +28 -22
- package/partials/lib/partials.d.ts +1 -1
- package/radio.7_N_alaS.js +126 -0
- package/{radiogroup.Bk36A24U.js → radiogroup.J8WpEEo8.js} +3 -3
- package/{scroller.CCA6kFR6.js → scroller.BiRLQg__.js} +1 -1
- package/{inputpassword.B_A0JDkz.js → select.DIzGPVx3.js} +5 -4
- package/{skiptocontent.D1UkPmhD.js → skiptocontent._F-d8y5b.js} +1 -1
- package/{slider.BicJfJzc.js → slider.DuJK0RdB.js} +2 -2
- package/{spinner.CeGt8DxU.js → spinner.Dht6FspZ.js} +1 -1
- package/{switch.CtULjgZq.js → switch.B37S4vfP.js} +2 -2
- package/systemfeedback.C_2PhwKe.js +10 -0
- package/{tablist.Dzwe0_J4.js → tablist.g_Nwu6GA.js} +3 -3
- package/{tabs.yudjJk9d.js → tabs.oh9-wHPp.js} +2 -2
- package/{textarea.BynOgkpo.js → textarea.dQ12-oYB.js} +4 -3
- package/{toast.Bhpwj1NF.js → toast.sMNbfKxi.js} +3 -3
- package/{toastmanager.BHk65ynQ.js → toastmanager.CVamaS5T.js} +1 -1
- package/types/icon-types.d.ts +1 -1
- package/assets/Accordion.BHWEZCmu.css +0 -1
- package/assets/CustomReactSelect.Dq5Hoqv2.css +0 -1
- package/assets/InputFile.BVgHILAZ.css +0 -1
- package/assets/InputPassword.CBpkWGy7.css +0 -1
- package/assets/InputSearch.CnPJYH8L.css +0 -1
- package/assets/InputStepper.U2h9Kd0t.css +0 -1
- package/assets/Select.U7xsC0o1.css +0 -1
- package/assets/Textarea.C4IEEOFR.css +0 -1
- package/assets/input.CuIHvnD5.css +0 -1
- package/assets/radio.ipbv7OMF.css +0 -1
- package/chunks/Accordion.BvHroAyn.js +0 -154
- package/chunks/Icon.C0161Glk.js +0 -231
- package/chunks/InputFile.rC7NJYrU.js +0 -218
- package/chunks/InputPassword.5-r36K86.js +0 -132
- package/chunks/InputSearch.D4Q99_nR.js +0 -170
- package/chunks/InputStepper.EsPAGCFJ.js +0 -259
- package/chunks/Select.lveq1iBY.js +0 -158
- package/chunks/Textarea.BRfh8ykm.js +0 -161
- package/customreactselect.-DGMZMFu.js +0 -13
- package/input.DAneVu7p.js +0 -199
- package/radio.z-Mi3J6t.js +0 -134
- package/select.4wUa3vMT.js +0 -12
- package/systemfeedback.CLQCbTF6.js +0 -44
|
@@ -3,7 +3,7 @@ import { jsx as F, jsxs as Z } from "react/jsx-runtime";
|
|
|
3
3
|
import { d as ee } from "./index.CgTHIF3K.js";
|
|
4
4
|
import { c as W } from "./index.CEyLAtio.js";
|
|
5
5
|
import { useRef as Q, useState as oe, useEffect as U } from "react";
|
|
6
|
-
import { D as te } from "./Button.
|
|
6
|
+
import { D as te } from "./Button.B7xF1E19.js";
|
|
7
7
|
import { g as le } from "./helpers.BbWkXTr3.js";
|
|
8
8
|
import '../assets/Dialog.CGAg7bnN.css';const se = "ds-dialog_root_kvopn_5", ne = "ds-dialog_content-wrapper_kvopn_166", re = "ds-dialog_content-wrapper--no-footer_kvopn_172", ce = "ds-dialog_close-button_kvopn_180", ae = "ds-dialog_header_kvopn_193", ie = "ds-dialog_content_kvopn_166", de = "ds-dialog_footer_kvopn_195", fe = "ds-dialog_header--scrollable_kvopn_216", pe = "ds-dialog_header--close-button_kvopn_225", ue = "ds-dialog_content--no-footer_kvopn_238", he = "ds-dialog_footer--scrollable_kvopn_245", t = {
|
|
9
9
|
root: se,
|
|
@@ -3,7 +3,7 @@ import { jsx as x, jsxs as oe } from "react/jsx-runtime";
|
|
|
3
3
|
import { d as re } from "./index.CgTHIF3K.js";
|
|
4
4
|
import { c as F } from "./index.CEyLAtio.js";
|
|
5
5
|
import { useRef as X, useState as se, useEffect as Y } from "react";
|
|
6
|
-
import { D as ne } from "./Button.
|
|
6
|
+
import { D as ne } from "./Button.B7xF1E19.js";
|
|
7
7
|
import { g as le } from "./helpers.BbWkXTr3.js";
|
|
8
8
|
import '../assets/Drawer.VOvWQoEr.css';const ce = "ds-drawer_root_4nbv0_10", ae = "ds-drawer_root--end_4nbv0_68", ie = "ds-drawer_content-wrapper_4nbv0_169", de = "ds-drawer_content-wrapper--no-footer_4nbv0_175", fe = "ds-drawer_close-button_4nbv0_178", _e = "ds-drawer_header_4nbv0_191", pe = "ds-drawer_content_4nbv0_169", ue = "ds-drawer_footer_4nbv0_193", be = "ds-drawer_header--scrollable_4nbv0_214", he = "ds-drawer_header--close-button_4nbv0_223", me = "ds-drawer_content--no-footer_4nbv0_237", ve = "ds-drawer_footer--scrollable_4nbv0_244", o = {
|
|
9
9
|
root: ce,
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { jsxs as p, jsx as i, Fragment as j } from "react/jsx-runtime";
|
|
3
3
|
import { c as m } from "./index.CEyLAtio.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import { Asterisk as
|
|
5
|
+
import { Asterisk as y } from "../asterisk.CR60hx8S.js";
|
|
6
6
|
import { DSHeading as M } from "../heading.BXFBZhKv.js";
|
|
7
|
-
import {
|
|
7
|
+
import { D as x } from "./SystemFeedback.B9f67mjJ.js";
|
|
8
8
|
import { g as D } from "./helpers.BbWkXTr3.js";
|
|
9
9
|
import "./index.CgTHIF3K.js";
|
|
10
10
|
import '../assets/Fieldset.CW9dBvAo.css';const E = "ds-fieldset_root_dtiam_1", q = "ds-fieldset_child-wrapper_dtiam_98", C = "ds-fieldset_legend_dtiam_105", P = "ds-fieldset_legend--utility--m_dtiam_109", T = "ds-fieldset_description_dtiam_121", U = "ds-fieldset_description--small_dtiam_135", W = "ds-fieldset_system-feedback_dtiam_139", s = {
|
|
@@ -34,37 +34,37 @@ import '../assets/Fieldset.CW9dBvAo.css';const E = "ds-fieldset_root_dtiam_1", q
|
|
|
34
34
|
id: n,
|
|
35
35
|
invalid: c = !1,
|
|
36
36
|
required: f = !1,
|
|
37
|
-
systemFeedback:
|
|
37
|
+
systemFeedback: o,
|
|
38
38
|
...u
|
|
39
39
|
}) => {
|
|
40
40
|
process.env.NODE_ENV !== "production" && z({
|
|
41
41
|
description: t,
|
|
42
42
|
id: n,
|
|
43
43
|
legend: e,
|
|
44
|
-
systemFeedback:
|
|
44
|
+
systemFeedback: o
|
|
45
45
|
});
|
|
46
|
-
let
|
|
46
|
+
let d, g, _;
|
|
47
47
|
const r = typeof e == "object" && e !== void 0;
|
|
48
48
|
r && ({
|
|
49
|
-
headingSize:
|
|
49
|
+
headingSize: d,
|
|
50
50
|
headingTag: g,
|
|
51
51
|
headingText: _
|
|
52
52
|
} = e);
|
|
53
|
-
const h = `${n}-feedback`,
|
|
53
|
+
const h = `${n}-feedback`, S = `${n}-description`, F = [c && o && h, t && S].filter(Boolean).join(" ") || void 0, N = !r || d === "small" || d === "small-uppercase", v = m(s.root, l), k = m(s.legend, {
|
|
54
54
|
[s.legendUtilityM]: !r
|
|
55
55
|
}), w = m(s.description, {
|
|
56
56
|
[s.descriptionSmall]: N
|
|
57
57
|
});
|
|
58
58
|
return /* @__PURE__ */ p("fieldset", { className: v, disabled: b, ...u, "aria-invalid": c, "aria-describedby": F, children: [
|
|
59
|
-
/* @__PURE__ */ i("legend", { className: k, children: r ? /* @__PURE__ */ p(M, { tag: g, size:
|
|
59
|
+
/* @__PURE__ */ i("legend", { className: k, children: r ? /* @__PURE__ */ p(M, { tag: g, size: d, children: [
|
|
60
60
|
_,
|
|
61
|
-
f && /* @__PURE__ */ i(
|
|
61
|
+
f && /* @__PURE__ */ i(y, {})
|
|
62
62
|
] }) : /* @__PURE__ */ p(j, { children: [
|
|
63
63
|
e,
|
|
64
|
-
f && /* @__PURE__ */ i(
|
|
64
|
+
f && /* @__PURE__ */ i(y, {})
|
|
65
65
|
] }) }),
|
|
66
|
-
t && /* @__PURE__ */ i("span", { id:
|
|
67
|
-
c &&
|
|
66
|
+
t && /* @__PURE__ */ i("span", { id: S, className: w, children: t }),
|
|
67
|
+
c && o && /* @__PURE__ */ i(x, { id: h, variant: "error", message: o, className: s.systemFeedback }),
|
|
68
68
|
/* @__PURE__ */ i("div", { className: s.childWrapper, children: a })
|
|
69
69
|
] });
|
|
70
70
|
};
|
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
"use client";
|
|
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
|
+
import { u as Z } from "./useBreakpoint.CMOR9ZOB.js";
|
|
7
|
+
import "./index.CgTHIF3K.js";
|
|
8
|
+
import { g as _e } from "./AriaLiveRegions.utils.Cb327d_2.js";
|
|
9
|
+
import { Asterisk as he } from "../asterisk.CR60hx8S.js";
|
|
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
|
+
labelHidden: Be,
|
|
22
|
+
labelDisabled: Fe,
|
|
23
|
+
feedback: Te,
|
|
24
|
+
dropzone: Ae,
|
|
25
|
+
dropzoneDisabled: $e,
|
|
26
|
+
dropzoneInvalid: Ce,
|
|
27
|
+
dropzoneIsDragging: Ee,
|
|
28
|
+
hintDropZone: Re,
|
|
29
|
+
uploadIcon: qe,
|
|
30
|
+
browseButtonDropzoneIsDragging: Pe,
|
|
31
|
+
instructions: xe,
|
|
32
|
+
input: He,
|
|
33
|
+
requiredSrInfo: Oe
|
|
34
|
+
}, We = {
|
|
35
|
+
dragAndDropInstructions: "Drag and drop files here or",
|
|
36
|
+
feedbackFileSize: "File too large. Maximum file size is",
|
|
37
|
+
feedbackFileType: "File type not allowed",
|
|
38
|
+
// {0} is the file name
|
|
39
|
+
fileListRemoveSelectionButtonLabel: "Remove {0} from selected files",
|
|
40
|
+
fileListPreviewAltText: "Preview of",
|
|
41
|
+
filesSelectedHint: "The following files are selected",
|
|
42
|
+
required: "required"
|
|
43
|
+
}, Ve = {
|
|
44
|
+
dragAndDropInstructions: "Dateien hier hin ziehen oder",
|
|
45
|
+
feedbackFileSize: "Datei zu groß. Maximale Dateigröße ist",
|
|
46
|
+
feedbackFileType: "Dateityp nicht zugelassen",
|
|
47
|
+
// {0} is the file name
|
|
48
|
+
fileListRemoveSelectionButtonLabel: "Datei {0} aus der Auswahl entfernen",
|
|
49
|
+
fileListPreviewAltText: "Vorschau von",
|
|
50
|
+
filesSelectedHint: "Die folgenden Dateien sind ausgewählt",
|
|
51
|
+
required: "erforderlich"
|
|
52
|
+
}, je = {
|
|
53
|
+
en: We,
|
|
54
|
+
de: Ve
|
|
55
|
+
}, Me = (r, d) => {
|
|
56
|
+
const i = d.split(",").map((l) => l.trim().toLowerCase()).filter(Boolean), u = r.name.toLowerCase(), o = r.type.toLowerCase();
|
|
57
|
+
return i.some((l) => {
|
|
58
|
+
if (l.startsWith("."))
|
|
59
|
+
return u.endsWith(l);
|
|
60
|
+
if (l.endsWith("/*")) {
|
|
61
|
+
const [z] = o.split("/");
|
|
62
|
+
return z === l.slice(0, -2);
|
|
63
|
+
}
|
|
64
|
+
return o === l;
|
|
65
|
+
});
|
|
66
|
+
}, Ue = ({
|
|
67
|
+
id: r,
|
|
68
|
+
label: d,
|
|
69
|
+
inputFileButtonProps: i
|
|
70
|
+
}) => {
|
|
71
|
+
var u;
|
|
72
|
+
if (!r)
|
|
73
|
+
throw new Error(w("DSInputFile", 'A unique "id" prop is required. Please add a unique "id" prop to the DSInputFile component.'));
|
|
74
|
+
if (!d)
|
|
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
|
+
if (i && ((u = i.label) == null ? void 0 : u.trim()) === "")
|
|
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
|
+
if (i && i.variant && i.variant !== "outline" && i.variant !== "filled")
|
|
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
|
+
}, Ze = ge(({
|
|
81
|
+
id: r,
|
|
82
|
+
label: d,
|
|
83
|
+
accept: i,
|
|
84
|
+
className: u,
|
|
85
|
+
disabled: o = !1,
|
|
86
|
+
fileListItemRemoveButtonProps: l,
|
|
87
|
+
hideLabel: z = !1,
|
|
88
|
+
hint: m,
|
|
89
|
+
inputFileButtonProps: T,
|
|
90
|
+
invalid: h = !1,
|
|
91
|
+
isHintOutsideDropzone: G = {
|
|
92
|
+
base: !0,
|
|
93
|
+
m: !1
|
|
94
|
+
},
|
|
95
|
+
lang: A = "en",
|
|
96
|
+
maxSizeInMb: S = 7,
|
|
97
|
+
multiple: D = !1,
|
|
98
|
+
required: $ = !1,
|
|
99
|
+
showFileList: J = !0,
|
|
100
|
+
showDropzone: c = !1,
|
|
101
|
+
systemFeedback: N,
|
|
102
|
+
translations: K,
|
|
103
|
+
onFilesSelect: p,
|
|
104
|
+
...Q
|
|
105
|
+
}, I) => {
|
|
106
|
+
const f = De(K || je[A]);
|
|
107
|
+
process.env.NODE_ENV !== "production" && Ue({
|
|
108
|
+
id: r,
|
|
109
|
+
label: d,
|
|
110
|
+
inputFileButtonProps: T
|
|
111
|
+
});
|
|
112
|
+
const {
|
|
113
|
+
label: X = A === "en" ? `Choose File${D ? "s" : ""}` : `Datei${D ? "en" : ""} auswählen`,
|
|
114
|
+
variant: L = "outline",
|
|
115
|
+
...Y
|
|
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
|
+
[t.dropzoneDisabled]: o,
|
|
118
|
+
[t.dropzoneInvalid]: h,
|
|
119
|
+
[t.dropzoneIsDragging]: b
|
|
120
|
+
}), oe = _(t.label, {
|
|
121
|
+
// hide label only visually to keep them available for assistive technologies
|
|
122
|
+
[t.labelHidden]: te,
|
|
123
|
+
[t.labelDisabled]: o
|
|
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
|
+
g.current = e, typeof I == "function" ? I(e) : I && (I.current = e);
|
|
131
|
+
}, x = (e) => {
|
|
132
|
+
if (!e)
|
|
133
|
+
return;
|
|
134
|
+
const n = [];
|
|
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")} ${S} MB.`), n.push(s), !D && n.length > 0)
|
|
137
|
+
break;
|
|
138
|
+
n.length > 0 && (E(() => {
|
|
139
|
+
const s = [...n], M = s.map(({
|
|
140
|
+
name: F,
|
|
141
|
+
feedback: pe = ""
|
|
142
|
+
}) => `${F} ${pe}`).join(", ");
|
|
143
|
+
return setTimeout(() => {
|
|
144
|
+
ce(`${f("filesSelectedHint")}: ${M}.`);
|
|
145
|
+
}, 1e3), s;
|
|
146
|
+
}), p == null || p(n));
|
|
147
|
+
}, H = (e) => {
|
|
148
|
+
var n;
|
|
149
|
+
o || ((n = g.current) == null || n.click(), e.stopPropagation());
|
|
150
|
+
}, O = (e) => {
|
|
151
|
+
e.preventDefault(), b || k(!0);
|
|
152
|
+
}, W = (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
|
+
x(e.target.files), g != null && g.current && (g.current.value = "");
|
|
158
|
+
}, ue = (e) => {
|
|
159
|
+
E((n) => {
|
|
160
|
+
const s = n.filter((M, F) => F !== e);
|
|
161
|
+
return p == null || p(s), s;
|
|
162
|
+
});
|
|
163
|
+
}, ce = (e) => {
|
|
164
|
+
const n = _e();
|
|
165
|
+
n && (n.innerText = e, setTimeout(() => {
|
|
166
|
+
n.innerText = "";
|
|
167
|
+
}, 350));
|
|
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
|
+
d,
|
|
172
|
+
$ && /* @__PURE__ */ v(fe, { children: [
|
|
173
|
+
/* @__PURE__ */ a(he, {}),
|
|
174
|
+
/* @__PURE__ */ a("span", { className: t.requiredSrInfo, children: f("required") })
|
|
175
|
+
] })
|
|
176
|
+
] }),
|
|
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
|
+
!c && /* @__PURE__ */ a(
|
|
180
|
+
"div",
|
|
181
|
+
{
|
|
182
|
+
onDragOver: O,
|
|
183
|
+
onDragLeave: W,
|
|
184
|
+
onDrop: V,
|
|
185
|
+
"aria-labelledby": `${y}${q}`,
|
|
186
|
+
"aria-disabled": o,
|
|
187
|
+
children: j()
|
|
188
|
+
}
|
|
189
|
+
),
|
|
190
|
+
c && /* @__PURE__ */ v(
|
|
191
|
+
"div",
|
|
192
|
+
{
|
|
193
|
+
className: ie,
|
|
194
|
+
onClick: (e) => H(e),
|
|
195
|
+
onDragOver: O,
|
|
196
|
+
onDragLeave: W,
|
|
197
|
+
onDrop: V,
|
|
198
|
+
"aria-labelledby": `${y}${q}`,
|
|
199
|
+
"aria-disabled": o,
|
|
200
|
+
children: [
|
|
201
|
+
/* @__PURE__ */ a(we, { name: "upload", className: t.uploadIcon, size: "x-large" }),
|
|
202
|
+
/* @__PURE__ */ a("p", { id: "file-upload-instructions", className: t.instructions, children: f("dragAndDropInstructions") }),
|
|
203
|
+
j(),
|
|
204
|
+
m && !P && /* @__PURE__ */ a("div", { className: t.hintDropZone, id: B, children: m })
|
|
205
|
+
]
|
|
206
|
+
}
|
|
207
|
+
),
|
|
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
|
+
] });
|
|
211
|
+
});
|
|
212
|
+
Ze.displayName = "DSInputFile";
|
|
213
|
+
export {
|
|
214
|
+
Ze as D,
|
|
215
|
+
We as a,
|
|
216
|
+
Ve as b,
|
|
217
|
+
je as c,
|
|
218
|
+
Me as f,
|
|
219
|
+
Ue as v
|
|
220
|
+
};
|