@deriv-web-design/ui 0.1.5 → 0.1.6
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 +810 -14
- package/components.manifest.json +477 -7
- package/dist/index.css +1150 -86
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +297 -13
- package/dist/index.d.ts +297 -13
- package/dist/index.js +912 -73
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +910 -79
- package/dist/index.mjs.map +1 -1
- package/dist/share-facebook-3B3NOC5Q.png +0 -0
- package/dist/share-link-QGD6KIDA.png +0 -0
- package/dist/share-linkedin-UCIII3JU.png +0 -0
- package/dist/share-telegram-QRXGSHQT.png +0 -0
- package/dist/share-x-UTEBBL73.png +0 -0
- package/dist/trustpilot-rating-badge-D7JOW3KJ.png +0 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import { ButtonHTMLAttributes, ReactNode, AnchorHTMLAttributes, HTMLAttributes, InputHTMLAttributes, MouseEvent, ComponentProps } from 'react';
|
|
3
|
+
import { ButtonHTMLAttributes, ReactNode, AnchorHTMLAttributes, HTMLAttributes, InputHTMLAttributes, MouseEvent, ChangeEvent, ComponentProps } from 'react';
|
|
4
4
|
import { DotLottieReact } from '@lottiefiles/dotlottie-react';
|
|
5
5
|
|
|
6
6
|
type ButtonColorScheme = "coral" | "black" | "white";
|
|
@@ -107,6 +107,10 @@ interface SearchFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "
|
|
|
107
107
|
variant?: SearchFieldVariant;
|
|
108
108
|
/** Visual validation state. Defaults to "neutral". */
|
|
109
109
|
status?: SearchFieldStatus;
|
|
110
|
+
/** Shows the leading search (magnifying-glass) icon. Defaults to `true`.
|
|
111
|
+
* Set to `false` for icon-less search bars (e.g. a Help Centre style
|
|
112
|
+
* search field where the placeholder text alone signals its purpose). */
|
|
113
|
+
showSearchIcon?: boolean;
|
|
110
114
|
/** Called when the clear (×) button is clicked.
|
|
111
115
|
* In controlled mode, update your value state here.
|
|
112
116
|
* In uncontrolled mode the input is cleared automatically. */
|
|
@@ -565,7 +569,7 @@ interface HeroProps extends HTMLAttributes<HTMLElement> {
|
|
|
565
569
|
|
|
566
570
|
declare const Hero: ({ variant, subtitle, title, description, primaryButton, secondaryButton, backgroundImageSrc, heroImage, productImage, floatingImage, className, ...props }: HeroProps) => react_jsx_runtime.JSX.Element;
|
|
567
571
|
|
|
568
|
-
type HeaderVariant = "visuals" | "minimal";
|
|
572
|
+
type HeaderVariant = "visuals" | "minimal" | "dark" | "dark-search";
|
|
569
573
|
interface HeaderButtonProps {
|
|
570
574
|
/** Button label text */
|
|
571
575
|
label: string;
|
|
@@ -574,13 +578,30 @@ interface HeaderButtonProps {
|
|
|
574
578
|
/** Link href — renders an anchor if provided */
|
|
575
579
|
href?: string;
|
|
576
580
|
}
|
|
581
|
+
interface HeaderSearchProps {
|
|
582
|
+
/** Placeholder text for the search input. Defaults to "Search". */
|
|
583
|
+
placeholder?: string;
|
|
584
|
+
/** Controlled input value */
|
|
585
|
+
value?: string;
|
|
586
|
+
/** Change handler for controlled usage */
|
|
587
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
588
|
+
/** Called when the clear (×) button is pressed */
|
|
589
|
+
onClear?: () => void;
|
|
590
|
+
/** Called on Enter keypress with the current input value */
|
|
591
|
+
onSubmit?: (value: string) => void;
|
|
592
|
+
}
|
|
577
593
|
interface HeaderProps extends HTMLAttributes<HTMLElement> {
|
|
578
594
|
/**
|
|
579
595
|
* Layout variant:
|
|
580
596
|
*
|
|
581
|
-
* - "visuals"
|
|
582
|
-
*
|
|
583
|
-
* - "minimal"
|
|
597
|
+
* - "visuals" — light grey bg + SVG grid, center-aligned text, floating visuals left & right,
|
|
598
|
+
* parallax scroll effect on visuals, min-height 540px
|
|
599
|
+
* - "minimal" — same as visuals but without the floating graphics
|
|
600
|
+
* - "dark" — dark navy bg + SVG grid, center-aligned text, no floating visuals,
|
|
601
|
+
* min-height 420px on mobile/tablet, 460px on desktop (shorter than
|
|
602
|
+
* the light variants)
|
|
603
|
+
* - "dark-search" — same as "dark" plus a search field below the text, for pages such as
|
|
604
|
+
* the Help Centre index
|
|
584
605
|
*/
|
|
585
606
|
variant: HeaderVariant;
|
|
586
607
|
/** Optional eyebrow / subtitle above the title */
|
|
@@ -591,27 +612,32 @@ interface HeaderProps extends HTMLAttributes<HTMLElement> {
|
|
|
591
612
|
description?: string;
|
|
592
613
|
/**
|
|
593
614
|
* Primary CTA button (coral).
|
|
594
|
-
* Shown on
|
|
615
|
+
* Shown on all variants.
|
|
595
616
|
*/
|
|
596
617
|
primaryButton?: HeaderButtonProps;
|
|
597
618
|
/**
|
|
598
619
|
* Secondary CTA button (white outline).
|
|
599
|
-
* Shown on
|
|
620
|
+
* Shown on all variants.
|
|
600
621
|
*/
|
|
601
622
|
secondaryButton?: HeaderButtonProps;
|
|
602
623
|
/**
|
|
603
|
-
* Left floating visual for the
|
|
624
|
+
* Left floating visual for the "visuals" variant.
|
|
604
625
|
* Accepts a ReactNode or image URL string.
|
|
605
626
|
*/
|
|
606
627
|
leftVisual?: ReactNode | string;
|
|
607
628
|
/**
|
|
608
|
-
* Right floating visual for the
|
|
629
|
+
* Right floating visual for the "visuals" variant.
|
|
609
630
|
* Accepts a ReactNode or image URL string.
|
|
610
631
|
*/
|
|
611
632
|
rightVisual?: ReactNode | string;
|
|
633
|
+
/**
|
|
634
|
+
* Search field configuration for the "dark-search" variant (e.g. Help Centre header).
|
|
635
|
+
* The field always renders for that variant; this prop only customises it.
|
|
636
|
+
*/
|
|
637
|
+
search?: HeaderSearchProps;
|
|
612
638
|
}
|
|
613
639
|
|
|
614
|
-
declare const Header: ({ variant, subtitle, title, description, primaryButton, secondaryButton, leftVisual, rightVisual, className, ...props }: HeaderProps) => react_jsx_runtime.JSX.Element;
|
|
640
|
+
declare const Header: ({ variant, subtitle, title, description, primaryButton, secondaryButton, leftVisual, rightVisual, search, className, ...props }: HeaderProps) => react_jsx_runtime.JSX.Element;
|
|
615
641
|
|
|
616
642
|
interface StatItem {
|
|
617
643
|
/** Numeric or short display value, e.g. "2.5M+" */
|
|
@@ -1239,17 +1265,43 @@ interface TestimonialItem {
|
|
|
1239
1265
|
authorLocation?: string;
|
|
1240
1266
|
/** Optional author avatar image URL */
|
|
1241
1267
|
avatarUrl?: string;
|
|
1268
|
+
/**
|
|
1269
|
+
* `trustpilot` variant only — star rating out of 5 shown on the card.
|
|
1270
|
+
* Supports halves (e.g. `4.5`). Defaults to `5`.
|
|
1271
|
+
*/
|
|
1272
|
+
rating?: number;
|
|
1273
|
+
/**
|
|
1274
|
+
* `trustpilot` variant only — link to the full review on Trustpilot.
|
|
1275
|
+
* When omitted, the card links to `trustpilotUrl` instead.
|
|
1276
|
+
*/
|
|
1277
|
+
reviewUrl?: string;
|
|
1242
1278
|
}
|
|
1243
1279
|
interface TestimonialProps {
|
|
1244
1280
|
/** Section heading */
|
|
1245
1281
|
title?: string;
|
|
1246
|
-
/** Array of testimonial items to display
|
|
1282
|
+
/** Array of testimonial items to display */
|
|
1247
1283
|
items: TestimonialItem[];
|
|
1248
1284
|
/** Optional CSS class name applied to the outer section */
|
|
1249
1285
|
className?: string;
|
|
1286
|
+
/**
|
|
1287
|
+
* Visual style.
|
|
1288
|
+
* - `default` (default): single-slide auto-advancing quote carousel with dot pagination.
|
|
1289
|
+
* - `trustpilot`: horizontally-scrollable row of star-rated review cards, a "Trustpilot"
|
|
1290
|
+
* rating badge, and prev/next controls — modeled after deriv.com's homepage
|
|
1291
|
+
* "What our customers say" section.
|
|
1292
|
+
*/
|
|
1293
|
+
variant?: "default" | "trustpilot";
|
|
1294
|
+
/**
|
|
1295
|
+
* `trustpilot` variant only — URL to the brand's Trustpilot profile page.
|
|
1296
|
+
* Used by the footer rating badge link, and as the fallback link for any
|
|
1297
|
+
* item without its own `reviewUrl`.
|
|
1298
|
+
*/
|
|
1299
|
+
trustpilotUrl?: string;
|
|
1300
|
+
/** `trustpilot` variant only — overall TrustScore shown in the footer badge (out of 5). */
|
|
1301
|
+
trustpilotScore?: number;
|
|
1250
1302
|
}
|
|
1251
1303
|
|
|
1252
|
-
declare const Testimonial: (
|
|
1304
|
+
declare const Testimonial: (props: TestimonialProps) => react_jsx_runtime.JSX.Element | null;
|
|
1253
1305
|
|
|
1254
1306
|
interface ArticleHeroArticle {
|
|
1255
1307
|
/** Article title */
|
|
@@ -1399,6 +1451,113 @@ declare const FEATURE_AWARDS_TEXT_CONTENT: {
|
|
|
1399
1451
|
declare const DEFAULT_AWARDS: AwardItem[];
|
|
1400
1452
|
declare const FeatureAwards: ({ title, awards, autoScrollDuration, className, ...props }: FeatureAwardsProps) => react_jsx_runtime.JSX.Element | null;
|
|
1401
1453
|
|
|
1454
|
+
interface FeatureBlogPost {
|
|
1455
|
+
/** Post headline */
|
|
1456
|
+
title: string;
|
|
1457
|
+
/** Post summary / dek text */
|
|
1458
|
+
summary: string;
|
|
1459
|
+
/** Card thumbnail image */
|
|
1460
|
+
thumbnail: string;
|
|
1461
|
+
thumbnailAlt?: string;
|
|
1462
|
+
/** Publish date label, e.g. "July 24, 2026" */
|
|
1463
|
+
date?: string;
|
|
1464
|
+
/** Category label, e.g. "Company" */
|
|
1465
|
+
category?: string;
|
|
1466
|
+
/** Link target — wraps the card in an anchor when set */
|
|
1467
|
+
href?: string;
|
|
1468
|
+
/** Click handler — used when `href` is not set */
|
|
1469
|
+
onClick?: () => void;
|
|
1470
|
+
}
|
|
1471
|
+
interface FeatureBlogProps extends HTMLAttributes<HTMLElement> {
|
|
1472
|
+
/** Section heading. Defaults to "Deriv press releases". */
|
|
1473
|
+
title?: string;
|
|
1474
|
+
/** Posts rendered as a responsive card grid. */
|
|
1475
|
+
posts: FeatureBlogPost[];
|
|
1476
|
+
/** Show the "See all" link below the grid (default: true) */
|
|
1477
|
+
showLink?: boolean;
|
|
1478
|
+
/** Label for the "See all" link (default: "See all press releases") */
|
|
1479
|
+
linkText?: string;
|
|
1480
|
+
/** Href for the "See all" link */
|
|
1481
|
+
linkHref?: string;
|
|
1482
|
+
onLinkClick?: () => void;
|
|
1483
|
+
/** Extra class name merged onto the root `<section>`. */
|
|
1484
|
+
className?: string;
|
|
1485
|
+
}
|
|
1486
|
+
|
|
1487
|
+
declare const FEATURE_BLOG_TEXT_CONTENT: {
|
|
1488
|
+
title: string;
|
|
1489
|
+
linkText: string;
|
|
1490
|
+
};
|
|
1491
|
+
declare const FeatureBlog: ({ title, posts, showLink, linkText, linkHref, onLinkClick, className, ...props }: FeatureBlogProps) => react_jsx_runtime.JSX.Element | null;
|
|
1492
|
+
|
|
1493
|
+
interface FeatureBlogCategoryTab {
|
|
1494
|
+
/** Stable identifier — must match `FeatureBlogCategoryPost.category` for filtering to work. CMS-managed. */
|
|
1495
|
+
id: string;
|
|
1496
|
+
/** Tab label shown in the pill row. CMS-managed. */
|
|
1497
|
+
label: string;
|
|
1498
|
+
}
|
|
1499
|
+
interface FeatureBlogCategoryPost {
|
|
1500
|
+
/** Post headline */
|
|
1501
|
+
title: string;
|
|
1502
|
+
/** Post summary / dek text */
|
|
1503
|
+
summary: string;
|
|
1504
|
+
/** Card thumbnail image */
|
|
1505
|
+
thumbnail: string;
|
|
1506
|
+
thumbnailAlt?: string;
|
|
1507
|
+
/** Publish date label, e.g. "July 24, 2026" */
|
|
1508
|
+
date?: string;
|
|
1509
|
+
/** Category tab id this post belongs to (matches a `categories[].id`). Posts also always match the "all" tab. */
|
|
1510
|
+
category: string;
|
|
1511
|
+
/** Category chip label shown on the card. Defaults to the matching tab's `label` when omitted. */
|
|
1512
|
+
categoryLabel?: string;
|
|
1513
|
+
/**
|
|
1514
|
+
* Destination URL. Absolute `http(s)://` URLs are treated as external and
|
|
1515
|
+
* open in a new tab (`target="_blank" rel="noopener noreferrer"`);
|
|
1516
|
+
* relative/internal paths (e.g. "/newsroom/my-article") navigate as a
|
|
1517
|
+
* normal same-tab inner-page link.
|
|
1518
|
+
*/
|
|
1519
|
+
href?: string;
|
|
1520
|
+
/** Click handler — used when `href` is not set (renders a `<button>`) */
|
|
1521
|
+
onClick?: () => void;
|
|
1522
|
+
}
|
|
1523
|
+
interface FeatureBlogCategoriesProps extends HTMLAttributes<HTMLElement> {
|
|
1524
|
+
/** Section heading. Defaults to "Deriv press releases". */
|
|
1525
|
+
title?: string;
|
|
1526
|
+
/** Category tabs, CMS-managed. An "all" tab is always prepended automatically. */
|
|
1527
|
+
categories: FeatureBlogCategoryTab[];
|
|
1528
|
+
/** Id used internally for the auto-prepended "show everything" tab (default: "all") */
|
|
1529
|
+
allCategoryId?: string;
|
|
1530
|
+
/** Label for the auto-prepended "show everything" tab (default: "View all") */
|
|
1531
|
+
allCategoryLabel?: string;
|
|
1532
|
+
/** Controlled active category tab id */
|
|
1533
|
+
activeCategoryId?: string;
|
|
1534
|
+
/** Initial active tab id for uncontrolled usage (default: `allCategoryId`) */
|
|
1535
|
+
defaultActiveCategoryId?: string;
|
|
1536
|
+
/** Called whenever a different tab is selected */
|
|
1537
|
+
onCategoryChange?: (id: string) => void;
|
|
1538
|
+
/** All posts — filtered client-side by the active tab and search query */
|
|
1539
|
+
posts: FeatureBlogCategoryPost[];
|
|
1540
|
+
/** Placeholder text for the search field (default: "Search") */
|
|
1541
|
+
searchPlaceholder?: string;
|
|
1542
|
+
/** Accessible label for the search field (defaults to `searchPlaceholder`) */
|
|
1543
|
+
searchAriaLabel?: string;
|
|
1544
|
+
/** Called on every keystroke in the search field with the current value */
|
|
1545
|
+
onSearchChange?: (value: string) => void;
|
|
1546
|
+
/** Message shown when no posts match the active tab + search query */
|
|
1547
|
+
emptyStateText?: string;
|
|
1548
|
+
/** Extra class name merged onto the root `<section>`. */
|
|
1549
|
+
className?: string;
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1552
|
+
declare const FEATURE_BLOG_CATEGORIES_TEXT_CONTENT: {
|
|
1553
|
+
title: string;
|
|
1554
|
+
allCategoryId: string;
|
|
1555
|
+
allCategoryLabel: string;
|
|
1556
|
+
searchPlaceholder: string;
|
|
1557
|
+
emptyStateText: string;
|
|
1558
|
+
};
|
|
1559
|
+
declare const FeatureBlogCategories: ({ title, categories, allCategoryId, allCategoryLabel, activeCategoryId, defaultActiveCategoryId, onCategoryChange, posts, searchPlaceholder, searchAriaLabel, onSearchChange, emptyStateText, className, ...props }: FeatureBlogCategoriesProps) => react_jsx_runtime.JSX.Element;
|
|
1560
|
+
|
|
1402
1561
|
interface HelpCentreCategoryItem {
|
|
1403
1562
|
/** Stable identifier for the category (e.g. used for anchors or filtering) */
|
|
1404
1563
|
id?: string;
|
|
@@ -1515,4 +1674,129 @@ interface HelpCenterPageProps {
|
|
|
1515
1674
|
|
|
1516
1675
|
declare const HelpCenterPage: ({ categoryTitle, questions, activeQuestionId, defaultActiveQuestionId, onQuestionSelect, contentTitle, content, searchPlaceholder, searchAriaLabel, onSearchChange, searchNoResultsText, articlesSheetTitle, className, }: HelpCenterPageProps) => react_jsx_runtime.JSX.Element;
|
|
1517
1676
|
|
|
1518
|
-
|
|
1677
|
+
type FeatureBlogContentBlockType = "heading" | "paragraph" | "list" | "quote" | "image";
|
|
1678
|
+
interface FeatureBlogContentBlock {
|
|
1679
|
+
/** Block kind — "heading"/"paragraph"/"quote" use `text`, "list" uses `items`, "image" uses `image` */
|
|
1680
|
+
type: FeatureBlogContentBlockType;
|
|
1681
|
+
/** Text content for "heading" / "paragraph" / "quote" blocks */
|
|
1682
|
+
text?: string;
|
|
1683
|
+
/**
|
|
1684
|
+
* Heading level for "heading" blocks (default: 2). Only level-2 headings
|
|
1685
|
+
* are collected into the table of contents — level-3 headings render
|
|
1686
|
+
* inline as sub-sections but are not listed.
|
|
1687
|
+
*/
|
|
1688
|
+
level?: 2 | 3;
|
|
1689
|
+
/** Stable anchor id for a "heading" block; auto-generated (slugified) from `text` when omitted */
|
|
1690
|
+
id?: string;
|
|
1691
|
+
/** List entries for "list" blocks */
|
|
1692
|
+
items?: string[];
|
|
1693
|
+
/** Render a "list" block as `<ol>` instead of `<ul>` (default: false) */
|
|
1694
|
+
ordered?: boolean;
|
|
1695
|
+
/** Citation / source line for "quote" blocks */
|
|
1696
|
+
cite?: string;
|
|
1697
|
+
/** Image source for "image" blocks */
|
|
1698
|
+
image?: string;
|
|
1699
|
+
imageAlt?: string;
|
|
1700
|
+
/** Optional caption rendered below an "image" block */
|
|
1701
|
+
caption?: string;
|
|
1702
|
+
}
|
|
1703
|
+
type FeatureBlogSharePlatform = "facebook" | "twitter" | "linkedin" | "telegram";
|
|
1704
|
+
interface FeatureBlogAuthor {
|
|
1705
|
+
/** Author display name */
|
|
1706
|
+
name: string;
|
|
1707
|
+
/** Author avatar image */
|
|
1708
|
+
avatar?: string;
|
|
1709
|
+
avatarAlt?: string;
|
|
1710
|
+
}
|
|
1711
|
+
interface FeatureBlogPageProps {
|
|
1712
|
+
/** Small category label rendered above the title (e.g. "Press releases") */
|
|
1713
|
+
category?: string;
|
|
1714
|
+
/** Article headline, rendered as the page's `<h1>` (required) */
|
|
1715
|
+
title: string;
|
|
1716
|
+
/** Publish date label shown in the meta row (e.g. "July 24, 2026") */
|
|
1717
|
+
publishDate?: string;
|
|
1718
|
+
/** Article author, shown in the meta row next to the publish date */
|
|
1719
|
+
author?: FeatureBlogAuthor;
|
|
1720
|
+
/** Hero image rendered below the title / meta row */
|
|
1721
|
+
heroImage?: string;
|
|
1722
|
+
heroImageAlt?: string;
|
|
1723
|
+
/** Main article body, rendered from plain data blocks (required, at least 1 item) */
|
|
1724
|
+
content: FeatureBlogContentBlock[];
|
|
1725
|
+
/** Table of contents card heading (default: "Contents") */
|
|
1726
|
+
tocTitle?: string;
|
|
1727
|
+
/** Whether the table of contents starts expanded (default: true) */
|
|
1728
|
+
tocDefaultOpen?: boolean;
|
|
1729
|
+
/** Hide the table of contents entirely (default: false) — e.g. for very short articles with no level-2 headings */
|
|
1730
|
+
hideToc?: boolean;
|
|
1731
|
+
/** "Share article" label above the share icons (default: "Share article") */
|
|
1732
|
+
shareTitle?: string;
|
|
1733
|
+
/** Canonical URL used to build every share link and for "copy link"; sharing is hidden when omitted */
|
|
1734
|
+
shareUrl?: string;
|
|
1735
|
+
/** Text passed to platforms that accept share text (X/Twitter, Telegram); defaults to `title` */
|
|
1736
|
+
shareText?: string;
|
|
1737
|
+
/** Which social platforms to show, in order (default: all four) */
|
|
1738
|
+
sharePlatforms?: FeatureBlogSharePlatform[];
|
|
1739
|
+
/** Hide the share row entirely (default: false) */
|
|
1740
|
+
hideShare?: boolean;
|
|
1741
|
+
/** Fired whenever a share icon (including "copy link") is activated */
|
|
1742
|
+
onShare?: (platform: FeatureBlogSharePlatform | "copy") => void;
|
|
1743
|
+
/** Label shown briefly after "copy link" succeeds (default: "Copied!") */
|
|
1744
|
+
copiedLabel?: string;
|
|
1745
|
+
/** Additional CSS class on the outer `<section>` */
|
|
1746
|
+
className?: string;
|
|
1747
|
+
}
|
|
1748
|
+
|
|
1749
|
+
declare const FeatureBlogPage: ({ category, title, publishDate, author, heroImage, heroImageAlt, content, tocTitle, tocDefaultOpen, hideToc, shareTitle, shareUrl, shareText, sharePlatforms, hideShare, onShare, copiedLabel, className, }: FeatureBlogPageProps) => react_jsx_runtime.JSX.Element;
|
|
1750
|
+
|
|
1751
|
+
interface ParallaxBannerCultureCard {
|
|
1752
|
+
/** Card heading, e.g. "Integrity" */
|
|
1753
|
+
title: string;
|
|
1754
|
+
/** Supporting copy beneath the title */
|
|
1755
|
+
description: string;
|
|
1756
|
+
}
|
|
1757
|
+
interface ParallaxBannerProps extends HTMLAttributes<HTMLElement> {
|
|
1758
|
+
/**
|
|
1759
|
+
* Layout variant.
|
|
1760
|
+
* - `"default"`: banner card plus a grid of culture/value cards beneath it.
|
|
1761
|
+
* - `"banner-only"`: just the banner card — no cards grid.
|
|
1762
|
+
*/
|
|
1763
|
+
variant?: "default" | "banner-only";
|
|
1764
|
+
/** Banner headline. Defaults to "Our culture". */
|
|
1765
|
+
title?: string;
|
|
1766
|
+
/** Supporting copy beneath the headline */
|
|
1767
|
+
description?: string;
|
|
1768
|
+
/** CTA link label. Defaults to "Culture at Deriv". */
|
|
1769
|
+
ctaLabel?: string;
|
|
1770
|
+
/** CTA link href */
|
|
1771
|
+
ctaHref?: string;
|
|
1772
|
+
/** Callback fired when the CTA link is clicked */
|
|
1773
|
+
onCtaClick?: () => void;
|
|
1774
|
+
/** URL of the photo shown in the banner's image panel */
|
|
1775
|
+
imageUrl?: string;
|
|
1776
|
+
/** Accessible alt text for the banner photo */
|
|
1777
|
+
imageAlt?: string;
|
|
1778
|
+
/**
|
|
1779
|
+
* Four (or more) short value/culture cards rendered in a grid below the
|
|
1780
|
+
* banner. Ignored when `variant` is `"banner-only"`. Defaults to
|
|
1781
|
+
* `DEFAULT_CULTURE_CARDS`.
|
|
1782
|
+
*/
|
|
1783
|
+
cards?: ParallaxBannerCultureCard[];
|
|
1784
|
+
/**
|
|
1785
|
+
* Enables the subtle scroll-linked parallax on the banner photo.
|
|
1786
|
+
* Automatically disabled when the user has `prefers-reduced-motion` set.
|
|
1787
|
+
* Defaults to `true`.
|
|
1788
|
+
*/
|
|
1789
|
+
enableParallax?: boolean;
|
|
1790
|
+
/** Extra class name merged onto the root `<section>` */
|
|
1791
|
+
className?: string;
|
|
1792
|
+
}
|
|
1793
|
+
|
|
1794
|
+
declare const PARALLAX_BANNER_TEXT_CONTENT: {
|
|
1795
|
+
title: string;
|
|
1796
|
+
description: string;
|
|
1797
|
+
ctaLabel: string;
|
|
1798
|
+
};
|
|
1799
|
+
declare const DEFAULT_CULTURE_CARDS: ParallaxBannerCultureCard[];
|
|
1800
|
+
declare const ParallaxBanner: ({ variant, title, description, ctaLabel, ctaHref, onCtaClick, imageUrl, imageAlt, cards, enableParallax, className, ...props }: ParallaxBannerProps) => react_jsx_runtime.JSX.Element;
|
|
1801
|
+
|
|
1802
|
+
export { AVATAR_DATA, Accordion, type AccordionProps, ArticleHero, type ArticleHeroArticle, type ArticleHeroColumn, type ArticleHeroProps, ArticleSection, type ArticleSectionItem, type ArticleSectionProps, type ArticleSectionVariant, AvatarGrid, type AvatarGridProps, type AvatarItem, type AvatarPosition, type AwardItem, BottomSheet, type BottomSheetAction, type BottomSheetProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, type BreadcrumbSize, Button, type ButtonColorScheme, type ButtonIconPosition, type ButtonProps, type ButtonVariant, COL_ONE_LOGOS, COL_TWO_LOGOS, CORAL_BANNER_DERIV_SLIDES, CTABanner, type CTABannerProps, Card, type CardPrimaryStyle, type CardProps, type CardTag, type CardThumbnailType, Chip, ChipDropdown, type ChipDropdownOption, type ChipDropdownProps, type ChipProps, type ChipSize, CoralBanner, type CoralBannerButton, type CoralBannerProps, type CoralBannerSlide, DEFAULT_AWARDS, DEFAULT_CULTURE_CARDS, DayNightTransition, type DayNightTransitionProps, DotLottieInView, type DotLottieInViewProps, DownloadBadge, type DownloadBadgeColorScheme, type DownloadBadgePlatform, type DownloadBadgeProps, DownloadBanner, type DownloadBannerProps, type DownloadBannerStyle, FEATURE_AWARDS_TEXT_CONTENT, FEATURE_BLOG_CATEGORIES_TEXT_CONTENT, FEATURE_BLOG_TEXT_CONTENT, FEATURE_SCROLL_DATA, FaqAccordion, type FaqAccordionColorScheme, type FaqAccordionProps, type FaqItem, FeatureAwards, type FeatureAwardsProps, FeatureBlog, type FeatureBlogAuthor, FeatureBlogCategories, type FeatureBlogCategoriesProps, type FeatureBlogCategoryPost, type FeatureBlogCategoryTab, type FeatureBlogContentBlock, type FeatureBlogContentBlockType, FeatureBlogPage, type FeatureBlogPageProps, type FeatureBlogPost, type FeatureBlogProps, type FeatureBlogSharePlatform, FeatureBullets, type FeatureBulletsProps, type FeatureCardIconItem, type FeatureCardItem, FeatureCards, FeatureCardsIcon, type FeatureCardsIconProps, type FeatureCardsProps, FeatureScroll, type FeatureScrollItem, type FeatureScrollProps, FeatureSplit, type FeatureSplitImagePosition, type FeatureSplitProps, Footer, type FooterAiSummaryItem, type FooterAiSummaryProps, type FooterAppBadge, type FooterDerivGoProps, type FooterLinkItem, type FooterNavSection, type FooterProps, type FooterSocialLink, Header, type HeaderButtonProps, type HeaderProps, type HeaderVariant, type HelpCenterContentBlock, type HelpCenterContentBlockType, HelpCenterPage, type HelpCenterPageProps, type HelpCenterQuestionItem, HelpCentreCategories, type HelpCentreCategoriesProps, type HelpCentreCategoryItem, HelpCentreSubCategories, type HelpCentreSubCategoriesProps, type HelpCentreSubCategoryItem, Hero, type HeroButtonProps, type HeroProps, type HeroVariant, ImageBanner, type ImageBannerProps, type LanguageItem, type LeaderItem, Leaders, type LeadersProps, Link, type LinkColorScheme, type LinkProps, type LogoItem, LogoMarquee, type LogoMarqueeProps, type NavDropdownColumn, type NavDropdownFeature, type NavDropdownItem, type NavItem, Navbar, type NavbarProps, PARALLAX_BANNER_TEXT_CONTENT, Pagination, type PaginationProps, ParallaxBanner, type ParallaxBannerCultureCard, type ParallaxBannerProps, PeopleGrid, type PeopleGridProps, type PersonItem, STEPS_DATA, SearchField, type SearchFieldProps, type SearchFieldStatus, type StatItem, Stats, type StatsAward, type StatsProps, StatsSimple, type StatsSimpleProps, type StepItem, Steps, type StepsImagePosition, type StepsProps, type StickyCardItem, type StickyCardTheme, type StickyMarketCardItem, type StickyMarketCardTheme, StickyMarketCards, type StickyMarketCardsProps, StickyStackedCards, type StickyStackedCardsProps, TEXT_CONTENT, type TabItem, Table, type TableColumnDef, type TableColumnWidth, type TableProps, type TableRowData, Tabs, type TabsProps, Tag, type TagFontWeight, type TagProps, type TagSize, type TagVariant, Testimonial, type TestimonialItem, type TestimonialProps, TextField, type TextFieldProps, type TextFieldStatus, type TextFieldVariant, TextScroll, type TextScrollProps, dayNightTransitionV2Preset };
|