@thewhatmatters/wmds 0.4.28 → 0.4.30
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 +52 -0
- package/CONSUMING.md +2 -1
- package/dist/components/atoms/Badge/Badge.js +1 -1
- package/dist/components/atoms/Badge/badgeStyles.d.ts +1 -1
- package/dist/components/atoms/Badge/badgeStyles.js +1 -1
- package/dist/components/atoms/Band/Band.d.ts +1 -1
- package/dist/components/atoms/Band/Band.d.ts.map +1 -1
- package/dist/components/atoms/Band/bandStyles.d.ts +4 -1
- package/dist/components/atoms/Band/bandStyles.d.ts.map +1 -1
- package/dist/components/atoms/Band/bandStyles.js +1 -1
- package/dist/components/atoms/Button/Button.d.ts +22 -4
- package/dist/components/atoms/Button/Button.d.ts.map +1 -1
- package/dist/components/atoms/Button/Button.js +132 -124
- package/dist/components/atoms/Button/buttonStyles.d.ts +3 -1
- package/dist/components/atoms/Button/buttonStyles.d.ts.map +1 -1
- package/dist/components/atoms/Button/buttonStyles.js +5 -4
- package/dist/components/atoms/IconButton/IconButton.d.ts +5 -0
- package/dist/components/atoms/IconButton/IconButton.d.ts.map +1 -1
- package/dist/components/atoms/IconButton/IconButton.js +4 -3
- package/dist/components/atoms/SectionCaption/SectionCaption.d.ts +5 -1
- package/dist/components/atoms/SectionCaption/SectionCaption.d.ts.map +1 -1
- package/dist/components/atoms/SectionCaption/SectionCaption.js +1 -1
- package/dist/components/atoms/TextLink/TextLink.d.ts +10 -2
- package/dist/components/atoms/TextLink/TextLink.d.ts.map +1 -1
- package/dist/components/atoms/TextLink/TextLink.js +18 -14
- package/dist/components/molecules/Accordion/Accordion.d.ts +9 -4
- package/dist/components/molecules/Accordion/Accordion.d.ts.map +1 -1
- package/dist/components/molecules/Accordion/Accordion.js +58 -51
- package/dist/components/molecules/Accordion/accordionStyles.d.ts +5 -0
- package/dist/components/molecules/Accordion/accordionStyles.d.ts.map +1 -1
- package/dist/components/molecules/Accordion/accordionStyles.js +5 -2
- package/dist/components/molecules/Breadcrumb/breadcrumbStyles.d.ts +4 -1
- package/dist/components/molecules/Breadcrumb/breadcrumbStyles.d.ts.map +1 -1
- package/dist/components/molecules/Breadcrumb/breadcrumbStyles.js +1 -1
- package/dist/components/molecules/HeroIntro/HeroIntro.d.ts +16 -8
- package/dist/components/molecules/HeroIntro/HeroIntro.d.ts.map +1 -1
- package/dist/components/molecules/HeroIntro/HeroIntro.js +21 -17
- package/dist/components/molecules/HeroIntro/heroIntroStyles.d.ts +12 -3
- package/dist/components/molecules/HeroIntro/heroIntroStyles.d.ts.map +1 -1
- package/dist/components/molecules/HeroIntro/heroIntroStyles.js +2 -2
- package/dist/components/molecules/LinkTile/LinkTile.d.ts +6 -4
- package/dist/components/molecules/LinkTile/LinkTile.d.ts.map +1 -1
- package/dist/components/molecules/LinkTile/LinkTile.js +29 -29
- package/dist/components/molecules/PageHeader/PageHeader.d.ts +8 -1
- package/dist/components/molecules/PageHeader/PageHeader.d.ts.map +1 -1
- package/dist/components/molecules/PageHeader/PageHeader.js +19 -15
- package/dist/components/organisms/FooterReveal/FooterReveal.d.ts +4 -2
- package/dist/components/organisms/FooterReveal/FooterReveal.d.ts.map +1 -1
- package/dist/components/organisms/FooterReveal/FooterReveal.js +85 -85
- package/dist/components/organisms/FooterReveal/FooterRevealRuled.d.ts.map +1 -1
- package/dist/components/organisms/FooterReveal/FooterRevealRuled.js +49 -50
- package/dist/components/organisms/FooterReveal/footerRevealStyles.d.ts +9 -7
- package/dist/components/organisms/FooterReveal/footerRevealStyles.d.ts.map +1 -1
- package/dist/components/organisms/FooterReveal/footerRevealStyles.js +2 -9
- package/dist/components/organisms/IntakeConfirmation/intakeConfirmationStyles.d.ts +2 -1
- package/dist/components/organisms/IntakeConfirmation/intakeConfirmationStyles.d.ts.map +1 -1
- package/dist/components/organisms/IntakeConfirmation/intakeConfirmationStyles.js +1 -1
- package/dist/components/organisms/Sheet/Sheet.d.ts +3 -1
- package/dist/components/organisms/Sheet/Sheet.d.ts.map +1 -1
- package/dist/components/organisms/Sheet/Sheet.js +51 -49
- package/dist/components/organisms/SiteNav/SiteNav.d.ts +4 -2
- package/dist/components/organisms/SiteNav/SiteNav.d.ts.map +1 -1
- package/dist/components/organisms/SiteNav/SiteNav.js +191 -187
- package/dist/components/organisms/SiteNav/siteNavStyles.d.ts +2 -2
- package/dist/components/organisms/SiteNav/siteNavStyles.d.ts.map +1 -1
- package/dist/components/organisms/SiteNav/siteNavStyles.js +3 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +107 -107
- package/dist/lib/motion.d.ts +2 -1
- package/dist/lib/motion.d.ts.map +1 -1
- package/dist/lib/motion.js +1 -1
- package/dist/lib/typography.d.ts +2 -2
- package/dist/lib/typography.d.ts.map +1 -1
- package/dist/lib/typography.js +14 -3
- package/dist/styles.css +1 -1
- package/dist/typography.css +46 -11
- package/docs/components.md +5 -5
- package/docs/exports.json +1 -1
- 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 +6 -6
- package/docs/patterns/components-footerreveal--marketing-hero-ruled-pattern.tsx +2 -2
- package/docs/patterns/components-footerreveal--marketing-hero-with-gallery-intro.tsx +6 -6
- package/docs/patterns/components-footerreveal--marketing-page-pattern.tsx +5 -5
- package/docs/patterns/components-footerreveal--ruled-grid-footer-pattern.tsx +1 -1
- package/docs/patterns/components-footerreveal--sequenced-marketing-hero.tsx +5 -5
- package/docs/patterns/components-herointro--two-line-intro.tsx +3 -3
- package/docs/patterns/components-herotilestack--marketing-hero-pattern.tsx +3 -3
- package/docs/patterns/components-herotilestack--marketing-hero-text-sequence.tsx +2 -2
- package/docs/patterns/components-herotilestack--marketing-hero-with-gallery-intro.tsx +3 -3
- 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 +2 -2
- 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 +1 -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 +1 -1
- 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 +1 -1
- package/docs/patterns/components-tilegrid--masonry.tsx +2 -2
- 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 +2 -2
- package/docs/patterns/guides-filter-panel--filtered-index.tsx +1 -1
- package/docs/patterns/guides-overlay-flows--notification-preferences.tsx +1 -1
- package/docs/patterns/guides-post-page--post-page.tsx +1 -1
- package/docs/patterns/guides-profile-typography--editorial-profile.tsx +1 -1
- package/docs/patterns/guides-resource-detail--detail.tsx +1 -1
- package/docs/patterns/index.json +1 -1
- package/package.json +1 -1
|
@@ -8,21 +8,21 @@ import { Dropdown as a } from "../../molecules/Dropdown/Dropdown.js";
|
|
|
8
8
|
import { cardLayoutBodyOccupantRadiusClasses as o, cardLayoutBodyOccupantWellClasses as s } from "../../molecules/Card/cardStyles.js";
|
|
9
9
|
import { Sheet as c } from "../Sheet/Sheet.js";
|
|
10
10
|
import { textOf as l, useOverflowMenu as u } from "../../molecules/Dropdown/useOverflowMenu.js";
|
|
11
|
-
import { siteNavBarBaseClasses as d, siteNavBarCompactLayoutClasses as f, siteNavBarStateClasses as p, siteNavBrandClasses as m, siteNavCompactLayouts as h, siteNavContainerClasses as g, siteNavDefaultCollapseAt as _, siteNavDefaultCollapseRatio as v, siteNavEndClasses as ee, siteNavExpandedHeightClasses as
|
|
12
|
-
import { useSiteNavCollapse as
|
|
13
|
-
import { Children as
|
|
14
|
-
import { ChevronDown as
|
|
15
|
-
import { Fragment as Se, jsx as
|
|
16
|
-
import { AnimatePresence as
|
|
17
|
-
import { createPortal as
|
|
11
|
+
import { siteNavBarBaseClasses as d, siteNavBarCompactLayoutClasses as f, siteNavBarStateClasses as p, siteNavBrandClasses as m, siteNavCompactLayouts as h, siteNavContainerClasses as g, siteNavDefaultCollapseAt as _, siteNavDefaultCollapseRatio as v, siteNavEndClasses as ee, siteNavExpandedHeightClasses as te, siteNavLinkClasses as y, siteNavLinkListClasses as b, siteNavLinksRootClasses as x, siteNavMeasureItemClasses as S, siteNavMeasureMoreClasses as C, siteNavMeasureRailClasses as w, siteNavMenuBackdropClasses as T, siteNavMenuContentClasses as E, siteNavMenuLinkClasses as D, siteNavMenuLinkGridClasses as O, siteNavMenuPopupClasses as ne, siteNavMenuPositionerClasses as k, siteNavMenuReadRowClasses as A, siteNavMenuReadThumbClasses as j, siteNavMenuSectionClasses as M, siteNavMenuSectionLabelClasses as N, siteNavMenuSectionSpanClasses as P, siteNavMenuViewportClasses as F, siteNavMiddleClasses as re, siteNavMiddleHugClasses as ie, siteNavMiddleHugResponsiveClasses as ae, siteNavMiddleResponsiveClasses as oe, siteNavMobileLinkClasses as I, siteNavMobileListClasses as se, siteNavMobileTriggerClasses as ce, siteNavMoreIconClasses as L, siteNavMoreTriggerClasses as R, siteNavNavigationRootClasses as z, siteNavPlacements as B, siteNavRootFixedClasses as le, siteNavRootFlowClasses as ue, siteNavRootInlineClasses as de, siteNavRootStickyClasses as fe, siteNavSlotsClasses as V, siteNavStartClasses as pe, siteNavStates as H, siteNavTriggerClasses as U, siteNavTriggerIconClasses as W, siteNavTriggerLabelClasses as G } from "./siteNavStyles.js";
|
|
12
|
+
import { useSiteNavCollapse as me } from "./useSiteNavCollapse.js";
|
|
13
|
+
import { Children as K, createContext as he, isValidElement as q, useContext as ge, useEffect as _e, useId as ve, useMemo as ye, useRef as be, useState as J } from "react";
|
|
14
|
+
import { ChevronDown as Y, Menu as xe } from "lucide-react";
|
|
15
|
+
import { Fragment as Se, jsx as X, jsxs as Z } from "react/jsx-runtime";
|
|
16
|
+
import { AnimatePresence as Ce, motion as we, useReducedMotion as Te } from "motion/react";
|
|
17
|
+
import { createPortal as Ee } from "react-dom";
|
|
18
18
|
import { NavigationMenu as Q } 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 De = he(null);
|
|
21
|
+
function Oe(e, t, n, r) {
|
|
22
|
+
return t && (e || n) ? r ? V.threeHug : V.three : t ? V.middleOnly : e && n ? V.ends : e ? V.startOnly : V.endOnly;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
25
|
-
|
|
24
|
+
function ke(e, t) {
|
|
25
|
+
_e(() => {
|
|
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,188 +30,191 @@ function Oe(e, t) {
|
|
|
30
30
|
};
|
|
31
31
|
}, [e, t]);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
let
|
|
33
|
+
function Ae({ start: n, middle: i, end: a, mobile: o, mobileTitle: s = "Menu", collapseAt: l, state: u, onStateChange: m, compactLayout: h = "hug", placement: _ = "fixed", scrollContainer: v, "aria-label": y = "Site", className: b }) {
|
|
34
|
+
let x = be(null), S = Te() ?? !1, { state: C, compact: w } = me({
|
|
35
35
|
collapseAt: l,
|
|
36
36
|
scrollContainer: v,
|
|
37
37
|
controlledState: u,
|
|
38
38
|
placement: _,
|
|
39
39
|
onStateChange: m
|
|
40
|
-
}), [
|
|
40
|
+
}), [T, E] = J(!1), D = ve(), [O, ne] = J(!1), k = w && h === "hug", A = {
|
|
41
41
|
y: -72,
|
|
42
42
|
opacity: 0
|
|
43
43
|
}, j = {
|
|
44
44
|
y: 0,
|
|
45
45
|
opacity: 1
|
|
46
|
-
}, M =
|
|
46
|
+
}, M = S ? { duration: 0 } : {
|
|
47
47
|
...t("medium"),
|
|
48
48
|
type: "tween"
|
|
49
49
|
}, N = v != null, P = _ === "fixed" || N;
|
|
50
|
-
|
|
51
|
-
let F = o != null, I = n != null, L = i != null, R = a != null || F, z = F ? /* @__PURE__ */
|
|
52
|
-
icon: /* @__PURE__ */
|
|
53
|
-
"aria-label": "Open menu",
|
|
50
|
+
ke(P && w, v);
|
|
51
|
+
let F = o != null, I = n != null, L = i != null, R = a != null || F, z = F ? /* @__PURE__ */ X(r, {
|
|
52
|
+
icon: /* @__PURE__ */ X(xe, { strokeWidth: 2 }),
|
|
53
|
+
"aria-label": T ? "Close menu" : "Open menu",
|
|
54
54
|
title: "",
|
|
55
55
|
size: "sm",
|
|
56
|
-
className:
|
|
57
|
-
"aria-
|
|
58
|
-
|
|
56
|
+
className: ce,
|
|
57
|
+
"aria-haspopup": "dialog",
|
|
58
|
+
"aria-expanded": T,
|
|
59
|
+
"aria-controls": T ? D : void 0,
|
|
60
|
+
onClick: () => E((e) => !e)
|
|
59
61
|
}) : null;
|
|
60
62
|
function B(e) {
|
|
61
|
-
return /* @__PURE__ */
|
|
62
|
-
className:
|
|
63
|
+
return /* @__PURE__ */ Z("div", {
|
|
64
|
+
className: Oe(I, L, R, e),
|
|
63
65
|
children: [
|
|
64
|
-
I ? /* @__PURE__ */
|
|
65
|
-
className:
|
|
66
|
+
I ? /* @__PURE__ */ X("div", {
|
|
67
|
+
className: pe,
|
|
66
68
|
children: n
|
|
67
69
|
}) : null,
|
|
68
|
-
L ? /* @__PURE__ */
|
|
69
|
-
className: F ? e ?
|
|
70
|
+
L ? /* @__PURE__ */ X("div", {
|
|
71
|
+
className: F ? e ? ae : oe : e ? ie : re,
|
|
70
72
|
children: i
|
|
71
73
|
}) : null,
|
|
72
|
-
R ? /* @__PURE__ */
|
|
74
|
+
R ? /* @__PURE__ */ Z("div", {
|
|
73
75
|
className: ee,
|
|
74
76
|
children: [a, z]
|
|
75
77
|
}) : null
|
|
76
78
|
]
|
|
77
79
|
});
|
|
78
80
|
}
|
|
79
|
-
let V = e(d, p.compact, f[h]), H = /* @__PURE__ */
|
|
81
|
+
let V = e(d, p.compact, f[h]), H = /* @__PURE__ */ X("div", {
|
|
80
82
|
"data-state": "expanded",
|
|
81
83
|
className: e(d, p.expanded),
|
|
82
84
|
children: B(!1)
|
|
83
|
-
}), U = /* @__PURE__ */
|
|
84
|
-
ref:
|
|
85
|
+
}), U = /* @__PURE__ */ X("div", {
|
|
86
|
+
ref: x,
|
|
85
87
|
className: e(g, "px-[var(--grid-margin)]"),
|
|
86
|
-
children: /* @__PURE__ */
|
|
88
|
+
children: /* @__PURE__ */ X("div", {
|
|
87
89
|
"data-state": "compact",
|
|
88
90
|
className: V,
|
|
89
91
|
children: B(k)
|
|
90
92
|
})
|
|
91
93
|
}), W = {
|
|
92
|
-
initial: !
|
|
94
|
+
initial: !S && A,
|
|
93
95
|
animate: j,
|
|
94
|
-
exit:
|
|
96
|
+
exit: S ? j : A,
|
|
95
97
|
transition: M
|
|
96
|
-
},
|
|
97
|
-
return /* @__PURE__ */
|
|
98
|
+
}, G = N ? e(fe, "h-0 w-full overflow-visible") : le;
|
|
99
|
+
return /* @__PURE__ */ Z(De.Provider, {
|
|
98
100
|
value: {
|
|
99
|
-
state:
|
|
100
|
-
anchorRef:
|
|
101
|
+
state: C,
|
|
102
|
+
anchorRef: x,
|
|
101
103
|
menuOpen: O,
|
|
102
|
-
setMenuOpen:
|
|
104
|
+
setMenuOpen: ne
|
|
103
105
|
},
|
|
104
|
-
children: [P ? /* @__PURE__ */
|
|
105
|
-
/* @__PURE__ */
|
|
106
|
+
children: [P ? /* @__PURE__ */ Z(Se, { children: [
|
|
107
|
+
/* @__PURE__ */ X(Ce, { children: w ? /* @__PURE__ */ X(we.div, {
|
|
106
108
|
...W,
|
|
107
|
-
className: e(
|
|
108
|
-
children: /* @__PURE__ */
|
|
109
|
-
"aria-label":
|
|
109
|
+
className: e(G, !N && b),
|
|
110
|
+
children: /* @__PURE__ */ X("header", {
|
|
111
|
+
"aria-label": y,
|
|
110
112
|
"data-state": "compact",
|
|
111
113
|
"data-menu": O ? "open" : "closed",
|
|
112
|
-
className: e(N && e("w-full",
|
|
114
|
+
className: e(N && e("w-full", b)),
|
|
113
115
|
children: U
|
|
114
116
|
})
|
|
115
117
|
}, "site-nav-compact") : null }),
|
|
116
|
-
|
|
117
|
-
className: e(
|
|
118
|
+
w ? /* @__PURE__ */ X("div", {
|
|
119
|
+
className: e(te, "w-full"),
|
|
118
120
|
"aria-hidden": !0
|
|
119
121
|
}) : null,
|
|
120
|
-
|
|
121
|
-
"aria-label":
|
|
122
|
+
w ? null : /* @__PURE__ */ X("header", {
|
|
123
|
+
"aria-label": y,
|
|
122
124
|
"data-state": "expanded",
|
|
123
125
|
"data-menu": O ? "open" : "closed",
|
|
124
|
-
className: e(
|
|
125
|
-
children: /* @__PURE__ */
|
|
126
|
-
ref:
|
|
126
|
+
className: e(ue, b),
|
|
127
|
+
children: /* @__PURE__ */ X("div", {
|
|
128
|
+
ref: x,
|
|
127
129
|
className: g,
|
|
128
130
|
children: H
|
|
129
131
|
})
|
|
130
132
|
})
|
|
131
|
-
] }) : /* @__PURE__ */
|
|
132
|
-
"aria-label":
|
|
133
|
-
"data-state":
|
|
133
|
+
] }) : /* @__PURE__ */ X("header", {
|
|
134
|
+
"aria-label": y,
|
|
135
|
+
"data-state": C,
|
|
134
136
|
"data-menu": O ? "open" : "closed",
|
|
135
|
-
className: e(
|
|
136
|
-
children: /* @__PURE__ */
|
|
137
|
-
ref:
|
|
138
|
-
className: e(g,
|
|
139
|
-
children: /* @__PURE__ */
|
|
137
|
+
className: e(de, b),
|
|
138
|
+
children: /* @__PURE__ */ X("div", {
|
|
139
|
+
ref: x,
|
|
140
|
+
className: e(g, w && "px-[var(--grid-margin)]"),
|
|
141
|
+
children: /* @__PURE__ */ X(Ce, {
|
|
140
142
|
initial: !1,
|
|
141
143
|
mode: "popLayout",
|
|
142
|
-
children:
|
|
143
|
-
initial: !
|
|
144
|
+
children: w ? /* @__PURE__ */ X(we.div, {
|
|
145
|
+
initial: !S && A,
|
|
144
146
|
animate: j,
|
|
145
|
-
exit:
|
|
147
|
+
exit: S ? j : A,
|
|
146
148
|
transition: M,
|
|
147
149
|
"data-state": "compact",
|
|
148
150
|
className: V,
|
|
149
151
|
children: B(!0)
|
|
150
|
-
}, "compact") : /* @__PURE__ */
|
|
152
|
+
}, "compact") : /* @__PURE__ */ X("div", { children: H }, "expanded")
|
|
151
153
|
})
|
|
152
154
|
})
|
|
153
|
-
}), F ? /* @__PURE__ */
|
|
154
|
-
open:
|
|
155
|
-
onOpenChange:
|
|
156
|
-
children: /* @__PURE__ */
|
|
155
|
+
}), F ? /* @__PURE__ */ X(c, {
|
|
156
|
+
open: T,
|
|
157
|
+
onOpenChange: E,
|
|
158
|
+
children: /* @__PURE__ */ X(c.Content, {
|
|
159
|
+
id: D,
|
|
157
160
|
side: "end",
|
|
158
161
|
title: s,
|
|
159
|
-
children: /* @__PURE__ */
|
|
160
|
-
className:
|
|
162
|
+
children: /* @__PURE__ */ X("div", {
|
|
163
|
+
className: se,
|
|
161
164
|
children: o
|
|
162
165
|
})
|
|
163
166
|
})
|
|
164
167
|
}) : null]
|
|
165
168
|
});
|
|
166
169
|
}
|
|
167
|
-
function
|
|
168
|
-
let o = t ?? (
|
|
169
|
-
return o == null ? /* @__PURE__ */
|
|
170
|
+
function je({ href: e, icon: t, children: i, "aria-label": a }) {
|
|
171
|
+
let o = t ?? (q(i) && i.type !== void 0 ? i : null);
|
|
172
|
+
return o == null ? /* @__PURE__ */ X(n, {
|
|
170
173
|
role: "ghost",
|
|
171
174
|
size: "sm",
|
|
172
|
-
render: /* @__PURE__ */
|
|
175
|
+
render: /* @__PURE__ */ X("a", { href: e }),
|
|
173
176
|
"aria-label": a,
|
|
174
177
|
className: m,
|
|
175
178
|
children: i
|
|
176
|
-
}) : /* @__PURE__ */
|
|
179
|
+
}) : /* @__PURE__ */ X(r, {
|
|
177
180
|
icon: o,
|
|
178
181
|
"aria-label": a ?? "Home",
|
|
179
182
|
role: "ghost",
|
|
180
183
|
size: "sm",
|
|
181
184
|
title: "",
|
|
182
|
-
render: /* @__PURE__ */
|
|
185
|
+
render: /* @__PURE__ */ X("a", { href: e }),
|
|
183
186
|
className: m
|
|
184
187
|
});
|
|
185
188
|
}
|
|
186
|
-
function
|
|
187
|
-
return
|
|
189
|
+
function Me(e) {
|
|
190
|
+
return K.toArray(e).filter(q);
|
|
188
191
|
}
|
|
189
192
|
function $(e) {
|
|
190
193
|
let t = e.props;
|
|
191
194
|
return typeof t.value == "string" && t.value.length > 0 ? t.value : typeof t.href == "string" ? t.href : typeof t.label == "string" ? t.label : "item";
|
|
192
195
|
}
|
|
193
|
-
function
|
|
196
|
+
function Ne(e) {
|
|
194
197
|
let t = e.props;
|
|
195
198
|
return t.label ?? t.children;
|
|
196
199
|
}
|
|
197
|
-
function
|
|
200
|
+
function Pe(e) {
|
|
198
201
|
return "label" in e.props && !("href" in e.props);
|
|
199
202
|
}
|
|
200
|
-
function
|
|
203
|
+
function Fe(e) {
|
|
201
204
|
for (let t of e) if (t.props.current) return $(t);
|
|
202
205
|
return e[0] == null ? "" : $(e[0]);
|
|
203
206
|
}
|
|
204
|
-
function
|
|
205
|
-
let s =
|
|
207
|
+
function Ie({ children: t, "aria-label": r = "Primary", delay: i = 100, closeDelay: o = 150 }) {
|
|
208
|
+
let s = ge(De), c = ye(() => Me(t), [t]), d = new Map(c.map((e) => [$(e), e])), f = (e) => e.flatMap((e) => d.get(e) ?? []), p = (e) => f(e).flatMap(v), m = u({
|
|
206
209
|
ids: c.map($),
|
|
207
|
-
activeId:
|
|
210
|
+
activeId: Fe(c),
|
|
208
211
|
toMenuRows: (e) => p(e).map((e) => ({
|
|
209
212
|
label: l(e.label),
|
|
210
213
|
disabled: e.href == null
|
|
211
214
|
}))
|
|
212
215
|
}), { menu: h } = m, g = f(m.visibleIds), _ = p(m.overflowIds);
|
|
213
216
|
function v(e) {
|
|
214
|
-
if (!
|
|
217
|
+
if (!Pe(e)) {
|
|
215
218
|
let t = e.props;
|
|
216
219
|
return [{
|
|
217
220
|
id: $(e),
|
|
@@ -222,8 +225,8 @@ function Fe({ children: t, "aria-label": r = "Primary", delay: i = 100, closeDel
|
|
|
222
225
|
}
|
|
223
226
|
let t = [];
|
|
224
227
|
function n(e) {
|
|
225
|
-
|
|
226
|
-
if (!
|
|
228
|
+
K.forEach(e, (e) => {
|
|
229
|
+
if (!q(e)) return;
|
|
227
230
|
let r = e.props;
|
|
228
231
|
if (typeof r.href == "string" && r.label == null) {
|
|
229
232
|
t.push({
|
|
@@ -238,37 +241,37 @@ function Fe({ children: t, "aria-label": r = "Primary", delay: i = 100, closeDel
|
|
|
238
241
|
}
|
|
239
242
|
return n(e.props.children), t.length === 0 && t.push({
|
|
240
243
|
id: $(e),
|
|
241
|
-
label:
|
|
244
|
+
label: Ne(e)
|
|
242
245
|
}), t;
|
|
243
246
|
}
|
|
244
|
-
return /* @__PURE__ */
|
|
247
|
+
return /* @__PURE__ */ Z("div", {
|
|
245
248
|
...m.rowProps,
|
|
246
|
-
className:
|
|
249
|
+
className: x,
|
|
247
250
|
children: [
|
|
248
|
-
/* @__PURE__ */
|
|
251
|
+
/* @__PURE__ */ Z(Q.Root, {
|
|
249
252
|
"aria-label": r,
|
|
250
253
|
delay: i,
|
|
251
254
|
closeDelay: o,
|
|
252
|
-
className:
|
|
255
|
+
className: z,
|
|
253
256
|
onValueChange: (e) => s?.setMenuOpen(e != null),
|
|
254
|
-
children: [/* @__PURE__ */
|
|
255
|
-
className:
|
|
257
|
+
children: [/* @__PURE__ */ X(Q.List, {
|
|
258
|
+
className: b,
|
|
256
259
|
children: g
|
|
257
|
-
}), /* @__PURE__ */
|
|
260
|
+
}), /* @__PURE__ */ Z(Q.Portal, { children: [/* @__PURE__ */ X(Q.Backdrop, { className: T }), /* @__PURE__ */ X(Q.Positioner, {
|
|
258
261
|
anchor: s?.anchorRef,
|
|
259
262
|
positionMethod: "fixed",
|
|
260
263
|
side: "bottom",
|
|
261
264
|
align: "center",
|
|
262
265
|
sideOffset: 8,
|
|
263
266
|
collisionPadding: 8,
|
|
264
|
-
className:
|
|
265
|
-
children: /* @__PURE__ */
|
|
266
|
-
className:
|
|
267
|
-
children: /* @__PURE__ */
|
|
267
|
+
className: k,
|
|
268
|
+
children: /* @__PURE__ */ X(Q.Popup, {
|
|
269
|
+
className: ne,
|
|
270
|
+
children: /* @__PURE__ */ X(Q.Viewport, { className: F })
|
|
268
271
|
})
|
|
269
272
|
})] })]
|
|
270
273
|
}),
|
|
271
|
-
m.overflowIds.length > 0 ? /* @__PURE__ */
|
|
274
|
+
m.overflowIds.length > 0 ? /* @__PURE__ */ X(n, {
|
|
272
275
|
ref: m.moreRef,
|
|
273
276
|
role: "ghost",
|
|
274
277
|
size: "sm",
|
|
@@ -276,55 +279,55 @@ function Fe({ children: t, "aria-label": r = "Primary", delay: i = 100, closeDel
|
|
|
276
279
|
"aria-expanded": h.open,
|
|
277
280
|
"aria-controls": h.triggerProps["aria-controls"],
|
|
278
281
|
"data-state": h.open ? "open" : "closed",
|
|
279
|
-
className:
|
|
282
|
+
className: R,
|
|
280
283
|
onClick: h.toggle,
|
|
281
|
-
children: /* @__PURE__ */
|
|
282
|
-
className:
|
|
283
|
-
children: ["More", /* @__PURE__ */
|
|
284
|
-
className:
|
|
284
|
+
children: /* @__PURE__ */ Z("span", {
|
|
285
|
+
className: G,
|
|
286
|
+
children: ["More", /* @__PURE__ */ X("span", {
|
|
287
|
+
className: L,
|
|
285
288
|
"data-state": h.open ? "open" : "closed",
|
|
286
|
-
children: /* @__PURE__ */ Y
|
|
289
|
+
children: /* @__PURE__ */ X(Y, {
|
|
287
290
|
strokeWidth: 2,
|
|
288
291
|
"aria-hidden": !0
|
|
289
292
|
})
|
|
290
293
|
})]
|
|
291
294
|
})
|
|
292
295
|
}) : null,
|
|
293
|
-
/* @__PURE__ */
|
|
294
|
-
className:
|
|
296
|
+
/* @__PURE__ */ Z("div", {
|
|
297
|
+
className: w,
|
|
295
298
|
"aria-hidden": !0,
|
|
296
299
|
children: [c.map((t) => {
|
|
297
|
-
let n = $(t), r =
|
|
298
|
-
return /* @__PURE__ */
|
|
300
|
+
let n = $(t), r = Ne(t), i = Pe(t);
|
|
301
|
+
return /* @__PURE__ */ Z("span", {
|
|
299
302
|
ref: m.measureRef(n),
|
|
300
|
-
className: e(
|
|
301
|
-
children: [r, i ? /* @__PURE__ */ Y
|
|
303
|
+
className: e(S, i ? U : y),
|
|
304
|
+
children: [r, i ? /* @__PURE__ */ X(Y, {
|
|
302
305
|
className: "ml-1 size-3.5",
|
|
303
306
|
strokeWidth: 2
|
|
304
307
|
}) : null]
|
|
305
308
|
}, n);
|
|
306
|
-
}), /* @__PURE__ */
|
|
309
|
+
}), /* @__PURE__ */ Z("span", {
|
|
307
310
|
ref: m.moreMeasureRef,
|
|
308
|
-
className: e(
|
|
309
|
-
children: ["More", /* @__PURE__ */ Y
|
|
311
|
+
className: e(R, C),
|
|
312
|
+
children: ["More", /* @__PURE__ */ X(Y, {
|
|
310
313
|
className: "size-3.5",
|
|
311
314
|
strokeWidth: 2
|
|
312
315
|
})]
|
|
313
316
|
})]
|
|
314
317
|
}),
|
|
315
|
-
h.open && h.menuStyle != null ?
|
|
318
|
+
h.open && h.menuStyle != null ? Ee(/* @__PURE__ */ X(a.Menu, {
|
|
316
319
|
...h.menuProps,
|
|
317
320
|
role: "menu",
|
|
318
321
|
"aria-label": `${r} overflow`,
|
|
319
|
-
children: _.map((e, t) => /* @__PURE__ */
|
|
322
|
+
children: _.map((e, t) => /* @__PURE__ */ X("li", {
|
|
320
323
|
role: "presentation",
|
|
321
|
-
children: /* @__PURE__ */
|
|
324
|
+
children: /* @__PURE__ */ X(a.Item, {
|
|
322
325
|
...h.rowProps(t),
|
|
323
326
|
role: "menuitem",
|
|
324
327
|
truncate: !1,
|
|
325
328
|
selected: !!e.current,
|
|
326
329
|
disabled: e.href == null,
|
|
327
|
-
render: e.href == null ? void 0 : /* @__PURE__ */
|
|
330
|
+
render: e.href == null ? void 0 : /* @__PURE__ */ X("a", {
|
|
328
331
|
href: e.href,
|
|
329
332
|
"aria-current": e.current ? "page" : void 0
|
|
330
333
|
}),
|
|
@@ -336,122 +339,123 @@ function Fe({ children: t, "aria-label": r = "Primary", delay: i = 100, closeDel
|
|
|
336
339
|
]
|
|
337
340
|
});
|
|
338
341
|
}
|
|
339
|
-
function
|
|
340
|
-
return /* @__PURE__ */
|
|
342
|
+
function Le({ href: e, children: t, current: r = !1, value: i }) {
|
|
343
|
+
return /* @__PURE__ */ X(Q.Item, {
|
|
341
344
|
value: i ?? e,
|
|
342
|
-
children: /* @__PURE__ */
|
|
345
|
+
children: /* @__PURE__ */ X(Q.Link, {
|
|
343
346
|
href: e,
|
|
344
347
|
active: r,
|
|
345
348
|
"aria-current": r ? "page" : void 0,
|
|
346
|
-
render: /* @__PURE__ */
|
|
349
|
+
render: /* @__PURE__ */ X(n, {
|
|
347
350
|
role: "ghost",
|
|
348
351
|
size: "sm",
|
|
349
|
-
render: /* @__PURE__ */
|
|
350
|
-
className:
|
|
352
|
+
render: /* @__PURE__ */ X("a", {}),
|
|
353
|
+
className: y,
|
|
351
354
|
children: t
|
|
352
355
|
})
|
|
353
356
|
})
|
|
354
357
|
});
|
|
355
358
|
}
|
|
356
|
-
function
|
|
359
|
+
function Re({ label: e, children: t, value: r }) {
|
|
357
360
|
let i = r ?? (typeof e == "string" ? e : void 0);
|
|
358
|
-
return /* @__PURE__ */
|
|
361
|
+
return /* @__PURE__ */ Z(Q.Item, {
|
|
359
362
|
value: i,
|
|
360
|
-
children: [/* @__PURE__ */
|
|
363
|
+
children: [/* @__PURE__ */ X(Q.Trigger, { render: /* @__PURE__ */ X(n, {
|
|
361
364
|
role: "ghost",
|
|
362
365
|
size: "sm",
|
|
363
|
-
className:
|
|
364
|
-
children: /* @__PURE__ */
|
|
365
|
-
className:
|
|
366
|
-
children: [e, /* @__PURE__ */
|
|
367
|
-
className:
|
|
368
|
-
children: /* @__PURE__ */ Y
|
|
366
|
+
className: U,
|
|
367
|
+
children: /* @__PURE__ */ Z("span", {
|
|
368
|
+
className: G,
|
|
369
|
+
children: [e, /* @__PURE__ */ X(Q.Icon, {
|
|
370
|
+
className: W,
|
|
371
|
+
children: /* @__PURE__ */ X(Y, {
|
|
369
372
|
strokeWidth: 2,
|
|
370
373
|
"aria-hidden": !0
|
|
371
374
|
})
|
|
372
375
|
})]
|
|
373
376
|
})
|
|
374
|
-
}) }), /* @__PURE__ */
|
|
375
|
-
className:
|
|
377
|
+
}) }), /* @__PURE__ */ X(Q.Content, {
|
|
378
|
+
className: E,
|
|
376
379
|
children: t
|
|
377
380
|
})]
|
|
378
381
|
});
|
|
379
382
|
}
|
|
380
|
-
function
|
|
381
|
-
return /* @__PURE__ */
|
|
382
|
-
className: e(
|
|
383
|
-
children: [t == null ? null : /* @__PURE__ */
|
|
384
|
-
className:
|
|
383
|
+
function ze({ label: t, span: n = 1, children: r }) {
|
|
384
|
+
return /* @__PURE__ */ Z("section", {
|
|
385
|
+
className: e(M, P[n]),
|
|
386
|
+
children: [t == null ? null : /* @__PURE__ */ X("h3", {
|
|
387
|
+
className: N,
|
|
385
388
|
children: t
|
|
386
389
|
}), r]
|
|
387
390
|
});
|
|
388
391
|
}
|
|
389
|
-
function
|
|
390
|
-
|
|
392
|
+
function Be({ href: e, children: t, icon: r, external: i = !1, newTab: a = !1, size: o = "sm" }) {
|
|
393
|
+
let s = i && a;
|
|
394
|
+
return /* @__PURE__ */ X(Q.Link, {
|
|
391
395
|
href: e,
|
|
392
|
-
target:
|
|
393
|
-
rel:
|
|
394
|
-
render: /* @__PURE__ */
|
|
396
|
+
target: s ? "_blank" : void 0,
|
|
397
|
+
rel: s ? "noopener noreferrer" : void 0,
|
|
398
|
+
render: /* @__PURE__ */ Z(n, {
|
|
395
399
|
role: "ghost",
|
|
396
|
-
size:
|
|
397
|
-
render: /* @__PURE__ */
|
|
398
|
-
className:
|
|
400
|
+
size: o,
|
|
401
|
+
render: /* @__PURE__ */ X("a", {}),
|
|
402
|
+
className: D,
|
|
399
403
|
icon: r,
|
|
400
|
-
children: [t,
|
|
404
|
+
children: [t, s ? /* @__PURE__ */ X("span", {
|
|
401
405
|
className: "sr-only",
|
|
402
406
|
children: " (opens in a new tab)"
|
|
403
407
|
}) : null]
|
|
404
408
|
})
|
|
405
409
|
});
|
|
406
410
|
}
|
|
407
|
-
function
|
|
408
|
-
return /* @__PURE__ */
|
|
409
|
-
className:
|
|
411
|
+
function Ve({ children: e }) {
|
|
412
|
+
return /* @__PURE__ */ X("div", {
|
|
413
|
+
className: O,
|
|
410
414
|
children: e
|
|
411
415
|
});
|
|
412
416
|
}
|
|
413
|
-
function
|
|
414
|
-
return /* @__PURE__ */
|
|
417
|
+
function He({ label: t, variant: n = "thumb", className: r }) {
|
|
418
|
+
return /* @__PURE__ */ X("div", {
|
|
415
419
|
role: "img",
|
|
416
420
|
"aria-label": t,
|
|
417
|
-
className: e(s, o, n === "featured" ? "aspect-[16/10] w-full" :
|
|
421
|
+
className: e(s, o, n === "featured" ? "aspect-[16/10] w-full" : j, r)
|
|
418
422
|
});
|
|
419
423
|
}
|
|
420
|
-
function
|
|
421
|
-
return /* @__PURE__ */
|
|
424
|
+
function Ue({ media: e, title: t, description: n, href: r, linkLabel: a = "Read now" }) {
|
|
425
|
+
return /* @__PURE__ */ Z("div", {
|
|
422
426
|
className: "flex flex-col gap-1 type-body",
|
|
423
427
|
children: [
|
|
424
428
|
e,
|
|
425
|
-
/* @__PURE__ */
|
|
429
|
+
/* @__PURE__ */ X("h2", {
|
|
426
430
|
className: "type-heading-2 text-fg",
|
|
427
431
|
children: t
|
|
428
432
|
}),
|
|
429
|
-
n == null ? null : /* @__PURE__ */
|
|
433
|
+
n == null ? null : /* @__PURE__ */ X("p", {
|
|
430
434
|
className: "text-muted",
|
|
431
435
|
children: n
|
|
432
436
|
}),
|
|
433
|
-
/* @__PURE__ */
|
|
437
|
+
/* @__PURE__ */ X(i, {
|
|
434
438
|
href: r,
|
|
435
439
|
children: a
|
|
436
440
|
})
|
|
437
441
|
]
|
|
438
442
|
});
|
|
439
443
|
}
|
|
440
|
-
function
|
|
441
|
-
return /* @__PURE__ */
|
|
442
|
-
className:
|
|
443
|
-
children: [e, /* @__PURE__ */
|
|
444
|
+
function We({ media: e, title: t, description: n, href: r, linkLabel: a = "Read now" }) {
|
|
445
|
+
return /* @__PURE__ */ Z("div", {
|
|
446
|
+
className: A,
|
|
447
|
+
children: [e, /* @__PURE__ */ Z("div", {
|
|
444
448
|
className: "flex min-w-0 flex-col gap-1 type-body",
|
|
445
449
|
children: [
|
|
446
|
-
/* @__PURE__ */
|
|
450
|
+
/* @__PURE__ */ X("h3", {
|
|
447
451
|
className: "type-heading-3 text-fg",
|
|
448
452
|
children: t
|
|
449
453
|
}),
|
|
450
|
-
n == null ? null : /* @__PURE__ */
|
|
454
|
+
n == null ? null : /* @__PURE__ */ X("p", {
|
|
451
455
|
className: "text-muted",
|
|
452
456
|
children: n
|
|
453
457
|
}),
|
|
454
|
-
/* @__PURE__ */
|
|
458
|
+
/* @__PURE__ */ X(i, {
|
|
455
459
|
href: r,
|
|
456
460
|
children: a
|
|
457
461
|
})
|
|
@@ -459,28 +463,28 @@ function Ue({ media: e, title: t, description: n, href: r, linkLabel: a = "Read
|
|
|
459
463
|
})]
|
|
460
464
|
});
|
|
461
465
|
}
|
|
462
|
-
function
|
|
463
|
-
return /* @__PURE__ */
|
|
466
|
+
function Ge({ href: e, children: t, current: r = !1 }) {
|
|
467
|
+
return /* @__PURE__ */ X(n, {
|
|
464
468
|
role: "ghost",
|
|
465
469
|
size: "md",
|
|
466
|
-
render: /* @__PURE__ */
|
|
470
|
+
render: /* @__PURE__ */ X("a", { href: e }),
|
|
467
471
|
"aria-current": r ? "page" : void 0,
|
|
468
|
-
className:
|
|
472
|
+
className: I,
|
|
469
473
|
children: t
|
|
470
474
|
});
|
|
471
475
|
}
|
|
472
|
-
var
|
|
473
|
-
Brand:
|
|
474
|
-
Links:
|
|
475
|
-
Link:
|
|
476
|
-
Menu:
|
|
477
|
-
MenuSection:
|
|
478
|
-
MenuLink:
|
|
479
|
-
MenuLinkGrid:
|
|
480
|
-
MenuMedia:
|
|
481
|
-
Featured:
|
|
482
|
-
ReadRow:
|
|
483
|
-
MobileLink:
|
|
476
|
+
var Ke = Object.assign(Ae, {
|
|
477
|
+
Brand: je,
|
|
478
|
+
Links: Ie,
|
|
479
|
+
Link: Le,
|
|
480
|
+
Menu: Re,
|
|
481
|
+
MenuSection: ze,
|
|
482
|
+
MenuLink: Be,
|
|
483
|
+
MenuLinkGrid: Ve,
|
|
484
|
+
MenuMedia: He,
|
|
485
|
+
Featured: Ue,
|
|
486
|
+
ReadRow: We,
|
|
487
|
+
MobileLink: Ge
|
|
484
488
|
});
|
|
485
489
|
//#endregion
|
|
486
|
-
export {
|
|
490
|
+
export { Ke as SiteNav, h as siteNavCompactLayouts, _ as siteNavDefaultCollapseAt, v as siteNavDefaultCollapseRatio, te as siteNavExpandedHeightClasses, A as siteNavMenuReadRowClasses, j as siteNavMenuReadThumbClasses, B as siteNavPlacements, H as siteNavStates };
|