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