@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.mjs
CHANGED
|
@@ -150,11 +150,6 @@ var Tag = ({
|
|
|
150
150
|
|
|
151
151
|
// primitives/Accordion/Accordion.tsx
|
|
152
152
|
import { useState } from "react";
|
|
153
|
-
|
|
154
|
-
// primitives/Accordion/Accordion.module.css
|
|
155
|
-
var Accordion_default = {};
|
|
156
|
-
|
|
157
|
-
// primitives/Accordion/Accordion.tsx
|
|
158
153
|
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
159
154
|
var ChevronIcon2 = () => /* @__PURE__ */ jsx5("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: /* @__PURE__ */ jsx5("path", { d: "M4 6l4 4 4-4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
160
155
|
var Accordion = ({
|
|
@@ -176,7 +171,7 @@ var Accordion = ({
|
|
|
176
171
|
if (!isControlled) setInternalOpen(next);
|
|
177
172
|
onToggle?.(next);
|
|
178
173
|
};
|
|
179
|
-
const classNames = [
|
|
174
|
+
const classNames = ["accordion", className ?? ""].filter(Boolean).join(" ");
|
|
180
175
|
return /* @__PURE__ */ jsxs5(
|
|
181
176
|
"div",
|
|
182
177
|
{
|
|
@@ -189,17 +184,17 @@ var Accordion = ({
|
|
|
189
184
|
/* @__PURE__ */ jsxs5(
|
|
190
185
|
"button",
|
|
191
186
|
{
|
|
192
|
-
className:
|
|
187
|
+
className: "accordion__header",
|
|
193
188
|
onClick: handleToggle,
|
|
194
189
|
"aria-expanded": isOpen,
|
|
195
190
|
children: [
|
|
196
|
-
/* @__PURE__ */ jsx5("span", { className:
|
|
197
|
-
/* @__PURE__ */ jsx5("span", { className: [
|
|
198
|
-
showFocusRing && /* @__PURE__ */ jsx5("span", { className:
|
|
191
|
+
/* @__PURE__ */ jsx5("span", { className: "accordion__title-wrapper", children: /* @__PURE__ */ jsx5("span", { className: "accordion__title", children: title }) }),
|
|
192
|
+
/* @__PURE__ */ jsx5("span", { className: ["accordion__chevron", isOpen ? "accordion__chevron--rotated" : ""].filter(Boolean).join(" "), children: /* @__PURE__ */ jsx5(ChevronIcon2, {}) }),
|
|
193
|
+
showFocusRing && /* @__PURE__ */ jsx5("span", { className: "accordion__focus-ring", "aria-hidden": "true" })
|
|
199
194
|
]
|
|
200
195
|
}
|
|
201
196
|
),
|
|
202
|
-
/* @__PURE__ */ jsx5("div", { className: [
|
|
197
|
+
/* @__PURE__ */ jsx5("div", { className: ["accordion__body-wrapper", isOpen ? "accordion__body-wrapper--open" : ""].filter(Boolean).join(" "), children: /* @__PURE__ */ jsx5("div", { className: "accordion__body-inner", children: /* @__PURE__ */ jsx5("div", { className: "accordion__body", children }) }) })
|
|
203
198
|
]
|
|
204
199
|
}
|
|
205
200
|
);
|
|
@@ -1031,9 +1026,6 @@ var Tabs = ({
|
|
|
1031
1026
|
);
|
|
1032
1027
|
};
|
|
1033
1028
|
|
|
1034
|
-
// templates/FaqAccordion/FaqAccordion.module.css
|
|
1035
|
-
var FaqAccordion_default = {};
|
|
1036
|
-
|
|
1037
1029
|
// templates/FaqAccordion/FaqAccordion.tsx
|
|
1038
1030
|
import { jsx as jsx17, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1039
1031
|
var FaqAccordion = ({
|
|
@@ -1041,9 +1033,9 @@ var FaqAccordion = ({
|
|
|
1041
1033
|
items,
|
|
1042
1034
|
colorScheme = "white"
|
|
1043
1035
|
}) => {
|
|
1044
|
-
return /* @__PURE__ */ jsx17("section", { className: [
|
|
1045
|
-
/* @__PURE__ */ jsx17("div", { className:
|
|
1046
|
-
/* @__PURE__ */ jsx17("div", { className:
|
|
1036
|
+
return /* @__PURE__ */ jsx17("section", { className: ["faq-accordion", `faq-accordion--${colorScheme}`].join(" "), children: /* @__PURE__ */ jsxs15("div", { className: "faq-accordion__container", children: [
|
|
1037
|
+
/* @__PURE__ */ jsx17("div", { className: "faq-accordion__header", children: /* @__PURE__ */ jsx17("h2", { className: "faq-accordion__title", children: title }) }),
|
|
1038
|
+
/* @__PURE__ */ jsx17("div", { className: "faq-accordion__list", children: items.map((item, index) => /* @__PURE__ */ jsx17(
|
|
1047
1039
|
Accordion,
|
|
1048
1040
|
{
|
|
1049
1041
|
title: item.question,
|
|
@@ -1273,12 +1265,9 @@ var FeatureCardsIcon = ({
|
|
|
1273
1265
|
] }) });
|
|
1274
1266
|
};
|
|
1275
1267
|
|
|
1276
|
-
// templates/FeatureBullets/FeatureBullets.module.css
|
|
1277
|
-
var FeatureBullets_default = {};
|
|
1278
|
-
|
|
1279
1268
|
// templates/FeatureBullets/FeatureBullets.tsx
|
|
1280
1269
|
import { jsx as jsx20, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
1281
|
-
var CheckIcon2 = () => /* @__PURE__ */ jsx20("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", className:
|
|
1270
|
+
var CheckIcon2 = () => /* @__PURE__ */ jsx20("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__ */ jsx20("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" }) });
|
|
1282
1271
|
var FeatureBullets = ({
|
|
1283
1272
|
title,
|
|
1284
1273
|
bullets,
|
|
@@ -1286,26 +1275,26 @@ var FeatureBullets = ({
|
|
|
1286
1275
|
imageAlt = "",
|
|
1287
1276
|
imagePosition = "right"
|
|
1288
1277
|
}) => {
|
|
1289
|
-
return /* @__PURE__ */ jsx20("section", { className:
|
|
1278
|
+
return /* @__PURE__ */ jsx20("section", { className: "feature-bullets", children: /* @__PURE__ */ jsx20("div", { className: "feature-bullets__container", children: /* @__PURE__ */ jsxs18(
|
|
1290
1279
|
"div",
|
|
1291
1280
|
{
|
|
1292
1281
|
className: [
|
|
1293
|
-
|
|
1294
|
-
imagePosition === "left" ?
|
|
1282
|
+
"feature-bullets__split",
|
|
1283
|
+
imagePosition === "left" ? "feature-bullets__split--image-left" : ""
|
|
1295
1284
|
].filter(Boolean).join(" "),
|
|
1296
1285
|
children: [
|
|
1297
|
-
/* @__PURE__ */ jsxs18("div", { className:
|
|
1298
|
-
/* @__PURE__ */ jsx20("h2", { className:
|
|
1299
|
-
bullets && bullets.length > 0 && /* @__PURE__ */ jsx20("div", { className:
|
|
1300
|
-
/* @__PURE__ */ jsx20("div", { className:
|
|
1301
|
-
/* @__PURE__ */ jsx20("p", { className:
|
|
1286
|
+
/* @__PURE__ */ jsxs18("div", { className: "feature-bullets__content", children: [
|
|
1287
|
+
/* @__PURE__ */ jsx20("h2", { className: "feature-bullets__title", children: title }),
|
|
1288
|
+
bullets && bullets.length > 0 && /* @__PURE__ */ jsx20("div", { className: "feature-bullets__bullet-list", children: bullets.map((bullet, i) => /* @__PURE__ */ jsxs18("div", { className: "feature-bullets__bullet-item", children: [
|
|
1289
|
+
/* @__PURE__ */ jsx20("div", { className: "feature-bullets__icon-wrapper", children: /* @__PURE__ */ jsx20(CheckIcon2, {}) }),
|
|
1290
|
+
/* @__PURE__ */ jsx20("p", { className: "feature-bullets__bullet-text", children: bullet })
|
|
1302
1291
|
] }, i)) })
|
|
1303
1292
|
] }),
|
|
1304
|
-
image && /* @__PURE__ */ jsx20("div", { className:
|
|
1293
|
+
image && /* @__PURE__ */ jsx20("div", { className: "feature-bullets__image-wrapper", children: /* @__PURE__ */ jsx20(
|
|
1305
1294
|
"img",
|
|
1306
1295
|
{
|
|
1307
1296
|
alt: imageAlt,
|
|
1308
|
-
className:
|
|
1297
|
+
className: "feature-bullets__image",
|
|
1309
1298
|
src: image
|
|
1310
1299
|
}
|
|
1311
1300
|
) })
|
|
@@ -4585,28 +4574,23 @@ var Table = ({
|
|
|
4585
4574
|
|
|
4586
4575
|
// templates/Leaders/Leaders.tsx
|
|
4587
4576
|
import { useState as useState12 } from "react";
|
|
4588
|
-
|
|
4589
|
-
// templates/Leaders/Leaders.module.css
|
|
4590
|
-
var Leaders_default = {};
|
|
4591
|
-
|
|
4592
|
-
// templates/Leaders/Leaders.tsx
|
|
4593
4577
|
import { Fragment as Fragment5, jsx as jsx38, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
4594
4578
|
var LinkedInIcon = () => /* @__PURE__ */ jsx38("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: /* @__PURE__ */ jsx38("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" }) });
|
|
4595
4579
|
var ChevronDownIcon4 = () => /* @__PURE__ */ jsx38("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: /* @__PURE__ */ jsx38("path", { d: "M4 6L8 10L12 6", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
4596
4580
|
var ChevronUpIcon = () => /* @__PURE__ */ jsx38("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: /* @__PURE__ */ jsx38("path", { d: "M12 10L8 6L4 10", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
4597
4581
|
var CardContent = ({ item }) => /* @__PURE__ */ jsxs34(Fragment5, { children: [
|
|
4598
|
-
/* @__PURE__ */ jsx38("div", { className:
|
|
4582
|
+
/* @__PURE__ */ jsx38("div", { className: "leaders__image-wrapper", children: /* @__PURE__ */ jsx38(
|
|
4599
4583
|
"img",
|
|
4600
4584
|
{
|
|
4601
4585
|
src: item.imageUrl,
|
|
4602
4586
|
alt: item.name,
|
|
4603
|
-
className:
|
|
4587
|
+
className: "leaders__image",
|
|
4604
4588
|
loading: "lazy"
|
|
4605
4589
|
}
|
|
4606
4590
|
) }),
|
|
4607
|
-
/* @__PURE__ */ jsxs34("div", { className:
|
|
4608
|
-
/* @__PURE__ */ jsx38("h3", { className:
|
|
4609
|
-
/* @__PURE__ */ jsx38("p", { className:
|
|
4591
|
+
/* @__PURE__ */ jsxs34("div", { className: "leaders__content", children: [
|
|
4592
|
+
/* @__PURE__ */ jsx38("h3", { className: "leaders__name", children: item.name }),
|
|
4593
|
+
/* @__PURE__ */ jsx38("p", { className: "leaders__role", children: item.role })
|
|
4610
4594
|
] }),
|
|
4611
4595
|
item.linkedinUrl && /* @__PURE__ */ jsx38(
|
|
4612
4596
|
Link,
|
|
@@ -4618,7 +4602,7 @@ var CardContent = ({ item }) => /* @__PURE__ */ jsxs34(Fragment5, { children: [
|
|
|
4618
4602
|
label: "LinkedIn",
|
|
4619
4603
|
colorScheme: "black",
|
|
4620
4604
|
showChevron: false,
|
|
4621
|
-
className:
|
|
4605
|
+
className: "leaders__link"
|
|
4622
4606
|
}
|
|
4623
4607
|
)
|
|
4624
4608
|
] });
|
|
@@ -4635,25 +4619,25 @@ var Leaders = ({
|
|
|
4635
4619
|
const hasMore = items.length > initialVisibleCount;
|
|
4636
4620
|
const visibleItems = items.slice(0, initialVisibleCount);
|
|
4637
4621
|
const extraItems = items.slice(initialVisibleCount);
|
|
4638
|
-
return /* @__PURE__ */ jsx38("section", { className: [
|
|
4639
|
-
title && /* @__PURE__ */ jsx38("div", { className:
|
|
4640
|
-
/* @__PURE__ */ jsxs34("div", { className:
|
|
4641
|
-
/* @__PURE__ */ jsx38("div", { className:
|
|
4622
|
+
return /* @__PURE__ */ jsx38("section", { className: ["leaders", className].filter(Boolean).join(" "), ...props, children: /* @__PURE__ */ jsxs34("div", { className: "leaders__container", children: [
|
|
4623
|
+
title && /* @__PURE__ */ jsx38("div", { className: "leaders__header", children: /* @__PURE__ */ jsx38("h2", { className: "leaders__title", children: title }) }),
|
|
4624
|
+
/* @__PURE__ */ jsxs34("div", { className: "leaders__grid-wrapper", children: [
|
|
4625
|
+
/* @__PURE__ */ jsx38("div", { className: "leaders__grid", children: visibleItems.map((item, i) => /* @__PURE__ */ jsx38("div", { className: "leaders__card", children: /* @__PURE__ */ jsx38(CardContent, { item }) }, i)) }),
|
|
4642
4626
|
hasMore && /* @__PURE__ */ jsx38(
|
|
4643
4627
|
"div",
|
|
4644
4628
|
{
|
|
4645
4629
|
className: [
|
|
4646
|
-
|
|
4647
|
-
isExpanded ?
|
|
4630
|
+
"leaders__extra-cards",
|
|
4631
|
+
isExpanded ? "leaders__extra-cards--open" : ""
|
|
4648
4632
|
].join(" "),
|
|
4649
4633
|
"aria-hidden": !isExpanded,
|
|
4650
|
-
children: /* @__PURE__ */ jsx38("div", { className:
|
|
4634
|
+
children: /* @__PURE__ */ jsx38("div", { className: "leaders__extra-grid", children: extraItems.map((item, i) => /* @__PURE__ */ jsx38(
|
|
4651
4635
|
"div",
|
|
4652
4636
|
{
|
|
4653
4637
|
className: [
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
isExpanded ?
|
|
4638
|
+
"leaders__card",
|
|
4639
|
+
"leaders__extra-card",
|
|
4640
|
+
isExpanded ? "leaders__extra-card--visible" : ""
|
|
4657
4641
|
].join(" "),
|
|
4658
4642
|
style: {
|
|
4659
4643
|
transitionDelay: isExpanded ? `${i * 70 + 120}ms` : "0ms"
|
|
@@ -4665,7 +4649,7 @@ var Leaders = ({
|
|
|
4665
4649
|
}
|
|
4666
4650
|
)
|
|
4667
4651
|
] }),
|
|
4668
|
-
hasMore && /* @__PURE__ */ jsx38("div", { className:
|
|
4652
|
+
hasMore && /* @__PURE__ */ jsx38("div", { className: "leaders__actions", children: /* @__PURE__ */ jsx38(
|
|
4669
4653
|
Button,
|
|
4670
4654
|
{
|
|
4671
4655
|
variant: "secondary",
|