quirk-ui 0.0.601 → 0.0.603
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 +7 -0
- 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 +19 -12
- package/dist/main.mjs +1 -1
- package/dist/next/blocks/AccordionBlock/index.cjs +1 -1
- package/dist/next/blocks/AccordionBlock/index.mjs +18 -17
- package/dist/next/blocks/AdditionalCategoriesBlock/index.cjs +1 -1
- package/dist/next/blocks/AdditionalCategoriesBlock/index.mjs +15 -13
- package/dist/next/blocks/CardGridBlock/index.cjs +1 -1
- package/dist/next/blocks/CardGridBlock/index.mjs +46 -44
- package/dist/next/blocks/CarouselBlock/index.cjs +1 -1
- package/dist/next/blocks/CarouselBlock/index.mjs +37 -35
- package/dist/next/blocks/ContentBlock/index.cjs +1 -1
- package/dist/next/blocks/ContentBlock/index.mjs +43 -42
- 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 +35 -34
- package/dist/next/blocks/FaqBlock/index.cjs +1 -1
- package/dist/next/blocks/FaqBlock/index.mjs +18 -17
- package/dist/next/blocks/FeaturedDocumentsBlock/index.cjs +1 -1
- package/dist/next/blocks/FeaturedDocumentsBlock/index.mjs +38 -37
- package/dist/next/blocks/HeroBlock/index.cjs +2 -2
- package/dist/next/blocks/HeroBlock/index.mjs +150 -142
- package/dist/next/blocks/QuoteBlock/index.cjs +1 -1
- package/dist/next/blocks/QuoteBlock/index.mjs +17 -12
- package/dist/next/blocks/RichTextBlock/index.cjs +1 -1
- package/dist/next/blocks/RichTextBlock/index.mjs +9 -9
- package/dist/next/blocks/StickyScrollBlock/index.cjs +1 -1
- package/dist/next/blocks/StickyScrollBlock/index.mjs +31 -30
- 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 +40 -39
- package/dist/next.d.ts +12 -12
- 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,6 +182,8 @@ export declare type CallToActionProps = BaseProps & ((AnchorProps & {
|
|
|
182
182
|
as: "a";
|
|
183
183
|
}) | (ButtonProps & {
|
|
184
184
|
as: "button";
|
|
185
|
+
}) | (ScrollProps & {
|
|
186
|
+
as: "scroll";
|
|
185
187
|
})) & {
|
|
186
188
|
ImageComponent?: default_2.ReactNode | default_2.ElementType;
|
|
187
189
|
};
|
|
@@ -955,6 +957,11 @@ export declare type RichContent = string | {
|
|
|
955
957
|
content: any[];
|
|
956
958
|
};
|
|
957
959
|
|
|
960
|
+
declare type ScrollProps = {
|
|
961
|
+
as: "scroll";
|
|
962
|
+
scrollToId: string;
|
|
963
|
+
} & default_2.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
964
|
+
|
|
958
965
|
export declare function Select({ id, name, label, options, defaultValue, required, disabled, onChange, className, ...restProps }: SelectProps): JSX.Element;
|
|
959
966
|
|
|
960
967
|
declare type SelectProps = {
|
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
|
@@ -45,7 +45,7 @@ import { WasHelpfulBlockProps as WasHelpfulBlockProps_2 } from './WasHelpful.typ
|
|
|
45
45
|
|
|
46
46
|
export declare function Accordion({ items, multiple, className, }: AccordionProps): JSX.Element;
|
|
47
47
|
|
|
48
|
-
export declare function AccordionBlock({ heading, items, className, styleOptions, }: AccordionBlockProps_2): JSX.Element;
|
|
48
|
+
export declare function AccordionBlock({ heading, items, className, styleOptions, id, }: AccordionBlockProps_2): JSX.Element;
|
|
49
49
|
|
|
50
50
|
export { AccordionBlockProps }
|
|
51
51
|
|
|
@@ -61,7 +61,7 @@ declare type AccordionProps = {
|
|
|
61
61
|
className?: string;
|
|
62
62
|
};
|
|
63
63
|
|
|
64
|
-
export declare function AdditionalCategoriesBlock({ categories, type, }: AdditionalCategoriesBlockProps_2): JSX.Element | undefined;
|
|
64
|
+
export declare function AdditionalCategoriesBlock({ categories, type, id, }: AdditionalCategoriesBlockProps_2): JSX.Element | undefined;
|
|
65
65
|
|
|
66
66
|
export { AdditionalCategoriesBlockProps }
|
|
67
67
|
|
|
@@ -237,13 +237,15 @@ export declare type CallToActionProps = BaseProps & ((AnchorProps & {
|
|
|
237
237
|
as: "a";
|
|
238
238
|
}) | (ButtonProps & {
|
|
239
239
|
as: "button";
|
|
240
|
+
}) | (ScrollProps & {
|
|
241
|
+
as: "scroll";
|
|
240
242
|
})) & {
|
|
241
243
|
ImageComponent?: default_2.ReactNode | default_2.ElementType;
|
|
242
244
|
};
|
|
243
245
|
|
|
244
246
|
export declare function Card({ title, content, footer, imageSrc, imageAlt, onClick, variant, clickable, className, }: CardProps): JSX.Element;
|
|
245
247
|
|
|
246
|
-
export declare function CardGridBlock({ heading, grid, callToAction, styleOptions, }: CardGridBlockProps_2): JSX.Element;
|
|
248
|
+
export declare function CardGridBlock({ heading, grid, callToAction, styleOptions, id, }: CardGridBlockProps_2): JSX.Element;
|
|
247
249
|
|
|
248
250
|
export { CardGridBlockProps }
|
|
249
251
|
|
|
@@ -261,7 +263,7 @@ declare type CardProps = {
|
|
|
261
263
|
|
|
262
264
|
export declare function Carousel({ items, itemsPerPage, itemsPerRow, autoplay, autoplayInterval, className, externalRef, siblingRef, isSplit, }: CarouselProps): JSX.Element;
|
|
263
265
|
|
|
264
|
-
export declare function CarouselBlock({ heading, carouselOptions, items, styleOptions, }: CarouselBlockProps_2): JSX.Element;
|
|
266
|
+
export declare function CarouselBlock({ heading, carouselOptions, items, styleOptions, id, }: CarouselBlockProps_2): JSX.Element;
|
|
265
267
|
|
|
266
268
|
export { CarouselBlockProps }
|
|
267
269
|
|
|
@@ -309,7 +311,7 @@ declare type ContainerProps = {
|
|
|
309
311
|
fluid?: boolean;
|
|
310
312
|
} & default_2.HTMLAttributes<HTMLElement>;
|
|
311
313
|
|
|
312
|
-
export declare function ContentBlock({ layout, heading, image, video, metrics, callToAction, disclaimer, styleOptions, }: ContentBlockProps_2): JSX.Element;
|
|
314
|
+
export declare function ContentBlock({ layout, heading, image, video, metrics, callToAction, disclaimer, styleOptions, id, }: ContentBlockProps_2): JSX.Element;
|
|
313
315
|
|
|
314
316
|
export { ContentBlockProps }
|
|
315
317
|
|
|
@@ -353,7 +355,7 @@ declare const displayClassMap: {
|
|
|
353
355
|
|
|
354
356
|
export declare function Divider({ axis, className, ...restProps }: SpacerProps): JSX.Element;
|
|
355
357
|
|
|
356
|
-
export declare function DocumentListBlock({ heading, layout, includeFilters, excludeFilters, limit, categoryFilters, documentType, styleOptions, initialArticles, initialTotalCount, initialIncludeCategories, }: DocumentListBlockProps_2): JSX.Element;
|
|
358
|
+
export declare function DocumentListBlock({ heading, layout, includeFilters, excludeFilters, limit, categoryFilters, documentType, styleOptions, initialArticles, initialTotalCount, initialIncludeCategories, id, }: DocumentListBlockProps_2): JSX.Element;
|
|
357
359
|
|
|
358
360
|
export { DocumentListBlockProps }
|
|
359
361
|
|
|
@@ -369,11 +371,11 @@ declare type DrawerProps = {
|
|
|
369
371
|
className?: string;
|
|
370
372
|
};
|
|
371
373
|
|
|
372
|
-
export declare function FaqBlock({ heading, items, className, styleOptions, }: FaqBlockProps_2): JSX.Element;
|
|
374
|
+
export declare function FaqBlock({ heading, items, className, styleOptions, id, }: FaqBlockProps_2): JSX.Element;
|
|
373
375
|
|
|
374
376
|
export { FaqBlockProps }
|
|
375
377
|
|
|
376
|
-
export declare function FeaturedDocumentsBlock({ heading, selectionMode, layout, limit, articles, manualArticles, documentType, sortBy, callToAction, styleOptions, }: FeaturedDocumentsBlockProps_2): 0 | JSX.Element | undefined;
|
|
378
|
+
export declare function FeaturedDocumentsBlock({ heading, selectionMode, layout, limit, articles, manualArticles, documentType, sortBy, callToAction, styleOptions, id, }: FeaturedDocumentsBlockProps_2): 0 | JSX.Element | undefined;
|
|
377
379
|
|
|
378
380
|
export { FeaturedDocumentsBlockProps }
|
|
379
381
|
|
|
@@ -748,7 +750,7 @@ declare type HeadingProps = {
|
|
|
748
750
|
className?: string;
|
|
749
751
|
} & default_2.HTMLAttributes<HTMLHeadingElement>;
|
|
750
752
|
|
|
751
|
-
export declare function HeroBlock({ heading, image, video, callToAction, pageData, styleOptions, }: HeroBlockProps_2): JSX.Element;
|
|
753
|
+
export declare function HeroBlock({ heading, image, video, callToAction, pageData, styleOptions, id, }: HeroBlockProps_2): JSX.Element;
|
|
752
754
|
|
|
753
755
|
export { HeroBlockProps }
|
|
754
756
|
|
|
@@ -1028,7 +1030,7 @@ declare type Props = LinkProps & {
|
|
|
1028
1030
|
defaultLocale?: string;
|
|
1029
1031
|
};
|
|
1030
1032
|
|
|
1031
|
-
export declare function QuoteBlock({ quote, author, styleOptions }: QuoteBlockProps_2): JSX.Element;
|
|
1033
|
+
export declare function QuoteBlock({ quote, author, styleOptions, id, }: QuoteBlockProps_2): JSX.Element;
|
|
1032
1034
|
|
|
1033
1035
|
export { QuoteBlockProps }
|
|
1034
1036
|
|
|
@@ -1080,7 +1082,7 @@ export declare type RichContent = string | {
|
|
|
1080
1082
|
|
|
1081
1083
|
export declare const RichText: default_2.FC<RichTextProps>;
|
|
1082
1084
|
|
|
1083
|
-
export declare function RichTextBlock({ text, styleOptions }: RichTextBlockProps_2): JSX.Element;
|
|
1085
|
+
export declare function RichTextBlock({ text, styleOptions, id }: RichTextBlockProps_2): JSX.Element;
|
|
1084
1086
|
|
|
1085
1087
|
export { RichTextBlockProps }
|
|
1086
1088
|
|
|
@@ -1093,6 +1095,11 @@ declare interface RichTextProps {
|
|
|
1093
1095
|
|
|
1094
1096
|
export { SanityImage }
|
|
1095
1097
|
|
|
1098
|
+
declare type ScrollProps = {
|
|
1099
|
+
as: "scroll";
|
|
1100
|
+
scrollToId: string;
|
|
1101
|
+
} & default_2.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
1102
|
+
|
|
1096
1103
|
export declare function Select({ id, name, label, options, defaultValue, required, disabled, onChange, className, ...restProps }: SelectProps): JSX.Element;
|
|
1097
1104
|
|
|
1098
1105
|
declare type SelectProps = {
|
|
@@ -1253,7 +1260,7 @@ declare const statusClassMap: {
|
|
|
1253
1260
|
readonly busy: string;
|
|
1254
1261
|
};
|
|
1255
1262
|
|
|
1256
|
-
export declare function StickyScrollBlock({ heading, items, showNumbers, }: StickyScrollBlockProps_2): JSX.Element;
|
|
1263
|
+
export declare function StickyScrollBlock({ heading, items, showNumbers, id, }: StickyScrollBlockProps_2): JSX.Element;
|
|
1257
1264
|
|
|
1258
1265
|
export { StickyScrollBlockProps }
|
|
1259
1266
|
|
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('../../../assets/index9.css');const c=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index9.css');const c=require("react/jsx-runtime"),p=require("../../../core/components/Accordion/index.cjs"),i=require("../../ui/PortableTextRenderer/index.cjs"),d=require("../../hooks/useStyleClasses.cjs"),a="_accordion_pip58_1",u="_container_pip58_7",x="_heading_pip58_24",j="_title_pip58_29",$="_cta_pip58_29",k="_text_pip58_29",m="_content_pip58_45",o={accordion:a,container:u,heading:x,title:j,cta:$,text:k,content:m};function y(t){return t.map(e=>({id:e._key,title:e.title,description:c.jsx(i.RichText,{blocks:e.content})}))}function b({heading:t,items:e,className:n,styleOptions:r,id:l}){const s=d.useStyleClasses(r),_=y(e??[]);return c.jsx("section",{id:l,className:`${o.accordion} ${s}`,children:c.jsxs("article",{className:`${s.includes("split")?"split":"default"} ${o.container}`,children:[c.jsxs("div",{children:[t.title&&c.jsx(i.RichText,{blocks:t==null?void 0:t.title}),t.description&&c.jsx(i.RichText,{blocks:t.description})]}),c.jsx("div",{className:`${o.content} ${n&&o[n]?o[n]:n??""}`,children:c.jsx(p.Accordion,{items:_,multiple:!0})})]})})}exports.AccordionBlock=b;
|