quirk-ui 0.0.489 → 0.0.490
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-BrPk0efZ.js → CategoryFilters-C1Kze_NT.js} +1 -1
- package/dist/{CategoryFilters-CJsgwMGz.cjs → CategoryFilters-W4ngPBij.cjs} +1 -1
- 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 -1
- package/dist/core/components/CallToAction/index.mjs +1 -1
- package/dist/core/components/Footer/index.cjs +1 -1
- package/dist/core/components/Footer/index.mjs +7 -7
- package/dist/core/components/NavBar/index.cjs +1 -1
- package/dist/core/components/NavBar/index.mjs +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.mjs +1 -1
- package/dist/index-BN6814Bi.cjs +31 -0
- package/dist/{index-CIb65n0z.js → index-C-E0ib2G.js} +66 -66
- package/dist/main.cjs +1 -1
- package/dist/main.mjs +1 -1
- 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 +2 -2
- package/dist/next/blocks/TabsBlock/index.cjs +1 -1
- package/dist/next/blocks/TabsBlock/index.mjs +1 -1
- package/dist/next/blocks/WasHelpfulBlock/index.cjs +1 -1
- package/dist/next/blocks/WasHelpfulBlock/index.mjs +1 -1
- package/dist/next/cards/SpotlightCard/index.cjs +1 -1
- package/dist/next/cards/SpotlightCard/index.mjs +1 -1
- package/dist/next/ui/CallToActions/index.cjs +1 -1
- package/dist/next/ui/CallToActions/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/index-DpYgzTme.cjs +0 -31
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as n, jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import { C as u } from "./index-
|
|
2
|
+
import { C as u } from "./index-C-E0ib2G.js";
|
|
3
3
|
import { X as m } from "./x-CnsEH4Ox.js";
|
|
4
4
|
import './assets/CategoryFilters.css';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", s = {
|
|
5
5
|
documentList: f,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./assets/CategoryFilters.css');const t=require("react/jsx-runtime"),z=require("./index-
|
|
1
|
+
"use strict";require('./assets/CategoryFilters.css');const t=require("react/jsx-runtime"),z=require("./index-BN6814Bi.cjs"),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",b="_listHeader_17zlj_58",f="_listSearch_17zlj_71",g="_clearSearch_17zlj_98",C="_listHeaderFilters_17zlj_117",k="_listResults_17zlj_128",y="_listSort_17zlj_132",v="_filterToggle_17zlj_155",w="_filterHeader_17zlj_170",T="_loadMore_17zlj_191",q="_filterList_17zlj_195",N="_listFilters_17zlj_202",$="_applyFilters_17zlj_210",A="_show_17zlj_239",I="_hide_17zlj_248",M="_buttonIsLoading_17zlj_299",s={documentList:x,container:F,heading:H,listContainer:L,listWrapper:S,list:m,listHeader:b,listSearch:f,clearSearch:g,listHeaderFilters:C,listResults:k,listSort:y,filterToggle:v,filterHeader:w,loadMore:T,filterList:q,listFilters:N,applyFilters:$,show:A,hide:I,buttonIsLoading:M};function R({categoryFilters:l,selectedCategories:i,setSelectedCategories:r,setArticles:_,setStart:o,setHasMore:c,showFilters:a,toggleFilters:n,isLoading:d}){return t.jsxs("div",{className:`${s.listFilters} ${a?s.show:s.hide}`,children:[t.jsxs("div",{className:s.filterHeader,children:[t.jsx("h5",{children:"Filters"}),t.jsx("button",{onClick:()=>n(),children:t.jsx(p.X,{size:24})})]}),t.jsx("div",{className:s.filterList,children:l==null?void 0:l.map(e=>t.jsxs("label",{children:[t.jsx("input",{type:"checkbox",value:e._id,checked:i.includes(e._id),onChange:h=>{const j=h.target.checked?[...i,e._id]:i.filter(u=>u!==e._id);_([]),o(0),c(!0),r(j)}}),e.title]},e._id))}),t.jsx(z.CallToAction,{as:"button",variant:"secondary",onClick:n,disabled:d,className:s.applyFilters,children:"Apply Filters"})]})}exports.CategoryFilters=R;exports.styles=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),e=require("../../../vi.B-PuvDzu-CAkOcHRx.cjs"),l=require("../../../index-
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),e=require("../../../vi.B-PuvDzu-CAkOcHRx.cjs"),l=require("../../../index-BN6814Bi.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 { C as a } from "../../../index-
|
|
3
|
+
import { C as a } from "../../../index-C-E0ib2G.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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");const e=require("../../../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");const e=require("../../../index-BN6814Bi.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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index48.css');const e=require("react/jsx-runtime"),f=require("../../../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index48.css');const e=require("react/jsx-runtime"),f=require("../../../index-BN6814Bi.cjs"),T=require("../ButtonGroup/index.cjs"),s=require("../../../index-CBK5rp6X.cjs"),y=require("../../../external-link-DDShu-48.cjs"),$="_footer_1mkr8_1",F="_container_1mkr8_10",I="_primaryNav_1mkr8_24",w="_secondaryNav_1mkr8_34",q="_details_1mkr8_71",A="_nav_1mkr8_84",S="_logo_1mkr8_92",L="_socialItems_1mkr8_107",E="_group_1mkr8_114",z="_groups_1mkr8_124",B="_groupTitle_1mkr8_135",C="_sublinks_1mkr8_144",G="_link_1mkr8_152",M="_newTabIcon_1mkr8_170",P="_bottom_1mkr8_184",r={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:s.FaFacebook,Twitter:s.FaTwitter,LinkedIn:s.FaLinkedin,Instagram:s.FaInstagram,YouTube:s.FaYoutube};function O({logo:m,items:o,primaryInfo:u,secondaryInfo:p,utilityItems:b,socialItems:l,copyright:v,className:k}){const t=(n,c="",i=!1)=>n.map(a=>{var h;const x=`${c}/${a.label}`,g=(h=a.sublinks)==null?void 0:h.length,_=!!a.href,d=Y[a.icon],j=_?"a":"div",N=_?{href:a.href,target:a.isExternal?"_blank":"_self",rel:a.isExternal?"noopener noreferrer":void 0,role:i?"link":"menuitem","aria-label":a.label}:{role:i?"link":"menuitem","aria-label":a.label};return e.jsxs("div",{className:`${r.group}`,children:[e.jsxs(j,{className:`${_?r.link:""} ${g?r.groupTitle:""}`,...N,children:[!i&&a.label,d&&e.jsx(d,{}),!d&&a.isExternal&&e.jsx(y.ExternalLink,{className:r.newTabIcon,size:16})]}),g&&e.jsx("div",{className:`${r.sublinks}`,role:"menu","aria-label":`${a.label} submenu`,children:t(a.sublinks,x)})]},x)});return e.jsx("footer",{className:`${k??""} ${r.footer}`,children:e.jsxs("div",{className:r.container,children:[e.jsxs("div",{className:r.primaryNav,children:[e.jsxs("div",{className:r.details,children:[m&&e.jsx("div",{className:r.logo,children:m}),l&&l.length>0&&e.jsx("div",{className:r.socialItems,children:t(l,"",!0)}),u&&e.jsx("div",{children:u}),p&&e.jsx("div",{children:p})]}),o&&o.length>0&&e.jsx("nav",{className:r.nav,id:"footer-menu",role:"menubar",children:e.jsx("div",{className:r.groups,children:t(o,"",!1)})})]}),e.jsxs("div",{className:r.secondaryNav,children:[v&&e.jsx("div",{className:r.bottom,children:e.jsx("span",{children:v})}),b&&e.jsx("nav",{children:e.jsx(T.ButtonGroup,{orientation:"horizontal",children:b.map((n,c)=>e.jsx(f.CallToAction,{as:"a",href:n.href??"/",variant:n.variant??"primary",displayType:n.displayType??"text",imageSrc:n.imageSrc,imageAlt:n.imageAlt,"aria-label":n.ariaLabel??(typeof n.label=="string"?n.label:""),icon:n.icon,iconAlignment:n.iconAlignment,children:n.label},n._key||c))})})]})]})})}exports.Footer=O;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
2
|
-
import { C as y } from "../../../index-
|
|
2
|
+
import { C as y } from "../../../index-C-E0ib2G.js";
|
|
3
3
|
import { ButtonGroup as $ } from "../ButtonGroup/index.mjs";
|
|
4
4
|
import { a as x, 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";
|
|
@@ -40,7 +40,7 @@ function X({
|
|
|
40
40
|
}) {
|
|
41
41
|
const c = (e, t = "", i = !1) => e.map((n) => {
|
|
42
42
|
var k;
|
|
43
|
-
const
|
|
43
|
+
const g = `${t}/${n.label}`, h = (k = n.sublinks) == null ? void 0 : k.length, m = !!n.href, _ = K[n.icon], f = m ? "a" : "div", T = m ? {
|
|
44
44
|
href: n.href,
|
|
45
45
|
target: n.isExternal ? "_blank" : "_self",
|
|
46
46
|
rel: n.isExternal ? "noopener noreferrer" : void 0,
|
|
@@ -54,7 +54,7 @@ function X({
|
|
|
54
54
|
/* @__PURE__ */ o(
|
|
55
55
|
f,
|
|
56
56
|
{
|
|
57
|
-
className: `${m ? r.link : ""} ${
|
|
57
|
+
className: `${m ? r.link : ""} ${h ? r.groupTitle : ""}`,
|
|
58
58
|
...T,
|
|
59
59
|
children: [
|
|
60
60
|
!i && n.label,
|
|
@@ -63,16 +63,16 @@ function X({
|
|
|
63
63
|
]
|
|
64
64
|
}
|
|
65
65
|
),
|
|
66
|
-
|
|
66
|
+
h && /* @__PURE__ */ a(
|
|
67
67
|
"div",
|
|
68
68
|
{
|
|
69
69
|
className: `${r.sublinks}`,
|
|
70
70
|
role: "menu",
|
|
71
71
|
"aria-label": `${n.label} submenu`,
|
|
72
|
-
children: c(n.sublinks,
|
|
72
|
+
children: c(n.sublinks, g)
|
|
73
73
|
}
|
|
74
74
|
)
|
|
75
|
-
] },
|
|
75
|
+
] }, g);
|
|
76
76
|
});
|
|
77
77
|
return /* @__PURE__ */ a("footer", { className: `${N ?? ""} ${r.footer}`, children: /* @__PURE__ */ o("div", { className: r.container, children: [
|
|
78
78
|
/* @__PURE__ */ o("div", { className: r.primaryNav, children: [
|
|
@@ -95,7 +95,7 @@ function X({
|
|
|
95
95
|
displayType: e.displayType ?? "text",
|
|
96
96
|
imageSrc: e.imageSrc,
|
|
97
97
|
imageAlt: e.imageAlt,
|
|
98
|
-
"aria-label": e.ariaLabel ?? e.label,
|
|
98
|
+
"aria-label": e.ariaLabel ?? (typeof e.label == "string" ? e.label : ""),
|
|
99
99
|
icon: e.icon,
|
|
100
100
|
iconAlignment: e.iconAlignment,
|
|
101
101
|
children: e.label
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),r=require("react"),te=require("../Modal/index.cjs"),O=require("../../../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),r=require("react"),te=require("../Modal/index.cjs"),O=require("../../../index-BN6814Bi.cjs"),ie=require("../ButtonGroup/index.cjs"),e=require("../../../NavLink-By_lBPb-.cjs"),I=require("../../utils/NoScroll/noScroll.cjs"),D=require("../../../external-link-DDShu-48.cjs"),pe=require("../../../x-Dft9NVe_.cjs"),G=require("../../../createLucideIcon-DpotSgUx.cjs"),Ne=require("../../../chevron-down-DfK1XBl3.cjs");/**
|
|
2
2
|
* @license lucide-react v0.488.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as a, jsxs as c, Fragment as oe } from "react/jsx-runtime";
|
|
2
2
|
import { useState as b, useEffect as U, useRef as I, useCallback as G } from "react";
|
|
3
3
|
import { Modal as te } from "../Modal/index.mjs";
|
|
4
|
-
import { a as Me, C as H } from "../../../index-
|
|
4
|
+
import { a as Me, C as H } from "../../../index-C-E0ib2G.js";
|
|
5
5
|
import { ButtonGroup as de } from "../ButtonGroup/index.mjs";
|
|
6
6
|
import { s as e, N as Ee } from "../../../NavLink-CQpDLYjg.js";
|
|
7
7
|
import { lockScroll as Ae, unlockScroll as he } from "../../utils/NoScroll/noScroll.mjs";
|
package/dist/core.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./assets/index.css');;/* empty css */const e=require("./core/components/Accordion/index.cjs"),o=require("./core/components/Alert/index.cjs"),n=require("./core/components/Avatar/index.cjs"),r=require("./core/components/Badge/index.cjs"),t=require("./core/components/Box/index.cjs"),c=require("./core/components/Breadcrumbs/index.cjs"),i=require("./core/components/ButtonGroup/index.cjs"),_=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./assets/index.css');;/* empty css */const e=require("./core/components/Accordion/index.cjs"),o=require("./core/components/Alert/index.cjs"),n=require("./core/components/Avatar/index.cjs"),r=require("./core/components/Badge/index.cjs"),t=require("./core/components/Box/index.cjs"),c=require("./core/components/Breadcrumbs/index.cjs"),i=require("./core/components/ButtonGroup/index.cjs"),_=require("./index-BN6814Bi.cjs"),s=require("./core/components/Card/index.cjs"),a=require("./core/components/Carousel/index.cjs"),d=require("./core/components/Checkbox/index.cjs"),u=require("./core/components/Container/index.cjs"),p=require("./core/components/DatePicker/index.cjs"),x=require("./core/components/Divider/index.cjs"),m=require("./core/components/Drawer/index.cjs"),l=require("./core/components/Fieldset/index.cjs"),q=require("./core/components/FileUpload/index.cjs"),S=require("./core/components/FloatingActionButton/index.cjs"),B=require("./core/components/Footer/index.cjs"),T=require("./core/components/Form/index.cjs"),b=require("./core/components/Grid/index.cjs"),C=require("./core/components/Heading/index.cjs"),g=require("./core/components/IconButton/index.cjs"),A=require("./core/components/Input/index.cjs"),F=require("./core/components/Label/index.cjs"),v=require("./core/components/List/index.cjs"),k=require("./core/components/Modal/index.cjs"),P=require("./core/components/MultiSelect/index.cjs"),h=require("./core/components/NavBar/index.cjs"),D=require("./core/components/Notification/index.cjs"),N=require("./core/components/NotificationContainer/index.cjs"),f=require("./core/components/ProgressBar/index.cjs"),M=require("./core/components/Radio/index.cjs"),w=require("./core/components/Range/index.cjs"),G=require("./core/components/Select/index.cjs"),I=require("./core/components/Skeleton/index.cjs"),L=require("./core/components/Spacer/index.cjs"),R=require("./core/components/Spinner/index.cjs"),H=require("./core/components/Stack/index.cjs"),U=require("./core/components/Switch/index.cjs"),y=require("./core/components/Table/index.cjs"),j=require("./core/components/Tabs/index.cjs"),O=require("./core/components/Text/index.cjs"),z=require("./core/components/Textarea/index.cjs"),E=require("./core/components/Tooltip/index.cjs"),J=require("./core/utils/ThemeProvider/index.cjs");exports.Accordion=e.Accordion;exports.Alert=o.Alert;exports.Avatar=n.Avatar;exports.Badge=r.Badge;exports.Box=t.Box;exports.Breadcrumbs=c.Breadcrumbs;exports.ButtonGroup=i.ButtonGroup;exports.CallToAction=_.CallToAction;exports.Card=s.Card;exports.Carousel=a.Carousel;exports.Checkbox=d.Checkbox;exports.Container=u.Container;exports.DatePicker=p.DatePicker;exports.Divider=x.Divider;exports.Drawer=m.Drawer;exports.Fieldset=l.Fieldset;exports.FileUpload=q.FileUpload;exports.FloatingActionButton=S.FloatingActionButton;exports.Footer=B.Footer;exports.Form=T.Form;exports.Grid=b.Grid;exports.Heading=C.Heading;exports.IconButton=g.IconButton;exports.Input=A.Input;exports.Label=F.Label;exports.List=v.List;exports.Modal=k.Modal;exports.MultiSelect=P.MultiSelect;exports.Navbar=h.Navbar;exports.Notification=D.Notification;exports.NotificationContainer=N.NotificationContainer;exports.ProgressBar=f.ProgressBar;exports.Radio=M.Radio;exports.Range=w.Range;exports.Select=G.Select;exports.Skeleton=I.Skeleton;exports.Spacer=L.Spacer;exports.Spinner=R.Spinner;exports.Stack=H.Stack;exports.Switch=U.Switch;exports.Table=y.Table;exports.Tabs=j.Tabs;exports.Text=O.Text;exports.Textarea=z.Textarea;exports.Tooltip=E.Tooltip;exports.ThemeProvider=J.ThemeProvider;
|
package/dist/core.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { Badge as i } from "./core/components/Badge/index.mjs";
|
|
|
6
6
|
import { Box as l } from "./core/components/Box/index.mjs";
|
|
7
7
|
import { Breadcrumbs as d } from "./core/components/Breadcrumbs/index.mjs";
|
|
8
8
|
import { ButtonGroup as u } from "./core/components/ButtonGroup/index.mjs";
|
|
9
|
-
import { C } from "./index-
|
|
9
|
+
import { C } from "./index-C-E0ib2G.js";
|
|
10
10
|
import { Card as T } from "./core/components/Card/index.mjs";
|
|
11
11
|
import { Carousel as g } from "./core/components/Carousel/index.mjs";
|
|
12
12
|
import { Checkbox as F } from "./core/components/Checkbox/index.mjs";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";require('./assets/index70.css');const e=require("react/jsx-runtime"),o=require("./index-CBK5rp6X.cjs"),r=require("./createLucideIcon-DpotSgUx.cjs"),f=require("./external-link-DDShu-48.cjs"),k=require("./play-CQBnZgNa.cjs"),m=require("./chevron-down-DfK1XBl3.cjs"),j=require("./arrow-right-DO6S4vfx.cjs"),L=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"}]],p=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 $=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],q=r.createLucideIcon("chevron-right",$);/**
|
|
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 A=[["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"}]],C=r.createLucideIcon("log-in",A);/**
|
|
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 M=[["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"}]],N=r.createLucideIcon("phone",M);/**
|
|
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 R=[["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"}]],T=r.createLucideIcon("refresh-ccw",R);/**
|
|
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 F=[["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"}]],z=r.createLucideIcon("settings",F),E="_callToAction_1wtpc_1",D="_blurred_1wtpc_26",V="_primary_1wtpc_27",G="_secondary_1wtpc_28",P="_primaryInverted_1wtpc_29",B="_secondaryInverted_1wtpc_30",H="_blurredInverted_1wtpc_32",J="_link_1wtpc_46",K="_linkInverted_1wtpc_47",O="_underline_1wtpc_48",Q="_underlineInverted_1wtpc_49",S="_content_1wtpc_59",U="_icon_1wtpc_193",W="_iconLeft_1wtpc_213",X="_iconRight_1wtpc_217",n={callToAction:E,blurred:D,primary:V,secondary:G,primaryInverted:P,secondaryInverted:B,blurredInverted:H,link:J,linkInverted:K,underline:O,underlineInverted:Q,content:S,icon:U,iconLeft:W,iconRight:X},Y={apps:e.jsxs(e.Fragment,{children:[e.jsx(o.FaApple,{})," ",e.jsx(o.FaGooglePlay,{})]}),"arrow-left":e.jsx(L.ArrowLeft,{}),"arrow-right":e.jsx(j.ArrowRight,{}),"chevron-down":e.jsx(m.ChevronDown,{}),"chevron-left":e.jsx(p,{}),"chevron-right":e.jsx(q,{}),envelope:e.jsx(o.FaEnvelope,{}),phone:e.jsx(N,{}),play:e.jsx(k.Play,{}),"new-tab":e.jsx(f.ExternalLink,{}),refresh:e.jsx(T,{}),settings:e.jsx(z,{}),"sign-in":e.jsx(C,{})},h={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},Z={left:n.iconLeft,right:n.iconRight};function ee({variant:a="primary",displayType:v="text",imageSrc:i,imageAlt:u="",ImageComponent:ne,icon:s,iconAlignment:y="right",useRouter:re=!1,className:l,children:t,disabled:I=!1,...c}){const d=v==="image"?typeof t!="string"?t:i?e.jsx("img",{width:"175",height:"59",src:i,alt:u}):null:e.jsxs("span",{className:`${n.content} ${Z[y]}`,children:[e.jsx("span",{children:t}),s&&e.jsx("span",{className:n.icon,children:Y[s]})]});if(c.as=="a"){const{href:x,target:_,...w}=c,g=_==="_blank";return e.jsx("a",{href:x,target:_,rel:g?"noopener noreferrer":void 0,className:`${l??""} ${n.callToAction} ${h[a]}`,...w,children:d})}return e.jsx("button",{className:`${l??""} ${n.callToAction} ${h[a]}`,disabled:I,...c,children:d})}exports.CallToAction=ee;exports.ChevronLeft=p;
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { jsx as e, jsxs as _, Fragment as
|
|
2
|
-
import { f as
|
|
3
|
-
import { c as
|
|
4
|
-
import { E as
|
|
5
|
-
import { P as
|
|
6
|
-
import { C as
|
|
7
|
-
import { A as
|
|
8
|
-
import { A as
|
|
1
|
+
import { jsx as e, jsxs as _, Fragment as g } from "react/jsx-runtime";
|
|
2
|
+
import { f as w, g as I, h as k } from "./index-CeBA0PT0.js";
|
|
3
|
+
import { c as t } from "./createLucideIcon-C8GTh_Qx.js";
|
|
4
|
+
import { E as b } from "./external-link-BOPobeQJ.js";
|
|
5
|
+
import { P as A } from "./play-DYgKiSaf.js";
|
|
6
|
+
import { C as x } from "./chevron-down-DSUzBz9F.js";
|
|
7
|
+
import { A as $ } from "./arrow-right-QEwnX3Sk.js";
|
|
8
|
+
import { A as L } from "./arrow-left-BIJvHwNQ.js";
|
|
9
9
|
import './assets/index70.css';/**
|
|
10
10
|
* @license lucide-react v0.488.0 - ISC
|
|
11
11
|
*
|
|
12
12
|
* This source code is licensed under the ISC license.
|
|
13
13
|
* See the LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
|
-
const
|
|
15
|
+
const C = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], M = t("chevron-left", C);
|
|
16
16
|
/**
|
|
17
17
|
* @license lucide-react v0.488.0 - ISC
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the ISC license.
|
|
20
20
|
* See the LICENSE file in the root directory of this source tree.
|
|
21
21
|
*/
|
|
22
|
-
const
|
|
22
|
+
const N = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], R = t("chevron-right", N);
|
|
23
23
|
/**
|
|
24
24
|
* @license lucide-react v0.488.0 - ISC
|
|
25
25
|
*
|
|
26
26
|
* This source code is licensed under the ISC license.
|
|
27
27
|
* See the LICENSE file in the root directory of this source tree.
|
|
28
28
|
*/
|
|
29
|
-
const
|
|
29
|
+
const T = [
|
|
30
30
|
["path", { d: "M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4", key: "u53s6r" }],
|
|
31
31
|
["polyline", { points: "10 17 15 12 10 7", key: "1ail0h" }],
|
|
32
32
|
["line", { x1: "15", x2: "3", y1: "12", y2: "12", key: "v6grx8" }]
|
|
33
|
-
],
|
|
33
|
+
], E = t("log-in", T);
|
|
34
34
|
/**
|
|
35
35
|
* @license lucide-react v0.488.0 - ISC
|
|
36
36
|
*
|
|
37
37
|
* This source code is licensed under the ISC license.
|
|
38
38
|
* See the LICENSE file in the root directory of this source tree.
|
|
39
39
|
*/
|
|
40
|
-
const
|
|
40
|
+
const q = [
|
|
41
41
|
[
|
|
42
42
|
"path",
|
|
43
43
|
{
|
|
@@ -45,26 +45,26 @@ const F = [
|
|
|
45
45
|
key: "foiqr5"
|
|
46
46
|
}
|
|
47
47
|
]
|
|
48
|
-
],
|
|
48
|
+
], F = t("phone", q);
|
|
49
49
|
/**
|
|
50
50
|
* @license lucide-react v0.488.0 - ISC
|
|
51
51
|
*
|
|
52
52
|
* This source code is licensed under the ISC license.
|
|
53
53
|
* See the LICENSE file in the root directory of this source tree.
|
|
54
54
|
*/
|
|
55
|
-
const
|
|
55
|
+
const z = [
|
|
56
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
57
|
["path", { d: "M3 3v5h5", key: "1xhq8a" }],
|
|
58
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
59
|
["path", { d: "M16 16h5v5", key: "ccwih5" }]
|
|
60
|
-
],
|
|
60
|
+
], j = t("refresh-ccw", z);
|
|
61
61
|
/**
|
|
62
62
|
* @license lucide-react v0.488.0 - ISC
|
|
63
63
|
*
|
|
64
64
|
* This source code is licensed under the ISC license.
|
|
65
65
|
* See the LICENSE file in the root directory of this source tree.
|
|
66
66
|
*/
|
|
67
|
-
const
|
|
67
|
+
const P = [
|
|
68
68
|
[
|
|
69
69
|
"path",
|
|
70
70
|
{
|
|
@@ -73,40 +73,40 @@ const V = [
|
|
|
73
73
|
}
|
|
74
74
|
],
|
|
75
75
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
76
|
-
],
|
|
77
|
-
callToAction:
|
|
78
|
-
blurred:
|
|
79
|
-
primary:
|
|
80
|
-
secondary:
|
|
81
|
-
primaryInverted:
|
|
82
|
-
secondaryInverted:
|
|
83
|
-
blurredInverted:
|
|
84
|
-
link:
|
|
85
|
-
linkInverted:
|
|
86
|
-
underline:
|
|
87
|
-
underlineInverted:
|
|
88
|
-
content:
|
|
89
|
-
icon:
|
|
90
|
-
iconLeft:
|
|
91
|
-
iconRight:
|
|
92
|
-
},
|
|
93
|
-
apps: /* @__PURE__ */ _(
|
|
94
|
-
/* @__PURE__ */ e(
|
|
76
|
+
], V = t("settings", P), D = "_callToAction_1wtpc_1", G = "_blurred_1wtpc_26", B = "_primary_1wtpc_27", H = "_secondary_1wtpc_28", J = "_primaryInverted_1wtpc_29", K = "_secondaryInverted_1wtpc_30", O = "_blurredInverted_1wtpc_32", Q = "_link_1wtpc_46", S = "_linkInverted_1wtpc_47", U = "_underline_1wtpc_48", W = "_underlineInverted_1wtpc_49", X = "_content_1wtpc_59", Y = "_icon_1wtpc_193", Z = "_iconLeft_1wtpc_213", ee = "_iconRight_1wtpc_217", n = {
|
|
77
|
+
callToAction: D,
|
|
78
|
+
blurred: G,
|
|
79
|
+
primary: B,
|
|
80
|
+
secondary: H,
|
|
81
|
+
primaryInverted: J,
|
|
82
|
+
secondaryInverted: K,
|
|
83
|
+
blurredInverted: O,
|
|
84
|
+
link: Q,
|
|
85
|
+
linkInverted: S,
|
|
86
|
+
underline: U,
|
|
87
|
+
underlineInverted: W,
|
|
88
|
+
content: X,
|
|
89
|
+
icon: Y,
|
|
90
|
+
iconLeft: Z,
|
|
91
|
+
iconRight: ee
|
|
92
|
+
}, ne = {
|
|
93
|
+
apps: /* @__PURE__ */ _(g, { children: [
|
|
94
|
+
/* @__PURE__ */ e(I, {}),
|
|
95
95
|
" ",
|
|
96
|
-
/* @__PURE__ */ e(
|
|
96
|
+
/* @__PURE__ */ e(k, {})
|
|
97
97
|
] }),
|
|
98
|
-
"arrow-left": /* @__PURE__ */ e(
|
|
99
|
-
"arrow-right": /* @__PURE__ */ e(
|
|
100
|
-
"chevron-down": /* @__PURE__ */ e(
|
|
101
|
-
"chevron-left": /* @__PURE__ */ e(
|
|
102
|
-
"chevron-right": /* @__PURE__ */ e(
|
|
103
|
-
envelope: /* @__PURE__ */ e(
|
|
104
|
-
phone: /* @__PURE__ */ e(
|
|
105
|
-
play: /* @__PURE__ */ e(
|
|
106
|
-
"new-tab": /* @__PURE__ */ e(
|
|
107
|
-
refresh: /* @__PURE__ */ e(
|
|
108
|
-
settings: /* @__PURE__ */ e(
|
|
109
|
-
"sign-in": /* @__PURE__ */ e(
|
|
98
|
+
"arrow-left": /* @__PURE__ */ e(L, {}),
|
|
99
|
+
"arrow-right": /* @__PURE__ */ e($, {}),
|
|
100
|
+
"chevron-down": /* @__PURE__ */ e(x, {}),
|
|
101
|
+
"chevron-left": /* @__PURE__ */ e(M, {}),
|
|
102
|
+
"chevron-right": /* @__PURE__ */ e(R, {}),
|
|
103
|
+
envelope: /* @__PURE__ */ e(w, {}),
|
|
104
|
+
phone: /* @__PURE__ */ e(F, {}),
|
|
105
|
+
play: /* @__PURE__ */ e(A, {}),
|
|
106
|
+
"new-tab": /* @__PURE__ */ e(b, {}),
|
|
107
|
+
refresh: /* @__PURE__ */ e(j, {}),
|
|
108
|
+
settings: /* @__PURE__ */ e(V, {}),
|
|
109
|
+
"sign-in": /* @__PURE__ */ e(E, {})
|
|
110
110
|
}, p = {
|
|
111
111
|
primary: n.primary,
|
|
112
112
|
primaryInverted: n.primaryInverted,
|
|
@@ -123,33 +123,33 @@ const V = [
|
|
|
123
123
|
right: n.iconRight
|
|
124
124
|
};
|
|
125
125
|
function ve({
|
|
126
|
-
variant:
|
|
126
|
+
variant: a = "primary",
|
|
127
127
|
displayType: h = "text",
|
|
128
128
|
imageSrc: c,
|
|
129
129
|
imageAlt: v = "",
|
|
130
|
-
ImageComponent:
|
|
130
|
+
ImageComponent: re,
|
|
131
131
|
icon: i,
|
|
132
132
|
iconAlignment: y = "right",
|
|
133
133
|
useRouter: oe = !1,
|
|
134
134
|
className: l,
|
|
135
|
-
children:
|
|
136
|
-
disabled:
|
|
137
|
-
...
|
|
135
|
+
children: r,
|
|
136
|
+
disabled: m = !1,
|
|
137
|
+
...o
|
|
138
138
|
}) {
|
|
139
|
-
const s = h === "image" ?
|
|
140
|
-
/* @__PURE__ */ e("span", { children:
|
|
141
|
-
i && /* @__PURE__ */ e("span", { className: n.icon, children:
|
|
139
|
+
const s = h === "image" ? typeof r != "string" ? r : 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: r }),
|
|
141
|
+
i && /* @__PURE__ */ e("span", { className: n.icon, children: ne[i] })
|
|
142
142
|
] });
|
|
143
|
-
if (
|
|
144
|
-
const { href:
|
|
143
|
+
if (o.as == "a") {
|
|
144
|
+
const { href: f, target: d, ...u } = o;
|
|
145
145
|
return /* @__PURE__ */ e(
|
|
146
146
|
"a",
|
|
147
147
|
{
|
|
148
|
-
href:
|
|
148
|
+
href: f,
|
|
149
149
|
target: d,
|
|
150
150
|
rel: d === "_blank" ? "noopener noreferrer" : void 0,
|
|
151
|
-
className: `${l ?? ""} ${n.callToAction} ${p[
|
|
152
|
-
...
|
|
151
|
+
className: `${l ?? ""} ${n.callToAction} ${p[a]}`,
|
|
152
|
+
...u,
|
|
153
153
|
children: s
|
|
154
154
|
}
|
|
155
155
|
);
|
|
@@ -157,14 +157,14 @@ function ve({
|
|
|
157
157
|
return /* @__PURE__ */ e(
|
|
158
158
|
"button",
|
|
159
159
|
{
|
|
160
|
-
className: `${l ?? ""} ${n.callToAction} ${p[
|
|
161
|
-
disabled:
|
|
162
|
-
...
|
|
160
|
+
className: `${l ?? ""} ${n.callToAction} ${p[a]}`,
|
|
161
|
+
disabled: m,
|
|
162
|
+
...o,
|
|
163
163
|
children: s
|
|
164
164
|
}
|
|
165
165
|
);
|
|
166
166
|
}
|
|
167
167
|
export {
|
|
168
168
|
ve as C,
|
|
169
|
-
|
|
169
|
+
M as a
|
|
170
170
|
};
|
package/dist/main.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./assets/index.css');;/* empty css */const n=require("./core/components/Accordion/index.cjs"),r=require("./core/components/Alert/index.cjs"),c=require("./core/components/Avatar/index.cjs"),t=require("./core/components/Badge/index.cjs"),i=require("./core/components/Box/index.cjs"),_=require("./core/components/Breadcrumbs/index.cjs"),s=require("./core/components/ButtonGroup/index.cjs"),l=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./assets/index.css');;/* empty css */const n=require("./core/components/Accordion/index.cjs"),r=require("./core/components/Alert/index.cjs"),c=require("./core/components/Avatar/index.cjs"),t=require("./core/components/Badge/index.cjs"),i=require("./core/components/Box/index.cjs"),_=require("./core/components/Breadcrumbs/index.cjs"),s=require("./core/components/ButtonGroup/index.cjs"),l=require("./index-BN6814Bi.cjs"),d=require("./core/components/Card/index.cjs"),a=require("./core/components/Carousel/index.cjs"),u=require("./core/components/Checkbox/index.cjs"),x=require("./core/components/Container/index.cjs"),k=require("./core/components/DatePicker/index.cjs"),p=require("./core/components/Divider/index.cjs"),B=require("./core/components/Drawer/index.cjs"),q=require("./core/components/Fieldset/index.cjs"),m=require("./core/components/FileUpload/index.cjs"),b=require("./core/components/FloatingActionButton/index.cjs"),C=require("./core/components/Footer/index.cjs"),S=require("./core/components/Form/index.cjs"),T=require("./core/components/Grid/index.cjs"),g=require("./core/components/Heading/index.cjs"),A=require("./core/components/IconButton/index.cjs"),F=require("./core/components/Input/index.cjs"),L=require("./core/components/Label/index.cjs"),h=require("./core/components/List/index.cjs"),v=require("./core/components/Modal/index.cjs"),D=require("./core/components/MultiSelect/index.cjs"),H=require("./core/components/NavBar/index.cjs"),P=require("./core/components/Notification/index.cjs"),R=require("./core/components/NotificationContainer/index.cjs"),f=require("./core/components/ProgressBar/index.cjs"),G=require("./core/components/Radio/index.cjs"),N=require("./core/components/Range/index.cjs"),M=require("./core/components/Select/index.cjs"),w=require("./core/components/Skeleton/index.cjs"),I=require("./core/components/Spacer/index.cjs"),y=require("./core/components/Spinner/index.cjs"),Q=require("./core/components/Stack/index.cjs"),U=require("./core/components/Switch/index.cjs"),W=require("./core/components/Table/index.cjs"),j=require("./core/components/Tabs/index.cjs"),O=require("./core/components/Text/index.cjs"),z=require("./core/components/Textarea/index.cjs"),E=require("./core/components/Tooltip/index.cjs"),J=require("./core/utils/ThemeProvider/index.cjs"),K=require("./next/blocks/AccordionBlock/index.cjs"),V=require("./next/blocks/AdditionalCategoriesBlock/index.cjs"),X=require("./next/blocks/CardGridBlock/index.cjs"),Y=require("./next/blocks/CarouselBlock/index.cjs"),Z=require("./next/blocks/ContentBlock/index.cjs"),$=require("./next/blocks/DocumentListBlock/index.cjs"),ee=require("./next/blocks/FaqBlock/index.cjs"),oe=require("./next/blocks/FeaturedDocumentsBlock/index.cjs"),ne=require("./next/blocks/HeroBlock/index.cjs"),e=require("./next/blocks/HeroBlock/HeroContext.cjs"),re=require("./next/ui/LocaleLink/index.cjs"),ce=require("./next/blocks/QuoteBlock/index.cjs"),te=require("./next/blocks/RichTextBlock/index.cjs"),ie=require("./next/ui/PortableTextRenderer/index.cjs"),_e=require("./next/blocks/StickyScrollBlock/index.cjs"),se=require("./next/blocks/TabsBlock/index.cjs"),le=require("./next/blocks/WasHelpfulBlock/index.cjs"),de=require("./next/cards/SpotlightCard/index.cjs"),o=require("./next/contexts/LocaleBridge.cjs");exports.Accordion=n.Accordion;exports.Alert=r.Alert;exports.Avatar=c.Avatar;exports.Badge=t.Badge;exports.Box=i.Box;exports.Breadcrumbs=_.Breadcrumbs;exports.ButtonGroup=s.ButtonGroup;exports.CallToAction=l.CallToAction;exports.Card=d.Card;exports.Carousel=a.Carousel;exports.Checkbox=u.Checkbox;exports.Container=x.Container;exports.DatePicker=k.DatePicker;exports.Divider=p.Divider;exports.Drawer=B.Drawer;exports.Fieldset=q.Fieldset;exports.FileUpload=m.FileUpload;exports.FloatingActionButton=b.FloatingActionButton;exports.Footer=C.Footer;exports.Form=S.Form;exports.Grid=T.Grid;exports.Heading=g.Heading;exports.IconButton=A.IconButton;exports.Input=F.Input;exports.Label=L.Label;exports.List=h.List;exports.Modal=v.Modal;exports.MultiSelect=D.MultiSelect;exports.Navbar=H.Navbar;exports.Notification=P.Notification;exports.NotificationContainer=R.NotificationContainer;exports.ProgressBar=f.ProgressBar;exports.Radio=G.Radio;exports.Range=N.Range;exports.Select=M.Select;exports.Skeleton=w.Skeleton;exports.Spacer=I.Spacer;exports.Spinner=y.Spinner;exports.Stack=Q.Stack;exports.Switch=U.Switch;exports.Table=W.Table;exports.Tabs=j.Tabs;exports.Text=O.Text;exports.Textarea=z.Textarea;exports.Tooltip=E.Tooltip;exports.ThemeProvider=J.ThemeProvider;exports.AccordionBlock=K.AccordionBlock;exports.AdditionalCategoriesBlock=V.AdditionalCategoriesBlock;exports.CardGridBlock=X.CardGridBlock;exports.CarouselBlock=Y.CarouselBlock;exports.ContentBlock=Z.ContentBlock;exports.DocumentListBlock=$.DocumentListBlock;exports.FaqBlock=ee.FaqBlock;exports.FeaturedDocumentsBlock=oe.FeaturedDocumentsBlock;exports.HeroBlock=ne.HeroBlock;exports.HeroProvider=e.HeroProvider;exports.useHeroContext=e.useHeroContext;exports.LocaleLink=re.LocaleLink;exports.QuoteBlock=ce.QuoteBlock;exports.RichTextBlock=te.RichTextBlock;exports.RichText=ie.RichText;exports.StickyScrollBlock=_e.StickyScrollBlock;exports.TabsBlock=se.TabsBlock;exports.WasHelpfulBlock=le.WasHelpfulBlock;exports.SpotlightCard=de.SpotlightCard;exports.LocaleBridgeProvider=o.LocaleBridgeProvider;exports.useLocaleBridge=o.useLocaleBridge;
|
package/dist/main.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { Badge as i } from "./core/components/Badge/index.mjs";
|
|
|
6
6
|
import { Box as l } from "./core/components/Box/index.mjs";
|
|
7
7
|
import { Breadcrumbs as d } from "./core/components/Breadcrumbs/index.mjs";
|
|
8
8
|
import { ButtonGroup as k } from "./core/components/ButtonGroup/index.mjs";
|
|
9
|
-
import { C as u } from "./index-
|
|
9
|
+
import { C as u } from "./index-C-E0ib2G.js";
|
|
10
10
|
import { Card as S } from "./core/components/Card/index.mjs";
|
|
11
11
|
import { Carousel as g } from "./core/components/Carousel/index.mjs";
|
|
12
12
|
import { Checkbox as A } from "./core/components/Checkbox/index.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");const e=require("../../../CategoryFilters-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");const e=require("../../../CategoryFilters-W4ngPBij.cjs");require("../../../index-BN6814Bi.cjs");require("../../../x-Dft9NVe_.cjs");exports.CategoryFilters=e.CategoryFilters;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import { C as p } from "../../../CategoryFilters-
|
|
3
|
-
import "../../../index-
|
|
2
|
+
import { C as p } from "../../../CategoryFilters-C1Kze_NT.js";
|
|
3
|
+
import "../../../index-C-E0ib2G.js";
|
|
4
4
|
import "../../../x-CnsEH4Ox.js";
|
|
5
5
|
export {
|
|
6
6
|
p as CategoryFilters
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("react"),R=require("../../ui/PortableTextRenderer/index.cjs"),Z=require("../../hooks/useStyleClasses.cjs"),G=require("../../contexts/LocaleBridge.cjs"),b=require("../../../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("react"),R=require("../../ui/PortableTextRenderer/index.cjs"),Z=require("../../hooks/useStyleClasses.cjs"),G=require("../../contexts/LocaleBridge.cjs"),b=require("../../../index-BN6814Bi.cjs"),X=require("../../../core/components/Input/index.cjs"),J=require("../../../core/components/Select/index.cjs"),K=require("../../cards/BlogArticleCard/index.cjs"),t=require("../../../CategoryFilters-W4ngPBij.cjs"),Q=require("../../../x-Dft9NVe_.cjs"),V=[{label:"Newest",value:"date-desc"},{label:"Oldest",value:"date-asc"},{label:"Title A-Z",value:"title-asc"},{label:"Title Z-A",value:"title-desc"},{label:"Most Popular",value:"popular-desc"}];function Y({heading:o,layout:B="grid",includeFilters:y,excludeFilters:p,limit:C=3,categoryFilters:d,documentType:w,styleOptions:$}){const[_,c]=l.useState([]),[P,M]=l.useState(null),[N,z]=l.useState("date-desc"),[f,g]=l.useState(()=>typeof window>"u"?[]:Array.from(new URLSearchParams(window.location.search).getAll("categories"))),[L,i]=l.useState(0),[a,A]=l.useState(!1),[m,h]=l.useState(!1),[T,r]=l.useState(!0),[u,S]=l.useState(""),[v,D]=l.useState(""),{locale:I}=G.useLocaleBridge(),H=Z.useStyleClasses($),O={list:t.styles.list}[B??"grid"],W=s=>{z(s.target.value),c([]),i(0),r(!0)},k=()=>{h(!m)},U=()=>{c([]),i(0),r(!0),g([]),S(""),h(!1)},q=async()=>{if(a||!T)return;A(!0);const s=new URLSearchParams({start:String(L),limit:String(C),sort:N,documentType:w,locale:I});v&&s.append("search",v),f.forEach(n=>s.append("categories",n)),y==null||y.forEach(n=>s.append("include",n._id)),p==null||p.forEach(n=>s.append("exclude",n._id));try{const x=await(await fetch(`/api/articles?${s.toString()}`,{method:"GET"})).json();c(j=>[...j,...x.articles]),i(j=>j+C),M(x.totalCount),L+x.articles.length>=x.totalCount&&r(!1)}catch(n){console.error("Failed to load articles:",n),r(!1)}finally{A(!1)}},E=l.useCallback(()=>{typeof window<"u"&&window.innerWidth>768&&(h(!1),typeof document<"u"&&(document.body.style.overflow=""))},[]);return l.useEffect(()=>{const s=typeof window<"u";return s&&window.addEventListener("resize",E),()=>{s&&window.removeEventListener("resize",E)}},[]),l.useEffect(()=>{if(typeof document<"u")return document.body.style.overflow=m?"hidden":"",()=>{document.body.style.overflow=""}},[m]),l.useEffect(()=>{const s=setTimeout(()=>{D(u)},1e3);return()=>clearTimeout(s)},[u]),l.useEffect(()=>{q()},[v,N,f.join(",")]),e.jsx("section",{className:`${t.styles.documentList} ${H}`,children:e.jsxs("article",{className:t.styles.container,children:[e.jsxs("div",{className:t.styles.heading,children:[(o==null?void 0:o.title)&&e.jsx(R.RichText,{blocks:o==null?void 0:o.title}),(o==null?void 0:o.description)&&e.jsx(R.RichText,{blocks:o==null?void 0:o.description})]}),e.jsxs("div",{className:t.styles.listContainer,children:[(d==null?void 0:d.length)&&e.jsxs("div",{className:t.styles.filterToggle,children:[e.jsx(b.CallToAction,{as:"button",variant:"secondary",onClick:k,disabled:a,icon:"settings",iconAlignment:"left",children:"Filters"}),e.jsx(b.CallToAction,{as:"button",variant:"link",onClick:U,disabled:a||f.length===0&&u.length===0,children:"Reset"})]}),d&&e.jsx(t.CategoryFilters,{categoryFilters:d,selectedCategories:f,setSelectedCategories:g,setArticles:c,setStart:i,setHasMore:r,showFilters:m,toggleFilters:k,isLoading:a}),e.jsxs("div",{className:t.styles.listWrapper,children:[e.jsxs("div",{className:t.styles.listHeader,children:[e.jsxs("div",{className:t.styles.listResults,children:["Results: ",e.jsx("span",{children:P})]}),e.jsxs("div",{className:t.styles.listHeaderFilters,children:[e.jsxs("div",{className:t.styles.listSearch,children:[e.jsx(X.Input,{type:"text",name:"list-search",placeholder:"Search articles",value:u,onChange:s=>{S(s.target.value),c([]),i(0),r(!0)}}),u&&e.jsx("button",{className:t.styles.clearSearch,onClick:()=>{S(""),c([]),i(0),r(!0)},children:e.jsx(Q.X,{size:21})})]}),e.jsx("div",{className:t.styles.listSort,children:e.jsx(J.Select,{id:"list-sort",name:"list-sort",options:V,onChange:W})})]})]}),e.jsx("div",{className:`${t.styles.list} ${O}`,children:_&&_.map(s=>w=="blog"&&e.jsx(K.BlogArticleCard,{article:s},s._id))}),T&&e.jsx("div",{className:t.styles.loadMore,children:e.jsx(b.CallToAction,{as:"button",variant:"primary",onClick:q,disabled:a,icon:"refresh",iconAlignment:"left",className:a?t.styles.buttonIsLoading:"",children:a?"Loading...":"Load more"})})]})]})]})})}exports.DocumentListBlock=Y;
|
|
@@ -3,11 +3,11 @@ import { useState as a, useCallback as X, useEffect as w } from "react";
|
|
|
3
3
|
import { RichText as B } from "../../ui/PortableTextRenderer/index.mjs";
|
|
4
4
|
import { useStyleClasses as J } from "../../hooks/useStyleClasses.mjs";
|
|
5
5
|
import { useLocaleBridge as K } from "../../contexts/LocaleBridge.mjs";
|
|
6
|
-
import { C as L } from "../../../index-
|
|
6
|
+
import { C as L } from "../../../index-C-E0ib2G.js";
|
|
7
7
|
import { Input as Q } from "../../../core/components/Input/index.mjs";
|
|
8
8
|
import { Select as V } from "../../../core/components/Select/index.mjs";
|
|
9
9
|
import { BlogArticleCard as Y } from "../../cards/BlogArticleCard/index.mjs";
|
|
10
|
-
import { s, C as F } from "../../../CategoryFilters-
|
|
10
|
+
import { s, C as F } from "../../../CategoryFilters-C1Kze_NT.js";
|
|
11
11
|
import { X as ee } from "../../../x-CnsEH4Ox.js";
|
|
12
12
|
const te = [
|
|
13
13
|
{ label: "Newest", value: "date-desc" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index4.css');const t=require("react/jsx-runtime"),J=require("react"),X=require("../../hooks/useStyleClasses.cjs"),Y=require("../../../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index4.css');const t=require("react/jsx-runtime"),J=require("react"),X=require("../../hooks/useStyleClasses.cjs"),Y=require("../../../index-BN6814Bi.cjs"),h=require("../../../core/components/Tabs/index.cjs"),l=require("../../ui/PortableTextRenderer/index.cjs"),f=require("../../ui/CallToActions/index.cjs"),u=require("next/image"),Z=require("../../utils/resolveLinkUrl.cjs"),A="_tabs_1x4bo_1",O="_container_1x4bo_7",tt="_heading_1x4bo_25",et="_text_1x4bo_32",st="_headingHorizontal_1x4bo_46",at="_title_1x4bo_54",nt="_headingVertical_1x4bo_64",rt="_tabContent_1x4bo_74",lt="_vertical_1x4bo_97",ct="_tabsContainer_1x4bo_69",it="_tabImage_1x4bo_112",ot="_tabText_1x4bo_120",xt="_gridItems_1x4bo_141",bt="_gridItem_1x4bo_141",dt="_fullBleed_1x4bo_179",_t="_overlay_1x4bo_206",e={tabs:A,container:O,heading:tt,text:et,headingHorizontal:st,title:at,headingVertical:nt,tabContent:rt,vertical:lt,tabsContainer:ct,tabImage:it,tabText:ot,gridItems:xt,gridItem:bt,default:"_default_1x4bo_164",fullBleed:dt,overlay:_t};function ht({heading:a,image:n,items:_,callToAction:c,styleOptions:r}){const[j,K]=J.useState([]);J.useEffect(()=>{async function s(){const i=await Promise.all(_.map(o=>{var x,b;return(x=o==null?void 0:o.content)!=null&&x.tabLink?Z.resolveLinkURL((b=o==null?void 0:o.content)==null?void 0:b.tabLink):void 0}));K(i)}s()},[_]);const m=X.useStyleClasses(r),k=(r==null?void 0:r.layout)??"default",T={horizontal:e.headingHorizontal,vertical:e.headingVertical}[a.headingLayout??"horizontal"],N={default:e.default,"full-bleed":e.fullBleed}[(r==null?void 0:r.layout)??"default"],C={orientationHorizontal:"horizontal",orientationVertical:"vertical"}[(r==null?void 0:r.orientation)??"orientationHorizontal"],Q={themeDefault:"default",themeLight:"light",themeDark:"dark",themeTransparent:"transparent"}[(r==null?void 0:r.theme)??"themeDefault"],I=()=>n&&n.imageUrl?t.jsx("div",{children:t.jsx(u,{src:n.imageUrl,alt:(n==null?void 0:n.asset.altText)||(n==null?void 0:n.asset.description)||"Tabs image",width:600,height:658,priority:!0})}):null,v=t.jsxs(h.Tabs,{defaultIndex:0,orientation:C,theme:Q,children:[t.jsx(h.Tabs.List,{children:_.map((s,i)=>t.jsx(h.Tabs.Trigger,{index:i,children:s.title},s.title))}),_.map((s,i)=>{var o,x,b,L,$,R,g,p,U,q,z,B,w,V,y,H,D,M,S,G,P,F;return t.jsx(h.Tabs.Panel,{index:i,children:t.jsxs("div",{className:`${e.tabContent} ${e[C]}`,children:[((x=(o=s.content)==null?void 0:o.tabImage)==null?void 0:x.imageUrl)&&t.jsx("div",{className:e.tabImage,children:t.jsx(u,{src:(b=s.content)==null?void 0:b.tabImage.imageUrl,alt:((L=s.content)==null?void 0:L.tabImage.asset.altText)||"Tab item image",width:250,height:250})}),t.jsxs("div",{className:e.tabText,children:[(($=s.content)==null?void 0:$.tabText)&&t.jsx(l.RichText,{blocks:s.content.tabText}),((R=s.content)==null?void 0:R.tabGridItem)&&Array.isArray((g=s.content)==null?void 0:g.tabGridItem)&&t.jsx("div",{className:e.gridItems,children:s.content.tabGridItem.map((d,W)=>{var E;return t.jsxs("div",{className:e.gridItem,children:[((E=d.itemImage)==null?void 0:E.imageUrl)&&t.jsx(u,{src:d.itemImage.imageUrl,alt:d.itemImage.asset.altText||"Grid item image",width:200,height:200}),d.itemText&&t.jsx(l.RichText,{blocks:d.itemText})]},W)})}),j[i]&&j[i]!=="#"&&t.jsx(Y.CallToAction,{as:"a",variant:((U=(p=s.content)==null?void 0:p.tabLink)==null?void 0:U.variant)??"primary",href:j[i]??"#",target:((B=(z=(q=s.content)==null?void 0:q.tabLink)==null?void 0:z.linkOptions)==null?void 0:B.linkType)==="external"?"_blank":"_self",rel:((y=(V=(w=s.content)==null?void 0:w.tabLink)==null?void 0:V.linkOptions)==null?void 0:y.linkType)==="external"?"noopener noreferrer":"","aria-label":((D=(H=s.content)==null?void 0:H.tabLink)==null?void 0:D.ariaLabel)||((S=(M=s.content)==null?void 0:M.tabLink)==null?void 0:S.label),children:(P=(G=s.content)==null?void 0:G.tabLink)==null?void 0:P.label},i),((F=s.content)==null?void 0:F.tabDisclaimer)&&t.jsx(l.RichText,{blocks:s.content.tabDisclaimer})]})]},i)},s.title)})]});if(k==="split")return t.jsx("section",{className:`${e.tabs} ${m}`,children:t.jsxs("article",{className:e.container,children:[t.jsxs("div",{className:`${e.heading} ${T}`,children:[t.jsxs("div",{children:[a.eyebrow&&t.jsx(l.RichText,{blocks:a.eyebrow}),t.jsx(l.RichText,{className:e.title,blocks:a.title})]}),a.description&&t.jsx(l.RichText,{blocks:a.description}),c&&t.jsx(f.CallToActions,{items:c.items,alignment:c.alignment}),a.disclaimer&&t.jsx(l.RichText,{blocks:a.disclaimer}),t.jsx("div",{className:e.tabsContainer,children:v})]}),I()]})});if(k==="default")return t.jsx("section",{className:`${e.tabs} ${N} ${m}`,children:t.jsxs("article",{className:e.container,children:[I(),t.jsxs("div",{className:`${e.heading} ${T}`,children:[t.jsx(l.RichText,{className:e.title,blocks:a.title}),((a==null?void 0:a.description)||(c==null?void 0:c.items))&&t.jsx("div",{className:e.text,children:a.description&&t.jsx(l.RichText,{blocks:a.description})})]}),t.jsx("div",{className:e.tabsContainer,children:v}),c&&t.jsx(f.CallToActions,{items:c.items,alignment:c.alignment}),a.disclaimer&&t.jsx(l.RichText,{blocks:a.disclaimer})]})});if(k==="full-bleed")return t.jsx("section",{className:`${e.tabs} ${N} ${m} tabsFullBleed`,children:t.jsxs("article",{className:e.container,children:[(n==null?void 0:n.imageUrl)&&t.jsx(u,{src:n.imageUrl??"",alt:(n==null?void 0:n.asset.altText)||(n==null?void 0:n.asset.description)||"Card image",fill:!0,priority:!0,style:{objectFit:"cover"},draggable:!1,sizes:"(min-width: 500px) 500px, 100vw"}),t.jsxs("div",{className:e.overlay,children:[t.jsxs("div",{className:`${e.heading} ${T}`,children:[t.jsx(l.RichText,{className:e.title,blocks:a.title}),a.description&&t.jsx(l.RichText,{blocks:a.description}),t.jsx("div",{className:e.tabsContainer,children:v})]}),c&&t.jsx(f.CallToActions,{items:c.items,alignment:c.alignment}),a.disclaimer&&t.jsx(l.RichText,{blocks:a.disclaimer})]})]})})}exports.TabsBlock=ht;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useState as X, useEffect as Y } from "react";
|
|
3
3
|
import { useStyleClasses as Z } from "../../hooks/useStyleClasses.mjs";
|
|
4
|
-
import { C as A } from "../../../index-
|
|
4
|
+
import { C as A } from "../../../index-C-E0ib2G.js";
|
|
5
5
|
import { Tabs as f } from "../../../core/components/Tabs/index.mjs";
|
|
6
6
|
import { RichText as s } from "../../ui/PortableTextRenderer/index.mjs";
|
|
7
7
|
import { CallToActions as I } from "../../ui/CallToActions/index.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index3.css');const e=require("react/jsx-runtime"),l=require("react"),p=require("../../../core/components/ButtonGroup/index.cjs"),u=require("../../../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index3.css');const e=require("react/jsx-runtime"),l=require("react"),p=require("../../../core/components/ButtonGroup/index.cjs"),u=require("../../../index-BN6814Bi.cjs"),f="_wasHelpful_nphsl_1",_="_container_nphsl_5",m="_buttons_nphsl_34",b="_heading_nphsl_49",n={wasHelpful:f,container:_,buttons:m,heading:b};function g({page:t,type:d}){const[h,a]=l.useState(!1),[i,c]=l.useState(!1),o=`wasHelpful:${t._id}`;l.useEffect(()=>{const s=localStorage.getItem(o);(s==="yes"||s==="no")&&a(!0)},[o]);async function r(s){c(!0),await fetch("/api/helpful",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({postId:t._id,isHelpful:s})}),localStorage.setItem(o,s?"yes":"no"),a(!0),c(!1)}return e.jsx("section",{className:`${n.wasHelpful} ${d=="article"?"blog":""}`,children:e.jsxs("article",{className:n.container,children:[e.jsx("hr",{}),h?e.jsx("p",{className:n.heading,children:"Thanks for your feedback!"}):e.jsxs(e.Fragment,{children:[e.jsx("p",{className:n.heading,children:"Was this article helpful?"}),e.jsxs(p.ButtonGroup,{className:n.buttons,orientation:"horizontal",alignment:"center",children:[e.jsx(u.CallToAction,{as:"button",variant:"primary",onClick:()=>r(!0),disabled:i,children:"Yes"}),e.jsx(u.CallToAction,{as:"button",variant:"secondary",onClick:()=>r(!1),disabled:i,children:"No"})]})]}),t.helpfulYesCount>0&&e.jsxs("p",{children:[t.helpfulYesCount.toLocaleString(),t.helpfulYesCount===1?" person":" people"," found this article helpful"]}),e.jsx("hr",{})]})})}exports.WasHelpfulBlock=g;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e, jsxs as o, Fragment as p } from "react/jsx-runtime";
|
|
2
2
|
import { useState as u, useEffect as m } from "react";
|
|
3
3
|
import { ButtonGroup as b } from "../../../core/components/ButtonGroup/index.mjs";
|
|
4
|
-
import { C as h } from "../../../index-
|
|
4
|
+
import { C as h } from "../../../index-C-E0ib2G.js";
|
|
5
5
|
import '../../../assets/index3.css';const _ = "_wasHelpful_nphsl_1", g = "_container_nphsl_5", y = "_buttons_nphsl_34", C = "_heading_nphsl_49", s = {
|
|
6
6
|
wasHelpful: _,
|
|
7
7
|
container: g,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index2.css');const n=require("react/jsx-runtime"),A=require("next/image"),j=require("../../../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index2.css');const n=require("react/jsx-runtime"),A=require("next/image"),j=require("../../../index-BN6814Bi.cjs"),u=require("../../ui/PortableTextRenderer/index.cjs"),b="_spotlight_tk8y9_1",v="_imageWrapper_tk8y9_7",O="_content_tk8y9_29",f="_title_tk8y9_36",N="_description_tk8y9_44",g="_actions_tk8y9_48",i={spotlight:b,imageWrapper:v,content:O,title:f,description:N,actions:g};function q({spotlight:e}){var a,c,r,o,s,d,_,x,T,k,m,p;const y=(a=e.image)==null?void 0:a.asset.altText,l=((c=e.callToAction.linkOptions)==null?void 0:c.linkType)==="external";let t="#";return((r=e.callToAction.linkOptions)==null?void 0:r.linkType)==="external"&&((o=e.callToAction.linkOptions)!=null&&o.externalUrl)?t=(s=e.callToAction.linkOptions)==null?void 0:s.externalUrl:((d=e.callToAction.linkOptions)==null?void 0:d.linkType)==="internal"&&((x=(_=e.callToAction.linkOptions)==null?void 0:_.internalUrl)!=null&&x.slug.current)&&(t=`/${(k=(T=e.callToAction.linkOptions)==null?void 0:T.internalUrl)==null?void 0:k.slug.current}`),n.jsxs("div",{className:i.spotlight,children:[e.image&&n.jsx("div",{className:i.imageWrapper,children:n.jsx(A,{src:((m=e.image)==null?void 0:m.imageUrl)??"",alt:y||e.image.description||"Content image",width:600,height:400,priority:!0})}),n.jsxs("div",{className:i.content,children:[n.jsx("div",{children:n.jsx(u.RichText,{className:i.title,blocks:e.title})}),e.description&&n.jsx("div",{children:n.jsx(u.RichText,{className:i.description,blocks:e.description})})]}),((p=e.callToAction)==null?void 0:p.linkOptions)&&n.jsx("div",{className:i.actions,children:n.jsx(j.CallToAction,{as:"a",variant:e.callToAction.variant??"primary",href:t,target:l?"_blank":"_self",rel:l?"noopener noreferrer":"","aria-label":e.callToAction.ariaLabel||e.callToAction.label,children:e.callToAction.label})})]})}exports.SpotlightCard=q;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as y, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import v from "next/image";
|
|
3
|
-
import { C as O } from "../../../index-
|
|
3
|
+
import { C as O } from "../../../index-C-E0ib2G.js";
|
|
4
4
|
import { RichText as f } from "../../ui/PortableTextRenderer/index.mjs";
|
|
5
5
|
import '../../../assets/index2.css';const b = "_spotlight_tk8y9_1", u = "_imageWrapper_tk8y9_7", N = "_content_tk8y9_29", U = "_title_tk8y9_36", C = "_description_tk8y9_44", W = "_actions_tk8y9_48", i = {
|
|
6
6
|
spotlight: b,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),s=require("react"),v=require("../../../core/components/ButtonGroup/index.cjs"),i=require("../../../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),s=require("react"),v=require("../../../core/components/ButtonGroup/index.cjs"),i=require("../../../index-BN6814Bi.cjs"),c=require("../../../core/components/Modal/index.cjs"),u=require("../../utils/resolveLinkUrl.cjs");function A({items:e,alignment:g,className:p}){const[d,b]=s.useState([]);return s.useEffect(()=>{if(!(e!=null&&e.length)||!u.resolveLinkURL)return;async function n(){const o=await Promise.all(e.map(l=>u.resolveLinkURL(l)));b(o)}n()},[e]),e!=null&&e.length?r.jsx(v.ButtonGroup,{className:p,alignment:g,children:e.slice(0,3).map((n,o)=>{var t,a;const l=d[o]??"#";switch(n.type){case"link":return r.jsx(i.CallToAction,{as:"a",variant:n.variant??"primary",href:l,target:((t=n.linkOptions)==null?void 0:t.linkType)==="external"?"_blank":"_self",rel:((a=n.linkOptions)==null?void 0:a.linkType)==="external"?"noopener noreferrer":"","aria-label":n.ariaLabel||n.label,icon:n.icon,iconAlignment:n.iconAlignment??"right",children:n.label},o);case"modal":return r.jsx(c.Modal,{trigger:r.jsx(i.CallToAction,{as:"button",variant:n.variant??"primary",icon:n.icon,iconAlignment:n.iconAlignment??"right",children:n.label}),content:n.modalContent},o);case"video":return r.jsx(c.Modal,{trigger:r.jsx(i.CallToAction,{as:"button",variant:n.variant??"primary",icon:n.icon,iconAlignment:n.iconAlignment??"right",children:n.label}),content:r.jsx("video",{src:n.videoUrl,controls:!0,autoPlay:!0})},o);case"download":return r.jsx(i.CallToAction,{as:"a",variant:n.variant??"primary",href:l,download:!0,target:"_blank",rel:"noopener noreferrer","aria-label":n.ariaLabel||n.label,icon:n.icon,iconAlignment:n.iconAlignment??"right",children:n.label},o)}})}):null}exports.CallToActions=A;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as c, useEffect as b } from "react";
|
|
3
3
|
import { ButtonGroup as h } from "../../../core/components/ButtonGroup/index.mjs";
|
|
4
|
-
import { C as i } from "../../../index-
|
|
4
|
+
import { C as i } from "../../../index-C-E0ib2G.js";
|
|
5
5
|
import { Modal as g } from "../../../core/components/Modal/index.mjs";
|
|
6
6
|
import { resolveLinkURL as p } from "../../utils/resolveLinkUrl.mjs";
|
|
7
7
|
function C({
|
package/package.json
CHANGED
package/dist/index-DpYgzTme.cjs
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";require('./assets/index70.css');const e=require("react/jsx-runtime"),c=require("./index-CBK5rp6X.cjs"),r=require("./createLucideIcon-DpotSgUx.cjs"),f=require("./external-link-DDShu-48.cjs"),j=require("./play-CQBnZgNa.cjs"),L=require("./chevron-down-DfK1XBl3.cjs"),m=require("./arrow-right-DO6S4vfx.cjs"),b=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 $=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],p=r.createLucideIcon("chevron-left",$);/**
|
|
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"}]],C=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 T=[["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",T);/**
|
|
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",V="_blurred_1wtpc_26",G="_primary_1wtpc_27",P="_secondary_1wtpc_28",B="_primaryInverted_1wtpc_29",H="_secondaryInverted_1wtpc_30",J="_blurredInverted_1wtpc_32",K="_link_1wtpc_46",O="_linkInverted_1wtpc_47",Q="_underline_1wtpc_48",S="_underlineInverted_1wtpc_49",U="_content_1wtpc_59",W="_icon_1wtpc_193",X="_iconLeft_1wtpc_213",Y="_iconRight_1wtpc_217",n={callToAction:D,blurred:V,primary:G,secondary:P,primaryInverted:B,secondaryInverted:H,blurredInverted:J,link:K,linkInverted:O,underline:Q,underlineInverted:S,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(b.ArrowLeft,{}),"arrow-right":e.jsx(m.ArrowRight,{}),"chevron-down":e.jsx(L.ChevronDown,{}),"chevron-left":e.jsx(p,{}),"chevron-right":e.jsx(A,{}),envelope:e.jsx(c.FaEnvelope,{}),phone:e.jsx(C,{}),play:e.jsx(j.Play,{}),"new-tab":e.jsx(f.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:v="text",imageSrc:a,imageAlt:u="",ImageComponent:i,icon:s,iconAlignment:y="right",useRouter:re=!1,className:l,children:x,disabled:I=!1,...t}){const d=v==="image"?i||(a?e.jsx("img",{width:"175",height:"59",src:a,alt:u}):null):e.jsxs("span",{className:`${n.content} ${ee[y]}`,children:[e.jsx("span",{children:x}),s&&e.jsx("span",{className:n.icon,children:Z[s]})]});if(t.as=="a"){const{href:w,target:h,...g}=t,k=h==="_blank";return e.jsx("a",{href:w,target:h,rel:k?"noopener noreferrer":void 0,className:`${l??""} ${n.callToAction} ${_[o]}`,...g,children:d})}return e.jsx("button",{className:`${l??""} ${n.callToAction} ${_[o]}`,disabled:I,...t,children:d})}exports.CallToAction=ne;exports.ChevronLeft=p;
|