@deriv-web-design/ui 0.1.32 → 0.1.34
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 +479 -1
- package/components.manifest.json +237 -1
- package/dist/index.css +3437 -2272
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +140 -3
- package/dist/index.d.ts +140 -3
- package/dist/index.js +3412 -1438
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3337 -1355
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/tokens.css +1 -0
package/components.manifest.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$comment": "Generated by scripts/generate-component-manifest.ts from the TypeScript types. Do not edit by hand. Props inherited from React HTMLAttributes are intentionally omitted. `default` is the value declared in the component's own parameter destructuring; a prop whose effective default is applied further down the tree (e.g. cards[].showLink) has no `default` here — see block-registry.json `fields` for documented effective defaults.",
|
|
3
3
|
"package": "@deriv-web-design/ui",
|
|
4
|
-
"componentCount":
|
|
4
|
+
"componentCount": 68,
|
|
5
5
|
"components": {
|
|
6
6
|
"Accordion": {
|
|
7
7
|
"name": "Accordion",
|
|
@@ -858,6 +858,70 @@
|
|
|
858
858
|
}
|
|
859
859
|
}
|
|
860
860
|
},
|
|
861
|
+
"ComparisonCards": {
|
|
862
|
+
"name": "ComparisonCards",
|
|
863
|
+
"source": "templates/ComparisonCards/ComparisonCards.tsx",
|
|
864
|
+
"props": {
|
|
865
|
+
"cards": {
|
|
866
|
+
"type": "ComparisonCardsCard[]",
|
|
867
|
+
"required": true,
|
|
868
|
+
"description": "Comparison cards (typically 2–3). Each card is an independent surface with its own repeated spec rows — not a shared table first column.",
|
|
869
|
+
"items": {
|
|
870
|
+
"description": {
|
|
871
|
+
"type": "string",
|
|
872
|
+
"required": true,
|
|
873
|
+
"description": "Short supporting copy under the title"
|
|
874
|
+
},
|
|
875
|
+
"footnote": {
|
|
876
|
+
"type": "string",
|
|
877
|
+
"required": false,
|
|
878
|
+
"description": "Optional disclaimer belonging to this card only"
|
|
879
|
+
},
|
|
880
|
+
"rows": {
|
|
881
|
+
"type": "ComparisonCardsRow[]",
|
|
882
|
+
"required": true,
|
|
883
|
+
"description": "Label/value rows. Labels are authored per card, not shared.",
|
|
884
|
+
"items": {
|
|
885
|
+
"label": {
|
|
886
|
+
"type": "string",
|
|
887
|
+
"required": true,
|
|
888
|
+
"description": "Spec label shown on the left (repeated per card)"
|
|
889
|
+
},
|
|
890
|
+
"value": {
|
|
891
|
+
"type": "string",
|
|
892
|
+
"required": true,
|
|
893
|
+
"description": "Spec value shown on the right"
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
},
|
|
897
|
+
"theme": {
|
|
898
|
+
"type": "ComparisonCardsTheme",
|
|
899
|
+
"required": false,
|
|
900
|
+
"description": "Card surface. Defaults to cycling light → dark."
|
|
901
|
+
},
|
|
902
|
+
"title": {
|
|
903
|
+
"type": "string",
|
|
904
|
+
"required": true,
|
|
905
|
+
"description": "Card heading"
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
},
|
|
909
|
+
"className": {
|
|
910
|
+
"type": "string",
|
|
911
|
+
"required": false
|
|
912
|
+
},
|
|
913
|
+
"description": {
|
|
914
|
+
"type": "string",
|
|
915
|
+
"required": false,
|
|
916
|
+
"description": "Supporting copy under the section heading"
|
|
917
|
+
},
|
|
918
|
+
"title": {
|
|
919
|
+
"type": "string",
|
|
920
|
+
"required": true,
|
|
921
|
+
"description": "Section heading above the cards"
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
},
|
|
861
925
|
"CoralBanner": {
|
|
862
926
|
"name": "CoralBanner",
|
|
863
927
|
"source": "templates/CoralBanner/CoralBanner.tsx",
|
|
@@ -940,6 +1004,75 @@
|
|
|
940
1004
|
}
|
|
941
1005
|
}
|
|
942
1006
|
},
|
|
1007
|
+
"CryptoMarketsTable": {
|
|
1008
|
+
"name": "CryptoMarketsTable",
|
|
1009
|
+
"source": "templates/CryptoMarketsTable/CryptoMarketsTable.tsx",
|
|
1010
|
+
"props": {
|
|
1011
|
+
"apiOrigin": {
|
|
1012
|
+
"type": "string",
|
|
1013
|
+
"required": false
|
|
1014
|
+
},
|
|
1015
|
+
"className": {
|
|
1016
|
+
"type": "string",
|
|
1017
|
+
"required": false
|
|
1018
|
+
},
|
|
1019
|
+
"initialMarket": {
|
|
1020
|
+
"type": "\"spot\" | \"futures\"",
|
|
1021
|
+
"required": false,
|
|
1022
|
+
"default": "spot"
|
|
1023
|
+
},
|
|
1024
|
+
"initialQuoteCurrency": {
|
|
1025
|
+
"type": "string",
|
|
1026
|
+
"required": false,
|
|
1027
|
+
"default": "USDT"
|
|
1028
|
+
},
|
|
1029
|
+
"maxRows": {
|
|
1030
|
+
"type": "number",
|
|
1031
|
+
"required": false
|
|
1032
|
+
},
|
|
1033
|
+
"variant": {
|
|
1034
|
+
"type": "\"default\"",
|
|
1035
|
+
"required": false,
|
|
1036
|
+
"default": "default"
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
},
|
|
1040
|
+
"CryptoTradeConverter": {
|
|
1041
|
+
"name": "CryptoTradeConverter",
|
|
1042
|
+
"source": "templates/CryptoTradeConverter/CryptoTradeConverter.tsx",
|
|
1043
|
+
"props": {
|
|
1044
|
+
"apiOrigin": {
|
|
1045
|
+
"type": "string",
|
|
1046
|
+
"required": false,
|
|
1047
|
+
"description": "Allowlisted HTTPS API origin (default https://deriv.exchange)."
|
|
1048
|
+
},
|
|
1049
|
+
"className": {
|
|
1050
|
+
"type": "string",
|
|
1051
|
+
"required": false
|
|
1052
|
+
},
|
|
1053
|
+
"defaultPair": {
|
|
1054
|
+
"type": "string",
|
|
1055
|
+
"required": false,
|
|
1056
|
+
"description": "Pair like \"BTC/USDT\" or symbol id like \"btc1863usdt1863\"."
|
|
1057
|
+
},
|
|
1058
|
+
"market": {
|
|
1059
|
+
"type": "\"spot\"",
|
|
1060
|
+
"required": false,
|
|
1061
|
+
"default": "spot"
|
|
1062
|
+
},
|
|
1063
|
+
"tradeHref": {
|
|
1064
|
+
"type": "string",
|
|
1065
|
+
"required": false,
|
|
1066
|
+
"description": "Primary Buy/Sell CTA destination.",
|
|
1067
|
+
"defaultExpression": "DEFAULT_TRADE_HREF"
|
|
1068
|
+
},
|
|
1069
|
+
"variant": {
|
|
1070
|
+
"type": "\"default\"",
|
|
1071
|
+
"required": false,
|
|
1072
|
+
"default": "default"
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
},
|
|
943
1076
|
"DayNightTransition": {
|
|
944
1077
|
"name": "DayNightTransition",
|
|
945
1078
|
"source": "templates/DayNightTransition/DayNightTransition.tsx",
|
|
@@ -1858,6 +1991,103 @@
|
|
|
1858
1991
|
}
|
|
1859
1992
|
}
|
|
1860
1993
|
},
|
|
1994
|
+
"FeatureCardsCarousel": {
|
|
1995
|
+
"name": "FeatureCardsCarousel",
|
|
1996
|
+
"source": "templates/FeatureCardsCarousel/FeatureCardsCarousel.tsx",
|
|
1997
|
+
"props": {
|
|
1998
|
+
"autoplay": {
|
|
1999
|
+
"type": "boolean",
|
|
2000
|
+
"required": false,
|
|
2001
|
+
"description": "Enable autoplay. Off by default; must be pausable when enabled.",
|
|
2002
|
+
"default": false
|
|
2003
|
+
},
|
|
2004
|
+
"autoplayDelay": {
|
|
2005
|
+
"type": "number",
|
|
2006
|
+
"required": false,
|
|
2007
|
+
"description": "Autoplay interval in ms when `autoplay` is true",
|
|
2008
|
+
"default": 5000
|
|
2009
|
+
},
|
|
2010
|
+
"className": {
|
|
2011
|
+
"type": "string",
|
|
2012
|
+
"required": false
|
|
2013
|
+
},
|
|
2014
|
+
"defaultActiveIndex": {
|
|
2015
|
+
"type": "number",
|
|
2016
|
+
"required": false,
|
|
2017
|
+
"description": "Zero-based index of the initially active slide",
|
|
2018
|
+
"default": 0
|
|
2019
|
+
},
|
|
2020
|
+
"description": {
|
|
2021
|
+
"type": "string",
|
|
2022
|
+
"required": false,
|
|
2023
|
+
"description": "Supporting copy under the section heading"
|
|
2024
|
+
},
|
|
2025
|
+
"items": {
|
|
2026
|
+
"type": "FeatureCardsCarouselItem[]",
|
|
2027
|
+
"required": true,
|
|
2028
|
+
"description": "Authored slides. Preserve order; do not flatten to a static grid.",
|
|
2029
|
+
"items": {
|
|
2030
|
+
"ctaHref": {
|
|
2031
|
+
"type": "string",
|
|
2032
|
+
"required": false,
|
|
2033
|
+
"description": "Optional CTA href. When omitted with a label, renders a button-styled span."
|
|
2034
|
+
},
|
|
2035
|
+
"ctaLabel": {
|
|
2036
|
+
"type": "string",
|
|
2037
|
+
"required": false,
|
|
2038
|
+
"description": "Optional CTA label on the slide"
|
|
2039
|
+
},
|
|
2040
|
+
"description": {
|
|
2041
|
+
"type": "string",
|
|
2042
|
+
"required": true,
|
|
2043
|
+
"description": "Supporting body copy"
|
|
2044
|
+
},
|
|
2045
|
+
"image": {
|
|
2046
|
+
"type": "string",
|
|
2047
|
+
"required": false,
|
|
2048
|
+
"description": "Artwork shown under the copy, or as a full-card cover when `imageFit` is `\"cover\"`"
|
|
2049
|
+
},
|
|
2050
|
+
"imageAlt": {
|
|
2051
|
+
"type": "string",
|
|
2052
|
+
"required": false,
|
|
2053
|
+
"description": "Alt text for the artwork. Empty string marks it decorative."
|
|
2054
|
+
},
|
|
2055
|
+
"imageFit": {
|
|
2056
|
+
"type": "FeatureCardsCarouselImageFit",
|
|
2057
|
+
"required": false,
|
|
2058
|
+
"description": "Artwork layout. - `\"media\"` (default): fixed-height strip under the copy - `\"cover\"`: fills the entire card behind the copy (lifestyle photos)"
|
|
2059
|
+
},
|
|
2060
|
+
"title": {
|
|
2061
|
+
"type": "string",
|
|
2062
|
+
"required": true,
|
|
2063
|
+
"description": "Slide heading"
|
|
2064
|
+
},
|
|
2065
|
+
"tone": {
|
|
2066
|
+
"type": "FeatureCardsCarouselTone",
|
|
2067
|
+
"required": false,
|
|
2068
|
+
"description": "Card surface tone. Defaults to cycling coral → dark → light."
|
|
2069
|
+
}
|
|
2070
|
+
}
|
|
2071
|
+
},
|
|
2072
|
+
"showArrows": {
|
|
2073
|
+
"type": "boolean",
|
|
2074
|
+
"required": false,
|
|
2075
|
+
"description": "Show previous / next controls",
|
|
2076
|
+
"default": true
|
|
2077
|
+
},
|
|
2078
|
+
"showDots": {
|
|
2079
|
+
"type": "boolean",
|
|
2080
|
+
"required": false,
|
|
2081
|
+
"description": "Show pagination dots",
|
|
2082
|
+
"default": true
|
|
2083
|
+
},
|
|
2084
|
+
"title": {
|
|
2085
|
+
"type": "string",
|
|
2086
|
+
"required": true,
|
|
2087
|
+
"description": "Section heading above the slider"
|
|
2088
|
+
}
|
|
2089
|
+
}
|
|
2090
|
+
},
|
|
1861
2091
|
"FeatureCardsIcon": {
|
|
1862
2092
|
"name": "FeatureCardsIcon",
|
|
1863
2093
|
"source": "templates/FeatureCardsIcon/FeatureCardsIcon.tsx",
|
|
@@ -2557,6 +2787,12 @@
|
|
|
2557
2787
|
"required": false,
|
|
2558
2788
|
"description": "Secondary foreground image. Accepts a ReactNode or image URL string. In the Showcase variant it sits below `productImage`, cropped to a 1:1 box. In the Split variant it is a small layer anchored to the hero's lower inline-end and painted behind `heroImage` so the subject overlaps it; it keeps its natural aspect ratio (no crop) and is hidden below 992px."
|
|
2559
2789
|
},
|
|
2790
|
+
"headingLevel": {
|
|
2791
|
+
"type": "1 | 2",
|
|
2792
|
+
"required": false,
|
|
2793
|
+
"description": "Semantic heading level for `title`. Defaults to `1` (`<h1>`) because a Hero is the page’s leading heading. Pass `2` when the Hero is not the document’s primary H1 (e.g. a secondary band below an existing title). Styling always uses `.hero__title` regardless of level.",
|
|
2794
|
+
"default": 1
|
|
2795
|
+
},
|
|
2560
2796
|
"heroImage": {
|
|
2561
2797
|
"type": "ReactNode",
|
|
2562
2798
|
"required": false,
|