@deriv-web-design/ui 0.0.22 → 0.0.25
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/index.css +71 -71
- package/dist/index.css.map +1 -1
- package/dist/index.js +126 -135
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +70 -79
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -217,11 +217,6 @@ var Tag = ({
|
|
|
217
217
|
|
|
218
218
|
// primitives/Accordion/Accordion.tsx
|
|
219
219
|
var import_react = require("react");
|
|
220
|
-
|
|
221
|
-
// primitives/Accordion/Accordion.module.css
|
|
222
|
-
var Accordion_default = {};
|
|
223
|
-
|
|
224
|
-
// primitives/Accordion/Accordion.tsx
|
|
225
220
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
226
221
|
var ChevronIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", { d: "M4 6l4 4 4-4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
227
222
|
var Accordion = ({
|
|
@@ -243,7 +238,7 @@ var Accordion = ({
|
|
|
243
238
|
if (!isControlled) setInternalOpen(next);
|
|
244
239
|
onToggle?.(next);
|
|
245
240
|
};
|
|
246
|
-
const classNames = [
|
|
241
|
+
const classNames = ["accordion", className ?? ""].filter(Boolean).join(" ");
|
|
247
242
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
248
243
|
"div",
|
|
249
244
|
{
|
|
@@ -256,17 +251,17 @@ var Accordion = ({
|
|
|
256
251
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
257
252
|
"button",
|
|
258
253
|
{
|
|
259
|
-
className:
|
|
254
|
+
className: "accordion__header",
|
|
260
255
|
onClick: handleToggle,
|
|
261
256
|
"aria-expanded": isOpen,
|
|
262
257
|
children: [
|
|
263
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className:
|
|
264
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: [
|
|
265
|
-
showFocusRing && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className:
|
|
258
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "accordion__title-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "accordion__title", children: title }) }),
|
|
259
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: ["accordion__chevron", isOpen ? "accordion__chevron--rotated" : ""].filter(Boolean).join(" "), children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ChevronIcon2, {}) }),
|
|
260
|
+
showFocusRing && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "accordion__focus-ring", "aria-hidden": "true" })
|
|
266
261
|
]
|
|
267
262
|
}
|
|
268
263
|
),
|
|
269
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: [
|
|
264
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: ["accordion__body-wrapper", isOpen ? "accordion__body-wrapper--open" : ""].filter(Boolean).join(" "), children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "accordion__body-inner", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "accordion__body", children }) }) })
|
|
270
265
|
]
|
|
271
266
|
}
|
|
272
267
|
);
|
|
@@ -1098,22 +1093,26 @@ var Tabs = ({
|
|
|
1098
1093
|
);
|
|
1099
1094
|
};
|
|
1100
1095
|
|
|
1101
|
-
// templates/FaqAccordion/FaqAccordion.module.css
|
|
1102
|
-
var FaqAccordion_default = {};
|
|
1103
|
-
|
|
1104
1096
|
// templates/FaqAccordion/FaqAccordion.tsx
|
|
1097
|
+
var import_react7 = require("react");
|
|
1105
1098
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1106
1099
|
var FaqAccordion = ({
|
|
1107
1100
|
title,
|
|
1108
1101
|
items,
|
|
1109
1102
|
colorScheme = "white"
|
|
1110
1103
|
}) => {
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1104
|
+
const [openIndex, setOpenIndex] = (0, import_react7.useState)(null);
|
|
1105
|
+
const handleToggle = (index) => (isOpen) => {
|
|
1106
|
+
setOpenIndex(isOpen ? index : null);
|
|
1107
|
+
};
|
|
1108
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("section", { className: ["faq-accordion", `faq-accordion--${colorScheme}`].join(" "), children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "faq-accordion__container", children: [
|
|
1109
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "faq-accordion__header", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("h2", { className: "faq-accordion__title", children: title }) }),
|
|
1110
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "faq-accordion__list", children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1114
1111
|
Accordion,
|
|
1115
1112
|
{
|
|
1116
1113
|
title: item.question,
|
|
1114
|
+
open: openIndex === index,
|
|
1115
|
+
onToggle: handleToggle(index),
|
|
1117
1116
|
showTopDivider: index === 0,
|
|
1118
1117
|
showBottomDivider: true,
|
|
1119
1118
|
children: item.answer
|
|
@@ -1340,12 +1339,9 @@ var FeatureCardsIcon = ({
|
|
|
1340
1339
|
] }) });
|
|
1341
1340
|
};
|
|
1342
1341
|
|
|
1343
|
-
// templates/FeatureBullets/FeatureBullets.module.css
|
|
1344
|
-
var FeatureBullets_default = {};
|
|
1345
|
-
|
|
1346
1342
|
// templates/FeatureBullets/FeatureBullets.tsx
|
|
1347
1343
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1348
|
-
var CheckIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", className:
|
|
1344
|
+
var CheckIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", className: "feature-bullets__icon", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("path", { d: "M12 4.375C9.07031 4.375 6.41406 5.9375 4.92969 8.4375C3.48438 10.9766 3.48438 14.0625 4.92969 16.5625C6.41406 19.1016 9.07031 20.625 12 20.625C14.8906 20.625 17.5469 19.1016 19.0312 16.5625C20.4766 14.0625 20.4766 10.9766 19.0312 8.4375C17.5469 5.9375 14.8906 4.375 12 4.375ZM12 22.5C8.40625 22.5 5.125 20.625 3.32812 17.5C1.53125 14.4141 1.53125 10.625 3.32812 7.5C5.125 4.41406 8.40625 2.5 12 2.5C15.5547 2.5 18.8359 4.41406 20.6328 7.5C22.4297 10.625 22.4297 14.4141 20.6328 17.5C18.8359 20.625 15.5547 22.5 12 22.5ZM16.4141 10.6641L11.4141 15.6641C11.0234 16.0547 10.4375 16.0547 10.0859 15.6641L7.58594 13.1641C7.19531 12.8125 7.19531 12.2266 7.58594 11.875C7.9375 11.4844 8.52344 11.4844 8.91406 11.875L10.75 13.7109L15.0859 9.375C15.4375 8.98438 16.0234 8.98438 16.4141 9.375C16.7656 9.72656 16.7656 10.3125 16.4141 10.6641Z", fill: "currentColor" }) });
|
|
1349
1345
|
var FeatureBullets = ({
|
|
1350
1346
|
title,
|
|
1351
1347
|
bullets,
|
|
@@ -1353,26 +1349,26 @@ var FeatureBullets = ({
|
|
|
1353
1349
|
imageAlt = "",
|
|
1354
1350
|
imagePosition = "right"
|
|
1355
1351
|
}) => {
|
|
1356
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("section", { className:
|
|
1352
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("section", { className: "feature-bullets", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "feature-bullets__container", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
1357
1353
|
"div",
|
|
1358
1354
|
{
|
|
1359
1355
|
className: [
|
|
1360
|
-
|
|
1361
|
-
imagePosition === "left" ?
|
|
1356
|
+
"feature-bullets__split",
|
|
1357
|
+
imagePosition === "left" ? "feature-bullets__split--image-left" : ""
|
|
1362
1358
|
].filter(Boolean).join(" "),
|
|
1363
1359
|
children: [
|
|
1364
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className:
|
|
1365
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("h2", { className:
|
|
1366
|
-
bullets && bullets.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className:
|
|
1367
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className:
|
|
1368
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className:
|
|
1360
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "feature-bullets__content", children: [
|
|
1361
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("h2", { className: "feature-bullets__title", children: title }),
|
|
1362
|
+
bullets && bullets.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "feature-bullets__bullet-list", children: bullets.map((bullet, i) => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "feature-bullets__bullet-item", children: [
|
|
1363
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "feature-bullets__icon-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(CheckIcon2, {}) }),
|
|
1364
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "feature-bullets__bullet-text", children: bullet })
|
|
1369
1365
|
] }, i)) })
|
|
1370
1366
|
] }),
|
|
1371
|
-
image && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className:
|
|
1367
|
+
image && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "feature-bullets__image-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1372
1368
|
"img",
|
|
1373
1369
|
{
|
|
1374
1370
|
alt: imageAlt,
|
|
1375
|
-
className:
|
|
1371
|
+
className: "feature-bullets__image",
|
|
1376
1372
|
src: image
|
|
1377
1373
|
}
|
|
1378
1374
|
) })
|
|
@@ -1382,7 +1378,7 @@ var FeatureBullets = ({
|
|
|
1382
1378
|
};
|
|
1383
1379
|
|
|
1384
1380
|
// components/Footer/Footer.tsx
|
|
1385
|
-
var
|
|
1381
|
+
var import_react8 = require("react");
|
|
1386
1382
|
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
1387
1383
|
var ExternalLinkIcon = () => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1388
1384
|
"svg",
|
|
@@ -1497,7 +1493,7 @@ var Footer = ({
|
|
|
1497
1493
|
...props
|
|
1498
1494
|
}) => {
|
|
1499
1495
|
const allSections = navColumns.flat();
|
|
1500
|
-
const [openSections, setOpenSections] = (0,
|
|
1496
|
+
const [openSections, setOpenSections] = (0, import_react8.useState)(/* @__PURE__ */ new Set());
|
|
1501
1497
|
const toggleSection = (index) => {
|
|
1502
1498
|
setOpenSections((prev) => {
|
|
1503
1499
|
const next = new Set(prev);
|
|
@@ -1862,7 +1858,7 @@ var Hero = ({
|
|
|
1862
1858
|
};
|
|
1863
1859
|
|
|
1864
1860
|
// templates/Header/Header.tsx
|
|
1865
|
-
var
|
|
1861
|
+
var import_react9 = require("react");
|
|
1866
1862
|
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1867
1863
|
var ButtonBlock2 = ({
|
|
1868
1864
|
primaryButton,
|
|
@@ -1919,10 +1915,10 @@ var Header = ({
|
|
|
1919
1915
|
...props
|
|
1920
1916
|
}) => {
|
|
1921
1917
|
const variantClass = `header--${variant}`;
|
|
1922
|
-
const sectionRef = (0,
|
|
1923
|
-
const leftRef = (0,
|
|
1924
|
-
const rightRef = (0,
|
|
1925
|
-
(0,
|
|
1918
|
+
const sectionRef = (0, import_react9.useRef)(null);
|
|
1919
|
+
const leftRef = (0, import_react9.useRef)(null);
|
|
1920
|
+
const rightRef = (0, import_react9.useRef)(null);
|
|
1921
|
+
(0, import_react9.useEffect)(() => {
|
|
1926
1922
|
if (variant !== "visuals") return;
|
|
1927
1923
|
if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
|
|
1928
1924
|
const section = sectionRef.current;
|
|
@@ -1984,7 +1980,7 @@ var Header = ({
|
|
|
1984
1980
|
};
|
|
1985
1981
|
|
|
1986
1982
|
// templates/Stats/Stats.tsx
|
|
1987
|
-
var
|
|
1983
|
+
var import_react10 = require("react");
|
|
1988
1984
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1989
1985
|
var INTERVAL_MS = 2e3;
|
|
1990
1986
|
var TRANSITION = "transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1)";
|
|
@@ -2022,16 +2018,16 @@ var Stats = ({
|
|
|
2022
2018
|
className,
|
|
2023
2019
|
...props
|
|
2024
2020
|
}) => {
|
|
2025
|
-
const [activeIndex, setActiveIndex] = (0,
|
|
2026
|
-
const intervalRef = (0,
|
|
2027
|
-
const sectionRef = (0,
|
|
2028
|
-
const leftColRef = (0,
|
|
2029
|
-
const rightColRef = (0,
|
|
2030
|
-
const rafRef = (0,
|
|
2021
|
+
const [activeIndex, setActiveIndex] = (0, import_react10.useState)(0);
|
|
2022
|
+
const intervalRef = (0, import_react10.useRef)(null);
|
|
2023
|
+
const sectionRef = (0, import_react10.useRef)(null);
|
|
2024
|
+
const leftColRef = (0, import_react10.useRef)(null);
|
|
2025
|
+
const rightColRef = (0, import_react10.useRef)(null);
|
|
2026
|
+
const rafRef = (0, import_react10.useRef)(null);
|
|
2031
2027
|
const hasAwards = leftAwards.length > 0 || rightAwards.length > 0;
|
|
2032
2028
|
const allAwards = [...leftAwards, ...rightAwards];
|
|
2033
2029
|
const total = stats.length;
|
|
2034
|
-
(0,
|
|
2030
|
+
(0, import_react10.useEffect)(() => {
|
|
2035
2031
|
if (total <= 1) return;
|
|
2036
2032
|
intervalRef.current = setInterval(() => {
|
|
2037
2033
|
setActiveIndex((prev) => (prev + 1) % total);
|
|
@@ -2040,7 +2036,7 @@ var Stats = ({
|
|
|
2040
2036
|
if (intervalRef.current) clearInterval(intervalRef.current);
|
|
2041
2037
|
};
|
|
2042
2038
|
}, [total]);
|
|
2043
|
-
(0,
|
|
2039
|
+
(0, import_react10.useEffect)(() => {
|
|
2044
2040
|
const applyParallax = () => {
|
|
2045
2041
|
const section = sectionRef.current;
|
|
2046
2042
|
if (!section || window.innerWidth < PARALLAX_BP) {
|
|
@@ -2115,10 +2111,10 @@ var Stats = ({
|
|
|
2115
2111
|
};
|
|
2116
2112
|
|
|
2117
2113
|
// templates/FeatureScroll/FeatureScroll.tsx
|
|
2118
|
-
var
|
|
2114
|
+
var import_react12 = require("react");
|
|
2119
2115
|
|
|
2120
2116
|
// components/DotLottieInView/DotLottieInView.tsx
|
|
2121
|
-
var
|
|
2117
|
+
var import_react11 = require("react");
|
|
2122
2118
|
var import_dotlottie_react = require("@lottiefiles/dotlottie-react");
|
|
2123
2119
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
2124
2120
|
function DotLottieInView({
|
|
@@ -2129,10 +2125,10 @@ function DotLottieInView({
|
|
|
2129
2125
|
style,
|
|
2130
2126
|
...dotProps
|
|
2131
2127
|
}) {
|
|
2132
|
-
const wrapRef = (0,
|
|
2133
|
-
const [inView, setInView] = (0,
|
|
2134
|
-
const [dotLottie, setDotLottie] = (0,
|
|
2135
|
-
(0,
|
|
2128
|
+
const wrapRef = (0, import_react11.useRef)(null);
|
|
2129
|
+
const [inView, setInView] = (0, import_react11.useState)(false);
|
|
2130
|
+
const [dotLottie, setDotLottie] = (0, import_react11.useState)(null);
|
|
2131
|
+
(0, import_react11.useEffect)(() => {
|
|
2136
2132
|
const el = wrapRef.current;
|
|
2137
2133
|
if (!el) return;
|
|
2138
2134
|
const observer = new IntersectionObserver(
|
|
@@ -2144,7 +2140,7 @@ function DotLottieInView({
|
|
|
2144
2140
|
observer.observe(el);
|
|
2145
2141
|
return () => observer.disconnect();
|
|
2146
2142
|
}, [rootMargin, threshold]);
|
|
2147
|
-
(0,
|
|
2143
|
+
(0, import_react11.useEffect)(() => {
|
|
2148
2144
|
if (!dotLottie) return;
|
|
2149
2145
|
if (!enabled || !inView) {
|
|
2150
2146
|
dotLottie.stop();
|
|
@@ -2278,10 +2274,10 @@ var FeatureScroll = ({
|
|
|
2278
2274
|
className,
|
|
2279
2275
|
...props
|
|
2280
2276
|
}) => {
|
|
2281
|
-
const [activeIndex, setActiveIndex] = (0,
|
|
2282
|
-
const titleRefs = (0,
|
|
2283
|
-
const mediaColRef = (0,
|
|
2284
|
-
(0,
|
|
2277
|
+
const [activeIndex, setActiveIndex] = (0, import_react12.useState)(0);
|
|
2278
|
+
const titleRefs = (0, import_react12.useRef)([]);
|
|
2279
|
+
const mediaColRef = (0, import_react12.useRef)(null);
|
|
2280
|
+
(0, import_react12.useLayoutEffect)(() => {
|
|
2285
2281
|
if (items.length === 0) return;
|
|
2286
2282
|
const readThresholdPx = () => {
|
|
2287
2283
|
const col = mediaColRef.current;
|
|
@@ -2414,7 +2410,7 @@ var FeatureScroll = ({
|
|
|
2414
2410
|
};
|
|
2415
2411
|
|
|
2416
2412
|
// templates/StickyStackedCards/StickyStackedCards.tsx
|
|
2417
|
-
var
|
|
2413
|
+
var import_react13 = require("react");
|
|
2418
2414
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
2419
2415
|
var PLACEHOLDER_IMAGE = "https://cdn.prod.website-files.com/68da5c86c91c54f39c86c28a/69b9309379ac08e59ca8210a_1f3f555da9a5cbb13a6fe1bf0d5fe1b6_placeholder-image.webp";
|
|
2420
2416
|
var STEPS_DATA = [
|
|
@@ -2444,8 +2440,8 @@ var StickyStackedCards = ({
|
|
|
2444
2440
|
className,
|
|
2445
2441
|
...props
|
|
2446
2442
|
}) => {
|
|
2447
|
-
const cardRefs = (0,
|
|
2448
|
-
(0,
|
|
2443
|
+
const cardRefs = (0, import_react13.useRef)([]);
|
|
2444
|
+
(0, import_react13.useEffect)(() => {
|
|
2449
2445
|
if (typeof window === "undefined") return;
|
|
2450
2446
|
let rafId = 0;
|
|
2451
2447
|
const update = () => {
|
|
@@ -2534,7 +2530,7 @@ var StickyStackedCards = ({
|
|
|
2534
2530
|
};
|
|
2535
2531
|
|
|
2536
2532
|
// templates/CTABanner/CTABanner.tsx
|
|
2537
|
-
var
|
|
2533
|
+
var import_react14 = require("react");
|
|
2538
2534
|
var import_framer_motion = require("framer-motion");
|
|
2539
2535
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
2540
2536
|
var ENTRANCE = {
|
|
@@ -2782,7 +2778,7 @@ var CTABanner = ({
|
|
|
2782
2778
|
...props
|
|
2783
2779
|
}) => {
|
|
2784
2780
|
const resolvedAvatars = avatars ?? (variant === "compact" ? COMPACT_AVATAR_DATA : AVATAR_DATA);
|
|
2785
|
-
const sectionRef = (0,
|
|
2781
|
+
const sectionRef = (0, import_react14.useRef)(null);
|
|
2786
2782
|
const { scrollYProgress } = (0, import_framer_motion.useScroll)({
|
|
2787
2783
|
target: sectionRef,
|
|
2788
2784
|
offset: ["start end", "end start"]
|
|
@@ -2869,7 +2865,7 @@ var CTABanner = ({
|
|
|
2869
2865
|
};
|
|
2870
2866
|
|
|
2871
2867
|
// components/Navbar/Navbar.tsx
|
|
2872
|
-
var
|
|
2868
|
+
var import_react15 = require("react");
|
|
2873
2869
|
var import_framer_motion2 = require("framer-motion");
|
|
2874
2870
|
|
|
2875
2871
|
// assets/icon-globe.svg
|
|
@@ -3107,24 +3103,24 @@ var Navbar = ({
|
|
|
3107
3103
|
className,
|
|
3108
3104
|
...props
|
|
3109
3105
|
}) => {
|
|
3110
|
-
const [openDropdown, setOpenDropdown] = (0,
|
|
3111
|
-
const [mobileOpen, setMobileOpen] = (0,
|
|
3112
|
-
const [mobileExpanded, setMobileExpanded] = (0,
|
|
3113
|
-
const [scrolled, setScrolled] = (0,
|
|
3114
|
-
const [langDropdownOpen, setLangDropdownOpen] = (0,
|
|
3115
|
-
const [mobileLangOpen, setMobileLangOpen] = (0,
|
|
3116
|
-
const hoverTimeoutRef = (0,
|
|
3117
|
-
const langHoverTimeoutRef = (0,
|
|
3118
|
-
const pillAreaRef = (0,
|
|
3119
|
-
const langBtnRef = (0,
|
|
3106
|
+
const [openDropdown, setOpenDropdown] = (0, import_react15.useState)(null);
|
|
3107
|
+
const [mobileOpen, setMobileOpen] = (0, import_react15.useState)(false);
|
|
3108
|
+
const [mobileExpanded, setMobileExpanded] = (0, import_react15.useState)(null);
|
|
3109
|
+
const [scrolled, setScrolled] = (0, import_react15.useState)(false);
|
|
3110
|
+
const [langDropdownOpen, setLangDropdownOpen] = (0, import_react15.useState)(false);
|
|
3111
|
+
const [mobileLangOpen, setMobileLangOpen] = (0, import_react15.useState)(false);
|
|
3112
|
+
const hoverTimeoutRef = (0, import_react15.useRef)(null);
|
|
3113
|
+
const langHoverTimeoutRef = (0, import_react15.useRef)(null);
|
|
3114
|
+
const pillAreaRef = (0, import_react15.useRef)(null);
|
|
3115
|
+
const langBtnRef = (0, import_react15.useRef)(null);
|
|
3120
3116
|
const hasLangDropdown = Boolean(languageItems && languageItems.length > 0);
|
|
3121
3117
|
const resolvedLogo = theme === "light" ? logoSrcDark ?? logoSrc : logoSrc;
|
|
3122
|
-
(0,
|
|
3118
|
+
(0, import_react15.useEffect)(() => {
|
|
3123
3119
|
const onScroll = () => setScrolled(window.scrollY > 0);
|
|
3124
3120
|
window.addEventListener("scroll", onScroll, { passive: true });
|
|
3125
3121
|
return () => window.removeEventListener("scroll", onScroll);
|
|
3126
3122
|
}, []);
|
|
3127
|
-
(0,
|
|
3123
|
+
(0, import_react15.useEffect)(() => {
|
|
3128
3124
|
const onKey = (e) => {
|
|
3129
3125
|
if (e.key === "Escape") {
|
|
3130
3126
|
setOpenDropdown(null);
|
|
@@ -3135,16 +3131,16 @@ var Navbar = ({
|
|
|
3135
3131
|
document.addEventListener("keydown", onKey);
|
|
3136
3132
|
return () => document.removeEventListener("keydown", onKey);
|
|
3137
3133
|
}, []);
|
|
3138
|
-
(0,
|
|
3134
|
+
(0, import_react15.useEffect)(() => {
|
|
3139
3135
|
if (!mobileOpen) setMobileLangOpen(false);
|
|
3140
3136
|
}, [mobileOpen]);
|
|
3141
|
-
(0,
|
|
3137
|
+
(0, import_react15.useEffect)(() => {
|
|
3142
3138
|
document.body.style.overflow = mobileOpen ? "hidden" : "";
|
|
3143
3139
|
return () => {
|
|
3144
3140
|
document.body.style.overflow = "";
|
|
3145
3141
|
};
|
|
3146
3142
|
}, [mobileOpen]);
|
|
3147
|
-
(0,
|
|
3143
|
+
(0, import_react15.useEffect)(() => {
|
|
3148
3144
|
if (!openDropdown) return;
|
|
3149
3145
|
const onPointerDown = (e) => {
|
|
3150
3146
|
if (pillAreaRef.current && !pillAreaRef.current.contains(e.target)) {
|
|
@@ -3154,36 +3150,36 @@ var Navbar = ({
|
|
|
3154
3150
|
document.addEventListener("pointerdown", onPointerDown);
|
|
3155
3151
|
return () => document.removeEventListener("pointerdown", onPointerDown);
|
|
3156
3152
|
}, [openDropdown]);
|
|
3157
|
-
const clearHoverTimeout = (0,
|
|
3153
|
+
const clearHoverTimeout = (0, import_react15.useCallback)(() => {
|
|
3158
3154
|
if (hoverTimeoutRef.current) {
|
|
3159
3155
|
clearTimeout(hoverTimeoutRef.current);
|
|
3160
3156
|
hoverTimeoutRef.current = null;
|
|
3161
3157
|
}
|
|
3162
3158
|
}, []);
|
|
3163
|
-
const clearLangHoverTimeout = (0,
|
|
3159
|
+
const clearLangHoverTimeout = (0, import_react15.useCallback)(() => {
|
|
3164
3160
|
if (langHoverTimeoutRef.current) {
|
|
3165
3161
|
clearTimeout(langHoverTimeoutRef.current);
|
|
3166
3162
|
langHoverTimeoutRef.current = null;
|
|
3167
3163
|
}
|
|
3168
3164
|
}, []);
|
|
3169
|
-
const handleLangEnter = (0,
|
|
3165
|
+
const handleLangEnter = (0, import_react15.useCallback)(() => {
|
|
3170
3166
|
clearLangHoverTimeout();
|
|
3171
3167
|
setLangDropdownOpen(true);
|
|
3172
3168
|
}, [clearLangHoverTimeout]);
|
|
3173
|
-
const handleLangLeave = (0,
|
|
3169
|
+
const handleLangLeave = (0, import_react15.useCallback)(() => {
|
|
3174
3170
|
clearLangHoverTimeout();
|
|
3175
3171
|
langHoverTimeoutRef.current = setTimeout(() => setLangDropdownOpen(false), 150);
|
|
3176
3172
|
}, [clearLangHoverTimeout]);
|
|
3177
|
-
const handleLangSelect = (0,
|
|
3173
|
+
const handleLangSelect = (0, import_react15.useCallback)((code) => {
|
|
3178
3174
|
setLangDropdownOpen(false);
|
|
3179
3175
|
setMobileLangOpen(false);
|
|
3180
3176
|
onLanguageSelect?.(code);
|
|
3181
3177
|
}, [onLanguageSelect]);
|
|
3182
|
-
const handleNavEnter = (0,
|
|
3178
|
+
const handleNavEnter = (0, import_react15.useCallback)((label) => {
|
|
3183
3179
|
clearHoverTimeout();
|
|
3184
3180
|
setOpenDropdown(label);
|
|
3185
3181
|
}, [clearHoverTimeout]);
|
|
3186
|
-
const handleNavLeave = (0,
|
|
3182
|
+
const handleNavLeave = (0, import_react15.useCallback)(() => {
|
|
3187
3183
|
clearHoverTimeout();
|
|
3188
3184
|
hoverTimeoutRef.current = setTimeout(() => setOpenDropdown(null), 120);
|
|
3189
3185
|
}, [clearHoverTimeout]);
|
|
@@ -3463,7 +3459,7 @@ var Navbar = ({
|
|
|
3463
3459
|
};
|
|
3464
3460
|
|
|
3465
3461
|
// templates/DayNightTransition/DayNightTransition.tsx
|
|
3466
|
-
var
|
|
3462
|
+
var import_react16 = require("react");
|
|
3467
3463
|
var import_framer_motion3 = require("framer-motion");
|
|
3468
3464
|
|
|
3469
3465
|
// templates/DayNightTransition/webflowDayNightV2Ix.ts
|
|
@@ -3572,13 +3568,13 @@ var DayNightTransition = ({
|
|
|
3572
3568
|
className,
|
|
3573
3569
|
...props
|
|
3574
3570
|
}) => {
|
|
3575
|
-
const wrapperRef = (0,
|
|
3576
|
-
const dayWordRef = (0,
|
|
3577
|
-
const [nightMarginStart, setNightMarginStart] = (0,
|
|
3578
|
-
const [nightMarginEnd, setNightMarginEnd] = (0,
|
|
3579
|
-
const [ixMedia, setIxMedia] = (0,
|
|
3571
|
+
const wrapperRef = (0, import_react16.useRef)(null);
|
|
3572
|
+
const dayWordRef = (0, import_react16.useRef)(null);
|
|
3573
|
+
const [nightMarginStart, setNightMarginStart] = (0, import_react16.useState)("0px");
|
|
3574
|
+
const [nightMarginEnd, setNightMarginEnd] = (0, import_react16.useState)("0px");
|
|
3575
|
+
const [ixMedia, setIxMedia] = (0, import_react16.useState)("desktop");
|
|
3580
3576
|
const webflowV2 = scrollPreset === "webflow-day-night-v2";
|
|
3581
|
-
(0,
|
|
3577
|
+
(0, import_react16.useEffect)(() => {
|
|
3582
3578
|
const mq = window.matchMedia("(max-width: 991px)");
|
|
3583
3579
|
const sync = () => setIxMedia(mq.matches ? "mobile" : "desktop");
|
|
3584
3580
|
sync();
|
|
@@ -3586,7 +3582,7 @@ var DayNightTransition = ({
|
|
|
3586
3582
|
return () => mq.removeEventListener("change", sync);
|
|
3587
3583
|
}, []);
|
|
3588
3584
|
const MotionHeadline = headlineLevel === "h1" ? import_framer_motion3.motion.h1 : import_framer_motion3.motion.h2;
|
|
3589
|
-
(0,
|
|
3585
|
+
(0, import_react16.useLayoutEffect)(() => {
|
|
3590
3586
|
if (!inlineDayNightHeadline) return;
|
|
3591
3587
|
const syncNightPull = () => {
|
|
3592
3588
|
const dayEl = dayWordRef.current;
|
|
@@ -3907,7 +3903,7 @@ var dayNightTransitionV2Preset = {
|
|
|
3907
3903
|
};
|
|
3908
3904
|
|
|
3909
3905
|
// templates/LogoMarquee/LogoMarquee.tsx
|
|
3910
|
-
var
|
|
3906
|
+
var import_react17 = require("react");
|
|
3911
3907
|
var import_framer_motion4 = require("framer-motion");
|
|
3912
3908
|
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
3913
3909
|
function modWrap(min, max, v) {
|
|
@@ -3966,8 +3962,8 @@ var LogoMarquee = ({
|
|
|
3966
3962
|
const scrollVelocity = (0, import_framer_motion4.useVelocity)(scrollY);
|
|
3967
3963
|
const col1Y = (0, import_framer_motion4.useMotionValue)(0);
|
|
3968
3964
|
const col2Y = (0, import_framer_motion4.useMotionValue)(0);
|
|
3969
|
-
const col1Ref = (0,
|
|
3970
|
-
const col2Ref = (0,
|
|
3965
|
+
const col1Ref = (0, import_react17.useRef)(null);
|
|
3966
|
+
const col2Ref = (0, import_react17.useRef)(null);
|
|
3971
3967
|
(0, import_framer_motion4.useAnimationFrame)((_, delta) => {
|
|
3972
3968
|
const raw = scrollVelocity.get();
|
|
3973
3969
|
if (Math.abs(raw) < DEADZONE) return;
|
|
@@ -4221,16 +4217,16 @@ var DownloadBanner = ({
|
|
|
4221
4217
|
};
|
|
4222
4218
|
|
|
4223
4219
|
// templates/TextScroll/TextScroll.tsx
|
|
4224
|
-
var
|
|
4220
|
+
var import_react18 = require("react");
|
|
4225
4221
|
var import_gsap = require("gsap");
|
|
4226
4222
|
var import_ScrollTrigger = require("gsap/ScrollTrigger");
|
|
4227
4223
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
4228
4224
|
import_gsap.gsap.registerPlugin(import_ScrollTrigger.ScrollTrigger);
|
|
4229
4225
|
var TextScroll = ({ text, className }) => {
|
|
4230
|
-
const sectionRef = (0,
|
|
4231
|
-
const wordsRef = (0,
|
|
4226
|
+
const sectionRef = (0, import_react18.useRef)(null);
|
|
4227
|
+
const wordsRef = (0, import_react18.useRef)([]);
|
|
4232
4228
|
const words = text.split(/\s+/).filter(Boolean);
|
|
4233
|
-
(0,
|
|
4229
|
+
(0, import_react18.useEffect)(() => {
|
|
4234
4230
|
const section = sectionRef.current;
|
|
4235
4231
|
const wordEls = wordsRef.current.filter(Boolean);
|
|
4236
4232
|
if (!section || wordEls.length === 0) return;
|
|
@@ -4289,7 +4285,7 @@ var TextScroll = ({ text, className }) => {
|
|
|
4289
4285
|
};
|
|
4290
4286
|
|
|
4291
4287
|
// templates/StickyMarketCards/StickyMarketCards.tsx
|
|
4292
|
-
var
|
|
4288
|
+
var import_react19 = require("react");
|
|
4293
4289
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
4294
4290
|
var PLACEHOLDER_IMAGE3 = "https://cdn.prod.website-files.com/68da5c86c91c54f39c86c28a/69b9309379ac08e59ca8210a_1f3f555da9a5cbb13a6fe1bf0d5fe1b6_placeholder-image.webp";
|
|
4295
4291
|
var StickyMarketCards = ({
|
|
@@ -4299,9 +4295,9 @@ var StickyMarketCards = ({
|
|
|
4299
4295
|
className,
|
|
4300
4296
|
...props
|
|
4301
4297
|
}) => {
|
|
4302
|
-
const cardRefs = (0,
|
|
4303
|
-
const cardInnerRefs = (0,
|
|
4304
|
-
(0,
|
|
4298
|
+
const cardRefs = (0, import_react19.useRef)([]);
|
|
4299
|
+
const cardInnerRefs = (0, import_react19.useRef)([]);
|
|
4300
|
+
(0, import_react19.useEffect)(() => {
|
|
4305
4301
|
if (typeof window === "undefined") return;
|
|
4306
4302
|
let rafId = 0;
|
|
4307
4303
|
const update = () => {
|
|
@@ -4342,7 +4338,7 @@ var StickyMarketCards = ({
|
|
|
4342
4338
|
cancelAnimationFrame(rafId);
|
|
4343
4339
|
};
|
|
4344
4340
|
}, [items.length]);
|
|
4345
|
-
(0,
|
|
4341
|
+
(0, import_react19.useEffect)(() => {
|
|
4346
4342
|
if (typeof window === "undefined") return;
|
|
4347
4343
|
const syncHeights = () => {
|
|
4348
4344
|
const inners = cardInnerRefs.current.filter(Boolean);
|
|
@@ -4443,7 +4439,7 @@ var StickyMarketCards = ({
|
|
|
4443
4439
|
};
|
|
4444
4440
|
|
|
4445
4441
|
// templates/Table/Table.tsx
|
|
4446
|
-
var
|
|
4442
|
+
var import_react20 = require("react");
|
|
4447
4443
|
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
4448
4444
|
var InfoIcon = ({ className }) => /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", className, children: [
|
|
4449
4445
|
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("circle", { cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "1.5" }),
|
|
@@ -4461,11 +4457,11 @@ var Table = ({
|
|
|
4461
4457
|
className,
|
|
4462
4458
|
...props
|
|
4463
4459
|
}) => {
|
|
4464
|
-
const [search, setSearch] = (0,
|
|
4465
|
-
const [page, setPage] = (0,
|
|
4466
|
-
const [tooltip, setTooltip] = (0,
|
|
4460
|
+
const [search, setSearch] = (0, import_react20.useState)("");
|
|
4461
|
+
const [page, setPage] = (0, import_react20.useState)(1);
|
|
4462
|
+
const [tooltip, setTooltip] = (0, import_react20.useState)({ visible: false, heading: "", description: "", x: 0, y: 0, arrowOffset: 0 });
|
|
4467
4463
|
const mainKey = mainColumnKey ?? columns.find((c) => c.width === "main")?.key ?? columns[0]?.key;
|
|
4468
|
-
const filtered = (0,
|
|
4464
|
+
const filtered = (0, import_react20.useMemo)(() => {
|
|
4469
4465
|
const q = search.trim().toLowerCase();
|
|
4470
4466
|
if (!q) return rows;
|
|
4471
4467
|
return rows.filter(
|
|
@@ -4633,29 +4629,24 @@ var Table = ({
|
|
|
4633
4629
|
};
|
|
4634
4630
|
|
|
4635
4631
|
// templates/Leaders/Leaders.tsx
|
|
4636
|
-
var
|
|
4637
|
-
|
|
4638
|
-
// templates/Leaders/Leaders.module.css
|
|
4639
|
-
var Leaders_default = {};
|
|
4640
|
-
|
|
4641
|
-
// templates/Leaders/Leaders.tsx
|
|
4632
|
+
var import_react21 = require("react");
|
|
4642
4633
|
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
4643
4634
|
var LinkedInIcon = () => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("path", { d: "M14.816 0H1.18C0.528 0 0 0.516 0 1.153V14.846C0 15.484 0.528 16 1.18 16H14.816C15.468 16 16 15.484 16 14.846V1.153C16 0.516 15.468 0 14.816 0ZM4.744 13.642H2.368V5.996H4.744V13.642ZM3.556 4.952C2.796 4.952 2.18 4.336 2.18 3.576C2.18 2.816 2.796 2.2 3.556 2.2C4.316 2.2 4.932 2.816 4.932 3.576C4.932 4.336 4.316 4.952 3.556 4.952ZM13.642 13.642H11.266V9.924C11.266 9.038 11.25 7.896 10.032 7.896C8.814 7.896 8.626 8.846 8.626 9.86V13.642H6.25V5.996H8.53V7.04H8.562C8.88 6.44 9.534 5.806 10.686 5.806C12.958 5.806 13.642 7.3 13.642 9.386V13.642Z", fill: "currentColor" }) });
|
|
4644
4635
|
var ChevronDownIcon4 = () => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("path", { d: "M4 6L8 10L12 6", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
4645
4636
|
var ChevronUpIcon = () => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("path", { d: "M12 10L8 6L4 10", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
4646
4637
|
var CardContent = ({ item }) => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
|
|
4647
|
-
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className:
|
|
4638
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "leaders__image-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4648
4639
|
"img",
|
|
4649
4640
|
{
|
|
4650
4641
|
src: item.imageUrl,
|
|
4651
4642
|
alt: item.name,
|
|
4652
|
-
className:
|
|
4643
|
+
className: "leaders__image",
|
|
4653
4644
|
loading: "lazy"
|
|
4654
4645
|
}
|
|
4655
4646
|
) }),
|
|
4656
|
-
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className:
|
|
4657
|
-
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("h3", { className:
|
|
4658
|
-
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className:
|
|
4647
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "leaders__content", children: [
|
|
4648
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("h3", { className: "leaders__name", children: item.name }),
|
|
4649
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "leaders__role", children: item.role })
|
|
4659
4650
|
] }),
|
|
4660
4651
|
item.linkedinUrl && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4661
4652
|
Link,
|
|
@@ -4667,7 +4658,7 @@ var CardContent = ({ item }) => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(i
|
|
|
4667
4658
|
label: "LinkedIn",
|
|
4668
4659
|
colorScheme: "black",
|
|
4669
4660
|
showChevron: false,
|
|
4670
|
-
className:
|
|
4661
|
+
className: "leaders__link"
|
|
4671
4662
|
}
|
|
4672
4663
|
)
|
|
4673
4664
|
] });
|
|
@@ -4680,29 +4671,29 @@ var Leaders = ({
|
|
|
4680
4671
|
className,
|
|
4681
4672
|
...props
|
|
4682
4673
|
}) => {
|
|
4683
|
-
const [isExpanded, setIsExpanded] = (0,
|
|
4674
|
+
const [isExpanded, setIsExpanded] = (0, import_react21.useState)(false);
|
|
4684
4675
|
const hasMore = items.length > initialVisibleCount;
|
|
4685
4676
|
const visibleItems = items.slice(0, initialVisibleCount);
|
|
4686
4677
|
const extraItems = items.slice(initialVisibleCount);
|
|
4687
|
-
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("section", { className: [
|
|
4688
|
-
title && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className:
|
|
4689
|
-
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className:
|
|
4690
|
-
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className:
|
|
4678
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("section", { className: ["leaders", className].filter(Boolean).join(" "), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "leaders__container", children: [
|
|
4679
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "leaders__header", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("h2", { className: "leaders__title", children: title }) }),
|
|
4680
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "leaders__grid-wrapper", children: [
|
|
4681
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "leaders__grid", children: visibleItems.map((item, i) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "leaders__card", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(CardContent, { item }) }, i)) }),
|
|
4691
4682
|
hasMore && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4692
4683
|
"div",
|
|
4693
4684
|
{
|
|
4694
4685
|
className: [
|
|
4695
|
-
|
|
4696
|
-
isExpanded ?
|
|
4686
|
+
"leaders__extra-cards",
|
|
4687
|
+
isExpanded ? "leaders__extra-cards--open" : ""
|
|
4697
4688
|
].join(" "),
|
|
4698
4689
|
"aria-hidden": !isExpanded,
|
|
4699
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className:
|
|
4690
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "leaders__extra-grid", children: extraItems.map((item, i) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4700
4691
|
"div",
|
|
4701
4692
|
{
|
|
4702
4693
|
className: [
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
isExpanded ?
|
|
4694
|
+
"leaders__card",
|
|
4695
|
+
"leaders__extra-card",
|
|
4696
|
+
isExpanded ? "leaders__extra-card--visible" : ""
|
|
4706
4697
|
].join(" "),
|
|
4707
4698
|
style: {
|
|
4708
4699
|
transitionDelay: isExpanded ? `${i * 70 + 120}ms` : "0ms"
|
|
@@ -4714,7 +4705,7 @@ var Leaders = ({
|
|
|
4714
4705
|
}
|
|
4715
4706
|
)
|
|
4716
4707
|
] }),
|
|
4717
|
-
hasMore && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className:
|
|
4708
|
+
hasMore && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "leaders__actions", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4718
4709
|
Button,
|
|
4719
4710
|
{
|
|
4720
4711
|
variant: "secondary",
|