@scrippsproduct/networks-ui-library 2.0.9 → 2.0.10
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/assets/ImageCard.css +1 -1
- package/dist/assets/LogoCard.css +1 -0
- package/dist/components/Carousel/Carousel.js +61 -59
- package/dist/components/CarouselSlide/slide-layouts/LogoCard/LogoCard.js +9 -0
- package/dist/components/CarouselSlide/slide-layouts/LogoCard/index.js +5 -0
- package/dist/components/CarouselSlide/slide-layouts/index.js +12 -10
- package/dist/components/GenericList/GenericList.js +8 -6
- package/dist/components/ImageCard/ImageCard.js +53 -53
- package/dist/components/ImageCard/ImageCardCore.js +23 -23
- package/dist/components/LogoCard/LogoCard.js +103 -0
- package/dist/components/LogoCard/LogoCard.test.js +80 -0
- package/dist/components/LogoCard/index.js +5 -0
- package/dist/index.js +136 -132
- package/dist/settings.js +5 -4
- package/dist/src/components/CarouselSlide/slide-layouts/LogoCard/LogoCard.d.ts +3 -0
- package/dist/src/components/CarouselSlide/slide-layouts/LogoCard/index.d.ts +2 -0
- package/dist/src/components/CarouselSlide/slide-layouts/index.d.ts +1 -0
- package/dist/src/components/GenericList/GenericList.d.ts +2 -1
- package/dist/src/components/LogoCard/LogoCard.d.ts +19 -0
- package/dist/src/components/LogoCard/index.d.ts +2 -0
- package/dist/src/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
image-card{--overlay-content-text-color: #fff;--align-overlay-content: flex-end;--justify-overlay-content: flex-start;display:flex;flex-direction:column;justify-content:stretch;height:100%;margin:0;padding:0 0 1rem}._image-card--
|
|
1
|
+
image-card{--overlay-content-text-color: #fff;--align-overlay-content: flex-end;--justify-overlay-content: flex-start;display:flex;flex-direction:column;justify-content:stretch;box-sizing:border-box;height:100%;margin:0;padding:0 0 1rem}._image-card--clickable_1tnka_14{cursor:pointer}._image-card__img-wrapper_1tnka_18{display:grid;grid-template-areas:"img"}._image-card__img-wrapper_1tnka_18>*{grid-area:img;place-self:var(--align-overlay-content) var(--justify-overlay-content)}._image-card__img-wrapper_1tnka_18>*>*{padding:0 1.5rem;color:var(--overlay-content-text-color);text-shadow:1px 1px 2px rgba(0,0,0,.4)}._image-card__img-wrapper_1tnka_18>*>source{display:contents}._image-card--inline_1tnka_35 ._image-card__img-wrapper_1tnka_18{flex:0 1 min(50%,750px)}._image-card__image_1tnka_39{width:100%;padding:0!important}._image-card__image_1tnka_39>img,._image-card__mobile-image_1tnka_45{aspect-ratio:var(--image-aspect-ratio);width:100%;padding:0;object-fit:cover;object-position:var(--background-image-position);background-color:#efefef}._image-card__mobile-image_1tnka_45{display:none;aspect-ratio:var(--mobile-image-aspect-ratio);object-position:var(--mobile-background-image-position)}@media screen and (max-width:700px){._image-card__mobile-image_1tnka_45{display:block}._image-card__image_1tnka_39{object-position:var(--mobile-background-image-position)}._image-card__mobile-image_1tnka_45~._image-card__image_1tnka_39{display:none}}._image-card--inline_1tnka_35{flex-direction:row;gap:2.5rem;padding:0}._image-card__play-icon_1tnka_77{cursor:pointer;position:relative;overflow:hidden;display:grid;place-self:center center;padding:1.5rem;border:1px rgba(0,0,0,.4) dotted;border-radius:50%;background-color:#ffffff80;transition:scale .225s ease-in-out}._image-card__play-icon_1tnka_77>._play-icon__triangle_1tnka_89{position:absolute;top:32%;left:35%;display:block;width:0;height:0;border-top:.6rem solid transparent;border-right:none;border-bottom:.6rem solid transparent;border-left:1.2rem solid rgba(0,0,0,.5);background-color:transparent;transition:scale .225s ease-in-out,left .225s ease-in-out}._image-card__play-icon_1tnka_77:hover{scale:1.1}._image-card__play-icon_1tnka_77:hover>._play-icon__triangle_1tnka_89{left:42%;scale:1.1}._image-card__content_1tnka_111{padding:1.5rem 0 .5rem;text-align:left}._image-card__content_1tnka_111>div{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--content-line-clamp);line-clamp:var(--content-line-clamp);margin:1.5em 0}._image-card__content_1tnka_111 h2{margin-top:0}._image-card--inline_1tnka_35 ._image-card__content_1tnka_111{align-self:center;padding:0}._image-card__cta-wrapper_1tnka_132{justify-self:flex-end;margin-top:auto}._image-card__cta_1tnka_132{color:var(--base-anchor-color);text-align:left}._image-card__overlay-content_1tnka_142{padding-bottom:1.5rem}image-card.sports-leauge-card{padding-block-end:1.5rem;border-radius:20px;color:#fff;background-color:#671982}image-card.sports-leauge-card .leauge-card__content,image-card.sports-leauge-card .h4,image-card.sports-leauge-card .image-card__cta-wrapper{padding-inline:1.5rem}image-card.sports-leauge-card .image-card__content>div{margin-block:1rem}image-card.sports-leauge-card .image-card__img-wrapper img{border-radius:20px 20px 0 0}image-card.sports-leauge-card .h4{margin-block-end:0}image-card.sports-leauge-card .image-card__cta{display:block;padding-block:1rem;border-radius:20px;font-weight:500;color:#fff;text-align:center;text-decoration:none;background-color:#a026a0;transition:transform .3s ease}image-card.sports-leauge-card .image-card__cta:hover{transform:scale3d(1.05,1.05,1.05)}image-card.sports-leauge-card .league-card__date{margin-block-end:.5rem;font-size:.875rem}image-card.sports-leauge-card .league-card__teams{font-size:1.2rem;font-weight:500}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
logo-card{--logo-box-width: "100%";--logo-box-height: "auto";display:flex;flex-direction:column;gap:1.5rem;box-sizing:border-box;margin:0}._logo-card__logo-box_6at8h_11{overflow:hidden;flex:0 0 auto;width:100%;height:var(--logo-box-height)}._logo-card__logo_6at8h_11{display:block;width:100%;height:100%}._logo-card__logo_6at8h_11>img{display:block;width:auto;max-width:100%;height:100%;max-height:100%;object-fit:contain;object-position:left center}._logo-card__body_6at8h_34{display:flex;flex:1 1 auto;flex-direction:column;gap:1rem;min-width:0}._logo-card__content_6at8h_42{text-align:left}._logo-card__content_6at8h_42>:first-child{margin-top:0}._logo-card__content_6at8h_42>:last-child{margin-bottom:0}._logo-card__cta-wrapper_6at8h_52{margin-top:auto}._logo-card__cta_6at8h_52{color:var(--base-anchor-color);text-align:left}._logo-card--inline_6at8h_61{flex-direction:row;gap:2.5rem;align-items:center}._logo-card--inline_6at8h_61 ._logo-card__logo-box_6at8h_11{width:var(--logo-box-width);max-width:100%;height:auto}._logo-card--inline_6at8h_61 ._logo-card__logo_6at8h_11{height:auto}._logo-card--inline_6at8h_61 ._logo-card__logo_6at8h_11>img{width:100%;height:auto;max-height:none}._logo-card--inline_6at8h_61 ._logo-card__body_6at8h_34{justify-content:center}._logo-card--inline_6at8h_61 ._logo-card__cta-wrapper_6at8h_52{margin-top:0}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsx as l, Fragment as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { chunkArray as
|
|
4
|
-
import
|
|
5
|
-
import { CarouselSlide as
|
|
6
|
-
import { Loading as
|
|
7
|
-
import { c as
|
|
8
|
-
import { C as
|
|
9
|
-
import { C as
|
|
10
|
-
const
|
|
11
|
-
function
|
|
12
|
-
id:
|
|
13
|
-
cells:
|
|
1
|
+
import { jsx as l, Fragment as ee, jsxs as j } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as i, useState as m, useEffect as B, useCallback as u, Suspense as re } from "react";
|
|
3
|
+
import { chunkArray as te, classes as g } from "../../utils/helpers.js";
|
|
4
|
+
import ne from "./CarouselUtils.class.js";
|
|
5
|
+
import { CarouselSlide as le } from "../CarouselSlide/CarouselSlide.js";
|
|
6
|
+
import { Loading as ce } from "../Loading/Loading.js";
|
|
7
|
+
import { c as a } from "../../Carousel.module-Nwf_zL9b.mjs";
|
|
8
|
+
import { C as oe } from "../../chevron-left-D0UjbrKw.mjs";
|
|
9
|
+
import { C as se } from "../../chevron-right-0ZF3LruR.mjs";
|
|
10
|
+
const P = window.matchMedia("(width <= 600px)"), b = window.matchMedia("(width <= 800px"), z = window.matchMedia("(width <= 1024px"), E = window.matchMedia("(width <= 1280px");
|
|
11
|
+
function we({
|
|
12
|
+
id: L,
|
|
13
|
+
cells: w,
|
|
14
14
|
options: x = {
|
|
15
15
|
paginationType: "dots",
|
|
16
16
|
showControls: !0,
|
|
@@ -32,17 +32,17 @@ function ge({
|
|
|
32
32
|
wrapAround: !0
|
|
33
33
|
}
|
|
34
34
|
}) {
|
|
35
|
-
const h =
|
|
36
|
-
|
|
35
|
+
const h = i(`carousel-${L}`), I = i(null), c = i(null), R = i(null), p = i([...w]), $ = i(null), S = i(null), r = i(null), e = i(x), o = i(x), N = i("-50%"), [T, H] = m([]), [M, U] = m([]), [k, q] = m(0), [F, D] = m(!1);
|
|
36
|
+
B(() => {
|
|
37
37
|
const t = () => {
|
|
38
|
-
|
|
38
|
+
P.matches ? e.current = {
|
|
39
39
|
...o.current,
|
|
40
40
|
showControls: !1,
|
|
41
41
|
showPagination: !1,
|
|
42
42
|
cellsPerSlide: 1,
|
|
43
43
|
cellsPosition: o.current.wrapAround ? "center" : "flex-start",
|
|
44
44
|
gutterSize: 10
|
|
45
|
-
} :
|
|
45
|
+
} : b.matches ? o.current.cellsPerSlide !== 1 ? e.current = {
|
|
46
46
|
...o.current,
|
|
47
47
|
cellsPerSlide: 2,
|
|
48
48
|
showControls: !1,
|
|
@@ -51,7 +51,7 @@ function ge({
|
|
|
51
51
|
...o.current,
|
|
52
52
|
showControls: !1,
|
|
53
53
|
gutterSize: 10
|
|
54
|
-
} :
|
|
54
|
+
} : z.matches ? o.current.cellsPerSlide !== 1 && o.current.cellsPerSlide !== 2 ? e.current = {
|
|
55
55
|
...o.current,
|
|
56
56
|
cellsPerSlide: 3,
|
|
57
57
|
showControls: !1,
|
|
@@ -60,7 +60,7 @@ function ge({
|
|
|
60
60
|
...o.current,
|
|
61
61
|
showControls: !1,
|
|
62
62
|
gutterSize: 10
|
|
63
|
-
} :
|
|
63
|
+
} : E.matches ? o.current.showPagination ? e.current = {
|
|
64
64
|
...o.current,
|
|
65
65
|
showControls: !1
|
|
66
66
|
} : e.current = {
|
|
@@ -73,24 +73,24 @@ function ge({
|
|
|
73
73
|
const n = () => {
|
|
74
74
|
q((s) => s + 1), t();
|
|
75
75
|
};
|
|
76
|
-
return
|
|
77
|
-
|
|
76
|
+
return P.addEventListener("change", n), b.addEventListener("change", n), z.addEventListener("change", n), E.addEventListener("change", n), () => {
|
|
77
|
+
P.removeEventListener("change", n), b.removeEventListener("change", n), z.removeEventListener("change", n), E.removeEventListener("change", n);
|
|
78
78
|
};
|
|
79
79
|
}, []);
|
|
80
80
|
const O = u((t, n) => {
|
|
81
|
-
const s =
|
|
81
|
+
const s = te(n, t);
|
|
82
82
|
U([...s]);
|
|
83
|
-
let
|
|
83
|
+
let _ = [];
|
|
84
84
|
for (let f = 0; f <= s.length - 1; f++)
|
|
85
|
-
|
|
85
|
+
_[f] = {
|
|
86
86
|
ariaLabel: `${f + 1} of ${s.length}`,
|
|
87
87
|
layout: s[f][0].layout || "",
|
|
88
88
|
cells: [
|
|
89
89
|
...s[f]
|
|
90
90
|
]
|
|
91
91
|
};
|
|
92
|
-
const
|
|
93
|
-
return
|
|
92
|
+
const C = [..._], A = [..._], Y = C.slice(-1), Z = C.slice(0);
|
|
93
|
+
return A.push(Z[0]), A.unshift(Y[0]), e.current.wrapAround && t.length > n ? A : C;
|
|
94
94
|
}, []), d = u(() => {
|
|
95
95
|
e.current.autoplay && r.current && r.current.clearTimer();
|
|
96
96
|
}, []), W = u((t) => {
|
|
@@ -101,25 +101,25 @@ function ge({
|
|
|
101
101
|
d(), c.current !== null && c.current.addEventListener("scrollend", () => {
|
|
102
102
|
r.current && r.current.handleScrollEnd();
|
|
103
103
|
}, { once: !0 });
|
|
104
|
-
}, [d]),
|
|
104
|
+
}, [d]), v = u(() => {
|
|
105
105
|
d(), c.current !== null && c.current.addEventListener("scrollend", () => {
|
|
106
|
-
r.current && r.current.handleScrollEnd(), c.current && c.current.addEventListener("scroll",
|
|
106
|
+
r.current && r.current.handleScrollEnd(), c.current && c.current.addEventListener("scroll", v, { once: !0 });
|
|
107
107
|
}, { once: !0 });
|
|
108
108
|
}, [d]), Q = () => {
|
|
109
109
|
var t;
|
|
110
110
|
(t = r.current) == null || t.destroy();
|
|
111
|
-
},
|
|
111
|
+
}, y = u(() => {
|
|
112
112
|
//! make sure class is only instantiated once because of reacts
|
|
113
113
|
//! "strict" mode double do hocus pocus
|
|
114
114
|
var t, n;
|
|
115
|
-
r.current !== null && k > 0 && ((n = (t = r.current).destroy) == null || n.call(t), r.current = null), D(!1), r.current = new
|
|
115
|
+
r.current !== null && k > 0 && ((n = (t = r.current).destroy) == null || n.call(t), r.current = null), D(!1), r.current = new ne({
|
|
116
116
|
carouselEl: I.current,
|
|
117
117
|
scrollerEl: c.current,
|
|
118
118
|
paginationEl: R.current,
|
|
119
119
|
cells: p.current,
|
|
120
120
|
navBtnEls: {
|
|
121
121
|
next: $.current,
|
|
122
|
-
previous:
|
|
122
|
+
previous: S.current
|
|
123
123
|
},
|
|
124
124
|
id: h.current,
|
|
125
125
|
options: {
|
|
@@ -134,46 +134,48 @@ function ge({
|
|
|
134
134
|
}
|
|
135
135
|
}), D(!0);
|
|
136
136
|
}, [k]), V = u(() => {
|
|
137
|
-
c.current && c.current.addEventListener("scroll",
|
|
138
|
-
}, [
|
|
137
|
+
c.current && c.current.addEventListener("scroll", v, { once: !0 });
|
|
138
|
+
}, [v]), G = () => {
|
|
139
139
|
var t;
|
|
140
140
|
return ((t = c.current) == null ? void 0 : t.querySelectorAll("[data-index]").length) ?? 0;
|
|
141
|
-
},
|
|
141
|
+
}, K = u(() => {
|
|
142
142
|
const t = O(p.current, e.current.cellsPerSlide ?? 1);
|
|
143
143
|
H(t);
|
|
144
144
|
const n = t.length;
|
|
145
145
|
if (p.current.length > (e.current.cellsPerSlide ?? 1)) {
|
|
146
146
|
let s = setInterval(() => {
|
|
147
|
-
c.current !== null &&
|
|
147
|
+
c.current !== null && G() >= n && (S.current !== null && e.current.showControls || !e.current.showControls) && (clearInterval(s), V(), y());
|
|
148
148
|
}, 100);
|
|
149
149
|
} else {
|
|
150
150
|
let s = setInterval(() => {
|
|
151
|
-
c.current !== null &&
|
|
151
|
+
c.current !== null && G() >= n && (clearInterval(s), y());
|
|
152
152
|
}, 100);
|
|
153
153
|
}
|
|
154
|
-
}, [O, V,
|
|
155
|
-
|
|
154
|
+
}, [O, V, y]);
|
|
155
|
+
B(() => {
|
|
156
156
|
if (e.current !== null) {
|
|
157
157
|
if (e.current.showControls) {
|
|
158
158
|
let t = 0;
|
|
159
159
|
e.current.showPagination && (t = t + 25), e.current.showScrollbar && (t = t + 6), N.current = `calc(-50% - ${t}px)`;
|
|
160
160
|
}
|
|
161
|
-
|
|
161
|
+
K();
|
|
162
162
|
}
|
|
163
163
|
return () => {
|
|
164
164
|
Q();
|
|
165
165
|
};
|
|
166
|
-
}, [
|
|
166
|
+
}, [K, e]);
|
|
167
|
+
const X = () => w.length <= (e.current.cellsPerSlide ?? 1) ? "0" : e.current.wrapAround ? `${(e.current.gutterSize ?? 25) <= 25 ? e.current.gutterSize ?? 25 : 25}%` : `0 ${(e.current.gutterSize ?? 25) <= 25 ? e.current.gutterSize ?? 25 : 25}%`;
|
|
168
|
+
return /* @__PURE__ */ l(ee, { children: e.current !== null && /* @__PURE__ */ j(
|
|
167
169
|
"div",
|
|
168
170
|
{
|
|
169
171
|
"aria-label": e.current.title,
|
|
170
172
|
"aria-roledescription": "carousel",
|
|
171
|
-
className:
|
|
173
|
+
className: a.carousel,
|
|
172
174
|
id: h.current,
|
|
173
175
|
ref: I,
|
|
174
176
|
role: "region",
|
|
175
177
|
style: {
|
|
176
|
-
"--_carousel-gutters":
|
|
178
|
+
"--_carousel-gutters": X(),
|
|
177
179
|
"--_slide-aspect-ratio": e.current.slideAspectRatio,
|
|
178
180
|
"--_cell-aspect-ratio": e.current.cellAspectRatio,
|
|
179
181
|
"--_slide-cell-size": `${100 / (e.current.cellsPerSlide ?? 1)}%`,
|
|
@@ -190,7 +192,7 @@ function ge({
|
|
|
190
192
|
{
|
|
191
193
|
"aria-label": "Items Scroller",
|
|
192
194
|
"aria-live": "polite",
|
|
193
|
-
className:
|
|
195
|
+
className: a.carousel__scroller,
|
|
194
196
|
"data-scrollbar": e.current.showScrollbar,
|
|
195
197
|
ref: c,
|
|
196
198
|
role: "group",
|
|
@@ -204,43 +206,43 @@ function ge({
|
|
|
204
206
|
},
|
|
205
207
|
onTouchStart: J,
|
|
206
208
|
children: /* @__PURE__ */ l(
|
|
207
|
-
|
|
209
|
+
re,
|
|
208
210
|
{
|
|
209
211
|
fallback: /* @__PURE__ */ l(
|
|
210
212
|
"li",
|
|
211
213
|
{
|
|
212
|
-
className: g([
|
|
214
|
+
className: g([a["carousel__loading-slide"], "carousel__loading-slide"]),
|
|
213
215
|
role: "presentation",
|
|
214
216
|
style: { aspectRatio: "var(--_slide-aspect-ratio)", width: "100%" },
|
|
215
|
-
children: /* @__PURE__ */ l(
|
|
217
|
+
children: /* @__PURE__ */ l(ce, {})
|
|
216
218
|
}
|
|
217
219
|
),
|
|
218
220
|
children: T.length > 0 && T.map((t, n) => /* @__PURE__ */ l(
|
|
219
|
-
|
|
221
|
+
le,
|
|
220
222
|
{
|
|
221
223
|
currentIndex: e.current.wrapAround ? 1 : 0,
|
|
222
224
|
index: n,
|
|
223
225
|
slide: { ...t, ariaLabel: t.ariaLabel || "" },
|
|
224
226
|
variableHeight: e.current.variableHeight
|
|
225
227
|
},
|
|
226
|
-
`carousel${
|
|
228
|
+
`carousel${L}-slide${n}`
|
|
227
229
|
))
|
|
228
230
|
}
|
|
229
231
|
)
|
|
230
232
|
}
|
|
231
233
|
),
|
|
232
|
-
e.current.showControls &&
|
|
234
|
+
e.current.showControls && w.length > (e.current.cellsPerSlide ?? 1) && /* @__PURE__ */ j("div", { className: a["carousel-controls"], children: [
|
|
233
235
|
/* @__PURE__ */ l(
|
|
234
236
|
"button",
|
|
235
237
|
{
|
|
236
238
|
"aria-controls": h.current,
|
|
237
239
|
"aria-label": "Previous Item",
|
|
238
240
|
className: g([
|
|
239
|
-
|
|
240
|
-
|
|
241
|
+
a["carousel-controls__btn"],
|
|
242
|
+
a["carousel-controls__previous"],
|
|
241
243
|
"carousel-controls__previous"
|
|
242
244
|
]),
|
|
243
|
-
ref:
|
|
245
|
+
ref: S,
|
|
244
246
|
title: "Previous Item",
|
|
245
247
|
type: "button",
|
|
246
248
|
onClick: () => {
|
|
@@ -252,7 +254,7 @@ function ge({
|
|
|
252
254
|
onMouseLeave: () => {
|
|
253
255
|
e.current.autoplay && r.current !== null && r.current.startTimer();
|
|
254
256
|
},
|
|
255
|
-
children: /* @__PURE__ */ l("i", { "aria-hidden": "true", children: /* @__PURE__ */ l(
|
|
257
|
+
children: /* @__PURE__ */ l("i", { "aria-hidden": "true", children: /* @__PURE__ */ l(oe, { height: e.current.controlArrowSize, width: e.current.controlArrowSize }) })
|
|
256
258
|
}
|
|
257
259
|
),
|
|
258
260
|
/* @__PURE__ */ l(
|
|
@@ -260,7 +262,7 @@ function ge({
|
|
|
260
262
|
{
|
|
261
263
|
"aria-controls": h.current,
|
|
262
264
|
"aria-label": "Next Item",
|
|
263
|
-
className: g([
|
|
265
|
+
className: g([a["carousel-controls__btn"], a["carousel-controls__next"], "carousel-controls__next"]),
|
|
264
266
|
ref: $,
|
|
265
267
|
title: "Next Item",
|
|
266
268
|
type: "button",
|
|
@@ -273,14 +275,14 @@ function ge({
|
|
|
273
275
|
onMouseLeave: () => {
|
|
274
276
|
e.current.autoplay && r.current !== null && r.current.startTimer();
|
|
275
277
|
},
|
|
276
|
-
children: /* @__PURE__ */ l("i", { "aria-hidden": "true", children: /* @__PURE__ */ l(
|
|
278
|
+
children: /* @__PURE__ */ l("i", { "aria-hidden": "true", children: /* @__PURE__ */ l(se, { height: e.current.controlArrowSize, width: e.current.controlArrowSize }) })
|
|
277
279
|
}
|
|
278
280
|
)
|
|
279
281
|
] }),
|
|
280
|
-
e.current.showPagination && M.length > 1 && /* @__PURE__ */ l("div", { className: [
|
|
282
|
+
e.current.showPagination && M.length > 1 && /* @__PURE__ */ l("div", { className: [a["carousel-nav"], "carousel-nav"].join(" "), children: /* @__PURE__ */ l("ol", { className: a["carousel-nav__list"], ref: R, children: M.map((t, n) => /* @__PURE__ */ l(
|
|
281
283
|
"li",
|
|
282
284
|
{
|
|
283
|
-
className: g([
|
|
285
|
+
className: g([a["carousel-nav__item"], "carousel-nav__item"]),
|
|
284
286
|
"data-current": n === 0 ? "" : void 0,
|
|
285
287
|
title: `Navigate to slide ${n + 1}`,
|
|
286
288
|
onClick: () => {
|
|
@@ -294,6 +296,6 @@ function ge({
|
|
|
294
296
|
) });
|
|
295
297
|
}
|
|
296
298
|
export {
|
|
297
|
-
|
|
298
|
-
|
|
299
|
+
we as Carousel,
|
|
300
|
+
we as default
|
|
299
301
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { LogoCard as d } from "../../../LogoCard/LogoCard.js";
|
|
3
|
+
function i(r) {
|
|
4
|
+
return /* @__PURE__ */ o("div", { className: "logo-card-slide", children: /* @__PURE__ */ o(d, { ...r }) });
|
|
5
|
+
}
|
|
6
|
+
export {
|
|
7
|
+
i as LogoCardSlide,
|
|
8
|
+
i as default
|
|
9
|
+
};
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import { Empty as r } from "./Empty/Empty.js";
|
|
2
2
|
import { FigureSlide as m } from "./Figure/Figure.js";
|
|
3
|
-
import { ImageCardSlide as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { ImageCardSlide as l } from "./ImageCard/ImageCard.js";
|
|
4
|
+
import { LogoCardSlide as p } from "./LogoCard/LogoCard.js";
|
|
5
|
+
import { NetworkCalloutSlide as f } from "./NetworkCallout/NetworkCalloutSlide.js";
|
|
6
|
+
import { ShowSlide as a } from "./Show/ShowSlide.js";
|
|
7
|
+
import { TextSlide as g } from "./Text/TextSlide.js";
|
|
7
8
|
import { TwoColumnSlide as w } from "./TwoColumn/TwoColumnSlide.js";
|
|
8
|
-
import { VideoSlide as
|
|
9
|
+
import { VideoSlide as h } from "./Video/VideoSlide.js";
|
|
9
10
|
export {
|
|
10
11
|
r as Empty,
|
|
11
12
|
m as FigureSlide,
|
|
12
|
-
|
|
13
|
-
p as
|
|
14
|
-
f as
|
|
15
|
-
a as
|
|
13
|
+
l as ImageCardSlide,
|
|
14
|
+
p as LogoCardSlide,
|
|
15
|
+
f as NetworkCalloutSlide,
|
|
16
|
+
a as ShowSlide,
|
|
17
|
+
g as TextSlide,
|
|
16
18
|
w as TwoColumnSlide,
|
|
17
|
-
|
|
19
|
+
h as VideoSlide
|
|
18
20
|
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { p as
|
|
2
|
+
import { p as g } from "../../index-DrfkaNHX.mjs";
|
|
3
3
|
import { classes as t } from "../../utils/helpers.js";
|
|
4
4
|
import '../../assets/GenericList.css';const s = {
|
|
5
5
|
"generic-list": "_generic-list_15mbm_257",
|
|
6
6
|
"generic-list__item": "_generic-list__item_15mbm_264"
|
|
7
7
|
};
|
|
8
|
-
function
|
|
8
|
+
function p({
|
|
9
9
|
list: c = [],
|
|
10
10
|
type: _ = "unordered",
|
|
11
|
-
classname: e = ""
|
|
11
|
+
classname: e = "",
|
|
12
|
+
gap: o = "0.5rem"
|
|
12
13
|
}) {
|
|
13
14
|
const n = () => c.map((r, l) => /* @__PURE__ */ i(
|
|
14
15
|
"li",
|
|
@@ -18,7 +19,7 @@ function u({
|
|
|
18
19
|
"generic-list__item",
|
|
19
20
|
`${e}__item`
|
|
20
21
|
]),
|
|
21
|
-
children: typeof r == "string" && r !== "" ?
|
|
22
|
+
children: typeof r == "string" && r !== "" ? g(r) : r
|
|
22
23
|
},
|
|
23
24
|
e === "" ? `generic-list-${l}` : `${e}-${l}`
|
|
24
25
|
));
|
|
@@ -30,6 +31,7 @@ function u({
|
|
|
30
31
|
"generic-list",
|
|
31
32
|
`${e}`
|
|
32
33
|
]),
|
|
34
|
+
style: { gap: o },
|
|
33
35
|
children: n()
|
|
34
36
|
}
|
|
35
37
|
) : /* @__PURE__ */ i(
|
|
@@ -46,6 +48,6 @@ function u({
|
|
|
46
48
|
);
|
|
47
49
|
}
|
|
48
50
|
export {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
+
p as GenericList,
|
|
52
|
+
p as default
|
|
51
53
|
};
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import { classes as
|
|
3
|
-
import
|
|
2
|
+
import { classes as R } from "../../utils/helpers.js";
|
|
3
|
+
import v from "./ImageCardCore.js";
|
|
4
4
|
import '../../assets/ImageCard.css';const n = {
|
|
5
|
-
"image-card--clickable": "_image-card--
|
|
6
|
-
"image-card__img-wrapper": "_image-card__img-
|
|
7
|
-
"image-card--inline": "_image-card--
|
|
8
|
-
"image-card__image": "_image-
|
|
9
|
-
"image-card__mobile-image": "_image-card__mobile-
|
|
10
|
-
"image-card__play-icon": "_image-card__play-
|
|
11
|
-
"play-icon__triangle": "_play-
|
|
12
|
-
"image-card__content": "_image-
|
|
13
|
-
"image-card__cta-wrapper": "_image-card__cta-
|
|
14
|
-
"image-card__cta": "_image-
|
|
15
|
-
"image-card__overlay-content": "_image-card__overlay-
|
|
16
|
-
},
|
|
5
|
+
"image-card--clickable": "_image-card--clickable_1tnka_14",
|
|
6
|
+
"image-card__img-wrapper": "_image-card__img-wrapper_1tnka_18",
|
|
7
|
+
"image-card--inline": "_image-card--inline_1tnka_35",
|
|
8
|
+
"image-card__image": "_image-card__image_1tnka_39",
|
|
9
|
+
"image-card__mobile-image": "_image-card__mobile-image_1tnka_45",
|
|
10
|
+
"image-card__play-icon": "_image-card__play-icon_1tnka_77",
|
|
11
|
+
"play-icon__triangle": "_play-icon__triangle_1tnka_89",
|
|
12
|
+
"image-card__content": "_image-card__content_1tnka_111",
|
|
13
|
+
"image-card__cta-wrapper": "_image-card__cta-wrapper_1tnka_132",
|
|
14
|
+
"image-card__cta": "_image-card__cta_1tnka_132",
|
|
15
|
+
"image-card__overlay-content": "_image-card__overlay-content_1tnka_142"
|
|
16
|
+
}, N = ({
|
|
17
17
|
image: t = { url: "", altText: "", aspectRatio: 1, sources: [] },
|
|
18
18
|
mobileImage: g = { url: "", altText: "", aspectRatio: 1 },
|
|
19
19
|
fullSizeImagePosition: e = [50, 50],
|
|
20
|
-
mobileImagePosition:
|
|
21
|
-
clampContentLines:
|
|
22
|
-
numberOfLinesToClamp:
|
|
23
|
-
overlayPosition:
|
|
24
|
-
overlayTextColor:
|
|
25
|
-
relatedResourceId:
|
|
20
|
+
mobileImagePosition: a = [50, 50],
|
|
21
|
+
clampContentLines: l = !0,
|
|
22
|
+
numberOfLinesToClamp: y = 3,
|
|
23
|
+
overlayPosition: k = "left",
|
|
24
|
+
overlayTextColor: s = "#fff",
|
|
25
|
+
relatedResourceId: i = "",
|
|
26
26
|
cta: r = {
|
|
27
27
|
label: "",
|
|
28
28
|
href: "",
|
|
@@ -34,63 +34,63 @@ import '../../assets/ImageCard.css';const n = {
|
|
|
34
34
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
35
35
|
handleClicks: x = (u) => {
|
|
36
36
|
},
|
|
37
|
-
fullCardClickable:
|
|
37
|
+
fullCardClickable: _ = !1,
|
|
38
38
|
displayInline: d = !1,
|
|
39
39
|
classname: p = "",
|
|
40
40
|
ref: o,
|
|
41
|
-
...
|
|
41
|
+
...w
|
|
42
42
|
}) => {
|
|
43
43
|
const u = /* @__PURE__ */ new Map([
|
|
44
44
|
["left", "flex-start"],
|
|
45
45
|
["right", "flex-end"],
|
|
46
46
|
["center", "center"]
|
|
47
|
-
]), h = (
|
|
47
|
+
]), h = (T) => {
|
|
48
48
|
x({
|
|
49
49
|
type: "card-clicked",
|
|
50
50
|
ctaType: r == null ? void 0 : r.type,
|
|
51
|
-
resourceId:
|
|
51
|
+
resourceId: i,
|
|
52
52
|
resourceType: r.relatedResourceType,
|
|
53
|
-
target:
|
|
54
|
-
currentTarget:
|
|
53
|
+
target: T.target,
|
|
54
|
+
currentTarget: T.currentTarget
|
|
55
55
|
});
|
|
56
|
-
},
|
|
57
|
-
"--justify-overlay-content": u.get(
|
|
56
|
+
}, f = {
|
|
57
|
+
"--justify-overlay-content": u.get(k),
|
|
58
58
|
"--align-overlay-content": d ? "center" : "flex-end",
|
|
59
|
-
"--overlay-content-text-color":
|
|
60
|
-
"--content-line-clamp":
|
|
59
|
+
"--overlay-content-text-color": s,
|
|
60
|
+
"--content-line-clamp": l ? y : "unset",
|
|
61
61
|
"--image-aspect-ratio": t.aspectRatio,
|
|
62
62
|
"--mobile-image-aspect-ratio": g.aspectRatio,
|
|
63
63
|
"--background-image-position": `${(e == null ? void 0 : e[0]) ?? "50"}% ${(e == null ? void 0 : e[1]) ?? "50"}%`,
|
|
64
|
-
"--mobile-background-image-position": `${(
|
|
65
|
-
},
|
|
66
|
-
...
|
|
64
|
+
"--mobile-background-image-position": `${(a == null ? void 0 : a[0]) ?? "50"}% ${(a == null ? void 0 : a[1]) ?? "50"}%`
|
|
65
|
+
}, m = {
|
|
66
|
+
...w,
|
|
67
67
|
image: t,
|
|
68
68
|
mobileImage: g,
|
|
69
69
|
fullSizeImagePosition: e,
|
|
70
|
-
mobileImagePosition:
|
|
71
|
-
clampContentLines:
|
|
72
|
-
numberOfLinesToClamp:
|
|
73
|
-
overlayPosition:
|
|
74
|
-
overlayTextColor:
|
|
75
|
-
relatedResourceId:
|
|
70
|
+
mobileImagePosition: a,
|
|
71
|
+
clampContentLines: l,
|
|
72
|
+
numberOfLinesToClamp: y,
|
|
73
|
+
overlayPosition: k,
|
|
74
|
+
overlayTextColor: s,
|
|
75
|
+
relatedResourceId: i,
|
|
76
76
|
cta: r,
|
|
77
77
|
handleClicks: x,
|
|
78
|
-
fullCardClickable:
|
|
78
|
+
fullCardClickable: _,
|
|
79
79
|
displayInline: d,
|
|
80
80
|
classname: p
|
|
81
81
|
};
|
|
82
|
-
return
|
|
82
|
+
return _ && (r == null ? void 0 : r.href) !== "" && ((r == null ? void 0 : r.type) === "internal-link" || (r == null ? void 0 : r.type) === "external-link") ? /* @__PURE__ */ c(
|
|
83
83
|
"image-card",
|
|
84
84
|
{
|
|
85
|
-
class:
|
|
86
|
-
|
|
85
|
+
class: R([
|
|
86
|
+
_ ? n["image-card--clickable"] : null,
|
|
87
87
|
d ? n["image-card--inline"] : null,
|
|
88
88
|
p
|
|
89
89
|
]),
|
|
90
90
|
"data-cursor": "pointer",
|
|
91
91
|
ref: o,
|
|
92
|
-
style:
|
|
93
|
-
onClick:
|
|
92
|
+
style: f,
|
|
93
|
+
onClick: _ ? h : () => !0,
|
|
94
94
|
children: /* @__PURE__ */ c(
|
|
95
95
|
"a",
|
|
96
96
|
{
|
|
@@ -99,26 +99,26 @@ import '../../assets/ImageCard.css';const n = {
|
|
|
99
99
|
rel: r.type === "external-link" ? "noreferrer" : void 0,
|
|
100
100
|
target: r.type === "external-link" ? "_blank" : "_self",
|
|
101
101
|
title: t == null ? void 0 : t.altText,
|
|
102
|
-
children: /* @__PURE__ */ c(
|
|
102
|
+
children: /* @__PURE__ */ c(v, { ...m, styles: n })
|
|
103
103
|
}
|
|
104
104
|
)
|
|
105
105
|
}
|
|
106
106
|
) : /* @__PURE__ */ c(
|
|
107
107
|
"image-card",
|
|
108
108
|
{
|
|
109
|
-
class:
|
|
109
|
+
class: R([
|
|
110
110
|
d ? n["image-card--inline"] : null,
|
|
111
111
|
p
|
|
112
112
|
]),
|
|
113
|
-
"data-cursor":
|
|
113
|
+
"data-cursor": _ ? "pointer" : "default",
|
|
114
114
|
ref: o,
|
|
115
|
-
style:
|
|
116
|
-
onClick:
|
|
117
|
-
children: /* @__PURE__ */ c(
|
|
115
|
+
style: f,
|
|
116
|
+
onClick: _ ? h : () => !0,
|
|
117
|
+
children: /* @__PURE__ */ c(v, { ...m, styles: n })
|
|
118
118
|
}
|
|
119
119
|
);
|
|
120
120
|
};
|
|
121
121
|
export {
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
N as ImageCard,
|
|
123
|
+
N as default
|
|
124
124
|
};
|