quirk-ui 0.0.600 → 0.0.602
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-BRS7RdTL.js → CategoryFilters-BsnHpXzU.js} +1 -1
- package/dist/{CategoryFilters-B26PrE_b.cjs → CategoryFilters-r7uMMRR5.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 +1 -1
- 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.d.ts +4 -1
- package/dist/core.mjs +1 -1
- package/dist/{index-CphRwNnS.js → index-D_fcBxhe.js} +67 -50
- package/dist/{index-DzeNqIoq.cjs → index-SiOdvzc8.cjs} +4 -4
- package/dist/main.cjs +1 -1
- package/dist/main.d.ts +4 -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/HeroBlock/index.cjs +2 -2
- package/dist/next/blocks/HeroBlock/index.mjs +30 -28
- 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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { C as u } from "./index-
|
|
2
|
+
import { C as u } from "./index-D_fcBxhe.js";
|
|
3
3
|
import { X as m } from "./x-CnsEH4Ox.js";
|
|
4
4
|
import './assets/CategoryFilters.css';const H = "_documentList_1firg_1", L = "_container_1firg_9", S = "_heading_1firg_20", F = "_listContainer_1firg_30", b = "_listWrapper_1firg_41", C = "_list_1firg_30", k = "_listHeader_1firg_62", v = "_listSearch_1firg_75", w = "_clearSearch_1firg_102", y = "_listHeaderFilters_1firg_121", x = "_listResults_1firg_132", N = "_listSort_1firg_136", T = "_filterToggle_1firg_159", I = "_filterHeader_1firg_174", M = "_loadMore_1firg_195", R = "_filterList_1firg_199", W = "_listFilters_1firg_206", j = "_applyFilters_1firg_214", A = "_show_1firg_243", $ = "_hide_1firg_252", z = "_buttonIsLoading_1firg_301", s = {
|
|
5
5
|
documentList: H,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require('./assets/CategoryFilters.css');const i=require("react/jsx-runtime"),u=require("./index-
|
|
1
|
+
"use strict";require('./assets/CategoryFilters.css');const i=require("react/jsx-runtime"),u=require("./index-SiOdvzc8.cjs"),p=require("./x-Dft9NVe_.cjs"),x="_documentList_1firg_1",F="_container_1firg_9",H="_heading_1firg_20",L="_listContainer_1firg_30",S="_listWrapper_1firg_41",j="_list_1firg_30",m="_listHeader_1firg_62",b="_listSearch_1firg_75",C="_clearSearch_1firg_102",k="_listHeaderFilters_1firg_121",y="_listResults_1firg_132",v="_listSort_1firg_136",w="_filterToggle_1firg_159",T="_filterHeader_1firg_174",q="_loadMore_1firg_195",N="_filterList_1firg_199",$="_listFilters_1firg_206",A="_applyFilters_1firg_214",I="_show_1firg_243",M="_hide_1firg_252",R="_buttonIsLoading_1firg_301",t={documentList:x,container:F,heading:H,listContainer:L,listWrapper:S,list:j,listHeader:m,listSearch:b,clearSearch:C,listHeaderFilters:k,listResults:y,listSort:v,filterToggle:w,filterHeader:T,loadMore:q,filterList:N,listFilters:$,applyFilters:A,show:I,hide:M,buttonIsLoading:R};function W({categoryFilters:e,selectedCategories:r,setSelectedCategories:n,setArticles:_,setStart:o,setHasMore:c,showFilters:a,toggleFilters:l,isLoading:d}){return i.jsxs("div",{className:`${t.listFilters} ${a?t.show:t.hide}`,children:[i.jsxs("div",{className:t.filterHeader,children:[i.jsx("h5",{children:"Filters"}),i.jsx("button",{onClick:()=>l(),children:i.jsx(p.X,{size:24})})]}),i.jsx("div",{className:t.filterList,children:e==null?void 0:e.map(s=>i.jsxs("label",{children:[i.jsx("input",{type:"checkbox",value:s._id,checked:r.includes(s._id),onChange:h=>{const f=h.target.checked?[...r,s._id]:r.filter(g=>g!==s._id);_([]),o(0),c(!0),n(f)}}),s.title]},s._id))}),i.jsx(u.CallToAction,{as:"button",variant:"secondary",onClick:l,disabled:d,className:t.applyFilters,children:"Apply Filters"})]})}exports.CategoryFilters=W;exports.styles=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),e=require("../../../vi.ClIskdbk-RdLblBKP.cjs"),l=require("../../../index-
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),e=require("../../../vi.ClIskdbk-RdLblBKP.cjs"),l=require("../../../index-SiOdvzc8.cjs");require("../../../index-CW_Ehh1q.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.ClIskdbk-D39wA6Kr.js";
|
|
3
|
-
import { C as a } from "../../../index-
|
|
3
|
+
import { C as a } from "../../../index-D_fcBxhe.js";
|
|
4
4
|
import "../../../index-DPGXWTtt.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");require("react");const e=require("../../../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("react");const e=require("../../../index-SiOdvzc8.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,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { C as e } from "../../../index-
|
|
3
|
+
import { C as e } from "../../../index-D_fcBxhe.js";
|
|
4
4
|
import "../../../index-CeBA0PT0.js";
|
|
5
5
|
import "../../../external-link-BOPobeQJ.js";
|
|
6
6
|
import "../../../play-DYgKiSaf.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index48.css');const e=require("react/jsx-runtime"),N=require("../../../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index48.css');const e=require("react/jsx-runtime"),N=require("../../../index-SiOdvzc8.cjs"),T=require("../ButtonGroup/index.cjs"),o=require("../../../index-CBK5rp6X.cjs"),y=require("../../../external-link-DDShu-48.cjs"),k="_footer_1fc6w_1",$="_container_1fc6w_10",F="_primaryNav_1fc6w_24",I="_secondaryNav_1fc6w_34",q="_details_1fc6w_71",A="_nav_1fc6w_84",S="_logo_1fc6w_92",L="_socialItems_1fc6w_107",E="_group_1fc6w_114",z="_groups_1fc6w_124",B="_groupTitle_1fc6w_135",C="_sublinks_1fc6w_144",G="_link_1fc6w_152",M="_newTabIcon_1fc6w_170",P="_bottom_1fc6w_184",n={footer:k,container:$,primaryNav:F,secondaryNav:I,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:u,items:r,primaryInfo:p,secondaryInfo:b,utilityItems:f,socialItems:c,copyright:m,className:h}){const l=(a,t="",i=!1)=>a.map(s=>{var g;const v=`${t}/${s.label}`,x=(g=s.sublinks)==null?void 0:g.length,_=!!s.href,d=Y[s.icon],j=_?"a":"div",w=_?{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(j,{className:`${_?n.link:""} ${x?n.groupTitle:""}`,...w,children:[!i&&s.label,d&&e.jsx(d,{}),!d&&s.isExternal&&e.jsx(y.ExternalLink,{className:n.newTabIcon,size:16})]}),x&&e.jsx("div",{className:`${n.sublinks}`,role:"menu","aria-label":`${s.label} submenu`,children:l(s.sublinks,v)})]},v)});return e.jsx("footer",{className:`${h??""} ${n.footer}`,children:e.jsxs("div",{className:n.container,children:[e.jsxs("div",{className:n.primaryNav,children:[e.jsxs("div",{className:n.details,children:[u&&e.jsx("div",{className:n.logo,children:u}),c&&c.length>0&&e.jsx("div",{className:n.socialItems,children:l(c,"",!0)}),p&&e.jsx("div",{children:p}),b&&e.jsx("div",{children:b})]}),r&&r.length>0&&e.jsx("nav",{className:n.nav,id:"footer-menu",role:"menubar",children:e.jsx("div",{className:n.groups,children:l(r,"",!1)})})]}),e.jsxs("div",{className:n.secondaryNav,children:[m&&e.jsx("div",{className:n.bottom,children:e.jsx("span",{children:m})}),f&&e.jsx("nav",{children:e.jsx(T.ButtonGroup,{orientation:"horizontal",children:f.map((a,t)=>e.jsx(N.CallToAction,{as:"a",href:a.href??"/",variant:a.variant??"primary",displayType:a.displayType??"text",imageSrc:a.imageSrc,imageAlt:a.imageAlt,"aria-label":a.ariaLabel??(typeof a.label=="string"?a.label:""),icon:a.icon,iconAlignment:a.iconAlignment,children:a.label},a._key||t))})})]})]})})}exports.Footer=O;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as a, jsxs as r } from "react/jsx-runtime";
|
|
2
|
-
import { C as y } from "../../../index-
|
|
2
|
+
import { C as y } from "../../../index-D_fcBxhe.js";
|
|
3
3
|
import { ButtonGroup as k } from "../ButtonGroup/index.mjs";
|
|
4
4
|
import { a as $, b as x, c as F, d as I, e as A } from "../../../index-CeBA0PT0.js";
|
|
5
5
|
import { E } from "../../../external-link-BOPobeQJ.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),r=require("react"),re=require("../Modal/index.cjs"),B=require("../../../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),r=require("react"),re=require("../Modal/index.cjs"),B=require("../../../index-SiOdvzc8.cjs"),oe=require("../ButtonGroup/index.cjs"),e=require("../../../NavLink-CfStOW6-.cjs"),G=require("../../utils/NoScroll/noScroll.cjs"),U=require("../../../external-link-DDShu-48.cjs"),ge=require("../../../x-Dft9NVe_.cjs"),X=require("../../../createLucideIcon-DpotSgUx.cjs"),we=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 } from "react/jsx-runtime";
|
|
2
2
|
import { useState as u, useEffect as G, useRef as X, useCallback as H } from "react";
|
|
3
3
|
import { Modal as me } from "../Modal/index.mjs";
|
|
4
|
-
import { a as Le, C as q } from "../../../index-
|
|
4
|
+
import { a as Le, C as q } from "../../../index-D_fcBxhe.js";
|
|
5
5
|
import { ButtonGroup as he } from "../ButtonGroup/index.mjs";
|
|
6
6
|
import { s as e, N as _e } from "../../../NavLink-BnG0vXUt.js";
|
|
7
7
|
import { lockScroll as Se, unlockScroll as ue } 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-SiOdvzc8.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.d.ts
CHANGED
|
@@ -182,7 +182,10 @@ export declare type CallToActionProps = BaseProps & ((AnchorProps & {
|
|
|
182
182
|
as: "a";
|
|
183
183
|
}) | (ButtonProps & {
|
|
184
184
|
as: "button";
|
|
185
|
-
})
|
|
185
|
+
}) | {
|
|
186
|
+
as: "scroll";
|
|
187
|
+
scrollToId: string;
|
|
188
|
+
}) & {
|
|
186
189
|
ImageComponent?: default_2.ReactNode | default_2.ElementType;
|
|
187
190
|
};
|
|
188
191
|
|
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-D_fcBxhe.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";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { f as x, g as
|
|
1
|
+
import { jsx as e, jsxs as u, Fragment as b } from "react/jsx-runtime";
|
|
2
|
+
import y from "react";
|
|
3
|
+
import { f as x, g as $, h as A } from "./index-CeBA0PT0.js";
|
|
4
4
|
import { c as r } from "./createLucideIcon-C8GTh_Qx.js";
|
|
5
5
|
import { E as w } from "./external-link-BOPobeQJ.js";
|
|
6
6
|
import { P as L } from "./play-DYgKiSaf.js";
|
|
@@ -20,18 +20,18 @@ const E = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], C = r("chevron-lef
|
|
|
20
20
|
* This source code is licensed under the ISC license.
|
|
21
21
|
* See the LICENSE file in the root directory of this source tree.
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const T = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], V = r("chevron-right", T);
|
|
24
24
|
/**
|
|
25
25
|
* @license lucide-react v0.488.0 - ISC
|
|
26
26
|
*
|
|
27
27
|
* This source code is licensed under the ISC license.
|
|
28
28
|
* See the LICENSE file in the root directory of this source tree.
|
|
29
29
|
*/
|
|
30
|
-
const
|
|
30
|
+
const q = [
|
|
31
31
|
["path", { d: "M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4", key: "u53s6r" }],
|
|
32
32
|
["polyline", { points: "10 17 15 12 10 7", key: "1ail0h" }],
|
|
33
33
|
["line", { x1: "15", x2: "3", y1: "12", y2: "12", key: "v6grx8" }]
|
|
34
|
-
],
|
|
34
|
+
], F = r("log-in", q);
|
|
35
35
|
/**
|
|
36
36
|
* @license lucide-react v0.488.0 - ISC
|
|
37
37
|
*
|
|
@@ -53,12 +53,12 @@ const j = [
|
|
|
53
53
|
* This source code is licensed under the ISC license.
|
|
54
54
|
* See the LICENSE file in the root directory of this source tree.
|
|
55
55
|
*/
|
|
56
|
-
const
|
|
56
|
+
const B = [
|
|
57
57
|
["path", { d: "M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "14sxne" }],
|
|
58
58
|
["path", { d: "M3 3v5h5", key: "1xhq8a" }],
|
|
59
59
|
["path", { d: "M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16", key: "1hlbsb" }],
|
|
60
60
|
["path", { d: "M16 16h5v5", key: "ccwih5" }]
|
|
61
|
-
], D = r("refresh-ccw",
|
|
61
|
+
], D = r("refresh-ccw", B);
|
|
62
62
|
/**
|
|
63
63
|
* @license lucide-react v0.488.0 - ISC
|
|
64
64
|
*
|
|
@@ -74,11 +74,11 @@ const G = [
|
|
|
74
74
|
}
|
|
75
75
|
],
|
|
76
76
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
77
|
-
],
|
|
78
|
-
callToAction:
|
|
79
|
-
image:
|
|
80
|
-
blurred:
|
|
81
|
-
primary:
|
|
77
|
+
], H = r("settings", G), J = "_callToAction_8gtvg_1", K = "_image_8gtvg_26", O = "_blurred_8gtvg_33", P = "_primary_8gtvg_34", Q = "_secondary_8gtvg_35", S = "_primaryInverted_8gtvg_36", U = "_secondaryInverted_8gtvg_37", W = "_blurredInverted_8gtvg_39", X = "_link_8gtvg_53", Y = "_linkInverted_8gtvg_54", Z = "_underline_8gtvg_55", ee = "_underlineInverted_8gtvg_56", ne = "_content_8gtvg_66", te = "_icon_8gtvg_200", re = "_iconLeft_8gtvg_220", oe = "_iconRight_8gtvg_224", n = {
|
|
78
|
+
callToAction: J,
|
|
79
|
+
image: K,
|
|
80
|
+
blurred: O,
|
|
81
|
+
primary: P,
|
|
82
82
|
secondary: Q,
|
|
83
83
|
primaryInverted: S,
|
|
84
84
|
secondaryInverted: U,
|
|
@@ -92,24 +92,24 @@ const G = [
|
|
|
92
92
|
iconLeft: re,
|
|
93
93
|
iconRight: oe
|
|
94
94
|
}, ae = {
|
|
95
|
-
apps: /* @__PURE__ */
|
|
96
|
-
/* @__PURE__ */ e(
|
|
95
|
+
apps: /* @__PURE__ */ u(b, { children: [
|
|
96
|
+
/* @__PURE__ */ e($, {}),
|
|
97
97
|
" ",
|
|
98
|
-
/* @__PURE__ */ e(
|
|
98
|
+
/* @__PURE__ */ e(A, {})
|
|
99
99
|
] }),
|
|
100
100
|
"arrow-left": /* @__PURE__ */ e(R, {}),
|
|
101
101
|
"arrow-right": /* @__PURE__ */ e(N, {}),
|
|
102
102
|
"chevron-down": /* @__PURE__ */ e(M, {}),
|
|
103
103
|
"chevron-left": /* @__PURE__ */ e(C, {}),
|
|
104
|
-
"chevron-right": /* @__PURE__ */ e(
|
|
104
|
+
"chevron-right": /* @__PURE__ */ e(V, {}),
|
|
105
105
|
envelope: /* @__PURE__ */ e(x, {}),
|
|
106
106
|
phone: /* @__PURE__ */ e(z, {}),
|
|
107
107
|
play: /* @__PURE__ */ e(L, {}),
|
|
108
108
|
"new-tab": /* @__PURE__ */ e(w, {}),
|
|
109
109
|
refresh: /* @__PURE__ */ e(D, {}),
|
|
110
|
-
settings: /* @__PURE__ */ e(
|
|
111
|
-
"sign-in": /* @__PURE__ */ e(
|
|
112
|
-
},
|
|
110
|
+
settings: /* @__PURE__ */ e(H, {}),
|
|
111
|
+
"sign-in": /* @__PURE__ */ e(F, {})
|
|
112
|
+
}, h = {
|
|
113
113
|
primary: n.primary,
|
|
114
114
|
primaryInverted: n.primaryInverted,
|
|
115
115
|
secondary: n.secondary,
|
|
@@ -120,55 +120,72 @@ const G = [
|
|
|
120
120
|
underlineInverted: n.underlineInverted,
|
|
121
121
|
blurred: n.blurred,
|
|
122
122
|
blurredInverted: n.blurredInverted
|
|
123
|
-
},
|
|
123
|
+
}, ce = {
|
|
124
124
|
left: n.iconLeft,
|
|
125
125
|
right: n.iconRight
|
|
126
126
|
};
|
|
127
|
-
function
|
|
128
|
-
variant:
|
|
129
|
-
displayType:
|
|
130
|
-
imageSrc:
|
|
131
|
-
imageAlt:
|
|
127
|
+
function ye({
|
|
128
|
+
variant: d = "primary",
|
|
129
|
+
displayType: c = "text",
|
|
130
|
+
imageSrc: m,
|
|
131
|
+
imageAlt: k = "",
|
|
132
132
|
ImageComponent: t,
|
|
133
|
-
icon:
|
|
134
|
-
iconAlignment:
|
|
135
|
-
useRouter:
|
|
133
|
+
icon: p,
|
|
134
|
+
iconAlignment: I = "right",
|
|
135
|
+
useRouter: ie = !1,
|
|
136
136
|
className: _,
|
|
137
|
-
children:
|
|
138
|
-
disabled:
|
|
139
|
-
...
|
|
137
|
+
children: v,
|
|
138
|
+
disabled: f = !1,
|
|
139
|
+
...o
|
|
140
140
|
}) {
|
|
141
|
-
let
|
|
142
|
-
t && (
|
|
143
|
-
const
|
|
144
|
-
/* @__PURE__ */ e("span", { children:
|
|
145
|
-
|
|
141
|
+
let a = null;
|
|
142
|
+
t && (y.isValidElement(t) ? a = t : typeof t == "function" || typeof t == "object" ? a = /* @__PURE__ */ e(t, {}) : a = null);
|
|
143
|
+
const g = c === "image" ? a || (m ? /* @__PURE__ */ e("img", { src: m, alt: k }) : y.isValidElement(v) ? v : null) : /* @__PURE__ */ u("span", { className: `${n.content} ${ce[I]}`, children: [
|
|
144
|
+
/* @__PURE__ */ e("span", { children: v }),
|
|
145
|
+
p && /* @__PURE__ */ e("span", { className: n.icon, children: ae[p] })
|
|
146
146
|
] });
|
|
147
|
-
if (
|
|
148
|
-
const { href:
|
|
147
|
+
if (o.as == "a") {
|
|
148
|
+
const { href: i, target: l, ...s } = o;
|
|
149
149
|
return /* @__PURE__ */ e(
|
|
150
150
|
"a",
|
|
151
151
|
{
|
|
152
|
-
href:
|
|
153
|
-
target:
|
|
154
|
-
rel:
|
|
155
|
-
className: `${_ ?? ""} ${n.callToAction} ${
|
|
156
|
-
...
|
|
157
|
-
children:
|
|
152
|
+
href: i,
|
|
153
|
+
target: l,
|
|
154
|
+
rel: l === "_blank" ? "noopener noreferrer" : void 0,
|
|
155
|
+
className: `${_ ?? ""} ${n.callToAction} ${c === "text" ? h[d] : n.image}`,
|
|
156
|
+
...s,
|
|
157
|
+
children: g
|
|
158
|
+
}
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
if (o.as == "scroll") {
|
|
162
|
+
const { scrollToId: i, ...l } = o;
|
|
163
|
+
return /* @__PURE__ */ e(
|
|
164
|
+
"button",
|
|
165
|
+
{
|
|
166
|
+
type: "button",
|
|
167
|
+
onClick: () => {
|
|
168
|
+
const s = document.getElementById(i);
|
|
169
|
+
s && s.scrollIntoView({ behavior: "smooth" });
|
|
170
|
+
},
|
|
171
|
+
className: `${_ ?? ""} ${n.callToAction} ${c === "text" ? h[d] : n.image}`,
|
|
172
|
+
disabled: f,
|
|
173
|
+
...l,
|
|
174
|
+
children: g
|
|
158
175
|
}
|
|
159
176
|
);
|
|
160
177
|
}
|
|
161
178
|
return /* @__PURE__ */ e(
|
|
162
179
|
"button",
|
|
163
180
|
{
|
|
164
|
-
className: `${_ ?? ""} ${n.callToAction} ${
|
|
165
|
-
disabled:
|
|
166
|
-
...
|
|
167
|
-
children:
|
|
181
|
+
className: `${_ ?? ""} ${n.callToAction} ${c === "text" ? h[d] : n.image}`,
|
|
182
|
+
disabled: f,
|
|
183
|
+
...o,
|
|
184
|
+
children: g
|
|
168
185
|
}
|
|
169
186
|
);
|
|
170
187
|
}
|
|
171
188
|
export {
|
|
172
|
-
|
|
189
|
+
ye as C,
|
|
173
190
|
C as a
|
|
174
191
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";require('./assets/index70.css');const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";require('./assets/index70.css');const e=require("react/jsx-runtime"),p=require("react"),h=require("./index-CBK5rp6X.cjs"),r=require("./createLucideIcon-DpotSgUx.cjs"),L=require("./external-link-DDShu-48.cjs"),b=require("./play-CQBnZgNa.cjs"),$=require("./chevron-down-DfK1XBl3.cjs"),w=require("./arrow-right-DO6S4vfx.cjs"),q=require("./arrow-left-4E3t8axP.cjs");/**
|
|
2
2
|
* @license lucide-react v0.488.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
5
5
|
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const A=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],
|
|
6
|
+
*/const A=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],I=r.createLucideIcon("chevron-left",A);/**
|
|
7
7
|
* @license lucide-react v0.488.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the ISC license.
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the ISC license.
|
|
25
25
|
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/const
|
|
26
|
+
*/const V=[["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",V);/**
|
|
27
27
|
* @license lucide-react v0.488.0 - ISC
|
|
28
28
|
*
|
|
29
29
|
* This source code is licensed under the ISC license.
|
|
30
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"}]],D=r.createLucideIcon("settings",z),
|
|
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"}]],D=r.createLucideIcon("settings",z),B="_callToAction_8gtvg_1",G="_image_8gtvg_26",H="_blurred_8gtvg_33",J="_primary_8gtvg_34",K="_secondary_8gtvg_35",O="_primaryInverted_8gtvg_36",Q="_secondaryInverted_8gtvg_37",S="_blurredInverted_8gtvg_39",U="_link_8gtvg_53",W="_linkInverted_8gtvg_54",X="_underline_8gtvg_55",Y="_underlineInverted_8gtvg_56",Z="_content_8gtvg_66",P="_icon_8gtvg_200",ee="_iconLeft_8gtvg_220",ne="_iconRight_8gtvg_224",n={callToAction:B,image:G,blurred:H,primary:J,secondary:K,primaryInverted:O,secondaryInverted:Q,blurredInverted:S,link:U,linkInverted:W,underline:X,underlineInverted:Y,content:Z,icon:P,iconLeft:ee,iconRight:ne},te={apps:e.jsxs(e.Fragment,{children:[e.jsx(h.FaApple,{})," ",e.jsx(h.FaGooglePlay,{})]}),"arrow-left":e.jsx(q.ArrowLeft,{}),"arrow-right":e.jsx(w.ArrowRight,{}),"chevron-down":e.jsx($.ChevronDown,{}),"chevron-left":e.jsx(I,{}),"chevron-right":e.jsx(N,{}),envelope:e.jsx(h.FaEnvelope,{}),phone:e.jsx(T,{}),play:e.jsx(b.Play,{}),"new-tab":e.jsx(L.ExternalLink,{}),refresh:e.jsx(F,{}),settings:e.jsx(D,{}),"sign-in":e.jsx(C,{})},u={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},re={left:n.iconLeft,right:n.iconRight};function oe({variant:d="primary",displayType:a="text",imageSrc:y,imageAlt:k="",ImageComponent:t,icon:x,iconAlignment:j="right",useRouter:ce=!1,className:v,children:_,disabled:f=!1,...o}){let c=null;if(t)if(p.isValidElement(t))c=t;else if(typeof t=="function"||typeof t=="object"){const i=t;c=e.jsx(i,{})}else c=null;const g=a==="image"?c||(y?e.jsx("img",{src:y,alt:k}):p.isValidElement(_)?_:null):e.jsxs("span",{className:`${n.content} ${re[j]}`,children:[e.jsx("span",{children:_}),x&&e.jsx("span",{className:n.icon,children:te[x]})]});if(o.as=="a"){const{href:i,target:l,...s}=o,m=l==="_blank";return e.jsx("a",{href:i,target:l,rel:m?"noopener noreferrer":void 0,className:`${v??""} ${n.callToAction} ${a==="text"?u[d]:n.image}`,...s,children:g})}if(o.as=="scroll"){const{scrollToId:i,...l}=o;return e.jsx("button",{type:"button",onClick:()=>{const s=document.getElementById(i);s&&s.scrollIntoView({behavior:"smooth"})},className:`${v??""} ${n.callToAction} ${a==="text"?u[d]:n.image}`,disabled:f,...l,children:g})}return e.jsx("button",{className:`${v??""} ${n.callToAction} ${a==="text"?u[d]:n.image}`,disabled:f,...o,children:g})}exports.CallToAction=oe;exports.ChevronLeft=I;
|
package/dist/main.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./assets/index.css');;/* empty css */const r=require("./core/components/Accordion/index.cjs"),c=require("./core/components/Alert/index.cjs"),t=require("./core/components/Avatar/index.cjs"),i=require("./core/components/Badge/index.cjs"),_=require("./core/components/Box/index.cjs"),s=require("./core/components/Breadcrumbs/index.cjs"),l=require("./core/components/ButtonGroup/index.cjs"),d=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./assets/index.css');;/* empty css */const r=require("./core/components/Accordion/index.cjs"),c=require("./core/components/Alert/index.cjs"),t=require("./core/components/Avatar/index.cjs"),i=require("./core/components/Badge/index.cjs"),_=require("./core/components/Box/index.cjs"),s=require("./core/components/Breadcrumbs/index.cjs"),l=require("./core/components/ButtonGroup/index.cjs"),d=require("./index-SiOdvzc8.cjs"),a=require("./core/components/Card/index.cjs"),u=require("./core/components/Carousel/index.cjs"),x=require("./core/components/Checkbox/index.cjs"),k=require("./core/components/Container/index.cjs"),p=require("./core/components/DatePicker/index.cjs"),q=require("./core/components/Divider/index.cjs"),B=require("./core/components/Drawer/index.cjs"),m=require("./core/components/Fieldset/index.cjs"),b=require("./core/components/FileUpload/index.cjs"),C=require("./core/components/FloatingActionButton/index.cjs"),T=require("./core/components/Footer/index.cjs"),S=require("./core/components/Form/index.cjs"),g=require("./core/components/Grid/index.cjs"),A=require("./core/components/Heading/index.cjs"),h=require("./core/components/IconButton/index.cjs"),F=require("./core/components/Input/index.cjs"),L=require("./core/components/Label/index.cjs"),v=require("./core/components/List/index.cjs"),P=require("./core/components/Modal/index.cjs"),D=require("./core/components/MultiSelect/index.cjs"),H=require("./core/components/NavBar/index.cjs"),R=require("./core/components/Notification/index.cjs"),f=require("./core/components/NotificationContainer/index.cjs"),G=require("./core/components/ProgressBar/index.cjs"),N=require("./core/components/Radio/index.cjs"),M=require("./core/components/Range/index.cjs"),w=require("./core/components/Select/index.cjs"),I=require("./core/components/Skeleton/index.cjs"),y=require("./core/components/Spacer/index.cjs"),Q=require("./core/components/Spinner/index.cjs"),U=require("./core/components/Stack/index.cjs"),W=require("./core/components/Switch/index.cjs"),j=require("./core/components/Table/index.cjs"),O=require("./core/components/Tabs/index.cjs"),z=require("./core/components/Text/index.cjs"),E=require("./core/components/Textarea/index.cjs"),J=require("./core/components/Tooltip/index.cjs"),K=require("./core/utils/ThemeProvider/index.cjs"),V=require("./next/blocks/AccordionBlock/index.cjs"),X=require("./next/blocks/AdditionalCategoriesBlock/index.cjs"),Y=require("./next/blocks/CardGridBlock/index.cjs"),Z=require("./next/blocks/CarouselBlock/index.cjs"),$=require("./next/blocks/ContentBlock/index.cjs"),ee=require("./next/blocks/DocumentListBlock/index.cjs"),oe=require("./next/blocks/FaqBlock/index.cjs"),ne=require("./next/blocks/FeaturedDocumentsBlock/index.cjs"),re=require("./next/blocks/HeroBlock/index.cjs"),e=require("./next/blocks/HeroBlock/HeroContext.cjs"),ce=require("./next/ui/LocaleLink/index.cjs"),te=require("./next/blocks/QuoteBlock/index.cjs"),ie=require("./next/blocks/RichTextBlock/index.cjs"),_e=require("./next/ui/PortableTextRenderer/index.cjs"),se=require("./next/blocks/StickyScrollBlock/index.cjs"),le=require("./next/blocks/TabsBlock/index.cjs"),de=require("./next/blocks/WasHelpfulBlock/index.cjs"),ae=require("./next/cards/SpotlightCard/index.cjs"),o=require("./next/contexts/LocaleBridge.cjs"),n=require("./next/contexts/ThemeContext.cjs");exports.Accordion=r.Accordion;exports.Alert=c.Alert;exports.Avatar=t.Avatar;exports.Badge=i.Badge;exports.Box=_.Box;exports.Breadcrumbs=s.Breadcrumbs;exports.ButtonGroup=l.ButtonGroup;exports.CallToAction=d.CallToAction;exports.Card=a.Card;exports.Carousel=u.Carousel;exports.Checkbox=x.Checkbox;exports.Container=k.Container;exports.DatePicker=p.DatePicker;exports.Divider=q.Divider;exports.Drawer=B.Drawer;exports.Fieldset=m.Fieldset;exports.FileUpload=b.FileUpload;exports.FloatingActionButton=C.FloatingActionButton;exports.Footer=T.Footer;exports.Form=S.Form;exports.Grid=g.Grid;exports.Heading=A.Heading;exports.IconButton=h.IconButton;exports.Input=F.Input;exports.Label=L.Label;exports.List=v.List;exports.Modal=P.Modal;exports.MultiSelect=D.MultiSelect;exports.Navbar=H.Navbar;exports.Notification=R.Notification;exports.NotificationContainer=f.NotificationContainer;exports.ProgressBar=G.ProgressBar;exports.Radio=N.Radio;exports.Range=M.Range;exports.Select=w.Select;exports.Skeleton=I.Skeleton;exports.Spacer=y.Spacer;exports.Spinner=Q.Spinner;exports.Stack=U.Stack;exports.Switch=W.Switch;exports.Table=j.Table;exports.Tabs=O.Tabs;exports.Text=z.Text;exports.Textarea=E.Textarea;exports.Tooltip=J.Tooltip;exports.ThemeProvider=K.ThemeProvider;exports.AccordionBlock=V.AccordionBlock;exports.AdditionalCategoriesBlock=X.AdditionalCategoriesBlock;exports.CardGridBlock=Y.CardGridBlock;exports.CarouselBlock=Z.CarouselBlock;exports.ContentBlock=$.ContentBlock;exports.DocumentListBlock=ee.DocumentListBlock;exports.FaqBlock=oe.FaqBlock;exports.FeaturedDocumentsBlock=ne.FeaturedDocumentsBlock;exports.HeroBlock=re.HeroBlock;exports.HeroProvider=e.HeroProvider;exports.useHeroContext=e.useHeroContext;exports.LocaleLink=ce.LocaleLink;exports.QuoteBlock=te.QuoteBlock;exports.RichTextBlock=ie.RichTextBlock;exports.RichText=_e.RichText;exports.StickyScrollBlock=se.StickyScrollBlock;exports.TabsBlock=le.TabsBlock;exports.WasHelpfulBlock=de.WasHelpfulBlock;exports.SpotlightCard=ae.SpotlightCard;exports.LocaleBridgeProvider=o.LocaleBridgeProvider;exports.useLocaleBridge=o.useLocaleBridge;exports.AppThemeProvider=n.AppThemeProvider;exports.useTheme=n.useTheme;
|
package/dist/main.d.ts
CHANGED
|
@@ -237,7 +237,10 @@ export declare type CallToActionProps = BaseProps & ((AnchorProps & {
|
|
|
237
237
|
as: "a";
|
|
238
238
|
}) | (ButtonProps & {
|
|
239
239
|
as: "button";
|
|
240
|
-
})
|
|
240
|
+
}) | {
|
|
241
|
+
as: "scroll";
|
|
242
|
+
scrollToId: string;
|
|
243
|
+
}) & {
|
|
241
244
|
ImageComponent?: default_2.ReactNode | default_2.ElementType;
|
|
242
245
|
};
|
|
243
246
|
|
package/dist/main.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { Badge as a } 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-D_fcBxhe.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 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-r7uMMRR5.cjs");require("../../../index-SiOdvzc8.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-BsnHpXzU.js";
|
|
3
|
+
import "../../../index-D_fcBxhe.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"),t=require("react"),P=require("../../ui/PortableTextRenderer/index.cjs"),Q=require("../../hooks/useStyleClasses.cjs"),V=require("../../contexts/LocaleBridge.cjs"),N=require("../../../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),P=require("../../ui/PortableTextRenderer/index.cjs"),Q=require("../../hooks/useStyleClasses.cjs"),V=require("../../contexts/LocaleBridge.cjs"),N=require("../../../index-SiOdvzc8.cjs"),Y=require("../../../core/components/Input/index.cjs"),F=require("../../../core/components/Select/index.cjs"),ee=require("../../cards/BlogArticleCard/index.cjs"),s=require("../../../CategoryFilters-r7uMMRR5.cjs"),se=require("../../../x-Dft9NVe_.cjs"),te=[{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 le({heading:o,layout:z="grid",includeFilters:p,excludeFilters:v,limit:b=3,categoryFilters:d,documentType:g,styleOptions:D,initialArticles:j=[],initialTotalCount:L=0,initialIncludeCategories:I=[]}){const[k,c]=t.useState(j),[H,O]=t.useState(L),[C,W]=t.useState("date-desc"),[u,q]=t.useState(I),[T,i]=t.useState(j.length),[a,A]=t.useState(!1),[x,y]=t.useState(!1),[E,r]=t.useState(j.length<L),[f,_]=t.useState(""),[S,Z]=t.useState(""),{locale:G}=V.useLocaleBridge(),U=Q.useStyleClasses(D),R=t.useRef(!1),X={list:s.styles.list}[z??"grid"],J=l=>{W(l.target.value),c([]),i(0),r(!0)},B=()=>{y(!x)},K=()=>{c([]),i(0),r(!0),q([]),_(""),y(!1)},$=async(l=!1)=>{if(a||!E)return;A(!0);const h=new URLSearchParams({start:l?"0":String(T),limit:String(b),sort:C,documentType:g,locale:G});S&&h.append("search",S),u.forEach(n=>h.append("categories",n)),p==null||p.forEach(n=>h.append("include",n._id)),v==null||v.forEach(n=>h.append("exclude",n._id));try{const m=await(await fetch(`/api/articles?${h.toString()}`,{method:"GET"})).json();c(w=>l?m.articles:[...w,...m.articles]),i(w=>l?b:w+b),O(m.totalCount),r(T+m.articles.length<m.totalCount)}catch(n){console.error("Failed to load articles:",n),r(!1)}finally{A(!1)}},M=t.useCallback(()=>{typeof window<"u"&&window.innerWidth>768&&(y(!1),typeof document<"u"&&(document.body.style.overflow=""))},[]);return t.useEffect(()=>{const l=typeof window<"u";return l&&window.addEventListener("resize",M),()=>{l&&window.removeEventListener("resize",M)}},[]),t.useEffect(()=>{if(typeof document<"u")return document.body.style.overflow=x?"hidden":"",()=>{document.body.style.overflow=""}},[x]),t.useEffect(()=>{const l=setTimeout(()=>{Z(f)},500);return()=>clearTimeout(l)},[f]),t.useEffect(()=>{if(!R.current){R.current=!0;return}(S||C!=="date-desc"||u.length>0)&&$(!0)},[S,C,u.join(",")]),e.jsx("section",{className:`${s.styles.documentList} ${U}`,children:e.jsxs("article",{className:s.styles.container,children:[e.jsxs("div",{className:s.styles.heading,children:[(o==null?void 0:o.title)&&e.jsx(P.RichText,{blocks:o==null?void 0:o.title}),(o==null?void 0:o.description)&&e.jsx(P.RichText,{blocks:o==null?void 0:o.description})]}),e.jsxs("div",{className:s.styles.listContainer,children:[(d==null?void 0:d.length)&&e.jsxs("div",{className:s.styles.filterToggle,children:[e.jsx(N.CallToAction,{as:"button",variant:"secondary",onClick:B,disabled:a,icon:"settings",iconAlignment:"left",children:"Filters"}),e.jsx(N.CallToAction,{as:"button",variant:"link",onClick:K,disabled:a||u.length===0&&f.length===0,children:"Reset"})]}),d&&e.jsx(s.CategoryFilters,{categoryFilters:d,selectedCategories:u,setSelectedCategories:q,setArticles:c,setStart:i,setHasMore:r,showFilters:x,toggleFilters:B,isLoading:a}),e.jsxs("div",{className:s.styles.listWrapper,children:[e.jsxs("div",{className:s.styles.listHeader,children:[e.jsxs("div",{className:s.styles.listResults,children:["Results: ",e.jsx("span",{children:H})]}),e.jsxs("div",{className:s.styles.listHeaderFilters,children:[e.jsxs("div",{className:s.styles.listSearch,children:[e.jsx(Y.Input,{type:"text",name:"list-search",placeholder:"Search articles",value:f,onChange:l=>{_(l.target.value),c([]),i(0),r(!0)}}),f&&e.jsx("button",{className:s.styles.clearSearch,onClick:()=>{_(""),c([]),i(0),r(!0)},children:e.jsx(se.X,{size:21})})]}),e.jsx("div",{className:s.styles.listSort,children:e.jsx(F.Select,{id:"list-sort",name:"list-sort","aria-label":"Sort by",options:te,onChange:J})})]})]}),e.jsx("div",{className:`${s.styles.list} ${X}`,children:k&&k.map(l=>g=="blog"&&e.jsx(ee.BlogArticleCard,{article:l},l._id))}),E&&e.jsx("div",{className:s.styles.loadMore,children:e.jsx(N.CallToAction,{as:"button",variant:"primary",onClick:()=>$(!1),disabled:a,icon:"refresh",iconAlignment:"left",className:a?s.styles.buttonIsLoading:"",children:a?"Loading...":"Load more"})})]})]})]})})}exports.DocumentListBlock=le;
|
|
@@ -3,11 +3,11 @@ import { useState as a, useRef as Y, useCallback as F, useEffect as w } from "re
|
|
|
3
3
|
import { RichText as _ } from "../../ui/PortableTextRenderer/index.mjs";
|
|
4
4
|
import { useStyleClasses as ee } from "../../hooks/useStyleClasses.mjs";
|
|
5
5
|
import { useLocaleBridge as te } from "../../contexts/LocaleBridge.mjs";
|
|
6
|
-
import { C as R } from "../../../index-
|
|
6
|
+
import { C as R } from "../../../index-D_fcBxhe.js";
|
|
7
7
|
import { Input as se } from "../../../core/components/Input/index.mjs";
|
|
8
8
|
import { Select as oe } from "../../../core/components/Select/index.mjs";
|
|
9
9
|
import { BlogArticleCard as ae } from "../../cards/BlogArticleCard/index.mjs";
|
|
10
|
-
import { s as t, C as re } from "../../../CategoryFilters-
|
|
10
|
+
import { s as t, C as re } from "../../../CategoryFilters-BsnHpXzU.js";
|
|
11
11
|
import { X as le } from "../../../x-CnsEH4Ox.js";
|
|
12
12
|
const ne = [
|
|
13
13
|
{ label: "Newest", value: "date-desc" },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index67.css');const e=require("react/jsx-runtime"),g=require("react"),G=require("./HeroContext.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index67.css');const e=require("react/jsx-runtime"),g=require("react"),G=require("./HeroContext.cjs"),c=require("../../ui/PortableTextRenderer/index.cjs"),v=require("../../ui/CallToActions/index.cjs"),w=require("next/image"),R=require("../../ui/LocaleLink/index.cjs"),J=require("../../hooks/usePrefersReducedMotion.cjs"),K=require("../../contexts/ThemeContext.cjs"),Q=require("../../../createLucideIcon-DpotSgUx.cjs"),X=require("../../../play-CQBnZgNa.cjs");/**
|
|
2
2
|
* @license lucide-react v0.488.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
5
5
|
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const Z=[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]],A=Q.createLucideIcon("pause",Z),D="_hero_dpqis_1",O="_container_dpqis_7",ee="_heading_dpqis_15",se="_text_dpqis_22",te="_eyebrow_dpqis_37",re="_disclaimer_dpqis_41",le="_articleDetails_dpqis_53",
|
|
6
|
+
*/const Z=[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]],A=Q.createLucideIcon("pause",Z),D="_hero_dpqis_1",O="_container_dpqis_7",ee="_heading_dpqis_15",se="_text_dpqis_22",te="_eyebrow_dpqis_37",re="_disclaimer_dpqis_41",le="_articleDetails_dpqis_53",ie="_articleType_dpqis_66",ce="_articleCategories_dpqis_80",oe="_category_dpqis_86",ae="_number_dpqis_102",ne="_blog_dpqis_129",de="_overlay_dpqis_153",ue="_fullBleed_dpqis_223",xe="_split_dpqis_317",me="_image_dpqis_322",pe="_videoControl_dpqis_345",_e="_videoWrapper_dpqis_366",ye="_videoBackground_dpqis_386",je="_iframe_dpqis_387",s={hero:D,container:O,heading:ee,text:se,eyebrow:te,disclaimer:re,articleDetails:le,articleType:ie,articleCategories:ce,category:oe,number:ae,default:"_default_dpqis_125",blog:ne,overlay:de,fullBleed:ue,split:xe,image:me,videoControl:pe,videoWrapper:_e,videoBackground:ye,iframe:je};function be({heading:r,image:i,video:t,callToAction:o,pageData:n,styleOptions:d}){var U,F,z,S,W,H,E,M,V;const u=J.usePrefersReducedMotion(),[$,T]=g.useState(!u),{mode:j}=K.useTheme(),{setIsFullbleedHeroAtTop:I}=G.useHeroContext(),_=g.useRef(null),x=(d==null?void 0:d.layout)??"default",Y=((U=d==null?void 0:d.padding)==null?void 0:U.join(" "))??"",N={default:s.default,split:s.split,"split-35-65":s.split,"full-bleed":s.fullBleed,blog:s.blog}[x],B=((F=n==null?void 0:n.categories)==null?void 0:F.filter(l=>{var a,y;return!((y=(a=l.slug)==null?void 0:a.current)!=null&&y.startsWith("library/type"))}))??[],b=B[0]??null,m=B[1]??null,h=((z=n==null?void 0:n.categories)==null?void 0:z.find(l=>{var a,y;return(y=(a=l.slug)==null?void 0:a.current)==null?void 0:y.startsWith("library/type")}))??null;g.useEffect(()=>{const l=()=>{I(window.scrollY===0)};if(x==="full-bleed"&&typeof window<"u")return I(!0),window.addEventListener("scroll",l),()=>window.removeEventListener("scroll",l)},[x]),g.useEffect(()=>{const l=_.current;l&&(u?l.pause():l.play())},[u]);let f,p;i!=null&&i.imageUrls&&(f=j==="dark"&&((S=i.imageUrls.dark)==null?void 0:S.medium)||i.imageUrls.default.medium,p=j==="dark"&&((W=i.imageUrls.dark)==null?void 0:W.large)||i.imageUrls.default.large);let k=((E=(H=i==null?void 0:i[j==="dark"?"darkImage":"defaultImage"])==null?void 0:H.asset)==null?void 0:E.altText)||((V=(M=i==null?void 0:i[j==="dark"?"darkImage":"defaultImage"])==null?void 0:M.asset)==null?void 0:V.description)||"Card image";const q=()=>e.jsx("button",{title:`${$?"Pause the video":"Play the video"}`,className:s.videoControl,onClick:()=>{const l=_.current;l&&(l.paused?(l.play().catch(()=>{}),T(!0)):(l.pause(),T(!1)))},children:$?e.jsx(A,{size:18}):e.jsx(X.Play,{size:18})}),P=()=>{if(!t)return null;const l=t.includes("vimeo.com"),a=t.includes("youtube.com")||t.includes("youtu.be");return l||a?e.jsx("div",{className:s.videoWrapper,children:e.jsx("iframe",{src:l?`${t}?autoplay=1&muted=1&loop=1&background=1`:`${t}?autoplay=1&mute=1&loop=1&playlist=${C(t)}`,allow:"autoplay; fullscreen",allowFullScreen:!0})}):e.jsxs("div",{className:s.videoWrapper,children:[e.jsx(q,{}),e.jsx("video",{ref:_,src:t,autoPlay:!u,loop:!0,muted:!0,playsInline:!0,poster:p||void 0,preload:"metadata"})]})};function C(l){const a=l.match(/(?:youtube\.com\/.*v=|youtu\.be\/)([^&?/]+)/);return(a==null?void 0:a[1])||""}const L=()=>i&&f?e.jsx("div",{className:s.image,children:x==="blog"||x==="full-bleed"?e.jsx(w,{src:f,alt:k,fill:!0,priority:!0,fetchPriority:"high",style:{objectFit:"cover"},draggable:!1,sizes:"(max-width: 767px) 600px, 1200px"}):e.jsx(w,{src:f,alt:k,width:650,height:750,priority:!0,fetchPriority:"high"})}):null;switch(x){case"split-35-65":case"split":return e.jsx("section",{className:`${s.hero} ${s.split}`,children:e.jsxs("article",{className:`${Y} ${s.container}`,children:[e.jsxs("div",{className:s.heading,children:[e.jsxs("div",{children:[r.eyebrow&&e.jsx(c.RichText,{className:s.eyebrow,blocks:r.eyebrow}),e.jsx(c.RichText,{blocks:r.title})]}),e.jsxs("div",{className:s.text,children:[r.description&&e.jsx(c.RichText,{blocks:r.description}),o&&e.jsx(v.CallToActions,{items:o.items,alignment:o.alignment})]}),r.disclaimer&&e.jsx(c.RichText,{className:s.disclaimer,blocks:r.disclaimer})]}),t?e.jsx(P,{}):e.jsx(L,{})]})});case"default":return e.jsx("section",{className:`${s.hero} ${N}`,children:e.jsxs("article",{className:s.container,children:[t?e.jsx(P,{}):e.jsx(L,{}),e.jsxs("div",{className:s.text,children:[e.jsxs("div",{children:[r.eyebrow&&e.jsx(c.RichText,{className:s.eyebrow,blocks:r.eyebrow}),e.jsx(c.RichText,{blocks:r.title})]}),r.description&&e.jsx(c.RichText,{blocks:r.description}),o&&e.jsx(v.CallToActions,{items:o.items,alignment:o.alignment})]})]})});case"full-bleed":return e.jsx("section",{className:`${s.hero} ${N} heroFullBleed`,children:e.jsxs("article",{className:s.container,children:[t?t.includes("vimeo.com")||t.includes("youtube.com")||t.includes("youtu.be")?e.jsx("div",{className:s.videoBackground,children:e.jsx("iframe",{src:t.includes("vimeo.com")?`${t}?autoplay=1&muted=1&loop=1&background=1`:`${t}?autoplay=1&mute=1&loop=1&playlist=${C(t)}`,className:s.iframe,allow:"autoplay; fullscreen",allowFullScreen:!0})}):e.jsxs(e.Fragment,{children:[e.jsx(q,{}),e.jsx("video",{ref:_,className:s.videoBackground,src:t,autoPlay:!u,loop:!0,muted:!0,playsInline:!0,poster:p||void 0})]}):e.jsx(w,{src:p??"",alt:k,fill:!0,priority:!0,style:{objectFit:"cover"},draggable:!1,sizes:"(min-width: 500px) 500px, 100vw"}),e.jsx("div",{className:s.overlay,children:e.jsxs("div",{className:s.text,children:[e.jsxs("div",{children:[r.eyebrow&&e.jsx(c.RichText,{className:s.eyebrow,blocks:r.eyebrow}),e.jsx(c.RichText,{blocks:r.title})]}),r.description&&e.jsx(c.RichText,{blocks:r.description}),o&&e.jsx(v.CallToActions,{items:o.items,alignment:o.alignment})]})})]})});case"blog":return e.jsx("section",{className:`${s.hero} ${N}`,children:e.jsxs("article",{className:s.container,children:[t?t.includes("vimeo.com")||t.includes("youtube.com")||t.includes("youtu.be")?e.jsx("div",{className:s.videoBackground,children:e.jsx("iframe",{src:t.includes("vimeo.com")?`${t}?autoplay=1&muted=1&loop=1&background=1`:`${t}?autoplay=1&mute=1&loop=1&playlist=${C(t)}`,className:s.iframe,allow:"autoplay; fullscreen",allowFullScreen:!0})}):e.jsxs(e.Fragment,{children:[e.jsx(q,{}),e.jsx("video",{ref:_,className:s.videoBackground,src:t,autoPlay:!u,loop:!0,muted:!0,playsInline:!0,poster:p||void 0})]}):e.jsx(w,{src:p??"",alt:k,fill:!0,priority:!0,style:{objectFit:"cover"},draggable:!1,sizes:"(min-width: 500px) 500px, 100vw"}),e.jsx("div",{className:s.overlay,children:e.jsxs("div",{className:s.text,children:[e.jsxs("div",{children:[r.eyebrow&&e.jsx(c.RichText,{className:s.eyebrow,blocks:r.eyebrow}),n&&e.jsxs("div",{className:s.articleDetails,children:[h&&e.jsx(R.LocaleLink,{href:`/blog/search?categories=${encodeURIComponent(h._id)}`,className:s.articleType,children:h.title},h._id),e.jsxs("div",{className:s.articleCategories,children:[b&&e.jsx(R.LocaleLink,{href:`/blog/search?categories=${encodeURIComponent(b._id)}`,className:s.category,children:b.title},b._id),m&&m.title.toLowerCase()!=="library"&&!m.slug.current.includes("keywords")&&e.jsx(R.LocaleLink,{href:`/blog/search?categories=${encodeURIComponent(m._id)}`,className:s.category,children:m.title},m._id)]}),n.timeToRead&&e.jsx(e.Fragment,{children:e.jsxs("span",{children:[e.jsx("span",{className:s.number,children:n.timeToRead}),"min read"]})})]}),e.jsx(c.RichText,{blocks:r.title})]}),r.description&&e.jsx(c.RichText,{blocks:r.description}),o&&e.jsx(v.CallToActions,{items:o.items,alignment:o.alignment})]})})]})})}}exports.HeroBlock=be;
|
|
@@ -18,7 +18,7 @@ import '../../../assets/index67.css';/**
|
|
|
18
18
|
const ee = [
|
|
19
19
|
["rect", { x: "14", y: "4", width: "4", height: "16", rx: "1", key: "zuxfzm" }],
|
|
20
20
|
["rect", { x: "6", y: "4", width: "4", height: "16", rx: "1", key: "1okwgv" }]
|
|
21
|
-
], re = D("pause", ee), le = "_hero_dpqis_1", te = "_container_dpqis_7", se = "_heading_dpqis_15", oe = "_text_dpqis_22", ie = "_eyebrow_dpqis_37", ce = "_disclaimer_dpqis_41", ae = "_articleDetails_dpqis_53", ne = "_articleType_dpqis_66", de = "_articleCategories_dpqis_80", ue = "_category_dpqis_86", me = "_number_dpqis_102", pe = "_blog_dpqis_129", ye = "_overlay_dpqis_153", fe = "_fullBleed_dpqis_223", _e = "_split_dpqis_317", be = "_image_dpqis_322", he = "_videoControl_dpqis_345",
|
|
21
|
+
], re = D("pause", ee), le = "_hero_dpqis_1", te = "_container_dpqis_7", se = "_heading_dpqis_15", oe = "_text_dpqis_22", ie = "_eyebrow_dpqis_37", ce = "_disclaimer_dpqis_41", ae = "_articleDetails_dpqis_53", ne = "_articleType_dpqis_66", de = "_articleCategories_dpqis_80", ue = "_category_dpqis_86", me = "_number_dpqis_102", pe = "_blog_dpqis_129", ye = "_overlay_dpqis_153", fe = "_fullBleed_dpqis_223", _e = "_split_dpqis_317", be = "_image_dpqis_322", he = "_videoControl_dpqis_345", ge = "_videoWrapper_dpqis_366", we = "_videoBackground_dpqis_386", ke = "_iframe_dpqis_387", r = {
|
|
22
22
|
hero: le,
|
|
23
23
|
container: te,
|
|
24
24
|
heading: se,
|
|
@@ -37,9 +37,9 @@ const ee = [
|
|
|
37
37
|
split: _e,
|
|
38
38
|
image: be,
|
|
39
39
|
videoControl: he,
|
|
40
|
-
videoWrapper:
|
|
41
|
-
videoBackground:
|
|
42
|
-
iframe:
|
|
40
|
+
videoWrapper: ge,
|
|
41
|
+
videoBackground: we,
|
|
42
|
+
iframe: ke
|
|
43
43
|
};
|
|
44
44
|
function Fe({
|
|
45
45
|
heading: t,
|
|
@@ -50,7 +50,7 @@ function Fe({
|
|
|
50
50
|
styleOptions: u
|
|
51
51
|
}) {
|
|
52
52
|
var j, L, S, T, V, E, H, Y, M;
|
|
53
|
-
const m = Z(), [
|
|
53
|
+
const m = Z(), [P, U] = K(!m), { mode: h } = A(), { setIsFullbleedHeroAtTop: R } = X(), _ = Q(null), p = (u == null ? void 0 : u.layout) ?? "default", J = ((j = u == null ? void 0 : u.padding) == null ? void 0 : j.join(" ")) ?? "", C = {
|
|
54
54
|
default: r.default,
|
|
55
55
|
split: r.split,
|
|
56
56
|
"split-35-65": r.split,
|
|
@@ -61,7 +61,7 @@ function Fe({
|
|
|
61
61
|
var n, b;
|
|
62
62
|
return !((b = (n = s.slug) == null ? void 0 : n.current) != null && b.startsWith("library/type"));
|
|
63
63
|
}
|
|
64
|
-
)) ?? [],
|
|
64
|
+
)) ?? [], g = F[0] ?? null, y = F[1] ?? null, w = ((S = d == null ? void 0 : d.categories) == null ? void 0 : S.find(
|
|
65
65
|
(s) => {
|
|
66
66
|
var n, b;
|
|
67
67
|
return (b = (n = s.slug) == null ? void 0 : n.current) == null ? void 0 : b.startsWith("library/type");
|
|
@@ -77,20 +77,20 @@ function Fe({
|
|
|
77
77
|
const s = _.current;
|
|
78
78
|
s && (m ? s.pause() : s.play());
|
|
79
79
|
}, [m]);
|
|
80
|
-
let
|
|
81
|
-
i != null && i.imageUrls && (
|
|
82
|
-
let
|
|
80
|
+
let k, f;
|
|
81
|
+
i != null && i.imageUrls && (k = h === "dark" && ((T = i.imageUrls.dark) == null ? void 0 : T.medium) || i.imageUrls.default.medium, f = h === "dark" && ((V = i.imageUrls.dark) == null ? void 0 : V.large) || i.imageUrls.default.large);
|
|
82
|
+
let v = ((H = (E = i == null ? void 0 : i[h === "dark" ? "darkImage" : "defaultImage"]) == null ? void 0 : E.asset) == null ? void 0 : H.altText) || ((M = (Y = i == null ? void 0 : i[h === "dark" ? "darkImage" : "defaultImage"]) == null ? void 0 : Y.asset) == null ? void 0 : M.description) || "Card image";
|
|
83
83
|
const $ = () => /* @__PURE__ */ e(
|
|
84
84
|
"button",
|
|
85
85
|
{
|
|
86
|
-
title: `${
|
|
86
|
+
title: `${P ? "Pause the video" : "Play the video"}`,
|
|
87
87
|
className: r.videoControl,
|
|
88
88
|
onClick: () => {
|
|
89
89
|
const s = _.current;
|
|
90
90
|
s && (s.paused ? (s.play().catch(() => {
|
|
91
|
-
}),
|
|
91
|
+
}), U(!0)) : (s.pause(), U(!1)));
|
|
92
92
|
},
|
|
93
|
-
children:
|
|
93
|
+
children: P ? /* @__PURE__ */ e(re, { size: 18 }) : /* @__PURE__ */ e(O, { size: 18 })
|
|
94
94
|
}
|
|
95
95
|
), z = () => {
|
|
96
96
|
if (!l) return null;
|
|
@@ -125,13 +125,14 @@ function Fe({
|
|
|
125
125
|
const n = s.match(/(?:youtube\.com\/.*v=|youtu\.be\/)([^&?/]+)/);
|
|
126
126
|
return (n == null ? void 0 : n[1]) || "";
|
|
127
127
|
}
|
|
128
|
-
const W = () => i &&
|
|
128
|
+
const W = () => i && k ? /* @__PURE__ */ e("div", { className: r.image, children: p === "blog" || p === "full-bleed" ? /* @__PURE__ */ e(
|
|
129
129
|
x,
|
|
130
130
|
{
|
|
131
|
-
src:
|
|
132
|
-
alt:
|
|
131
|
+
src: k,
|
|
132
|
+
alt: v,
|
|
133
133
|
fill: !0,
|
|
134
134
|
priority: !0,
|
|
135
|
+
fetchPriority: "high",
|
|
135
136
|
style: { objectFit: "cover" },
|
|
136
137
|
draggable: !1,
|
|
137
138
|
sizes: "(max-width: 767px) 600px, 1200px"
|
|
@@ -139,11 +140,12 @@ function Fe({
|
|
|
139
140
|
) : /* @__PURE__ */ e(
|
|
140
141
|
x,
|
|
141
142
|
{
|
|
142
|
-
src:
|
|
143
|
-
alt:
|
|
143
|
+
src: k,
|
|
144
|
+
alt: v,
|
|
144
145
|
width: 650,
|
|
145
146
|
height: 750,
|
|
146
|
-
priority: !0
|
|
147
|
+
priority: !0,
|
|
148
|
+
fetchPriority: "high"
|
|
147
149
|
}
|
|
148
150
|
) }) : null;
|
|
149
151
|
switch (p) {
|
|
@@ -236,7 +238,7 @@ function Fe({
|
|
|
236
238
|
x,
|
|
237
239
|
{
|
|
238
240
|
src: f ?? "",
|
|
239
|
-
alt:
|
|
241
|
+
alt: v,
|
|
240
242
|
fill: !0,
|
|
241
243
|
priority: !0,
|
|
242
244
|
style: { objectFit: "cover" },
|
|
@@ -296,7 +298,7 @@ function Fe({
|
|
|
296
298
|
x,
|
|
297
299
|
{
|
|
298
300
|
src: f ?? "",
|
|
299
|
-
alt:
|
|
301
|
+
alt: v,
|
|
300
302
|
fill: !0,
|
|
301
303
|
priority: !0,
|
|
302
304
|
style: { objectFit: "cover" },
|
|
@@ -314,28 +316,28 @@ function Fe({
|
|
|
314
316
|
}
|
|
315
317
|
),
|
|
316
318
|
d && /* @__PURE__ */ o("div", { className: r.articleDetails, children: [
|
|
317
|
-
|
|
319
|
+
w && /* @__PURE__ */ e(
|
|
318
320
|
B,
|
|
319
321
|
{
|
|
320
322
|
href: `/blog/search?categories=${encodeURIComponent(
|
|
321
|
-
|
|
323
|
+
w._id
|
|
322
324
|
)}`,
|
|
323
325
|
className: r.articleType,
|
|
324
|
-
children:
|
|
326
|
+
children: w.title
|
|
325
327
|
},
|
|
326
|
-
|
|
328
|
+
w._id
|
|
327
329
|
),
|
|
328
330
|
/* @__PURE__ */ o("div", { className: r.articleCategories, children: [
|
|
329
|
-
|
|
331
|
+
g && /* @__PURE__ */ e(
|
|
330
332
|
B,
|
|
331
333
|
{
|
|
332
334
|
href: `/blog/search?categories=${encodeURIComponent(
|
|
333
|
-
|
|
335
|
+
g._id
|
|
334
336
|
)}`,
|
|
335
337
|
className: r.category,
|
|
336
|
-
children:
|
|
338
|
+
children: g.title
|
|
337
339
|
},
|
|
338
|
-
|
|
340
|
+
g._id
|
|
339
341
|
),
|
|
340
342
|
y && y.title.toLowerCase() !== "library" && !y.slug.current.includes(
|
|
341
343
|
"keywords"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index4.css');const e=require("react/jsx-runtime"),Ie=require("react"),$e=require("../../hooks/useStyleClasses.cjs"),Re=require("../../../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index4.css');const e=require("react/jsx-runtime"),Ie=require("react"),$e=require("../../hooks/useStyleClasses.cjs"),Re=require("../../../index-SiOdvzc8.cjs"),h=require("../../../core/components/Tabs/index.cjs"),c=require("../../ui/PortableTextRenderer/index.cjs"),T=require("../../ui/CallToActions/index.cjs"),I=require("next/image"),pe=require("../../utils/resolveLinkUrl.cjs"),qe=require("../../contexts/ThemeContext.cjs"),ze="_tabs_1n4lv_1",Be="_container_1n4lv_7",Ve="_heading_1n4lv_25",we="_text_1n4lv_32",ye="_headingHorizontal_1n4lv_46",He="_title_1n4lv_54",De="_headingVertical_1n4lv_64",Me="_tabContent_1n4lv_74",Se="_vertical_1n4lv_97",Ge="_tabsContainer_1n4lv_69",Pe="_tabImage_1n4lv_112",Fe="_tabText_1n4lv_120",Ee="_gridItems_1n4lv_141",Je="_gridItem_1n4lv_141",Ke="_fullBleed_1n4lv_181",Qe="_overlay_1n4lv_206",We="_cta_1n4lv_228",t={tabs:ze,container:Be,heading:Ve,text:we,headingHorizontal:ye,title:He,headingVertical:De,tabContent:Me,vertical:Se,tabsContainer:Ge,tabImage:Pe,tabText:Fe,gridItems:Ee,gridItem:Je,default:"_default_1n4lv_166",fullBleed:Ke,overlay:Qe,cta:We};function Xe({heading:s,image:l,items:m,callToAction:i,styleOptions:r}){var R,p,q,z,B,V;const[k,Ue]=Ie.useState([]),{mode:d}=qe.useTheme();Ie.useEffect(()=>{async function a(){const x=await Promise.all(m.map(o=>{var _,b;return(_=o==null?void 0:o.content)!=null&&_.tabLink?pe.resolveLinkURL((b=o==null?void 0:o.content)==null?void 0:b.tabLink):void 0}));Ue(x)}a()},[m]);const v=$e.useStyleClasses(r),f=(r==null?void 0:r.layout)??"default",j={horizontal:t.headingHorizontal,vertical:t.headingVertical}[s.headingLayout??"horizontal"],U={default:t.default,"full-bleed":t.fullBleed}[(r==null?void 0:r.layout)??"default"],C={orientationHorizontal:"horizontal",orientationVertical:"vertical"}[(r==null?void 0:r.orientation)??"orientationHorizontal"],Ce={themeDefault:"default",themeLight:"light",themeDark:"dark",themeTransparent:"transparent"}[(r==null?void 0:r.theme)??"themeDefault"];let u,N;l!=null&&l.imageUrls&&(u=d==="dark"&&((R=l.imageUrls.dark)==null?void 0:R.medium)||l.imageUrls.default.medium,N=d==="dark"&&((p=l.imageUrls.dark)==null?void 0:p.large)||l.imageUrls.default.large);let L=((z=(q=l==null?void 0:l[d==="dark"?"darkImage":"defaultImage"])==null?void 0:q.asset)==null?void 0:z.altText)||((V=(B=l==null?void 0:l[d==="dark"?"darkImage":"defaultImage"])==null?void 0:B.asset)==null?void 0:V.description)||"Card image";const $=()=>l&&u?e.jsx("div",{children:e.jsx(I,{src:u,alt:L,width:600,height:658,priority:!0})}):null,g=e.jsxs(h.Tabs,{defaultIndex:0,orientation:C,theme:Ce,children:[e.jsx(h.Tabs.List,{children:m.map((a,x)=>e.jsx(h.Tabs.Trigger,{index:x,children:a.title},a.title))}),m.map((a,x)=>{var b,w,y,H,D,M,S,G,P,F,E,J,K,Q,W,X,Y,Z,A,O,ee,te,ae,se,le,ne,re,ce,ie,oe,de,xe,be,me,ue;let o;(w=(b=a.content)==null?void 0:b.tabImage)!=null&&w.imageUrls&&(o=d==="dark"?((D=(H=(y=a.content)==null?void 0:y.tabImage)==null?void 0:H.imageUrls.dark)==null?void 0:D.medium)||((S=(M=a.content)==null?void 0:M.tabImage)==null?void 0:S.imageUrls.default.medium):(P=(G=a.content)==null?void 0:G.tabImage)==null?void 0:P.imageUrls.default.medium);let _=((K=(J=(E=(F=a.content)==null?void 0:F.tabImage)==null?void 0:E[d==="dark"?"darkImage":"defaultImage"])==null?void 0:J.asset)==null?void 0:K.altText)||((Y=(X=(W=(Q=a.content)==null?void 0:Q.tabImage)==null?void 0:W[d==="dark"?"darkImage":"defaultImage"])==null?void 0:X.asset)==null?void 0:Y.description)||"Card image";return e.jsx(h.Tabs.Panel,{index:x,children:e.jsxs("div",{className:`${t.tabContent} ${t[C]}`,children:[o&&e.jsx("div",{className:t.tabImage,children:e.jsx(I,{src:o,alt:_,width:250,height:250})}),e.jsxs("div",{className:t.tabText,children:[((Z=a.content)==null?void 0:Z.tabText)&&e.jsx(c.RichText,{blocks:a.content.tabText}),((A=a.content)==null?void 0:A.tabGridItem)&&Array.isArray((O=a.content)==null?void 0:O.tabGridItem)&&e.jsx("div",{className:t.gridItems,children:a.content.tabGridItem.map((n,Ne)=>{var _e,he,ke,ve,fe,je,ge,Te;let Le;return(_e=n==null?void 0:n.itemImage)!=null&&_e.imageUrls&&(o=d==="dark"&&((he=n.itemImage.imageUrls.dark)==null?void 0:he.medium)||n.itemImage.imageUrls.default.medium),(fe=(ve=(ke=n==null?void 0:n.itemImage)==null?void 0:ke[d==="dark"?"darkImage":"defaultImage"])==null?void 0:ve.asset)!=null&&fe.altText||(Te=(ge=(je=n==null?void 0:n.itemImage)==null?void 0:je[d==="dark"?"darkImage":"defaultImage"])==null?void 0:ge.asset)!=null&&Te.description,e.jsxs("div",{className:t.gridItem,children:[Le,n.itemText&&e.jsx(c.RichText,{blocks:n.itemText})]},Ne)})}),k[x]&&k[x]!=="#"&&e.jsx(Re.CallToAction,{as:"a",variant:((te=(ee=a.content)==null?void 0:ee.tabLink)==null?void 0:te.variant)??"primary",href:k[x]??"#",target:((le=(se=(ae=a.content)==null?void 0:ae.tabLink)==null?void 0:se.linkOptions)==null?void 0:le.linkType)==="external"?"_blank":"_self",rel:((ce=(re=(ne=a.content)==null?void 0:ne.tabLink)==null?void 0:re.linkOptions)==null?void 0:ce.linkType)==="external"?"noopener noreferrer":"","aria-label":((oe=(ie=a.content)==null?void 0:ie.tabLink)==null?void 0:oe.ariaLabel)||((xe=(de=a.content)==null?void 0:de.tabLink)==null?void 0:xe.label),children:(me=(be=a.content)==null?void 0:be.tabLink)==null?void 0:me.label},x),((ue=a.content)==null?void 0:ue.tabDisclaimer)&&e.jsx(c.RichText,{blocks:a.content.tabDisclaimer})]})]},x)},a.title)})]});if(f==="split")return e.jsx("section",{className:`${t.tabs} ${v}`,children:e.jsxs("article",{className:t.container,children:[e.jsxs("div",{className:`${t.heading} ${j}`,children:[e.jsxs("div",{children:[s.eyebrow&&e.jsx(c.RichText,{blocks:s.eyebrow}),e.jsx(c.RichText,{className:t.title,blocks:s.title})]}),s.description&&e.jsx(c.RichText,{blocks:s.description}),i&&e.jsx(T.CallToActions,{items:i.items,alignment:i.alignment}),s.disclaimer&&e.jsx(c.RichText,{blocks:s.disclaimer}),e.jsx("div",{className:t.tabsContainer,children:g})]}),$()]})});if(f==="default")return e.jsx("section",{className:`${t.tabs} ${U} ${v}`,children:e.jsxs("article",{className:t.container,children:[$(),e.jsxs("div",{className:`${t.heading} ${j}`,children:[e.jsx(c.RichText,{className:t.title,blocks:s.title}),((s==null?void 0:s.description)||(i==null?void 0:i.items))&&e.jsx("div",{className:t.text,children:s.description&&e.jsx(c.RichText,{blocks:s.description})})]}),e.jsx("div",{className:t.tabsContainer,children:g}),i&&e.jsx(T.CallToActions,{items:i.items,alignment:i.alignment}),s.disclaimer&&e.jsx(c.RichText,{blocks:s.disclaimer})]})});if(f==="full-bleed")return e.jsx("section",{className:`${t.tabs} ${U} ${v} tabsFullBleed`,children:e.jsxs("article",{className:t.container,children:[u&&e.jsx(I,{src:N??"",alt:L,fill:!0,priority:!0,style:{objectFit:"cover"},draggable:!1,sizes:"(max-width: 767px) 600px, 1200px"}),e.jsxs("div",{className:t.overlay,children:[e.jsxs("div",{className:`${t.heading} ${j}`,children:[e.jsx(c.RichText,{className:t.title,blocks:s.title}),s.description&&e.jsx(c.RichText,{blocks:s.description}),e.jsx("div",{className:t.tabsContainer,children:g})]}),i&&e.jsx(T.CallToActions,{items:i.items,alignment:i.alignment}),s.disclaimer&&e.jsx(c.RichText,{blocks:s.disclaimer})]})]})})}exports.TabsBlock=Xe;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as o, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { useState as Ta, useEffect as za } from "react";
|
|
3
3
|
import { useStyleClasses as Ba } from "../../hooks/useStyleClasses.mjs";
|
|
4
|
-
import { C as Va } from "../../../index-
|
|
4
|
+
import { C as Va } from "../../../index-D_fcBxhe.js";
|
|
5
5
|
import { Tabs as v } from "../../../core/components/Tabs/index.mjs";
|
|
6
6
|
import { RichText as i } from "../../ui/PortableTextRenderer/index.mjs";
|
|
7
7
|
import { CallToActions as N } 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-SiOdvzc8.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-D_fcBxhe.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 i=require("react/jsx-runtime"),q=require("next/image"),C=require("../../../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index2.css');const i=require("react/jsx-runtime"),q=require("next/image"),C=require("../../../index-SiOdvzc8.cjs"),O=require("../../ui/PortableTextRenderer/index.cjs"),I=require("../../contexts/ThemeContext.cjs"),N="_spotlight_tk8y9_1",S="_imageWrapper_tk8y9_7",W="_content_tk8y9_29",R="_title_tk8y9_36",$="_description_tk8y9_44",P="_actions_tk8y9_48",n={spotlight:N,imageWrapper:S,content:W,title:R,description:$,actions:P};function w({spotlight:e}){var c,o,s,d,m,_,k,x,T,u,p,A,y,f,g,j,v,b;const{mode:a}=I.useTheme();let r;(c=e.image)!=null&&c.imageUrls&&(r=a==="dark"&&((o=e.image.imageUrls.dark)==null?void 0:o.medium)||e.image.imageUrls.default.medium);let U=((m=(d=(s=e.image)==null?void 0:s[a==="dark"?"darkImage":"defaultImage"])==null?void 0:d.asset)==null?void 0:m.altText)||((x=(k=(_=e.image)==null?void 0:_[a==="dark"?"darkImage":"defaultImage"])==null?void 0:k.asset)==null?void 0:x.description)||"Card image";const l=((T=e.callToAction.linkOptions)==null?void 0:T.linkType)==="external";let t="#";return((u=e.callToAction.linkOptions)==null?void 0:u.linkType)==="external"&&((p=e.callToAction.linkOptions)!=null&&p.externalUrl)?t=(A=e.callToAction.linkOptions)==null?void 0:A.externalUrl:((y=e.callToAction.linkOptions)==null?void 0:y.linkType)==="internal"&&((g=(f=e.callToAction.linkOptions)==null?void 0:f.internalUrl)!=null&&g.slug.current)&&(t=`/${(v=(j=e.callToAction.linkOptions)==null?void 0:j.internalUrl)==null?void 0:v.slug.current}`),i.jsxs("div",{className:n.spotlight,children:[e.image&&i.jsx("div",{className:n.imageWrapper,children:i.jsx(q,{src:r??"",alt:U,width:600,height:400,priority:!1})}),i.jsxs("div",{className:n.content,children:[i.jsx("div",{children:i.jsx(O.RichText,{className:n.title,blocks:e.title})}),e.description&&i.jsx("div",{children:i.jsx(O.RichText,{className:n.description,blocks:e.description})})]}),((b=e.callToAction)==null?void 0:b.linkOptions)&&i.jsx("div",{className:n.actions,children:i.jsx(C.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=w;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as b, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import C from "next/image";
|
|
3
|
-
import { C as W } from "../../../index-
|
|
3
|
+
import { C as W } from "../../../index-D_fcBxhe.js";
|
|
4
4
|
import { RichText as I } from "../../ui/PortableTextRenderer/index.mjs";
|
|
5
5
|
import { useTheme as j } from "../../contexts/ThemeContext.mjs";
|
|
6
6
|
import '../../../assets/index2.css';const w = "_spotlight_tk8y9_1", E = "_imageWrapper_tk8y9_7", L = "_content_tk8y9_29", R = "_title_tk8y9_36", S = "_description_tk8y9_44", $ = "_actions_tk8y9_48", i = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),q=require("react"),O=require("next/image"),B=require("../../../core/components/ButtonGroup/index.cjs"),l=require("../../../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),q=require("react"),O=require("next/image"),B=require("../../../core/components/ButtonGroup/index.cjs"),l=require("../../../index-SiOdvzc8.cjs"),U=require("../../../core/components/Modal/index.cjs"),I=require("../../utils/resolveLinkUrl.cjs"),G=require("../../contexts/ThemeContext.cjs"),H=require("../../hooks/useMediaQuery.cjs");function Q({items:n,alignment:L,className:M}){const[R,P]=q.useState([]),{mode:a}=G.useTheme(),s=H.useMediaQuery("(max-width: 767px)");return q.useEffect(()=>{if(!(n!=null&&n.length)||!I.resolveLinkURL)return;async function e(){const r=await Promise.all(n.map(t=>I.resolveLinkURL(t)));P(r)}e()},[n]),n!=null&&n.length?o.jsx(B.ButtonGroup,{className:M,alignment:L,children:n.slice(0,3).map((e,r)=>{var g,m,d,c,p,h,f,b,x,y,v,_,k,A,T,j,w,C;const t=R[r]??"#",i={};if(i.height="auto",((g=e.image)==null?void 0:g.layout)==="cover")i.objectFit="cover",(m=e.image)!=null&&m.position&&(i.objectPosition=s?"top":(d=e.image)==null?void 0:d.position);else if(((c=e.image)==null?void 0:c.layout)==="contain"){if(i.objectFit="contain",((p=e.image)==null?void 0:p.width)==="half"?i.width=s?"100%":"50%":((h=e.image)==null?void 0:h.width)==="inset"?(i.width="100%",i.maxWidth=e.image.maxWidth??"unset"):i.width="100%",(f=e.image)!=null&&f.aspectRatio){const[$,F]=(b=e.image)==null?void 0:b.aspectRatio.split(":").map(Number);i.aspectRatio=`${$}/${F}`}}else i.objectFit="none";let u;(x=e.image)!=null&&x.imageUrls&&(u=a==="dark"&&((y=e.image.imageUrls.dark)==null?void 0:y.medium)||e.image.imageUrls.default.medium);let S=((k=(_=(v=e.image)==null?void 0:v[a==="dark"?"darkImage":"defaultImage"])==null?void 0:_.asset)==null?void 0:k.altText)||((j=(T=(A=e.image)==null?void 0:A[a==="dark"?"darkImage":"defaultImage"])==null?void 0:T.asset)==null?void 0:j.description)||"Card image";switch(e.type){case"link":return o.jsx(l.CallToAction,{as:"a",variant:e.variant,href:t,target:((w=e.linkOptions)==null?void 0:w.linkType)==="external"?"_blank":"_self",rel:((C=e.linkOptions)==null?void 0:C.linkType)==="external"?"noopener noreferrer":"","aria-label":e.ariaLabel||e.label,icon:e.icon,iconAlignment:e.iconAlignment??"right",displayType:e.displayType,ImageComponent:o.jsx(O,{src:u??"",alt:S,width:600,height:658,priority:!1,style:i}),children:e.label},r);case"modal":return o.jsx(U.Modal,{trigger:o.jsx(l.CallToAction,{as:"button",variant:e.variant??"primary",icon:e.icon,iconAlignment:e.iconAlignment??"right",children:e.label}),content:e.modalContent},r);case"video":return o.jsx(U.Modal,{trigger:o.jsx(l.CallToAction,{as:"button",variant:e.variant??"primary",icon:e.icon,iconAlignment:e.iconAlignment??"right",children:e.label}),content:o.jsx("video",{src:e.videoUrl,controls:!0,autoPlay:!0})},r);case"download":return o.jsx(l.CallToAction,{as:"a",variant:e.variant??"primary",href:t,download:!0,target:"_blank",rel:"noopener noreferrer","aria-label":e.ariaLabel||e.label,icon:e.icon,iconAlignment:e.iconAlignment??"right",children:e.label},r)}})}):null}exports.CallToActions=Q;
|
|
@@ -2,7 +2,7 @@ import { jsx as n } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as S, useEffect as W } from "react";
|
|
3
3
|
import $ from "next/image";
|
|
4
4
|
import { ButtonGroup as B } from "../../../core/components/ButtonGroup/index.mjs";
|
|
5
|
-
import { C as l } from "../../../index-
|
|
5
|
+
import { C as l } from "../../../index-D_fcBxhe.js";
|
|
6
6
|
import { Modal as j } from "../../../core/components/Modal/index.mjs";
|
|
7
7
|
import { resolveLinkURL as L } from "../../utils/resolveLinkUrl.mjs";
|
|
8
8
|
import { useTheme as E } from "../../contexts/ThemeContext.mjs";
|