@stihl-design-system/components 1.0.0-RC.25 → 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.Dw3qTPN8.js → accordion.CBaDU14g.js} +2 -2
- package/{actionbutton.wYg4A5a2.js → actionbutton.DEJsLxnQ.js} +2 -2
- package/{actionlink.BoWrs0Mo.js → actionlink.Cs6BTCA3.js} +2 -2
- 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/Icon.QeJ7TxZs.css +1 -0
- package/assets/InputFile.Dqjz53mb.css +1 -0
- package/assets/Popover.BDTDsPAt.css +1 -0
- package/{breadcrumb.C07HDyGp.js → breadcrumb.x78HJy5P.js} +3 -3
- package/{button.BBqDvwVm.js → button.BD_04tIG.js} +3 -3
- package/{buttonround.Vy1EygFm.js → buttonround.BT3OfowK.js} +2 -2
- 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.Cjc_1Bu1.js → Accordion.eVOD7J_8.js} +2 -2
- 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.QhD6byzd.js → Breadcrumb.B7g30dIO.js} +3 -3
- package/chunks/{Button.DZNUuPKC.js → Button.CC0qEsuR.js} +4 -4
- 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.DPeGj8-T.js → Dialog.BuEEJ199.js} +2 -2
- package/chunks/{Drawer.BMibxANc.js → Drawer.BXUGmpJI.js} +2 -2
- 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.fltVIulD.js → InputFile.vkkg5Pab.js} +32 -32
- package/chunks/{InputPassword.C4QhwijC.js → InputPassword.BQU09DJh.js} +3 -3
- package/chunks/{InputSearch.DdWBmEmu.js → InputSearch.CXL9ThpX.js} +3 -3
- package/chunks/{InputStepper.BRzbuEho.js → InputStepper.BhLQVAlo.js} +4 -4
- package/chunks/{LinkButton.DyTU9sfN.js → LinkButton.DmXVHeyZ.js} +3 -3
- package/chunks/{NavigationTabList.D2NVVTjK.js → NavigationTabList.IQM074Vb.js} +1 -1
- package/chunks/{NavigationTabs.TfdsA8GX.js → NavigationTabs.CuOXq0b7.js} +2 -2
- package/chunks/{Notification.BRg1qlng.js → Notification.B-3dPVUE.js} +2 -2
- 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.Cljc14kS.js → Slider.CPG4Btbq.js} +2 -2
- package/chunks/{Tabs.GvcCCCFT.js → Tabs.C4qGWCcD.js} +2 -2
- package/chunks/{Text.TS4XdA9e.js → Text.DGWeWF1y.js} +1 -1
- package/chunks/{Textarea.Bs4-nzu8.js → Textarea.D4vXRg_U.js} +2 -2
- package/chunks/{Toast.DawJ9OSY.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 +9 -5
- package/components/ActionButton/ActionButton.utils.d.ts +4 -2
- package/components/ActionLink/ActionLink.d.ts +9 -5
- package/components/ActionLink/ActionLink.utils.d.ts +4 -2
- package/components/Button/Button.utils.d.ts +1 -1
- 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/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/connected-icon.svg +1 -0
- package/{customreactselect.DcH7h1mb.js → customreactselect.BvuvCDyE.js} +4 -4
- package/{dialog.D6d_WXOM.js → dialog.CGsUCqhR.js} +2 -2
- package/{drawer.BmQWFOuF.js → drawer.BcAo4TO0.js} +2 -2
- package/{fieldset.D6q9YXrO.js → fieldset.DM9ELUJa.js} +2 -2
- package/{filelist.Dnd5nOdw.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 +2 -0
- package/index.es.js +178 -172
- package/{input.mPceLGnf.js → input.D4OiEI8g.js} +4 -4
- package/{inputfile.CIpE9i-3.js → inputfile.Cmkxf4Vq.js} +6 -6
- package/{inputpassword.DkiyI-yo.js → inputpassword.CYfGcUE-.js} +3 -3
- package/{inputsearch.DcOp_VUd.js → inputsearch.CecX8gHD.js} +4 -4
- package/{inputstepper.D7TpDXst.js → inputstepper.CFgfHjM_.js} +4 -4
- package/{link.B5NZ1QKr.js → link.DGuYGfh2.js} +2 -2
- package/{linkbutton.CMVcQVxI.js → linkbutton.B3q0B_yb.js} +3 -3
- package/{logo.B9taqlZR.js → logo.C96KaG1P.js} +1 -1
- package/mystihl-icon.svg +1 -0
- package/{navigationtablist.BMJTC9qo.js → navigationtablist.CS9yEGdP.js} +2 -2
- package/{navigationtabs.BQeKKIFy.js → navigationtabs.B86G8ODY.js} +2 -2
- package/{notification.Bzli8Qlq.js → notification.D8BDaU5x.js} +3 -3
- 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 +23 -17
- 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.CQ4aARqd.js → skiptocontent.D1UkPmhD.js} +2 -2
- package/{slider.LRlFFlYL.js → slider.DGmVtnxs.js} +2 -2
- package/{spinner.t5FHjIEK.js → spinner.CeGt8DxU.js} +1 -1
- package/{switch.QUUSE9ZF.js → switch.CtULjgZq.js} +2 -2
- package/{systemfeedback.BpKZEv4U.js → systemfeedback.CLQCbTF6.js} +1 -1
- package/{tablist.DGGeFOi1.js → tablist.CcCURua8.js} +4 -4
- package/{tabs.CXkSN2kd.js → tabs.Dby_2Hyz.js} +2 -2
- package/{text.CPwbk8Gy.js → text.ZOUuesnU.js} +2 -2
- package/{textarea.D0ADOdR6.js → textarea.yOTo23Pd.js} +3 -3
- package/{toast.CYYvK4DJ.js → toast.Bhpwj1NF.js} +3 -3
- package/{toastmanager.k9iGb7MN.js → toastmanager.BHk65ynQ.js} +3 -3
- package/topbar.qNB9efbF.js +11 -0
- package/utils/helpers.d.ts +10 -0
- package/assets/ActionButton.DZVAnm-p.css +0 -1
- package/assets/ActionLink.DuklSL3c.css +0 -1
- package/assets/Icon.ZNrKuqgu.css +0 -1
- package/assets/InputFile.Dx_CULYq.css +0 -1
- package/chunks/ActionButton.DFI8P9-f.js +0 -159
- package/chunks/ActionLink.CLQ1yQZF.js +0 -132
- package/chunks/Header.DPafHEKw.js +0 -384
- package/chunks/helpers.CcqWV-wZ.js +0 -8
- package/topbar.BPSDyH0N.js +0 -10
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs as lt, jsx as d, Fragment as bt } from "react/jsx-runtime";
|
|
3
|
-
import { d as vt } from "./index.CgTHIF3K.js";
|
|
4
|
-
import { c as N } from "./index.CEyLAtio.js";
|
|
5
|
-
import { forwardRef as ut } from "react";
|
|
6
|
-
import { D as _t } from "./Icon.CAXZUNWo.js";
|
|
7
|
-
import { NumberIndicator as mt } from "../numberindicator.Ddf3ESi7.js";
|
|
8
|
-
import { g as R } from "./helpers.CcqWV-wZ.js";
|
|
9
|
-
import '../assets/ActionButton.DZVAnm-p.css';const ft = "ds-action-button_root_1amkn_1", It = "ds-action-button_root--indent-level-1_1amkn_72", kt = "ds-action-button_root--active_1amkn_75", Nt = "ds-action-button_root--active--with-marker_1amkn_78", Wt = "ds-action-button_root--icon--top_1amkn_81", Tt = "ds-action-button_root--stretched_1amkn_172", wt = "ds-action-button_active-marker_1amkn_177", At = "ds-action-button_active-marker--with-indent_1amkn_189", gt = "ds-action-button_icon-wrapper_1amkn_193", Ct = "ds-action-button_icon-wrapper--with-number-indicator_1amkn_196", Pt = "ds-action-button_icon-wrapper--with-number-indicator--with-value_1amkn_204", Dt = "ds-action-button_label_1amkn_208", Ot = "ds-action-button_label--bold_1amkn_219", St = "ds-action-button_label--active_1amkn_230", Bt = "ds-action-button_label--icon-top_1amkn_241", Lt = "ds-action-button_number-indicator_1amkn_264", Mt = "ds-action-button_label-wrapper_1amkn_268", Et = "ds-action-button_label-wrapper--icon-top_1amkn_273", Ut = "ds-action-button_chevron_1amkn_277", Vt = "ds-action-button_chevron--icon-position-top_1amkn_292", Rt = "ds-action-button_chevron--up_1amkn_298", xt = "ds-action-button_chevron--right_1amkn_309", yt = "ds-action-button_chevron--left_1amkn_320", o = {
|
|
10
|
-
root: ft,
|
|
11
|
-
rootIndentLevel1: It,
|
|
12
|
-
rootActive: kt,
|
|
13
|
-
rootActiveWithMarker: Nt,
|
|
14
|
-
rootIconTop: Wt,
|
|
15
|
-
rootStretched: Tt,
|
|
16
|
-
activeMarker: wt,
|
|
17
|
-
activeMarkerWithIndent: At,
|
|
18
|
-
iconWrapper: gt,
|
|
19
|
-
iconWrapperWithNumberIndicator: Ct,
|
|
20
|
-
iconWrapperWithNumberIndicatorWithValue: Pt,
|
|
21
|
-
label: Dt,
|
|
22
|
-
labelBold: Ot,
|
|
23
|
-
labelActive: St,
|
|
24
|
-
labelIconTop: Bt,
|
|
25
|
-
numberIndicator: Lt,
|
|
26
|
-
labelWrapper: Mt,
|
|
27
|
-
labelWrapperIconTop: Et,
|
|
28
|
-
chevron: Ut,
|
|
29
|
-
chevronIconPositionTop: Vt,
|
|
30
|
-
chevronUp: Rt,
|
|
31
|
-
chevronRight: xt,
|
|
32
|
-
chevronLeft: yt
|
|
33
|
-
}, Qt = ["left", "top"], Xt = [0, 1], Yt = ["normal", "bold"], Zt = ["up", "down", "right", "left"], jt = ({
|
|
34
|
-
iconName: W,
|
|
35
|
-
iconSource: T,
|
|
36
|
-
iconPosition: t,
|
|
37
|
-
indentLevel: s,
|
|
38
|
-
stretched: i,
|
|
39
|
-
weight: l
|
|
40
|
-
}) => {
|
|
41
|
-
if (t === "top") {
|
|
42
|
-
if (!W && !T)
|
|
43
|
-
throw new Error(R("DSActionButton", 'A "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.'));
|
|
44
|
-
l === "bold" && console.warn(R("DSActionButton", 'A "weight" prop set to "bold" with "iconPosition" set to "top" has no effect. Please remove the "weight" prop.')), s === 1 && console.warn(R("DSActionButton", 'An "indentLevel" prop set to "1" with "iconPosition" set to "top" has no effect. Please remove the "indentLevel" prop.')), i && console.warn(R("DSActionButton", 'A "stretched" prop set to "true" with "iconPosition" set to "top" has no effect. Please remove the "stretched" prop.'));
|
|
45
|
-
}
|
|
46
|
-
}, Ht = ut((W, T) => {
|
|
47
|
-
const t = vt.c(78);
|
|
48
|
-
let s, i, l, h, r, a, n, p, _, w, A, g, C, P, D;
|
|
49
|
-
t[0] !== W ? ({
|
|
50
|
-
children: l,
|
|
51
|
-
aria: s,
|
|
52
|
-
chevronDirection: i,
|
|
53
|
-
className: h,
|
|
54
|
-
disabled: w,
|
|
55
|
-
iconName: r,
|
|
56
|
-
iconPosition: A,
|
|
57
|
-
iconSource: a,
|
|
58
|
-
indentLevel: g,
|
|
59
|
-
isActive: C,
|
|
60
|
-
numberIndicatorValue: n,
|
|
61
|
-
stretched: P,
|
|
62
|
-
weight: D,
|
|
63
|
-
onClick: p,
|
|
64
|
-
..._
|
|
65
|
-
} = W, t[0] = W, t[1] = s, t[2] = i, t[3] = l, t[4] = h, t[5] = r, t[6] = a, t[7] = n, t[8] = p, t[9] = _, t[10] = w, t[11] = A, t[12] = g, t[13] = C, t[14] = P, t[15] = D) : (s = t[1], i = t[2], l = t[3], h = t[4], r = t[5], a = t[6], n = t[7], p = t[8], _ = t[9], w = t[10], A = t[11], g = t[12], C = t[13], P = t[14], D = t[15]);
|
|
66
|
-
const c = w === void 0 ? !1 : w, e = A === void 0 ? "left" : A, x = g === void 0 ? 0 : g, m = C === void 0 ? !1 : C, pt = P === void 0 ? !1 : P, dt = D === void 0 ? "normal" : D;
|
|
67
|
-
process.env.NODE_ENV !== "production" && jt({
|
|
68
|
-
iconName: r,
|
|
69
|
-
iconSource: a,
|
|
70
|
-
iconPosition: e,
|
|
71
|
-
indentLevel: x,
|
|
72
|
-
stretched: pt,
|
|
73
|
-
weight: dt
|
|
74
|
-
});
|
|
75
|
-
const y = e === "top", j = x === 1, H = m && !c, F = m && !c && e === "left", G = pt === !0 && e === "left";
|
|
76
|
-
let O;
|
|
77
|
-
t[16] !== h || t[17] !== F || t[18] !== G || t[19] !== y || t[20] !== j || t[21] !== H ? (O = N(o.root, h, {
|
|
78
|
-
[o.rootIconTop]: y,
|
|
79
|
-
[o.rootIndentLevel1]: j,
|
|
80
|
-
[o.rootActive]: H,
|
|
81
|
-
[o.rootActiveWithMarker]: F,
|
|
82
|
-
[o.rootStretched]: G
|
|
83
|
-
}), t[16] = h, t[17] = F, t[18] = G, t[19] = y, t[20] = j, t[21] = H, t[22] = O) : O = t[22];
|
|
84
|
-
const $ = O, q = x === 1;
|
|
85
|
-
let S;
|
|
86
|
-
t[23] !== q ? (S = N(o.activeMarker, {
|
|
87
|
-
[o.activeMarkerWithIndent]: q
|
|
88
|
-
}), t[23] = q, t[24] = S) : S = t[24];
|
|
89
|
-
const z = S, J = m && !c, K = dt === "bold", Q = e === "top";
|
|
90
|
-
let B;
|
|
91
|
-
t[25] !== J || t[26] !== K || t[27] !== Q ? (B = N(o.label, {
|
|
92
|
-
[o.labelActive]: J,
|
|
93
|
-
[o.labelBold]: K,
|
|
94
|
-
[o.labelIconTop]: Q
|
|
95
|
-
}), t[25] = J, t[26] = K, t[27] = Q, t[28] = B) : B = t[28];
|
|
96
|
-
const X = B, Y = e === "top";
|
|
97
|
-
let L;
|
|
98
|
-
t[29] !== Y ? (L = N(o.labelWrapper, {
|
|
99
|
-
[o.labelWrapperIconTop]: Y
|
|
100
|
-
}), t[29] = Y, t[30] = L) : L = t[30];
|
|
101
|
-
const Z = L, tt = e === "top", ot = i === "up", et = i === "right", nt = i === "left";
|
|
102
|
-
let M;
|
|
103
|
-
t[31] !== tt || t[32] !== ot || t[33] !== et || t[34] !== nt ? (M = N(o.chevron, {
|
|
104
|
-
[o.chevronIconPositionTop]: tt,
|
|
105
|
-
[o.chevronUp]: ot,
|
|
106
|
-
[o.chevronRight]: et,
|
|
107
|
-
[o.chevronLeft]: nt
|
|
108
|
-
}), t[31] = tt, t[32] = ot, t[33] = et, t[34] = nt, t[35] = M) : M = t[35];
|
|
109
|
-
const ct = M, it = (r || a) && (n || n === ""), rt = (r || a) && n;
|
|
110
|
-
let E;
|
|
111
|
-
t[36] !== it || t[37] !== rt ? (E = N(o.iconWrapper, {
|
|
112
|
-
[o.iconWrapperWithNumberIndicator]: it,
|
|
113
|
-
[o.iconWrapperWithNumberIndicatorWithValue]: rt
|
|
114
|
-
}), t[36] = it, t[37] = rt, t[38] = E) : E = t[38];
|
|
115
|
-
const at = E;
|
|
116
|
-
let U;
|
|
117
|
-
t[39] !== c || t[40] !== p ? (U = (ht) => {
|
|
118
|
-
if (c) {
|
|
119
|
-
ht.preventDefault();
|
|
120
|
-
return;
|
|
121
|
-
}
|
|
122
|
-
p && p(ht);
|
|
123
|
-
}, t[39] = c, t[40] = p, t[41] = U) : U = t[41];
|
|
124
|
-
const st = U;
|
|
125
|
-
let b;
|
|
126
|
-
t[42] !== z || t[43] !== e || t[44] !== m ? (b = m && e === "left" && /* @__PURE__ */ d("div", { className: z }), t[42] = z, t[43] = e, t[44] = m, t[45] = b) : b = t[45];
|
|
127
|
-
let v;
|
|
128
|
-
t[46] !== c || t[47] !== r || t[48] !== e || t[49] !== a || t[50] !== at || t[51] !== n ? (v = (r || a) && /* @__PURE__ */ d(bt, { children: /* @__PURE__ */ lt("span", { className: at, children: [
|
|
129
|
-
/* @__PURE__ */ d(_t, { name: r, theme: "light", source: a, "aria-hidden": "true" }),
|
|
130
|
-
!c && (e === "left" && n === "" || e === "top" && (n || n === "")) && /* @__PURE__ */ d(mt, { variant: "highlight", label: n })
|
|
131
|
-
] }) }), t[46] = c, t[47] = r, t[48] = e, t[49] = a, t[50] = at, t[51] = n, t[52] = v) : v = t[52];
|
|
132
|
-
let u;
|
|
133
|
-
t[53] !== l || t[54] !== X ? (u = /* @__PURE__ */ d("span", { className: X, children: l }), t[53] = l, t[54] = X, t[55] = u) : u = t[55];
|
|
134
|
-
let f;
|
|
135
|
-
t[56] !== ct || t[57] !== i ? (f = i && /* @__PURE__ */ d(_t, { name: "chevron-down", theme: "light", "aria-hidden": "true", className: ct }), t[56] = ct, t[57] = i, t[58] = f) : f = t[58];
|
|
136
|
-
let I;
|
|
137
|
-
t[59] !== Z || t[60] !== u || t[61] !== f ? (I = /* @__PURE__ */ lt("div", { className: Z, children: [
|
|
138
|
-
u,
|
|
139
|
-
f
|
|
140
|
-
] }), t[59] = Z, t[60] = u, t[61] = f, t[62] = I) : I = t[62];
|
|
141
|
-
let k;
|
|
142
|
-
t[63] !== c || t[64] !== e || t[65] !== n ? (k = e === "left" && !c && n && /* @__PURE__ */ d(mt, { variant: "default", label: n, className: o.numberIndicator }), t[63] = c, t[64] = e, t[65] = n, t[66] = k) : k = t[66];
|
|
143
|
-
let V;
|
|
144
|
-
return t[67] !== s || t[68] !== c || t[69] !== st || t[70] !== T || t[71] !== _ || t[72] !== $ || t[73] !== b || t[74] !== v || t[75] !== I || t[76] !== k ? (V = /* @__PURE__ */ lt("button", { className: $, type: "button", onClick: st, ...s, ..._, "aria-disabled": c, ref: T, children: [
|
|
145
|
-
b,
|
|
146
|
-
v,
|
|
147
|
-
I,
|
|
148
|
-
k
|
|
149
|
-
] }), t[67] = s, t[68] = c, t[69] = st, t[70] = T, t[71] = _, t[72] = $, t[73] = b, t[74] = v, t[75] = I, t[76] = k, t[77] = V) : V = t[77], V;
|
|
150
|
-
});
|
|
151
|
-
Ht.displayName = "DSActionButton";
|
|
152
|
-
export {
|
|
153
|
-
Qt as A,
|
|
154
|
-
Ht as D,
|
|
155
|
-
Xt as a,
|
|
156
|
-
Yt as b,
|
|
157
|
-
Zt as c,
|
|
158
|
-
jt as v
|
|
159
|
-
};
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs as et, jsx as N, Fragment as it } from "react/jsx-runtime";
|
|
3
|
-
import { d as nt } from "./index.CgTHIF3K.js";
|
|
4
|
-
import { c as E } from "./index.CEyLAtio.js";
|
|
5
|
-
import { D as rt } from "./Icon.CAXZUNWo.js";
|
|
6
|
-
import { forwardRef as ct } from "react";
|
|
7
|
-
import { NumberIndicator as ot } from "../numberindicator.Ddf3ESi7.js";
|
|
8
|
-
import { g as O } from "./helpers.CcqWV-wZ.js";
|
|
9
|
-
import '../assets/ActionLink.DuklSL3c.css';const at = "ds-action-link_root_q6kjv_1", lt = "ds-action-link_root--indent-level-1_q6kjv_72", st = "ds-action-link_root--active_q6kjv_75", dt = "ds-action-link_root--active--with-marker_q6kjv_78", pt = "ds-action-link_root--icon--top_q6kjv_81", vt = "ds-action-link_root--stretched_q6kjv_172", ht = "ds-action-link_active-marker_q6kjv_177", _t = "ds-action-link_active-marker--with-indent_q6kjv_189", kt = "ds-action-link_icon-wrapper_q6kjv_193", mt = "ds-action-link_icon-wrapper--with-number-indicator_q6kjv_196", ft = "ds-action-link_icon-wrapper--with-number-indicator--with-value_q6kjv_204", bt = "ds-action-link_label_q6kjv_208", It = "ds-action-link_label--bold_q6kjv_219", ut = "ds-action-link_label--active_q6kjv_230", Nt = "ds-action-link_label--icon-top_q6kjv_241", At = "ds-action-link_number-indicator_q6kjv_264", i = {
|
|
10
|
-
root: at,
|
|
11
|
-
rootIndentLevel1: lt,
|
|
12
|
-
rootActive: st,
|
|
13
|
-
rootActiveWithMarker: dt,
|
|
14
|
-
rootIconTop: pt,
|
|
15
|
-
rootStretched: vt,
|
|
16
|
-
activeMarker: ht,
|
|
17
|
-
activeMarkerWithIndent: _t,
|
|
18
|
-
iconWrapper: kt,
|
|
19
|
-
iconWrapperWithNumberIndicator: mt,
|
|
20
|
-
iconWrapperWithNumberIndicatorWithValue: ft,
|
|
21
|
-
label: bt,
|
|
22
|
-
labelBold: It,
|
|
23
|
-
labelActive: ut,
|
|
24
|
-
labelIconTop: Nt,
|
|
25
|
-
numberIndicator: At
|
|
26
|
-
}, Dt = ["left", "top"], Mt = [0, 1], Ct = ["normal", "bold"], Wt = ({
|
|
27
|
-
iconName: A,
|
|
28
|
-
iconSource: W,
|
|
29
|
-
iconPosition: t,
|
|
30
|
-
indentLevel: c,
|
|
31
|
-
stretched: a,
|
|
32
|
-
weight: l
|
|
33
|
-
}) => {
|
|
34
|
-
if (t === "top") {
|
|
35
|
-
if (!A && !W)
|
|
36
|
-
throw new Error(O("DSActionLink", 'A "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.'));
|
|
37
|
-
l === "bold" && console.warn(O("DSActionLink", 'A "weight" prop set to "bold" with "iconPosition" set to "top" has no effect. Please remove the "weight" prop.')), c === 1 && console.warn(O("DSActionLink", 'An "indentLevel" prop set to "1" with "iconPosition" set to "top" has no effect. Please remove the "indentLevel" prop.')), a && console.warn(O("DSActionLink", 'A "stretched" prop set to "true" with "iconPosition" set to "top" has no effect. Please remove the "stretched" prop.'));
|
|
38
|
-
}
|
|
39
|
-
}, wt = ct((A, W) => {
|
|
40
|
-
const t = nt.c(68);
|
|
41
|
-
let c, a, l, p, d, n, r, e, v, h, _, w, L, j, q, S, g;
|
|
42
|
-
t[0] !== A ? ({
|
|
43
|
-
children: a,
|
|
44
|
-
aria: c,
|
|
45
|
-
className: l,
|
|
46
|
-
download: p,
|
|
47
|
-
href: d,
|
|
48
|
-
iconName: n,
|
|
49
|
-
iconPosition: w,
|
|
50
|
-
iconSource: r,
|
|
51
|
-
indentLevel: L,
|
|
52
|
-
isActive: j,
|
|
53
|
-
numberIndicatorValue: e,
|
|
54
|
-
referrerPolicy: v,
|
|
55
|
-
rel: h,
|
|
56
|
-
stretched: q,
|
|
57
|
-
target: S,
|
|
58
|
-
weight: g,
|
|
59
|
-
..._
|
|
60
|
-
} = A, t[0] = A, t[1] = c, t[2] = a, t[3] = l, t[4] = p, t[5] = d, t[6] = n, t[7] = r, t[8] = e, t[9] = v, t[10] = h, t[11] = _, t[12] = w, t[13] = L, t[14] = j, t[15] = q, t[16] = S, t[17] = g) : (c = t[1], a = t[2], l = t[3], p = t[4], d = t[5], n = t[6], r = t[7], e = t[8], v = t[9], h = t[10], _ = t[11], w = t[12], L = t[13], j = t[14], q = t[15], S = t[16], g = t[17]);
|
|
61
|
-
const o = w === void 0 ? "left" : w, V = L === void 0 ? 0 : L, s = j === void 0 ? !1 : j, Z = q === void 0 ? !1 : q, x = S === void 0 ? "_self" : S, tt = g === void 0 ? "normal" : g;
|
|
62
|
-
process.env.NODE_ENV !== "production" && Wt({
|
|
63
|
-
iconName: n,
|
|
64
|
-
iconSource: r,
|
|
65
|
-
iconPosition: o,
|
|
66
|
-
indentLevel: V,
|
|
67
|
-
stretched: Z,
|
|
68
|
-
weight: tt
|
|
69
|
-
});
|
|
70
|
-
const y = o === "top", B = V === 1, K = s && o === "left", F = Z === !0 && o === "left";
|
|
71
|
-
let P;
|
|
72
|
-
t[18] !== l || t[19] !== s || t[20] !== F || t[21] !== y || t[22] !== B || t[23] !== K ? (P = E(i.root, l, {
|
|
73
|
-
[i.rootIconTop]: y,
|
|
74
|
-
[i.rootIndentLevel1]: B,
|
|
75
|
-
[i.rootActive]: s,
|
|
76
|
-
[i.rootActiveWithMarker]: K,
|
|
77
|
-
[i.rootStretched]: F
|
|
78
|
-
}), t[18] = l, t[19] = s, t[20] = F, t[21] = y, t[22] = B, t[23] = K, t[24] = P) : P = t[24];
|
|
79
|
-
const G = P, H = V === 1;
|
|
80
|
-
let T;
|
|
81
|
-
t[25] !== H ? (T = E(i.activeMarker, {
|
|
82
|
-
[i.activeMarkerWithIndent]: H
|
|
83
|
-
}), t[25] = H, t[26] = T) : T = t[26];
|
|
84
|
-
const R = T, $ = s && o === "left", z = tt === "bold", J = o === "top";
|
|
85
|
-
let D;
|
|
86
|
-
t[27] !== $ || t[28] !== z || t[29] !== J ? (D = E(i.label, {
|
|
87
|
-
[i.labelActive]: $,
|
|
88
|
-
[i.labelBold]: z,
|
|
89
|
-
[i.labelIconTop]: J
|
|
90
|
-
}), t[27] = $, t[28] = z, t[29] = J, t[30] = D) : D = t[30];
|
|
91
|
-
const Q = D, U = (n || r) && (e || e === ""), X = (n || r) && e;
|
|
92
|
-
let M;
|
|
93
|
-
t[31] !== U || t[32] !== X ? (M = E(i.iconWrapper, {
|
|
94
|
-
[i.iconWrapperWithNumberIndicator]: U,
|
|
95
|
-
[i.iconWrapperWithNumberIndicatorWithValue]: X
|
|
96
|
-
}), t[31] = U, t[32] = X, t[33] = M) : M = t[33];
|
|
97
|
-
const Y = M, k = d === void 0 ? "span" : "a";
|
|
98
|
-
let m;
|
|
99
|
-
t[34] !== k || t[35] !== p || t[36] !== d || t[37] !== v || t[38] !== h || t[39] !== x ? (m = k === "a" && {
|
|
100
|
-
href: d,
|
|
101
|
-
target: x,
|
|
102
|
-
rel: h,
|
|
103
|
-
referrerPolicy: v,
|
|
104
|
-
download: p
|
|
105
|
-
}, t[34] = k, t[35] = p, t[36] = d, t[37] = v, t[38] = h, t[39] = x, t[40] = m) : m = t[40];
|
|
106
|
-
let f;
|
|
107
|
-
t[41] !== R || t[42] !== o || t[43] !== s ? (f = s && o === "left" && /* @__PURE__ */ N("div", { className: R }), t[41] = R, t[42] = o, t[43] = s, t[44] = f) : f = t[44];
|
|
108
|
-
let b;
|
|
109
|
-
t[45] !== n || t[46] !== o || t[47] !== r || t[48] !== Y || t[49] !== e ? (b = (n || r) && /* @__PURE__ */ N(it, { children: /* @__PURE__ */ et("span", { className: Y, children: [
|
|
110
|
-
/* @__PURE__ */ N(rt, { name: n, theme: "light", source: r, "aria-hidden": "true" }),
|
|
111
|
-
(o === "left" && e === "" || o === "top" && (e || e === "")) && /* @__PURE__ */ N(ot, { variant: "highlight", label: e })
|
|
112
|
-
] }) }), t[45] = n, t[46] = o, t[47] = r, t[48] = Y, t[49] = e, t[50] = b) : b = t[50];
|
|
113
|
-
let I;
|
|
114
|
-
t[51] !== a || t[52] !== Q ? (I = /* @__PURE__ */ N("span", { className: Q, children: a }), t[51] = a, t[52] = Q, t[53] = I) : I = t[53];
|
|
115
|
-
let u;
|
|
116
|
-
t[54] !== o || t[55] !== e ? (u = o === "left" && e && /* @__PURE__ */ N(ot, { variant: "default", label: e, className: i.numberIndicator }), t[54] = o, t[55] = e, t[56] = u) : u = t[56];
|
|
117
|
-
let C;
|
|
118
|
-
return t[57] !== k || t[58] !== c || t[59] !== W || t[60] !== _ || t[61] !== G || t[62] !== m || t[63] !== f || t[64] !== b || t[65] !== I || t[66] !== u ? (C = /* @__PURE__ */ et(k, { className: G, ...m, ...c, ..._, ref: W, children: [
|
|
119
|
-
f,
|
|
120
|
-
b,
|
|
121
|
-
I,
|
|
122
|
-
u
|
|
123
|
-
] }), t[57] = k, t[58] = c, t[59] = W, t[60] = _, t[61] = G, t[62] = m, t[63] = f, t[64] = b, t[65] = I, t[66] = u, t[67] = C) : C = t[67], C;
|
|
124
|
-
});
|
|
125
|
-
wt.displayName = "DSActionLink";
|
|
126
|
-
export {
|
|
127
|
-
Dt as A,
|
|
128
|
-
wt as D,
|
|
129
|
-
Mt as a,
|
|
130
|
-
Ct as b,
|
|
131
|
-
Wt as v
|
|
132
|
-
};
|
|
@@ -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
|
-
};
|