@ilo-org/react 0.25.0 → 0.26.0
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/lib/cjs/_store/{Breadcrumb-chunk-Dpq0PkrL.js → Breadcrumb-chunk-Bc1WgkRf.js} +1 -1
- package/lib/cjs/_store/{Breadcrumb-entry-DqvKPkDy.js → Breadcrumb-entry-CHpuATsN.js} +1 -1
- package/lib/cjs/_store/{Button-chunk-GqAQVgEt.js → Button-chunk-C95z7yOh.js} +1 -1
- package/lib/cjs/_store/{Button-entry-BKxqoDTd.js → Button-entry-DGNgY--m.js} +1 -1
- package/lib/cjs/_store/{Callout-chunk-BfSmG_lo.js → Callout-chunk-CQ5xMM1i.js} +1 -1
- package/lib/cjs/_store/{Callout-entry-BWl-fM4V.js → Callout-entry-CgI45lFQ.js} +1 -1
- package/lib/cjs/_store/CardGroup-chunk-CWotQqws.js +1 -0
- package/lib/cjs/_store/Cards-entry-BMWtv2f-.js +1 -0
- package/lib/cjs/_store/ContextMenu-chunk-Bt4IM9J7.js +1 -0
- package/lib/cjs/_store/{ContextMenu-entry-dsiNFY0E.js → ContextMenu-entry-DfK4Z2zY.js} +1 -1
- package/lib/cjs/_store/DynamicHeading-chunk-DJzlOgQG.js +1 -0
- package/lib/cjs/_store/{Footer-chunk-TaoI4CW2.js → Footer-chunk-DhwHRSuP.js} +1 -1
- package/lib/cjs/_store/{Footer-entry-Dia_Yz7-.js → Footer-entry-BiwzSfZm.js} +1 -1
- package/lib/cjs/_store/{Hero-chunk-BjL7EFZF.js → Hero-chunk-CDJrCpL6.js} +1 -1
- package/lib/cjs/_store/{Hero-entry-BEkYf6OA.js → Hero-entry-P61ktZE-.js} +1 -1
- package/lib/cjs/_store/{HeroCard-chunk-BxvdF3ec.js → HeroCard-chunk-BO2BICG5.js} +1 -1
- package/lib/cjs/_store/{HeroCard-entry-Cy1KQqXn.js → HeroCard-entry-Bcf7NMkj.js} +1 -1
- package/lib/cjs/_store/Icon-chunk-DHrneVoo.js +1 -0
- package/lib/cjs/_store/{Icon-entry-DuU8BlUw.js → Icon-entry-DyS-xIbf.js} +1 -1
- package/lib/cjs/_store/LanguageToggle-chunk-Dq721sHc.js +1 -0
- package/lib/cjs/_store/{LanguageToggle-entry-_H4REDpU.js → LanguageToggle-entry-BIcgbNpM.js} +1 -1
- package/lib/cjs/_store/LinkList-chunk-CmVHEiqZ.js +1 -0
- package/lib/cjs/_store/{LinkList-entry-D8WmG1H6.js → LinkList-entry-BL9Es1VN.js} +1 -1
- package/lib/cjs/_store/List-entry-31dXgvRv.js +1 -0
- package/lib/cjs/_store/MainNav-chunk-uiXSehRt.js +1 -0
- package/lib/cjs/_store/Nav-entry-CQ65AlBh.js +1 -0
- package/lib/cjs/_store/{Notification-chunk-2QCwWkyJ.js → Notification-chunk-CAX-6JsZ.js} +1 -1
- package/lib/cjs/_store/{Notification-entry-BZxeAdKY.js → Notification-entry-SYTjGRZ_.js} +1 -1
- package/lib/cjs/_store/{Profile-chunk-BYt-KzV1.js → Profile-chunk-Bd8UJQPz.js} +1 -1
- package/lib/cjs/_store/{Profile-entry--A7T8H3j.js → Profile-entry-CLUsTNmL.js} +1 -1
- package/lib/cjs/_store/{SearchField-chunk-Co2k3NxN.js → SearchField-chunk-Bc-WiEPz.js} +1 -1
- package/lib/cjs/_store/{SearchField-entry-BUoeC9YW.js → SearchField-entry-ClyaljSb.js} +1 -1
- package/lib/cjs/_store/SocialMedia-chunk-BlRflaPL.js +1 -0
- package/lib/cjs/_store/{SocialMedia-entry-lxx8yheX.js → SocialMedia-entry-y0SwUpID.js} +1 -1
- package/lib/cjs/_store/{Tabs-chunk-CFtNDTSD.js → Tabs-chunk-Bk_Z-Qlz.js} +1 -1
- package/lib/cjs/_store/{Tabs-entry-F5uRTfcu.js → Tabs-entry-KnBadJ9n.js} +1 -1
- package/lib/cjs/_store/{Tag-chunk-pecicJx_.js → Tag-chunk-BlwQ9fNn.js} +1 -1
- package/lib/cjs/_store/{Tag-entry-BOwYiCqK.js → Tag-entry-7jDcXl9v.js} +1 -1
- package/lib/cjs/_store/components-entry-XOyyQZvk.js +1 -0
- package/lib/cjs/_store/index.js +1 -1
- package/lib/cjs/_store/useFocusTrap-chunk-CB0jpZY1.js +1 -0
- package/lib/cjs/_store/useOutsideClick-chunk-B3G_jqci.js +1 -0
- package/lib/cjs/index.js +1 -1
- package/lib/esm/_store/{Breadcrumb-chunk-BmS7TVwo.js → Breadcrumb-chunk-C5nxxjB6.js} +22 -22
- package/lib/esm/_store/Breadcrumb-entry-Cb449Id_.js +4 -0
- package/lib/esm/_store/{Button-chunk-BvX6KNZ6.js → Button-chunk-Ccbxfwbf.js} +1 -1
- package/lib/esm/_store/Button-entry-a2836eCG.js +4 -0
- package/lib/esm/_store/{Callout-chunk-DlkjnwyO.js → Callout-chunk-lXbe2cTI.js} +1 -1
- package/lib/esm/_store/Callout-entry-CqbJtAcP.js +4 -0
- package/lib/esm/_store/CardGroup-chunk-CDiL5eWl.js +798 -0
- package/lib/esm/_store/{Cards-entry-Dy9RcgLp.js → Cards-entry-BzkuEjVm.js} +1 -1
- package/lib/esm/_store/ContextMenu-chunk-CX3zW2yD.js +63 -0
- package/lib/esm/_store/ContextMenu-entry-BkiSVnYD.js +4 -0
- package/lib/esm/_store/DynamicHeading-chunk-CO_vg_Lp.js +7 -0
- package/lib/esm/_store/{Footer-chunk-DUKfjpB_.js → Footer-chunk-Cs4S0fL1.js} +3 -3
- package/lib/esm/_store/Footer-entry-DSntq8ti.js +4 -0
- package/lib/esm/_store/{Hero-chunk-Be04T-g-.js → Hero-chunk-8XPHDh4M.js} +3 -3
- package/lib/esm/_store/Hero-entry-CAGpvq4h.js +4 -0
- package/lib/esm/_store/{HeroCard-chunk-Dpp8lL_Q.js → HeroCard-chunk-DIoKqIvc.js} +1 -1
- package/lib/esm/_store/HeroCard-entry-rQFyyLmk.js +4 -0
- package/lib/esm/_store/Icon-chunk-B3pcCi1Q.js +5476 -0
- package/lib/esm/_store/Icon-entry-CrclgMhq.js +4 -0
- package/lib/esm/_store/{LanguageToggle-chunk-5yhqP-ia.js → LanguageToggle-chunk-C51Ysq9D.js} +17 -18
- package/lib/esm/_store/LanguageToggle-entry-D-mpVcVo.js +4 -0
- package/lib/esm/_store/{LinkList-chunk-D5z3Upbc.js → LinkList-chunk-ClC0P1yc.js} +20 -12
- package/lib/esm/_store/LinkList-entry-JTzNkCSz.js +4 -0
- package/lib/esm/_store/{List-entry-oG99Ip94.js → List-entry-BX9gaFfD.js} +15 -13
- package/lib/esm/_store/MainNav-chunk-DrgCIgDB.js +776 -0
- package/lib/esm/_store/Nav-entry-CIRUo3IY.js +5 -0
- package/lib/esm/_store/{Notification-chunk-_adtYhvS.js → Notification-chunk-B_ca8Swd.js} +1 -1
- package/lib/esm/_store/Notification-entry-DLSFiH_T.js +4 -0
- package/lib/esm/_store/{Profile-chunk-D0RBDgln.js → Profile-chunk-BTvSWyom.js} +1 -1
- package/lib/esm/_store/Profile-entry-CfUKvpwQ.js +4 -0
- package/lib/esm/_store/{SearchField-chunk-4Y2NnK71.js → SearchField-chunk-CZ2F5vv2.js} +5 -4
- package/lib/esm/_store/SearchField-entry-BjJ0zp2R.js +4 -0
- package/lib/esm/_store/{SocialMedia-chunk-DEHVELJ8.js → SocialMedia-chunk-CmTguYLJ.js} +24 -15
- package/lib/esm/_store/{SocialMedia-entry-C2BAEraF.js → SocialMedia-entry-Bb_WqSHH.js} +16 -1
- package/lib/esm/_store/{Tabs-chunk-BFJu-8N_.js → Tabs-chunk-CiBKN1wK.js} +1 -1
- package/lib/esm/_store/Tabs-entry-DViSSd6j.js +4 -0
- package/lib/esm/_store/{Tag-chunk-CtoF0KuM.js → Tag-chunk-Dl2zXTQ8.js} +1 -1
- package/lib/esm/_store/{Tag-entry-CY9Wk-E1.js → Tag-entry-CnUfb7ow.js} +2 -2
- package/lib/esm/_store/{components-entry-BurF2spT.js → components-entry-DlfoU4Sn.js} +43 -44
- package/lib/esm/_store/index.js +9 -6
- package/lib/esm/_store/useFocusTrap-chunk-YNgJEwcj.js +65 -0
- package/lib/esm/_store/useOutsideClick-chunk-CWy5z-7S.js +71 -0
- package/lib/esm/index.js +63 -61
- package/lib/styles/components/accordion.css +1 -1
- package/lib/styles/components/blockquote.css +1 -1
- package/lib/styles/components/breadcrumb.css +1 -1
- package/lib/styles/components/button.css +1 -1
- package/lib/styles/components/callout.css +1 -1
- package/lib/styles/components/card.css +1 -1
- package/lib/styles/components/cardgroup.css +1 -1
- package/lib/styles/components/checkbox.css +1 -1
- package/lib/styles/components/container.css +1 -1
- package/lib/styles/components/contextmenu.css +1 -1
- package/lib/styles/components/datacard.css +1 -1
- package/lib/styles/components/datepicker.css +1 -1
- package/lib/styles/components/detailcard.css +1 -1
- package/lib/styles/components/dropdown.css +1 -1
- package/lib/styles/components/empty.css +1 -1
- package/lib/styles/components/factlistcard.css +1 -1
- package/lib/styles/components/featurecard.css +1 -1
- package/lib/styles/components/fieldset.css +1 -1
- package/lib/styles/components/file-upload.css +1 -1
- package/lib/styles/components/footer.css +1 -1
- package/lib/styles/components/form.css +1 -1
- package/lib/styles/components/formcontrol.css +1 -1
- package/lib/styles/components/hero.css +1 -1
- package/lib/styles/components/herocard.css +1 -1
- package/lib/styles/components/image.css +1 -1
- package/lib/styles/components/input.css +1 -1
- package/lib/styles/components/languagetoggle.css +1 -1
- package/lib/styles/components/link.css +1 -1
- package/lib/styles/components/linklist.css +1 -1
- package/lib/styles/components/list.css +1 -1
- package/lib/styles/components/loading.css +1 -1
- package/lib/styles/components/logogrid.css +1 -1
- package/lib/styles/components/modal.css +1 -1
- package/lib/styles/components/multilinkcard.css +1 -1
- package/lib/styles/components/navigation.css +1 -1
- package/lib/styles/components/notification.css +1 -1
- package/lib/styles/components/pagination.css +1 -1
- package/lib/styles/components/profile.css +1 -1
- package/lib/styles/components/promocard.css +1 -1
- package/lib/styles/components/radio.css +1 -1
- package/lib/styles/components/readmore.css +1 -1
- package/lib/styles/components/richtext.css +1 -1
- package/lib/styles/components/scorecard.css +1 -1
- package/lib/styles/components/searchfield.css +1 -1
- package/lib/styles/components/socialmedia.css +1 -1
- package/lib/styles/components/statcard.css +1 -1
- package/lib/styles/components/status.css +1 -1
- package/lib/styles/components/table.css +1 -1
- package/lib/styles/components/tableofcontents.css +1 -1
- package/lib/styles/components/tabs.css +1 -1
- package/lib/styles/components/tag.css +1 -1
- package/lib/styles/components/textarea.css +1 -1
- package/lib/styles/components/textcard.css +1 -1
- package/lib/styles/components/textinput.css +1 -1
- package/lib/styles/components/toggle.css +1 -1
- package/lib/styles/components/tooltip.css +1 -1
- package/lib/styles/components/video.css +1 -1
- package/lib/styles/global.css.map +1 -1
- package/lib/styles/index.css +3 -3
- package/lib/styles/index.css.map +1 -1
- package/lib/styles/monorepo.css +3 -3
- package/lib/styles/monorepo.css.map +1 -1
- package/lib/types/components/Cards/DataCard.d.ts +27 -3
- package/lib/types/components/Cards/DetailCard.d.ts +18 -2
- package/lib/types/components/Cards/FactListCard.d.ts +18 -2
- package/lib/types/components/Cards/FeatureCard.d.ts +18 -2
- package/lib/types/components/Cards/MultiLinkCard.d.ts +22 -2
- package/lib/types/components/Cards/PromoCard.d.ts +18 -2
- package/lib/types/components/Cards/ScoreCard.d.ts +20 -3
- package/lib/types/components/Cards/StatCard.d.ts +18 -2
- package/lib/types/components/Cards/TextCard.d.ts +18 -2
- package/lib/types/components/ContextMenu/ContextMenu.d.ts +8 -0
- package/lib/types/components/DynamicHeading/DynamicHeading.d.ts +9 -0
- package/lib/types/components/LanguageToggle/LanguageToggle.d.ts +1 -1
- package/lib/types/components/LinkList/LinkList.d.ts +5 -1
- package/lib/types/components/List/List.d.ts +9 -0
- package/lib/types/components/List/index.d.ts +1 -0
- package/lib/types/components/Nav/MainNav.d.ts +4 -0
- package/lib/types/components/Nav/Navigation.props.d.ts +52 -23
- package/lib/types/components/Nav/{Subsite/SubsiteNav.d.ts → SubsiteNav.d.ts} +1 -1
- package/lib/types/components/Nav/index.d.ts +3 -2
- package/lib/types/components/Nav/{NavigationDropdown.d.ts → internals/NavigationDropdown.d.ts} +8 -5
- package/lib/types/components/Nav/{NavigationLink.d.ts → internals/NavigationLink.d.ts} +1 -1
- package/lib/types/components/Nav/internals/NavigationMenu.d.ts +16 -0
- package/lib/types/components/Nav/{NavigationMenuGrid.d.ts → internals/NavigationMenuGrid.d.ts} +1 -1
- package/lib/types/components/Nav/{useNavSetup.d.ts → internals/hooks/useNavSetup.d.ts} +1 -1
- package/lib/types/components/Nav/{mobile → internals/mobile}/MobileDrawer.d.ts +5 -1
- package/lib/types/components/Nav/{mobile → internals/mobile}/MobileLanguageList.d.ts +1 -1
- package/lib/types/components/Nav/{mobile → internals/mobile}/MobileMenuList.d.ts +1 -1
- package/lib/types/components/Nav/{mobile → internals/mobile}/MobileNavigation.d.ts +2 -2
- package/lib/types/components/SocialMedia/SocialMedia.props.d.ts +5 -1
- package/lib/types/components/index.d.ts +0 -1
- package/lib/types/hooks/index.d.ts +2 -0
- package/lib/types/hooks/useFocusTrap.d.ts +12 -0
- package/lib/types/hooks/useOutsideClick.d.ts +4 -0
- package/lib/types/types/index.d.ts +1 -1
- package/package.json +4 -3
- package/lib/cjs/_store/CardGroup-chunk-Bdg6k3xe.js +0 -1
- package/lib/cjs/_store/Cards-entry-BljbMyDU.js +0 -1
- package/lib/cjs/_store/ContextMenu-chunk-DJWyl3UI.js +0 -1
- package/lib/cjs/_store/Icon-chunk-DtOVpxQ-.js +0 -1
- package/lib/cjs/_store/LanguageToggle-chunk-Cw7PRG8W.js +0 -1
- package/lib/cjs/_store/LinkList-chunk-Duhkqb-C.js +0 -1
- package/lib/cjs/_store/List-entry-Cr2Df-dK.js +0 -1
- package/lib/cjs/_store/Nav-entry-B62wFPBX.js +0 -1
- package/lib/cjs/_store/Navigation-entry-Cz0hT5co.js +0 -1
- package/lib/cjs/_store/SocialMedia-chunk-B_GSOonV.js +0 -1
- package/lib/cjs/_store/SubsiteNav-chunk-G3tutetq.js +0 -1
- package/lib/cjs/_store/components-entry-B8oNQiJz.js +0 -1
- package/lib/cjs/_store/useBreakpoint-chunk-zqMY82iP.js +0 -1
- package/lib/esm/_store/Breadcrumb-entry-CU_jT92F.js +0 -4
- package/lib/esm/_store/Button-entry-D7fBzdgB.js +0 -4
- package/lib/esm/_store/Callout-entry-nMgjy2KW.js +0 -4
- package/lib/esm/_store/CardGroup-chunk-CBTshcSl.js +0 -507
- package/lib/esm/_store/ContextMenu-chunk-ZE0ANbkf.js +0 -40
- package/lib/esm/_store/ContextMenu-entry-CdajPfm6.js +0 -4
- package/lib/esm/_store/Footer-entry-6fL7F6zI.js +0 -4
- package/lib/esm/_store/Hero-entry-KS9RtmIr.js +0 -4
- package/lib/esm/_store/HeroCard-entry-Ci6b3eLs.js +0 -4
- package/lib/esm/_store/Icon-chunk-DxouZQcV.js +0 -4431
- package/lib/esm/_store/Icon-entry-DsXhLlM5.js +0 -4
- package/lib/esm/_store/LanguageToggle-entry-CvD0nDPx.js +0 -4
- package/lib/esm/_store/LinkList-entry-Bd5jTl6s.js +0 -4
- package/lib/esm/_store/Nav-entry-BRBGTM-i.js +0 -4
- package/lib/esm/_store/Navigation-entry-DWntijlA.js +0 -4
- package/lib/esm/_store/Notification-entry-D_rG_6wM.js +0 -4
- package/lib/esm/_store/Profile-entry-BDkLs_81.js +0 -4
- package/lib/esm/_store/SearchField-entry-oUXJXjo_.js +0 -4
- package/lib/esm/_store/SubsiteNav-chunk-ClugkI0I.js +0 -546
- package/lib/esm/_store/Tabs-entry-Bxitnkrg.js +0 -4
- package/lib/esm/_store/useBreakpoint-chunk-Bl6AhTq7.js +0 -53
- package/lib/types/components/Nav/NavigationMenu.d.ts +0 -13
- package/lib/types/components/Navigation/Navigation.d.ts +0 -5
- package/lib/types/components/Navigation/Navigation.props.d.ts +0 -87
- package/lib/types/components/Navigation/index.d.ts +0 -1
|
@@ -1,546 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as m } from "react/jsx-runtime";
|
|
2
|
-
import { memo as z, useRef as L, useCallback as S, useEffect as y, useId as G, useState as x, forwardRef as O, useImperativeHandle as B } from "react";
|
|
3
|
-
import { u as v } from "./useGlobalSettings-chunk-BhfWlTcd.js";
|
|
4
|
-
import { createPortal as A } from "react-dom";
|
|
5
|
-
import { c as b } from "./index-chunk-CY3PQDr4.js";
|
|
6
|
-
import { L as D } from "./LanguageToggle-chunk-5yhqP-ia.js";
|
|
7
|
-
import { u as H } from "./useBreakpoint-chunk-Bl6AhTq7.js";
|
|
8
|
-
const q = ({
|
|
9
|
-
isOpen: s,
|
|
10
|
-
className: r,
|
|
11
|
-
navRef: c,
|
|
12
|
-
children: n
|
|
13
|
-
}) => {
|
|
14
|
-
const { prefix: a } = v(), t = L(null), _ = `${a}--nav-dropdown`, i = S(() => {
|
|
15
|
-
if (!(t != null && t.current) || !(c != null && c.current))
|
|
16
|
-
return;
|
|
17
|
-
const o = c.current.getBoundingClientRect();
|
|
18
|
-
t.current.style.top = `${o.bottom}px`, t.current.style.width = `${o.width}px`;
|
|
19
|
-
}, [c]);
|
|
20
|
-
return y(() => (i(), window.addEventListener("resize", i), () => {
|
|
21
|
-
window.removeEventListener("resize", i);
|
|
22
|
-
}), [c]), typeof document > "u" ? null : A(
|
|
23
|
-
/* @__PURE__ */ e(
|
|
24
|
-
"div",
|
|
25
|
-
{
|
|
26
|
-
ref: t,
|
|
27
|
-
className: b({
|
|
28
|
-
[_]: !0,
|
|
29
|
-
[`${_}--open`]: s,
|
|
30
|
-
className: r
|
|
31
|
-
}),
|
|
32
|
-
children: /* @__PURE__ */ e("div", { className: `${_}__container`, children: n })
|
|
33
|
-
}
|
|
34
|
-
),
|
|
35
|
-
document.body
|
|
36
|
-
);
|
|
37
|
-
}, P = z(q), f = (s) => {
|
|
38
|
-
const { label: r, component: c, ...n } = s;
|
|
39
|
-
return c ? /* @__PURE__ */ e(c, { ...n, children: r }) : /* @__PURE__ */ e("a", { ...n, children: r });
|
|
40
|
-
}, T = ({ menu: s }) => {
|
|
41
|
-
const { prefix: r } = v(), c = `${r}--nav-menu-grid`, n = [];
|
|
42
|
-
for (let a = 0; a < s.length; a += 5)
|
|
43
|
-
n.push(s.slice(a, a + 5));
|
|
44
|
-
return /* @__PURE__ */ e("div", { className: c, children: n.map((a, t) => /* @__PURE__ */ e("div", { className: `${c}__column`, children: a.map((_) => {
|
|
45
|
-
var i;
|
|
46
|
-
return /* @__PURE__ */ e(
|
|
47
|
-
f,
|
|
48
|
-
{
|
|
49
|
-
className: `${c}__item`,
|
|
50
|
-
href: _.href,
|
|
51
|
-
label: _.label
|
|
52
|
-
},
|
|
53
|
-
(i = _.label) == null ? void 0 : i.toString()
|
|
54
|
-
);
|
|
55
|
-
}) }, t)) });
|
|
56
|
-
}, I = ({
|
|
57
|
-
menu: s
|
|
58
|
-
}) => {
|
|
59
|
-
const { prefix: r } = v(), c = `${r}--nav-mobile-menu`;
|
|
60
|
-
return /* @__PURE__ */ e("ul", { className: `${c}`, children: s.map((n, a) => {
|
|
61
|
-
const t = typeof n.isActive == "function" ? n.isActive() : n.isActive;
|
|
62
|
-
return /* @__PURE__ */ m("li", { className: `${c}__item`, children: [
|
|
63
|
-
/* @__PURE__ */ e(
|
|
64
|
-
f,
|
|
65
|
-
{
|
|
66
|
-
label: n.label,
|
|
67
|
-
href: n.href,
|
|
68
|
-
className: `${c}__link`
|
|
69
|
-
}
|
|
70
|
-
),
|
|
71
|
-
t && /* @__PURE__ */ e("span", { className: `${c}__marked` })
|
|
72
|
-
] }, a);
|
|
73
|
-
}) });
|
|
74
|
-
}, M = ({
|
|
75
|
-
isOpen: s,
|
|
76
|
-
onClose: r,
|
|
77
|
-
header: c,
|
|
78
|
-
widgets: n,
|
|
79
|
-
children: a,
|
|
80
|
-
className: t
|
|
81
|
-
}) => {
|
|
82
|
-
const { prefix: _ } = v(), i = G(), o = `${_}--nav-mobile-drawer`;
|
|
83
|
-
return typeof document > "u" ? null : A(
|
|
84
|
-
/* @__PURE__ */ m(
|
|
85
|
-
"div",
|
|
86
|
-
{
|
|
87
|
-
id: `${o}__${i}`,
|
|
88
|
-
className: b(o, t, {
|
|
89
|
-
[`${o}--open`]: s
|
|
90
|
-
}),
|
|
91
|
-
children: [
|
|
92
|
-
/* @__PURE__ */ m("div", { className: `${o}__header`, children: [
|
|
93
|
-
/* @__PURE__ */ e("div", { className: `${o}__header-main`, children: c }),
|
|
94
|
-
/* @__PURE__ */ e(
|
|
95
|
-
"button",
|
|
96
|
-
{
|
|
97
|
-
className: `${o}__header-close`,
|
|
98
|
-
onClick: r,
|
|
99
|
-
"aria-label": "Close navigation",
|
|
100
|
-
children: /* @__PURE__ */ e("span", { className: `${o}__header-close__icon` })
|
|
101
|
-
}
|
|
102
|
-
)
|
|
103
|
-
] }),
|
|
104
|
-
/* @__PURE__ */ m("div", { className: `${o}__container`, children: [
|
|
105
|
-
/* @__PURE__ */ e("div", { className: `${o}__widgets`, children: n }),
|
|
106
|
-
a
|
|
107
|
-
] })
|
|
108
|
-
]
|
|
109
|
-
}
|
|
110
|
-
),
|
|
111
|
-
document.body
|
|
112
|
-
);
|
|
113
|
-
}, F = ({
|
|
114
|
-
options: s,
|
|
115
|
-
selected: r
|
|
116
|
-
}) => {
|
|
117
|
-
const c = (s == null ? void 0 : s.map((a) => ({
|
|
118
|
-
label: a.label,
|
|
119
|
-
href: a.url
|
|
120
|
-
}))) || [], n = [{ label: r, href: "#", isActive: !0 }, ...c];
|
|
121
|
-
return /* @__PURE__ */ e(I, { menu: n });
|
|
122
|
-
}, E = ({
|
|
123
|
-
isOpen: s,
|
|
124
|
-
navigationProps: {
|
|
125
|
-
branding: r,
|
|
126
|
-
menu: { items: c, labels: n },
|
|
127
|
-
widgets: a
|
|
128
|
-
},
|
|
129
|
-
onClose: t
|
|
130
|
-
}) => {
|
|
131
|
-
var k, g, C;
|
|
132
|
-
const { prefix: _ } = v(), [i, o] = x(!1), [$, d] = x(!1), h = S(() => {
|
|
133
|
-
o(!1), d(!1);
|
|
134
|
-
}, []), u = `${_}--nav-mobile`, p = i || $, N = c.slice(0, 5), l = c.slice(5);
|
|
135
|
-
return /* @__PURE__ */ m(
|
|
136
|
-
M,
|
|
137
|
-
{
|
|
138
|
-
isOpen: s,
|
|
139
|
-
onClose: t,
|
|
140
|
-
header: /* @__PURE__ */ e("div", { className: `${u}__branding`, children: /* @__PURE__ */ e("div", { className: `${u}__logo`, children: r.logo.drawer || r.logo.main }) }),
|
|
141
|
-
widgets: /* @__PURE__ */ m("div", { className: `${u}__widgets`, children: [
|
|
142
|
-
(a == null ? void 0 : a.search) && /* @__PURE__ */ m(
|
|
143
|
-
"a",
|
|
144
|
-
{
|
|
145
|
-
className: `${u}__widgets-search`,
|
|
146
|
-
href: a.search.url,
|
|
147
|
-
"aria-label": "Search",
|
|
148
|
-
children: [
|
|
149
|
-
/* @__PURE__ */ e("span", { className: `${u}__widgets-search__label`, children: a.search.label }),
|
|
150
|
-
/* @__PURE__ */ e("span", { className: `${u}__widgets-search__icon` })
|
|
151
|
-
]
|
|
152
|
-
}
|
|
153
|
-
),
|
|
154
|
-
(a == null ? void 0 : a.link) && /* @__PURE__ */ e(
|
|
155
|
-
f,
|
|
156
|
-
{
|
|
157
|
-
className: `${u}__widgets-link`,
|
|
158
|
-
href: a.link.href,
|
|
159
|
-
"aria-label": a.link.label,
|
|
160
|
-
label: a.link.label
|
|
161
|
-
}
|
|
162
|
-
),
|
|
163
|
-
(a == null ? void 0 : a.language) && /* @__PURE__ */ m(
|
|
164
|
-
"button",
|
|
165
|
-
{
|
|
166
|
-
className: `${u}__widgets-language`,
|
|
167
|
-
onClick: () => d(!0),
|
|
168
|
-
"aria-expanded": $,
|
|
169
|
-
"aria-controls": "language-list",
|
|
170
|
-
"aria-label": "Select language",
|
|
171
|
-
children: [
|
|
172
|
-
/* @__PURE__ */ m("span", { className: `${u}__widgets-language__label`, children: [
|
|
173
|
-
a.language.label,
|
|
174
|
-
": ",
|
|
175
|
-
a.language.language
|
|
176
|
-
] }),
|
|
177
|
-
/* @__PURE__ */ e("span", { className: `${u}__widgets-language__icon` })
|
|
178
|
-
]
|
|
179
|
-
}
|
|
180
|
-
)
|
|
181
|
-
] }),
|
|
182
|
-
children: [
|
|
183
|
-
/* @__PURE__ */ e(I, { menu: N }),
|
|
184
|
-
!!l.length && /* @__PURE__ */ m(
|
|
185
|
-
"button",
|
|
186
|
-
{
|
|
187
|
-
className: `${u}__more`,
|
|
188
|
-
onClick: () => o(!0),
|
|
189
|
-
"aria-expanded": i,
|
|
190
|
-
"aria-controls": "more-items",
|
|
191
|
-
"aria-label": "More items",
|
|
192
|
-
children: [
|
|
193
|
-
n.more,
|
|
194
|
-
/* @__PURE__ */ e("span", { className: `${u}__more__icon` })
|
|
195
|
-
]
|
|
196
|
-
}
|
|
197
|
-
),
|
|
198
|
-
/* @__PURE__ */ e(
|
|
199
|
-
M,
|
|
200
|
-
{
|
|
201
|
-
className: `${u}__nested`,
|
|
202
|
-
header: /* @__PURE__ */ m(
|
|
203
|
-
"button",
|
|
204
|
-
{
|
|
205
|
-
className: `${u}__nested__header`,
|
|
206
|
-
onClick: h,
|
|
207
|
-
"aria-label": "Back to menu",
|
|
208
|
-
children: [
|
|
209
|
-
/* @__PURE__ */ e("span", { className: `${u}__nested__header__icon` }),
|
|
210
|
-
n.backToMenu
|
|
211
|
-
]
|
|
212
|
-
}
|
|
213
|
-
),
|
|
214
|
-
widgets: /* @__PURE__ */ e("span", { className: `${u}__nested__title`, children: i ? n.more : (k = a == null ? void 0 : a.language) == null ? void 0 : k.label }),
|
|
215
|
-
isOpen: p,
|
|
216
|
-
onClose: h,
|
|
217
|
-
"aria-modal": "true",
|
|
218
|
-
children: i ? /* @__PURE__ */ e(I, { menu: l, id: "more-items" }) : /* @__PURE__ */ e(
|
|
219
|
-
F,
|
|
220
|
-
{
|
|
221
|
-
selected: ((g = a == null ? void 0 : a.language) == null ? void 0 : g.language) || "",
|
|
222
|
-
options: (C = a == null ? void 0 : a.language) == null ? void 0 : C.options,
|
|
223
|
-
id: "language-list"
|
|
224
|
-
}
|
|
225
|
-
)
|
|
226
|
-
}
|
|
227
|
-
)
|
|
228
|
-
]
|
|
229
|
-
}
|
|
230
|
-
);
|
|
231
|
-
};
|
|
232
|
-
function X({ menu: s, split: r }) {
|
|
233
|
-
const { breakpoint: c } = H(), [n, a] = x(!1), [t, _] = x(!1), [i, o] = x(!1), $ = L(null), d = ["xl", "xxl"].includes(c || "md"), h = d ? r.desktop : r.mobile, u = s.slice(0, h), p = s.slice(h);
|
|
234
|
-
return y(() => {
|
|
235
|
-
o(!0);
|
|
236
|
-
}, []), {
|
|
237
|
-
menu: { facade: u, more: p },
|
|
238
|
-
more: [n, a],
|
|
239
|
-
mobile: [t, _],
|
|
240
|
-
isDesktop: d,
|
|
241
|
-
isClient: i,
|
|
242
|
-
ref: $
|
|
243
|
-
};
|
|
244
|
-
}
|
|
245
|
-
const j = ({ className: s, menu: r, more: c }) => {
|
|
246
|
-
const { prefix: n } = v(), a = `${n}--nav-menu`;
|
|
247
|
-
return /* @__PURE__ */ m("div", { className: b(a, s), children: [
|
|
248
|
-
/* @__PURE__ */ e("ul", { className: `${a}__list`, children: r.map(({ isActive: t, ..._ }) => {
|
|
249
|
-
var o;
|
|
250
|
-
const i = typeof t == "function" ? t() : t;
|
|
251
|
-
return /* @__PURE__ */ e("li", { className: `${a}__item`, children: /* @__PURE__ */ e(
|
|
252
|
-
f,
|
|
253
|
-
{
|
|
254
|
-
..._,
|
|
255
|
-
className: b({
|
|
256
|
-
[`${a}__link`]: !0,
|
|
257
|
-
[`${a}__link--active`]: i,
|
|
258
|
-
[_.className || ""]: _.className
|
|
259
|
-
})
|
|
260
|
-
}
|
|
261
|
-
) }, (o = _.label) == null ? void 0 : o.toString());
|
|
262
|
-
}) }),
|
|
263
|
-
c && /* @__PURE__ */ m(
|
|
264
|
-
"button",
|
|
265
|
-
{
|
|
266
|
-
onClick: c.onClick,
|
|
267
|
-
className: b({
|
|
268
|
-
[`${a}__more`]: !0,
|
|
269
|
-
[`${a}__more--open`]: c.isOpen
|
|
270
|
-
}),
|
|
271
|
-
"aria-expanded": c.isOpen,
|
|
272
|
-
"aria-haspopup": "menu",
|
|
273
|
-
children: [
|
|
274
|
-
c.label,
|
|
275
|
-
/* @__PURE__ */ e("span", { className: `${a}__more-icon` })
|
|
276
|
-
]
|
|
277
|
-
}
|
|
278
|
-
)
|
|
279
|
-
] });
|
|
280
|
-
}, J = O(
|
|
281
|
-
({
|
|
282
|
-
props: {
|
|
283
|
-
branding: s,
|
|
284
|
-
menu: { items: r, labels: c },
|
|
285
|
-
widgets: n
|
|
286
|
-
}
|
|
287
|
-
}, a) => {
|
|
288
|
-
const { prefix: t } = v(), {
|
|
289
|
-
menu: { facade: _, more: i },
|
|
290
|
-
more: [o, $],
|
|
291
|
-
mobile: [d, h],
|
|
292
|
-
isDesktop: u,
|
|
293
|
-
ref: p,
|
|
294
|
-
isClient: N
|
|
295
|
-
} = X({ menu: r, split: { desktop: 4, mobile: 2 } });
|
|
296
|
-
B(a, () => p.current);
|
|
297
|
-
const l = `${t}--subsite-nav-compact`;
|
|
298
|
-
return /* @__PURE__ */ m("header", { ref: p, className: l, children: [
|
|
299
|
-
/* @__PURE__ */ m("div", { className: `${l}__container`, children: [
|
|
300
|
-
/* @__PURE__ */ m("nav", { className: `${l}__nav`, children: [
|
|
301
|
-
/* @__PURE__ */ e(
|
|
302
|
-
"div",
|
|
303
|
-
{
|
|
304
|
-
className: `${l}__branding`,
|
|
305
|
-
onClick: s == null ? void 0 : s.onClick,
|
|
306
|
-
role: "button",
|
|
307
|
-
"aria-label": "Branding",
|
|
308
|
-
tabIndex: 0,
|
|
309
|
-
children: /* @__PURE__ */ e("div", { className: `${l}__branding-logo`, children: s.logo.main })
|
|
310
|
-
}
|
|
311
|
-
),
|
|
312
|
-
/* @__PURE__ */ e(
|
|
313
|
-
j,
|
|
314
|
-
{
|
|
315
|
-
className: `${l}__menu`,
|
|
316
|
-
menu: _,
|
|
317
|
-
more: i.length ? {
|
|
318
|
-
label: c.more,
|
|
319
|
-
onClick: () => $(!o),
|
|
320
|
-
isOpen: o
|
|
321
|
-
} : void 0
|
|
322
|
-
}
|
|
323
|
-
)
|
|
324
|
-
] }),
|
|
325
|
-
n && /* @__PURE__ */ m("div", { className: `${l}__widget-bar`, children: [
|
|
326
|
-
/* @__PURE__ */ e("span", { className: `${l}__widget-bar-corner` }),
|
|
327
|
-
/* @__PURE__ */ m("div", { className: `${l}__widget-bar-content`, children: [
|
|
328
|
-
n.link && /* @__PURE__ */ e(
|
|
329
|
-
f,
|
|
330
|
-
{
|
|
331
|
-
className: `${l}__widget-bar-link`,
|
|
332
|
-
href: n.link.href,
|
|
333
|
-
label: n.link.label
|
|
334
|
-
}
|
|
335
|
-
),
|
|
336
|
-
n.language && N && /* @__PURE__ */ e("div", { className: `${l}__widget-bar-language`, children: /* @__PURE__ */ e(
|
|
337
|
-
D,
|
|
338
|
-
{
|
|
339
|
-
theme: "dark",
|
|
340
|
-
...n.language,
|
|
341
|
-
hideIcon: !u
|
|
342
|
-
}
|
|
343
|
-
) }),
|
|
344
|
-
n.search && /* @__PURE__ */ e(
|
|
345
|
-
f,
|
|
346
|
-
{
|
|
347
|
-
href: n.search.url,
|
|
348
|
-
className: `${l}__widget-bar-search`,
|
|
349
|
-
label: "",
|
|
350
|
-
"aria-label": n.search.label
|
|
351
|
-
}
|
|
352
|
-
)
|
|
353
|
-
] })
|
|
354
|
-
] }),
|
|
355
|
-
/* @__PURE__ */ e(
|
|
356
|
-
"button",
|
|
357
|
-
{
|
|
358
|
-
className: `${l}__burger`,
|
|
359
|
-
"aria-label": "Toggle navigation",
|
|
360
|
-
"aria-expanded": d,
|
|
361
|
-
onClick: () => h(!d),
|
|
362
|
-
children: /* @__PURE__ */ e("span", { className: `${l}__burger-icon` })
|
|
363
|
-
}
|
|
364
|
-
)
|
|
365
|
-
] }),
|
|
366
|
-
i && N && /* @__PURE__ */ e(P, { isOpen: o, navRef: p, children: /* @__PURE__ */ e(T, { menu: i }) }),
|
|
367
|
-
N && /* @__PURE__ */ e(
|
|
368
|
-
E,
|
|
369
|
-
{
|
|
370
|
-
isOpen: d,
|
|
371
|
-
onClose: () => {
|
|
372
|
-
h(!1);
|
|
373
|
-
},
|
|
374
|
-
navigationProps: {
|
|
375
|
-
widgets: n,
|
|
376
|
-
branding: s,
|
|
377
|
-
menu: {
|
|
378
|
-
items: r,
|
|
379
|
-
labels: c
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
)
|
|
384
|
-
] });
|
|
385
|
-
}
|
|
386
|
-
), K = O(
|
|
387
|
-
({
|
|
388
|
-
props: {
|
|
389
|
-
branding: s,
|
|
390
|
-
menu: { items: r, labels: c },
|
|
391
|
-
widgets: n
|
|
392
|
-
}
|
|
393
|
-
}, a) => {
|
|
394
|
-
var k, g, C;
|
|
395
|
-
const { prefix: t } = v(), {
|
|
396
|
-
menu: { facade: _, more: i },
|
|
397
|
-
more: [o, $],
|
|
398
|
-
mobile: [d, h],
|
|
399
|
-
isDesktop: u,
|
|
400
|
-
ref: p,
|
|
401
|
-
isClient: N
|
|
402
|
-
} = X({ menu: r, split: { desktop: 6, mobile: 5 } });
|
|
403
|
-
B(a, () => p.current);
|
|
404
|
-
const l = `${t}--subsite-nav-complex`;
|
|
405
|
-
return /* @__PURE__ */ m("header", { ref: p, className: l, children: [
|
|
406
|
-
/* @__PURE__ */ e("div", { className: b(`${l}-bg--light`), children: /* @__PURE__ */ m(
|
|
407
|
-
"div",
|
|
408
|
-
{
|
|
409
|
-
className: b(
|
|
410
|
-
`${l}__widgets`,
|
|
411
|
-
`${l}__container`
|
|
412
|
-
),
|
|
413
|
-
children: [
|
|
414
|
-
/* @__PURE__ */ e("span", { className: `${l}__widgets-bar-corner` }),
|
|
415
|
-
/* @__PURE__ */ m("span", { className: `${l}__widgets-bar`, children: [
|
|
416
|
-
(n == null ? void 0 : n.link) && /* @__PURE__ */ e(
|
|
417
|
-
f,
|
|
418
|
-
{
|
|
419
|
-
href: n.link.href,
|
|
420
|
-
label: n.link.label,
|
|
421
|
-
className: `${l}__widgets-bar__link`
|
|
422
|
-
}
|
|
423
|
-
),
|
|
424
|
-
(n == null ? void 0 : n.language) && N && /* @__PURE__ */ e(
|
|
425
|
-
D,
|
|
426
|
-
{
|
|
427
|
-
className: `${l}__widgets-bar__language`,
|
|
428
|
-
...n.language,
|
|
429
|
-
hideIcon: !u
|
|
430
|
-
}
|
|
431
|
-
)
|
|
432
|
-
] })
|
|
433
|
-
]
|
|
434
|
-
}
|
|
435
|
-
) }),
|
|
436
|
-
/* @__PURE__ */ e("div", { className: b(`${l}-bg--light`), children: /* @__PURE__ */ m(
|
|
437
|
-
"div",
|
|
438
|
-
{
|
|
439
|
-
className: b(
|
|
440
|
-
`${l}__branding`,
|
|
441
|
-
`${l}__container`
|
|
442
|
-
),
|
|
443
|
-
children: [
|
|
444
|
-
/* @__PURE__ */ e("div", { className: `${l}__branding-main`, children: /* @__PURE__ */ e(
|
|
445
|
-
"div",
|
|
446
|
-
{
|
|
447
|
-
className: `${l}__branding-main__logo`,
|
|
448
|
-
onClick: s == null ? void 0 : s.onClick,
|
|
449
|
-
role: "button",
|
|
450
|
-
"aria-label": "Branding",
|
|
451
|
-
tabIndex: 0,
|
|
452
|
-
children: s.logo.main
|
|
453
|
-
}
|
|
454
|
-
) }),
|
|
455
|
-
/* @__PURE__ */ m("div", { className: `${l}__branding-tag`, children: [
|
|
456
|
-
/* @__PURE__ */ e("h4", { className: `${l}__branding-tag__main`, children: (k = s.tag) == null ? void 0 : k.main }),
|
|
457
|
-
((g = s.tag) == null ? void 0 : g.sub) && /* @__PURE__ */ e("span", { className: `${l}__branding-tag__sub`, children: (C = s.tag) == null ? void 0 : C.sub })
|
|
458
|
-
] })
|
|
459
|
-
]
|
|
460
|
-
}
|
|
461
|
-
) }),
|
|
462
|
-
/* @__PURE__ */ e("div", { className: b(`${l}-bg--dark`), children: /* @__PURE__ */ m(
|
|
463
|
-
"nav",
|
|
464
|
-
{
|
|
465
|
-
className: b(
|
|
466
|
-
`${l}__nav`,
|
|
467
|
-
`${l}__container`
|
|
468
|
-
),
|
|
469
|
-
children: [
|
|
470
|
-
/* @__PURE__ */ e("div", { className: `${l}__nav-mobile`, children: /* @__PURE__ */ e(
|
|
471
|
-
"div",
|
|
472
|
-
{
|
|
473
|
-
className: `${l}__nav-mobile__logo`,
|
|
474
|
-
onClick: s == null ? void 0 : s.onClick,
|
|
475
|
-
role: "button",
|
|
476
|
-
"aria-label": "Branding",
|
|
477
|
-
tabIndex: 0,
|
|
478
|
-
children: s.logo.mobile
|
|
479
|
-
}
|
|
480
|
-
) }),
|
|
481
|
-
_ && /* @__PURE__ */ e(
|
|
482
|
-
j,
|
|
483
|
-
{
|
|
484
|
-
className: `${l}__nav-menu`,
|
|
485
|
-
menu: _,
|
|
486
|
-
more: i.length ? {
|
|
487
|
-
label: c.more,
|
|
488
|
-
onClick: () => $(!o),
|
|
489
|
-
isOpen: o
|
|
490
|
-
} : void 0
|
|
491
|
-
}
|
|
492
|
-
),
|
|
493
|
-
(n == null ? void 0 : n.search) && /* @__PURE__ */ e(
|
|
494
|
-
"a",
|
|
495
|
-
{
|
|
496
|
-
className: `${l}__nav-search`,
|
|
497
|
-
href: n.search.url,
|
|
498
|
-
"aria-label": n.search.label,
|
|
499
|
-
children: /* @__PURE__ */ e("span", { className: `${l}__nav-search__icon` })
|
|
500
|
-
}
|
|
501
|
-
),
|
|
502
|
-
/* @__PURE__ */ e(
|
|
503
|
-
"button",
|
|
504
|
-
{
|
|
505
|
-
className: `${l}__nav-burger`,
|
|
506
|
-
"aria-label": "Toggle navigation",
|
|
507
|
-
"aria-expanded": d,
|
|
508
|
-
onClick: () => h(!d),
|
|
509
|
-
children: /* @__PURE__ */ e("span", { className: `${l}__nav-burger__icon` })
|
|
510
|
-
}
|
|
511
|
-
)
|
|
512
|
-
]
|
|
513
|
-
}
|
|
514
|
-
) }),
|
|
515
|
-
i && N && /* @__PURE__ */ e(P, { isOpen: o, navRef: p, children: /* @__PURE__ */ e(T, { menu: i }) }),
|
|
516
|
-
N && /* @__PURE__ */ e(
|
|
517
|
-
E,
|
|
518
|
-
{
|
|
519
|
-
isOpen: d,
|
|
520
|
-
onClose: () => {
|
|
521
|
-
h(!1);
|
|
522
|
-
},
|
|
523
|
-
navigationProps: {
|
|
524
|
-
widgets: n,
|
|
525
|
-
branding: s,
|
|
526
|
-
menu: {
|
|
527
|
-
items: r,
|
|
528
|
-
labels: c
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
)
|
|
533
|
-
] });
|
|
534
|
-
}
|
|
535
|
-
), Q = {
|
|
536
|
-
complex: K,
|
|
537
|
-
compact: J
|
|
538
|
-
}, ee = O(
|
|
539
|
-
({ type: s = "compact", props: r }, c) => {
|
|
540
|
-
const n = Q[s];
|
|
541
|
-
return /* @__PURE__ */ e(n, { ref: c, props: r });
|
|
542
|
-
}
|
|
543
|
-
);
|
|
544
|
-
export {
|
|
545
|
-
ee as S
|
|
546
|
-
};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { useMemo as f, useCallback as m, useSyncExternalStore as p, useDebugValue as y } from "react";
|
|
2
|
-
const w = (n) => {
|
|
3
|
-
const s = Object.keys(n).sort((t, i) => n[i] - n[t]);
|
|
4
|
-
return s.map((t, i) => {
|
|
5
|
-
let o = "";
|
|
6
|
-
const d = n[t], a = s[i - 1], e = a ? n[a] : null;
|
|
7
|
-
return d >= 0 && (o = `(min-width: ${d}px)`), e !== null && (o && (o += " and "), o += `(max-width: ${e - 1}px)`), {
|
|
8
|
-
breakpoint: t,
|
|
9
|
-
maxWidth: e ? e - 1 : null,
|
|
10
|
-
minWidth: d,
|
|
11
|
-
query: o
|
|
12
|
-
};
|
|
13
|
-
});
|
|
14
|
-
}, h = {
|
|
15
|
-
breakpoint: null,
|
|
16
|
-
minWidth: null,
|
|
17
|
-
maxWidth: null,
|
|
18
|
-
query: null
|
|
19
|
-
}, g = (n, s) => {
|
|
20
|
-
const t = f(() => w(n), [n]), i = m((e) => {
|
|
21
|
-
const r = [];
|
|
22
|
-
return t.forEach(({ query: c }) => {
|
|
23
|
-
const u = window.matchMedia(c), l = "addEventListener" in u && "removeEventListener" in u;
|
|
24
|
-
l ? u.addEventListener("change", e) : u.addListener(e), r.push(l ? () => u.removeEventListener("change", e) : () => u.removeListener(e));
|
|
25
|
-
}), () => r.forEach((c) => c());
|
|
26
|
-
}, [t]), o = m(() => {
|
|
27
|
-
const e = t.find((r) => window.matchMedia(r.query).matches);
|
|
28
|
-
if (e)
|
|
29
|
-
return e;
|
|
30
|
-
if (s) {
|
|
31
|
-
const r = t.find((c) => c.breakpoint === s);
|
|
32
|
-
if (r)
|
|
33
|
-
return r;
|
|
34
|
-
}
|
|
35
|
-
return h;
|
|
36
|
-
}, [s, t]), d = m(() => t.find((r) => r.breakpoint === s) ?? h, [s, t]), a = p(i, o, d);
|
|
37
|
-
return y(a, (e) => typeof e.breakpoint == "string" ? `${e.breakpoint} (${e.minWidth} ≤ x${e.maxWidth ? ` < ${e.maxWidth + 1}` : ""})` : ""), a;
|
|
38
|
-
}, E = typeof window < "u" && typeof document < "u", v = ["xs", "sm", "md", "lg", "xl", "xxl"], x = {
|
|
39
|
-
xs: 320,
|
|
40
|
-
sm: 414,
|
|
41
|
-
md: 610,
|
|
42
|
-
lg: 1024,
|
|
43
|
-
xl: 1140,
|
|
44
|
-
xxl: 1440
|
|
45
|
-
}, M = E ? v.reduce((n, s) => {
|
|
46
|
-
const t = window.getComputedStyle(document.body), i = parseInt(
|
|
47
|
-
t.getPropertyValue(`--ilo-breakpoint-${s}`)
|
|
48
|
-
);
|
|
49
|
-
return i && (n[s] = i), n;
|
|
50
|
-
}, x) : x, $ = g.bind(null, M);
|
|
51
|
-
export {
|
|
52
|
-
$ as u
|
|
53
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { NavigationLinkProps } from './Navigation.props';
|
|
2
|
-
|
|
3
|
-
type NavigationMenuProps = {
|
|
4
|
-
className?: string;
|
|
5
|
-
menu: NavigationLinkProps[];
|
|
6
|
-
more?: {
|
|
7
|
-
label?: string;
|
|
8
|
-
onClick: () => void;
|
|
9
|
-
isOpen: boolean;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
declare const NavigationMenu: ({ className, menu, more }: NavigationMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export { NavigationMenu };
|