@stihl-design-system/components 1.0.0-RC.44 → 1.0.0-RC.46
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.fQnuIgvf.js → accordion.Dvt4S5qg.js} +2 -2
- package/{actionbutton.CrKiuo82.js → actionbutton.D6qmbuAA.js} +2 -2
- package/{actioncard.WFXhVqOa.js → actioncard.BwquHtM_.js} +1 -1
- package/{actionlink.Df17YKFt.js → actionlink.fWwe7J0H.js} +2 -2
- package/assets/ActionCard.BG8w8xUC.css +1 -0
- package/assets/Dialog.BKwWy1g2.css +1 -0
- package/assets/Drawer.BU-fi5Hk.css +1 -0
- package/assets/Fieldset.DCmr1Yir.css +1 -0
- package/assets/LinkButton.CxJvjEY5.css +1 -0
- package/assets/LinkCard.DkQoQJxx.css +1 -0
- package/assets/NavigationTabList.DYjNT2Di.css +1 -0
- package/assets/Pagination.DZ1yCAMR.css +1 -0
- package/assets/buttonround.CMrJRIeW.css +1 -0
- package/assets/link.Dcsio57m.css +1 -0
- package/assets/skeleton.BjozXDiQ.css +1 -0
- package/{banner.Zxe9epVx.js → banner.CwZXWMc_.js} +1 -1
- package/{breadcrumb.FfS9gDhB.js → breadcrumb.DMqAgUyk.js} +3 -3
- package/{button.Bq_b-jF3.js → button.BDCfI_fj.js} +5 -4
- package/buttonround.DZCu35Zw.js +101 -0
- package/{checkbox.DiIxW8xI.js → checkbox.RYvu23i4.js} +3 -3
- package/{checkboxgroup.CN0WCDIo.js → checkboxgroup.DDWYxYzk.js} +2 -2
- package/{chip.C9GLR8lU.js → chip.CtZK5gH7.js} +2 -2
- package/{chipgroup.DEMaFBAV.js → chipgroup.C-UJt9Nb.js} +1 -1
- package/chunks/{Accordion.CHgxTFzp.js → Accordion.Tz7cWkk5.js} +1 -1
- package/chunks/{ActionButton.CLeOd9rU.js → ActionButton.Dqay6Dxt.js} +1 -1
- package/chunks/ActionCard.DJSGkwVG.js +227 -0
- package/chunks/{ActionLink.BsBKNYu5.js → ActionLink.BgWqWSKi.js} +1 -1
- package/chunks/{Breadcrumb.Dz3JQ2Vx.js → Breadcrumb.BkP2B-Vm.js} +2 -2
- package/chunks/Button.Dauhc5op.js +160 -0
- package/chunks/{Checkbox.B3g2P15v.js → Checkbox.C5Jgtwho.js} +2 -2
- package/chunks/CheckboxGroup.Df_nLGBa.js +79 -0
- package/chunks/{Chip.CfxdI4_r.js → Chip.DXS_ZMGD.js} +1 -1
- package/chunks/{CustomReactSelect.DuAr_i4b.js → CustomReactSelect.yVERtd4R.js} +4 -4
- package/chunks/Dialog.mP1tZEbW.js +102 -0
- package/chunks/Drawer.D6IG0DRe.js +107 -0
- package/chunks/Fieldset.DxhNhprT.js +91 -0
- package/chunks/Icon.B0WqYErA.js +232 -0
- package/chunks/{InputFile.CR8ucopi.js → InputFile.BSGunqyW.js} +5 -5
- package/chunks/{InputNumber.BFZFmfye.js → InputNumber.BsBAdxWr.js} +3 -3
- package/chunks/{InputPassword.C311ncrv.js → InputPassword.hZYiAKYC.js} +3 -3
- package/chunks/{InputSearch.BxDshauv.js → InputSearch.Dp3x5RE4.js} +3 -3
- package/chunks/LinkButton.DHcfHamd.js +150 -0
- package/chunks/LinkCard.DV-V9qHd.js +197 -0
- package/chunks/NavigationTabList.BIApwNzg.js +68 -0
- package/chunks/{NavigationTabs.B57dlMSM.js → NavigationTabs.BqaUbfFC.js} +1 -1
- package/chunks/{Notification.C6oDyXgu.js → Notification.DeedcinQ.js} +2 -2
- package/chunks/Pagination.DhD8i5AV.js +247 -0
- package/chunks/{Popover.BmpyqKuQ.js → Popover.Cyf3CbLl.js} +1 -1
- package/chunks/RadioGroup.D3omhLuC.js +130 -0
- package/chunks/{Select.Tt9kT7fQ.js → Select.DOeJaqzM.js} +3 -3
- package/chunks/Slider.d3gCkWL_.js +309 -0
- package/chunks/{Stepper.BnrFN6cJ.js → Stepper.Bqnak38-.js} +2 -2
- package/chunks/{SystemFeedback.D4aWwoC8.js → SystemFeedback.Dq3ZphgG.js} +1 -1
- package/chunks/{Tabs.kCft3oEd.js → Tabs.cMCZMPCy.js} +1 -1
- package/chunks/{Textarea.DDcx_Pdr.js → Textarea.DhRMfiWu.js} +2 -2
- package/chunks/{Toast.DddHXsvZ.js → Toast.KMEq0p-E.js} +2 -2
- package/chunks/circle-play.DKFF-Yos.js +10 -0
- package/chunks/heart-filled.CmO7eae5.js +10 -0
- package/{combobox.B-BIvd5K.js → combobox.CpX-Vlyd.js} +1 -1
- package/components/Accordion/Accordion.d.ts +2 -2
- package/components/ActionCard/ActionCard.d.ts +11 -4
- package/components/Banner/Banner.d.ts +1 -1
- package/components/Breadcrumb/Breadcrumb.d.ts +4 -1
- package/components/ButtonRound/ButtonRound.d.ts +14 -7
- package/components/ButtonRound/ButtonRound.utils.d.ts +3 -1
- package/components/CheckboxGroup/CheckboxGroup.d.ts +6 -1
- package/components/CheckboxGroup/CheckboxGroup.utils.d.ts +2 -2
- package/components/Fieldset/Fieldset.d.ts +7 -1
- package/components/Fieldset/Fieldset.utils.d.ts +2 -2
- package/components/FloatingActionButton/FloatingActionButton.d.ts +8 -5
- package/components/Input/Input.d.ts +6 -2
- package/components/Input/Input.utils.d.ts +1 -0
- package/components/LinkCard/LinkCard.d.ts +13 -3
- package/components/MegaMenu/MegaMenu.d.ts +1 -1
- package/components/Pagination/Pagination.d.ts +51 -0
- package/components/Pagination/Pagination.responsive.test.d.ts +1 -0
- package/components/Pagination/Pagination.test.d.ts +1 -0
- package/components/Pagination/Pagination.utils.d.ts +59 -0
- package/components/Pagination/Pagination.utils.test.d.ts +1 -0
- package/components/RadioGroup/RadioGroup.d.ts +5 -0
- package/components/RadioGroup/RadioGroup.utils.d.ts +2 -2
- package/components/Skeleton/Skeleton.d.ts +29 -0
- package/components/Skeleton/Skeleton.test.d.ts +1 -0
- package/components/Skeleton/Skeleton.utils.d.ts +4 -0
- package/components/Tooltip/Tooltip.d.ts +1 -1
- package/{customreactselect.B7p1pKdD.js → customreactselect.B1FFXsJ8.js} +5 -5
- package/{dialog.BqLpjUB7.js → dialog.ZQ-HnvZs.js} +2 -2
- package/{drawer.Cd-nCvZc.js → drawer.D0-RM0WZ.js} +2 -2
- package/fieldset.BzOeuWjO.js +13 -0
- package/{filelist.BhBVr4dj.js → filelist.BaYCDtxD.js} +4 -4
- package/{filepreview.BTWX71Xh.js → filepreview.BCslhbM5.js} +1 -1
- package/{flag.B0fg5_Ly.js → flag.DyZLEgAw.js} +1 -1
- package/{floatingactionbutton.C97oLCcd.js → floatingactionbutton.AVc4qY0u.js} +2 -2
- package/{icon.DfDzyo8I.js → icon.DrTLVrpN.js} +1 -1
- package/index.d.ts +9 -0
- package/index.es.js +264 -247
- package/input.DNdSFW5k.js +175 -0
- package/{inputfile.h6E4CGVo.js → inputfile.CTXJ_ZSi.js} +6 -6
- package/{inputnumber.mm_Irbl8.js → inputnumber.r0iVYkjd.js} +4 -4
- package/{inputpassword.C2lyKMkw.js → inputpassword.PXBZo3f0.js} +4 -4
- package/{inputsearch.BjkPPx6s.js → inputsearch.JLM0fNPt.js} +4 -4
- package/link.CArLlIsR.js +81 -0
- package/{linkbutton.Brcp-b5r.js → linkbutton.DVFXzn-A.js} +3 -3
- package/{linkcard.COvLNYk7.js → linkcard.BwSMt03V.js} +4 -4
- package/{navigationtablist.BBeiLPse.js → navigationtablist.BerRIzu-.js} +2 -2
- package/{navigationtabs.DzPsYusL.js → navigationtabs.DmcYShPs.js} +2 -2
- package/{notification.CliKozt4.js → notification.BVoapVVg.js} +3 -3
- package/{optioncheckbox.BOfgK3U_.js → optioncheckbox.BQo8riVL.js} +1 -1
- package/package.json +1 -1
- package/pagination.Dm1WnFhY.js +14 -0
- package/pagination.d.ts +2 -0
- package/partials/index.js +41 -29
- package/partials/lib/partials.d.ts +1 -1
- package/{popover.ChNhlQVw.js → popover.OcE_5SfG.js} +2 -2
- package/product-card-example-5.webp +0 -0
- package/product-card-example-6.webp +0 -0
- package/product-card-example-7.webp +0 -0
- package/{progressindicator.DIzH179H.js → progressindicator.1JRFwf-H.js} +1 -1
- package/{radiogroup.DL5scGbv.js → radiogroup.N06_e0b8.js} +2 -2
- package/{scroller.DwhsKecL.js → scroller.CwTXbzb8.js} +1 -1
- package/{select.mbkkptY-.js → select.DVuQMz7l.js} +4 -4
- package/skeleton.DUkBgXxO.js +148 -0
- package/skeleton.d.ts +2 -0
- package/{skiptocontent.CAXMZlhM.js → skiptocontent.Bujq9t3i.js} +1 -1
- package/{slider.DvrNqhCC.js → slider.JAKEAwOB.js} +3 -3
- package/{spinner.CJmvEaCu.js → spinner.D1W-X96t.js} +1 -1
- package/{step.B-afaoZI.js → step.CDNmsF4m.js} +2 -2
- package/{stepper.B0euF2om.js → stepper.D0kSuiYh.js} +3 -3
- package/{switch.BadzT87Z.js → switch.pN105F5-.js} +2 -2
- package/{systemfeedback.BfGF0ENk.js → systemfeedback.B8FBckG4.js} +2 -2
- package/{tablist.CLKzkkTc.js → tablist.D3n9E4KM.js} +3 -3
- package/{tabs.ClFPZyaL.js → tabs.IVNsM5Gn.js} +2 -2
- package/{textarea.B06ZGH_0.js → textarea.gjb8VGgh.js} +3 -3
- package/{toast.uarxRSg4.js → toast.DU8Sd_4c.js} +3 -3
- package/{toastmanager.ClwydHnH.js → toastmanager.UlkvsO5p.js} +1 -1
- package/types/icon-types.d.ts +1 -1
- package/assets/ActionCard.C85bSGRa.css +0 -1
- package/assets/Dialog.DyiHUgTp.css +0 -1
- package/assets/Drawer.UugEajR2.css +0 -1
- package/assets/Fieldset.DmxbjOm1.css +0 -1
- package/assets/LinkButton.BEbmxP7h.css +0 -1
- package/assets/LinkCard.z1Yjue7-.css +0 -1
- package/assets/NavigationTabList.CzAiHz7G.css +0 -1
- package/assets/buttonround.BTC-HthI.css +0 -1
- package/assets/link.BemYqm4d.css +0 -1
- package/buttonround.C2Tbq4wh.js +0 -96
- package/chunks/ActionCard.oi3u27DL.js +0 -242
- package/chunks/Button.P9uWeVnl.js +0 -139
- package/chunks/CheckboxGroup.Bg9WSL5B.js +0 -74
- package/chunks/Dialog.C8pnDioL.js +0 -102
- package/chunks/Drawer.wTQvINDy.js +0 -107
- package/chunks/Fieldset.DdYeI2CZ.js +0 -81
- package/chunks/Icon.BoywkLCM.js +0 -232
- package/chunks/LinkButton.D20xLcuG.js +0 -140
- package/chunks/LinkCard.CXJLlBi2.js +0 -193
- package/chunks/NavigationTabList.CUFceGFf.js +0 -68
- package/chunks/RadioGroup.DkBkatv7.js +0 -125
- package/chunks/Slider.XqqBxGnd.js +0 -306
- package/fieldset.CZZsUwkL.js +0 -12
- package/input.DIJfEjWf.js +0 -188
- package/link.Cej-vl_K.js +0 -81
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as K, Fragment as oe, jsx as C } from "react/jsx-runtime";
|
|
3
|
+
import { d as D } from "./index.cKLI89Eg.js";
|
|
4
|
+
import { c as v } from "./index.DQOqod3i.js";
|
|
5
|
+
import le, { isValidElement as te, useRef as re, useEffect as ne, cloneElement as se } from "react";
|
|
6
|
+
import { g as ee } from "./helpers.CexwVao7.js";
|
|
7
|
+
import '../assets/ActionCard.BG8w8xUC.css';const ie = "ds-action-card_root_19077_1", ce = "ds-action-card_root--elevated_19077_24", de = "ds-action-card_root--clickable_19077_27", me = "ds-action-card_primary-action_19077_36", pe = "ds-action-card_media-wrapper_19077_50", fe = "ds-action-card_header_19077_50", ye = "ds-action-card_footer_19077_50", _e = "ds-action-card_supplementary_19077_50", ue = "ds-action-card_root--horizontal_19077_59", he = "ds-action-card_content_19077_78", Ne = "ds-action-card_content--padding-small_19077_83", be = "ds-action-card_root--horizontal-has-supplementary_19077_91", ge = "ds-action-card_root--padding-small_19077_94", Se = "ds-action-card_primary-action-label_19077_174", d = {
|
|
8
|
+
root: ie,
|
|
9
|
+
rootElevated: ce,
|
|
10
|
+
rootClickable: de,
|
|
11
|
+
primaryAction: me,
|
|
12
|
+
mediaWrapper: pe,
|
|
13
|
+
header: fe,
|
|
14
|
+
footer: ye,
|
|
15
|
+
supplementary: _e,
|
|
16
|
+
rootHorizontal: ue,
|
|
17
|
+
content: he,
|
|
18
|
+
contentPaddingSmall: Ne,
|
|
19
|
+
rootHorizontalHasSupplementary: be,
|
|
20
|
+
rootPaddingSmall: ge,
|
|
21
|
+
primaryActionLabel: Se
|
|
22
|
+
}, Ce = ({
|
|
23
|
+
aria: i,
|
|
24
|
+
cardElement: e
|
|
25
|
+
}) => {
|
|
26
|
+
const t = i?.["aria-labelledby"], a = i?.["aria-label"];
|
|
27
|
+
if (e) {
|
|
28
|
+
if (!t && !a)
|
|
29
|
+
throw new Error(ee("DSActionCard", "The 'aria' prop is required and must include either 'aria-labelledby' or 'aria-label'."));
|
|
30
|
+
if (t && !e.querySelector("#" + t))
|
|
31
|
+
throw new Error(ee("DSActionCard", `The provided 'aria-labelledby' value '${t}' does not match any element ID within the card.`));
|
|
32
|
+
}
|
|
33
|
+
}, P = (i, e) => {
|
|
34
|
+
const t = [];
|
|
35
|
+
return le.Children.forEach(i, (a) => {
|
|
36
|
+
if (!te(a))
|
|
37
|
+
return;
|
|
38
|
+
const l = a.type, o = e, r = o.displayName || o.name, m = l.displayName || l.name;
|
|
39
|
+
(a.type === e || m === r) && t.push(a);
|
|
40
|
+
}), t;
|
|
41
|
+
}, E = (i) => {
|
|
42
|
+
const e = D.c(47);
|
|
43
|
+
let t, a, l, o, r, m, c, p;
|
|
44
|
+
e[0] !== i ? ({
|
|
45
|
+
aria: t,
|
|
46
|
+
className: l,
|
|
47
|
+
classNameContentWrapper: o,
|
|
48
|
+
children: a,
|
|
49
|
+
orientation: m,
|
|
50
|
+
padding: c,
|
|
51
|
+
variant: p,
|
|
52
|
+
...r
|
|
53
|
+
} = i, e[0] = i, e[1] = t, e[2] = a, e[3] = l, e[4] = o, e[5] = r, e[6] = m, e[7] = c, e[8] = p) : (t = e[1], a = e[2], l = e[3], o = e[4], r = e[5], m = e[6], c = e[7], p = e[8]);
|
|
54
|
+
const h = m === void 0 ? "vertical" : m, f = c === void 0 ? "medium" : c, b = p === void 0 ? "outlined" : p, N = re(null);
|
|
55
|
+
let y;
|
|
56
|
+
e[9] !== a ? (y = P(a, Q), e[9] = a, e[10] = y) : y = e[10];
|
|
57
|
+
const g = y;
|
|
58
|
+
let _;
|
|
59
|
+
e[11] !== a ? (_ = P(a, U), e[11] = a, e[12] = _) : _ = e[12];
|
|
60
|
+
const u = _;
|
|
61
|
+
let n;
|
|
62
|
+
e[13] !== a ? (n = P(a, Y), e[13] = a, e[14] = n) : n = e[14];
|
|
63
|
+
const s = n;
|
|
64
|
+
let S;
|
|
65
|
+
e[15] !== a ? (S = P(a, X), e[15] = a, e[16] = S) : S = e[16];
|
|
66
|
+
const H = S;
|
|
67
|
+
let z;
|
|
68
|
+
e[17] !== a ? (z = P(a, Z), e[17] = a, e[18] = z) : z = e[18];
|
|
69
|
+
const k = z, F = k.length > 0, M = h === "horizontal", W = f === "small", R = h === "horizontal" && s.length > 0, j = b === "elevated";
|
|
70
|
+
let L;
|
|
71
|
+
e[19] !== l || e[20] !== F || e[21] !== W || e[22] !== R || e[23] !== j || e[24] !== M ? (L = v(d.root, l, {
|
|
72
|
+
[d.rootHorizontal]: M,
|
|
73
|
+
[d.rootPaddingSmall]: W,
|
|
74
|
+
[d.rootHorizontalHasSupplementary]: R,
|
|
75
|
+
[d.rootClickable]: F,
|
|
76
|
+
[d.rootElevated]: j
|
|
77
|
+
}), e[19] = l, e[20] = F, e[21] = W, e[22] = R, e[23] = j, e[24] = M, e[25] = L) : L = e[25];
|
|
78
|
+
const q = L, O = f === "small";
|
|
79
|
+
let w;
|
|
80
|
+
e[26] !== o || e[27] !== O ? (w = v(d.content, o, {
|
|
81
|
+
[d.contentPaddingSmall]: O
|
|
82
|
+
}), e[26] = o, e[27] = O, e[28] = w) : w = e[28];
|
|
83
|
+
const V = w;
|
|
84
|
+
let $;
|
|
85
|
+
e[29] !== t ? ($ = () => {
|
|
86
|
+
const ae = N.current;
|
|
87
|
+
process.env.NODE_ENV !== "production" && Ce({
|
|
88
|
+
aria: t,
|
|
89
|
+
cardElement: ae
|
|
90
|
+
});
|
|
91
|
+
}, e[29] = t, e[30] = $) : $ = e[30];
|
|
92
|
+
const B = t?.["aria-labelledby"], I = t?.["aria-label"];
|
|
93
|
+
let T;
|
|
94
|
+
e[31] !== B || e[32] !== I ? (T = [B, I], e[31] = B, e[32] = I, e[33] = T) : T = e[33], ne($, T);
|
|
95
|
+
const G = t?.["aria-labelledby"], J = t?.["aria-label"];
|
|
96
|
+
let A;
|
|
97
|
+
e[34] !== V || e[35] !== u || e[36] !== g ? (A = /* @__PURE__ */ K("div", { className: V, children: [
|
|
98
|
+
g,
|
|
99
|
+
u
|
|
100
|
+
] }), e[34] = V, e[35] = u, e[36] = g, e[37] = A) : A = e[37];
|
|
101
|
+
let x;
|
|
102
|
+
return e[38] !== H || e[39] !== k || e[40] !== r || e[41] !== q || e[42] !== s || e[43] !== G || e[44] !== J || e[45] !== A ? (x = /* @__PURE__ */ K("article", { ...r, "aria-labelledby": G, "aria-label": J, ref: N, className: q, children: [
|
|
103
|
+
k,
|
|
104
|
+
A,
|
|
105
|
+
s,
|
|
106
|
+
H
|
|
107
|
+
] }), e[38] = H, e[39] = k, e[40] = r, e[41] = q, e[42] = s, e[43] = G, e[44] = J, e[45] = A, e[46] = x) : x = e[46], x;
|
|
108
|
+
}, Q = (i) => {
|
|
109
|
+
const e = D.c(5), {
|
|
110
|
+
children: t,
|
|
111
|
+
className: a
|
|
112
|
+
} = i;
|
|
113
|
+
let l;
|
|
114
|
+
e[0] !== a ? (l = v(d.header, a) || void 0, e[0] = a, e[1] = l) : l = e[1];
|
|
115
|
+
const o = l;
|
|
116
|
+
let r;
|
|
117
|
+
return e[2] !== t || e[3] !== o ? (r = /* @__PURE__ */ C("header", { className: o, children: t }), e[2] = t, e[3] = o, e[4] = r) : r = e[4], r;
|
|
118
|
+
};
|
|
119
|
+
Q.displayName = "DSActionCard.Header";
|
|
120
|
+
const U = (i) => {
|
|
121
|
+
const e = D.c(5), {
|
|
122
|
+
children: t,
|
|
123
|
+
className: a
|
|
124
|
+
} = i;
|
|
125
|
+
let l;
|
|
126
|
+
e[0] !== a ? (l = v(d.footer, a) || void 0, e[0] = a, e[1] = l) : l = e[1];
|
|
127
|
+
const o = l;
|
|
128
|
+
let r;
|
|
129
|
+
return e[2] !== t || e[3] !== o ? (r = /* @__PURE__ */ C("footer", { className: o, children: t }), e[2] = t, e[3] = o, e[4] = r) : r = e[4], r;
|
|
130
|
+
};
|
|
131
|
+
U.displayName = "DSActionCard.Footer";
|
|
132
|
+
const X = (i) => {
|
|
133
|
+
const e = D.c(5), {
|
|
134
|
+
children: t,
|
|
135
|
+
className: a
|
|
136
|
+
} = i;
|
|
137
|
+
let l;
|
|
138
|
+
e[0] !== a ? (l = v(d.mediaWrapper, a) || void 0, e[0] = a, e[1] = l) : l = e[1];
|
|
139
|
+
const o = l;
|
|
140
|
+
let r;
|
|
141
|
+
return e[2] !== t || e[3] !== o ? (r = /* @__PURE__ */ C("div", { className: o, children: t }), e[2] = t, e[3] = o, e[4] = r) : r = e[4], r;
|
|
142
|
+
};
|
|
143
|
+
X.displayName = "DSActionCard.Media";
|
|
144
|
+
const Y = (i) => {
|
|
145
|
+
const e = D.c(5), {
|
|
146
|
+
children: t,
|
|
147
|
+
className: a
|
|
148
|
+
} = i;
|
|
149
|
+
let l;
|
|
150
|
+
e[0] !== a ? (l = v(d.supplementary, a) || void 0, e[0] = a, e[1] = l) : l = e[1];
|
|
151
|
+
const o = l;
|
|
152
|
+
let r;
|
|
153
|
+
return e[2] !== t || e[3] !== o ? (r = /* @__PURE__ */ C("div", { className: o, children: t }), e[2] = t, e[3] = o, e[4] = r) : r = e[4], r;
|
|
154
|
+
};
|
|
155
|
+
Y.displayName = "DSActionCard.Supplementary";
|
|
156
|
+
const Z = (i) => {
|
|
157
|
+
const e = D.c(56);
|
|
158
|
+
let t, a, l, o, r, m;
|
|
159
|
+
e[0] !== i ? ({
|
|
160
|
+
children: t,
|
|
161
|
+
className: a,
|
|
162
|
+
href: l,
|
|
163
|
+
linkComponent: o,
|
|
164
|
+
onClick: r,
|
|
165
|
+
...m
|
|
166
|
+
} = i, e[0] = i, e[1] = t, e[2] = a, e[3] = l, e[4] = o, e[5] = r, e[6] = m) : (t = e[1], a = e[2], l = e[3], o = e[4], r = e[5], m = e[6]);
|
|
167
|
+
let c, p, h, f, b, N, y, g, _, u;
|
|
168
|
+
if (e[7] !== t || e[8] !== a || e[9] !== o || e[10] !== m) {
|
|
169
|
+
g = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
170
|
+
e: {
|
|
171
|
+
f = v(d.primaryAction, a) || void 0;
|
|
172
|
+
const n = m;
|
|
173
|
+
if (e[21] !== n ? ({
|
|
174
|
+
download: p,
|
|
175
|
+
hrefLang: h,
|
|
176
|
+
ping: b,
|
|
177
|
+
referrerPolicy: N,
|
|
178
|
+
rel: y,
|
|
179
|
+
target: _,
|
|
180
|
+
type: u,
|
|
181
|
+
...c
|
|
182
|
+
} = n, e[21] = n, e[22] = c, e[23] = p, e[24] = h, e[25] = b, e[26] = N, e[27] = y, e[28] = _, e[29] = u) : (c = e[22], p = e[23], h = e[24], b = e[25], N = e[26], y = e[27], _ = e[28], u = e[29]), o && te(o)) {
|
|
183
|
+
let s;
|
|
184
|
+
e[30] !== t ? (s = /* @__PURE__ */ C("span", { className: d.primaryActionLabel, children: t }), e[30] = t, e[31] = s) : s = e[31];
|
|
185
|
+
let S;
|
|
186
|
+
e[32] !== o.props.children || e[33] !== s ? (S = /* @__PURE__ */ K(oe, { children: [
|
|
187
|
+
s,
|
|
188
|
+
o.props.children
|
|
189
|
+
] }), e[32] = o.props.children, e[33] = s, e[34] = S) : S = e[34], g = se(o, {
|
|
190
|
+
...o.props,
|
|
191
|
+
className: v(f, o.props.className),
|
|
192
|
+
children: S
|
|
193
|
+
});
|
|
194
|
+
break e;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
e[7] = t, e[8] = a, e[9] = o, e[10] = m, e[11] = c, e[12] = p, e[13] = h, e[14] = f, e[15] = b, e[16] = N, e[17] = y, e[18] = g, e[19] = _, e[20] = u;
|
|
198
|
+
} else
|
|
199
|
+
c = e[11], p = e[12], h = e[13], f = e[14], b = e[15], N = e[16], y = e[17], g = e[18], _ = e[19], u = e[20];
|
|
200
|
+
if (g !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel"))
|
|
201
|
+
return g;
|
|
202
|
+
if (l) {
|
|
203
|
+
let n;
|
|
204
|
+
e[35] !== t ? (n = /* @__PURE__ */ C("span", { className: d.primaryActionLabel, children: t }), e[35] = t, e[36] = n) : n = e[36];
|
|
205
|
+
let s;
|
|
206
|
+
return e[37] !== c || e[38] !== p || e[39] !== l || e[40] !== h || e[41] !== f || e[42] !== b || e[43] !== N || e[44] !== y || e[45] !== n || e[46] !== _ || e[47] !== u ? (s = /* @__PURE__ */ C("a", { href: l, className: f, download: p, hrefLang: h, ping: b, referrerPolicy: N, rel: y, target: _, type: u, ...c, children: n }), e[37] = c, e[38] = p, e[39] = l, e[40] = h, e[41] = f, e[42] = b, e[43] = N, e[44] = y, e[45] = n, e[46] = _, e[47] = u, e[48] = s) : s = e[48], s;
|
|
207
|
+
}
|
|
208
|
+
if (r) {
|
|
209
|
+
let n;
|
|
210
|
+
e[49] !== t ? (n = /* @__PURE__ */ C("span", { className: d.primaryActionLabel, children: t }), e[49] = t, e[50] = n) : n = e[50];
|
|
211
|
+
let s;
|
|
212
|
+
return e[51] !== c || e[52] !== f || e[53] !== r || e[54] !== n ? (s = /* @__PURE__ */ C("button", { type: "button", className: f, onClick: r, ...c, children: n }), e[51] = c, e[52] = f, e[53] = r, e[54] = n, e[55] = s) : s = e[55], s;
|
|
213
|
+
}
|
|
214
|
+
return null;
|
|
215
|
+
};
|
|
216
|
+
Z.displayName = "DSActionCard.PrimaryAction";
|
|
217
|
+
E.Header = Q;
|
|
218
|
+
E.Footer = U;
|
|
219
|
+
E.Media = X;
|
|
220
|
+
E.PrimaryAction = Z;
|
|
221
|
+
E.Supplementary = Y;
|
|
222
|
+
E.displayName = "DSActionCard";
|
|
223
|
+
export {
|
|
224
|
+
E as D,
|
|
225
|
+
P as g,
|
|
226
|
+
Ce as v
|
|
227
|
+
};
|
|
@@ -3,7 +3,7 @@ import { jsxs as pt, jsx as b, Fragment as _t } from "react/jsx-runtime";
|
|
|
3
3
|
import { d as mt } from "./index.cKLI89Eg.js";
|
|
4
4
|
import { c as R } from "./index.DQOqod3i.js";
|
|
5
5
|
import { forwardRef as vt } from "react";
|
|
6
|
-
import { D as kt } from "./Icon.
|
|
6
|
+
import { D as kt } from "./Icon.B0WqYErA.js";
|
|
7
7
|
import { NumberIndicator as bt } from "../numberindicator.ZGVRSmqf.js";
|
|
8
8
|
import { Tooltip as dt } from "../tooltip.C6HKano9.js";
|
|
9
9
|
import { g as m } from "./helpers.CexwVao7.js";
|
|
@@ -3,8 +3,8 @@ import { jsx as w, jsxs as V } from "react/jsx-runtime";
|
|
|
3
3
|
import { d as q } from "./index.cKLI89Eg.js";
|
|
4
4
|
import { c as F } from "./index.DQOqod3i.js";
|
|
5
5
|
import { isValidElement as M, useState as I, useEffect as O, cloneElement as R } from "react";
|
|
6
|
-
import { D as K } from "./Button.
|
|
7
|
-
import { DSLink as X } from "../link.
|
|
6
|
+
import { D as K } from "./Button.Dauhc5op.js";
|
|
7
|
+
import { DSLink as X } from "../link.CArLlIsR.js";
|
|
8
8
|
import { g as d, r as z } from "./helpers.CexwVao7.js";
|
|
9
9
|
import '../assets/Breadcrumb.BavNNzAA.css';const G = "ds-breadcrumb_root_1e9hu_1", H = "ds-breadcrumb_show-all-button_1e9hu_30", T = {
|
|
10
10
|
root: G,
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as vt, jsx as T } from "react/jsx-runtime";
|
|
3
|
+
import { d as kt } from "./index.cKLI89Eg.js";
|
|
4
|
+
import { c as _t } from "./index.DQOqod3i.js";
|
|
5
|
+
import { forwardRef as St } from "react";
|
|
6
|
+
import { u as bt } from "./useBreakpoint.1txsny17.js";
|
|
7
|
+
import { D as Dt } from "./Icon.B0WqYErA.js";
|
|
8
|
+
import { DSSpinner as Nt } from "../spinner.D1W-X96t.js";
|
|
9
|
+
import { Tooltip as ft } from "../tooltip.C6HKano9.js";
|
|
10
|
+
import { g as p } from "./helpers.CexwVao7.js";
|
|
11
|
+
import '../assets/Button.C-UYIggc.css';const Ot = "ds-button_root_146u3_1", Ft = "ds-button_root--highlight_146u3_75", Lt = "ds-button_root--dark-highlight_146u3_75", wt = "ds-button_root--filled_146u3_151", It = "ds-button_root--outline_146u3_179", yt = "ds-button_root--ghost_146u3_206", Bt = "ds-button_root--ghost-flush_146u3_231", Ht = "ds-button_root--small_146u3_237", Gt = "ds-button_root--navigation_146u3_317", Tt = "ds-button_root--navigation--stretched_146u3_393", Pt = "ds-button_root--navigation--stretched--icon-left_146u3_396", Ct = "ds-button_root--dark-filled_146u3_399", Et = "ds-button_root--dark-outline_146u3_456", At = "ds-button_root--dark-ghost_146u3_512", xt = "ds-button_root--dark-ghost-flush_146u3_566", zt = "ds-button_root--stretched_146u3_641", Vt = "ds-button_root--icon-left_146u3_644", jt = "ds-button_root--icon-only_146u3_647", Rt = "ds-button_root--icon-only-small_146u3_656", Ut = "ds-button_icon--navigation_146u3_672", Mt = "ds-button_icon--hidden_146u3_679", Zt = "ds-button_label--hidden_146u3_683", $t = "ds-button_label--loading_146u3_695", qt = "ds-button_loader_146u3_699", e = {
|
|
12
|
+
root: Ot,
|
|
13
|
+
rootHighlight: Ft,
|
|
14
|
+
rootDarkHighlight: Lt,
|
|
15
|
+
rootFilled: wt,
|
|
16
|
+
rootOutline: It,
|
|
17
|
+
rootGhost: yt,
|
|
18
|
+
rootGhostFlush: Bt,
|
|
19
|
+
rootSmall: Ht,
|
|
20
|
+
rootNavigation: Gt,
|
|
21
|
+
rootNavigationStretched: Tt,
|
|
22
|
+
rootNavigationStretchedIconLeft: Pt,
|
|
23
|
+
rootDarkFilled: Ct,
|
|
24
|
+
rootDarkOutline: Et,
|
|
25
|
+
rootDarkGhost: At,
|
|
26
|
+
rootDarkGhostFlush: xt,
|
|
27
|
+
rootStretched: zt,
|
|
28
|
+
rootIconLeft: Vt,
|
|
29
|
+
rootIconOnly: jt,
|
|
30
|
+
rootIconOnlySmall: Rt,
|
|
31
|
+
iconNavigation: Ut,
|
|
32
|
+
iconHidden: Mt,
|
|
33
|
+
labelHidden: Zt,
|
|
34
|
+
labelLoading: $t,
|
|
35
|
+
loader: qt
|
|
36
|
+
}, so = ["medium", "small"], lo = ["highlight", "filled", "outline", "ghost", "navigation"], Jt = ({
|
|
37
|
+
hideLabel: k,
|
|
38
|
+
iconName: S,
|
|
39
|
+
iconSource: t,
|
|
40
|
+
isFlush: l,
|
|
41
|
+
size: c,
|
|
42
|
+
stretched: r,
|
|
43
|
+
theme: s,
|
|
44
|
+
variant: i
|
|
45
|
+
}) => {
|
|
46
|
+
if (i === "navigation" && (c === "small" && console.warn(p("DSButton", 'A "size" prop should not be used in combination with variant="navigation". Please remove the "size" prop.')), s === "dark"))
|
|
47
|
+
throw new Error(p("DSButton", 'A DSButton with variant="navigation" does not support theme="dark". Please remove the "theme" prop.'));
|
|
48
|
+
i !== "ghost" && l ? console.warn(p("DSButton", 'The "isFlush" prop only has an effect when used with variant="ghost". Please remove the "isFlush" prop or set variant="ghost".')) : i === "ghost" && l && r && console.warn(p("DSButton", 'The "stretched" and "isFlush" props do not have an effect when used together. Please remove one of them.')), k && (!S && !t && console.warn(p("DSButton", 'The "hideLabel" prop is set to true but no icon is provided via "iconName" or "iconSource". Please provide an icon to ensure the button is not empty when the label is hidden.')), r && console.warn(p("DSButton", 'The "stretched" and "hideLabel" props do not have an effect when used together. Please remove one of them.')));
|
|
49
|
+
}, Kt = St((k, S) => {
|
|
50
|
+
const t = kt.c(77);
|
|
51
|
+
let l, c, r, s, i, h, g, D, N, O, F, L, w, I, y, B, u;
|
|
52
|
+
t[0] !== k ? ({
|
|
53
|
+
children: c,
|
|
54
|
+
aria: l,
|
|
55
|
+
className: r,
|
|
56
|
+
disabled: D,
|
|
57
|
+
hideLabel: N,
|
|
58
|
+
iconName: s,
|
|
59
|
+
iconPosition: O,
|
|
60
|
+
iconSource: i,
|
|
61
|
+
isFlush: F,
|
|
62
|
+
loading: L,
|
|
63
|
+
size: w,
|
|
64
|
+
stretched: I,
|
|
65
|
+
theme: y,
|
|
66
|
+
tooltip: u,
|
|
67
|
+
variant: B,
|
|
68
|
+
onClick: h,
|
|
69
|
+
...g
|
|
70
|
+
} = k, t[0] = k, t[1] = l, t[2] = c, t[3] = r, t[4] = s, t[5] = i, t[6] = h, t[7] = g, t[8] = D, t[9] = N, t[10] = O, t[11] = F, t[12] = L, t[13] = w, t[14] = I, t[15] = y, t[16] = B, t[17] = u) : (l = t[1], c = t[2], r = t[3], s = t[4], i = t[5], h = t[6], g = t[7], D = t[8], N = t[9], O = t[10], F = t[11], L = t[12], w = t[13], I = t[14], y = t[15], B = t[16], u = t[17]);
|
|
71
|
+
const P = D === void 0 ? !1 : D, pt = N === void 0 ? !1 : N, U = O === void 0 ? "left" : O, H = F === void 0 ? !1 : F, n = L === void 0 ? !1 : L, C = w === void 0 ? "medium" : w, mt = I === void 0 ? !1 : I, a = y === void 0 ? "light" : y, o = B === void 0 ? "filled" : B, _ = bt(pt), G = bt(mt);
|
|
72
|
+
process.env.NODE_ENV !== "production" && Jt({
|
|
73
|
+
hideLabel: _,
|
|
74
|
+
iconName: s,
|
|
75
|
+
iconSource: i,
|
|
76
|
+
isFlush: H,
|
|
77
|
+
size: C,
|
|
78
|
+
stretched: mt,
|
|
79
|
+
theme: a,
|
|
80
|
+
variant: o
|
|
81
|
+
});
|
|
82
|
+
const M = o === "filled", Z = o === "highlight", $ = o === "outline", q = o === "ghost" && H !== !0, J = o === "navigation", K = o === "navigation" && G && U === "right", Q = o === "navigation" && G && U === "left", W = o === "ghost" && H === !0, X = a === "dark" && o === "filled", Y = a === "dark" && o === "highlight", tt = a === "dark" && o === "outline", ot = a === "dark" && o === "ghost" && H !== !0, et = a === "dark" && o === "ghost" && H === !0, nt = C === "small" || o === "navigation", it = U === "left", st = _ && C === "medium" && o !== "navigation", lt = _ && C === "small" && o !== "navigation";
|
|
83
|
+
let E;
|
|
84
|
+
t[18] !== r || t[19] !== G || t[20] !== M || t[21] !== Z || t[22] !== $ || t[23] !== q || t[24] !== J || t[25] !== K || t[26] !== Q || t[27] !== W || t[28] !== X || t[29] !== Y || t[30] !== tt || t[31] !== ot || t[32] !== et || t[33] !== nt || t[34] !== it || t[35] !== st || t[36] !== lt ? (E = _t(e.root, r, {
|
|
85
|
+
[e.rootFilled]: M,
|
|
86
|
+
[e.rootHighlight]: Z,
|
|
87
|
+
[e.rootOutline]: $,
|
|
88
|
+
[e.rootGhost]: q,
|
|
89
|
+
[e.rootNavigation]: J,
|
|
90
|
+
[e.rootNavigationStretched]: K,
|
|
91
|
+
[e.rootNavigationStretchedIconLeft]: Q,
|
|
92
|
+
[e.rootGhostFlush]: W,
|
|
93
|
+
[e.rootDarkFilled]: X,
|
|
94
|
+
[e.rootDarkHighlight]: Y,
|
|
95
|
+
[e.rootDarkOutline]: tt,
|
|
96
|
+
[e.rootDarkGhost]: ot,
|
|
97
|
+
[e.rootDarkGhostFlush]: et,
|
|
98
|
+
[e.rootSmall]: nt,
|
|
99
|
+
[e.rootStretched]: G,
|
|
100
|
+
[e.rootIconLeft]: it,
|
|
101
|
+
[e.rootIconOnly]: st,
|
|
102
|
+
[e.rootIconOnlySmall]: lt
|
|
103
|
+
}), t[18] = r, t[19] = G, t[20] = M, t[21] = Z, t[22] = $, t[23] = q, t[24] = J, t[25] = K, t[26] = Q, t[27] = W, t[28] = X, t[29] = Y, t[30] = tt, t[31] = ot, t[32] = et, t[33] = nt, t[34] = it, t[35] = st, t[36] = lt, t[37] = E) : E = t[37];
|
|
104
|
+
const rt = E;
|
|
105
|
+
let A;
|
|
106
|
+
t[38] !== n || t[39] !== _ || t[40] !== o ? (A = _t({
|
|
107
|
+
[e.labelHidden]: _ && o !== "navigation",
|
|
108
|
+
[e.labelLoading]: n
|
|
109
|
+
}) || void 0, t[38] = n, t[39] = _, t[40] = o, t[41] = A) : A = t[41];
|
|
110
|
+
const at = A, dt = o === "navigation";
|
|
111
|
+
let x;
|
|
112
|
+
t[42] !== n || t[43] !== dt ? (x = _t({
|
|
113
|
+
[e.iconNavigation]: dt,
|
|
114
|
+
[e.iconHidden]: n
|
|
115
|
+
}), t[42] = n, t[43] = dt, t[44] = x) : x = t[44];
|
|
116
|
+
const ct = x, ht = a === "light" && o === "filled" || a === "dark" && o === "outline" || a === "dark" && o === "ghost" ? "dark" : "light";
|
|
117
|
+
let z;
|
|
118
|
+
t[45] !== P || t[46] !== n || t[47] !== h ? (z = (d) => {
|
|
119
|
+
if (P || n) {
|
|
120
|
+
d.preventDefault();
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
h && h(d);
|
|
124
|
+
}, t[45] = P, t[46] = n, t[47] = h, t[48] = z) : z = t[48];
|
|
125
|
+
const ut = z, gt = P || n;
|
|
126
|
+
let f;
|
|
127
|
+
t[49] !== n ? (f = n && /* @__PURE__ */ T(Nt, { className: e.loader, aria: {
|
|
128
|
+
"aria-label": "Loading state"
|
|
129
|
+
} }), t[49] = n, t[50] = f) : f = t[50];
|
|
130
|
+
let m;
|
|
131
|
+
t[51] !== c || t[52] !== at ? (m = /* @__PURE__ */ T("span", { className: at, children: c }), t[51] = c, t[52] = at, t[53] = m) : m = t[53];
|
|
132
|
+
let v;
|
|
133
|
+
t[54] !== ct || t[55] !== s || t[56] !== i || t[57] !== ht ? (v = (s || i) && /* @__PURE__ */ T(Dt, { name: s, theme: ht, source: i, className: ct, "aria-hidden": "true" }), t[54] = ct, t[55] = s, t[56] = i, t[57] = ht, t[58] = v) : v = t[58];
|
|
134
|
+
let V;
|
|
135
|
+
t[59] !== l || t[60] !== ut || t[61] !== n || t[62] !== S || t[63] !== g || t[64] !== rt || t[65] !== gt || t[66] !== f || t[67] !== m || t[68] !== v ? (V = /* @__PURE__ */ vt("button", { className: rt, type: "submit", onClick: ut, ...l, ...g, "aria-disabled": gt, "aria-busy": n, ref: S, children: [
|
|
136
|
+
f,
|
|
137
|
+
m,
|
|
138
|
+
v
|
|
139
|
+
] }), t[59] = l, t[60] = ut, t[61] = n, t[62] = S, t[63] = g, t[64] = rt, t[65] = gt, t[66] = f, t[67] = m, t[68] = v, t[69] = V) : V = t[69];
|
|
140
|
+
const j = V;
|
|
141
|
+
if (u) {
|
|
142
|
+
let d;
|
|
143
|
+
t[70] !== j ? (d = /* @__PURE__ */ T(ft.Anchor, { children: j }), t[70] = j, t[71] = d) : d = t[71];
|
|
144
|
+
let b;
|
|
145
|
+
t[72] !== u ? (b = /* @__PURE__ */ T(ft.Content, { children: u }), t[72] = u, t[73] = b) : b = t[73];
|
|
146
|
+
let R;
|
|
147
|
+
return t[74] !== d || t[75] !== b ? (R = /* @__PURE__ */ vt(ft, { placement: "top", tooltipOffset: 6, children: [
|
|
148
|
+
d,
|
|
149
|
+
b
|
|
150
|
+
] }), t[74] = d, t[75] = b, t[76] = R) : R = t[76], R;
|
|
151
|
+
}
|
|
152
|
+
return j;
|
|
153
|
+
});
|
|
154
|
+
Kt.displayName = "DSButton";
|
|
155
|
+
export {
|
|
156
|
+
so as B,
|
|
157
|
+
Kt as D,
|
|
158
|
+
lo as a,
|
|
159
|
+
Jt as v
|
|
160
|
+
};
|
|
@@ -4,8 +4,8 @@ import { c as x } from "./index.DQOqod3i.js";
|
|
|
4
4
|
import { forwardRef as j, useRef as B, useState as H, useEffect as V, useCallback as $ } from "react";
|
|
5
5
|
import { u as A } from "./useBreakpoint.1txsny17.js";
|
|
6
6
|
import "./index.cKLI89Eg.js";
|
|
7
|
-
import { D as _ } from "./Icon.
|
|
8
|
-
import { D as L } from "./SystemFeedback.
|
|
7
|
+
import { D as _ } from "./Icon.B0WqYErA.js";
|
|
8
|
+
import { D as L } from "./SystemFeedback.Dq3ZphgG.js";
|
|
9
9
|
import { g as C } from "./helpers.CexwVao7.js";
|
|
10
10
|
import '../assets/Checkbox.ZAPIO2N8.css';const O = "ds-checkbox_root_xklfa_1", U = "ds-checkbox_root--disabled_xklfa_21", z = "ds-checkbox_checkbox_xklfa_25", F = "ds-checkbox_icon-check_xklfa_41", J = "ds-checkbox_icon-minus_xklfa_42", K = "ds-checkbox_checkbox--invalid_xklfa_66", Q = "ds-checkbox_label--hidden_xklfa_71", R = "ds-checkbox_input_xklfa_84", T = "ds-checkbox_label_xklfa_71", W = "ds-checkbox_feedback_xklfa_198", e = {
|
|
11
11
|
root: O,
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as q } from "react/jsx-runtime";
|
|
3
|
+
import { d as z } from "./index.cKLI89Eg.js";
|
|
4
|
+
import { c as P } from "./index.DQOqod3i.js";
|
|
5
|
+
import { D as I } from "./Fieldset.DxhNhprT.js";
|
|
6
|
+
import E from "react";
|
|
7
|
+
import { g as v, r as L } from "./helpers.CexwVao7.js";
|
|
8
|
+
import { D as F } from "./Checkbox.C5Jgtwho.js";
|
|
9
|
+
import '../assets/CheckboxGroup.Dd-Huo7x.css';const H = "ds-checkbox-group_root_12fot_1", O = "ds-checkbox-group_root--horizontal_12fot_9", T = "ds-checkbox-group_root--invalid_12fot_12", G = {
|
|
10
|
+
root: H,
|
|
11
|
+
rootHorizontal: O,
|
|
12
|
+
rootInvalid: T
|
|
13
|
+
}, V = ({
|
|
14
|
+
children: l,
|
|
15
|
+
description: e,
|
|
16
|
+
hideLegend: t,
|
|
17
|
+
id: s,
|
|
18
|
+
legend: r,
|
|
19
|
+
popoverContent: i,
|
|
20
|
+
systemFeedback: n
|
|
21
|
+
}) => {
|
|
22
|
+
if (!s && (e || n))
|
|
23
|
+
throw new Error(v("DSCheckboxGroup", 'A unique "id" prop is required when providing the description or systemFeedback property. Please add a unique "id" prop to the DSCheckboxGroup component.'));
|
|
24
|
+
if (!r)
|
|
25
|
+
throw new Error(v("DSCheckboxGroup", L("legend", "DSCheckboxGroup")));
|
|
26
|
+
if (!l)
|
|
27
|
+
throw new Error(v("DSCheckboxGroup", "The component requires DSCheckbox components to be explicitly set as its children. Ensure that you include individual DSCheckbox components within the DSCheckboxGroup to create a cohesive checkbox group."));
|
|
28
|
+
t && i && console.warn(v("DSCheckboxGroup", 'Setting "hideLegend" and "popoverContent" at the same time is not supported. The popover info button is part of the legend and will be hidden along with it. Please remove either "hideLegend" or "popoverContent".')), E.Children.forEach(l, (o) => {
|
|
29
|
+
if (!E.isValidElement(o) || // Object.keys(child.type)[1] !== '_payload' checks if the object is currently in a hydration phase
|
|
30
|
+
o.type !== F && Object.keys(o.type)[1] !== "_payload") {
|
|
31
|
+
const a = E.isValidElement(o) ? `Currently you are passing a child of type: ${JSON.stringify(o.type)}.` : "Currently you are passing an invalid React element.";
|
|
32
|
+
throw new Error(v("DSCheckboxGroup", `The component requires the children to be DSCheckbox elements. ${a} Ensure that you include individual DSCheckbox components within the DSCheckboxGroup to create a cohesive checkbox group.`));
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
}, K = (l) => {
|
|
36
|
+
const e = z.c(35);
|
|
37
|
+
let t, s, r, i, n, o, a, d, c, h, u, m, f, b;
|
|
38
|
+
e[0] !== l ? ({
|
|
39
|
+
children: t,
|
|
40
|
+
legend: n,
|
|
41
|
+
className: s,
|
|
42
|
+
description: r,
|
|
43
|
+
direction: h,
|
|
44
|
+
disabled: u,
|
|
45
|
+
hideLegend: m,
|
|
46
|
+
id: i,
|
|
47
|
+
invalid: f,
|
|
48
|
+
popoverContent: o,
|
|
49
|
+
popoverInfoButtonProps: a,
|
|
50
|
+
required: b,
|
|
51
|
+
systemFeedback: c,
|
|
52
|
+
...d
|
|
53
|
+
} = l, e[0] = l, e[1] = t, e[2] = s, e[3] = r, e[4] = i, e[5] = n, e[6] = o, e[7] = a, e[8] = d, e[9] = c, e[10] = h, e[11] = u, e[12] = m, e[13] = f, e[14] = b) : (t = e[1], s = e[2], r = e[3], i = e[4], n = e[5], o = e[6], a = e[7], d = e[8], c = e[9], h = e[10], u = e[11], m = e[12], f = e[13], b = e[14]);
|
|
54
|
+
const N = h === void 0 ? "vertical" : h, D = u === void 0 ? !1 : u, x = m === void 0 ? !1 : m, k = f === void 0 ? !1 : f, S = b === void 0 ? !1 : b;
|
|
55
|
+
process.env.NODE_ENV !== "production" && V({
|
|
56
|
+
children: t,
|
|
57
|
+
description: r,
|
|
58
|
+
hideLegend: x,
|
|
59
|
+
id: i,
|
|
60
|
+
legend: n,
|
|
61
|
+
popoverContent: o,
|
|
62
|
+
systemFeedback: c
|
|
63
|
+
});
|
|
64
|
+
const y = N === "horizontal", w = k && !!c;
|
|
65
|
+
let C;
|
|
66
|
+
e[15] !== y || e[16] !== w ? (C = P(G.root, {
|
|
67
|
+
[G.rootHorizontal]: y,
|
|
68
|
+
[G.rootInvalid]: w
|
|
69
|
+
}), e[15] = y, e[16] = w, e[17] = C) : C = e[17];
|
|
70
|
+
const _ = C;
|
|
71
|
+
let p;
|
|
72
|
+
e[18] !== t || e[19] !== _ ? (p = /* @__PURE__ */ q("div", { className: _, children: t }), e[18] = t, e[19] = _, e[20] = p) : p = e[20];
|
|
73
|
+
let g;
|
|
74
|
+
return e[21] !== s || e[22] !== r || e[23] !== D || e[24] !== x || e[25] !== i || e[26] !== k || e[27] !== n || e[28] !== o || e[29] !== a || e[30] !== S || e[31] !== d || e[32] !== c || e[33] !== p ? (g = /* @__PURE__ */ q(I, { id: i, legend: n, className: s, description: r, disabled: D, hideLegend: x, required: S, invalid: k, systemFeedback: c, popoverContent: o, popoverInfoButtonProps: a, ...d, children: p }), e[21] = s, e[22] = r, e[23] = D, e[24] = x, e[25] = i, e[26] = k, e[27] = n, e[28] = o, e[29] = a, e[30] = S, e[31] = d, e[32] = c, e[33] = p, e[34] = g) : g = e[34], g;
|
|
75
|
+
};
|
|
76
|
+
export {
|
|
77
|
+
K as D,
|
|
78
|
+
V as v
|
|
79
|
+
};
|
|
@@ -4,7 +4,7 @@ import { d as q } from "./index.cKLI89Eg.js";
|
|
|
4
4
|
import { c as H } from "./index.DQOqod3i.js";
|
|
5
5
|
import { forwardRef as U } from "react";
|
|
6
6
|
import { t as M } from "./translate.nuU7uChI.js";
|
|
7
|
-
import { D as z } from "./Icon.
|
|
7
|
+
import { D as z } from "./Icon.B0WqYErA.js";
|
|
8
8
|
import { Tooltip as N } from "../tooltip.C6HKano9.js";
|
|
9
9
|
import { g as $, r as x } from "./helpers.CexwVao7.js";
|
|
10
10
|
import '../assets/Chip.D3vV0wyV.css';const j = "ds-chip-group_chip_aidwn_1", B = "ds-chip-group_chip--small_aidwn_30", F = {
|
|
@@ -11,10 +11,10 @@ import { t as zt } from "./translate.nuU7uChI.js";
|
|
|
11
11
|
import { g as ce, r as kt } from "./helpers.CexwVao7.js";
|
|
12
12
|
import { u as jt } from "./useBreakpoint.1txsny17.js";
|
|
13
13
|
import { Asterisk as Ut } from "../asterisk.Dwtdwpkq.js";
|
|
14
|
-
import { D as ge } from "./Icon.
|
|
15
|
-
import { D as Qt } from "./Popover.
|
|
16
|
-
import { D as _t } from "./SystemFeedback.
|
|
17
|
-
import { OptionCheckbox as $t } from "../optioncheckbox.
|
|
14
|
+
import { D as ge } from "./Icon.B0WqYErA.js";
|
|
15
|
+
import { D as Qt } from "./Popover.Cyf3CbLl.js";
|
|
16
|
+
import { D as _t } from "./SystemFeedback.Dq3ZphgG.js";
|
|
17
|
+
import { OptionCheckbox as $t } from "../optioncheckbox.BQo8riVL.js";
|
|
18
18
|
import '../assets/CustomReactSelect.Ctze4SRN.css';const qo = ({
|
|
19
19
|
id: n,
|
|
20
20
|
label: e,
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as n, jsxs as E } from "react/jsx-runtime";
|
|
3
|
+
import { c as r } from "./index.DQOqod3i.js";
|
|
4
|
+
import { useRef as g, useState as F, useEffect as m } from "react";
|
|
5
|
+
import { D as W } from "./Button.Dauhc5op.js";
|
|
6
|
+
import { g as x } from "./helpers.CexwVao7.js";
|
|
7
|
+
import "./index.cKLI89Eg.js";
|
|
8
|
+
import '../assets/Dialog.BKwWy1g2.css';const R = "ds-dialog_root_11kdc_5", y = "ds-dialog_content-wrapper_11kdc_166", z = "ds-dialog_content-wrapper--no-footer_11kdc_172", L = "ds-dialog_close-button_11kdc_180", M = "ds-dialog_header_11kdc_193", j = "ds-dialog_content_11kdc_166", H = "ds-dialog_footer_11kdc_195", I = "ds-dialog_header--scrollable_11kdc_216", O = "ds-dialog_header--close-button_11kdc_225", P = "ds-dialog_content--no-footer_11kdc_238", T = "ds-dialog_footer--scrollable_11kdc_273", o = {
|
|
9
|
+
root: R,
|
|
10
|
+
contentWrapper: y,
|
|
11
|
+
contentWrapperNoFooter: z,
|
|
12
|
+
closeButton: L,
|
|
13
|
+
header: M,
|
|
14
|
+
content: j,
|
|
15
|
+
footer: H,
|
|
16
|
+
headerScrollable: I,
|
|
17
|
+
headerCloseButton: O,
|
|
18
|
+
contentNoFooter: P,
|
|
19
|
+
footerScrollable: T
|
|
20
|
+
}, V = ({
|
|
21
|
+
tabIndex: c
|
|
22
|
+
}) => {
|
|
23
|
+
if (c || c === 0)
|
|
24
|
+
throw new Error(x("DSDialog", "Do not pass the tabindex property to the DSDialog component as it is not interactive and does not receive focus. The DSDialogs contents, including the close button contained in the DSDialog, can receive focus and be interactive."));
|
|
25
|
+
}, U = ({
|
|
26
|
+
children: c,
|
|
27
|
+
className: b,
|
|
28
|
+
closeButtonProps: D,
|
|
29
|
+
disableBackdropClose: S = !1,
|
|
30
|
+
footer: s,
|
|
31
|
+
header: k,
|
|
32
|
+
hideCloseButton: a = !1,
|
|
33
|
+
isOpen: d = !1,
|
|
34
|
+
onClose: l,
|
|
35
|
+
...i
|
|
36
|
+
}) => {
|
|
37
|
+
if (process.env.NODE_ENV !== "production") {
|
|
38
|
+
const {
|
|
39
|
+
tabIndex: e
|
|
40
|
+
} = i;
|
|
41
|
+
V({
|
|
42
|
+
tabIndex: e
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
const {
|
|
46
|
+
label: v = "Close dialog",
|
|
47
|
+
...N
|
|
48
|
+
} = D || {}, t = g(null), u = g(null), [f, B] = F(!1);
|
|
49
|
+
m(() => {
|
|
50
|
+
const e = u.current;
|
|
51
|
+
if (e) {
|
|
52
|
+
const h = () => {
|
|
53
|
+
B(e.scrollHeight > e.clientHeight);
|
|
54
|
+
};
|
|
55
|
+
h();
|
|
56
|
+
const p = new ResizeObserver(h);
|
|
57
|
+
return p.observe(e), () => {
|
|
58
|
+
p.disconnect();
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
}, []), m(() => {
|
|
62
|
+
const e = t.current;
|
|
63
|
+
if (e)
|
|
64
|
+
return e.addEventListener("close", _), d ? e.showModal() : e.close(), () => {
|
|
65
|
+
e.removeEventListener("close", _);
|
|
66
|
+
};
|
|
67
|
+
}, [d, l]);
|
|
68
|
+
const _ = () => {
|
|
69
|
+
l && l();
|
|
70
|
+
}, w = (e) => {
|
|
71
|
+
S || t.current && e.target === t.current && t.current.close();
|
|
72
|
+
}, C = () => {
|
|
73
|
+
t.current && t.current.close();
|
|
74
|
+
};
|
|
75
|
+
return /* @__PURE__ */ n("dialog", { ...i, ref: t, className: r(o.root, b), onMouseDown: (e) => w(e), "aria-modal": "true", children: /* @__PURE__ */ E("div", { className: r(o.contentWrapper, {
|
|
76
|
+
[o.contentWrapperNoFooter]: !s
|
|
77
|
+
}), children: [
|
|
78
|
+
!a && /* @__PURE__ */ n(W, { ...N, className: o.closeButton, hideLabel: !0, iconName: "cross", size: "small", type: "button", variant: "ghost", onClick: () => C(), children: v }),
|
|
79
|
+
/* @__PURE__ */ n("header", { className: r(o.header, {
|
|
80
|
+
[o.headerCloseButton]: !a,
|
|
81
|
+
[o.headerScrollable]: f
|
|
82
|
+
}), children: k }),
|
|
83
|
+
/* @__PURE__ */ n(
|
|
84
|
+
"div",
|
|
85
|
+
{
|
|
86
|
+
ref: u,
|
|
87
|
+
className: r(o.content, {
|
|
88
|
+
[o.contentNoFooter]: !s
|
|
89
|
+
}),
|
|
90
|
+
tabIndex: 0,
|
|
91
|
+
children: c
|
|
92
|
+
}
|
|
93
|
+
),
|
|
94
|
+
s && /* @__PURE__ */ n("footer", { className: r(o.footer, {
|
|
95
|
+
[o.footerScrollable]: f
|
|
96
|
+
}), children: s })
|
|
97
|
+
] }) });
|
|
98
|
+
};
|
|
99
|
+
export {
|
|
100
|
+
U as D,
|
|
101
|
+
V as v
|
|
102
|
+
};
|