quirk-ui 0.0.415 → 0.0.416
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/CategoryFilters-CNNdqidd.cjs +1 -0
- package/dist/{CategoryFilters-CfNLa3wI.js → CategoryFilters-DYRUC4Cx.js} +5 -5
- package/dist/NavLink-BxpV3lSS.cjs +1 -0
- package/dist/NavLink-RkB5XhMV.js +136 -0
- package/dist/core/components/CallToAction/CallToAction.test.cjs +1 -1
- package/dist/core/components/CallToAction/CallToAction.test.mjs +1 -1
- package/dist/core/components/CallToAction/index.cjs +1 -31
- package/dist/core/components/CallToAction/index.mjs +9 -167
- package/dist/core/components/Footer/index.cjs +1 -1
- package/dist/core/components/Footer/index.mjs +5 -5
- 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 +16 -1
- package/dist/core/components/NavBar/index.mjs +444 -148
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.mjs +12 -12
- package/dist/index-CF-7InbH.cjs +31 -0
- package/dist/index-FuTQRxMN.js +170 -0
- package/dist/main.cjs +1 -1
- package/dist/main.d.ts +1 -1
- package/dist/main.mjs +12 -12
- package/dist/next/blocks/DocumentListBlock/CategoryFilters.cjs +1 -1
- package/dist/next/blocks/DocumentListBlock/CategoryFilters.mjs +2 -2
- package/dist/next/blocks/DocumentListBlock/index.cjs +1 -1
- package/dist/next/blocks/DocumentListBlock/index.mjs +17 -17
- package/dist/next/blocks/TabsBlock/index.cjs +1 -1
- package/dist/next/blocks/TabsBlock/index.mjs +7 -7
- package/dist/next/blocks/WasHelpfulBlock/index.cjs +1 -1
- package/dist/next/blocks/WasHelpfulBlock/index.mjs +3 -3
- package/dist/next/cards/SpotlightCard/index.cjs +1 -1
- package/dist/next/cards/SpotlightCard/index.mjs +8 -8
- package/dist/next/ui/CallToActions/index.cjs +1 -1
- package/dist/next/ui/CallToActions/index.mjs +4 -4
- package/package.json +1 -1
- package/dist/CategoryFilters-C1aY0Z01.cjs +0 -1
- package/dist/NavLink-B-VlTZ4z.cjs +0 -1
- package/dist/NavLink-DIfybFk5.js +0 -119
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/colors.css');require('./assets/index.css');require('./assets/CategoryFilters.css');const e=require("react/jsx-runtime");;/* empty css */require("react");const z=require("./index-CF-7InbH.cjs");require("react-dom");require("./core/components/Tabs/index.cjs");;/* empty css */const p=require("./x-Dft9NVe_.cjs"),x="_documentList_17zlj_1",F="_container_17zlj_9",H="_heading_17zlj_20",L="_listContainer_17zlj_26",S="_listWrapper_17zlj_37",m="_list_17zlj_26",q="_listHeader_17zlj_58",b="_listSearch_17zlj_71",f="_clearSearch_17zlj_98",g="_listHeaderFilters_17zlj_117",C="_listResults_17zlj_128",k="_listSort_17zlj_132",y="_filterToggle_17zlj_155",v="_filterHeader_17zlj_170",w="_loadMore_17zlj_191",T="_filterList_17zlj_195",N="_listFilters_17zlj_202",$="_applyFilters_17zlj_210",A="_show_17zlj_239",I="_hide_17zlj_248",M="_buttonIsLoading_17zlj_299",t={documentList:x,container:F,heading:H,listContainer:L,listWrapper:S,list:m,listHeader:q,listSearch:b,clearSearch:f,listHeaderFilters:g,listResults:C,listSort:k,filterToggle:y,filterHeader:v,loadMore:w,filterList:T,listFilters:N,applyFilters:$,show:A,hide:I,buttonIsLoading:M};function R({categoryFilters:l,selectedCategories:i,setSelectedCategories:n,setArticles:_,setStart:o,setHasMore:c,showFilters:a,toggleFilters:r,isLoading:d}){return e.jsxs("div",{className:`${t.listFilters} ${a?t.show:t.hide}`,children:[e.jsxs("div",{className:t.filterHeader,children:[e.jsx("h5",{children:"Filters"}),e.jsx("button",{onClick:()=>r(),children:e.jsx(p.X,{size:24})})]}),e.jsx("div",{className:t.filterList,children:l==null?void 0:l.map(s=>e.jsxs("label",{children:[e.jsx("input",{type:"checkbox",value:s._id,checked:i.includes(s._id),onChange:h=>{const j=h.target.checked?[...i,s._id]:i.filter(u=>u!==s._id);_([]),o(0),c(!0),n(j)}}),s.title]},s._id))}),e.jsx(z.CallToAction,{as:"button",variant:"secondary",onClick:r,disabled:d,className:t.applyFilters,children:"Apply Filters"})]})}exports.CategoryFilters=R;exports.styles=t;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsxs as r, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import './assets/colors.css';import './assets/index.css';import './assets/CategoryFilters.css';/* empty css */
|
|
3
3
|
import "react";
|
|
4
|
-
import {
|
|
4
|
+
import { C as m } from "./index-FuTQRxMN.js";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
import "./core/components/Tabs/index.mjs";
|
|
7
7
|
/* empty css */
|
|
8
8
|
import { X as u } from "./x-CnsEH4Ox.js";
|
|
9
|
-
const f = "_documentList_17zlj_1", H = "_container_17zlj_9", L = "_heading_17zlj_20", S = "_listContainer_17zlj_26", F = "_listWrapper_17zlj_37", b = "_list_17zlj_26",
|
|
9
|
+
const f = "_documentList_17zlj_1", H = "_container_17zlj_9", L = "_heading_17zlj_20", S = "_listContainer_17zlj_26", F = "_listWrapper_17zlj_37", b = "_list_17zlj_26", C = "_listHeader_17zlj_58", g = "_listSearch_17zlj_71", k = "_clearSearch_17zlj_98", v = "_listHeaderFilters_17zlj_117", w = "_listResults_17zlj_128", y = "_listSort_17zlj_132", x = "_filterToggle_17zlj_155", N = "_filterHeader_17zlj_170", T = "_loadMore_17zlj_191", I = "_filterList_17zlj_195", M = "_listFilters_17zlj_202", R = "_applyFilters_17zlj_210", W = "_show_17zlj_239", A = "_hide_17zlj_248", $ = "_buttonIsLoading_17zlj_299", i = {
|
|
10
10
|
documentList: f,
|
|
11
11
|
container: H,
|
|
12
12
|
heading: L,
|
|
13
13
|
listContainer: S,
|
|
14
14
|
listWrapper: F,
|
|
15
15
|
list: b,
|
|
16
|
-
listHeader:
|
|
17
|
-
listSearch:
|
|
18
|
-
clearSearch:
|
|
16
|
+
listHeader: C,
|
|
17
|
+
listSearch: g,
|
|
18
|
+
clearSearch: k,
|
|
19
19
|
listHeaderFilters: v,
|
|
20
20
|
listResults: w,
|
|
21
21
|
listSort: y,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/NavLink.css');const e=require("react/jsx-runtime"),p=require("react"),g=require("./external-link-DDShu-48.cjs"),k=require("./chevron-down-DfK1XBl3.cjs"),v="_navbar_1bon6_5",f="_sticky_1bon6_19",I="_left_1bon6_34",C="_container_1bon6_35",M="_logo_1bon6_39",w="_nav_1bon6_5",y="_center_1bon6_54",x="_hidden_1bon6_60",N="_visible_1bon6_67",T="_right_1bon6_82",j="_title_1bon6_89",S="_linkWrapper_1bon6_99",$="_parent_1bon6_99",D="_linkItem_1bon6_107",L="_link_1bon6_99",W="_search_1bon6_109",E="_locale_1bon6_110",F="_sublinkToggle_1bon6_111",R="_standard_1bon6_159",q="_triangle_1bon6_167",B="_transparent_1bon6_172",z="_utility_1bon6_226",A="_menuToggle_1bon6_246",G="_twoColumn_1bon6_276",H="_mobileButtons_1bon6_285",J="_utilityMobile_1bon6_370",K="_navInner_1bon6_398",Q="_grid_1bon6_409",U="_searchModal_1bon6_428",V="_localeModal_1bon6_429",X="_separator_1bon6_444",Y="_newTabIcon_1bon6_474",Z="_sublinksDescription_1bon6_486",O="_linkContent_1bon6_489",P="_open_1bon6_500",nn="_back_1bon6_524",on="_sublinks_1bon6_486",en="_show_1bon6_571",sn="_primaryColumn_1bon6_612",tn="_secondaryColumn_1bon6_621",_n="_spotlightColumn_1bon6_625",ln="_sublinksInner_1bon6_629",rn="_sublinksColumn_1bon6_647",cn="_chevron_1bon6_657",an="_advanced_1bon6_839",bn="_subtitle_1bon6_848",un="_withSpotlight_1bon6_890",dn="_withoutSpotlight_1bon6_894",mn="_groupDivider_1bon6_932",hn="_searchWrapper_1bon6_940",pn="_mobileMenu_1bon6_947",gn="_mobileMenuSlide_1bon6_948",kn="_mobileMenuItem_1bon6_958",vn="_fadeInFromLeft_1bon6_962",fn="_fadeInFromRight_1bon6_966",o={navbar:v,sticky:f,left:I,container:C,logo:M,nav:w,center:y,hidden:x,visible:N,right:T,title:j,linkWrapper:S,parent:$,linkItem:D,link:L,search:W,locale:E,sublinkToggle:F,standard:R,triangle:q,transparent:B,utility:z,menuToggle:A,twoColumn:G,mobileButtons:H,utilityMobile:J,navInner:K,grid:Q,searchModal:U,localeModal:V,separator:X,newTabIcon:Y,sublinksDescription:Z,linkContent:O,open:P,back:nn,sublinks:on,show:en,primaryColumn:sn,secondaryColumn:tn,spotlightColumn:_n,sublinksInner:ln,sublinksColumn:rn,chevron:cn,default:"_default_1bon6_773",advanced:an,subtitle:bn,withSpotlight:un,withoutSpotlight:dn,groupDivider:mn,searchWrapper:hn,mobileMenu:pn,mobileMenuSlide:gn,mobileMenuItem:kn,fadeInFromLeft:vn,fadeInFromRight:fn};function In({link:n,path:s,parentPath:i,openPath:u,togglePath:r,updateTriangleIndicator:d,setOpenPath:t,renderLinks:m,buttonRefs:h}){var a;const _=u===s,l=!!((a=n.sublinks)!=null&&a.length),c=p.useRef(null);return h.current.set(s,c.current),e.jsxs("div",{className:`${o.linkWrapper} ${i?"":o.parent}`,children:[e.jsx("div",{className:o.linkItem,children:n.href?e.jsxs("a",{href:n.href,className:o.link,target:n.isExternal?"_blank":"_self",rel:n.isExternal?"noopener noreferrer":void 0,onClick:()=>{var b;t(null),(b=n.onClick)==null||b.call(n)},onMouseEnter:()=>{i||t(null)},role:"menuitem",children:[n.label,n.isExternal&&e.jsx(g.ExternalLink,{className:o.newTabIcon,size:16})]}):e.jsxs("button",{ref:c,"aria-haspopup":l?"true":void 0,"aria-expanded":_,className:`${o.sublinkToggle} ${_?o.open:""}`,onClick:()=>r(s),onMouseEnter:()=>{d(s),t(s)},children:[n.label,l&&e.jsx(k.ChevronDown,{size:18,className:o.chevron})]})}),l&&e.jsx("div",{className:`${o.sublinks} ${_?o.show:""}`,onMouseLeave:()=>r(s),role:"menu","aria-label":`${n.label} submenu`,children:e.jsx("div",{children:e.jsx("div",{className:o.sublinksInner,children:e.jsx("div",{className:o.sublinksColumn,children:m(n.sublinks,s)})})})})]},s)}exports.NavLink=In;exports.styles=o;
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as g } from "react";
|
|
3
|
+
import { E as k } from "./external-link-BOPobeQJ.js";
|
|
4
|
+
import { C as v } from "./chevron-down-DSUzBz9F.js";
|
|
5
|
+
import './assets/NavLink.css';const f = "_navbar_1bon6_5", C = "_sticky_1bon6_19", I = "_left_1bon6_34", M = "_container_1bon6_35", w = "_logo_1bon6_39", y = "_nav_1bon6_5", N = "_center_1bon6_54", T = "_hidden_1bon6_60", S = "_visible_1bon6_67", x = "_right_1bon6_82", D = "_title_1bon6_89", E = "_linkWrapper_1bon6_99", W = "_parent_1bon6_99", $ = "_linkItem_1bon6_107", F = "_link_1bon6_99", L = "_search_1bon6_109", R = "_locale_1bon6_110", B = "_sublinkToggle_1bon6_111", j = "_standard_1bon6_159", z = "_triangle_1bon6_167", q = "_transparent_1bon6_172", A = "_utility_1bon6_226", G = "_menuToggle_1bon6_246", H = "_twoColumn_1bon6_276", J = "_mobileButtons_1bon6_285", K = "_utilityMobile_1bon6_370", Q = "_navInner_1bon6_398", U = "_grid_1bon6_409", V = "_searchModal_1bon6_428", X = "_localeModal_1bon6_429", Y = "_separator_1bon6_444", Z = "_newTabIcon_1bon6_474", O = "_sublinksDescription_1bon6_486", P = "_linkContent_1bon6_489", nn = "_open_1bon6_500", on = "_back_1bon6_524", en = "_sublinks_1bon6_486", tn = "_show_1bon6_571", sn = "_primaryColumn_1bon6_612", _n = "_secondaryColumn_1bon6_621", ln = "_spotlightColumn_1bon6_625", rn = "_sublinksInner_1bon6_629", an = "_sublinksColumn_1bon6_647", cn = "_chevron_1bon6_657", bn = "_advanced_1bon6_839", un = "_subtitle_1bon6_848", mn = "_withSpotlight_1bon6_890", dn = "_withoutSpotlight_1bon6_894", pn = "_groupDivider_1bon6_932", hn = "_searchWrapper_1bon6_940", gn = "_mobileMenu_1bon6_947", kn = "_mobileMenuSlide_1bon6_948", vn = "_mobileMenuItem_1bon6_958", fn = "_fadeInFromLeft_1bon6_962", Cn = "_fadeInFromRight_1bon6_966", o = {
|
|
6
|
+
navbar: f,
|
|
7
|
+
sticky: C,
|
|
8
|
+
left: I,
|
|
9
|
+
container: M,
|
|
10
|
+
logo: w,
|
|
11
|
+
nav: y,
|
|
12
|
+
center: N,
|
|
13
|
+
hidden: T,
|
|
14
|
+
visible: S,
|
|
15
|
+
right: x,
|
|
16
|
+
title: D,
|
|
17
|
+
linkWrapper: E,
|
|
18
|
+
parent: W,
|
|
19
|
+
linkItem: $,
|
|
20
|
+
link: F,
|
|
21
|
+
search: L,
|
|
22
|
+
locale: R,
|
|
23
|
+
sublinkToggle: B,
|
|
24
|
+
standard: j,
|
|
25
|
+
triangle: z,
|
|
26
|
+
transparent: q,
|
|
27
|
+
utility: A,
|
|
28
|
+
menuToggle: G,
|
|
29
|
+
twoColumn: H,
|
|
30
|
+
mobileButtons: J,
|
|
31
|
+
utilityMobile: K,
|
|
32
|
+
navInner: Q,
|
|
33
|
+
grid: U,
|
|
34
|
+
searchModal: V,
|
|
35
|
+
localeModal: X,
|
|
36
|
+
separator: Y,
|
|
37
|
+
newTabIcon: Z,
|
|
38
|
+
sublinksDescription: O,
|
|
39
|
+
linkContent: P,
|
|
40
|
+
open: nn,
|
|
41
|
+
back: on,
|
|
42
|
+
sublinks: en,
|
|
43
|
+
show: tn,
|
|
44
|
+
primaryColumn: sn,
|
|
45
|
+
secondaryColumn: _n,
|
|
46
|
+
spotlightColumn: ln,
|
|
47
|
+
sublinksInner: rn,
|
|
48
|
+
sublinksColumn: an,
|
|
49
|
+
chevron: cn,
|
|
50
|
+
default: "_default_1bon6_773",
|
|
51
|
+
advanced: bn,
|
|
52
|
+
subtitle: un,
|
|
53
|
+
withSpotlight: mn,
|
|
54
|
+
withoutSpotlight: dn,
|
|
55
|
+
groupDivider: pn,
|
|
56
|
+
searchWrapper: hn,
|
|
57
|
+
mobileMenu: gn,
|
|
58
|
+
mobileMenuSlide: kn,
|
|
59
|
+
mobileMenuItem: vn,
|
|
60
|
+
fadeInFromLeft: fn,
|
|
61
|
+
fadeInFromRight: Cn
|
|
62
|
+
};
|
|
63
|
+
function Nn({
|
|
64
|
+
link: n,
|
|
65
|
+
path: e,
|
|
66
|
+
parentPath: r,
|
|
67
|
+
openPath: m,
|
|
68
|
+
togglePath: a,
|
|
69
|
+
updateTriangleIndicator: d,
|
|
70
|
+
setOpenPath: s,
|
|
71
|
+
renderLinks: p,
|
|
72
|
+
buttonRefs: h
|
|
73
|
+
}) {
|
|
74
|
+
var b;
|
|
75
|
+
const _ = m === e, l = !!((b = n.sublinks) != null && b.length), c = g(null);
|
|
76
|
+
return h.current.set(e, c.current), /* @__PURE__ */ i(
|
|
77
|
+
"div",
|
|
78
|
+
{
|
|
79
|
+
className: `${o.linkWrapper} ${r ? "" : o.parent}`,
|
|
80
|
+
children: [
|
|
81
|
+
/* @__PURE__ */ t("div", { className: o.linkItem, children: n.href ? /* @__PURE__ */ i(
|
|
82
|
+
"a",
|
|
83
|
+
{
|
|
84
|
+
href: n.href,
|
|
85
|
+
className: o.link,
|
|
86
|
+
target: n.isExternal ? "_blank" : "_self",
|
|
87
|
+
rel: n.isExternal ? "noopener noreferrer" : void 0,
|
|
88
|
+
onClick: () => {
|
|
89
|
+
var u;
|
|
90
|
+
s(null), (u = n.onClick) == null || u.call(n);
|
|
91
|
+
},
|
|
92
|
+
onMouseEnter: () => {
|
|
93
|
+
r || s(null);
|
|
94
|
+
},
|
|
95
|
+
role: "menuitem",
|
|
96
|
+
children: [
|
|
97
|
+
n.label,
|
|
98
|
+
n.isExternal && /* @__PURE__ */ t(k, { className: o.newTabIcon, size: 16 })
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
) : /* @__PURE__ */ i(
|
|
102
|
+
"button",
|
|
103
|
+
{
|
|
104
|
+
ref: c,
|
|
105
|
+
"aria-haspopup": l ? "true" : void 0,
|
|
106
|
+
"aria-expanded": _,
|
|
107
|
+
className: `${o.sublinkToggle} ${_ ? o.open : ""}`,
|
|
108
|
+
onClick: () => a(e),
|
|
109
|
+
onMouseEnter: () => {
|
|
110
|
+
d(e), s(e);
|
|
111
|
+
},
|
|
112
|
+
children: [
|
|
113
|
+
n.label,
|
|
114
|
+
l && /* @__PURE__ */ t(v, { size: 18, className: o.chevron })
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
) }),
|
|
118
|
+
l && /* @__PURE__ */ t(
|
|
119
|
+
"div",
|
|
120
|
+
{
|
|
121
|
+
className: `${o.sublinks} ${_ ? o.show : ""}`,
|
|
122
|
+
onMouseLeave: () => a(e),
|
|
123
|
+
role: "menu",
|
|
124
|
+
"aria-label": `${n.label} submenu`,
|
|
125
|
+
children: /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t("div", { className: o.sublinksInner, children: /* @__PURE__ */ t("div", { className: o.sublinksColumn, children: p(n.sublinks, e) }) }) })
|
|
126
|
+
}
|
|
127
|
+
)
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
e
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
export {
|
|
134
|
+
Nn as N,
|
|
135
|
+
o as s
|
|
136
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),e=require("../../../vi.B-PuvDzu-CAkOcHRx.cjs"),l=require("
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),e=require("../../../vi.B-PuvDzu-CAkOcHRx.cjs"),l=require("../../../index-CF-7InbH.cjs");require("../../../index-C5c2A_cO.cjs");e.describe("CallToAction",()=>{e.it("renders as a button when 'as' is set to 'button'",()=>{e.render(n.jsx(l.CallToAction,{as:"button",variant:"primary",children:"Click Me"}));const t=e.screen.getByRole("button",{name:"Click Me"});e.globalExpect(t).toBeInTheDocument(),e.globalExpect(t).toHaveClass("callToAction","primary")}),e.it("renders as an anchor when 'as' is set to 'a'",()=>{e.render(n.jsx(l.CallToAction,{as:"a",href:"/test",variant:"link",children:"Click Me"}));const t=e.screen.getByRole("link",{name:"Click Me"});e.globalExpect(t).toBeInTheDocument(),e.globalExpect(t).toHaveAttribute("href","/test"),e.globalExpect(t).toHaveClass("callToAction","link")}),e.it("adds rel='noopener noreferrer' when target is '_blank'",()=>{e.render(n.jsx(l.CallToAction,{as:"a",href:"/test",target:"_blank",variant:"link",children:"External"}));const t=e.screen.getByRole("link",{name:"External"});e.globalExpect(t).toBeInTheDocument(),e.globalExpect(t).toHaveAttribute("rel","noopener noreferrer")}),e.it("includes left icon when iconAlignment is 'left'",()=>{e.render(n.jsx(l.CallToAction,{as:"a",href:"/test",target:"_blank",variant:"link",icon:"arrow-right",iconAlignment:"left",children:"Icon left"}));const t=document.querySelector(".icon");e.globalExpect(t).toBeInTheDocument(),e.globalExpect(t==null?void 0:t.parentElement).toHaveClass("content");const o=t==null?void 0:t.querySelector("svg");e.globalExpect(o).toBeInTheDocument()}),e.it("includes right icon when iconAlignment is 'right'",()=>{e.render(n.jsx(l.CallToAction,{as:"a",href:"/test",target:"_blank",variant:"link",icon:"arrow-right",iconAlignment:"right",children:"Icon Right"}));const t=document.querySelector(".icon");e.globalExpect(t).toBeInTheDocument(),e.globalExpect(t==null?void 0:t.parentElement).toHaveClass("content");const o=t==null?void 0:t.querySelector("svg");e.globalExpect(o).toBeInTheDocument()}),e.it("respects the disabled prop on buttons",()=>{e.render(n.jsx(l.CallToAction,{as:"button",variant:"primary",disabled:!0,children:"Disabled"}));const t=e.screen.getByRole("button",{name:"Disabled"});e.globalExpect(t).toBeDisabled()})});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { d as i, i as o, r, s as l, g as t } from "../../../vi.B-PuvDzu-CpG0esZH.js";
|
|
3
|
-
import {
|
|
3
|
+
import { C as a } from "../../../index-FuTQRxMN.js";
|
|
4
4
|
import "../../../index-BxZzxMp0.js";
|
|
5
5
|
i("CallToAction", () => {
|
|
6
6
|
o("renders as a button when 'as' is set to 'button'", () => {
|
|
@@ -1,31 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require(
|
|
2
|
-
* @license lucide-react v0.488.0 - ISC
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the ISC license.
|
|
5
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const b=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],$=r.createLucideIcon("chevron-left",b);/**
|
|
7
|
-
* @license lucide-react v0.488.0 - ISC
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the ISC license.
|
|
10
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/const q=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],A=r.createLucideIcon("chevron-right",q);/**
|
|
12
|
-
* @license lucide-react v0.488.0 - ISC
|
|
13
|
-
*
|
|
14
|
-
* This source code is licensed under the ISC license.
|
|
15
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/const M=[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]],N=r.createLucideIcon("log-in",M);/**
|
|
17
|
-
* @license lucide-react v0.488.0 - ISC
|
|
18
|
-
*
|
|
19
|
-
* This source code is licensed under the ISC license.
|
|
20
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/const R=[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]],T=r.createLucideIcon("phone",R);/**
|
|
22
|
-
* @license lucide-react v0.488.0 - ISC
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the ISC license.
|
|
25
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/const C=[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]],F=r.createLucideIcon("refresh-ccw",C);/**
|
|
27
|
-
* @license lucide-react v0.488.0 - ISC
|
|
28
|
-
*
|
|
29
|
-
* This source code is licensed under the ISC license.
|
|
30
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
-
*/const z=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],E=r.createLucideIcon("settings",z),D="_callToAction_1wtpc_1",P="_blurred_1wtpc_26",S="_primary_1wtpc_27",V="_secondary_1wtpc_28",G="_primaryInverted_1wtpc_29",O="_secondaryInverted_1wtpc_30",B="_blurredInverted_1wtpc_32",H="_link_1wtpc_46",J="_linkInverted_1wtpc_47",K="_underline_1wtpc_48",Q="_underlineInverted_1wtpc_49",U="_content_1wtpc_59",W="_icon_1wtpc_193",X="_iconLeft_1wtpc_213",Y="_iconRight_1wtpc_217",n={callToAction:D,blurred:P,primary:S,secondary:V,primaryInverted:G,secondaryInverted:O,blurredInverted:B,link:H,linkInverted:J,underline:K,underlineInverted:Q,content:U,icon:W,iconLeft:X,iconRight:Y},Z={apps:e.jsxs(e.Fragment,{children:[e.jsx(c.FaApple,{})," ",e.jsx(c.FaGooglePlay,{})]}),"arrow-left":e.jsx(m.ArrowLeft,{}),"arrow-right":e.jsx(L.ArrowRight,{}),"chevron-down":e.jsx(j.ChevronDown,{}),"chevron-left":e.jsx($,{}),"chevron-right":e.jsx(A,{}),envelope:e.jsx(c.FaEnvelope,{}),phone:e.jsx(T,{}),play:e.jsx(f.Play,{}),"new-tab":e.jsx(k.ExternalLink,{}),refresh:e.jsx(F,{}),settings:e.jsx(E,{}),"sign-in":e.jsx(N,{})},_={primary:n.primary,primaryInverted:n.primaryInverted,secondary:n.secondary,secondaryInverted:n.secondaryInverted,link:n.link,linkInverted:n.linkInverted,underline:n.underline,underlineInverted:n.underlineInverted,blurred:n.blurred,blurredInverted:n.blurredInverted},ee={left:n.iconLeft,right:n.iconRight};function ne({variant:o="primary",displayType:p="text",imageSrc:a,imageAlt:v="",ImageComponent:i,icon:s,iconAlignment:u="right",useRouter:re=!1,className:l,children:y,disabled:x=!1,...t}){const d=p==="image"?i||(a?e.jsx("img",{width:"175",height:"59",src:a,alt:v}):null):e.jsxs("span",{className:`${n.content} ${ee[u]}`,children:[e.jsx("span",{children:y}),s&&e.jsx("span",{className:n.icon,children:Z[s]})]});if(t.as=="a"){const{href:I,target:h,...w}=t,g=h==="_blank";return e.jsx("a",{href:I,target:h,rel:g?"noopener noreferrer":void 0,className:`${l??""} ${n.callToAction} ${_[o]}`,...w,children:d})}return e.jsx("button",{className:`${l??""} ${n.callToAction} ${_[o]}`,disabled:x,...t,children:d})}exports.CallToAction=ne;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");const e=require("../../../index-CF-7InbH.cjs");require("../../../index-CBK5rp6X.cjs");require("../../../external-link-DDShu-48.cjs");require("../../../play-CQBnZgNa.cjs");require("../../../chevron-down-DfK1XBl3.cjs");require("../../../arrow-right-DO6S4vfx.cjs");require("../../../arrow-left-4E3t8axP.cjs");exports.CallToAction=e.CallToAction;
|
|
@@ -1,169 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import '../../../assets/index69.css';/**
|
|
10
|
-
* @license lucide-react v0.488.0 - ISC
|
|
11
|
-
*
|
|
12
|
-
* This source code is licensed under the ISC license.
|
|
13
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
14
|
-
*/
|
|
15
|
-
const N = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], R = r("chevron-left", N);
|
|
16
|
-
/**
|
|
17
|
-
* @license lucide-react v0.488.0 - ISC
|
|
18
|
-
*
|
|
19
|
-
* This source code is licensed under the ISC license.
|
|
20
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/
|
|
22
|
-
const C = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], T = r("chevron-right", C);
|
|
23
|
-
/**
|
|
24
|
-
* @license lucide-react v0.488.0 - ISC
|
|
25
|
-
*
|
|
26
|
-
* This source code is licensed under the ISC license.
|
|
27
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
28
|
-
*/
|
|
29
|
-
const E = [
|
|
30
|
-
["path", { d: "M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4", key: "u53s6r" }],
|
|
31
|
-
["polyline", { points: "10 17 15 12 10 7", key: "1ail0h" }],
|
|
32
|
-
["line", { x1: "15", x2: "3", y1: "12", y2: "12", key: "v6grx8" }]
|
|
33
|
-
], q = r("log-in", E);
|
|
34
|
-
/**
|
|
35
|
-
* @license lucide-react v0.488.0 - ISC
|
|
36
|
-
*
|
|
37
|
-
* This source code is licensed under the ISC license.
|
|
38
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
39
|
-
*/
|
|
40
|
-
const F = [
|
|
41
|
-
[
|
|
42
|
-
"path",
|
|
43
|
-
{
|
|
44
|
-
d: "M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",
|
|
45
|
-
key: "foiqr5"
|
|
46
|
-
}
|
|
47
|
-
]
|
|
48
|
-
], z = r("phone", F);
|
|
49
|
-
/**
|
|
50
|
-
* @license lucide-react v0.488.0 - ISC
|
|
51
|
-
*
|
|
52
|
-
* This source code is licensed under the ISC license.
|
|
53
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
-
*/
|
|
55
|
-
const j = [
|
|
56
|
-
["path", { d: "M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "14sxne" }],
|
|
57
|
-
["path", { d: "M3 3v5h5", key: "1xhq8a" }],
|
|
58
|
-
["path", { d: "M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16", key: "1hlbsb" }],
|
|
59
|
-
["path", { d: "M16 16h5v5", key: "ccwih5" }]
|
|
60
|
-
], P = r("refresh-ccw", j);
|
|
61
|
-
/**
|
|
62
|
-
* @license lucide-react v0.488.0 - ISC
|
|
63
|
-
*
|
|
64
|
-
* This source code is licensed under the ISC license.
|
|
65
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
-
*/
|
|
67
|
-
const V = [
|
|
68
|
-
[
|
|
69
|
-
"path",
|
|
70
|
-
{
|
|
71
|
-
d: "M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",
|
|
72
|
-
key: "1qme2f"
|
|
73
|
-
}
|
|
74
|
-
],
|
|
75
|
-
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
76
|
-
], D = r("settings", V), G = "_callToAction_1wtpc_1", B = "_blurred_1wtpc_26", H = "_primary_1wtpc_27", J = "_secondary_1wtpc_28", K = "_primaryInverted_1wtpc_29", O = "_secondaryInverted_1wtpc_30", Q = "_blurredInverted_1wtpc_32", S = "_link_1wtpc_46", U = "_linkInverted_1wtpc_47", W = "_underline_1wtpc_48", X = "_underlineInverted_1wtpc_49", Y = "_content_1wtpc_59", Z = "_icon_1wtpc_193", ee = "_iconLeft_1wtpc_213", ne = "_iconRight_1wtpc_217", n = {
|
|
77
|
-
callToAction: G,
|
|
78
|
-
blurred: B,
|
|
79
|
-
primary: H,
|
|
80
|
-
secondary: J,
|
|
81
|
-
primaryInverted: K,
|
|
82
|
-
secondaryInverted: O,
|
|
83
|
-
blurredInverted: Q,
|
|
84
|
-
link: S,
|
|
85
|
-
linkInverted: U,
|
|
86
|
-
underline: W,
|
|
87
|
-
underlineInverted: X,
|
|
88
|
-
content: Y,
|
|
89
|
-
icon: Z,
|
|
90
|
-
iconLeft: ee,
|
|
91
|
-
iconRight: ne
|
|
92
|
-
}, re = {
|
|
93
|
-
apps: /* @__PURE__ */ _(I, { children: [
|
|
94
|
-
/* @__PURE__ */ e(k, {}),
|
|
95
|
-
" ",
|
|
96
|
-
/* @__PURE__ */ e(b, {})
|
|
97
|
-
] }),
|
|
98
|
-
"arrow-left": /* @__PURE__ */ e(M, {}),
|
|
99
|
-
"arrow-right": /* @__PURE__ */ e(L, {}),
|
|
100
|
-
"chevron-down": /* @__PURE__ */ e($, {}),
|
|
101
|
-
"chevron-left": /* @__PURE__ */ e(R, {}),
|
|
102
|
-
"chevron-right": /* @__PURE__ */ e(T, {}),
|
|
103
|
-
envelope: /* @__PURE__ */ e(g, {}),
|
|
104
|
-
phone: /* @__PURE__ */ e(z, {}),
|
|
105
|
-
play: /* @__PURE__ */ e(x, {}),
|
|
106
|
-
"new-tab": /* @__PURE__ */ e(A, {}),
|
|
107
|
-
refresh: /* @__PURE__ */ e(P, {}),
|
|
108
|
-
settings: /* @__PURE__ */ e(D, {}),
|
|
109
|
-
"sign-in": /* @__PURE__ */ e(q, {})
|
|
110
|
-
}, p = {
|
|
111
|
-
primary: n.primary,
|
|
112
|
-
primaryInverted: n.primaryInverted,
|
|
113
|
-
secondary: n.secondary,
|
|
114
|
-
secondaryInverted: n.secondaryInverted,
|
|
115
|
-
link: n.link,
|
|
116
|
-
linkInverted: n.linkInverted,
|
|
117
|
-
underline: n.underline,
|
|
118
|
-
underlineInverted: n.underlineInverted,
|
|
119
|
-
blurred: n.blurred,
|
|
120
|
-
blurredInverted: n.blurredInverted
|
|
121
|
-
}, te = {
|
|
122
|
-
left: n.iconLeft,
|
|
123
|
-
right: n.iconRight
|
|
124
|
-
};
|
|
125
|
-
function ve({
|
|
126
|
-
variant: o = "primary",
|
|
127
|
-
displayType: h = "text",
|
|
128
|
-
imageSrc: c,
|
|
129
|
-
imageAlt: v = "",
|
|
130
|
-
ImageComponent: a,
|
|
131
|
-
icon: i,
|
|
132
|
-
iconAlignment: y = "right",
|
|
133
|
-
useRouter: oe = !1,
|
|
134
|
-
className: l,
|
|
135
|
-
children: m,
|
|
136
|
-
disabled: f = !1,
|
|
137
|
-
...t
|
|
138
|
-
}) {
|
|
139
|
-
const s = h === "image" ? a || (c ? /* @__PURE__ */ e("img", { width: "175", height: "59", src: c, alt: v }) : null) : /* @__PURE__ */ _("span", { className: `${n.content} ${te[y]}`, children: [
|
|
140
|
-
/* @__PURE__ */ e("span", { children: m }),
|
|
141
|
-
i && /* @__PURE__ */ e("span", { className: n.icon, children: re[i] })
|
|
142
|
-
] });
|
|
143
|
-
if (t.as == "a") {
|
|
144
|
-
const { href: u, target: d, ...w } = t;
|
|
145
|
-
return /* @__PURE__ */ e(
|
|
146
|
-
"a",
|
|
147
|
-
{
|
|
148
|
-
href: u,
|
|
149
|
-
target: d,
|
|
150
|
-
rel: d === "_blank" ? "noopener noreferrer" : void 0,
|
|
151
|
-
className: `${l ?? ""} ${n.callToAction} ${p[o]}`,
|
|
152
|
-
...w,
|
|
153
|
-
children: s
|
|
154
|
-
}
|
|
155
|
-
);
|
|
156
|
-
}
|
|
157
|
-
return /* @__PURE__ */ e(
|
|
158
|
-
"button",
|
|
159
|
-
{
|
|
160
|
-
className: `${l ?? ""} ${n.callToAction} ${p[o]}`,
|
|
161
|
-
disabled: f,
|
|
162
|
-
...t,
|
|
163
|
-
children: s
|
|
164
|
-
}
|
|
165
|
-
);
|
|
166
|
-
}
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import { C as c } from "../../../index-FuTQRxMN.js";
|
|
3
|
+
import "../../../index-CeBA0PT0.js";
|
|
4
|
+
import "../../../external-link-BOPobeQJ.js";
|
|
5
|
+
import "../../../play-DYgKiSaf.js";
|
|
6
|
+
import "../../../chevron-down-DSUzBz9F.js";
|
|
7
|
+
import "../../../arrow-right-QEwnX3Sk.js";
|
|
8
|
+
import "../../../arrow-left-BIJvHwNQ.js";
|
|
167
9
|
export {
|
|
168
|
-
|
|
10
|
+
c as CallToAction
|
|
169
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index48.css');const e=require("react/jsx-runtime"),T=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index48.css');const e=require("react/jsx-runtime"),T=require("../../../index-CF-7InbH.cjs"),y=require("../ButtonGroup/index.cjs"),o=require("../../../index-CBK5rp6X.cjs"),k=require("../../../external-link-DDShu-48.cjs"),$="_footer_1mxlp_1",F="_container_1mxlp_10",I="_primaryNav_1mxlp_24",w="_secondaryNav_1mxlp_34",q="_details_1mxlp_71",A="_nav_1mxlp_84",S="_logo_1mxlp_92",L="_socialItems_1mxlp_107",E="_group_1mxlp_114",z="_groups_1mxlp_124",B="_groupTitle_1mxlp_135",C="_sublinks_1mxlp_144",G="_link_1mxlp_152",M="_newTabIcon_1mxlp_170",P="_bottom_1mxlp_184",n={footer:$,container:F,primaryNav:I,secondaryNav:w,details:q,nav:A,logo:S,socialItems:L,group:E,groups:z,groupTitle:B,sublinks:C,link:G,newTabIcon:M,bottom:P},Y={Facebook:o.FaFacebook,Twitter:o.FaTwitter,LinkedIn:o.FaLinkedin,Instagram:o.FaInstagram,YouTube:o.FaYoutube};function O({logo:d,items:r,primaryInfo:m,secondaryInfo:u,utilityItems:x,socialItems:l,copyright:b,className:j}){const t=(a,c="",i=!1)=>a.map(s=>{var h;const v=`${c}/${s.label}`,g=(h=s.sublinks)==null?void 0:h.length,_=!!s.href,p=Y[s.icon],N=_?"a":"div",f=_?{href:s.href,target:s.isExternal?"_blank":"_self",rel:s.isExternal?"noopener noreferrer":void 0,role:i?"link":"menuitem","aria-label":s.label}:{role:i?"link":"menuitem","aria-label":s.label};return e.jsxs("div",{className:`${n.group}`,children:[e.jsxs(N,{className:`${_?n.link:""} ${g?n.groupTitle:""}`,...f,children:[!i&&s.label,p&&e.jsx(p,{}),!p&&s.isExternal&&e.jsx(k.ExternalLink,{className:n.newTabIcon,size:16})]}),g&&e.jsx("div",{className:`${n.sublinks}`,role:"menu","aria-label":`${s.label} submenu`,children:t(s.sublinks,v)})]},v)});return e.jsx("footer",{className:`${j??""} ${n.footer}`,children:e.jsxs("div",{className:n.container,children:[e.jsxs("div",{className:n.primaryNav,children:[e.jsxs("div",{className:n.details,children:[d&&e.jsx("div",{className:n.logo,children:d}),l&&l.length>0&&e.jsx("div",{className:n.socialItems,children:t(l,"",!0)}),m&&e.jsx("div",{children:m}),u&&e.jsx("div",{children:u})]}),r&&r.length>0&&e.jsx("nav",{className:n.nav,id:"footer-menu",role:"menubar",children:e.jsx("div",{className:n.groups,children:t(r,"",!1)})})]}),e.jsxs("div",{className:n.secondaryNav,children:[b&&e.jsx("div",{className:n.bottom,children:e.jsx("span",{children:b})}),x&&e.jsx("nav",{children:e.jsx(y.ButtonGroup,{orientation:"horizontal",children:x.map((a,c)=>e.jsx(T.CallToAction,{as:"a",href:a.href??"/",variant:a.variant??"primary",displayType:a.displayType??"text",imageSrc:a.imageSrc,imageAlt:a.imageAlt,"aria-label":a.ariaLabel??a.label,icon:a.icon,iconAlignment:a.iconAlignment,children:a.label},a._key||c))})})]})]})})}exports.Footer=O;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as a, jsxs as r } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { C as y } from "../../../index-FuTQRxMN.js";
|
|
3
3
|
import { ButtonGroup as k } from "../ButtonGroup/index.mjs";
|
|
4
4
|
import { a as $, b as F, c as I, d as w, e as A } from "../../../index-CeBA0PT0.js";
|
|
5
5
|
import { E } from "../../../external-link-BOPobeQJ.js";
|
|
6
|
-
import '../../../assets/index48.css';const L = "_footer_1mxlp_1", S = "_container_1mxlp_10", j = "_primaryNav_1mxlp_24", z = "_secondaryNav_1mxlp_34",
|
|
6
|
+
import '../../../assets/index48.css';const L = "_footer_1mxlp_1", S = "_container_1mxlp_10", j = "_primaryNav_1mxlp_24", z = "_secondaryNav_1mxlp_34", C = "_details_1mxlp_71", Y = "_nav_1mxlp_84", B = "_logo_1mxlp_92", G = "_socialItems_1mxlp_107", M = "_group_1mxlp_114", P = "_groups_1mxlp_124", W = "_groupTitle_1mxlp_135", q = "_sublinks_1mxlp_144", D = "_link_1mxlp_152", H = "_newTabIcon_1mxlp_170", J = "_bottom_1mxlp_184", e = {
|
|
7
7
|
footer: L,
|
|
8
8
|
container: S,
|
|
9
9
|
primaryNav: j,
|
|
10
10
|
secondaryNav: z,
|
|
11
|
-
details:
|
|
12
|
-
nav:
|
|
13
|
-
logo:
|
|
11
|
+
details: C,
|
|
12
|
+
nav: Y,
|
|
13
|
+
logo: B,
|
|
14
14
|
socialItems: G,
|
|
15
15
|
group: M,
|
|
16
16
|
groups: P,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("react");const e=require("../../../NavLink-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("react");const e=require("../../../NavLink-BxpV3lSS.cjs");require("../../../external-link-DDShu-48.cjs");require("../../../chevron-down-DfK1XBl3.cjs");exports.NavLink=e.NavLink;
|
|
@@ -1 +1,16 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),r=require("react"),H=require("../Modal/index.cjs"),S=require("../../../index-CF-7InbH.cjs"),U=require("../ButtonGroup/index.cjs"),e=require("../../../NavLink-BxpV3lSS.cjs"),E=require("../../../external-link-DDShu-48.cjs"),me=require("../../../x-Dft9NVe_.cjs"),T=require("../../../createLucideIcon-DpotSgUx.cjs"),be=require("../../../chevron-down-DfK1XBl3.cjs");/**
|
|
2
|
+
* @license lucide-react v0.488.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const fe=[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],ve=T.createLucideIcon("earth",fe);/**
|
|
7
|
+
* @license lucide-react v0.488.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/const je=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],pe=T.createLucideIcon("menu",je);/**
|
|
12
|
+
* @license lucide-react v0.488.0 - ISC
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the ISC license.
|
|
15
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/const ke=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],ge=T.createLucideIcon("search",ke),Ne={standard:e.styles.standard,transparent:e.styles.transparent},$e={left:e.styles.left,center:e.styles.center,right:e.styles.right};function we({title:J,logo:R,items:b,groups:y,utilityItems:a,isSticky:K=!1,showSearch:g=!0,showLocaleSelect:z=!0,alignment:N="right",variant:Q="standard",navigationType:f="default",searchComponent:Y,localeSelectComponent:Z,className:ee}){const[o,I]=r.useState(!1),[A,h]=r.useState(null),[se,ne]=r.useState(0),[le,ae]=r.useState(!1),[te,re]=r.useState(null),[c,v]=r.useState([]),[q,$]=r.useState(0),[ce,B]=r.useState(null),[x,ie]=r.useState(!1),[j,w]=r.useState("forward"),C=()=>s.jsx("div",{className:`${e.styles.linkWrapper} ${e.styles.parent} ${e.styles.searchWrapper}`,children:s.jsx("div",{className:e.styles.linkItem,children:s.jsx(H.Modal,{className:e.styles.searchModal,trigger:s.jsx("button",{title:"Search","aria-label":"Search",role:"menuitem",className:e.styles.search,children:s.jsx(ge,{size:16})}),content:Y})})}),F=()=>s.jsx("div",{className:`${e.styles.linkWrapper} ${e.styles.parent} `,children:s.jsx("div",{className:e.styles.linkItem,children:s.jsx(H.Modal,{className:e.styles.localeModal,trigger:s.jsx("button",{title:"Locale Select","aria-label":"Locale Select",role:"menuitem",className:e.styles.locale,children:s.jsx(ve,{size:16})}),content:Z})})});r.useEffect(()=>{if(typeof window<"u"){const n=()=>{const l=window.innerWidth<768;ie(l)};return n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)}},[]);const oe=()=>{v([])},de=n=>{w("forward"),v([{title:n.title,primary:n.primaryItems??[],secondary:n.secondaryItems??[],description:""}])},W=n=>{w("forward"),v(l=>[...l,{title:n.label,primary:n.sublinks??[],secondary:[],description:n.description}])},ye=()=>{w("backward"),v(n=>n.slice(0,-1))},L=r.useRef(null),m=r.useRef(null),_=r.useRef(new Map),he=()=>{I(n=>!n)},D=n=>{const l=_.current.get(n);if(l&&m.current){const i=l.getBoundingClientRect(),d=m.current.getBoundingClientRect(),k=i.left-d.left+i.width/2;re(k)}},ue=n=>{h(l=>l===n?null:n)},G=r.useCallback(n=>{L.current&&!L.current.contains(n.target)&&h(null)},[]),O=r.useCallback(()=>{P(),typeof window<"u"&&window.innerWidth>768&&(I(!1),h(null),typeof document<"u"&&(document.body.style.overflow=""))},[]),P=r.useCallback(()=>{if(m.current){const n=m.current.getBoundingClientRect().width;ne(n),ae(!0)}},[]);r.useEffect(()=>{const n=typeof window<"u",l=typeof document<"u";return n&&window.addEventListener("resize",O),l&&document.addEventListener("click",G),P(),()=>{n&&window.removeEventListener("resize",O),l&&document.removeEventListener("click",G)}},[]),r.useEffect(()=>{if(typeof document<"u")return document.body.style.overflow=o?"hidden":"",()=>{document.body.style.overflow=""}},[o]);const xe=n=>n.map((l,i)=>{var k,V;const d=`group-${i}`,p=ce===i;return s.jsxs("div",{className:`${e.styles.linkWrapper} ${e.styles.parent}`,onMouseEnter:()=>{B(i),h(d),D(d)},onMouseLeave:()=>{B(null),$(0),h(null)},children:[s.jsx("div",{className:e.styles.linkItem,children:s.jsxs("button",{ref:t=>{_.current.set(d,t)},role:"menuitem","aria-haspopup":"true","aria-expanded":p,"aria-controls":`submenu-${i}`,className:`${e.styles.sublinkToggle} ${p?e.styles.open:""} `,children:[l.title,s.jsx(be.ChevronDown,{size:18,className:e.styles.chevron})]})}),s.jsx("div",{id:`submenu-${i}`,className:`${e.styles.sublinks} ${p?e.styles.show:""}`,role:"menu","aria-label":`${l.title} submenu`,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}),(k=l.primaryItems)==null?void 0:k.map((t,u)=>t.href?s.jsxs("a",{href:t.href,className:`${e.styles.link} ${q===u?e.styles.open:""}`,target:t.isExternal?"_blank":"_self",rel:t.isExternal?"noopener noreferrer":void 0,onClick:()=>{var X;h(null),(X=t.onClick)==null||X.call(t)},onMouseEnter:()=>t.sublinks?$(u):null,role:"menuitem",children:[s.jsxs("span",{className:e.styles.linkContent,children:[t.label,t.subtitle&&s.jsx("span",{className:e.styles.subtitle,children:t.subtitle})]}),t.isExternal&&s.jsx(E.ExternalLink,{className:e.styles.newTabIcon,size:16})]},t._key??u):s.jsx("button",{className:`${e.styles.sublinkToggle} ${q===u?e.styles.open:""}`,onMouseEnter:()=>$(u),children:s.jsxs("span",{className:e.styles.linkContent,children:[t.label,t.subtitle&&s.jsx("span",{className:e.styles.subtitle,children:t.subtitle})]})},t._key??u))]}),(l==null?void 0:l.secondaryItems)&&((V=l==null?void 0:l.secondaryItems)==null?void 0:V.length)>0&&s.jsx("div",{className:`${e.styles.sublinksColumn} ${e.styles.secondaryColumn}`,children:l.secondaryItems&&l.secondaryItems.length>0&&M(l.secondaryItems,`${d}-secondary`)}),l.spotlight&&s.jsx("div",{className:`${e.styles.sublinksColumn} ${e.styles.spotlightColumn}`,children:l.spotlight})]})})})]},l._key??`group-${i}`)}),M=(n,l="")=>n.map(i=>{const d=`${l}/${i.label}`;return s.jsx(e.NavLink,{link:i,path:d,parentPath:l,openPath:A,togglePath:ue,updateTriangleIndicator:D,setOpenPath:h,renderLinks:M,buttonRefs:_},i._key??d)});return s.jsx("header",{ref:L,className:`${ee??""} ${$e[N]} ${Ne[Q]} ${e.styles.navbar} ${K?e.styles.sticky:""} ${y&&y.length?e.styles.advanced:e.styles.default}`,role:"navigation","aria-label":"Main navigation",children:s.jsxs("div",{className:`${e.styles.container} ${(!a||a.length===0)&&N!=="center"?e.styles.twoColumn:""}`,children:[R?s.jsx("div",{className:e.styles.logo,children:R}):s.jsx("div",{className:e.styles.title,children:J}),s.jsx("nav",{ref:m,style:{left:N==="center"?`calc(50% - ${se/2}px)`:"0"},className:`${e.styles.nav} ${o?e.styles.open:""} ${le?e.styles.visible:e.styles.hidden}`,id:"main-menu",role:"menubar","aria-label":"Main navigation",children:s.jsxs("div",{className:e.styles.navInner,children:[s.jsx("svg",{style:{left:`${te}px`},className:`${e.styles.triangle} ${A?e.styles.show:""}`,width:16,height:12,viewBox:"0 0 100 75",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("polygon",{points:"50,5 95,70 5,70",strokeLinejoin:"round",fill:"white",stroke:"white"})}),f==="default"&&b&&s.jsxs("div",{className:e.styles.grid,children:[b&&b.length>0&&M(b),g&&!x&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:e.styles.separator}),s.jsx(C,{})]}),z&&s.jsx(F,{})]}),!x&&f==="advanced"&&y&&s.jsxs("div",{className:e.styles.grid,children:[y.length>0&&xe(y),g&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:e.styles.separator}),s.jsx(C,{})]}),z&&s.jsx(F,{})]}),x&&f==="advanced"&&o&&c.length===0&&y&&s.jsx("div",{className:`${e.styles.mobileMenu}`,children:y.map((n,l)=>s.jsx("div",{className:`${e.styles.mobileMenuItem} ${j==="forward"?e.styles.fadeInFromLeft:e.styles.fadeInFromRight}`,children:s.jsx("button",{className:e.styles.sublinkToggle,onClick:()=>de(n),children:n.title})},n._key??l))}),x&&f==="advanced"&&o&&c.length>0&&s.jsxs("div",{className:`${e.styles.mobileMenuSlide} `,children:[s.jsx("button",{className:e.styles.back,onClick:c.length===1?oe:ye,children:s.jsx(S.ChevronLeft,{size:18,"aria-hidden":"true",focusable:"false"})}),c[c.length-1].description&&s.jsx("div",{className:`${e.styles.sublinksDescription} ${j==="forward"?e.styles.fadeInFromLeft:e.styles.fadeInFromRight}`,children:c[c.length-1].description}),c[c.length-1].primary.map((n,l)=>s.jsx("div",{className:`${e.styles.mobileMenuItem} ${j==="forward"?e.styles.fadeInFromLeft:e.styles.fadeInFromRight}`,children:n.sublinks?s.jsx("button",{className:e.styles.sublinkToggle,onClick:()=>W(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,role:"menuitem",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(E.ExternalLink,{className:e.styles.newTabIcon,size:16})]})},n._key??`primary-${l}`)),c[c.length-1].secondary.length>0&&s.jsx("hr",{className:e.styles.groupDivider}),c[c.length-1].secondary.map((n,l)=>s.jsx("div",{className:`${e.styles.mobileMenuItem} ${j==="forward"?e.styles.fadeInFromLeft:e.styles.fadeInFromRight}`,children:n.sublinks?s.jsx("button",{className:e.styles.sublinkToggle,onClick:()=>W(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,role:"menuitem",children:[n.label,n.isExternal&&s.jsx(E.ExternalLink,{className:e.styles.newTabIcon,size:16})]})},n._key??`secondary-${l}`))]},`stack-${c.length}`)]})}),a&&a.length>0&&s.jsx("nav",{className:e.styles.utility,"aria-label":"Utility navigation",children:s.jsx(U.ButtonGroup,{children:a.map((n,l)=>s.jsx(S.CallToAction,{as:"a",href:n.href??"/",variant:n.variant??"primary",displayType:n.displayType??"text",imageSrc:n.imageSrc,imageAlt:n.imageAlt,"aria-label":n.ariaLabel??n.label,icon:n.icon,iconAlignment:n.iconAlignment,children:n.imageSrc?s.jsx("img",{src:n.imageSrc,alt:n.imageAlt??n.ariaLabel??n.label}):n.label},n._key||l))})}),a&&a.length>0&&s.jsx("nav",{"aria-label":"Utility navigation",className:`${e.styles.utilityMobile} ${o?e.styles.open:""}`,children:s.jsx(U.ButtonGroup,{alignment:"center",children:s.jsx(S.CallToAction,{as:"a",href:a[1].href??"/",variant:a[1].variant??"primary",displayType:a[1].displayType??"text",imageSrc:a[1].imageSrc,imageAlt:a[1].imageAlt,"aria-label":a[1].ariaLabel??a[1].label,icon:a[1].icon,iconAlignment:a[1].iconAlignment,children:a[1].imageSrc?s.jsx("img",{src:a[1].imageSrc,"aria-label":a[1].imageAlt??a[1].ariaLabel??a[1].label}):a[1].label})})}),s.jsxs("div",{className:e.styles.mobileButtons,children:[x&&g&&s.jsx(C,{}),s.jsx("button",{className:e.styles.menuToggle,onClick:he,"aria-label":o?"Close menu":"Open menu","aria-expanded":o,"aria-controls":"main-menu",children:o?s.jsx(me.X,{size:24}):s.jsx(pe,{size:24})})]})]})})}exports.Navbar=we;
|