quirk-ui 0.0.416 → 0.0.418
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-C1aY0Z01.cjs +1 -0
- package/dist/{CategoryFilters-DYRUC4Cx.js → CategoryFilters-CfNLa3wI.js} +5 -5
- package/dist/NavLink-CHG0iIum.js +119 -0
- package/dist/NavLink-Dr7pguuT.cjs +1 -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 +31 -1
- package/dist/core/components/CallToAction/index.mjs +167 -9
- 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 +1 -16
- package/dist/core/components/NavBar/index.mjs +148 -444
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.mjs +12 -12
- 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-CNNdqidd.cjs +0 -1
- package/dist/NavLink-BxpV3lSS.cjs +0 -1
- package/dist/NavLink-RkB5XhMV.js +0 -136
- package/dist/index-CF-7InbH.cjs +0 -31
- package/dist/index-FuTQRxMN.js +0 -170
|
@@ -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("./core/components/CallToAction/index.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 { CallToAction as m } from "./core/components/CallToAction/index.mjs";
|
|
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", g = "_listHeader_17zlj_58", k = "_listSearch_17zlj_71", C = "_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: g,
|
|
17
|
+
listSearch: k,
|
|
18
|
+
clearSearch: C,
|
|
19
19
|
listHeaderFilters: v,
|
|
20
20
|
listResults: w,
|
|
21
21
|
listSort: y,
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as v } from "react";
|
|
3
|
+
import { E as g } from "./external-link-BOPobeQJ.js";
|
|
4
|
+
import { C as k } from "./chevron-down-DSUzBz9F.js";
|
|
5
|
+
import './assets/NavLink.css';const C = "_navbar_1bon6_5", f = "_sticky_1bon6_19", w = "_left_1bon6_34", I = "_container_1bon6_35", N = "_logo_1bon6_39", x = "_nav_1bon6_5", T = "_center_1bon6_54", y = "_hidden_1bon6_60", E = "_visible_1bon6_67", S = "_right_1bon6_82", W = "_title_1bon6_89", $ = "_linkWrapper_1bon6_99", L = "_parent_1bon6_99", M = "_linkItem_1bon6_107", j = "_link_1bon6_99", z = "_sublinkToggle_1bon6_111", R = "_standard_1bon6_159", D = "_triangle_1bon6_167", q = "_transparent_1bon6_172", A = "_twoColumn_1bon6_276", B = "_navInner_1bon6_398", F = "_grid_1bon6_409", G = "_separator_1bon6_444", H = "_newTabIcon_1bon6_474", J = "_linkContent_1bon6_489", K = "_open_1bon6_500", Q = "_sublinks_1bon6_486", U = "_show_1bon6_571", V = "_primaryColumn_1bon6_612", X = "_spotlightColumn_1bon6_625", Y = "_sublinksInner_1bon6_629", Z = "_sublinksColumn_1bon6_647", O = "_chevron_1bon6_657", P = "_advanced_1bon6_839", nn = "_subtitle_1bon6_848", on = "_withSpotlight_1bon6_890", sn = "_withoutSpotlight_1bon6_894", en = "_searchWrapper_1bon6_940", o = {
|
|
6
|
+
navbar: C,
|
|
7
|
+
sticky: f,
|
|
8
|
+
left: w,
|
|
9
|
+
container: I,
|
|
10
|
+
logo: N,
|
|
11
|
+
nav: x,
|
|
12
|
+
center: T,
|
|
13
|
+
hidden: y,
|
|
14
|
+
visible: E,
|
|
15
|
+
right: S,
|
|
16
|
+
title: W,
|
|
17
|
+
linkWrapper: $,
|
|
18
|
+
parent: L,
|
|
19
|
+
linkItem: M,
|
|
20
|
+
link: j,
|
|
21
|
+
sublinkToggle: z,
|
|
22
|
+
standard: R,
|
|
23
|
+
triangle: D,
|
|
24
|
+
transparent: q,
|
|
25
|
+
twoColumn: A,
|
|
26
|
+
navInner: B,
|
|
27
|
+
grid: F,
|
|
28
|
+
separator: G,
|
|
29
|
+
newTabIcon: H,
|
|
30
|
+
linkContent: J,
|
|
31
|
+
open: K,
|
|
32
|
+
sublinks: Q,
|
|
33
|
+
show: U,
|
|
34
|
+
primaryColumn: V,
|
|
35
|
+
spotlightColumn: X,
|
|
36
|
+
sublinksInner: Y,
|
|
37
|
+
sublinksColumn: Z,
|
|
38
|
+
chevron: O,
|
|
39
|
+
default: "_default_1bon6_773",
|
|
40
|
+
advanced: P,
|
|
41
|
+
subtitle: nn,
|
|
42
|
+
withSpotlight: on,
|
|
43
|
+
withoutSpotlight: sn,
|
|
44
|
+
searchWrapper: en
|
|
45
|
+
};
|
|
46
|
+
function an({
|
|
47
|
+
link: n,
|
|
48
|
+
path: s,
|
|
49
|
+
parentPath: i,
|
|
50
|
+
openPath: d,
|
|
51
|
+
togglePath: a,
|
|
52
|
+
updateTriangleIndicator: m,
|
|
53
|
+
setOpenPath: t,
|
|
54
|
+
renderLinks: p,
|
|
55
|
+
buttonRefs: h
|
|
56
|
+
}) {
|
|
57
|
+
var b;
|
|
58
|
+
const _ = d === s, r = !!((b = n.sublinks) != null && b.length), c = v(null);
|
|
59
|
+
return h.current.set(s, c.current), /* @__PURE__ */ l(
|
|
60
|
+
"div",
|
|
61
|
+
{
|
|
62
|
+
className: `${o.linkWrapper} ${i ? "" : o.parent}`,
|
|
63
|
+
children: [
|
|
64
|
+
/* @__PURE__ */ e("div", { className: o.linkItem, children: n.href ? /* @__PURE__ */ l(
|
|
65
|
+
"a",
|
|
66
|
+
{
|
|
67
|
+
href: n.href,
|
|
68
|
+
className: o.link,
|
|
69
|
+
target: n.isExternal ? "_blank" : "_self",
|
|
70
|
+
rel: n.isExternal ? "noopener noreferrer" : void 0,
|
|
71
|
+
onClick: () => {
|
|
72
|
+
var u;
|
|
73
|
+
t(null), (u = n.onClick) == null || u.call(n);
|
|
74
|
+
},
|
|
75
|
+
onMouseEnter: () => {
|
|
76
|
+
i || t(null);
|
|
77
|
+
},
|
|
78
|
+
role: "menuitem",
|
|
79
|
+
children: [
|
|
80
|
+
n.label,
|
|
81
|
+
n.isExternal && /* @__PURE__ */ e(g, { className: o.newTabIcon, size: 16 })
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
) : /* @__PURE__ */ l(
|
|
85
|
+
"button",
|
|
86
|
+
{
|
|
87
|
+
ref: c,
|
|
88
|
+
"aria-haspopup": r ? "true" : void 0,
|
|
89
|
+
"aria-expanded": _,
|
|
90
|
+
className: `${o.sublinkToggle} ${_ ? o.open : ""}`,
|
|
91
|
+
onClick: () => a(s),
|
|
92
|
+
onMouseEnter: () => {
|
|
93
|
+
m(s), t(s);
|
|
94
|
+
},
|
|
95
|
+
children: [
|
|
96
|
+
n.label,
|
|
97
|
+
r && /* @__PURE__ */ e(k, { size: 18, className: o.chevron })
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
) }),
|
|
101
|
+
r && /* @__PURE__ */ e(
|
|
102
|
+
"div",
|
|
103
|
+
{
|
|
104
|
+
className: `${o.sublinks} ${_ ? o.show : ""}`,
|
|
105
|
+
onMouseLeave: () => a(s),
|
|
106
|
+
role: "menu",
|
|
107
|
+
"aria-label": `${n.label} submenu`,
|
|
108
|
+
children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: o.sublinksInner, children: /* @__PURE__ */ e("div", { className: o.sublinksColumn, children: p(n.sublinks, s) }) }) })
|
|
109
|
+
}
|
|
110
|
+
)
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
s
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
export {
|
|
117
|
+
an as N,
|
|
118
|
+
o as s
|
|
119
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('./assets/NavLink.css');const e=require("react/jsx-runtime"),m=require("react"),v=require("./external-link-DDShu-48.cjs"),k=require("./chevron-down-DfK1XBl3.cjs"),g="_navbar_1bon6_5",C="_sticky_1bon6_19",w="_left_1bon6_34",x="_container_1bon6_35",f="_logo_1bon6_39",I="_nav_1bon6_5",N="_center_1bon6_54",j="_hidden_1bon6_60",$="_visible_1bon6_67",y="_right_1bon6_82",T="_title_1bon6_89",S="_linkWrapper_1bon6_99",W="_parent_1bon6_99",E="_linkItem_1bon6_107",q="_link_1bon6_99",L="_sublinkToggle_1bon6_111",M="_standard_1bon6_159",R="_triangle_1bon6_167",z="_transparent_1bon6_172",D="_twoColumn_1bon6_276",A="_navInner_1bon6_398",B="_grid_1bon6_409",F="_separator_1bon6_444",G="_newTabIcon_1bon6_474",H="_linkContent_1bon6_489",J="_open_1bon6_500",K="_sublinks_1bon6_486",Q="_show_1bon6_571",U="_primaryColumn_1bon6_612",V="_spotlightColumn_1bon6_625",X="_sublinksInner_1bon6_629",Y="_sublinksColumn_1bon6_647",Z="_chevron_1bon6_657",O="_advanced_1bon6_839",P="_subtitle_1bon6_848",nn="_withSpotlight_1bon6_890",on="_withoutSpotlight_1bon6_894",en="_searchWrapper_1bon6_940",o={navbar:g,sticky:C,left:w,container:x,logo:f,nav:I,center:N,hidden:j,visible:$,right:y,title:T,linkWrapper:S,parent:W,linkItem:E,link:q,sublinkToggle:L,standard:M,triangle:R,transparent:z,twoColumn:D,navInner:A,grid:B,separator:F,newTabIcon:G,linkContent:H,open:J,sublinks:K,show:Q,primaryColumn:U,spotlightColumn:V,sublinksInner:X,sublinksColumn:Y,chevron:Z,default:"_default_1bon6_773",advanced:O,subtitle:P,withSpotlight:nn,withoutSpotlight:on,searchWrapper:en};function sn({link:n,path:s,parentPath:l,openPath:u,togglePath:i,updateTriangleIndicator:d,setOpenPath:t,renderLinks:h,buttonRefs:p}){var c;const r=u===s,_=!!((c=n.sublinks)!=null&&c.length),a=m.useRef(null);return p.current.set(s,a.current),e.jsxs("div",{className:`${o.linkWrapper} ${l?"":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:()=>{l||t(null)},role:"menuitem",children:[n.label,n.isExternal&&e.jsx(v.ExternalLink,{className:o.newTabIcon,size:16})]}):e.jsxs("button",{ref:a,"aria-haspopup":_?"true":void 0,"aria-expanded":r,className:`${o.sublinkToggle} ${r?o.open:""}`,onClick:()=>i(s),onMouseEnter:()=>{d(s),t(s)},children:[n.label,_&&e.jsx(k.ChevronDown,{size:18,className:o.chevron})]})}),_&&e.jsx("div",{className:`${o.sublinks} ${r?o.show:""}`,onMouseLeave:()=>i(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:h(n.sublinks,s)})})})})]},s)}exports.NavLink=sn;exports.styles=o;
|
|
@@ -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.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 { CallToAction as a } from "./index.mjs";
|
|
4
4
|
import "../../../index-BxZzxMp0.js";
|
|
5
5
|
i("CallToAction", () => {
|
|
6
6
|
o("renders as a button when 'as' is set to 'button'", () => {
|
|
@@ -1 +1,31 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime")
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index69.css');const e=require("react/jsx-runtime"),c=require("../../../index-CBK5rp6X.cjs"),r=require("../../../createLucideIcon-DpotSgUx.cjs"),k=require("../../../external-link-DDShu-48.cjs"),f=require("../../../play-CQBnZgNa.cjs"),j=require("../../../chevron-down-DfK1XBl3.cjs"),L=require("../../../arrow-right-DO6S4vfx.cjs"),m=require("../../../arrow-left-4E3t8axP.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 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,11 +1,169 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import "../../../
|
|
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";
|
|
1
|
+
import { jsx as e, jsxs as _, Fragment as I } from "react/jsx-runtime";
|
|
2
|
+
import { f as g, g as k, h as b } from "../../../index-CeBA0PT0.js";
|
|
3
|
+
import { c as r } from "../../../createLucideIcon-C8GTh_Qx.js";
|
|
4
|
+
import { E as A } from "../../../external-link-BOPobeQJ.js";
|
|
5
|
+
import { P as x } from "../../../play-DYgKiSaf.js";
|
|
6
|
+
import { C as $ } from "../../../chevron-down-DSUzBz9F.js";
|
|
7
|
+
import { A as L } from "../../../arrow-right-QEwnX3Sk.js";
|
|
8
|
+
import { A as M } from "../../../arrow-left-BIJvHwNQ.js";
|
|
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
|
+
}
|
|
9
167
|
export {
|
|
10
|
-
|
|
168
|
+
ve as CallToAction
|
|
11
169
|
};
|
|
@@ -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("../CallToAction/index.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 { CallToAction as y } from "../CallToAction/index.mjs";
|
|
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", Y = "_details_1mxlp_71", B = "_nav_1mxlp_84", C = "_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: Y,
|
|
12
|
+
nav: B,
|
|
13
|
+
logo: C,
|
|
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-Dr7pguuT.cjs");require("../../../external-link-DDShu-48.cjs");require("../../../chevron-down-DfK1XBl3.cjs");exports.NavLink=e.NavLink;
|
|
@@ -1,16 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),
|
|
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;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),a=require("react"),e=require("../../../NavLink-Dr7pguuT.cjs"),ee=require("../../../chevron-down-DfK1XBl3.cjs"),se=require("../../../external-link-DDShu-48.cjs"),te={standard:e.styles.standard,transparent:e.styles.transparent},ne={left:e.styles.left,center:e.styles.center,right:e.styles.right};function le({title:P,logo:N,items:y,groups:d,utilityItems:w,isSticky:T=!1,showSearch:k=!0,showLocaleSelect:g=!0,alignment:f="right",variant:D="standard",navigationType:C="default",className:G}){const[X,F]=a.useState(0),[E,o]=a.useState(null),[v,V]=a.useState(!1),[L,A]=a.useState(!1),[H,J]=a.useState(!1),[K,Q]=a.useState(null),[m,p]=a.useState(0),[U,R]=a.useState(null),x=a.useRef(null),u=a.useRef(null),b=a.useRef(new Map),M=()=>s.jsx("div",{className:`${e.styles.linkWrapper} ${e.styles.parent} ${e.styles.searchWrapper}`,children:s.jsx("div",{className:e.styles.linkItem})}),I=()=>s.jsx("div",{className:`${e.styles.linkWrapper} ${e.styles.parent} `,children:s.jsx("div",{className:e.styles.linkItem})}),$=n=>{const t=b.current.get(n);if(t&&u.current){const r=t.getBoundingClientRect(),i=u.current.getBoundingClientRect(),j=r.left-i.left+r.width/2;Q(j)}};console.log($);const Y=n=>{o(t=>t===n?null:n)},Z=n=>n.map((t,r)=>{var B,q;const i=`group-${r}`,h=U===r,j=(B=t.primaryItems)==null?void 0:B[m??0];return console.log(j),s.jsxs("div",{className:`${e.styles.linkWrapper} ${e.styles.parent}`,onMouseEnter:()=>{R(r),o(i),$(i)},onMouseLeave:()=>{R(null),p(0),o(null)},children:[s.jsx("div",{className:e.styles.linkItem,children:s.jsxs("button",{ref:l=>{b.current.set(i,l)},role:"menuitem","aria-haspopup":"true","aria-expanded":h,"aria-controls":`submenu-${r}`,className:`${e.styles.sublinkToggle} ${h?e.styles.open:""} `,children:[t.title,s.jsx(ee.ChevronDown,{size:18,className:e.styles.chevron})]})}),s.jsx("div",{id:`submenu-${r}`,className:`${e.styles.sublinks} ${h?e.styles.show:""}`,role:"menu","aria-label":`${t.title} submenu`,children:s.jsx("div",{children:s.jsxs("div",{className:`${e.styles.sublinksInner} ${t.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}),(q=t.primaryItems)==null?void 0:q.map((l,c)=>l.href?s.jsxs("a",{href:l.href,className:`${e.styles.link} ${m===c?e.styles.open:""}`,target:l.isExternal?"_blank":"_self",rel:l.isExternal?"noopener noreferrer":void 0,onClick:()=>{var O;o(null),(O=l.onClick)==null||O.call(l)},onMouseEnter:()=>l.sublinks?p(c):null,role:"menuitem",children:[s.jsxs("span",{className:e.styles.linkContent,children:[l.label,l.subtitle&&s.jsx("span",{className:e.styles.subtitle,children:l.subtitle})]}),l.isExternal&&s.jsx(se.ExternalLink,{className:e.styles.newTabIcon,size:16})]},l._key??c):s.jsx("button",{className:`${e.styles.sublinkToggle} ${m===c?e.styles.open:""}`,onMouseEnter:()=>p(c),children:s.jsxs("span",{className:e.styles.linkContent,children:[l.label,l.subtitle&&s.jsx("span",{className:e.styles.subtitle,children:l.subtitle})]})},l._key??c))]}),t.spotlight&&s.jsx("div",{className:`${e.styles.sublinksColumn} ${e.styles.spotlightColumn}`,children:t.spotlight})]})})})]},t._key??`group-${r}`)}),S=(n,t="")=>n.map(r=>{const i=`${t}/${r.label}`;return s.jsx(e.NavLink,{link:r,path:i,parentPath:t,openPath:E,togglePath:Y,updateTriangleIndicator:$,setOpenPath:o,renderLinks:S,buttonRefs:b},r._key??i)}),W=a.useCallback(n=>{x.current&&!x.current.contains(n.target)&&o(null)},[]),_=a.useCallback(()=>{z(),typeof window<"u"&&window.innerWidth>768&&(V(!1),o(null),typeof document<"u"&&(document.body.style.overflow=""))},[]),z=a.useCallback(()=>{if(u.current){const n=u.current.getBoundingClientRect().width;F(n),J(!0)}},[]);return a.useEffect(()=>{const n=typeof window<"u",t=typeof document<"u";return n&&window.addEventListener("resize",_),t&&document.addEventListener("click",W),z(),()=>{n&&window.removeEventListener("resize",_),t&&document.removeEventListener("click",W)}},[]),a.useEffect(()=>{if(typeof window<"u"){const n=()=>{const t=window.innerWidth<768;A(t)};return n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)}},[]),a.useEffect(()=>{if(typeof document<"u")return document.body.style.overflow=v?"hidden":"",()=>{document.body.style.overflow=""}},[v]),s.jsx("header",{ref:x,className:`${G??""} ${ne[f]} ${te[D]} ${e.styles.navbar} ${T?e.styles.sticky:""} ${d&&d.length?e.styles.advanced:e.styles.default}`,role:"navigation","aria-label":"Main navigation",children:s.jsxs("div",{className:`${e.styles.container} ${(!w||w.length===0)&&f!=="center"?e.styles.twoColumn:""}`,children:[N?s.jsx("div",{className:e.styles.logo,children:N}):s.jsx("div",{className:e.styles.title,children:P}),s.jsx("nav",{ref:u,style:{left:f==="center"?`calc(50% - ${X/2}px)`:"0"},className:`${e.styles.nav} ${v?e.styles.open:""} ${H?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:`${K}px`},className:`${e.styles.triangle} ${E?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"})}),C==="default"&&y&&s.jsxs("div",{className:e.styles.grid,children:[y&&y.length>0&&S(y),k&&!L&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:e.styles.separator}),s.jsx(M,{})]}),g&&s.jsx(I,{})]}),!L&&C==="advanced"&&d&&s.jsxs("div",{className:e.styles.grid,children:[d.length>0&&Z(d),k&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:e.styles.separator}),s.jsx(M,{})]}),g&&s.jsx(I,{})]})]})})]})})}exports.Navbar=le;
|