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.
- package/dist/AccordionItem.css.d.ts +13 -0
- package/dist/{CategoryFilters-CIWwf9VY.js → CategoryFilters-CR4MkgvA.js} +1 -1
- package/dist/{CategoryFilters-CvmFCE3e.cjs → CategoryFilters-oA43LCO6.cjs} +1 -1
- package/dist/CategoryFilters.css.d.ts +31 -0
- package/dist/FormField.css.d.ts +27 -0
- package/dist/HeroSubComponents.css.d.ts +30 -0
- package/dist/NavLink-Cog4-Ds3.cjs +1 -0
- package/dist/NavLink-DhezdhFU.js +161 -0
- package/dist/NavLink.css +1 -1
- package/dist/NavLink.css.d.ts +76 -0
- package/dist/core/components/Announcement/Announcement.test.cjs +1 -0
- package/dist/core/components/Announcement/Announcement.test.mjs +107 -0
- package/dist/core/components/Announcement/index.cjs +1 -0
- package/dist/core/components/Announcement/index.mjs +41 -0
- package/dist/core/components/Box/index.cjs +1 -1
- package/dist/core/components/Box/index.mjs +1 -1
- package/dist/core/components/Breadcrumbs/index.cjs +1 -1
- package/dist/core/components/Breadcrumbs/index.mjs +1 -1
- package/dist/core/components/Button/Button.test.cjs +1 -1
- package/dist/core/components/Button/Button.test.mjs +1 -1
- package/dist/core/components/Button/index.cjs +1 -1
- package/dist/core/components/Button/index.mjs +1 -1
- package/dist/core/components/Calendar/Calendar.test.cjs +1 -1
- package/dist/core/components/Calendar/Calendar.test.mjs +1 -1
- package/dist/core/components/Calendar/index.cjs +1 -1
- package/dist/core/components/Calendar/index.mjs +1 -1
- package/dist/core/components/Card/index.cjs +1 -1
- package/dist/core/components/Card/index.mjs +1 -1
- package/dist/core/components/Container/index.cjs +1 -1
- package/dist/core/components/Container/index.mjs +1 -1
- package/dist/core/components/DatePicker/DatePicker.test.cjs +1 -1
- package/dist/core/components/DatePicker/DatePicker.test.mjs +1 -1
- package/dist/core/components/DatePicker/index.cjs +1 -1
- package/dist/core/components/DatePicker/index.mjs +2 -2
- package/dist/core/components/Divider/index.cjs +1 -1
- package/dist/core/components/Divider/index.mjs +1 -1
- package/dist/core/components/Drawer/index.cjs +1 -1
- package/dist/core/components/Drawer/index.mjs +1 -1
- package/dist/core/components/FileUpload/index.cjs +1 -1
- package/dist/core/components/FileUpload/index.mjs +1 -1
- package/dist/core/components/FloatingActionButton/index.cjs +1 -1
- package/dist/core/components/FloatingActionButton/index.mjs +1 -1
- package/dist/core/components/Footer/index.cjs +1 -1
- package/dist/core/components/Footer/index.mjs +2 -2
- package/dist/core/components/List/index.cjs +1 -1
- package/dist/core/components/List/index.mjs +1 -1
- package/dist/core/components/NavBar/NavLink.cjs +1 -1
- package/dist/core/components/NavBar/NavLink.mjs +1 -1
- package/dist/core/components/NavBar/index.cjs +3 -3
- package/dist/core/components/NavBar/index.mjs +70 -69
- package/dist/core/components/Notification/index.cjs +1 -1
- package/dist/core/components/Notification/index.mjs +1 -1
- package/dist/core/components/NotificationContainer/index.cjs +1 -1
- package/dist/core/components/NotificationContainer/index.mjs +1 -1
- package/dist/core/components/Sidebar/index.cjs +1 -1
- package/dist/core/components/Sidebar/index.mjs +1 -1
- package/dist/core/components/Skeleton/index.cjs +1 -1
- package/dist/core/components/Skeleton/index.mjs +1 -1
- package/dist/core/components/Spacer/index.cjs +1 -1
- package/dist/core/components/Spacer/index.mjs +1 -1
- package/dist/core/components/Spinner/index.cjs +1 -1
- package/dist/core/components/Spinner/index.mjs +1 -1
- package/dist/core/components/Stack/index.cjs +1 -1
- package/dist/core/components/Stack/index.mjs +1 -1
- package/dist/core/components/Switch/index.cjs +1 -1
- package/dist/core/components/Switch/index.mjs +1 -1
- package/dist/core/components/Tooltip/index.cjs +1 -1
- package/dist/core/components/Tooltip/index.mjs +1 -1
- package/dist/core/tokens/theme.cjs +1 -1
- package/dist/core/tokens/theme.mjs +2 -2
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +16 -0
- package/dist/core.mjs +94 -92
- package/dist/{index-2ZLA4POI.js → index-BCIEIAnC.js} +1 -1
- package/dist/{index-D0ylyll7.cjs → index-CAS0iFfs.cjs} +1 -1
- package/dist/{index-odc0vuSq.cjs → index-CMkOXBU5.cjs} +1 -1
- package/dist/{index-CnlJ2RgH.js → index-Cahn_yoK.js} +1 -1
- package/dist/index.css.d.ts +1 -0
- package/dist/index10.css.d.ts +10 -0
- package/dist/index11.css.d.ts +26 -0
- package/dist/index12.css.d.ts +24 -0
- package/dist/index13.css.d.ts +33 -0
- package/dist/index14.css.d.ts +9 -0
- package/dist/index15.css.d.ts +10 -0
- package/dist/index16.css.d.ts +18 -0
- package/dist/index17.css.d.ts +38 -0
- package/dist/index18.css.d.ts +16 -0
- package/dist/index19.css.d.ts +14 -0
- package/dist/index2.css.d.ts +12 -0
- package/dist/index20.css.d.ts +17 -0
- package/dist/index21.css.d.ts +13 -0
- package/dist/index22.css.d.ts +25 -0
- package/dist/index23.css.d.ts +5 -0
- package/dist/index24.css.d.ts +19 -0
- package/dist/index25.css.d.ts +21 -0
- package/dist/index26.css.d.ts +16 -0
- package/dist/index27.css.d.ts +10 -0
- package/dist/index28.css.d.ts +18 -0
- package/dist/index29.css.d.ts +16 -0
- package/dist/index3.css.d.ts +10 -0
- package/dist/index30.css.d.ts +10 -0
- package/dist/index31.css.d.ts +19 -0
- package/dist/index32.css.d.ts +15 -0
- package/dist/index33.css.d.ts +22 -0
- package/dist/index34.css.d.ts +15 -0
- package/dist/index35.css.d.ts +14 -0
- package/dist/index36.css.d.ts +23 -0
- package/dist/index37.css.d.ts +14 -0
- package/dist/index38.css.d.ts +18 -0
- package/dist/index39.css.d.ts +21 -0
- package/dist/index4.css.d.ts +22 -0
- package/dist/index40.css.d.ts +20 -0
- package/dist/index41.css.d.ts +17 -0
- package/dist/index42.css.d.ts +14 -0
- package/dist/index43.css.d.ts +22 -0
- package/dist/index44.css +1 -1
- package/dist/index44.css.d.ts +8 -0
- package/dist/index45.css +1 -1
- package/dist/index45.css.d.ts +35 -0
- package/dist/index46.css +1 -1
- package/dist/index46.css.d.ts +13 -0
- package/dist/index47.css +1 -1
- package/dist/index47.css.d.ts +23 -0
- package/dist/index48.css +1 -1
- package/dist/index48.css.d.ts +12 -0
- package/dist/index49.css +1 -1
- package/dist/index49.css.d.ts +19 -0
- package/dist/index5.css.d.ts +19 -0
- package/dist/index50.css +1 -1
- package/dist/index50.css.d.ts +20 -0
- package/dist/index51.css +1 -1
- package/dist/index51.css.d.ts +20 -0
- package/dist/index52.css +1 -1
- package/dist/index52.css.d.ts +27 -0
- package/dist/index53.css +1 -1
- package/dist/index53.css.d.ts +17 -0
- package/dist/index54.css +1 -1
- package/dist/index54.css.d.ts +11 -0
- package/dist/index55.css +1 -1
- package/dist/index55.css.d.ts +12 -0
- package/dist/index56.css +1 -1
- package/dist/index56.css.d.ts +14 -0
- package/dist/index57.css +1 -1
- package/dist/index57.css.d.ts +20 -0
- package/dist/index58.css +1 -1
- package/dist/index58.css.d.ts +24 -0
- package/dist/index59.css +1 -1
- package/dist/index59.css.d.ts +13 -0
- package/dist/index6.css.d.ts +40 -0
- package/dist/index60.css +1 -1
- package/dist/index60.css.d.ts +12 -0
- package/dist/index61.css +1 -1
- package/dist/index61.css.d.ts +20 -0
- package/dist/index62.css +1 -1
- package/dist/index62.css.d.ts +20 -0
- package/dist/index63.css +1 -1
- package/dist/index63.css.d.ts +18 -0
- package/dist/index64.css +1 -1
- package/dist/index64.css.d.ts +22 -0
- package/dist/index65.css +1 -1
- package/dist/index65.css.d.ts +28 -0
- package/dist/index66.css +1 -1
- package/dist/index66.css.d.ts +26 -0
- package/dist/index67.css +1 -0
- package/dist/index67.css.d.ts +19 -0
- package/dist/index7.css.d.ts +32 -0
- package/dist/index8.css.d.ts +9 -0
- package/dist/index9.css.d.ts +7 -0
- package/dist/main.cjs +1 -1
- package/dist/main.d.ts +16 -0
- package/dist/main.mjs +166 -164
- package/dist/next/blocks/DocumentListBlock/CategoryFilters.cjs +1 -1
- package/dist/next/blocks/DocumentListBlock/CategoryFilters.mjs +2 -2
- package/dist/next/blocks/DocumentListBlock/CategoryFilters.test.cjs +1 -1
- package/dist/next/blocks/DocumentListBlock/CategoryFilters.test.mjs +1 -1
- package/dist/next/blocks/DocumentListBlock/index.cjs +1 -1
- package/dist/next/blocks/DocumentListBlock/index.mjs +2 -2
- package/dist/next/blocks/FormBlock/index.cjs +1 -1
- package/dist/next/blocks/FormBlock/index.mjs +1 -1
- package/dist/next/blocks/TabsBlock/index.cjs +1 -1
- package/dist/next/blocks/TabsBlock/index.mjs +1 -1
- package/dist/next/blocks/WasHelpfulBlock/index.cjs +1 -1
- package/dist/next/blocks/WasHelpfulBlock/index.mjs +1 -1
- package/dist/next/cards/BlogArticleCard/index.cjs +1 -1
- package/dist/next/cards/BlogArticleCard/index.mjs +1 -1
- package/dist/next/cards/SpotlightCard/index.cjs +1 -1
- package/dist/next/cards/SpotlightCard/index.mjs +1 -1
- package/dist/next/ui/CallToAction/index.cjs +1 -1
- package/dist/next/ui/CallToAction/index.mjs +1 -1
- package/dist/styles.css.d.ts +1 -0
- package/dist/tokens.css.d.ts +1 -0
- package/package.json +1 -1
- package/dist/NavLink-CaWX-AXn.js +0 -159
- 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-
|
|
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-
|
|
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
package/dist/NavLink-CaWX-AXn.js
DELETED
|
@@ -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;
|