@deriv-web-design/ui 0.1.14 → 0.1.17
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/block-registry.json +545 -8
- package/components.manifest.json +253 -6
- package/dist/index.css +906 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +207 -6
- package/dist/index.d.ts +207 -6
- package/dist/index.js +320 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +314 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -67,15 +67,20 @@ __export(index_exports, {
|
|
|
67
67
|
HelpCentreCategories: () => HelpCentreCategories,
|
|
68
68
|
HelpCentreSubCategories: () => HelpCentreSubCategories,
|
|
69
69
|
Hero: () => Hero,
|
|
70
|
+
IMAGE_BANNER_CHIPS_DEFAULT_IMAGE: () => IMAGE_BANNER_CHIPS_DEFAULT_IMAGE,
|
|
70
71
|
ImageBanner: () => ImageBanner,
|
|
71
72
|
Leaders: () => Leaders,
|
|
72
73
|
Link: () => Link,
|
|
73
74
|
LogoMarquee: () => LogoMarquee,
|
|
75
|
+
MasterPartner: () => MasterPartner,
|
|
74
76
|
Navbar: () => Navbar,
|
|
75
77
|
PARALLAX_BANNER_TEXT_CONTENT: () => PARALLAX_BANNER_TEXT_CONTENT,
|
|
76
78
|
Pagination: () => Pagination,
|
|
77
79
|
ParallaxBanner: () => ParallaxBanner,
|
|
80
|
+
PartnersPayout: () => PartnersPayout,
|
|
78
81
|
PeopleGrid: () => PeopleGrid,
|
|
82
|
+
RESOURCE_BANNER_DERIV_CONTENT: () => RESOURCE_BANNER_DERIV_CONTENT,
|
|
83
|
+
ResourceBanner: () => ResourceBanner,
|
|
79
84
|
STEPS_DATA: () => STEPS_DATA,
|
|
80
85
|
SearchField: () => SearchField,
|
|
81
86
|
Stats: () => Stats,
|
|
@@ -90,6 +95,7 @@ __export(index_exports, {
|
|
|
90
95
|
Testimonial: () => Testimonial,
|
|
91
96
|
TextField: () => TextField,
|
|
92
97
|
TextScroll: () => TextScroll,
|
|
98
|
+
Tiers: () => Tiers,
|
|
93
99
|
TradingCalculator: () => TradingCalculator,
|
|
94
100
|
TradingCalculatorHowTo: () => TradingCalculatorHowTo,
|
|
95
101
|
dayNightTransitionV2Preset: () => dayNightTransitionV2Preset
|
|
@@ -145,6 +151,7 @@ var Link = ({
|
|
|
145
151
|
colorScheme = "coral",
|
|
146
152
|
label,
|
|
147
153
|
icon,
|
|
154
|
+
iconPosition = "left",
|
|
148
155
|
showChevron = true,
|
|
149
156
|
disabled = false,
|
|
150
157
|
children,
|
|
@@ -176,8 +183,9 @@ var Link = ({
|
|
|
176
183
|
onClick: handleClick,
|
|
177
184
|
...props,
|
|
178
185
|
children: [
|
|
179
|
-
hasIcon && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "icon", children: icon }),
|
|
186
|
+
hasIcon && iconPosition === "left" && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "icon", children: icon }),
|
|
180
187
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "label", children: label ?? children }),
|
|
188
|
+
hasIcon && iconPosition === "right" && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "icon", children: icon }),
|
|
181
189
|
!hasIcon && showChevron && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "chevron", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ChevronIcon, {}) })
|
|
182
190
|
]
|
|
183
191
|
}
|
|
@@ -5358,6 +5366,34 @@ var Leaders = AvatarGrid;
|
|
|
5358
5366
|
|
|
5359
5367
|
// templates/ImageBanner/ImageBanner.tsx
|
|
5360
5368
|
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
5369
|
+
var DEFAULT_CHIPS = [
|
|
5370
|
+
"Dynamic ads",
|
|
5371
|
+
"AI insights",
|
|
5372
|
+
"Performance tracking",
|
|
5373
|
+
"Events"
|
|
5374
|
+
];
|
|
5375
|
+
var IMAGE_BANNER_CHIPS_DEFAULT_IMAGE = "https://cdn.prod.website-files.com/68da5c86c91c54f39c86c28a/69a13cf79748b347527dc74d_tier-cover.webp";
|
|
5376
|
+
var ChipCheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
5377
|
+
"svg",
|
|
5378
|
+
{
|
|
5379
|
+
className: "image-banner__chip-icon",
|
|
5380
|
+
width: "11",
|
|
5381
|
+
height: "12",
|
|
5382
|
+
viewBox: "0 0 11 18",
|
|
5383
|
+
fill: "none",
|
|
5384
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5385
|
+
"aria-hidden": "true",
|
|
5386
|
+
focusable: "false",
|
|
5387
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
5388
|
+
"path",
|
|
5389
|
+
{
|
|
5390
|
+
d: "M10.5156 5.98438C10.8203 6.26562 10.8203 6.75781 10.5156 7.03906L4.51562 13.0391C4.23438 13.3438 3.74219 13.3438 3.46094 13.0391L0.460938 10.0391C0.15625 9.75781 0.15625 9.26562 0.460938 8.98438C0.742188 8.67969 1.23438 8.67969 1.51562 8.98438L4 11.4453L9.46094 5.98438C9.74219 5.67969 10.2344 5.67969 10.5156 5.98438Z",
|
|
5391
|
+
fill: "currentColor",
|
|
5392
|
+
fillOpacity: "0.88"
|
|
5393
|
+
}
|
|
5394
|
+
)
|
|
5395
|
+
}
|
|
5396
|
+
);
|
|
5361
5397
|
var ImageBanner = ({
|
|
5362
5398
|
variant = "split-left",
|
|
5363
5399
|
title = "Join our global community",
|
|
@@ -5365,16 +5401,25 @@ var ImageBanner = ({
|
|
|
5365
5401
|
ctaLabel = "Trader's Hub",
|
|
5366
5402
|
ctaHref,
|
|
5367
5403
|
onCtaClick,
|
|
5404
|
+
chips = DEFAULT_CHIPS,
|
|
5368
5405
|
imageUrl,
|
|
5369
5406
|
imageAlt = "",
|
|
5370
5407
|
className,
|
|
5371
5408
|
...props
|
|
5372
5409
|
}) => {
|
|
5373
5410
|
const isFullBg = variant === "full-bg-left" || variant === "full-bg-right";
|
|
5411
|
+
const isChips = variant === "chips-left" || variant === "chips-right";
|
|
5412
|
+
const showCta = !isChips && Boolean(ctaLabel);
|
|
5413
|
+
const visibleChips = isChips ? chips.filter((label) => label.trim().length > 0) : [];
|
|
5414
|
+
const resolvedImageUrl = imageUrl ?? (isChips ? IMAGE_BANNER_CHIPS_DEFAULT_IMAGE : void 0);
|
|
5374
5415
|
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
5375
5416
|
"section",
|
|
5376
5417
|
{
|
|
5377
|
-
className: [
|
|
5418
|
+
className: [
|
|
5419
|
+
"image-banner",
|
|
5420
|
+
isChips ? "image-banner--chips" : "",
|
|
5421
|
+
className
|
|
5422
|
+
].filter(Boolean).join(" "),
|
|
5378
5423
|
...props,
|
|
5379
5424
|
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
5380
5425
|
"div",
|
|
@@ -5384,11 +5429,11 @@ var ImageBanner = ({
|
|
|
5384
5429
|
`image-banner__inner--${variant}`
|
|
5385
5430
|
].join(" "),
|
|
5386
5431
|
children: [
|
|
5387
|
-
isFullBg &&
|
|
5432
|
+
isFullBg && resolvedImageUrl && /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "image-banner__bg-image-wrapper", children: [
|
|
5388
5433
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
5389
5434
|
"img",
|
|
5390
5435
|
{
|
|
5391
|
-
src:
|
|
5436
|
+
src: resolvedImageUrl,
|
|
5392
5437
|
alt: imageAlt,
|
|
5393
5438
|
className: "image-banner__bg-image",
|
|
5394
5439
|
loading: "lazy"
|
|
@@ -5399,7 +5444,11 @@ var ImageBanner = ({
|
|
|
5399
5444
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "image-banner__content", children: [
|
|
5400
5445
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("h2", { className: "image-banner__title", children: title }),
|
|
5401
5446
|
description && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("p", { className: "image-banner__description", children: description }),
|
|
5402
|
-
|
|
5447
|
+
visibleChips.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("ul", { className: "image-banner__chips", "aria-label": "Features", children: visibleChips.map((label) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("li", { className: "image-banner__chip", children: [
|
|
5448
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ChipCheckIcon, {}),
|
|
5449
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "image-banner__chip-label", children: label })
|
|
5450
|
+
] }, label)) }),
|
|
5451
|
+
showCta && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "image-banner__actions", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
5403
5452
|
Link,
|
|
5404
5453
|
{
|
|
5405
5454
|
colorScheme: "coral",
|
|
@@ -5411,15 +5460,24 @@ var ImageBanner = ({
|
|
|
5411
5460
|
}
|
|
5412
5461
|
) })
|
|
5413
5462
|
] }),
|
|
5414
|
-
!isFullBg &&
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5463
|
+
!isFullBg && resolvedImageUrl && /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "image-banner__image-wrapper", children: [
|
|
5464
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
5465
|
+
"img",
|
|
5466
|
+
{
|
|
5467
|
+
src: resolvedImageUrl,
|
|
5468
|
+
alt: imageAlt,
|
|
5469
|
+
className: "image-banner__image",
|
|
5470
|
+
loading: "lazy"
|
|
5471
|
+
}
|
|
5472
|
+
),
|
|
5473
|
+
isChips && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
5474
|
+
"div",
|
|
5475
|
+
{
|
|
5476
|
+
className: "image-banner__image-fade",
|
|
5477
|
+
"aria-hidden": "true"
|
|
5478
|
+
}
|
|
5479
|
+
)
|
|
5480
|
+
] })
|
|
5423
5481
|
]
|
|
5424
5482
|
}
|
|
5425
5483
|
)
|
|
@@ -8099,6 +8157,248 @@ var FeatureOffices = ({
|
|
|
8099
8157
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "fo-grid", children: filteredOffices.map((office, index) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(OfficeCard, { linkText, office }, `${office.city}-${index}`)) })
|
|
8100
8158
|
] }) });
|
|
8101
8159
|
};
|
|
8160
|
+
|
|
8161
|
+
// templates/Tiers/Tiers.tsx
|
|
8162
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
8163
|
+
var DEFAULT_ACCENTS = ["bronze", "silver", "gold", "platinum"];
|
|
8164
|
+
var resolveAccent = (tier, index) => tier.accent ?? DEFAULT_ACCENTS[index] ?? "bronze";
|
|
8165
|
+
var Tiers = ({
|
|
8166
|
+
title,
|
|
8167
|
+
description,
|
|
8168
|
+
tiers,
|
|
8169
|
+
showLink = false,
|
|
8170
|
+
linkText = "Learn more about partner tiers",
|
|
8171
|
+
linkHref,
|
|
8172
|
+
onLinkClick
|
|
8173
|
+
}) => {
|
|
8174
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("section", { className: "tiers", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "tiers__container", children: [
|
|
8175
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("header", { className: "tiers__header", children: [
|
|
8176
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("h2", { className: "tiers__title", children: title }),
|
|
8177
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { className: "tiers__description", children: description })
|
|
8178
|
+
] }),
|
|
8179
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("ol", { className: "tiers__list", children: tiers.map((tier, index) => {
|
|
8180
|
+
const accent = resolveAccent(tier, index);
|
|
8181
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
8182
|
+
"li",
|
|
8183
|
+
{
|
|
8184
|
+
className: `tiers__item tiers__item--${accent}`,
|
|
8185
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "tiers__shell", children: [
|
|
8186
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "tiers__icon-row", children: [
|
|
8187
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
8188
|
+
"span",
|
|
8189
|
+
{
|
|
8190
|
+
className: "tiers__line tiers__line--left",
|
|
8191
|
+
"aria-hidden": "true"
|
|
8192
|
+
}
|
|
8193
|
+
),
|
|
8194
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "tiers__icon-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
8195
|
+
"img",
|
|
8196
|
+
{
|
|
8197
|
+
src: tier.icon,
|
|
8198
|
+
alt: tier.iconAlt ?? tier.name,
|
|
8199
|
+
className: "tiers__icon",
|
|
8200
|
+
width: 64,
|
|
8201
|
+
height: 64,
|
|
8202
|
+
loading: "lazy"
|
|
8203
|
+
}
|
|
8204
|
+
) }),
|
|
8205
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
8206
|
+
"span",
|
|
8207
|
+
{
|
|
8208
|
+
className: "tiers__line tiers__line--right",
|
|
8209
|
+
"aria-hidden": "true"
|
|
8210
|
+
}
|
|
8211
|
+
)
|
|
8212
|
+
] }),
|
|
8213
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "tiers__heading", children: [
|
|
8214
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("h3", { className: "tiers__name", children: tier.name }),
|
|
8215
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { className: "tiers__status", children: tier.status })
|
|
8216
|
+
] }),
|
|
8217
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "tiers__card", children: [
|
|
8218
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { className: "tiers__card-title", children: tier.title }),
|
|
8219
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { className: "tiers__card-description", children: tier.description })
|
|
8220
|
+
] }),
|
|
8221
|
+
tier.requirement && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { className: "tiers__requirement", children: tier.requirement })
|
|
8222
|
+
] })
|
|
8223
|
+
},
|
|
8224
|
+
tier.name
|
|
8225
|
+
);
|
|
8226
|
+
}) }),
|
|
8227
|
+
showLink && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "tiers__footer", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
8228
|
+
Link,
|
|
8229
|
+
{
|
|
8230
|
+
colorScheme: "coral",
|
|
8231
|
+
label: linkText,
|
|
8232
|
+
href: linkHref,
|
|
8233
|
+
onClick: onLinkClick
|
|
8234
|
+
}
|
|
8235
|
+
) })
|
|
8236
|
+
] }) });
|
|
8237
|
+
};
|
|
8238
|
+
|
|
8239
|
+
// templates/PartnersPayout/PartnersPayout.tsx
|
|
8240
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
8241
|
+
var PartnersPayout = ({
|
|
8242
|
+
title,
|
|
8243
|
+
period,
|
|
8244
|
+
payouts,
|
|
8245
|
+
imageUrl,
|
|
8246
|
+
imageAlt = "",
|
|
8247
|
+
className,
|
|
8248
|
+
...props
|
|
8249
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
8250
|
+
"section",
|
|
8251
|
+
{
|
|
8252
|
+
className: ["partners-payout", className].filter(Boolean).join(" "),
|
|
8253
|
+
...props,
|
|
8254
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "partners-payout__container", children: [
|
|
8255
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "partners-payout__content", children: [
|
|
8256
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("header", { className: "partners-payout__header", children: [
|
|
8257
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("h2", { className: "partners-payout__title", children: title }),
|
|
8258
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("p", { className: "partners-payout__period", children: period })
|
|
8259
|
+
] }),
|
|
8260
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("ul", { className: "partners-payout__grid", children: payouts.map((payout, index) => /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
8261
|
+
"li",
|
|
8262
|
+
{
|
|
8263
|
+
className: "partners-payout__item",
|
|
8264
|
+
children: [
|
|
8265
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "partners-payout__region", children: payout.region }),
|
|
8266
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "partners-payout__amount", children: payout.amount })
|
|
8267
|
+
]
|
|
8268
|
+
},
|
|
8269
|
+
`${payout.region}-${index}`
|
|
8270
|
+
)) })
|
|
8271
|
+
] }),
|
|
8272
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
8273
|
+
"img",
|
|
8274
|
+
{
|
|
8275
|
+
className: "partners-payout__image",
|
|
8276
|
+
src: imageUrl,
|
|
8277
|
+
alt: imageAlt,
|
|
8278
|
+
loading: "lazy"
|
|
8279
|
+
}
|
|
8280
|
+
)
|
|
8281
|
+
] })
|
|
8282
|
+
}
|
|
8283
|
+
);
|
|
8284
|
+
|
|
8285
|
+
// templates/MasterPartner/MasterPartner.tsx
|
|
8286
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
8287
|
+
var MasterPartner = ({
|
|
8288
|
+
title,
|
|
8289
|
+
description,
|
|
8290
|
+
note,
|
|
8291
|
+
closingText,
|
|
8292
|
+
ctaLabel,
|
|
8293
|
+
ctaHref,
|
|
8294
|
+
onCtaClick,
|
|
8295
|
+
image,
|
|
8296
|
+
imageAlt = "",
|
|
8297
|
+
steps
|
|
8298
|
+
}) => {
|
|
8299
|
+
const ctaButton = /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Button, { colorScheme: "coral", variant: "primary", label: ctaLabel, onClick: onCtaClick });
|
|
8300
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("section", { className: "master-partner", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "master-partner__container", children: [
|
|
8301
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "master-partner__top", children: [
|
|
8302
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "master-partner__content", children: [
|
|
8303
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("h2", { className: "master-partner__title", children: title }),
|
|
8304
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "master-partner__copy", children: [
|
|
8305
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "master-partner__paragraph", children: description }),
|
|
8306
|
+
note && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("p", { className: "master-partner__paragraph", children: [
|
|
8307
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("strong", { children: note.label }),
|
|
8308
|
+
" ",
|
|
8309
|
+
note.text
|
|
8310
|
+
] }),
|
|
8311
|
+
closingText && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "master-partner__paragraph", children: closingText })
|
|
8312
|
+
] }),
|
|
8313
|
+
ctaLabel && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "master-partner__cta", children: ctaHref ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("a", { href: ctaHref, children: ctaButton }) : ctaButton })
|
|
8314
|
+
] }),
|
|
8315
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "master-partner__image-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
8316
|
+
"img",
|
|
8317
|
+
{
|
|
8318
|
+
className: "master-partner__image",
|
|
8319
|
+
src: image,
|
|
8320
|
+
alt: imageAlt,
|
|
8321
|
+
loading: "lazy"
|
|
8322
|
+
}
|
|
8323
|
+
) })
|
|
8324
|
+
] }),
|
|
8325
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("ol", { className: "master-partner__steps", children: steps.map((step, index) => /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("li", { className: "master-partner__step", children: [
|
|
8326
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
8327
|
+
"img",
|
|
8328
|
+
{
|
|
8329
|
+
className: "master-partner__step-icon",
|
|
8330
|
+
src: step.icon,
|
|
8331
|
+
alt: step.iconAlt ?? "",
|
|
8332
|
+
"aria-hidden": "true",
|
|
8333
|
+
width: 32,
|
|
8334
|
+
height: 32,
|
|
8335
|
+
loading: "lazy"
|
|
8336
|
+
}
|
|
8337
|
+
),
|
|
8338
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "master-partner__step-description", children: step.description })
|
|
8339
|
+
] }, index)) })
|
|
8340
|
+
] }) });
|
|
8341
|
+
};
|
|
8342
|
+
|
|
8343
|
+
// templates/ResourceBanner/ResourceBanner.tsx
|
|
8344
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
8345
|
+
var DEFAULT_LINKS = [{ label: "Learn more", href: "#" }];
|
|
8346
|
+
var RESOURCE_BANNER_DERIV_CONTENT = {
|
|
8347
|
+
title: "Learn more about staying safe",
|
|
8348
|
+
description: "Read our guide on secure and responsible trading for more on protecting your account.",
|
|
8349
|
+
links: [
|
|
8350
|
+
{
|
|
8351
|
+
id: "responsible",
|
|
8352
|
+
label: "Secure and responsible trading",
|
|
8353
|
+
href: "/responsible",
|
|
8354
|
+
external: true
|
|
8355
|
+
}
|
|
8356
|
+
]
|
|
8357
|
+
};
|
|
8358
|
+
var ExternalLinkIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("svg", { viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", focusable: "false", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
8359
|
+
"path",
|
|
8360
|
+
{
|
|
8361
|
+
d: "M4.5 11.5 11.5 4.5M5.5 4.5h6v6",
|
|
8362
|
+
stroke: "currentColor",
|
|
8363
|
+
strokeWidth: "1.75",
|
|
8364
|
+
strokeLinecap: "round",
|
|
8365
|
+
strokeLinejoin: "round"
|
|
8366
|
+
}
|
|
8367
|
+
) });
|
|
8368
|
+
var ResourceBanner = ({
|
|
8369
|
+
title = "Section title goes here",
|
|
8370
|
+
description = "Explain how this specific feature helps your user.",
|
|
8371
|
+
links,
|
|
8372
|
+
headingLevel: HeadingTag = "h2",
|
|
8373
|
+
className,
|
|
8374
|
+
...props
|
|
8375
|
+
}) => {
|
|
8376
|
+
const resolvedLinks = links && links.length > 0 ? links : DEFAULT_LINKS;
|
|
8377
|
+
const rootClass = ["rsb", className].filter(Boolean).join(" ");
|
|
8378
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("section", { className: rootClass, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "rsb__inner", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "rsb__card", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "rsb__grid", children: [
|
|
8379
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "rsb__content", children: [
|
|
8380
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(HeadingTag, { className: "rsb__title", children: title }),
|
|
8381
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("p", { className: "rsb__description", children: description })
|
|
8382
|
+
] }),
|
|
8383
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("ul", { className: "rsb__links", children: resolvedLinks.map((link, i) => {
|
|
8384
|
+
const isExternal = link.external ?? true;
|
|
8385
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("li", { className: "rsb__links-item", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
8386
|
+
Link,
|
|
8387
|
+
{
|
|
8388
|
+
className: "rsb__link",
|
|
8389
|
+
colorScheme: "white",
|
|
8390
|
+
href: link.href,
|
|
8391
|
+
label: link.label,
|
|
8392
|
+
icon: isExternal ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(ExternalLinkIcon2, {}) : void 0,
|
|
8393
|
+
iconPosition: "right",
|
|
8394
|
+
showChevron: !isExternal,
|
|
8395
|
+
target: isExternal ? "_blank" : void 0,
|
|
8396
|
+
rel: isExternal ? "noopener noreferrer" : void 0
|
|
8397
|
+
}
|
|
8398
|
+
) }, link.id ?? i);
|
|
8399
|
+
}) })
|
|
8400
|
+
] }) }) }) });
|
|
8401
|
+
};
|
|
8102
8402
|
// Annotate the CommonJS export names for ESM import in node:
|
|
8103
8403
|
0 && (module.exports = {
|
|
8104
8404
|
AVATAR_DATA,
|
|
@@ -8148,15 +8448,20 @@ var FeatureOffices = ({
|
|
|
8148
8448
|
HelpCentreCategories,
|
|
8149
8449
|
HelpCentreSubCategories,
|
|
8150
8450
|
Hero,
|
|
8451
|
+
IMAGE_BANNER_CHIPS_DEFAULT_IMAGE,
|
|
8151
8452
|
ImageBanner,
|
|
8152
8453
|
Leaders,
|
|
8153
8454
|
Link,
|
|
8154
8455
|
LogoMarquee,
|
|
8456
|
+
MasterPartner,
|
|
8155
8457
|
Navbar,
|
|
8156
8458
|
PARALLAX_BANNER_TEXT_CONTENT,
|
|
8157
8459
|
Pagination,
|
|
8158
8460
|
ParallaxBanner,
|
|
8461
|
+
PartnersPayout,
|
|
8159
8462
|
PeopleGrid,
|
|
8463
|
+
RESOURCE_BANNER_DERIV_CONTENT,
|
|
8464
|
+
ResourceBanner,
|
|
8160
8465
|
STEPS_DATA,
|
|
8161
8466
|
SearchField,
|
|
8162
8467
|
Stats,
|
|
@@ -8171,6 +8476,7 @@ var FeatureOffices = ({
|
|
|
8171
8476
|
Testimonial,
|
|
8172
8477
|
TextField,
|
|
8173
8478
|
TextScroll,
|
|
8479
|
+
Tiers,
|
|
8174
8480
|
TradingCalculator,
|
|
8175
8481
|
TradingCalculatorHowTo,
|
|
8176
8482
|
dayNightTransitionV2Preset
|