@deriv-web-design/ui 0.1.20 → 0.1.21
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 +754 -12
- package/components.manifest.json +380 -1
- package/dist/index.css +1153 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +391 -6
- package/dist/index.d.ts +391 -6
- package/dist/index.js +1408 -215
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1273 -89
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -311,18 +311,20 @@ interface TabItem {
|
|
|
311
311
|
/** Display label for the tab */
|
|
312
312
|
label: string;
|
|
313
313
|
}
|
|
314
|
-
interface TabsProps {
|
|
314
|
+
interface TabsProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
315
315
|
/** Array of tab items to display */
|
|
316
316
|
items: TabItem[];
|
|
317
317
|
/** The currently active tab ID */
|
|
318
318
|
activeId: string;
|
|
319
319
|
/** Callback fired when a tab is clicked */
|
|
320
320
|
onChange: (id: string) => void;
|
|
321
|
+
/** Stable prefix used to connect tabs to their tab panels. */
|
|
322
|
+
idPrefix?: string;
|
|
321
323
|
/** Optional CSS class name */
|
|
322
324
|
className?: string;
|
|
323
325
|
}
|
|
324
326
|
|
|
325
|
-
declare const Tabs: ({ items, activeId, onChange, className, ...props }: TabsProps) => react_jsx_runtime.JSX.Element;
|
|
327
|
+
declare const Tabs: ({ items, activeId, onChange, idPrefix, className, ...props }: TabsProps) => react_jsx_runtime.JSX.Element;
|
|
326
328
|
|
|
327
329
|
interface FaqItem {
|
|
328
330
|
/** The question shown in the accordion header */
|
|
@@ -346,7 +348,8 @@ type FeatureCardsLayoutVariant = "default" | "twoCards" | "oneCard";
|
|
|
346
348
|
/** Platform shortcut row (Two Cards / One Card variants) */
|
|
347
349
|
interface FeatureCardPlatformLink {
|
|
348
350
|
label: string;
|
|
349
|
-
|
|
351
|
+
/** Platform icon URL, rendered as an `<img>` */
|
|
352
|
+
iconSrc?: string;
|
|
350
353
|
href?: string;
|
|
351
354
|
}
|
|
352
355
|
/** Shell colour for a card in the Two Cards layout */
|
|
@@ -840,7 +843,7 @@ interface FeatureSplitProps {
|
|
|
840
843
|
|
|
841
844
|
declare const FeatureSplit: ({ title, description, showDescription, linkText, showLink, onLinkClick, image, imageAlt, imagePosition, }: FeatureSplitProps) => react_jsx_runtime.JSX.Element;
|
|
842
845
|
|
|
843
|
-
type DotLottieInViewProps = Omit<ComponentProps<typeof DotLottieReact>, "autoplay" | "
|
|
846
|
+
type DotLottieInViewProps = Omit<ComponentProps<typeof DotLottieReact>, "autoplay" | "dotLottieRefCallback"> & {
|
|
844
847
|
/**
|
|
845
848
|
* When false, playback is stopped (e.g. inactive slide in a stacked player).
|
|
846
849
|
* When true, plays once whenever the instance is both enabled and intersecting.
|
|
@@ -848,6 +851,8 @@ type DotLottieInViewProps = Omit<ComponentProps<typeof DotLottieReact>, "autopla
|
|
|
848
851
|
enabled?: boolean;
|
|
849
852
|
rootMargin?: string;
|
|
850
853
|
threshold?: number | number[];
|
|
854
|
+
/** Loop while enabled and in view. Defaults to false. */
|
|
855
|
+
loop?: boolean;
|
|
851
856
|
/**
|
|
852
857
|
* Painted in place of the player until the animation is ready, and as the
|
|
853
858
|
* Suspense fallback while the player chunk loads.
|
|
@@ -872,7 +877,7 @@ type DotLottieInViewProps = Omit<ComponentProps<typeof DotLottieReact>, "autopla
|
|
|
872
877
|
* that crossfades between stacked instances needs them all loaded, not just the
|
|
873
878
|
* one currently showing.
|
|
874
879
|
*/
|
|
875
|
-
declare function DotLottieInView({ enabled, rootMargin, threshold, className, style, poster, ...dotProps }: DotLottieInViewProps): react_jsx_runtime.JSX.Element;
|
|
880
|
+
declare function DotLottieInView({ enabled, rootMargin, threshold, loop, className, style, poster, ...dotProps }: DotLottieInViewProps): react_jsx_runtime.JSX.Element;
|
|
876
881
|
|
|
877
882
|
/** Visual colour theme for each card — matches the Figma palette. */
|
|
878
883
|
type StickyCardTheme = "light" | "coral" | "dark";
|
|
@@ -2404,4 +2409,384 @@ declare const RESOURCE_BANNER_DERIV_CONTENT: {
|
|
|
2404
2409
|
};
|
|
2405
2410
|
declare const ResourceBanner: ({ title, description, links, headingLevel: HeadingTag, className, ...props }: ResourceBannerProps) => react_jsx_runtime.JSX.Element;
|
|
2406
2411
|
|
|
2407
|
-
|
|
2412
|
+
type OptionsTypesVariant = "tabs" | "single";
|
|
2413
|
+
type OptionsTypesIcon = "forex" | "stock-indices" | "commodities" | "derived-indices" | "cryptocurrencies" | "deriv-trader" | "deriv-bot" | "smarttrader";
|
|
2414
|
+
interface OptionsTypesAnimation {
|
|
2415
|
+
/** Stable key for playback state. */
|
|
2416
|
+
id?: string;
|
|
2417
|
+
/**
|
|
2418
|
+
* Outcome this animation shows, e.g. "Rise". Names the play control rather
|
|
2419
|
+
* than rendering as card text, since the artwork already contains the word.
|
|
2420
|
+
*/
|
|
2421
|
+
label: string;
|
|
2422
|
+
/** HTTPS URL to a .lottie animation. */
|
|
2423
|
+
src: string;
|
|
2424
|
+
/** Still image covering the card until playback starts. */
|
|
2425
|
+
posterUrl?: string;
|
|
2426
|
+
}
|
|
2427
|
+
interface OptionsTypesMetaItem {
|
|
2428
|
+
/** Visible market or platform name. */
|
|
2429
|
+
label: string;
|
|
2430
|
+
/** Optional built-in icon. */
|
|
2431
|
+
icon?: OptionsTypesIcon;
|
|
2432
|
+
/** HTTPS URL to a hosted glyph. Takes precedence over `icon`. */
|
|
2433
|
+
iconUrl?: string;
|
|
2434
|
+
/** Optional destination; when omitted the item renders as plain text. */
|
|
2435
|
+
href?: string;
|
|
2436
|
+
}
|
|
2437
|
+
interface OptionsTypesItem {
|
|
2438
|
+
/** Stable item and tab identifier. */
|
|
2439
|
+
id: string;
|
|
2440
|
+
/** Tab label. Defaults to `title`. */
|
|
2441
|
+
label?: string;
|
|
2442
|
+
/** Option type title. */
|
|
2443
|
+
title: string;
|
|
2444
|
+
/** Explanation shown above or beside the animation cards. */
|
|
2445
|
+
description: string;
|
|
2446
|
+
/** One or two animation cards. */
|
|
2447
|
+
animations: OptionsTypesAnimation[];
|
|
2448
|
+
/** Markets where this option type is available. */
|
|
2449
|
+
markets?: OptionsTypesMetaItem[];
|
|
2450
|
+
/** Platforms where this option type can be traded. */
|
|
2451
|
+
platforms?: OptionsTypesMetaItem[];
|
|
2452
|
+
}
|
|
2453
|
+
interface OptionsTypesProps extends Omit<HTMLAttributes<HTMLElement>, "title" | "onChange"> {
|
|
2454
|
+
/**
|
|
2455
|
+
* `tabs` shows a selectable list of option types.
|
|
2456
|
+
* `single` shows one option in a media/content split.
|
|
2457
|
+
* @default "tabs"
|
|
2458
|
+
*/
|
|
2459
|
+
variant?: OptionsTypesVariant;
|
|
2460
|
+
/** Section heading. */
|
|
2461
|
+
heading?: string;
|
|
2462
|
+
/** Heading element used for the section title. */
|
|
2463
|
+
headingLevel?: "h2" | "h3" | "h4";
|
|
2464
|
+
/** Ordered option-type content. */
|
|
2465
|
+
items?: OptionsTypesItem[];
|
|
2466
|
+
/** Initially selected item for uncontrolled tab usage. */
|
|
2467
|
+
defaultActiveId?: string;
|
|
2468
|
+
/** Selected item for controlled tab usage. */
|
|
2469
|
+
activeId?: string;
|
|
2470
|
+
/** Optional selection callback. */
|
|
2471
|
+
onChange?: (id: string) => void;
|
|
2472
|
+
/** Label above the market list. */
|
|
2473
|
+
marketsLabel?: string;
|
|
2474
|
+
/** Label above the platform list. */
|
|
2475
|
+
platformsLabel?: string;
|
|
2476
|
+
/** Optional small-print note below the block. */
|
|
2477
|
+
disclaimer?: string;
|
|
2478
|
+
}
|
|
2479
|
+
|
|
2480
|
+
declare const OPTIONS_TYPES_PLACEHOLDER_ITEMS: OptionsTypesItem[];
|
|
2481
|
+
declare function OptionsTypes({ variant, heading, headingLevel, items, defaultActiveId, activeId, onChange, marketsLabel, platformsLabel, disclaimer, className, ...props }: OptionsTypesProps): react_jsx_runtime.JSX.Element;
|
|
2482
|
+
|
|
2483
|
+
declare const OPTIONS_TYPES_DIGITAL_CONTENT: OptionsTypesProps;
|
|
2484
|
+
declare const OPTIONS_TYPES_ACCUMULATOR_CONTENT: OptionsTypesProps;
|
|
2485
|
+
declare const OPTIONS_TYPES_VANILLA_CONTENT: OptionsTypesProps;
|
|
2486
|
+
declare const OPTIONS_TYPES_TURBO_CONTENT: OptionsTypesProps;
|
|
2487
|
+
declare const OPTIONS_TYPES_MULTIPLIERS_CONTENT: OptionsTypesProps;
|
|
2488
|
+
|
|
2489
|
+
type EntityInfoSectionHeadingLevel = "h2" | "h3" | "h4";
|
|
2490
|
+
interface EntityInfoSectionLink {
|
|
2491
|
+
/** Unique key for the link (falls back to array index) */
|
|
2492
|
+
id?: string | number;
|
|
2493
|
+
/** Link label, e.g. "View licence" / "View membership" */
|
|
2494
|
+
label: string;
|
|
2495
|
+
/** Destination — usually a regulatory PDF */
|
|
2496
|
+
href: string;
|
|
2497
|
+
/**
|
|
2498
|
+
* Opens in a new tab. Regulatory documents are hosted off-site
|
|
2499
|
+
* (docs.deriv.com), so this defaults to true.
|
|
2500
|
+
* @default true
|
|
2501
|
+
*/
|
|
2502
|
+
external?: boolean;
|
|
2503
|
+
}
|
|
2504
|
+
interface EntityInfoSectionProps extends HTMLAttributes<HTMLElement> {
|
|
2505
|
+
/** Legal entity name, e.g. "Deriv (FX) Ltd" */
|
|
2506
|
+
name?: string;
|
|
2507
|
+
/** Registration / licensing paragraph */
|
|
2508
|
+
description?: string;
|
|
2509
|
+
/**
|
|
2510
|
+
* Optional bulleted list rendered below the paragraph — used by entities
|
|
2511
|
+
* that enumerate their regulated activities.
|
|
2512
|
+
*/
|
|
2513
|
+
bullets?: string[];
|
|
2514
|
+
/**
|
|
2515
|
+
* Coral arrow links rendered below the copy, e.g. "View licence".
|
|
2516
|
+
* Laid out in a row that wraps, matching the reference section.
|
|
2517
|
+
*/
|
|
2518
|
+
links?: EntityInfoSectionLink[];
|
|
2519
|
+
/**
|
|
2520
|
+
* Heading tag to render. These blocks repeat down a page under a single
|
|
2521
|
+
* page title, so a lower level is often correct.
|
|
2522
|
+
* @default "h2"
|
|
2523
|
+
*/
|
|
2524
|
+
headingLevel?: EntityInfoSectionHeadingLevel;
|
|
2525
|
+
}
|
|
2526
|
+
|
|
2527
|
+
declare const EntityInfoSection: ({ name, description, bullets, links, headingLevel: HeadingTag, className, ...props }: EntityInfoSectionProps) => react_jsx_runtime.JSX.Element;
|
|
2528
|
+
|
|
2529
|
+
type CountryLinkGridHeadingLevel = "h2" | "h3" | "h4";
|
|
2530
|
+
interface CountryLinkGridItem {
|
|
2531
|
+
/** Unique key for the item (falls back to array index) */
|
|
2532
|
+
id?: string | number;
|
|
2533
|
+
/** Country name, e.g. "Country name" */
|
|
2534
|
+
label: string;
|
|
2535
|
+
/** Destination — usually a per-country regulatory PDF */
|
|
2536
|
+
href: string;
|
|
2537
|
+
/**
|
|
2538
|
+
* Flag icon source. Remote by design: flags are hosted on the CDN and are
|
|
2539
|
+
* never bundled with the design system, so the consumer supplies the URL.
|
|
2540
|
+
* Omit to render the item as text only.
|
|
2541
|
+
*/
|
|
2542
|
+
iconSrc?: string;
|
|
2543
|
+
/**
|
|
2544
|
+
* Alternative text for the flag image.
|
|
2545
|
+
*
|
|
2546
|
+
* Defaults to `""` (decorative). The country name is rendered as text
|
|
2547
|
+
* immediately beside the flag inside the same link, so describing the flag
|
|
2548
|
+
* as well would make a screen reader announce the country twice. Only set
|
|
2549
|
+
* this when the image carries information the label does not.
|
|
2550
|
+
* @default ""
|
|
2551
|
+
*/
|
|
2552
|
+
iconAlt?: string;
|
|
2553
|
+
/**
|
|
2554
|
+
* Opens in a new tab. The linked documents are hosted off-site
|
|
2555
|
+
* (docs.deriv.com), so this defaults to true.
|
|
2556
|
+
* @default true
|
|
2557
|
+
*/
|
|
2558
|
+
external?: boolean;
|
|
2559
|
+
}
|
|
2560
|
+
interface CountryLinkGridProps extends HTMLAttributes<HTMLElement> {
|
|
2561
|
+
/** Section heading, e.g. the entity whose passporting list this is */
|
|
2562
|
+
title?: string;
|
|
2563
|
+
/** Intro paragraph rendered under the heading */
|
|
2564
|
+
description?: string;
|
|
2565
|
+
/**
|
|
2566
|
+
* Countries rendered in the grid. Each is a flag icon plus a country name
|
|
2567
|
+
* linking to that country's document.
|
|
2568
|
+
*/
|
|
2569
|
+
items?: CountryLinkGridItem[];
|
|
2570
|
+
/**
|
|
2571
|
+
* Heading tag to render. This block usually sits under a page title and
|
|
2572
|
+
* beside other regulatory sections, so a lower level is often correct.
|
|
2573
|
+
* @default "h2"
|
|
2574
|
+
*/
|
|
2575
|
+
headingLevel?: CountryLinkGridHeadingLevel;
|
|
2576
|
+
}
|
|
2577
|
+
|
|
2578
|
+
declare const CountryLinkGrid: ({ title, description, items, headingLevel: HeadingTag, className, ...props }: CountryLinkGridProps) => react_jsx_runtime.JSX.Element;
|
|
2579
|
+
|
|
2580
|
+
type DocumentChipsHeadingLevel = "h2" | "h3" | "h4";
|
|
2581
|
+
type DocumentChipsVariant = "accordion" | "flat";
|
|
2582
|
+
interface DocumentChipsLanguageLink {
|
|
2583
|
+
/**
|
|
2584
|
+
* Link label.
|
|
2585
|
+
* @default "Choose language"
|
|
2586
|
+
*/
|
|
2587
|
+
label?: string;
|
|
2588
|
+
/**
|
|
2589
|
+
* Destination used when JavaScript has not taken over — the link is a real
|
|
2590
|
+
* anchor, so it needs somewhere to go. Falls back to the document's own
|
|
2591
|
+
* `href`. When `onLanguageSelect` is supplied the default is prevented and
|
|
2592
|
+
* the callback runs instead.
|
|
2593
|
+
*/
|
|
2594
|
+
href?: string;
|
|
2595
|
+
}
|
|
2596
|
+
interface DocumentChipsDocument {
|
|
2597
|
+
/** Unique key for the chip (falls back to array index) */
|
|
2598
|
+
id?: string | number;
|
|
2599
|
+
/** Document title, e.g. the name of the PDF as it should read to a user */
|
|
2600
|
+
title: string;
|
|
2601
|
+
/** Destination — usually an off-site PDF */
|
|
2602
|
+
href: string;
|
|
2603
|
+
/**
|
|
2604
|
+
* Opens in a new tab with `rel="noopener noreferrer"`. These documents are
|
|
2605
|
+
* normally hosted off-site, so this defaults to true.
|
|
2606
|
+
* @default true
|
|
2607
|
+
*/
|
|
2608
|
+
external?: boolean;
|
|
2609
|
+
/**
|
|
2610
|
+
* Per-document override of the file mark. Defaults to the template-level
|
|
2611
|
+
* `iconSrc`, which itself defaults to the shared PDF mark.
|
|
2612
|
+
*/
|
|
2613
|
+
iconSrc?: string;
|
|
2614
|
+
/**
|
|
2615
|
+
* Trailing language link. Omit it and the chip renders as icon + title
|
|
2616
|
+
* only — the two chip shapes are driven by data, not by a variant.
|
|
2617
|
+
*/
|
|
2618
|
+
languageLink?: DocumentChipsLanguageLink;
|
|
2619
|
+
}
|
|
2620
|
+
interface DocumentChipsGroup {
|
|
2621
|
+
/** Unique key for the group (falls back to array index) */
|
|
2622
|
+
id?: string | number;
|
|
2623
|
+
/** Group heading rendered in the accordion trigger, e.g. a product family */
|
|
2624
|
+
title: string;
|
|
2625
|
+
/** Document chips revealed when the group is expanded */
|
|
2626
|
+
documents?: DocumentChipsDocument[];
|
|
2627
|
+
}
|
|
2628
|
+
interface DocumentChipsProps extends HTMLAttributes<HTMLElement> {
|
|
2629
|
+
/**
|
|
2630
|
+
* `accordion` — expandable groups (default). `flat` — a single chip list
|
|
2631
|
+
* with no accordion chrome.
|
|
2632
|
+
* @default "accordion"
|
|
2633
|
+
*/
|
|
2634
|
+
variant?: DocumentChipsVariant;
|
|
2635
|
+
/** Section heading rendered above the groups. Pass `""` to drop it */
|
|
2636
|
+
title?: string;
|
|
2637
|
+
/** Optional intro paragraph rendered under the heading */
|
|
2638
|
+
description?: string;
|
|
2639
|
+
/** Expandable groups, each holding a set of document chips */
|
|
2640
|
+
groups?: DocumentChipsGroup[];
|
|
2641
|
+
/**
|
|
2642
|
+
* Default file mark rendered at the start of every chip, as an `<img>`.
|
|
2643
|
+
* This is a fixed brand asset, not a themeable icon — override it only to
|
|
2644
|
+
* point at a different hosted mark.
|
|
2645
|
+
* @default "https://media.ffycdn.net/eu/deriv/d/8d33a322464c4809a9d01119104caa0d"
|
|
2646
|
+
*/
|
|
2647
|
+
iconSrc?: string;
|
|
2648
|
+
/**
|
|
2649
|
+
* Alt text for the file mark. Empty by default: the mark is decorative
|
|
2650
|
+
* next to the document title it sits beside.
|
|
2651
|
+
* @default ""
|
|
2652
|
+
*/
|
|
2653
|
+
iconAlt?: string;
|
|
2654
|
+
/**
|
|
2655
|
+
* Allow more than one group open at a time. Off by default, matching the
|
|
2656
|
+
* reference block, which opens the first group and one group at a time.
|
|
2657
|
+
* @default false
|
|
2658
|
+
*/
|
|
2659
|
+
allowMultipleOpen?: boolean;
|
|
2660
|
+
/**
|
|
2661
|
+
* Called when a chip's language link is activated. When supplied, the
|
|
2662
|
+
* link's default navigation is prevented — wire this to
|
|
2663
|
+
* `LanguageSelectModal`. When omitted the link navigates normally.
|
|
2664
|
+
*/
|
|
2665
|
+
onLanguageSelect?: (document: DocumentChipsDocument, event: MouseEvent<HTMLAnchorElement>) => void;
|
|
2666
|
+
/**
|
|
2667
|
+
* Heading tag to render. Demote when the page already owns the heading
|
|
2668
|
+
* hierarchy above this section.
|
|
2669
|
+
* @default "h2"
|
|
2670
|
+
*/
|
|
2671
|
+
headingLevel?: DocumentChipsHeadingLevel;
|
|
2672
|
+
}
|
|
2673
|
+
|
|
2674
|
+
declare const DocumentChips: ({ variant, title, description, groups, iconSrc, iconAlt, allowMultipleOpen, onLanguageSelect, headingLevel: HeadingTag, className, ...props }: DocumentChipsProps) => react_jsx_runtime.JSX.Element;
|
|
2675
|
+
|
|
2676
|
+
interface LinkModalProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
2677
|
+
/** Whether the dialog is rendered. Nothing mounts while false */
|
|
2678
|
+
open: boolean;
|
|
2679
|
+
/**
|
|
2680
|
+
* Called when the user dismisses the dialog — close button, Escape key,
|
|
2681
|
+
* or a click on the scrim. The consumer owns the open state.
|
|
2682
|
+
*/
|
|
2683
|
+
onClose: () => void;
|
|
2684
|
+
/** Dialog title, rendered centred and used as the dialog's accessible name */
|
|
2685
|
+
title?: string;
|
|
2686
|
+
/** Accessible label for the close button */
|
|
2687
|
+
closeLabel?: string;
|
|
2688
|
+
/** Dialog body — any content the consumer supplies */
|
|
2689
|
+
children?: ReactNode;
|
|
2690
|
+
/**
|
|
2691
|
+
* Heading tag for the title. The dialog is a top-level surface, so `h2` is
|
|
2692
|
+
* usually right regardless of the page's own hierarchy.
|
|
2693
|
+
* @default "h2"
|
|
2694
|
+
*/
|
|
2695
|
+
headingLevel?: "h2" | "h3";
|
|
2696
|
+
/**
|
|
2697
|
+
* Element the dialog is portalled into. Defaults to `document.body`.
|
|
2698
|
+
* Pass a node when the app renders inside a shadow root or a modal host.
|
|
2699
|
+
*/
|
|
2700
|
+
container?: HTMLElement | null;
|
|
2701
|
+
}
|
|
2702
|
+
|
|
2703
|
+
declare const LinkModal: ({ open, onClose, title, closeLabel, children, headingLevel: HeadingTag, container, className, ...props }: LinkModalProps) => react.ReactPortal | null;
|
|
2704
|
+
|
|
2705
|
+
interface LanguageSelectModalOption {
|
|
2706
|
+
id?: string | number;
|
|
2707
|
+
label: string;
|
|
2708
|
+
href: string;
|
|
2709
|
+
flagSrc?: string;
|
|
2710
|
+
flagAlt?: string;
|
|
2711
|
+
external?: boolean;
|
|
2712
|
+
}
|
|
2713
|
+
interface LanguageSelectModalProps extends Omit<HTMLAttributes<HTMLDivElement>, "title">, Pick<LinkModalProps, "open" | "onClose" | "title" | "closeLabel" | "headingLevel" | "container"> {
|
|
2714
|
+
options?: LanguageSelectModalOption[];
|
|
2715
|
+
}
|
|
2716
|
+
|
|
2717
|
+
declare const LanguageSelectModal: ({ open, onClose, title, closeLabel, options, headingLevel, container, className, ...props }: LanguageSelectModalProps) => react_jsx_runtime.JSX.Element;
|
|
2718
|
+
|
|
2719
|
+
interface AffiliatesSliderProps extends HTMLAttributes<HTMLElement> {
|
|
2720
|
+
/** Section heading */
|
|
2721
|
+
title?: string;
|
|
2722
|
+
/** Intro paragraph under the heading */
|
|
2723
|
+
description?: string;
|
|
2724
|
+
/**
|
|
2725
|
+
* Minimum slider value.
|
|
2726
|
+
* @default 10
|
|
2727
|
+
*/
|
|
2728
|
+
min?: number;
|
|
2729
|
+
/**
|
|
2730
|
+
* Maximum slider value.
|
|
2731
|
+
* @default 50
|
|
2732
|
+
*/
|
|
2733
|
+
max?: number;
|
|
2734
|
+
/**
|
|
2735
|
+
* Slider step.
|
|
2736
|
+
* @default 1
|
|
2737
|
+
*/
|
|
2738
|
+
step?: number;
|
|
2739
|
+
/**
|
|
2740
|
+
* Initial slider value when uncontrolled.
|
|
2741
|
+
* @default 10
|
|
2742
|
+
*/
|
|
2743
|
+
defaultValue?: number;
|
|
2744
|
+
/** Controlled slider value */
|
|
2745
|
+
value?: number;
|
|
2746
|
+
/** Called when the slider value changes */
|
|
2747
|
+
onValueChange?: (value: number) => void;
|
|
2748
|
+
/**
|
|
2749
|
+
* Label shown under the referrals count.
|
|
2750
|
+
* @default "total referrals (Min deposit amount of $100 each)"
|
|
2751
|
+
*/
|
|
2752
|
+
referralsLabel?: string;
|
|
2753
|
+
/**
|
|
2754
|
+
* Label shown under the income figure.
|
|
2755
|
+
* @default "your potential income per month"
|
|
2756
|
+
*/
|
|
2757
|
+
incomeLabel?: string;
|
|
2758
|
+
/**
|
|
2759
|
+
* Amount earned per referral — multiplied by the slider value for the
|
|
2760
|
+
* income display.
|
|
2761
|
+
* @default 100
|
|
2762
|
+
*/
|
|
2763
|
+
incomePerReferral?: number;
|
|
2764
|
+
/**
|
|
2765
|
+
* Currency symbol prepended to the income figure.
|
|
2766
|
+
* @default "$"
|
|
2767
|
+
*/
|
|
2768
|
+
currencySymbol?: string;
|
|
2769
|
+
/**
|
|
2770
|
+
* Tick labels rendered under the track. Defaults to five evenly spaced
|
|
2771
|
+
* values from `min` to `max`.
|
|
2772
|
+
*/
|
|
2773
|
+
tickValues?: number[];
|
|
2774
|
+
/**
|
|
2775
|
+
* Disclaimer copy below the slider.
|
|
2776
|
+
* @default "This calculator provides estimates only and may not reflect actual earnings."
|
|
2777
|
+
*/
|
|
2778
|
+
disclaimer?: string;
|
|
2779
|
+
/**
|
|
2780
|
+
* Info icon beside the disclaimer. A fixed hosted brand asset.
|
|
2781
|
+
* @default "https://cdn.prod.website-files.com/68da5c86c91c54f39c86c28a/68da5c86c91c54f39c86cdaf_icon.svg"
|
|
2782
|
+
*/
|
|
2783
|
+
disclaimerIconSrc?: string;
|
|
2784
|
+
/** Alt text for the disclaimer icon. Empty = decorative */
|
|
2785
|
+
disclaimerIconAlt?: string;
|
|
2786
|
+
/** Accessible label for the referrals slider */
|
|
2787
|
+
sliderLabel?: string;
|
|
2788
|
+
}
|
|
2789
|
+
|
|
2790
|
+
declare const AffiliatesSlider: ({ title, description, min, max, step, defaultValue, value, onValueChange, referralsLabel, incomeLabel, incomePerReferral, currencySymbol, tickValues, disclaimer, disclaimerIconSrc, disclaimerIconAlt, sliderLabel, className, ...props }: AffiliatesSliderProps) => react_jsx_runtime.JSX.Element;
|
|
2791
|
+
|
|
2792
|
+
export { AVATAR_DATA, Accordion, type AccordionProps, AffiliatesSlider, type AffiliatesSliderProps, 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, type CalculationToken, 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, CountryLinkGrid, type CountryLinkGridHeadingLevel, type CountryLinkGridItem, type CountryLinkGridProps, DEFAULT_AWARDS, DEFAULT_CULTURE_CARDS, DEFAULT_EXCHANGE_RATE_WS_URL, DEFAULT_SYMBOLS_ENDPOINT, DayNightTransition, type DayNightTransitionProps, DocumentChips, type DocumentChipsDocument, type DocumentChipsGroup, type DocumentChipsHeadingLevel, type DocumentChipsLanguageLink, type DocumentChipsProps, type DocumentChipsVariant, DotLottieInView, type DotLottieInViewProps, DownloadBadge, type DownloadBadgeColorScheme, type DownloadBadgePlatform, type DownloadBadgeProps, DownloadBanner, type DownloadBannerProps, type DownloadBannerStyle, DynamicTable, type DynamicTableColumnDef, type DynamicTableProps, type DynamicTableRowData, type DynamicTableVariant, EntityInfoSection, type EntityInfoSectionHeadingLevel, type EntityInfoSectionLink, type EntityInfoSectionProps, FEATURE_AWARDS_TEXT_CONTENT, FEATURE_BLOG_CATEGORIES_TEXT_CONTENT, FEATURE_BLOG_TEXT_CONTENT, FEATURE_OFFICES_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, type FeatureOffice, type FeatureOfficeRegion, FeatureOffices, type FeatureOfficesProps, 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, type FormulaBlock, 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, IMAGE_BANNER_CHIPS_DEFAULT_IMAGE, ImageBanner, type ImageBannerProps, type ImageBannerVariant, type LanguageItem, LanguageSelectModal, type LanguageSelectModalOption, type LanguageSelectModalProps, type LeaderItem, Leaders, type LeadersProps, Link, type LinkColorScheme, LinkModal, type LinkModalProps, type LinkProps, type LogoItem, LogoMarquee, type LogoMarqueeProps, MasterPartner, type MasterPartnerNote, type MasterPartnerProps, type MasterPartnerStep, type NavDropdownColumn, type NavDropdownFeature, type NavDropdownItem, type NavItem, Navbar, type NavbarProps, OPTIONS_TYPES_ACCUMULATOR_CONTENT, OPTIONS_TYPES_DIGITAL_CONTENT, OPTIONS_TYPES_MULTIPLIERS_CONTENT, OPTIONS_TYPES_PLACEHOLDER_ITEMS, OPTIONS_TYPES_TURBO_CONTENT, OPTIONS_TYPES_VANILLA_CONTENT, OptionsTypes, type OptionsTypesAnimation, type OptionsTypesIcon, type OptionsTypesItem, type OptionsTypesMetaItem, type OptionsTypesProps, type OptionsTypesVariant, PARALLAX_BANNER_TEXT_CONTENT, Pagination, type PaginationProps, ParallaxBanner, type ParallaxBannerCultureCard, type ParallaxBannerProps, type PartnerPayoutItem, PartnersPayout, type PartnersPayoutProps, PeopleGrid, type PeopleGridProps, type PersonItem, RESOURCE_BANNER_DERIV_CONTENT, ResourceBanner, type ResourceBannerHeadingLevel, type ResourceBannerLink, type ResourceBannerProps, 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, type SwapCalculationMode, 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, type TierAccent, type TierItem, Tiers, type TiersProps, TradingCalculator, TradingCalculatorHowTo, type TradingCalculatorHowToProps, type TradingCalculatorHowToVariant, type TradingCalculatorProps, type TradingCalculatorResults, type TradingCalculatorVariant, type TradingSymbolSpec, dayNightTransitionV2Preset };
|