quirk-ui 0.1.113 → 0.1.115

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 (194) hide show
  1. package/dist/AccordionItem.css.d.ts +13 -0
  2. package/dist/{CategoryFilters-CIWwf9VY.js → CategoryFilters-CR4MkgvA.js} +1 -1
  3. package/dist/{CategoryFilters-CvmFCE3e.cjs → CategoryFilters-oA43LCO6.cjs} +1 -1
  4. package/dist/CategoryFilters.css.d.ts +31 -0
  5. package/dist/FormField.css.d.ts +27 -0
  6. package/dist/HeroSubComponents.css.d.ts +30 -0
  7. package/dist/NavLink-Cog4-Ds3.cjs +1 -0
  8. package/dist/NavLink-DhezdhFU.js +161 -0
  9. package/dist/NavLink.css +1 -1
  10. package/dist/NavLink.css.d.ts +76 -0
  11. package/dist/core/components/Announcement/Announcement.test.cjs +1 -0
  12. package/dist/core/components/Announcement/Announcement.test.mjs +107 -0
  13. package/dist/core/components/Announcement/index.cjs +1 -0
  14. package/dist/core/components/Announcement/index.mjs +41 -0
  15. package/dist/core/components/Box/index.cjs +1 -1
  16. package/dist/core/components/Box/index.mjs +1 -1
  17. package/dist/core/components/Breadcrumbs/index.cjs +1 -1
  18. package/dist/core/components/Breadcrumbs/index.mjs +1 -1
  19. package/dist/core/components/Button/Button.test.cjs +1 -1
  20. package/dist/core/components/Button/Button.test.mjs +1 -1
  21. package/dist/core/components/Button/index.cjs +1 -1
  22. package/dist/core/components/Button/index.mjs +1 -1
  23. package/dist/core/components/Calendar/Calendar.test.cjs +1 -1
  24. package/dist/core/components/Calendar/Calendar.test.mjs +1 -1
  25. package/dist/core/components/Calendar/index.cjs +1 -1
  26. package/dist/core/components/Calendar/index.mjs +1 -1
  27. package/dist/core/components/Card/index.cjs +1 -1
  28. package/dist/core/components/Card/index.mjs +1 -1
  29. package/dist/core/components/Container/index.cjs +1 -1
  30. package/dist/core/components/Container/index.mjs +1 -1
  31. package/dist/core/components/DatePicker/DatePicker.test.cjs +1 -1
  32. package/dist/core/components/DatePicker/DatePicker.test.mjs +1 -1
  33. package/dist/core/components/DatePicker/index.cjs +1 -1
  34. package/dist/core/components/DatePicker/index.mjs +2 -2
  35. package/dist/core/components/Divider/index.cjs +1 -1
  36. package/dist/core/components/Divider/index.mjs +1 -1
  37. package/dist/core/components/Drawer/index.cjs +1 -1
  38. package/dist/core/components/Drawer/index.mjs +1 -1
  39. package/dist/core/components/FileUpload/index.cjs +1 -1
  40. package/dist/core/components/FileUpload/index.mjs +1 -1
  41. package/dist/core/components/FloatingActionButton/index.cjs +1 -1
  42. package/dist/core/components/FloatingActionButton/index.mjs +1 -1
  43. package/dist/core/components/Footer/index.cjs +1 -1
  44. package/dist/core/components/Footer/index.mjs +2 -2
  45. package/dist/core/components/List/index.cjs +1 -1
  46. package/dist/core/components/List/index.mjs +1 -1
  47. package/dist/core/components/NavBar/NavLink.cjs +1 -1
  48. package/dist/core/components/NavBar/NavLink.mjs +1 -1
  49. package/dist/core/components/NavBar/index.cjs +3 -3
  50. package/dist/core/components/NavBar/index.mjs +70 -69
  51. package/dist/core/components/Notification/index.cjs +1 -1
  52. package/dist/core/components/Notification/index.mjs +1 -1
  53. package/dist/core/components/NotificationContainer/index.cjs +1 -1
  54. package/dist/core/components/NotificationContainer/index.mjs +1 -1
  55. package/dist/core/components/Sidebar/index.cjs +1 -1
  56. package/dist/core/components/Sidebar/index.mjs +1 -1
  57. package/dist/core/components/Skeleton/index.cjs +1 -1
  58. package/dist/core/components/Skeleton/index.mjs +1 -1
  59. package/dist/core/components/Spacer/index.cjs +1 -1
  60. package/dist/core/components/Spacer/index.mjs +1 -1
  61. package/dist/core/components/Spinner/index.cjs +1 -1
  62. package/dist/core/components/Spinner/index.mjs +1 -1
  63. package/dist/core/components/Stack/index.cjs +1 -1
  64. package/dist/core/components/Stack/index.mjs +1 -1
  65. package/dist/core/components/Switch/index.cjs +1 -1
  66. package/dist/core/components/Switch/index.mjs +1 -1
  67. package/dist/core/components/Tooltip/index.cjs +1 -1
  68. package/dist/core/components/Tooltip/index.mjs +1 -1
  69. package/dist/core/tokens/theme.cjs +1 -1
  70. package/dist/core/tokens/theme.mjs +2 -2
  71. package/dist/core.cjs +1 -1
  72. package/dist/core.d.ts +16 -0
  73. package/dist/core.mjs +94 -92
  74. package/dist/{index-2ZLA4POI.js → index-BCIEIAnC.js} +1 -1
  75. package/dist/{index-D0ylyll7.cjs → index-CAS0iFfs.cjs} +1 -1
  76. package/dist/{index-odc0vuSq.cjs → index-CMkOXBU5.cjs} +1 -1
  77. package/dist/{index-CnlJ2RgH.js → index-Cahn_yoK.js} +1 -1
  78. package/dist/index.css.d.ts +1 -0
  79. package/dist/index10.css.d.ts +10 -0
  80. package/dist/index11.css.d.ts +26 -0
  81. package/dist/index12.css.d.ts +24 -0
  82. package/dist/index13.css.d.ts +33 -0
  83. package/dist/index14.css.d.ts +9 -0
  84. package/dist/index15.css.d.ts +10 -0
  85. package/dist/index16.css.d.ts +18 -0
  86. package/dist/index17.css.d.ts +38 -0
  87. package/dist/index18.css.d.ts +16 -0
  88. package/dist/index19.css.d.ts +14 -0
  89. package/dist/index2.css.d.ts +12 -0
  90. package/dist/index20.css.d.ts +17 -0
  91. package/dist/index21.css.d.ts +13 -0
  92. package/dist/index22.css.d.ts +25 -0
  93. package/dist/index23.css.d.ts +5 -0
  94. package/dist/index24.css.d.ts +19 -0
  95. package/dist/index25.css.d.ts +21 -0
  96. package/dist/index26.css.d.ts +16 -0
  97. package/dist/index27.css.d.ts +10 -0
  98. package/dist/index28.css.d.ts +18 -0
  99. package/dist/index29.css.d.ts +16 -0
  100. package/dist/index3.css.d.ts +10 -0
  101. package/dist/index30.css.d.ts +10 -0
  102. package/dist/index31.css.d.ts +19 -0
  103. package/dist/index32.css.d.ts +15 -0
  104. package/dist/index33.css.d.ts +22 -0
  105. package/dist/index34.css.d.ts +15 -0
  106. package/dist/index35.css.d.ts +14 -0
  107. package/dist/index36.css.d.ts +23 -0
  108. package/dist/index37.css.d.ts +14 -0
  109. package/dist/index38.css.d.ts +18 -0
  110. package/dist/index39.css.d.ts +21 -0
  111. package/dist/index4.css.d.ts +22 -0
  112. package/dist/index40.css.d.ts +20 -0
  113. package/dist/index41.css.d.ts +17 -0
  114. package/dist/index42.css.d.ts +14 -0
  115. package/dist/index43.css.d.ts +22 -0
  116. package/dist/index44.css +1 -1
  117. package/dist/index44.css.d.ts +8 -0
  118. package/dist/index45.css +1 -1
  119. package/dist/index45.css.d.ts +35 -0
  120. package/dist/index46.css +1 -1
  121. package/dist/index46.css.d.ts +13 -0
  122. package/dist/index47.css +1 -1
  123. package/dist/index47.css.d.ts +23 -0
  124. package/dist/index48.css +1 -1
  125. package/dist/index48.css.d.ts +12 -0
  126. package/dist/index49.css +1 -1
  127. package/dist/index49.css.d.ts +19 -0
  128. package/dist/index5.css.d.ts +19 -0
  129. package/dist/index50.css +1 -1
  130. package/dist/index50.css.d.ts +20 -0
  131. package/dist/index51.css +1 -1
  132. package/dist/index51.css.d.ts +20 -0
  133. package/dist/index52.css +1 -1
  134. package/dist/index52.css.d.ts +27 -0
  135. package/dist/index53.css +1 -1
  136. package/dist/index53.css.d.ts +17 -0
  137. package/dist/index54.css +1 -1
  138. package/dist/index54.css.d.ts +11 -0
  139. package/dist/index55.css +1 -1
  140. package/dist/index55.css.d.ts +12 -0
  141. package/dist/index56.css +1 -1
  142. package/dist/index56.css.d.ts +14 -0
  143. package/dist/index57.css +1 -1
  144. package/dist/index57.css.d.ts +20 -0
  145. package/dist/index58.css +1 -1
  146. package/dist/index58.css.d.ts +24 -0
  147. package/dist/index59.css +1 -1
  148. package/dist/index59.css.d.ts +13 -0
  149. package/dist/index6.css.d.ts +40 -0
  150. package/dist/index60.css +1 -1
  151. package/dist/index60.css.d.ts +12 -0
  152. package/dist/index61.css +1 -1
  153. package/dist/index61.css.d.ts +20 -0
  154. package/dist/index62.css +1 -1
  155. package/dist/index62.css.d.ts +20 -0
  156. package/dist/index63.css +1 -1
  157. package/dist/index63.css.d.ts +18 -0
  158. package/dist/index64.css +1 -1
  159. package/dist/index64.css.d.ts +22 -0
  160. package/dist/index65.css +1 -1
  161. package/dist/index65.css.d.ts +28 -0
  162. package/dist/index66.css +1 -1
  163. package/dist/index66.css.d.ts +26 -0
  164. package/dist/index67.css +1 -0
  165. package/dist/index67.css.d.ts +19 -0
  166. package/dist/index7.css.d.ts +32 -0
  167. package/dist/index8.css.d.ts +9 -0
  168. package/dist/index9.css.d.ts +7 -0
  169. package/dist/main.cjs +1 -1
  170. package/dist/main.d.ts +16 -0
  171. package/dist/main.mjs +166 -164
  172. package/dist/next/blocks/DocumentListBlock/CategoryFilters.cjs +1 -1
  173. package/dist/next/blocks/DocumentListBlock/CategoryFilters.mjs +2 -2
  174. package/dist/next/blocks/DocumentListBlock/CategoryFilters.test.cjs +1 -1
  175. package/dist/next/blocks/DocumentListBlock/CategoryFilters.test.mjs +1 -1
  176. package/dist/next/blocks/DocumentListBlock/index.cjs +1 -1
  177. package/dist/next/blocks/DocumentListBlock/index.mjs +2 -2
  178. package/dist/next/blocks/FormBlock/index.cjs +1 -1
  179. package/dist/next/blocks/FormBlock/index.mjs +1 -1
  180. package/dist/next/blocks/TabsBlock/index.cjs +1 -1
  181. package/dist/next/blocks/TabsBlock/index.mjs +1 -1
  182. package/dist/next/blocks/WasHelpfulBlock/index.cjs +1 -1
  183. package/dist/next/blocks/WasHelpfulBlock/index.mjs +1 -1
  184. package/dist/next/cards/BlogArticleCard/index.cjs +1 -1
  185. package/dist/next/cards/BlogArticleCard/index.mjs +1 -1
  186. package/dist/next/cards/SpotlightCard/index.cjs +1 -1
  187. package/dist/next/cards/SpotlightCard/index.mjs +1 -1
  188. package/dist/next/ui/CallToAction/index.cjs +1 -1
  189. package/dist/next/ui/CallToAction/index.mjs +1 -1
  190. package/dist/styles.css.d.ts +1 -0
  191. package/dist/tokens.css.d.ts +1 -0
  192. package/package.json +1 -1
  193. package/dist/NavLink-CaWX-AXn.js +0 -159
  194. package/dist/NavLink-jxzO9Z90.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),U=require("react"),B=require("next/image"),G=require("../../../core/components/ButtonGroup/index.cjs"),l=require("../../../index-D0ylyll7.cjs"),I=require("../../../core/components/Modal/index.cjs"),C=require("../../utils/resolveLinkUrl.cjs"),H=require("../../../core/context/ThemeContext.cjs"),Q=require("../../hooks/useMediaQuery.cjs");function W({items:r,alignment:M,spacing:R,mobileOrientation:P="column",className:S}){const[$,F]=U.useState([]),{mode:t}=H.useTheme(),g=Q.useMediaQuery("(max-width: 767px)");return U.useEffect(()=>{if(!(r!=null&&r.length)||!C.resolveLinkURL)return;async function e(){const o=await Promise.all(r.map(a=>C.resolveLinkURL(a)));F(o)}e()},[r]),r!=null&&r.length?n.jsx(G.ButtonGroup,{className:S,alignment:M,spacing:R,mobileOrientation:P,children:r.slice(0,3).map((e,o)=>{var m,d,p,c,h,b,f,y,v,x,_,k,j,T,A,w,q,L;const a=$[o]??"#",i={};if(i.height="auto",((m=e.image)==null?void 0:m.layout)==="cover")i.objectFit="cover",(d=e.image)!=null&&d.position&&(i.objectPosition=g?"top":(p=e.image)==null?void 0:p.position);else if(((c=e.image)==null?void 0:c.layout)==="contain"){if(i.objectFit="contain",((h=e.image)==null?void 0:h.sizing)==="half"?i.width=g?"100%":"50%":((b=e.image)==null?void 0:b.sizing)==="inset"?(i.width="100%",i.maxWidth=e.image.maxWidth??"unset"):i.width="100%",(f=e.image)!=null&&f.aspectRatio){const[O,z]=(y=e.image)==null?void 0:y.aspectRatio.split(":").map(Number);i.aspectRatio=`${O}/${z}`}}else i.objectFit="none";let s;(v=e.image)!=null&&v.imageUrls&&(s=t==="dark"&&((x=e.image.imageUrls.dark)==null?void 0:x.medium)||e.image.imageUrls.default.medium);let u=((j=(k=(_=e.image)==null?void 0:_[t==="dark"?"darkImage":"defaultImage"])==null?void 0:k.asset)==null?void 0:j.altText)||((w=(A=(T=e.image)==null?void 0:T[t==="dark"?"darkImage":"defaultImage"])==null?void 0:A.asset)==null?void 0:w.description)||"Card image";switch(e.type){case"link":return n.jsx(l.Button,{as:"a",variant:e.variant,href:a,target:((q=e.linkOptions)==null?void 0:q.linkType)==="external"?"_blank":"_self",rel:((L=e.linkOptions)==null?void 0:L.linkType)==="external"?"noopener noreferrer":"","aria-label":e.ariaLabel||e.label,icon:e.icon,iconAlignment:e.iconAlignment??"right",displayType:e.displayType,ImageComponent:n.jsx(B,{src:s??"",alt:u,width:600,height:658,priority:!1,style:i}),children:e.label},o);case"scroll":return n.jsx(l.Button,{as:"scroll",variant:e.variant,scrollTarget:e.scrollTarget??"","aria-label":e.ariaLabel||e.label,icon:e.icon,iconAlignment:e.iconAlignment??"right",displayType:e.displayType,ImageComponent:n.jsx(B,{src:s??"",alt:u,width:600,height:658,priority:!1,style:i}),children:e.label},o);case"modal":return n.jsx(I.Modal,{trigger:n.jsx(l.Button,{as:"button",variant:e.variant??"primary",icon:e.icon,iconAlignment:e.iconAlignment??"right","aria-label":e.ariaLabel||e.label,children:e.label}),content:e.modalContent},o);case"video":return n.jsx(I.Modal,{trigger:n.jsx(l.Button,{as:"button",variant:e.variant??"primary",icon:e.icon,iconAlignment:e.iconAlignment??"right","aria-label":e.ariaLabel||e.label,children:e.label}),content:n.jsx("video",{src:e.videoUrl,controls:!0,autoPlay:!0})},o);case"download":return n.jsx(l.Button,{as:"a",variant:e.variant??"primary",href:a,download:!0,target:"_blank",rel:"noopener noreferrer","aria-label":e.ariaLabel||e.label,icon:e.icon,iconAlignment:e.iconAlignment??"right",children:e.label},o)}})}):null}exports.CallToAction=W;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),U=require("react"),B=require("next/image"),G=require("../../../core/components/ButtonGroup/index.cjs"),l=require("../../../index-CAS0iFfs.cjs"),I=require("../../../core/components/Modal/index.cjs"),C=require("../../utils/resolveLinkUrl.cjs"),H=require("../../../core/context/ThemeContext.cjs"),Q=require("../../hooks/useMediaQuery.cjs");function W({items:r,alignment:M,spacing:R,mobileOrientation:P="column",className:S}){const[$,F]=U.useState([]),{mode:t}=H.useTheme(),g=Q.useMediaQuery("(max-width: 767px)");return U.useEffect(()=>{if(!(r!=null&&r.length)||!C.resolveLinkURL)return;async function e(){const o=await Promise.all(r.map(a=>C.resolveLinkURL(a)));F(o)}e()},[r]),r!=null&&r.length?n.jsx(G.ButtonGroup,{className:S,alignment:M,spacing:R,mobileOrientation:P,children:r.slice(0,3).map((e,o)=>{var m,d,p,c,h,b,f,y,v,x,_,k,j,T,A,w,q,L;const a=$[o]??"#",i={};if(i.height="auto",((m=e.image)==null?void 0:m.layout)==="cover")i.objectFit="cover",(d=e.image)!=null&&d.position&&(i.objectPosition=g?"top":(p=e.image)==null?void 0:p.position);else if(((c=e.image)==null?void 0:c.layout)==="contain"){if(i.objectFit="contain",((h=e.image)==null?void 0:h.sizing)==="half"?i.width=g?"100%":"50%":((b=e.image)==null?void 0:b.sizing)==="inset"?(i.width="100%",i.maxWidth=e.image.maxWidth??"unset"):i.width="100%",(f=e.image)!=null&&f.aspectRatio){const[O,z]=(y=e.image)==null?void 0:y.aspectRatio.split(":").map(Number);i.aspectRatio=`${O}/${z}`}}else i.objectFit="none";let s;(v=e.image)!=null&&v.imageUrls&&(s=t==="dark"&&((x=e.image.imageUrls.dark)==null?void 0:x.medium)||e.image.imageUrls.default.medium);let u=((j=(k=(_=e.image)==null?void 0:_[t==="dark"?"darkImage":"defaultImage"])==null?void 0:k.asset)==null?void 0:j.altText)||((w=(A=(T=e.image)==null?void 0:T[t==="dark"?"darkImage":"defaultImage"])==null?void 0:A.asset)==null?void 0:w.description)||"Card image";switch(e.type){case"link":return n.jsx(l.Button,{as:"a",variant:e.variant,href:a,target:((q=e.linkOptions)==null?void 0:q.linkType)==="external"?"_blank":"_self",rel:((L=e.linkOptions)==null?void 0:L.linkType)==="external"?"noopener noreferrer":"","aria-label":e.ariaLabel||e.label,icon:e.icon,iconAlignment:e.iconAlignment??"right",displayType:e.displayType,ImageComponent:n.jsx(B,{src:s??"",alt:u,width:600,height:658,priority:!1,style:i}),children:e.label},o);case"scroll":return n.jsx(l.Button,{as:"scroll",variant:e.variant,scrollTarget:e.scrollTarget??"","aria-label":e.ariaLabel||e.label,icon:e.icon,iconAlignment:e.iconAlignment??"right",displayType:e.displayType,ImageComponent:n.jsx(B,{src:s??"",alt:u,width:600,height:658,priority:!1,style:i}),children:e.label},o);case"modal":return n.jsx(I.Modal,{trigger:n.jsx(l.Button,{as:"button",variant:e.variant??"primary",icon:e.icon,iconAlignment:e.iconAlignment??"right","aria-label":e.ariaLabel||e.label,children:e.label}),content:e.modalContent},o);case"video":return n.jsx(I.Modal,{trigger:n.jsx(l.Button,{as:"button",variant:e.variant??"primary",icon:e.icon,iconAlignment:e.iconAlignment??"right","aria-label":e.ariaLabel||e.label,children:e.label}),content:n.jsx("video",{src:e.videoUrl,controls:!0,autoPlay:!0})},o);case"download":return n.jsx(l.Button,{as:"a",variant:e.variant??"primary",href:a,download:!0,target:"_blank",rel:"noopener noreferrer","aria-label":e.ariaLabel||e.label,icon:e.icon,iconAlignment:e.iconAlignment??"right",children:e.label},o)}})}):null}exports.CallToAction=W;
@@ -2,7 +2,7 @@ import { jsx as r } from "react/jsx-runtime";
2
2
  import { useState as W, useEffect as $ } from "react";
3
3
  import C from "next/image";
4
4
  import { ButtonGroup as E } from "../../../core/components/ButtonGroup/index.mjs";
5
- import { B as a } from "../../../index-CnlJ2RgH.js";
5
+ import { B as a } from "../../../index-Cahn_yoK.js";
6
6
  import { Modal as R } from "../../../core/components/Modal/index.mjs";
7
7
  import { resolveLinkURL as B } from "../../utils/resolveLinkUrl.mjs";
8
8
  import { useTheme as G } from "../../../core/context/ThemeContext.mjs";
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quirk-ui",
3
3
  "private": false,
4
- "version": "0.1.113",
4
+ "version": "0.1.115",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {
@@ -1,159 +0,0 @@
1
- import { jsxs as r, jsx as o } from "react/jsx-runtime";
2
- import { useRef as g, useEffect as h } from "react";
3
- import { E as k } from "./external-link-BOPobeQJ.js";
4
- import { C as v } from "./chevron-down-DSUzBz9F.js";
5
- import './NavLink.css';const f = "_navbar_1dwl0_1", C = "_sticky_1dwl0_15", I = "_left_1dwl0_31", M = "_container_1dwl0_32", y = "_logo_1dwl0_36", T = "_nav_1dwl0_1", N = "_center_1dwl0_51", S = "_hidden_1dwl0_59", W = "_visible_1dwl0_66", x = "_right_1dwl0_81", E = "_title_1dwl0_88", D = "_linkWrapper_1dwl0_98", $ = "_parent_1dwl0_98", F = "_linkItem_1dwl0_105", L = "_link_1dwl0_98", B = "_search_1dwl0_111", R = "_locale_1dwl0_112", j = "_themeToggle_1dwl0_113", z = "_sublinkToggle_1dwl0_114", q = "_standard_1dwl0_165", A = "_triangle_1dwl0_173", G = "_twoColumn_1dwl0_202", H = "_mobileButtons_1dwl0_211", J = "_menuToggle_1dwl0_289", K = "_utilityMobile_1dwl0_307", Q = "_utility_1dwl0_307", U = "_navInner_1dwl0_335", V = "_grid_1dwl0_346", X = "_searchModal_1dwl0_369", Y = "_localeModal_1dwl0_370", Z = "_separator_1dwl0_390", O = "_newTabIcon_1dwl0_432", P = "_sublinksDescription_1dwl0_445", nn = "_linkContent_1dwl0_448", en = "_open_1dwl0_461", ln = "_back_1dwl0_485", on = "_sublinks_1dwl0_445", tn = "_show_1dwl0_534", sn = "_primaryColumn_1dwl0_583", _n = "_secondaryColumn_1dwl0_592", rn = "_spotlightColumn_1dwl0_596", an = "_sublinksInner_1dwl0_600", cn = "_sublinksColumn_1dwl0_619", dn = "_chevron_1dwl0_629", un = "_menubar_1dwl0_641", wn = "_toolbar_1dwl0_645", mn = "_advanced_1dwl0_846", bn = "_subtitle_1dwl0_855", pn = "_withSpotlight_1dwl0_897", gn = "_withoutSpotlight_1dwl0_901", hn = "_transparent_1dwl0_939", kn = "_groupDivider_1dwl0_1071", vn = "_searchWrapper_1dwl0_1079", fn = "_mobileMenu_1dwl0_1086", Cn = "_mobileMenuSlide_1dwl0_1087", In = "_mobileMenuItem_1dwl0_1097", Mn = "_fadeInFromLeft_1dwl0_1101", yn = "_fadeInFromRight_1dwl0_1105", Tn = "_spotlight_1dwl0_596", Nn = "_imageWrapper_1dwl0_1115", Sn = "_content_1dwl0_1137", Wn = "_description_1dwl0_1152", xn = "_actions_1dwl0_1156", e = {
6
- navbar: f,
7
- sticky: C,
8
- left: I,
9
- container: M,
10
- logo: y,
11
- nav: T,
12
- center: N,
13
- hidden: S,
14
- visible: W,
15
- right: x,
16
- title: E,
17
- linkWrapper: D,
18
- parent: $,
19
- linkItem: F,
20
- link: L,
21
- search: B,
22
- locale: R,
23
- themeToggle: j,
24
- sublinkToggle: z,
25
- standard: q,
26
- triangle: A,
27
- twoColumn: G,
28
- mobileButtons: H,
29
- menuToggle: J,
30
- utilityMobile: K,
31
- utility: Q,
32
- navInner: U,
33
- grid: V,
34
- searchModal: X,
35
- localeModal: Y,
36
- separator: Z,
37
- newTabIcon: O,
38
- sublinksDescription: P,
39
- linkContent: nn,
40
- open: en,
41
- back: ln,
42
- sublinks: on,
43
- show: tn,
44
- primaryColumn: sn,
45
- secondaryColumn: _n,
46
- spotlightColumn: rn,
47
- sublinksInner: an,
48
- sublinksColumn: cn,
49
- chevron: dn,
50
- menubar: un,
51
- toolbar: wn,
52
- default: "_default_1dwl0_773",
53
- advanced: mn,
54
- subtitle: bn,
55
- withSpotlight: pn,
56
- withoutSpotlight: gn,
57
- transparent: hn,
58
- groupDivider: kn,
59
- searchWrapper: vn,
60
- mobileMenu: fn,
61
- mobileMenuSlide: Cn,
62
- mobileMenuItem: In,
63
- fadeInFromLeft: Mn,
64
- fadeInFromRight: yn,
65
- spotlight: Tn,
66
- imageWrapper: Nn,
67
- content: Sn,
68
- description: Wn,
69
- actions: xn
70
- };
71
- function Ln({
72
- link: n,
73
- path: l,
74
- parentPath: a,
75
- openPath: m,
76
- togglePath: c,
77
- updateTriangleIndicator: b,
78
- setOpenPath: s,
79
- renderLinks: p,
80
- buttonRefs: _
81
- }) {
82
- var u;
83
- const i = m === l, t = !!((u = n.sublinks) != null && u.length), d = g(null);
84
- return h(() => (_.current.set(l, d.current), () => {
85
- _.current.delete(l);
86
- }), [l, _]), /* @__PURE__ */ r(
87
- "div",
88
- {
89
- role: "menuitem",
90
- className: `${e.linkWrapper} ${a ? "" : e.parent}`,
91
- children: [
92
- /* @__PURE__ */ o("div", { className: e.linkItem, children: n.href ? /* @__PURE__ */ r(
93
- "a",
94
- {
95
- href: n.href,
96
- className: e.link,
97
- target: n.isExternal ? "_blank" : "_self",
98
- rel: n.isExternal ? "noopener noreferrer" : void 0,
99
- onClick: () => {
100
- var w;
101
- s(null), (w = n.onClick) == null || w.call(n);
102
- },
103
- onMouseEnter: () => {
104
- a || s(null);
105
- },
106
- children: [
107
- n.label,
108
- n.isExternal && /* @__PURE__ */ o(
109
- k,
110
- {
111
- className: e.newTabIcon,
112
- size: 16,
113
- "aria-hidden": "true"
114
- }
115
- )
116
- ]
117
- }
118
- ) : /* @__PURE__ */ r(
119
- "button",
120
- {
121
- ref: d,
122
- "aria-haspopup": t ? !0 : void 0,
123
- "aria-expanded": t ? i : void 0,
124
- className: `${e.sublinkToggle} ${i ? e.open : ""}`,
125
- onClick: () => c(l),
126
- onMouseEnter: () => {
127
- b(l), s(l);
128
- },
129
- children: [
130
- n.label,
131
- t && /* @__PURE__ */ o(
132
- v,
133
- {
134
- size: 18,
135
- className: e.chevron,
136
- "aria-hidden": "true"
137
- }
138
- )
139
- ]
140
- }
141
- ) }),
142
- t && /* @__PURE__ */ o(
143
- "div",
144
- {
145
- className: `${e.sublinks} ${i ? e.show : ""}`,
146
- onMouseLeave: () => c(l),
147
- role: "menu",
148
- "aria-label": `${n.label} submenu`,
149
- children: /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o("div", { className: e.sublinksInner, children: /* @__PURE__ */ o("div", { className: e.sublinksColumn, children: p(n.sublinks, l) }) }) })
150
- }
151
- )
152
- ]
153
- }
154
- );
155
- }
156
- export {
157
- Ln as N,
158
- e as s
159
- };
@@ -1 +0,0 @@
1
- "use strict";require('./NavLink.css');const l=require("react/jsx-runtime"),w=require("react"),h=require("./external-link-DDShu-48.cjs"),p=require("./chevron-down-DfK1XBl3.cjs"),k="_navbar_1dwl0_1",v="_sticky_1dwl0_15",f="_left_1dwl0_31",I="_container_1dwl0_32",C="_logo_1dwl0_36",M="_nav_1dwl0_1",y="_center_1dwl0_51",x="_hidden_1dwl0_59",T="_visible_1dwl0_66",N="_right_1dwl0_81",j="_title_1dwl0_88",S="_linkWrapper_1dwl0_98",W="_parent_1dwl0_98",$="_linkItem_1dwl0_105",D="_link_1dwl0_98",L="_search_1dwl0_111",E="_locale_1dwl0_112",F="_themeToggle_1dwl0_113",q="_sublinkToggle_1dwl0_114",R="_standard_1dwl0_165",B="_triangle_1dwl0_173",z="_twoColumn_1dwl0_202",A="_mobileButtons_1dwl0_211",G="_menuToggle_1dwl0_289",H="_utilityMobile_1dwl0_307",J="_utility_1dwl0_307",K="_navInner_1dwl0_335",Q="_grid_1dwl0_346",U="_searchModal_1dwl0_369",V="_localeModal_1dwl0_370",X="_separator_1dwl0_390",Y="_newTabIcon_1dwl0_432",Z="_sublinksDescription_1dwl0_445",O="_linkContent_1dwl0_448",P="_open_1dwl0_461",nn="_back_1dwl0_485",en="_sublinks_1dwl0_445",ln="_show_1dwl0_534",on="_primaryColumn_1dwl0_583",tn="_secondaryColumn_1dwl0_592",sn="_spotlightColumn_1dwl0_596",_n="_sublinksInner_1dwl0_600",rn="_sublinksColumn_1dwl0_619",cn="_chevron_1dwl0_629",an="_menubar_1dwl0_641",dn="_toolbar_1dwl0_645",un="_advanced_1dwl0_846",wn="_subtitle_1dwl0_855",mn="_withSpotlight_1dwl0_897",bn="_withoutSpotlight_1dwl0_901",gn="_transparent_1dwl0_939",hn="_groupDivider_1dwl0_1071",pn="_searchWrapper_1dwl0_1079",kn="_mobileMenu_1dwl0_1086",vn="_mobileMenuSlide_1dwl0_1087",fn="_mobileMenuItem_1dwl0_1097",In="_fadeInFromLeft_1dwl0_1101",Cn="_fadeInFromRight_1dwl0_1105",Mn="_spotlight_1dwl0_596",yn="_imageWrapper_1dwl0_1115",xn="_content_1dwl0_1137",Tn="_description_1dwl0_1152",Nn="_actions_1dwl0_1156",e={navbar:k,sticky:v,left:f,container:I,logo:C,nav:M,center:y,hidden:x,visible:T,right:N,title:j,linkWrapper:S,parent:W,linkItem:$,link:D,search:L,locale:E,themeToggle:F,sublinkToggle:q,standard:R,triangle:B,twoColumn:z,mobileButtons:A,menuToggle:G,utilityMobile:H,utility:J,navInner:K,grid:Q,searchModal:U,localeModal:V,separator:X,newTabIcon:Y,sublinksDescription:Z,linkContent:O,open:P,back:nn,sublinks:en,show:ln,primaryColumn:on,secondaryColumn:tn,spotlightColumn:sn,sublinksInner:_n,sublinksColumn:rn,chevron:cn,menubar:an,toolbar:dn,default:"_default_1dwl0_773",advanced:un,subtitle:wn,withSpotlight:mn,withoutSpotlight:bn,transparent:gn,groupDivider:hn,searchWrapper:pn,mobileMenu:kn,mobileMenuSlide:vn,mobileMenuItem:fn,fadeInFromLeft:In,fadeInFromRight:Cn,spotlight:Mn,imageWrapper:yn,content:xn,description:Tn,actions:Nn};function jn({link:n,path:o,parentPath:r,openPath:m,togglePath:c,updateTriangleIndicator:b,setOpenPath:s,renderLinks:g,buttonRefs:_}){var d;const i=m===o,t=!!((d=n.sublinks)!=null&&d.length),a=w.useRef(null);return w.useEffect(()=>(_.current.set(o,a.current),()=>{_.current.delete(o)}),[o,_]),l.jsxs("div",{role:"menuitem",className:`${e.linkWrapper} ${r?"":e.parent}`,children:[l.jsx("div",{className:e.linkItem,children:n.href?l.jsxs("a",{href:n.href,className:e.link,target:n.isExternal?"_blank":"_self",rel:n.isExternal?"noopener noreferrer":void 0,onClick:()=>{var u;s(null),(u=n.onClick)==null||u.call(n)},onMouseEnter:()=>{r||s(null)},children:[n.label,n.isExternal&&l.jsx(h.ExternalLink,{className:e.newTabIcon,size:16,"aria-hidden":"true"})]}):l.jsxs("button",{ref:a,"aria-haspopup":t?!0:void 0,"aria-expanded":t?i:void 0,className:`${e.sublinkToggle} ${i?e.open:""}`,onClick:()=>c(o),onMouseEnter:()=>{b(o),s(o)},children:[n.label,t&&l.jsx(p.ChevronDown,{size:18,className:e.chevron,"aria-hidden":"true"})]})}),t&&l.jsx("div",{className:`${e.sublinks} ${i?e.show:""}`,onMouseLeave:()=>c(o),role:"menu","aria-label":`${n.label} submenu`,children:l.jsx("div",{children:l.jsx("div",{className:e.sublinksInner,children:l.jsx("div",{className:e.sublinksColumn,children:g(n.sublinks,o)})})})})]})}exports.NavLink=jn;exports.styles=e;