quirk-ui 0.0.607 → 0.0.609
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-tcvJ0yVk.cjs → CategoryFilters-8MRCZ-GX.cjs} +1 -1
- package/dist/{CategoryFilters-C8KZf2YA.js → CategoryFilters-C_rC4zRM.js} +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 +2 -2
- package/dist/core.mjs +1 -1
- package/dist/{index-DtpvPQrh.js → index-BgmVypxj.js} +80 -79
- package/dist/index-CJ1BjDII.cjs +31 -0
- package/dist/main.cjs +1 -1
- package/dist/main.d.ts +2 -2
- 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-BSGi6vT1.cjs +0 -31
|
@@ -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-CJ1BjDII.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,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-BgmVypxj.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";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-CJ1BjDII.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-BgmVypxj.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-CJ1BjDII.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-BgmVypxj.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-CJ1BjDII.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-BgmVypxj.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-CJ1BjDII.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-BgmVypxj.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-CJ1BjDII.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
|
@@ -62,7 +62,7 @@ declare type AnchorProps = {
|
|
|
62
62
|
as: "a";
|
|
63
63
|
href: string;
|
|
64
64
|
target?: string;
|
|
65
|
-
} & default_2.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
65
|
+
} & Omit<default_2.AnchorHTMLAttributes<HTMLAnchorElement>, "href" | "target">;
|
|
66
66
|
|
|
67
67
|
export declare function Avatar({ src, alt, size, initials, status, borderColor, backgroundColor, onClick, className, }: AvatarProps): JSX.Element;
|
|
68
68
|
|
|
@@ -960,7 +960,7 @@ export declare type RichContent = string | {
|
|
|
960
960
|
declare type ScrollProps = {
|
|
961
961
|
as: "scroll";
|
|
962
962
|
scrollTarget: string;
|
|
963
|
-
} & default_2.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
963
|
+
} & Omit<default_2.ButtonHTMLAttributes<HTMLButtonElement>, "children">;
|
|
964
964
|
|
|
965
965
|
export declare function Select({ id, name, label, options, defaultValue, required, disabled, onChange, className, ...restProps }: SelectProps): JSX.Element;
|
|
966
966
|
|
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-BgmVypxj.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,44 +1,44 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { f as
|
|
1
|
+
import { jsx as e, jsxs as k, Fragment as $ } from "react/jsx-runtime";
|
|
2
|
+
import u from "react";
|
|
3
|
+
import { f as A, g as w, h as L } from "./index-CeBA0PT0.js";
|
|
4
4
|
import { c as r } from "./createLucideIcon-C8GTh_Qx.js";
|
|
5
|
-
import { E as
|
|
6
|
-
import { P as
|
|
7
|
-
import { C as
|
|
8
|
-
import { A as
|
|
9
|
-
import { A as
|
|
5
|
+
import { E as M } from "./external-link-BOPobeQJ.js";
|
|
6
|
+
import { P as N } from "./play-DYgKiSaf.js";
|
|
7
|
+
import { C as R } from "./chevron-down-DSUzBz9F.js";
|
|
8
|
+
import { A as E } from "./arrow-right-QEwnX3Sk.js";
|
|
9
|
+
import { A as C } from "./arrow-left-BIJvHwNQ.js";
|
|
10
10
|
import './assets/index70.css';/**
|
|
11
11
|
* @license lucide-react v0.488.0 - ISC
|
|
12
12
|
*
|
|
13
13
|
* This source code is licensed under the ISC license.
|
|
14
14
|
* See the LICENSE file in the root directory of this source tree.
|
|
15
15
|
*/
|
|
16
|
-
const
|
|
16
|
+
const T = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], V = r("chevron-left", T);
|
|
17
17
|
/**
|
|
18
18
|
* @license lucide-react v0.488.0 - ISC
|
|
19
19
|
*
|
|
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 q = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], F = r("chevron-right", q);
|
|
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 j = [
|
|
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
|
+
], z = r("log-in", j);
|
|
35
35
|
/**
|
|
36
36
|
* @license lucide-react v0.488.0 - ISC
|
|
37
37
|
*
|
|
38
38
|
* This source code is licensed under the ISC license.
|
|
39
39
|
* See the LICENSE file in the root directory of this source tree.
|
|
40
40
|
*/
|
|
41
|
-
const
|
|
41
|
+
const B = [
|
|
42
42
|
[
|
|
43
43
|
"path",
|
|
44
44
|
{
|
|
@@ -46,26 +46,26 @@ const j = [
|
|
|
46
46
|
key: "foiqr5"
|
|
47
47
|
}
|
|
48
48
|
]
|
|
49
|
-
],
|
|
49
|
+
], D = r("phone", B);
|
|
50
50
|
/**
|
|
51
51
|
* @license lucide-react v0.488.0 - ISC
|
|
52
52
|
*
|
|
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 G = [
|
|
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
|
-
],
|
|
61
|
+
], P = r("refresh-ccw", G);
|
|
62
62
|
/**
|
|
63
63
|
* @license lucide-react v0.488.0 - ISC
|
|
64
64
|
*
|
|
65
65
|
* This source code is licensed under the ISC license.
|
|
66
66
|
* See the LICENSE file in the root directory of this source tree.
|
|
67
67
|
*/
|
|
68
|
-
const
|
|
68
|
+
const H = [
|
|
69
69
|
[
|
|
70
70
|
"path",
|
|
71
71
|
{
|
|
@@ -74,41 +74,41 @@ 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:
|
|
82
|
-
secondary:
|
|
83
|
-
primaryInverted:
|
|
84
|
-
secondaryInverted:
|
|
85
|
-
blurredInverted:
|
|
86
|
-
link:
|
|
87
|
-
linkInverted:
|
|
88
|
-
underline:
|
|
89
|
-
underlineInverted:
|
|
90
|
-
content:
|
|
91
|
-
icon:
|
|
92
|
-
iconLeft:
|
|
93
|
-
iconRight:
|
|
94
|
-
},
|
|
95
|
-
apps: /* @__PURE__ */
|
|
96
|
-
/* @__PURE__ */ e(
|
|
77
|
+
], J = r("settings", H), K = "_callToAction_8gtvg_1", O = "_image_8gtvg_26", Q = "_blurred_8gtvg_33", S = "_primary_8gtvg_34", U = "_secondary_8gtvg_35", W = "_primaryInverted_8gtvg_36", X = "_secondaryInverted_8gtvg_37", Y = "_blurredInverted_8gtvg_39", Z = "_link_8gtvg_53", ee = "_linkInverted_8gtvg_54", ne = "_underline_8gtvg_55", te = "_underlineInverted_8gtvg_56", re = "_content_8gtvg_66", oe = "_icon_8gtvg_200", ae = "_iconLeft_8gtvg_220", ce = "_iconRight_8gtvg_224", n = {
|
|
78
|
+
callToAction: K,
|
|
79
|
+
image: O,
|
|
80
|
+
blurred: Q,
|
|
81
|
+
primary: S,
|
|
82
|
+
secondary: U,
|
|
83
|
+
primaryInverted: W,
|
|
84
|
+
secondaryInverted: X,
|
|
85
|
+
blurredInverted: Y,
|
|
86
|
+
link: Z,
|
|
87
|
+
linkInverted: ee,
|
|
88
|
+
underline: ne,
|
|
89
|
+
underlineInverted: te,
|
|
90
|
+
content: re,
|
|
91
|
+
icon: oe,
|
|
92
|
+
iconLeft: ae,
|
|
93
|
+
iconRight: ce
|
|
94
|
+
}, le = {
|
|
95
|
+
apps: /* @__PURE__ */ k($, { children: [
|
|
96
|
+
/* @__PURE__ */ e(w, {}),
|
|
97
97
|
" ",
|
|
98
|
-
/* @__PURE__ */ e(
|
|
98
|
+
/* @__PURE__ */ e(L, {})
|
|
99
99
|
] }),
|
|
100
|
-
"arrow-left": /* @__PURE__ */ e(
|
|
101
|
-
"arrow-right": /* @__PURE__ */ e(
|
|
102
|
-
"chevron-down": /* @__PURE__ */ e(
|
|
103
|
-
"chevron-left": /* @__PURE__ */ e(
|
|
104
|
-
"chevron-right": /* @__PURE__ */ e(
|
|
105
|
-
envelope: /* @__PURE__ */ e(
|
|
106
|
-
phone: /* @__PURE__ */ e(
|
|
107
|
-
play: /* @__PURE__ */ e(
|
|
108
|
-
"new-tab": /* @__PURE__ */ e(
|
|
109
|
-
refresh: /* @__PURE__ */ e(
|
|
110
|
-
settings: /* @__PURE__ */ e(
|
|
111
|
-
"sign-in": /* @__PURE__ */ e(
|
|
100
|
+
"arrow-left": /* @__PURE__ */ e(C, {}),
|
|
101
|
+
"arrow-right": /* @__PURE__ */ e(E, {}),
|
|
102
|
+
"chevron-down": /* @__PURE__ */ e(R, {}),
|
|
103
|
+
"chevron-left": /* @__PURE__ */ e(V, {}),
|
|
104
|
+
"chevron-right": /* @__PURE__ */ e(F, {}),
|
|
105
|
+
envelope: /* @__PURE__ */ e(A, {}),
|
|
106
|
+
phone: /* @__PURE__ */ e(D, {}),
|
|
107
|
+
play: /* @__PURE__ */ e(N, {}),
|
|
108
|
+
"new-tab": /* @__PURE__ */ e(M, {}),
|
|
109
|
+
refresh: /* @__PURE__ */ e(P, {}),
|
|
110
|
+
settings: /* @__PURE__ */ e(J, {}),
|
|
111
|
+
"sign-in": /* @__PURE__ */ e(z, {})
|
|
112
112
|
}, h = {
|
|
113
113
|
primary: n.primary,
|
|
114
114
|
primaryInverted: n.primaryInverted,
|
|
@@ -120,72 +120,73 @@ const G = [
|
|
|
120
120
|
underlineInverted: n.underlineInverted,
|
|
121
121
|
blurred: n.blurred,
|
|
122
122
|
blurredInverted: n.blurredInverted
|
|
123
|
-
},
|
|
123
|
+
}, ie = {
|
|
124
124
|
left: n.iconLeft,
|
|
125
125
|
right: n.iconRight
|
|
126
126
|
};
|
|
127
|
-
function
|
|
128
|
-
variant:
|
|
127
|
+
function Ie({
|
|
128
|
+
variant: s = "primary",
|
|
129
129
|
displayType: c = "text",
|
|
130
|
-
imageSrc:
|
|
131
|
-
imageAlt:
|
|
130
|
+
imageSrc: p,
|
|
131
|
+
imageAlt: I = "",
|
|
132
132
|
ImageComponent: t,
|
|
133
|
-
icon:
|
|
134
|
-
iconAlignment:
|
|
135
|
-
useRouter:
|
|
136
|
-
className:
|
|
137
|
-
children:
|
|
133
|
+
icon: m,
|
|
134
|
+
iconAlignment: b = "right",
|
|
135
|
+
useRouter: se = !1,
|
|
136
|
+
className: d,
|
|
137
|
+
children: g,
|
|
138
138
|
disabled: f = !1,
|
|
139
139
|
...o
|
|
140
140
|
}) {
|
|
141
141
|
let a = null;
|
|
142
|
-
t && (
|
|
143
|
-
const
|
|
144
|
-
/* @__PURE__ */ e("span", { children:
|
|
145
|
-
|
|
142
|
+
t && (u.isValidElement(t) ? a = t : typeof t == "function" || typeof t == "object" ? a = /* @__PURE__ */ e(t, {}) : a = null);
|
|
143
|
+
const _ = c === "image" ? a || (p ? /* @__PURE__ */ e("img", { src: p, alt: I }) : u.isValidElement(g) ? g : null) : /* @__PURE__ */ k("span", { className: `${n.content} ${ie[b]}`, children: [
|
|
144
|
+
/* @__PURE__ */ e("span", { children: g }),
|
|
145
|
+
m && /* @__PURE__ */ e("span", { className: n.icon, children: le[m] })
|
|
146
146
|
] });
|
|
147
147
|
if (o.as == "a") {
|
|
148
|
-
const { href:
|
|
148
|
+
const { as: y, href: v, target: l, ...i } = o;
|
|
149
149
|
return /* @__PURE__ */ e(
|
|
150
150
|
"a",
|
|
151
151
|
{
|
|
152
|
-
href:
|
|
152
|
+
href: v,
|
|
153
153
|
target: l,
|
|
154
154
|
rel: l === "_blank" ? "noopener noreferrer" : void 0,
|
|
155
|
-
className: `${
|
|
156
|
-
...
|
|
157
|
-
children:
|
|
155
|
+
className: `${d ?? ""} ${n.callToAction} ${c === "text" ? h[s] : n.image}`,
|
|
156
|
+
...i,
|
|
157
|
+
children: _
|
|
158
158
|
}
|
|
159
159
|
);
|
|
160
160
|
}
|
|
161
161
|
if (o.as == "scroll") {
|
|
162
|
-
const { scrollTarget:
|
|
162
|
+
const { as: y, scrollTarget: v, ...l } = o;
|
|
163
163
|
return /* @__PURE__ */ e(
|
|
164
164
|
"button",
|
|
165
165
|
{
|
|
166
166
|
type: "button",
|
|
167
167
|
onClick: () => {
|
|
168
|
-
const
|
|
169
|
-
|
|
168
|
+
const i = document.getElementById(v);
|
|
169
|
+
i && i.scrollIntoView({ behavior: "smooth" });
|
|
170
170
|
},
|
|
171
|
-
className: `${
|
|
171
|
+
className: `${d ?? ""} ${n.callToAction} ${c === "text" ? h[s] : n.image}`,
|
|
172
172
|
disabled: f,
|
|
173
173
|
...l,
|
|
174
|
-
children:
|
|
174
|
+
children: _
|
|
175
175
|
}
|
|
176
176
|
);
|
|
177
177
|
}
|
|
178
|
+
const { scrollTarget: de, ...x } = o;
|
|
178
179
|
return /* @__PURE__ */ e(
|
|
179
180
|
"button",
|
|
180
181
|
{
|
|
181
|
-
className: `${
|
|
182
|
+
className: `${d ?? ""} ${n.callToAction} ${c === "text" ? h[s] : n.image}`,
|
|
182
183
|
disabled: f,
|
|
183
|
-
...
|
|
184
|
-
children:
|
|
184
|
+
...x,
|
|
185
|
+
children: _
|
|
185
186
|
}
|
|
186
187
|
);
|
|
187
188
|
}
|
|
188
189
|
export {
|
|
189
|
-
|
|
190
|
-
|
|
190
|
+
Ie as C,
|
|
191
|
+
V as a
|
|
191
192
|
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";require('./assets/index70.css');const e=require("react/jsx-runtime"),I=require("react"),u=require("./index-CBK5rp6X.cjs"),r=require("./createLucideIcon-DpotSgUx.cjs"),$=require("./external-link-DDShu-48.cjs"),w=require("./play-CQBnZgNa.cjs"),q=require("./chevron-down-DfK1XBl3.cjs"),A=require("./arrow-right-DO6S4vfx.cjs"),M=require("./arrow-left-4E3t8axP.cjs");/**
|
|
2
|
+
* @license lucide-react v0.488.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const N=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],k=r.createLucideIcon("chevron-left",N);/**
|
|
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 R=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],T=r.createLucideIcon("chevron-right",R);/**
|
|
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 C=[["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"}]],E=r.createLucideIcon("log-in",C);/**
|
|
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 V=[["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"}]],F=r.createLucideIcon("phone",V);/**
|
|
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 z=[["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"}]],D=r.createLucideIcon("refresh-ccw",z);/**
|
|
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 B=[["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"}]],G=r.createLucideIcon("settings",B),H="_callToAction_8gtvg_1",J="_image_8gtvg_26",K="_blurred_8gtvg_33",O="_primary_8gtvg_34",P="_secondary_8gtvg_35",Q="_primaryInverted_8gtvg_36",S="_secondaryInverted_8gtvg_37",U="_blurredInverted_8gtvg_39",W="_link_8gtvg_53",X="_linkInverted_8gtvg_54",Y="_underline_8gtvg_55",Z="_underlineInverted_8gtvg_56",ee="_content_8gtvg_66",ne="_icon_8gtvg_200",te="_iconLeft_8gtvg_220",re="_iconRight_8gtvg_224",n={callToAction:H,image:J,blurred:K,primary:O,secondary:P,primaryInverted:Q,secondaryInverted:S,blurredInverted:U,link:W,linkInverted:X,underline:Y,underlineInverted:Z,content:ee,icon:ne,iconLeft:te,iconRight:re},oe={apps:e.jsxs(e.Fragment,{children:[e.jsx(u.FaApple,{})," ",e.jsx(u.FaGooglePlay,{})]}),"arrow-left":e.jsx(M.ArrowLeft,{}),"arrow-right":e.jsx(A.ArrowRight,{}),"chevron-down":e.jsx(q.ChevronDown,{}),"chevron-left":e.jsx(k,{}),"chevron-right":e.jsx(T,{}),envelope:e.jsx(u.FaEnvelope,{}),phone:e.jsx(F,{}),play:e.jsx(w.Play,{}),"new-tab":e.jsx($.ExternalLink,{}),refresh:e.jsx(D,{}),settings:e.jsx(G,{}),"sign-in":e.jsx(E,{})},y={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},ce={left:n.iconLeft,right:n.iconRight};function ie({variant:l="primary",displayType:i="text",imageSrc:x,imageAlt:j="",ImageComponent:t,icon:p,iconAlignment:m="right",useRouter:ae=!1,className:d,children:v,disabled:f=!1,...o}){let c=null;if(t)if(I.isValidElement(t))c=t;else if(typeof t=="function"||typeof t=="object"){const _=t;c=e.jsx(_,{})}else c=null;const g=i==="image"?c||(x?e.jsx("img",{src:x,alt:j}):I.isValidElement(v)?v:null):e.jsxs("span",{className:`${n.content} ${ce[m]}`,children:[e.jsx("span",{children:v}),p&&e.jsx("span",{className:n.icon,children:oe[p]})]});if(o.as=="a"){const{as:_,href:h,target:a,...s}=o,b=a==="_blank";return e.jsx("a",{href:h,target:a,rel:b?"noopener noreferrer":void 0,className:`${d??""} ${n.callToAction} ${i==="text"?y[l]:n.image}`,...s,children:g})}if(o.as=="scroll"){const{as:_,scrollTarget:h,...a}=o;return e.jsx("button",{type:"button",onClick:()=>{const s=document.getElementById(h);s&&s.scrollIntoView({behavior:"smooth"})},className:`${d??""} ${n.callToAction} ${i==="text"?y[l]:n.image}`,disabled:f,...a,children:g})}const{scrollTarget:se,...L}=o;return e.jsx("button",{className:`${d??""} ${n.callToAction} ${i==="text"?y[l]:n.image}`,disabled:f,...L,children:g})}exports.CallToAction=ie;exports.ChevronLeft=k;
|
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-CJ1BjDII.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
|
@@ -111,7 +111,7 @@ declare type AnchorProps = {
|
|
|
111
111
|
as: "a";
|
|
112
112
|
href: string;
|
|
113
113
|
target?: string;
|
|
114
|
-
} & default_2.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
114
|
+
} & Omit<default_2.AnchorHTMLAttributes<HTMLAnchorElement>, "href" | "target">;
|
|
115
115
|
|
|
116
116
|
export declare function AppThemeProvider({ children }: {
|
|
117
117
|
children: default_2.ReactNode;
|
|
@@ -1098,7 +1098,7 @@ export { SanityImage }
|
|
|
1098
1098
|
declare type ScrollProps = {
|
|
1099
1099
|
as: "scroll";
|
|
1100
1100
|
scrollTarget: string;
|
|
1101
|
-
} & default_2.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
1101
|
+
} & Omit<default_2.ButtonHTMLAttributes<HTMLButtonElement>, "children">;
|
|
1102
1102
|
|
|
1103
1103
|
export declare function Select({ id, name, label, options, defaultValue, required, disabled, onChange, className, ...restProps }: SelectProps): JSX.Element;
|
|
1104
1104
|
|
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-BgmVypxj.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-8MRCZ-GX.cjs");require("../../../index-CJ1BjDII.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-C_rC4zRM.js";
|
|
3
|
+
import "../../../index-BgmVypxj.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"),V=require("../../hooks/useStyleClasses.cjs"),Y=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"),V=require("../../hooks/useStyleClasses.cjs"),Y=require("../../contexts/LocaleBridge.cjs"),N=require("../../../index-CJ1BjDII.cjs"),F=require("../../../core/components/Input/index.cjs"),ee=require("../../../core/components/Select/index.cjs"),se=require("../../cards/BlogArticleCard/index.cjs"),s=require("../../../CategoryFilters-8MRCZ-GX.cjs"),te=require("../../../x-Dft9NVe_.cjs"),le=[{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 oe({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=[],id:H}){const[k,c]=t.useState(j),[O,W]=t.useState(L),[C,Z]=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,G]=t.useState(""),{locale:U}=Y.useLocaleBridge(),X=V.useStyleClasses(D),R=t.useRef(!1),J={list:s.styles.list}[z??"grid"],K=l=>{Z(l.target.value),c([]),i(0),r(!0)},B=()=>{y(!x)},Q=()=>{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:U});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),W(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(()=>{G(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",{id:H,className:`${s.styles.documentList} ${X}`,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:Q,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:O})]}),e.jsxs("div",{className:s.styles.listHeaderFilters,children:[e.jsxs("div",{className:s.styles.listSearch,children:[e.jsx(F.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(te.X,{size:21})})]}),e.jsx("div",{className:s.styles.listSort,children:e.jsx(ee.Select,{id:"list-sort",name:"list-sort","aria-label":"Sort by",options:le,onChange:K})})]})]}),e.jsx("div",{className:`${s.styles.list} ${J}`,children:k&&k.map(l=>g=="blog"&&e.jsx(se.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=oe;
|
|
@@ -3,11 +3,11 @@ import { useState as a, useRef as F, useCallback as ee, useEffect as w } from "r
|
|
|
3
3
|
import { RichText as _ } from "../../ui/PortableTextRenderer/index.mjs";
|
|
4
4
|
import { useStyleClasses as te } from "../../hooks/useStyleClasses.mjs";
|
|
5
5
|
import { useLocaleBridge as se } from "../../contexts/LocaleBridge.mjs";
|
|
6
|
-
import { C as R } from "../../../index-
|
|
6
|
+
import { C as R } from "../../../index-BgmVypxj.js";
|
|
7
7
|
import { Input as oe } from "../../../core/components/Input/index.mjs";
|
|
8
8
|
import { Select as ae } from "../../../core/components/Select/index.mjs";
|
|
9
9
|
import { BlogArticleCard as re } from "../../cards/BlogArticleCard/index.mjs";
|
|
10
|
-
import { s as t, C as le } from "../../../CategoryFilters-
|
|
10
|
+
import { s as t, C as le } from "../../../CategoryFilters-C_rC4zRM.js";
|
|
11
11
|
import { X as ne } from "../../../x-CnsEH4Ox.js";
|
|
12
12
|
const ce = [
|
|
13
13
|
{ label: "Newest", value: "date-desc" },
|
|
@@ -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-CJ1BjDII.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-BgmVypxj.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-CJ1BjDII.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-BgmVypxj.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-CJ1BjDII.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-BgmVypxj.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"),L=require("react"),H=require("next/image"),Q=require("../../../core/components/ButtonGroup/index.cjs"),t=require("../../../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),L=require("react"),H=require("next/image"),Q=require("../../../core/components/ButtonGroup/index.cjs"),t=require("../../../index-CJ1BjDII.cjs"),M=require("../../../core/components/Modal/index.cjs"),O=require("../../utils/resolveLinkUrl.cjs"),W=require("../../contexts/ThemeContext.cjs"),E=require("../../hooks/useMediaQuery.cjs");function N({items:n,alignment:R,className:P}){const[S,$]=L.useState([]),{mode:a}=W.useTheme(),s=E.useMediaQuery("(max-width: 767px)");return L.useEffect(()=>{if(!(n!=null&&n.length)||!O.resolveLinkURL)return;async function e(){const r=await Promise.all(n.map(l=>O.resolveLinkURL(l)));$(r)}e()},[n]),n!=null&&n.length?o.jsx(Q.ButtonGroup,{className:P,alignment:R,children:n.slice(0,3).map((e,r)=>{var u,m,d,c,p,h,f,y,b,k,x,T,v,_,A,j,w,C,q,U,I;const l=S[r]??"#",i={};if(i.height="auto",((u=e.image)==null?void 0:u.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[B,G]=(y=e.image)==null?void 0:y.aspectRatio.split(":").map(Number);i.aspectRatio=`${B}/${G}`}}else i.objectFit="none";let g;(b=e.image)!=null&&b.imageUrls&&(g=a==="dark"&&((k=e.image.imageUrls.dark)==null?void 0:k.medium)||e.image.imageUrls.default.medium);let F=((v=(T=(x=e.image)==null?void 0:x[a==="dark"?"darkImage":"defaultImage"])==null?void 0:T.asset)==null?void 0:v.altText)||((j=(A=(_=e.image)==null?void 0:_[a==="dark"?"darkImage":"defaultImage"])==null?void 0:A.asset)==null?void 0:j.description)||"Card image";switch(e.type){case"link":return o.jsx(t.CallToAction,{as:((w=e.linkOptions)==null?void 0:w.linkType)==="scroll"?"scroll":"a",variant:e.variant,scrollTarget:((C=e.linkOptions)==null?void 0:C.linkType)==="scroll"?(q=e.linkOptions)==null?void 0:q.scrollTarget:"",href:l,target:((U=e.linkOptions)==null?void 0:U.linkType)==="external"?"_blank":"_self",rel:((I=e.linkOptions)==null?void 0:I.linkType)==="external"?"noopener noreferrer":"","aria-label":e.ariaLabel||e.label,icon:e.icon,iconAlignment:e.iconAlignment??"right",displayType:e.displayType,ImageComponent:o.jsx(H,{src:g??"",alt:F,width:600,height:658,priority:!1,style:i}),children:e.label},r);case"modal":return o.jsx(M.Modal,{trigger:o.jsx(t.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(M.Modal,{trigger:o.jsx(t.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(t.CallToAction,{as:"a",variant:e.variant??"primary",href:l,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=N;
|
|
@@ -2,7 +2,7 @@ import { jsx as n } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as B, useEffect as E } from "react";
|
|
3
3
|
import G from "next/image";
|
|
4
4
|
import { ButtonGroup as N } from "../../../core/components/ButtonGroup/index.mjs";
|
|
5
|
-
import { C as a } from "../../../index-
|
|
5
|
+
import { C as a } from "../../../index-BgmVypxj.js";
|
|
6
6
|
import { Modal as R } from "../../../core/components/Modal/index.mjs";
|
|
7
7
|
import { resolveLinkURL as F } from "../../utils/resolveLinkUrl.mjs";
|
|
8
8
|
import { useTheme as Q } from "../../contexts/ThemeContext.mjs";
|
package/package.json
CHANGED
package/dist/index-BSGi6vT1.cjs
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
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
|
-
* @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 A=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],I=r.createLucideIcon("chevron-left",A);/**
|
|
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 M=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],N=r.createLucideIcon("chevron-right",M);/**
|
|
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 R=[["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",R);/**
|
|
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 E=[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]],T=r.createLucideIcon("phone",E);/**
|
|
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 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
|
-
* @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"}]],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:g,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 _=a==="image"?c||(y?e.jsx("img",{src:y,alt:k}):p.isValidElement(g)?g:null):e.jsxs("span",{className:`${n.content} ${re[j]}`,children:[e.jsx("span",{children:g}),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:_})}if(o.as=="scroll"){const{scrollTarget: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:_})}return e.jsx("button",{className:`${v??""} ${n.callToAction} ${a==="text"?u[d]:n.image}`,disabled:f,...o,children:_})}exports.CallToAction=oe;exports.ChevronLeft=I;
|