@thewhatmatters/wmds 0.4.30 → 0.4.31
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/CHANGELOG.md +23 -0
- package/dist/components/molecules/Breadcrumb/breadcrumbStyles.d.ts +1 -1
- package/dist/components/molecules/Breadcrumb/breadcrumbStyles.js +2 -2
- package/dist/components/molecules/Field/fieldStyles.d.ts +1 -1
- package/dist/components/molecules/Field/fieldStyles.js +1 -1
- package/dist/components/molecules/HeroIntro/HeroIntro.d.ts +8 -2
- package/dist/components/molecules/HeroIntro/HeroIntro.d.ts.map +1 -1
- package/dist/components/molecules/HeroIntro/HeroIntro.js +30 -22
- package/dist/components/molecules/HeroIntro/heroIntroStyles.d.ts +9 -2
- package/dist/components/molecules/HeroIntro/heroIntroStyles.d.ts.map +1 -1
- package/dist/components/molecules/HeroIntro/heroIntroStyles.js +2 -2
- package/dist/components/molecules/TileGrid/tileGridStyles.js +1 -1
- package/dist/components/organisms/Carousel/carouselStyles.js +3 -3
- package/dist/components/organisms/ChatDock/chatDockStyles.d.ts +4 -0
- package/dist/components/organisms/ChatDock/chatDockStyles.d.ts.map +1 -1
- package/dist/components/organisms/FooterReveal/footerRevealStyles.js +1 -1
- package/dist/components/organisms/SiteNav/SiteNav.d.ts +13 -6
- package/dist/components/organisms/SiteNav/SiteNav.d.ts.map +1 -1
- package/dist/components/organisms/SiteNav/SiteNav.js +305 -252
- package/dist/components/organisms/SiteNav/siteNavStyles.d.ts +33 -5
- package/dist/components/organisms/SiteNav/siteNavStyles.d.ts.map +1 -1
- package/dist/components/organisms/SiteNav/siteNavStyles.js +3 -3
- package/dist/components/organisms/SiteNav/useSiteNavMobileMenu.d.ts +17 -0
- package/dist/components/organisms/SiteNav/useSiteNavMobileMenu.d.ts.map +1 -0
- package/dist/components/organisms/SiteNav/useSiteNavMobileMenu.js +47 -0
- package/dist/lib/dialogOverlay.d.ts +8 -0
- package/dist/lib/dialogOverlay.d.ts.map +1 -1
- package/dist/lib/dialogOverlay.js +45 -26
- package/dist/styles.css +1 -1
- package/docs/components.md +2 -2
- package/docs/exports.json +3 -2
- package/docs/patterns/components-accordion--flush.tsx +1 -1
- package/docs/patterns/components-appshell--portal-dashboard-pattern.tsx +1 -1
- package/docs/patterns/components-avatar--dropdown-row.tsx +1 -1
- package/docs/patterns/components-badge--outline-tags.tsx +1 -1
- package/docs/patterns/components-badge--status-pill.tsx +1 -1
- package/docs/patterns/components-badge--with-avatar.tsx +1 -1
- package/docs/patterns/components-band--page-in-bands.tsx +1 -1
- package/docs/patterns/components-breadcrumb--editorial.tsx +1 -1
- package/docs/patterns/components-breadcrumb--long-path.tsx +1 -1
- package/docs/patterns/components-breadcrumb--path.tsx +1 -1
- package/docs/patterns/components-breadcrumb--router-links.tsx +1 -1
- package/docs/patterns/components-button-button--copy-button.tsx +1 -1
- package/docs/patterns/components-button-button--destructive-action.tsx +1 -1
- package/docs/patterns/components-button-button--external-link.tsx +1 -1
- package/docs/patterns/components-button-button--ghost-action.tsx +1 -1
- package/docs/patterns/components-button-button--inverse-action.tsx +1 -1
- package/docs/patterns/components-button-button--link-render.tsx +1 -1
- package/docs/patterns/components-button-button--multi-state-badge.tsx +1 -1
- package/docs/patterns/components-button-button--outline-mono.tsx +1 -1
- package/docs/patterns/components-button-button--primary-action.tsx +1 -1
- package/docs/patterns/components-button-button--row-hug.tsx +1 -1
- package/docs/patterns/components-button-button--row-layout.tsx +1 -1
- package/docs/patterns/components-button-button--secondary-action.tsx +1 -1
- package/docs/patterns/components-button-button--suggestion-pills.tsx +1 -1
- package/docs/patterns/components-button-button--with-count.tsx +1 -1
- package/docs/patterns/components-button-button--with-icon.tsx +1 -1
- package/docs/patterns/components-button-floatingactionbutton--vertical-actions.tsx +1 -1
- package/docs/patterns/components-calembed--pattern-skip-in-footer.tsx +1 -1
- package/docs/patterns/components-card-card--body-slot-occupancy-history.tsx +1 -1
- package/docs/patterns/components-card-card--headerless-media.tsx +1 -1
- package/docs/patterns/components-card-card--outlined-layout.tsx +1 -1
- package/docs/patterns/components-card-card--pinned-height.tsx +1 -1
- package/docs/patterns/components-card-card--terminal-frame.tsx +1 -1
- package/docs/patterns/components-card-selectablecard--selectable-cards-pattern.tsx +1 -1
- package/docs/patterns/components-carousel--image-carousel.tsx +1 -1
- package/docs/patterns/components-chart--audience-activity-heatmap.tsx +1 -1
- package/docs/patterns/components-chart--cartesian-no-data-gaps.tsx +1 -1
- package/docs/patterns/components-chart--occupancy-history-in-card.tsx +1 -1
- package/docs/patterns/components-chart--occupancy-in-card.tsx +1 -1
- package/docs/patterns/components-chart--post-reach-distribution.tsx +1 -1
- package/docs/patterns/components-chart--ranked-audience-breakdown.tsx +1 -1
- package/docs/patterns/components-chart--revenue-by-line.tsx +1 -1
- package/docs/patterns/components-chart--segmented-ring-pattern.tsx +1 -1
- package/docs/patterns/components-chart--unit-grid-composition.tsx +1 -1
- package/docs/patterns/components-chatdock--pattern-chat-dock.tsx +1 -1
- package/docs/patterns/components-chatdock--pattern-start-project-gate.tsx +1 -1
- package/docs/patterns/components-chatqa--pattern-qa-with-reply.tsx +1 -1
- package/docs/patterns/components-checkbox-checkbox--default.tsx +1 -1
- package/docs/patterns/components-checkbox-checkbox--with-count.tsx +1 -1
- package/docs/patterns/components-checkbox-checkbox--with-description.tsx +1 -1
- package/docs/patterns/components-checkbox-checkboxgroup--default.tsx +1 -1
- package/docs/patterns/components-checkbox-checkboxgroup--option-counts.tsx +1 -1
- package/docs/patterns/components-copyfield--clipboard-blocked.tsx +1 -1
- package/docs/patterns/components-copyfield--copied.tsx +1 -1
- package/docs/patterns/components-copyfield--copy-key.tsx +1 -1
- package/docs/patterns/components-copyfield--on-navy.tsx +1 -1
- package/docs/patterns/components-descriptionlist--details.tsx +1 -1
- package/docs/patterns/components-descriptionlist--post-metadata.tsx +1 -1
- package/docs/patterns/components-dialog--alert-dialog-destructive.tsx +1 -1
- package/docs/patterns/components-dialog--alert-dialog-typed-confirmation.tsx +1 -1
- package/docs/patterns/components-dialog--default-dialog.tsx +1 -1
- package/docs/patterns/components-dialog--form-dialog.tsx +1 -1
- package/docs/patterns/components-displaycontrols--page-utilities.tsx +1 -1
- package/docs/patterns/components-displaycontrols--theme-switch.tsx +1 -1
- package/docs/patterns/components-field--horizontal-input.tsx +1 -1
- package/docs/patterns/components-field--horizontal-text-area.tsx +1 -1
- package/docs/patterns/components-field--multi-control.tsx +1 -1
- package/docs/patterns/components-filterpanel--panel.tsx +1 -1
- package/docs/patterns/components-footerreveal--marketing-hero-pattern.tsx +2 -2
- package/docs/patterns/components-footerreveal--marketing-hero-ruled-pattern.tsx +1 -1
- package/docs/patterns/components-footerreveal--marketing-hero-with-gallery-intro.tsx +2 -2
- package/docs/patterns/components-footerreveal--marketing-page-pattern.tsx +1 -1
- package/docs/patterns/components-footerreveal--ruled-grid-footer-pattern.tsx +2 -2
- package/docs/patterns/components-footerreveal--sequenced-marketing-hero.tsx +1 -1
- package/docs/patterns/components-herointro--two-line-intro.tsx +2 -2
- package/docs/patterns/components-herointro--with-actions.tsx +22 -0
- package/docs/patterns/components-herotilestack--marketing-hero-pattern.tsx +2 -2
- package/docs/patterns/components-herotilestack--marketing-hero-text-sequence.tsx +1 -1
- package/docs/patterns/components-herotilestack--marketing-hero-with-gallery-intro.tsx +2 -2
- package/docs/patterns/components-indexlist--post-index.tsx +1 -1
- package/docs/patterns/components-intakeconfirmation--booked-pattern.tsx +1 -1
- package/docs/patterns/components-intakeconfirmation--emailed-pattern.tsx +1 -1
- package/docs/patterns/components-intakeform--about-you-pattern.tsx +1 -1
- package/docs/patterns/components-intakeform--short-form-pattern.tsx +1 -1
- package/docs/patterns/components-intakemodal--intake-modal-pattern.tsx +1 -1
- package/docs/patterns/components-kbd--command-row.tsx +1 -1
- package/docs/patterns/components-kbd--numbered-choices.tsx +1 -1
- package/docs/patterns/components-kbd--shortcut.tsx +1 -1
- package/docs/patterns/components-linktile--resource-tile.tsx +1 -1
- package/docs/patterns/components-linktile--router-link.tsx +1 -1
- package/docs/patterns/components-logview--detail-pane.tsx +1 -1
- package/docs/patterns/components-logview--log-viewer.tsx +1 -1
- package/docs/patterns/components-moremenu--action-menu.tsx +1 -1
- package/docs/patterns/components-moremenu--in-card-header.tsx +1 -1
- package/docs/patterns/components-navlist--app-sidebar.tsx +1 -1
- package/docs/patterns/components-navlist--side-nav-settings.tsx +1 -1
- package/docs/patterns/components-pageheader--app-header-pattern.tsx +1 -1
- package/docs/patterns/components-pageheader--page-section-header.tsx +1 -1
- package/docs/patterns/components-pageheader--toolbar-header.tsx +1 -1
- package/docs/patterns/components-panel--end-detail-rail.tsx +1 -1
- package/docs/patterns/components-pillgroup--pill-group-pattern.tsx +1 -1
- package/docs/patterns/components-promptbar--pattern-prompt-bar.tsx +1 -1
- package/docs/patterns/components-prose--article-body.tsx +1 -1
- package/docs/patterns/components-radio-radiogroup--default.tsx +1 -1
- package/docs/patterns/components-scrollhorizontal--project-gallery-pattern.tsx +1 -1
- package/docs/patterns/components-scrollhorizontal--with-intro.tsx +1 -1
- package/docs/patterns/components-sectioncaption--column-caption.tsx +1 -1
- package/docs/patterns/components-sectioncaption--with-action.tsx +1 -1
- package/docs/patterns/components-sheet--bottom-sheet.tsx +1 -1
- package/docs/patterns/components-sheet--end-sheet.tsx +1 -1
- package/docs/patterns/components-sheet--side-sheet-header-actions.tsx +1 -1
- package/docs/patterns/components-sheet--side-sheet-url-deep-link.tsx +1 -1
- package/docs/patterns/components-sheet--side-sheet.tsx +1 -1
- package/docs/patterns/components-sitenav--brand-and-cta.tsx +1 -1
- package/docs/patterns/components-sitenav--centered-links.tsx +1 -1
- package/docs/patterns/components-sitenav--compact.tsx +1 -1
- package/docs/patterns/components-sitenav--marketing-header.tsx +2 -1
- package/docs/patterns/components-sitenav--mega-menu.tsx +1 -1
- package/docs/patterns/components-stat--hero-stat.tsx +1 -1
- package/docs/patterns/components-stat--insights-row.tsx +1 -1
- package/docs/patterns/components-stepprogress--step-progress-pattern.tsx +1 -1
- package/docs/patterns/components-switch--default.tsx +1 -1
- package/docs/patterns/components-switch--settings-row.tsx +1 -1
- package/docs/patterns/components-tab--settings-pages.tsx +1 -1
- package/docs/patterns/components-table--approvals-with-sheet.tsx +1 -1
- package/docs/patterns/components-table--approvals.tsx +3 -3
- package/docs/patterns/components-table--basic.tsx +1 -1
- package/docs/patterns/components-taskrows--action-details.tsx +1 -1
- package/docs/patterns/components-taskrows--capsules.tsx +1 -1
- package/docs/patterns/components-taskrows--card-with-status-rows.tsx +1 -1
- package/docs/patterns/components-taskrows--controlled-expand.tsx +1 -1
- package/docs/patterns/components-taskrows--custom-slots.tsx +1 -1
- package/docs/patterns/components-taskrows--needs-you-table.tsx +1 -1
- package/docs/patterns/components-taskrows--status-list.tsx +1 -1
- package/docs/patterns/components-taskrows--tag-chips.tsx +1 -1
- package/docs/patterns/components-textarea--save-status.tsx +1 -1
- package/docs/patterns/components-textlink--external-destination.tsx +1 -1
- package/docs/patterns/components-textlink--inline-prose.tsx +1 -1
- package/docs/patterns/components-textlink--quiet-title.tsx +1 -1
- package/docs/patterns/components-textlink--supporting-copy.tsx +1 -1
- package/docs/patterns/components-textsequence--default.tsx +1 -1
- package/docs/patterns/components-textsequence--reduced-motion.tsx +1 -1
- package/docs/patterns/components-textsequence--shapes.tsx +2 -2
- package/docs/patterns/components-tilegrid--masonry.tsx +1 -1
- package/docs/patterns/components-toast--stacked-notifications.tsx +1 -1
- package/docs/patterns/components-tooltip--controlled.tsx +1 -1
- package/docs/patterns/components-tooltip--disabled-control.tsx +1 -1
- package/docs/patterns/components-tooltip--icon-action.tsx +1 -1
- package/docs/patterns/components-tooltip--keyboard-shortcut.tsx +1 -1
- package/docs/patterns/components-tooltip--placement.tsx +1 -1
- package/docs/patterns/foundations-scroll-fade--horizontal-rail.tsx +1 -1
- package/docs/patterns/foundations-scroll-fade--overflowing-list.tsx +1 -1
- package/docs/patterns/guides-chart-explorations--comparison-gallery.tsx +1 -1
- package/docs/patterns/guides-filter-panel--filtered-grid.tsx +3 -3
- package/docs/patterns/guides-filter-panel--filtered-index.tsx +3 -3
- package/docs/patterns/guides-overlay-flows--notification-preferences.tsx +1 -1
- package/docs/patterns/guides-post-page--post-page.tsx +3 -3
- package/docs/patterns/guides-profile-typography--editorial-profile.tsx +6 -6
- package/docs/patterns/guides-resource-detail--detail.tsx +2 -2
- package/docs/patterns/index.json +9 -1
- package/package.json +1 -1
|
@@ -6,23 +6,23 @@ import { IconButton as r } from "../../atoms/IconButton/IconButton.js";
|
|
|
6
6
|
import { TextLink as i } from "../../atoms/TextLink/TextLink.js";
|
|
7
7
|
import { Dropdown as a } from "../../molecules/Dropdown/Dropdown.js";
|
|
8
8
|
import { cardLayoutBodyOccupantRadiusClasses as o, cardLayoutBodyOccupantWellClasses as s } from "../../molecules/Card/cardStyles.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { Children as
|
|
14
|
-
import { ChevronDown as
|
|
15
|
-
import { Fragment as
|
|
16
|
-
import { AnimatePresence as
|
|
17
|
-
import { createPortal as
|
|
18
|
-
import { NavigationMenu as
|
|
9
|
+
import { textOf as ee, useOverflowMenu as te } from "../../molecules/Dropdown/useOverflowMenu.js";
|
|
10
|
+
import { siteNavBarBaseClasses as c, siteNavBarCompactLayoutClasses as ne, siteNavBarStateClasses as l, siteNavBrandClasses as u, siteNavCompactLayouts as d, siteNavContainerClasses as f, siteNavDefaultCollapseAt as p, siteNavDefaultCollapseRatio as m, siteNavEndActionsClasses as h, siteNavEndClasses as re, siteNavExpandedHeightClasses as ie, siteNavLinkClasses as g, siteNavLinkListClasses as _, siteNavLinksRootClasses as v, siteNavMeasureItemClasses as y, siteNavMeasureMoreClasses as b, siteNavMeasureRailClasses as x, siteNavMenuBackdropClasses as S, siteNavMenuContentClasses as C, siteNavMenuLinkClasses as w, siteNavMenuLinkGridClasses as T, siteNavMenuPopupClasses as E, siteNavMenuPositionerClasses as D, siteNavMenuReadRowClasses as O, siteNavMenuReadThumbClasses as k, siteNavMenuSectionClasses as A, siteNavMenuSectionLabelClasses as ae, siteNavMenuSectionSpanClasses as oe, siteNavMenuViewportClasses as j, siteNavMiddleClasses as se, siteNavMiddleHugClasses as ce, siteNavMiddleHugResponsiveClasses as le, siteNavMiddleResponsiveClasses as ue, siteNavMobileActionClasses as de, siteNavMobileLinkClasses as fe, siteNavMobileListClasses as pe, siteNavMobilePanelClasses as me, siteNavMobileTriggerClasses as he, siteNavMoreIconClasses as ge, siteNavMoreTriggerClasses as M, siteNavNavigationRootClasses as N, siteNavPlacements as P, siteNavRootFixedClasses as _e, siteNavRootFlowClasses as ve, siteNavRootInlineClasses as ye, siteNavRootStickyClasses as be, siteNavSlotsClasses as F, siteNavStartClasses as xe, siteNavStates as I, siteNavTriggerClasses as L, siteNavTriggerIconClasses as R, siteNavTriggerLabelClasses as z, siteNavWordmarkBrandClasses as B } from "./siteNavStyles.js";
|
|
11
|
+
import { useSiteNavCollapse as Se } from "./useSiteNavCollapse.js";
|
|
12
|
+
import { useSiteNavMobileMenu as Ce } from "./useSiteNavMobileMenu.js";
|
|
13
|
+
import { Children as V, createContext as H, isValidElement as U, useCallback as we, useContext as W, useEffect as G, useId as Te, useMemo as Ee, useRef as K, useState as q } from "react";
|
|
14
|
+
import { ChevronDown as J, Menu as De, X as Oe } from "lucide-react";
|
|
15
|
+
import { Fragment as ke, jsx as Y, jsxs as X } from "react/jsx-runtime";
|
|
16
|
+
import { AnimatePresence as Ae, motion as je, useReducedMotion as Me } from "motion/react";
|
|
17
|
+
import { createPortal as Ne } from "react-dom";
|
|
18
|
+
import { NavigationMenu as Z } from "@base-ui/react/navigation-menu";
|
|
19
19
|
//#region src/components/organisms/SiteNav/SiteNav.tsx
|
|
20
|
-
var
|
|
21
|
-
function
|
|
22
|
-
return t && (e || n) ? r ?
|
|
20
|
+
var Pe = H(null);
|
|
21
|
+
function Fe(e, t, n, r) {
|
|
22
|
+
return t && (e || n) ? r ? F.threeHug : F.three : t ? F.middleOnly : e && n ? F.ends : e ? F.startOnly : F.endOnly;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
25
|
-
|
|
24
|
+
function Ie(e, t) {
|
|
25
|
+
G(() => {
|
|
26
26
|
if (!e || typeof document > "u") return;
|
|
27
27
|
let n = t?.current ?? document.documentElement, r = n.style.scrollPaddingTop;
|
|
28
28
|
return n.style.scrollPaddingTop = "calc(var(--site-nav-height) + var(--spacing) * 4)", () => {
|
|
@@ -30,194 +30,247 @@ function ke(e, t) {
|
|
|
30
30
|
};
|
|
31
31
|
}, [e, t]);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
let
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
function Le(e) {
|
|
34
|
+
let t = [...e.children].filter((e) => getComputedStyle(e).display !== "none"), n = Number.parseFloat(getComputedStyle(e).columnGap) || 0;
|
|
35
|
+
return t.reduce((e, t) => {
|
|
36
|
+
let n = getComputedStyle(t);
|
|
37
|
+
return e + t.getBoundingClientRect().width + Number.parseFloat(n.marginLeft) + Number.parseFloat(n.marginRight);
|
|
38
|
+
}, 0) + n * Math.max(0, t.length - 1);
|
|
39
|
+
}
|
|
40
|
+
function Re(e, t, n) {
|
|
41
|
+
let [r, i] = q(!1), a = K(0);
|
|
42
|
+
return G(() => {
|
|
43
|
+
let n = e.current;
|
|
44
|
+
if (!t || n == null || typeof ResizeObserver > "u") return;
|
|
45
|
+
let r = window.matchMedia("(min-width: 768px)"), o = () => {
|
|
46
|
+
if (r.matches) {
|
|
47
|
+
i(!1);
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
i((e) => {
|
|
51
|
+
let t = Le(n);
|
|
52
|
+
return !e && t > n.clientWidth + 1 ? (a.current = t, !0) : e && n.clientWidth >= a.current ? !1 : e;
|
|
53
|
+
});
|
|
54
|
+
}, s = new ResizeObserver(o);
|
|
55
|
+
return s.observe(n), r.addEventListener("change", o), o(), () => {
|
|
56
|
+
s.disconnect(), r.removeEventListener("change", o);
|
|
57
|
+
};
|
|
58
|
+
}, [
|
|
59
|
+
e,
|
|
60
|
+
t,
|
|
61
|
+
n
|
|
62
|
+
]), r;
|
|
63
|
+
}
|
|
64
|
+
function ze({ start: r, middle: i, end: a, mobile: o, mobileAction: s, mobileTitle: ee = "Menu", collapseAt: te, state: u, onStateChange: d, compactLayout: p = "hug", placement: m = "fixed", scrollContainer: g, "aria-label": _ = "Site", className: v }) {
|
|
65
|
+
let y = K(null), b = Me() ?? !1, { state: x, compact: S } = Se({
|
|
66
|
+
collapseAt: te,
|
|
67
|
+
scrollContainer: g,
|
|
37
68
|
controlledState: u,
|
|
38
|
-
placement:
|
|
39
|
-
onStateChange:
|
|
40
|
-
}), [
|
|
69
|
+
placement: m,
|
|
70
|
+
onStateChange: d
|
|
71
|
+
}), [C, w] = q(!1), T = Te(), E = K(null), D = K(null), O = K(null), k = we(() => w(!1), []), A = K(null), ae = Re(A, o != null && a != null, S ? "compact" : "expanded"), oe = Ce({
|
|
72
|
+
open: C,
|
|
73
|
+
onClose: k,
|
|
74
|
+
barRef: E,
|
|
75
|
+
panelRef: D,
|
|
76
|
+
triggerRef: O
|
|
77
|
+
}), [j, fe] = q(!1), ge = S && p === "hug", M = {
|
|
41
78
|
y: -72,
|
|
42
79
|
opacity: 0
|
|
43
|
-
},
|
|
80
|
+
}, N = {
|
|
44
81
|
y: 0,
|
|
45
82
|
opacity: 1
|
|
46
|
-
},
|
|
83
|
+
}, P = b ? { duration: 0 } : {
|
|
47
84
|
...t("medium"),
|
|
48
85
|
type: "tween"
|
|
49
|
-
},
|
|
50
|
-
|
|
51
|
-
let
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
className:
|
|
86
|
+
}, F = g != null, I = m === "fixed" || F;
|
|
87
|
+
Ie(I && S, g);
|
|
88
|
+
let L = o != null, R = r != null, z = i != null, B = a != null || L, V = L ? /* @__PURE__ */ Y(n, {
|
|
89
|
+
ref: O,
|
|
90
|
+
role: "ghost",
|
|
91
|
+
size: "md",
|
|
92
|
+
icon: Y(C ? Oe : De, { strokeWidth: 2 }),
|
|
93
|
+
className: he,
|
|
57
94
|
"aria-haspopup": "dialog",
|
|
58
|
-
"aria-expanded":
|
|
59
|
-
"aria-controls":
|
|
60
|
-
onClick: () =>
|
|
95
|
+
"aria-expanded": C,
|
|
96
|
+
"aria-controls": C ? T : void 0,
|
|
97
|
+
onClick: () => w((e) => !e),
|
|
98
|
+
children: C ? "Close" : "Menu"
|
|
61
99
|
}) : null;
|
|
62
|
-
function
|
|
63
|
-
return /* @__PURE__ */
|
|
64
|
-
|
|
100
|
+
function H(e) {
|
|
101
|
+
return /* @__PURE__ */ X("div", {
|
|
102
|
+
ref: A,
|
|
103
|
+
className: Fe(R, z, B, e),
|
|
65
104
|
children: [
|
|
66
|
-
|
|
67
|
-
className:
|
|
68
|
-
children:
|
|
105
|
+
R ? /* @__PURE__ */ Y("div", {
|
|
106
|
+
className: xe,
|
|
107
|
+
children: r
|
|
69
108
|
}) : null,
|
|
70
|
-
|
|
71
|
-
className:
|
|
109
|
+
z ? /* @__PURE__ */ Y("div", {
|
|
110
|
+
className: L ? e ? le : ue : e ? ce : se,
|
|
72
111
|
children: i
|
|
73
112
|
}) : null,
|
|
74
|
-
|
|
75
|
-
className:
|
|
76
|
-
children: [a,
|
|
113
|
+
B ? /* @__PURE__ */ X("div", {
|
|
114
|
+
className: re,
|
|
115
|
+
children: [a != null && L ? /* @__PURE__ */ Y("div", {
|
|
116
|
+
className: h,
|
|
117
|
+
"data-tight": ae ? "" : void 0,
|
|
118
|
+
"data-menu-open": C ? "" : void 0,
|
|
119
|
+
children: a
|
|
120
|
+
}) : a, V]
|
|
77
121
|
}) : null
|
|
78
122
|
]
|
|
79
123
|
});
|
|
80
124
|
}
|
|
81
|
-
let
|
|
125
|
+
let U = e(c, l.compact, ne[p]), W = /* @__PURE__ */ Y("div", {
|
|
82
126
|
"data-state": "expanded",
|
|
83
|
-
className: e(
|
|
84
|
-
children:
|
|
85
|
-
}),
|
|
86
|
-
ref:
|
|
87
|
-
className: e(
|
|
88
|
-
children: /* @__PURE__ */
|
|
127
|
+
className: e(c, l.expanded),
|
|
128
|
+
children: H(!1)
|
|
129
|
+
}), G = /* @__PURE__ */ Y("div", {
|
|
130
|
+
ref: y,
|
|
131
|
+
className: e(f, "px-[var(--grid-margin)]"),
|
|
132
|
+
children: /* @__PURE__ */ Y("div", {
|
|
89
133
|
"data-state": "compact",
|
|
90
|
-
className:
|
|
91
|
-
children:
|
|
134
|
+
className: U,
|
|
135
|
+
children: H(ge)
|
|
92
136
|
})
|
|
93
|
-
}),
|
|
94
|
-
initial: !
|
|
95
|
-
animate:
|
|
96
|
-
exit:
|
|
97
|
-
transition:
|
|
98
|
-
},
|
|
99
|
-
return /* @__PURE__ */
|
|
137
|
+
}), Ee = {
|
|
138
|
+
initial: !b && M,
|
|
139
|
+
animate: N,
|
|
140
|
+
exit: b ? N : M,
|
|
141
|
+
transition: P
|
|
142
|
+
}, J = F ? e(be, "h-0 w-full overflow-visible") : _e;
|
|
143
|
+
return /* @__PURE__ */ X(Pe.Provider, {
|
|
100
144
|
value: {
|
|
101
|
-
state:
|
|
102
|
-
anchorRef:
|
|
103
|
-
menuOpen:
|
|
104
|
-
setMenuOpen:
|
|
145
|
+
state: x,
|
|
146
|
+
anchorRef: y,
|
|
147
|
+
menuOpen: j,
|
|
148
|
+
setMenuOpen: fe
|
|
105
149
|
},
|
|
106
|
-
children: [
|
|
107
|
-
/* @__PURE__ */
|
|
108
|
-
...
|
|
109
|
-
className: e(
|
|
110
|
-
children: /* @__PURE__ */
|
|
111
|
-
|
|
150
|
+
children: [I ? /* @__PURE__ */ X(ke, { children: [
|
|
151
|
+
/* @__PURE__ */ Y(Ae, { children: S ? /* @__PURE__ */ Y(je.div, {
|
|
152
|
+
...Ee,
|
|
153
|
+
className: e(J, !F && v),
|
|
154
|
+
children: /* @__PURE__ */ Y("header", {
|
|
155
|
+
ref: E,
|
|
156
|
+
"aria-label": _,
|
|
112
157
|
"data-state": "compact",
|
|
113
|
-
"data-menu":
|
|
114
|
-
className: e(
|
|
115
|
-
children:
|
|
158
|
+
"data-menu": j ? "open" : "closed",
|
|
159
|
+
className: e(F && e("w-full", v)),
|
|
160
|
+
children: G
|
|
116
161
|
})
|
|
117
162
|
}, "site-nav-compact") : null }),
|
|
118
|
-
|
|
119
|
-
className: e(
|
|
163
|
+
S ? /* @__PURE__ */ Y("div", {
|
|
164
|
+
className: e(ie, "w-full"),
|
|
120
165
|
"aria-hidden": !0
|
|
121
166
|
}) : null,
|
|
122
|
-
|
|
123
|
-
|
|
167
|
+
S ? null : /* @__PURE__ */ Y("header", {
|
|
168
|
+
ref: E,
|
|
169
|
+
"aria-label": _,
|
|
124
170
|
"data-state": "expanded",
|
|
125
|
-
"data-menu":
|
|
126
|
-
className: e(
|
|
127
|
-
children: /* @__PURE__ */
|
|
128
|
-
ref:
|
|
129
|
-
className:
|
|
130
|
-
children:
|
|
171
|
+
"data-menu": j ? "open" : "closed",
|
|
172
|
+
className: e(ve, v),
|
|
173
|
+
children: /* @__PURE__ */ Y("div", {
|
|
174
|
+
ref: y,
|
|
175
|
+
className: f,
|
|
176
|
+
children: W
|
|
131
177
|
})
|
|
132
178
|
})
|
|
133
|
-
] }) : /* @__PURE__ */
|
|
134
|
-
|
|
135
|
-
"
|
|
136
|
-
"data-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
179
|
+
] }) : /* @__PURE__ */ Y("header", {
|
|
180
|
+
ref: E,
|
|
181
|
+
"aria-label": _,
|
|
182
|
+
"data-state": x,
|
|
183
|
+
"data-menu": j ? "open" : "closed",
|
|
184
|
+
className: e(ye, v),
|
|
185
|
+
children: /* @__PURE__ */ Y("div", {
|
|
186
|
+
ref: y,
|
|
187
|
+
className: e(f, S && "px-[var(--grid-margin)]"),
|
|
188
|
+
children: /* @__PURE__ */ Y(Ae, {
|
|
142
189
|
initial: !1,
|
|
143
190
|
mode: "popLayout",
|
|
144
|
-
children:
|
|
145
|
-
initial: !
|
|
146
|
-
animate:
|
|
147
|
-
exit:
|
|
148
|
-
transition:
|
|
191
|
+
children: S ? /* @__PURE__ */ Y(je.div, {
|
|
192
|
+
initial: !b && M,
|
|
193
|
+
animate: N,
|
|
194
|
+
exit: b ? N : M,
|
|
195
|
+
transition: P,
|
|
149
196
|
"data-state": "compact",
|
|
150
|
-
className:
|
|
151
|
-
children:
|
|
152
|
-
}, "compact") : /* @__PURE__ */
|
|
153
|
-
})
|
|
154
|
-
})
|
|
155
|
-
}), F ? /* @__PURE__ */ X(c, {
|
|
156
|
-
open: T,
|
|
157
|
-
onOpenChange: E,
|
|
158
|
-
children: /* @__PURE__ */ X(c.Content, {
|
|
159
|
-
id: D,
|
|
160
|
-
side: "end",
|
|
161
|
-
title: s,
|
|
162
|
-
children: /* @__PURE__ */ X("div", {
|
|
163
|
-
className: se,
|
|
164
|
-
children: o
|
|
197
|
+
className: U,
|
|
198
|
+
children: H(!0)
|
|
199
|
+
}, "compact") : /* @__PURE__ */ Y("div", { children: W }, "expanded")
|
|
165
200
|
})
|
|
166
201
|
})
|
|
167
|
-
})
|
|
202
|
+
}), L && C && typeof document < "u" ? Ne(/* @__PURE__ */ X("div", {
|
|
203
|
+
ref: D,
|
|
204
|
+
id: T,
|
|
205
|
+
role: "dialog",
|
|
206
|
+
"aria-modal": "true",
|
|
207
|
+
"aria-label": ee,
|
|
208
|
+
className: me,
|
|
209
|
+
style: { top: oe },
|
|
210
|
+
onClick: (e) => {
|
|
211
|
+
e.target.closest("a[href]") != null && k();
|
|
212
|
+
},
|
|
213
|
+
children: [/* @__PURE__ */ Y("div", {
|
|
214
|
+
className: pe,
|
|
215
|
+
children: o
|
|
216
|
+
}), s == null ? null : /* @__PURE__ */ Y("div", {
|
|
217
|
+
className: de,
|
|
218
|
+
children: s
|
|
219
|
+
})]
|
|
220
|
+
}), document.body) : null]
|
|
168
221
|
});
|
|
169
222
|
}
|
|
170
|
-
function
|
|
171
|
-
let o = t ?? (
|
|
172
|
-
return o == null ? /* @__PURE__ */
|
|
223
|
+
function Be({ href: e, icon: t, children: i, "aria-label": a }) {
|
|
224
|
+
let o = t ?? (U(i) && i.type !== void 0 ? i : null);
|
|
225
|
+
return o == null ? /* @__PURE__ */ Y(n, {
|
|
173
226
|
role: "ghost",
|
|
174
227
|
size: "sm",
|
|
175
|
-
render: /* @__PURE__ */
|
|
228
|
+
render: /* @__PURE__ */ Y("a", { href: e }),
|
|
176
229
|
"aria-label": a,
|
|
177
|
-
className:
|
|
230
|
+
className: B,
|
|
178
231
|
children: i
|
|
179
|
-
}) : /* @__PURE__ */
|
|
232
|
+
}) : /* @__PURE__ */ Y(r, {
|
|
180
233
|
icon: o,
|
|
181
234
|
"aria-label": a ?? "Home",
|
|
182
235
|
role: "ghost",
|
|
183
236
|
size: "sm",
|
|
184
237
|
title: "",
|
|
185
|
-
render: /* @__PURE__ */
|
|
186
|
-
className:
|
|
238
|
+
render: /* @__PURE__ */ Y("a", { href: e }),
|
|
239
|
+
className: u
|
|
187
240
|
});
|
|
188
241
|
}
|
|
189
|
-
function
|
|
190
|
-
return
|
|
242
|
+
function Ve(e) {
|
|
243
|
+
return V.toArray(e).filter(U);
|
|
191
244
|
}
|
|
192
|
-
function
|
|
245
|
+
function Q(e) {
|
|
193
246
|
let t = e.props;
|
|
194
247
|
return typeof t.value == "string" && t.value.length > 0 ? t.value : typeof t.href == "string" ? t.href : typeof t.label == "string" ? t.label : "item";
|
|
195
248
|
}
|
|
196
|
-
function
|
|
249
|
+
function He(e) {
|
|
197
250
|
let t = e.props;
|
|
198
251
|
return t.label ?? t.children;
|
|
199
252
|
}
|
|
200
|
-
function
|
|
253
|
+
function $(e) {
|
|
201
254
|
return "label" in e.props && !("href" in e.props);
|
|
202
255
|
}
|
|
203
|
-
function
|
|
204
|
-
for (let t of e) if (t.props.current) return
|
|
205
|
-
return e[0] == null ? "" :
|
|
256
|
+
function Ue(e) {
|
|
257
|
+
for (let t of e) if (t.props.current) return Q(t);
|
|
258
|
+
return e[0] == null ? "" : Q(e[0]);
|
|
206
259
|
}
|
|
207
|
-
function
|
|
208
|
-
let s =
|
|
209
|
-
ids: c.map(
|
|
210
|
-
activeId:
|
|
211
|
-
toMenuRows: (e) =>
|
|
212
|
-
label:
|
|
260
|
+
function We({ children: t, "aria-label": r = "Primary", delay: i = 100, closeDelay: o = 150 }) {
|
|
261
|
+
let s = W(Pe), c = Ee(() => Ve(t), [t]), ne = new Map(c.map((e) => [Q(e), e])), l = (e) => e.flatMap((e) => ne.get(e) ?? []), u = (e) => l(e).flatMap(h), d = te({
|
|
262
|
+
ids: c.map(Q),
|
|
263
|
+
activeId: Ue(c),
|
|
264
|
+
toMenuRows: (e) => u(e).map((e) => ({
|
|
265
|
+
label: ee(e.label),
|
|
213
266
|
disabled: e.href == null
|
|
214
267
|
}))
|
|
215
|
-
}), { menu:
|
|
216
|
-
function
|
|
217
|
-
if (
|
|
268
|
+
}), { menu: f } = d, p = l(d.visibleIds), m = u(d.overflowIds);
|
|
269
|
+
function h(e) {
|
|
270
|
+
if (!$(e)) {
|
|
218
271
|
let t = e.props;
|
|
219
272
|
return [{
|
|
220
|
-
id:
|
|
273
|
+
id: Q(e),
|
|
221
274
|
label: t.children,
|
|
222
275
|
href: t.href,
|
|
223
276
|
current: t.current
|
|
@@ -225,8 +278,8 @@ function Ie({ children: t, "aria-label": r = "Primary", delay: i = 100, closeDel
|
|
|
225
278
|
}
|
|
226
279
|
let t = [];
|
|
227
280
|
function n(e) {
|
|
228
|
-
|
|
229
|
-
if (!
|
|
281
|
+
V.forEach(e, (e) => {
|
|
282
|
+
if (!U(e)) return;
|
|
230
283
|
let r = e.props;
|
|
231
284
|
if (typeof r.href == "string" && r.label == null) {
|
|
232
285
|
t.push({
|
|
@@ -240,98 +293,98 @@ function Ie({ children: t, "aria-label": r = "Primary", delay: i = 100, closeDel
|
|
|
240
293
|
});
|
|
241
294
|
}
|
|
242
295
|
return n(e.props.children), t.length === 0 && t.push({
|
|
243
|
-
id:
|
|
244
|
-
label:
|
|
296
|
+
id: Q(e),
|
|
297
|
+
label: He(e)
|
|
245
298
|
}), t;
|
|
246
299
|
}
|
|
247
|
-
return /* @__PURE__ */
|
|
248
|
-
...
|
|
249
|
-
className:
|
|
300
|
+
return /* @__PURE__ */ X("div", {
|
|
301
|
+
...d.rowProps,
|
|
302
|
+
className: v,
|
|
250
303
|
children: [
|
|
251
|
-
/* @__PURE__ */ Z
|
|
304
|
+
/* @__PURE__ */ X(Z.Root, {
|
|
252
305
|
"aria-label": r,
|
|
253
306
|
delay: i,
|
|
254
307
|
closeDelay: o,
|
|
255
|
-
className:
|
|
308
|
+
className: N,
|
|
256
309
|
onValueChange: (e) => s?.setMenuOpen(e != null),
|
|
257
|
-
children: [/* @__PURE__ */
|
|
258
|
-
className:
|
|
259
|
-
children:
|
|
260
|
-
}), /* @__PURE__ */ Z
|
|
310
|
+
children: [/* @__PURE__ */ Y(Z.List, {
|
|
311
|
+
className: _,
|
|
312
|
+
children: p
|
|
313
|
+
}), /* @__PURE__ */ X(Z.Portal, { children: [/* @__PURE__ */ Y(Z.Backdrop, { className: S }), /* @__PURE__ */ Y(Z.Positioner, {
|
|
261
314
|
anchor: s?.anchorRef,
|
|
262
315
|
positionMethod: "fixed",
|
|
263
316
|
side: "bottom",
|
|
264
317
|
align: "center",
|
|
265
318
|
sideOffset: 8,
|
|
266
319
|
collisionPadding: 8,
|
|
267
|
-
className:
|
|
268
|
-
children: /* @__PURE__ */
|
|
269
|
-
className:
|
|
270
|
-
children: /* @__PURE__ */
|
|
320
|
+
className: D,
|
|
321
|
+
children: /* @__PURE__ */ Y(Z.Popup, {
|
|
322
|
+
className: E,
|
|
323
|
+
children: /* @__PURE__ */ Y(Z.Viewport, { className: j })
|
|
271
324
|
})
|
|
272
325
|
})] })]
|
|
273
326
|
}),
|
|
274
|
-
|
|
275
|
-
ref:
|
|
327
|
+
d.overflowIds.length > 0 ? /* @__PURE__ */ Y(n, {
|
|
328
|
+
ref: d.moreRef,
|
|
276
329
|
role: "ghost",
|
|
277
330
|
size: "sm",
|
|
278
331
|
"aria-haspopup": "menu",
|
|
279
|
-
"aria-expanded":
|
|
280
|
-
"aria-controls":
|
|
281
|
-
"data-state":
|
|
282
|
-
className:
|
|
283
|
-
onClick:
|
|
284
|
-
children: /* @__PURE__ */
|
|
285
|
-
className:
|
|
286
|
-
children: ["More", /* @__PURE__ */
|
|
287
|
-
className:
|
|
288
|
-
"data-state":
|
|
289
|
-
children: /* @__PURE__ */
|
|
332
|
+
"aria-expanded": f.open,
|
|
333
|
+
"aria-controls": f.triggerProps["aria-controls"],
|
|
334
|
+
"data-state": f.open ? "open" : "closed",
|
|
335
|
+
className: M,
|
|
336
|
+
onClick: f.toggle,
|
|
337
|
+
children: /* @__PURE__ */ X("span", {
|
|
338
|
+
className: z,
|
|
339
|
+
children: ["More", /* @__PURE__ */ Y("span", {
|
|
340
|
+
className: ge,
|
|
341
|
+
"data-state": f.open ? "open" : "closed",
|
|
342
|
+
children: /* @__PURE__ */ Y(J, {
|
|
290
343
|
strokeWidth: 2,
|
|
291
344
|
"aria-hidden": !0
|
|
292
345
|
})
|
|
293
346
|
})]
|
|
294
347
|
})
|
|
295
348
|
}) : null,
|
|
296
|
-
/* @__PURE__ */
|
|
297
|
-
className:
|
|
349
|
+
/* @__PURE__ */ X("div", {
|
|
350
|
+
className: x,
|
|
298
351
|
"aria-hidden": !0,
|
|
299
352
|
children: [c.map((t) => {
|
|
300
|
-
let n =
|
|
301
|
-
return /* @__PURE__ */
|
|
302
|
-
ref:
|
|
303
|
-
className: e(
|
|
304
|
-
children: [r, i ? /* @__PURE__ */
|
|
353
|
+
let n = Q(t), r = He(t), i = $(t);
|
|
354
|
+
return /* @__PURE__ */ X("span", {
|
|
355
|
+
ref: d.measureRef(n),
|
|
356
|
+
className: e(y, i ? L : g),
|
|
357
|
+
children: [r, i ? /* @__PURE__ */ Y(J, {
|
|
305
358
|
className: "ml-1 size-3.5",
|
|
306
359
|
strokeWidth: 2
|
|
307
360
|
}) : null]
|
|
308
361
|
}, n);
|
|
309
|
-
}), /* @__PURE__ */
|
|
310
|
-
ref:
|
|
311
|
-
className: e(
|
|
312
|
-
children: ["More", /* @__PURE__ */
|
|
362
|
+
}), /* @__PURE__ */ X("span", {
|
|
363
|
+
ref: d.moreMeasureRef,
|
|
364
|
+
className: e(M, b),
|
|
365
|
+
children: ["More", /* @__PURE__ */ Y(J, {
|
|
313
366
|
className: "size-3.5",
|
|
314
367
|
strokeWidth: 2
|
|
315
368
|
})]
|
|
316
369
|
})]
|
|
317
370
|
}),
|
|
318
|
-
|
|
319
|
-
...
|
|
371
|
+
f.open && f.menuStyle != null ? Ne(/* @__PURE__ */ Y(a.Menu, {
|
|
372
|
+
...f.menuProps,
|
|
320
373
|
role: "menu",
|
|
321
374
|
"aria-label": `${r} overflow`,
|
|
322
|
-
children:
|
|
375
|
+
children: m.map((e, t) => /* @__PURE__ */ Y("li", {
|
|
323
376
|
role: "presentation",
|
|
324
|
-
children: /* @__PURE__ */
|
|
325
|
-
...
|
|
377
|
+
children: /* @__PURE__ */ Y(a.Item, {
|
|
378
|
+
...f.rowProps(t),
|
|
326
379
|
role: "menuitem",
|
|
327
380
|
truncate: !1,
|
|
328
381
|
selected: !!e.current,
|
|
329
382
|
disabled: e.href == null,
|
|
330
|
-
render: e.href == null ? void 0 : /* @__PURE__ */
|
|
383
|
+
render: e.href == null ? void 0 : /* @__PURE__ */ Y("a", {
|
|
331
384
|
href: e.href,
|
|
332
385
|
"aria-current": e.current ? "page" : void 0
|
|
333
386
|
}),
|
|
334
|
-
onClick: () =>
|
|
387
|
+
onClick: () => f.close(),
|
|
335
388
|
children: e.label
|
|
336
389
|
})
|
|
337
390
|
}, e.id))
|
|
@@ -339,123 +392,123 @@ function Ie({ children: t, "aria-label": r = "Primary", delay: i = 100, closeDel
|
|
|
339
392
|
]
|
|
340
393
|
});
|
|
341
394
|
}
|
|
342
|
-
function
|
|
343
|
-
return /* @__PURE__ */
|
|
395
|
+
function Ge({ href: e, children: t, current: r = !1, value: i }) {
|
|
396
|
+
return /* @__PURE__ */ Y(Z.Item, {
|
|
344
397
|
value: i ?? e,
|
|
345
|
-
children: /* @__PURE__ */
|
|
398
|
+
children: /* @__PURE__ */ Y(Z.Link, {
|
|
346
399
|
href: e,
|
|
347
400
|
active: r,
|
|
348
401
|
"aria-current": r ? "page" : void 0,
|
|
349
|
-
render: /* @__PURE__ */
|
|
402
|
+
render: /* @__PURE__ */ Y(n, {
|
|
350
403
|
role: "ghost",
|
|
351
404
|
size: "sm",
|
|
352
|
-
render: /* @__PURE__ */
|
|
353
|
-
className:
|
|
405
|
+
render: /* @__PURE__ */ Y("a", {}),
|
|
406
|
+
className: g,
|
|
354
407
|
children: t
|
|
355
408
|
})
|
|
356
409
|
})
|
|
357
410
|
});
|
|
358
411
|
}
|
|
359
|
-
function
|
|
412
|
+
function Ke({ label: e, children: t, value: r }) {
|
|
360
413
|
let i = r ?? (typeof e == "string" ? e : void 0);
|
|
361
|
-
return /* @__PURE__ */ Z
|
|
414
|
+
return /* @__PURE__ */ X(Z.Item, {
|
|
362
415
|
value: i,
|
|
363
|
-
children: [/* @__PURE__ */
|
|
416
|
+
children: [/* @__PURE__ */ Y(Z.Trigger, { render: /* @__PURE__ */ Y(n, {
|
|
364
417
|
role: "ghost",
|
|
365
418
|
size: "sm",
|
|
366
|
-
className:
|
|
367
|
-
children: /* @__PURE__ */
|
|
368
|
-
className:
|
|
369
|
-
children: [e, /* @__PURE__ */
|
|
370
|
-
className:
|
|
371
|
-
children: /* @__PURE__ */
|
|
419
|
+
className: L,
|
|
420
|
+
children: /* @__PURE__ */ X("span", {
|
|
421
|
+
className: z,
|
|
422
|
+
children: [e, /* @__PURE__ */ Y(Z.Icon, {
|
|
423
|
+
className: R,
|
|
424
|
+
children: /* @__PURE__ */ Y(J, {
|
|
372
425
|
strokeWidth: 2,
|
|
373
426
|
"aria-hidden": !0
|
|
374
427
|
})
|
|
375
428
|
})]
|
|
376
429
|
})
|
|
377
|
-
}) }), /* @__PURE__ */
|
|
378
|
-
className:
|
|
430
|
+
}) }), /* @__PURE__ */ Y(Z.Content, {
|
|
431
|
+
className: C,
|
|
379
432
|
children: t
|
|
380
433
|
})]
|
|
381
434
|
});
|
|
382
435
|
}
|
|
383
|
-
function
|
|
384
|
-
return /* @__PURE__ */
|
|
385
|
-
className: e(
|
|
386
|
-
children: [t == null ? null : /* @__PURE__ */
|
|
387
|
-
className:
|
|
436
|
+
function qe({ label: t, span: n = 1, children: r }) {
|
|
437
|
+
return /* @__PURE__ */ X("section", {
|
|
438
|
+
className: e(A, oe[n]),
|
|
439
|
+
children: [t == null ? null : /* @__PURE__ */ Y("h3", {
|
|
440
|
+
className: ae,
|
|
388
441
|
children: t
|
|
389
442
|
}), r]
|
|
390
443
|
});
|
|
391
444
|
}
|
|
392
|
-
function
|
|
445
|
+
function Je({ href: e, children: t, icon: r, external: i = !1, newTab: a = !1, size: o = "sm" }) {
|
|
393
446
|
let s = i && a;
|
|
394
|
-
return /* @__PURE__ */
|
|
447
|
+
return /* @__PURE__ */ Y(Z.Link, {
|
|
395
448
|
href: e,
|
|
396
449
|
target: s ? "_blank" : void 0,
|
|
397
450
|
rel: s ? "noopener noreferrer" : void 0,
|
|
398
|
-
render: /* @__PURE__ */
|
|
451
|
+
render: /* @__PURE__ */ X(n, {
|
|
399
452
|
role: "ghost",
|
|
400
453
|
size: o,
|
|
401
|
-
render: /* @__PURE__ */
|
|
402
|
-
className:
|
|
454
|
+
render: /* @__PURE__ */ Y("a", {}),
|
|
455
|
+
className: w,
|
|
403
456
|
icon: r,
|
|
404
|
-
children: [t, s ? /* @__PURE__ */
|
|
457
|
+
children: [t, s ? /* @__PURE__ */ Y("span", {
|
|
405
458
|
className: "sr-only",
|
|
406
459
|
children: " (opens in a new tab)"
|
|
407
460
|
}) : null]
|
|
408
461
|
})
|
|
409
462
|
});
|
|
410
463
|
}
|
|
411
|
-
function
|
|
412
|
-
return /* @__PURE__ */
|
|
413
|
-
className:
|
|
464
|
+
function Ye({ children: e }) {
|
|
465
|
+
return /* @__PURE__ */ Y("div", {
|
|
466
|
+
className: T,
|
|
414
467
|
children: e
|
|
415
468
|
});
|
|
416
469
|
}
|
|
417
|
-
function
|
|
418
|
-
return /* @__PURE__ */
|
|
470
|
+
function Xe({ label: t, variant: n = "thumb", className: r }) {
|
|
471
|
+
return /* @__PURE__ */ Y("div", {
|
|
419
472
|
role: "img",
|
|
420
473
|
"aria-label": t,
|
|
421
|
-
className: e(s, o, n === "featured" ? "aspect-[16/10] w-full" :
|
|
474
|
+
className: e(s, o, n === "featured" ? "aspect-[16/10] w-full" : k, r)
|
|
422
475
|
});
|
|
423
476
|
}
|
|
424
|
-
function
|
|
425
|
-
return /* @__PURE__ */
|
|
477
|
+
function Ze({ media: e, title: t, description: n, href: r, linkLabel: a = "Read now" }) {
|
|
478
|
+
return /* @__PURE__ */ X("div", {
|
|
426
479
|
className: "flex flex-col gap-1 type-body",
|
|
427
480
|
children: [
|
|
428
481
|
e,
|
|
429
|
-
/* @__PURE__ */
|
|
482
|
+
/* @__PURE__ */ Y("h2", {
|
|
430
483
|
className: "type-heading-2 text-fg",
|
|
431
484
|
children: t
|
|
432
485
|
}),
|
|
433
|
-
n == null ? null : /* @__PURE__ */
|
|
486
|
+
n == null ? null : /* @__PURE__ */ Y("p", {
|
|
434
487
|
className: "text-muted",
|
|
435
488
|
children: n
|
|
436
489
|
}),
|
|
437
|
-
/* @__PURE__ */
|
|
490
|
+
/* @__PURE__ */ Y(i, {
|
|
438
491
|
href: r,
|
|
439
492
|
children: a
|
|
440
493
|
})
|
|
441
494
|
]
|
|
442
495
|
});
|
|
443
496
|
}
|
|
444
|
-
function
|
|
445
|
-
return /* @__PURE__ */
|
|
446
|
-
className:
|
|
447
|
-
children: [e, /* @__PURE__ */
|
|
497
|
+
function Qe({ media: e, title: t, description: n, href: r, linkLabel: a = "Read now" }) {
|
|
498
|
+
return /* @__PURE__ */ X("div", {
|
|
499
|
+
className: O,
|
|
500
|
+
children: [e, /* @__PURE__ */ X("div", {
|
|
448
501
|
className: "flex min-w-0 flex-col gap-1 type-body",
|
|
449
502
|
children: [
|
|
450
|
-
/* @__PURE__ */
|
|
503
|
+
/* @__PURE__ */ Y("h3", {
|
|
451
504
|
className: "type-heading-3 text-fg",
|
|
452
505
|
children: t
|
|
453
506
|
}),
|
|
454
|
-
n == null ? null : /* @__PURE__ */
|
|
507
|
+
n == null ? null : /* @__PURE__ */ Y("p", {
|
|
455
508
|
className: "text-muted",
|
|
456
509
|
children: n
|
|
457
510
|
}),
|
|
458
|
-
/* @__PURE__ */
|
|
511
|
+
/* @__PURE__ */ Y(i, {
|
|
459
512
|
href: r,
|
|
460
513
|
children: a
|
|
461
514
|
})
|
|
@@ -463,28 +516,28 @@ function We({ media: e, title: t, description: n, href: r, linkLabel: a = "Read
|
|
|
463
516
|
})]
|
|
464
517
|
});
|
|
465
518
|
}
|
|
466
|
-
function
|
|
467
|
-
return /* @__PURE__ */
|
|
519
|
+
function $e({ href: e, children: t, current: r = !1 }) {
|
|
520
|
+
return /* @__PURE__ */ Y(n, {
|
|
468
521
|
role: "ghost",
|
|
469
522
|
size: "md",
|
|
470
|
-
render: /* @__PURE__ */
|
|
523
|
+
render: /* @__PURE__ */ Y("a", { href: e }),
|
|
471
524
|
"aria-current": r ? "page" : void 0,
|
|
472
|
-
className:
|
|
525
|
+
className: fe,
|
|
473
526
|
children: t
|
|
474
527
|
});
|
|
475
528
|
}
|
|
476
|
-
var
|
|
477
|
-
Brand:
|
|
478
|
-
Links:
|
|
479
|
-
Link:
|
|
480
|
-
Menu:
|
|
481
|
-
MenuSection:
|
|
482
|
-
MenuLink:
|
|
483
|
-
MenuLinkGrid:
|
|
484
|
-
MenuMedia:
|
|
485
|
-
Featured:
|
|
486
|
-
ReadRow:
|
|
487
|
-
MobileLink:
|
|
529
|
+
var et = Object.assign(ze, {
|
|
530
|
+
Brand: Be,
|
|
531
|
+
Links: We,
|
|
532
|
+
Link: Ge,
|
|
533
|
+
Menu: Ke,
|
|
534
|
+
MenuSection: qe,
|
|
535
|
+
MenuLink: Je,
|
|
536
|
+
MenuLinkGrid: Ye,
|
|
537
|
+
MenuMedia: Xe,
|
|
538
|
+
Featured: Ze,
|
|
539
|
+
ReadRow: Qe,
|
|
540
|
+
MobileLink: $e
|
|
488
541
|
});
|
|
489
542
|
//#endregion
|
|
490
|
-
export {
|
|
543
|
+
export { et as SiteNav, d as siteNavCompactLayouts, p as siteNavDefaultCollapseAt, m as siteNavDefaultCollapseRatio, ie as siteNavExpandedHeightClasses, O as siteNavMenuReadRowClasses, k as siteNavMenuReadThumbClasses, P as siteNavPlacements, I as siteNavStates };
|