@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
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _, jsxs as we } from "react/jsx-runtime";
|
|
3
|
+
import { d as xe } from "./index.CgTHIF3K.js";
|
|
4
|
+
import { c as ve } from "./index.CEyLAtio.js";
|
|
5
|
+
import { forwardRef as Be, useRef as Fe, useState as Ie, useEffect as He } from "react";
|
|
6
|
+
import { u as Re } from "./useBreakpoint.CMOR9ZOB.js";
|
|
7
|
+
import { Asterisk as je } from "../asterisk.CR60hx8S.js";
|
|
8
|
+
import { D as We } from "./Icon.DGTYCv63.js";
|
|
9
|
+
import { D as ze } from "./SystemFeedback.B9f67mjJ.js";
|
|
10
|
+
import { g as me, r as Me } from "./helpers.BbWkXTr3.js";
|
|
11
|
+
import '../assets/Select.CYACicZ3.css';const Te = "ds-select_root_d8v6g_1", Oe = "ds-select_hint_d8v6g_10", Ze = "ds-select_label_d8v6g_10", Je = "ds-select_label--hidden_d8v6g_100", Ke = "ds-select_label--disabled_d8v6g_113", Qe = "ds-select_feedback_d8v6g_133", Ue = "ds-select_select-wrapper_d8v6g_138", Xe = "ds-select_select_d8v6g_138", Ye = "ds-select_select--small_d8v6g_152", Ge = "ds-select_select--invalid_d8v6g_264", el = "ds-select_select--placeholder_d8v6g_379", ll = "ds-select_chevron_d8v6g_418", tl = "ds-select_chevron--small_d8v6g_422", sl = "ds-select_chevron--disabled_d8v6g_425", t = {
|
|
12
|
+
root: Te,
|
|
13
|
+
hint: Oe,
|
|
14
|
+
label: Ze,
|
|
15
|
+
labelHidden: Je,
|
|
16
|
+
labelDisabled: Ke,
|
|
17
|
+
feedback: Qe,
|
|
18
|
+
selectWrapper: Ue,
|
|
19
|
+
select: Xe,
|
|
20
|
+
selectSmall: Ye,
|
|
21
|
+
selectInvalid: Ge,
|
|
22
|
+
selectPlaceholder: el,
|
|
23
|
+
chevron: ll,
|
|
24
|
+
chevronSmall: tl,
|
|
25
|
+
chevronDisabled: sl
|
|
26
|
+
}, ul = ["medium", "small"], al = ({
|
|
27
|
+
id: r,
|
|
28
|
+
label: s,
|
|
29
|
+
options: e
|
|
30
|
+
}) => {
|
|
31
|
+
if (!r)
|
|
32
|
+
throw new Error(me("DSSelect", 'A unique "id" prop is required. Please add a unique "id" prop to the DSSelect component.'));
|
|
33
|
+
if (!s)
|
|
34
|
+
throw new Error(me("DSSelect", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSSelect component. If you don't want to display a label, set hideLabel={true}.`));
|
|
35
|
+
if (Array.isArray(e)) {
|
|
36
|
+
if (e.length === 0)
|
|
37
|
+
throw new Error(me("DSSelect", "The options array must not be empty."));
|
|
38
|
+
} else throw new Error(me("DSSelect", Me("options", "DSSelect")));
|
|
39
|
+
}, ol = (r, s, e) => r === "" || s !== void 0 && s !== "" ? !1 : !(e !== void 0 && e !== ""), cl = Be((r, s) => {
|
|
40
|
+
const e = xe.c(127);
|
|
41
|
+
let i, n, d, l, f, b, S, D, a, Z, J, K, Q, U, X, c;
|
|
42
|
+
e[0] !== r ? ({
|
|
43
|
+
id: l,
|
|
44
|
+
label: f,
|
|
45
|
+
options: S,
|
|
46
|
+
className: i,
|
|
47
|
+
defaultValue: n,
|
|
48
|
+
disabled: Z,
|
|
49
|
+
hideLabel: J,
|
|
50
|
+
hint: d,
|
|
51
|
+
invalid: K,
|
|
52
|
+
placeholder: Q,
|
|
53
|
+
required: U,
|
|
54
|
+
size: X,
|
|
55
|
+
systemFeedback: a,
|
|
56
|
+
value: c,
|
|
57
|
+
onChange: b,
|
|
58
|
+
...D
|
|
59
|
+
} = r, e[0] = r, e[1] = i, e[2] = n, e[3] = d, e[4] = l, e[5] = f, e[6] = b, e[7] = S, e[8] = D, e[9] = a, e[10] = Z, e[11] = J, e[12] = K, e[13] = Q, e[14] = U, e[15] = X, e[16] = c) : (i = e[1], n = e[2], d = e[3], l = e[4], f = e[5], b = e[6], S = e[7], D = e[8], a = e[9], Z = e[10], J = e[11], K = e[12], Q = e[13], U = e[14], X = e[15], c = e[16]);
|
|
60
|
+
const h = Z === void 0 ? !1 : Z, Pe = J === void 0 ? !1 : J, o = K === void 0 ? !1 : K, g = Q === void 0 ? "Select" : Q, y = U === void 0 ? !1 : U, le = X === void 0 ? "medium" : X;
|
|
61
|
+
process.env.NODE_ENV !== "production" && al({
|
|
62
|
+
id: l,
|
|
63
|
+
label: f,
|
|
64
|
+
options: S
|
|
65
|
+
});
|
|
66
|
+
const qe = Fe(null), [pe, Ne] = Ie(c);
|
|
67
|
+
let te;
|
|
68
|
+
e[17] !== n || e[18] !== g || e[19] !== c ? (te = ol(g, n, c), e[17] = n, e[18] = g, e[19] = c, e[20] = te) : te = e[20];
|
|
69
|
+
const [Y, Ce] = Ie(te);
|
|
70
|
+
let se, ae;
|
|
71
|
+
e[21] !== c ? (se = () => {
|
|
72
|
+
Ne(c);
|
|
73
|
+
}, ae = [c], e[21] = c, e[22] = se, e[23] = ae) : (se = e[22], ae = e[23]), He(se, ae);
|
|
74
|
+
let oe;
|
|
75
|
+
e[24] !== s ? (oe = (ee) => {
|
|
76
|
+
qe.current = ee, typeof s == "function" ? s(ee) : s && (s.current = ee);
|
|
77
|
+
}, e[24] = s, e[25] = oe) : oe = e[25];
|
|
78
|
+
const ue = oe, G = Re(Pe), w = `${l}-label`, v = `${l}-feedback`, N = `${l}-hint`, _e = d ? ` ${N}` : "";
|
|
79
|
+
let ce;
|
|
80
|
+
e[26] !== o || e[27] !== a || e[28] !== v ? (ce = [o && a && v].filter(Boolean).join(" ") || void 0, e[26] = o, e[27] = a, e[28] = v, e[29] = ce) : ce = e[29];
|
|
81
|
+
const Se = ce;
|
|
82
|
+
let k, E, I, P, q, C, $, L, V, A, x, B, F, H, R, j, m, p, u;
|
|
83
|
+
if (e[30] !== Se || e[31] !== _e || e[32] !== i || e[33] !== n || e[34] !== h || e[35] !== ue || e[36] !== G || e[37] !== d || e[38] !== N || e[39] !== l || e[40] !== o || e[41] !== Y || e[42] !== f || e[43] !== b || e[44] !== S || e[45] !== g || e[46] !== y || e[47] !== D || e[48] !== w || e[49] !== pe || e[50] !== le || e[51] !== a || e[52] !== v) {
|
|
84
|
+
const ee = (he) => [g && /* @__PURE__ */ _("option", { value: "", children: g }, `${l}-hidden-option-disabled-placeholder`), ...he.map((O) => {
|
|
85
|
+
if ("options" in O) {
|
|
86
|
+
const {
|
|
87
|
+
label: Ee,
|
|
88
|
+
options: Ae
|
|
89
|
+
} = O;
|
|
90
|
+
return /* @__PURE__ */ _("optgroup", { label: Ee, children: Ae.map(ke) }, Ee);
|
|
91
|
+
} else
|
|
92
|
+
return ke(O);
|
|
93
|
+
})], ke = il;
|
|
94
|
+
let de;
|
|
95
|
+
e[72] !== i ? (de = ve(t.root, i), e[72] = i, e[73] = de) : de = e[73];
|
|
96
|
+
const $e = de, ge = le === "small";
|
|
97
|
+
let re;
|
|
98
|
+
e[74] !== o || e[75] !== Y || e[76] !== ge ? (re = ve(t.select, {
|
|
99
|
+
[t.selectSmall]: ge,
|
|
100
|
+
[t.selectInvalid]: o,
|
|
101
|
+
[t.selectPlaceholder]: Y
|
|
102
|
+
}), e[74] = o, e[75] = Y, e[76] = ge, e[77] = re) : re = e[77];
|
|
103
|
+
const Le = re;
|
|
104
|
+
let ne;
|
|
105
|
+
e[78] !== h || e[79] !== G ? (ne = ve(t.label, {
|
|
106
|
+
[t.labelHidden]: G,
|
|
107
|
+
[t.labelDisabled]: h
|
|
108
|
+
}), e[78] = h, e[79] = G, e[80] = ne) : ne = e[80];
|
|
109
|
+
const De = ne, ye = le === "small";
|
|
110
|
+
let fe;
|
|
111
|
+
e[81] !== h || e[82] !== ye ? (fe = ve(t.chevron, {
|
|
112
|
+
[t.chevronSmall]: ye,
|
|
113
|
+
[t.chevronDisabled]: h
|
|
114
|
+
}), e[81] = h, e[82] = ye, e[83] = fe) : fe = e[83], k = fe;
|
|
115
|
+
let be;
|
|
116
|
+
e[84] !== b ? (be = (he) => {
|
|
117
|
+
const {
|
|
118
|
+
value: O
|
|
119
|
+
} = he.target;
|
|
120
|
+
Ce(O === ""), Ne(O), b && b(he);
|
|
121
|
+
}, e[84] = b, e[85] = be) : be = e[85];
|
|
122
|
+
const Ve = be;
|
|
123
|
+
j = $e;
|
|
124
|
+
let T;
|
|
125
|
+
e[86] !== y ? (T = y && /* @__PURE__ */ _(je, {}), e[86] = y, e[87] = T) : T = e[87], e[88] !== l || e[89] !== f || e[90] !== De || e[91] !== w || e[92] !== T ? (m = /* @__PURE__ */ we("label", { className: De, id: w, htmlFor: l, children: [
|
|
126
|
+
f,
|
|
127
|
+
T
|
|
128
|
+
] }), e[88] = l, e[89] = f, e[90] = De, e[91] = w, e[92] = T, e[93] = m) : m = e[93], e[94] !== d || e[95] !== N ? (p = d && /* @__PURE__ */ _("div", { className: t.hint, id: N, children: d }), e[94] = d, e[95] = N, e[96] = p) : p = e[96], e[97] !== o || e[98] !== a || e[99] !== v ? (u = o && a && /* @__PURE__ */ _(ze, { className: t.feedback, message: a, variant: "error", id: v }), e[97] = o, e[98] = a, e[99] = v, e[100] = u) : u = e[100], R = t.selectWrapper, E = D, I = l, P = ue, q = Le, C = `${w}${_e}`, $ = Se, L = o, V = n, A = pe, x = h, B = y, F = Ve, H = ee(S), e[30] = Se, e[31] = _e, e[32] = i, e[33] = n, e[34] = h, e[35] = ue, e[36] = G, e[37] = d, e[38] = N, e[39] = l, e[40] = o, e[41] = Y, e[42] = f, e[43] = b, e[44] = S, e[45] = g, e[46] = y, e[47] = D, e[48] = w, e[49] = pe, e[50] = le, e[51] = a, e[52] = v, e[53] = k, e[54] = E, e[55] = I, e[56] = P, e[57] = q, e[58] = C, e[59] = $, e[60] = L, e[61] = V, e[62] = A, e[63] = x, e[64] = B, e[65] = F, e[66] = H, e[67] = R, e[68] = j, e[69] = m, e[70] = p, e[71] = u;
|
|
129
|
+
} else
|
|
130
|
+
k = e[53], E = e[54], I = e[55], P = e[56], q = e[57], C = e[58], $ = e[59], L = e[60], V = e[61], A = e[62], x = e[63], B = e[64], F = e[65], H = e[66], R = e[67], j = e[68], m = e[69], p = e[70], u = e[71];
|
|
131
|
+
let W;
|
|
132
|
+
e[101] !== E || e[102] !== I || e[103] !== P || e[104] !== q || e[105] !== C || e[106] !== $ || e[107] !== L || e[108] !== V || e[109] !== A || e[110] !== x || e[111] !== B || e[112] !== F || e[113] !== H ? (W = /* @__PURE__ */ _("select", { ...E, id: I, ref: P, className: q, "aria-labelledby": C, "aria-describedby": $, "aria-invalid": L, defaultValue: V, value: A, disabled: x, required: B, onChange: F, children: H }), e[101] = E, e[102] = I, e[103] = P, e[104] = q, e[105] = C, e[106] = $, e[107] = L, e[108] = V, e[109] = A, e[110] = x, e[111] = B, e[112] = F, e[113] = H, e[114] = W) : W = e[114];
|
|
133
|
+
let z;
|
|
134
|
+
e[115] !== k ? (z = /* @__PURE__ */ _(We, { name: "chevron-down", className: k, "aria-hidden": "true" }), e[115] = k, e[116] = z) : z = e[116];
|
|
135
|
+
let M;
|
|
136
|
+
e[117] !== R || e[118] !== W || e[119] !== z ? (M = /* @__PURE__ */ we("div", { className: R, children: [
|
|
137
|
+
W,
|
|
138
|
+
z
|
|
139
|
+
] }), e[117] = R, e[118] = W, e[119] = z, e[120] = M) : M = e[120];
|
|
140
|
+
let ie;
|
|
141
|
+
return e[121] !== j || e[122] !== m || e[123] !== p || e[124] !== u || e[125] !== M ? (ie = /* @__PURE__ */ we("div", { className: j, children: [
|
|
142
|
+
m,
|
|
143
|
+
p,
|
|
144
|
+
u,
|
|
145
|
+
M
|
|
146
|
+
] }), e[121] = j, e[122] = m, e[123] = p, e[124] = u, e[125] = M, e[126] = ie) : ie = e[126], ie;
|
|
147
|
+
});
|
|
148
|
+
cl.displayName = "DSSelect";
|
|
149
|
+
function il(r) {
|
|
150
|
+
const {
|
|
151
|
+
label: s,
|
|
152
|
+
value: e,
|
|
153
|
+
isDisabled: i
|
|
154
|
+
} = r;
|
|
155
|
+
return /* @__PURE__ */ _("option", { value: e, disabled: i, children: s }, e);
|
|
156
|
+
}
|
|
157
|
+
export {
|
|
158
|
+
cl as D,
|
|
159
|
+
ul as S,
|
|
160
|
+
ol as g,
|
|
161
|
+
al as v
|
|
162
|
+
};
|
|
@@ -4,7 +4,7 @@ import { d as rt } from "./index.CgTHIF3K.js";
|
|
|
4
4
|
import { c as T } from "./index.CEyLAtio.js";
|
|
5
5
|
import { forwardRef as ot, useState as Xe, useRef as ct } from "react";
|
|
6
6
|
import { u as dt } from "./useBreakpoint.CMOR9ZOB.js";
|
|
7
|
-
import { DSInput as pt } from "../input.
|
|
7
|
+
import { DSInput as pt } from "../input.BKHOY118.js";
|
|
8
8
|
import { g as Je } from "./helpers.BbWkXTr3.js";
|
|
9
9
|
import '../assets/Slider.DzwSjDPV.css';const ut = "ds-slider_root_1p0nf_1", mt = "ds-slider_hint_1p0nf_13", bt = "ds-slider_label_1p0nf_13", ft = "ds-slider_number-input_1p0nf_16", _t = "ds-slider_label-hint-input-wrapper_1p0nf_20", ht = "ds-slider_label--hidden_1p0nf_40", Tt = "ds-slider_label--disabled_1p0nf_53", xt = "ds-slider_number-input--small_1p0nf_82", vt = "ds-slider_min-max-label-wrapper_1p0nf_87", gt = "ds-slider_min-max-label-wrapper--disabled_1p0nf_101", kt = "ds-slider_min-label_1p0nf_106", Nt = "ds-slider_max-label_1p0nf_110", St = "ds-slider_slider-wrapper_1p0nf_114", yt = "ds-slider_slider_1p0nf_114", Dt = "ds-slider_value-tooltip_1p0nf_138", It = "ds-slider_proxy-thumb_1p0nf_142", Mt = "ds-slider_proxy-thumb--disabled_1p0nf_209", Lt = "ds-slider_custom-track_1p0nf_238", Vt = "ds-slider_custom-track--progress_1p0nf_243", wt = "ds-slider_custom-track--runnable_1p0nf_255", Ct = "ds-slider_custom-track--disabled_1p0nf_269", Wt = "ds-slider_tick-wrapper_1p0nf_289", $t = "ds-slider_tick_1p0nf_289", Pt = "ds-slider_value-tooltip--visible_1p0nf_361", At = "ds-slider_value-tooltip--disabled_1p0nf_364", a = {
|
|
10
10
|
root: ut,
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as f, jsx as S } from "react/jsx-runtime";
|
|
3
|
+
import { d as _ } from "./index.CgTHIF3K.js";
|
|
4
|
+
import { c as p } from "./index.CEyLAtio.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import { D as E } from "./Icon.DGTYCv63.js";
|
|
7
|
+
import '../assets/SystemFeedback.RcrPepSZ.css';const x = "ds-system-feedback_root_1lr41_1", D = {
|
|
8
|
+
root: x
|
|
9
|
+
}, h = ["success", "error", "warning"], k = {
|
|
10
|
+
success: "circle-check-colored",
|
|
11
|
+
error: "diamond-exclamationmark-colored",
|
|
12
|
+
warning: "triangle-exclamationmark-colored"
|
|
13
|
+
}, y = (n) => {
|
|
14
|
+
const e = _.c(16);
|
|
15
|
+
let s, t, o, r, c;
|
|
16
|
+
e[0] !== n ? ({
|
|
17
|
+
id: t,
|
|
18
|
+
message: o,
|
|
19
|
+
variant: c,
|
|
20
|
+
className: s,
|
|
21
|
+
...r
|
|
22
|
+
} = n, e[0] = n, e[1] = s, e[2] = t, e[3] = o, e[4] = r, e[5] = c) : (s = e[1], t = e[2], o = e[3], r = e[4], c = e[5]);
|
|
23
|
+
let l;
|
|
24
|
+
e[6] !== s ? (l = p(D.root, s), e[6] = s, e[7] = l) : l = e[7];
|
|
25
|
+
const m = l, d = k[c];
|
|
26
|
+
let a;
|
|
27
|
+
e[8] !== d ? (a = /* @__PURE__ */ S(E, { name: d, "aria-hidden": "true" }), e[8] = d, e[9] = a) : a = e[9];
|
|
28
|
+
let i;
|
|
29
|
+
return e[10] !== t || e[11] !== o || e[12] !== r || e[13] !== m || e[14] !== a ? (i = /* @__PURE__ */ f("div", { id: t, className: m, ...r, children: [
|
|
30
|
+
a,
|
|
31
|
+
o
|
|
32
|
+
] }), e[10] = t, e[11] = o, e[12] = r, e[13] = m, e[14] = a, e[15] = i) : i = e[15], i;
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
y as D,
|
|
36
|
+
h as S,
|
|
37
|
+
k as a
|
|
38
|
+
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as N, jsxs as L } from "react/jsx-runtime";
|
|
3
3
|
import { d as M } from "./index.CgTHIF3K.js";
|
|
4
4
|
import { useState as $ } from "react";
|
|
5
|
-
import { TabList as j } from "../tablist.
|
|
5
|
+
import { TabList as j } from "../tablist.g_Nwu6GA.js";
|
|
6
6
|
import { TabPane as B } from "../tabpane.CB-eudyw.js";
|
|
7
7
|
import { g as C } from "./TabPane.utils.DG16Y2uD.js";
|
|
8
8
|
import { g, r as O } from "./helpers.BbWkXTr3.js";
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as d, jsx as m, Fragment as le } from "react/jsx-runtime";
|
|
3
|
+
import { c as z } from "./index.CEyLAtio.js";
|
|
4
|
+
import { forwardRef as ie, useState as i, useRef as ce, useEffect as p } from "react";
|
|
5
|
+
import { g as B, p as q } from "./helpers.BbWkXTr3.js";
|
|
6
|
+
import { u as de } from "./useBreakpoint.CMOR9ZOB.js";
|
|
7
|
+
import "./index.CgTHIF3K.js";
|
|
8
|
+
import { Asterisk as ue } from "../asterisk.CR60hx8S.js";
|
|
9
|
+
import { D as fe } from "./SystemFeedback.B9f67mjJ.js";
|
|
10
|
+
import '../assets/Textarea.BXWhXpXx.css';const he = "ds-textarea_textarea_hjz5f_1", be = "ds-textarea_textarea--small_hjz5f_9", _e = "ds-textarea_textarea--invalid_hjz5f_121", me = "ds-textarea_textarea--resize-auto_hjz5f_145", pe = "ds-textarea_root_hjz5f_155", xe = "ds-textarea_hint_hjz5f_164", ve = "ds-textarea_label_hjz5f_164", Ce = "ds-textarea_label--hidden_hjz5f_272", Se = "ds-textarea_label--disabled_hjz5f_285", je = "ds-textarea_feedback_hjz5f_305", ze = "ds-textarea_char-count_hjz5f_310", Ae = "ds-textarea_char-count-announcer_hjz5f_326", a = {
|
|
11
|
+
textarea: he,
|
|
12
|
+
textareaSmall: be,
|
|
13
|
+
textareaInvalid: _e,
|
|
14
|
+
textareaResizeAuto: me,
|
|
15
|
+
root: pe,
|
|
16
|
+
hint: xe,
|
|
17
|
+
label: ve,
|
|
18
|
+
labelHidden: Ce,
|
|
19
|
+
labelDisabled: Se,
|
|
20
|
+
feedback: je,
|
|
21
|
+
charCount: ze,
|
|
22
|
+
charCountAnnouncer: Ae
|
|
23
|
+
}, ke = ["medium", "small"], De = ({
|
|
24
|
+
id: r,
|
|
25
|
+
label: u
|
|
26
|
+
}) => {
|
|
27
|
+
if (!r)
|
|
28
|
+
throw new Error(B("DSTextarea", 'A unique "id" prop is required. Please add a unique "id" prop to the DSTextarea component.'));
|
|
29
|
+
if (!u)
|
|
30
|
+
throw new Error(B("DSTextarea", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSTextarea component. If you don't want to display a label, set hideLabel={true}.`));
|
|
31
|
+
}, Ie = ie(({
|
|
32
|
+
id: r,
|
|
33
|
+
label: u,
|
|
34
|
+
charsLimitText: M = "Character limit reached",
|
|
35
|
+
charsRemainingText: O = "Characters remaining:",
|
|
36
|
+
className: F,
|
|
37
|
+
defaultValue: X,
|
|
38
|
+
disabled: A = !1,
|
|
39
|
+
hint: x,
|
|
40
|
+
hideLabel: Z = !1,
|
|
41
|
+
invalid: s = !1,
|
|
42
|
+
maxLength: e,
|
|
43
|
+
readonly: D = !1,
|
|
44
|
+
required: I = !1,
|
|
45
|
+
resize: f = "vertical",
|
|
46
|
+
size: G = "medium",
|
|
47
|
+
systemFeedback: n,
|
|
48
|
+
value: v,
|
|
49
|
+
wrapperClassName: J,
|
|
50
|
+
onChange: T,
|
|
51
|
+
onInput: w,
|
|
52
|
+
...K
|
|
53
|
+
}, h) => {
|
|
54
|
+
process.env.NODE_ENV !== "production" && De({
|
|
55
|
+
id: r,
|
|
56
|
+
label: u
|
|
57
|
+
});
|
|
58
|
+
const [Q, y] = i(X || ""), [l, R] = i(0), [U, N] = i(0), [W, E] = i("off"), [g, C] = i(n), [S, j] = i(s), $ = v !== void 0, b = $ ? v : Q, o = ce(null), Y = (t) => {
|
|
59
|
+
o.current = t, typeof h == "function" ? h(t) : h && (h.current = t);
|
|
60
|
+
}, L = de(Z);
|
|
61
|
+
p(() => {
|
|
62
|
+
if (!e || e <= 0)
|
|
63
|
+
return;
|
|
64
|
+
l >= e * 0.8 ? E("polite") : E("off");
|
|
65
|
+
const t = setTimeout(() => {
|
|
66
|
+
N(e - l || 0);
|
|
67
|
+
}, 1e3);
|
|
68
|
+
return () => clearTimeout(t);
|
|
69
|
+
}, [l]), p(() => {
|
|
70
|
+
y(b || ""), c(), e && e > 0 && (R(b.toString().length || 0), N(e - b.toString().length || 0));
|
|
71
|
+
}, [v]), p(() => {
|
|
72
|
+
s && n ? (C(n), j(s)) : !s && e && e >= 0 && l >= e ? (j(!0), C(M)) : (C(n), j(s));
|
|
73
|
+
}, [s, S, n, l]), p(() => {
|
|
74
|
+
if (f === "auto")
|
|
75
|
+
return c(), window.addEventListener("resize", c), () => window.removeEventListener("resize", c);
|
|
76
|
+
}, [f, o.current]);
|
|
77
|
+
const ee = z(a.root, J), te = z(a.textarea, F, {
|
|
78
|
+
// small textarea
|
|
79
|
+
[a.textareaSmall]: G === "small",
|
|
80
|
+
// invalid state
|
|
81
|
+
[a.textareaInvalid]: S,
|
|
82
|
+
// resize handling
|
|
83
|
+
[a.textareaResizeAuto]: f === "auto"
|
|
84
|
+
}), ae = z(a.label, {
|
|
85
|
+
// hide label only visually to keep them available for assistive technologies
|
|
86
|
+
[a.labelHidden]: L,
|
|
87
|
+
[a.labelDisabled]: A
|
|
88
|
+
}), k = `${r}-label`, H = `${r}-feedback`, V = `${r}-hint`, P = `${r}-char-count-announcer`, re = x ? ` ${V}` : "", c = () => {
|
|
89
|
+
if (o.current && f === "auto") {
|
|
90
|
+
o.current.style.height = "auto";
|
|
91
|
+
const t = q(o.current.scrollHeight), _ = q(2);
|
|
92
|
+
o.current.style.height = `${// We need to add 2px (border-top & border-bottom) to the scrollHeight to prevent the textarea
|
|
93
|
+
// from jumping as soon as the user starts typing.
|
|
94
|
+
t + _}rem`;
|
|
95
|
+
}
|
|
96
|
+
}, se = () => {
|
|
97
|
+
const t = [];
|
|
98
|
+
return e && e > 0 && t.push(P), s && n && t.push(H), t.length > 0 ? t.join(" ") : void 0;
|
|
99
|
+
}, oe = (t) => {
|
|
100
|
+
var _;
|
|
101
|
+
w && w(t), e && e > 0 && R(((_ = o.current) == null ? void 0 : _.value.length) || 0), c();
|
|
102
|
+
}, ne = (t) => {
|
|
103
|
+
T && T(t), $ || y(t.target.value);
|
|
104
|
+
};
|
|
105
|
+
return /* @__PURE__ */ d("div", { className: ee, children: [
|
|
106
|
+
/* @__PURE__ */ d("label", { className: ae, id: k, htmlFor: r, children: [
|
|
107
|
+
u,
|
|
108
|
+
I && /* @__PURE__ */ m(ue, {})
|
|
109
|
+
] }),
|
|
110
|
+
x && /* @__PURE__ */ m("div", { className: a.hint, id: V, children: x }),
|
|
111
|
+
S && g && /* @__PURE__ */ m(fe, { className: a.feedback, message: g, variant: "error", id: H }),
|
|
112
|
+
/* @__PURE__ */ m(
|
|
113
|
+
"textarea",
|
|
114
|
+
{
|
|
115
|
+
className: te,
|
|
116
|
+
id: r,
|
|
117
|
+
...K,
|
|
118
|
+
ref: Y,
|
|
119
|
+
"aria-labelledby": `${k}${re}`,
|
|
120
|
+
"aria-describedby": se(),
|
|
121
|
+
"aria-invalid": s,
|
|
122
|
+
"aria-disabled": D,
|
|
123
|
+
maxLength: e,
|
|
124
|
+
readOnly: D,
|
|
125
|
+
required: I,
|
|
126
|
+
disabled: A,
|
|
127
|
+
value: b,
|
|
128
|
+
defaultValue: void 0,
|
|
129
|
+
rows: void 0,
|
|
130
|
+
cols: void 0,
|
|
131
|
+
onChange: ne,
|
|
132
|
+
onInput: oe
|
|
133
|
+
}
|
|
134
|
+
),
|
|
135
|
+
e !== void 0 && e > 0 && /* @__PURE__ */ d(le, { children: [
|
|
136
|
+
/* @__PURE__ */ d("div", { className: a.charCount, "aria-hidden": "true", children: [
|
|
137
|
+
l,
|
|
138
|
+
"/",
|
|
139
|
+
e
|
|
140
|
+
] }),
|
|
141
|
+
/* @__PURE__ */ d(
|
|
142
|
+
"div",
|
|
143
|
+
{
|
|
144
|
+
className: a.charCountAnnouncer,
|
|
145
|
+
id: P,
|
|
146
|
+
"aria-live": W,
|
|
147
|
+
"aria-atomic": "true",
|
|
148
|
+
children: [
|
|
149
|
+
O,
|
|
150
|
+
" ",
|
|
151
|
+
U
|
|
152
|
+
]
|
|
153
|
+
}
|
|
154
|
+
)
|
|
155
|
+
] })
|
|
156
|
+
] });
|
|
157
|
+
});
|
|
158
|
+
Ie.displayName = "DSTextarea";
|
|
159
|
+
export {
|
|
160
|
+
Ie as D,
|
|
161
|
+
ke as T,
|
|
162
|
+
De as v
|
|
163
|
+
};
|
|
@@ -3,8 +3,8 @@ import { jsx as C, jsxs as y } from "react/jsx-runtime";
|
|
|
3
3
|
import { d as E } from "./index.CgTHIF3K.js";
|
|
4
4
|
import { c as j } from "./index.CEyLAtio.js";
|
|
5
5
|
import { forwardRef as L } from "react";
|
|
6
|
-
import { D as M } from "./Button.
|
|
7
|
-
import { D as O } from "./Icon.
|
|
6
|
+
import { D as M } from "./Button.B7xF1E19.js";
|
|
7
|
+
import { D as O } from "./Icon.DGTYCv63.js";
|
|
8
8
|
import '../assets/Toast.CJ1zhDIT.css';const P = "ds-toast_root_gamkt_5", z = "ds-toast_root--closing_gamkt_19", A = "ds-toast_root--success_gamkt_54", R = "ds-toast_root--info_gamkt_58", $ = "ds-toast_root--warning_gamkt_62", q = "ds-toast_content_gamkt_67", F = "ds-toast_content--hide-icon_gamkt_74", G = "ds-toast_icon_gamkt_78", J = "ds-toast_message_gamkt_82", s = {
|
|
9
9
|
root: P,
|
|
10
10
|
rootClosing: z,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as e from "react";
|
|
3
|
+
const r = ({
|
|
4
|
+
title: t,
|
|
5
|
+
titleId: a,
|
|
6
|
+
...l
|
|
7
|
+
}) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "#252525", viewBox: "0 0 16 16", focusable: "false", width: "100%", height: "100%", "aria-labelledby": a, ...l }, t ? /* @__PURE__ */ e.createElement("title", { id: a }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "M8 12 3.67 6h8.66z" }));
|
|
8
|
+
export {
|
|
9
|
+
r as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as e from "react";
|
|
3
|
+
const r = ({
|
|
4
|
+
title: t,
|
|
5
|
+
titleId: a,
|
|
6
|
+
...l
|
|
7
|
+
}) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "#252525", viewBox: "0 0 16 16", focusable: "false", width: "100%", height: "100%", "aria-labelledby": a, ...l }, t ? /* @__PURE__ */ e.createElement("title", { id: a }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "m12 8-6 4.33V3.67z" }));
|
|
8
|
+
export {
|
|
9
|
+
r as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as e from "react";
|
|
3
|
+
const o = ({
|
|
4
|
+
title: l,
|
|
5
|
+
titleId: t,
|
|
6
|
+
...a
|
|
7
|
+
}) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "#252525", viewBox: "0 0 16 16", focusable: "false", width: "100%", height: "100%", "aria-labelledby": t, ...a }, l ? /* @__PURE__ */ e.createElement("title", { id: t }, l) : null, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", d: "M16 14H0V2h16zm-9-2h7V4H7zm-5 0h3V4H2z", clipRule: "evenodd" }));
|
|
8
|
+
export {
|
|
9
|
+
o as default
|
|
10
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as h } from "react/jsx-runtime";
|
|
3
3
|
import { d as q } from "./chunks/index.CgTHIF3K.js";
|
|
4
|
-
import { v as L, c as R } from "./chunks/CustomReactSelect.
|
|
4
|
+
import { v as L, c as R } from "./chunks/CustomReactSelect.iE5iTdez.js";
|
|
5
5
|
import { forwardRef as j } from "react";
|
|
6
6
|
const k = j((x, C) => {
|
|
7
7
|
const e = q.c(30);
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { HeadingSize, HeadingTag } from '../Heading/Heading.utils';
|
|
2
2
|
import { AccordionProps } from './Accordion';
|
|
3
|
-
export declare const ACCORDION_SIZE: readonly ["medium", "small"];
|
|
3
|
+
export declare const ACCORDION_SIZE: readonly ["medium", "small", "x-small"];
|
|
4
4
|
export type AccordionSize = (typeof ACCORDION_SIZE)[number];
|
|
5
|
+
export declare const ACCORDION_OPEN_STATE_INDICATOR: readonly ["chevron", "caret"];
|
|
6
|
+
export type AccordionOpenStateIndicator = (typeof ACCORDION_OPEN_STATE_INDICATOR)[number];
|
|
5
7
|
export declare const CHEVRON_POSITION: readonly ["left", "right"];
|
|
6
8
|
export type ChevronPosition = (typeof CHEVRON_POSITION)[number];
|
|
7
9
|
export type Summary = string | {
|
|
@@ -26,13 +26,13 @@ export interface ActionButtonProps extends ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
26
26
|
* @default 'left'
|
|
27
27
|
*/
|
|
28
28
|
iconPosition?: ActionButtonIconPosition;
|
|
29
|
-
/** Size of the icon. Only available with `iconPosition='left'` and a custom `iconSource
|
|
29
|
+
/** Size of the icon. **Only available with `iconPosition='left'` and a custom `iconSource`**.
|
|
30
30
|
* @default 'large'
|
|
31
31
|
*/
|
|
32
32
|
iconSize?: ActionButtonIconSize;
|
|
33
33
|
/** URL or path for a custom icon. */
|
|
34
34
|
iconSource?: IconProps['source'];
|
|
35
|
-
/** Indent level of the button, used to align the button with other elements e.g. inside a DSAccordion. Only available with `iconPosition='left'
|
|
35
|
+
/** Indent level of the button, used to align the button with other elements e.g. inside a DSAccordion. **Only available with `iconPosition='left'`**.
|
|
36
36
|
* @default 0
|
|
37
37
|
*/
|
|
38
38
|
indentLevel?: ActionButtonIndentLevel;
|
|
@@ -42,11 +42,11 @@ export interface ActionButtonProps extends ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
42
42
|
isActive?: boolean;
|
|
43
43
|
/** Number Indicator value displayed next to the label or above the icon. */
|
|
44
44
|
numberIndicatorValue?: string;
|
|
45
|
-
/** Stretches the button over the parent's width. Only available with `iconPosition='left'
|
|
45
|
+
/** Stretches the button over the parent's width. **Only available with `iconPosition='left'`**.
|
|
46
46
|
* @default false
|
|
47
47
|
*/
|
|
48
48
|
stretched?: boolean;
|
|
49
|
-
/** Defines the weight.
|
|
49
|
+
/** Defines the weight. **Only available with `iconPosition='left'`**.
|
|
50
50
|
* @default 'normal'
|
|
51
51
|
*/
|
|
52
52
|
weight?: ActionButtonWeight;
|
|
@@ -56,6 +56,6 @@ export interface ActionButtonProps extends ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
56
56
|
/**
|
|
57
57
|
* Use the ActionButton component when you want the users to trigger an action, used in the DSDrawer as a mobile menu, as a parent of a Popover or in the DSTopBar of the DSHeader.
|
|
58
58
|
*
|
|
59
|
-
* Design in Figma: [Action Item](https://www.figma.com/design/
|
|
59
|
+
* Design in Figma: [Action Item](https://www.figma.com/design/Ie2r0R9QwjEc7O3nrFbXhV/Web-Pattern-Library?node-id=6307-72257&t=6MyKQ9TAUdzZ1XaJ-4)
|
|
60
60
|
* */
|
|
61
61
|
export declare const DSActionButton: import('react').ForwardRefExoticComponent<ActionButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -7,11 +7,11 @@ export interface ActionLinkProps extends Omit<CommonLinkProps, 'iconPosition' |
|
|
|
7
7
|
* @default 'left'
|
|
8
8
|
*/
|
|
9
9
|
iconPosition?: ActionLinkIconPosition;
|
|
10
|
-
/** Size of the icon. Only available with `iconPosition='left'` and a custom `iconSource
|
|
10
|
+
/** Size of the icon. **Only available with `iconPosition='left'` and a custom `iconSource`**.
|
|
11
11
|
* @default 'large'
|
|
12
12
|
*/
|
|
13
13
|
iconSize?: ActionLinkIconSize;
|
|
14
|
-
/** Indent level of the link, used to align the link with other elements e.g. inside a DSAccordion. Only available with `iconPosition='left'
|
|
14
|
+
/** Indent level of the link, used to align the link with other elements e.g. inside a DSAccordion. **Only available with `iconPosition='left'`**.
|
|
15
15
|
* @default 0
|
|
16
16
|
*/
|
|
17
17
|
indentLevel?: ActionLinkIndentLevel;
|
|
@@ -21,11 +21,11 @@ export interface ActionLinkProps extends Omit<CommonLinkProps, 'iconPosition' |
|
|
|
21
21
|
isActive?: boolean;
|
|
22
22
|
/** Number Indicator value displayed next to the label or above the icon. */
|
|
23
23
|
numberIndicatorValue?: string;
|
|
24
|
-
/** Stretches the link over the parent's width. Only available with `iconPosition='left'
|
|
24
|
+
/** Stretches the link over the parent's width. **Only available with `iconPosition='left'`**.
|
|
25
25
|
* @default false
|
|
26
26
|
*/
|
|
27
27
|
stretched?: boolean;
|
|
28
|
-
/** Defines the weight. Only available with `iconPosition='left'
|
|
28
|
+
/** Defines the weight. **Only available with `iconPosition='left'`**.
|
|
29
29
|
* @default 'normal'
|
|
30
30
|
*/
|
|
31
31
|
weight?: ActionLinkWeight;
|
|
@@ -33,6 +33,6 @@ export interface ActionLinkProps extends Omit<CommonLinkProps, 'iconPosition' |
|
|
|
33
33
|
/**
|
|
34
34
|
* Use the ActionLink component when you want the users to navigate to another internal or external page, used in the DSDrawer as a mobile menu or in the DSTopBar of the DSHeader.
|
|
35
35
|
*
|
|
36
|
-
* Design in Figma: [Action Item](https://www.figma.com/design/
|
|
36
|
+
* Design in Figma: [Action Item](https://www.figma.com/design/Ie2r0R9QwjEc7O3nrFbXhV/Web-Pattern-Library?node-id=6307-72257&t=6MyKQ9TAUdzZ1XaJ-4)
|
|
37
37
|
* */
|
|
38
38
|
export declare const DSActionLink: import('react').ForwardRefExoticComponent<ActionLinkProps & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
@@ -6,7 +6,7 @@ export interface HeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
6
6
|
*
|
|
7
7
|
* `children`: Content of the brand addOn.
|
|
8
8
|
*
|
|
9
|
-
* `subTitle`: Sub title below the title. Only available with `variant="double"
|
|
9
|
+
* `subTitle`: Sub title below the title. **Only available with `variant="double"`**.
|
|
10
10
|
*
|
|
11
11
|
* `variant`: Variant of the brand addOn.
|
|
12
12
|
* Defaults to `'single'`
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
import { BreakpointCustomizable } from '../../types';
|
|
3
2
|
export interface RadioProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
4
3
|
/** Label text displayed next to the radio. */
|
|
5
4
|
label: string;
|
|
@@ -23,11 +22,6 @@ export interface RadioProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
|
23
22
|
* Id of the parent Fieldset, required for a11y when systemFeedback is set
|
|
24
23
|
*/
|
|
25
24
|
fieldsetId?: string;
|
|
26
|
-
/** Hides the radio label, can be responsive.
|
|
27
|
-
* `boolean | { base: boolean; s?: boolean; m?: boolean; l?: boolean; xl?: boolean; }`
|
|
28
|
-
* @default false
|
|
29
|
-
*/
|
|
30
|
-
hideLabel?: BreakpointCustomizable<boolean>;
|
|
31
25
|
/** Makes the label use `ds.utility-medium-bold` if any option has a `hint` and `hideUncheckedHint` is set to false.
|
|
32
26
|
* @default false
|
|
33
27
|
*/
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
import { HTMLAttributes, JSX } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { SystemFeedbackVariant } from './SystemFeedback.utils';
|
|
3
3
|
export interface SystemFeedbackProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
-
/**
|
|
4
|
+
/** Unique id for connecting the system feedback with aria attributes like aria-describedby. */
|
|
5
5
|
id: string;
|
|
6
6
|
/** Defines the message. */
|
|
7
7
|
message: string;
|
|
8
|
-
/** Defines the
|
|
9
|
-
|
|
8
|
+
/** Defines the variant (e.g. "error", "success" or "warning"). */
|
|
9
|
+
variant: SystemFeedbackVariant;
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Use the SystemFeedback component to provide clear and immediate feedback to the user
|
|
13
|
+
* about the status of a system process or validation state.
|
|
14
|
+
*
|
|
15
|
+
* Design in Figma: [SystemFeedback](https://www.figma.com/design/qXldpLO6gxHJNLdcXIPxYt/Core-Components-%F0%9F%92%A0?node-id=14690-32&t=qoxy54r8T2z3eW8T-4)
|
|
16
|
+
*
|
|
17
|
+
* <div className="ds-info">For more information on the different types of notifications and to determine which is best suited for your needs, please refer to our [Notification Guidelines](/docs/templates-notification-guidelines--documentation) and explore the decision trees provided.</div>
|
|
18
|
+
*/
|
|
19
|
+
export declare const DSSystemFeedback: ({ id, message, variant, className, ...rest }: SystemFeedbackProps) => JSX.Element;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
export declare const systemFeedbackIcons: SystemFeedbackIcons;
|
|
7
|
-
export type SystemFeedbackType = 'valid' | 'invalid' | 'warning';
|
|
1
|
+
type SystemFeedbackIcon = 'circle-check-colored' | 'diamond-exclamationmark-colored' | 'triangle-exclamationmark-colored';
|
|
2
|
+
export declare const SYSTEM_FEEDBACK_VARIANT: readonly ["success", "error", "warning"];
|
|
3
|
+
export type SystemFeedbackVariant = (typeof SYSTEM_FEEDBACK_VARIANT)[number];
|
|
4
|
+
export declare const SYSTEM_FEEDBACK_ICON_MAP: Record<SystemFeedbackVariant, SystemFeedbackIcon>;
|
|
8
5
|
export {};
|
|
@@ -32,7 +32,7 @@ export interface BrandAreaLogoProps {
|
|
|
32
32
|
export interface BrandAddOnProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
33
33
|
/** Content of the brand addOn. */
|
|
34
34
|
children: React.ReactNode;
|
|
35
|
-
/** Sub title below the title. Only available with `variant="double"
|
|
35
|
+
/** Sub title below the title. **Only available with `variant="double"`**. */
|
|
36
36
|
subTitle?: string;
|
|
37
37
|
/** Variant of the brand addOn.
|
|
38
38
|
* @default 'single'
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "react/jsx-runtime";
|
|
3
|
+
import "./chunks/index.CgTHIF3K.js";
|
|
4
|
+
import "./chunks/index.CEyLAtio.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import { c as u } from "./chunks/CustomReactSelect.iE5iTdez.js";
|
|
7
|
+
import "./chunks/useBreakpoint.CMOR9ZOB.js";
|
|
8
|
+
import "./asterisk.CR60hx8S.js";
|
|
9
|
+
import "./chunks/Icon.DGTYCv63.js";
|
|
10
|
+
import "./chunks/SystemFeedback.B9f67mjJ.js";
|
|
11
|
+
import "./optioncheckbox.D97W3zeW.js";
|
|
12
|
+
export {
|
|
13
|
+
u as CustomReactSelect
|
|
14
|
+
};
|
|
@@ -3,8 +3,8 @@ import "react/jsx-runtime";
|
|
|
3
3
|
import "./chunks/index.CgTHIF3K.js";
|
|
4
4
|
import "./chunks/index.CEyLAtio.js";
|
|
5
5
|
import "react";
|
|
6
|
-
import "./chunks/Button.
|
|
7
|
-
import { D } from "./chunks/Dialog.
|
|
6
|
+
import "./chunks/Button.B7xF1E19.js";
|
|
7
|
+
import { D } from "./chunks/Dialog.B_2pKRnd.js";
|
|
8
8
|
export {
|
|
9
9
|
D as DSDialog
|
|
10
10
|
};
|