quirk-ui 0.1.6 → 0.1.7
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/main.cjs +1 -1
- package/dist/main.d.ts +17 -0
- package/dist/main.mjs +10 -9
- package/dist/next/blocks/ContentBlock/index.cjs +1 -1
- package/dist/next/blocks/ContentBlock/index.mjs +19 -17
- package/dist/next/blocks/StickyScrollBlock/index.cjs +1 -1
- package/dist/next/blocks/StickyScrollBlock/index.mjs +1 -1
- package/dist/next/cards/BioCard/index.cjs +1 -1
- package/dist/next/cards/BioCard/index.mjs +1 -1
- package/dist/next/cards/BlogArticleCardAdapter.cjs +1 -1
- package/dist/next/cards/BlogArticleCardAdapter.mjs +1 -1
- package/dist/next/cards/ProductCard/index.cjs +1 -1
- package/dist/next/cards/ProductCard/index.mjs +1 -1
- package/dist/next/cards/SegmentCard/index.cjs +1 -1
- package/dist/next/cards/SegmentCard/index.mjs +1 -1
- package/dist/next/cards/ServiceCard/index.cjs +1 -1
- package/dist/next/cards/ServiceCard/index.mjs +1 -1
- package/dist/next/utils/blockRenderers.cjs +1 -0
- package/dist/next/utils/blockRenderers.mjs +34 -0
- package/dist/next.cjs +1 -1
- package/dist/next.d.ts +17 -0
- package/dist/next.mjs +13 -12
- package/package.json +1 -1
- package/dist/next/utils/portableTextUtils.cjs +0 -1
- package/dist/next/utils/portableTextUtils.mjs +0 -25
package/dist/main.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./assets/index.css');;/* empty css */const c=require("./core/components/Accordion/index.cjs"),t=require("./AccordionItem-BWiG2pOx.cjs"),i=require("./core/components/Avatar/index.cjs"),_=require("./core/components/Badge/index.cjs"),s=require("./core/components/Box/index.cjs"),d=require("./core/components/Breadcrumbs/index.cjs"),l=require("./core/components/ButtonGroup/index.cjs"),a=require("./index-CAxKHP72.cjs"),u=require("./core/components/Card/index.cjs"),x=require("./core/components/Carousel/index.cjs"),p=require("./core/components/Checkbox/index.cjs"),k=require("./core/components/Container/index.cjs"),m=require("./core/components/DatePicker/index.cjs"),q=require("./core/components/Divider/index.cjs"),B=require("./core/components/Drawer/index.cjs"),b=require("./core/components/Fieldset/index.cjs"),T=require("./core/components/FileUpload/index.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./assets/index.css');;/* empty css */const c=require("./core/components/Accordion/index.cjs"),t=require("./AccordionItem-BWiG2pOx.cjs"),i=require("./core/components/Avatar/index.cjs"),_=require("./core/components/Badge/index.cjs"),s=require("./core/components/Box/index.cjs"),d=require("./core/components/Breadcrumbs/index.cjs"),l=require("./core/components/ButtonGroup/index.cjs"),a=require("./index-CAxKHP72.cjs"),u=require("./core/components/Card/index.cjs"),x=require("./core/components/Carousel/index.cjs"),p=require("./core/components/Checkbox/index.cjs"),k=require("./core/components/Container/index.cjs"),m=require("./core/components/DatePicker/index.cjs"),q=require("./core/components/Divider/index.cjs"),B=require("./core/components/Drawer/index.cjs"),b=require("./core/components/Fieldset/index.cjs"),T=require("./core/components/FileUpload/index.cjs"),C=require("./core/components/FloatingActionButton/index.cjs"),S=require("./core/components/Footer/index.cjs"),g=require("./core/components/Form/index.cjs"),h=require("./core/components/Grid/index.cjs"),A=require("./core/components/Heading/index.cjs"),L=require("./core/components/Input/index.cjs"),v=require("./core/components/Label/index.cjs"),F=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/Sidebar/index.cjs"),y=require("./core/components/Skeleton/index.cjs"),Q=require("./core/components/Spacer/index.cjs"),U=require("./core/components/Spinner/index.cjs"),W=require("./core/components/Stack/index.cjs"),j=require("./core/components/Switch/index.cjs"),O=require("./core/components/Table/index.cjs"),z=require("./core/components/Tabs/index.cjs"),E=require("./core/components/Text/index.cjs"),J=require("./core/components/Textarea/index.cjs"),K=require("./core/components/Tooltip/index.cjs"),V=require("./core/utils/ThemeProvider/index.cjs"),X=require("./next/blocks/AccordionBlock/index.cjs"),Y=require("./next/blocks/AdditionalCategoriesBlock/index.cjs"),Z=require("./next/blocks/CardGridBlock/index.cjs"),$=require("./next/blocks/CarouselBlock/index.cjs"),ee=require("./next/blocks/ContentBlock/index.cjs"),oe=require("./next/blocks/DocumentListBlock/index.cjs"),re=require("./next/blocks/FeaturedDocumentsBlock/index.cjs"),ne=require("./next/blocks/HeroBlock/index.cjs"),o=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"),de=require("./next/blocks/TabsBlock/index.cjs"),le=require("./next/blocks/WasHelpfulBlock/index.cjs"),ae=require("./next/cards/SpotlightCard/index.cjs"),r=require("./next/context/LocaleBridge.cjs"),n=require("./core/context/ThemeContext.cjs"),e=require("./next/utils/blockRenderers.cjs");exports.Accordion=c.Accordion;exports.AccordionItem=t.AccordionItem;exports.Avatar=i.Avatar;exports.Badge=_.Badge;exports.Box=s.Box;exports.Breadcrumbs=d.Breadcrumbs;exports.ButtonGroup=l.ButtonGroup;exports.Button=a.Button;exports.Card=u.Card;exports.Carousel=x.Carousel;exports.Checkbox=p.Checkbox;exports.Container=k.Container;exports.DatePicker=m.DatePicker;exports.Divider=q.Divider;exports.Drawer=B.Drawer;exports.Fieldset=b.Fieldset;exports.FileUpload=T.FileUpload;exports.FloatingActionButton=C.FloatingActionButton;exports.Footer=S.Footer;exports.Form=g.Form;exports.Grid=h.Grid;exports.Heading=A.Heading;exports.Input=L.Input;exports.Label=v.Label;exports.List=F.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.Sidebar=I.Sidebar;exports.Skeleton=y.Skeleton;exports.Spacer=Q.Spacer;exports.Spinner=U.Spinner;exports.Stack=W.Stack;exports.Switch=j.Switch;exports.Table=O.Table;exports.Tabs=z.Tabs;exports.Text=E.Text;exports.Textarea=J.Textarea;exports.Tooltip=K.Tooltip;exports.ThemeProvider=V.ThemeProvider;exports.AccordionBlock=X.AccordionBlock;exports.AdditionalCategoriesBlock=Y.AdditionalCategoriesBlock;exports.CardGridBlock=Z.CardGridBlock;exports.CarouselBlock=$.CarouselBlock;exports.ContentBlock=ee.ContentBlock;exports.DocumentListBlock=oe.DocumentListBlock;exports.FeaturedDocumentsBlock=re.FeaturedDocumentsBlock;exports.HeroBlock=ne.HeroBlock;exports.HeroProvider=o.HeroProvider;exports.useHeroContext=o.useHeroContext;exports.LocaleLink=ce.LocaleLink;exports.QuoteBlock=te.QuoteBlock;exports.RichTextBlock=ie.RichTextBlock;exports.RichText=_e.RichText;exports.StickyScrollBlock=se.StickyScrollBlock;exports.TabsBlock=de.TabsBlock;exports.WasHelpfulBlock=le.WasHelpfulBlock;exports.SpotlightCard=ae.SpotlightCard;exports.LocaleBridgeProvider=r.LocaleBridgeProvider;exports.useLocaleBridge=r.useLocaleBridge;exports.AppThemeProvider=n.AppThemeProvider;exports.useTheme=n.useTheme;exports.extractText=e.extractText;exports.renderCallToAction=e.renderCallToAction;exports.renderRichText=e.renderRichText;
|
package/dist/main.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ import { HeroBlockProps } from './next/blocks/HeroBlock/HeroBlock.types';
|
|
|
20
20
|
import { HeroBlockProps as HeroBlockProps_2 } from './HeroBlock.types';
|
|
21
21
|
import { JSX } from 'react/jsx-runtime';
|
|
22
22
|
import { Link } from '../../../sanity/types/link';
|
|
23
|
+
import { Link as Link_2 } from '../../sanity/types/link';
|
|
23
24
|
import { LinkProps } from 'next/link';
|
|
24
25
|
import { NavigationData } from './sanity/types/navigation';
|
|
25
26
|
import { PageSection } from './sanity/types/pageSection';
|
|
@@ -1342,12 +1343,28 @@ declare type RangeProps = {
|
|
|
1342
1343
|
|
|
1343
1344
|
declare type RangeSize = "sm" | "md" | "lg";
|
|
1344
1345
|
|
|
1346
|
+
/**
|
|
1347
|
+
* Drop-in `renderCallToAction` prop for all QuirkUI blocks.
|
|
1348
|
+
*
|
|
1349
|
+
* @example
|
|
1350
|
+
* // Pass directly as a prop value — no wrapper needed
|
|
1351
|
+
* <HeroBlock {...section} renderCallToAction={renderCallToAction} />
|
|
1352
|
+
* <ContentBlock {...section} renderCallToAction={renderCallToAction} />
|
|
1353
|
+
*/
|
|
1354
|
+
export declare function renderCallToAction({ alignment, items, className, }: RenderCallToActionProps_2): default_2.ReactElement | null;
|
|
1355
|
+
|
|
1345
1356
|
declare type RenderCallToActionProps = {
|
|
1346
1357
|
alignment: "left" | "center" | "right";
|
|
1347
1358
|
items: Link[];
|
|
1348
1359
|
className?: string;
|
|
1349
1360
|
};
|
|
1350
1361
|
|
|
1362
|
+
declare interface RenderCallToActionProps_2 {
|
|
1363
|
+
alignment: "left" | "center" | "right";
|
|
1364
|
+
items: Link_2[];
|
|
1365
|
+
className?: string;
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1351
1368
|
declare type RenderImageProps = {
|
|
1352
1369
|
src: string;
|
|
1353
1370
|
alt: string;
|
package/dist/main.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { ButtonGroup as k } from "./core/components/ButtonGroup/index.mjs";
|
|
|
9
9
|
import { B as u } from "./index-DoRSKr6y.js";
|
|
10
10
|
import { Card as C } from "./core/components/Card/index.mjs";
|
|
11
11
|
import { Carousel as g } from "./core/components/Carousel/index.mjs";
|
|
12
|
-
import { Checkbox as
|
|
12
|
+
import { Checkbox as A } from "./core/components/Checkbox/index.mjs";
|
|
13
13
|
import { Container as v } from "./core/components/Container/index.mjs";
|
|
14
14
|
import { DatePicker as F } from "./core/components/DatePicker/index.mjs";
|
|
15
15
|
import { Divider as D } from "./core/components/Divider/index.mjs";
|
|
@@ -36,7 +36,7 @@ import { Select as so } from "./core/components/Select/index.mjs";
|
|
|
36
36
|
import { Sidebar as To } from "./core/components/Sidebar/index.mjs";
|
|
37
37
|
import { Skeleton as So } from "./core/components/Skeleton/index.mjs";
|
|
38
38
|
import { Spacer as ho } from "./core/components/Spacer/index.mjs";
|
|
39
|
-
import { Spinner as
|
|
39
|
+
import { Spinner as bo } from "./core/components/Spinner/index.mjs";
|
|
40
40
|
import { Stack as Lo } from "./core/components/Stack/index.mjs";
|
|
41
41
|
import { Switch as Po } from "./core/components/Switch/index.mjs";
|
|
42
42
|
import { Table as Ho } from "./core/components/Table/index.mjs";
|
|
@@ -62,9 +62,9 @@ import { StickyScrollBlock as kr } from "./next/blocks/StickyScrollBlock/index.m
|
|
|
62
62
|
import { TabsBlock as ur } from "./next/blocks/TabsBlock/index.mjs";
|
|
63
63
|
import { WasHelpfulBlock as Cr } from "./next/blocks/WasHelpfulBlock/index.mjs";
|
|
64
64
|
import { SpotlightCard as gr } from "./next/cards/SpotlightCard/index.mjs";
|
|
65
|
-
import { LocaleBridgeProvider as
|
|
65
|
+
import { LocaleBridgeProvider as Ar, useLocaleBridge as br } from "./next/context/LocaleBridge.mjs";
|
|
66
66
|
import { AppThemeProvider as Lr, useTheme as Fr } from "./core/context/ThemeContext.mjs";
|
|
67
|
-
import { extractText as Dr,
|
|
67
|
+
import { extractText as Dr, renderCallToAction as Hr, renderRichText as Rr } from "./next/utils/blockRenderers.mjs";
|
|
68
68
|
export {
|
|
69
69
|
t as Accordion,
|
|
70
70
|
qo as AccordionBlock,
|
|
@@ -81,7 +81,7 @@ export {
|
|
|
81
81
|
Ko as CardGridBlock,
|
|
82
82
|
g as Carousel,
|
|
83
83
|
Vo as CarouselBlock,
|
|
84
|
-
|
|
84
|
+
A as Checkbox,
|
|
85
85
|
v as Container,
|
|
86
86
|
Yo as ContentBlock,
|
|
87
87
|
F as DatePicker,
|
|
@@ -101,7 +101,7 @@ export {
|
|
|
101
101
|
O as Input,
|
|
102
102
|
X as Label,
|
|
103
103
|
Z as List,
|
|
104
|
-
|
|
104
|
+
Ar as LocaleBridgeProvider,
|
|
105
105
|
fr as LocaleLink,
|
|
106
106
|
$ as Modal,
|
|
107
107
|
ro as MultiSelect,
|
|
@@ -118,7 +118,7 @@ export {
|
|
|
118
118
|
To as Sidebar,
|
|
119
119
|
So as Skeleton,
|
|
120
120
|
ho as Spacer,
|
|
121
|
-
|
|
121
|
+
bo as Spinner,
|
|
122
122
|
gr as SpotlightCard,
|
|
123
123
|
Lo as Stack,
|
|
124
124
|
kr as StickyScrollBlock,
|
|
@@ -132,8 +132,9 @@ export {
|
|
|
132
132
|
Qo as Tooltip,
|
|
133
133
|
Cr as WasHelpfulBlock,
|
|
134
134
|
Dr as extractText,
|
|
135
|
-
Hr as
|
|
135
|
+
Hr as renderCallToAction,
|
|
136
|
+
Rr as renderRichText,
|
|
136
137
|
xr as useHeroContext,
|
|
137
|
-
|
|
138
|
+
br as useLocaleBridge,
|
|
138
139
|
Fr as useTheme
|
|
139
140
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index8.css');const e=require("react/jsx-runtime"),S=require("../../hooks/useStyleClasses.cjs"),k=require("../../../core/context/ThemeContext.cjs"),H=require("../../hooks/useMediaQuery.cjs"),g=require("../../utils/mediaUtils.cjs"),W="_content_1fjz8_1",$="_container_1fjz8_7",
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index8.css');const e=require("react/jsx-runtime"),S=require("../../hooks/useStyleClasses.cjs"),k=require("../../../core/context/ThemeContext.cjs"),H=require("../../hooks/useMediaQuery.cjs"),g=require("../../utils/mediaUtils.cjs"),W="_content_1fjz8_1",$="_container_1fjz8_7",C="_eyebrow_1fjz8_34",L="_metrics_1fjz8_38",B="_metric_1fjz8_38",q="_metricValue_1fjz8_54",M="_disclaimer_1fjz8_75",U="_layoutHImageRight_1fjz8_80",D="_heading_1fjz8_84",E="_image_1fjz8_89",Q="_noImage_1fjz8_99",Y="_layoutHImageLeft_1fjz8_103",F="_layoutVImageTop_1fjz8_122",G="_layoutVImageBottom_1fjz8_135",P="_text_1fjz8_154",J="_title_1fjz8_159",K="_cta_1fjz8_178",X="_headingHorizontal_1fjz8_186",Z="_titleWrapper_1fjz8_195",O="_headingVertical_1fjz8_216",A="_videoWrapper_1fjz8_237",T="_layoutSplitText_1fjz8_329",R="_additionalContent_1fjz8_344",t={content:W,container:$,eyebrow:C,metrics:L,metric:B,metricValue:q,disclaimer:M,layoutHImageRight:U,heading:D,image:E,noImage:Q,layoutHImageLeft:Y,layoutVImageTop:F,layoutVImageBottom:G,text:P,title:J,cta:K,headingHorizontal:X,titleWrapper:Z,headingVertical:O,videoWrapper:A,layoutSplitText:T,additionalContent:R},tt={"no-image":t.noImage,"split-text":t.layoutSplitText,"horizontal-image-right":t.layoutHImageRight,"horizontal-image-left":t.layoutHImageLeft,"vertical-image-top":t.layoutVImageTop,"vertical-image-bottom":t.layoutVImageBottom},st={horizontal:t.headingHorizontal,vertical:t.headingVertical};function et(s,i,l){const o=s.includes("vimeo.com"),c=s.includes("youtube.com")||s.includes("youtu.be");return o||c?e.jsx("div",{style:{maxWidth:l??"unset",flex:.65},children:e.jsx("div",{className:t.videoWrapper,children:e.jsx("iframe",{src:o?`${s}?autoplay=0&muted=0&loop=0`:`${s}?autoplay=0&mute=0&loop=0`,allow:"autoplay; fullscreen",allowFullScreen:!0})})}):e.jsx("div",{style:{maxWidth:l??"unset",width:"100%",flex:.65},children:e.jsx("div",{className:t.videoWrapper,children:e.jsx("video",{src:s,controls:!0,poster:i})})})}function ot({metrics:s,renderRichText:i}){return e.jsx("div",{className:t.metrics,children:s.map(l=>e.jsxs("div",{className:t.metric,children:[e.jsx("div",{className:t.metricValue,children:l.metricValue}),l.metricDescription&&(i==null?void 0:i({blocks:l.metricDescription}))]},l._key))})}function at({layout:s,heading:i,additionalContent:l,image:o,video:c,metrics:r,callToAction:n,disclaimer:j,styleOptions:_,id:v,renderImage:p,renderRichText:a,renderCallToAction:u}){var I;const{mode:f}=k.useTheme(),N=S.useStyleClasses(_),V=H.useMediaQuery("(max-width: 768px)"),m=g.resolveImageUrl(o,f),d=g.resolveAltText(o,f),z=g.resolveImageStyle(o,V);console.log("CTA",n);const b=tt[(s==null?void 0:s.orientation)??"horizontal-image-right"],x=st[i.headingLayout??"horizontal"],w={"--container-max-width":(_==null?void 0:_.maxWidth)??"unset","--gap":s==null?void 0:s.gap,"--max-width":(o==null?void 0:o.sizing)==="inset"?o==null?void 0:o.maxWidth:"unset"},h=(s==null?void 0:s.orientation)==="split-text",y=!h&&(s==null?void 0:s.orientation)!=="no-image";return e.jsx("section",{id:v,className:`${N} ${t.content}`,children:e.jsxs("article",{className:`${t.container} ${b}`,style:w,children:[e.jsxs("div",{className:`${t.heading} ${x}`,children:[e.jsxs("div",{className:t.titleWrapper,children:[i.eyebrow&&(a==null?void 0:a({blocks:i.eyebrow,className:t.eyebrow})),i.title&&(a==null?void 0:a({blocks:i.title,className:t.title}))]}),i.description||(I=n==null?void 0:n.items)!=null&&I.length?e.jsxs("div",{className:t.text,children:[i.description&&(a==null?void 0:a({blocks:i.description})),r&&r.length>0&&e.jsx(ot,{metrics:r,renderRichText:a}),n&&(u==null?void 0:u({items:n.items,alignment:n.alignment,className:t.cta})),j&&(a==null?void 0:a({blocks:j,className:t.disclaimer}))]}):null]}),h&&l&&e.jsx("div",{className:t.additionalContent,children:a==null?void 0:a({blocks:l})}),y&&c?et(c,m,o==null?void 0:o.maxWidth):y&&o&&m?e.jsx("div",{className:t.image,children:p?p({src:m,alt:d,width:600,height:400,priority:!0,style:z}):e.jsx("img",{src:m,alt:d,width:600,height:400,style:{width:"100%",height:"auto",...z}})}):null]})})}exports.ContentBlock=at;
|
|
@@ -3,7 +3,7 @@ import { useStyleClasses as S } from "../../hooks/useStyleClasses.mjs";
|
|
|
3
3
|
import { useTheme as W } from "../../../core/context/ThemeContext.mjs";
|
|
4
4
|
import { useMediaQuery as k } from "../../hooks/useMediaQuery.mjs";
|
|
5
5
|
import { resolveImageUrl as L, resolveAltText as $, resolveImageStyle as B } from "../../utils/mediaUtils.mjs";
|
|
6
|
-
import '../../../assets/index8.css';const C = "_content_1fjz8_1", M = "_container_1fjz8_7", D = "_eyebrow_1fjz8_34", U = "_metrics_1fjz8_38", E = "_metric_1fjz8_38", Y = "_metricValue_1fjz8_54", F = "_disclaimer_1fjz8_75", G = "_layoutHImageRight_1fjz8_80", Q = "_heading_1fjz8_84", q = "_image_1fjz8_89", J = "_noImage_1fjz8_99", K = "_layoutHImageLeft_1fjz8_103", P = "_layoutVImageTop_1fjz8_122", X = "_layoutVImageBottom_1fjz8_135", Z = "_text_1fjz8_154", O = "_title_1fjz8_159", x = "_cta_1fjz8_178", A = "_headingHorizontal_1fjz8_186", R = "_titleWrapper_1fjz8_195", T = "_headingVertical_1fjz8_216", tt = "_videoWrapper_1fjz8_237", ot = "_layoutSplitText_1fjz8_329",
|
|
6
|
+
import '../../../assets/index8.css';const C = "_content_1fjz8_1", M = "_container_1fjz8_7", D = "_eyebrow_1fjz8_34", U = "_metrics_1fjz8_38", E = "_metric_1fjz8_38", Y = "_metricValue_1fjz8_54", F = "_disclaimer_1fjz8_75", G = "_layoutHImageRight_1fjz8_80", Q = "_heading_1fjz8_84", q = "_image_1fjz8_89", J = "_noImage_1fjz8_99", K = "_layoutHImageLeft_1fjz8_103", P = "_layoutVImageTop_1fjz8_122", X = "_layoutVImageBottom_1fjz8_135", Z = "_text_1fjz8_154", O = "_title_1fjz8_159", x = "_cta_1fjz8_178", A = "_headingHorizontal_1fjz8_186", R = "_titleWrapper_1fjz8_195", T = "_headingVertical_1fjz8_216", tt = "_videoWrapper_1fjz8_237", ot = "_layoutSplitText_1fjz8_329", st = "_additionalContent_1fjz8_344", t = {
|
|
7
7
|
content: C,
|
|
8
8
|
container: M,
|
|
9
9
|
eyebrow: D,
|
|
@@ -26,8 +26,8 @@ import '../../../assets/index8.css';const C = "_content_1fjz8_1", M = "_containe
|
|
|
26
26
|
headingVertical: T,
|
|
27
27
|
videoWrapper: tt,
|
|
28
28
|
layoutSplitText: ot,
|
|
29
|
-
additionalContent:
|
|
30
|
-
},
|
|
29
|
+
additionalContent: st
|
|
30
|
+
}, at = {
|
|
31
31
|
"no-image": t.noImage,
|
|
32
32
|
"split-text": t.layoutSplitText,
|
|
33
33
|
"horizontal-image-right": t.layoutHImageRight,
|
|
@@ -39,11 +39,11 @@ import '../../../assets/index8.css';const C = "_content_1fjz8_1", M = "_containe
|
|
|
39
39
|
vertical: t.headingVertical
|
|
40
40
|
};
|
|
41
41
|
function it(o, e, l) {
|
|
42
|
-
const
|
|
43
|
-
return
|
|
42
|
+
const s = o.includes("vimeo.com"), m = o.includes("youtube.com") || o.includes("youtu.be");
|
|
43
|
+
return s || m ? /* @__PURE__ */ i("div", { style: { maxWidth: l ?? "unset", flex: 0.65 }, children: /* @__PURE__ */ i("div", { className: t.videoWrapper, children: /* @__PURE__ */ i(
|
|
44
44
|
"iframe",
|
|
45
45
|
{
|
|
46
|
-
src:
|
|
46
|
+
src: s ? `${o}?autoplay=0&muted=0&loop=0` : `${o}?autoplay=0&mute=0&loop=0`,
|
|
47
47
|
allow: "autoplay; fullscreen",
|
|
48
48
|
allowFullScreen: !0
|
|
49
49
|
}
|
|
@@ -62,7 +62,7 @@ function pt({
|
|
|
62
62
|
layout: o,
|
|
63
63
|
heading: e,
|
|
64
64
|
additionalContent: l,
|
|
65
|
-
image:
|
|
65
|
+
image: s,
|
|
66
66
|
video: m,
|
|
67
67
|
metrics: p,
|
|
68
68
|
callToAction: n,
|
|
@@ -70,14 +70,16 @@ function pt({
|
|
|
70
70
|
styleOptions: _,
|
|
71
71
|
id: y,
|
|
72
72
|
renderImage: g,
|
|
73
|
-
renderRichText:
|
|
73
|
+
renderRichText: a,
|
|
74
74
|
renderCallToAction: u
|
|
75
75
|
}) {
|
|
76
76
|
var v;
|
|
77
|
-
const { mode: z } = W(), N = S(_), V = k("(max-width: 768px)"), r = L(
|
|
77
|
+
const { mode: z } = W(), N = S(_), V = k("(max-width: 768px)"), r = L(s, z), d = $(s, z), j = B(s, V);
|
|
78
|
+
console.log("CTA", n);
|
|
79
|
+
const b = at[(o == null ? void 0 : o.orientation) ?? "horizontal-image-right"], w = et[e.headingLayout ?? "horizontal"], H = {
|
|
78
80
|
"--container-max-width": (_ == null ? void 0 : _.maxWidth) ?? "unset",
|
|
79
81
|
"--gap": o == null ? void 0 : o.gap,
|
|
80
|
-
"--max-width": (
|
|
82
|
+
"--max-width": (s == null ? void 0 : s.sizing) === "inset" ? s == null ? void 0 : s.maxWidth : "unset"
|
|
81
83
|
}, I = (o == null ? void 0 : o.orientation) === "split-text", h = !I && (o == null ? void 0 : o.orientation) !== "no-image";
|
|
82
84
|
return /* @__PURE__ */ i("section", { id: y, className: `${N} ${t.content}`, children: /* @__PURE__ */ c(
|
|
83
85
|
"article",
|
|
@@ -87,22 +89,22 @@ function pt({
|
|
|
87
89
|
children: [
|
|
88
90
|
/* @__PURE__ */ c("div", { className: `${t.heading} ${w}`, children: [
|
|
89
91
|
/* @__PURE__ */ c("div", { className: t.titleWrapper, children: [
|
|
90
|
-
e.eyebrow && (
|
|
92
|
+
e.eyebrow && (a == null ? void 0 : a({
|
|
91
93
|
blocks: e.eyebrow,
|
|
92
94
|
className: t.eyebrow
|
|
93
95
|
})),
|
|
94
|
-
e.title && (
|
|
96
|
+
e.title && (a == null ? void 0 : a({
|
|
95
97
|
blocks: e.title,
|
|
96
98
|
className: t.title
|
|
97
99
|
}))
|
|
98
100
|
] }),
|
|
99
101
|
e.description || (v = n == null ? void 0 : n.items) != null && v.length ? /* @__PURE__ */ c("div", { className: t.text, children: [
|
|
100
|
-
e.description && (
|
|
102
|
+
e.description && (a == null ? void 0 : a({ blocks: e.description })),
|
|
101
103
|
p && p.length > 0 && /* @__PURE__ */ i(
|
|
102
104
|
lt,
|
|
103
105
|
{
|
|
104
106
|
metrics: p,
|
|
105
|
-
renderRichText:
|
|
107
|
+
renderRichText: a
|
|
106
108
|
}
|
|
107
109
|
),
|
|
108
110
|
n && (u == null ? void 0 : u({
|
|
@@ -110,14 +112,14 @@ function pt({
|
|
|
110
112
|
alignment: n.alignment,
|
|
111
113
|
className: t.cta
|
|
112
114
|
})),
|
|
113
|
-
f && (
|
|
115
|
+
f && (a == null ? void 0 : a({
|
|
114
116
|
blocks: f,
|
|
115
117
|
className: t.disclaimer
|
|
116
118
|
}))
|
|
117
119
|
] }) : null
|
|
118
120
|
] }),
|
|
119
|
-
I && l && /* @__PURE__ */ i("div", { className: t.additionalContent, children:
|
|
120
|
-
h && m ? it(m, r,
|
|
121
|
+
I && l && /* @__PURE__ */ i("div", { className: t.additionalContent, children: a == null ? void 0 : a({ blocks: l }) }),
|
|
122
|
+
h && m ? it(m, r, s == null ? void 0 : s.maxWidth) : h && s && r ? /* @__PURE__ */ i("div", { className: t.image, children: g ? g({
|
|
121
123
|
src: r,
|
|
122
124
|
alt: d,
|
|
123
125
|
width: 600,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index13.css');const c=require("react/jsx-runtime"),a=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index13.css');const c=require("react/jsx-runtime"),a=require("react"),g=require("../../utils/mediaUtils.cjs"),h=require("../../utils/blockRenderers.cjs"),I=require("../../../core/context/ThemeContext.cjs"),q=require("../../hooks/useStyleClasses.cjs"),C="_layout_pc5yj_1",$="_container_pc5yj_7",x="_heading_pc5yj_19",A="_title_pc5yj_24",B="_text_pc5yj_24",E="_scroll_pc5yj_39",U="_sidebar_pc5yj_44",z="_number_pc5yj_69",M="_link_pc5yj_86",O="_active_pc5yj_100",P="_content_pc5yj_112",V="_item_pc5yj_119",D="_image_pc5yj_138",F="_eyebrow_pc5yj_164",l={layout:C,container:$,heading:x,title:A,text:B,scroll:E,sidebar:U,number:z,link:M,active:O,content:P,item:V,image:D,eyebrow:F};function G({heading:i,items:r,showNumbers:d,styleOptions:p,id:v,renderImage:y,renderRichText:e}){const[b,j]=a.useState(null),{mode:m}=I.useTheme(),f=q.useStyleClasses(p),u=a.useRef(!1),_=a.useRef(null),k=a.useRef([]),N=a.useCallback(s=>t=>{k.current[s]=t},[]);a.useEffect(()=>{const s=new IntersectionObserver(t=>{if(u.current)return;const n=t.filter(o=>o.isIntersecting).sort((o,S)=>S.intersectionRatio-o.intersectionRatio);if(n.length>0){const o=n[0].target.getAttribute("id");o&&j(o)}},{rootMargin:"-45% 0px -45% 0px",threshold:.1});return k.current.forEach(t=>{t&&s.observe(t)}),()=>{s.disconnect()}},[r]);const w=a.useCallback(s=>{var t;j(s),u.current=!0,_.current&&clearTimeout(_.current),_.current=setTimeout(()=>{u.current=!1},600),(t=document.getElementById(s))==null||t.scrollIntoView({behavior:"smooth",block:"start"})},[]);return c.jsx("section",{id:v,className:`${f} ${l.layout}`,children:c.jsxs("article",{className:l.container,children:[c.jsxs("div",{className:l.heading,children:[c.jsxs("div",{children:[i.eyebrow&&(e==null?void 0:e({blocks:i.eyebrow,className:l.eyebrow})),e==null?void 0:e({blocks:i.title,className:l.title})]}),i.description&&(e==null?void 0:e({blocks:i.description}))]}),c.jsxs("div",{className:l.scroll,children:[c.jsx("nav",{className:l.sidebar,"aria-label":"Section navigation",children:c.jsx("ul",{children:r.map((s,t)=>c.jsx("li",{children:c.jsxs("button",{type:"button",className:`${l.link} ${b===s._key?l.active:""}`,"aria-current":b===s._key?"true":void 0,onClick:()=>w(s._key),children:[d&&c.jsx("div",{className:l.number,"aria-hidden":"true",children:t+1}),s.title&&h.extractText(s.title)]})},s._key))})}),c.jsx("div",{className:l.content,children:r.map((s,t)=>{const n=g.resolveImageUrl(s.image,m),o=g.resolveAltText(s.image,m);return c.jsxs("section",{ref:N(t),id:s._key,className:l.item,"aria-labelledby":`${s._key}-heading`,children:[c.jsxs("div",{className:l.text,children:[s.title&&(e==null?void 0:e({blocks:s.title,className:l.title})),s.description&&(e==null?void 0:e({blocks:s.description}))]}),s.image&&n&&c.jsx("div",{className:l.image,children:y?y({src:n,alt:o,width:600,height:400,priority:t===0,loading:t===0?"eager":"lazy"}):c.jsx("img",{src:n,alt:o,width:600,height:400,loading:t===0?"eager":"lazy"})})]},s._key)})})]})]})})}exports.StickyScrollBlock=G;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e, jsxs as a } from "react/jsx-runtime";
|
|
2
2
|
import { useState as S, useRef as m, useCallback as f, useEffect as $ } from "react";
|
|
3
3
|
import { resolveImageUrl as C, resolveAltText as A } from "../../utils/mediaUtils.mjs";
|
|
4
|
-
import { extractText as E } from "../../utils/
|
|
4
|
+
import { extractText as E } from "../../utils/blockRenderers.mjs";
|
|
5
5
|
import { useTheme as z } from "../../../core/context/ThemeContext.mjs";
|
|
6
6
|
import { useStyleClasses as B } from "../../hooks/useStyleClasses.mjs";
|
|
7
7
|
import '../../../assets/index13.css';const U = "_layout_pc5yj_1", M = "_container_pc5yj_7", O = "_heading_pc5yj_19", V = "_title_pc5yj_24", q = "_text_pc5yj_24", D = "_scroll_pc5yj_39", F = "_sidebar_pc5yj_44", G = "_number_pc5yj_69", H = "_link_pc5yj_86", J = "_active_pc5yj_100", L = "_content_pc5yj_112", P = "_item_pc5yj_119", Q = "_image_pc5yj_138", W = "_eyebrow_pc5yj_164", c = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/colors.css');require('../../../assets/index.css');require('../../../assets/index33.css');const e=require("react/jsx-runtime"),q=require("../../../core/components/Modal/index.cjs"),p=require("../../utils/resolveLinkUrl.cjs"),L=require("../../hooks/useMediaQuery.cjs"),N=require("../../../core/context/ThemeContext.cjs"),j=require("../../utils/mediaUtils.cjs"),M=require("../../utils/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/colors.css');require('../../../assets/index.css');require('../../../assets/index33.css');const e=require("react/jsx-runtime"),q=require("../../../core/components/Modal/index.cjs"),p=require("../../utils/resolveLinkUrl.cjs"),L=require("../../hooks/useMediaQuery.cjs"),N=require("../../../core/context/ThemeContext.cjs"),j=require("../../utils/mediaUtils.cjs"),M=require("../../utils/blockRenderers.cjs");;/* empty css */require("react");require("../../../core/components/Avatar/index.cjs");const $=require("../../../core/components/Badge/index.cjs");require("../../../core/components/Checkbox/index.cjs");require("../../../core/components/Tabs/index.cjs");;/* empty css */require("../../../core/tokens/theme.cjs");const C=require("../../../play-CQBnZgNa.cjs"),B=require("../../../arrow-right-DO6S4vfx.cjs"),I="_cardLink_awq27_1",U="_card_awq27_1",P="_container_awq27_18",S="_image_awq27_34",z="_content_awq27_57",F="_imageTop_awq27_64",O="_imageLeft_awq27_71",D="_modalTrigger_awq27_107",E="_callToAction_awq27_112",Q="_label_awq27_113",Y="_cardIcon_awq27_118",G="_eyebrow_awq27_126",H="_title_awq27_130",J="_icon_awq27_144",s={cardLink:I,card:U,container:P,image:S,content:z,imageTop:F,imageLeft:O,modalTrigger:D,callToAction:E,label:Q,cardIcon:Y,eyebrow:G,title:H,icon:J},K={"image-left":s.imageLeft,"image-top":s.imageTop};function W({value:a}){if(!a.includes("%"))return null;const r=125,t=(r-10)/2,i=2*Math.PI*t,o=i-parseFloat(a)/100*i;return e.jsxs("svg",{width:r,height:r,viewBox:`0 0 ${r} ${r}`,children:[e.jsx("circle",{cx:r/2,cy:r/2,r:t,fill:"none"}),e.jsx("circle",{cx:r/2,cy:r/2,r:t,fill:"none",strokeDasharray:i,strokeDashoffset:o,strokeLinecap:"round",transform:`rotate(-90 ${r/2} ${r/2})`}),e.jsx("text",{x:"50%",y:"52%",dominantBaseline:"middle",textAnchor:"middle",children:a})]})}function X({callToAction:a,resolvedUrl:r,children:t}){var i,o;switch(a==null?void 0:a.type){case"link":return e.jsx("a",{className:s.cardLink,"aria-label":a.ariaLabel||a.label,href:r,target:((i=a.linkOptions)==null?void 0:i.linkType)==="external"?"_blank":"_self",rel:((o=a.linkOptions)==null?void 0:o.linkType)==="external"?"noopener noreferrer":"",children:t});case"modal":return e.jsx(q.Modal,{className:s.modalTrigger,trigger:t,content:a.modalContent});case"video":return e.jsx(q.Modal,{className:s.modalTrigger,trigger:t,content:e.jsx("video",{src:a.videoUrl,controls:!0,autoPlay:!0})});case"download":return e.jsx("a",{className:s.cardLink,"aria-label":a.ariaLabel||a.label,href:r,download:!0,target:"_blank",rel:"noopener noreferrer",children:t});default:return e.jsx(e.Fragment,{children:t})}}function Z({style:a,variant:r,metricValue:t,eyebrow:i,title:o,description:_,image:l,callToAction:n,onHover:w,onLeave:f,gridArea:m,renderImage:u,renderRichText:c}){const{mode:g}=N.useTheme(),b=L.useMediaQuery("(max-width: 768px)"),h=p.resolveLinkURL(n),d=j.resolveImageUrl(l,g),x=j.resolveAltText(l,g),k=K[a??""]??"",v=l&&d?e.jsx("div",{className:s.image,children:u?u({src:d,alt:x,width:600,height:658,priority:!0}):e.jsx("img",{src:d,alt:x,width:600,height:658})}):null,y=e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:s.container,children:[r!=="image"&&e.jsxs("div",{className:s.content,children:[t&&e.jsx(W,{value:t}),i&&e.jsx($.Badge,{className:s.eyebrow,text:M.extractText(i),variant:"info"}),o&&(c==null?void 0:c({blocks:o,className:s.title})),_&&(c==null?void 0:c({blocks:_}))]}),v]}),(n==null?void 0:n.videoUrl)&&e.jsxs("div",{className:s.callToAction,children:[e.jsx("div",{className:s.label,children:n.label}),e.jsx("div",{className:s.cardIcon,children:e.jsx(C.Play,{size:45})})]}),(n==null?void 0:n.type)==="link"&&e.jsxs("div",{className:s.callToAction,children:[e.jsx("div",{className:s.label,children:n.label}),e.jsx("div",{className:s.cardIcon,children:e.jsx(B.ArrowRight,{size:45})})]})]});return e.jsx("div",{className:`${s.card} ${k} ${r?s[r]??"":""}`,onMouseEnter:w,onMouseLeave:f,style:m&&!b?{gridArea:m}:{},children:e.jsx(X,{callToAction:n,resolvedUrl:h,children:y})})}exports.BioCard=Z;
|
|
@@ -4,7 +4,7 @@ import { resolveLinkURL as x } from "../../utils/resolveLinkUrl.mjs";
|
|
|
4
4
|
import { useMediaQuery as M } from "../../hooks/useMediaQuery.mjs";
|
|
5
5
|
import { useTheme as I } from "../../../core/context/ThemeContext.mjs";
|
|
6
6
|
import { resolveImageUrl as $, resolveAltText as C } from "../../utils/mediaUtils.mjs";
|
|
7
|
-
import { extractText as B } from "../../utils/
|
|
7
|
+
import { extractText as B } from "../../utils/blockRenderers.mjs";
|
|
8
8
|
import '../../../assets/colors.css';import '../../../assets/index.css';import '../../../assets/index33.css';/* empty css */
|
|
9
9
|
import "react";
|
|
10
10
|
import "../../../core/components/Avatar/index.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("react/jsx-runtime"),C=require("./BlogArticleCard/index.cjs"),r=require("../utils/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("react/jsx-runtime"),C=require("./BlogArticleCard/index.cjs"),r=require("../utils/blockRenderers.cjs");function b({_key:c,title:i,description:l,image:o,eyebrow:a,style:n,renderImage:t}){const s=r.extractText(i??[]),u=r.extractText(l??[]),e=r.extractText(a??[]),x={_id:c,_type:"article",title:s||"Untitled",slug:{current:c},excerpt:u||void 0,timeToRead:3,featuredImage:o,categories:e?[{_id:"cat-1",title:e,slug:{current:e.toLowerCase()}}]:[]};return A.jsx(C.BlogArticleCard,{article:x,layout:n,renderImage:({src:d,alt:T,fill:g,sizes:_,priority:p})=>(t==null?void 0:t({src:d,alt:T,fill:g,sizes:_,priority:p}))??null})}exports.BlogArticleCardAdapter=b;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as g } from "react/jsx-runtime";
|
|
2
2
|
import { BlogArticleCard as A } from "./BlogArticleCard/index.mjs";
|
|
3
|
-
import { extractText as o } from "../utils/
|
|
3
|
+
import { extractText as o } from "../utils/blockRenderers.mjs";
|
|
4
4
|
function B({
|
|
5
5
|
_key: r,
|
|
6
6
|
title: i,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index29.css');const s=require("react/jsx-runtime"),z=require("../../../core/components/Badge/index.cjs"),N=require("../../utils/resolveLinkUrl.cjs"),q=require("../../hooks/useMediaQuery.cjs"),L=require("../../hooks/useStyleClasses.cjs"),f=require("../../../core/context/ThemeContext.cjs"),p=require("../../utils/mediaUtils.cjs"),C=require("../../utils/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index29.css');const s=require("react/jsx-runtime"),z=require("../../../core/components/Badge/index.cjs"),N=require("../../utils/resolveLinkUrl.cjs"),q=require("../../hooks/useMediaQuery.cjs"),L=require("../../hooks/useStyleClasses.cjs"),f=require("../../../core/context/ThemeContext.cjs"),p=require("../../utils/mediaUtils.cjs"),C=require("../../utils/blockRenderers.cjs"),$=require("../../../arrow-right-DO6S4vfx.cjs"),M="_card_1nhzg_1",U="_cardLink_1nhzg_10",S="_arrow_1nhzg_17",W="_inner_1nhzg_25",O="_content_1nhzg_42",P="_metric_1nhzg_50",B="_eyebrow_1nhzg_58",F="_title_1nhzg_62",Q="_description_1nhzg_69",E="_right_1nhzg_76",I="_deviceWrapper_1nhzg_86",R="_hidden_1nhzg_111",r={card:M,cardLink:U,arrow:S,inner:W,content:O,metric:P,eyebrow:B,title:F,description:Q,right:E,deviceWrapper:I,hidden:R};function D({callToAction:e,resolvedUrl:a,children:t}){var n,i;return(e==null?void 0:e.type)==="link"||(e==null?void 0:e.type)==="download"?s.jsx("a",{className:r.cardLink,"aria-label":e.ariaLabel||e.label,href:a,download:e.type==="download"||void 0,target:((n=e.linkOptions)==null?void 0:n.linkType)==="external"?"_blank":"_self",rel:((i=e.linkOptions)==null?void 0:i.linkType)==="external"?"noopener noreferrer":"",children:t}):s.jsx(s.Fragment,{children:t})}function G({variant:e,eyebrow:a,title:t,description:n,metricValue:i,image:c,callToAction:_,onHover:v,onLeave:y,gridArea:h,styleOptions:k,renderImage:l,renderRichText:o}){const{mode:u}=f.useTheme(),w=q.useMediaQuery("(max-width: 768px)"),j=L.useStyleClasses(k),g=N.resolveLinkURL(_),d=p.resolveImageUrl(c,u),x=p.resolveAltText(c,u),b=e?r[e]??"":"",m={width:"100%",height:"100%",objectFit:"contain"};return s.jsx("div",{className:`${r.card} ${b} ${j}`,onMouseEnter:v,onMouseLeave:y,style:h&&!w?{gridArea:h}:{},children:s.jsx(D,{callToAction:_,resolvedUrl:g,children:s.jsxs("div",{className:r.inner,children:[s.jsxs("div",{className:r.content,children:[a&&s.jsx(z.Badge,{className:r.eyebrow,text:C.extractText(a),variant:"info"}),i&&s.jsx("div",{className:r.metric,children:i}),t&&o&&o({blocks:t,className:r.title}),n&&o&&o({blocks:n,className:r.description})]}),s.jsxs("div",{className:r.right,children:[d&&s.jsx("div",{className:r.deviceWrapper,"aria-hidden":"true",children:l?l({src:d,alt:x,width:90,height:160,style:m}):s.jsx("img",{src:d,alt:x,width:90,height:160,style:m})}),s.jsx("div",{className:`${r.arrow} ${g?"":r.hidden}`,"aria-hidden":"true",children:s.jsx($.ArrowRight,{size:18})})]})]})})})}exports.ProductCard=G;
|
|
@@ -5,7 +5,7 @@ import { useMediaQuery as C } from "../../hooks/useMediaQuery.mjs";
|
|
|
5
5
|
import { useStyleClasses as $ } from "../../hooks/useStyleClasses.mjs";
|
|
6
6
|
import { useTheme as M } from "../../../core/context/ThemeContext.mjs";
|
|
7
7
|
import { resolveImageUrl as U, resolveAltText as W } from "../../utils/mediaUtils.mjs";
|
|
8
|
-
import { extractText as j } from "../../utils/
|
|
8
|
+
import { extractText as j } from "../../utils/blockRenderers.mjs";
|
|
9
9
|
import { A as F } from "../../../arrow-right-QEwnX3Sk.js";
|
|
10
10
|
import '../../../assets/index29.css';const O = "_card_1nhzg_1", S = "_cardLink_1nhzg_10", B = "_arrow_1nhzg_17", E = "_inner_1nhzg_25", I = "_content_1nhzg_42", P = "_metric_1nhzg_50", Q = "_eyebrow_1nhzg_58", q = "_title_1nhzg_62", D = "_description_1nhzg_69", G = "_right_1nhzg_76", H = "_deviceWrapper_1nhzg_86", J = "_hidden_1nhzg_111", r = {
|
|
11
11
|
card: O,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/colors.css');require('../../../assets/index.css');require('../../../assets/index32.css');const e=require("react/jsx-runtime");;/* empty css */require("react");require("../../../core/components/Avatar/index.cjs");const j=require("../../../core/components/Badge/index.cjs");require("../../../core/components/Checkbox/index.cjs");const g=require("../../../core/components/Modal/index.cjs");require("../../../core/components/Tabs/index.cjs");;/* empty css */require("../../../core/tokens/theme.cjs");const k=require("../../utils/resolveLinkUrl.cjs"),y=require("../../../core/context/ThemeContext.cjs"),u=require("../../utils/mediaUtils.cjs"),h=require("../../utils/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/colors.css');require('../../../assets/index.css');require('../../../assets/index32.css');const e=require("react/jsx-runtime");;/* empty css */require("react");require("../../../core/components/Avatar/index.cjs");const j=require("../../../core/components/Badge/index.cjs");require("../../../core/components/Checkbox/index.cjs");const g=require("../../../core/components/Modal/index.cjs");require("../../../core/components/Tabs/index.cjs");;/* empty css */require("../../../core/tokens/theme.cjs");const k=require("../../utils/resolveLinkUrl.cjs"),y=require("../../../core/context/ThemeContext.cjs"),u=require("../../utils/mediaUtils.cjs"),h=require("../../utils/blockRenderers.cjs"),q=require("../../../play-CQBnZgNa.cjs"),N=require("../../../arrow-right-DO6S4vfx.cjs"),p="_cardLink_gad19_1",f="_card_gad19_1",w="_imageBackgroundContainer_gad19_23",L="_imagePlaceholder_gad19_34",C="_overlay_gad19_46",P="_content_gad19_55",U="_eyebrow_gad19_62",B="_heading_gad19_68",I="_title_gad19_82",M="_text_gad19_96",S="_callToAction_gad19_105",z="_cardIcon_gad19_114",F="_label_gad19_131",a={cardLink:p,card:f,imageBackgroundContainer:w,imagePlaceholder:L,overlay:C,content:P,eyebrow:U,heading:B,title:I,text:M,callToAction:S,cardIcon:z,label:F};function O({callToAction:r,resolvedUrl:i,children:t}){var o,s;switch(r==null?void 0:r.type){case"link":return e.jsx("a",{className:a.cardLink,"aria-label":r.ariaLabel||r.label,href:i,target:((o=r.linkOptions)==null?void 0:o.linkType)==="external"?"_blank":"_self",rel:((s=r.linkOptions)==null?void 0:s.linkType)==="external"?"noopener noreferrer":"",children:t});case"modal":return e.jsx(g.Modal,{trigger:t,content:r.modalContent});case"video":return e.jsx(g.Modal,{trigger:t,content:e.jsx("video",{src:r.videoUrl,controls:!0,autoPlay:!0})});case"download":return e.jsx("a",{className:a.cardLink,"aria-label":r.ariaLabel||r.label,href:i,download:!0,target:"_blank",rel:"noopener noreferrer",children:t});default:return e.jsx(e.Fragment,{children:t})}}function $({eyebrow:r,title:i,description:t,image:o,callToAction:s,onHover:m,onLeave:x,renderImage:d,renderRichText:n}){const{mode:c}=y.useTheme(),v=k.resolveLinkURL(s),l=u.resolveImageUrl(o,c),_=u.resolveAltText(o,c),b=e.jsxs("div",{className:a.imageBackgroundContainer,children:[(s==null?void 0:s.videoUrl)&&e.jsxs("div",{className:a.callToAction,children:[e.jsx("div",{className:a.label,children:s.label}),e.jsx("div",{className:a.cardIcon,children:e.jsx(q.Play,{size:45})})]}),(s==null?void 0:s.type)==="link"&&e.jsxs("div",{className:a.callToAction,children:[e.jsx("div",{className:a.label,children:s.label}),e.jsx("div",{className:a.cardIcon,children:e.jsx(N.ArrowRight,{size:45})})]}),l?d?d({src:l,alt:_,fill:!0,priority:!1,sizes:"(min-width: 500px) 500px, 100vw",style:{objectFit:"cover"}}):e.jsx("img",{src:l,alt:_,style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover"}}):e.jsx("div",{className:a.imagePlaceholder}),e.jsx("div",{className:a.overlay,children:e.jsxs("div",{className:a.content,children:[r&&e.jsx(j.Badge,{className:a.eyebrow,text:h.extractText(r),variant:"info"}),e.jsxs("div",{className:a.heading,children:[i&&(n==null?void 0:n({blocks:i,className:a.title})),t&&(n==null?void 0:n({blocks:t,className:a.text}))]})]})})]});return e.jsx("article",{className:a.card,onMouseEnter:m,onMouseLeave:x,children:e.jsx(O,{callToAction:s,resolvedUrl:v,children:b})})}exports.SegmentCard=$;
|
|
@@ -11,7 +11,7 @@ import "../../../core/tokens/theme.mjs";
|
|
|
11
11
|
import { resolveLinkURL as y } from "../../utils/resolveLinkUrl.mjs";
|
|
12
12
|
import { useTheme as N } from "../../../core/context/ThemeContext.mjs";
|
|
13
13
|
import { resolveImageUrl as h, resolveAltText as w } from "../../utils/mediaUtils.mjs";
|
|
14
|
-
import { extractText as L } from "../../utils/
|
|
14
|
+
import { extractText as L } from "../../utils/blockRenderers.mjs";
|
|
15
15
|
import { P as C } from "../../../play-DYgKiSaf.js";
|
|
16
16
|
import { A as x } from "../../../arrow-right-QEwnX3Sk.js";
|
|
17
17
|
const P = "_cardLink_gad19_1", I = "_card_gad19_1", B = "_imageBackgroundContainer_gad19_23", U = "_imagePlaceholder_gad19_34", j = "_overlay_gad19_46", z = "_content_gad19_55", F = "_eyebrow_gad19_62", M = "_heading_gad19_68", O = "_title_gad19_82", E = "_text_gad19_96", S = "_callToAction_gad19_105", q = "_cardIcon_gad19_114", D = "_label_gad19_131", a = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index28.css');const s=require("react/jsx-runtime"),y=require("../../../core/components/Badge/index.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index28.css');const s=require("react/jsx-runtime"),y=require("../../../core/components/Badge/index.cjs"),k=require("../../hooks/useMediaQuery.cjs"),m=require("../../hooks/useStyleClasses.cjs"),v=require("../../utils/blockRenderers.cjs"),b="_card_x9k7p_1",h="_service_x9k7p_10",N="_iconWrapper_x9k7p_16",j="_iconGlyph_x9k7p_27",$="_content_x9k7p_37",g="_eyebrow_x9k7p_60",q="_title_x9k7p_64",M="_description_x9k7p_71",S="_image_x9k7p_79",e={card:b,service:h,iconWrapper:N,iconGlyph:j,content:$,eyebrow:g,title:q,description:M,image:S};function C({icon:c}){return s.jsx("i",{className:`${c} ${e.iconGlyph}`,"aria-hidden":"true"})}function f({variant:c,eyebrow:n,title:o,description:r,icon:i,onHover:_,onLeave:l,gridArea:a,styleOptions:p,renderRichText:t}){const u=k.useMediaQuery("(max-width: 768px)"),d=m.useStyleClasses(p),x=c?e[c]??"":"";return s.jsxs("div",{className:`${e.card} ${x} ${d}`,onMouseEnter:_,onMouseLeave:l,style:a&&!u?{gridArea:a}:{},children:[i&&s.jsx("div",{className:e.iconWrapper,children:s.jsx(C,{icon:i})}),s.jsxs("div",{className:e.content,children:[n&&s.jsx(y.Badge,{className:e.eyebrow,text:v.extractText(n),variant:"info"}),o&&t&&t({blocks:o,className:e.title}),r&&t&&t({blocks:r,className:e.description})]})]})}exports.ServiceCard=f;
|
|
@@ -2,7 +2,7 @@ import { jsxs as p, jsx as c } from "react/jsx-runtime";
|
|
|
2
2
|
import { Badge as y } from "../../../core/components/Badge/index.mjs";
|
|
3
3
|
import { useMediaQuery as u } from "../../hooks/useMediaQuery.mjs";
|
|
4
4
|
import { useStyleClasses as v } from "../../hooks/useStyleClasses.mjs";
|
|
5
|
-
import { extractText as f } from "../../utils/
|
|
5
|
+
import { extractText as f } from "../../utils/blockRenderers.mjs";
|
|
6
6
|
import '../../../assets/index28.css';const N = "_card_x9k7p_1", b = "_service_x9k7p_10", h = "_iconWrapper_x9k7p_16", $ = "_iconGlyph_x9k7p_27", w = "_content_x9k7p_37", G = "_eyebrow_x9k7p_60", M = "_title_x9k7p_64", W = "_description_x9k7p_71", g = "_image_x9k7p_79", e = {
|
|
7
7
|
card: N,
|
|
8
8
|
service: b,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),u=require("../ui/PortableTextRenderer/index.cjs"),l=require("../ui/CallToAction/index.cjs");function o(r){return r.flatMap(e=>e.children??[]).map(e=>e.text??"").join("")}function x({blocks:r,className:e,textOverride:n,animateText:i}){return r!=null&&r.length?t.jsx(u.RichText,{blocks:r,className:e,textOverride:n,animateText:i}):null}function c({alignment:r,items:e,className:n}){return e!=null&&e.length?t.jsx(l.CallToAction,{alignment:r,items:e,className:n}):null}exports.extractText=o;exports.renderCallToAction=c;exports.renderRichText=x;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { RichText as u } from "../ui/PortableTextRenderer/index.mjs";
|
|
3
|
+
import { CallToAction as f } from "../ui/CallToAction/index.mjs";
|
|
4
|
+
function a(n) {
|
|
5
|
+
return n.flatMap((r) => r.children ?? []).map((r) => r.text ?? "").join("");
|
|
6
|
+
}
|
|
7
|
+
function p({
|
|
8
|
+
blocks: n,
|
|
9
|
+
className: r,
|
|
10
|
+
textOverride: t,
|
|
11
|
+
animateText: o
|
|
12
|
+
}) {
|
|
13
|
+
return n != null && n.length ? /* @__PURE__ */ e(
|
|
14
|
+
u,
|
|
15
|
+
{
|
|
16
|
+
blocks: n,
|
|
17
|
+
className: r,
|
|
18
|
+
textOverride: t,
|
|
19
|
+
animateText: o
|
|
20
|
+
}
|
|
21
|
+
) : null;
|
|
22
|
+
}
|
|
23
|
+
function h({
|
|
24
|
+
alignment: n,
|
|
25
|
+
items: r,
|
|
26
|
+
className: t
|
|
27
|
+
}) {
|
|
28
|
+
return r != null && r.length ? /* @__PURE__ */ e(f, { alignment: n, items: r, className: t }) : null;
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
a as extractText,
|
|
32
|
+
h as renderCallToAction,
|
|
33
|
+
p as renderRichText
|
|
34
|
+
};
|
package/dist/next.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./next/blocks/AccordionBlock/index.cjs"),l=require("./next/blocks/AdditionalCategoriesBlock/index.cjs"),n=require("./next/blocks/CardGridBlock/index.cjs"),i=require("./next/blocks/CarouselBlock/index.cjs"),s=require("./next/blocks/ContentBlock/index.cjs"),k=require("./next/blocks/DocumentListBlock/index.cjs"),d=require("./next/blocks/FeaturedDocumentsBlock/index.cjs"),_=require("./next/blocks/HeroBlock/index.cjs"),o=require("./next/blocks/HeroBlock/HeroContext.cjs"),x=require("./next/ui/LocaleLink/index.cjs"),u=require("./next/blocks/QuoteBlock/index.cjs"),B=require("./next/blocks/RichTextBlock/index.cjs"),a=require("./next/ui/PortableTextRenderer/index.cjs"),b=require("./next/blocks/StickyScrollBlock/index.cjs"),C=require("./next/blocks/TabsBlock/index.cjs"),T=require("./next/blocks/WasHelpfulBlock/index.cjs"),q=require("./next/cards/SpotlightCard/index.cjs"),c=require("./next/context/LocaleBridge.cjs"),r=require("./core/context/ThemeContext.cjs"),e=require("./next/utils/blockRenderers.cjs");exports.AccordionBlock=t.AccordionBlock;exports.AdditionalCategoriesBlock=l.AdditionalCategoriesBlock;exports.CardGridBlock=n.CardGridBlock;exports.CarouselBlock=i.CarouselBlock;exports.ContentBlock=s.ContentBlock;exports.DocumentListBlock=k.DocumentListBlock;exports.FeaturedDocumentsBlock=d.FeaturedDocumentsBlock;exports.HeroBlock=_.HeroBlock;exports.HeroProvider=o.HeroProvider;exports.useHeroContext=o.useHeroContext;exports.LocaleLink=x.LocaleLink;exports.QuoteBlock=u.QuoteBlock;exports.RichTextBlock=B.RichTextBlock;exports.RichText=a.RichText;exports.StickyScrollBlock=b.StickyScrollBlock;exports.TabsBlock=C.TabsBlock;exports.WasHelpfulBlock=T.WasHelpfulBlock;exports.SpotlightCard=q.SpotlightCard;exports.LocaleBridgeProvider=c.LocaleBridgeProvider;exports.useLocaleBridge=c.useLocaleBridge;exports.AppThemeProvider=r.AppThemeProvider;exports.useTheme=r.useTheme;exports.extractText=e.extractText;exports.renderCallToAction=e.renderCallToAction;exports.renderRichText=e.renderRichText;
|
package/dist/next.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ import { HeroBlockProps } from './next/blocks/HeroBlock/HeroBlock.types';
|
|
|
18
18
|
import { HeroBlockProps as HeroBlockProps_2 } from './HeroBlock.types';
|
|
19
19
|
import { JSX } from 'react/jsx-runtime';
|
|
20
20
|
import { Link } from '../../../sanity/types/link';
|
|
21
|
+
import { Link as Link_2 } from '../../sanity/types/link';
|
|
21
22
|
import { LinkProps } from 'next/link';
|
|
22
23
|
import { NavigationData } from './sanity/types/navigation';
|
|
23
24
|
import { PageSection } from './sanity/types/pageSection';
|
|
@@ -124,12 +125,28 @@ export declare function QuoteBlock({ quote, author, styleOptions, id, renderRich
|
|
|
124
125
|
|
|
125
126
|
export { QuoteBlockProps }
|
|
126
127
|
|
|
128
|
+
/**
|
|
129
|
+
* Drop-in `renderCallToAction` prop for all QuirkUI blocks.
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* // Pass directly as a prop value — no wrapper needed
|
|
133
|
+
* <HeroBlock {...section} renderCallToAction={renderCallToAction} />
|
|
134
|
+
* <ContentBlock {...section} renderCallToAction={renderCallToAction} />
|
|
135
|
+
*/
|
|
136
|
+
export declare function renderCallToAction({ alignment, items, className, }: RenderCallToActionProps_2): default_2.ReactElement | null;
|
|
137
|
+
|
|
127
138
|
declare type RenderCallToActionProps = {
|
|
128
139
|
alignment: "left" | "center" | "right";
|
|
129
140
|
items: Link[];
|
|
130
141
|
className?: string;
|
|
131
142
|
};
|
|
132
143
|
|
|
144
|
+
declare interface RenderCallToActionProps_2 {
|
|
145
|
+
alignment: "left" | "center" | "right";
|
|
146
|
+
items: Link_2[];
|
|
147
|
+
className?: string;
|
|
148
|
+
}
|
|
149
|
+
|
|
133
150
|
declare type RenderImageProps = {
|
|
134
151
|
src: string;
|
|
135
152
|
alt: string;
|
package/dist/next.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { AccordionBlock as e } from "./next/blocks/AccordionBlock/index.mjs";
|
|
2
2
|
import { AdditionalCategoriesBlock as c } from "./next/blocks/AdditionalCategoriesBlock/index.mjs";
|
|
3
|
-
import { CardGridBlock as
|
|
4
|
-
import { CarouselBlock as
|
|
3
|
+
import { CardGridBlock as l } from "./next/blocks/CardGridBlock/index.mjs";
|
|
4
|
+
import { CarouselBlock as p } from "./next/blocks/CarouselBlock/index.mjs";
|
|
5
5
|
import { ContentBlock as i } from "./next/blocks/ContentBlock/index.mjs";
|
|
6
6
|
import { DocumentListBlock as B } from "./next/blocks/DocumentListBlock/index.mjs";
|
|
7
7
|
import { FeaturedDocumentsBlock as a } from "./next/blocks/FeaturedDocumentsBlock/index.mjs";
|
|
8
8
|
import { HeroBlock as s } from "./next/blocks/HeroBlock/index.mjs";
|
|
9
|
-
import { HeroProvider as T, useHeroContext as
|
|
9
|
+
import { HeroProvider as T, useHeroContext as C } from "./next/blocks/HeroBlock/HeroContext.mjs";
|
|
10
10
|
import { LocaleLink as L } from "./next/ui/LocaleLink/index.mjs";
|
|
11
|
-
import { QuoteBlock as
|
|
12
|
-
import { RichTextBlock as
|
|
11
|
+
import { QuoteBlock as A } from "./next/blocks/QuoteBlock/index.mjs";
|
|
12
|
+
import { RichTextBlock as v } from "./next/blocks/RichTextBlock/index.mjs";
|
|
13
13
|
import { RichText as R } from "./next/ui/PortableTextRenderer/index.mjs";
|
|
14
14
|
import { StickyScrollBlock as D } from "./next/blocks/StickyScrollBlock/index.mjs";
|
|
15
15
|
import { TabsBlock as y } from "./next/blocks/TabsBlock/index.mjs";
|
|
@@ -17,13 +17,13 @@ import { WasHelpfulBlock as G } from "./next/blocks/WasHelpfulBlock/index.mjs";
|
|
|
17
17
|
import { SpotlightCard as W } from "./next/cards/SpotlightCard/index.mjs";
|
|
18
18
|
import { LocaleBridgeProvider as q, useLocaleBridge as w } from "./next/context/LocaleBridge.mjs";
|
|
19
19
|
import { AppThemeProvider as E, useTheme as I } from "./core/context/ThemeContext.mjs";
|
|
20
|
-
import { extractText as K,
|
|
20
|
+
import { extractText as K, renderCallToAction as M, renderRichText as N } from "./next/utils/blockRenderers.mjs";
|
|
21
21
|
export {
|
|
22
22
|
e as AccordionBlock,
|
|
23
23
|
c as AdditionalCategoriesBlock,
|
|
24
24
|
E as AppThemeProvider,
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
l as CardGridBlock,
|
|
26
|
+
p as CarouselBlock,
|
|
27
27
|
i as ContentBlock,
|
|
28
28
|
B as DocumentListBlock,
|
|
29
29
|
a as FeaturedDocumentsBlock,
|
|
@@ -31,16 +31,17 @@ export {
|
|
|
31
31
|
T as HeroProvider,
|
|
32
32
|
q as LocaleBridgeProvider,
|
|
33
33
|
L as LocaleLink,
|
|
34
|
-
|
|
34
|
+
A as QuoteBlock,
|
|
35
35
|
R as RichText,
|
|
36
|
-
|
|
36
|
+
v as RichTextBlock,
|
|
37
37
|
W as SpotlightCard,
|
|
38
38
|
D as StickyScrollBlock,
|
|
39
39
|
y as TabsBlock,
|
|
40
40
|
G as WasHelpfulBlock,
|
|
41
41
|
K as extractText,
|
|
42
|
-
M as
|
|
43
|
-
|
|
42
|
+
M as renderCallToAction,
|
|
43
|
+
N as renderRichText,
|
|
44
|
+
C as useHeroContext,
|
|
44
45
|
w as useLocaleBridge,
|
|
45
46
|
I as useTheme
|
|
46
47
|
};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),u=require("../ui/PortableTextRenderer/index.cjs");function x(e){return e.flatMap(t=>t.children??[]).map(t=>t.text??"").join("")}function a({blocks:e,className:t,textOverride:r,animateText:n}){return e!=null&&e.length?i.jsx(u.RichText,{blocks:e,className:t,textOverride:r,animateText:n}):null}exports.extractText=x;exports.renderRichText=a;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { RichText as x } from "../ui/PortableTextRenderer/index.mjs";
|
|
3
|
-
function m(t) {
|
|
4
|
-
return t.flatMap((r) => r.children ?? []).map((r) => r.text ?? "").join("");
|
|
5
|
-
}
|
|
6
|
-
function p({
|
|
7
|
-
blocks: t,
|
|
8
|
-
className: r,
|
|
9
|
-
textOverride: e,
|
|
10
|
-
animateText: n
|
|
11
|
-
}) {
|
|
12
|
-
return t != null && t.length ? /* @__PURE__ */ i(
|
|
13
|
-
x,
|
|
14
|
-
{
|
|
15
|
-
blocks: t,
|
|
16
|
-
className: r,
|
|
17
|
-
textOverride: e,
|
|
18
|
-
animateText: n
|
|
19
|
-
}
|
|
20
|
-
) : null;
|
|
21
|
-
}
|
|
22
|
-
export {
|
|
23
|
-
m as extractText,
|
|
24
|
-
p as renderRichText
|
|
25
|
-
};
|