@deriv-web-design/ui 0.0.17 → 0.0.19
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 +1216 -129
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +174 -2
- package/dist/index.d.ts +174 -2
- package/dist/index.js +1076 -366
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1070 -365
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -257,6 +257,25 @@ interface PaginationProps {
|
|
|
257
257
|
|
|
258
258
|
declare const Pagination: ({ currentPage, totalPages, onPageChange, className, }: PaginationProps) => react_jsx_runtime.JSX.Element;
|
|
259
259
|
|
|
260
|
+
interface TabItem {
|
|
261
|
+
/** Unique identifier for the tab */
|
|
262
|
+
id: string;
|
|
263
|
+
/** Display label for the tab */
|
|
264
|
+
label: string;
|
|
265
|
+
}
|
|
266
|
+
interface TabsProps {
|
|
267
|
+
/** Array of tab items to display */
|
|
268
|
+
items: TabItem[];
|
|
269
|
+
/** The currently active tab ID */
|
|
270
|
+
activeId: string;
|
|
271
|
+
/** Callback fired when a tab is clicked */
|
|
272
|
+
onChange: (id: string) => void;
|
|
273
|
+
/** Optional CSS class name */
|
|
274
|
+
className?: string;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
declare const Tabs: ({ items, activeId, onChange, className, ...props }: TabsProps) => react_jsx_runtime.JSX.Element;
|
|
278
|
+
|
|
260
279
|
interface FeatureCardItem {
|
|
261
280
|
title: string;
|
|
262
281
|
description: string;
|
|
@@ -280,6 +299,14 @@ interface FeatureCardsProps {
|
|
|
280
299
|
|
|
281
300
|
declare const FeatureCards: ({ sectionTitle, sectionDescription, showLink, linkText, onLinkClick, cardColorScheme, cards, }: FeatureCardsProps) => react_jsx_runtime.JSX.Element;
|
|
282
301
|
|
|
302
|
+
/** Shell style for a card in the Two Cards layout */
|
|
303
|
+
type FeatureCardSecondaryTwoTone = "light" | "dark";
|
|
304
|
+
/** Platform shortcut row (Two Cards variant) */
|
|
305
|
+
interface FeatureCardSecondaryPlatformLink {
|
|
306
|
+
label: string;
|
|
307
|
+
iconSrc: string;
|
|
308
|
+
href?: string;
|
|
309
|
+
}
|
|
283
310
|
interface FeatureCardSecondaryItem {
|
|
284
311
|
title: string;
|
|
285
312
|
description: string;
|
|
@@ -288,8 +315,22 @@ interface FeatureCardSecondaryItem {
|
|
|
288
315
|
showLink?: boolean;
|
|
289
316
|
linkText?: string;
|
|
290
317
|
onLinkClick?: () => void;
|
|
318
|
+
/** Large variants (two / one card): main CTA href */
|
|
319
|
+
linkHref?: string;
|
|
320
|
+
/** Two Cards variant: light or dark card shell */
|
|
321
|
+
colorScheme?: FeatureCardSecondaryTwoTone;
|
|
322
|
+
/** Large variants: platform links under the CTA */
|
|
323
|
+
platforms?: FeatureCardSecondaryPlatformLink[];
|
|
324
|
+
/** Large variants: label above platform row (default: "Available on") */
|
|
325
|
+
platformsHeading?: string;
|
|
326
|
+
/** Large variants: feature illustration */
|
|
327
|
+
image?: string;
|
|
328
|
+
imageAlt?: string;
|
|
291
329
|
}
|
|
330
|
+
type FeatureCardsSecondaryLayoutVariant = "default" | "twoCards" | "oneCard";
|
|
292
331
|
interface FeatureCardsSecondaryProps {
|
|
332
|
+
/** Default: secondary icon cards grid. Two Cards / One Card: large feature blocks with optional platform links and image. */
|
|
333
|
+
variant?: FeatureCardsSecondaryLayoutVariant;
|
|
293
334
|
sectionTitle: string;
|
|
294
335
|
sectionDescription?: string;
|
|
295
336
|
showLink?: boolean;
|
|
@@ -298,7 +339,22 @@ interface FeatureCardsSecondaryProps {
|
|
|
298
339
|
cards: FeatureCardSecondaryItem[];
|
|
299
340
|
}
|
|
300
341
|
|
|
301
|
-
declare const FeatureCardsSecondary: ({ sectionTitle, sectionDescription, showLink, linkText, onLinkClick, cards, }: FeatureCardsSecondaryProps) => react_jsx_runtime.JSX.Element;
|
|
342
|
+
declare const FeatureCardsSecondary: ({ variant, sectionTitle, sectionDescription, showLink, linkText, onLinkClick, cards, }: FeatureCardsSecondaryProps) => react_jsx_runtime.JSX.Element | null;
|
|
343
|
+
|
|
344
|
+
interface FeatureBulletsProps {
|
|
345
|
+
/** Title of the section */
|
|
346
|
+
title: string;
|
|
347
|
+
/** Array of bullet points to display */
|
|
348
|
+
bullets: string[];
|
|
349
|
+
/** URL for the image */
|
|
350
|
+
image: string;
|
|
351
|
+
/** Alt text for the image */
|
|
352
|
+
imageAlt?: string;
|
|
353
|
+
/** Position of the image relative to the text on desktop */
|
|
354
|
+
imagePosition?: "left" | "right";
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
declare const FeatureBullets: ({ title, bullets, image, imageAlt, imagePosition, }: FeatureBulletsProps) => react_jsx_runtime.JSX.Element;
|
|
302
358
|
|
|
303
359
|
interface FooterLinkItem {
|
|
304
360
|
/** Link label text */
|
|
@@ -900,4 +956,120 @@ interface TextScrollProps {
|
|
|
900
956
|
|
|
901
957
|
declare const TextScroll: ({ text, className }: TextScrollProps) => react_jsx_runtime.JSX.Element;
|
|
902
958
|
|
|
903
|
-
|
|
959
|
+
/** Visual colour theme for each card — matches the Figma palette. */
|
|
960
|
+
type StickyMarketCardTheme = "light" | "coral" | "dark";
|
|
961
|
+
interface StickyMarketCardItem {
|
|
962
|
+
/** Card heading */
|
|
963
|
+
title: string;
|
|
964
|
+
/** Body copy below the title */
|
|
965
|
+
description: string;
|
|
966
|
+
/**
|
|
967
|
+
* URL of the card's hero image.
|
|
968
|
+
* @default — placeholder used in stories when omitted
|
|
969
|
+
*/
|
|
970
|
+
imageUrl?: string;
|
|
971
|
+
/**
|
|
972
|
+
* Background / text colour theme.
|
|
973
|
+
* light → slate-75 bg + dark text
|
|
974
|
+
* coral → coral-500 bg + white text
|
|
975
|
+
* dark → slate-1200 bg + white text
|
|
976
|
+
* @default "dark"
|
|
977
|
+
*/
|
|
978
|
+
theme?: StickyMarketCardTheme;
|
|
979
|
+
}
|
|
980
|
+
interface StickyMarketCardsProps extends HTMLAttributes<HTMLElement> {
|
|
981
|
+
/** Section heading rendered as H2 */
|
|
982
|
+
sectionTitle: string;
|
|
983
|
+
/** Optional section description */
|
|
984
|
+
sectionDescription?: string;
|
|
985
|
+
/**
|
|
986
|
+
* Ordered list of cards (first item = back of stack, last = front).
|
|
987
|
+
*/
|
|
988
|
+
items: StickyMarketCardItem[];
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
declare const StickyMarketCards: ({ sectionTitle, sectionDescription, items, className, ...props }: StickyMarketCardsProps) => react_jsx_runtime.JSX.Element;
|
|
992
|
+
|
|
993
|
+
/** Column width variant */
|
|
994
|
+
type TableColumnWidth = "main" | "normal" | "big";
|
|
995
|
+
/** Single column definition */
|
|
996
|
+
interface TableColumnDef {
|
|
997
|
+
/** Unique key matching the row data field */
|
|
998
|
+
key: string;
|
|
999
|
+
/**
|
|
1000
|
+
* Header label text.
|
|
1001
|
+
* Pass an array for multi-line headers (e.g. ["Contract", "size"]).
|
|
1002
|
+
*/
|
|
1003
|
+
header: string | string[];
|
|
1004
|
+
/** Tooltip shown on header hover */
|
|
1005
|
+
tooltip?: {
|
|
1006
|
+
heading: string;
|
|
1007
|
+
description: string;
|
|
1008
|
+
};
|
|
1009
|
+
/**
|
|
1010
|
+
* Column width variant:
|
|
1011
|
+
* main → first/instrument column (wider, sticky, icon support)
|
|
1012
|
+
* normal → default column
|
|
1013
|
+
* big → wide column (e.g. Trading hours)
|
|
1014
|
+
*/
|
|
1015
|
+
width?: TableColumnWidth;
|
|
1016
|
+
}
|
|
1017
|
+
/**
|
|
1018
|
+
* A single row of table data.
|
|
1019
|
+
* All values are plain strings.
|
|
1020
|
+
* To show an icon in the main column, add a `${key}_iconUrl` entry.
|
|
1021
|
+
* Example: { instrument: "AUDCAD", instrument_iconUrl: "https://..." }
|
|
1022
|
+
*/
|
|
1023
|
+
interface TableRowData {
|
|
1024
|
+
[key: string]: string;
|
|
1025
|
+
}
|
|
1026
|
+
interface TableProps extends HTMLAttributes<HTMLDivElement> {
|
|
1027
|
+
/** Optional section title rendered above the table */
|
|
1028
|
+
sectionTitle?: string;
|
|
1029
|
+
/** Column definitions (order matters) */
|
|
1030
|
+
columns: TableColumnDef[];
|
|
1031
|
+
/** Row data */
|
|
1032
|
+
rows: TableRowData[];
|
|
1033
|
+
/**
|
|
1034
|
+
* Key of the main (instrument) column.
|
|
1035
|
+
* Defaults to the first column with width "main", or the first column.
|
|
1036
|
+
*/
|
|
1037
|
+
mainColumnKey?: string;
|
|
1038
|
+
/** Rows displayed per page (default: 10) */
|
|
1039
|
+
pageSize?: number;
|
|
1040
|
+
/** Search input placeholder (default: "Search") */
|
|
1041
|
+
searchPlaceholder?: string;
|
|
1042
|
+
/** Optional info text shown next to pagination */
|
|
1043
|
+
infoText?: string;
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
declare const Table: ({ sectionTitle, columns, rows, mainColumnKey, pageSize, searchPlaceholder, infoText, className, ...props }: TableProps) => react_jsx_runtime.JSX.Element;
|
|
1047
|
+
|
|
1048
|
+
interface LeaderItem {
|
|
1049
|
+
/** Leader's full name */
|
|
1050
|
+
name: string;
|
|
1051
|
+
/** Leader's job title or role */
|
|
1052
|
+
role: string;
|
|
1053
|
+
/** URL to the leader's profile image */
|
|
1054
|
+
imageUrl: string;
|
|
1055
|
+
/** URL to the leader's LinkedIn profile */
|
|
1056
|
+
linkedinUrl?: string;
|
|
1057
|
+
}
|
|
1058
|
+
interface LeadersProps {
|
|
1059
|
+
/** Section title (e.g., "Our leaders") */
|
|
1060
|
+
title?: string;
|
|
1061
|
+
/** Array of leader data objects */
|
|
1062
|
+
items: LeaderItem[];
|
|
1063
|
+
/** Number of items to show initially before expanding (default: 8) */
|
|
1064
|
+
initialVisibleCount?: number;
|
|
1065
|
+
/** Text for the expand button (default: "View all") */
|
|
1066
|
+
expandText?: string;
|
|
1067
|
+
/** Text for the collapse button (default: "View less") */
|
|
1068
|
+
collapseText?: string;
|
|
1069
|
+
/** Optional CSS class name */
|
|
1070
|
+
className?: string;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
declare const Leaders: ({ title, items, initialVisibleCount, expandText, collapseText, className, ...props }: LeadersProps) => react_jsx_runtime.JSX.Element;
|
|
1074
|
+
|
|
1075
|
+
export { AVATAR_DATA, Accordion, type AccordionProps, 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, CTABanner, type CTABannerProps, Card, type CardPrimaryStyle, type CardProps, type CardTag, type CardThumbnailType, Chip, ChipDropdown, type ChipDropdownOption, type ChipDropdownProps, type ChipProps, type ChipSize, DayNightTransition, type DayNightTransitionProps, DotLottieInView, type DotLottieInViewProps, DownloadBadge, type DownloadBadgeColorScheme, type DownloadBadgePlatform, type DownloadBadgeProps, DownloadBanner, type DownloadBannerProps, type DownloadBannerStyle, FEATURE_SCROLL_DATA, FeatureBullets, type FeatureBulletsProps, type FeatureCardItem, type FeatureCardSecondaryItem, type FeatureCardSecondaryPlatformLink, type FeatureCardSecondaryTwoTone, FeatureCards, type FeatureCardsProps, FeatureCardsSecondary, type FeatureCardsSecondaryLayoutVariant, type FeatureCardsSecondaryProps, FeatureScroll, type FeatureScrollItem, type FeatureScrollProps, Footer, type FooterAiSummaryItem, type FooterAiSummaryProps, type FooterAppBadge, type FooterDerivGoProps, type FooterLinkItem, type FooterNavSection, type FooterProps, type FooterSocialLink, Hero, type HeroButtonProps, type HeroProps, type HeroVariant, 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, Pagination, type PaginationProps, STEPS_DATA, SearchField, type SearchFieldProps, type SearchFieldStatus, type StatItem, Stats, type StatsProps, 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, TextField, type TextFieldProps, type TextFieldStatus, type TextFieldVariant, TextScroll, type TextScrollProps, dayNightTransitionV2Preset };
|
package/dist/index.d.ts
CHANGED
|
@@ -257,6 +257,25 @@ interface PaginationProps {
|
|
|
257
257
|
|
|
258
258
|
declare const Pagination: ({ currentPage, totalPages, onPageChange, className, }: PaginationProps) => react_jsx_runtime.JSX.Element;
|
|
259
259
|
|
|
260
|
+
interface TabItem {
|
|
261
|
+
/** Unique identifier for the tab */
|
|
262
|
+
id: string;
|
|
263
|
+
/** Display label for the tab */
|
|
264
|
+
label: string;
|
|
265
|
+
}
|
|
266
|
+
interface TabsProps {
|
|
267
|
+
/** Array of tab items to display */
|
|
268
|
+
items: TabItem[];
|
|
269
|
+
/** The currently active tab ID */
|
|
270
|
+
activeId: string;
|
|
271
|
+
/** Callback fired when a tab is clicked */
|
|
272
|
+
onChange: (id: string) => void;
|
|
273
|
+
/** Optional CSS class name */
|
|
274
|
+
className?: string;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
declare const Tabs: ({ items, activeId, onChange, className, ...props }: TabsProps) => react_jsx_runtime.JSX.Element;
|
|
278
|
+
|
|
260
279
|
interface FeatureCardItem {
|
|
261
280
|
title: string;
|
|
262
281
|
description: string;
|
|
@@ -280,6 +299,14 @@ interface FeatureCardsProps {
|
|
|
280
299
|
|
|
281
300
|
declare const FeatureCards: ({ sectionTitle, sectionDescription, showLink, linkText, onLinkClick, cardColorScheme, cards, }: FeatureCardsProps) => react_jsx_runtime.JSX.Element;
|
|
282
301
|
|
|
302
|
+
/** Shell style for a card in the Two Cards layout */
|
|
303
|
+
type FeatureCardSecondaryTwoTone = "light" | "dark";
|
|
304
|
+
/** Platform shortcut row (Two Cards variant) */
|
|
305
|
+
interface FeatureCardSecondaryPlatformLink {
|
|
306
|
+
label: string;
|
|
307
|
+
iconSrc: string;
|
|
308
|
+
href?: string;
|
|
309
|
+
}
|
|
283
310
|
interface FeatureCardSecondaryItem {
|
|
284
311
|
title: string;
|
|
285
312
|
description: string;
|
|
@@ -288,8 +315,22 @@ interface FeatureCardSecondaryItem {
|
|
|
288
315
|
showLink?: boolean;
|
|
289
316
|
linkText?: string;
|
|
290
317
|
onLinkClick?: () => void;
|
|
318
|
+
/** Large variants (two / one card): main CTA href */
|
|
319
|
+
linkHref?: string;
|
|
320
|
+
/** Two Cards variant: light or dark card shell */
|
|
321
|
+
colorScheme?: FeatureCardSecondaryTwoTone;
|
|
322
|
+
/** Large variants: platform links under the CTA */
|
|
323
|
+
platforms?: FeatureCardSecondaryPlatformLink[];
|
|
324
|
+
/** Large variants: label above platform row (default: "Available on") */
|
|
325
|
+
platformsHeading?: string;
|
|
326
|
+
/** Large variants: feature illustration */
|
|
327
|
+
image?: string;
|
|
328
|
+
imageAlt?: string;
|
|
291
329
|
}
|
|
330
|
+
type FeatureCardsSecondaryLayoutVariant = "default" | "twoCards" | "oneCard";
|
|
292
331
|
interface FeatureCardsSecondaryProps {
|
|
332
|
+
/** Default: secondary icon cards grid. Two Cards / One Card: large feature blocks with optional platform links and image. */
|
|
333
|
+
variant?: FeatureCardsSecondaryLayoutVariant;
|
|
293
334
|
sectionTitle: string;
|
|
294
335
|
sectionDescription?: string;
|
|
295
336
|
showLink?: boolean;
|
|
@@ -298,7 +339,22 @@ interface FeatureCardsSecondaryProps {
|
|
|
298
339
|
cards: FeatureCardSecondaryItem[];
|
|
299
340
|
}
|
|
300
341
|
|
|
301
|
-
declare const FeatureCardsSecondary: ({ sectionTitle, sectionDescription, showLink, linkText, onLinkClick, cards, }: FeatureCardsSecondaryProps) => react_jsx_runtime.JSX.Element;
|
|
342
|
+
declare const FeatureCardsSecondary: ({ variant, sectionTitle, sectionDescription, showLink, linkText, onLinkClick, cards, }: FeatureCardsSecondaryProps) => react_jsx_runtime.JSX.Element | null;
|
|
343
|
+
|
|
344
|
+
interface FeatureBulletsProps {
|
|
345
|
+
/** Title of the section */
|
|
346
|
+
title: string;
|
|
347
|
+
/** Array of bullet points to display */
|
|
348
|
+
bullets: string[];
|
|
349
|
+
/** URL for the image */
|
|
350
|
+
image: string;
|
|
351
|
+
/** Alt text for the image */
|
|
352
|
+
imageAlt?: string;
|
|
353
|
+
/** Position of the image relative to the text on desktop */
|
|
354
|
+
imagePosition?: "left" | "right";
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
declare const FeatureBullets: ({ title, bullets, image, imageAlt, imagePosition, }: FeatureBulletsProps) => react_jsx_runtime.JSX.Element;
|
|
302
358
|
|
|
303
359
|
interface FooterLinkItem {
|
|
304
360
|
/** Link label text */
|
|
@@ -900,4 +956,120 @@ interface TextScrollProps {
|
|
|
900
956
|
|
|
901
957
|
declare const TextScroll: ({ text, className }: TextScrollProps) => react_jsx_runtime.JSX.Element;
|
|
902
958
|
|
|
903
|
-
|
|
959
|
+
/** Visual colour theme for each card — matches the Figma palette. */
|
|
960
|
+
type StickyMarketCardTheme = "light" | "coral" | "dark";
|
|
961
|
+
interface StickyMarketCardItem {
|
|
962
|
+
/** Card heading */
|
|
963
|
+
title: string;
|
|
964
|
+
/** Body copy below the title */
|
|
965
|
+
description: string;
|
|
966
|
+
/**
|
|
967
|
+
* URL of the card's hero image.
|
|
968
|
+
* @default — placeholder used in stories when omitted
|
|
969
|
+
*/
|
|
970
|
+
imageUrl?: string;
|
|
971
|
+
/**
|
|
972
|
+
* Background / text colour theme.
|
|
973
|
+
* light → slate-75 bg + dark text
|
|
974
|
+
* coral → coral-500 bg + white text
|
|
975
|
+
* dark → slate-1200 bg + white text
|
|
976
|
+
* @default "dark"
|
|
977
|
+
*/
|
|
978
|
+
theme?: StickyMarketCardTheme;
|
|
979
|
+
}
|
|
980
|
+
interface StickyMarketCardsProps extends HTMLAttributes<HTMLElement> {
|
|
981
|
+
/** Section heading rendered as H2 */
|
|
982
|
+
sectionTitle: string;
|
|
983
|
+
/** Optional section description */
|
|
984
|
+
sectionDescription?: string;
|
|
985
|
+
/**
|
|
986
|
+
* Ordered list of cards (first item = back of stack, last = front).
|
|
987
|
+
*/
|
|
988
|
+
items: StickyMarketCardItem[];
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
declare const StickyMarketCards: ({ sectionTitle, sectionDescription, items, className, ...props }: StickyMarketCardsProps) => react_jsx_runtime.JSX.Element;
|
|
992
|
+
|
|
993
|
+
/** Column width variant */
|
|
994
|
+
type TableColumnWidth = "main" | "normal" | "big";
|
|
995
|
+
/** Single column definition */
|
|
996
|
+
interface TableColumnDef {
|
|
997
|
+
/** Unique key matching the row data field */
|
|
998
|
+
key: string;
|
|
999
|
+
/**
|
|
1000
|
+
* Header label text.
|
|
1001
|
+
* Pass an array for multi-line headers (e.g. ["Contract", "size"]).
|
|
1002
|
+
*/
|
|
1003
|
+
header: string | string[];
|
|
1004
|
+
/** Tooltip shown on header hover */
|
|
1005
|
+
tooltip?: {
|
|
1006
|
+
heading: string;
|
|
1007
|
+
description: string;
|
|
1008
|
+
};
|
|
1009
|
+
/**
|
|
1010
|
+
* Column width variant:
|
|
1011
|
+
* main → first/instrument column (wider, sticky, icon support)
|
|
1012
|
+
* normal → default column
|
|
1013
|
+
* big → wide column (e.g. Trading hours)
|
|
1014
|
+
*/
|
|
1015
|
+
width?: TableColumnWidth;
|
|
1016
|
+
}
|
|
1017
|
+
/**
|
|
1018
|
+
* A single row of table data.
|
|
1019
|
+
* All values are plain strings.
|
|
1020
|
+
* To show an icon in the main column, add a `${key}_iconUrl` entry.
|
|
1021
|
+
* Example: { instrument: "AUDCAD", instrument_iconUrl: "https://..." }
|
|
1022
|
+
*/
|
|
1023
|
+
interface TableRowData {
|
|
1024
|
+
[key: string]: string;
|
|
1025
|
+
}
|
|
1026
|
+
interface TableProps extends HTMLAttributes<HTMLDivElement> {
|
|
1027
|
+
/** Optional section title rendered above the table */
|
|
1028
|
+
sectionTitle?: string;
|
|
1029
|
+
/** Column definitions (order matters) */
|
|
1030
|
+
columns: TableColumnDef[];
|
|
1031
|
+
/** Row data */
|
|
1032
|
+
rows: TableRowData[];
|
|
1033
|
+
/**
|
|
1034
|
+
* Key of the main (instrument) column.
|
|
1035
|
+
* Defaults to the first column with width "main", or the first column.
|
|
1036
|
+
*/
|
|
1037
|
+
mainColumnKey?: string;
|
|
1038
|
+
/** Rows displayed per page (default: 10) */
|
|
1039
|
+
pageSize?: number;
|
|
1040
|
+
/** Search input placeholder (default: "Search") */
|
|
1041
|
+
searchPlaceholder?: string;
|
|
1042
|
+
/** Optional info text shown next to pagination */
|
|
1043
|
+
infoText?: string;
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
declare const Table: ({ sectionTitle, columns, rows, mainColumnKey, pageSize, searchPlaceholder, infoText, className, ...props }: TableProps) => react_jsx_runtime.JSX.Element;
|
|
1047
|
+
|
|
1048
|
+
interface LeaderItem {
|
|
1049
|
+
/** Leader's full name */
|
|
1050
|
+
name: string;
|
|
1051
|
+
/** Leader's job title or role */
|
|
1052
|
+
role: string;
|
|
1053
|
+
/** URL to the leader's profile image */
|
|
1054
|
+
imageUrl: string;
|
|
1055
|
+
/** URL to the leader's LinkedIn profile */
|
|
1056
|
+
linkedinUrl?: string;
|
|
1057
|
+
}
|
|
1058
|
+
interface LeadersProps {
|
|
1059
|
+
/** Section title (e.g., "Our leaders") */
|
|
1060
|
+
title?: string;
|
|
1061
|
+
/** Array of leader data objects */
|
|
1062
|
+
items: LeaderItem[];
|
|
1063
|
+
/** Number of items to show initially before expanding (default: 8) */
|
|
1064
|
+
initialVisibleCount?: number;
|
|
1065
|
+
/** Text for the expand button (default: "View all") */
|
|
1066
|
+
expandText?: string;
|
|
1067
|
+
/** Text for the collapse button (default: "View less") */
|
|
1068
|
+
collapseText?: string;
|
|
1069
|
+
/** Optional CSS class name */
|
|
1070
|
+
className?: string;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
declare const Leaders: ({ title, items, initialVisibleCount, expandText, collapseText, className, ...props }: LeadersProps) => react_jsx_runtime.JSX.Element;
|
|
1074
|
+
|
|
1075
|
+
export { AVATAR_DATA, Accordion, type AccordionProps, 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, CTABanner, type CTABannerProps, Card, type CardPrimaryStyle, type CardProps, type CardTag, type CardThumbnailType, Chip, ChipDropdown, type ChipDropdownOption, type ChipDropdownProps, type ChipProps, type ChipSize, DayNightTransition, type DayNightTransitionProps, DotLottieInView, type DotLottieInViewProps, DownloadBadge, type DownloadBadgeColorScheme, type DownloadBadgePlatform, type DownloadBadgeProps, DownloadBanner, type DownloadBannerProps, type DownloadBannerStyle, FEATURE_SCROLL_DATA, FeatureBullets, type FeatureBulletsProps, type FeatureCardItem, type FeatureCardSecondaryItem, type FeatureCardSecondaryPlatformLink, type FeatureCardSecondaryTwoTone, FeatureCards, type FeatureCardsProps, FeatureCardsSecondary, type FeatureCardsSecondaryLayoutVariant, type FeatureCardsSecondaryProps, FeatureScroll, type FeatureScrollItem, type FeatureScrollProps, Footer, type FooterAiSummaryItem, type FooterAiSummaryProps, type FooterAppBadge, type FooterDerivGoProps, type FooterLinkItem, type FooterNavSection, type FooterProps, type FooterSocialLink, Hero, type HeroButtonProps, type HeroProps, type HeroVariant, 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, Pagination, type PaginationProps, STEPS_DATA, SearchField, type SearchFieldProps, type SearchFieldStatus, type StatItem, Stats, type StatsProps, 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, TextField, type TextFieldProps, type TextFieldStatus, type TextFieldVariant, TextScroll, type TextScrollProps, dayNightTransitionV2Preset };
|