quirk-ui 0.1.120 → 0.1.122

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 (77) hide show
  1. package/dist/core/components/NavBar/index.cjs +2 -2
  2. package/dist/core/components/NavBar/index.mjs +36 -36
  3. package/package.json +1 -1
  4. package/dist/AccordionItem.css.d.ts +0 -13
  5. package/dist/CategoryFilters.css.d.ts +0 -31
  6. package/dist/FormField.css.d.ts +0 -27
  7. package/dist/HeroSubComponents.css.d.ts +0 -30
  8. package/dist/NavLink.css.d.ts +0 -76
  9. package/dist/index.css.d.ts +0 -1
  10. package/dist/index10.css.d.ts +0 -10
  11. package/dist/index11.css.d.ts +0 -26
  12. package/dist/index12.css.d.ts +0 -24
  13. package/dist/index13.css.d.ts +0 -33
  14. package/dist/index14.css.d.ts +0 -9
  15. package/dist/index15.css.d.ts +0 -10
  16. package/dist/index16.css.d.ts +0 -18
  17. package/dist/index17.css.d.ts +0 -38
  18. package/dist/index18.css.d.ts +0 -16
  19. package/dist/index19.css.d.ts +0 -14
  20. package/dist/index2.css.d.ts +0 -12
  21. package/dist/index20.css.d.ts +0 -17
  22. package/dist/index21.css.d.ts +0 -13
  23. package/dist/index22.css.d.ts +0 -25
  24. package/dist/index23.css.d.ts +0 -5
  25. package/dist/index24.css.d.ts +0 -19
  26. package/dist/index25.css.d.ts +0 -21
  27. package/dist/index26.css.d.ts +0 -16
  28. package/dist/index27.css.d.ts +0 -10
  29. package/dist/index28.css.d.ts +0 -18
  30. package/dist/index29.css.d.ts +0 -16
  31. package/dist/index3.css.d.ts +0 -10
  32. package/dist/index30.css.d.ts +0 -10
  33. package/dist/index31.css.d.ts +0 -19
  34. package/dist/index32.css.d.ts +0 -15
  35. package/dist/index33.css.d.ts +0 -22
  36. package/dist/index34.css.d.ts +0 -15
  37. package/dist/index35.css.d.ts +0 -14
  38. package/dist/index36.css.d.ts +0 -23
  39. package/dist/index37.css.d.ts +0 -14
  40. package/dist/index38.css.d.ts +0 -18
  41. package/dist/index39.css.d.ts +0 -21
  42. package/dist/index4.css.d.ts +0 -22
  43. package/dist/index40.css.d.ts +0 -20
  44. package/dist/index41.css.d.ts +0 -17
  45. package/dist/index42.css.d.ts +0 -14
  46. package/dist/index43.css.d.ts +0 -22
  47. package/dist/index44.css.d.ts +0 -8
  48. package/dist/index45.css.d.ts +0 -35
  49. package/dist/index46.css.d.ts +0 -13
  50. package/dist/index47.css.d.ts +0 -23
  51. package/dist/index48.css.d.ts +0 -12
  52. package/dist/index49.css.d.ts +0 -19
  53. package/dist/index5.css.d.ts +0 -19
  54. package/dist/index50.css.d.ts +0 -20
  55. package/dist/index51.css.d.ts +0 -20
  56. package/dist/index52.css.d.ts +0 -27
  57. package/dist/index53.css.d.ts +0 -17
  58. package/dist/index54.css.d.ts +0 -11
  59. package/dist/index55.css.d.ts +0 -12
  60. package/dist/index56.css.d.ts +0 -14
  61. package/dist/index57.css.d.ts +0 -20
  62. package/dist/index58.css.d.ts +0 -24
  63. package/dist/index59.css.d.ts +0 -13
  64. package/dist/index6.css.d.ts +0 -40
  65. package/dist/index60.css.d.ts +0 -12
  66. package/dist/index61.css.d.ts +0 -20
  67. package/dist/index62.css.d.ts +0 -20
  68. package/dist/index63.css.d.ts +0 -18
  69. package/dist/index64.css.d.ts +0 -22
  70. package/dist/index65.css.d.ts +0 -28
  71. package/dist/index66.css.d.ts +0 -26
  72. package/dist/index67.css.d.ts +0 -19
  73. package/dist/index7.css.d.ts +0 -32
  74. package/dist/index8.css.d.ts +0 -9
  75. package/dist/index9.css.d.ts +0 -7
  76. package/dist/styles.css.d.ts +0 -1
  77. package/dist/tokens.css.d.ts +0 -1
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),t=require("react"),ae=require("../Modal/index.cjs"),A=require("../../../index-CAS0iFfs.cjs"),ie=require("../ButtonGroup/index.cjs"),e=require("../../../NavLink-C6hwDViT.cjs"),V=require("../../utils/NoScroll/noScroll.cjs"),Ee=require("../../../chevron-right-motlyADs.cjs"),H=require("../../../external-link-DDShu-48.cjs"),_e=require("../../../x-Dft9NVe_.cjs"),re=require("../../../createLucideIcon-DpotSgUx.cjs"),Le=require("../../../chevron-down-DfK1XBl3.cjs");/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),t=require("react"),ae=require("../Modal/index.cjs"),A=require("../../../index-CAS0iFfs.cjs"),ie=require("../ButtonGroup/index.cjs"),e=require("../../../NavLink-C6hwDViT.cjs"),K=require("../../utils/NoScroll/noScroll.cjs"),Ee=require("../../../chevron-right-motlyADs.cjs"),V=require("../../../external-link-DDShu-48.cjs"),_e=require("../../../x-Dft9NVe_.cjs"),re=require("../../../createLucideIcon-DpotSgUx.cjs"),Le=require("../../../chevron-down-DfK1XBl3.cjs");/**
2
2
  * @license lucide-react v0.488.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -8,4 +8,4 @@
8
8
  *
9
9
  * This source code is licensed under the ISC license.
10
10
  * See the LICENSE file in the root directory of this source tree.
11
- */const Re=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],Be=re.createLucideIcon("search",Re),ze={standard:e.styles.standard,transparent:e.styles.transparent},qe={left:e.styles.left,center:e.styles.center,right:e.styles.right},Ae=({spotlight:r,renderText:x})=>{var h,_,p,g,N,L;const o=r.callToAction;if(!o)return null;const k=((h=o.linkOptions)==null?void 0:h.linkType)==="external";let y="#";return k&&((_=o.linkOptions)!=null&&_.externalUrl)?y=o.linkOptions.externalUrl:((p=o.linkOptions)==null?void 0:p.linkType)==="internal"&&((N=(g=o.linkOptions)==null?void 0:g.internalUrl)!=null&&N.slug.current)&&(y=`/${o.linkOptions.internalUrl.slug.current}`),s.jsxs("div",{className:e.styles.spotlight,children:[r.image&&s.jsx("div",{className:e.styles.imageWrapper,children:s.jsx("img",{src:((L=r.image.imageUrls)==null?void 0:L.medium)??"",alt:r.image.asset.altText||r.image.asset.description||"Content image",width:600,height:400})}),s.jsxs("div",{className:e.styles.content,children:[r.title&&s.jsx("div",{className:e.styles.title,children:x==null?void 0:x(r.title,e.styles.title)}),r.description&&s.jsx("div",{className:e.styles.description,children:x==null?void 0:x(r.description,e.styles.description)})]}),o.linkOptions&&s.jsx("div",{className:e.styles.actions,children:s.jsx(A.Button,{as:"a",variant:o.variant??"primary",href:y,target:k?"_blank":"_self",rel:k?"noopener noreferrer":void 0,"aria-label":o.ariaLabel||o.label,children:o.label})})]})};function Oe({renderText:r,title:x,logo:o,items:k,groups:y,utilityItems:h,isSticky:_=!1,showSearch:p=!0,showLocaleSelect:g=!0,showThemeToggle:N=!0,themeToggleComponent:L,alignment:O="right",variant:X="standard",navigationType:M="default",searchComponent:ce,localeSelectComponent:oe,className:de,style:ue,...ye}){const[m,Y]=t.useState(!1),[J,v]=t.useState(null),[he,me]=t.useState(0),[fe,be]=t.useState(!1),[D,xe]=t.useState(!1),[pe,ve]=t.useState(null),[d,w]=t.useState([]),[I,W]=t.useState(0),[je,Q]=t.useState(null),[S,ke]=t.useState(!1),[R,B]=t.useState("forward"),F=t.useRef(null),j=t.useRef(null),T=t.useRef(null),U=t.useRef(new Map),Z=()=>s.jsx("div",{className:`${e.styles.linkWrapper} ${e.styles.parent}`,role:"presentation",children:s.jsx("div",{className:`${e.styles.linkItem} ${e.styles.themeToggle}`,role:"presentation",children:L})}),G=()=>s.jsx("div",{className:`${e.styles.linkWrapper} ${e.styles.parent} ${e.styles.searchWrapper}`,children:s.jsx("div",{className:e.styles.linkItem,children:s.jsx(ae.Modal,{size:"lg",className:e.styles.searchModal,trigger:s.jsx("button",{title:"Search","aria-label":"Search",className:e.styles.search,children:s.jsx(Be,{size:16,"aria-hidden":"true"})}),content:ce})})}),ee=()=>s.jsx("div",{className:`${e.styles.linkWrapper} ${e.styles.parent}`,children:s.jsx("div",{className:e.styles.linkItem,children:s.jsx(ae.Modal,{className:e.styles.localeModal,trigger:s.jsx("button",{title:"Locale Select","aria-label":"Locale Select",className:e.styles.locale,children:s.jsx(Ie,{size:16,"aria-hidden":"true"})}),content:oe})})}),z=t.useCallback(()=>{j.current&&me(j.current.getBoundingClientRect().width)},[]),se=()=>{Y(n=>{const l=!n;return l||(w([]),B("forward"),v(null)),l})},ne=t.useCallback(n=>{const l=U.current.get(n);if(l&&j.current){const c=l.getBoundingClientRect(),i=j.current.getBoundingClientRect();ve(c.left-i.left+c.width/2)}},[]),ge=t.useCallback(n=>{v(l=>l===n?null:n)},[]),P=t.useCallback(n=>{F.current&&!F.current.contains(n.target)&&v(null)},[]),K=t.useCallback(()=>{z(),typeof window<"u"&&window.innerWidth>768&&(Y(!1),v(null))},[z]),Ne=()=>w([]),$e=n=>{B("forward"),w([{title:n.title,primary:n.primaryItems??[],secondary:n.secondaryItems??[],description:""}])},le=n=>{B("forward"),w(l=>[...l,{title:n.label,primary:n.sublinks??[],secondary:[],description:n.description}])},we=()=>{B("backward"),w(n=>n.slice(0,-1))};t.useEffect(()=>{if(typeof window>"u")return;const n=()=>ke(window.innerWidth<768);return n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[]),t.useEffect(()=>{if(typeof window>"u")return;const n=()=>xe(window.scrollY>10);return n(),window.addEventListener("scroll",n,{passive:!0}),()=>window.removeEventListener("scroll",n)},[]),t.useEffect(()=>{const n=typeof window<"u",l=typeof document<"u";return n&&window.addEventListener("resize",K),l&&document.addEventListener("click",P),z(),be(!0),()=>{n&&window.removeEventListener("resize",K),l&&document.removeEventListener("click",P)}},[K,P,z]),t.useEffect(()=>{if(!(typeof document>"u"))return m?setTimeout(()=>V.lockScroll(),0):V.unlockScroll(),()=>V.unlockScroll()},[m]),t.useEffect(()=>{var c;if(!m)return;if(typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(pointer: fine)").matches){const i=(c=j.current)==null?void 0:c.querySelector('a[href], button:not([disabled]), input, select, textarea, [tabindex]:not([tabindex="-1"])');i==null||i.focus()}const l=i=>{var E;if(i.key==="Escape"){se(),(E=T.current)==null||E.focus();return}if(i.key!=="Tab"||!j.current)return;const b=Array.from(j.current.querySelectorAll('a[href], button:not([disabled]), input, select, textarea, [tabindex]:not([tabindex="-1"])')).filter(a=>!a.closest("[aria-hidden=true]"));if(b.length===0)return;const f=b[0],C=b[b.length-1];i.shiftKey?document.activeElement===f&&(i.preventDefault(),C.focus()):document.activeElement===C&&(i.preventDefault(),f.focus())};return document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)},[m]);const q=(n,l="")=>n.map((c,i)=>{const b=`${l}/${c._key??c.label}-${i}`;return s.jsx(e.NavLink,{link:c,path:b,parentPath:l,openPath:J,togglePath:ge,updateTriangleIndicator:ne,setOpenPath:v,renderLinks:q,buttonRefs:U},b)}),Se=n=>n.map((l,c)=>{var C,E;const i=`group-${c}`,b=je===c,f=(C=l.primaryItems)==null?void 0:C[I??0];return s.jsxs("div",{className:`${e.styles.linkWrapper} ${e.styles.parent}`,onMouseEnter:()=>{Q(c),v(i),ne(i)},children:[s.jsx("div",{className:e.styles.linkItem,children:s.jsxs("button",{ref:a=>{U.current.set(i,a)},"aria-haspopup":!0,"aria-expanded":b,"aria-controls":`submenu-${c}`,className:`${e.styles.sublinkToggle} ${b?e.styles.open:""}`,children:[l.title,s.jsx(Le.ChevronDown,{size:18,className:e.styles.chevron,"aria-hidden":"true"})]})}),s.jsx("div",{id:`submenu-${c}`,className:`${e.styles.sublinks} ${b?e.styles.show:""}`,role:"menu","aria-label":`${l.title} submenu`,onMouseLeave:()=>{Q(null),W(0),v(null)},children:s.jsx("div",{children:s.jsxs("div",{className:`${e.styles.sublinksInner} ${l.spotlight?e.styles.withSpotlight:e.styles.withoutSpotlight}`,children:[s.jsxs("div",{className:`${e.styles.sublinksColumn} ${e.styles.primaryColumn}`,children:[s.jsx("div",{className:e.styles.linkItem}),(E=l.primaryItems)==null?void 0:E.map((a,$)=>a.href?s.jsx("div",{role:"menuitem",children:s.jsxs("a",{href:a.href,className:`${e.styles.link} ${I===$?e.styles.open:""}`,target:a.isExternal?"_blank":"_self",rel:a.isExternal?"noopener noreferrer":void 0,onClick:()=>{var te;v(null),(te=a.onClick)==null||te.call(a)},onMouseEnter:()=>W($),children:[s.jsxs("span",{className:e.styles.linkContent,children:[a.label,a.subtitle&&s.jsx("span",{className:e.styles.subtitle,children:a.subtitle})]}),a.isExternal&&s.jsx(H.ExternalLink,{className:e.styles.newTabIcon,size:16,"aria-hidden":"true"})]})},a._key??$):s.jsx("div",{role:"menuitem",children:s.jsx("button",{className:`${e.styles.sublinkToggle} ${I===$?e.styles.open:""}`,onMouseEnter:()=>W($),children:s.jsxs("span",{className:e.styles.linkContent,children:[a.label,a.subtitle&&s.jsx("span",{className:e.styles.subtitle,children:a.subtitle})]})})},a._key??$))]}),(f==null?void 0:f.sublinks)&&f.sublinks.length>0&&s.jsxs("div",{className:`${e.styles.sublinksColumn} ${e.styles.fadeInFromLeft}`,children:[f.description&&s.jsx("div",{className:e.styles.sublinksDescription,children:r==null?void 0:r(f.description)}),q(f.sublinks,`${i}-${I}`)]},`${f.label}-${f.sublinks.length}`),l.secondaryItems&&l.secondaryItems.length>0&&s.jsx("div",{className:`${e.styles.sublinksColumn} ${e.styles.secondaryColumn}`,children:q(l.secondaryItems,`${i}-secondary`)}),l.spotlight&&s.jsx("div",{className:`${e.styles.sublinksColumn} ${e.styles.spotlightColumn}`,children:s.jsx(Ae,{spotlight:l.spotlight,renderText:r})})]})})})]},l._key??`group-${c}`)}),Ce=[e.styles.navbar,qe[O],ze[X],_?e.styles.sticky:"",D?e.styles.scrolled:"",y!=null&&y.length?e.styles.advanced:e.styles.default,de??""].filter(Boolean).join(" "),u=h&&h.length>0?h[Math.min(1,h.length-1)]:null;return s.jsx("header",{ref:F,className:Ce,style:ue,"aria-label":"Site header",...ye,children:s.jsxs("div",{className:`${e.styles.container} ${(!h||h.length===0)&&O!=="center"?e.styles.twoColumn:""}`,children:[o?s.jsx("div",{className:e.styles.logo,children:o}):x?s.jsx("div",{className:e.styles.title,children:x}):null,s.jsx("nav",{ref:j,style:{left:O==="center"?`calc(50% - ${he/2}px)`:"0"},"aria-modal":m?"true":void 0,className:`${e.styles.nav} ${m?e.styles.open:""} ${fe?e.styles.visible:e.styles.hidden}`,id:"main-menu","aria-label":"Primary navigation",children:s.jsxs("div",{className:e.styles.navInner,children:[s.jsx("svg",{style:{left:`${pe}px`},className:`${e.styles.triangle} ${J?e.styles.show:""}`,width:16,height:12,viewBox:"0 0 100 75",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:s.jsx("polygon",{points:"50,5 95,70 5,70",strokeLinejoin:"round",fill:"white",stroke:"white"})}),M==="default"&&k&&s.jsxs("div",{className:e.styles.grid,children:[k.length>0&&s.jsx("div",{role:"menubar",className:e.styles.menubar,children:q(k)}),(p||g||N)&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:e.styles.separator,"aria-hidden":"true"}),s.jsxs("div",{role:"toolbar","aria-label":"Site controls",className:e.styles.toolbar,children:[N&&s.jsx(Z,{}),p&&!S&&s.jsx(G,{}),g&&s.jsx(ee,{})]})]})]}),!S&&M==="advanced"&&y&&s.jsxs("div",{className:e.styles.grid,children:[y.length>0&&s.jsx("div",{role:"menubar",className:e.styles.menubar,children:Se(y)}),(p||g||N)&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:e.styles.separator,"aria-hidden":"true"}),s.jsxs("div",{role:"toolbar","aria-label":"Site controls",className:e.styles.toolbar,children:[N&&s.jsx(Z,{}),p&&s.jsx(G,{}),g&&s.jsx(ee,{})]})]})]}),S&&M==="advanced"&&m&&d.length===0&&y&&s.jsx("div",{className:e.styles.mobileMenu,children:y.map((n,l)=>s.jsx("div",{className:`${e.styles.mobileMenuItem} ${R==="forward"?e.styles.fadeInFromLeft:e.styles.fadeInFromRight}`,children:s.jsx("button",{className:e.styles.sublinkToggle,onClick:()=>$e(n),children:n.title})},n._key??l))}),S&&M==="advanced"&&m&&d.length>0&&s.jsxs("div",{className:e.styles.mobileMenuSlide,children:[s.jsx("button",{className:e.styles.back,"aria-label":"Go back",onClick:d.length===1?Ne:we,children:s.jsx(Ee.ChevronLeft,{size:18,"aria-hidden":"true"})}),d[d.length-1].description&&s.jsx("div",{className:`${e.styles.sublinksDescription} ${R==="forward"?e.styles.fadeInFromLeft:e.styles.fadeInFromRight}`,children:r==null?void 0:r(d[d.length-1].description)}),d[d.length-1].primary.map((n,l)=>s.jsx("div",{role:"menuitem",className:`${e.styles.mobileMenuItem} ${R==="forward"?e.styles.fadeInFromLeft:e.styles.fadeInFromRight}`,children:n.sublinks?s.jsx("button",{className:e.styles.sublinkToggle,onClick:()=>le(n),children:s.jsxs("span",{className:e.styles.linkContent,children:[n.label,n.subtitle&&s.jsx("span",{className:e.styles.subtitle,children:n.subtitle})]})}):s.jsxs("a",{href:n.href,className:e.styles.link,target:n.isExternal?"_blank":"_self",rel:n.isExternal?"noopener noreferrer":void 0,children:[s.jsxs("span",{className:e.styles.linkContent,children:[n.label,n.subtitle&&s.jsx("span",{className:e.styles.subtitle,children:n.subtitle})]}),n.isExternal&&s.jsx(H.ExternalLink,{className:e.styles.newTabIcon,size:16,"aria-hidden":"true"})]})},n._key??`primary-${l}`)),d[d.length-1].secondary.length>0&&s.jsx("hr",{className:e.styles.groupDivider}),d[d.length-1].secondary.map((n,l)=>s.jsx("div",{role:"menuitem",className:`${e.styles.mobileMenuItem} ${R==="forward"?e.styles.fadeInFromLeft:e.styles.fadeInFromRight}`,children:n.sublinks?s.jsx("button",{className:e.styles.sublinkToggle,onClick:()=>le(n),children:n.label}):s.jsxs("a",{href:n.href,className:e.styles.link,target:n.isExternal?"_blank":"_self",rel:n.isExternal?"noopener noreferrer":void 0,children:[n.label,n.isExternal&&s.jsx(H.ExternalLink,{className:e.styles.newTabIcon,size:16,"aria-hidden":"true"})]})},n._key??`secondary-${l}`))]},`stack-${d.length}`)]})}),h&&h.length>0&&s.jsx("nav",{className:e.styles.utility,"data-scrolled":D,"aria-label":"Utility navigation",children:s.jsx(ie.ButtonGroup,{spacing:"sm",children:h.map((n,l)=>s.jsx(A.Button,{as:"a",size:"sm",href:n.href??"/",variant:n.variant??"primary",displayType:n.displayType??"text",imageSrc:n.imageSrc,imageAlt:n.imageAlt,"aria-label":n.ariaLabel,icon:n.icon,iconAlignment:n.iconAlignment,className:X=="transparent"&&n.variant==="link"&&D?e.styles.utilityScrolled:e.styles.utilityDefault,children:n.imageSrc?s.jsx("img",{src:n.imageSrc,alt:n.imageAlt??n.ariaLabel}):n.label},n._key??l))})}),u&&s.jsx("nav",{"aria-label":"Utility navigation",className:`${e.styles.utilityMobile} ${m?e.styles.open:""}`,children:s.jsx(ie.ButtonGroup,{alignment:"center",children:s.jsx(A.Button,{as:"a",size:"sm",href:u.href??"/",variant:u.variant??"primary",displayType:u.displayType??"text",imageSrc:u.imageSrc,imageAlt:u.imageAlt,"aria-label":u.ariaLabel,icon:u.icon,iconAlignment:u.iconAlignment,children:u.imageSrc?s.jsx("img",{src:u.imageSrc,alt:u.imageAlt??u.ariaLabel}):u.label})})}),s.jsxs("div",{className:e.styles.mobileButtons,children:[S&&p&&s.jsx(G,{}),s.jsx("button",{ref:T,className:e.styles.menuToggle,onClick:se,"aria-label":m?"Close menu":"Open menu","aria-expanded":m,"aria-controls":"main-menu",children:m?s.jsx(_e.X,{size:24,"aria-hidden":"true"}):s.jsx(A.Menu,{size:24,"aria-hidden":"true"})})]})]})})}exports.Navbar=Oe;
11
+ */const Re=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],Be=re.createLucideIcon("search",Re),ze={standard:e.styles.standard,transparent:e.styles.transparent},qe={left:e.styles.left,center:e.styles.center,right:e.styles.right},Ae=({spotlight:r,renderText:x})=>{var h,_,p,g,N,L;const o=r.callToAction;if(!o)return null;const k=((h=o.linkOptions)==null?void 0:h.linkType)==="external";let y="#";return k&&((_=o.linkOptions)!=null&&_.externalUrl)?y=o.linkOptions.externalUrl:((p=o.linkOptions)==null?void 0:p.linkType)==="internal"&&((N=(g=o.linkOptions)==null?void 0:g.internalUrl)!=null&&N.slug.current)&&(y=`/${o.linkOptions.internalUrl.slug.current}`),s.jsxs("div",{className:e.styles.spotlight,children:[r.image&&s.jsx("div",{className:e.styles.imageWrapper,children:s.jsx("img",{src:((L=r.image.imageUrls)==null?void 0:L.medium)??"",alt:r.image.asset.altText||r.image.asset.description||"Content image",width:600,height:400})}),s.jsxs("div",{className:e.styles.content,children:[r.title&&s.jsx("div",{className:e.styles.title,children:x==null?void 0:x(r.title,e.styles.title)}),r.description&&s.jsx("div",{className:e.styles.description,children:x==null?void 0:x(r.description,e.styles.description)})]}),o.linkOptions&&s.jsx("div",{className:e.styles.actions,children:s.jsx(A.Button,{as:"a",variant:o.variant??"primary",href:y,target:k?"_blank":"_self",rel:k?"noopener noreferrer":void 0,"aria-label":o.ariaLabel||o.label,children:o.label})})]})};function Oe({renderText:r,title:x,logo:o,items:k,groups:y,utilityItems:h,isSticky:_=!1,showSearch:p=!0,showLocaleSelect:g=!0,showThemeToggle:N=!0,themeToggleComponent:L,alignment:O="right",variant:H="standard",navigationType:M="default",searchComponent:ce,localeSelectComponent:oe,className:de,style:ue,...ye}){const[m,X]=t.useState(!1),[Y,v]=t.useState(null),[he,me]=t.useState(0),[fe,be]=t.useState(!1),[J,xe]=t.useState(!1),[pe,ve]=t.useState(null),[d,w]=t.useState([]),[I,D]=t.useState(0),[je,Q]=t.useState(null),[S,ke]=t.useState(!1),[R,B]=t.useState("forward"),W=t.useRef(null),j=t.useRef(null),T=t.useRef(null),F=t.useRef(new Map),Z=()=>s.jsx("div",{className:`${e.styles.linkWrapper} ${e.styles.parent}`,role:"presentation",children:s.jsx("div",{className:`${e.styles.linkItem} ${e.styles.themeToggle}`,role:"presentation",children:L})}),U=()=>s.jsx("div",{className:`${e.styles.linkWrapper} ${e.styles.parent} ${e.styles.searchWrapper}`,children:s.jsx("div",{className:e.styles.linkItem,children:s.jsx(ae.Modal,{size:"lg",className:e.styles.searchModal,trigger:s.jsx("button",{title:"Search","aria-label":"Search",className:e.styles.search,children:s.jsx(Be,{size:16,"aria-hidden":"true"})}),content:ce})})}),ee=()=>s.jsx("div",{className:`${e.styles.linkWrapper} ${e.styles.parent}`,children:s.jsx("div",{className:e.styles.linkItem,children:s.jsx(ae.Modal,{className:e.styles.localeModal,trigger:s.jsx("button",{title:"Locale Select","aria-label":"Locale Select",className:e.styles.locale,children:s.jsx(Ie,{size:16,"aria-hidden":"true"})}),content:oe})})}),z=t.useCallback(()=>{j.current&&me(j.current.getBoundingClientRect().width)},[]),se=()=>{X(n=>{const l=!n;return l||(w([]),B("forward"),v(null)),l})},ne=t.useCallback(n=>{const l=F.current.get(n);if(l&&j.current){const c=l.getBoundingClientRect(),i=j.current.getBoundingClientRect();ve(c.left-i.left+c.width/2)}},[]),ge=t.useCallback(n=>{v(l=>l===n?null:n)},[]),G=t.useCallback(n=>{W.current&&!W.current.contains(n.target)&&v(null)},[]),P=t.useCallback(()=>{z(),typeof window<"u"&&window.innerWidth>768&&(X(!1),v(null))},[z]),Ne=()=>w([]),$e=n=>{B("forward"),w([{title:n.title,primary:n.primaryItems??[],secondary:n.secondaryItems??[],description:""}])},le=n=>{B("forward"),w(l=>[...l,{title:n.label,primary:n.sublinks??[],secondary:[],description:n.description}])},we=()=>{B("backward"),w(n=>n.slice(0,-1))};t.useEffect(()=>{if(typeof window>"u")return;const n=()=>ke(window.innerWidth<768);return n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[]),t.useEffect(()=>{if(typeof window>"u")return;const n=()=>xe(window.scrollY>10);return n(),window.addEventListener("scroll",n,{passive:!0}),()=>window.removeEventListener("scroll",n)},[]),t.useEffect(()=>{const n=typeof window<"u",l=typeof document<"u";return n&&window.addEventListener("resize",P),l&&document.addEventListener("click",G),z(),be(!0),()=>{n&&window.removeEventListener("resize",P),l&&document.removeEventListener("click",G)}},[P,G,z]),t.useEffect(()=>{if(!(typeof document>"u"))return m?setTimeout(()=>K.lockScroll(),0):K.unlockScroll(),()=>K.unlockScroll()},[m]),t.useEffect(()=>{var c;if(!m)return;if(typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(pointer: fine)").matches){const i=(c=j.current)==null?void 0:c.querySelector('a[href], button:not([disabled]), input, select, textarea, [tabindex]:not([tabindex="-1"])');i==null||i.focus()}const l=i=>{var E;if(i.key==="Escape"){se(),(E=T.current)==null||E.focus();return}if(i.key!=="Tab"||!j.current)return;const b=Array.from(j.current.querySelectorAll('a[href], button:not([disabled]), input, select, textarea, [tabindex]:not([tabindex="-1"])')).filter(a=>!a.closest("[aria-hidden=true]"));if(b.length===0)return;const f=b[0],C=b[b.length-1];i.shiftKey?document.activeElement===f&&(i.preventDefault(),C.focus()):document.activeElement===C&&(i.preventDefault(),f.focus())};return document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)},[m]);const q=(n,l="")=>n.map((c,i)=>{const b=`${l}/${c._key??c.label}-${i}`;return s.jsx(e.NavLink,{link:c,path:b,parentPath:l,openPath:Y,togglePath:ge,updateTriangleIndicator:ne,setOpenPath:v,renderLinks:q,buttonRefs:F},b)}),Se=n=>n.map((l,c)=>{var C,E;const i=`group-${c}`,b=je===c,f=(C=l.primaryItems)==null?void 0:C[I??0];return s.jsxs("div",{className:`${e.styles.linkWrapper} ${e.styles.parent}`,onMouseEnter:()=>{Q(c),v(i),ne(i)},children:[s.jsx("div",{className:e.styles.linkItem,children:s.jsxs("button",{ref:a=>{F.current.set(i,a)},"aria-haspopup":!0,"aria-expanded":b,"aria-controls":`submenu-${c}`,className:`${e.styles.sublinkToggle} ${b?e.styles.open:""}`,children:[l.title,s.jsx(Le.ChevronDown,{size:18,className:e.styles.chevron,"aria-hidden":"true"})]})}),s.jsx("div",{id:`submenu-${c}`,className:`${e.styles.sublinks} ${b?e.styles.show:""}`,role:"menu","aria-label":`${l.title} submenu`,onMouseLeave:()=>{Q(null),D(0),v(null)},children:s.jsx("div",{children:s.jsxs("div",{className:`${e.styles.sublinksInner} ${l.spotlight?e.styles.withSpotlight:e.styles.withoutSpotlight}`,children:[s.jsxs("div",{className:`${e.styles.sublinksColumn} ${e.styles.primaryColumn}`,children:[s.jsx("div",{className:e.styles.linkItem}),(E=l.primaryItems)==null?void 0:E.map((a,$)=>a.href?s.jsx("div",{role:"menuitem",children:s.jsxs("a",{href:a.href,className:`${e.styles.link} ${I===$?e.styles.open:""}`,target:a.isExternal?"_blank":"_self",rel:a.isExternal?"noopener noreferrer":void 0,onClick:()=>{var te;v(null),(te=a.onClick)==null||te.call(a)},onMouseEnter:()=>D($),children:[s.jsxs("span",{className:e.styles.linkContent,children:[a.label,a.subtitle&&s.jsx("span",{className:e.styles.subtitle,children:a.subtitle})]}),a.isExternal&&s.jsx(V.ExternalLink,{className:e.styles.newTabIcon,size:16,"aria-hidden":"true"})]})},a._key??$):s.jsx("div",{role:"menuitem",children:s.jsx("button",{className:`${e.styles.sublinkToggle} ${I===$?e.styles.open:""}`,onMouseEnter:()=>D($),children:s.jsxs("span",{className:e.styles.linkContent,children:[a.label,a.subtitle&&s.jsx("span",{className:e.styles.subtitle,children:a.subtitle})]})})},a._key??$))]}),(f==null?void 0:f.sublinks)&&f.sublinks.length>0&&s.jsxs("div",{className:`${e.styles.sublinksColumn} ${e.styles.fadeInFromLeft}`,children:[f.description&&s.jsx("div",{className:e.styles.sublinksDescription,children:r==null?void 0:r(f.description)}),q(f.sublinks,`${i}-${I}`)]},`${f.label}-${f.sublinks.length}`),l.secondaryItems&&l.secondaryItems.length>0&&s.jsx("div",{className:`${e.styles.sublinksColumn} ${e.styles.secondaryColumn}`,children:q(l.secondaryItems,`${i}-secondary`)}),l.spotlight&&s.jsx("div",{className:`${e.styles.sublinksColumn} ${e.styles.spotlightColumn}`,children:s.jsx(Ae,{spotlight:l.spotlight,renderText:r})})]})})})]},l._key??`group-${c}`)}),Ce=[e.styles.navbar,qe[O],ze[H],_?e.styles.sticky:"",y!=null&&y.length?e.styles.advanced:e.styles.default,de??""].filter(Boolean).join(" "),u=h&&h.length>0?h[Math.min(1,h.length-1)]:null;return s.jsx("header",{ref:W,className:Ce,style:ue,"aria-label":"Site header",...ye,children:s.jsxs("div",{className:`${e.styles.container} ${(!h||h.length===0)&&O!=="center"?e.styles.twoColumn:""}`,children:[o?s.jsx("div",{className:e.styles.logo,children:o}):x?s.jsx("div",{className:e.styles.title,children:x}):null,s.jsx("nav",{ref:j,style:{left:O==="center"?`calc(50% - ${he/2}px)`:"0"},"aria-modal":m?"true":void 0,className:`${e.styles.nav} ${m?e.styles.open:""} ${fe?e.styles.visible:e.styles.hidden}`,id:"main-menu","aria-label":"Primary navigation",children:s.jsxs("div",{className:e.styles.navInner,children:[s.jsx("svg",{style:{left:`${pe}px`},className:`${e.styles.triangle} ${Y?e.styles.show:""}`,width:16,height:12,viewBox:"0 0 100 75",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:s.jsx("polygon",{points:"50,5 95,70 5,70",strokeLinejoin:"round",fill:"white",stroke:"white"})}),M==="default"&&k&&s.jsxs("div",{className:e.styles.grid,children:[k.length>0&&s.jsx("div",{role:"menubar",className:e.styles.menubar,children:q(k)}),(p||g||N)&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:e.styles.separator,"aria-hidden":"true"}),s.jsxs("div",{role:"toolbar","aria-label":"Site controls",className:e.styles.toolbar,children:[N&&s.jsx(Z,{}),p&&!S&&s.jsx(U,{}),g&&s.jsx(ee,{})]})]})]}),!S&&M==="advanced"&&y&&s.jsxs("div",{className:e.styles.grid,children:[y.length>0&&s.jsx("div",{role:"menubar",className:e.styles.menubar,children:Se(y)}),(p||g||N)&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:e.styles.separator,"aria-hidden":"true"}),s.jsxs("div",{role:"toolbar","aria-label":"Site controls",className:e.styles.toolbar,children:[N&&s.jsx(Z,{}),p&&s.jsx(U,{}),g&&s.jsx(ee,{})]})]})]}),S&&M==="advanced"&&m&&d.length===0&&y&&s.jsx("div",{className:e.styles.mobileMenu,children:y.map((n,l)=>s.jsx("div",{className:`${e.styles.mobileMenuItem} ${R==="forward"?e.styles.fadeInFromLeft:e.styles.fadeInFromRight}`,children:s.jsx("button",{className:e.styles.sublinkToggle,onClick:()=>$e(n),children:n.title})},n._key??l))}),S&&M==="advanced"&&m&&d.length>0&&s.jsxs("div",{className:e.styles.mobileMenuSlide,children:[s.jsx("button",{className:e.styles.back,"aria-label":"Go back",onClick:d.length===1?Ne:we,children:s.jsx(Ee.ChevronLeft,{size:18,"aria-hidden":"true"})}),d[d.length-1].description&&s.jsx("div",{className:`${e.styles.sublinksDescription} ${R==="forward"?e.styles.fadeInFromLeft:e.styles.fadeInFromRight}`,children:r==null?void 0:r(d[d.length-1].description)}),d[d.length-1].primary.map((n,l)=>s.jsx("div",{role:"menuitem",className:`${e.styles.mobileMenuItem} ${R==="forward"?e.styles.fadeInFromLeft:e.styles.fadeInFromRight}`,children:n.sublinks?s.jsx("button",{className:e.styles.sublinkToggle,onClick:()=>le(n),children:s.jsxs("span",{className:e.styles.linkContent,children:[n.label,n.subtitle&&s.jsx("span",{className:e.styles.subtitle,children:n.subtitle})]})}):s.jsxs("a",{href:n.href,className:e.styles.link,target:n.isExternal?"_blank":"_self",rel:n.isExternal?"noopener noreferrer":void 0,children:[s.jsxs("span",{className:e.styles.linkContent,children:[n.label,n.subtitle&&s.jsx("span",{className:e.styles.subtitle,children:n.subtitle})]}),n.isExternal&&s.jsx(V.ExternalLink,{className:e.styles.newTabIcon,size:16,"aria-hidden":"true"})]})},n._key??`primary-${l}`)),d[d.length-1].secondary.length>0&&s.jsx("hr",{className:e.styles.groupDivider}),d[d.length-1].secondary.map((n,l)=>s.jsx("div",{role:"menuitem",className:`${e.styles.mobileMenuItem} ${R==="forward"?e.styles.fadeInFromLeft:e.styles.fadeInFromRight}`,children:n.sublinks?s.jsx("button",{className:e.styles.sublinkToggle,onClick:()=>le(n),children:n.label}):s.jsxs("a",{href:n.href,className:e.styles.link,target:n.isExternal?"_blank":"_self",rel:n.isExternal?"noopener noreferrer":void 0,children:[n.label,n.isExternal&&s.jsx(V.ExternalLink,{className:e.styles.newTabIcon,size:16,"aria-hidden":"true"})]})},n._key??`secondary-${l}`))]},`stack-${d.length}`)]})}),h&&h.length>0&&s.jsx("nav",{className:e.styles.utility,"data-scrolled":J,"aria-label":"Utility navigation",children:s.jsx(ie.ButtonGroup,{spacing:"sm",children:h.map((n,l)=>s.jsx(A.Button,{as:"a",size:"sm",href:n.href??"/",variant:n.variant??"primary",displayType:n.displayType??"text",imageSrc:n.imageSrc,imageAlt:n.imageAlt,"aria-label":n.ariaLabel,icon:n.icon,iconAlignment:n.iconAlignment,className:H=="transparent"&&n.variant==="link"&&J?e.styles.utilityScrolled:e.styles.utilityDefault,children:n.imageSrc?s.jsx("img",{src:n.imageSrc,alt:n.imageAlt??n.ariaLabel}):n.label},n._key??l))})}),u&&s.jsx("nav",{"aria-label":"Utility navigation",className:`${e.styles.utilityMobile} ${m?e.styles.open:""}`,children:s.jsx(ie.ButtonGroup,{alignment:"center",children:s.jsx(A.Button,{as:"a",size:"sm",href:u.href??"/",variant:u.variant??"primary",displayType:u.displayType??"text",imageSrc:u.imageSrc,imageAlt:u.imageAlt,"aria-label":u.ariaLabel,icon:u.icon,iconAlignment:u.iconAlignment,children:u.imageSrc?s.jsx("img",{src:u.imageSrc,alt:u.imageAlt??u.ariaLabel}):u.label})})}),s.jsxs("div",{className:e.styles.mobileButtons,children:[S&&p&&s.jsx(U,{}),s.jsx("button",{ref:T,className:e.styles.menuToggle,onClick:se,"aria-label":m?"Close menu":"Open menu","aria-expanded":m,"aria-controls":"main-menu",children:m?s.jsx(_e.X,{size:24,"aria-hidden":"true"}):s.jsx(A.Menu,{size:24,"aria-hidden":"true"})})]})]})})}exports.Navbar=Oe;
@@ -1,12 +1,12 @@
1
1
  import { jsx as a, jsxs as i, Fragment as ce } from "react/jsx-runtime";
2
2
  import { useState as v, useRef as F, useCallback as _, useEffect as z } from "react";
3
3
  import { Modal as oe } from "../Modal/index.mjs";
4
- import { B as J, M as Ae } from "../../../index-Cahn_yoK.js";
4
+ import { B as Y, M as Ae } from "../../../index-Cahn_yoK.js";
5
5
  import { ButtonGroup as de } from "../ButtonGroup/index.mjs";
6
6
  import { s as e, N as Re } from "../../../NavLink-DRorzk54.js";
7
7
  import { lockScroll as Be, unlockScroll as ue } from "../../utils/NoScroll/noScroll.mjs";
8
8
  import { C as Oe } from "../../../chevron-right-Cim1KPuL.js";
9
- import { E as Y } from "../../../external-link-BOPobeQJ.js";
9
+ import { E as X } from "../../../external-link-BOPobeQJ.js";
10
10
  import { X as We } from "../../../x-CnsEH4Ox.js";
11
11
  import { c as me } from "../../../createLucideIcon-C8GTh_Qx.js";
12
12
  import { C as De } from "../../../chevron-down-DSUzBz9F.js";
@@ -68,7 +68,7 @@ const je = [
68
68
  s.description && /* @__PURE__ */ a("div", { className: e.description, children: k == null ? void 0 : k(s.description, e.description) })
69
69
  ] }),
70
70
  o.linkOptions && /* @__PURE__ */ a("div", { className: e.actions, children: /* @__PURE__ */ a(
71
- J,
71
+ Y,
72
72
  {
73
73
  as: "a",
74
74
  variant: o.variant ?? "primary",
@@ -94,7 +94,7 @@ function tn({
94
94
  showThemeToggle: C = !0,
95
95
  themeToggleComponent: A,
96
96
  alignment: j = "right",
97
- variant: Q = "standard",
97
+ variant: J = "standard",
98
98
  navigationType: R = "default",
99
99
  searchComponent: he,
100
100
  localeSelectComponent: fe,
@@ -102,9 +102,9 @@ function tn({
102
102
  style: pe,
103
103
  ...ve
104
104
  }) {
105
- const [f, Z] = v(!1), [T, N] = v(null), [ke, ge] = v(0), [Ne, ye] = v(!1), [G, $e] = v(!1), [we, Ce] = v(null), [d, M] = v([]), [B, P] = v(
105
+ const [f, Q] = v(!1), [Z, N] = v(null), [ke, ge] = v(0), [Ne, ye] = v(!1), [T, $e] = v(!1), [we, Ce] = v(null), [d, M] = v([]), [B, G] = v(
106
106
  0
107
- ), [Ee, ee] = v(null), [I, Me] = v(!1), [O, W] = v("forward"), q = F(null), y = F(null), ne = F(null), K = F(/* @__PURE__ */ new Map()), ae = () => /* @__PURE__ */ a(
107
+ ), [Ee, ee] = v(null), [I, Me] = v(!1), [O, W] = v("forward"), P = F(null), y = F(null), ne = F(null), q = F(/* @__PURE__ */ new Map()), ae = () => /* @__PURE__ */ a(
108
108
  "div",
109
109
  {
110
110
  className: `${e.linkWrapper} ${e.parent}`,
@@ -118,7 +118,7 @@ function tn({
118
118
  }
119
119
  )
120
120
  }
121
- ), V = () => /* @__PURE__ */ a(
121
+ ), K = () => /* @__PURE__ */ a(
122
122
  "div",
123
123
  {
124
124
  className: `${e.linkWrapper} ${e.parent} ${e.searchWrapper}`,
@@ -158,22 +158,22 @@ function tn({
158
158
  ) }) }), D = _(() => {
159
159
  y.current && ge(y.current.getBoundingClientRect().width);
160
160
  }, []), ie = () => {
161
- Z((n) => {
161
+ Q((n) => {
162
162
  const l = !n;
163
163
  return l || (M([]), W("forward"), N(null)), l;
164
164
  });
165
165
  }, te = _((n) => {
166
- const l = K.current.get(n);
166
+ const l = q.current.get(n);
167
167
  if (l && y.current) {
168
168
  const c = l.getBoundingClientRect(), r = y.current.getBoundingClientRect();
169
169
  Ce(c.left - r.left + c.width / 2);
170
170
  }
171
171
  }, []), Ie = _((n) => {
172
172
  N((l) => l === n ? null : n);
173
- }, []), H = _((n) => {
174
- q.current && !q.current.contains(n.target) && N(null);
175
- }, []), X = _(() => {
176
- D(), typeof window < "u" && window.innerWidth > 768 && (Z(!1), N(null));
173
+ }, []), V = _((n) => {
174
+ P.current && !P.current.contains(n.target) && N(null);
175
+ }, []), H = _(() => {
176
+ D(), typeof window < "u" && window.innerWidth > 768 && (Q(!1), N(null));
177
177
  }, [D]), Le = () => M([]), Se = (n) => {
178
178
  W("forward"), M([
179
179
  {
@@ -206,10 +206,10 @@ function tn({
206
206
  return n(), window.addEventListener("scroll", n, { passive: !0 }), () => window.removeEventListener("scroll", n);
207
207
  }, []), z(() => {
208
208
  const n = typeof window < "u", l = typeof document < "u";
209
- return n && window.addEventListener("resize", X), l && document.addEventListener("click", H), D(), ye(!0), () => {
210
- n && window.removeEventListener("resize", X), l && document.removeEventListener("click", H);
209
+ return n && window.addEventListener("resize", H), l && document.addEventListener("click", V), D(), ye(!0), () => {
210
+ n && window.removeEventListener("resize", H), l && document.removeEventListener("click", V);
211
211
  };
212
- }, [X, H, D]), z(() => {
212
+ }, [H, V, D]), z(() => {
213
213
  if (!(typeof document > "u"))
214
214
  return f ? setTimeout(() => Be(), 0) : ue(), () => ue();
215
215
  }, [f]), z(() => {
@@ -247,12 +247,12 @@ function tn({
247
247
  link: c,
248
248
  path: p,
249
249
  parentPath: l,
250
- openPath: T,
250
+ openPath: Z,
251
251
  togglePath: Ie,
252
252
  updateTriangleIndicator: te,
253
253
  setOpenPath: N,
254
254
  renderLinks: U,
255
- buttonRefs: K
255
+ buttonRefs: q
256
256
  },
257
257
  p
258
258
  );
@@ -271,7 +271,7 @@ function tn({
271
271
  "button",
272
272
  {
273
273
  ref: (t) => {
274
- K.current.set(r, t);
274
+ q.current.set(r, t);
275
275
  },
276
276
  "aria-haspopup": !0,
277
277
  "aria-expanded": p,
@@ -298,7 +298,7 @@ function tn({
298
298
  role: "menu",
299
299
  "aria-label": `${l.title} submenu`,
300
300
  onMouseLeave: () => {
301
- ee(null), P(0), N(null);
301
+ ee(null), G(0), N(null);
302
302
  },
303
303
  children: /* @__PURE__ */ a("div", { children: /* @__PURE__ */ i(
304
304
  "div",
@@ -323,14 +323,14 @@ function tn({
323
323
  var se;
324
324
  N(null), (se = t.onClick) == null || se.call(t);
325
325
  },
326
- onMouseEnter: () => P(E),
326
+ onMouseEnter: () => G(E),
327
327
  children: [
328
328
  /* @__PURE__ */ i("span", { className: e.linkContent, children: [
329
329
  t.label,
330
330
  t.subtitle && /* @__PURE__ */ a("span", { className: e.subtitle, children: t.subtitle })
331
331
  ] }),
332
332
  t.isExternal && /* @__PURE__ */ a(
333
- Y,
333
+ X,
334
334
  {
335
335
  className: e.newTabIcon,
336
336
  size: 16,
@@ -343,7 +343,7 @@ function tn({
343
343
  "button",
344
344
  {
345
345
  className: `${e.sublinkToggle} ${B === E ? e.open : ""}`,
346
- onMouseEnter: () => P(E),
346
+ onMouseEnter: () => G(E),
347
347
  children: /* @__PURE__ */ i("span", { className: e.linkContent, children: [
348
348
  t.label,
349
349
  t.subtitle && /* @__PURE__ */ a("span", { className: e.subtitle, children: t.subtitle })
@@ -400,16 +400,16 @@ function tn({
400
400
  }), xe = [
401
401
  e.navbar,
402
402
  qe[j],
403
- Pe[Q],
403
+ Pe[J],
404
404
  x ? e.sticky : "",
405
- G ? e.scrolled : "",
405
+ // isScrolled ? styles.scrolled : "",
406
406
  m != null && m.length ? e.advanced : e.default,
407
407
  be ?? ""
408
408
  ].filter(Boolean).join(" "), u = h && h.length > 0 ? h[Math.min(1, h.length - 1)] : null;
409
409
  return /* @__PURE__ */ a(
410
410
  "header",
411
411
  {
412
- ref: q,
412
+ ref: P,
413
413
  className: xe,
414
414
  style: pe,
415
415
  "aria-label": "Site header",
@@ -436,7 +436,7 @@ function tn({
436
436
  "svg",
437
437
  {
438
438
  style: { left: `${we}px` },
439
- className: `${e.triangle} ${T ? e.show : ""}`,
439
+ className: `${e.triangle} ${Z ? e.show : ""}`,
440
440
  width: 16,
441
441
  height: 12,
442
442
  viewBox: "0 0 100 75",
@@ -465,7 +465,7 @@ function tn({
465
465
  className: e.toolbar,
466
466
  children: [
467
467
  C && /* @__PURE__ */ a(ae, {}),
468
- g && !I && /* @__PURE__ */ a(V, {}),
468
+ g && !I && /* @__PURE__ */ a(K, {}),
469
469
  w && /* @__PURE__ */ a(le, {})
470
470
  ]
471
471
  }
@@ -484,7 +484,7 @@ function tn({
484
484
  className: e.toolbar,
485
485
  children: [
486
486
  C && /* @__PURE__ */ a(ae, {}),
487
- g && /* @__PURE__ */ a(V, {}),
487
+ g && /* @__PURE__ */ a(K, {}),
488
488
  w && /* @__PURE__ */ a(le, {})
489
489
  ]
490
490
  }
@@ -557,7 +557,7 @@ function tn({
557
557
  n.subtitle && /* @__PURE__ */ a("span", { className: e.subtitle, children: n.subtitle })
558
558
  ] }),
559
559
  n.isExternal && /* @__PURE__ */ a(
560
- Y,
560
+ X,
561
561
  {
562
562
  className: e.newTabIcon,
563
563
  size: 16,
@@ -594,7 +594,7 @@ function tn({
594
594
  children: [
595
595
  n.label,
596
596
  n.isExternal && /* @__PURE__ */ a(
597
- Y,
597
+ X,
598
598
  {
599
599
  className: e.newTabIcon,
600
600
  size: 16,
@@ -619,10 +619,10 @@ function tn({
619
619
  "nav",
620
620
  {
621
621
  className: e.utility,
622
- "data-scrolled": G,
622
+ "data-scrolled": T,
623
623
  "aria-label": "Utility navigation",
624
624
  children: /* @__PURE__ */ a(de, { spacing: "sm", children: h.map((n, l) => /* @__PURE__ */ a(
625
- J,
625
+ Y,
626
626
  {
627
627
  as: "a",
628
628
  size: "sm",
@@ -634,7 +634,7 @@ function tn({
634
634
  "aria-label": n.ariaLabel,
635
635
  icon: n.icon,
636
636
  iconAlignment: n.iconAlignment,
637
- className: Q == "transparent" && n.variant === "link" && G ? e.utilityScrolled : e.utilityDefault,
637
+ className: J == "transparent" && n.variant === "link" && T ? e.utilityScrolled : e.utilityDefault,
638
638
  children: n.imageSrc ? /* @__PURE__ */ a(
639
639
  "img",
640
640
  {
@@ -653,7 +653,7 @@ function tn({
653
653
  "aria-label": "Utility navigation",
654
654
  className: `${e.utilityMobile} ${f ? e.open : ""}`,
655
655
  children: /* @__PURE__ */ a(de, { alignment: "center", children: /* @__PURE__ */ a(
656
- J,
656
+ Y,
657
657
  {
658
658
  as: "a",
659
659
  size: "sm",
@@ -677,7 +677,7 @@ function tn({
677
677
  }
678
678
  ),
679
679
  /* @__PURE__ */ i("div", { className: e.mobileButtons, children: [
680
- I && g && /* @__PURE__ */ a(V, {}),
680
+ I && g && /* @__PURE__ */ a(K, {}),
681
681
  /* @__PURE__ */ a(
682
682
  "button",
683
683
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quirk-ui",
3
3
  "private": false,
4
- "version": "0.1.120",
4
+ "version": "0.1.122",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {
@@ -1,13 +0,0 @@
1
- declare const styles: {
2
- readonly "_accordionContent_14hw7_64": string;
3
- readonly "_accordionHeader_14hw7_15": string;
4
- readonly "_accordionItem_14hw7_7": string;
5
- readonly "_accordion_14hw7_1": string;
6
- readonly "_active_14hw7_30": string;
7
- readonly "_closed_14hw7_51": string;
8
- readonly "_icon_14hw7_44": string;
9
- readonly "_open_14hw7_50": string;
10
- readonly "_rotate_14hw7_80": string;
11
- };
12
- export = styles;
13
-
@@ -1,31 +0,0 @@
1
- declare const styles: {
2
- readonly "_applyFilters_1vg9o_218": string;
3
- readonly "_buttonIsLoading_1vg9o_307": string;
4
- readonly "_clearSearch_1vg9o_106": string;
5
- readonly "_container_1vg9o_9": string;
6
- readonly "_cta_1vg9o_25": string;
7
- readonly "_documentList_1vg9o_1": string;
8
- readonly "_eyebrow_1vg9o_30": string;
9
- readonly "_filterHeader_1vg9o_178": string;
10
- readonly "_filterList_1vg9o_203": string;
11
- readonly "_filterToggle_1vg9o_163": string;
12
- readonly "_heading_1vg9o_20": string;
13
- readonly "_hide_1vg9o_256": string;
14
- readonly "_listContainer_1vg9o_34": string;
15
- readonly "_listFilters_1vg9o_210": string;
16
- readonly "_listHeaderFilters_1vg9o_125": string;
17
- readonly "_listHeader_1vg9o_66": string;
18
- readonly "_listResults_1vg9o_136": string;
19
- readonly "_listSearch_1vg9o_79": string;
20
- readonly "_listSort_1vg9o_140": string;
21
- readonly "_listWrapper_1vg9o_45": string;
22
- readonly "_list_1vg9o_34": string;
23
- readonly "_loadMore_1vg9o_199": string;
24
- readonly "_rotate_1vg9o_1": string;
25
- readonly "_show_1vg9o_247": string;
26
- readonly "_text_1vg9o_25": string;
27
- readonly "_title_1vg9o_25": string;
28
- readonly "_wrapper_1vg9o_266": string;
29
- };
30
- export = styles;
31
-
@@ -1,27 +0,0 @@
1
- declare const styles: {
2
- readonly "_actions_b7mbf_117": string;
3
- readonly "_container_b7mbf_7": string;
4
- readonly "_errorBanner_b7mbf_143": string;
5
- readonly "_eyebrow_b7mbf_47": string;
6
- readonly "_fieldFull_b7mbf_95": string;
7
- readonly "_fieldHalf_b7mbf_99": string;
8
- readonly "_fieldThird_b7mbf_107": string;
9
- readonly "_fields_b7mbf_88": string;
10
- readonly "_formBlock_b7mbf_1": string;
11
- readonly "_formInner_b7mbf_20": string;
12
- readonly "_heading_b7mbf_41": string;
13
- readonly "_maxWidthFull_b7mbf_35": string;
14
- readonly "_maxWidthLg_b7mbf_32": string;
15
- readonly "_maxWidthMd_b7mbf_29": string;
16
- readonly "_maxWidthSm_b7mbf_26": string;
17
- readonly "_progressHeader_b7mbf_63": string;
18
- readonly "_progress_b7mbf_57": string;
19
- readonly "_stepCount_b7mbf_75": string;
20
- readonly "_stepDescription_b7mbf_80": string;
21
- readonly "_stepLabel_b7mbf_69": string;
22
- readonly "_submitButton_b7mbf_124": string;
23
- readonly "_success_b7mbf_130": string;
24
- readonly "_title_b7mbf_51": string;
25
- };
26
- export = styles;
27
-
@@ -1,30 +0,0 @@
1
- declare const styles: {
2
- readonly "_articleCategories_6wr3y_80": string;
3
- readonly "_articleDetails_6wr3y_53": string;
4
- readonly "_articleType_6wr3y_66": string;
5
- readonly "_blog_6wr3y_129": string;
6
- readonly "_category_6wr3y_86": string;
7
- readonly "_container_6wr3y_7": string;
8
- readonly "_default_6wr3y_125": string;
9
- readonly "_disclaimer_6wr3y_41": string;
10
- readonly "_eyebrow_6wr3y_37": string;
11
- readonly "_fullBleed_6wr3y_334": string;
12
- readonly "_heading_6wr3y_15": string;
13
- readonly "_hero_6wr3y_1": string;
14
- readonly "_hide_6wr3y_118": string;
15
- readonly "_iframe_6wr3y_571": string;
16
- readonly "_media_6wr3y_361": string;
17
- readonly "_number_6wr3y_102": string;
18
- readonly "_overlay_6wr3y_155": string;
19
- readonly "_pipe_6wr3y_115": string;
20
- readonly "_splitAlt_6wr3y_448": string;
21
- readonly "_split_6wr3y_448": string;
22
- readonly "_text_6wr3y_22": string;
23
- readonly "_tile_6wr3y_225": string;
24
- readonly "_videoBackground_6wr3y_570": string;
25
- readonly "_videoControl_6wr3y_522": string;
26
- readonly "portableTextContainer": string;
27
- readonly "splitAlt": string;
28
- };
29
- export = styles;
30
-
@@ -1,76 +0,0 @@
1
- declare const styles: {
2
- readonly "_actions_1k1bw_1172": string;
3
- readonly "_advanced_1k1bw_845": string;
4
- readonly "_back_1k1bw_484": string;
5
- readonly "_center_1k1bw_50": string;
6
- readonly "_chevron_1k1bw_628": string;
7
- readonly "_container_1k1bw_31": string;
8
- readonly "_content_1k1bw_1153": string;
9
- readonly "_default_1k1bw_772": string;
10
- readonly "_description_1k1bw_1168": string;
11
- readonly "_fadeInFromLeft_1k1bw_1117": string;
12
- readonly "_fadeInFromRight_1k1bw_1121": string;
13
- readonly "_grid_1k1bw_345": string;
14
- readonly "_groupDivider_1k1bw_1087": string;
15
- readonly "_hidden_1k1bw_58": string;
16
- readonly "_imageWrapper_1k1bw_1131": string;
17
- readonly "_image_1k1bw_1131": string;
18
- readonly "_left_1k1bw_30": string;
19
- readonly "_linkContent_1k1bw_447": string;
20
- readonly "_linkItem_1k1bw_104": string;
21
- readonly "_linkWrapper_1k1bw_97": string;
22
- readonly "_link_1k1bw_97": string;
23
- readonly "_localeModal_1k1bw_369": string;
24
- readonly "_locale_1k1bw_111": string;
25
- readonly "_logo_1k1bw_35": string;
26
- readonly "_menuToggle_1k1bw_288": string;
27
- readonly "_menubar_1k1bw_640": string;
28
- readonly "_mobileButtons_1k1bw_210": string;
29
- readonly "_mobileMenuItem_1k1bw_1113": string;
30
- readonly "_mobileMenuSlide_1k1bw_1103": string;
31
- readonly "_mobileMenu_1k1bw_1102": string;
32
- readonly "_navInner_1k1bw_334": string;
33
- readonly "_navItem_1k1bw_479": string;
34
- readonly "_navTitle_1k1bw_408": string;
35
- readonly "_nav_1k1bw_1": string;
36
- readonly "_navbar_1k1bw_1": string;
37
- readonly "_newTabIcon_1k1bw_431": string;
38
- readonly "_open_1k1bw_460": string;
39
- readonly "_parent_1k1bw_97": string;
40
- readonly "_primaryColumn_1k1bw_582": string;
41
- readonly "_right_1k1bw_80": string;
42
- readonly "_searchModal_1k1bw_368": string;
43
- readonly "_searchWrapper_1k1bw_1095": string;
44
- readonly "_search_1k1bw_110": string;
45
- readonly "_secondaryColumn_1k1bw_591": string;
46
- readonly "_separator_1k1bw_389": string;
47
- readonly "_show_1k1bw_533": string;
48
- readonly "_spotlightColumn_1k1bw_595": string;
49
- readonly "_spotlight_1k1bw_595": string;
50
- readonly "_standard_1k1bw_164": string;
51
- readonly "_sticky_1k1bw_15": string;
52
- readonly "_sublinkToggle_1k1bw_113": string;
53
- readonly "_sublinksColumn_1k1bw_618": string;
54
- readonly "_sublinksDescription_1k1bw_444": string;
55
- readonly "_sublinksInner_1k1bw_599": string;
56
- readonly "_sublinks_1k1bw_444": string;
57
- readonly "_subtitle_1k1bw_854": string;
58
- readonly "_themeToggle_1k1bw_112": string;
59
- readonly "_title_1k1bw_87": string;
60
- readonly "_toolbar_1k1bw_644": string;
61
- readonly "_transparent_1k1bw_938": string;
62
- readonly "_triangle_1k1bw_172": string;
63
- readonly "_twoColumn_1k1bw_201": string;
64
- readonly "_utilityDefault_1k1bw_1055": string;
65
- readonly "_utilityMobile_1k1bw_306": string;
66
- readonly "_utilityScrolled_1k1bw_1062": string;
67
- readonly "_utility_1k1bw_306": string;
68
- readonly "_visible_1k1bw_65": string;
69
- readonly "_withSpotlight_1k1bw_896": string;
70
- readonly "_withoutSpotlight_1k1bw_900": string;
71
- readonly "modalClose": string;
72
- readonly "modalContent": string;
73
- readonly "modalContentContainer": string;
74
- };
75
- export = styles;
76
-
@@ -1 +0,0 @@
1
- export {};
@@ -1,10 +0,0 @@
1
- declare const styles: {
2
- readonly "_container_lbx6l_4": string;
3
- readonly "_markdownBlock_lbx6l_8": string;
4
- readonly "_maxWidthFull_lbx6l_23": string;
5
- readonly "_maxWidthLg_lbx6l_20": string;
6
- readonly "_maxWidthMd_lbx6l_17": string;
7
- readonly "_maxWidthSm_lbx6l_14": string;
8
- };
9
- export = styles;
10
-
@@ -1,26 +0,0 @@
1
- declare const styles: {
2
- readonly "_codeBlockWrapper_xord8_102": string;
3
- readonly "_codeBlock_xord8_93": string;
4
- readonly "_codeFilename_xord8_114": string;
5
- readonly "_container_xord8_1": string;
6
- readonly "_divider_xord8_15": string;
7
- readonly "_h1_xord8_11": string;
8
- readonly "_h2_xord8_11": string;
9
- readonly "_h3_xord8_11": string;
10
- readonly "_h4_xord8_11": string;
11
- readonly "_h5_xord8_11": string;
12
- readonly "_h6_xord8_11": string;
13
- readonly "_richTextImage_xord8_33": string;
14
- readonly "_richTextLink_xord8_41": string;
15
- readonly "_spacerLarge_xord8_65": string;
16
- readonly "_spacerMedium_xord8_60": string;
17
- readonly "_spacerSmall_xord8_55": string;
18
- readonly "_tableWrapper_xord8_149": string;
19
- readonly "_table_xord8_149": string;
20
- readonly "text-large": string;
21
- readonly "text-medium": string;
22
- readonly "text-small": string;
23
- readonly "text-xlarge": string;
24
- };
25
- export = styles;
26
-
@@ -1,24 +0,0 @@
1
- declare const styles: {
2
- readonly "_active_1e5td_106": string;
3
- readonly "_container_1e5td_7": string;
4
- readonly "_content_1e5td_118": string;
5
- readonly "_cta_1e5td_28": string;
6
- readonly "_eyebrow_1e5td_199": string;
7
- readonly "_flex_1e5td_129": string;
8
- readonly "_heading_1e5td_23": string;
9
- readonly "_image_1e5td_173": string;
10
- readonly "_item_1e5td_154": string;
11
- readonly "_layout_1e5td_1": string;
12
- readonly "_link_1e5td_91": string;
13
- readonly "_number_1e5td_73": string;
14
- readonly "_scroll_1e5td_43": string;
15
- readonly "_sidebar_1e5td_48": string;
16
- readonly "_text_1e5td_28": string;
17
- readonly "_title_1e5td_28": string;
18
- readonly "imageRadius-full": string;
19
- readonly "imageRadius-lg": string;
20
- readonly "imageRadius-md": string;
21
- readonly "imageRadius-sm": string;
22
- };
23
- export = styles;
24
-
@@ -1,33 +0,0 @@
1
- declare const styles: {
2
- readonly "_container_3x761_7": string;
3
- readonly "_cta_3x761_232": string;
4
- readonly "_default_3x761_166": string;
5
- readonly "_eyebrow_3x761_314": string;
6
- readonly "_fullBleed_3x761_181": string;
7
- readonly "_gridItem_3x761_141": string;
8
- readonly "_gridItems_3x761_141": string;
9
- readonly "_headingHorizontal_3x761_46": string;
10
- readonly "_headingVertical_3x761_64": string;
11
- readonly "_heading_3x761_25": string;
12
- readonly "_overlay_3x761_208": string;
13
- readonly "_tabContent_3x761_74": string;
14
- readonly "_tabImage_3x761_112": string;
15
- readonly "_tabText_3x761_120": string;
16
- readonly "_tabsContainer_3x761_69": string;
17
- readonly "_tabs_3x761_1": string;
18
- readonly "_text_3x761_32": string;
19
- readonly "_title_3x761_54": string;
20
- readonly "_vertical_3x761_97": string;
21
- readonly "orientationVertical": string;
22
- readonly "paddingBottom1": string;
23
- readonly "paddingBottom2": string;
24
- readonly "paddingBottom4": string;
25
- readonly "paddingBottomBanner": string;
26
- readonly "paddingTop1": string;
27
- readonly "paddingTop2": string;
28
- readonly "paddingTop4": string;
29
- readonly "paddingTopBanner": string;
30
- readonly "textPrimary": string;
31
- };
32
- export = styles;
33
-
@@ -1,9 +0,0 @@
1
- declare const styles: {
2
- readonly "_buttons_nphsl_34": string;
3
- readonly "_container_nphsl_5": string;
4
- readonly "_heading_nphsl_49": string;
5
- readonly "_wasHelpful_nphsl_1": string;
6
- readonly "blog": string;
7
- };
8
- export = styles;
9
-