@stihl-design-system/components 1.0.0-RC.30 → 1.0.0-RC.32
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.DkwtJy--.js → accordion.HfUSDwQJ.js} +2 -2
- package/{actionlink.C7HzeIVa.js → actionbutton.kgd0E_xF.js} +4 -3
- package/{actionbutton.u1qp8oGC.js → actionlink.CwC42RWc.js} +4 -3
- package/assets/CustomReactSelect.DGIItWIh.css +1 -0
- package/assets/InputStepper.DvFJk1Mi.css +1 -0
- package/assets/Popover.CXyUaXiO.css +1 -0
- package/assets/Select.C1gWF32A.css +1 -0
- package/assets/Slider.Bidyhb-B.css +1 -0
- package/assets/Textarea.Dq4rH9Tg.css +1 -0
- package/assets/input.CUjGh-UM.css +1 -0
- package/assets/logo100years.CQrEg-Vo.css +1 -0
- package/assets/tooltip.Co1gWF_0.css +1 -0
- package/{banner.j9YpudOS.js → banner.o4Etkjjo.js} +1 -1
- package/{breadcrumb.BS-S3zUI.js → breadcrumb.BsQm0kUD.js} +3 -3
- package/{linkbutton.D2C4vykc.js → button.Dyy6ajX6.js} +5 -3
- package/buttonround.ChKWHzsv.js +96 -0
- package/{checkbox.BtlUvs0z.js → checkbox.BNnp4ztM.js} +3 -3
- package/{checkboxgroup.C5NgyyQF.js → checkboxgroup.BTVnKenc.js} +2 -2
- package/{chip.tVIG1ysH.js → chip.C7NstOHt.js} +4 -3
- package/chipgroup.Zo1-IOCn.js +210 -0
- package/chunks/{Accordion.C5V5IcM-.js → Accordion.CnqryAUu.js} +1 -1
- package/chunks/ActionButton.DdDesD7K.js +180 -0
- package/chunks/ActionLink.DqAsPYda.js +153 -0
- package/chunks/{Breadcrumb.BGzwzvh8.js → Breadcrumb.9KinNuyQ.js} +2 -2
- package/chunks/Button.Cf1CKq8N.js +142 -0
- package/chunks/{Checkbox.DxV7-F5W.js → Checkbox.CiwriItT.js} +2 -2
- package/chunks/{CheckboxGroup.Dy_6tiGk.js → CheckboxGroup.Cj68J6Ee.js} +2 -2
- package/chunks/Chip.BrbYu6i_.js +133 -0
- package/chunks/{CustomReactSelect.iE5iTdez.js → CustomReactSelect.Cqq70QC0.js} +152 -144
- package/chunks/{Dialog.B_2pKRnd.js → Dialog.Bv7k55He.js} +1 -1
- package/chunks/{Drawer.HFlBTcqN.js → Drawer.BVTvx276.js} +1 -1
- package/chunks/{Fieldset.CjIfmN_5.js → Fieldset.D7cLR5ze.js} +1 -1
- package/chunks/Header.um5MlziB.js +377 -0
- package/chunks/Icon.NSsVrYeq.js +231 -0
- package/chunks/{InputFile.DvOatDzg.js → InputFile.bVWWdePn.js} +4 -4
- package/chunks/{InputPassword.DC2POUc1.js → InputPassword.Da3hEKTc.js} +2 -2
- package/chunks/{InputSearch.B0aCuPRZ.js → InputSearch.GOYqFCcZ.js} +2 -2
- package/chunks/InputStepper.BuhPtfl-.js +268 -0
- package/chunks/LinkButton.59oNDwPU.js +132 -0
- package/chunks/MegaMenu._o3nNDAa.js +192 -0
- package/chunks/{NavigationTabList.dYFYTmWv.js → NavigationTabList.DuT7gzhj.js} +1 -1
- package/chunks/{NavigationTabs.ClpVGcl0.js → NavigationTabs.DspPFHPh.js} +1 -1
- package/chunks/{Notification.DIdIhGTQ.js → Notification.Pts2oh0R.js} +2 -2
- package/chunks/Popover.BRR8YZ-P.js +228 -0
- package/chunks/{RadioGroup.peTeMK45.js → RadioGroup.DeTz3c19.js} +1 -1
- package/chunks/Select.D2ehd4yN.js +162 -0
- package/chunks/{Slider.kyVr7BLk.js → Slider.84lkgq3W.js} +85 -85
- package/chunks/{SystemFeedback.B9f67mjJ.js → SystemFeedback.CyGbUCzT.js} +1 -1
- package/chunks/{Tabs.CkVL8Jw8.js → Tabs.C8ADTzJ0.js} +1 -1
- package/chunks/Textarea.Cw85sxHL.js +163 -0
- package/chunks/{Toast.DHo4pLH3.js → Toast.DG3WVvau.js} +2 -2
- package/chunks/battery-charge-0.DxlgEAto.js +10 -0
- package/chunks/battery-charge-100.D0Cax7dU.js +10 -0
- package/chunks/{battery.YCg9lYqC.js → battery.6Idoickg.js} +3 -3
- package/chunks/bluetooth-off.BzZCh4Q8.js +10 -0
- package/chunks/document-s.CoOp0kBK.js +10 -0
- package/chunks/floating-ui.dom.VgHc0h4l.js +989 -0
- package/chunks/floating-ui.react.DCyAzlZ4.js +2011 -0
- package/{combobox.Bk2ycofh.js → combobox.orZ3z8CB.js} +1 -1
- package/components/ActionButton/ActionButton.d.ts +2 -0
- package/components/Button/Button.d.ts +4 -0
- package/components/ChipGroup/Chip.d.ts +1 -0
- package/components/ChipGroup/ChipGroup.d.ts +4 -0
- package/components/ChipGroup/ChipGroup.utils.d.ts +9 -9
- package/components/Header/Header.d.ts +4 -5
- package/components/InputStepper/InputStepper.d.ts +8 -2
- package/components/InputStepper/InputStepper.utils.d.ts +1 -0
- package/components/LinkButton/LinkButton.d.ts +2 -0
- package/components/Logo100Years/Logo100Years.d.ts +1 -0
- package/components/Popover/Popover.d.ts +29 -7
- package/components/Popover/Popover.utils.d.ts +34 -3
- package/components/Tooltip/Tooltip.d.ts +40 -0
- package/components/Tooltip/Tooltip.test.d.ts +1 -0
- package/components/Tooltip/Tooltip.utils.d.ts +70 -0
- package/components/Tooltip/Tooltip.utils.test.d.ts +1 -0
- package/components/TopBar/TopBar.d.ts +4 -4
- package/components/TopBar/TopBar.utils.d.ts +1 -1
- package/{customreactselect.Hnch9LGg.js → customreactselect.Np-RpzvU.js} +4 -4
- package/{dialog.7sWoqGwL.js → dialog.D4rcbW6A.js} +2 -2
- package/{drawer.DsF4KIPn.js → drawer.BCCB3Rkj.js} +2 -2
- package/{fieldset.DUFUMcT-.js → fieldset.ZLs9IGpE.js} +2 -2
- package/{filelist.nunJKxkv.js → filelist.BiKMKCyg.js} +3 -3
- package/{flag.D_iN8iD6.js → flag.72PONA83.js} +1 -1
- package/floatingactionbutton.B2YChsNU.js +87 -0
- package/{header.QpNjE3N-.js → header.DUbn3BZt.js} +1 -1
- package/{icon.vMQcEBnH.js → icon.CHVAZr5T.js} +1 -1
- package/index.es.js +112 -111
- package/input.DG20x6gh.js +203 -0
- package/{inputfile.DK8759wV.js → inputfile.Dc56lQ4t.js} +5 -5
- package/{inputpassword.rV_ZZw5F.js → inputpassword.znFHRLsI.js} +3 -3
- package/{inputsearch.CmhakTpa.js → inputsearch.B1G6rfVk.js} +3 -3
- package/{inputstepper.5olvh4tk.js → inputstepper.o6rdM_CW.js} +3 -3
- package/link.DbnvsD3j.js +81 -0
- package/{button.CPilCCUI.js → linkbutton.DU8Ih8ZF.js} +4 -4
- package/logo100years.BcB6_c-o.js +24 -0
- package/logo100years.d.ts +2 -0
- package/{megamenu.CdHrEeoh.js → megamenu.CPH8EeFF.js} +3 -3
- package/{navigationtablist.CVjh1k-b.js → navigationtablist.C0iwsAad.js} +2 -2
- package/{navigationtabs.BGfi9AG2.js → navigationtabs.JjJtbuUe.js} +2 -2
- package/{notification.Dn-FZWEL.js → notification.Ds_Q7ifk.js} +3 -3
- package/{optioncheckbox.D97W3zeW.js → optioncheckbox.DqfXuPdi.js} +1 -1
- package/package.json +2 -3
- package/partials/index.js +14 -14
- package/{popover.DXxm1oWI.js → popover.B72W0OvU.js} +4 -3
- package/{radiogroup.J8WpEEo8.js → radiogroup.C_3IcNBq.js} +2 -2
- package/{scroller.BiRLQg__.js → scroller.CQxmQU6U.js} +1 -1
- package/{select.DIzGPVx3.js → select.Ceyt-zvu.js} +3 -3
- package/{skiptocontent._F-d8y5b.js → skiptocontent.BSCde5hT.js} +1 -1
- package/{slider.DuJK0RdB.js → slider.Dq2dcziy.js} +2 -2
- package/{spinner.Dht6FspZ.js → spinner.BUjhjAvw.js} +1 -1
- package/{switch.B37S4vfP.js → switch.D7BCfyyZ.js} +2 -2
- package/{systemfeedback.C_2PhwKe.js → systemfeedback.CSdWOWuf.js} +2 -2
- package/{tablist.g_Nwu6GA.js → tablist.V7DBklhE.js} +3 -3
- package/{tabs.oh9-wHPp.js → tabs.DQNLPAEN.js} +2 -2
- package/{textarea.dQ12-oYB.js → textarea.CixKeQBp.js} +2 -2
- package/{toast.sMNbfKxi.js → toast.D8QprMCa.js} +3 -3
- package/{toastmanager.CVamaS5T.js → toastmanager.BSVjYsg9.js} +1 -1
- package/tooltip.CUCSRXd3.js +191 -0
- package/tooltip.d.ts +2 -0
- package/{topbar.Dhy_TL0U.js → topbar.CVhJy-Br.js} +3 -2
- package/types/icon-types.d.ts +1 -1
- package/types/prettier-plugin-organize-imports.d.ts +1 -0
- package/assets/CustomReactSelect.D0b1Hg1T.css +0 -1
- package/assets/InputStepper.Dth4qZN_.css +0 -1
- package/assets/Popover.BDTDsPAt.css +0 -1
- package/assets/Select.CYACicZ3.css +0 -1
- package/assets/Slider.DzwSjDPV.css +0 -1
- package/assets/Textarea.BXWhXpXx.css +0 -1
- package/assets/input.ONbL-_C1.css +0 -1
- package/buttonround.C426mO4d.js +0 -81
- package/chipgroup.CjIK0Z0x.js +0 -209
- package/chunks/ActionButton.B8zFwOrJ.js +0 -165
- package/chunks/ActionLink.IX6oRXU3.js +0 -138
- package/chunks/Button.B7xF1E19.js +0 -127
- package/chunks/Chip.31UfPwQF.js +0 -119
- package/chunks/Header.DqZRryB5.js +0 -366
- package/chunks/Icon.DGTYCv63.js +0 -231
- package/chunks/InputStepper.B_ZjgY_f.js +0 -263
- package/chunks/LinkButton.DdTspmJz.js +0 -117
- package/chunks/MegaMenu.BY7eOnhj.js +0 -189
- package/chunks/Popover.NGetxKGg.js +0 -159
- package/chunks/Select.BDHLJ2ma.js +0 -162
- package/chunks/Textarea.ORkJUx-S.js +0 -163
- package/chunks/floating-ui.dom.C9TD1WpB.js +0 -950
- package/chunks/floating-ui.react.x0F9CYgn.js +0 -1637
- package/floatingactionbutton.DOH2k0gv.js +0 -72
- package/input.BKHOY118.js +0 -203
- package/link.D_FjTyoZ.js +0 -66
package/chipgroup.CjIK0Z0x.js
DELETED
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs as ce, jsx as le } from "react/jsx-runtime";
|
|
3
|
-
import { useState as Z, useRef as ne, useEffect as q, createElement as ae } from "react";
|
|
4
|
-
import { d as ue } from "./chunks/index.CgTHIF3K.js";
|
|
5
|
-
import { c as se } from "./chunks/index.CEyLAtio.js";
|
|
6
|
-
import { u as de } from "./chunks/useBreakpoint.CMOR9ZOB.js";
|
|
7
|
-
import { g as fe } from "./chunks/AriaLiveRegions.utils.Cb327d_2.js";
|
|
8
|
-
import { v as me, e as pe, a as he } from "./chunks/Chip.31UfPwQF.js";
|
|
9
|
-
import './assets/chipgroup.BGxjdSDX.css';const ge = "ds-chip-group_label--hidden_3zmt2_1", be = "ds-chip-group_root_3zmt2_14", ie = {
|
|
10
|
-
labelHidden: ge,
|
|
11
|
-
root: be
|
|
12
|
-
}, Re = (i) => {
|
|
13
|
-
const e = ue.c(61);
|
|
14
|
-
let d, b, p, g, c, v, S, D, E, L, I, y;
|
|
15
|
-
e[0] !== i ? ({
|
|
16
|
-
chips: d,
|
|
17
|
-
id: p,
|
|
18
|
-
label: g,
|
|
19
|
-
className: b,
|
|
20
|
-
hideLabel: S,
|
|
21
|
-
isRemovable: D,
|
|
22
|
-
lang: E,
|
|
23
|
-
selectionMode: L,
|
|
24
|
-
size: I,
|
|
25
|
-
translations: y,
|
|
26
|
-
onChipsChange: c,
|
|
27
|
-
...v
|
|
28
|
-
} = i, e[0] = i, e[1] = d, e[2] = b, e[3] = p, e[4] = g, e[5] = c, e[6] = v, e[7] = S, e[8] = D, e[9] = E, e[10] = L, e[11] = I, e[12] = y) : (d = e[1], b = e[2], p = e[3], g = e[4], c = e[5], v = e[6], S = e[7], D = e[8], E = e[9], L = e[10], I = e[11], y = e[12]);
|
|
29
|
-
const oe = S === void 0 ? !1 : S, u = D === void 0 ? !1 : D, x = E === void 0 ? "en" : E, f = L === void 0 ? "single" : L, J = I === void 0 ? "medium" : I;
|
|
30
|
-
process.env.NODE_ENV !== "production" && me({
|
|
31
|
-
chips: d,
|
|
32
|
-
id: p,
|
|
33
|
-
label: g
|
|
34
|
-
});
|
|
35
|
-
const [t, w] = Z(null);
|
|
36
|
-
let K;
|
|
37
|
-
e[13] !== d ? (K = () => d.map(ve), e[13] = d, e[14] = K) : K = e[14];
|
|
38
|
-
const [s, $] = Z(K), ee = ne(null), [a, P] = Z();
|
|
39
|
-
let N;
|
|
40
|
-
e[15] === Symbol.for("react.memo_cache_sentinel") ? (N = [], e[15] = N) : N = e[15];
|
|
41
|
-
const _ = ne(N);
|
|
42
|
-
let R, M;
|
|
43
|
-
e[16] !== d ? (R = () => {
|
|
44
|
-
$(d.map(ye));
|
|
45
|
-
}, M = [d], e[16] = d, e[17] = R, e[18] = M) : (R = e[17], M = e[18]), q(R, M);
|
|
46
|
-
let T, z;
|
|
47
|
-
e[19] === Symbol.for("react.memo_cache_sentinel") ? (T = () => {
|
|
48
|
-
he();
|
|
49
|
-
const o = () => P("keydown"), r = () => P(null), h = () => P(null);
|
|
50
|
-
return document.addEventListener("keydown", o), document.addEventListener("mousedown", r), document.addEventListener("touchstart", h), () => {
|
|
51
|
-
document.removeEventListener("keydown", o), document.removeEventListener("mousedown", r), document.removeEventListener("touchstart", h);
|
|
52
|
-
};
|
|
53
|
-
}, z = [], e[19] = T, e[20] = z) : (T = e[19], z = e[20]), q(T, z);
|
|
54
|
-
let B;
|
|
55
|
-
e[21] !== t || e[22] !== a ? (B = () => {
|
|
56
|
-
var o;
|
|
57
|
-
t !== null && _.current[t] && a === "keydown" && ((o = _.current[t]) == null || o.focus());
|
|
58
|
-
}, e[21] = t, e[22] = a, e[23] = B) : B = e[23];
|
|
59
|
-
let F;
|
|
60
|
-
e[24] !== t ? (F = [t], e[24] = t, e[25] = F) : F = e[25], q(B, F);
|
|
61
|
-
let G;
|
|
62
|
-
e[26] !== s.length || e[27] !== t || e[28] !== a ? (G = () => {
|
|
63
|
-
a === "keydown" && t !== null && s.length > 0 && _.current.forEach((o, r) => {
|
|
64
|
-
o && (o.tabIndex = r === t ? 0 : -1, r === t && o.focus());
|
|
65
|
-
});
|
|
66
|
-
}, e[26] = s.length, e[27] = t, e[28] = a, e[29] = G) : G = e[29];
|
|
67
|
-
let H;
|
|
68
|
-
e[30] !== s ? (H = [s], e[30] = s, e[31] = H) : H = e[31], q(G, H);
|
|
69
|
-
let k, C;
|
|
70
|
-
if (e[32] !== s || e[33] !== t || e[34] !== a || e[35] !== u || e[36] !== c || e[37] !== f) {
|
|
71
|
-
C = (l) => {
|
|
72
|
-
if (t === null)
|
|
73
|
-
return;
|
|
74
|
-
let n = t;
|
|
75
|
-
e: switch (l.key) {
|
|
76
|
-
case "a": {
|
|
77
|
-
(l.metaKey || l.ctrlKey) && (l.preventDefault(), o());
|
|
78
|
-
break e;
|
|
79
|
-
}
|
|
80
|
-
case "ArrowRight":
|
|
81
|
-
case "ArrowDown": {
|
|
82
|
-
l.shiftKey && f === "multiple" && !u ? (n = t + 1 > s.length - 1 ? s.length - 1 : t + 1, t !== n ? (r(t), r(n)) : s[t].isSelected || r(t)) : (n = (t + 1) % s.length, l.preventDefault());
|
|
83
|
-
break e;
|
|
84
|
-
}
|
|
85
|
-
case "ArrowLeft":
|
|
86
|
-
case "ArrowUp": {
|
|
87
|
-
l.shiftKey && f === "multiple" && !u ? (n = t - 1 < 0 ? 0 : t - 1, t !== n ? (r(t), r(n)) : s[0].isSelected || r(0)) : (n = (t - 1 + s.length) % s.length, l.preventDefault());
|
|
88
|
-
break e;
|
|
89
|
-
}
|
|
90
|
-
case "Enter":
|
|
91
|
-
case " ": {
|
|
92
|
-
if (l.preventDefault(), u) {
|
|
93
|
-
Y(n);
|
|
94
|
-
return;
|
|
95
|
-
} else
|
|
96
|
-
h(n);
|
|
97
|
-
break e;
|
|
98
|
-
}
|
|
99
|
-
case "Backspace": {
|
|
100
|
-
u && Y(n), l.preventDefault();
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
default:
|
|
104
|
-
return;
|
|
105
|
-
}
|
|
106
|
-
w(n);
|
|
107
|
-
};
|
|
108
|
-
const o = () => {
|
|
109
|
-
if (f !== "multiple")
|
|
110
|
-
return;
|
|
111
|
-
const l = s.map(we);
|
|
112
|
-
$(l), A(`${l.length} items selected`), c && c(l);
|
|
113
|
-
}, r = (l) => {
|
|
114
|
-
if (u)
|
|
115
|
-
return;
|
|
116
|
-
const n = s.map(ke);
|
|
117
|
-
n[l].disabled || (n[l].isSelected = !0, A(`${n[l].label} selected, ${n.filter(Ce).length} items selected`), $(n), c && c(n));
|
|
118
|
-
}, h = (l) => {
|
|
119
|
-
if (u)
|
|
120
|
-
return;
|
|
121
|
-
const n = [...s];
|
|
122
|
-
n[l].disabled || (f === "single" ? n.forEach((m, U) => {
|
|
123
|
-
U === l ? (m.isSelected = !m.isSelected, A(`${m.label} ${m.isSelected ? "selected" : "not selected"}`)) : m.isSelected = !1;
|
|
124
|
-
}) : f === "multiple" && (n[l].isSelected = !n[l].isSelected, A(`${n[l].label} ${n[l].isSelected ? "selected" : "not selected"}, ${n.filter(Se).length} items selected`)), $(n), c && c(n));
|
|
125
|
-
}, Y = (l) => {
|
|
126
|
-
var U;
|
|
127
|
-
const n = s[l], m = s.filter((te, re) => re !== l).map(De);
|
|
128
|
-
if ($(m), A(`${n.label} removed, ${m.length} items remaining`), a === "keydown")
|
|
129
|
-
if (m.length > 0) {
|
|
130
|
-
const te = Math.min(l, m.length - 1);
|
|
131
|
-
w(te);
|
|
132
|
-
} else
|
|
133
|
-
(U = ee.current) == null || U.focus(), w(null);
|
|
134
|
-
c && c(m);
|
|
135
|
-
};
|
|
136
|
-
k = (l) => {
|
|
137
|
-
u ? Y(l) : s[l].disabled || h(l);
|
|
138
|
-
};
|
|
139
|
-
const A = Ee;
|
|
140
|
-
e[32] = s, e[33] = t, e[34] = a, e[35] = u, e[36] = c, e[37] = f, e[38] = k, e[39] = C;
|
|
141
|
-
} else
|
|
142
|
-
k = e[38], C = e[39];
|
|
143
|
-
let V;
|
|
144
|
-
e[40] !== t ? (V = (o) => t === null || t === o ? 0 : -1, e[40] = t, e[41] = V) : V = e[41];
|
|
145
|
-
const Q = V, W = de(oe);
|
|
146
|
-
let j;
|
|
147
|
-
e[42] !== b ? (j = se(ie.root, b), e[42] = b, e[43] = j) : j = e[43];
|
|
148
|
-
const X = j;
|
|
149
|
-
let O;
|
|
150
|
-
return e[44] !== s || e[45] !== t || e[46] !== Q || e[47] !== k || e[48] !== C || e[49] !== W || e[50] !== p || e[51] !== a || e[52] !== u || e[53] !== g || e[54] !== x || e[55] !== v || e[56] !== X || e[57] !== f || e[58] !== J || e[59] !== y ? (O = s.length === 0 ? null : /* @__PURE__ */ ce("div", { children: [
|
|
151
|
-
/* @__PURE__ */ le("div", { id: p, className: se({
|
|
152
|
-
[ie.labelHidden]: W
|
|
153
|
-
}), children: g }),
|
|
154
|
-
s.length > 0 && /* @__PURE__ */ le("div", { ref: ee, role: "grid", "aria-labelledby": p, "aria-multiselectable": f === "multiple", tabIndex: -1, onKeyDown: C, onFocus: () => {
|
|
155
|
-
t === null ? (_.current[0].focus(), a === "keydown" && w(0)) : a === "keydown" && w(t);
|
|
156
|
-
}, onBlur: () => w(null), className: X, ...v, children: s.map((o, r) => /* @__PURE__ */ ae(pe, { ...o, key: `${o.id}-${r}`, groupId: p, tabIndex: Q(r), onClick: (h) => {
|
|
157
|
-
k(r), o.onClick && o.onClick(h);
|
|
158
|
-
}, "data-focused": t === r, isRemovable: u, lang: x, selectionMode: f, size: J, translations: y, ref: (h) => {
|
|
159
|
-
_.current[r] = h;
|
|
160
|
-
} })) })
|
|
161
|
-
] }), e[44] = s, e[45] = t, e[46] = Q, e[47] = k, e[48] = C, e[49] = W, e[50] = p, e[51] = a, e[52] = u, e[53] = g, e[54] = x, e[55] = v, e[56] = X, e[57] = f, e[58] = J, e[59] = y, e[60] = O) : O = e[60], O;
|
|
162
|
-
};
|
|
163
|
-
function ve(i) {
|
|
164
|
-
return {
|
|
165
|
-
...i
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
function ye(i) {
|
|
169
|
-
return {
|
|
170
|
-
...i
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
function we(i) {
|
|
174
|
-
return {
|
|
175
|
-
...i,
|
|
176
|
-
selected: !i.disabled
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
function ke(i) {
|
|
180
|
-
return {
|
|
181
|
-
...i
|
|
182
|
-
};
|
|
183
|
-
}
|
|
184
|
-
function Ce(i) {
|
|
185
|
-
const {
|
|
186
|
-
isSelected: e
|
|
187
|
-
} = i;
|
|
188
|
-
return e;
|
|
189
|
-
}
|
|
190
|
-
function Se(i) {
|
|
191
|
-
const {
|
|
192
|
-
isSelected: e
|
|
193
|
-
} = i;
|
|
194
|
-
return e;
|
|
195
|
-
}
|
|
196
|
-
function De(i) {
|
|
197
|
-
return {
|
|
198
|
-
...i
|
|
199
|
-
};
|
|
200
|
-
}
|
|
201
|
-
function Ee(i) {
|
|
202
|
-
const e = fe();
|
|
203
|
-
e && (e.innerText = i, setTimeout(() => {
|
|
204
|
-
e.innerText = "";
|
|
205
|
-
}, 350));
|
|
206
|
-
}
|
|
207
|
-
export {
|
|
208
|
-
Re as DSChipGroup
|
|
209
|
-
};
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs as ht, jsx as h, Fragment as It } from "react/jsx-runtime";
|
|
3
|
-
import { d as Nt } from "./index.CgTHIF3K.js";
|
|
4
|
-
import { c as T } from "./index.CEyLAtio.js";
|
|
5
|
-
import { forwardRef as Wt } from "react";
|
|
6
|
-
import { D as ut } from "./Icon.DGTYCv63.js";
|
|
7
|
-
import { NumberIndicator as mt } from "../numberindicator.Ddf3ESi7.js";
|
|
8
|
-
import { g as A } from "./helpers.BbWkXTr3.js";
|
|
9
|
-
import '../assets/ActionButton.oGVPTS1J.css';const gt = "ds-action-button_root_15ybf_1", wt = "ds-action-button_root--indent-level-1_15ybf_75", Tt = "ds-action-button_root--active_15ybf_78", At = "ds-action-button_root--active--with-marker_15ybf_81", yt = "ds-action-button_root--icon--top_15ybf_84", St = "ds-action-button_root--stretched_15ybf_110", Pt = "ds-action-button_active-marker_15ybf_115", Ct = "ds-action-button_active-marker--with-indent_15ybf_127", Dt = "ds-action-button_icon-wrapper_15ybf_131", Ot = "ds-action-button_icon-wrapper--x-large_15ybf_134", Bt = "ds-action-button_icon-wrapper--with-number-indicator_15ybf_137", kt = "ds-action-button_icon-wrapper--with-number-indicator--with-value_15ybf_145", Lt = "ds-action-button_label_15ybf_149", xt = "ds-action-button_label--bold_15ybf_160", Et = "ds-action-button_label--active_15ybf_171", Mt = "ds-action-button_label--icon-top_15ybf_182", Ut = "ds-action-button_number-indicator_15ybf_205", zt = "ds-action-button_label-wrapper_15ybf_209", Rt = "ds-action-button_label-wrapper--icon-top_15ybf_214", Vt = "ds-action-button_chevron_15ybf_218", Ht = "ds-action-button_chevron--icon-position-top_15ybf_233", Xt = "ds-action-button_chevron--up_15ybf_239", jt = "ds-action-button_chevron--right_15ybf_250", Ft = "ds-action-button_chevron--left_15ybf_261", o = {
|
|
10
|
-
root: gt,
|
|
11
|
-
rootIndentLevel1: wt,
|
|
12
|
-
rootActive: Tt,
|
|
13
|
-
rootActiveWithMarker: At,
|
|
14
|
-
rootIconTop: yt,
|
|
15
|
-
rootStretched: St,
|
|
16
|
-
activeMarker: Pt,
|
|
17
|
-
activeMarkerWithIndent: Ct,
|
|
18
|
-
iconWrapper: Dt,
|
|
19
|
-
iconWrapperXLarge: Ot,
|
|
20
|
-
iconWrapperWithNumberIndicator: Bt,
|
|
21
|
-
iconWrapperWithNumberIndicatorWithValue: kt,
|
|
22
|
-
label: Lt,
|
|
23
|
-
labelBold: xt,
|
|
24
|
-
labelActive: Et,
|
|
25
|
-
labelIconTop: Mt,
|
|
26
|
-
numberIndicator: Ut,
|
|
27
|
-
labelWrapper: zt,
|
|
28
|
-
labelWrapperIconTop: Rt,
|
|
29
|
-
chevron: Vt,
|
|
30
|
-
chevronIconPositionTop: Ht,
|
|
31
|
-
chevronUp: Xt,
|
|
32
|
-
chevronRight: jt,
|
|
33
|
-
chevronLeft: Ft
|
|
34
|
-
}, oo = ["left", "top"], eo = ["large", "x-large"], no = [0, 1], io = ["normal", "bold"], ro = ["up", "down", "right", "left"], Gt = ({
|
|
35
|
-
iconName: _,
|
|
36
|
-
iconSize: f,
|
|
37
|
-
iconSource: t,
|
|
38
|
-
iconPosition: l,
|
|
39
|
-
indentLevel: r,
|
|
40
|
-
stretched: p,
|
|
41
|
-
weight: d
|
|
42
|
-
}) => {
|
|
43
|
-
if (_ && !t && f === "x-large" && console.warn(A("DSActionButton", 'An "iconSize" prop set to "x-large" has no effect when "iconName" is set. Please remove the "iconSize" prop or provide a custom icon via the "iconSource" prop.')), l === "top") {
|
|
44
|
-
if (!_ && !t)
|
|
45
|
-
throw new Error(A("DSActionButton", 'The "iconPosition" prop should not be set to "top", when no "iconName" or "iconSource" prop was provided. Please either remove the "iconPosition" prop or set a valid icon via the "iconName" or "iconSource" prop.'));
|
|
46
|
-
f === "x-large" && console.warn(A("DSActionButton", 'An "iconSize" prop set to "x-large" has no effect when "iconPosition" is set to "top". Please remove the "iconSize" prop.')), d === "bold" && console.warn(A("DSActionButton", 'A "weight" prop set to "bold" with "iconPosition" set to "top" has no effect. Please remove the "weight" prop.')), r === 1 && console.warn(A("DSActionButton", 'An "indentLevel" prop set to "1" with "iconPosition" set to "top" has no effect. Please remove the "indentLevel" prop.')), p && console.warn(A("DSActionButton", 'A "stretched" prop set to "true" with "iconPosition" set to "top" has no effect. Please remove the "stretched" prop.'));
|
|
47
|
-
}
|
|
48
|
-
}, Zt = Wt((_, f) => {
|
|
49
|
-
const t = Nt.c(83);
|
|
50
|
-
let l, r, p, d, c, a, n, b, v, y, S, P, C, D, O, B;
|
|
51
|
-
t[0] !== _ ? ({
|
|
52
|
-
children: p,
|
|
53
|
-
aria: l,
|
|
54
|
-
chevronDirection: r,
|
|
55
|
-
className: d,
|
|
56
|
-
disabled: y,
|
|
57
|
-
iconName: c,
|
|
58
|
-
iconPosition: S,
|
|
59
|
-
iconSize: P,
|
|
60
|
-
iconSource: a,
|
|
61
|
-
indentLevel: C,
|
|
62
|
-
isActive: D,
|
|
63
|
-
numberIndicatorValue: n,
|
|
64
|
-
stretched: O,
|
|
65
|
-
weight: B,
|
|
66
|
-
onClick: b,
|
|
67
|
-
...v
|
|
68
|
-
} = _, t[0] = _, t[1] = l, t[2] = r, t[3] = p, t[4] = d, t[5] = c, t[6] = a, t[7] = n, t[8] = b, t[9] = v, t[10] = y, t[11] = S, t[12] = P, t[13] = C, t[14] = D, t[15] = O, t[16] = B) : (l = t[1], r = t[2], p = t[3], d = t[4], c = t[5], a = t[6], n = t[7], b = t[8], v = t[9], y = t[10], S = t[11], P = t[12], C = t[13], D = t[14], O = t[15], B = t[16]);
|
|
69
|
-
const i = y === void 0 ? !1 : y, e = S === void 0 ? "left" : S, k = P === void 0 ? "large" : P, H = C === void 0 ? 0 : C, u = D === void 0 ? !1 : D, _t = O === void 0 ? !1 : O, ft = B === void 0 ? "normal" : B;
|
|
70
|
-
process.env.NODE_ENV !== "production" && Gt({
|
|
71
|
-
iconName: c,
|
|
72
|
-
iconSize: k,
|
|
73
|
-
iconSource: a,
|
|
74
|
-
iconPosition: e,
|
|
75
|
-
indentLevel: H,
|
|
76
|
-
stretched: _t,
|
|
77
|
-
weight: ft
|
|
78
|
-
});
|
|
79
|
-
const s = (n == null ? void 0 : n.trim()) === "", X = e === "top", j = H === 1, F = u && !i, G = u && !i && e === "left", Z = _t === !0 && e === "left";
|
|
80
|
-
let L;
|
|
81
|
-
t[17] !== d || t[18] !== F || t[19] !== G || t[20] !== Z || t[21] !== X || t[22] !== j ? (L = T(o.root, d, {
|
|
82
|
-
[o.rootIconTop]: X,
|
|
83
|
-
[o.rootIndentLevel1]: j,
|
|
84
|
-
[o.rootActive]: F,
|
|
85
|
-
[o.rootActiveWithMarker]: G,
|
|
86
|
-
[o.rootStretched]: Z
|
|
87
|
-
}), t[17] = d, t[18] = F, t[19] = G, t[20] = Z, t[21] = X, t[22] = j, t[23] = L) : L = t[23];
|
|
88
|
-
const $ = L, q = H === 1;
|
|
89
|
-
let x;
|
|
90
|
-
t[24] !== q ? (x = T(o.activeMarker, {
|
|
91
|
-
[o.activeMarkerWithIndent]: q
|
|
92
|
-
}), t[24] = q, t[25] = x) : x = t[25];
|
|
93
|
-
const J = x, K = u && !i, Q = ft === "bold", Y = e === "top";
|
|
94
|
-
let E;
|
|
95
|
-
t[26] !== K || t[27] !== Q || t[28] !== Y ? (E = T(o.label, {
|
|
96
|
-
[o.labelActive]: K,
|
|
97
|
-
[o.labelBold]: Q,
|
|
98
|
-
[o.labelIconTop]: Y
|
|
99
|
-
}), t[26] = K, t[27] = Q, t[28] = Y, t[29] = E) : E = t[29];
|
|
100
|
-
const tt = E, ot = e === "top";
|
|
101
|
-
let M;
|
|
102
|
-
t[30] !== ot ? (M = T(o.labelWrapper, {
|
|
103
|
-
[o.labelWrapperIconTop]: ot
|
|
104
|
-
}), t[30] = ot, t[31] = M) : M = t[31];
|
|
105
|
-
const et = M, nt = e === "top", it = r === "up", rt = r === "right", ct = r === "left";
|
|
106
|
-
let U;
|
|
107
|
-
t[32] !== nt || t[33] !== it || t[34] !== rt || t[35] !== ct ? (U = T(o.chevron, {
|
|
108
|
-
[o.chevronIconPositionTop]: nt,
|
|
109
|
-
[o.chevronUp]: it,
|
|
110
|
-
[o.chevronRight]: rt,
|
|
111
|
-
[o.chevronLeft]: ct
|
|
112
|
-
}), t[32] = nt, t[33] = it, t[34] = rt, t[35] = ct, t[36] = U) : U = t[36];
|
|
113
|
-
const at = U, st = k === "x-large", lt = (c || a) && (n || s), pt = (c || a) && !s;
|
|
114
|
-
let z;
|
|
115
|
-
t[37] !== st || t[38] !== lt || t[39] !== pt ? (z = T(o.iconWrapper, {
|
|
116
|
-
[o.iconWrapperXLarge]: st,
|
|
117
|
-
[o.iconWrapperWithNumberIndicator]: lt,
|
|
118
|
-
[o.iconWrapperWithNumberIndicatorWithValue]: pt
|
|
119
|
-
}), t[37] = st, t[38] = lt, t[39] = pt, t[40] = z) : z = t[40];
|
|
120
|
-
const dt = z;
|
|
121
|
-
let R;
|
|
122
|
-
t[41] !== i || t[42] !== b ? (R = (vt) => {
|
|
123
|
-
if (i) {
|
|
124
|
-
vt.preventDefault();
|
|
125
|
-
return;
|
|
126
|
-
}
|
|
127
|
-
b && b(vt);
|
|
128
|
-
}, t[41] = i, t[42] = b, t[43] = R) : R = t[43];
|
|
129
|
-
const bt = R;
|
|
130
|
-
let m;
|
|
131
|
-
t[44] !== J || t[45] !== e || t[46] !== u ? (m = u && e === "left" && /* @__PURE__ */ h("div", { className: J }), t[44] = J, t[45] = e, t[46] = u, t[47] = m) : m = t[47];
|
|
132
|
-
let I;
|
|
133
|
-
t[48] !== i || t[49] !== c || t[50] !== e || t[51] !== k || t[52] !== a || t[53] !== dt || t[54] !== s || t[55] !== n ? (I = (c || a) && /* @__PURE__ */ h(It, { children: /* @__PURE__ */ ht("span", { className: dt, children: [
|
|
134
|
-
/* @__PURE__ */ h(ut, { name: c, theme: "light", source: a, "aria-hidden": "true", size: c || e === "top" ? "large" : k }),
|
|
135
|
-
!i && (e === "left" && s || e === "top" && (n || s)) && /* @__PURE__ */ h(mt, { variant: "highlight", label: n })
|
|
136
|
-
] }) }), t[48] = i, t[49] = c, t[50] = e, t[51] = k, t[52] = a, t[53] = dt, t[54] = s, t[55] = n, t[56] = I) : I = t[56];
|
|
137
|
-
let N;
|
|
138
|
-
t[57] !== p || t[58] !== tt ? (N = /* @__PURE__ */ h("span", { className: tt, children: p }), t[57] = p, t[58] = tt, t[59] = N) : N = t[59];
|
|
139
|
-
let W;
|
|
140
|
-
t[60] !== at || t[61] !== r ? (W = r && /* @__PURE__ */ h(ut, { name: "chevron-down", theme: "light", "aria-hidden": "true", className: at }), t[60] = at, t[61] = r, t[62] = W) : W = t[62];
|
|
141
|
-
let g;
|
|
142
|
-
t[63] !== et || t[64] !== N || t[65] !== W ? (g = /* @__PURE__ */ ht("div", { className: et, children: [
|
|
143
|
-
N,
|
|
144
|
-
W
|
|
145
|
-
] }), t[63] = et, t[64] = N, t[65] = W, t[66] = g) : g = t[66];
|
|
146
|
-
let w;
|
|
147
|
-
t[67] !== i || t[68] !== e || t[69] !== s || t[70] !== n ? (w = e === "left" && !i && n && !s && /* @__PURE__ */ h(mt, { variant: "default", label: n, className: o.numberIndicator }), t[67] = i, t[68] = e, t[69] = s, t[70] = n, t[71] = w) : w = t[71];
|
|
148
|
-
let V;
|
|
149
|
-
return t[72] !== l || t[73] !== i || t[74] !== bt || t[75] !== f || t[76] !== v || t[77] !== $ || t[78] !== m || t[79] !== I || t[80] !== g || t[81] !== w ? (V = /* @__PURE__ */ ht("button", { className: $, type: "button", onClick: bt, ...l, ...v, "aria-disabled": i, ref: f, children: [
|
|
150
|
-
m,
|
|
151
|
-
I,
|
|
152
|
-
g,
|
|
153
|
-
w
|
|
154
|
-
] }), t[72] = l, t[73] = i, t[74] = bt, t[75] = f, t[76] = v, t[77] = $, t[78] = m, t[79] = I, t[80] = g, t[81] = w, t[82] = V) : V = t[82], V;
|
|
155
|
-
});
|
|
156
|
-
Zt.displayName = "DSActionButton";
|
|
157
|
-
export {
|
|
158
|
-
oo as A,
|
|
159
|
-
Zt as D,
|
|
160
|
-
eo as a,
|
|
161
|
-
no as b,
|
|
162
|
-
io as c,
|
|
163
|
-
ro as d,
|
|
164
|
-
Gt as v
|
|
165
|
-
};
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs as rt, jsx as w, Fragment as ct } from "react/jsx-runtime";
|
|
3
|
-
import { d as st } from "./index.CgTHIF3K.js";
|
|
4
|
-
import { c as y } from "./index.CEyLAtio.js";
|
|
5
|
-
import { D as lt } from "./Icon.DGTYCv63.js";
|
|
6
|
-
import { forwardRef as pt } from "react";
|
|
7
|
-
import { NumberIndicator as at } from "../numberindicator.Ddf3ESi7.js";
|
|
8
|
-
import { g as W } from "./helpers.BbWkXTr3.js";
|
|
9
|
-
import '../assets/ActionLink.CTh6IXrN.css';const dt = "ds-action-link_root_1xtta_1", ht = "ds-action-link_root--indent-level-1_1xtta_75", _t = "ds-action-link_root--active_1xtta_78", vt = "ds-action-link_root--active--with-marker_1xtta_81", mt = "ds-action-link_root--icon--top_1xtta_84", ft = "ds-action-link_root--stretched_1xtta_110", kt = "ds-action-link_active-marker_1xtta_115", bt = "ds-action-link_active-marker--with-indent_1xtta_127", It = "ds-action-link_icon-wrapper_1xtta_131", Nt = "ds-action-link_icon-wrapper--x-large_1xtta_134", At = "ds-action-link_icon-wrapper--with-number-indicator_1xtta_137", gt = "ds-action-link_icon-wrapper--with-number-indicator--with-value_1xtta_145", ut = "ds-action-link_label_1xtta_149", wt = "ds-action-link_label--bold_1xtta_160", Wt = "ds-action-link_label--active_1xtta_171", xt = "ds-action-link_label--icon-top_1xtta_182", Lt = "ds-action-link_number-indicator_1xtta_205", o = {
|
|
10
|
-
root: dt,
|
|
11
|
-
rootIndentLevel1: ht,
|
|
12
|
-
rootActive: _t,
|
|
13
|
-
rootActiveWithMarker: vt,
|
|
14
|
-
rootIconTop: mt,
|
|
15
|
-
rootStretched: ft,
|
|
16
|
-
activeMarker: kt,
|
|
17
|
-
activeMarkerWithIndent: bt,
|
|
18
|
-
iconWrapper: It,
|
|
19
|
-
iconWrapperXLarge: Nt,
|
|
20
|
-
iconWrapperWithNumberIndicator: At,
|
|
21
|
-
iconWrapperWithNumberIndicatorWithValue: gt,
|
|
22
|
-
label: ut,
|
|
23
|
-
labelBold: wt,
|
|
24
|
-
labelActive: Wt,
|
|
25
|
-
labelIconTop: xt,
|
|
26
|
-
numberIndicator: Lt
|
|
27
|
-
}, Kt = ["left", "top"], Vt = ["large", "x-large"], yt = [0, 1], Bt = ["normal", "bold"], St = ({
|
|
28
|
-
iconName: _,
|
|
29
|
-
iconSize: v,
|
|
30
|
-
iconSource: t,
|
|
31
|
-
iconPosition: c,
|
|
32
|
-
indentLevel: s,
|
|
33
|
-
stretched: l,
|
|
34
|
-
weight: p
|
|
35
|
-
}) => {
|
|
36
|
-
if (_ && !t && v === "x-large" && console.warn(W("DSActionLink", 'An "iconSize" prop set to "x-large" has no effect when "iconName" is set. Please remove the "iconSize" prop or provide a custom icon via the "iconSource" prop.')), c === "top") {
|
|
37
|
-
if (!_ && !t)
|
|
38
|
-
throw new Error(W("DSActionLink", 'The "iconPosition" prop should not be set to "top", when no "iconName" or "iconSource" prop was provided. Please either remove the "iconPosition" prop or set a valid icon via the "iconName" or "iconSource" prop.'));
|
|
39
|
-
v === "x-large" && console.warn(W("DSActionLink", 'An "iconSize" prop set to "x-large" has no effect when "iconPosition" is set to "top". Please remove the "iconSize" prop.')), p === "bold" && console.warn(W("DSActionLink", 'A "weight" prop set to "bold" with "iconPosition" set to "top" has no effect. Please remove the "weight" prop.')), s === 1 && console.warn(W("DSActionLink", 'An "indentLevel" prop set to "1" with "iconPosition" set to "top" has no effect. Please remove the "indentLevel" prop.')), l && console.warn(W("DSActionLink", 'A "stretched" prop set to "true" with "iconPosition" set to "top" has no effect. Please remove the "stretched" prop.'));
|
|
40
|
-
}
|
|
41
|
-
}, Pt = pt((_, v) => {
|
|
42
|
-
const t = st.c(73);
|
|
43
|
-
let c, s, l, p, h, n, r, i, m, f, k, x, L, S, P, D, T, M;
|
|
44
|
-
t[0] !== _ ? ({
|
|
45
|
-
children: s,
|
|
46
|
-
aria: c,
|
|
47
|
-
className: l,
|
|
48
|
-
download: p,
|
|
49
|
-
href: h,
|
|
50
|
-
iconName: n,
|
|
51
|
-
iconPosition: x,
|
|
52
|
-
iconSize: L,
|
|
53
|
-
iconSource: r,
|
|
54
|
-
indentLevel: S,
|
|
55
|
-
isActive: P,
|
|
56
|
-
numberIndicatorValue: i,
|
|
57
|
-
referrerPolicy: m,
|
|
58
|
-
rel: f,
|
|
59
|
-
stretched: D,
|
|
60
|
-
target: T,
|
|
61
|
-
weight: M,
|
|
62
|
-
...k
|
|
63
|
-
} = _, t[0] = _, t[1] = c, t[2] = s, t[3] = l, t[4] = p, t[5] = h, t[6] = n, t[7] = r, t[8] = i, t[9] = m, t[10] = f, t[11] = k, t[12] = x, t[13] = L, t[14] = S, t[15] = P, t[16] = D, t[17] = T, t[18] = M) : (c = t[1], s = t[2], l = t[3], p = t[4], h = t[5], n = t[6], r = t[7], i = t[8], m = t[9], f = t[10], k = t[11], x = t[12], L = t[13], S = t[14], P = t[15], D = t[16], T = t[17], M = t[18]);
|
|
64
|
-
const e = x === void 0 ? "left" : x, C = L === void 0 ? "large" : L, B = S === void 0 ? 0 : S, d = P === void 0 ? !1 : P, it = D === void 0 ? !1 : D, X = T === void 0 ? "_self" : T, nt = M === void 0 ? "normal" : M;
|
|
65
|
-
process.env.NODE_ENV !== "production" && St({
|
|
66
|
-
iconName: n,
|
|
67
|
-
iconSize: C,
|
|
68
|
-
iconSource: r,
|
|
69
|
-
iconPosition: e,
|
|
70
|
-
indentLevel: B,
|
|
71
|
-
stretched: it,
|
|
72
|
-
weight: nt
|
|
73
|
-
});
|
|
74
|
-
const a = (i == null ? void 0 : i.trim()) === "", j = e === "top", H = B === 1, F = d && e === "left", G = it === !0 && e === "left";
|
|
75
|
-
let E;
|
|
76
|
-
t[19] !== l || t[20] !== d || t[21] !== F || t[22] !== G || t[23] !== j || t[24] !== H ? (E = y(o.root, l, {
|
|
77
|
-
[o.rootIconTop]: j,
|
|
78
|
-
[o.rootIndentLevel1]: H,
|
|
79
|
-
[o.rootActive]: d,
|
|
80
|
-
[o.rootActiveWithMarker]: F,
|
|
81
|
-
[o.rootStretched]: G
|
|
82
|
-
}), t[19] = l, t[20] = d, t[21] = F, t[22] = G, t[23] = j, t[24] = H, t[25] = E) : E = t[25];
|
|
83
|
-
const R = E, Z = B === 1;
|
|
84
|
-
let O;
|
|
85
|
-
t[26] !== Z ? (O = y(o.activeMarker, {
|
|
86
|
-
[o.activeMarkerWithIndent]: Z
|
|
87
|
-
}), t[26] = Z, t[27] = O) : O = t[27];
|
|
88
|
-
const $ = O, q = d && e === "left", J = nt === "bold", Q = e === "top";
|
|
89
|
-
let z;
|
|
90
|
-
t[28] !== q || t[29] !== J || t[30] !== Q ? (z = y(o.label, {
|
|
91
|
-
[o.labelActive]: q,
|
|
92
|
-
[o.labelBold]: J,
|
|
93
|
-
[o.labelIconTop]: Q
|
|
94
|
-
}), t[28] = q, t[29] = J, t[30] = Q, t[31] = z) : z = t[31];
|
|
95
|
-
const U = z, Y = C === "x-large", tt = (n || r) && (i || a), et = (n || r) && !a;
|
|
96
|
-
let K;
|
|
97
|
-
t[32] !== Y || t[33] !== tt || t[34] !== et ? (K = y(o.iconWrapper, {
|
|
98
|
-
[o.iconWrapperXLarge]: Y,
|
|
99
|
-
[o.iconWrapperWithNumberIndicator]: tt,
|
|
100
|
-
[o.iconWrapperWithNumberIndicatorWithValue]: et
|
|
101
|
-
}), t[32] = Y, t[33] = tt, t[34] = et, t[35] = K) : K = t[35];
|
|
102
|
-
const ot = K, b = h === void 0 ? "span" : "a";
|
|
103
|
-
let I;
|
|
104
|
-
t[36] !== b || t[37] !== p || t[38] !== h || t[39] !== m || t[40] !== f || t[41] !== X ? (I = b === "a" && {
|
|
105
|
-
href: h,
|
|
106
|
-
target: X,
|
|
107
|
-
rel: f,
|
|
108
|
-
referrerPolicy: m,
|
|
109
|
-
download: p
|
|
110
|
-
}, t[36] = b, t[37] = p, t[38] = h, t[39] = m, t[40] = f, t[41] = X, t[42] = I) : I = t[42];
|
|
111
|
-
let N;
|
|
112
|
-
t[43] !== $ || t[44] !== e || t[45] !== d ? (N = d && e === "left" && /* @__PURE__ */ w("div", { className: $ }), t[43] = $, t[44] = e, t[45] = d, t[46] = N) : N = t[46];
|
|
113
|
-
let A;
|
|
114
|
-
t[47] !== n || t[48] !== e || t[49] !== C || t[50] !== r || t[51] !== ot || t[52] !== a || t[53] !== i ? (A = (n || r) && /* @__PURE__ */ w(ct, { children: /* @__PURE__ */ rt("span", { className: ot, children: [
|
|
115
|
-
/* @__PURE__ */ w(lt, { name: n, theme: "light", source: r, "aria-hidden": "true", size: n || e === "top" ? "large" : C }),
|
|
116
|
-
(e === "left" && a || e === "top" && (i || a)) && /* @__PURE__ */ w(at, { variant: "highlight", label: i })
|
|
117
|
-
] }) }), t[47] = n, t[48] = e, t[49] = C, t[50] = r, t[51] = ot, t[52] = a, t[53] = i, t[54] = A) : A = t[54];
|
|
118
|
-
let g;
|
|
119
|
-
t[55] !== s || t[56] !== U ? (g = /* @__PURE__ */ w("span", { className: U, children: s }), t[55] = s, t[56] = U, t[57] = g) : g = t[57];
|
|
120
|
-
let u;
|
|
121
|
-
t[58] !== e || t[59] !== a || t[60] !== i ? (u = e === "left" && i && !a && /* @__PURE__ */ w(at, { variant: "default", label: i, className: o.numberIndicator }), t[58] = e, t[59] = a, t[60] = i, t[61] = u) : u = t[61];
|
|
122
|
-
let V;
|
|
123
|
-
return t[62] !== b || t[63] !== c || t[64] !== v || t[65] !== k || t[66] !== R || t[67] !== I || t[68] !== N || t[69] !== A || t[70] !== g || t[71] !== u ? (V = /* @__PURE__ */ rt(b, { className: R, ...I, ...c, ...k, ref: v, children: [
|
|
124
|
-
N,
|
|
125
|
-
A,
|
|
126
|
-
g,
|
|
127
|
-
u
|
|
128
|
-
] }), t[62] = b, t[63] = c, t[64] = v, t[65] = k, t[66] = R, t[67] = I, t[68] = N, t[69] = A, t[70] = g, t[71] = u, t[72] = V) : V = t[72], V;
|
|
129
|
-
});
|
|
130
|
-
Pt.displayName = "DSActionLink";
|
|
131
|
-
export {
|
|
132
|
-
Kt as A,
|
|
133
|
-
Pt as D,
|
|
134
|
-
Vt as a,
|
|
135
|
-
yt as b,
|
|
136
|
-
Bt as c,
|
|
137
|
-
St as v
|
|
138
|
-
};
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs as co, jsx as so } from "react/jsx-runtime";
|
|
3
|
-
import { d as ho } from "./index.CgTHIF3K.js";
|
|
4
|
-
import { c as io } from "./index.CEyLAtio.js";
|
|
5
|
-
import { forwardRef as uo } from "react";
|
|
6
|
-
import { u as lo } from "./useBreakpoint.CMOR9ZOB.js";
|
|
7
|
-
import { D as _o } from "./Icon.DGTYCv63.js";
|
|
8
|
-
import { DSSpinner as go } from "../spinner.Dht6FspZ.js";
|
|
9
|
-
import { g as ro } from "./helpers.BbWkXTr3.js";
|
|
10
|
-
import '../assets/Button.Dw8H5nFS.css';const mo = "ds-button_root_94r67_1", fo = "ds-button_root--highlight_94r67_75", bo = "ds-button_root--dark-highlight_94r67_75", vo = "ds-button_root--filled_94r67_151", ko = "ds-button_root--outline_94r67_179", po = "ds-button_root--ghost_94r67_206", Do = "ds-button_root--ghost-flush_94r67_231", No = "ds-button_root--small_94r67_237", So = "ds-button_root--navigation_94r67_317", Oo = "ds-button_root--dark-filled_94r67_393", Fo = "ds-button_root--dark-outline_94r67_450", yo = "ds-button_root--dark-ghost_94r67_506", Go = "ds-button_root--dark-ghost-flush_94r67_560", Ho = "ds-button_root--icon-left_94r67_635", Io = "ds-button_root--icon-only_94r67_638", Bo = "ds-button_root--icon-only-small_94r67_647", Lo = "ds-button_icon--navigation_94r67_663", wo = "ds-button_icon--hidden_94r67_670", Co = "ds-button_label--hidden_94r67_674", To = "ds-button_label--loading_94r67_686", Eo = "ds-button_loader_94r67_690", t = {
|
|
11
|
-
root: mo,
|
|
12
|
-
rootHighlight: fo,
|
|
13
|
-
rootDarkHighlight: bo,
|
|
14
|
-
rootFilled: vo,
|
|
15
|
-
rootOutline: ko,
|
|
16
|
-
rootGhost: po,
|
|
17
|
-
rootGhostFlush: Do,
|
|
18
|
-
rootSmall: No,
|
|
19
|
-
rootNavigation: So,
|
|
20
|
-
rootDarkFilled: Oo,
|
|
21
|
-
rootDarkOutline: Fo,
|
|
22
|
-
rootDarkGhost: yo,
|
|
23
|
-
rootDarkGhostFlush: Go,
|
|
24
|
-
rootIconLeft: Ho,
|
|
25
|
-
rootIconOnly: Io,
|
|
26
|
-
rootIconOnlySmall: Bo,
|
|
27
|
-
iconNavigation: Lo,
|
|
28
|
-
iconHidden: wo,
|
|
29
|
-
labelHidden: Co,
|
|
30
|
-
labelLoading: To,
|
|
31
|
-
loader: Eo
|
|
32
|
-
}, $o = ["medium", "small"], qo = ["highlight", "filled", "outline", "ghost", "navigation"], Po = ({
|
|
33
|
-
variant: m,
|
|
34
|
-
size: f,
|
|
35
|
-
theme: o
|
|
36
|
-
}) => {
|
|
37
|
-
if (m === "navigation" && (f === "small" && console.warn(ro("DSButton", 'A "size" prop should not be used in combination with variant="navigation". Please remove the "size" prop.')), o === "dark"))
|
|
38
|
-
throw new Error(ro("DSButton", 'A DSButton with variant="navigation" does not support theme="dark". Please remove the "theme" prop.'));
|
|
39
|
-
}, xo = uo((m, f) => {
|
|
40
|
-
const o = ho.c(64);
|
|
41
|
-
let a, d, c, l, e, r, h, b, v, k, p, D, N, S, O;
|
|
42
|
-
o[0] !== m ? ({
|
|
43
|
-
children: d,
|
|
44
|
-
aria: a,
|
|
45
|
-
className: c,
|
|
46
|
-
disabled: b,
|
|
47
|
-
hideLabel: v,
|
|
48
|
-
iconName: l,
|
|
49
|
-
iconPosition: k,
|
|
50
|
-
iconSource: e,
|
|
51
|
-
isFlush: p,
|
|
52
|
-
loading: D,
|
|
53
|
-
size: N,
|
|
54
|
-
theme: S,
|
|
55
|
-
variant: O,
|
|
56
|
-
onClick: r,
|
|
57
|
-
...h
|
|
58
|
-
} = m, o[0] = m, o[1] = a, o[2] = d, o[3] = c, o[4] = l, o[5] = e, o[6] = r, o[7] = h, o[8] = b, o[9] = v, o[10] = k, o[11] = p, o[12] = D, o[13] = N, o[14] = S, o[15] = O) : (a = o[1], d = o[2], c = o[3], l = o[4], e = o[5], r = o[6], h = o[7], b = o[8], v = o[9], k = o[10], p = o[11], D = o[12], N = o[13], S = o[14], O = o[15]);
|
|
59
|
-
const F = b === void 0 ? !1 : b, C = v === void 0 ? !1 : v, ao = k === void 0 ? "left" : k, y = p === void 0 ? !1 : p, s = D === void 0 ? !1 : D, G = N === void 0 ? "medium" : N, i = S === void 0 ? "light" : S, n = O === void 0 ? "filled" : O;
|
|
60
|
-
process.env.NODE_ENV !== "production" && Po({
|
|
61
|
-
variant: n,
|
|
62
|
-
size: G,
|
|
63
|
-
theme: i
|
|
64
|
-
});
|
|
65
|
-
const T = n === "filled", E = n === "highlight", P = n === "outline", x = n === "ghost" && y !== !0, z = n === "navigation", A = n === "ghost" && y === !0, V = i === "dark" && n === "filled", j = i === "dark" && n === "highlight", R = i === "dark" && n === "outline", U = i === "dark" && n === "ghost" && y !== !0, M = i === "dark" && n === "ghost" && y === !0, Z = G === "small" || n === "navigation", $ = ao === "left", q = lo(C) && G === "medium" && n !== "navigation", J = lo(C) && G === "small" && n !== "navigation";
|
|
66
|
-
let H;
|
|
67
|
-
o[16] !== c || o[17] !== E || o[18] !== P || o[19] !== x || o[20] !== z || o[21] !== A || o[22] !== V || o[23] !== j || o[24] !== R || o[25] !== U || o[26] !== M || o[27] !== Z || o[28] !== $ || o[29] !== q || o[30] !== J || o[31] !== T ? (H = io(t.root, c, {
|
|
68
|
-
[t.rootFilled]: T,
|
|
69
|
-
[t.rootHighlight]: E,
|
|
70
|
-
[t.rootOutline]: P,
|
|
71
|
-
[t.rootGhost]: x,
|
|
72
|
-
[t.rootNavigation]: z,
|
|
73
|
-
[t.rootGhostFlush]: A,
|
|
74
|
-
[t.rootDarkFilled]: V,
|
|
75
|
-
[t.rootDarkHighlight]: j,
|
|
76
|
-
[t.rootDarkOutline]: R,
|
|
77
|
-
[t.rootDarkGhost]: U,
|
|
78
|
-
[t.rootDarkGhostFlush]: M,
|
|
79
|
-
[t.rootSmall]: Z,
|
|
80
|
-
[t.rootIconLeft]: $,
|
|
81
|
-
[t.rootIconOnly]: q,
|
|
82
|
-
[t.rootIconOnlySmall]: J
|
|
83
|
-
}), o[16] = c, o[17] = E, o[18] = P, o[19] = x, o[20] = z, o[21] = A, o[22] = V, o[23] = j, o[24] = R, o[25] = U, o[26] = M, o[27] = Z, o[28] = $, o[29] = q, o[30] = J, o[31] = T, o[32] = H) : H = o[32];
|
|
84
|
-
const K = H, Q = lo(C) && n !== "navigation";
|
|
85
|
-
let I;
|
|
86
|
-
o[33] !== s || o[34] !== Q ? (I = io(t.label, {
|
|
87
|
-
[t.labelHidden]: Q,
|
|
88
|
-
[t.labelLoading]: s
|
|
89
|
-
}), o[33] = s, o[34] = Q, o[35] = I) : I = o[35];
|
|
90
|
-
const W = I, X = n === "navigation";
|
|
91
|
-
let B;
|
|
92
|
-
o[36] !== s || o[37] !== X ? (B = io({
|
|
93
|
-
[t.iconNavigation]: X,
|
|
94
|
-
[t.iconHidden]: s
|
|
95
|
-
}), o[36] = s, o[37] = X, o[38] = B) : B = o[38];
|
|
96
|
-
const Y = B, oo = i === "light" && n === "filled" || i === "dark" && n === "outline" || i === "dark" && n === "ghost" ? "dark" : "light";
|
|
97
|
-
let L;
|
|
98
|
-
o[39] !== F || o[40] !== s || o[41] !== r ? (L = (eo) => {
|
|
99
|
-
if (F || s) {
|
|
100
|
-
eo.preventDefault();
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
r && r(eo);
|
|
104
|
-
}, o[39] = F, o[40] = s, o[41] = r, o[42] = L) : L = o[42];
|
|
105
|
-
const to = L, no = F || s;
|
|
106
|
-
let u;
|
|
107
|
-
o[43] !== s ? (u = s && /* @__PURE__ */ so(go, { className: t.loader, aria: {
|
|
108
|
-
"aria-label": "Loading state"
|
|
109
|
-
} }), o[43] = s, o[44] = u) : u = o[44];
|
|
110
|
-
let _;
|
|
111
|
-
o[45] !== d || o[46] !== W ? (_ = /* @__PURE__ */ so("span", { className: W, children: d }), o[45] = d, o[46] = W, o[47] = _) : _ = o[47];
|
|
112
|
-
let g;
|
|
113
|
-
o[48] !== Y || o[49] !== l || o[50] !== e || o[51] !== oo ? (g = (l || e) && /* @__PURE__ */ so(_o, { name: l, theme: oo, source: e, className: Y, "aria-hidden": "true" }), o[48] = Y, o[49] = l, o[50] = e, o[51] = oo, o[52] = g) : g = o[52];
|
|
114
|
-
let w;
|
|
115
|
-
return o[53] !== a || o[54] !== to || o[55] !== s || o[56] !== f || o[57] !== h || o[58] !== K || o[59] !== no || o[60] !== u || o[61] !== _ || o[62] !== g ? (w = /* @__PURE__ */ co("button", { className: K, type: "submit", onClick: to, ...a, ...h, "aria-disabled": no, "aria-busy": s, ref: f, children: [
|
|
116
|
-
u,
|
|
117
|
-
_,
|
|
118
|
-
g
|
|
119
|
-
] }), o[53] = a, o[54] = to, o[55] = s, o[56] = f, o[57] = h, o[58] = K, o[59] = no, o[60] = u, o[61] = _, o[62] = g, o[63] = w) : w = o[63], w;
|
|
120
|
-
});
|
|
121
|
-
xo.displayName = "DSButton";
|
|
122
|
-
export {
|
|
123
|
-
$o as B,
|
|
124
|
-
xo as D,
|
|
125
|
-
qo as a,
|
|
126
|
-
Po as v
|
|
127
|
-
};
|