quirk-ui 0.0.521 → 0.0.523
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/core/components/NavBar/index.cjs +4 -4
- package/dist/core/components/NavBar/index.mjs +95 -95
- package/dist/core.d.ts +5 -0
- package/dist/main.d.ts +63 -22
- package/dist/next/blocks/ContentBlock/index.cjs +1 -1
- package/dist/next/blocks/ContentBlock/index.mjs +57 -49
- package/dist/next/blocks/StickyScrollBlock/index.cjs +1 -1
- package/dist/next/blocks/StickyScrollBlock/index.mjs +36 -36
- package/dist/next/blocks/TabsBlock/index.cjs +1 -1
- package/dist/next/blocks/TabsBlock/index.mjs +63 -60
- package/dist/next/cards/BioCard/index.cjs +1 -1
- package/dist/next/cards/BioCard/index.mjs +50 -49
- package/dist/next/cards/BlogArticleCard/index.cjs +1 -1
- package/dist/next/cards/BlogArticleCard/index.mjs +6 -6
- package/dist/next/cards/GridCard/index.cjs +1 -1
- package/dist/next/cards/GridCard/index.mjs +38 -38
- package/dist/next/cards/ProductCard/index.cjs +1 -1
- package/dist/next/cards/ProductCard/index.mjs +9 -9
- package/dist/next/cards/ReviewCard/index.cjs +1 -1
- package/dist/next/cards/ReviewCard/index.mjs +31 -31
- package/dist/next/cards/SegmentCard/index.cjs +1 -1
- package/dist/next/cards/SegmentCard/index.mjs +42 -41
- package/dist/next/cards/SpotlightCard/index.cjs +1 -1
- package/dist/next/cards/SpotlightCard/index.mjs +24 -24
- package/dist/next/cards/TestimonialCard/index.cjs +1 -1
- package/dist/next/cards/TestimonialCard/index.mjs +35 -35
- package/dist/next/ui/PortableTextRenderer/index.cjs +1 -1
- package/dist/next/ui/PortableTextRenderer/index.mjs +17 -17
- package/dist/next.d.ts +58 -22
- package/package.json +1 -1
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { C as
|
|
4
|
-
import { RichText as
|
|
5
|
-
import '../../../assets/index2.css';const
|
|
6
|
-
spotlight:
|
|
7
|
-
imageWrapper:
|
|
8
|
-
content:
|
|
9
|
-
title:
|
|
10
|
-
description:
|
|
11
|
-
actions:
|
|
1
|
+
import { jsxs as f, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import O from "next/image";
|
|
3
|
+
import { C as b } from "../../../index-C-E0ib2G.js";
|
|
4
|
+
import { RichText as x } from "../../ui/PortableTextRenderer/index.mjs";
|
|
5
|
+
import '../../../assets/index2.css';const u = "_spotlight_tk8y9_1", N = "_imageWrapper_tk8y9_7", U = "_content_tk8y9_29", C = "_title_tk8y9_36", W = "_description_tk8y9_44", g = "_actions_tk8y9_48", i = {
|
|
6
|
+
spotlight: u,
|
|
7
|
+
imageWrapper: N,
|
|
8
|
+
content: U,
|
|
9
|
+
title: C,
|
|
10
|
+
description: W,
|
|
11
|
+
actions: g
|
|
12
12
|
};
|
|
13
|
-
function
|
|
14
|
-
var t, c, r, o, s, m, d, p, k, _, T, A;
|
|
15
|
-
const
|
|
13
|
+
function L({ spotlight: n }) {
|
|
14
|
+
var t, c, r, o, s, m, d, p, k, _, T, A, y;
|
|
15
|
+
const v = (t = n.image) == null ? void 0 : t.asset.altText, l = ((c = n.callToAction.linkOptions) == null ? void 0 : c.linkType) === "external";
|
|
16
16
|
let a = "#";
|
|
17
|
-
return ((r = n.callToAction.linkOptions) == null ? void 0 : r.linkType) === "external" && ((o = n.callToAction.linkOptions) != null && o.externalUrl) ? a = (s = n.callToAction.linkOptions) == null ? void 0 : s.externalUrl : ((m = n.callToAction.linkOptions) == null ? void 0 : m.linkType) === "internal" && ((p = (d = n.callToAction.linkOptions) == null ? void 0 : d.internalUrl) != null && p.slug.current) && (a = `/${(_ = (k = n.callToAction.linkOptions) == null ? void 0 : k.internalUrl) == null ? void 0 : _.slug.current}`), /* @__PURE__ */
|
|
17
|
+
return ((r = n.callToAction.linkOptions) == null ? void 0 : r.linkType) === "external" && ((o = n.callToAction.linkOptions) != null && o.externalUrl) ? a = (s = n.callToAction.linkOptions) == null ? void 0 : s.externalUrl : ((m = n.callToAction.linkOptions) == null ? void 0 : m.linkType) === "internal" && ((p = (d = n.callToAction.linkOptions) == null ? void 0 : d.internalUrl) != null && p.slug.current) && (a = `/${(_ = (k = n.callToAction.linkOptions) == null ? void 0 : k.internalUrl) == null ? void 0 : _.slug.current}`), /* @__PURE__ */ f("div", { className: i.spotlight, children: [
|
|
18
18
|
n.image && /* @__PURE__ */ e("div", { className: i.imageWrapper, children: /* @__PURE__ */ e(
|
|
19
|
-
|
|
19
|
+
O,
|
|
20
20
|
{
|
|
21
|
-
src: ((T = n.image) == null ? void 0 : T.
|
|
22
|
-
alt:
|
|
21
|
+
src: ((A = (T = n.image) == null ? void 0 : T.imageUrls) == null ? void 0 : A.medium) ?? "",
|
|
22
|
+
alt: v || n.image.description || "Content image",
|
|
23
23
|
width: 600,
|
|
24
24
|
height: 400,
|
|
25
25
|
priority: !1
|
|
26
26
|
}
|
|
27
27
|
) }),
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
28
|
+
/* @__PURE__ */ f("div", { className: i.content, children: [
|
|
29
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(x, { className: i.title, blocks: n.title }) }),
|
|
30
30
|
n.description && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
31
|
-
|
|
31
|
+
x,
|
|
32
32
|
{
|
|
33
33
|
className: i.description,
|
|
34
34
|
blocks: n.description
|
|
35
35
|
}
|
|
36
36
|
) })
|
|
37
37
|
] }),
|
|
38
|
-
((
|
|
39
|
-
|
|
38
|
+
((y = n.callToAction) == null ? void 0 : y.linkOptions) && /* @__PURE__ */ e("div", { className: i.actions, children: /* @__PURE__ */ e(
|
|
39
|
+
b,
|
|
40
40
|
{
|
|
41
41
|
as: "a",
|
|
42
42
|
variant: n.callToAction.variant ?? "primary",
|
|
@@ -50,5 +50,5 @@ function I({ spotlight: n }) {
|
|
|
50
50
|
] });
|
|
51
51
|
}
|
|
52
52
|
export {
|
|
53
|
-
|
|
53
|
+
L as SpotlightCard
|
|
54
54
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index21.css');const e=require("react/jsx-runtime"),h=require("react"),a=require("../../ui/PortableTextRenderer/index.cjs"),u=require("next/image"),g=require("../../../core/components/Avatar/index.cjs"),v=require("../../../core/components/Modal/index.cjs"),y=require("../../utils/resolveLinkUrl.cjs"),k=require("../../../play-CQBnZgNa.cjs"),B="_card_rxzrj_1",U="_imageBackgroundContainer_rxzrj_15",q="_modalTrigger_rxzrj_20",L="_callToAction_rxzrj_24",I="_cardIcon_rxzrj_33",$="_label_rxzrj_49",F="_video_rxzrj_58",P="_image_rxzrj_15",M="_fullBleed_rxzrj_76",O="_content_rxzrj_80",S="_overlay_rxzrj_86",E="_description_rxzrj_104",w="_title_rxzrj_137",D="_imageLeft_rxzrj_213",G="_container_rxzrj_224",H="_imageRight_rxzrj_273",J="_imageBottom_rxzrj_327",K="_personContainer_rxzrj_342",Q="_imageTop_rxzrj_350",s={card:B,imageBackgroundContainer:U,modalTrigger:q,callToAction:L,cardIcon:I,label:$,video:F,image:P,fullBleed:M,content:O,overlay:S,description:E,title:w,default:"_default_rxzrj_145",imageLeft:D,container:G,imageRight:H,imageBottom:J,personContainer:K,imageTop:Q};function V({eyebrow:n,title:i,description:x,person:d,image:t,callToAction:r,style:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index21.css');const e=require("react/jsx-runtime"),h=require("react"),a=require("../../ui/PortableTextRenderer/index.cjs"),u=require("next/image"),g=require("../../../core/components/Avatar/index.cjs"),v=require("../../../core/components/Modal/index.cjs"),y=require("../../utils/resolveLinkUrl.cjs"),k=require("../../../play-CQBnZgNa.cjs"),B="_card_rxzrj_1",U="_imageBackgroundContainer_rxzrj_15",q="_modalTrigger_rxzrj_20",L="_callToAction_rxzrj_24",I="_cardIcon_rxzrj_33",$="_label_rxzrj_49",F="_video_rxzrj_58",P="_image_rxzrj_15",M="_fullBleed_rxzrj_76",O="_content_rxzrj_80",S="_overlay_rxzrj_86",E="_description_rxzrj_104",w="_title_rxzrj_137",D="_imageLeft_rxzrj_213",G="_container_rxzrj_224",H="_imageRight_rxzrj_273",J="_imageBottom_rxzrj_327",K="_personContainer_rxzrj_342",Q="_imageTop_rxzrj_350",s={card:B,imageBackgroundContainer:U,modalTrigger:q,callToAction:L,cardIcon:I,label:$,video:F,image:P,fullBleed:M,content:O,overlay:S,description:E,title:w,default:"_default_rxzrj_145",imageLeft:D,container:G,imageRight:H,imageBottom:J,personContainer:K,imageTop:Q};function V({eyebrow:n,title:i,description:x,person:d,image:t,callToAction:r,style:_,variant:b}){const[j,f]=h.useState(void 0);h.useEffect(()=>{async function c(){if((r==null?void 0:r.type)==="link"||(r==null?void 0:r.type)==="download"){const l=await y.resolveLinkURL(r);f(l)}}c()},[r]);const R={"full-bleed":s.fullBleed,"image-left":s.imageLeft,"image-right":s.imageRight,"image-top":s.imageTop,"image-bottom":s.imageBottom}[_||"text"],N=e.jsx("div",{className:s.content,children:(r==null?void 0:r.type)==="video"?e.jsxs(e.Fragment,{children:[n&&e.jsx(a.RichText,{blocks:n}),i&&e.jsx(a.RichText,{className:s.title,blocks:i}),x&&e.jsx(a.RichText,{className:s.description,blocks:x}),d&&e.jsx(a.RichText,{blocks:d})]}):e.jsxs(e.Fragment,{children:[n&&e.jsx(a.RichText,{blocks:n}),i&&e.jsx(a.RichText,{className:s.title,blocks:i}),x&&e.jsx(a.RichText,{className:s.description,blocks:x}),d&&e.jsx(a.RichText,{blocks:d})]})}),z=e.jsx(e.Fragment,{children:t&&t.imageUrls?e.jsxs("div",{className:s.image,children:[(r==null?void 0:r.videoUrl)&&e.jsx("div",{className:s.callToAction,children:e.jsx("div",{className:s.cardIcon,children:e.jsx(k.Play,{size:45})})}),e.jsx(u,{src:t.imageUrls.medium,alt:(t==null?void 0:t.asset.altText)||(t==null?void 0:t.asset.description)||"Card image",width:600,height:658,priority:!0,draggable:!1})]}):null}),m=()=>{var c,l,o;switch(_){case"full-bleed":return e.jsxs("div",{className:s.imageBackgroundContainer,children:[(r==null?void 0:r.type)==="video"&&e.jsx("div",{className:s.cardIcon,children:e.jsx(k.Play,{size:45})}),e.jsx(u,{src:((c=t==null?void 0:t.imageUrls)==null?void 0:c.medium)??"",alt:(t==null?void 0:t.asset.altText)||(t==null?void 0:t.asset.description)||"Card image",fill:!0,priority:!1,style:{objectFit:"cover"},draggable:!1,sizes:"(min-width: 500px) 500px, 100vw"}),e.jsx("div",{className:s.overlay,children:N})]});case"image-right":case"image-left":return e.jsxs("div",{className:s.container,children:[z,e.jsxs("div",{className:s.content,children:[n&&e.jsx(a.RichText,{blocks:n}),i&&e.jsx(a.RichText,{className:s.title,blocks:i}),x&&e.jsx(a.RichText,{className:s.description,blocks:x}),d&&e.jsx(a.RichText,{blocks:d})]})]});case"image-bottom":return e.jsx("div",{className:s.container,children:e.jsxs("div",{className:s.content,children:[n&&e.jsx(a.RichText,{blocks:n}),i&&e.jsx(a.RichText,{className:s.title,blocks:i}),x&&e.jsx(a.RichText,{className:s.description,blocks:x}),e.jsxs("div",{className:s.personContainer,children:[e.jsx(g.Avatar,{src:((l=t==null?void 0:t.imageUrls)==null?void 0:l.small)??"",size:"lg"}),d&&e.jsx(a.RichText,{blocks:d})]})]})});case"image-top":return e.jsxs("div",{className:s.container,children:[e.jsx(g.Avatar,{src:((o=t==null?void 0:t.imageUrls)==null?void 0:o.small)??"",size:"xl"}),e.jsxs("div",{className:s.content,children:[n&&e.jsx(a.RichText,{blocks:n}),i&&e.jsx(a.RichText,{className:s.title,blocks:i}),x&&e.jsx(a.RichText,{className:s.description,blocks:x}),d&&e.jsx(a.RichText,{blocks:d})]})]})}},p=(r==null?void 0:r.type)==="video"?s.video:s.default,C=({children:c})=>{var l,o;switch(r==null?void 0:r.type){case"link":return e.jsx("a",{"aria-label":r.ariaLabel||r.label,href:j,target:((l=r.linkOptions)==null?void 0:l.linkType)==="external"?"_blank":"_self",rel:((o=r.linkOptions)==null?void 0:o.linkType)==="external"?"noopener noreferrer":"",children:c});case"modal":return e.jsx(v.Modal,{className:s.modalTrigger,trigger:c,content:r.modalContent});case"video":return e.jsx(v.Modal,{className:s.modalTrigger,trigger:c,content:e.jsx("video",{src:r.videoUrl,controls:!0,autoPlay:!0})});case"download":return e.jsx("a",{"aria-label":r.ariaLabel||r.label,href:j,download:!0,target:"_blank",rel:"noopener noreferrer",children:c})}};return e.jsx("article",{className:`${s.card} ${R??""} ${s[b]} ${p}`,children:(r==null?void 0:r.type)!=="none"?e.jsx(C,{children:m()}):e.jsx(e.Fragment,{children:m()})})}exports.TestimonialCard=V;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { jsx as e, jsxs as m, Fragment as f } from "react/jsx-runtime";
|
|
2
2
|
import { useState as U, useEffect as L } from "react";
|
|
3
3
|
import { RichText as t } from "../../ui/PortableTextRenderer/index.mjs";
|
|
4
|
-
import
|
|
4
|
+
import k from "next/image";
|
|
5
5
|
import { Avatar as x } from "../../../core/components/Avatar/index.mjs";
|
|
6
6
|
import { Modal as h } from "../../../core/components/Modal/index.mjs";
|
|
7
7
|
import { resolveLinkURL as I } from "../../utils/resolveLinkUrl.mjs";
|
|
@@ -38,18 +38,18 @@ function te({
|
|
|
38
38
|
callToAction: s,
|
|
39
39
|
// onHover,
|
|
40
40
|
// onLeave,
|
|
41
|
-
style:
|
|
41
|
+
style: g,
|
|
42
42
|
variant: p
|
|
43
43
|
}) {
|
|
44
|
-
const [
|
|
44
|
+
const [v, N] = U(void 0);
|
|
45
45
|
L(() => {
|
|
46
|
-
async function
|
|
46
|
+
async function o() {
|
|
47
47
|
if ((s == null ? void 0 : s.type) === "link" || (s == null ? void 0 : s.type) === "download") {
|
|
48
48
|
const c = await I(s);
|
|
49
49
|
N(c);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
|
|
52
|
+
o();
|
|
53
53
|
}, [s]);
|
|
54
54
|
const z = {
|
|
55
55
|
"full-bleed": r.fullBleed,
|
|
@@ -58,22 +58,22 @@ function te({
|
|
|
58
58
|
"image-right": r.imageRight,
|
|
59
59
|
"image-top": r.imageTop,
|
|
60
60
|
"image-bottom": r.imageBottom
|
|
61
|
-
}[
|
|
61
|
+
}[g || "text"], j = /* @__PURE__ */ e("div", { className: r.content, children: (s == null ? void 0 : s.type) === "video" ? /* @__PURE__ */ m(f, { children: [
|
|
62
62
|
n && /* @__PURE__ */ e(t, { blocks: n }),
|
|
63
63
|
d && /* @__PURE__ */ e(t, { className: r.title, blocks: d }),
|
|
64
64
|
l && /* @__PURE__ */ e(t, { className: r.description, blocks: l }),
|
|
65
65
|
i && /* @__PURE__ */ e(t, { blocks: i })
|
|
66
|
-
] }) : /* @__PURE__ */
|
|
66
|
+
] }) : /* @__PURE__ */ m(f, { children: [
|
|
67
67
|
n && /* @__PURE__ */ e(t, { blocks: n }),
|
|
68
68
|
d && /* @__PURE__ */ e(t, { className: r.title, blocks: d }),
|
|
69
69
|
l && /* @__PURE__ */ e(t, { className: r.description, blocks: l }),
|
|
70
70
|
i && /* @__PURE__ */ e(t, { blocks: i })
|
|
71
|
-
] }) }), C = /* @__PURE__ */ e(
|
|
71
|
+
] }) }), C = /* @__PURE__ */ e(f, { children: a && a.imageUrls ? /* @__PURE__ */ m("div", { className: r.image, children: [
|
|
72
72
|
(s == null ? void 0 : s.videoUrl) && /* @__PURE__ */ e("div", { className: r.callToAction, children: /* @__PURE__ */ e("div", { className: r.cardIcon, children: /* @__PURE__ */ e(b, { size: 45 }) }) }),
|
|
73
73
|
/* @__PURE__ */ e(
|
|
74
|
-
|
|
74
|
+
k,
|
|
75
75
|
{
|
|
76
|
-
src: a.
|
|
76
|
+
src: a.imageUrls.medium,
|
|
77
77
|
alt: (a == null ? void 0 : a.asset.altText) || (a == null ? void 0 : a.asset.description) || "Card image",
|
|
78
78
|
width: 600,
|
|
79
79
|
height: 658,
|
|
@@ -81,16 +81,16 @@ function te({
|
|
|
81
81
|
draggable: !1
|
|
82
82
|
}
|
|
83
83
|
)
|
|
84
|
-
] }) : null }),
|
|
85
|
-
var
|
|
86
|
-
switch (
|
|
84
|
+
] }) : null }), u = () => {
|
|
85
|
+
var o, c, _;
|
|
86
|
+
switch (g) {
|
|
87
87
|
case "full-bleed":
|
|
88
|
-
return /* @__PURE__ */
|
|
88
|
+
return /* @__PURE__ */ m("div", { className: r.imageBackgroundContainer, children: [
|
|
89
89
|
(s == null ? void 0 : s.type) === "video" && /* @__PURE__ */ e("div", { className: r.cardIcon, children: /* @__PURE__ */ e(b, { size: 45 }) }),
|
|
90
90
|
/* @__PURE__ */ e(
|
|
91
|
-
|
|
91
|
+
k,
|
|
92
92
|
{
|
|
93
|
-
src: (a == null ? void 0 : a.
|
|
93
|
+
src: ((o = a == null ? void 0 : a.imageUrls) == null ? void 0 : o.medium) ?? "",
|
|
94
94
|
alt: (a == null ? void 0 : a.asset.altText) || (a == null ? void 0 : a.asset.description) || "Card image",
|
|
95
95
|
fill: !0,
|
|
96
96
|
priority: !1,
|
|
@@ -103,9 +103,9 @@ function te({
|
|
|
103
103
|
] });
|
|
104
104
|
case "image-right":
|
|
105
105
|
case "image-left":
|
|
106
|
-
return /* @__PURE__ */
|
|
106
|
+
return /* @__PURE__ */ m("div", { className: r.container, children: [
|
|
107
107
|
C,
|
|
108
|
-
/* @__PURE__ */
|
|
108
|
+
/* @__PURE__ */ m("div", { className: r.content, children: [
|
|
109
109
|
n && /* @__PURE__ */ e(t, { blocks: n }),
|
|
110
110
|
d && /* @__PURE__ */ e(t, { className: r.title, blocks: d }),
|
|
111
111
|
l && /* @__PURE__ */ e(t, { className: r.description, blocks: l }),
|
|
@@ -113,19 +113,19 @@ function te({
|
|
|
113
113
|
] })
|
|
114
114
|
] });
|
|
115
115
|
case "image-bottom":
|
|
116
|
-
return /* @__PURE__ */ e("div", { className: r.container, children: /* @__PURE__ */
|
|
116
|
+
return /* @__PURE__ */ e("div", { className: r.container, children: /* @__PURE__ */ m("div", { className: r.content, children: [
|
|
117
117
|
n && /* @__PURE__ */ e(t, { blocks: n }),
|
|
118
118
|
d && /* @__PURE__ */ e(t, { className: r.title, blocks: d }),
|
|
119
119
|
l && /* @__PURE__ */ e(t, { className: r.description, blocks: l }),
|
|
120
|
-
/* @__PURE__ */
|
|
121
|
-
/* @__PURE__ */ e(x, { src: ((
|
|
120
|
+
/* @__PURE__ */ m("div", { className: r.personContainer, children: [
|
|
121
|
+
/* @__PURE__ */ e(x, { src: ((c = a == null ? void 0 : a.imageUrls) == null ? void 0 : c.small) ?? "", size: "lg" }),
|
|
122
122
|
i && /* @__PURE__ */ e(t, { blocks: i })
|
|
123
123
|
] })
|
|
124
124
|
] }) });
|
|
125
125
|
case "image-top":
|
|
126
|
-
return /* @__PURE__ */
|
|
127
|
-
/* @__PURE__ */ e(x, { src: ((
|
|
128
|
-
/* @__PURE__ */
|
|
126
|
+
return /* @__PURE__ */ m("div", { className: r.container, children: [
|
|
127
|
+
/* @__PURE__ */ e(x, { src: ((_ = a == null ? void 0 : a.imageUrls) == null ? void 0 : _.small) ?? "", size: "xl" }),
|
|
128
|
+
/* @__PURE__ */ m("div", { className: r.content, children: [
|
|
129
129
|
n && /* @__PURE__ */ e(t, { blocks: n }),
|
|
130
130
|
d && /* @__PURE__ */ e(t, { className: r.title, blocks: d }),
|
|
131
131
|
l && /* @__PURE__ */ e(t, { className: r.description, blocks: l }),
|
|
@@ -133,18 +133,18 @@ function te({
|
|
|
133
133
|
] })
|
|
134
134
|
] });
|
|
135
135
|
}
|
|
136
|
-
}, B = (s == null ? void 0 : s.type) === "video" ? r.video : r.default, y = ({ children:
|
|
137
|
-
var c,
|
|
136
|
+
}, B = (s == null ? void 0 : s.type) === "video" ? r.video : r.default, y = ({ children: o }) => {
|
|
137
|
+
var c, _;
|
|
138
138
|
switch (s == null ? void 0 : s.type) {
|
|
139
139
|
case "link":
|
|
140
140
|
return /* @__PURE__ */ e(
|
|
141
141
|
"a",
|
|
142
142
|
{
|
|
143
143
|
"aria-label": s.ariaLabel || s.label,
|
|
144
|
-
href:
|
|
144
|
+
href: v,
|
|
145
145
|
target: ((c = s.linkOptions) == null ? void 0 : c.linkType) === "external" ? "_blank" : "_self",
|
|
146
|
-
rel: ((
|
|
147
|
-
children:
|
|
146
|
+
rel: ((_ = s.linkOptions) == null ? void 0 : _.linkType) === "external" ? "noopener noreferrer" : "",
|
|
147
|
+
children: o
|
|
148
148
|
}
|
|
149
149
|
);
|
|
150
150
|
case "modal":
|
|
@@ -152,7 +152,7 @@ function te({
|
|
|
152
152
|
h,
|
|
153
153
|
{
|
|
154
154
|
className: r.modalTrigger,
|
|
155
|
-
trigger:
|
|
155
|
+
trigger: o,
|
|
156
156
|
content: s.modalContent
|
|
157
157
|
}
|
|
158
158
|
);
|
|
@@ -161,7 +161,7 @@ function te({
|
|
|
161
161
|
h,
|
|
162
162
|
{
|
|
163
163
|
className: r.modalTrigger,
|
|
164
|
-
trigger:
|
|
164
|
+
trigger: o,
|
|
165
165
|
content: /* @__PURE__ */ e("video", { src: s.videoUrl, controls: !0, autoPlay: !0 })
|
|
166
166
|
}
|
|
167
167
|
);
|
|
@@ -170,11 +170,11 @@ function te({
|
|
|
170
170
|
"a",
|
|
171
171
|
{
|
|
172
172
|
"aria-label": s.ariaLabel || s.label,
|
|
173
|
-
href:
|
|
173
|
+
href: v,
|
|
174
174
|
download: !0,
|
|
175
175
|
target: "_blank",
|
|
176
176
|
rel: "noopener noreferrer",
|
|
177
|
-
children:
|
|
177
|
+
children: o
|
|
178
178
|
}
|
|
179
179
|
);
|
|
180
180
|
}
|
|
@@ -183,7 +183,7 @@ function te({
|
|
|
183
183
|
"article",
|
|
184
184
|
{
|
|
185
185
|
className: `${r.card} ${z ?? ""} ${r[p]} ${B}`,
|
|
186
|
-
children: (s == null ? void 0 : s.type) !== "none" ? /* @__PURE__ */ e(y, { children:
|
|
186
|
+
children: (s == null ? void 0 : s.type) !== "none" ? /* @__PURE__ */ e(y, { children: u() }) : /* @__PURE__ */ e(f, { children: u() })
|
|
187
187
|
}
|
|
188
188
|
);
|
|
189
189
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index15.css');const t=require("react/jsx-runtime"),p=require("react"),y=require("@portabletext/react"),k=require("../AnimatedSpan/index.cjs"),a=require("../../../core/components/Heading/index.cjs"),f=require("../../../core/components/Text/index.cjs"),q=require("next/image"),N=require("../../hooks/useMediaQuery.cjs"),H="_container_1yh99_1",L="_divider_1yh99_12",$="_richTextImage_1yh99_26",C="_richTextLink_1yh99_34",_={container:H,divider:L,richTextImage:$,richTextLink:C},I=s=>({normal:({children:n})=>t.jsx(f.Text,{className:s,children:n}),h1:({children:n})=>t.jsx(a.Heading,{className:s,level:1,children:n}),h2:({children:n})=>t.jsx(a.Heading,{className:s,level:2,children:n}),h3:({children:n})=>t.jsx(a.Heading,{className:s,level:3,children:n}),h4:({children:n})=>t.jsx(a.Heading,{className:s,level:4,children:n}),h5:({children:n})=>t.jsx(a.Heading,{className:s,level:5,children:n}),h6:({children:n})=>t.jsx(a.Heading,{className:s,level:6,children:n}),quote:({children:n})=>t.jsx("blockquote",{className:s,children:n})}),M=(s,o,n,h,u)=>{const l=I(s);return{marks:{coloredText:({children:e,value:r})=>{if(!r)return t.jsx(t.Fragment,{children:e});const{colorClass:i}=r,c=o==null?void 0:o.current;return h&&n?t.jsx(k.AnimatedSpan,{className:i,text:n,prevText:c},"animated-span"):t.jsx("span",{className:i,children:e})},strong:({children:e})=>t.jsx("strong",{children:e}),em:({children:e})=>t.jsx("em",{children:e}),number:({children:e})=>t.jsx("span",{className:"inlineNumber",children:e}),left:({children:e})=>t.jsx("span",{className:"textLeft",children:e}),center:({children:e})=>t.jsx("span",{className:"textCenter",children:e}),right:({children:e})=>t.jsx("span",{className:"textRight",children:e}),link:({children:e,value:r})=>{var d;const{linkType:i,internalUrl:c,externalUrl:m,blank:g}=r;let x="#";i==="external"&&m?x=m:i==="internal"&&((d=c==null?void 0:c.slug)!=null&&d.current)&&(x=`/${c==null?void 0:c.slug.current}`);const j=i==="external";return t.jsx("a",{href:x,target:g?"_blank":void 0,rel:j?"noopener noreferrer":void 0,className:_.richTextLink,children:e})},textSize:({children:e,value:r})=>{const i=r!=null&&r.size?`text-${r.size}`:"";return t.jsx("span",{className:i,children:e})}},block:l,list:{bullet:({children:e=[]})=>{const r=p.Children.count(e);return t.jsx("ul",{style:{columnCount:u?1:r>5?2:1},className:s,children:e})}},types:{image:({value:e})=>{var i,c,m,g,x,j,d;if(!(e!=null&&e.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index15.css');const t=require("react/jsx-runtime"),p=require("react"),y=require("@portabletext/react"),k=require("../AnimatedSpan/index.cjs"),a=require("../../../core/components/Heading/index.cjs"),f=require("../../../core/components/Text/index.cjs"),q=require("next/image"),N=require("../../hooks/useMediaQuery.cjs"),H="_container_1yh99_1",L="_divider_1yh99_12",$="_richTextImage_1yh99_26",C="_richTextLink_1yh99_34",_={container:H,divider:L,richTextImage:$,richTextLink:C},I=s=>({normal:({children:n})=>t.jsx(f.Text,{className:s,children:n}),h1:({children:n})=>t.jsx(a.Heading,{className:s,level:1,children:n}),h2:({children:n})=>t.jsx(a.Heading,{className:s,level:2,children:n}),h3:({children:n})=>t.jsx(a.Heading,{className:s,level:3,children:n}),h4:({children:n})=>t.jsx(a.Heading,{className:s,level:4,children:n}),h5:({children:n})=>t.jsx(a.Heading,{className:s,level:5,children:n}),h6:({children:n})=>t.jsx(a.Heading,{className:s,level:6,children:n}),quote:({children:n})=>t.jsx("blockquote",{className:s,children:n})}),M=(s,o,n,h,u)=>{const l=I(s);return{marks:{coloredText:({children:e,value:r})=>{if(!r)return t.jsx(t.Fragment,{children:e});const{colorClass:i}=r,c=o==null?void 0:o.current;return h&&n?t.jsx(k.AnimatedSpan,{className:i,text:n,prevText:c},"animated-span"):t.jsx("span",{className:i,children:e})},strong:({children:e})=>t.jsx("strong",{children:e}),em:({children:e})=>t.jsx("em",{children:e}),number:({children:e})=>t.jsx("span",{className:"inlineNumber",children:e}),left:({children:e})=>t.jsx("span",{className:"textLeft",children:e}),center:({children:e})=>t.jsx("span",{className:"textCenter",children:e}),right:({children:e})=>t.jsx("span",{className:"textRight",children:e}),link:({children:e,value:r})=>{var d;const{linkType:i,internalUrl:c,externalUrl:m,blank:g}=r;let x="#";i==="external"&&m?x=m:i==="internal"&&((d=c==null?void 0:c.slug)!=null&&d.current)&&(x=`/${c==null?void 0:c.slug.current}`);const j=i==="external";return t.jsx("a",{href:x,target:g?"_blank":void 0,rel:j?"noopener noreferrer":void 0,className:_.richTextLink,children:e})},textSize:({children:e,value:r})=>{const i=r!=null&&r.size?`text-${r.size}`:"";return t.jsx("span",{className:i,children:e})}},block:l,list:{bullet:({children:e=[]})=>{const r=p.Children.count(e);return t.jsx("ul",{style:{columnCount:u?1:r>5?2:1},className:s,children:e})}},types:{image:({value:e})=>{var i,c,m,g,x,j,d;if(!(e!=null&&e.imageUrls))return null;const r=((i=e.asset)==null?void 0:i.altText)||"Content image";return t.jsxs("figure",{className:`${s} ${_.richTextImage}`,children:[t.jsx(q,{src:e.imageUrls.medium,alt:r,width:1e3,height:800,style:{maxWidth:"100%",height:"auto"}}),(((c=e.asset)==null?void 0:c.title)||((m=e.asset)==null?void 0:m.description))&&t.jsxs("figcaption",{children:[((g=e.asset)==null?void 0:g.title)&&t.jsx("strong",{children:(x=e.asset)==null?void 0:x.title}),((j=e.asset)==null?void 0:j.description)&&t.jsx("p",{children:(d=e.asset)==null?void 0:d.description})]})]})},divider:()=>t.jsx("hr",{className:_.divider})}}},S=({blocks:s,className:o,textOverride:n,animateText:h})=>{const u=N.useMediaQuery("(max-width: 767px)"),l=p.useRef(n);p.useEffect(()=>{l.current=n},[n]);const T=p.useMemo(()=>M(o,l,n,h,u),[o,l,n,h,u]);return s?typeof s=="string"?(console.warn("RichText component received a string. Expected PortableTextBlock[]"),t.jsx(f.Text,{className:o,children:s})):t.jsx("div",{className:`${_.container} portableTextContainer`,children:t.jsx(y.PortableText,{value:s,components:T})}):null};exports.RichText=S;
|
|
@@ -6,7 +6,7 @@ import { Heading as m } from "../../../core/components/Heading/index.mjs";
|
|
|
6
6
|
import { Text as k } from "../../../core/components/Text/index.mjs";
|
|
7
7
|
import E from "next/image";
|
|
8
8
|
import { useMediaQuery as w } from "../../hooks/useMediaQuery.mjs";
|
|
9
|
-
import '../../../assets/index15.css';const M = "_container_1yh99_1", P = "_divider_1yh99_12", b = "_richTextImage_1yh99_26", j = "_richTextLink_1yh99_34",
|
|
9
|
+
import '../../../assets/index15.css';const M = "_container_1yh99_1", P = "_divider_1yh99_12", b = "_richTextImage_1yh99_26", j = "_richTextLink_1yh99_34", u = {
|
|
10
10
|
container: M,
|
|
11
11
|
divider: P,
|
|
12
12
|
richTextImage: b,
|
|
@@ -20,7 +20,7 @@ import '../../../assets/index15.css';const M = "_container_1yh99_1", P = "_divid
|
|
|
20
20
|
h5: ({ children: n }) => /* @__PURE__ */ e(m, { className: r, level: 5, children: n }),
|
|
21
21
|
h6: ({ children: n }) => /* @__PURE__ */ e(m, { className: r, level: 6, children: n }),
|
|
22
22
|
quote: ({ children: n }) => /* @__PURE__ */ e("blockquote", { className: r, children: n })
|
|
23
|
-
}), B = (r, c, n,
|
|
23
|
+
}), B = (r, c, n, d, x) => {
|
|
24
24
|
const a = q(r);
|
|
25
25
|
return {
|
|
26
26
|
marks: {
|
|
@@ -30,7 +30,7 @@ import '../../../assets/index15.css';const M = "_container_1yh99_1", P = "_divid
|
|
|
30
30
|
}) => {
|
|
31
31
|
if (!o) return /* @__PURE__ */ e(y, { children: t });
|
|
32
32
|
const { colorClass: s } = o, i = c == null ? void 0 : c.current;
|
|
33
|
-
return
|
|
33
|
+
return d && n ? /* @__PURE__ */ e(
|
|
34
34
|
z,
|
|
35
35
|
{
|
|
36
36
|
className: s,
|
|
@@ -56,7 +56,7 @@ import '../../../assets/index15.css';const M = "_container_1yh99_1", P = "_divid
|
|
|
56
56
|
href: l,
|
|
57
57
|
target: g ? "_blank" : void 0,
|
|
58
58
|
rel: s === "external" ? "noopener noreferrer" : void 0,
|
|
59
|
-
className:
|
|
59
|
+
className: u.richTextLink,
|
|
60
60
|
children: t
|
|
61
61
|
}
|
|
62
62
|
);
|
|
@@ -74,7 +74,7 @@ import '../../../assets/index15.css';const M = "_container_1yh99_1", P = "_divid
|
|
|
74
74
|
"ul",
|
|
75
75
|
{
|
|
76
76
|
style: {
|
|
77
|
-
columnCount:
|
|
77
|
+
columnCount: x ? 1 : o > 5 ? 2 : 1
|
|
78
78
|
},
|
|
79
79
|
className: r,
|
|
80
80
|
children: t
|
|
@@ -84,14 +84,14 @@ import '../../../assets/index15.css';const M = "_container_1yh99_1", P = "_divid
|
|
|
84
84
|
},
|
|
85
85
|
types: {
|
|
86
86
|
image: ({ value: t }) => {
|
|
87
|
-
var s, i, h, g, l,
|
|
88
|
-
if (!(t != null && t.
|
|
87
|
+
var s, i, h, g, l, f, p;
|
|
88
|
+
if (!(t != null && t.imageUrls)) return null;
|
|
89
89
|
const o = ((s = t.asset) == null ? void 0 : s.altText) || "Content image";
|
|
90
|
-
return /* @__PURE__ */ _("figure", { className: `${r} ${
|
|
90
|
+
return /* @__PURE__ */ _("figure", { className: `${r} ${u.richTextImage}`, children: [
|
|
91
91
|
/* @__PURE__ */ e(
|
|
92
92
|
E,
|
|
93
93
|
{
|
|
94
|
-
src: t.
|
|
94
|
+
src: t.imageUrls.medium,
|
|
95
95
|
alt: o,
|
|
96
96
|
width: 1e3,
|
|
97
97
|
height: 800,
|
|
@@ -100,20 +100,20 @@ import '../../../assets/index15.css';const M = "_container_1yh99_1", P = "_divid
|
|
|
100
100
|
),
|
|
101
101
|
(((i = t.asset) == null ? void 0 : i.title) || ((h = t.asset) == null ? void 0 : h.description)) && /* @__PURE__ */ _("figcaption", { children: [
|
|
102
102
|
((g = t.asset) == null ? void 0 : g.title) && /* @__PURE__ */ e("strong", { children: (l = t.asset) == null ? void 0 : l.title }),
|
|
103
|
-
((
|
|
103
|
+
((f = t.asset) == null ? void 0 : f.description) && /* @__PURE__ */ e("p", { children: (p = t.asset) == null ? void 0 : p.description })
|
|
104
104
|
] })
|
|
105
105
|
] });
|
|
106
106
|
},
|
|
107
|
-
divider: () => /* @__PURE__ */ e("hr", { className:
|
|
107
|
+
divider: () => /* @__PURE__ */ e("hr", { className: u.divider })
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
110
|
}, G = ({
|
|
111
111
|
blocks: r,
|
|
112
112
|
className: c,
|
|
113
113
|
textOverride: n,
|
|
114
|
-
animateText:
|
|
114
|
+
animateText: d
|
|
115
115
|
}) => {
|
|
116
|
-
const
|
|
116
|
+
const x = w("(max-width: 767px)"), a = L(n);
|
|
117
117
|
C(() => {
|
|
118
118
|
a.current = n;
|
|
119
119
|
}, [n]);
|
|
@@ -122,14 +122,14 @@ import '../../../assets/index15.css';const M = "_container_1yh99_1", P = "_divid
|
|
|
122
122
|
c,
|
|
123
123
|
a,
|
|
124
124
|
n,
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
d,
|
|
126
|
+
x
|
|
127
127
|
),
|
|
128
|
-
[c, a, n,
|
|
128
|
+
[c, a, n, d, x]
|
|
129
129
|
);
|
|
130
130
|
return r ? typeof r == "string" ? (console.warn(
|
|
131
131
|
"RichText component received a string. Expected PortableTextBlock[]"
|
|
132
|
-
), /* @__PURE__ */ e(k, { className: c, children: r })) : /* @__PURE__ */ e("div", { className: `${
|
|
132
|
+
), /* @__PURE__ */ e(k, { className: c, children: r })) : /* @__PURE__ */ e("div", { className: `${u.container} portableTextContainer`, children: /* @__PURE__ */ e($, { value: r, components: T }) }) : null;
|
|
133
133
|
};
|
|
134
134
|
export {
|
|
135
135
|
G as RichText
|
package/dist/next.d.ts
CHANGED
|
@@ -1,17 +1,26 @@
|
|
|
1
|
-
import { AccordionBlockProps } from './AccordionBlock.types';
|
|
2
|
-
import {
|
|
1
|
+
import { AccordionBlockProps } from './next/blocks/AccordionBlock/AccordionBlock.types';
|
|
2
|
+
import { AccordionBlockProps as AccordionBlockProps_2 } from './AccordionBlock.types';
|
|
3
|
+
import { AdditionalCategoriesBlockProps } from './next/blocks/AdditionalCategoriesBlock/AdditionalCategoriesBlock.types';
|
|
4
|
+
import { AdditionalCategoriesBlockProps as AdditionalCategoriesBlockProps_2 } from './AdditionalCategoriesBlock.types';
|
|
3
5
|
import { ArticleItem } from './next/types/article';
|
|
4
|
-
import { CardGridBlockProps } from './CardGridBlock.types';
|
|
5
|
-
import {
|
|
6
|
+
import { CardGridBlockProps } from './next/blocks/CardGridBlock/CardGridBlock.types';
|
|
7
|
+
import { CardGridBlockProps as CardGridBlockProps_2 } from './CardGridBlock.types';
|
|
8
|
+
import { CarouselBlockProps } from './next/blocks/CarouselBlock/CarouselBlock.types';
|
|
9
|
+
import { CarouselBlockProps as CarouselBlockProps_2 } from './CarouselBlock.types';
|
|
6
10
|
import { CategoryProps } from './next/types/category';
|
|
7
11
|
import { ContentBlockProps } from './next/blocks/ContentBlock/ContentBlock.types';
|
|
8
12
|
import { ContentBlockProps as ContentBlockProps_2 } from './ContentBlock.types';
|
|
9
13
|
import { default as default_2 } from 'react';
|
|
10
|
-
import { DocumentListBlockProps } from './DocumentListBlock.types';
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
+
import { DocumentListBlockProps } from './next/blocks/DocumentListBlock/DocumentListBlock.types';
|
|
15
|
+
import { DocumentListBlockProps as DocumentListBlockProps_2 } from './DocumentListBlock.types';
|
|
16
|
+
import { FaqBlockProps } from './next/blocks/FaqBlock/FaqBlock.types';
|
|
17
|
+
import { FaqBlockProps as FaqBlockProps_2 } from './FaqBlock.types';
|
|
18
|
+
import { FeaturedDocumentsBlockProps } from './next/blocks/FeaturedDocumentsBlock/FeaturedDocumentsBlock.types';
|
|
19
|
+
import { FeaturedDocumentsBlockProps as FeaturedDocumentsBlockProps_2 } from './FeaturedDocumentsBlock.types';
|
|
20
|
+
import { HeroBlockProps } from './next/blocks/HeroBlock/HeroBlock.types';
|
|
21
|
+
import { HeroBlockProps as HeroBlockProps_2 } from './HeroBlock.types';
|
|
14
22
|
import { JSX } from 'react/jsx-runtime';
|
|
23
|
+
import { Link } from './next/types/link';
|
|
15
24
|
import { LinkProps } from 'next/link';
|
|
16
25
|
import { NavigationData } from './next/types/navigation';
|
|
17
26
|
import { PageSection } from './next/types/pageSection';
|
|
@@ -25,20 +34,31 @@ import { SingletonBlockProps } from './next/types/singleton';
|
|
|
25
34
|
import { SiteSettings } from './next/types/site';
|
|
26
35
|
import { SpotlightProps } from './next/types/spotlight';
|
|
27
36
|
import { SpotlightProps as SpotlightProps_2 } from '../../types/spotlight';
|
|
28
|
-
import { StickyScrollBlockProps } from './StickyScrollBlock.types';
|
|
37
|
+
import { StickyScrollBlockProps } from './next/blocks/StickyScrollBlock/StickyScrollBlock.types';
|
|
38
|
+
import { StickyScrollBlockProps as StickyScrollBlockProps_2 } from './StickyScrollBlock.types';
|
|
29
39
|
import { Styles } from './next/types/styles';
|
|
30
|
-
import { TabsBlockProps } from './TabsBlock.types';
|
|
31
|
-
import {
|
|
40
|
+
import { TabsBlockProps } from './next/blocks/TabsBlock/TabsBlock.types';
|
|
41
|
+
import { TabsBlockProps as TabsBlockProps_2 } from './TabsBlock.types';
|
|
42
|
+
import { WasHelpfulBlockProps } from './next/blocks/WasHelpfulBlock/WasHelpful.types';
|
|
43
|
+
import { WasHelpfulBlockProps as WasHelpfulBlockProps_2 } from './WasHelpful.types';
|
|
32
44
|
|
|
33
|
-
export declare function AccordionBlock({ heading, items, className, styleOptions, }:
|
|
45
|
+
export declare function AccordionBlock({ heading, items, className, styleOptions, }: AccordionBlockProps_2): JSX.Element;
|
|
34
46
|
|
|
35
|
-
export
|
|
47
|
+
export { AccordionBlockProps }
|
|
48
|
+
|
|
49
|
+
export declare function AdditionalCategoriesBlock({ categories, type, }: AdditionalCategoriesBlockProps_2): JSX.Element | undefined;
|
|
50
|
+
|
|
51
|
+
export { AdditionalCategoriesBlockProps }
|
|
36
52
|
|
|
37
53
|
export { ArticleItem }
|
|
38
54
|
|
|
39
|
-
export declare function CardGridBlock({ heading, grid, callToAction, styleOptions, }:
|
|
55
|
+
export declare function CardGridBlock({ heading, grid, callToAction, styleOptions, }: CardGridBlockProps_2): JSX.Element;
|
|
56
|
+
|
|
57
|
+
export { CardGridBlockProps }
|
|
40
58
|
|
|
41
|
-
export declare function CarouselBlock({ heading, carouselOptions, items, styleOptions, }:
|
|
59
|
+
export declare function CarouselBlock({ heading, carouselOptions, items, styleOptions, }: CarouselBlockProps_2): JSX.Element;
|
|
60
|
+
|
|
61
|
+
export { CarouselBlockProps }
|
|
42
62
|
|
|
43
63
|
export { CategoryProps }
|
|
44
64
|
|
|
@@ -46,13 +66,21 @@ export declare function ContentBlock({ layout, heading, image, video, metrics, c
|
|
|
46
66
|
|
|
47
67
|
export { ContentBlockProps }
|
|
48
68
|
|
|
49
|
-
export declare function DocumentListBlock({ heading, layout, includeFilters, excludeFilters, limit, categoryFilters, documentType, styleOptions, initialArticles, initialTotalCount, initialIncludeCategories, }:
|
|
69
|
+
export declare function DocumentListBlock({ heading, layout, includeFilters, excludeFilters, limit, categoryFilters, documentType, styleOptions, initialArticles, initialTotalCount, initialIncludeCategories, }: DocumentListBlockProps_2): JSX.Element;
|
|
70
|
+
|
|
71
|
+
export { DocumentListBlockProps }
|
|
72
|
+
|
|
73
|
+
export declare function FaqBlock({ heading, items, className, styleOptions, }: FaqBlockProps_2): JSX.Element;
|
|
50
74
|
|
|
51
|
-
export
|
|
75
|
+
export { FaqBlockProps }
|
|
52
76
|
|
|
53
|
-
export declare function FeaturedDocumentsBlock({ heading, selectionMode, layout, limit, articles, manualArticles, documentType, sortBy, callToAction, styleOptions, }:
|
|
77
|
+
export declare function FeaturedDocumentsBlock({ heading, selectionMode, layout, limit, articles, manualArticles, documentType, sortBy, callToAction, styleOptions, }: FeaturedDocumentsBlockProps_2): 0 | JSX.Element | undefined;
|
|
54
78
|
|
|
55
|
-
export
|
|
79
|
+
export { FeaturedDocumentsBlockProps }
|
|
80
|
+
|
|
81
|
+
export declare function HeroBlock({ heading, image, video, callToAction, pageData, styleOptions, }: HeroBlockProps_2): JSX.Element;
|
|
82
|
+
|
|
83
|
+
export { HeroBlockProps }
|
|
56
84
|
|
|
57
85
|
declare type HeroContextType = {
|
|
58
86
|
isFullbleedHeroAtTop: boolean;
|
|
@@ -63,6 +91,8 @@ export declare function HeroProvider({ children }: {
|
|
|
63
91
|
children: React.ReactNode;
|
|
64
92
|
}): JSX.Element;
|
|
65
93
|
|
|
94
|
+
export { Link }
|
|
95
|
+
|
|
66
96
|
export declare function LocaleBridgeProvider({ children, value, }: {
|
|
67
97
|
children: default_2.ReactNode;
|
|
68
98
|
value: LocaleBridgeValue;
|
|
@@ -117,16 +147,22 @@ declare interface SpotlightCardProps {
|
|
|
117
147
|
|
|
118
148
|
export { SpotlightProps }
|
|
119
149
|
|
|
120
|
-
export declare function StickyScrollBlock({ heading, items, showNumbers, }:
|
|
150
|
+
export declare function StickyScrollBlock({ heading, items, showNumbers, }: StickyScrollBlockProps_2): JSX.Element;
|
|
151
|
+
|
|
152
|
+
export { StickyScrollBlockProps }
|
|
121
153
|
|
|
122
154
|
export { Styles }
|
|
123
155
|
|
|
124
|
-
export declare function TabsBlock({ heading, image, items, callToAction, styleOptions, }:
|
|
156
|
+
export declare function TabsBlock({ heading, image, items, callToAction, styleOptions, }: TabsBlockProps_2): JSX.Element | undefined;
|
|
157
|
+
|
|
158
|
+
export { TabsBlockProps }
|
|
125
159
|
|
|
126
160
|
export declare function useHeroContext(): HeroContextType;
|
|
127
161
|
|
|
128
162
|
export declare function useLocaleBridge(): LocaleBridgeValue;
|
|
129
163
|
|
|
130
|
-
export declare function WasHelpfulBlock({ page, type }:
|
|
164
|
+
export declare function WasHelpfulBlock({ page, type }: WasHelpfulBlockProps_2): JSX.Element;
|
|
165
|
+
|
|
166
|
+
export { WasHelpfulBlockProps }
|
|
131
167
|
|
|
132
168
|
export { }
|