@razorpay/blade 6.4.0 → 6.5.1
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/CHANGELOG.md +21 -0
- package/build/components/index.d.ts +1641 -101
- package/build/components/index.native.d.ts +1334 -91
- package/build/components/index.native.js +335 -321
- package/build/components/index.native.js.map +1 -1
- package/build/components/index.web.js +4111 -1455
- package/build/components/index.web.js.map +1 -1
- package/build/css/bankingThemeDarkDesktop.css +2 -2
- package/build/css/bankingThemeDarkMobile.css +2 -2
- package/build/css/bankingThemeLightDesktop.css +2 -2
- package/build/css/bankingThemeLightMobile.css +2 -2
- package/build/css/paymentThemeDarkDesktop.css +2 -2
- package/build/css/paymentThemeDarkMobile.css +2 -2
- package/build/css/paymentThemeLightDesktop.css +2 -2
- package/build/css/paymentThemeLightMobile.css +2 -2
- package/build/tokens/index.d.ts +135 -14
- package/build/tokens/index.native.d.ts +135 -14
- package/build/tokens/index.native.js +1 -1
- package/build/tokens/index.native.js.map +1 -1
- package/build/tokens/index.web.js +7 -2
- package/build/tokens/index.web.js.map +1 -1
- package/build/utils/index.d.ts +69 -8
- package/build/utils/index.native.d.ts +69 -8
- package/build/utils/index.native.js +5 -3
- package/build/utils/index.native.js.map +1 -1
- package/build/utils/index.web.js +17 -12
- package/build/utils/index.web.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="styled-components-react-native" />
|
|
3
|
+
/// <reference types="~src/@types/globals" />
|
|
2
4
|
import * as React$1 from 'react';
|
|
3
5
|
import React__default, { ReactChild, ReactElement, ReactNode, SyntheticEvent, KeyboardEvent } from 'react';
|
|
4
|
-
import
|
|
6
|
+
import * as styled_components from 'styled-components';
|
|
5
7
|
import { CSSObject } from 'styled-components';
|
|
8
|
+
import { AccessibilityRole, ImageSourcePropType, View, GestureResponderEvent } from 'react-native';
|
|
6
9
|
|
|
7
10
|
type BorderRadius = Readonly<{
|
|
8
11
|
/** none: 0(px/rem/pt) */
|
|
@@ -34,18 +37,73 @@ type Border = Readonly<{
|
|
|
34
37
|
}>;
|
|
35
38
|
|
|
36
39
|
type Breakpoints = Readonly<{
|
|
37
|
-
/**
|
|
40
|
+
/**
|
|
41
|
+
* `base` is used for responsive styling following a **mobile first** approach. It starts from 0px till the next existing token
|
|
42
|
+
*
|
|
43
|
+
* Think of this as styles without any media query.
|
|
44
|
+
*
|
|
45
|
+
* ### Example
|
|
46
|
+
*
|
|
47
|
+
* This code will set margin as `spacing.2` on "m" size screens and above. And as `spacing.1` on less than "m" size screens
|
|
48
|
+
* ```jsx
|
|
49
|
+
* <Box margin={{ base: 'spacing.1', m: 'spacing.2' }} />
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* This roughly translates into -
|
|
53
|
+
*
|
|
54
|
+
* ```
|
|
55
|
+
* .Box {
|
|
56
|
+
* margin: 'spacing.1';
|
|
57
|
+
* }
|
|
58
|
+
*
|
|
59
|
+
* @media screen and (min-width: 768px) {
|
|
60
|
+
* .Box {
|
|
61
|
+
* margin: 'spacing.2';
|
|
62
|
+
* }
|
|
63
|
+
* }
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
base: number;
|
|
67
|
+
/**
|
|
68
|
+
* `@media screen and (min-width: 320px)`
|
|
69
|
+
*
|
|
70
|
+
* Small Mobiles
|
|
71
|
+
*/
|
|
38
72
|
xs: number;
|
|
39
|
-
/**
|
|
73
|
+
/**
|
|
74
|
+
* `@media screen and (min-width: 480px)`
|
|
75
|
+
*
|
|
76
|
+
* Mobiles and Small Tablets
|
|
77
|
+
*/
|
|
40
78
|
s: number;
|
|
41
|
-
/**
|
|
79
|
+
/**
|
|
80
|
+
* `@media screen and (min-width: 768px)`
|
|
81
|
+
*
|
|
82
|
+
* Medium and Large Tablets.
|
|
83
|
+
*
|
|
84
|
+
* Dimensions with `m` and above can be treated as desktop in mobile-first approach (with min-width).
|
|
85
|
+
* Hence this breakpoint can be used for desktop styling.
|
|
86
|
+
*
|
|
87
|
+
* E.g. next example will keep flexDirection `row` on mobiles and `column` on large tablets, desktop, and larger screens
|
|
88
|
+
*
|
|
89
|
+
* ```jsx
|
|
90
|
+
* <Box display="flex" flexDirection={{ base: 'row', m: 'column' }} />
|
|
91
|
+
* ```
|
|
92
|
+
*
|
|
93
|
+
*/
|
|
42
94
|
m: number;
|
|
43
|
-
/**
|
|
95
|
+
/**
|
|
96
|
+
* `@media screen and (min-width: 1024px)`
|
|
97
|
+
*
|
|
98
|
+
* Desktop
|
|
99
|
+
*/
|
|
44
100
|
l: number;
|
|
45
|
-
/**
|
|
101
|
+
/**
|
|
102
|
+
* `@media screen and (min-width: 1200px)`
|
|
103
|
+
*
|
|
104
|
+
* HD Desktop
|
|
105
|
+
*/
|
|
46
106
|
xl: number;
|
|
47
|
-
/** min width: 1201px */
|
|
48
|
-
max: number;
|
|
49
107
|
}>;
|
|
50
108
|
|
|
51
109
|
type FontFamily = {
|
|
@@ -200,6 +258,12 @@ type TypographyPlatforms$1 = 'onDesktop' | 'onMobile';
|
|
|
200
258
|
|
|
201
259
|
type TypographyWithPlatforms = Record<TypographyPlatforms$1, Typography>;
|
|
202
260
|
|
|
261
|
+
/**
|
|
262
|
+
* When any of the values are changed here, do change the jsdoc comments in BaseBox/types/spacingTypes.ts as well
|
|
263
|
+
*
|
|
264
|
+
* {@link ../../components/Box/BaseBox/types/spacingTypes.ts}
|
|
265
|
+
*/
|
|
266
|
+
|
|
203
267
|
type Spacing = Readonly<{
|
|
204
268
|
/** 0: 0(px/rem/pt) */
|
|
205
269
|
0: 0;
|
|
@@ -848,6 +912,8 @@ type DotNotationColorStringToken<TokenType> = {
|
|
|
848
912
|
: DotNotationColorStringToken<TokenType[K]>}`;
|
|
849
913
|
}[keyof TokenType];
|
|
850
914
|
|
|
915
|
+
type DotNotationSpacingStringToken = `spacing.${keyof Spacing}`;
|
|
916
|
+
|
|
851
917
|
/**
|
|
852
918
|
* Use this when you want children to be string.
|
|
853
919
|
*
|
|
@@ -870,7 +936,7 @@ type DotNotationColorStringToken<TokenType> = {
|
|
|
870
936
|
*/
|
|
871
937
|
type StringChildrenType = React__default.ReactText | React__default.ReactText[];
|
|
872
938
|
|
|
873
|
-
type TestID = {
|
|
939
|
+
type TestID$1 = {
|
|
874
940
|
testID?: string;
|
|
875
941
|
};
|
|
876
942
|
|
|
@@ -880,7 +946,7 @@ declare type ActionListProps = {
|
|
|
880
946
|
* Decides the backgroundColor of ActionList
|
|
881
947
|
*/
|
|
882
948
|
surfaceLevel?: 2 | 3;
|
|
883
|
-
} & TestID;
|
|
949
|
+
} & TestID$1;
|
|
884
950
|
/**
|
|
885
951
|
* ### ActionList
|
|
886
952
|
*
|
|
@@ -941,6 +1007,362 @@ type Theme$1 = {
|
|
|
941
1007
|
typography: Typography;
|
|
942
1008
|
};
|
|
943
1009
|
|
|
1010
|
+
/**
|
|
1011
|
+
* Returns the value or the responsive object with that value
|
|
1012
|
+
*
|
|
1013
|
+
* ## Usage
|
|
1014
|
+
*
|
|
1015
|
+
* Example if you pass string argument, return type will be string or responsive object with string value
|
|
1016
|
+
*
|
|
1017
|
+
* `MakeValueResponsive<string>`
|
|
1018
|
+
* ```ts
|
|
1019
|
+
* string |
|
|
1020
|
+
* {
|
|
1021
|
+
* base?: string;
|
|
1022
|
+
* xs?: string;
|
|
1023
|
+
* s?: string;
|
|
1024
|
+
* // ... other breakpoints
|
|
1025
|
+
* }
|
|
1026
|
+
* ```
|
|
1027
|
+
*
|
|
1028
|
+
*/
|
|
1029
|
+
type MakeValueResponsive$1<T> =
|
|
1030
|
+
| T
|
|
1031
|
+
| {
|
|
1032
|
+
// Using this instead of Record to maintain the jsdoc from breakpoints.ts
|
|
1033
|
+
[P in keyof Breakpoints]?: T;
|
|
1034
|
+
};
|
|
1035
|
+
|
|
1036
|
+
/**
|
|
1037
|
+
* Turns all the values in object into responsive object.
|
|
1038
|
+
*
|
|
1039
|
+
* ```ts
|
|
1040
|
+
* MakeObjectResponsive<{ hello: string}>
|
|
1041
|
+
*
|
|
1042
|
+
* // Outputs:
|
|
1043
|
+
* {
|
|
1044
|
+
* hello: string | {
|
|
1045
|
+
* base?: string;
|
|
1046
|
+
* xs?: string;
|
|
1047
|
+
* s?: string;
|
|
1048
|
+
* // ... other breakpoints
|
|
1049
|
+
* }
|
|
1050
|
+
* }
|
|
1051
|
+
* ```
|
|
1052
|
+
*/
|
|
1053
|
+
type MakeObjectResponsive$1<T> = { [P in keyof T]: MakeValueResponsive$1<T[P]> };
|
|
1054
|
+
|
|
1055
|
+
type ArrayOfMaxLength4$1<T> = readonly [T?, T?, T?, T?];
|
|
1056
|
+
type SpaceUnits$1 = Platform.Select<{
|
|
1057
|
+
web: 'px' | '%' | 'fr' | 'rem' | 'em' | 'vh' | 'vw';
|
|
1058
|
+
native: 'px' | '%';
|
|
1059
|
+
}>;
|
|
1060
|
+
type SpacingValueType$1 = DotNotationSpacingStringToken | `${string}${SpaceUnits$1}` | 'auto';
|
|
1061
|
+
|
|
1062
|
+
type MarginProps$1 = MakeObjectResponsive$1<{
|
|
1063
|
+
/**
|
|
1064
|
+
* ### Margin Shorthand
|
|
1065
|
+
*
|
|
1066
|
+
* #### Usage
|
|
1067
|
+
*
|
|
1068
|
+
* ```jsx
|
|
1069
|
+
* margin="spacing.3"
|
|
1070
|
+
* margin="20px"
|
|
1071
|
+
* margin={["spacing.3", "spacing.1", "spacing.0", "10px"]}
|
|
1072
|
+
* ```
|
|
1073
|
+
*
|
|
1074
|
+
* ---
|
|
1075
|
+
* #### Spacing to Pixel values
|
|
1076
|
+
*
|
|
1077
|
+
* - `spacing.0` - 0px
|
|
1078
|
+
* - `spacing.1` - 2px
|
|
1079
|
+
* - `spacing.2` - 4px
|
|
1080
|
+
* - `spacing.3` - 8px
|
|
1081
|
+
* - `spacing.4` - 12px
|
|
1082
|
+
* - `spacing.5` - 16px
|
|
1083
|
+
* - `spacing.6` - 20px
|
|
1084
|
+
* - `spacing.7` - 24px
|
|
1085
|
+
* - `spacing.8` - 32px
|
|
1086
|
+
* - `spacing.9` - 40px
|
|
1087
|
+
* - `spacing.10` - 48px
|
|
1088
|
+
* - `spacing.11` - 56px
|
|
1089
|
+
*
|
|
1090
|
+
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
1091
|
+
*
|
|
1092
|
+
*/
|
|
1093
|
+
margin: SpacingValueType$1 | ArrayOfMaxLength4$1<SpacingValueType$1>;
|
|
1094
|
+
/**
|
|
1095
|
+
* ### Margin Horizontal
|
|
1096
|
+
*
|
|
1097
|
+
* #### Usage
|
|
1098
|
+
*
|
|
1099
|
+
* ```jsx
|
|
1100
|
+
* marginX="spacing.3"
|
|
1101
|
+
* marginX="20px"
|
|
1102
|
+
* ```
|
|
1103
|
+
*
|
|
1104
|
+
* ---
|
|
1105
|
+
* #### Spacing to Pixel values
|
|
1106
|
+
*
|
|
1107
|
+
* - `spacing.0` - 0px
|
|
1108
|
+
* - `spacing.1` - 2px
|
|
1109
|
+
* - `spacing.2` - 4px
|
|
1110
|
+
* - `spacing.3` - 8px
|
|
1111
|
+
* - `spacing.4` - 12px
|
|
1112
|
+
* - `spacing.5` - 16px
|
|
1113
|
+
* - `spacing.6` - 20px
|
|
1114
|
+
* - `spacing.7` - 24px
|
|
1115
|
+
* - `spacing.8` - 32px
|
|
1116
|
+
* - `spacing.9` - 40px
|
|
1117
|
+
* - `spacing.10` - 48px
|
|
1118
|
+
* - `spacing.11` - 56px
|
|
1119
|
+
*
|
|
1120
|
+
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
1121
|
+
*
|
|
1122
|
+
*/
|
|
1123
|
+
marginX: SpacingValueType$1;
|
|
1124
|
+
/**
|
|
1125
|
+
* ### Margin Vertical
|
|
1126
|
+
*
|
|
1127
|
+
* #### Usage
|
|
1128
|
+
*
|
|
1129
|
+
* ```jsx
|
|
1130
|
+
* marginY="spacing.3"
|
|
1131
|
+
* marginY="20px"
|
|
1132
|
+
* ```
|
|
1133
|
+
*
|
|
1134
|
+
* ---
|
|
1135
|
+
* #### Spacing to Pixel values
|
|
1136
|
+
*
|
|
1137
|
+
* - `spacing.0` - 0px
|
|
1138
|
+
* - `spacing.1` - 2px
|
|
1139
|
+
* - `spacing.2` - 4px
|
|
1140
|
+
* - `spacing.3` - 8px
|
|
1141
|
+
* - `spacing.4` - 12px
|
|
1142
|
+
* - `spacing.5` - 16px
|
|
1143
|
+
* - `spacing.6` - 20px
|
|
1144
|
+
* - `spacing.7` - 24px
|
|
1145
|
+
* - `spacing.8` - 32px
|
|
1146
|
+
* - `spacing.9` - 40px
|
|
1147
|
+
* - `spacing.10` - 48px
|
|
1148
|
+
* - `spacing.11` - 56px
|
|
1149
|
+
*
|
|
1150
|
+
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
1151
|
+
*
|
|
1152
|
+
*/
|
|
1153
|
+
marginY: SpacingValueType$1;
|
|
1154
|
+
/**
|
|
1155
|
+
* ### Margin Top
|
|
1156
|
+
*
|
|
1157
|
+
* #### Usage
|
|
1158
|
+
*
|
|
1159
|
+
* ```jsx
|
|
1160
|
+
* marginTop="spacing.3"
|
|
1161
|
+
* marginTop="20px"
|
|
1162
|
+
* ```
|
|
1163
|
+
*
|
|
1164
|
+
* ---
|
|
1165
|
+
* #### Spacing to Pixel values
|
|
1166
|
+
*
|
|
1167
|
+
* - `spacing.0` - 0px
|
|
1168
|
+
* - `spacing.1` - 2px
|
|
1169
|
+
* - `spacing.2` - 4px
|
|
1170
|
+
* - `spacing.3` - 8px
|
|
1171
|
+
* - `spacing.4` - 12px
|
|
1172
|
+
* - `spacing.5` - 16px
|
|
1173
|
+
* - `spacing.6` - 20px
|
|
1174
|
+
* - `spacing.7` - 24px
|
|
1175
|
+
* - `spacing.8` - 32px
|
|
1176
|
+
* - `spacing.9` - 40px
|
|
1177
|
+
* - `spacing.10` - 48px
|
|
1178
|
+
* - `spacing.11` - 56px
|
|
1179
|
+
*
|
|
1180
|
+
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
1181
|
+
*/
|
|
1182
|
+
marginTop: SpacingValueType$1;
|
|
1183
|
+
/**
|
|
1184
|
+
* ### Margin Right
|
|
1185
|
+
*
|
|
1186
|
+
* #### Usage
|
|
1187
|
+
*
|
|
1188
|
+
* ```jsx
|
|
1189
|
+
* marginRight="spacing.3"
|
|
1190
|
+
* marginRight="20px"
|
|
1191
|
+
* ```
|
|
1192
|
+
*
|
|
1193
|
+
* ---
|
|
1194
|
+
* #### Spacing to Pixel values
|
|
1195
|
+
*
|
|
1196
|
+
* - `spacing.0` - 0px
|
|
1197
|
+
* - `spacing.1` - 2px
|
|
1198
|
+
* - `spacing.2` - 4px
|
|
1199
|
+
* - `spacing.3` - 8px
|
|
1200
|
+
* - `spacing.4` - 12px
|
|
1201
|
+
* - `spacing.5` - 16px
|
|
1202
|
+
* - `spacing.6` - 20px
|
|
1203
|
+
* - `spacing.7` - 24px
|
|
1204
|
+
* - `spacing.8` - 32px
|
|
1205
|
+
* - `spacing.9` - 40px
|
|
1206
|
+
* - `spacing.10` - 48px
|
|
1207
|
+
* - `spacing.11` - 56px
|
|
1208
|
+
*
|
|
1209
|
+
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
1210
|
+
*/
|
|
1211
|
+
marginRight: SpacingValueType$1;
|
|
1212
|
+
/**
|
|
1213
|
+
* ### Margin Bottom
|
|
1214
|
+
*
|
|
1215
|
+
* #### Usage
|
|
1216
|
+
*
|
|
1217
|
+
* ```jsx
|
|
1218
|
+
* marginBottom="spacing.3"
|
|
1219
|
+
* marginBottom="20px"
|
|
1220
|
+
* ```
|
|
1221
|
+
*
|
|
1222
|
+
* ---
|
|
1223
|
+
* #### Spacing to Pixel values
|
|
1224
|
+
*
|
|
1225
|
+
* - `spacing.0` - 0px
|
|
1226
|
+
* - `spacing.1` - 2px
|
|
1227
|
+
* - `spacing.2` - 4px
|
|
1228
|
+
* - `spacing.3` - 8px
|
|
1229
|
+
* - `spacing.4` - 12px
|
|
1230
|
+
* - `spacing.5` - 16px
|
|
1231
|
+
* - `spacing.6` - 20px
|
|
1232
|
+
* - `spacing.7` - 24px
|
|
1233
|
+
* - `spacing.8` - 32px
|
|
1234
|
+
* - `spacing.9` - 40px
|
|
1235
|
+
* - `spacing.10` - 48px
|
|
1236
|
+
* - `spacing.11` - 56px
|
|
1237
|
+
*
|
|
1238
|
+
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
1239
|
+
*/
|
|
1240
|
+
marginBottom: SpacingValueType$1;
|
|
1241
|
+
/**
|
|
1242
|
+
* ### Margin Left
|
|
1243
|
+
*
|
|
1244
|
+
* #### Usage
|
|
1245
|
+
*
|
|
1246
|
+
* ```jsx
|
|
1247
|
+
* marginLeft="spacing.3"
|
|
1248
|
+
* marginLeft="20px"
|
|
1249
|
+
* ```
|
|
1250
|
+
*
|
|
1251
|
+
* ---
|
|
1252
|
+
* #### Spacing to Pixel values
|
|
1253
|
+
*
|
|
1254
|
+
* - `spacing.0` - 0px
|
|
1255
|
+
* - `spacing.1` - 2px
|
|
1256
|
+
* - `spacing.2` - 4px
|
|
1257
|
+
* - `spacing.3` - 8px
|
|
1258
|
+
* - `spacing.4` - 12px
|
|
1259
|
+
* - `spacing.5` - 16px
|
|
1260
|
+
* - `spacing.6` - 20px
|
|
1261
|
+
* - `spacing.7` - 24px
|
|
1262
|
+
* - `spacing.8` - 32px
|
|
1263
|
+
* - `spacing.9` - 40px
|
|
1264
|
+
* - `spacing.10` - 48px
|
|
1265
|
+
* - `spacing.11` - 56px
|
|
1266
|
+
*
|
|
1267
|
+
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
1268
|
+
*/
|
|
1269
|
+
marginLeft: SpacingValueType$1;
|
|
1270
|
+
}>;
|
|
1271
|
+
|
|
1272
|
+
type MakeObjectWebOnly$1<T> = {
|
|
1273
|
+
[P in keyof T]: Platform.Select<{ web: T[P]; native: never }>;
|
|
1274
|
+
};
|
|
1275
|
+
|
|
1276
|
+
type FlexboxProps$1 = MakeObjectResponsive$1<
|
|
1277
|
+
{
|
|
1278
|
+
/**
|
|
1279
|
+
* This uses the native gap property which might not work on older browsers.
|
|
1280
|
+
* If you want to support older browsers, you might want to use `margin` instead.
|
|
1281
|
+
*
|
|
1282
|
+
* @see https://caniuse.com/?search=gap
|
|
1283
|
+
*/
|
|
1284
|
+
gap: SpacingValueType$1;
|
|
1285
|
+
/**
|
|
1286
|
+
* This uses the native row-gap property which might not work on older browsers.
|
|
1287
|
+
* If you want to support older browsers, you might want to use `margin` instead.
|
|
1288
|
+
*
|
|
1289
|
+
* @see https://caniuse.com/?search=row-gap
|
|
1290
|
+
*/
|
|
1291
|
+
rowGap: SpacingValueType$1;
|
|
1292
|
+
/**
|
|
1293
|
+
* This uses the native column-gap property which might not work on older browsers.
|
|
1294
|
+
* If you want to support older browsers, you might want to use `margin` instead.
|
|
1295
|
+
*
|
|
1296
|
+
* @see https://caniuse.com/?search=column-gap
|
|
1297
|
+
*/
|
|
1298
|
+
columnGap: SpacingValueType$1;
|
|
1299
|
+
} & Pick<
|
|
1300
|
+
CSSObject,
|
|
1301
|
+
| 'flex'
|
|
1302
|
+
| 'flexWrap'
|
|
1303
|
+
| 'flexDirection'
|
|
1304
|
+
| 'flexGrow'
|
|
1305
|
+
| 'flexShrink'
|
|
1306
|
+
| 'flexBasis'
|
|
1307
|
+
| 'alignItems'
|
|
1308
|
+
| 'alignContent'
|
|
1309
|
+
| 'alignSelf'
|
|
1310
|
+
| 'justifyItems'
|
|
1311
|
+
| 'justifyContent'
|
|
1312
|
+
| 'justifySelf'
|
|
1313
|
+
| 'placeSelf'
|
|
1314
|
+
| 'order'
|
|
1315
|
+
>
|
|
1316
|
+
>;
|
|
1317
|
+
|
|
1318
|
+
type PositionProps$1 = MakeObjectResponsive$1<
|
|
1319
|
+
{
|
|
1320
|
+
top: SpacingValueType$1;
|
|
1321
|
+
right: SpacingValueType$1;
|
|
1322
|
+
bottom: SpacingValueType$1;
|
|
1323
|
+
left: SpacingValueType$1;
|
|
1324
|
+
} & Pick<CSSObject, 'position' | 'zIndex'>
|
|
1325
|
+
>;
|
|
1326
|
+
|
|
1327
|
+
type GridProps$1 = MakeObjectWebOnly$1<
|
|
1328
|
+
MakeObjectResponsive$1<
|
|
1329
|
+
Pick<
|
|
1330
|
+
CSSObject,
|
|
1331
|
+
| 'grid'
|
|
1332
|
+
| 'gridColumn'
|
|
1333
|
+
| 'gridRow'
|
|
1334
|
+
| 'gridRowStart'
|
|
1335
|
+
| 'gridRowEnd'
|
|
1336
|
+
| 'gridColumnStart'
|
|
1337
|
+
| 'gridColumnEnd'
|
|
1338
|
+
| 'gridArea'
|
|
1339
|
+
| 'gridAutoFlow'
|
|
1340
|
+
| 'gridAutoRows'
|
|
1341
|
+
| 'gridAutoColumns'
|
|
1342
|
+
| 'gridTemplate'
|
|
1343
|
+
| 'gridTemplateAreas'
|
|
1344
|
+
| 'gridTemplateColumns'
|
|
1345
|
+
| 'gridTemplateRows'
|
|
1346
|
+
>
|
|
1347
|
+
>
|
|
1348
|
+
>;
|
|
1349
|
+
|
|
1350
|
+
type StyledPropsBlade = Partial<
|
|
1351
|
+
MarginProps$1 &
|
|
1352
|
+
Pick<FlexboxProps$1, 'alignSelf' | 'justifySelf' | 'placeSelf' | 'order'> &
|
|
1353
|
+
PositionProps$1 &
|
|
1354
|
+
Pick<
|
|
1355
|
+
GridProps$1,
|
|
1356
|
+
| 'gridColumn'
|
|
1357
|
+
| 'gridRow'
|
|
1358
|
+
| 'gridRowStart'
|
|
1359
|
+
| 'gridRowEnd'
|
|
1360
|
+
| 'gridColumnStart'
|
|
1361
|
+
| 'gridColumnEnd'
|
|
1362
|
+
| 'gridArea'
|
|
1363
|
+
>
|
|
1364
|
+
>;
|
|
1365
|
+
|
|
944
1366
|
type FeedbackIconColors$1 = `feedback.icon.${DotNotationColorStringToken<
|
|
945
1367
|
Theme$1['colors']['feedback']['icon']
|
|
946
1368
|
>}`;
|
|
@@ -979,7 +1401,7 @@ type IconProps$1 = {
|
|
|
979
1401
|
| BadgeIconColors$1
|
|
980
1402
|
| 'currentColor'; // currentColor is useful for letting the SVG inherit color property from its container
|
|
981
1403
|
size: IconSize$1;
|
|
982
|
-
};
|
|
1404
|
+
} & StyledPropsBlade;
|
|
983
1405
|
type IconComponent$1 = React.ComponentType<IconProps$1>;
|
|
984
1406
|
|
|
985
1407
|
declare type ActionListItemProps = {
|
|
@@ -1023,7 +1445,7 @@ declare type ActionListItemProps = {
|
|
|
1023
1445
|
* @private
|
|
1024
1446
|
*/
|
|
1025
1447
|
_index?: number;
|
|
1026
|
-
} & TestID;
|
|
1448
|
+
} & TestID$1;
|
|
1027
1449
|
declare const ActionListSectionDivider: () => JSX.Element;
|
|
1028
1450
|
declare type ActionListSectionProps = {
|
|
1029
1451
|
title: string;
|
|
@@ -1036,7 +1458,7 @@ declare type ActionListSectionProps = {
|
|
|
1036
1458
|
* @private
|
|
1037
1459
|
*/
|
|
1038
1460
|
_hideDivider?: boolean;
|
|
1039
|
-
} & TestID;
|
|
1461
|
+
} & TestID$1;
|
|
1040
1462
|
declare const ActionListSection: WithComponentId<ActionListSectionProps>;
|
|
1041
1463
|
declare const ActionListItemIcon: WithComponentId<{
|
|
1042
1464
|
icon: IconComponent$1;
|
|
@@ -1072,7 +1494,7 @@ declare type ActionListHeaderProps = {
|
|
|
1072
1494
|
* Valid children - `ActionListHeaderIcon`
|
|
1073
1495
|
*/
|
|
1074
1496
|
leading?: React__default.ReactNode;
|
|
1075
|
-
} & TestID;
|
|
1497
|
+
} & TestID$1;
|
|
1076
1498
|
/**
|
|
1077
1499
|
* ### ActionListHeader
|
|
1078
1500
|
*
|
|
@@ -1111,7 +1533,7 @@ declare type ActionListFooterProps = {
|
|
|
1111
1533
|
* Anything can be passed here but maybe don't? Should ideally have Button or Tick Icon Buttons.
|
|
1112
1534
|
*/
|
|
1113
1535
|
trailing?: React__default.ReactNode;
|
|
1114
|
-
} & TestID;
|
|
1536
|
+
} & TestID$1;
|
|
1115
1537
|
/**
|
|
1116
1538
|
* ### ActionListFooter
|
|
1117
1539
|
*
|
|
@@ -1225,8 +1647,8 @@ declare type AlertProps = {
|
|
|
1225
1647
|
*/
|
|
1226
1648
|
secondary?: SecondaryAction;
|
|
1227
1649
|
};
|
|
1228
|
-
} & TestID;
|
|
1229
|
-
declare const Alert: ({ description, title, isDismissible, onDismiss, contrast, isFullWidth, intent, actions, testID, }: AlertProps) => ReactElement | null;
|
|
1650
|
+
} & TestID$1 & StyledPropsBlade;
|
|
1651
|
+
declare const Alert: ({ description, title, isDismissible, onDismiss, contrast, isFullWidth, intent, actions, testID, ...styledProps }: AlertProps) => ReactElement | null;
|
|
1230
1652
|
|
|
1231
1653
|
declare type BadgeProps = {
|
|
1232
1654
|
/**
|
|
@@ -1264,8 +1686,8 @@ declare type BadgeProps = {
|
|
|
1264
1686
|
* @default 'regular'
|
|
1265
1687
|
*/
|
|
1266
1688
|
fontWeight?: 'regular' | 'bold';
|
|
1267
|
-
} & TestID;
|
|
1268
|
-
declare const Badge: ({ children, contrast, fontWeight, icon, size, variant, testID, }: BadgeProps) => ReactElement;
|
|
1689
|
+
} & TestID$1 & StyledPropsBlade;
|
|
1690
|
+
declare const Badge: ({ children, contrast, fontWeight, icon, size, variant, testID, ...styledProps }: BadgeProps) => ReactElement;
|
|
1269
1691
|
|
|
1270
1692
|
declare type BladeProviderProps = {
|
|
1271
1693
|
themeTokens: ThemeTokens;
|
|
@@ -1302,6 +1724,579 @@ declare type Theme = {
|
|
|
1302
1724
|
typography: Typography;
|
|
1303
1725
|
};
|
|
1304
1726
|
|
|
1727
|
+
/**
|
|
1728
|
+
* Returns the value or the responsive object with that value
|
|
1729
|
+
*
|
|
1730
|
+
* ## Usage
|
|
1731
|
+
*
|
|
1732
|
+
* Example if you pass string argument, return type will be string or responsive object with string value
|
|
1733
|
+
*
|
|
1734
|
+
* `MakeValueResponsive<string>`
|
|
1735
|
+
* ```ts
|
|
1736
|
+
* string |
|
|
1737
|
+
* {
|
|
1738
|
+
* base?: string;
|
|
1739
|
+
* xs?: string;
|
|
1740
|
+
* s?: string;
|
|
1741
|
+
* // ... other breakpoints
|
|
1742
|
+
* }
|
|
1743
|
+
* ```
|
|
1744
|
+
*
|
|
1745
|
+
*/
|
|
1746
|
+
declare type MakeValueResponsive<T> = T | {
|
|
1747
|
+
[P in keyof Breakpoints]?: T;
|
|
1748
|
+
};
|
|
1749
|
+
/**
|
|
1750
|
+
* Turns all the values in object into responsive object.
|
|
1751
|
+
*
|
|
1752
|
+
* ```ts
|
|
1753
|
+
* MakeObjectResponsive<{ hello: string}>
|
|
1754
|
+
*
|
|
1755
|
+
* // Outputs:
|
|
1756
|
+
* {
|
|
1757
|
+
* hello: string | {
|
|
1758
|
+
* base?: string;
|
|
1759
|
+
* xs?: string;
|
|
1760
|
+
* s?: string;
|
|
1761
|
+
* // ... other breakpoints
|
|
1762
|
+
* }
|
|
1763
|
+
* }
|
|
1764
|
+
* ```
|
|
1765
|
+
*/
|
|
1766
|
+
declare type MakeObjectResponsive<T> = {
|
|
1767
|
+
[P in keyof T]: MakeValueResponsive<T[P]>;
|
|
1768
|
+
};
|
|
1769
|
+
|
|
1770
|
+
declare type ArrayOfMaxLength4<T> = readonly [T?, T?, T?, T?];
|
|
1771
|
+
declare type SpaceUnits = Platform.Select<{
|
|
1772
|
+
web: 'px' | '%' | 'fr' | 'rem' | 'em' | 'vh' | 'vw';
|
|
1773
|
+
native: 'px' | '%';
|
|
1774
|
+
}>;
|
|
1775
|
+
declare type SpacingValueType = DotNotationSpacingStringToken | `${string}${SpaceUnits}` | 'auto';
|
|
1776
|
+
/**
|
|
1777
|
+
* @IMPORTANT
|
|
1778
|
+
*
|
|
1779
|
+
* I wish there was better way to re-use jsdoc but I checked and there isn't so we have to explicitly add docs to each prop.
|
|
1780
|
+
*
|
|
1781
|
+
* When you want to change a specific token value, you can select the entire block of spacing value mapping and do find and replace on it
|
|
1782
|
+
*
|
|
1783
|
+
* Checkout example of find and replace query-
|
|
1784
|
+
* {@link https://user-images.githubusercontent.com/30949385/221802507-40c7adbc-484a-47b3-9035-ae1e97080b51.png}
|
|
1785
|
+
*
|
|
1786
|
+
*/
|
|
1787
|
+
declare type PaddingProps = MakeObjectResponsive<{
|
|
1788
|
+
/**
|
|
1789
|
+
* ### Padding Shorthand
|
|
1790
|
+
*
|
|
1791
|
+
* #### Usage
|
|
1792
|
+
*
|
|
1793
|
+
* ```jsx
|
|
1794
|
+
* padding="spacing.3"
|
|
1795
|
+
* padding="20px"
|
|
1796
|
+
* padding={["spacing.3", "spacing.1", "spacing.0", "10px"]}
|
|
1797
|
+
* ```
|
|
1798
|
+
*
|
|
1799
|
+
* ---
|
|
1800
|
+
* #### Spacing to Pixel values
|
|
1801
|
+
*
|
|
1802
|
+
* - `spacing.0` - 0px
|
|
1803
|
+
* - `spacing.1` - 2px
|
|
1804
|
+
* - `spacing.2` - 4px
|
|
1805
|
+
* - `spacing.3` - 8px
|
|
1806
|
+
* - `spacing.4` - 12px
|
|
1807
|
+
* - `spacing.5` - 16px
|
|
1808
|
+
* - `spacing.6` - 20px
|
|
1809
|
+
* - `spacing.7` - 24px
|
|
1810
|
+
* - `spacing.8` - 32px
|
|
1811
|
+
* - `spacing.9` - 40px
|
|
1812
|
+
* - `spacing.10` - 48px
|
|
1813
|
+
* - `spacing.11` - 56px
|
|
1814
|
+
*
|
|
1815
|
+
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
1816
|
+
*
|
|
1817
|
+
*/
|
|
1818
|
+
padding: SpacingValueType | ArrayOfMaxLength4<SpacingValueType>;
|
|
1819
|
+
/**
|
|
1820
|
+
* ### Padding Horizontal
|
|
1821
|
+
*
|
|
1822
|
+
* #### Usage
|
|
1823
|
+
*
|
|
1824
|
+
* ```jsx
|
|
1825
|
+
* paddingX="spacing.3"
|
|
1826
|
+
* paddingX="20px"
|
|
1827
|
+
* ```
|
|
1828
|
+
*
|
|
1829
|
+
* ---
|
|
1830
|
+
* #### Spacing to Pixel values
|
|
1831
|
+
*
|
|
1832
|
+
* - `spacing.0` - 0px
|
|
1833
|
+
* - `spacing.1` - 2px
|
|
1834
|
+
* - `spacing.2` - 4px
|
|
1835
|
+
* - `spacing.3` - 8px
|
|
1836
|
+
* - `spacing.4` - 12px
|
|
1837
|
+
* - `spacing.5` - 16px
|
|
1838
|
+
* - `spacing.6` - 20px
|
|
1839
|
+
* - `spacing.7` - 24px
|
|
1840
|
+
* - `spacing.8` - 32px
|
|
1841
|
+
* - `spacing.9` - 40px
|
|
1842
|
+
* - `spacing.10` - 48px
|
|
1843
|
+
* - `spacing.11` - 56px
|
|
1844
|
+
*
|
|
1845
|
+
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
1846
|
+
*
|
|
1847
|
+
*/
|
|
1848
|
+
paddingX: SpacingValueType;
|
|
1849
|
+
/**
|
|
1850
|
+
* ### Padding Vertical
|
|
1851
|
+
*
|
|
1852
|
+
* #### Usage
|
|
1853
|
+
*
|
|
1854
|
+
* ```jsx
|
|
1855
|
+
* paddingY="spacing.3"
|
|
1856
|
+
* paddingY="20px"
|
|
1857
|
+
* ```
|
|
1858
|
+
*
|
|
1859
|
+
* ---
|
|
1860
|
+
* #### Spacing to Pixel values
|
|
1861
|
+
*
|
|
1862
|
+
* - `spacing.0` - 0px
|
|
1863
|
+
* - `spacing.1` - 2px
|
|
1864
|
+
* - `spacing.2` - 4px
|
|
1865
|
+
* - `spacing.3` - 8px
|
|
1866
|
+
* - `spacing.4` - 12px
|
|
1867
|
+
* - `spacing.5` - 16px
|
|
1868
|
+
* - `spacing.6` - 20px
|
|
1869
|
+
* - `spacing.7` - 24px
|
|
1870
|
+
* - `spacing.8` - 32px
|
|
1871
|
+
* - `spacing.9` - 40px
|
|
1872
|
+
* - `spacing.10` - 48px
|
|
1873
|
+
* - `spacing.11` - 56px
|
|
1874
|
+
*
|
|
1875
|
+
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
1876
|
+
*
|
|
1877
|
+
*/
|
|
1878
|
+
paddingY: SpacingValueType;
|
|
1879
|
+
/**
|
|
1880
|
+
* ### Padding Top
|
|
1881
|
+
*
|
|
1882
|
+
* #### Usage
|
|
1883
|
+
*
|
|
1884
|
+
* ```jsx
|
|
1885
|
+
* paddingTop="spacing.3"
|
|
1886
|
+
* paddingTop="20px"
|
|
1887
|
+
* ```
|
|
1888
|
+
*
|
|
1889
|
+
* ---
|
|
1890
|
+
* #### Spacing to Pixel values
|
|
1891
|
+
*
|
|
1892
|
+
* - `spacing.0` - 0px
|
|
1893
|
+
* - `spacing.1` - 2px
|
|
1894
|
+
* - `spacing.2` - 4px
|
|
1895
|
+
* - `spacing.3` - 8px
|
|
1896
|
+
* - `spacing.4` - 12px
|
|
1897
|
+
* - `spacing.5` - 16px
|
|
1898
|
+
* - `spacing.6` - 20px
|
|
1899
|
+
* - `spacing.7` - 24px
|
|
1900
|
+
* - `spacing.8` - 32px
|
|
1901
|
+
* - `spacing.9` - 40px
|
|
1902
|
+
* - `spacing.10` - 48px
|
|
1903
|
+
* - `spacing.11` - 56px
|
|
1904
|
+
*
|
|
1905
|
+
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
1906
|
+
*/
|
|
1907
|
+
paddingTop: SpacingValueType;
|
|
1908
|
+
/**
|
|
1909
|
+
* ### Padding Right
|
|
1910
|
+
*
|
|
1911
|
+
* #### Usage
|
|
1912
|
+
*
|
|
1913
|
+
* ```jsx
|
|
1914
|
+
* paddingRight="spacing.3"
|
|
1915
|
+
* paddingRight="20px"
|
|
1916
|
+
* ```
|
|
1917
|
+
*
|
|
1918
|
+
* ---
|
|
1919
|
+
* #### Spacing to Pixel values
|
|
1920
|
+
*
|
|
1921
|
+
* - `spacing.0` - 0px
|
|
1922
|
+
* - `spacing.1` - 2px
|
|
1923
|
+
* - `spacing.2` - 4px
|
|
1924
|
+
* - `spacing.3` - 8px
|
|
1925
|
+
* - `spacing.4` - 12px
|
|
1926
|
+
* - `spacing.5` - 16px
|
|
1927
|
+
* - `spacing.6` - 20px
|
|
1928
|
+
* - `spacing.7` - 24px
|
|
1929
|
+
* - `spacing.8` - 32px
|
|
1930
|
+
* - `spacing.9` - 40px
|
|
1931
|
+
* - `spacing.10` - 48px
|
|
1932
|
+
* - `spacing.11` - 56px
|
|
1933
|
+
*
|
|
1934
|
+
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
1935
|
+
*/
|
|
1936
|
+
paddingRight: SpacingValueType;
|
|
1937
|
+
/**
|
|
1938
|
+
* ### Padding Bottom
|
|
1939
|
+
*
|
|
1940
|
+
* #### Usage
|
|
1941
|
+
*
|
|
1942
|
+
* ```jsx
|
|
1943
|
+
* paddingBottom="spacing.3"
|
|
1944
|
+
* paddingBottom="20px"
|
|
1945
|
+
* ```
|
|
1946
|
+
*
|
|
1947
|
+
* ---
|
|
1948
|
+
* #### Spacing to Pixel values
|
|
1949
|
+
*
|
|
1950
|
+
* - `spacing.0` - 0px
|
|
1951
|
+
* - `spacing.1` - 2px
|
|
1952
|
+
* - `spacing.2` - 4px
|
|
1953
|
+
* - `spacing.3` - 8px
|
|
1954
|
+
* - `spacing.4` - 12px
|
|
1955
|
+
* - `spacing.5` - 16px
|
|
1956
|
+
* - `spacing.6` - 20px
|
|
1957
|
+
* - `spacing.7` - 24px
|
|
1958
|
+
* - `spacing.8` - 32px
|
|
1959
|
+
* - `spacing.9` - 40px
|
|
1960
|
+
* - `spacing.10` - 48px
|
|
1961
|
+
* - `spacing.11` - 56px
|
|
1962
|
+
*
|
|
1963
|
+
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
1964
|
+
*/
|
|
1965
|
+
paddingBottom: SpacingValueType;
|
|
1966
|
+
/**
|
|
1967
|
+
* ### Padding Left
|
|
1968
|
+
*
|
|
1969
|
+
* #### Usage
|
|
1970
|
+
*
|
|
1971
|
+
* ```jsx
|
|
1972
|
+
* paddingLeft="spacing.3"
|
|
1973
|
+
* paddingLeft="20px"
|
|
1974
|
+
* ```
|
|
1975
|
+
*
|
|
1976
|
+
* ---
|
|
1977
|
+
* #### Spacing to Pixel values
|
|
1978
|
+
*
|
|
1979
|
+
* - `spacing.0` - 0px
|
|
1980
|
+
* - `spacing.1` - 2px
|
|
1981
|
+
* - `spacing.2` - 4px
|
|
1982
|
+
* - `spacing.3` - 8px
|
|
1983
|
+
* - `spacing.4` - 12px
|
|
1984
|
+
* - `spacing.5` - 16px
|
|
1985
|
+
* - `spacing.6` - 20px
|
|
1986
|
+
* - `spacing.7` - 24px
|
|
1987
|
+
* - `spacing.8` - 32px
|
|
1988
|
+
* - `spacing.9` - 40px
|
|
1989
|
+
* - `spacing.10` - 48px
|
|
1990
|
+
* - `spacing.11` - 56px
|
|
1991
|
+
*
|
|
1992
|
+
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
1993
|
+
*/
|
|
1994
|
+
paddingLeft: SpacingValueType;
|
|
1995
|
+
}>;
|
|
1996
|
+
declare type MarginProps = MakeObjectResponsive<{
|
|
1997
|
+
/**
|
|
1998
|
+
* ### Margin Shorthand
|
|
1999
|
+
*
|
|
2000
|
+
* #### Usage
|
|
2001
|
+
*
|
|
2002
|
+
* ```jsx
|
|
2003
|
+
* margin="spacing.3"
|
|
2004
|
+
* margin="20px"
|
|
2005
|
+
* margin={["spacing.3", "spacing.1", "spacing.0", "10px"]}
|
|
2006
|
+
* ```
|
|
2007
|
+
*
|
|
2008
|
+
* ---
|
|
2009
|
+
* #### Spacing to Pixel values
|
|
2010
|
+
*
|
|
2011
|
+
* - `spacing.0` - 0px
|
|
2012
|
+
* - `spacing.1` - 2px
|
|
2013
|
+
* - `spacing.2` - 4px
|
|
2014
|
+
* - `spacing.3` - 8px
|
|
2015
|
+
* - `spacing.4` - 12px
|
|
2016
|
+
* - `spacing.5` - 16px
|
|
2017
|
+
* - `spacing.6` - 20px
|
|
2018
|
+
* - `spacing.7` - 24px
|
|
2019
|
+
* - `spacing.8` - 32px
|
|
2020
|
+
* - `spacing.9` - 40px
|
|
2021
|
+
* - `spacing.10` - 48px
|
|
2022
|
+
* - `spacing.11` - 56px
|
|
2023
|
+
*
|
|
2024
|
+
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
2025
|
+
*
|
|
2026
|
+
*/
|
|
2027
|
+
margin: SpacingValueType | ArrayOfMaxLength4<SpacingValueType>;
|
|
2028
|
+
/**
|
|
2029
|
+
* ### Margin Horizontal
|
|
2030
|
+
*
|
|
2031
|
+
* #### Usage
|
|
2032
|
+
*
|
|
2033
|
+
* ```jsx
|
|
2034
|
+
* marginX="spacing.3"
|
|
2035
|
+
* marginX="20px"
|
|
2036
|
+
* ```
|
|
2037
|
+
*
|
|
2038
|
+
* ---
|
|
2039
|
+
* #### Spacing to Pixel values
|
|
2040
|
+
*
|
|
2041
|
+
* - `spacing.0` - 0px
|
|
2042
|
+
* - `spacing.1` - 2px
|
|
2043
|
+
* - `spacing.2` - 4px
|
|
2044
|
+
* - `spacing.3` - 8px
|
|
2045
|
+
* - `spacing.4` - 12px
|
|
2046
|
+
* - `spacing.5` - 16px
|
|
2047
|
+
* - `spacing.6` - 20px
|
|
2048
|
+
* - `spacing.7` - 24px
|
|
2049
|
+
* - `spacing.8` - 32px
|
|
2050
|
+
* - `spacing.9` - 40px
|
|
2051
|
+
* - `spacing.10` - 48px
|
|
2052
|
+
* - `spacing.11` - 56px
|
|
2053
|
+
*
|
|
2054
|
+
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
2055
|
+
*
|
|
2056
|
+
*/
|
|
2057
|
+
marginX: SpacingValueType;
|
|
2058
|
+
/**
|
|
2059
|
+
* ### Margin Vertical
|
|
2060
|
+
*
|
|
2061
|
+
* #### Usage
|
|
2062
|
+
*
|
|
2063
|
+
* ```jsx
|
|
2064
|
+
* marginY="spacing.3"
|
|
2065
|
+
* marginY="20px"
|
|
2066
|
+
* ```
|
|
2067
|
+
*
|
|
2068
|
+
* ---
|
|
2069
|
+
* #### Spacing to Pixel values
|
|
2070
|
+
*
|
|
2071
|
+
* - `spacing.0` - 0px
|
|
2072
|
+
* - `spacing.1` - 2px
|
|
2073
|
+
* - `spacing.2` - 4px
|
|
2074
|
+
* - `spacing.3` - 8px
|
|
2075
|
+
* - `spacing.4` - 12px
|
|
2076
|
+
* - `spacing.5` - 16px
|
|
2077
|
+
* - `spacing.6` - 20px
|
|
2078
|
+
* - `spacing.7` - 24px
|
|
2079
|
+
* - `spacing.8` - 32px
|
|
2080
|
+
* - `spacing.9` - 40px
|
|
2081
|
+
* - `spacing.10` - 48px
|
|
2082
|
+
* - `spacing.11` - 56px
|
|
2083
|
+
*
|
|
2084
|
+
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
2085
|
+
*
|
|
2086
|
+
*/
|
|
2087
|
+
marginY: SpacingValueType;
|
|
2088
|
+
/**
|
|
2089
|
+
* ### Margin Top
|
|
2090
|
+
*
|
|
2091
|
+
* #### Usage
|
|
2092
|
+
*
|
|
2093
|
+
* ```jsx
|
|
2094
|
+
* marginTop="spacing.3"
|
|
2095
|
+
* marginTop="20px"
|
|
2096
|
+
* ```
|
|
2097
|
+
*
|
|
2098
|
+
* ---
|
|
2099
|
+
* #### Spacing to Pixel values
|
|
2100
|
+
*
|
|
2101
|
+
* - `spacing.0` - 0px
|
|
2102
|
+
* - `spacing.1` - 2px
|
|
2103
|
+
* - `spacing.2` - 4px
|
|
2104
|
+
* - `spacing.3` - 8px
|
|
2105
|
+
* - `spacing.4` - 12px
|
|
2106
|
+
* - `spacing.5` - 16px
|
|
2107
|
+
* - `spacing.6` - 20px
|
|
2108
|
+
* - `spacing.7` - 24px
|
|
2109
|
+
* - `spacing.8` - 32px
|
|
2110
|
+
* - `spacing.9` - 40px
|
|
2111
|
+
* - `spacing.10` - 48px
|
|
2112
|
+
* - `spacing.11` - 56px
|
|
2113
|
+
*
|
|
2114
|
+
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
2115
|
+
*/
|
|
2116
|
+
marginTop: SpacingValueType;
|
|
2117
|
+
/**
|
|
2118
|
+
* ### Margin Right
|
|
2119
|
+
*
|
|
2120
|
+
* #### Usage
|
|
2121
|
+
*
|
|
2122
|
+
* ```jsx
|
|
2123
|
+
* marginRight="spacing.3"
|
|
2124
|
+
* marginRight="20px"
|
|
2125
|
+
* ```
|
|
2126
|
+
*
|
|
2127
|
+
* ---
|
|
2128
|
+
* #### Spacing to Pixel values
|
|
2129
|
+
*
|
|
2130
|
+
* - `spacing.0` - 0px
|
|
2131
|
+
* - `spacing.1` - 2px
|
|
2132
|
+
* - `spacing.2` - 4px
|
|
2133
|
+
* - `spacing.3` - 8px
|
|
2134
|
+
* - `spacing.4` - 12px
|
|
2135
|
+
* - `spacing.5` - 16px
|
|
2136
|
+
* - `spacing.6` - 20px
|
|
2137
|
+
* - `spacing.7` - 24px
|
|
2138
|
+
* - `spacing.8` - 32px
|
|
2139
|
+
* - `spacing.9` - 40px
|
|
2140
|
+
* - `spacing.10` - 48px
|
|
2141
|
+
* - `spacing.11` - 56px
|
|
2142
|
+
*
|
|
2143
|
+
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
2144
|
+
*/
|
|
2145
|
+
marginRight: SpacingValueType;
|
|
2146
|
+
/**
|
|
2147
|
+
* ### Margin Bottom
|
|
2148
|
+
*
|
|
2149
|
+
* #### Usage
|
|
2150
|
+
*
|
|
2151
|
+
* ```jsx
|
|
2152
|
+
* marginBottom="spacing.3"
|
|
2153
|
+
* marginBottom="20px"
|
|
2154
|
+
* ```
|
|
2155
|
+
*
|
|
2156
|
+
* ---
|
|
2157
|
+
* #### Spacing to Pixel values
|
|
2158
|
+
*
|
|
2159
|
+
* - `spacing.0` - 0px
|
|
2160
|
+
* - `spacing.1` - 2px
|
|
2161
|
+
* - `spacing.2` - 4px
|
|
2162
|
+
* - `spacing.3` - 8px
|
|
2163
|
+
* - `spacing.4` - 12px
|
|
2164
|
+
* - `spacing.5` - 16px
|
|
2165
|
+
* - `spacing.6` - 20px
|
|
2166
|
+
* - `spacing.7` - 24px
|
|
2167
|
+
* - `spacing.8` - 32px
|
|
2168
|
+
* - `spacing.9` - 40px
|
|
2169
|
+
* - `spacing.10` - 48px
|
|
2170
|
+
* - `spacing.11` - 56px
|
|
2171
|
+
*
|
|
2172
|
+
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
2173
|
+
*/
|
|
2174
|
+
marginBottom: SpacingValueType;
|
|
2175
|
+
/**
|
|
2176
|
+
* ### Margin Left
|
|
2177
|
+
*
|
|
2178
|
+
* #### Usage
|
|
2179
|
+
*
|
|
2180
|
+
* ```jsx
|
|
2181
|
+
* marginLeft="spacing.3"
|
|
2182
|
+
* marginLeft="20px"
|
|
2183
|
+
* ```
|
|
2184
|
+
*
|
|
2185
|
+
* ---
|
|
2186
|
+
* #### Spacing to Pixel values
|
|
2187
|
+
*
|
|
2188
|
+
* - `spacing.0` - 0px
|
|
2189
|
+
* - `spacing.1` - 2px
|
|
2190
|
+
* - `spacing.2` - 4px
|
|
2191
|
+
* - `spacing.3` - 8px
|
|
2192
|
+
* - `spacing.4` - 12px
|
|
2193
|
+
* - `spacing.5` - 16px
|
|
2194
|
+
* - `spacing.6` - 20px
|
|
2195
|
+
* - `spacing.7` - 24px
|
|
2196
|
+
* - `spacing.8` - 32px
|
|
2197
|
+
* - `spacing.9` - 40px
|
|
2198
|
+
* - `spacing.10` - 48px
|
|
2199
|
+
* - `spacing.11` - 56px
|
|
2200
|
+
*
|
|
2201
|
+
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
2202
|
+
*/
|
|
2203
|
+
marginLeft: SpacingValueType;
|
|
2204
|
+
}>;
|
|
2205
|
+
|
|
2206
|
+
declare type MakeObjectWebOnly<T> = {
|
|
2207
|
+
[P in keyof T]: Platform.Select<{
|
|
2208
|
+
web: T[P];
|
|
2209
|
+
native: never;
|
|
2210
|
+
}>;
|
|
2211
|
+
};
|
|
2212
|
+
declare type LayoutProps = MakeObjectResponsive<{
|
|
2213
|
+
height: SpacingValueType;
|
|
2214
|
+
minHeight: SpacingValueType;
|
|
2215
|
+
maxHeight: SpacingValueType;
|
|
2216
|
+
width: SpacingValueType;
|
|
2217
|
+
minWidth: SpacingValueType;
|
|
2218
|
+
maxWidth: SpacingValueType;
|
|
2219
|
+
} & Pick<CSSObject, 'display' | 'overflow' | 'overflowX' | 'overflowY'>>;
|
|
2220
|
+
declare type FlexboxProps = MakeObjectResponsive<{
|
|
2221
|
+
/**
|
|
2222
|
+
* This uses the native gap property which might not work on older browsers.
|
|
2223
|
+
* If you want to support older browsers, you might want to use `margin` instead.
|
|
2224
|
+
*
|
|
2225
|
+
* @see https://caniuse.com/?search=gap
|
|
2226
|
+
*/
|
|
2227
|
+
gap: SpacingValueType;
|
|
2228
|
+
/**
|
|
2229
|
+
* This uses the native row-gap property which might not work on older browsers.
|
|
2230
|
+
* If you want to support older browsers, you might want to use `margin` instead.
|
|
2231
|
+
*
|
|
2232
|
+
* @see https://caniuse.com/?search=row-gap
|
|
2233
|
+
*/
|
|
2234
|
+
rowGap: SpacingValueType;
|
|
2235
|
+
/**
|
|
2236
|
+
* This uses the native column-gap property which might not work on older browsers.
|
|
2237
|
+
* If you want to support older browsers, you might want to use `margin` instead.
|
|
2238
|
+
*
|
|
2239
|
+
* @see https://caniuse.com/?search=column-gap
|
|
2240
|
+
*/
|
|
2241
|
+
columnGap: SpacingValueType;
|
|
2242
|
+
} & Pick<CSSObject, 'flex' | 'flexWrap' | 'flexDirection' | 'flexGrow' | 'flexShrink' | 'flexBasis' | 'alignItems' | 'alignContent' | 'alignSelf' | 'justifyItems' | 'justifyContent' | 'justifySelf' | 'placeSelf' | 'order'>>;
|
|
2243
|
+
declare type PositionProps = MakeObjectResponsive<{
|
|
2244
|
+
top: SpacingValueType;
|
|
2245
|
+
right: SpacingValueType;
|
|
2246
|
+
bottom: SpacingValueType;
|
|
2247
|
+
left: SpacingValueType;
|
|
2248
|
+
} & Pick<CSSObject, 'position' | 'zIndex'>>;
|
|
2249
|
+
declare type GridProps = MakeObjectWebOnly<MakeObjectResponsive<Pick<CSSObject, 'grid' | 'gridColumn' | 'gridRow' | 'gridRowStart' | 'gridRowEnd' | 'gridColumnStart' | 'gridColumnEnd' | 'gridArea' | 'gridAutoFlow' | 'gridAutoRows' | 'gridAutoColumns' | 'gridTemplate' | 'gridTemplateAreas' | 'gridTemplateColumns' | 'gridTemplateRows'>>>;
|
|
2250
|
+
declare type ColorObjects = 'feedback' | 'surface' | 'action';
|
|
2251
|
+
declare type BackgroundColorString<T extends ColorObjects> = `${T}.background.${DotNotationColorStringToken<Theme$1['colors'][T]['background']>}`;
|
|
2252
|
+
declare const validBoxAsValues: readonly ["div", "section", "footer", "header", "main", "aside", "nav", "span"];
|
|
2253
|
+
declare type BoxAsType = typeof validBoxAsValues[number];
|
|
2254
|
+
declare type BoxVisualProps = MakeObjectResponsive<{
|
|
2255
|
+
backgroundColor: BackgroundColorString<'surface'>;
|
|
2256
|
+
}> & {
|
|
2257
|
+
as: BoxAsType;
|
|
2258
|
+
};
|
|
2259
|
+
declare type BoxProps = Partial<PaddingProps & MarginProps & LayoutProps & FlexboxProps & PositionProps & GridProps & BoxVisualProps & {
|
|
2260
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
2261
|
+
} & TestID$1>;
|
|
2262
|
+
|
|
2263
|
+
/**
|
|
2264
|
+
* ## Box
|
|
2265
|
+
*
|
|
2266
|
+
* Box is the basic Layout component.
|
|
2267
|
+
*
|
|
2268
|
+
*
|
|
2269
|
+
* Box components supports most spacing CSS properties like `display`, `padding*`, `flex*`, `height`, `width`, etc.
|
|
2270
|
+
*
|
|
2271
|
+
* Check out {@linkcode BoxProps BoxPropsType} for complete list of props and [Layout RFC](https://github.com/razorpay/blade/blob/master/rfcs/2023-01-06-layout.md) for more details on API decision.
|
|
2272
|
+
*
|
|
2273
|
+
* ----
|
|
2274
|
+
*
|
|
2275
|
+
* ### Usage
|
|
2276
|
+
*
|
|
2277
|
+
* ```jsx
|
|
2278
|
+
* <Box display="flex">
|
|
2279
|
+
* ```
|
|
2280
|
+
|
|
2281
|
+
* #### Responsive Props
|
|
2282
|
+
*
|
|
2283
|
+
* ```jsx
|
|
2284
|
+
* <Box padding={{ base: 'spacing.3', m: 'spacing.10' }} />
|
|
2285
|
+
* ```
|
|
2286
|
+
*
|
|
2287
|
+
* #### Margin and Padding Shorthands
|
|
2288
|
+
*
|
|
2289
|
+
* ```jsx
|
|
2290
|
+
* <Box padding={["spacing.3", "spacing.10"]} />
|
|
2291
|
+
* ```
|
|
2292
|
+
*
|
|
2293
|
+
* ---
|
|
2294
|
+
*
|
|
2295
|
+
* Checkout {@link https://blade.razorpay.com/?path=/docs/components-box Box Documentation}
|
|
2296
|
+
*
|
|
2297
|
+
*/
|
|
2298
|
+
declare const Box: (props: BoxProps) => JSX.Element;
|
|
2299
|
+
|
|
1305
2300
|
declare const ComponentIds: {
|
|
1306
2301
|
CardHeader: string;
|
|
1307
2302
|
CardHeaderTrailing: string;
|
|
@@ -1337,11 +2332,11 @@ declare type CardProps = {
|
|
|
1337
2332
|
* - Figma: https://shorturl.at/fsvwK
|
|
1338
2333
|
*/
|
|
1339
2334
|
surfaceLevel?: 2 | 3;
|
|
1340
|
-
} & TestID;
|
|
1341
|
-
declare const Card: ({ children, surfaceLevel, testID }: CardProps) => React__default.ReactElement;
|
|
2335
|
+
} & TestID$1 & StyledPropsBlade;
|
|
2336
|
+
declare const Card: ({ children, surfaceLevel, testID, ...styledProps }: CardProps) => React__default.ReactElement;
|
|
1342
2337
|
declare type CardBodyProps = {
|
|
1343
2338
|
children: React__default.ReactNode;
|
|
1344
|
-
} & TestID;
|
|
2339
|
+
} & TestID$1;
|
|
1345
2340
|
declare const CardBody: WithComponentId<CardBodyProps>;
|
|
1346
2341
|
|
|
1347
2342
|
declare type LinkCommonProps = {
|
|
@@ -1359,7 +2354,7 @@ declare type LinkCommonProps = {
|
|
|
1359
2354
|
* @default medium
|
|
1360
2355
|
*/
|
|
1361
2356
|
size?: 'small' | 'medium';
|
|
1362
|
-
} & TestID;
|
|
2357
|
+
} & TestID$1 & StyledPropsBlade;
|
|
1363
2358
|
declare type LinkWithoutIconProps = LinkCommonProps & {
|
|
1364
2359
|
icon?: undefined;
|
|
1365
2360
|
children: StringChildrenType;
|
|
@@ -1384,7 +2379,7 @@ declare type LinkButtonVariantProps = LinkPropsWithOrWithoutIcon & {
|
|
|
1384
2379
|
rel?: undefined;
|
|
1385
2380
|
};
|
|
1386
2381
|
declare type LinkProps = LinkAnchorVariantProps | LinkButtonVariantProps;
|
|
1387
|
-
declare const Link: ({ children, icon, iconPosition, isDisabled, onClick, variant, href, target, rel, accessibilityLabel, size, testID, }: LinkProps) => ReactElement;
|
|
2382
|
+
declare const Link: ({ children, icon, iconPosition, isDisabled, onClick, variant, href, target, rel, accessibilityLabel, size, testID, ...styledProps }: LinkProps) => ReactElement;
|
|
1388
2383
|
|
|
1389
2384
|
type BladeElementRef = Pick<HTMLElement, 'focus' | 'scrollIntoView'> | Pick<View, 'focus'>;
|
|
1390
2385
|
|
|
@@ -1401,7 +2396,7 @@ declare type ButtonCommonProps = {
|
|
|
1401
2396
|
native: (event: GestureResponderEvent) => void;
|
|
1402
2397
|
web: (event: React__default.MouseEvent<HTMLButtonElement>) => void;
|
|
1403
2398
|
}>;
|
|
1404
|
-
} & TestID;
|
|
2399
|
+
} & TestID$1 & StyledPropsBlade;
|
|
1405
2400
|
declare type ButtonWithoutIconProps = ButtonCommonProps & {
|
|
1406
2401
|
icon?: undefined;
|
|
1407
2402
|
children: StringChildrenType;
|
|
@@ -1451,7 +2446,8 @@ type BaseTextProps$1 = {
|
|
|
1451
2446
|
*/
|
|
1452
2447
|
numberOfLines?: number;
|
|
1453
2448
|
componentName?: 'text' | 'title' | 'heading' | 'code';
|
|
1454
|
-
} & TestID
|
|
2449
|
+
} & TestID$1 &
|
|
2450
|
+
StyledPropsBlade;
|
|
1455
2451
|
|
|
1456
2452
|
/* eslint-disable @typescript-eslint/no-unnecessary-type-assertion */
|
|
1457
2453
|
|
|
@@ -1467,7 +2463,8 @@ type TextCommonProps$1 = {
|
|
|
1467
2463
|
*/
|
|
1468
2464
|
color?: BaseTextProps$1['color'];
|
|
1469
2465
|
textAlign?: BaseTextProps$1['textAlign'];
|
|
1470
|
-
} & TestID
|
|
2466
|
+
} & TestID$1 &
|
|
2467
|
+
StyledPropsBlade;
|
|
1471
2468
|
|
|
1472
2469
|
type TextVariant$1 = 'body' | 'caption';
|
|
1473
2470
|
|
|
@@ -1523,7 +2520,8 @@ type CounterProps$1 = {
|
|
|
1523
2520
|
* @default 'medium'
|
|
1524
2521
|
*/
|
|
1525
2522
|
size?: 'small' | 'medium' | 'large';
|
|
1526
|
-
} & TestID
|
|
2523
|
+
} & TestID$1 &
|
|
2524
|
+
StyledPropsBlade;
|
|
1527
2525
|
|
|
1528
2526
|
declare const CardHeaderIcon: WithComponentId<{
|
|
1529
2527
|
icon: IconComponent$1;
|
|
@@ -1540,7 +2538,7 @@ declare type CardHeaderIconButtonProps = Omit<ButtonProps, 'variant' | 'size' |
|
|
|
1540
2538
|
declare const CardHeaderIconButton: WithComponentId<CardHeaderIconButtonProps>;
|
|
1541
2539
|
declare type CardHeaderProps = {
|
|
1542
2540
|
children?: React__default.ReactNode;
|
|
1543
|
-
} & TestID;
|
|
2541
|
+
} & TestID$1;
|
|
1544
2542
|
declare const CardHeader: WithComponentId<CardHeaderProps>;
|
|
1545
2543
|
declare type CardHeaderLeadingProps = {
|
|
1546
2544
|
title: string;
|
|
@@ -1574,7 +2572,7 @@ declare type CardFooterAction = Pick<ButtonProps, 'type' | 'accessibilityLabel'
|
|
|
1574
2572
|
};
|
|
1575
2573
|
declare type CardFooterProps = {
|
|
1576
2574
|
children?: React__default.ReactNode;
|
|
1577
|
-
} & TestID;
|
|
2575
|
+
} & TestID$1;
|
|
1578
2576
|
declare const CardFooter: WithComponentId<CardFooterProps>;
|
|
1579
2577
|
declare type CardFooterLeadingProps = {
|
|
1580
2578
|
title?: string;
|
|
@@ -1646,8 +2644,8 @@ declare type CounterProps = {
|
|
|
1646
2644
|
* @default 'medium'
|
|
1647
2645
|
*/
|
|
1648
2646
|
size?: 'small' | 'medium' | 'large';
|
|
1649
|
-
} & TestID;
|
|
1650
|
-
declare const Counter: ({ value, max, intent, contrast, size, testID, }: CounterProps) => React.ReactElement;
|
|
2647
|
+
} & TestID$1 & StyledPropsBlade;
|
|
2648
|
+
declare const Counter: ({ value, max, intent, contrast, size, testID, ...styledProps }: CounterProps) => React.ReactElement;
|
|
1651
2649
|
|
|
1652
2650
|
declare type OnChange = ({ isChecked, event, value, }: {
|
|
1653
2651
|
isChecked: boolean;
|
|
@@ -1732,7 +2730,7 @@ declare type CheckboxProps = {
|
|
|
1732
2730
|
*
|
|
1733
2731
|
*/
|
|
1734
2732
|
tabIndex?: number;
|
|
1735
|
-
} & TestID;
|
|
2733
|
+
} & TestID$1 & StyledPropsBlade;
|
|
1736
2734
|
declare const Checkbox: React__default.ForwardRefExoticComponent<{
|
|
1737
2735
|
/**
|
|
1738
2736
|
* If `true`, The checkbox will be checked. This also makes the checkbox controlled
|
|
@@ -1811,7 +2809,40 @@ declare const Checkbox: React__default.ForwardRefExoticComponent<{
|
|
|
1811
2809
|
*
|
|
1812
2810
|
*/
|
|
1813
2811
|
tabIndex?: number | undefined;
|
|
1814
|
-
} & TestID &
|
|
2812
|
+
} & TestID$1 & Partial<MakeObjectResponsive<{
|
|
2813
|
+
margin: SpacingValueType | ArrayOfMaxLength4<SpacingValueType>;
|
|
2814
|
+
marginX: SpacingValueType;
|
|
2815
|
+
marginY: SpacingValueType;
|
|
2816
|
+
marginTop: SpacingValueType;
|
|
2817
|
+
marginRight: SpacingValueType;
|
|
2818
|
+
marginBottom: SpacingValueType;
|
|
2819
|
+
marginLeft: SpacingValueType;
|
|
2820
|
+
}> & Pick<MakeObjectResponsive<{
|
|
2821
|
+
gap: SpacingValueType;
|
|
2822
|
+
rowGap: SpacingValueType;
|
|
2823
|
+
columnGap: SpacingValueType;
|
|
2824
|
+
} & Pick<styled_components.CSSObject, "alignContent" | "alignItems" | "alignSelf" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "justifyContent" | "justifyItems" | "justifySelf" | "order" | "flex" | "placeSelf">>, "alignSelf" | "justifySelf" | "order" | "placeSelf"> & MakeObjectResponsive<{
|
|
2825
|
+
top: SpacingValueType;
|
|
2826
|
+
right: SpacingValueType;
|
|
2827
|
+
bottom: SpacingValueType;
|
|
2828
|
+
left: SpacingValueType;
|
|
2829
|
+
} & Pick<styled_components.CSSObject, "position" | "zIndex">> & Pick<{
|
|
2830
|
+
grid?: undefined;
|
|
2831
|
+
gridAutoColumns?: undefined;
|
|
2832
|
+
gridAutoFlow?: undefined;
|
|
2833
|
+
gridAutoRows?: undefined;
|
|
2834
|
+
gridColumnEnd?: undefined;
|
|
2835
|
+
gridColumnStart?: undefined;
|
|
2836
|
+
gridRowEnd?: undefined;
|
|
2837
|
+
gridRowStart?: undefined;
|
|
2838
|
+
gridTemplateAreas?: undefined;
|
|
2839
|
+
gridTemplateColumns?: undefined;
|
|
2840
|
+
gridTemplateRows?: undefined;
|
|
2841
|
+
gridArea?: undefined;
|
|
2842
|
+
gridColumn?: undefined;
|
|
2843
|
+
gridRow?: undefined;
|
|
2844
|
+
gridTemplate?: undefined;
|
|
2845
|
+
}, "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridArea" | "gridColumn" | "gridRow">> & React__default.RefAttributes<BladeElementRef>>;
|
|
1815
2846
|
|
|
1816
2847
|
declare type CheckboxGroupProps = {
|
|
1817
2848
|
/**
|
|
@@ -1886,13 +2917,13 @@ declare type CheckboxGroupProps = {
|
|
|
1886
2917
|
* @default "medium"
|
|
1887
2918
|
*/
|
|
1888
2919
|
size?: 'small' | 'medium';
|
|
1889
|
-
} & TestID;
|
|
1890
|
-
declare const CheckboxGroup: ({ children, label, helpText, isDisabled, necessityIndicator, labelPosition, validationState, errorText, name, defaultValue, onChange, value, size, testID, }: CheckboxGroupProps) => React__default.ReactElement;
|
|
2920
|
+
} & TestID$1 & StyledPropsBlade;
|
|
2921
|
+
declare const CheckboxGroup: ({ children, label, helpText, isDisabled, necessityIndicator, labelPosition, validationState, errorText, name, defaultValue, onChange, value, size, testID, ...styledProps }: CheckboxGroupProps) => React__default.ReactElement;
|
|
1891
2922
|
|
|
1892
2923
|
declare type DropdownProps = {
|
|
1893
2924
|
selectionType?: 'single' | 'multiple';
|
|
1894
2925
|
children: React__default.ReactNode[];
|
|
1895
|
-
};
|
|
2926
|
+
} & StyledPropsBlade;
|
|
1896
2927
|
/**
|
|
1897
2928
|
* ### Dropdown component
|
|
1898
2929
|
*
|
|
@@ -1923,7 +2954,7 @@ declare const Dropdown: WithComponentId<DropdownProps>;
|
|
|
1923
2954
|
|
|
1924
2955
|
declare type DropdownOverlayProps = {
|
|
1925
2956
|
children: React__default.ReactNode;
|
|
1926
|
-
} & TestID;
|
|
2957
|
+
} & TestID$1;
|
|
1927
2958
|
|
|
1928
2959
|
/**
|
|
1929
2960
|
* Overlay of dropdown
|
|
@@ -1942,9 +2973,9 @@ declare const ArrowUpRightIcon: IconComponent;
|
|
|
1942
2973
|
|
|
1943
2974
|
declare const ArrowUpIcon: IconComponent;
|
|
1944
2975
|
|
|
1945
|
-
declare const Attachment: ({ size, color }: IconProps) => ReactElement;
|
|
2976
|
+
declare const Attachment: ({ size, color, ...styledProps }: IconProps) => ReactElement;
|
|
1946
2977
|
|
|
1947
|
-
declare const CheckIcon: ({ size, color }: IconProps) => ReactElement;
|
|
2978
|
+
declare const CheckIcon: ({ size, color, ...styledProps }: IconProps) => ReactElement;
|
|
1948
2979
|
|
|
1949
2980
|
declare const ChevronDownIcon: IconComponent;
|
|
1950
2981
|
|
|
@@ -1960,9 +2991,9 @@ declare const CreditCardIcon: IconComponent;
|
|
|
1960
2991
|
|
|
1961
2992
|
declare const DollarIcon: IconComponent;
|
|
1962
2993
|
|
|
1963
|
-
declare const DownloadIcon: ({ size, color }: IconProps) => ReactElement;
|
|
2994
|
+
declare const DownloadIcon: ({ size, color, ...styledProps }: IconProps) => ReactElement;
|
|
1964
2995
|
|
|
1965
|
-
declare const EditIcon: ({ size, color }: IconProps) => ReactElement;
|
|
2996
|
+
declare const EditIcon: ({ size, color, ...styledProps }: IconProps) => ReactElement;
|
|
1966
2997
|
|
|
1967
2998
|
declare const EyeIcon: IconComponent;
|
|
1968
2999
|
|
|
@@ -1970,19 +3001,19 @@ declare const EyeOffIcon: IconComponent;
|
|
|
1970
3001
|
|
|
1971
3002
|
declare const FileTextIcon: IconComponent;
|
|
1972
3003
|
|
|
1973
|
-
declare const HistoryIcon: ({ size, color }: IconProps) => ReactElement;
|
|
3004
|
+
declare const HistoryIcon: ({ size, color, ...styledProps }: IconProps) => ReactElement;
|
|
1974
3005
|
|
|
1975
3006
|
declare const HomeIcon: IconComponent;
|
|
1976
3007
|
|
|
1977
|
-
declare const InfoIcon: ({ size, color }: IconProps) => ReactElement;
|
|
3008
|
+
declare const InfoIcon: ({ size, color, ...styledProps }: IconProps) => ReactElement;
|
|
1978
3009
|
|
|
1979
3010
|
declare const LinkIcon: IconComponent;
|
|
1980
3011
|
|
|
1981
3012
|
declare const LockIcon: IconComponent;
|
|
1982
3013
|
|
|
1983
|
-
declare const PauseIcon: ({ size, color }: IconProps) => ReactElement;
|
|
3014
|
+
declare const PauseIcon: ({ size, color, ...styledProps }: IconProps) => ReactElement;
|
|
1984
3015
|
|
|
1985
|
-
declare const PlusIcon: ({ size, color }: IconProps) => ReactElement;
|
|
3016
|
+
declare const PlusIcon: ({ size, color, ...styledProps }: IconProps) => ReactElement;
|
|
1986
3017
|
|
|
1987
3018
|
declare const RupeeIcon: IconComponent;
|
|
1988
3019
|
|
|
@@ -1994,15 +3025,15 @@ declare const SlashIcon: IconComponent;
|
|
|
1994
3025
|
|
|
1995
3026
|
declare const BankIcon: IconComponent;
|
|
1996
3027
|
|
|
1997
|
-
declare const TrashIcon: ({ size, color }: IconProps) => ReactElement;
|
|
3028
|
+
declare const TrashIcon: ({ size, color, ...styledProps }: IconProps) => ReactElement;
|
|
1998
3029
|
|
|
1999
|
-
declare const AlertTriangleIcon$1: ({ size, color }: IconProps) => ReactElement;
|
|
3030
|
+
declare const AlertTriangleIcon$1: ({ size, color, ...styledProps }: IconProps) => ReactElement;
|
|
2000
3031
|
|
|
2001
|
-
declare const AlertTriangleIcon: ({ size, color }: IconProps) => ReactElement;
|
|
3032
|
+
declare const AlertTriangleIcon: ({ size, color, ...styledProps }: IconProps) => ReactElement;
|
|
2002
3033
|
|
|
2003
|
-
declare const CheckCircleIcon: ({ size, color }: IconProps) => ReactElement;
|
|
3034
|
+
declare const CheckCircleIcon: ({ size, color, ...styledProps }: IconProps) => ReactElement;
|
|
2004
3035
|
|
|
2005
|
-
declare const MinusIcon: ({ size, color }: IconProps) => ReactElement;
|
|
3036
|
+
declare const MinusIcon: ({ size, color, ...styledProps }: IconProps) => ReactElement;
|
|
2006
3037
|
|
|
2007
3038
|
declare const TrendingUpIcon: IconComponent;
|
|
2008
3039
|
|
|
@@ -2487,7 +3518,7 @@ declare type IconProps = {
|
|
|
2487
3518
|
*/
|
|
2488
3519
|
color: ActionIconColors | SurfaceActionIconColors | FeedbackIconColors | FeedbackActionIconColors | TextIconColors | BadgeIconColors | 'currentColor';
|
|
2489
3520
|
size: IconSize;
|
|
2490
|
-
};
|
|
3521
|
+
} & StyledPropsBlade;
|
|
2491
3522
|
declare type IconComponent = React.ComponentType<IconProps>;
|
|
2492
3523
|
|
|
2493
3524
|
declare type FormInputLabelProps = {
|
|
@@ -2741,10 +3772,23 @@ declare type BaseInputProps = FormInputLabelProps & FormInputValidationProps & {
|
|
|
2741
3772
|
* sets the autocapitalize behavior for the input
|
|
2742
3773
|
*/
|
|
2743
3774
|
autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters';
|
|
2744
|
-
} & TestID
|
|
3775
|
+
} & TestID$1 & Platform.Select<{
|
|
3776
|
+
native: {
|
|
3777
|
+
/**
|
|
3778
|
+
* The callback function to be invoked when the value of the input field is submitted.
|
|
3779
|
+
*/
|
|
3780
|
+
onSubmit?: FormInputOnEvent;
|
|
3781
|
+
};
|
|
3782
|
+
web: {
|
|
3783
|
+
/**
|
|
3784
|
+
* This is a react-native only prop and has no effect on web.
|
|
3785
|
+
*/
|
|
3786
|
+
onSubmit?: undefined;
|
|
3787
|
+
};
|
|
3788
|
+
}> & StyledPropsBlade;
|
|
2745
3789
|
|
|
2746
3790
|
declare type Type = Exclude<BaseInputProps['type'], 'password'>;
|
|
2747
|
-
declare type TextInputProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'necessityIndicator' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'placeholder' | 'defaultValue' | 'name' | 'onChange' | 'onFocus' | 'onBlur' | 'value' | 'isDisabled' | 'isRequired' | 'prefix' | 'suffix' | 'maxCharacters' | 'autoFocus' | 'keyboardReturnKeyType' | 'autoCompleteSuggestionType' | 'autoCapitalize' | 'testID'> & {
|
|
3791
|
+
declare type TextInputProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'necessityIndicator' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'placeholder' | 'defaultValue' | 'name' | 'onChange' | 'onFocus' | 'onBlur' | 'value' | 'isDisabled' | 'isRequired' | 'prefix' | 'suffix' | 'maxCharacters' | 'autoFocus' | 'keyboardReturnKeyType' | 'autoCompleteSuggestionType' | 'onSubmit' | 'autoCapitalize' | 'testID'> & {
|
|
2748
3792
|
/**
|
|
2749
3793
|
* Decides whether to render a clear icon button
|
|
2750
3794
|
*/
|
|
@@ -2767,8 +3811,8 @@ declare type TextInputProps = Pick<BaseInputProps, 'label' | 'labelPosition' | '
|
|
|
2767
3811
|
* @default text
|
|
2768
3812
|
*/
|
|
2769
3813
|
type?: Type;
|
|
2770
|
-
};
|
|
2771
|
-
declare const TextInput: React__default.ForwardRefExoticComponent<Pick<BaseInputProps, "testID" | "placeholder" | "label" | "value" | "name" | "onBlur" | "onFocus" | "defaultValue" | "prefix" | "autoCapitalize" | "onChange" | "isDisabled" | "autoFocus" | "labelPosition" | "validationState" | "helpText" | "errorText" | "necessityIndicator" | "successText" | "isRequired" | "suffix" | "maxCharacters" | "keyboardReturnKeyType" | "autoCompleteSuggestionType"> & {
|
|
3814
|
+
} & StyledPropsBlade;
|
|
3815
|
+
declare const TextInput: React__default.ForwardRefExoticComponent<Pick<BaseInputProps, "testID" | "placeholder" | "label" | "value" | "name" | "onBlur" | "onFocus" | "defaultValue" | "prefix" | "autoCapitalize" | "onChange" | "onSubmit" | "isDisabled" | "autoFocus" | "labelPosition" | "validationState" | "helpText" | "errorText" | "necessityIndicator" | "successText" | "isRequired" | "suffix" | "maxCharacters" | "keyboardReturnKeyType" | "autoCompleteSuggestionType"> & {
|
|
2772
3816
|
/**
|
|
2773
3817
|
* Decides whether to render a clear icon button
|
|
2774
3818
|
*/
|
|
@@ -2791,7 +3835,40 @@ declare const TextInput: React__default.ForwardRefExoticComponent<Pick<BaseInput
|
|
|
2791
3835
|
* @default text
|
|
2792
3836
|
*/
|
|
2793
3837
|
type?: Type;
|
|
2794
|
-
} &
|
|
3838
|
+
} & Partial<MakeObjectResponsive<{
|
|
3839
|
+
margin: SpacingValueType | ArrayOfMaxLength4<SpacingValueType>;
|
|
3840
|
+
marginX: SpacingValueType;
|
|
3841
|
+
marginY: SpacingValueType;
|
|
3842
|
+
marginTop: SpacingValueType;
|
|
3843
|
+
marginRight: SpacingValueType;
|
|
3844
|
+
marginBottom: SpacingValueType;
|
|
3845
|
+
marginLeft: SpacingValueType;
|
|
3846
|
+
}> & Pick<MakeObjectResponsive<{
|
|
3847
|
+
gap: SpacingValueType;
|
|
3848
|
+
rowGap: SpacingValueType;
|
|
3849
|
+
columnGap: SpacingValueType;
|
|
3850
|
+
} & Pick<styled_components.CSSObject, "alignContent" | "alignItems" | "alignSelf" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "justifyContent" | "justifyItems" | "justifySelf" | "order" | "flex" | "placeSelf">>, "alignSelf" | "justifySelf" | "order" | "placeSelf"> & MakeObjectResponsive<{
|
|
3851
|
+
top: SpacingValueType;
|
|
3852
|
+
right: SpacingValueType;
|
|
3853
|
+
bottom: SpacingValueType;
|
|
3854
|
+
left: SpacingValueType;
|
|
3855
|
+
} & Pick<styled_components.CSSObject, "position" | "zIndex">> & Pick<{
|
|
3856
|
+
grid?: undefined;
|
|
3857
|
+
gridAutoColumns?: undefined;
|
|
3858
|
+
gridAutoFlow?: undefined;
|
|
3859
|
+
gridAutoRows?: undefined;
|
|
3860
|
+
gridColumnEnd?: undefined;
|
|
3861
|
+
gridColumnStart?: undefined;
|
|
3862
|
+
gridRowEnd?: undefined;
|
|
3863
|
+
gridRowStart?: undefined;
|
|
3864
|
+
gridTemplateAreas?: undefined;
|
|
3865
|
+
gridTemplateColumns?: undefined;
|
|
3866
|
+
gridTemplateRows?: undefined;
|
|
3867
|
+
gridArea?: undefined;
|
|
3868
|
+
gridColumn?: undefined;
|
|
3869
|
+
gridRow?: undefined;
|
|
3870
|
+
gridTemplate?: undefined;
|
|
3871
|
+
}, "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridArea" | "gridColumn" | "gridRow">> & React__default.RefAttributes<BladeElementRef>>;
|
|
2795
3872
|
|
|
2796
3873
|
declare type PasswordInputExtraProps = {
|
|
2797
3874
|
/**
|
|
@@ -2823,10 +3900,43 @@ declare type PasswordInputExtraProps = {
|
|
|
2823
3900
|
*/
|
|
2824
3901
|
autoCompleteSuggestionType?: Extract<BaseInputProps['autoCompleteSuggestionType'], 'none' | 'password' | 'newPassword'>;
|
|
2825
3902
|
};
|
|
2826
|
-
declare type PasswordInputProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'maxCharacters' | 'validationState' | 'errorText' | 'successText' | 'helpText' | 'isDisabled' | 'defaultValue' | 'placeholder' | 'isRequired' | 'value' | 'onChange' | 'onBlur' | 'onFocus' | 'name' | 'autoFocus' | 'keyboardReturnKeyType' | 'autoCompleteSuggestionType' | 'testID'> & PasswordInputExtraProps;
|
|
2827
|
-
declare const PasswordInput: React__default.ForwardRefExoticComponent<Pick<BaseInputProps, "testID" | "placeholder" | "label" | "value" | "name" | "onBlur" | "onFocus" | "defaultValue" | "onChange" | "isDisabled" | "autoFocus" | "labelPosition" | "validationState" | "helpText" | "errorText" | "successText" | "isRequired" | "maxCharacters" | "keyboardReturnKeyType" | "autoCompleteSuggestionType"> & PasswordInputExtraProps &
|
|
2828
|
-
|
|
2829
|
-
|
|
3903
|
+
declare type PasswordInputProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'maxCharacters' | 'validationState' | 'errorText' | 'successText' | 'helpText' | 'isDisabled' | 'defaultValue' | 'placeholder' | 'isRequired' | 'value' | 'onChange' | 'onBlur' | 'onSubmit' | 'onFocus' | 'name' | 'autoFocus' | 'keyboardReturnKeyType' | 'autoCompleteSuggestionType' | 'testID'> & PasswordInputExtraProps & StyledPropsBlade;
|
|
3904
|
+
declare const PasswordInput: React__default.ForwardRefExoticComponent<Pick<BaseInputProps, "testID" | "placeholder" | "label" | "value" | "name" | "onBlur" | "onFocus" | "defaultValue" | "onChange" | "onSubmit" | "isDisabled" | "autoFocus" | "labelPosition" | "validationState" | "helpText" | "errorText" | "successText" | "isRequired" | "maxCharacters" | "keyboardReturnKeyType" | "autoCompleteSuggestionType"> & PasswordInputExtraProps & Partial<MakeObjectResponsive<{
|
|
3905
|
+
margin: SpacingValueType | ArrayOfMaxLength4<SpacingValueType>;
|
|
3906
|
+
marginX: SpacingValueType;
|
|
3907
|
+
marginY: SpacingValueType;
|
|
3908
|
+
marginTop: SpacingValueType;
|
|
3909
|
+
marginRight: SpacingValueType;
|
|
3910
|
+
marginBottom: SpacingValueType;
|
|
3911
|
+
marginLeft: SpacingValueType;
|
|
3912
|
+
}> & Pick<MakeObjectResponsive<{
|
|
3913
|
+
gap: SpacingValueType;
|
|
3914
|
+
rowGap: SpacingValueType;
|
|
3915
|
+
columnGap: SpacingValueType;
|
|
3916
|
+
} & Pick<styled_components.CSSObject, "alignContent" | "alignItems" | "alignSelf" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "justifyContent" | "justifyItems" | "justifySelf" | "order" | "flex" | "placeSelf">>, "alignSelf" | "justifySelf" | "order" | "placeSelf"> & MakeObjectResponsive<{
|
|
3917
|
+
top: SpacingValueType;
|
|
3918
|
+
right: SpacingValueType;
|
|
3919
|
+
bottom: SpacingValueType;
|
|
3920
|
+
left: SpacingValueType;
|
|
3921
|
+
} & Pick<styled_components.CSSObject, "position" | "zIndex">> & Pick<{
|
|
3922
|
+
grid?: undefined;
|
|
3923
|
+
gridAutoColumns?: undefined;
|
|
3924
|
+
gridAutoFlow?: undefined;
|
|
3925
|
+
gridAutoRows?: undefined;
|
|
3926
|
+
gridColumnEnd?: undefined;
|
|
3927
|
+
gridColumnStart?: undefined;
|
|
3928
|
+
gridRowEnd?: undefined;
|
|
3929
|
+
gridRowStart?: undefined;
|
|
3930
|
+
gridTemplateAreas?: undefined;
|
|
3931
|
+
gridTemplateColumns?: undefined;
|
|
3932
|
+
gridTemplateRows?: undefined;
|
|
3933
|
+
gridArea?: undefined;
|
|
3934
|
+
gridColumn?: undefined;
|
|
3935
|
+
gridRow?: undefined;
|
|
3936
|
+
gridTemplate?: undefined;
|
|
3937
|
+
}, "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridArea" | "gridColumn" | "gridRow">> & React__default.RefAttributes<BladeElementRef>>;
|
|
3938
|
+
|
|
3939
|
+
declare type TextAreaProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'necessityIndicator' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'placeholder' | 'defaultValue' | 'name' | 'onChange' | 'onFocus' | 'onBlur' | 'onSubmit' | 'value' | 'isDisabled' | 'isRequired' | 'maxCharacters' | 'autoFocus' | 'numberOfLines' | 'testID'> & {
|
|
2830
3940
|
/**
|
|
2831
3941
|
* Decides whether to render a clear icon button
|
|
2832
3942
|
*/
|
|
@@ -2835,8 +3945,8 @@ declare type TextAreaProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'n
|
|
|
2835
3945
|
* Event handler to handle the onClick event for clear button. Used when `showClearButton` is `true`
|
|
2836
3946
|
*/
|
|
2837
3947
|
onClearButtonClick?: () => void;
|
|
2838
|
-
};
|
|
2839
|
-
declare const TextArea: React__default.ForwardRefExoticComponent<Pick<BaseInputProps, "testID" | "placeholder" | "label" | "value" | "name" | "onBlur" | "onFocus" | "numberOfLines" | "defaultValue" | "onChange" | "isDisabled" | "autoFocus" | "labelPosition" | "validationState" | "helpText" | "errorText" | "necessityIndicator" | "successText" | "isRequired" | "maxCharacters"> & {
|
|
3948
|
+
} & StyledPropsBlade;
|
|
3949
|
+
declare const TextArea: React__default.ForwardRefExoticComponent<Pick<BaseInputProps, "testID" | "placeholder" | "label" | "value" | "name" | "onBlur" | "onFocus" | "numberOfLines" | "defaultValue" | "onChange" | "onSubmit" | "isDisabled" | "autoFocus" | "labelPosition" | "validationState" | "helpText" | "errorText" | "necessityIndicator" | "successText" | "isRequired" | "maxCharacters"> & {
|
|
2840
3950
|
/**
|
|
2841
3951
|
* Decides whether to render a clear icon button
|
|
2842
3952
|
*/
|
|
@@ -2845,7 +3955,40 @@ declare const TextArea: React__default.ForwardRefExoticComponent<Pick<BaseInputP
|
|
|
2845
3955
|
* Event handler to handle the onClick event for clear button. Used when `showClearButton` is `true`
|
|
2846
3956
|
*/
|
|
2847
3957
|
onClearButtonClick?: (() => void) | undefined;
|
|
2848
|
-
} &
|
|
3958
|
+
} & Partial<MakeObjectResponsive<{
|
|
3959
|
+
margin: SpacingValueType | ArrayOfMaxLength4<SpacingValueType>;
|
|
3960
|
+
marginX: SpacingValueType;
|
|
3961
|
+
marginY: SpacingValueType;
|
|
3962
|
+
marginTop: SpacingValueType;
|
|
3963
|
+
marginRight: SpacingValueType;
|
|
3964
|
+
marginBottom: SpacingValueType;
|
|
3965
|
+
marginLeft: SpacingValueType;
|
|
3966
|
+
}> & Pick<MakeObjectResponsive<{
|
|
3967
|
+
gap: SpacingValueType;
|
|
3968
|
+
rowGap: SpacingValueType;
|
|
3969
|
+
columnGap: SpacingValueType;
|
|
3970
|
+
} & Pick<styled_components.CSSObject, "alignContent" | "alignItems" | "alignSelf" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "justifyContent" | "justifyItems" | "justifySelf" | "order" | "flex" | "placeSelf">>, "alignSelf" | "justifySelf" | "order" | "placeSelf"> & MakeObjectResponsive<{
|
|
3971
|
+
top: SpacingValueType;
|
|
3972
|
+
right: SpacingValueType;
|
|
3973
|
+
bottom: SpacingValueType;
|
|
3974
|
+
left: SpacingValueType;
|
|
3975
|
+
} & Pick<styled_components.CSSObject, "position" | "zIndex">> & Pick<{
|
|
3976
|
+
grid?: undefined;
|
|
3977
|
+
gridAutoColumns?: undefined;
|
|
3978
|
+
gridAutoFlow?: undefined;
|
|
3979
|
+
gridAutoRows?: undefined;
|
|
3980
|
+
gridColumnEnd?: undefined;
|
|
3981
|
+
gridColumnStart?: undefined;
|
|
3982
|
+
gridRowEnd?: undefined;
|
|
3983
|
+
gridRowStart?: undefined;
|
|
3984
|
+
gridTemplateAreas?: undefined;
|
|
3985
|
+
gridTemplateColumns?: undefined;
|
|
3986
|
+
gridTemplateRows?: undefined;
|
|
3987
|
+
gridArea?: undefined;
|
|
3988
|
+
gridColumn?: undefined;
|
|
3989
|
+
gridRow?: undefined;
|
|
3990
|
+
gridTemplate?: undefined;
|
|
3991
|
+
}, "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridArea" | "gridColumn" | "gridRow">> & React__default.RefAttributes<BladeElementRef>>;
|
|
2849
3992
|
|
|
2850
3993
|
declare type OTPInputProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'name' | 'onChange' | 'value' | 'isDisabled' | 'autoFocus' | 'keyboardReturnKeyType' | 'keyboardType' | 'placeholder' | 'testID'> & {
|
|
2851
3994
|
/**
|
|
@@ -2875,7 +4018,7 @@ declare type OTPInputProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'v
|
|
|
2875
4018
|
*
|
|
2876
4019
|
*/
|
|
2877
4020
|
autoCompleteSuggestionType?: Extract<BaseInputProps['autoCompleteSuggestionType'], 'none' | 'oneTimeCode'>;
|
|
2878
|
-
};
|
|
4021
|
+
} & StyledPropsBlade;
|
|
2879
4022
|
/**
|
|
2880
4023
|
* OTPInput component can be used for accepting OTPs sent to users for authentication/verification purposes.
|
|
2881
4024
|
*
|
|
@@ -2890,7 +4033,7 @@ declare type OTPInputProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'v
|
|
|
2890
4033
|
* />
|
|
2891
4034
|
* ```
|
|
2892
4035
|
*/
|
|
2893
|
-
declare const OTPInput: ({ autoFocus, errorText, helpText, isDisabled, keyboardReturnKeyType, keyboardType, label, labelPosition, name, onChange, onOTPFilled, otpLength, placeholder, successText, validationState, value, isMasked, autoCompleteSuggestionType, testID, }: OTPInputProps) => React__default.ReactElement;
|
|
4036
|
+
declare const OTPInput: ({ autoFocus, errorText, helpText, isDisabled, keyboardReturnKeyType, keyboardType, label, labelPosition, name, onChange, onOTPFilled, otpLength, placeholder, successText, validationState, value, isMasked, autoCompleteSuggestionType, testID, ...styledProps }: OTPInputProps) => React__default.ReactElement;
|
|
2894
4037
|
|
|
2895
4038
|
declare type SelectInputProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'necessityIndicator' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'name' | 'isDisabled' | 'isRequired' | 'prefix' | 'suffix' | 'autoFocus' | 'onClick' | 'onFocus' | 'onBlur' | 'placeholder' | 'testID'> & {
|
|
2896
4039
|
icon?: IconComponent$1;
|
|
@@ -2947,7 +4090,7 @@ declare type IndicatorCommonProps = {
|
|
|
2947
4090
|
* @default medium
|
|
2948
4091
|
*/
|
|
2949
4092
|
size?: 'small' | 'medium' | 'large';
|
|
2950
|
-
} & TestID;
|
|
4093
|
+
} & TestID$1 & StyledPropsBlade;
|
|
2951
4094
|
declare type IndicatorWithoutA11yLabel = {
|
|
2952
4095
|
/**
|
|
2953
4096
|
* A text label to show alongside the indicator dot
|
|
@@ -2969,7 +4112,7 @@ declare type IndicatorWithA11yLabel = {
|
|
|
2969
4112
|
children?: StringChildrenType;
|
|
2970
4113
|
};
|
|
2971
4114
|
declare type IndicatorProps = IndicatorCommonProps & (IndicatorWithA11yLabel | IndicatorWithoutA11yLabel);
|
|
2972
|
-
declare const Indicator: ({ accessibilityLabel, children, size, intent, testID, }: IndicatorProps) => ReactElement;
|
|
4115
|
+
declare const Indicator: ({ accessibilityLabel, children, size, intent, testID, ...styledProps }: IndicatorProps) => ReactElement;
|
|
2973
4116
|
|
|
2974
4117
|
declare type ListItemProps = {
|
|
2975
4118
|
/**
|
|
@@ -2987,7 +4130,7 @@ declare type ListItemProps = {
|
|
|
2987
4130
|
*
|
|
2988
4131
|
*/
|
|
2989
4132
|
_itemNumber?: undefined;
|
|
2990
|
-
} & TestID;
|
|
4133
|
+
} & TestID$1;
|
|
2991
4134
|
declare const ListItem: {
|
|
2992
4135
|
({ children, icon, _itemNumber, testID, }: ListItemProps): React__default.ReactElement;
|
|
2993
4136
|
componentId: string;
|
|
@@ -3011,7 +4154,7 @@ declare type ListCommonProps = {
|
|
|
3011
4154
|
* @default 'medium'
|
|
3012
4155
|
*/
|
|
3013
4156
|
size?: 'small' | 'medium';
|
|
3014
|
-
} & TestID;
|
|
4157
|
+
} & TestID$1 & StyledPropsBlade;
|
|
3015
4158
|
declare type ListWithIconProps = ListCommonProps & {
|
|
3016
4159
|
variant?: 'unordered';
|
|
3017
4160
|
icon?: IconComponent;
|
|
@@ -3042,7 +4185,7 @@ declare type ListProps = ListWithIconProps | ListWithoutIconProps;
|
|
|
3042
4185
|
* ```
|
|
3043
4186
|
*/
|
|
3044
4187
|
declare const List: {
|
|
3045
|
-
({ variant, size, children, icon, testID, }: ListProps): React__default.ReactElement;
|
|
4188
|
+
({ variant, size, children, icon, testID, ...styledProps }: ListProps): React__default.ReactElement;
|
|
3046
4189
|
componentId: string;
|
|
3047
4190
|
};
|
|
3048
4191
|
|
|
@@ -3057,8 +4200,8 @@ declare type TitleProps = {
|
|
|
3057
4200
|
contrast?: ColorContrastTypes;
|
|
3058
4201
|
type?: TextTypes;
|
|
3059
4202
|
children: StringChildrenType;
|
|
3060
|
-
} & TestID;
|
|
3061
|
-
declare const Title: ({ size, type, contrast, children, testID, }: TitleProps) => ReactElement;
|
|
4203
|
+
} & TestID$1 & StyledPropsBlade;
|
|
4204
|
+
declare const Title: ({ size, type, contrast, children, testID, ...styledProps }: TitleProps) => ReactElement;
|
|
3062
4205
|
|
|
3063
4206
|
declare type HeadingVariant = 'regular' | 'subheading';
|
|
3064
4207
|
declare type HeadingSize = 'small' | 'medium' | 'large';
|
|
@@ -3066,7 +4209,7 @@ declare type HeadingCommonProps = {
|
|
|
3066
4209
|
type?: TextTypes;
|
|
3067
4210
|
contrast?: ColorContrastTypes;
|
|
3068
4211
|
children: StringChildrenType;
|
|
3069
|
-
} & TestID;
|
|
4212
|
+
} & TestID$1 & StyledPropsBlade;
|
|
3070
4213
|
declare type HeadingNormalVariant = HeadingCommonProps & {
|
|
3071
4214
|
variant?: Exclude<HeadingVariant, 'subheading'>;
|
|
3072
4215
|
/**
|
|
@@ -3093,7 +4236,7 @@ declare type HeadingProps<T> = T extends {
|
|
|
3093
4236
|
} ? Variant extends Exclude<HeadingVariant, 'subheading'> ? HeadingNormalVariant : Variant extends 'subheading' ? HeadingSubHeadingVariant : T : T;
|
|
3094
4237
|
declare const Heading: <T extends {
|
|
3095
4238
|
variant: HeadingVariant;
|
|
3096
|
-
}>({ variant, size, type, weight, contrast, children, testID, }: HeadingProps<T>) => ReactElement;
|
|
4239
|
+
}>({ variant, size, type, weight, contrast, children, testID, ...styledProps }: HeadingProps<T>) => ReactElement;
|
|
3097
4240
|
|
|
3098
4241
|
declare type FeedbackColors = `feedback.text.${DotNotationColorStringToken<Theme$1['colors']['feedback']['text']>}`;
|
|
3099
4242
|
declare type FeedbackActionColors = `feedback.${Feedback}.action.text.${DotNotationColorStringToken<Theme$1['colors']['feedback'][Feedback]['action']['text']>}`;
|
|
@@ -3124,7 +4267,7 @@ declare type BaseTextProps = {
|
|
|
3124
4267
|
*/
|
|
3125
4268
|
numberOfLines?: number;
|
|
3126
4269
|
componentName?: 'text' | 'title' | 'heading' | 'code';
|
|
3127
|
-
} & TestID;
|
|
4270
|
+
} & TestID$1 & StyledPropsBlade;
|
|
3128
4271
|
|
|
3129
4272
|
declare type TextCommonProps = {
|
|
3130
4273
|
type?: TextTypes;
|
|
@@ -3137,7 +4280,7 @@ declare type TextCommonProps = {
|
|
|
3137
4280
|
*/
|
|
3138
4281
|
color?: BaseTextProps['color'];
|
|
3139
4282
|
textAlign?: BaseTextProps['textAlign'];
|
|
3140
|
-
} & TestID;
|
|
4283
|
+
} & TestID$1 & StyledPropsBlade;
|
|
3141
4284
|
declare type TextVariant = 'body' | 'caption';
|
|
3142
4285
|
declare type TextBodyVariant = TextCommonProps & {
|
|
3143
4286
|
variant?: Extract<TextVariant, 'body'>;
|
|
@@ -3159,10 +4302,10 @@ declare type TextForwardedAs = {
|
|
|
3159
4302
|
};
|
|
3160
4303
|
declare const getTextProps: <T extends {
|
|
3161
4304
|
variant: TextVariant;
|
|
3162
|
-
}>({ variant, type, weight, size, contrast, testID, textAlign, }: Pick<TextProps<T>, "testID" | "
|
|
4305
|
+
}>({ variant, type, weight, size, contrast, testID, textAlign, }: Pick<TextProps<T>, "testID" | "textAlign" | "size" | "weight" | "type" | "variant" | "contrast">) => Omit<BaseTextProps, 'children'> & TextForwardedAs;
|
|
3163
4306
|
declare const Text: <T extends {
|
|
3164
4307
|
variant: TextVariant;
|
|
3165
|
-
}>({ variant, weight, size, type, contrast, truncateAfterLines, children, color, testID, textAlign, }: TextProps<T>) => ReactElement;
|
|
4308
|
+
}>({ variant, weight, size, type, contrast, truncateAfterLines, children, color, testID, textAlign, ...styledProps }: TextProps<T>) => ReactElement;
|
|
3166
4309
|
|
|
3167
4310
|
declare type CodeProps = {
|
|
3168
4311
|
children: StringChildrenType;
|
|
@@ -3172,7 +4315,7 @@ declare type CodeProps = {
|
|
|
3172
4315
|
* @default small
|
|
3173
4316
|
*/
|
|
3174
4317
|
size?: 'small' | 'medium';
|
|
3175
|
-
} & TestID;
|
|
4318
|
+
} & TestID$1 & StyledPropsBlade;
|
|
3176
4319
|
/**
|
|
3177
4320
|
* Code component can be used for displaying token, variable names, or inlined code snippets.
|
|
3178
4321
|
*
|
|
@@ -3199,7 +4342,7 @@ declare type CodeProps = {
|
|
|
3199
4342
|
* </BaseBox>
|
|
3200
4343
|
* ```
|
|
3201
4344
|
*/
|
|
3202
|
-
declare const Code: ({ children, size, testID }: CodeProps) => JSX.Element;
|
|
4345
|
+
declare const Code: ({ children, size, testID, ...styledProps }: CodeProps) => JSX.Element;
|
|
3203
4346
|
|
|
3204
4347
|
declare type ListItemCodeProps = Exclude<CodeProps, 'size'>;
|
|
3205
4348
|
declare const ListItemCode: {
|
|
@@ -3251,7 +4394,7 @@ declare type ProgressBarCommonProps = {
|
|
|
3251
4394
|
* @default 100
|
|
3252
4395
|
*/
|
|
3253
4396
|
max?: number;
|
|
3254
|
-
} & TestID;
|
|
4397
|
+
} & TestID$1 & StyledPropsBlade;
|
|
3255
4398
|
declare type ProgressBarVariant = 'progress' | 'meter';
|
|
3256
4399
|
declare type ProgressBarProgressProps = ProgressBarCommonProps & {
|
|
3257
4400
|
/**
|
|
@@ -3288,7 +4431,7 @@ declare type ProgressBarMeterProps = ProgressBarCommonProps & {
|
|
|
3288
4431
|
showPercentage?: undefined;
|
|
3289
4432
|
};
|
|
3290
4433
|
declare type ProgressBarProps = ProgressBarProgressProps | ProgressBarMeterProps;
|
|
3291
|
-
declare const ProgressBar: ({ accessibilityLabel, contrast, intent, isIndeterminate, label, showPercentage, size, value, variant, min, max, testID, }: ProgressBarProps) => ReactElement;
|
|
4434
|
+
declare const ProgressBar: ({ accessibilityLabel, contrast, intent, isIndeterminate, label, showPercentage, size, value, variant, min, max, testID, ...styledProps }: ProgressBarProps) => ReactElement;
|
|
3292
4435
|
|
|
3293
4436
|
declare type RadioProps = {
|
|
3294
4437
|
/**
|
|
@@ -3316,7 +4459,7 @@ declare type RadioProps = {
|
|
|
3316
4459
|
* @default "medium"
|
|
3317
4460
|
*/
|
|
3318
4461
|
size?: 'small' | 'medium';
|
|
3319
|
-
} & TestID;
|
|
4462
|
+
} & TestID$1 & StyledPropsBlade;
|
|
3320
4463
|
declare const Radio: React__default.ForwardRefExoticComponent<{
|
|
3321
4464
|
/**
|
|
3322
4465
|
* Sets the label text of the Radio
|
|
@@ -3343,7 +4486,40 @@ declare const Radio: React__default.ForwardRefExoticComponent<{
|
|
|
3343
4486
|
* @default "medium"
|
|
3344
4487
|
*/
|
|
3345
4488
|
size?: "small" | "medium" | undefined;
|
|
3346
|
-
} & TestID &
|
|
4489
|
+
} & TestID$1 & Partial<MakeObjectResponsive<{
|
|
4490
|
+
margin: SpacingValueType | ArrayOfMaxLength4<SpacingValueType>;
|
|
4491
|
+
marginX: SpacingValueType;
|
|
4492
|
+
marginY: SpacingValueType;
|
|
4493
|
+
marginTop: SpacingValueType;
|
|
4494
|
+
marginRight: SpacingValueType;
|
|
4495
|
+
marginBottom: SpacingValueType;
|
|
4496
|
+
marginLeft: SpacingValueType;
|
|
4497
|
+
}> & Pick<MakeObjectResponsive<{
|
|
4498
|
+
gap: SpacingValueType;
|
|
4499
|
+
rowGap: SpacingValueType;
|
|
4500
|
+
columnGap: SpacingValueType;
|
|
4501
|
+
} & Pick<styled_components.CSSObject, "alignContent" | "alignItems" | "alignSelf" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "justifyContent" | "justifyItems" | "justifySelf" | "order" | "flex" | "placeSelf">>, "alignSelf" | "justifySelf" | "order" | "placeSelf"> & MakeObjectResponsive<{
|
|
4502
|
+
top: SpacingValueType;
|
|
4503
|
+
right: SpacingValueType;
|
|
4504
|
+
bottom: SpacingValueType;
|
|
4505
|
+
left: SpacingValueType;
|
|
4506
|
+
} & Pick<styled_components.CSSObject, "position" | "zIndex">> & Pick<{
|
|
4507
|
+
grid?: undefined;
|
|
4508
|
+
gridAutoColumns?: undefined;
|
|
4509
|
+
gridAutoFlow?: undefined;
|
|
4510
|
+
gridAutoRows?: undefined;
|
|
4511
|
+
gridColumnEnd?: undefined;
|
|
4512
|
+
gridColumnStart?: undefined;
|
|
4513
|
+
gridRowEnd?: undefined;
|
|
4514
|
+
gridRowStart?: undefined;
|
|
4515
|
+
gridTemplateAreas?: undefined;
|
|
4516
|
+
gridTemplateColumns?: undefined;
|
|
4517
|
+
gridTemplateRows?: undefined;
|
|
4518
|
+
gridArea?: undefined;
|
|
4519
|
+
gridColumn?: undefined;
|
|
4520
|
+
gridRow?: undefined;
|
|
4521
|
+
gridTemplate?: undefined;
|
|
4522
|
+
}, "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridArea" | "gridColumn" | "gridRow">> & React__default.RefAttributes<BladeElementRef>>;
|
|
3347
4523
|
|
|
3348
4524
|
declare type RadioGroupProps = {
|
|
3349
4525
|
/**
|
|
@@ -3418,8 +4594,8 @@ declare type RadioGroupProps = {
|
|
|
3418
4594
|
* @default "medium"
|
|
3419
4595
|
*/
|
|
3420
4596
|
size?: 'small' | 'medium';
|
|
3421
|
-
} & TestID;
|
|
3422
|
-
declare const RadioGroup: ({ children, label, helpText, isDisabled, necessityIndicator, labelPosition, validationState, errorText, name, defaultValue, onChange, value, size, testID, }: RadioGroupProps) => React__default.ReactElement;
|
|
4597
|
+
} & TestID$1 & StyledPropsBlade;
|
|
4598
|
+
declare const RadioGroup: ({ children, label, helpText, isDisabled, necessityIndicator, labelPosition, validationState, errorText, name, defaultValue, onChange, value, size, testID, ...styledProps }: RadioGroupProps) => React__default.ReactElement;
|
|
3423
4599
|
|
|
3424
4600
|
declare type BaseSpinnerProps = {
|
|
3425
4601
|
intent?: Feedback;
|
|
@@ -3451,10 +4627,10 @@ declare type BaseSpinnerProps = {
|
|
|
3451
4627
|
*
|
|
3452
4628
|
*/
|
|
3453
4629
|
accessibilityLabel: string;
|
|
3454
|
-
} & TestID;
|
|
4630
|
+
} & TestID$1 & StyledPropsBlade;
|
|
3455
4631
|
|
|
3456
4632
|
declare type SpinnerProps = Omit<BaseSpinnerProps, 'intent'>;
|
|
3457
|
-
declare const Spinner: ({ label, labelPosition, accessibilityLabel, contrast, size, testID, }: SpinnerProps) => React.ReactElement;
|
|
4633
|
+
declare const Spinner: ({ label, labelPosition, accessibilityLabel, contrast, size, testID, ...styledProps }: SpinnerProps) => React.ReactElement;
|
|
3458
4634
|
|
|
3459
4635
|
declare type SkipNavLinkProps = {
|
|
3460
4636
|
id?: string;
|
|
@@ -3465,7 +4641,7 @@ declare const SkipNavContent: (_props: SkipNavLinkProps) => never;
|
|
|
3465
4641
|
|
|
3466
4642
|
declare type VisuallyHiddenProps = {
|
|
3467
4643
|
children: React.ReactNode;
|
|
3468
|
-
} & TestID;
|
|
4644
|
+
} & TestID$1;
|
|
3469
4645
|
|
|
3470
4646
|
declare const VisuallyHidden: ({ children, testID }: VisuallyHiddenProps) => JSX.Element;
|
|
3471
4647
|
|
|
@@ -3475,4 +4651,71 @@ declare const VisuallyHidden: ({ children, testID }: VisuallyHiddenProps) => JSX
|
|
|
3475
4651
|
*/
|
|
3476
4652
|
declare const screenReaderStyles: CSSObject;
|
|
3477
4653
|
|
|
3478
|
-
|
|
4654
|
+
declare type TestID = {
|
|
4655
|
+
testID?: string;
|
|
4656
|
+
};
|
|
4657
|
+
|
|
4658
|
+
declare const BaseBox: styled_components.StyledComponent<typeof View, styled_components.DefaultTheme, Omit<Partial<MakeObjectResponsive<{
|
|
4659
|
+
padding: SpacingValueType | ArrayOfMaxLength4<SpacingValueType>;
|
|
4660
|
+
paddingX: SpacingValueType;
|
|
4661
|
+
paddingY: SpacingValueType;
|
|
4662
|
+
paddingTop: SpacingValueType;
|
|
4663
|
+
paddingRight: SpacingValueType;
|
|
4664
|
+
paddingBottom: SpacingValueType;
|
|
4665
|
+
paddingLeft: SpacingValueType;
|
|
4666
|
+
}> & MakeObjectResponsive<{
|
|
4667
|
+
margin: SpacingValueType | ArrayOfMaxLength4<SpacingValueType>;
|
|
4668
|
+
marginX: SpacingValueType;
|
|
4669
|
+
marginY: SpacingValueType;
|
|
4670
|
+
marginTop: SpacingValueType;
|
|
4671
|
+
marginRight: SpacingValueType;
|
|
4672
|
+
marginBottom: SpacingValueType;
|
|
4673
|
+
marginLeft: SpacingValueType;
|
|
4674
|
+
}> & MakeObjectResponsive<{
|
|
4675
|
+
height: SpacingValueType;
|
|
4676
|
+
minHeight: SpacingValueType;
|
|
4677
|
+
maxHeight: SpacingValueType;
|
|
4678
|
+
width: SpacingValueType;
|
|
4679
|
+
minWidth: SpacingValueType;
|
|
4680
|
+
maxWidth: SpacingValueType;
|
|
4681
|
+
} & Pick<styled_components.CSSObject, "display" | "overflow" | "overflowX" | "overflowY">> & MakeObjectResponsive<{
|
|
4682
|
+
gap: SpacingValueType;
|
|
4683
|
+
rowGap: SpacingValueType;
|
|
4684
|
+
columnGap: SpacingValueType;
|
|
4685
|
+
} & Pick<styled_components.CSSObject, "alignContent" | "alignItems" | "alignSelf" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "justifyContent" | "justifyItems" | "justifySelf" | "order" | "flex" | "placeSelf">> & MakeObjectResponsive<{
|
|
4686
|
+
top: SpacingValueType;
|
|
4687
|
+
right: SpacingValueType;
|
|
4688
|
+
bottom: SpacingValueType;
|
|
4689
|
+
left: SpacingValueType;
|
|
4690
|
+
} & Pick<styled_components.CSSObject, "position" | "zIndex">> & {
|
|
4691
|
+
grid?: undefined;
|
|
4692
|
+
gridAutoColumns?: undefined;
|
|
4693
|
+
gridAutoFlow?: undefined;
|
|
4694
|
+
gridAutoRows?: undefined;
|
|
4695
|
+
gridColumnEnd?: undefined;
|
|
4696
|
+
gridColumnStart?: undefined;
|
|
4697
|
+
gridRowEnd?: undefined;
|
|
4698
|
+
gridRowStart?: undefined;
|
|
4699
|
+
gridTemplateAreas?: undefined;
|
|
4700
|
+
gridTemplateColumns?: undefined;
|
|
4701
|
+
gridTemplateRows?: undefined;
|
|
4702
|
+
gridArea?: undefined;
|
|
4703
|
+
gridColumn?: undefined;
|
|
4704
|
+
gridRow?: undefined;
|
|
4705
|
+
gridTemplate?: undefined;
|
|
4706
|
+
} & MakeObjectResponsive<{
|
|
4707
|
+
backgroundColor: "surface.background.level1.lowContrast" | "surface.background.level1.highContrast" | "surface.background.level2.lowContrast" | "surface.background.level2.highContrast" | "surface.background.level3.lowContrast" | "surface.background.level3.highContrast";
|
|
4708
|
+
}> & {
|
|
4709
|
+
as: "header" | "main" | "aside" | "div" | "footer" | "nav" | "section" | "span";
|
|
4710
|
+
} & {
|
|
4711
|
+
children?: React$1.ReactNode | React$1.ReactNode[];
|
|
4712
|
+
} & TestID>, "backgroundColor" | "as"> & Partial<MakeObjectResponsive<{
|
|
4713
|
+
borderRadius: "none" | "small" | "medium" | "large" | "max" | "round";
|
|
4714
|
+
backgroundColor: "feedback.background.neutral.lowContrast" | "feedback.background.neutral.highContrast" | "feedback.background.information.lowContrast" | "feedback.background.information.highContrast" | "feedback.background.negative.lowContrast" | "feedback.background.negative.highContrast" | "feedback.background.notice.lowContrast" | "feedback.background.notice.highContrast" | "feedback.background.positive.lowContrast" | "feedback.background.positive.highContrast" | "surface.background.level1.lowContrast" | "surface.background.level1.highContrast" | "surface.background.level2.lowContrast" | "surface.background.level2.highContrast" | "surface.background.level3.lowContrast" | "surface.background.level3.highContrast" | "action.background.primary.disabled" | "action.background.primary.default" | "action.background.primary.hover" | "action.background.primary.focus" | "action.background.primary.active" | "action.background.secondary.disabled" | "action.background.secondary.default" | "action.background.secondary.hover" | "action.background.secondary.focus" | "action.background.secondary.active" | "action.background.tertiary.disabled" | "action.background.tertiary.default" | "action.background.tertiary.hover" | "action.background.tertiary.focus" | "action.background.tertiary.active" | (string & Record<never, never>);
|
|
4715
|
+
lineHeight: SpacingValueType;
|
|
4716
|
+
} & Pick<styled_components.CSSObject, "border" | "transform" | "borderBottom" | "borderLeft" | "borderRight" | "borderTop">> & {
|
|
4717
|
+
className?: string | undefined;
|
|
4718
|
+
id?: string | undefined;
|
|
4719
|
+
}>, never>;
|
|
4720
|
+
|
|
4721
|
+
export { ActionList, ActionListFooter, ActionListFooterIcon, ActionListFooterProps, ActionListHeader, ActionListHeaderIcon, ActionListHeaderProps, ActionListItem, ActionListItemAsset, ActionListItemAssetProps, ActionListItemIcon, ActionListItemProps, ActionListItemText, ActionListProps, ActionListSection, ActionListSectionDivider, ActionListSectionProps, ActivityIcon, AirplayIcon, Alert, AlertCircleIcon, AlertTriangleIcon as AlertOctagonIcon, AlertOnlyIcon, AlertProps, AlertTriangleIcon$1 as AlertTriangleIcon, AlignCenterIcon, AlignJustifyIcon, AlignLeftIcon, AlignRightIcon, AnchorIcon, AnnouncementIcon, ApertureIcon, AppStoreIcon, ArrowDownIcon, ArrowDownLeftIcon, ArrowDownRightIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowUpLeftIcon, ArrowUpRightIcon, AtSignIcon, Attachment as AttachmentIcon, AwardIcon, Badge, BadgeProps, BankIcon, BarChartAltIcon, BarChartIcon, BatteryChargingIcon, BatteryIcon, BellIcon, BellOffIcon, BillIcon, BladeProvider, BladeProviderProps, BluetoothIcon, BoldIcon, BookIcon, BookmarkIcon, Box, BoxIcon, BoxProps, BriefcaseIcon, BulkPayoutsIcon, Button, ButtonProps, CalendarIcon, CameraIcon, CameraOffIcon, Card, CardBody, CardFooter, CardFooterAction, CardFooterLeading, CardFooterTrailing, CardHeader, CardHeaderBadge, CardHeaderCounter, CardHeaderIcon, CardHeaderIconButton, CardHeaderLeading, CardHeaderLink, CardHeaderText, CardHeaderTrailing, CardProps, CastIcon, CheckCircleIcon, CheckIcon, CheckSquareIcon, Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxProps, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsDownIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpIcon, ChromeIcon, CircleIcon, ClipboardIcon, ClockIcon, CloseIcon, CloudDrizzleIcon, CloudIcon, CloudLightningIcon, CloudOffIcon, CloudRainIcon, CloudSnowIcon, Code, CodeProps, CodepenIcon, CoinsIcon, CommandIcon, CompassIcon, ComponentIds, CopyIcon, CornerDownLeftIcon, CornerDownRightIcon, CornerLeftDownIcon, CornerLeftUpIcon, CornerRightDownIcon, CornerRightUpIcon, CornerUpLeftIcon, CornerUpRightIcon, Counter, CounterProps, CpuIcon, CreditCardIcon, CropIcon, CrosshairIcon, CustomersIcon, CutIcon, DashboardIcon, DeleteIcon, DiscIcon, DollarIcon, DollarsIcon, DownloadCloudIcon, DownloadIcon, Dropdown, DropdownOverlay, DropdownOverlayProps, DropdownProps, DropletIcon, EditComposeIcon, EditIcon, EditInlineIcon, ExportIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FacebookIcon, FastForwardIcon, FeatherIcon, FileIcon, FileMinusIcon, FilePlusIcon, FileTextIcon, FilmIcon, FilterIcon, FlagIcon, FolderIcon, FullScreenEnterIcon, FullScreenExitIcon, GithubIcon, GitlabIcon, GlobeIcon, GridIcon, HashIcon, Heading, HeadingProps, HeadphonesIcon, HeartIcon, HelpCircleIcon, HistoryIcon, HomeIcon, IconButton, IconButtonProps, IconComponent, IconProps, IconSize, ImageIcon, InboxIcon, Indicator, IndicatorProps, InfoIcon, InstagramIcon, BaseBox as InternalDontUsePleaseWillBeRemovedSoonBaseBox, InvoicesIcon, ItalicIcon, LayersIcon, LayoutIcon, LifeBuoyIcon, Link, LinkIcon, LinkProps, List, ListIcon, ListItem, ListItemCode, ListItemCodeProps, ListItemLink, ListItemLinkProps, ListItemProps, ListProps, LoaderIcon, LockIcon, LogInIcon, LogOutIcon, MailIcon, MailOpenIcon, MapIcon, MapPinIcon, MaximizeIcon, MenuDotsIcon, MenuIcon, MessageCircleIcon, MessageSquareIcon, MicIcon, MicOffIcon, MinimizeIcon, MinusCircleIcon, MinusIcon, MinusSquareIcon, MonitorIcon, MoonIcon, MoreHorizontalIcon, MoreVerticalIcon, MoveIcon, MusicIcon, MyAccountIcon, NavigationIcon, OTPInput, OTPInputProps, OctagonIcon, OffersIcon, PackageIcon, PaperclipIcon, PasswordInput, PasswordInputProps, PauseCircleIcon, PauseIcon, PaymentButtonsIcon, PaymentLinksIcon, PaymentPagesIcon, PercentIcon, PhoneCallIcon, PhoneForwardedIcon, PhoneIcon, PhoneIncomingIcon, PhoneMissedIcon, PhoneOffIcon, PhoneOutgoingIcon, PieChartIcon, PlayCircleIcon, PlayIcon, PlusCircleIcon, PlusIcon, PlusSquareIcon, PocketIcon, PowerIcon, PrinterIcon, ProgressBar, ProgressBarProps, ProgressBarVariant, QRCodeIcon, Radio, RadioGroup, RadioGroupProps, RadioIcon, RadioProps, RazorpayIcon, RazorpayXIcon, RefreshIcon, RepeatIcon, ReportsIcon, RewindIcon, RotateClockWiseIcon, RotateCounterClockWiseIcon, RoutesIcon, RupeeIcon, RupeesIcon, SaveIcon, ScissorsIcon, SearchIcon, SelectInput, SelectInputProps, SendIcon, ServerIcon, SettingsIcon, SettlementsIcon, ShareIcon, ShieldIcon, ShoppingCartIcon, ShuffleIcon, SidebarIcon, SkipBackIcon, SkipForwardIcon, SkipNavContent, SkipNavLink, SlackIcon, SlashIcon, SlidersIcon, SmartCollectIcon, SmartphoneIcon, SpeakerIcon, Spinner, SpinnerProps, SquareIcon, StampIcon, StarIcon, StopCircleIcon, SubscriptionsIcon, SunIcon, SunriseIcon, SunsetIcon, TabletIcon, TagIcon, TargetIcon, Text, TextArea, TextAreaProps, TextInput, TextInputProps, TextProps, TextVariant, Theme, ThermometerIcon, ThumbsDownIcon, ThumbsUpIcon, Title, TitleProps, ToggleLeftIcon, ToggleRightIcon, TransactionsIcon, TrashIcon, TrendingDownIcon, TrendingUpIcon, TriangleIcon, TvIcon, TwitterIcon, TypeIcon, UmbrellaIcon, UnderlineIcon, UnlockIcon, UploadCloudIcon, UploadIcon, UserCheckIcon, UserIcon, UserMinusIcon, UserPlusIcon, UserXIcon, UsersIcon, VideoIcon, VideoOffIcon, VisuallyHidden, VisuallyHiddenProps, VoicemailIcon, VolumeHighIcon, VolumeIcon, VolumeLowIcon, VolumeMuteIcon, WatchIcon, WifiIcon, WifiOffIcon, WindIcon, XCircleIcon, XSquareIcon, ZapIcon, ZoomInIcon, ZoomOutIcon, announce, clearAnnouncer, destroyAnnouncer, getTextProps, screenReaderStyles, useTheme };
|