@stihl-design-system/components 1.0.0-RC.24 → 1.0.0-RC.26
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.T4ah-Sa6.js → accordion.CBaDU14g.js} +3 -3
- package/actionbutton.DEJsLxnQ.js +11 -0
- package/actionbutton.d.ts +2 -0
- package/actionlink.Cs6BTCA3.js +11 -0
- package/actionlink.d.ts +2 -0
- package/{arialiveregions.DVsA5OTR.js → arialiveregions.Fgcshs5k.js} +1 -1
- package/assets/ActionButton.Ewi0i1hW.css +1 -0
- package/assets/ActionLink.BdPEvuGm.css +1 -0
- package/assets/Button.Dw8H5nFS.css +1 -0
- package/assets/Icon.QeJ7TxZs.css +1 -0
- package/assets/InputFile.Dqjz53mb.css +1 -0
- package/assets/LinkButton.xMvg_ojf.css +1 -0
- package/assets/NavigationTabList.CFlVhUzS.css +1 -0
- package/assets/Popover.BDTDsPAt.css +1 -0
- package/assets/buttonround.Cw9hnUan.css +1 -0
- package/assets/{numberindicator.BJnvB-K3.css → numberindicator.O6XwvtL0.css} +1 -1
- package/{breadcrumb.gcCDIVj2.js → breadcrumb.x78HJy5P.js} +3 -3
- package/button.BD_04tIG.js +12 -0
- package/buttonround.BT3OfowK.js +81 -0
- package/{checkbox.CvWI1Jrx.js → checkbox.BktYXQmJ.js} +3 -3
- package/{checkboxgroup.BLpSLo9t.js → checkboxgroup.YK8H0YoX.js} +2 -2
- package/{chip.BsDriMfL.js → chip.BKtNbt4y.js} +2 -2
- package/{chipgroup.D1Km301k.js → chipgroup.Bp_v9IQu.js} +2 -2
- package/chunks/{Accordion.BKSnVQtR.js → Accordion.eVOD7J_8.js} +3 -3
- package/chunks/ActionButton.Ck1rGqgm.js +165 -0
- package/chunks/ActionLink.DnUNjoAT.js +138 -0
- package/chunks/{AriaLiveRegions.utils.zSFFD3SF.js → AriaLiveRegions.utils.Cb327d_2.js} +1 -1
- package/chunks/{Breadcrumb.Cq3I3bPY.js → Breadcrumb.B7g30dIO.js} +8 -8
- package/chunks/Button.CC0qEsuR.js +127 -0
- package/chunks/{Checkbox.Ch8DBzws.js → Checkbox.BIQAKBVy.js} +3 -3
- package/chunks/{CheckboxGroup.C8D6tjVI.js → CheckboxGroup.DHzpgOWp.js} +3 -3
- package/chunks/{Chip.CHy8cZJz.js → Chip.DifLxHH7.js} +3 -3
- package/chunks/{CustomReactSelect.hdDSE0ON.js → CustomReactSelect.DWdh3k_q.js} +1340 -1580
- package/chunks/{Dialog.ZSSlU83U.js → Dialog.BuEEJ199.js} +2 -2
- package/chunks/{Drawer.CR4lh9pD.js → Drawer.BXUGmpJI.js} +13 -13
- package/chunks/{Fieldset.DHccz6TP.js → Fieldset.BX46NuLh.js} +2 -2
- package/chunks/Header.CsrzyVil.js +356 -0
- package/chunks/{Icon.CAXZUNWo.js → Icon.C0161Glk.js} +70 -67
- package/chunks/{Input.utils.CCYTBWD_.js → Input.utils.Cnnzvuk4.js} +1 -1
- package/chunks/{InputFile.DME1xfrc.js → InputFile.vkkg5Pab.js} +32 -32
- package/chunks/{InputPassword.CitwH0gw.js → InputPassword.BQU09DJh.js} +16 -16
- package/chunks/{InputSearch.BS5Tk698.js → InputSearch.CXL9ThpX.js} +68 -68
- package/chunks/{InputStepper.CNfA7g7U.js → InputStepper.BhLQVAlo.js} +18 -18
- package/chunks/LinkButton.DmXVHeyZ.js +117 -0
- package/chunks/NavigationTabList.IQM074Vb.js +57 -0
- package/chunks/{NavigationTabs.BbubgqFM.js → NavigationTabs.CuOXq0b7.js} +2 -2
- package/chunks/{Notification.CSMpFjaH.js → Notification.B-3dPVUE.js} +11 -11
- package/chunks/Popover.hXQTvwwd.js +1685 -0
- package/chunks/{RadioGroup.D9mECdMK.js → RadioGroup.okEm_-NA.js} +2 -2
- package/chunks/{Select.DCxMPsCm.js → Select.D3IUIdPJ.js} +3 -3
- package/chunks/{Slider.DEERUF2g.js → Slider.CPG4Btbq.js} +2 -2
- package/chunks/{Tabs.CPCtV-Qz.js → Tabs.C4qGWCcD.js} +2 -2
- package/chunks/Text.DGWeWF1y.js +75 -0
- package/chunks/{Textarea.Bs4-nzu8.js → Textarea.D4vXRg_U.js} +2 -2
- package/chunks/{Toast.BFFytKOu.js → Toast.BHz0vlGz.js} +2 -2
- package/chunks/floating-ui.dom.C9TD1WpB.js +950 -0
- package/chunks/helpers.BbWkXTr3.js +37 -0
- package/{combobox.DW_ey38o.js → combobox.DIB07SNA.js} +1 -1
- package/components/ActionButton/ActionButton.d.ts +61 -0
- package/components/ActionButton/ActionButton.test.d.ts +1 -0
- package/components/ActionButton/ActionButton.utils.d.ts +22 -0
- package/components/ActionButton/ActionButton.utils.test.d.ts +1 -0
- package/components/ActionLink/ActionLink.d.ts +38 -0
- package/components/ActionLink/ActionLink.test.d.ts +1 -0
- package/components/ActionLink/ActionLink.utils.d.ts +19 -0
- package/components/ActionLink/ActionLink.utils.test.d.ts +1 -0
- package/components/Button/Button.utils.d.ts +18 -1
- package/components/Button/Button.utils.test.d.ts +1 -0
- package/components/Header/Header.utils.d.ts +0 -2
- package/components/Icon/Icon.d.ts +1 -1
- package/components/Icon/Icon.utils.d.ts +1 -1
- package/components/LinkButton/LinkButton.utils.d.ts +18 -1
- package/components/LinkButton/LinkButton.utils.test.d.ts +1 -0
- package/components/Popover/Popover.d.ts +40 -0
- package/components/Popover/Popover.test.d.ts +1 -0
- package/components/Popover/Popover.utils.d.ts +53 -0
- package/components/Popover/Popover.utils.test.d.ts +1 -0
- package/components/Text/Text.utils.d.ts +14 -1
- package/connected-icon.svg +1 -0
- package/{customreactselect.DcH7h1mb.js → customreactselect.BvuvCDyE.js} +4 -4
- package/{dialog.BLaDkoYL.js → dialog.CGsUCqhR.js} +2 -2
- package/{drawer.DQOaxczX.js → drawer.BcAo4TO0.js} +2 -2
- package/{fieldset.D6q9YXrO.js → fieldset.DM9ELUJa.js} +2 -2
- package/{filelist.Ba5xMDGg.js → filelist.Cj9U-Jx8.js} +3 -3
- package/{flag.BR312AU-.js → flag.BHaAfp6B.js} +1 -1
- package/{floatingactionbutton.Do6eNSHq.js → floatingactionbutton.DSZXUHB_.js} +2 -2
- package/{header.5iwPmK5V.js → header.DLrTpc-W.js} +2 -2
- package/{icon.HkVs68n_.js → icon.DwfGhFCd.js} +1 -1
- package/icon.svg +1 -1
- package/imow-icon.svg +1 -0
- package/index.d.ts +6 -0
- package/index.es.js +195 -173
- package/{input.REQvMr96.js → input.D4OiEI8g.js} +23 -23
- package/{inputfile.D0VMZuDy.js → inputfile.Cmkxf4Vq.js} +6 -6
- package/{inputpassword.ovZjXw8s.js → inputpassword.CYfGcUE-.js} +3 -3
- package/{inputsearch.Bj8EfXX5.js → inputsearch.CecX8gHD.js} +4 -4
- package/{inputstepper.BMtVUIoM.js → inputstepper.CFgfHjM_.js} +4 -4
- package/{link.2XoCKjFH.js → link.DGuYGfh2.js} +2 -2
- package/linkbutton.B3q0B_yb.js +11 -0
- package/{logo.B9taqlZR.js → logo.C96KaG1P.js} +1 -1
- package/mystihl-icon.svg +1 -0
- package/navigationtablist.CS9yEGdP.js +9 -0
- package/{navigationtabs.Dpgk-3SR.js → navigationtabs.B86G8ODY.js} +2 -2
- package/{notification.Dv9ig-VY.js → notification.D8BDaU5x.js} +3 -3
- package/numberindicator.Ddf3ESi7.js +33 -0
- package/{optioncheckbox.DYKRBTy0.js → optioncheckbox.CEEPAq0u.js} +1 -1
- package/package.json +3 -1
- package/partials/assets.const.js +2 -0
- package/partials/copyAssets.js +4 -2
- package/partials/index.js +46 -28
- package/partials/lib/partials.d.ts +1 -1
- package/popover.BFx99cHg.js +10 -0
- package/popover.d.ts +2 -0
- package/{radiogroup.BnMkpjvV.js → radiogroup.C2PkTHnF.js} +2 -2
- package/{select.BSvjDIVC.js → select.CmGQdpsV.js} +3 -3
- package/{skiptocontent.CZlRYx9p.js → skiptocontent.D1UkPmhD.js} +11 -11
- package/{slider.D1BsPd0g.js → slider.DGmVtnxs.js} +2 -2
- package/{spinner.t5FHjIEK.js → spinner.CeGt8DxU.js} +1 -1
- package/styles/scss/ds/lib/ds-internal/_link-button.scss +21 -2
- package/styles/scss/ds/lib/link-button.scss +9 -0
- package/styles/scss/ds/lib/text.scss +24 -0
- package/{switch.QUUSE9ZF.js → switch.CtULjgZq.js} +2 -2
- package/{systemfeedback.BpKZEv4U.js → systemfeedback.CLQCbTF6.js} +1 -1
- package/{tablist.CRMbhl0A.js → tablist.CcCURua8.js} +5 -5
- package/{tabs.C0wEoFwL.js → tabs.Dby_2Hyz.js} +2 -2
- package/{topbar.BPSDyH0N.js → text.ZOUuesnU.js} +3 -3
- package/{textarea.D0ADOdR6.js → textarea.yOTo23Pd.js} +3 -3
- package/{toast.BhclbJsT.js → toast.Bhpwj1NF.js} +3 -3
- package/{toastmanager.aZGcyVFF.js → toastmanager.BHk65ynQ.js} +3 -3
- package/topbar.qNB9efbF.js +11 -0
- package/utils/helpers.d.ts +10 -0
- package/assets/Icon.ZNrKuqgu.css +0 -1
- package/assets/InputFile.Dx_CULYq.css +0 -1
- package/assets/NavigationTabList.B6x56sAV.css +0 -1
- package/assets/button.H5AqLh2o.css +0 -1
- package/assets/buttonround.C-l_HArD.css +0 -1
- package/assets/linkbutton.DuHHqo7Z.css +0 -1
- package/button.Bt0-bRGX.js +0 -106
- package/buttonround.DWclCEVH.js +0 -81
- package/chunks/Header.DPafHEKw.js +0 -384
- package/chunks/NavigationTabList.BeGdzxOj.js +0 -57
- package/chunks/helpers.CcqWV-wZ.js +0 -8
- package/linkbutton.nddFCT_K.js +0 -92
- package/navigationtablist.B1WjOPFB.js +0 -9
- package/numberindicator.BPWvqr7f.js +0 -33
- package/text.BBwtpoiR.js +0 -49
- /package/assets/{text.Dgpj61UP.css → Text.Dgpj61UP.css} +0 -0
package/buttonround.DWclCEVH.js
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs as A, jsx as $ } from "react/jsx-runtime";
|
|
3
|
-
import { d as G } from "./chunks/index.CgTHIF3K.js";
|
|
4
|
-
import { c as q } from "./chunks/index.CEyLAtio.js";
|
|
5
|
-
import { D as J } from "./chunks/Icon.CAXZUNWo.js";
|
|
6
|
-
import { DSSpinner as K } from "./spinner.t5FHjIEK.js";
|
|
7
|
-
import { forwardRef as M } from "react";
|
|
8
|
-
import './assets/buttonround.C-l_HArD.css';const P = "ds-button-round_root_oobgt_1", Q = "ds-button-round_root--highlight_oobgt_75", U = "ds-button-round_root--dark-highlight_oobgt_75", V = "ds-button-round_root--filled_oobgt_151", W = "ds-button-round_root--dark-filled_oobgt_317", X = "ds-button-round_root--icon-only-small_oobgt_571", Y = "ds-button-round_loader_oobgt_588", Z = "ds-button-round_icon--hidden_oobgt_600", oo = "ds-button-round_label--hidden_oobgt_604", to = "ds-button-round_label--loading_oobgt_616", l = {
|
|
9
|
-
root: P,
|
|
10
|
-
rootHighlight: Q,
|
|
11
|
-
rootDarkHighlight: U,
|
|
12
|
-
rootFilled: V,
|
|
13
|
-
rootDarkFilled: W,
|
|
14
|
-
rootIconOnlySmall: X,
|
|
15
|
-
loader: Y,
|
|
16
|
-
iconHidden: Z,
|
|
17
|
-
labelHidden: oo,
|
|
18
|
-
labelLoading: to
|
|
19
|
-
}, lo = M((v, C) => {
|
|
20
|
-
const o = G.c(47);
|
|
21
|
-
let n, s, a, e, i, d, h, b, u, m, _;
|
|
22
|
-
o[0] !== v ? ({
|
|
23
|
-
children: s,
|
|
24
|
-
aria: n,
|
|
25
|
-
className: a,
|
|
26
|
-
disabled: h,
|
|
27
|
-
iconName: b,
|
|
28
|
-
iconSource: e,
|
|
29
|
-
loading: u,
|
|
30
|
-
theme: m,
|
|
31
|
-
variant: _,
|
|
32
|
-
onClick: i,
|
|
33
|
-
...d
|
|
34
|
-
} = v, o[0] = v, o[1] = n, o[2] = s, o[3] = a, o[4] = e, o[5] = i, o[6] = d, o[7] = h, o[8] = b, o[9] = u, o[10] = m, o[11] = _) : (n = o[1], s = o[2], a = o[3], e = o[4], i = o[5], d = o[6], h = o[7], b = o[8], u = o[9], m = o[10], _ = o[11]);
|
|
35
|
-
const k = h === void 0 ? !1 : h, p = b === void 0 ? "placeholder" : b, t = u === void 0 ? !1 : u, F = m === void 0 ? "light" : m, f = _ === void 0 ? "filled" : _, x = f === "filled", I = f === "highlight", L = F === "dark" && f === "filled", O = F === "dark" && f === "highlight";
|
|
36
|
-
let D;
|
|
37
|
-
o[12] !== a || o[13] !== x || o[14] !== I || o[15] !== L || o[16] !== O ? (D = q(l.root, l.rootIconOnlySmall, a, {
|
|
38
|
-
[l.rootFilled]: x,
|
|
39
|
-
[l.rootHighlight]: I,
|
|
40
|
-
[l.rootDarkFilled]: L,
|
|
41
|
-
[l.rootDarkHighlight]: O
|
|
42
|
-
}), o[12] = a, o[13] = x, o[14] = I, o[15] = L, o[16] = O, o[17] = D) : D = o[17];
|
|
43
|
-
const R = D;
|
|
44
|
-
let H;
|
|
45
|
-
o[18] !== t ? (H = q(l.label, l.labelHidden, {
|
|
46
|
-
[l.labelLoading]: t
|
|
47
|
-
}), o[18] = t, o[19] = H) : H = o[19];
|
|
48
|
-
const j = H;
|
|
49
|
-
let N;
|
|
50
|
-
o[20] !== t ? (N = q(l.icon, {
|
|
51
|
-
[l.iconHidden]: t
|
|
52
|
-
}), o[20] = t, o[21] = N) : N = o[21];
|
|
53
|
-
const B = N, w = F === "light" && f === "filled" ? "dark" : "light";
|
|
54
|
-
let S;
|
|
55
|
-
o[22] !== k || o[23] !== t || o[24] !== i ? (S = (z) => {
|
|
56
|
-
if (k || t) {
|
|
57
|
-
z.preventDefault();
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
i && i(z);
|
|
61
|
-
}, o[22] = k, o[23] = t, o[24] = i, o[25] = S) : S = o[25];
|
|
62
|
-
const E = S, T = k || t;
|
|
63
|
-
let r;
|
|
64
|
-
o[26] !== t ? (r = t && /* @__PURE__ */ $(K, { className: l.loader, aria: {
|
|
65
|
-
"aria-label": "Loading state"
|
|
66
|
-
} }), o[26] = t, o[27] = r) : r = o[27];
|
|
67
|
-
let c;
|
|
68
|
-
o[28] !== s || o[29] !== j ? (c = /* @__PURE__ */ $("span", { className: j, children: s }), o[28] = s, o[29] = j, o[30] = c) : c = o[30];
|
|
69
|
-
let g;
|
|
70
|
-
o[31] !== B || o[32] !== p || o[33] !== e || o[34] !== w ? (g = (p || e) && /* @__PURE__ */ $(J, { name: p, theme: w, source: e, className: B, "aria-hidden": "true" }), o[31] = B, o[32] = p, o[33] = e, o[34] = w, o[35] = g) : g = o[35];
|
|
71
|
-
let y;
|
|
72
|
-
return o[36] !== n || o[37] !== E || o[38] !== t || o[39] !== C || o[40] !== d || o[41] !== R || o[42] !== T || o[43] !== r || o[44] !== c || o[45] !== g ? (y = /* @__PURE__ */ A("button", { className: R, type: "button", onClick: E, ...n, ...d, "aria-disabled": T, "aria-busy": t, ref: C, children: [
|
|
73
|
-
r,
|
|
74
|
-
c,
|
|
75
|
-
g
|
|
76
|
-
] }), o[36] = n, o[37] = E, o[38] = t, o[39] = C, o[40] = d, o[41] = R, o[42] = T, o[43] = r, o[44] = c, o[45] = g, o[46] = y) : y = o[46], y;
|
|
77
|
-
});
|
|
78
|
-
lo.displayName = "DSButtonRound";
|
|
79
|
-
export {
|
|
80
|
-
lo as DSButtonRound
|
|
81
|
-
};
|
|
@@ -1,384 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _, jsxs as me, Fragment as ve } from "react/jsx-runtime";
|
|
3
|
-
import { d as P } from "./index.CgTHIF3K.js";
|
|
4
|
-
import { c as w } from "./index.CEyLAtio.js";
|
|
5
|
-
import Ae, { useState as T, useEffect as ae, useContext as re, createContext as De, useRef as te } from "react";
|
|
6
|
-
import { g as Y, p as ce } from "./helpers.CcqWV-wZ.js";
|
|
7
|
-
import { u as He } from "./useIsomorphicLayoutEffect.CnJ9AMFS.js";
|
|
8
|
-
import { DSLogo as Pe } from "../logo.B9taqlZR.js";
|
|
9
|
-
import '../assets/Header.DO34x-dO.css';const Ee = (d) => {
|
|
10
|
-
const e = P.c(3), t = 0, [r, n] = T("down");
|
|
11
|
-
let a, i;
|
|
12
|
-
return e[0] !== t ? (a = () => {
|
|
13
|
-
let l;
|
|
14
|
-
l = window.scrollY;
|
|
15
|
-
const c = () => {
|
|
16
|
-
const o = window.scrollY, m = o > l ? "down" : "up";
|
|
17
|
-
Math.abs(o - l) > t && (n(m), l = o);
|
|
18
|
-
};
|
|
19
|
-
return window.addEventListener("scroll", c, {
|
|
20
|
-
passive: !0
|
|
21
|
-
}), () => window.removeEventListener("scroll", c);
|
|
22
|
-
}, i = [t], e[0] = t, e[1] = a, e[2] = i) : (a = e[1], i = e[2]), ae(a, i), r;
|
|
23
|
-
}, ft = ["full", "main"], x = (d, e, t) => {
|
|
24
|
-
let r = !1;
|
|
25
|
-
const n = {
|
|
26
|
-
fn: e,
|
|
27
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- any is needed here to allow any React component type to be checked
|
|
28
|
-
displayName: e.displayName || e.name
|
|
29
|
-
};
|
|
30
|
-
return Ae.Children.forEach(d, (a) => {
|
|
31
|
-
if (r || !Ae.isValidElement(a)) return;
|
|
32
|
-
if (a.type === n.fn) {
|
|
33
|
-
r = !0;
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
const i = a.type, l = (
|
|
37
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- any is needed here to allow any React component type to be checked
|
|
38
|
-
i.displayName || i.name
|
|
39
|
-
);
|
|
40
|
-
if (typeof l == "string" && l === n.displayName) {
|
|
41
|
-
r = !0;
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
const c = a.props;
|
|
45
|
-
if (t && c.children && x(c.children, n.fn, t)) {
|
|
46
|
-
r = !0;
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
}), r;
|
|
50
|
-
}, xe = ({
|
|
51
|
-
hasBrandArea: d,
|
|
52
|
-
hasPrimaryArea: e,
|
|
53
|
-
hasSecondaryArea: t
|
|
54
|
-
}) => {
|
|
55
|
-
if (d)
|
|
56
|
-
throw new Error(Y("DSHeader", "A <DSTopBar.BrandArea> component was detected as a direct child of DSHeader. Please move it into the DSTopBar component."));
|
|
57
|
-
if (e)
|
|
58
|
-
throw new Error(Y("DSHeader", "A <DSTopBar.PrimaryArea> component was detected as a direct child of DSHeader. Please move it into the DSTopBar component."));
|
|
59
|
-
if (t)
|
|
60
|
-
throw new Error(Y("DSHeader", "A <DSTopBar.SecondaryArea> component was detected as a direct child of DSHeader. Please move it into the DSTopBar component."));
|
|
61
|
-
}, Te = "ds-top-bar_root_ryiho_1", Ce = "ds-top-bar_root--sticky_ryiho_47", Fe = "ds-top-bar_root--fixed_ryiho_51", Oe = "ds-top-bar_content_ryiho_59", Ve = "ds-top-bar_content--variant-full_ryiho_78", Re = "ds-top-bar_content--has-primary-area-and-secondary-area_ryiho_82", ke = "ds-top-bar_primary_ryiho_87", Me = "ds-top-bar_content--has-brand-add-on-with-primary-area-and-secondary-area_ryiho_102", $e = "ds-top-bar_brand_ryiho_107", We = "ds-top-bar_content--has-primary-area_ryiho_82", Le = "ds-top-bar_content--has-primary-area--with-brand-add-on_ryiho_146", Ie = "ds-top-bar_brand-add-on_ryiho_210", Ye = "ds-top-bar_brand-add-on--double_ryiho_231", ze = "ds-top-bar_sub-title_ryiho_245", qe = "ds-top-bar_secondary_ryiho_271", Ue = "ds-top-bar_logo_ryiho_280", je = "ds-top-bar_logo--reduced_ryiho_290", u = {
|
|
62
|
-
root: Te,
|
|
63
|
-
rootSticky: Ce,
|
|
64
|
-
rootFixed: Fe,
|
|
65
|
-
content: Oe,
|
|
66
|
-
contentVariantFull: Ve,
|
|
67
|
-
contentHasPrimaryAreaAndSecondaryArea: Re,
|
|
68
|
-
primary: ke,
|
|
69
|
-
contentHasBrandAddOnWithPrimaryAreaAndSecondaryArea: Me,
|
|
70
|
-
brand: $e,
|
|
71
|
-
contentHasPrimaryArea: We,
|
|
72
|
-
contentHasPrimaryAreaWithBrandAddOn: Le,
|
|
73
|
-
brandAddOn: Ie,
|
|
74
|
-
brandAddOnDouble: Ye,
|
|
75
|
-
subTitle: ze,
|
|
76
|
-
secondary: qe,
|
|
77
|
-
logo: Ue,
|
|
78
|
-
logoReduced: je
|
|
79
|
-
}, Ge = ({
|
|
80
|
-
hasBrandArea: d,
|
|
81
|
-
hasPrimaryArea: e,
|
|
82
|
-
hasSecondaryArea: t
|
|
83
|
-
}) => {
|
|
84
|
-
if (!d)
|
|
85
|
-
throw new Error(Y("DSTopBar", "A <DSTopBar.BrandArea> component is required. Please include it as a child of DSTopBar."));
|
|
86
|
-
if (!e && t)
|
|
87
|
-
throw new Error(Y("DSTopBar", "A <DSTopBar.PrimaryArea> is required when using <DSTopBar.SecondaryArea>. Please include <DSTopBar.PrimaryArea> as a child of DSTopBar, or move the content from <DSTopBar.SecondaryArea> into <DSTopBar.PrimaryArea>."));
|
|
88
|
-
}, ue = (d) => d == null || typeof d == "object" && !Array.isArray(d) && d !== null && Object.keys(d).length === 0, pt = ["double", "single"], $ = (d) => {
|
|
89
|
-
const e = P.c(28);
|
|
90
|
-
let t, r, n, a;
|
|
91
|
-
e[0] !== d ? ({
|
|
92
|
-
children: t,
|
|
93
|
-
className: r,
|
|
94
|
-
rootClassName: a,
|
|
95
|
-
...n
|
|
96
|
-
} = d, e[0] = d, e[1] = t, e[2] = r, e[3] = n, e[4] = a) : (t = e[1], r = e[2], n = e[3], a = e[4]);
|
|
97
|
-
const {
|
|
98
|
-
variant: i,
|
|
99
|
-
isHeaderSticky: l,
|
|
100
|
-
isMobile: c,
|
|
101
|
-
topBarAreaRef: o,
|
|
102
|
-
isStickyMainNavigationVisible: m,
|
|
103
|
-
hasBrandAddOn: h
|
|
104
|
-
} = re(z);
|
|
105
|
-
let p, y;
|
|
106
|
-
if (e[5] !== t || e[6] !== r || e[7] !== h || e[8] !== l || e[9] !== c || e[10] !== m || e[11] !== a || e[12] !== i) {
|
|
107
|
-
const E = x(t, he), A = x(t, fe), s = x(t, pe);
|
|
108
|
-
process.env.NODE_ENV !== "production" && Ge({
|
|
109
|
-
hasBrandArea: E,
|
|
110
|
-
hasPrimaryArea: A,
|
|
111
|
-
hasSecondaryArea: s
|
|
112
|
-
});
|
|
113
|
-
let b;
|
|
114
|
-
e[15] !== l || e[16] !== c || e[17] !== m || e[18] !== a ? (b = w(u.root, a, l ? {
|
|
115
|
-
[u.rootSticky]: !c && m,
|
|
116
|
-
[u.rootFixed]: !c && !m
|
|
117
|
-
} : {}), e[15] = l, e[16] = c, e[17] = m, e[18] = a, e[19] = b) : b = e[19], p = b, y = w(u.content, r, {
|
|
118
|
-
[u.contentHasPrimaryArea]: A && !h && !s,
|
|
119
|
-
[u.contentHasPrimaryAreaWithBrandAddOn]: A && h && !s,
|
|
120
|
-
[u.contentHasBrandAddOnWithPrimaryAreaAndSecondaryArea]: h && A && s,
|
|
121
|
-
[u.contentHasPrimaryAreaAndSecondaryArea]: A && s && !h,
|
|
122
|
-
[u.contentVariantFull]: i === "full"
|
|
123
|
-
}), e[5] = t, e[6] = r, e[7] = h, e[8] = l, e[9] = c, e[10] = m, e[11] = a, e[12] = i, e[13] = p, e[14] = y;
|
|
124
|
-
} else
|
|
125
|
-
p = e[13], y = e[14];
|
|
126
|
-
const g = y;
|
|
127
|
-
let f;
|
|
128
|
-
e[20] !== t || e[21] !== g || e[22] !== n ? (f = /* @__PURE__ */ _("section", { className: g, ...n, children: t }), e[20] = t, e[21] = g, e[22] = n, e[23] = f) : f = e[23];
|
|
129
|
-
let v;
|
|
130
|
-
return e[24] !== p || e[25] !== f || e[26] !== o ? (v = /* @__PURE__ */ _("div", { className: p, ref: o, children: f }), e[24] = p, e[25] = f, e[26] = o, e[27] = v) : v = e[27], v;
|
|
131
|
-
}, he = (d) => {
|
|
132
|
-
const e = P.c(26), {
|
|
133
|
-
children: t,
|
|
134
|
-
className: r
|
|
135
|
-
} = d, {
|
|
136
|
-
logoProps: n,
|
|
137
|
-
brandAddOnProps: a,
|
|
138
|
-
setHasBrandAddOn: i
|
|
139
|
-
} = re(z);
|
|
140
|
-
let l;
|
|
141
|
-
e[0] !== n ? (l = n || {}, e[0] = n, e[1] = l) : l = e[1];
|
|
142
|
-
const {
|
|
143
|
-
aria: c,
|
|
144
|
-
logo: o,
|
|
145
|
-
href: m,
|
|
146
|
-
target: h
|
|
147
|
-
} = l, p = o === void 0 ? "main" : o, y = m === void 0 ? "/" : m, g = h === void 0 ? "_self" : h;
|
|
148
|
-
let f;
|
|
149
|
-
e[2] !== a || e[3] !== t || e[4] !== i ? (f = () => {
|
|
150
|
-
t || !ue(a) ? i == null || i(!0) : i == null || i(!1);
|
|
151
|
-
}, e[2] = a, e[3] = t, e[4] = i, e[5] = f) : f = e[5];
|
|
152
|
-
let v;
|
|
153
|
-
e[6] !== a || e[7] !== t ? (v = [t, a], e[6] = a, e[7] = t, e[8] = v) : v = e[8], ae(f, v);
|
|
154
|
-
let E;
|
|
155
|
-
e[9] !== p ? (E = w(u.logo, {
|
|
156
|
-
[u.logoReduced]: p.includes("reduced")
|
|
157
|
-
}), e[9] = p, e[10] = E) : E = e[10];
|
|
158
|
-
const A = E;
|
|
159
|
-
let s;
|
|
160
|
-
e[11] !== r ? (s = w(u.brand, r), e[11] = r, e[12] = s) : s = e[12];
|
|
161
|
-
let b;
|
|
162
|
-
e[13] !== c || e[14] !== y || e[15] !== p || e[16] !== A || e[17] !== g ? (b = /* @__PURE__ */ _(Pe, { className: A, aria: c, logo: p, href: y, target: g }), e[13] = c, e[14] = y, e[15] = p, e[16] = A, e[17] = g, e[18] = b) : b = e[18];
|
|
163
|
-
let B;
|
|
164
|
-
e[19] !== a ? (B = ue(a) ? void 0 : /* @__PURE__ */ _(_e, { ...a }), e[19] = a, e[20] = B) : B = e[20];
|
|
165
|
-
let D;
|
|
166
|
-
return e[21] !== t || e[22] !== B || e[23] !== s || e[24] !== b ? (D = /* @__PURE__ */ me("div", { className: s, children: [
|
|
167
|
-
b,
|
|
168
|
-
B,
|
|
169
|
-
t
|
|
170
|
-
] }), e[21] = t, e[22] = B, e[23] = s, e[24] = b, e[25] = D) : D = e[25], D;
|
|
171
|
-
};
|
|
172
|
-
he.displayName = "DSTopBar.BrandArea";
|
|
173
|
-
const _e = (d) => {
|
|
174
|
-
const e = P.c(10), {
|
|
175
|
-
children: t,
|
|
176
|
-
className: r,
|
|
177
|
-
subTitle: n,
|
|
178
|
-
variant: a
|
|
179
|
-
} = d, i = a === void 0 ? "single" : a, l = i === "double";
|
|
180
|
-
let c;
|
|
181
|
-
e[0] !== r || e[1] !== l ? (c = w(u.brandAddOn, r, {
|
|
182
|
-
[u.brandAddOnDouble]: l
|
|
183
|
-
}), e[0] = r, e[1] = l, e[2] = c) : c = e[2];
|
|
184
|
-
const o = c;
|
|
185
|
-
let m;
|
|
186
|
-
e[3] !== t || e[4] !== n || e[5] !== i ? (m = i === "single" ? t : /* @__PURE__ */ me(ve, { children: [
|
|
187
|
-
/* @__PURE__ */ _("span", { children: t }),
|
|
188
|
-
n && /* @__PURE__ */ _("span", { className: u.subTitle, children: n })
|
|
189
|
-
] }), e[3] = t, e[4] = n, e[5] = i, e[6] = m) : m = e[6];
|
|
190
|
-
let h;
|
|
191
|
-
return e[7] !== o || e[8] !== m ? (h = /* @__PURE__ */ _("span", { className: o, children: m }), e[7] = o, e[8] = m, e[9] = h) : h = e[9], h;
|
|
192
|
-
};
|
|
193
|
-
_e.displayName = "DSTopBar.BrandAddOn";
|
|
194
|
-
const fe = (d) => {
|
|
195
|
-
const e = P.c(5), {
|
|
196
|
-
children: t,
|
|
197
|
-
className: r
|
|
198
|
-
} = d;
|
|
199
|
-
let n;
|
|
200
|
-
e[0] !== r ? (n = w(u.primary, r), e[0] = r, e[1] = n) : n = e[1];
|
|
201
|
-
let a;
|
|
202
|
-
return e[2] !== t || e[3] !== n ? (a = /* @__PURE__ */ _("div", { className: n, children: t }), e[2] = t, e[3] = n, e[4] = a) : a = e[4], a;
|
|
203
|
-
};
|
|
204
|
-
fe.displayName = "DSTopBar.PrimaryArea";
|
|
205
|
-
const pe = (d) => {
|
|
206
|
-
const e = P.c(5), {
|
|
207
|
-
children: t,
|
|
208
|
-
className: r
|
|
209
|
-
} = d;
|
|
210
|
-
let n;
|
|
211
|
-
e[0] !== r ? (n = w(u.secondary, r), e[0] = r, e[1] = n) : n = e[1];
|
|
212
|
-
let a;
|
|
213
|
-
return e[2] !== t || e[3] !== n ? (a = /* @__PURE__ */ _("div", { className: n, children: t }), e[2] = t, e[3] = n, e[4] = a) : a = e[4], a;
|
|
214
|
-
};
|
|
215
|
-
pe.displayName = "DSTopBar.SecondaryArea";
|
|
216
|
-
$.BrandArea = he;
|
|
217
|
-
$.PrimaryArea = fe;
|
|
218
|
-
$.SecondaryArea = pe;
|
|
219
|
-
const Je = "ds-header_root_g2mvw_1", Ke = "ds-header_root--sticky_g2mvw_4", Qe = "ds-header_root--hidden_g2mvw_9", Xe = "ds-header_root--fixed_g2mvw_20", Ze = "ds-header_main-navigation-area_g2mvw_36", et = "ds-header_main-navigation-area--fixed_g2mvw_88", tt = "ds-header_main-navigation-area--fixed--visible_g2mvw_103", at = "ds-header_main-navigation-content_g2mvw_108", rt = "ds-header_main-navigation-content--variant-full_g2mvw_112", nt = "ds-header_header-placeholder_g2mvw_117", ot = "ds-header_header-placeholder--with-banner_g2mvw_120", N = {
|
|
220
|
-
root: Je,
|
|
221
|
-
rootSticky: Ke,
|
|
222
|
-
rootHidden: Qe,
|
|
223
|
-
rootFixed: Xe,
|
|
224
|
-
mainNavigationArea: Ze,
|
|
225
|
-
mainNavigationAreaFixed: et,
|
|
226
|
-
mainNavigationAreaFixedVisible: tt,
|
|
227
|
-
mainNavigationContent: at,
|
|
228
|
-
mainNavigationContentVariantFull: rt,
|
|
229
|
-
headerPlaceholder: nt,
|
|
230
|
-
headerPlaceholderWithBanner: ot
|
|
231
|
-
}, z = De({
|
|
232
|
-
variant: "main"
|
|
233
|
-
}), ne = (d) => {
|
|
234
|
-
const e = P.c(58);
|
|
235
|
-
let t, r, n, a, i, l, c;
|
|
236
|
-
e[0] !== d ? ({
|
|
237
|
-
children: r,
|
|
238
|
-
brandAddOnProps: t,
|
|
239
|
-
className: n,
|
|
240
|
-
isHeaderSticky: l,
|
|
241
|
-
variant: c,
|
|
242
|
-
logoProps: a,
|
|
243
|
-
...i
|
|
244
|
-
} = d, e[0] = d, e[1] = t, e[2] = r, e[3] = n, e[4] = a, e[5] = i, e[6] = l, e[7] = c) : (t = e[1], r = e[2], n = e[3], a = e[4], i = e[5], l = e[6], c = e[7]);
|
|
245
|
-
const o = l === void 0 ? !1 : l, m = c === void 0 ? "main" : c, [h, p] = T(!1);
|
|
246
|
-
let y;
|
|
247
|
-
e[8] !== r ? (y = x(r, ne.BannerArea, !0), e[8] = r, e[9] = y) : y = e[9];
|
|
248
|
-
const g = y, f = x(r, $.BrandArea), v = x(r, $.PrimaryArea), E = x(r, $.SecondaryArea);
|
|
249
|
-
process.env.NODE_ENV !== "production" && xe({
|
|
250
|
-
hasBrandArea: f,
|
|
251
|
-
hasPrimaryArea: v,
|
|
252
|
-
hasSecondaryArea: E
|
|
253
|
-
});
|
|
254
|
-
const A = Ee(), [s, b] = T(!1), B = te(null), D = te(null), oe = te(null), ye = te(null), [ie, Ne] = T(!1), [C, Se] = T(!1), [H, we] = T(!0), [se, Be] = T(!1);
|
|
255
|
-
let q, U;
|
|
256
|
-
e[10] !== o ? (q = () => {
|
|
257
|
-
if (o) {
|
|
258
|
-
const S = () => {
|
|
259
|
-
b(window.innerWidth < 1024);
|
|
260
|
-
};
|
|
261
|
-
return S(), window.addEventListener("resize", S), () => window.removeEventListener("resize", S);
|
|
262
|
-
}
|
|
263
|
-
}, U = [o], e[10] = o, e[11] = q, e[12] = U) : (q = e[11], U = e[12]), ae(q, U);
|
|
264
|
-
let j, G;
|
|
265
|
-
e[13] !== o ? (j = () => {
|
|
266
|
-
if (o) {
|
|
267
|
-
const S = () => {
|
|
268
|
-
var L, I, ee;
|
|
269
|
-
const Z = ((L = B.current) == null ? void 0 : L.offsetHeight) ?? 0, le = ((I = D.current) == null ? void 0 : I.offsetHeight) ?? 0, M = ((ee = oe.current) == null ? void 0 : ee.offsetHeight) ?? 0, W = document.documentElement;
|
|
270
|
-
W.style.setProperty("--ds-banner-height", `${ce(Z)}rem`), W.style.setProperty("--ds-header-height", `${ce(le)}rem`), W.style.setProperty("--ds-top-bar-height", `${ce(M)}rem`);
|
|
271
|
-
};
|
|
272
|
-
return S(), window.addEventListener("resize", S), () => window.removeEventListener("resize", S);
|
|
273
|
-
}
|
|
274
|
-
}, G = [o], e[13] = o, e[14] = j, e[15] = G) : (j = e[14], G = e[15]), He(j, G);
|
|
275
|
-
let J;
|
|
276
|
-
e[16] !== o || e[17] !== s || e[18] !== H || e[19] !== A ? (J = () => {
|
|
277
|
-
if (o) {
|
|
278
|
-
const S = () => {
|
|
279
|
-
const M = D.current, W = !!M && window.scrollY <= M.offsetHeight;
|
|
280
|
-
Ne(W);
|
|
281
|
-
const L = ye.current, I = oe.current, ee = !!I && !!L && L.getBoundingClientRect().bottom > I.getBoundingClientRect().bottom;
|
|
282
|
-
we(ee && !!M && window.scrollY <= M.offsetHeight);
|
|
283
|
-
};
|
|
284
|
-
window.addEventListener("scroll", S, {
|
|
285
|
-
passive: !0
|
|
286
|
-
}), S();
|
|
287
|
-
const Z = D.current, le = !!Z && Z.getBoundingClientRect().bottom > 0;
|
|
288
|
-
return s && Se(A === "up" && !le), s || Be(A === "up" && !H), () => {
|
|
289
|
-
window.removeEventListener("scroll", S);
|
|
290
|
-
};
|
|
291
|
-
}
|
|
292
|
-
}, e[16] = o, e[17] = s, e[18] = H, e[19] = A, e[20] = J) : J = e[20];
|
|
293
|
-
let K;
|
|
294
|
-
e[21] !== o || e[22] !== s || e[23] !== A ? (K = [o, s, A], e[21] = o, e[22] = s, e[23] = A, e[24] = K) : K = e[24], ae(J, K);
|
|
295
|
-
let Q;
|
|
296
|
-
e[25] !== n || e[26] !== C || e[27] !== o || e[28] !== ie || e[29] !== s ? (Q = w(N.root, n, o ? {
|
|
297
|
-
[N.rootSticky]: s,
|
|
298
|
-
[N.rootHidden]: s && !ie,
|
|
299
|
-
[N.rootFixed]: s && C
|
|
300
|
-
} : {}), e[25] = n, e[26] = C, e[27] = o, e[28] = ie, e[29] = s, e[30] = Q) : Q = e[30];
|
|
301
|
-
const de = Q;
|
|
302
|
-
let F;
|
|
303
|
-
e[31] !== t || e[32] !== h || e[33] !== se || e[34] !== o || e[35] !== s || e[36] !== H || e[37] !== a || e[38] !== m ? (F = {
|
|
304
|
-
variant: m,
|
|
305
|
-
bannerAreaRef: B,
|
|
306
|
-
brandAddOnProps: t,
|
|
307
|
-
hasBrandAddOn: h,
|
|
308
|
-
setHasBrandAddOn: p,
|
|
309
|
-
isFixedMainNavigation: se,
|
|
310
|
-
isHeaderSticky: o,
|
|
311
|
-
isMobile: s,
|
|
312
|
-
isStickyMainNavigationVisible: H,
|
|
313
|
-
mainNavigationAreaRef: ye,
|
|
314
|
-
topBarAreaRef: oe,
|
|
315
|
-
logoProps: a
|
|
316
|
-
}, e[31] = t, e[32] = h, e[33] = se, e[34] = o, e[35] = s, e[36] = H, e[37] = a, e[38] = m, e[39] = F) : F = e[39];
|
|
317
|
-
let O;
|
|
318
|
-
e[40] !== r || e[41] !== F ? (O = /* @__PURE__ */ _(z.Provider, { value: F, children: r }), e[40] = r, e[41] = F, e[42] = O) : O = e[42];
|
|
319
|
-
let V;
|
|
320
|
-
e[43] !== i || e[44] !== de || e[45] !== O ? (V = /* @__PURE__ */ _("header", { className: de, ...i, ref: D, children: O }), e[43] = i, e[44] = de, e[45] = O, e[46] = V) : V = e[46];
|
|
321
|
-
let R;
|
|
322
|
-
e[47] !== C || e[48] !== s ? (R = s && C && /* @__PURE__ */ _("div", { className: N.headerPlaceholder }), e[47] = C, e[48] = s, e[49] = R) : R = e[49];
|
|
323
|
-
let k;
|
|
324
|
-
e[50] !== g || e[51] !== s || e[52] !== H ? (k = !s && !H && /* @__PURE__ */ _("div", { className: g ? N.headerPlaceholderWithBanner : N.headerPlaceholder }), e[50] = g, e[51] = s, e[52] = H, e[53] = k) : k = e[53];
|
|
325
|
-
let X;
|
|
326
|
-
return e[54] !== V || e[55] !== R || e[56] !== k ? (X = /* @__PURE__ */ me(ve, { children: [
|
|
327
|
-
V,
|
|
328
|
-
R,
|
|
329
|
-
k
|
|
330
|
-
] }), e[54] = V, e[55] = R, e[56] = k, e[57] = X) : X = e[57], X;
|
|
331
|
-
}, ge = (d) => {
|
|
332
|
-
const e = P.c(4), {
|
|
333
|
-
children: t,
|
|
334
|
-
className: r
|
|
335
|
-
} = d, {
|
|
336
|
-
bannerAreaRef: n
|
|
337
|
-
} = re(z);
|
|
338
|
-
let a;
|
|
339
|
-
return e[0] !== n || e[1] !== t || e[2] !== r ? (a = /* @__PURE__ */ _("div", { ref: n, className: r, children: t }), e[0] = n, e[1] = t, e[2] = r, e[3] = a) : a = e[3], a;
|
|
340
|
-
};
|
|
341
|
-
ge.displayName = "DSHeader.BannerArea";
|
|
342
|
-
const be = (d) => {
|
|
343
|
-
const e = P.c(15), {
|
|
344
|
-
children: t,
|
|
345
|
-
className: r
|
|
346
|
-
} = d, {
|
|
347
|
-
variant: n,
|
|
348
|
-
isFixedMainNavigation: a,
|
|
349
|
-
isHeaderSticky: i,
|
|
350
|
-
isMobile: l,
|
|
351
|
-
isStickyMainNavigationVisible: c,
|
|
352
|
-
mainNavigationAreaRef: o
|
|
353
|
-
} = re(z);
|
|
354
|
-
let m;
|
|
355
|
-
e[0] !== r || e[1] !== a || e[2] !== i || e[3] !== l || e[4] !== c ? (m = w(N.mainNavigationArea, r, i ? {
|
|
356
|
-
[N.mainNavigationAreaFixed]: !l && !c,
|
|
357
|
-
[N.mainNavigationAreaFixedVisible]: !l && a
|
|
358
|
-
} : {}), e[0] = r, e[1] = a, e[2] = i, e[3] = l, e[4] = c, e[5] = m) : m = e[5];
|
|
359
|
-
const h = m, p = n === "full";
|
|
360
|
-
let y;
|
|
361
|
-
e[6] !== p ? (y = w(N.mainNavigationContent, {
|
|
362
|
-
[N.mainNavigationContentVariantFull]: p
|
|
363
|
-
}), e[6] = p, e[7] = y) : y = e[7];
|
|
364
|
-
const g = y;
|
|
365
|
-
let f;
|
|
366
|
-
e[8] !== t || e[9] !== g ? (f = /* @__PURE__ */ _("div", { className: g, children: t }), e[8] = t, e[9] = g, e[10] = f) : f = e[10];
|
|
367
|
-
let v;
|
|
368
|
-
return e[11] !== o || e[12] !== h || e[13] !== f ? (v = /* @__PURE__ */ _("div", { className: h, ref: o, children: f }), e[11] = o, e[12] = h, e[13] = f, e[14] = v) : v = e[14], v;
|
|
369
|
-
};
|
|
370
|
-
be.displayName = "DSHeader.MainNavigationArea";
|
|
371
|
-
ne.BannerArea = ge;
|
|
372
|
-
ne.MainNavigationArea = be;
|
|
373
|
-
ne.displayName = "DSHeader";
|
|
374
|
-
export {
|
|
375
|
-
pt as B,
|
|
376
|
-
z as D,
|
|
377
|
-
ft as H,
|
|
378
|
-
ne as a,
|
|
379
|
-
$ as b,
|
|
380
|
-
x as c,
|
|
381
|
-
Ge as d,
|
|
382
|
-
ue as i,
|
|
383
|
-
xe as v
|
|
384
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as t, jsxs as u, Fragment as v } from "react/jsx-runtime";
|
|
3
|
-
import { isValidElement as h, cloneElement as f } from "react";
|
|
4
|
-
import { D as g } from "./Icon.CAXZUNWo.js";
|
|
5
|
-
import { NumberIndicator as B } from "../numberindicator.BPWvqr7f.js";
|
|
6
|
-
import '../assets/NavigationTabList.B6x56sAV.css';const N = "ds-tabs_tabs-wrapper_nm2bv_1", W = "ds-tabs_scroll-wrapper_nm2bv_6", w = "ds-tabs_scroller_nm2bv_17", D = "ds-tabs_scroller--centered_nm2bv_28", j = "ds-tabs_tab_nm2bv_1", y = "ds-tabs_scroll-button_nm2bv_105", E = "ds-tabs_scroll-button--hidden_nm2bv_110", H = "ds-tabs_scroll-button--right_nm2bv_114", L = "ds-tabs_indicator_nm2bv_126", R = {
|
|
7
|
-
tabsWrapper: N,
|
|
8
|
-
scrollWrapper: W,
|
|
9
|
-
scroller: w,
|
|
10
|
-
scrollerCentered: D,
|
|
11
|
-
tab: j,
|
|
12
|
-
scrollButton: y,
|
|
13
|
-
scrollButtonHidden: E,
|
|
14
|
-
scrollButtonRight: H,
|
|
15
|
-
indicator: L
|
|
16
|
-
}, S = ({
|
|
17
|
-
tabs: e,
|
|
18
|
-
tabRefs: b,
|
|
19
|
-
scrollerClass: i,
|
|
20
|
-
scrollerRef: _,
|
|
21
|
-
selectedTabIndex: l,
|
|
22
|
-
handleNavigationKeydown: d,
|
|
23
|
-
setSelectedTab: p
|
|
24
|
-
}) => /* @__PURE__ */ t("ul", { className: i, ref: _, children: e.map(({
|
|
25
|
-
id: c,
|
|
26
|
-
linkComponent: r,
|
|
27
|
-
iconName: n,
|
|
28
|
-
numberIndicatorValue: a
|
|
29
|
-
}, s) => {
|
|
30
|
-
if (!h(r))
|
|
31
|
-
return null;
|
|
32
|
-
const m = f(r, {
|
|
33
|
-
// Add aria-current to the selected tab (https://www.w3.org/WAI/ARIA/apg/patterns/breadcrumb/examples/breadcrumb/)
|
|
34
|
-
"aria-current": l === s ? "page" : void 0,
|
|
35
|
-
children: /* @__PURE__ */ u(v, { children: [
|
|
36
|
-
n && /* @__PURE__ */ t(g, { name: n, "aria-hidden": "true" }),
|
|
37
|
-
r.props.children,
|
|
38
|
-
a && /* @__PURE__ */ t(B, { label: a })
|
|
39
|
-
] }),
|
|
40
|
-
className: R.tab,
|
|
41
|
-
id: c,
|
|
42
|
-
tabIndex: l === s ? 0 : -1,
|
|
43
|
-
// onKeyDown for focus handling and keyboard navigation
|
|
44
|
-
onKeyDown: (o) => d(o, s),
|
|
45
|
-
onClick: () => {
|
|
46
|
-
r.props.onClick && r.props.onClick(), p(s);
|
|
47
|
-
},
|
|
48
|
-
ref: (o) => {
|
|
49
|
-
b.current[s] = o;
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
return /* @__PURE__ */ t("li", { children: m }, c);
|
|
53
|
-
}) });
|
|
54
|
-
export {
|
|
55
|
-
S as N,
|
|
56
|
-
R as s
|
|
57
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
const r = (e) => typeof e != "number" || isNaN(e) ? 0 : e / 16, t = (e, s) => `[STIHL Design System] - [${e}]: ${s}`, o = (e, s) => `The "${e}" prop is required. Please add the "${e}" prop to the ${s} component.`, n = (e, s) => e == null ? void 0 : e.closest(s);
|
|
3
|
-
export {
|
|
4
|
-
n as a,
|
|
5
|
-
t as g,
|
|
6
|
-
r as p,
|
|
7
|
-
o as r
|
|
8
|
-
};
|
package/linkbutton.nddFCT_K.js
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs as lt, jsx as Z } from "react/jsx-runtime";
|
|
3
|
-
import { d as st } from "./chunks/index.CgTHIF3K.js";
|
|
4
|
-
import { c as tt } from "./chunks/index.CEyLAtio.js";
|
|
5
|
-
import { u as Y } from "./chunks/useBreakpoint.CMOR9ZOB.js";
|
|
6
|
-
import { forwardRef as nt } from "react";
|
|
7
|
-
import { D as rt } from "./chunks/Icon.CAXZUNWo.js";
|
|
8
|
-
import './assets/linkbutton.DuHHqo7Z.css';const et = "ds-link-button_root_3a4lw_1", it = "ds-link-button_root--highlight_3a4lw_75", at = "ds-link-button_root--dark-highlight_3a4lw_75", ct = "ds-link-button_root--filled_3a4lw_151", dt = "ds-link-button_root--outline_3a4lw_179", ht = "ds-link-button_root--ghost_3a4lw_206", ut = "ds-link-button_root--ghost-flush_3a4lw_231", _t = "ds-link-button_root--small_3a4lw_237", kt = "ds-link-button_root--dark-filled_3a4lw_317", mt = "ds-link-button_root--dark-outline_3a4lw_374", gt = "ds-link-button_root--dark-ghost_3a4lw_430", ft = "ds-link-button_root--dark-ghost-flush_3a4lw_484", bt = "ds-link-button_root--icon-left_3a4lw_559", Dt = "ds-link-button_root--icon-only_3a4lw_562", wt = "ds-link-button_root--icon-only-small_3a4lw_571", Ft = "ds-link-button_label--hidden_3a4lw_582", o = {
|
|
9
|
-
root: et,
|
|
10
|
-
rootHighlight: it,
|
|
11
|
-
rootDarkHighlight: at,
|
|
12
|
-
rootFilled: ct,
|
|
13
|
-
rootOutline: dt,
|
|
14
|
-
rootGhost: ht,
|
|
15
|
-
rootGhostFlush: ut,
|
|
16
|
-
rootSmall: _t,
|
|
17
|
-
rootDarkFilled: kt,
|
|
18
|
-
rootDarkOutline: mt,
|
|
19
|
-
rootDarkGhost: gt,
|
|
20
|
-
rootDarkGhostFlush: ft,
|
|
21
|
-
rootIconLeft: bt,
|
|
22
|
-
rootIconOnly: Dt,
|
|
23
|
-
rootIconOnlySmall: wt,
|
|
24
|
-
labelHidden: Ft
|
|
25
|
-
}, pt = nt((H, L) => {
|
|
26
|
-
const t = st.c(59);
|
|
27
|
-
let i, a, c, d, n, r, e, h, u, _, b, D, w, F, p, G, O;
|
|
28
|
-
t[0] !== H ? ({
|
|
29
|
-
children: a,
|
|
30
|
-
aria: i,
|
|
31
|
-
className: c,
|
|
32
|
-
download: d,
|
|
33
|
-
hideLabel: b,
|
|
34
|
-
href: n,
|
|
35
|
-
iconName: r,
|
|
36
|
-
iconPosition: D,
|
|
37
|
-
iconSource: e,
|
|
38
|
-
isFlush: w,
|
|
39
|
-
referrerPolicy: h,
|
|
40
|
-
rel: u,
|
|
41
|
-
size: F,
|
|
42
|
-
target: p,
|
|
43
|
-
theme: G,
|
|
44
|
-
variant: O,
|
|
45
|
-
..._
|
|
46
|
-
} = H, t[0] = H, t[1] = i, t[2] = a, t[3] = c, t[4] = d, t[5] = n, t[6] = r, t[7] = e, t[8] = h, t[9] = u, t[10] = _, t[11] = b, t[12] = D, t[13] = w, t[14] = F, t[15] = p, t[16] = G, t[17] = O) : (i = t[1], a = t[2], c = t[3], d = t[4], n = t[5], r = t[6], e = t[7], h = t[8], u = t[9], _ = t[10], b = t[11], D = t[12], w = t[13], F = t[14], p = t[15], G = t[16], O = t[17]);
|
|
47
|
-
const N = b === void 0 ? !1 : b, ot = D === void 0 ? "left" : D, y = w === void 0 ? !1 : w, x = F === void 0 ? "medium" : F, B = p === void 0 ? "_self" : p, s = G === void 0 ? "light" : G, l = O === void 0 ? "filled" : O, P = l === "filled", j = l === "highlight", z = l === "outline", C = l === "ghost" && y !== !0, T = l === "ghost" && y === !0, E = s === "dark" && l === "filled", R = s === "dark" && l === "highlight", V = s === "dark" && l === "outline", $ = s === "dark" && l === "ghost" && y !== !0, q = s === "dark" && l === "ghost" && y === !0, A = x === "small", J = ot === "left", K = Y(N) && x === "medium", M = Y(N) && x === "small";
|
|
48
|
-
let v;
|
|
49
|
-
t[18] !== c || t[19] !== z || t[20] !== C || t[21] !== T || t[22] !== E || t[23] !== R || t[24] !== V || t[25] !== $ || t[26] !== q || t[27] !== A || t[28] !== J || t[29] !== K || t[30] !== M || t[31] !== P || t[32] !== j ? (v = tt(o.root, c, {
|
|
50
|
-
[o.rootFilled]: P,
|
|
51
|
-
[o.rootHighlight]: j,
|
|
52
|
-
[o.rootOutline]: z,
|
|
53
|
-
[o.rootGhost]: C,
|
|
54
|
-
[o.rootGhostFlush]: T,
|
|
55
|
-
[o.rootDarkFilled]: E,
|
|
56
|
-
[o.rootDarkHighlight]: R,
|
|
57
|
-
[o.rootDarkOutline]: V,
|
|
58
|
-
[o.rootDarkGhost]: $,
|
|
59
|
-
[o.rootDarkGhostFlush]: q,
|
|
60
|
-
[o.rootSmall]: A,
|
|
61
|
-
[o.rootIconLeft]: J,
|
|
62
|
-
[o.rootIconOnly]: K,
|
|
63
|
-
[o.rootIconOnlySmall]: M
|
|
64
|
-
}), t[18] = c, t[19] = z, t[20] = C, t[21] = T, t[22] = E, t[23] = R, t[24] = V, t[25] = $, t[26] = q, t[27] = A, t[28] = J, t[29] = K, t[30] = M, t[31] = P, t[32] = j, t[33] = v) : v = t[33];
|
|
65
|
-
const Q = v, U = Y(N);
|
|
66
|
-
let I;
|
|
67
|
-
t[34] !== U ? (I = tt({
|
|
68
|
-
[o.labelHidden]: U
|
|
69
|
-
}), t[34] = U, t[35] = I) : I = t[35];
|
|
70
|
-
const W = I, X = s === "light" && l === "filled" || s === "dark" && l === "outline" || s === "dark" && l === "ghost" ? "dark" : "light", k = n === void 0 ? "span" : "a";
|
|
71
|
-
let m;
|
|
72
|
-
t[36] !== k || t[37] !== d || t[38] !== n || t[39] !== h || t[40] !== u || t[41] !== B ? (m = k === "a" && {
|
|
73
|
-
href: n,
|
|
74
|
-
target: B,
|
|
75
|
-
rel: u,
|
|
76
|
-
referrerPolicy: h,
|
|
77
|
-
download: d
|
|
78
|
-
}, t[36] = k, t[37] = d, t[38] = n, t[39] = h, t[40] = u, t[41] = B, t[42] = m) : m = t[42];
|
|
79
|
-
let g;
|
|
80
|
-
t[43] !== a || t[44] !== W ? (g = /* @__PURE__ */ Z("span", { className: W, children: a }), t[43] = a, t[44] = W, t[45] = g) : g = t[45];
|
|
81
|
-
let f;
|
|
82
|
-
t[46] !== r || t[47] !== e || t[48] !== X ? (f = (r || e) && /* @__PURE__ */ Z(rt, { name: r, theme: X, source: e, "aria-hidden": "true" }), t[46] = r, t[47] = e, t[48] = X, t[49] = f) : f = t[49];
|
|
83
|
-
let S;
|
|
84
|
-
return t[50] !== k || t[51] !== i || t[52] !== L || t[53] !== _ || t[54] !== Q || t[55] !== m || t[56] !== g || t[57] !== f ? (S = /* @__PURE__ */ lt(k, { className: Q, ...m, ...i, ..._, ref: L, children: [
|
|
85
|
-
g,
|
|
86
|
-
f
|
|
87
|
-
] }), t[50] = k, t[51] = i, t[52] = L, t[53] = _, t[54] = Q, t[55] = m, t[56] = g, t[57] = f, t[58] = S) : S = t[58], S;
|
|
88
|
-
});
|
|
89
|
-
pt.displayName = "DSLinkButton";
|
|
90
|
-
export {
|
|
91
|
-
pt as DSLinkButton
|
|
92
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as f } from "react/jsx-runtime";
|
|
3
|
-
import { d as _ } from "./chunks/index.CgTHIF3K.js";
|
|
4
|
-
import { c as p } from "./chunks/index.CEyLAtio.js";
|
|
5
|
-
import './assets/numberindicator.BJnvB-K3.css';const b = "ds-number-indicator_root_t83wm_1", C = "ds-number-indicator_root--has-content_t83wm_25", H = "ds-number-indicator_root--highlight_t83wm_30", g = {
|
|
6
|
-
root: b,
|
|
7
|
-
rootHasContent: C,
|
|
8
|
-
rootHighlight: H
|
|
9
|
-
}, x = (c) => {
|
|
10
|
-
const t = _.c(16);
|
|
11
|
-
let n, o, e, r;
|
|
12
|
-
t[0] !== c ? ({
|
|
13
|
-
label: o,
|
|
14
|
-
className: n,
|
|
15
|
-
variant: r,
|
|
16
|
-
...e
|
|
17
|
-
} = c, t[0] = c, t[1] = n, t[2] = o, t[3] = e, t[4] = r) : (n = t[1], o = t[2], e = t[3], r = t[4]);
|
|
18
|
-
const u = r === void 0 ? "default" : r, s = typeof o == "string" && o.trim().length > 0;
|
|
19
|
-
let i;
|
|
20
|
-
t[5] !== s || t[6] !== o ? (i = s ? o.trim().substring(0, 4) : null, t[5] = s, t[6] = o, t[7] = i) : i = t[7];
|
|
21
|
-
const m = i, h = u === "highlight" || !s;
|
|
22
|
-
let l;
|
|
23
|
-
t[8] !== n || t[9] !== s || t[10] !== h ? (l = p(g.root, n, {
|
|
24
|
-
[g.rootHasContent]: s,
|
|
25
|
-
[g.rootHighlight]: h
|
|
26
|
-
}), t[8] = n, t[9] = s, t[10] = h, t[11] = l) : l = t[11];
|
|
27
|
-
const d = l;
|
|
28
|
-
let a;
|
|
29
|
-
return t[12] !== e || t[13] !== d || t[14] !== m ? (a = /* @__PURE__ */ f("span", { className: d, ...e, children: m }), t[12] = e, t[13] = d, t[14] = m, t[15] = a) : a = t[15], a;
|
|
30
|
-
};
|
|
31
|
-
export {
|
|
32
|
-
x as NumberIndicator
|
|
33
|
-
};
|