@deriv-web-design/ui 0.0.22 → 0.0.24
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 +37 -53
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +37 -53
- 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,9 +1093,6 @@ 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
|
|
1105
1097
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1106
1098
|
var FaqAccordion = ({
|
|
@@ -1108,9 +1100,9 @@ var FaqAccordion = ({
|
|
|
1108
1100
|
items,
|
|
1109
1101
|
colorScheme = "white"
|
|
1110
1102
|
}) => {
|
|
1111
|
-
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("section", { className: [
|
|
1112
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className:
|
|
1113
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className:
|
|
1103
|
+
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: [
|
|
1104
|
+
/* @__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 }) }),
|
|
1105
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "faq-accordion__list", children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1114
1106
|
Accordion,
|
|
1115
1107
|
{
|
|
1116
1108
|
title: item.question,
|
|
@@ -1340,12 +1332,9 @@ var FeatureCardsIcon = ({
|
|
|
1340
1332
|
] }) });
|
|
1341
1333
|
};
|
|
1342
1334
|
|
|
1343
|
-
// templates/FeatureBullets/FeatureBullets.module.css
|
|
1344
|
-
var FeatureBullets_default = {};
|
|
1345
|
-
|
|
1346
1335
|
// templates/FeatureBullets/FeatureBullets.tsx
|
|
1347
1336
|
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:
|
|
1337
|
+
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
1338
|
var FeatureBullets = ({
|
|
1350
1339
|
title,
|
|
1351
1340
|
bullets,
|
|
@@ -1353,26 +1342,26 @@ var FeatureBullets = ({
|
|
|
1353
1342
|
imageAlt = "",
|
|
1354
1343
|
imagePosition = "right"
|
|
1355
1344
|
}) => {
|
|
1356
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("section", { className:
|
|
1345
|
+
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
1346
|
"div",
|
|
1358
1347
|
{
|
|
1359
1348
|
className: [
|
|
1360
|
-
|
|
1361
|
-
imagePosition === "left" ?
|
|
1349
|
+
"feature-bullets__split",
|
|
1350
|
+
imagePosition === "left" ? "feature-bullets__split--image-left" : ""
|
|
1362
1351
|
].filter(Boolean).join(" "),
|
|
1363
1352
|
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:
|
|
1353
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "feature-bullets__content", children: [
|
|
1354
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("h2", { className: "feature-bullets__title", children: title }),
|
|
1355
|
+
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: [
|
|
1356
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "feature-bullets__icon-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(CheckIcon2, {}) }),
|
|
1357
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "feature-bullets__bullet-text", children: bullet })
|
|
1369
1358
|
] }, i)) })
|
|
1370
1359
|
] }),
|
|
1371
|
-
image && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className:
|
|
1360
|
+
image && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "feature-bullets__image-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1372
1361
|
"img",
|
|
1373
1362
|
{
|
|
1374
1363
|
alt: imageAlt,
|
|
1375
|
-
className:
|
|
1364
|
+
className: "feature-bullets__image",
|
|
1376
1365
|
src: image
|
|
1377
1366
|
}
|
|
1378
1367
|
) })
|
|
@@ -4634,28 +4623,23 @@ var Table = ({
|
|
|
4634
4623
|
|
|
4635
4624
|
// templates/Leaders/Leaders.tsx
|
|
4636
4625
|
var import_react20 = require("react");
|
|
4637
|
-
|
|
4638
|
-
// templates/Leaders/Leaders.module.css
|
|
4639
|
-
var Leaders_default = {};
|
|
4640
|
-
|
|
4641
|
-
// templates/Leaders/Leaders.tsx
|
|
4642
4626
|
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
4643
4627
|
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
4628
|
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
4629
|
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
4630
|
var CardContent = ({ item }) => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
|
|
4647
|
-
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className:
|
|
4631
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "leaders__image-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4648
4632
|
"img",
|
|
4649
4633
|
{
|
|
4650
4634
|
src: item.imageUrl,
|
|
4651
4635
|
alt: item.name,
|
|
4652
|
-
className:
|
|
4636
|
+
className: "leaders__image",
|
|
4653
4637
|
loading: "lazy"
|
|
4654
4638
|
}
|
|
4655
4639
|
) }),
|
|
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:
|
|
4640
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "leaders__content", children: [
|
|
4641
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("h3", { className: "leaders__name", children: item.name }),
|
|
4642
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "leaders__role", children: item.role })
|
|
4659
4643
|
] }),
|
|
4660
4644
|
item.linkedinUrl && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4661
4645
|
Link,
|
|
@@ -4667,7 +4651,7 @@ var CardContent = ({ item }) => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(i
|
|
|
4667
4651
|
label: "LinkedIn",
|
|
4668
4652
|
colorScheme: "black",
|
|
4669
4653
|
showChevron: false,
|
|
4670
|
-
className:
|
|
4654
|
+
className: "leaders__link"
|
|
4671
4655
|
}
|
|
4672
4656
|
)
|
|
4673
4657
|
] });
|
|
@@ -4684,25 +4668,25 @@ var Leaders = ({
|
|
|
4684
4668
|
const hasMore = items.length > initialVisibleCount;
|
|
4685
4669
|
const visibleItems = items.slice(0, initialVisibleCount);
|
|
4686
4670
|
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:
|
|
4671
|
+
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: [
|
|
4672
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "leaders__header", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("h2", { className: "leaders__title", children: title }) }),
|
|
4673
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "leaders__grid-wrapper", children: [
|
|
4674
|
+
/* @__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
4675
|
hasMore && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4692
4676
|
"div",
|
|
4693
4677
|
{
|
|
4694
4678
|
className: [
|
|
4695
|
-
|
|
4696
|
-
isExpanded ?
|
|
4679
|
+
"leaders__extra-cards",
|
|
4680
|
+
isExpanded ? "leaders__extra-cards--open" : ""
|
|
4697
4681
|
].join(" "),
|
|
4698
4682
|
"aria-hidden": !isExpanded,
|
|
4699
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className:
|
|
4683
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "leaders__extra-grid", children: extraItems.map((item, i) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4700
4684
|
"div",
|
|
4701
4685
|
{
|
|
4702
4686
|
className: [
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
isExpanded ?
|
|
4687
|
+
"leaders__card",
|
|
4688
|
+
"leaders__extra-card",
|
|
4689
|
+
isExpanded ? "leaders__extra-card--visible" : ""
|
|
4706
4690
|
].join(" "),
|
|
4707
4691
|
style: {
|
|
4708
4692
|
transitionDelay: isExpanded ? `${i * 70 + 120}ms` : "0ms"
|
|
@@ -4714,7 +4698,7 @@ var Leaders = ({
|
|
|
4714
4698
|
}
|
|
4715
4699
|
)
|
|
4716
4700
|
] }),
|
|
4717
|
-
hasMore && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className:
|
|
4701
|
+
hasMore && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "leaders__actions", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4718
4702
|
Button,
|
|
4719
4703
|
{
|
|
4720
4704
|
variant: "secondary",
|