@razorpay/blade 8.0.0 → 8.2.2
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/package.json +5 -5
- package/CHANGELOG.md +0 -1642
- package/build/components/index.d.ts +0 -4733
- package/build/components/index.native.d.ts +0 -4719
- package/build/components/index.native.js +0 -4299
- package/build/components/index.native.js.map +0 -1
- package/build/components/index.web.js +0 -28351
- package/build/components/index.web.js.map +0 -1
- package/build/css/bankingThemeDarkDesktop.css +0 -587
- package/build/css/bankingThemeDarkMobile.css +0 -587
- package/build/css/bankingThemeLightDesktop.css +0 -587
- package/build/css/bankingThemeLightMobile.css +0 -587
- package/build/css/paymentThemeDarkDesktop.css +0 -587
- package/build/css/paymentThemeDarkMobile.css +0 -587
- package/build/css/paymentThemeLightDesktop.css +0 -587
- package/build/css/paymentThemeLightMobile.css +0 -587
- package/build/tokens/index.d.ts +0 -1180
- package/build/tokens/index.native.d.ts +0 -1180
- package/build/tokens/index.native.js +0 -4210
- package/build/tokens/index.native.js.map +0 -1
- package/build/tokens/index.web.js +0 -9230
- package/build/tokens/index.web.js.map +0 -1
- package/build/utils/index.d.ts +0 -574
- package/build/utils/index.native.d.ts +0 -573
- package/build/utils/index.native.js +0 -4565
- package/build/utils/index.native.js.map +0 -1
- package/build/utils/index.web.js +0 -5157
- package/build/utils/index.web.js.map +0 -1
- package/components.d.ts +0 -1
- package/components.js +0 -1
- package/tokens.d.ts +0 -1
- package/tokens.js +0 -1
- package/utils.d.ts +0 -1
- package/utils.js +0 -1
|
@@ -1,4719 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import * as React$1 from 'react';
|
|
3
|
-
import React__default, { ReactChild, ReactElement, ReactNode, SyntheticEvent, KeyboardEvent } from 'react';
|
|
4
|
-
import * as react_native from 'react-native';
|
|
5
|
-
import { AccessibilityRole, ViewStyle, ImageSourcePropType, View, GestureResponderEvent } from 'react-native';
|
|
6
|
-
import { CSSObject } from 'styled-components';
|
|
7
|
-
import { ReactDOMAttributes } from '@use-gesture/react/dist/declarations/src/types';
|
|
8
|
-
|
|
9
|
-
type BorderRadius = Readonly<{
|
|
10
|
-
/** none: 0(px/rem/pt) */
|
|
11
|
-
none: 0;
|
|
12
|
-
/** small: 2(px/rem/pt) */
|
|
13
|
-
small: 2;
|
|
14
|
-
/** medium: 4(px/rem/pt) */
|
|
15
|
-
medium: 4;
|
|
16
|
-
/** large: 8(px/rem/pt) */
|
|
17
|
-
large: 8;
|
|
18
|
-
/** max: 9999(px/rem/pt). This will round the left and right side of the box element */
|
|
19
|
-
max: 9999;
|
|
20
|
-
/** round: 50%(pt). This will turn the box element into a circle */
|
|
21
|
-
round: '50%';
|
|
22
|
-
}>;
|
|
23
|
-
|
|
24
|
-
type BorderWidth = Readonly<{
|
|
25
|
-
/** none: 0(px/rem/pt) */
|
|
26
|
-
none: 0;
|
|
27
|
-
/** thin: 1(px/rem/pt) */
|
|
28
|
-
thin: 1;
|
|
29
|
-
/** thick: 1.5(px/rem/pt) */
|
|
30
|
-
thick: 1.5;
|
|
31
|
-
}>;
|
|
32
|
-
|
|
33
|
-
type Border = Readonly<{
|
|
34
|
-
radius: BorderRadius;
|
|
35
|
-
width: BorderWidth;
|
|
36
|
-
}>;
|
|
37
|
-
|
|
38
|
-
type Breakpoints = Readonly<{
|
|
39
|
-
/**
|
|
40
|
-
* `base` is used for responsive styling following a **mobile first** approach. It starts from 0px till the next existing token
|
|
41
|
-
*
|
|
42
|
-
* Think of this as styles without any media query.
|
|
43
|
-
*
|
|
44
|
-
* ### Example
|
|
45
|
-
*
|
|
46
|
-
* This code will set margin as `spacing.2` on "m" size screens and above. And as `spacing.1` on less than "m" size screens
|
|
47
|
-
* ```jsx
|
|
48
|
-
* <Box margin={{ base: 'spacing.1', m: 'spacing.2' }} />
|
|
49
|
-
* ```
|
|
50
|
-
*
|
|
51
|
-
* This roughly translates into -
|
|
52
|
-
*
|
|
53
|
-
* ```
|
|
54
|
-
* .Box {
|
|
55
|
-
* margin: 'spacing.1';
|
|
56
|
-
* }
|
|
57
|
-
*
|
|
58
|
-
* @media screen and (min-width: 768px) {
|
|
59
|
-
* .Box {
|
|
60
|
-
* margin: 'spacing.2';
|
|
61
|
-
* }
|
|
62
|
-
* }
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
|
-
base: number;
|
|
66
|
-
/**
|
|
67
|
-
* `@media screen and (min-width: 320px)`
|
|
68
|
-
*
|
|
69
|
-
* Small Mobiles
|
|
70
|
-
*/
|
|
71
|
-
xs: number;
|
|
72
|
-
/**
|
|
73
|
-
* `@media screen and (min-width: 480px)`
|
|
74
|
-
*
|
|
75
|
-
* Mobiles and Small Tablets
|
|
76
|
-
*/
|
|
77
|
-
s: number;
|
|
78
|
-
/**
|
|
79
|
-
* `@media screen and (min-width: 768px)`
|
|
80
|
-
*
|
|
81
|
-
* Medium and Large Tablets.
|
|
82
|
-
*
|
|
83
|
-
* Dimensions with `m` and above can be treated as desktop in mobile-first approach (with min-width).
|
|
84
|
-
* Hence this breakpoint can be used for desktop styling.
|
|
85
|
-
*
|
|
86
|
-
* E.g. next example will keep flexDirection `row` on mobiles and `column` on large tablets, desktop, and larger screens
|
|
87
|
-
*
|
|
88
|
-
* ```jsx
|
|
89
|
-
* <Box display="flex" flexDirection={{ base: 'row', m: 'column' }} />
|
|
90
|
-
* ```
|
|
91
|
-
*
|
|
92
|
-
*/
|
|
93
|
-
m: number;
|
|
94
|
-
/**
|
|
95
|
-
* `@media screen and (min-width: 1024px)`
|
|
96
|
-
*
|
|
97
|
-
* Desktop
|
|
98
|
-
*/
|
|
99
|
-
l: number;
|
|
100
|
-
/**
|
|
101
|
-
* `@media screen and (min-width: 1200px)`
|
|
102
|
-
*
|
|
103
|
-
* HD Desktop
|
|
104
|
-
*/
|
|
105
|
-
xl: number;
|
|
106
|
-
}>;
|
|
107
|
-
|
|
108
|
-
type FontFamily = {
|
|
109
|
-
/** Used for all type of textual content except code snippets */
|
|
110
|
-
text: string;
|
|
111
|
-
/** Used for code snippets */
|
|
112
|
-
code: string;
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
type FontWeight = {
|
|
116
|
-
regular: 400;
|
|
117
|
-
bold: 700;
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* For font size and line-heights we can’t say from xl to 2xl the value will necessary increase.
|
|
122
|
-
* it might decrease or remain same because these are alias tokens and we need aliases for cross platform.
|
|
123
|
-
* so for example xl on mobile can be 32px and on desktop xl can be 34px,
|
|
124
|
-
* similarly 2xl on mobile can be 34px but on desktop doesn’t necessarily mean 2xl will be more than xl(34px) it can be 32 as well since visually they make better hierarchy.
|
|
125
|
-
*/
|
|
126
|
-
|
|
127
|
-
type FontSize = {
|
|
128
|
-
/** desktop: 9(px/rem/pt)
|
|
129
|
-
*
|
|
130
|
-
* mobile: 9(px/rem/pt)
|
|
131
|
-
*/
|
|
132
|
-
10: number;
|
|
133
|
-
/** desktop: 10(px/rem/pt)
|
|
134
|
-
*
|
|
135
|
-
* mobile: 10(px/rem/pt)
|
|
136
|
-
*/
|
|
137
|
-
25: number;
|
|
138
|
-
/** desktop: 11(px/rem/pt)
|
|
139
|
-
*
|
|
140
|
-
* mobile: 11(px/rem/pt)
|
|
141
|
-
*/
|
|
142
|
-
50: number;
|
|
143
|
-
/** desktop: 12(px/rem/pt)
|
|
144
|
-
*
|
|
145
|
-
* mobile: 12(px/rem/pt)
|
|
146
|
-
*/
|
|
147
|
-
75: number;
|
|
148
|
-
/** desktop: 14(px/rem/pt)
|
|
149
|
-
*
|
|
150
|
-
* mobile: 14(px/rem/pt)
|
|
151
|
-
*/
|
|
152
|
-
100: number;
|
|
153
|
-
/** desktop: 16(px/rem/pt)
|
|
154
|
-
*
|
|
155
|
-
* mobile: 16(px/rem/pt)
|
|
156
|
-
*/
|
|
157
|
-
200: number;
|
|
158
|
-
/** desktop: 18(px/rem/pt)
|
|
159
|
-
*
|
|
160
|
-
* mobile: 16(px/rem/pt)
|
|
161
|
-
*/
|
|
162
|
-
300: number;
|
|
163
|
-
/** desktop: 20(px/rem/pt)
|
|
164
|
-
*
|
|
165
|
-
* mobile: 18(px/rem/pt)
|
|
166
|
-
*/
|
|
167
|
-
400: number;
|
|
168
|
-
/** desktop: 22(px/rem/pt)
|
|
169
|
-
*
|
|
170
|
-
* mobile: 20(px/rem/pt)
|
|
171
|
-
*/
|
|
172
|
-
500: number;
|
|
173
|
-
/** desktop: 24(px/rem/pt)
|
|
174
|
-
*
|
|
175
|
-
* mobile: 20(px/rem/pt)
|
|
176
|
-
*/
|
|
177
|
-
600: number;
|
|
178
|
-
/** desktop: 28(px/rem/pt)
|
|
179
|
-
*
|
|
180
|
-
* mobile: 24(px/rem/pt)
|
|
181
|
-
*/
|
|
182
|
-
700: number;
|
|
183
|
-
/** desktop: 32(px/rem/pt)
|
|
184
|
-
*
|
|
185
|
-
* mobile: 28(px/rem/pt)
|
|
186
|
-
*/
|
|
187
|
-
800: number;
|
|
188
|
-
/** desktop: 36(px/rem/pt)
|
|
189
|
-
*
|
|
190
|
-
* mobile: 32(px/rem/pt)
|
|
191
|
-
*/
|
|
192
|
-
900: number;
|
|
193
|
-
/** desktop: 40(px/rem/pt)
|
|
194
|
-
*
|
|
195
|
-
* mobile: 32(px/rem/pt)
|
|
196
|
-
*/
|
|
197
|
-
1000: number;
|
|
198
|
-
};
|
|
199
|
-
|
|
200
|
-
type Typography = {
|
|
201
|
-
fonts: {
|
|
202
|
-
family: FontFamily;
|
|
203
|
-
size: FontSize;
|
|
204
|
-
weight: FontWeight;
|
|
205
|
-
};
|
|
206
|
-
lineHeights: {
|
|
207
|
-
/** desktop: 0(px/rem/pt)
|
|
208
|
-
*
|
|
209
|
-
* mobile: 0(px/rem/pt)
|
|
210
|
-
*/
|
|
211
|
-
0: number;
|
|
212
|
-
/** desktop: 14(px/rem/pt)
|
|
213
|
-
*
|
|
214
|
-
* mobile: 14(px/rem/pt)
|
|
215
|
-
*/
|
|
216
|
-
25: number;
|
|
217
|
-
/** desktop: 16(px/rem/pt)
|
|
218
|
-
*
|
|
219
|
-
* mobile: 16(px/rem/pt)
|
|
220
|
-
*/
|
|
221
|
-
50: number;
|
|
222
|
-
/** desktop: 18(px/rem/pt)
|
|
223
|
-
*
|
|
224
|
-
* mobile: 18(px/rem/pt)
|
|
225
|
-
*/
|
|
226
|
-
75: number;
|
|
227
|
-
/** desktop: 20(px/rem/pt)
|
|
228
|
-
*
|
|
229
|
-
* mobile: 20(px/rem/pt)
|
|
230
|
-
*/
|
|
231
|
-
100: number;
|
|
232
|
-
/** desktop: 24(px/rem/pt)
|
|
233
|
-
*
|
|
234
|
-
* mobile: 20(px/rem/pt)
|
|
235
|
-
*/
|
|
236
|
-
200: number;
|
|
237
|
-
/** desktop: 24(px/rem/pt)
|
|
238
|
-
*
|
|
239
|
-
* mobile: 24(px/rem/pt)
|
|
240
|
-
*/
|
|
241
|
-
300: number;
|
|
242
|
-
/** desktop: 28(px/rem/pt)
|
|
243
|
-
*
|
|
244
|
-
* mobile: 24(px/rem/pt)
|
|
245
|
-
*/
|
|
246
|
-
400: number;
|
|
247
|
-
/** desktop: 32(px/rem/pt)
|
|
248
|
-
*
|
|
249
|
-
* mobile: 28(px/rem/pt)
|
|
250
|
-
*/
|
|
251
|
-
500: number;
|
|
252
|
-
/** desktop: 40(px/rem/pt)
|
|
253
|
-
*
|
|
254
|
-
* mobile: 32(px/rem/pt)
|
|
255
|
-
*/
|
|
256
|
-
600: number;
|
|
257
|
-
/** desktop: 40(px/rem/pt)
|
|
258
|
-
*
|
|
259
|
-
* mobile: 40(px/rem/pt)
|
|
260
|
-
*/
|
|
261
|
-
700: number;
|
|
262
|
-
/** desktop: 48(px/rem/pt)
|
|
263
|
-
*
|
|
264
|
-
* mobile: 40(px/rem/pt)
|
|
265
|
-
*/
|
|
266
|
-
800: number;
|
|
267
|
-
};
|
|
268
|
-
// letterSpacings: {};
|
|
269
|
-
};
|
|
270
|
-
|
|
271
|
-
type TypographyPlatforms$1 = 'onDesktop' | 'onMobile';
|
|
272
|
-
|
|
273
|
-
type TypographyWithPlatforms = Record<TypographyPlatforms$1, Typography>;
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* When any of the values are changed here, do change the jsdoc comments in BaseBox/types/spacingTypes.ts as well
|
|
277
|
-
*
|
|
278
|
-
* {@link ../../components/Box/BaseBox/types/spacingTypes.ts}
|
|
279
|
-
*/
|
|
280
|
-
|
|
281
|
-
type Spacing = Readonly<{
|
|
282
|
-
/** 0: 0(px/rem/pt) */
|
|
283
|
-
0: 0;
|
|
284
|
-
/** 1: 2(px/rem/pt) */
|
|
285
|
-
1: 2;
|
|
286
|
-
/** 2: 4(px/rem/pt) */
|
|
287
|
-
2: 4;
|
|
288
|
-
/** 3: 8(px/rem/pt) */
|
|
289
|
-
3: 8;
|
|
290
|
-
/** 4: 12(px/rem/pt) */
|
|
291
|
-
4: 12;
|
|
292
|
-
/** 5: 16(px/rem/pt) */
|
|
293
|
-
5: 16;
|
|
294
|
-
/** 6: 20(px/rem/pt) */
|
|
295
|
-
6: 20;
|
|
296
|
-
/** 7: 24(px/rem/pt) */
|
|
297
|
-
7: 24;
|
|
298
|
-
/** 8: 32(px/rem/pt) */
|
|
299
|
-
8: 32;
|
|
300
|
-
/** 9: 40(px/rem/pt) */
|
|
301
|
-
9: 40;
|
|
302
|
-
/** 10: 48(px/rem/pt) */
|
|
303
|
-
10: 48;
|
|
304
|
-
/** 11: 56(px/rem/pt) */
|
|
305
|
-
11: 56;
|
|
306
|
-
}>;
|
|
307
|
-
|
|
308
|
-
type ColorSchemeNames = 'dark' | 'light';
|
|
309
|
-
type ColorSchemeNamesInput = ColorSchemeNames | 'system';
|
|
310
|
-
|
|
311
|
-
type ColorSchemeModes = 'onDark' | 'onLight';
|
|
312
|
-
|
|
313
|
-
type ShadowLevels = 1 | 2 | 3 | 4 | 5;
|
|
314
|
-
|
|
315
|
-
type TextTypes = 'muted' | 'normal' | 'placeholder' | 'subdued' | 'subtle';
|
|
316
|
-
|
|
317
|
-
type ColorContrastTypes = 'low' | 'high';
|
|
318
|
-
|
|
319
|
-
type Shadows = {
|
|
320
|
-
offsetX: {
|
|
321
|
-
level: Record<ShadowLevels, number>;
|
|
322
|
-
};
|
|
323
|
-
offsetY: {
|
|
324
|
-
level: Record<ShadowLevels, number>;
|
|
325
|
-
};
|
|
326
|
-
blurRadius: {
|
|
327
|
-
level: Record<ShadowLevels, number>;
|
|
328
|
-
};
|
|
329
|
-
color: Record<
|
|
330
|
-
ColorSchemeModes,
|
|
331
|
-
{
|
|
332
|
-
level: Record<ShadowLevels, string>;
|
|
333
|
-
}
|
|
334
|
-
>;
|
|
335
|
-
androidElevation: {
|
|
336
|
-
level: Record<ShadowLevels, number>;
|
|
337
|
-
};
|
|
338
|
-
};
|
|
339
|
-
|
|
340
|
-
type Feedback = 'information' | 'negative' | 'neutral' | 'notice' | 'positive';
|
|
341
|
-
|
|
342
|
-
type ColorContrast = {
|
|
343
|
-
[K in ColorContrastTypes as `${Extract<K, string>}Contrast`]: string;
|
|
344
|
-
};
|
|
345
|
-
|
|
346
|
-
type ActionStates = {
|
|
347
|
-
default: string;
|
|
348
|
-
hover: string;
|
|
349
|
-
focus: string;
|
|
350
|
-
active: string;
|
|
351
|
-
disabled: string;
|
|
352
|
-
};
|
|
353
|
-
|
|
354
|
-
type LinkActionStates = ActionStates & {
|
|
355
|
-
visited: string;
|
|
356
|
-
};
|
|
357
|
-
|
|
358
|
-
type ActionStatesWithContrast = {
|
|
359
|
-
default: ColorContrast;
|
|
360
|
-
hover: ColorContrast;
|
|
361
|
-
focus: ColorContrast;
|
|
362
|
-
active: ColorContrast;
|
|
363
|
-
disabled: ColorContrast;
|
|
364
|
-
};
|
|
365
|
-
|
|
366
|
-
type ActionVariants = {
|
|
367
|
-
primary: ActionStates;
|
|
368
|
-
secondary: ActionStates;
|
|
369
|
-
tertiary: ActionStates;
|
|
370
|
-
link: LinkActionStates;
|
|
371
|
-
};
|
|
372
|
-
|
|
373
|
-
type ActionVariantsWithContrast = {
|
|
374
|
-
primary: ActionStatesWithContrast;
|
|
375
|
-
secondary: ActionStatesWithContrast;
|
|
376
|
-
tertiary: ActionStatesWithContrast;
|
|
377
|
-
link: ActionStatesWithContrast;
|
|
378
|
-
};
|
|
379
|
-
|
|
380
|
-
// export type ActionProperties = {
|
|
381
|
-
// background: ActionVariants;
|
|
382
|
-
// border: ActionVariants;
|
|
383
|
-
// text: ActionVariants;
|
|
384
|
-
// icon: ActionVariants;
|
|
385
|
-
// };
|
|
386
|
-
|
|
387
|
-
type FeedbackActions = {
|
|
388
|
-
background: Pick<ActionVariantsWithContrast, 'primary'>;
|
|
389
|
-
border: Pick<ActionVariantsWithContrast, 'primary'>;
|
|
390
|
-
text: Pick<ActionVariantsWithContrast, 'link' | 'primary'>;
|
|
391
|
-
icon: Pick<ActionVariantsWithContrast, 'link' | 'primary'>;
|
|
392
|
-
};
|
|
393
|
-
|
|
394
|
-
type Colors = {
|
|
395
|
-
brand: {
|
|
396
|
-
primary: Record<300 | 400 | 500 | 600 | 700 | 800, string>;
|
|
397
|
-
secondary: Record<500, string>;
|
|
398
|
-
gray: Record<200 | 300 | 400 | 500 | 600 | 700 | 'a50' | 'a100', ColorContrast>;
|
|
399
|
-
};
|
|
400
|
-
feedback: {
|
|
401
|
-
background: Record<Feedback, ColorContrast>;
|
|
402
|
-
border: Record<Feedback, ColorContrast>;
|
|
403
|
-
text: Record<Feedback, ColorContrast>;
|
|
404
|
-
icon: Record<Feedback, ColorContrast>;
|
|
405
|
-
positive: {
|
|
406
|
-
action: FeedbackActions;
|
|
407
|
-
};
|
|
408
|
-
negative: {
|
|
409
|
-
action: FeedbackActions;
|
|
410
|
-
};
|
|
411
|
-
information: {
|
|
412
|
-
action: FeedbackActions;
|
|
413
|
-
};
|
|
414
|
-
notice: {
|
|
415
|
-
action: FeedbackActions;
|
|
416
|
-
};
|
|
417
|
-
neutral: {
|
|
418
|
-
action: FeedbackActions;
|
|
419
|
-
};
|
|
420
|
-
};
|
|
421
|
-
surface: {
|
|
422
|
-
background: Record<'level1' | 'level2' | 'level3', ColorContrast>;
|
|
423
|
-
border: Record<'normal' | 'subtle', ColorContrast>;
|
|
424
|
-
text: Record<TextTypes, ColorContrast>;
|
|
425
|
-
action: {
|
|
426
|
-
icon: ActionStatesWithContrast;
|
|
427
|
-
};
|
|
428
|
-
};
|
|
429
|
-
overlay: Record<'background', string>;
|
|
430
|
-
action: {
|
|
431
|
-
background: Omit<ActionVariants, 'link'>;
|
|
432
|
-
border: Omit<ActionVariants, 'link'>;
|
|
433
|
-
text: ActionVariants;
|
|
434
|
-
icon: ActionVariants;
|
|
435
|
-
};
|
|
436
|
-
badge: {
|
|
437
|
-
background: {
|
|
438
|
-
blue: ColorContrast;
|
|
439
|
-
};
|
|
440
|
-
border: {
|
|
441
|
-
blue: ColorContrast;
|
|
442
|
-
};
|
|
443
|
-
text: {
|
|
444
|
-
blue: ColorContrast;
|
|
445
|
-
};
|
|
446
|
-
icon: {
|
|
447
|
-
blue: ColorContrast;
|
|
448
|
-
};
|
|
449
|
-
};
|
|
450
|
-
};
|
|
451
|
-
|
|
452
|
-
type ColorsWithModes = Record<ColorSchemeModes, Colors>;
|
|
453
|
-
|
|
454
|
-
type ThemeTokens = {
|
|
455
|
-
name: 'paymentTheme' | 'bankingTheme' | StringWithAutocomplete; // Can be used to watch over state changes between theme without watching over entire theme object
|
|
456
|
-
border: Border;
|
|
457
|
-
breakpoints: Breakpoints;
|
|
458
|
-
colors: ColorsWithModes;
|
|
459
|
-
motion: Motion;
|
|
460
|
-
spacing: Spacing;
|
|
461
|
-
shadows: Shadows;
|
|
462
|
-
typography: TypographyWithPlatforms;
|
|
463
|
-
};
|
|
464
|
-
|
|
465
|
-
// All the WAI-ARIA 1.1 role attribute values from https://www.w3.org/TR/wai-aria-1.1/#role_definitions
|
|
466
|
-
type AriaRoles =
|
|
467
|
-
| Exclude<AccessibilityRole, 'header' | 'adjustable' | 'image' | 'none' | 'summary'>
|
|
468
|
-
| 'alert'
|
|
469
|
-
| 'alertdialog'
|
|
470
|
-
| 'application'
|
|
471
|
-
| 'article'
|
|
472
|
-
| 'banner'
|
|
473
|
-
| 'button'
|
|
474
|
-
| 'cell'
|
|
475
|
-
| 'checkbox'
|
|
476
|
-
| 'columnheader'
|
|
477
|
-
| 'combobox'
|
|
478
|
-
| 'complementary'
|
|
479
|
-
| 'contentinfo'
|
|
480
|
-
| 'definition'
|
|
481
|
-
| 'dialog'
|
|
482
|
-
| 'directory'
|
|
483
|
-
| 'document'
|
|
484
|
-
| 'feed'
|
|
485
|
-
| 'figure'
|
|
486
|
-
| 'form'
|
|
487
|
-
| 'grid'
|
|
488
|
-
| 'gridcell'
|
|
489
|
-
| 'group'
|
|
490
|
-
| 'heading'
|
|
491
|
-
| 'img'
|
|
492
|
-
| 'link'
|
|
493
|
-
| 'list'
|
|
494
|
-
| 'listbox'
|
|
495
|
-
| 'listitem'
|
|
496
|
-
| 'log'
|
|
497
|
-
| 'main'
|
|
498
|
-
| 'marquee'
|
|
499
|
-
| 'math'
|
|
500
|
-
| 'menu'
|
|
501
|
-
| 'menubar'
|
|
502
|
-
| 'menuitem'
|
|
503
|
-
| 'menuitemcheckbox'
|
|
504
|
-
| 'menuitemradio'
|
|
505
|
-
| 'meter'
|
|
506
|
-
| 'navigation'
|
|
507
|
-
| 'none'
|
|
508
|
-
| 'note'
|
|
509
|
-
| 'option'
|
|
510
|
-
| 'presentation'
|
|
511
|
-
| 'progressbar'
|
|
512
|
-
| 'radio'
|
|
513
|
-
| 'radiogroup'
|
|
514
|
-
| 'region'
|
|
515
|
-
| 'row'
|
|
516
|
-
| 'rowgroup'
|
|
517
|
-
| 'rowheader'
|
|
518
|
-
| 'scrollbar'
|
|
519
|
-
| 'search'
|
|
520
|
-
| 'searchbox'
|
|
521
|
-
| 'separator'
|
|
522
|
-
| 'slider'
|
|
523
|
-
| 'spinbutton'
|
|
524
|
-
| 'status'
|
|
525
|
-
| 'switch'
|
|
526
|
-
| 'tab'
|
|
527
|
-
| 'table'
|
|
528
|
-
| 'tablist'
|
|
529
|
-
| 'tabpanel'
|
|
530
|
-
| 'term'
|
|
531
|
-
| 'textbox'
|
|
532
|
-
| 'timer'
|
|
533
|
-
| 'toolbar'
|
|
534
|
-
| 'tooltip'
|
|
535
|
-
| 'tree'
|
|
536
|
-
| 'treegrid'
|
|
537
|
-
| 'treeitem';
|
|
538
|
-
type AccessibilityProps = AriaAttributes;
|
|
539
|
-
|
|
540
|
-
type AriaAttributes = {
|
|
541
|
-
role: AriaRoles;
|
|
542
|
-
/**
|
|
543
|
-
* Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.
|
|
544
|
-
*/
|
|
545
|
-
activeDescendant?: string;
|
|
546
|
-
/**
|
|
547
|
-
* Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.
|
|
548
|
-
*/
|
|
549
|
-
atomic?: boolean;
|
|
550
|
-
/**
|
|
551
|
-
* Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made.
|
|
552
|
-
*/
|
|
553
|
-
autoComplete?: 'none' | 'inline' | 'list' | 'both';
|
|
554
|
-
/**
|
|
555
|
-
* Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.
|
|
556
|
-
*/
|
|
557
|
-
busy?: boolean;
|
|
558
|
-
/**
|
|
559
|
-
* Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
|
|
560
|
-
* @see aria-pressed @see aria-selected.
|
|
561
|
-
*/
|
|
562
|
-
checked?: boolean | 'mixed';
|
|
563
|
-
/**
|
|
564
|
-
* Defines the total number of columns in a table, grid, or treegrid.
|
|
565
|
-
* @see aria-colindex.
|
|
566
|
-
*/
|
|
567
|
-
colCount?: number;
|
|
568
|
-
/**
|
|
569
|
-
* Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
|
|
570
|
-
* @see aria-colcount @see aria-colspan.
|
|
571
|
-
*/
|
|
572
|
-
colIndex?: number;
|
|
573
|
-
/**
|
|
574
|
-
* Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
|
|
575
|
-
* @see aria-colindex @see aria-rowspan.
|
|
576
|
-
*/
|
|
577
|
-
colSpan?: number;
|
|
578
|
-
/**
|
|
579
|
-
* Identifies the element (or elements) whose contents or presence are controlled by the current element.
|
|
580
|
-
* @see aria-owns.
|
|
581
|
-
*/
|
|
582
|
-
controls?: string;
|
|
583
|
-
/**
|
|
584
|
-
* Indicates the element that represents the current item within a container or set of related elements.
|
|
585
|
-
*/
|
|
586
|
-
current?: boolean | 'page' | 'step' | 'location' | 'date' | 'time';
|
|
587
|
-
/**
|
|
588
|
-
* Identifies the element (or elements) that describes the object.
|
|
589
|
-
* @see aria-labelledby
|
|
590
|
-
*/
|
|
591
|
-
describedBy?: string;
|
|
592
|
-
/**
|
|
593
|
-
* Identifies the element that provides a detailed, extended description for the object.
|
|
594
|
-
* @see aria-describedby.
|
|
595
|
-
*/
|
|
596
|
-
details?: string;
|
|
597
|
-
/**
|
|
598
|
-
* Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
|
|
599
|
-
* @see aria-hidden @see aria-readonly.
|
|
600
|
-
*/
|
|
601
|
-
disabled?: boolean;
|
|
602
|
-
/**
|
|
603
|
-
* Indicates what functions can be performed when a dragged object is released on the drop target.
|
|
604
|
-
* @deprecated in ARIA 1.1
|
|
605
|
-
*/
|
|
606
|
-
dropEffect?: 'none' | 'copy' | 'execute' | 'link' | 'move' | 'popup';
|
|
607
|
-
/**
|
|
608
|
-
* Identifies the element that provides an error message for the object.
|
|
609
|
-
* @see aria-invalid @see aria-describedby.
|
|
610
|
-
*/
|
|
611
|
-
errorMessage?: string;
|
|
612
|
-
/**
|
|
613
|
-
* Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.
|
|
614
|
-
*/
|
|
615
|
-
expanded?: boolean;
|
|
616
|
-
/**
|
|
617
|
-
* Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,
|
|
618
|
-
* allows assistive technology to override the general default of reading in document source order.
|
|
619
|
-
*/
|
|
620
|
-
flowTo?: string;
|
|
621
|
-
/**
|
|
622
|
-
* Indicates an element's "grabbed" state in a drag-and-drop operation.
|
|
623
|
-
* @deprecated in ARIA 1.1
|
|
624
|
-
*/
|
|
625
|
-
grabbed?: boolean;
|
|
626
|
-
/**
|
|
627
|
-
* Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.
|
|
628
|
-
*/
|
|
629
|
-
hasPopup?: boolean | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';
|
|
630
|
-
/**
|
|
631
|
-
* Indicates whether the element is exposed to an accessibility API.
|
|
632
|
-
* @see aria-disabled.
|
|
633
|
-
*/
|
|
634
|
-
hidden?: boolean;
|
|
635
|
-
/**
|
|
636
|
-
* Indicates the entered value does not conform to the format expected by the application.
|
|
637
|
-
* @see aria-errormessage.
|
|
638
|
-
*/
|
|
639
|
-
invalid?: boolean | 'grammar' | 'spelling';
|
|
640
|
-
/**
|
|
641
|
-
* Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.
|
|
642
|
-
*/
|
|
643
|
-
keyShortcuts?: string;
|
|
644
|
-
/**
|
|
645
|
-
* Defines a string value that labels the current element.
|
|
646
|
-
* @see aria-labelledby.
|
|
647
|
-
*/
|
|
648
|
-
label?: string;
|
|
649
|
-
/**
|
|
650
|
-
* Identifies the element (or elements) that labels the current element.
|
|
651
|
-
* @see aria-describedby.
|
|
652
|
-
*/
|
|
653
|
-
labelledBy?: string;
|
|
654
|
-
/**
|
|
655
|
-
* Defines the hierarchical level of an element within a structure.
|
|
656
|
-
*/
|
|
657
|
-
level?: number;
|
|
658
|
-
/**
|
|
659
|
-
* Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.
|
|
660
|
-
*/
|
|
661
|
-
liveRegion?: 'off' | 'assertive' | 'polite';
|
|
662
|
-
/**
|
|
663
|
-
* Indicates whether an element is modal when displayed.
|
|
664
|
-
*/
|
|
665
|
-
modal?: boolean;
|
|
666
|
-
/**
|
|
667
|
-
* Indicates whether a text box accepts multiple lines of input or only a single line.
|
|
668
|
-
*/
|
|
669
|
-
multiline?: boolean;
|
|
670
|
-
/**
|
|
671
|
-
* Indicates that the user may select more than one item from the current selectable descendants.
|
|
672
|
-
*/
|
|
673
|
-
multiSelectable?: boolean;
|
|
674
|
-
/**
|
|
675
|
-
* Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.
|
|
676
|
-
*/
|
|
677
|
-
orientation?: 'horizontal' | 'vertical';
|
|
678
|
-
/**
|
|
679
|
-
* Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship
|
|
680
|
-
* between DOM elements where the DOM hierarchy cannot be used to represent the relationship.
|
|
681
|
-
* @see aria-controls.
|
|
682
|
-
*/
|
|
683
|
-
owns?: string;
|
|
684
|
-
/**
|
|
685
|
-
* Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.
|
|
686
|
-
* A hint could be a sample value or a brief description of the expected format.
|
|
687
|
-
*/
|
|
688
|
-
placeholder?: string;
|
|
689
|
-
/**
|
|
690
|
-
* Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
|
|
691
|
-
* @see aria-setsize.
|
|
692
|
-
*/
|
|
693
|
-
posInSet?: number;
|
|
694
|
-
/**
|
|
695
|
-
* Indicates the current "pressed" state of toggle buttons.
|
|
696
|
-
* @see aria-checked @see aria-selected.
|
|
697
|
-
*/
|
|
698
|
-
pressed?: boolean | 'mixed';
|
|
699
|
-
/**
|
|
700
|
-
* Indicates that the element is not editable, but is otherwise operable.
|
|
701
|
-
* @see aria-disabled.
|
|
702
|
-
*/
|
|
703
|
-
readOnly?: boolean;
|
|
704
|
-
/**
|
|
705
|
-
* Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
|
|
706
|
-
* @see aria-atomic.
|
|
707
|
-
*/
|
|
708
|
-
relevant?:
|
|
709
|
-
| 'additions'
|
|
710
|
-
| 'additions removals'
|
|
711
|
-
| 'additions text'
|
|
712
|
-
| 'all'
|
|
713
|
-
| 'removals'
|
|
714
|
-
| 'removals additions'
|
|
715
|
-
| 'removals text'
|
|
716
|
-
| 'text'
|
|
717
|
-
| 'text additions'
|
|
718
|
-
| 'text removals';
|
|
719
|
-
/**
|
|
720
|
-
* Indicates that user input is required on the element before a form may be submitted.
|
|
721
|
-
*/
|
|
722
|
-
required?: boolean;
|
|
723
|
-
/**
|
|
724
|
-
* Defines a human-readable, author-localized description for the role of an element.
|
|
725
|
-
*/
|
|
726
|
-
roleDescription?: string;
|
|
727
|
-
/**
|
|
728
|
-
* Defines the total number of rows in a table, grid, or treegrid.
|
|
729
|
-
* @see aria-rowindex.
|
|
730
|
-
*/
|
|
731
|
-
rowCount?: number;
|
|
732
|
-
/**
|
|
733
|
-
* Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
|
|
734
|
-
* @see aria-rowcount @see aria-rowspan.
|
|
735
|
-
*/
|
|
736
|
-
rowIndex?: number;
|
|
737
|
-
/**
|
|
738
|
-
* Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
|
|
739
|
-
* @see aria-rowindex @see aria-colspan.
|
|
740
|
-
*/
|
|
741
|
-
rowSpan?: number;
|
|
742
|
-
/**
|
|
743
|
-
* Indicates the current "selected" state of various widgets.
|
|
744
|
-
* @see aria-checked @see aria-pressed.
|
|
745
|
-
*/
|
|
746
|
-
selected?: boolean;
|
|
747
|
-
/**
|
|
748
|
-
* Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
|
|
749
|
-
* @see aria-posinset.
|
|
750
|
-
*/
|
|
751
|
-
setSize?: number;
|
|
752
|
-
/**
|
|
753
|
-
* Indicates if items in a table or grid are sorted in ascending or descending order.
|
|
754
|
-
*/
|
|
755
|
-
sort?: 'none' | 'ascending' | 'descending' | 'other';
|
|
756
|
-
/**
|
|
757
|
-
* Defines the maximum allowed value for a range widget.
|
|
758
|
-
*/
|
|
759
|
-
valueMax?: number;
|
|
760
|
-
/**
|
|
761
|
-
* Defines the minimum allowed value for a range widget.
|
|
762
|
-
*/
|
|
763
|
-
valueMin?: number;
|
|
764
|
-
/**
|
|
765
|
-
* Defines the current value for a range widget.
|
|
766
|
-
* @see aria-valuetext.
|
|
767
|
-
*/
|
|
768
|
-
valueNow?: number;
|
|
769
|
-
/**
|
|
770
|
-
* Defines the human readable text alternative of aria-valuenow for a range widget.
|
|
771
|
-
*/
|
|
772
|
-
valueText?: string;
|
|
773
|
-
};
|
|
774
|
-
|
|
775
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
776
|
-
|
|
777
|
-
/**
|
|
778
|
-
* Brands a type making them act as nominal
|
|
779
|
-
* @see https://medium.com/@KevinBGreene/surviving-the-typescript-ecosystem-branding-and-type-tagging-6cf6e516523d
|
|
780
|
-
*/
|
|
781
|
-
type Brand<Type, Name extends string> = Type & { __brand__?: Name };
|
|
782
|
-
|
|
783
|
-
type NativeOrWebBrand = Brand<any, 'native' | 'web'>;
|
|
784
|
-
|
|
785
|
-
/* eslint-disable @typescript-eslint/no-namespace */
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
declare namespace Platform {
|
|
789
|
-
export type Name = 'native';
|
|
790
|
-
/**
|
|
791
|
-
* Right now, the module resolution is set to resolve `.native` files,
|
|
792
|
-
*
|
|
793
|
-
* Thus Platform.Select<> type will return the `native` type
|
|
794
|
-
*/
|
|
795
|
-
export type Select<Options extends { web: unknown; native: unknown }> = Brand<
|
|
796
|
-
Options[Name],
|
|
797
|
-
'platform-native'
|
|
798
|
-
>;
|
|
799
|
-
|
|
800
|
-
export type CastNative<T extends NativeOrWebBrand | undefined> = Extract<
|
|
801
|
-
T,
|
|
802
|
-
{ __brand__?: 'platform-native' | 'platform-all' }
|
|
803
|
-
>;
|
|
804
|
-
|
|
805
|
-
export type CastWeb<T extends NativeOrWebBrand | undefined> = Extract<
|
|
806
|
-
T,
|
|
807
|
-
{ __brand__?: 'platform-web' | 'platform-all' }
|
|
808
|
-
>;
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
type Duration = {
|
|
812
|
-
/** `70` milliseconds */
|
|
813
|
-
'2xquick': 70;
|
|
814
|
-
/** `150` milliseconds */
|
|
815
|
-
xquick: 150;
|
|
816
|
-
/** `200` milliseconds */
|
|
817
|
-
quick: 200;
|
|
818
|
-
/** `250` milliseconds */
|
|
819
|
-
moderate: 250;
|
|
820
|
-
/** `300` milliseconds */
|
|
821
|
-
xmoderate: 300;
|
|
822
|
-
/** `400` milliseconds */
|
|
823
|
-
gentle: 400;
|
|
824
|
-
/** `600` milliseconds */
|
|
825
|
-
xgentle: 600;
|
|
826
|
-
/** `900` milliseconds */
|
|
827
|
-
'2xgentle': 900;
|
|
828
|
-
};
|
|
829
|
-
|
|
830
|
-
type Delay = {
|
|
831
|
-
/** `70` milliseconds */
|
|
832
|
-
'2xshort': 70;
|
|
833
|
-
/** `120` milliseconds */
|
|
834
|
-
xshort: 120;
|
|
835
|
-
/** `180` milliseconds */
|
|
836
|
-
short: 180;
|
|
837
|
-
/** `3000` milliseconds */
|
|
838
|
-
long: 3000;
|
|
839
|
-
/** `5000` milliseconds */
|
|
840
|
-
xlong: 5000;
|
|
841
|
-
};
|
|
842
|
-
|
|
843
|
-
type EasingFunctionFactory = { factory: () => (value: number) => number }; // similar to EasingFunctionFactory of `react-native-reanimated`
|
|
844
|
-
type EasingType<Value extends string> = Platform.Select<{
|
|
845
|
-
web: Value;
|
|
846
|
-
native: EasingFunctionFactory;
|
|
847
|
-
}>;
|
|
848
|
-
|
|
849
|
-
type Easing = {
|
|
850
|
-
/** Easings for all standard animations*/
|
|
851
|
-
standard: {
|
|
852
|
-
/** `cubic-bezier(0.5, 0, 0.3, 1.5)`
|
|
853
|
-
*
|
|
854
|
-
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `EasingFunctionFactory` for native */
|
|
855
|
-
attentive: EasingType<'cubic-bezier(0.5, 0, 0.3, 1.5)'>;
|
|
856
|
-
/** `cubic-bezier(0.3, 0, 0.2, 1)`
|
|
857
|
-
*
|
|
858
|
-
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `EasingFunctionFactory` for native */
|
|
859
|
-
effective: EasingType<'cubic-bezier(0.3, 0, 0.2, 1)'>;
|
|
860
|
-
/** `cubic-bezier(0.5, 0, 0, 1)`
|
|
861
|
-
*
|
|
862
|
-
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `EasingFunctionFactory` for native */
|
|
863
|
-
revealing: EasingType<'cubic-bezier(0.5, 0, 0, 1)'>;
|
|
864
|
-
/** `cubic-bezier(1, 0.5, 0, 0.5)`
|
|
865
|
-
*
|
|
866
|
-
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `EasingFunctionFactory` for native */
|
|
867
|
-
wary: EasingType<'cubic-bezier(1, 0.5, 0, 0.5)'>;
|
|
868
|
-
};
|
|
869
|
-
/** Easings for all entrance animations*/
|
|
870
|
-
entrance: {
|
|
871
|
-
/** `cubic-bezier(0.5, 0, 0.3, 1.5)`
|
|
872
|
-
*
|
|
873
|
-
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `EasingFunctionFactory` for native */
|
|
874
|
-
attentive: EasingType<'cubic-bezier(0.5, 0, 0.3, 1.5)'>;
|
|
875
|
-
/** `cubic-bezier(0, 0, 0.2, 1)`
|
|
876
|
-
*
|
|
877
|
-
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `EasingFunctionFactory` for native */
|
|
878
|
-
effective: EasingType<'cubic-bezier(0, 0, 0.2, 1)'>;
|
|
879
|
-
/** `cubic-bezier(0, 0, 0, 1)`
|
|
880
|
-
*
|
|
881
|
-
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `EasingFunctionFactory` for native */
|
|
882
|
-
revealing: EasingType<'cubic-bezier(0, 0, 0, 1)'>;
|
|
883
|
-
};
|
|
884
|
-
/** Easings for all exit animations*/
|
|
885
|
-
exit: {
|
|
886
|
-
/** `cubic-bezier(0.7, 0, 0.5, 1)`
|
|
887
|
-
*
|
|
888
|
-
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `EasingFunctionFactory` for native */
|
|
889
|
-
attentive: EasingType<'cubic-bezier(0.7, 0, 0.5, 1)'>;
|
|
890
|
-
/** `cubic-bezier(0.17, 0, 1, 1)`
|
|
891
|
-
*
|
|
892
|
-
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `EasingFunctionFactory` for native */
|
|
893
|
-
effective: EasingType<'cubic-bezier(0.17, 0, 1, 1)'>;
|
|
894
|
-
/** `cubic-bezier(0.5, 0, 1, 1)`
|
|
895
|
-
*
|
|
896
|
-
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `EasingFunctionFactory` for native */
|
|
897
|
-
revealing: EasingType<'cubic-bezier(0.5, 0, 1, 1)'>;
|
|
898
|
-
};
|
|
899
|
-
};
|
|
900
|
-
|
|
901
|
-
type Motion = Readonly<{
|
|
902
|
-
delay: Delay;
|
|
903
|
-
duration: Duration;
|
|
904
|
-
easing: Easing;
|
|
905
|
-
}>;
|
|
906
|
-
|
|
907
|
-
/**
|
|
908
|
-
* @template TokenType token type generic
|
|
909
|
-
* @description Tokenises objects to dot notation strings, eg: `surface.text.normal.lowContrast`
|
|
910
|
-
*/
|
|
911
|
-
type DotNotationColorStringToken<TokenType> = {
|
|
912
|
-
[K in keyof TokenType]: `${Extract<K, number | string>}.${TokenType[K] extends Record<
|
|
913
|
-
string,
|
|
914
|
-
string
|
|
915
|
-
>
|
|
916
|
-
? Extract<keyof TokenType[K], number | string>
|
|
917
|
-
: DotNotationColorStringToken<TokenType[K]>}`;
|
|
918
|
-
}[keyof TokenType];
|
|
919
|
-
|
|
920
|
-
type DotNotationSpacingStringToken = `spacing.${keyof Spacing}`;
|
|
921
|
-
|
|
922
|
-
/**
|
|
923
|
-
* Use this when you want children to be string.
|
|
924
|
-
*
|
|
925
|
-
* This covers scenarios like
|
|
926
|
-
* ```jsx
|
|
927
|
-
* <Title>Hi</Title>
|
|
928
|
-
* <Title>{dynamicVariable} something</Title>
|
|
929
|
-
* ```
|
|
930
|
-
*
|
|
931
|
-
*
|
|
932
|
-
* ### Usage
|
|
933
|
-
*
|
|
934
|
-
* ```ts
|
|
935
|
-
* import type { StringChildrenType } from '~helpers/types';
|
|
936
|
-
*
|
|
937
|
-
* type MyProps = {
|
|
938
|
-
* children: StringChildrenType;
|
|
939
|
-
* }
|
|
940
|
-
* ```
|
|
941
|
-
*/
|
|
942
|
-
type StringChildrenType = React__default.ReactText | React__default.ReactText[];
|
|
943
|
-
|
|
944
|
-
/**
|
|
945
|
-
*
|
|
946
|
-
* When combined with union, this type utility will give you autocomplete of union while still supporting any string value as input
|
|
947
|
-
*
|
|
948
|
-
* ### Usage
|
|
949
|
-
*
|
|
950
|
-
* ```ts
|
|
951
|
-
* type ThemeName = 'paymentTheme' | 'bankingTheme' | StringWithAutocomplete;
|
|
952
|
-
* ```
|
|
953
|
-
*
|
|
954
|
-
* This will show paymentTheme and bankingTheme in autocomplete but also allow any other string as value.
|
|
955
|
-
*
|
|
956
|
-
* More details - https://github.com/razorpay/blade/pull/1031/commits/86b6ee0facf45e7556739efcbfa5396b11b1b3c9#r1121298293
|
|
957
|
-
* Related TS Issue - https://github.com/microsoft/TypeScript/issues/29729
|
|
958
|
-
*
|
|
959
|
-
*/
|
|
960
|
-
type StringWithAutocomplete = string & Record<never, never>;
|
|
961
|
-
|
|
962
|
-
type TestID = {
|
|
963
|
-
testID?: string;
|
|
964
|
-
};
|
|
965
|
-
|
|
966
|
-
/**
|
|
967
|
-
* Similar to `Pick` except this returns `never` when value doesn't exist (native `Pick` returns `unknown`).
|
|
968
|
-
*
|
|
969
|
-
* You might have to ts-ignore the non-existing type error while using this. This is done so that you can get jsdoc from actual type.
|
|
970
|
-
*
|
|
971
|
-
* E.g. This will pick from ViewStyle prop if value exists else returns undefined.
|
|
972
|
-
*
|
|
973
|
-
* ```ts
|
|
974
|
-
* // @ts-expect-error: T passed here may not neccessarily exist. We return `never` type when it doesn't
|
|
975
|
-
* native: PickIfExist<ViewStyle, T>;
|
|
976
|
-
* ```
|
|
977
|
-
*/
|
|
978
|
-
type PickIfExist$1<T, K extends keyof T> = {
|
|
979
|
-
[P in K]: P extends keyof T ? T[P] : never;
|
|
980
|
-
};
|
|
981
|
-
|
|
982
|
-
/**
|
|
983
|
-
* Picks the types based on the platform (web / native).
|
|
984
|
-
*
|
|
985
|
-
* E.g.
|
|
986
|
-
* ```ts
|
|
987
|
-
* type CSSObject = PickCSSByPlatform<'display'>
|
|
988
|
-
* // On Web --> This will be all possible web display properties like `block`, `flex`, `inline`, and more.
|
|
989
|
-
* // On Native --> This will be just `flex` and `none`
|
|
990
|
-
* ```
|
|
991
|
-
*/
|
|
992
|
-
type PickCSSByPlatform$1<T extends keyof React__default.CSSProperties | keyof ViewStyle> = Platform.Select<{
|
|
993
|
-
web: PickIfExist$1<CSSObject, T>;
|
|
994
|
-
// @ts-expect-error: T passed here may not neccessarily exist. We return `never` type when it doesn't
|
|
995
|
-
native: PickIfExist$1<ViewStyle, T>;
|
|
996
|
-
}>;
|
|
997
|
-
|
|
998
|
-
declare type ActionListContextProp = Pick<ActionListProps, 'surfaceLevel'>;
|
|
999
|
-
declare const useActionListContext: () => ActionListContextProp;
|
|
1000
|
-
declare type ActionListProps = {
|
|
1001
|
-
children: React__default.ReactNode[];
|
|
1002
|
-
/**
|
|
1003
|
-
* Decides the backgroundColor of ActionList
|
|
1004
|
-
*/
|
|
1005
|
-
surfaceLevel?: 2 | 3;
|
|
1006
|
-
} & TestID;
|
|
1007
|
-
declare const ActionList: React__default.MemoExoticComponent<({ children, surfaceLevel, testID }: ActionListProps) => JSX.Element>;
|
|
1008
|
-
|
|
1009
|
-
type Theme$1 = {
|
|
1010
|
-
name: ThemeTokens['name'];
|
|
1011
|
-
border: Border;
|
|
1012
|
-
breakpoints: Breakpoints;
|
|
1013
|
-
colors: Colors;
|
|
1014
|
-
spacing: Spacing;
|
|
1015
|
-
motion: Motion;
|
|
1016
|
-
shadows: Omit<Shadows, 'color'> & {
|
|
1017
|
-
color: {
|
|
1018
|
-
level: Record<ShadowLevels, string>;
|
|
1019
|
-
};
|
|
1020
|
-
};
|
|
1021
|
-
typography: Typography;
|
|
1022
|
-
};
|
|
1023
|
-
|
|
1024
|
-
/**
|
|
1025
|
-
* Returns the value or the responsive object with that value
|
|
1026
|
-
*
|
|
1027
|
-
* ## Usage
|
|
1028
|
-
*
|
|
1029
|
-
* Example if you pass string argument, return type will be string or responsive object with string value
|
|
1030
|
-
*
|
|
1031
|
-
* `MakeValueResponsive<string>`
|
|
1032
|
-
* ```ts
|
|
1033
|
-
* string |
|
|
1034
|
-
* {
|
|
1035
|
-
* base?: string;
|
|
1036
|
-
* xs?: string;
|
|
1037
|
-
* s?: string;
|
|
1038
|
-
* // ... other breakpoints
|
|
1039
|
-
* }
|
|
1040
|
-
* ```
|
|
1041
|
-
*
|
|
1042
|
-
*/
|
|
1043
|
-
// When type is `never`, we just want to return `never` rather than { base: never, ...etc } since that prop is intended to be never used
|
|
1044
|
-
// Explaination of [T] extends [never] -> https://stackoverflow.com/questions/65492464/typescript-never-type-condition
|
|
1045
|
-
type MakeValueResponsive$1<T> = [T] extends [never]
|
|
1046
|
-
? never
|
|
1047
|
-
:
|
|
1048
|
-
| T
|
|
1049
|
-
| {
|
|
1050
|
-
// Using this instead of Record to maintain the jsdoc from breakpoints.ts
|
|
1051
|
-
[P in keyof Breakpoints]?: T;
|
|
1052
|
-
};
|
|
1053
|
-
|
|
1054
|
-
/**
|
|
1055
|
-
* Turns all the values in object into responsive object.
|
|
1056
|
-
*
|
|
1057
|
-
* ```ts
|
|
1058
|
-
* MakeObjectResponsive<{ hello: string}>
|
|
1059
|
-
*
|
|
1060
|
-
* // Outputs:
|
|
1061
|
-
* {
|
|
1062
|
-
* hello: string | {
|
|
1063
|
-
* base?: string;
|
|
1064
|
-
* xs?: string;
|
|
1065
|
-
* s?: string;
|
|
1066
|
-
* // ... other breakpoints
|
|
1067
|
-
* }
|
|
1068
|
-
* }
|
|
1069
|
-
* ```
|
|
1070
|
-
*/
|
|
1071
|
-
type MakeObjectResponsive$1<T> = { [P in keyof T]: MakeValueResponsive$1<T[P]> };
|
|
1072
|
-
|
|
1073
|
-
type ArrayOfMaxLength4$1<T> = readonly [T?, T?, T?, T?];
|
|
1074
|
-
type SpaceUnits$1 = Platform.Select<{
|
|
1075
|
-
web: 'px' | '%' | 'fr' | 'rem' | 'em' | 'vh' | 'vw';
|
|
1076
|
-
native: 'px' | '%';
|
|
1077
|
-
}>;
|
|
1078
|
-
type SpacingValueType$1 = DotNotationSpacingStringToken | `${string}${SpaceUnits$1}` | 'auto';
|
|
1079
|
-
|
|
1080
|
-
type MarginProps$1 = MakeObjectResponsive$1<{
|
|
1081
|
-
/**
|
|
1082
|
-
* ### Margin Shorthand
|
|
1083
|
-
*
|
|
1084
|
-
* #### Usage
|
|
1085
|
-
*
|
|
1086
|
-
* ```jsx
|
|
1087
|
-
* margin="spacing.3"
|
|
1088
|
-
* margin="20px"
|
|
1089
|
-
* margin={["spacing.3", "spacing.1", "spacing.0", "10px"]}
|
|
1090
|
-
* ```
|
|
1091
|
-
*
|
|
1092
|
-
* ---
|
|
1093
|
-
* #### Spacing to Pixel values
|
|
1094
|
-
*
|
|
1095
|
-
* - `spacing.0` - 0px
|
|
1096
|
-
* - `spacing.1` - 2px
|
|
1097
|
-
* - `spacing.2` - 4px
|
|
1098
|
-
* - `spacing.3` - 8px
|
|
1099
|
-
* - `spacing.4` - 12px
|
|
1100
|
-
* - `spacing.5` - 16px
|
|
1101
|
-
* - `spacing.6` - 20px
|
|
1102
|
-
* - `spacing.7` - 24px
|
|
1103
|
-
* - `spacing.8` - 32px
|
|
1104
|
-
* - `spacing.9` - 40px
|
|
1105
|
-
* - `spacing.10` - 48px
|
|
1106
|
-
* - `spacing.11` - 56px
|
|
1107
|
-
*
|
|
1108
|
-
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
1109
|
-
*
|
|
1110
|
-
*/
|
|
1111
|
-
margin: SpacingValueType$1 | ArrayOfMaxLength4$1<SpacingValueType$1>;
|
|
1112
|
-
/**
|
|
1113
|
-
* ### Margin Horizontal
|
|
1114
|
-
*
|
|
1115
|
-
* #### Usage
|
|
1116
|
-
*
|
|
1117
|
-
* ```jsx
|
|
1118
|
-
* marginX="spacing.3"
|
|
1119
|
-
* marginX="20px"
|
|
1120
|
-
* ```
|
|
1121
|
-
*
|
|
1122
|
-
* ---
|
|
1123
|
-
* #### Spacing to Pixel values
|
|
1124
|
-
*
|
|
1125
|
-
* - `spacing.0` - 0px
|
|
1126
|
-
* - `spacing.1` - 2px
|
|
1127
|
-
* - `spacing.2` - 4px
|
|
1128
|
-
* - `spacing.3` - 8px
|
|
1129
|
-
* - `spacing.4` - 12px
|
|
1130
|
-
* - `spacing.5` - 16px
|
|
1131
|
-
* - `spacing.6` - 20px
|
|
1132
|
-
* - `spacing.7` - 24px
|
|
1133
|
-
* - `spacing.8` - 32px
|
|
1134
|
-
* - `spacing.9` - 40px
|
|
1135
|
-
* - `spacing.10` - 48px
|
|
1136
|
-
* - `spacing.11` - 56px
|
|
1137
|
-
*
|
|
1138
|
-
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
1139
|
-
*
|
|
1140
|
-
*/
|
|
1141
|
-
marginX: SpacingValueType$1;
|
|
1142
|
-
/**
|
|
1143
|
-
* ### Margin Vertical
|
|
1144
|
-
*
|
|
1145
|
-
* #### Usage
|
|
1146
|
-
*
|
|
1147
|
-
* ```jsx
|
|
1148
|
-
* marginY="spacing.3"
|
|
1149
|
-
* marginY="20px"
|
|
1150
|
-
* ```
|
|
1151
|
-
*
|
|
1152
|
-
* ---
|
|
1153
|
-
* #### Spacing to Pixel values
|
|
1154
|
-
*
|
|
1155
|
-
* - `spacing.0` - 0px
|
|
1156
|
-
* - `spacing.1` - 2px
|
|
1157
|
-
* - `spacing.2` - 4px
|
|
1158
|
-
* - `spacing.3` - 8px
|
|
1159
|
-
* - `spacing.4` - 12px
|
|
1160
|
-
* - `spacing.5` - 16px
|
|
1161
|
-
* - `spacing.6` - 20px
|
|
1162
|
-
* - `spacing.7` - 24px
|
|
1163
|
-
* - `spacing.8` - 32px
|
|
1164
|
-
* - `spacing.9` - 40px
|
|
1165
|
-
* - `spacing.10` - 48px
|
|
1166
|
-
* - `spacing.11` - 56px
|
|
1167
|
-
*
|
|
1168
|
-
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
1169
|
-
*
|
|
1170
|
-
*/
|
|
1171
|
-
marginY: SpacingValueType$1;
|
|
1172
|
-
/**
|
|
1173
|
-
* ### Margin Top
|
|
1174
|
-
*
|
|
1175
|
-
* #### Usage
|
|
1176
|
-
*
|
|
1177
|
-
* ```jsx
|
|
1178
|
-
* marginTop="spacing.3"
|
|
1179
|
-
* marginTop="20px"
|
|
1180
|
-
* ```
|
|
1181
|
-
*
|
|
1182
|
-
* ---
|
|
1183
|
-
* #### Spacing to Pixel values
|
|
1184
|
-
*
|
|
1185
|
-
* - `spacing.0` - 0px
|
|
1186
|
-
* - `spacing.1` - 2px
|
|
1187
|
-
* - `spacing.2` - 4px
|
|
1188
|
-
* - `spacing.3` - 8px
|
|
1189
|
-
* - `spacing.4` - 12px
|
|
1190
|
-
* - `spacing.5` - 16px
|
|
1191
|
-
* - `spacing.6` - 20px
|
|
1192
|
-
* - `spacing.7` - 24px
|
|
1193
|
-
* - `spacing.8` - 32px
|
|
1194
|
-
* - `spacing.9` - 40px
|
|
1195
|
-
* - `spacing.10` - 48px
|
|
1196
|
-
* - `spacing.11` - 56px
|
|
1197
|
-
*
|
|
1198
|
-
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
1199
|
-
*/
|
|
1200
|
-
marginTop: SpacingValueType$1;
|
|
1201
|
-
/**
|
|
1202
|
-
* ### Margin Right
|
|
1203
|
-
*
|
|
1204
|
-
* #### Usage
|
|
1205
|
-
*
|
|
1206
|
-
* ```jsx
|
|
1207
|
-
* marginRight="spacing.3"
|
|
1208
|
-
* marginRight="20px"
|
|
1209
|
-
* ```
|
|
1210
|
-
*
|
|
1211
|
-
* ---
|
|
1212
|
-
* #### Spacing to Pixel values
|
|
1213
|
-
*
|
|
1214
|
-
* - `spacing.0` - 0px
|
|
1215
|
-
* - `spacing.1` - 2px
|
|
1216
|
-
* - `spacing.2` - 4px
|
|
1217
|
-
* - `spacing.3` - 8px
|
|
1218
|
-
* - `spacing.4` - 12px
|
|
1219
|
-
* - `spacing.5` - 16px
|
|
1220
|
-
* - `spacing.6` - 20px
|
|
1221
|
-
* - `spacing.7` - 24px
|
|
1222
|
-
* - `spacing.8` - 32px
|
|
1223
|
-
* - `spacing.9` - 40px
|
|
1224
|
-
* - `spacing.10` - 48px
|
|
1225
|
-
* - `spacing.11` - 56px
|
|
1226
|
-
*
|
|
1227
|
-
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
1228
|
-
*/
|
|
1229
|
-
marginRight: SpacingValueType$1;
|
|
1230
|
-
/**
|
|
1231
|
-
* ### Margin Bottom
|
|
1232
|
-
*
|
|
1233
|
-
* #### Usage
|
|
1234
|
-
*
|
|
1235
|
-
* ```jsx
|
|
1236
|
-
* marginBottom="spacing.3"
|
|
1237
|
-
* marginBottom="20px"
|
|
1238
|
-
* ```
|
|
1239
|
-
*
|
|
1240
|
-
* ---
|
|
1241
|
-
* #### Spacing to Pixel values
|
|
1242
|
-
*
|
|
1243
|
-
* - `spacing.0` - 0px
|
|
1244
|
-
* - `spacing.1` - 2px
|
|
1245
|
-
* - `spacing.2` - 4px
|
|
1246
|
-
* - `spacing.3` - 8px
|
|
1247
|
-
* - `spacing.4` - 12px
|
|
1248
|
-
* - `spacing.5` - 16px
|
|
1249
|
-
* - `spacing.6` - 20px
|
|
1250
|
-
* - `spacing.7` - 24px
|
|
1251
|
-
* - `spacing.8` - 32px
|
|
1252
|
-
* - `spacing.9` - 40px
|
|
1253
|
-
* - `spacing.10` - 48px
|
|
1254
|
-
* - `spacing.11` - 56px
|
|
1255
|
-
*
|
|
1256
|
-
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
1257
|
-
*/
|
|
1258
|
-
marginBottom: SpacingValueType$1;
|
|
1259
|
-
/**
|
|
1260
|
-
* ### Margin Left
|
|
1261
|
-
*
|
|
1262
|
-
* #### Usage
|
|
1263
|
-
*
|
|
1264
|
-
* ```jsx
|
|
1265
|
-
* marginLeft="spacing.3"
|
|
1266
|
-
* marginLeft="20px"
|
|
1267
|
-
* ```
|
|
1268
|
-
*
|
|
1269
|
-
* ---
|
|
1270
|
-
* #### Spacing to Pixel values
|
|
1271
|
-
*
|
|
1272
|
-
* - `spacing.0` - 0px
|
|
1273
|
-
* - `spacing.1` - 2px
|
|
1274
|
-
* - `spacing.2` - 4px
|
|
1275
|
-
* - `spacing.3` - 8px
|
|
1276
|
-
* - `spacing.4` - 12px
|
|
1277
|
-
* - `spacing.5` - 16px
|
|
1278
|
-
* - `spacing.6` - 20px
|
|
1279
|
-
* - `spacing.7` - 24px
|
|
1280
|
-
* - `spacing.8` - 32px
|
|
1281
|
-
* - `spacing.9` - 40px
|
|
1282
|
-
* - `spacing.10` - 48px
|
|
1283
|
-
* - `spacing.11` - 56px
|
|
1284
|
-
*
|
|
1285
|
-
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
1286
|
-
*/
|
|
1287
|
-
marginLeft: SpacingValueType$1;
|
|
1288
|
-
}>;
|
|
1289
|
-
|
|
1290
|
-
type FlexboxProps$1 = MakeObjectResponsive$1<
|
|
1291
|
-
{
|
|
1292
|
-
/**
|
|
1293
|
-
* This uses the native 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=gap
|
|
1297
|
-
*/
|
|
1298
|
-
gap: SpacingValueType$1;
|
|
1299
|
-
/**
|
|
1300
|
-
* This uses the native row-gap property which might not work on older browsers.
|
|
1301
|
-
* If you want to support older browsers, you might want to use `margin` instead.
|
|
1302
|
-
*
|
|
1303
|
-
* @see https://caniuse.com/?search=row-gap
|
|
1304
|
-
*/
|
|
1305
|
-
rowGap: SpacingValueType$1;
|
|
1306
|
-
/**
|
|
1307
|
-
* This uses the native column-gap property which might not work on older browsers.
|
|
1308
|
-
* If you want to support older browsers, you might want to use `margin` instead.
|
|
1309
|
-
*
|
|
1310
|
-
* @see https://caniuse.com/?search=column-gap
|
|
1311
|
-
*/
|
|
1312
|
-
columnGap: SpacingValueType$1;
|
|
1313
|
-
/**
|
|
1314
|
-
* The **`flex`** CSS shorthand property sets how a flex _item_ will grow or shrink to fit the space available in its flex container.
|
|
1315
|
-
*
|
|
1316
|
-
* @see https://developer.mozilla.org/docs/Web/CSS/flex
|
|
1317
|
-
*/
|
|
1318
|
-
flex: string | number;
|
|
1319
|
-
} & PickCSSByPlatform$1<
|
|
1320
|
-
| 'flexWrap'
|
|
1321
|
-
| 'flexDirection'
|
|
1322
|
-
| 'flexGrow'
|
|
1323
|
-
| 'flexShrink'
|
|
1324
|
-
| 'flexBasis'
|
|
1325
|
-
| 'alignItems'
|
|
1326
|
-
| 'alignContent'
|
|
1327
|
-
| 'alignSelf'
|
|
1328
|
-
| 'justifyItems'
|
|
1329
|
-
| 'justifyContent'
|
|
1330
|
-
| 'justifySelf'
|
|
1331
|
-
| 'placeSelf'
|
|
1332
|
-
| 'order'
|
|
1333
|
-
>
|
|
1334
|
-
>;
|
|
1335
|
-
|
|
1336
|
-
type PositionProps$1 = MakeObjectResponsive$1<
|
|
1337
|
-
{
|
|
1338
|
-
top: SpacingValueType$1;
|
|
1339
|
-
right: SpacingValueType$1;
|
|
1340
|
-
bottom: SpacingValueType$1;
|
|
1341
|
-
left: SpacingValueType$1;
|
|
1342
|
-
} & PickCSSByPlatform$1<'position' | 'zIndex'>
|
|
1343
|
-
>;
|
|
1344
|
-
|
|
1345
|
-
type GridProps$1 = MakeObjectResponsive$1<
|
|
1346
|
-
PickCSSByPlatform$1<
|
|
1347
|
-
| 'grid'
|
|
1348
|
-
| 'gridColumn'
|
|
1349
|
-
| 'gridRow'
|
|
1350
|
-
| 'gridRowStart'
|
|
1351
|
-
| 'gridRowEnd'
|
|
1352
|
-
| 'gridColumnStart'
|
|
1353
|
-
| 'gridColumnEnd'
|
|
1354
|
-
| 'gridArea'
|
|
1355
|
-
| 'gridAutoFlow'
|
|
1356
|
-
| 'gridAutoRows'
|
|
1357
|
-
| 'gridAutoColumns'
|
|
1358
|
-
| 'gridTemplate'
|
|
1359
|
-
| 'gridTemplateAreas'
|
|
1360
|
-
| 'gridTemplateColumns'
|
|
1361
|
-
| 'gridTemplateRows'
|
|
1362
|
-
>
|
|
1363
|
-
>;
|
|
1364
|
-
|
|
1365
|
-
type StyledPropsBlade = Partial<
|
|
1366
|
-
Omit<
|
|
1367
|
-
MarginProps$1 &
|
|
1368
|
-
Pick<FlexboxProps$1, 'alignSelf' | 'justifySelf' | 'placeSelf' | 'order'> &
|
|
1369
|
-
PositionProps$1 &
|
|
1370
|
-
Pick<
|
|
1371
|
-
GridProps$1,
|
|
1372
|
-
| 'gridColumn'
|
|
1373
|
-
| 'gridRow'
|
|
1374
|
-
| 'gridRowStart'
|
|
1375
|
-
| 'gridRowEnd'
|
|
1376
|
-
| 'gridColumnStart'
|
|
1377
|
-
| 'gridColumnEnd'
|
|
1378
|
-
| 'gridArea'
|
|
1379
|
-
>,
|
|
1380
|
-
'__brand__'
|
|
1381
|
-
>
|
|
1382
|
-
>;
|
|
1383
|
-
|
|
1384
|
-
type FeedbackIconColors$1 = `feedback.icon.${DotNotationColorStringToken<
|
|
1385
|
-
Theme$1['colors']['feedback']['icon']
|
|
1386
|
-
>}`;
|
|
1387
|
-
|
|
1388
|
-
type FeedbackActionIconColors$1 = `feedback.${Feedback}.action.icon.${DotNotationColorStringToken<
|
|
1389
|
-
Theme$1['colors']['feedback'][Feedback]['action']['icon']
|
|
1390
|
-
>}`;
|
|
1391
|
-
|
|
1392
|
-
type ActionIconColors$1 = `action.icon.${DotNotationColorStringToken<
|
|
1393
|
-
Theme$1['colors']['action']['icon']
|
|
1394
|
-
>}`;
|
|
1395
|
-
|
|
1396
|
-
type TextIconColors$1 = `surface.text.${DotNotationColorStringToken<
|
|
1397
|
-
Theme$1['colors']['surface']['text']
|
|
1398
|
-
>}`;
|
|
1399
|
-
|
|
1400
|
-
type SurfaceActionIconColors$1 = `surface.action.icon.${DotNotationColorStringToken<
|
|
1401
|
-
Theme$1['colors']['surface']['action']['icon']
|
|
1402
|
-
>}`;
|
|
1403
|
-
|
|
1404
|
-
type BadgeIconColors$1 = `badge.icon.${DotNotationColorStringToken<
|
|
1405
|
-
Theme$1['colors']['badge']['icon']
|
|
1406
|
-
>}`;
|
|
1407
|
-
|
|
1408
|
-
type IconSize$1 = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | '2xlarge';
|
|
1409
|
-
type IconProps$1 = {
|
|
1410
|
-
/**
|
|
1411
|
-
* Color token (not to be confused with actual hsla value)
|
|
1412
|
-
*/
|
|
1413
|
-
color:
|
|
1414
|
-
| ActionIconColors$1
|
|
1415
|
-
| SurfaceActionIconColors$1
|
|
1416
|
-
| FeedbackIconColors$1
|
|
1417
|
-
| FeedbackActionIconColors$1
|
|
1418
|
-
| TextIconColors$1
|
|
1419
|
-
| BadgeIconColors$1
|
|
1420
|
-
| 'currentColor'; // currentColor is useful for letting the SVG inherit color property from its container
|
|
1421
|
-
size: IconSize$1;
|
|
1422
|
-
} & StyledPropsBlade;
|
|
1423
|
-
type IconComponent$1 = React.ComponentType<IconProps$1>;
|
|
1424
|
-
|
|
1425
|
-
declare type ActionListItemProps = {
|
|
1426
|
-
title: string;
|
|
1427
|
-
description?: string;
|
|
1428
|
-
onClick?: (clickProps: {
|
|
1429
|
-
name: string;
|
|
1430
|
-
value?: boolean;
|
|
1431
|
-
}) => void;
|
|
1432
|
-
/**
|
|
1433
|
-
* value that you get from `onChange` event on SelectInput or in form submissions.
|
|
1434
|
-
*/
|
|
1435
|
-
value: string;
|
|
1436
|
-
/**
|
|
1437
|
-
* Link to open when item is clicked.
|
|
1438
|
-
*/
|
|
1439
|
-
href?: string;
|
|
1440
|
-
/**
|
|
1441
|
-
* HTML target of the link
|
|
1442
|
-
*/
|
|
1443
|
-
target?: string;
|
|
1444
|
-
/**
|
|
1445
|
-
* Item that goes on left-side of item.
|
|
1446
|
-
*
|
|
1447
|
-
* Valid elements - `<ActionListItemIcon />`, `<ActionListItemAsset />`
|
|
1448
|
-
*
|
|
1449
|
-
* Will be overriden in multiselect
|
|
1450
|
-
*/
|
|
1451
|
-
leading?: React__default.ReactNode;
|
|
1452
|
-
/**
|
|
1453
|
-
* Item that goes on right-side of item.
|
|
1454
|
-
*
|
|
1455
|
-
* Valid elements - `<ActionListItemText />`, `<ActionListItemIcon />`
|
|
1456
|
-
*/
|
|
1457
|
-
trailing?: React__default.ReactNode;
|
|
1458
|
-
isDisabled?: boolean;
|
|
1459
|
-
intent?: Extract<Feedback, 'negative'>;
|
|
1460
|
-
/**
|
|
1461
|
-
* Can be used in combination of `onClick` to highlight item as selected in Button Triggers.
|
|
1462
|
-
*
|
|
1463
|
-
* When trigger is SelectInput, Use `value` prop on SelectInput instead to make dropdown controlled.
|
|
1464
|
-
*/
|
|
1465
|
-
isSelected?: boolean;
|
|
1466
|
-
/**
|
|
1467
|
-
* Internally passed from ActionList. No need to pass it explicitly
|
|
1468
|
-
*
|
|
1469
|
-
* @private
|
|
1470
|
-
*/
|
|
1471
|
-
_index?: number;
|
|
1472
|
-
} & TestID;
|
|
1473
|
-
declare const ActionListSectionDivider: () => JSX.Element;
|
|
1474
|
-
declare type ActionListSectionProps = {
|
|
1475
|
-
title: string;
|
|
1476
|
-
children: React__default.ReactNode[] | React__default.ReactNode;
|
|
1477
|
-
/**
|
|
1478
|
-
* Internally used to hide the divider on final item in React Native.
|
|
1479
|
-
*
|
|
1480
|
-
* Should not be used by consumers (also won't work on web)
|
|
1481
|
-
*
|
|
1482
|
-
* @private
|
|
1483
|
-
*/
|
|
1484
|
-
_hideDivider?: boolean;
|
|
1485
|
-
} & TestID;
|
|
1486
|
-
declare const ActionListSection: ({ title, children, testID, _hideDivider, }: ActionListSectionProps) => JSX.Element;
|
|
1487
|
-
declare const ActionListItemIcon: ({ icon }: {
|
|
1488
|
-
icon: IconComponent$1;
|
|
1489
|
-
}) => JSX.Element;
|
|
1490
|
-
declare const ActionListItemText: ({ children, }: {
|
|
1491
|
-
children: StringChildrenType;
|
|
1492
|
-
}) => React__default.ReactElement;
|
|
1493
|
-
declare const ActionListItem: React__default.MemoExoticComponent<(props: ActionListItemProps) => JSX.Element>;
|
|
1494
|
-
|
|
1495
|
-
declare type ActionListHeaderProps = {
|
|
1496
|
-
title: string;
|
|
1497
|
-
/**
|
|
1498
|
-
* Asset to be added on left side of Header.
|
|
1499
|
-
*
|
|
1500
|
-
* Valid children - `ActionListHeaderIcon`
|
|
1501
|
-
*/
|
|
1502
|
-
leading?: React__default.ReactNode;
|
|
1503
|
-
} & TestID;
|
|
1504
|
-
declare const ActionListHeader: (props: ActionListHeaderProps) => JSX.Element;
|
|
1505
|
-
declare const ActionListHeaderIcon: ({ icon }: {
|
|
1506
|
-
icon: IconComponent$1;
|
|
1507
|
-
}) => React__default.ReactElement;
|
|
1508
|
-
|
|
1509
|
-
declare type ActionListFooterProps = {
|
|
1510
|
-
title?: string;
|
|
1511
|
-
/**
|
|
1512
|
-
* Asset to be added on left side of Footer.
|
|
1513
|
-
*
|
|
1514
|
-
* Valid children - `ActionListFooterIcon`
|
|
1515
|
-
*/
|
|
1516
|
-
leading?: React__default.ReactNode;
|
|
1517
|
-
/**
|
|
1518
|
-
* Elements to be added on right side of Footer.
|
|
1519
|
-
*
|
|
1520
|
-
* Anything can be passed here but maybe don't? Should ideally have Button or Tick Icon Buttons.
|
|
1521
|
-
*/
|
|
1522
|
-
trailing?: React__default.ReactNode;
|
|
1523
|
-
} & TestID;
|
|
1524
|
-
declare const ActionListFooter: (props: ActionListFooterProps) => JSX.Element;
|
|
1525
|
-
declare const ActionListFooterIcon: ({ icon }: {
|
|
1526
|
-
icon: IconComponent$1;
|
|
1527
|
-
}) => React__default.ReactElement;
|
|
1528
|
-
|
|
1529
|
-
declare type ActionListItemAssetProps = {
|
|
1530
|
-
/**
|
|
1531
|
-
* Source of the image.
|
|
1532
|
-
*
|
|
1533
|
-
* Can either be a string URI or `require('/local/image')` in React Native
|
|
1534
|
-
*/
|
|
1535
|
-
src: string | ImageSourcePropType;
|
|
1536
|
-
/**
|
|
1537
|
-
* Alt tag for the image
|
|
1538
|
-
*/
|
|
1539
|
-
alt: string;
|
|
1540
|
-
};
|
|
1541
|
-
declare const ActionListItemAsset: (props: ActionListItemAssetProps) => React.ReactElement;
|
|
1542
|
-
|
|
1543
|
-
declare type PrimaryAction = {
|
|
1544
|
-
text: string;
|
|
1545
|
-
onClick: () => void;
|
|
1546
|
-
};
|
|
1547
|
-
declare type SecondaryActionButton = {
|
|
1548
|
-
text: string;
|
|
1549
|
-
onClick: () => void;
|
|
1550
|
-
};
|
|
1551
|
-
declare type SecondaryActionLinkButton = {
|
|
1552
|
-
text: string;
|
|
1553
|
-
href: string;
|
|
1554
|
-
onClick?: () => void;
|
|
1555
|
-
target?: string;
|
|
1556
|
-
/**
|
|
1557
|
-
* When `target` is set to `_blank` this is automatically set to `noopener noreferrer`
|
|
1558
|
-
*/
|
|
1559
|
-
rel?: string;
|
|
1560
|
-
};
|
|
1561
|
-
declare type SecondaryAction = SecondaryActionButton | SecondaryActionLinkButton;
|
|
1562
|
-
declare type AlertProps = {
|
|
1563
|
-
/**
|
|
1564
|
-
* Body content, pass text or JSX. Avoid passing components except `Link` to customize the content.
|
|
1565
|
-
*/
|
|
1566
|
-
description: ReactChild;
|
|
1567
|
-
/**
|
|
1568
|
-
* A brief heading
|
|
1569
|
-
*/
|
|
1570
|
-
title?: string;
|
|
1571
|
-
/**
|
|
1572
|
-
* Shows a dismiss button
|
|
1573
|
-
*
|
|
1574
|
-
* @default true
|
|
1575
|
-
*/
|
|
1576
|
-
isDismissible?: boolean;
|
|
1577
|
-
/**
|
|
1578
|
-
* A callback when the dismiss button is clicked
|
|
1579
|
-
*/
|
|
1580
|
-
onDismiss?: () => void;
|
|
1581
|
-
/**
|
|
1582
|
-
* Can be set to `high` for a more prominent look. Not to be confused with a11y contrast.
|
|
1583
|
-
*
|
|
1584
|
-
* @default low
|
|
1585
|
-
*/
|
|
1586
|
-
contrast?: ColorContrastTypes;
|
|
1587
|
-
/**
|
|
1588
|
-
* Makes the Alert span the entire container width, instead of the default max width of `584px`.
|
|
1589
|
-
* This also makes the alert borderless, useful for creating full bleed layouts.
|
|
1590
|
-
*
|
|
1591
|
-
* @default false
|
|
1592
|
-
*/
|
|
1593
|
-
isFullWidth?: boolean;
|
|
1594
|
-
/**
|
|
1595
|
-
* Sets the color tone
|
|
1596
|
-
*
|
|
1597
|
-
* @default neutral
|
|
1598
|
-
*/
|
|
1599
|
-
intent?: Feedback;
|
|
1600
|
-
/**
|
|
1601
|
-
* Renders a primary action button and a secondary action link button
|
|
1602
|
-
*/
|
|
1603
|
-
actions?: {
|
|
1604
|
-
/**
|
|
1605
|
-
* Renders a button (should **always** be present if `secondary` action is being used)
|
|
1606
|
-
*/
|
|
1607
|
-
primary: PrimaryAction;
|
|
1608
|
-
/**
|
|
1609
|
-
* Renders a Link button
|
|
1610
|
-
*/
|
|
1611
|
-
secondary?: SecondaryAction;
|
|
1612
|
-
};
|
|
1613
|
-
} & TestID & StyledPropsBlade;
|
|
1614
|
-
declare const Alert: ({ description, title, isDismissible, onDismiss, contrast, isFullWidth, intent, actions, testID, ...styledProps }: AlertProps) => ReactElement | null;
|
|
1615
|
-
|
|
1616
|
-
declare type BadgeProps = {
|
|
1617
|
-
/**
|
|
1618
|
-
* Sets the label for the badge.
|
|
1619
|
-
*
|
|
1620
|
-
*/
|
|
1621
|
-
children: StringChildrenType;
|
|
1622
|
-
/**
|
|
1623
|
-
* Sets the variant of the badge.
|
|
1624
|
-
*
|
|
1625
|
-
* @default 'neutral'
|
|
1626
|
-
*/
|
|
1627
|
-
variant?: Feedback | 'blue';
|
|
1628
|
-
/**
|
|
1629
|
-
* Sets the contrast of the badge.
|
|
1630
|
-
*
|
|
1631
|
-
* @default 'low'
|
|
1632
|
-
*/
|
|
1633
|
-
contrast?: 'low' | 'high';
|
|
1634
|
-
/**
|
|
1635
|
-
* Sets the size of the badge.
|
|
1636
|
-
*
|
|
1637
|
-
* @default 'medium'
|
|
1638
|
-
*/
|
|
1639
|
-
size?: 'small' | 'medium' | 'large';
|
|
1640
|
-
/**
|
|
1641
|
-
* Icon to be displayed in the badge.
|
|
1642
|
-
* Accepts a component of type `IconComponent` from Blade.
|
|
1643
|
-
*
|
|
1644
|
-
*/
|
|
1645
|
-
icon?: IconComponent$1;
|
|
1646
|
-
/**
|
|
1647
|
-
* Sets the fontWeight of the label.
|
|
1648
|
-
*
|
|
1649
|
-
* @default 'regular'
|
|
1650
|
-
*/
|
|
1651
|
-
fontWeight?: 'regular' | 'bold';
|
|
1652
|
-
} & TestID & StyledPropsBlade;
|
|
1653
|
-
declare const Badge: ({ children, contrast, fontWeight, icon, size, variant, testID, ...styledProps }: BadgeProps) => ReactElement;
|
|
1654
|
-
|
|
1655
|
-
declare type BladeProviderProps = {
|
|
1656
|
-
themeTokens: ThemeTokens;
|
|
1657
|
-
colorScheme?: ColorSchemeNamesInput;
|
|
1658
|
-
children: ReactNode;
|
|
1659
|
-
};
|
|
1660
|
-
|
|
1661
|
-
declare const BladeProvider: ({ themeTokens, colorScheme, children, }: BladeProviderProps) => ReactElement;
|
|
1662
|
-
|
|
1663
|
-
declare type UseColorScheme = {
|
|
1664
|
-
colorScheme: ColorSchemeNames;
|
|
1665
|
-
setColorScheme: (colorScheme: ColorSchemeNamesInput) => void;
|
|
1666
|
-
};
|
|
1667
|
-
|
|
1668
|
-
declare type TypographyPlatforms = 'onDesktop' | 'onMobile';
|
|
1669
|
-
|
|
1670
|
-
declare type ThemeContext = UseColorScheme & {
|
|
1671
|
-
theme: Theme;
|
|
1672
|
-
platform: TypographyPlatforms;
|
|
1673
|
-
};
|
|
1674
|
-
declare const ThemeContext: React$1.Context<ThemeContext>;
|
|
1675
|
-
declare const useTheme: () => ThemeContext;
|
|
1676
|
-
|
|
1677
|
-
declare type Theme = {
|
|
1678
|
-
name: ThemeTokens['name'];
|
|
1679
|
-
border: Border;
|
|
1680
|
-
breakpoints: Breakpoints;
|
|
1681
|
-
colors: Colors;
|
|
1682
|
-
spacing: Spacing;
|
|
1683
|
-
motion: Motion;
|
|
1684
|
-
shadows: Omit<Shadows, 'color'> & {
|
|
1685
|
-
color: {
|
|
1686
|
-
level: Record<ShadowLevels, string>;
|
|
1687
|
-
};
|
|
1688
|
-
};
|
|
1689
|
-
typography: Typography;
|
|
1690
|
-
};
|
|
1691
|
-
|
|
1692
|
-
/**
|
|
1693
|
-
* Returns the value or the responsive object with that value
|
|
1694
|
-
*
|
|
1695
|
-
* ## Usage
|
|
1696
|
-
*
|
|
1697
|
-
* Example if you pass string argument, return type will be string or responsive object with string value
|
|
1698
|
-
*
|
|
1699
|
-
* `MakeValueResponsive<string>`
|
|
1700
|
-
* ```ts
|
|
1701
|
-
* string |
|
|
1702
|
-
* {
|
|
1703
|
-
* base?: string;
|
|
1704
|
-
* xs?: string;
|
|
1705
|
-
* s?: string;
|
|
1706
|
-
* // ... other breakpoints
|
|
1707
|
-
* }
|
|
1708
|
-
* ```
|
|
1709
|
-
*
|
|
1710
|
-
*/
|
|
1711
|
-
declare type MakeValueResponsive<T> = [T] extends [never] ? never : T | {
|
|
1712
|
-
[P in keyof Breakpoints]?: T;
|
|
1713
|
-
};
|
|
1714
|
-
/**
|
|
1715
|
-
* Turns all the values in object into responsive object.
|
|
1716
|
-
*
|
|
1717
|
-
* ```ts
|
|
1718
|
-
* MakeObjectResponsive<{ hello: string}>
|
|
1719
|
-
*
|
|
1720
|
-
* // Outputs:
|
|
1721
|
-
* {
|
|
1722
|
-
* hello: string | {
|
|
1723
|
-
* base?: string;
|
|
1724
|
-
* xs?: string;
|
|
1725
|
-
* s?: string;
|
|
1726
|
-
* // ... other breakpoints
|
|
1727
|
-
* }
|
|
1728
|
-
* }
|
|
1729
|
-
* ```
|
|
1730
|
-
*/
|
|
1731
|
-
declare type MakeObjectResponsive<T> = {
|
|
1732
|
-
[P in keyof T]: MakeValueResponsive<T[P]>;
|
|
1733
|
-
};
|
|
1734
|
-
|
|
1735
|
-
declare type ArrayOfMaxLength4<T> = readonly [T?, T?, T?, T?];
|
|
1736
|
-
declare type SpaceUnits = Platform.Select<{
|
|
1737
|
-
web: 'px' | '%' | 'fr' | 'rem' | 'em' | 'vh' | 'vw';
|
|
1738
|
-
native: 'px' | '%';
|
|
1739
|
-
}>;
|
|
1740
|
-
declare type SpacingValueType = DotNotationSpacingStringToken | `${string}${SpaceUnits}` | 'auto';
|
|
1741
|
-
/**
|
|
1742
|
-
* @IMPORTANT
|
|
1743
|
-
*
|
|
1744
|
-
* 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.
|
|
1745
|
-
*
|
|
1746
|
-
* 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
|
|
1747
|
-
*
|
|
1748
|
-
* Checkout example of find and replace query-
|
|
1749
|
-
* {@link https://user-images.githubusercontent.com/30949385/221802507-40c7adbc-484a-47b3-9035-ae1e97080b51.png}
|
|
1750
|
-
*
|
|
1751
|
-
*/
|
|
1752
|
-
declare type PaddingProps = MakeObjectResponsive<{
|
|
1753
|
-
/**
|
|
1754
|
-
* ### Padding Shorthand
|
|
1755
|
-
*
|
|
1756
|
-
* #### Usage
|
|
1757
|
-
*
|
|
1758
|
-
* ```jsx
|
|
1759
|
-
* padding="spacing.3"
|
|
1760
|
-
* padding="20px"
|
|
1761
|
-
* padding={["spacing.3", "spacing.1", "spacing.0", "10px"]}
|
|
1762
|
-
* ```
|
|
1763
|
-
*
|
|
1764
|
-
* ---
|
|
1765
|
-
* #### Spacing to Pixel values
|
|
1766
|
-
*
|
|
1767
|
-
* - `spacing.0` - 0px
|
|
1768
|
-
* - `spacing.1` - 2px
|
|
1769
|
-
* - `spacing.2` - 4px
|
|
1770
|
-
* - `spacing.3` - 8px
|
|
1771
|
-
* - `spacing.4` - 12px
|
|
1772
|
-
* - `spacing.5` - 16px
|
|
1773
|
-
* - `spacing.6` - 20px
|
|
1774
|
-
* - `spacing.7` - 24px
|
|
1775
|
-
* - `spacing.8` - 32px
|
|
1776
|
-
* - `spacing.9` - 40px
|
|
1777
|
-
* - `spacing.10` - 48px
|
|
1778
|
-
* - `spacing.11` - 56px
|
|
1779
|
-
*
|
|
1780
|
-
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
1781
|
-
*
|
|
1782
|
-
*/
|
|
1783
|
-
padding: SpacingValueType | ArrayOfMaxLength4<SpacingValueType>;
|
|
1784
|
-
/**
|
|
1785
|
-
* ### Padding Horizontal
|
|
1786
|
-
*
|
|
1787
|
-
* #### Usage
|
|
1788
|
-
*
|
|
1789
|
-
* ```jsx
|
|
1790
|
-
* paddingX="spacing.3"
|
|
1791
|
-
* paddingX="20px"
|
|
1792
|
-
* ```
|
|
1793
|
-
*
|
|
1794
|
-
* ---
|
|
1795
|
-
* #### Spacing to Pixel values
|
|
1796
|
-
*
|
|
1797
|
-
* - `spacing.0` - 0px
|
|
1798
|
-
* - `spacing.1` - 2px
|
|
1799
|
-
* - `spacing.2` - 4px
|
|
1800
|
-
* - `spacing.3` - 8px
|
|
1801
|
-
* - `spacing.4` - 12px
|
|
1802
|
-
* - `spacing.5` - 16px
|
|
1803
|
-
* - `spacing.6` - 20px
|
|
1804
|
-
* - `spacing.7` - 24px
|
|
1805
|
-
* - `spacing.8` - 32px
|
|
1806
|
-
* - `spacing.9` - 40px
|
|
1807
|
-
* - `spacing.10` - 48px
|
|
1808
|
-
* - `spacing.11` - 56px
|
|
1809
|
-
*
|
|
1810
|
-
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
1811
|
-
*
|
|
1812
|
-
*/
|
|
1813
|
-
paddingX: SpacingValueType;
|
|
1814
|
-
/**
|
|
1815
|
-
* ### Padding Vertical
|
|
1816
|
-
*
|
|
1817
|
-
* #### Usage
|
|
1818
|
-
*
|
|
1819
|
-
* ```jsx
|
|
1820
|
-
* paddingY="spacing.3"
|
|
1821
|
-
* paddingY="20px"
|
|
1822
|
-
* ```
|
|
1823
|
-
*
|
|
1824
|
-
* ---
|
|
1825
|
-
* #### Spacing to Pixel values
|
|
1826
|
-
*
|
|
1827
|
-
* - `spacing.0` - 0px
|
|
1828
|
-
* - `spacing.1` - 2px
|
|
1829
|
-
* - `spacing.2` - 4px
|
|
1830
|
-
* - `spacing.3` - 8px
|
|
1831
|
-
* - `spacing.4` - 12px
|
|
1832
|
-
* - `spacing.5` - 16px
|
|
1833
|
-
* - `spacing.6` - 20px
|
|
1834
|
-
* - `spacing.7` - 24px
|
|
1835
|
-
* - `spacing.8` - 32px
|
|
1836
|
-
* - `spacing.9` - 40px
|
|
1837
|
-
* - `spacing.10` - 48px
|
|
1838
|
-
* - `spacing.11` - 56px
|
|
1839
|
-
*
|
|
1840
|
-
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
1841
|
-
*
|
|
1842
|
-
*/
|
|
1843
|
-
paddingY: SpacingValueType;
|
|
1844
|
-
/**
|
|
1845
|
-
* ### Padding Top
|
|
1846
|
-
*
|
|
1847
|
-
* #### Usage
|
|
1848
|
-
*
|
|
1849
|
-
* ```jsx
|
|
1850
|
-
* paddingTop="spacing.3"
|
|
1851
|
-
* paddingTop="20px"
|
|
1852
|
-
* ```
|
|
1853
|
-
*
|
|
1854
|
-
* ---
|
|
1855
|
-
* #### Spacing to Pixel values
|
|
1856
|
-
*
|
|
1857
|
-
* - `spacing.0` - 0px
|
|
1858
|
-
* - `spacing.1` - 2px
|
|
1859
|
-
* - `spacing.2` - 4px
|
|
1860
|
-
* - `spacing.3` - 8px
|
|
1861
|
-
* - `spacing.4` - 12px
|
|
1862
|
-
* - `spacing.5` - 16px
|
|
1863
|
-
* - `spacing.6` - 20px
|
|
1864
|
-
* - `spacing.7` - 24px
|
|
1865
|
-
* - `spacing.8` - 32px
|
|
1866
|
-
* - `spacing.9` - 40px
|
|
1867
|
-
* - `spacing.10` - 48px
|
|
1868
|
-
* - `spacing.11` - 56px
|
|
1869
|
-
*
|
|
1870
|
-
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
1871
|
-
*/
|
|
1872
|
-
paddingTop: SpacingValueType;
|
|
1873
|
-
/**
|
|
1874
|
-
* ### Padding Right
|
|
1875
|
-
*
|
|
1876
|
-
* #### Usage
|
|
1877
|
-
*
|
|
1878
|
-
* ```jsx
|
|
1879
|
-
* paddingRight="spacing.3"
|
|
1880
|
-
* paddingRight="20px"
|
|
1881
|
-
* ```
|
|
1882
|
-
*
|
|
1883
|
-
* ---
|
|
1884
|
-
* #### Spacing to Pixel values
|
|
1885
|
-
*
|
|
1886
|
-
* - `spacing.0` - 0px
|
|
1887
|
-
* - `spacing.1` - 2px
|
|
1888
|
-
* - `spacing.2` - 4px
|
|
1889
|
-
* - `spacing.3` - 8px
|
|
1890
|
-
* - `spacing.4` - 12px
|
|
1891
|
-
* - `spacing.5` - 16px
|
|
1892
|
-
* - `spacing.6` - 20px
|
|
1893
|
-
* - `spacing.7` - 24px
|
|
1894
|
-
* - `spacing.8` - 32px
|
|
1895
|
-
* - `spacing.9` - 40px
|
|
1896
|
-
* - `spacing.10` - 48px
|
|
1897
|
-
* - `spacing.11` - 56px
|
|
1898
|
-
*
|
|
1899
|
-
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
1900
|
-
*/
|
|
1901
|
-
paddingRight: SpacingValueType;
|
|
1902
|
-
/**
|
|
1903
|
-
* ### Padding Bottom
|
|
1904
|
-
*
|
|
1905
|
-
* #### Usage
|
|
1906
|
-
*
|
|
1907
|
-
* ```jsx
|
|
1908
|
-
* paddingBottom="spacing.3"
|
|
1909
|
-
* paddingBottom="20px"
|
|
1910
|
-
* ```
|
|
1911
|
-
*
|
|
1912
|
-
* ---
|
|
1913
|
-
* #### Spacing to Pixel values
|
|
1914
|
-
*
|
|
1915
|
-
* - `spacing.0` - 0px
|
|
1916
|
-
* - `spacing.1` - 2px
|
|
1917
|
-
* - `spacing.2` - 4px
|
|
1918
|
-
* - `spacing.3` - 8px
|
|
1919
|
-
* - `spacing.4` - 12px
|
|
1920
|
-
* - `spacing.5` - 16px
|
|
1921
|
-
* - `spacing.6` - 20px
|
|
1922
|
-
* - `spacing.7` - 24px
|
|
1923
|
-
* - `spacing.8` - 32px
|
|
1924
|
-
* - `spacing.9` - 40px
|
|
1925
|
-
* - `spacing.10` - 48px
|
|
1926
|
-
* - `spacing.11` - 56px
|
|
1927
|
-
*
|
|
1928
|
-
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
1929
|
-
*/
|
|
1930
|
-
paddingBottom: SpacingValueType;
|
|
1931
|
-
/**
|
|
1932
|
-
* ### Padding Left
|
|
1933
|
-
*
|
|
1934
|
-
* #### Usage
|
|
1935
|
-
*
|
|
1936
|
-
* ```jsx
|
|
1937
|
-
* paddingLeft="spacing.3"
|
|
1938
|
-
* paddingLeft="20px"
|
|
1939
|
-
* ```
|
|
1940
|
-
*
|
|
1941
|
-
* ---
|
|
1942
|
-
* #### Spacing to Pixel values
|
|
1943
|
-
*
|
|
1944
|
-
* - `spacing.0` - 0px
|
|
1945
|
-
* - `spacing.1` - 2px
|
|
1946
|
-
* - `spacing.2` - 4px
|
|
1947
|
-
* - `spacing.3` - 8px
|
|
1948
|
-
* - `spacing.4` - 12px
|
|
1949
|
-
* - `spacing.5` - 16px
|
|
1950
|
-
* - `spacing.6` - 20px
|
|
1951
|
-
* - `spacing.7` - 24px
|
|
1952
|
-
* - `spacing.8` - 32px
|
|
1953
|
-
* - `spacing.9` - 40px
|
|
1954
|
-
* - `spacing.10` - 48px
|
|
1955
|
-
* - `spacing.11` - 56px
|
|
1956
|
-
*
|
|
1957
|
-
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
1958
|
-
*/
|
|
1959
|
-
paddingLeft: SpacingValueType;
|
|
1960
|
-
}>;
|
|
1961
|
-
declare type MarginProps = MakeObjectResponsive<{
|
|
1962
|
-
/**
|
|
1963
|
-
* ### Margin Shorthand
|
|
1964
|
-
*
|
|
1965
|
-
* #### Usage
|
|
1966
|
-
*
|
|
1967
|
-
* ```jsx
|
|
1968
|
-
* margin="spacing.3"
|
|
1969
|
-
* margin="20px"
|
|
1970
|
-
* margin={["spacing.3", "spacing.1", "spacing.0", "10px"]}
|
|
1971
|
-
* ```
|
|
1972
|
-
*
|
|
1973
|
-
* ---
|
|
1974
|
-
* #### Spacing to Pixel values
|
|
1975
|
-
*
|
|
1976
|
-
* - `spacing.0` - 0px
|
|
1977
|
-
* - `spacing.1` - 2px
|
|
1978
|
-
* - `spacing.2` - 4px
|
|
1979
|
-
* - `spacing.3` - 8px
|
|
1980
|
-
* - `spacing.4` - 12px
|
|
1981
|
-
* - `spacing.5` - 16px
|
|
1982
|
-
* - `spacing.6` - 20px
|
|
1983
|
-
* - `spacing.7` - 24px
|
|
1984
|
-
* - `spacing.8` - 32px
|
|
1985
|
-
* - `spacing.9` - 40px
|
|
1986
|
-
* - `spacing.10` - 48px
|
|
1987
|
-
* - `spacing.11` - 56px
|
|
1988
|
-
*
|
|
1989
|
-
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
1990
|
-
*
|
|
1991
|
-
*/
|
|
1992
|
-
margin: SpacingValueType | ArrayOfMaxLength4<SpacingValueType>;
|
|
1993
|
-
/**
|
|
1994
|
-
* ### Margin Horizontal
|
|
1995
|
-
*
|
|
1996
|
-
* #### Usage
|
|
1997
|
-
*
|
|
1998
|
-
* ```jsx
|
|
1999
|
-
* marginX="spacing.3"
|
|
2000
|
-
* marginX="20px"
|
|
2001
|
-
* ```
|
|
2002
|
-
*
|
|
2003
|
-
* ---
|
|
2004
|
-
* #### Spacing to Pixel values
|
|
2005
|
-
*
|
|
2006
|
-
* - `spacing.0` - 0px
|
|
2007
|
-
* - `spacing.1` - 2px
|
|
2008
|
-
* - `spacing.2` - 4px
|
|
2009
|
-
* - `spacing.3` - 8px
|
|
2010
|
-
* - `spacing.4` - 12px
|
|
2011
|
-
* - `spacing.5` - 16px
|
|
2012
|
-
* - `spacing.6` - 20px
|
|
2013
|
-
* - `spacing.7` - 24px
|
|
2014
|
-
* - `spacing.8` - 32px
|
|
2015
|
-
* - `spacing.9` - 40px
|
|
2016
|
-
* - `spacing.10` - 48px
|
|
2017
|
-
* - `spacing.11` - 56px
|
|
2018
|
-
*
|
|
2019
|
-
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
2020
|
-
*
|
|
2021
|
-
*/
|
|
2022
|
-
marginX: SpacingValueType;
|
|
2023
|
-
/**
|
|
2024
|
-
* ### Margin Vertical
|
|
2025
|
-
*
|
|
2026
|
-
* #### Usage
|
|
2027
|
-
*
|
|
2028
|
-
* ```jsx
|
|
2029
|
-
* marginY="spacing.3"
|
|
2030
|
-
* marginY="20px"
|
|
2031
|
-
* ```
|
|
2032
|
-
*
|
|
2033
|
-
* ---
|
|
2034
|
-
* #### Spacing to Pixel values
|
|
2035
|
-
*
|
|
2036
|
-
* - `spacing.0` - 0px
|
|
2037
|
-
* - `spacing.1` - 2px
|
|
2038
|
-
* - `spacing.2` - 4px
|
|
2039
|
-
* - `spacing.3` - 8px
|
|
2040
|
-
* - `spacing.4` - 12px
|
|
2041
|
-
* - `spacing.5` - 16px
|
|
2042
|
-
* - `spacing.6` - 20px
|
|
2043
|
-
* - `spacing.7` - 24px
|
|
2044
|
-
* - `spacing.8` - 32px
|
|
2045
|
-
* - `spacing.9` - 40px
|
|
2046
|
-
* - `spacing.10` - 48px
|
|
2047
|
-
* - `spacing.11` - 56px
|
|
2048
|
-
*
|
|
2049
|
-
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
2050
|
-
*
|
|
2051
|
-
*/
|
|
2052
|
-
marginY: SpacingValueType;
|
|
2053
|
-
/**
|
|
2054
|
-
* ### Margin Top
|
|
2055
|
-
*
|
|
2056
|
-
* #### Usage
|
|
2057
|
-
*
|
|
2058
|
-
* ```jsx
|
|
2059
|
-
* marginTop="spacing.3"
|
|
2060
|
-
* marginTop="20px"
|
|
2061
|
-
* ```
|
|
2062
|
-
*
|
|
2063
|
-
* ---
|
|
2064
|
-
* #### Spacing to Pixel values
|
|
2065
|
-
*
|
|
2066
|
-
* - `spacing.0` - 0px
|
|
2067
|
-
* - `spacing.1` - 2px
|
|
2068
|
-
* - `spacing.2` - 4px
|
|
2069
|
-
* - `spacing.3` - 8px
|
|
2070
|
-
* - `spacing.4` - 12px
|
|
2071
|
-
* - `spacing.5` - 16px
|
|
2072
|
-
* - `spacing.6` - 20px
|
|
2073
|
-
* - `spacing.7` - 24px
|
|
2074
|
-
* - `spacing.8` - 32px
|
|
2075
|
-
* - `spacing.9` - 40px
|
|
2076
|
-
* - `spacing.10` - 48px
|
|
2077
|
-
* - `spacing.11` - 56px
|
|
2078
|
-
*
|
|
2079
|
-
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
2080
|
-
*/
|
|
2081
|
-
marginTop: SpacingValueType;
|
|
2082
|
-
/**
|
|
2083
|
-
* ### Margin Right
|
|
2084
|
-
*
|
|
2085
|
-
* #### Usage
|
|
2086
|
-
*
|
|
2087
|
-
* ```jsx
|
|
2088
|
-
* marginRight="spacing.3"
|
|
2089
|
-
* marginRight="20px"
|
|
2090
|
-
* ```
|
|
2091
|
-
*
|
|
2092
|
-
* ---
|
|
2093
|
-
* #### Spacing to Pixel values
|
|
2094
|
-
*
|
|
2095
|
-
* - `spacing.0` - 0px
|
|
2096
|
-
* - `spacing.1` - 2px
|
|
2097
|
-
* - `spacing.2` - 4px
|
|
2098
|
-
* - `spacing.3` - 8px
|
|
2099
|
-
* - `spacing.4` - 12px
|
|
2100
|
-
* - `spacing.5` - 16px
|
|
2101
|
-
* - `spacing.6` - 20px
|
|
2102
|
-
* - `spacing.7` - 24px
|
|
2103
|
-
* - `spacing.8` - 32px
|
|
2104
|
-
* - `spacing.9` - 40px
|
|
2105
|
-
* - `spacing.10` - 48px
|
|
2106
|
-
* - `spacing.11` - 56px
|
|
2107
|
-
*
|
|
2108
|
-
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
2109
|
-
*/
|
|
2110
|
-
marginRight: SpacingValueType;
|
|
2111
|
-
/**
|
|
2112
|
-
* ### Margin Bottom
|
|
2113
|
-
*
|
|
2114
|
-
* #### Usage
|
|
2115
|
-
*
|
|
2116
|
-
* ```jsx
|
|
2117
|
-
* marginBottom="spacing.3"
|
|
2118
|
-
* marginBottom="20px"
|
|
2119
|
-
* ```
|
|
2120
|
-
*
|
|
2121
|
-
* ---
|
|
2122
|
-
* #### Spacing to Pixel values
|
|
2123
|
-
*
|
|
2124
|
-
* - `spacing.0` - 0px
|
|
2125
|
-
* - `spacing.1` - 2px
|
|
2126
|
-
* - `spacing.2` - 4px
|
|
2127
|
-
* - `spacing.3` - 8px
|
|
2128
|
-
* - `spacing.4` - 12px
|
|
2129
|
-
* - `spacing.5` - 16px
|
|
2130
|
-
* - `spacing.6` - 20px
|
|
2131
|
-
* - `spacing.7` - 24px
|
|
2132
|
-
* - `spacing.8` - 32px
|
|
2133
|
-
* - `spacing.9` - 40px
|
|
2134
|
-
* - `spacing.10` - 48px
|
|
2135
|
-
* - `spacing.11` - 56px
|
|
2136
|
-
*
|
|
2137
|
-
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
2138
|
-
*/
|
|
2139
|
-
marginBottom: SpacingValueType;
|
|
2140
|
-
/**
|
|
2141
|
-
* ### Margin Left
|
|
2142
|
-
*
|
|
2143
|
-
* #### Usage
|
|
2144
|
-
*
|
|
2145
|
-
* ```jsx
|
|
2146
|
-
* marginLeft="spacing.3"
|
|
2147
|
-
* marginLeft="20px"
|
|
2148
|
-
* ```
|
|
2149
|
-
*
|
|
2150
|
-
* ---
|
|
2151
|
-
* #### Spacing to Pixel values
|
|
2152
|
-
*
|
|
2153
|
-
* - `spacing.0` - 0px
|
|
2154
|
-
* - `spacing.1` - 2px
|
|
2155
|
-
* - `spacing.2` - 4px
|
|
2156
|
-
* - `spacing.3` - 8px
|
|
2157
|
-
* - `spacing.4` - 12px
|
|
2158
|
-
* - `spacing.5` - 16px
|
|
2159
|
-
* - `spacing.6` - 20px
|
|
2160
|
-
* - `spacing.7` - 24px
|
|
2161
|
-
* - `spacing.8` - 32px
|
|
2162
|
-
* - `spacing.9` - 40px
|
|
2163
|
-
* - `spacing.10` - 48px
|
|
2164
|
-
* - `spacing.11` - 56px
|
|
2165
|
-
*
|
|
2166
|
-
* {@linkcode https://blade.razorpay.com/?path=/story/tokens-spacing--page&globals=measureEnabled:false Spacing Token Ref}
|
|
2167
|
-
*/
|
|
2168
|
-
marginLeft: SpacingValueType;
|
|
2169
|
-
}>;
|
|
2170
|
-
|
|
2171
|
-
declare type LayoutProps = MakeObjectResponsive<{
|
|
2172
|
-
height: SpacingValueType;
|
|
2173
|
-
minHeight: SpacingValueType;
|
|
2174
|
-
maxHeight: SpacingValueType;
|
|
2175
|
-
width: SpacingValueType;
|
|
2176
|
-
minWidth: SpacingValueType;
|
|
2177
|
-
maxWidth: SpacingValueType;
|
|
2178
|
-
} & PickCSSByPlatform$1<'display' | 'overflow' | 'overflowX' | 'overflowY'>>;
|
|
2179
|
-
declare type FlexboxProps = MakeObjectResponsive<{
|
|
2180
|
-
/**
|
|
2181
|
-
* This uses the native gap property which might not work on older browsers.
|
|
2182
|
-
* If you want to support older browsers, you might want to use `margin` instead.
|
|
2183
|
-
*
|
|
2184
|
-
* @see https://caniuse.com/?search=gap
|
|
2185
|
-
*/
|
|
2186
|
-
gap: SpacingValueType;
|
|
2187
|
-
/**
|
|
2188
|
-
* This uses the native row-gap property which might not work on older browsers.
|
|
2189
|
-
* If you want to support older browsers, you might want to use `margin` instead.
|
|
2190
|
-
*
|
|
2191
|
-
* @see https://caniuse.com/?search=row-gap
|
|
2192
|
-
*/
|
|
2193
|
-
rowGap: SpacingValueType;
|
|
2194
|
-
/**
|
|
2195
|
-
* This uses the native column-gap property which might not work on older browsers.
|
|
2196
|
-
* If you want to support older browsers, you might want to use `margin` instead.
|
|
2197
|
-
*
|
|
2198
|
-
* @see https://caniuse.com/?search=column-gap
|
|
2199
|
-
*/
|
|
2200
|
-
columnGap: SpacingValueType;
|
|
2201
|
-
/**
|
|
2202
|
-
* The **`flex`** CSS shorthand property sets how a flex _item_ will grow or shrink to fit the space available in its flex container.
|
|
2203
|
-
*
|
|
2204
|
-
* @see https://developer.mozilla.org/docs/Web/CSS/flex
|
|
2205
|
-
*/
|
|
2206
|
-
flex: string | number;
|
|
2207
|
-
} & PickCSSByPlatform$1<'flexWrap' | 'flexDirection' | 'flexGrow' | 'flexShrink' | 'flexBasis' | 'alignItems' | 'alignContent' | 'alignSelf' | 'justifyItems' | 'justifyContent' | 'justifySelf' | 'placeSelf' | 'order'>>;
|
|
2208
|
-
declare type PositionProps = MakeObjectResponsive<{
|
|
2209
|
-
top: SpacingValueType;
|
|
2210
|
-
right: SpacingValueType;
|
|
2211
|
-
bottom: SpacingValueType;
|
|
2212
|
-
left: SpacingValueType;
|
|
2213
|
-
} & PickCSSByPlatform$1<'position' | 'zIndex'>>;
|
|
2214
|
-
declare type GridProps = MakeObjectResponsive<PickCSSByPlatform$1<'grid' | 'gridColumn' | 'gridRow' | 'gridRowStart' | 'gridRowEnd' | 'gridColumnStart' | 'gridColumnEnd' | 'gridArea' | 'gridAutoFlow' | 'gridAutoRows' | 'gridAutoColumns' | 'gridTemplate' | 'gridTemplateAreas' | 'gridTemplateColumns' | 'gridTemplateRows'>>;
|
|
2215
|
-
declare type ColorObjects = 'feedback' | 'surface' | 'action';
|
|
2216
|
-
declare type BackgroundColorString<T extends ColorObjects> = `${T}.background.${DotNotationColorStringToken<Theme$1['colors'][T]['background']>}`;
|
|
2217
|
-
declare const validBoxAsValues: readonly ["div", "section", "footer", "header", "main", "aside", "nav", "span"];
|
|
2218
|
-
declare type BoxAsType = typeof validBoxAsValues[number];
|
|
2219
|
-
declare type BoxVisualProps = MakeObjectResponsive<{
|
|
2220
|
-
backgroundColor: BackgroundColorString<'surface'>;
|
|
2221
|
-
}> & {
|
|
2222
|
-
as: BoxAsType;
|
|
2223
|
-
};
|
|
2224
|
-
declare type BoxProps = Partial<PaddingProps & MarginProps & LayoutProps & FlexboxProps & PositionProps & GridProps & BoxVisualProps & {
|
|
2225
|
-
children?: React.ReactNode | React.ReactNode[];
|
|
2226
|
-
} & TestID>;
|
|
2227
|
-
|
|
2228
|
-
/**
|
|
2229
|
-
* ## Box
|
|
2230
|
-
*
|
|
2231
|
-
* Box is the basic Layout component.
|
|
2232
|
-
*
|
|
2233
|
-
*
|
|
2234
|
-
* Box components supports most spacing CSS properties like `display`, `padding*`, `flex*`, `height`, `width`, etc.
|
|
2235
|
-
*
|
|
2236
|
-
* 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.
|
|
2237
|
-
*
|
|
2238
|
-
* ----
|
|
2239
|
-
*
|
|
2240
|
-
* ### Usage
|
|
2241
|
-
*
|
|
2242
|
-
* ```jsx
|
|
2243
|
-
* <Box display="flex">
|
|
2244
|
-
* ```
|
|
2245
|
-
|
|
2246
|
-
* #### Responsive Props
|
|
2247
|
-
*
|
|
2248
|
-
* ```jsx
|
|
2249
|
-
* <Box padding={{ base: 'spacing.3', m: 'spacing.10' }} />
|
|
2250
|
-
* ```
|
|
2251
|
-
*
|
|
2252
|
-
* #### Margin and Padding Shorthands
|
|
2253
|
-
*
|
|
2254
|
-
* ```jsx
|
|
2255
|
-
* <Box padding={["spacing.3", "spacing.10"]} />
|
|
2256
|
-
* ```
|
|
2257
|
-
*
|
|
2258
|
-
* ---
|
|
2259
|
-
*
|
|
2260
|
-
* Checkout {@link https://blade.razorpay.com/?path=/docs/components-box Box Documentation}
|
|
2261
|
-
*
|
|
2262
|
-
*/
|
|
2263
|
-
declare const Box: (props: BoxProps) => JSX.Element;
|
|
2264
|
-
|
|
2265
|
-
declare const ComponentIds: {
|
|
2266
|
-
CardHeader: string;
|
|
2267
|
-
CardHeaderTrailing: string;
|
|
2268
|
-
CardHeaderLeading: string;
|
|
2269
|
-
CardFooter: string;
|
|
2270
|
-
CardFooterTrailing: string;
|
|
2271
|
-
CardFooterLeading: string;
|
|
2272
|
-
CardBody: string;
|
|
2273
|
-
CardHeaderIcon: string;
|
|
2274
|
-
CardHeaderCounter: string;
|
|
2275
|
-
CardHeaderBadge: string;
|
|
2276
|
-
CardHeaderText: string;
|
|
2277
|
-
CardHeaderLink: string;
|
|
2278
|
-
CardHeaderIconButton: string;
|
|
2279
|
-
};
|
|
2280
|
-
declare type CardProps = {
|
|
2281
|
-
/**
|
|
2282
|
-
* Card contents
|
|
2283
|
-
*/
|
|
2284
|
-
children: React__default.ReactNode;
|
|
2285
|
-
/**
|
|
2286
|
-
* Sets the background color of the Card according to the surface level tokens
|
|
2287
|
-
*
|
|
2288
|
-
* eg: `theme.colors.surface.background.level1`
|
|
2289
|
-
*
|
|
2290
|
-
* **Description:**
|
|
2291
|
-
*
|
|
2292
|
-
* - 2: Used in layouts which are on top of the main background
|
|
2293
|
-
* - 3: Used over the cards template or as a text input backgrounds.
|
|
2294
|
-
*
|
|
2295
|
-
* **Links:**
|
|
2296
|
-
* - Docs: https://blade.razorpay.com/?path=/docs/tokens-colors--page#-theme-tokens
|
|
2297
|
-
* - Figma: https://shorturl.at/fsvwK
|
|
2298
|
-
*/
|
|
2299
|
-
surfaceLevel?: 2 | 3;
|
|
2300
|
-
} & TestID & StyledPropsBlade;
|
|
2301
|
-
declare const Card: ({ children, surfaceLevel, testID, ...styledProps }: CardProps) => React__default.ReactElement;
|
|
2302
|
-
declare type CardBodyProps = {
|
|
2303
|
-
children: React__default.ReactNode;
|
|
2304
|
-
} & TestID;
|
|
2305
|
-
declare const CardBody: ({ children, testID }: CardBodyProps) => React__default.ReactElement;
|
|
2306
|
-
|
|
2307
|
-
declare type LinkCommonProps = {
|
|
2308
|
-
variant?: 'anchor' | 'button';
|
|
2309
|
-
icon?: IconComponent$1;
|
|
2310
|
-
iconPosition?: 'left' | 'right';
|
|
2311
|
-
isDisabled?: boolean;
|
|
2312
|
-
onClick?: (event: SyntheticEvent) => void;
|
|
2313
|
-
href?: string;
|
|
2314
|
-
target?: string;
|
|
2315
|
-
accessibilityLabel?: string;
|
|
2316
|
-
/**
|
|
2317
|
-
* Sets the size of the link
|
|
2318
|
-
*
|
|
2319
|
-
* @default medium
|
|
2320
|
-
*/
|
|
2321
|
-
size?: 'small' | 'medium' | 'large';
|
|
2322
|
-
} & TestID & StyledPropsBlade & Platform.Select<{
|
|
2323
|
-
native: {
|
|
2324
|
-
/**
|
|
2325
|
-
* Defines how far your touch can start away from the link
|
|
2326
|
-
*/
|
|
2327
|
-
hitSlop?: {
|
|
2328
|
-
top?: number;
|
|
2329
|
-
right?: number;
|
|
2330
|
-
bottom?: number;
|
|
2331
|
-
left?: number;
|
|
2332
|
-
} | number;
|
|
2333
|
-
/**
|
|
2334
|
-
* This is a web only prop and has no effect on react-native.
|
|
2335
|
-
*/
|
|
2336
|
-
htmlTitle?: undefined;
|
|
2337
|
-
};
|
|
2338
|
-
web: {
|
|
2339
|
-
/**
|
|
2340
|
-
* This is a react-native only prop and has no effect on web.
|
|
2341
|
-
*/
|
|
2342
|
-
hitSlop?: undefined;
|
|
2343
|
-
/**
|
|
2344
|
-
* The title of the link which is displayed as a tooltip.
|
|
2345
|
-
*/
|
|
2346
|
-
htmlTitle?: string;
|
|
2347
|
-
};
|
|
2348
|
-
}>;
|
|
2349
|
-
declare type LinkWithoutIconProps = LinkCommonProps & {
|
|
2350
|
-
icon?: undefined;
|
|
2351
|
-
children: StringChildrenType;
|
|
2352
|
-
};
|
|
2353
|
-
declare type LinkWithIconProps = LinkCommonProps & {
|
|
2354
|
-
icon: IconComponent$1;
|
|
2355
|
-
children?: StringChildrenType;
|
|
2356
|
-
};
|
|
2357
|
-
declare type LinkPropsWithOrWithoutIcon = LinkWithIconProps | LinkWithoutIconProps;
|
|
2358
|
-
declare type LinkAnchorVariantProps = LinkPropsWithOrWithoutIcon & {
|
|
2359
|
-
variant?: 'anchor';
|
|
2360
|
-
href?: string;
|
|
2361
|
-
target?: string;
|
|
2362
|
-
rel?: string;
|
|
2363
|
-
isDisabled?: undefined;
|
|
2364
|
-
};
|
|
2365
|
-
declare type LinkButtonVariantProps = LinkPropsWithOrWithoutIcon & {
|
|
2366
|
-
variant?: 'button';
|
|
2367
|
-
isDisabled?: boolean;
|
|
2368
|
-
href?: undefined;
|
|
2369
|
-
target?: undefined;
|
|
2370
|
-
rel?: undefined;
|
|
2371
|
-
};
|
|
2372
|
-
declare type LinkProps = LinkAnchorVariantProps | LinkButtonVariantProps;
|
|
2373
|
-
declare const Link: ({ children, icon, iconPosition, isDisabled, onClick, variant, href, target, rel, accessibilityLabel, size, testID, hitSlop, htmlTitle, ...styledProps }: LinkProps) => ReactElement;
|
|
2374
|
-
|
|
2375
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
type BladeElementRef = Platform.Select<{
|
|
2379
|
-
web: Pick<HTMLElement, 'focus' | 'scrollIntoView'> | Pick<View, 'focus'>;
|
|
2380
|
-
native: React.MutableRefObject<any>;
|
|
2381
|
-
}>;
|
|
2382
|
-
|
|
2383
|
-
declare type ButtonCommonProps = {
|
|
2384
|
-
variant?: 'primary' | 'secondary' | 'tertiary';
|
|
2385
|
-
size?: 'xsmall' | 'small' | 'medium' | 'large';
|
|
2386
|
-
iconPosition?: 'left' | 'right';
|
|
2387
|
-
isDisabled?: boolean;
|
|
2388
|
-
isFullWidth?: boolean;
|
|
2389
|
-
isLoading?: boolean;
|
|
2390
|
-
accessibilityLabel?: string;
|
|
2391
|
-
type?: 'button' | 'reset' | 'submit';
|
|
2392
|
-
onClick?: Platform.Select<{
|
|
2393
|
-
native: (event: GestureResponderEvent) => void;
|
|
2394
|
-
web: (event: React__default.MouseEvent<HTMLButtonElement>) => void;
|
|
2395
|
-
}>;
|
|
2396
|
-
} & TestID & StyledPropsBlade;
|
|
2397
|
-
declare type ButtonWithoutIconProps = ButtonCommonProps & {
|
|
2398
|
-
icon?: undefined;
|
|
2399
|
-
children: StringChildrenType;
|
|
2400
|
-
};
|
|
2401
|
-
declare type ButtonWithIconProps = ButtonCommonProps & {
|
|
2402
|
-
icon: IconComponent$1;
|
|
2403
|
-
children?: StringChildrenType;
|
|
2404
|
-
};
|
|
2405
|
-
declare type ButtonProps = ButtonWithoutIconProps | ButtonWithIconProps;
|
|
2406
|
-
declare const Button: React__default.ForwardRefExoticComponent<ButtonProps & React__default.RefAttributes<BladeElementRef>>;
|
|
2407
|
-
|
|
2408
|
-
type FeedbackColors$1 = `feedback.text.${DotNotationColorStringToken<
|
|
2409
|
-
Theme$1['colors']['feedback']['text']
|
|
2410
|
-
>}`;
|
|
2411
|
-
type FeedbackActionColors$1 = `feedback.${Feedback}.action.text.${DotNotationColorStringToken<
|
|
2412
|
-
Theme$1['colors']['feedback'][Feedback]['action']['text']
|
|
2413
|
-
>}`;
|
|
2414
|
-
type SurfaceColors$1 = `surface.text.${DotNotationColorStringToken<
|
|
2415
|
-
Theme$1['colors']['surface']['text']
|
|
2416
|
-
>}`;
|
|
2417
|
-
type ActionColors$1 = `action.text.${DotNotationColorStringToken<Theme$1['colors']['action']['text']>}`;
|
|
2418
|
-
type BadgeTextColors$1 = `badge.text.${DotNotationColorStringToken<
|
|
2419
|
-
Theme$1['colors']['badge']['text']
|
|
2420
|
-
>}`;
|
|
2421
|
-
|
|
2422
|
-
type BaseTextProps$1 = {
|
|
2423
|
-
id?: string;
|
|
2424
|
-
color?: ActionColors$1 | FeedbackColors$1 | SurfaceColors$1 | FeedbackActionColors$1 | BadgeTextColors$1;
|
|
2425
|
-
fontFamily?: keyof Theme$1['typography']['fonts']['family'];
|
|
2426
|
-
fontSize?: keyof Theme$1['typography']['fonts']['size'];
|
|
2427
|
-
fontWeight?: keyof Theme$1['typography']['fonts']['weight'];
|
|
2428
|
-
fontStyle?: 'italic' | 'normal';
|
|
2429
|
-
textDecorationLine?: 'line-through' | 'none' | 'underline';
|
|
2430
|
-
lineHeight?: keyof Theme$1['typography']['lineHeights'];
|
|
2431
|
-
/**
|
|
2432
|
-
* Web only
|
|
2433
|
-
*/
|
|
2434
|
-
as?: 'code' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';
|
|
2435
|
-
textAlign?: 'center' | 'justify' | 'left' | 'right';
|
|
2436
|
-
truncateAfterLines?: number;
|
|
2437
|
-
className?: string;
|
|
2438
|
-
style?: React.CSSProperties;
|
|
2439
|
-
children: React.ReactNode;
|
|
2440
|
-
accessibilityProps?: Partial<AccessibilityProps>;
|
|
2441
|
-
/**
|
|
2442
|
-
* React Native only
|
|
2443
|
-
*/
|
|
2444
|
-
numberOfLines?: number;
|
|
2445
|
-
componentName?: 'text' | 'title' | 'heading' | 'code';
|
|
2446
|
-
} & TestID &
|
|
2447
|
-
StyledPropsBlade;
|
|
2448
|
-
|
|
2449
|
-
/* eslint-disable @typescript-eslint/no-unnecessary-type-assertion */
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
type TextCommonProps$1 = {
|
|
2453
|
-
type?: TextTypes;
|
|
2454
|
-
contrast?: ColorContrastTypes;
|
|
2455
|
-
truncateAfterLines?: number;
|
|
2456
|
-
children: React.ReactNode;
|
|
2457
|
-
weight?: keyof Theme$1['typography']['fonts']['weight'];
|
|
2458
|
-
/**
|
|
2459
|
-
* **For Internal use only**: Sets the color of the Text component
|
|
2460
|
-
*/
|
|
2461
|
-
color?: BaseTextProps$1['color'];
|
|
2462
|
-
textAlign?: BaseTextProps$1['textAlign'];
|
|
2463
|
-
} & TestID &
|
|
2464
|
-
StyledPropsBlade;
|
|
2465
|
-
|
|
2466
|
-
type TextVariant$1 = 'body' | 'caption';
|
|
2467
|
-
|
|
2468
|
-
type TextBodyVariant$1 = TextCommonProps$1 & {
|
|
2469
|
-
variant?: Extract<TextVariant$1, 'body'>;
|
|
2470
|
-
size?: 'xsmall' | 'small' | 'medium' | 'large';
|
|
2471
|
-
};
|
|
2472
|
-
|
|
2473
|
-
type TextCaptionVariant$1 = TextCommonProps$1 & {
|
|
2474
|
-
variant?: Extract<TextVariant$1, 'caption'>;
|
|
2475
|
-
size?: 'medium';
|
|
2476
|
-
};
|
|
2477
|
-
|
|
2478
|
-
/**
|
|
2479
|
-
* Conditionally changing props based on variant.
|
|
2480
|
-
* Overloads or union gives wrong intellisense.
|
|
2481
|
-
*/
|
|
2482
|
-
type TextProps$1<T> = T extends {
|
|
2483
|
-
variant: infer Variant;
|
|
2484
|
-
}
|
|
2485
|
-
? Variant extends 'caption'
|
|
2486
|
-
? TextCaptionVariant$1
|
|
2487
|
-
: Variant extends 'body'
|
|
2488
|
-
? TextBodyVariant$1
|
|
2489
|
-
: T
|
|
2490
|
-
: T;
|
|
2491
|
-
|
|
2492
|
-
type CounterProps$1 = {
|
|
2493
|
-
/**
|
|
2494
|
-
* Sets the value for the counter.
|
|
2495
|
-
*/
|
|
2496
|
-
value: number;
|
|
2497
|
-
/**
|
|
2498
|
-
* Sets the max value for the counter.
|
|
2499
|
-
* If value exceedes `max` it will render `value+`
|
|
2500
|
-
*/
|
|
2501
|
-
max?: number;
|
|
2502
|
-
/**
|
|
2503
|
-
* Sets the intent of the counter.
|
|
2504
|
-
*
|
|
2505
|
-
* @default 'neutral'
|
|
2506
|
-
*/
|
|
2507
|
-
intent?: Feedback;
|
|
2508
|
-
/**
|
|
2509
|
-
* Sets the contrast of the counter.
|
|
2510
|
-
*
|
|
2511
|
-
* @default 'low'
|
|
2512
|
-
*/
|
|
2513
|
-
contrast?: 'high' | 'low';
|
|
2514
|
-
/**
|
|
2515
|
-
* Sets the size of the counter.
|
|
2516
|
-
*
|
|
2517
|
-
* @default 'medium'
|
|
2518
|
-
*/
|
|
2519
|
-
size?: 'small' | 'medium' | 'large';
|
|
2520
|
-
} & TestID &
|
|
2521
|
-
StyledPropsBlade;
|
|
2522
|
-
|
|
2523
|
-
declare const CardHeaderIcon: ({ icon }: {
|
|
2524
|
-
icon: IconComponent$1;
|
|
2525
|
-
}) => React__default.ReactElement;
|
|
2526
|
-
declare const CardHeaderCounter: (props: CounterProps$1) => React__default.ReactElement;
|
|
2527
|
-
declare const CardHeaderBadge: (props: BadgeProps) => React__default.ReactElement;
|
|
2528
|
-
declare const CardHeaderText: (props: TextProps$1<{
|
|
2529
|
-
variant: TextVariant$1;
|
|
2530
|
-
}>) => React__default.ReactElement;
|
|
2531
|
-
declare const CardHeaderLink: (props: LinkProps) => React__default.ReactElement;
|
|
2532
|
-
declare type CardHeaderIconButtonProps = Omit<ButtonProps, 'variant' | 'size' | 'iconPosition' | 'isFullWidth' | 'children'> & {
|
|
2533
|
-
icon: IconComponent$1;
|
|
2534
|
-
};
|
|
2535
|
-
declare const CardHeaderIconButton: (props: CardHeaderIconButtonProps) => React__default.ReactElement;
|
|
2536
|
-
declare type CardHeaderProps = {
|
|
2537
|
-
children?: React__default.ReactNode;
|
|
2538
|
-
} & TestID;
|
|
2539
|
-
declare const CardHeader: ({ children, testID }: CardHeaderProps) => React__default.ReactElement;
|
|
2540
|
-
declare type CardHeaderLeadingProps = {
|
|
2541
|
-
title: string;
|
|
2542
|
-
subtitle?: string;
|
|
2543
|
-
/**
|
|
2544
|
-
* prefix element of Card
|
|
2545
|
-
*
|
|
2546
|
-
* Accepts: `CardHeaderIcon` component
|
|
2547
|
-
*/
|
|
2548
|
-
prefix?: React__default.ReactNode;
|
|
2549
|
-
/**
|
|
2550
|
-
* suffix element of Card
|
|
2551
|
-
*
|
|
2552
|
-
* Accepts: `CardHeaderCounter` component
|
|
2553
|
-
*/
|
|
2554
|
-
suffix?: React__default.ReactNode;
|
|
2555
|
-
};
|
|
2556
|
-
declare const CardHeaderLeading: ({ title, subtitle, prefix, suffix, }: CardHeaderLeadingProps) => React__default.ReactElement;
|
|
2557
|
-
declare type CardHeaderTrailingProps = {
|
|
2558
|
-
/**
|
|
2559
|
-
* Renders a visual ornament in card header trailing section
|
|
2560
|
-
*
|
|
2561
|
-
* Accepts: `CardHeaderLink`, `CardHeaderText`, `CardHeaderIconButton`, `CardHeaderBadge`
|
|
2562
|
-
*/
|
|
2563
|
-
visual?: React__default.ReactNode;
|
|
2564
|
-
};
|
|
2565
|
-
declare const CardHeaderTrailing: ({ visual }: CardHeaderTrailingProps) => React__default.ReactElement;
|
|
2566
|
-
|
|
2567
|
-
declare type CardFooterAction = Pick<ButtonProps, 'type' | 'accessibilityLabel' | 'isLoading' | 'isDisabled' | 'icon' | 'iconPosition' | 'onClick'> & {
|
|
2568
|
-
text: ButtonProps['children'];
|
|
2569
|
-
};
|
|
2570
|
-
declare type CardFooterProps = {
|
|
2571
|
-
children?: React__default.ReactNode;
|
|
2572
|
-
} & TestID;
|
|
2573
|
-
declare const CardFooter: ({ children, testID }: CardFooterProps) => React__default.ReactElement;
|
|
2574
|
-
declare type CardFooterLeadingProps = {
|
|
2575
|
-
title?: string;
|
|
2576
|
-
subtitle?: string;
|
|
2577
|
-
};
|
|
2578
|
-
declare const CardFooterLeading: ({ title, subtitle }: CardFooterLeadingProps) => React__default.ReactElement;
|
|
2579
|
-
declare type CardFooterTrailingProps = {
|
|
2580
|
-
actions?: {
|
|
2581
|
-
primary?: CardFooterAction;
|
|
2582
|
-
secondary?: CardFooterAction;
|
|
2583
|
-
};
|
|
2584
|
-
};
|
|
2585
|
-
declare const CardFooterTrailing: ({ actions }: CardFooterTrailingProps) => React__default.ReactElement;
|
|
2586
|
-
|
|
2587
|
-
declare type IconButtonProps = {
|
|
2588
|
-
/**
|
|
2589
|
-
* Icon component to be rendered, eg. `CloseIcon`
|
|
2590
|
-
*/
|
|
2591
|
-
icon: IconComponent$1;
|
|
2592
|
-
onClick: () => void;
|
|
2593
|
-
/**
|
|
2594
|
-
* Icon size
|
|
2595
|
-
*
|
|
2596
|
-
* @default 'medium'
|
|
2597
|
-
*/
|
|
2598
|
-
size?: 'medium' | 'large';
|
|
2599
|
-
/**
|
|
2600
|
-
* Icon contrast
|
|
2601
|
-
*
|
|
2602
|
-
* @default 'low'
|
|
2603
|
-
*/
|
|
2604
|
-
contrast?: 'low' | 'high';
|
|
2605
|
-
/**
|
|
2606
|
-
* Sets aria-label to help users know what the action does, eg 'Dismiss alert'
|
|
2607
|
-
*/
|
|
2608
|
-
accessibilityLabel: string;
|
|
2609
|
-
};
|
|
2610
|
-
declare const IconButton: React__default.ForwardRefExoticComponent<IconButtonProps & React__default.RefAttributes<BladeElementRef>>;
|
|
2611
|
-
|
|
2612
|
-
declare type CounterProps = {
|
|
2613
|
-
/**
|
|
2614
|
-
* Sets the value for the counter.
|
|
2615
|
-
*/
|
|
2616
|
-
value: number;
|
|
2617
|
-
/**
|
|
2618
|
-
* Sets the max value for the counter.
|
|
2619
|
-
* If value exceedes `max` it will render `value+`
|
|
2620
|
-
*/
|
|
2621
|
-
max?: number;
|
|
2622
|
-
/**
|
|
2623
|
-
* Sets the intent of the counter.
|
|
2624
|
-
*
|
|
2625
|
-
* @default 'neutral'
|
|
2626
|
-
*/
|
|
2627
|
-
intent?: Feedback;
|
|
2628
|
-
/**
|
|
2629
|
-
* Sets the contrast of the counter.
|
|
2630
|
-
*
|
|
2631
|
-
* @default 'low'
|
|
2632
|
-
*/
|
|
2633
|
-
contrast?: 'high' | 'low';
|
|
2634
|
-
/**
|
|
2635
|
-
* Sets the size of the counter.
|
|
2636
|
-
*
|
|
2637
|
-
* @default 'medium'
|
|
2638
|
-
*/
|
|
2639
|
-
size?: 'small' | 'medium' | 'large';
|
|
2640
|
-
} & TestID & StyledPropsBlade;
|
|
2641
|
-
declare const Counter: ({ value, max, intent, contrast, size, testID, ...styledProps }: CounterProps) => React.ReactElement;
|
|
2642
|
-
|
|
2643
|
-
declare type OnChange = ({ isChecked, event, value, }: {
|
|
2644
|
-
isChecked: boolean;
|
|
2645
|
-
event?: React__default.ChangeEvent;
|
|
2646
|
-
value?: string;
|
|
2647
|
-
}) => void;
|
|
2648
|
-
declare type CheckboxProps = {
|
|
2649
|
-
/**
|
|
2650
|
-
* If `true`, The checkbox will be checked. This also makes the checkbox controlled
|
|
2651
|
-
* Use `onChange` to update its value
|
|
2652
|
-
*
|
|
2653
|
-
* @default false
|
|
2654
|
-
*/
|
|
2655
|
-
isChecked?: boolean;
|
|
2656
|
-
/**
|
|
2657
|
-
* If `true`, the checkbox will be initially checked. This also makes the checkbox uncontrolled
|
|
2658
|
-
*
|
|
2659
|
-
* @default false
|
|
2660
|
-
*/
|
|
2661
|
-
defaultChecked?: boolean;
|
|
2662
|
-
/**
|
|
2663
|
-
* The callback invoked when the checked state of the `Checkbox` changes.
|
|
2664
|
-
*/
|
|
2665
|
-
onChange?: OnChange;
|
|
2666
|
-
/**
|
|
2667
|
-
* Sets the label of the checkbox
|
|
2668
|
-
*/
|
|
2669
|
-
children: React__default.ReactNode;
|
|
2670
|
-
/**
|
|
2671
|
-
* Help text for the checkbox
|
|
2672
|
-
*/
|
|
2673
|
-
helpText?: string;
|
|
2674
|
-
/**
|
|
2675
|
-
* Error text for the checkbox
|
|
2676
|
-
*
|
|
2677
|
-
* Renders when `validationState` is set to 'error'
|
|
2678
|
-
*/
|
|
2679
|
-
errorText?: string;
|
|
2680
|
-
/**
|
|
2681
|
-
* If `true`, the checkbox will be indeterminate.
|
|
2682
|
-
* This does not modify the isChecked property.
|
|
2683
|
-
*
|
|
2684
|
-
* @default false
|
|
2685
|
-
*/
|
|
2686
|
-
isIndeterminate?: boolean;
|
|
2687
|
-
/**
|
|
2688
|
-
* The name of the input field in a checkbox
|
|
2689
|
-
* (Useful for form submission).
|
|
2690
|
-
*/
|
|
2691
|
-
name?: string;
|
|
2692
|
-
/**
|
|
2693
|
-
* The value to be used in the checkbox input.
|
|
2694
|
-
* This is the value that will be returned on form submission.
|
|
2695
|
-
*/
|
|
2696
|
-
value?: string;
|
|
2697
|
-
/**
|
|
2698
|
-
* If `true`, the checkbox will be disabled
|
|
2699
|
-
*
|
|
2700
|
-
* @default false
|
|
2701
|
-
*/
|
|
2702
|
-
isDisabled?: boolean;
|
|
2703
|
-
/**
|
|
2704
|
-
* If `true`, the checkbox input is marked as required,
|
|
2705
|
-
* and `required` attribute will be added
|
|
2706
|
-
*
|
|
2707
|
-
* @default false
|
|
2708
|
-
*/
|
|
2709
|
-
isRequired?: boolean;
|
|
2710
|
-
/**
|
|
2711
|
-
* If `error`, the checkbox input is marked as invalid,
|
|
2712
|
-
* and `invalid` attribute will be added
|
|
2713
|
-
*/
|
|
2714
|
-
validationState?: 'error' | 'none';
|
|
2715
|
-
/**
|
|
2716
|
-
* Size of the checkbox
|
|
2717
|
-
*
|
|
2718
|
-
* @default "medium"
|
|
2719
|
-
*/
|
|
2720
|
-
size?: 'small' | 'medium';
|
|
2721
|
-
/**
|
|
2722
|
-
* Sets the tab-index property on checkbox element
|
|
2723
|
-
*
|
|
2724
|
-
*/
|
|
2725
|
-
tabIndex?: number;
|
|
2726
|
-
} & TestID & StyledPropsBlade;
|
|
2727
|
-
declare const Checkbox: React__default.ForwardRefExoticComponent<{
|
|
2728
|
-
/**
|
|
2729
|
-
* If `true`, The checkbox will be checked. This also makes the checkbox controlled
|
|
2730
|
-
* Use `onChange` to update its value
|
|
2731
|
-
*
|
|
2732
|
-
* @default false
|
|
2733
|
-
*/
|
|
2734
|
-
isChecked?: boolean | undefined;
|
|
2735
|
-
/**
|
|
2736
|
-
* If `true`, the checkbox will be initially checked. This also makes the checkbox uncontrolled
|
|
2737
|
-
*
|
|
2738
|
-
* @default false
|
|
2739
|
-
*/
|
|
2740
|
-
defaultChecked?: boolean | undefined;
|
|
2741
|
-
/**
|
|
2742
|
-
* The callback invoked when the checked state of the `Checkbox` changes.
|
|
2743
|
-
*/
|
|
2744
|
-
onChange?: OnChange | undefined;
|
|
2745
|
-
/**
|
|
2746
|
-
* Sets the label of the checkbox
|
|
2747
|
-
*/
|
|
2748
|
-
children: React__default.ReactNode;
|
|
2749
|
-
/**
|
|
2750
|
-
* Help text for the checkbox
|
|
2751
|
-
*/
|
|
2752
|
-
helpText?: string | undefined;
|
|
2753
|
-
/**
|
|
2754
|
-
* Error text for the checkbox
|
|
2755
|
-
*
|
|
2756
|
-
* Renders when `validationState` is set to 'error'
|
|
2757
|
-
*/
|
|
2758
|
-
errorText?: string | undefined;
|
|
2759
|
-
/**
|
|
2760
|
-
* If `true`, the checkbox will be indeterminate.
|
|
2761
|
-
* This does not modify the isChecked property.
|
|
2762
|
-
*
|
|
2763
|
-
* @default false
|
|
2764
|
-
*/
|
|
2765
|
-
isIndeterminate?: boolean | undefined;
|
|
2766
|
-
/**
|
|
2767
|
-
* The name of the input field in a checkbox
|
|
2768
|
-
* (Useful for form submission).
|
|
2769
|
-
*/
|
|
2770
|
-
name?: string | undefined;
|
|
2771
|
-
/**
|
|
2772
|
-
* The value to be used in the checkbox input.
|
|
2773
|
-
* This is the value that will be returned on form submission.
|
|
2774
|
-
*/
|
|
2775
|
-
value?: string | undefined;
|
|
2776
|
-
/**
|
|
2777
|
-
* If `true`, the checkbox will be disabled
|
|
2778
|
-
*
|
|
2779
|
-
* @default false
|
|
2780
|
-
*/
|
|
2781
|
-
isDisabled?: boolean | undefined;
|
|
2782
|
-
/**
|
|
2783
|
-
* If `true`, the checkbox input is marked as required,
|
|
2784
|
-
* and `required` attribute will be added
|
|
2785
|
-
*
|
|
2786
|
-
* @default false
|
|
2787
|
-
*/
|
|
2788
|
-
isRequired?: boolean | undefined;
|
|
2789
|
-
/**
|
|
2790
|
-
* If `error`, the checkbox input is marked as invalid,
|
|
2791
|
-
* and `invalid` attribute will be added
|
|
2792
|
-
*/
|
|
2793
|
-
validationState?: "none" | "error" | undefined;
|
|
2794
|
-
/**
|
|
2795
|
-
* Size of the checkbox
|
|
2796
|
-
*
|
|
2797
|
-
* @default "medium"
|
|
2798
|
-
*/
|
|
2799
|
-
size?: "small" | "medium" | undefined;
|
|
2800
|
-
/**
|
|
2801
|
-
* Sets the tab-index property on checkbox element
|
|
2802
|
-
*
|
|
2803
|
-
*/
|
|
2804
|
-
tabIndex?: number | undefined;
|
|
2805
|
-
} & TestID & Partial<Omit<MakeObjectResponsive<{
|
|
2806
|
-
margin: SpacingValueType | ArrayOfMaxLength4<SpacingValueType>;
|
|
2807
|
-
marginX: SpacingValueType;
|
|
2808
|
-
marginY: SpacingValueType;
|
|
2809
|
-
marginTop: SpacingValueType;
|
|
2810
|
-
marginRight: SpacingValueType;
|
|
2811
|
-
marginBottom: SpacingValueType;
|
|
2812
|
-
marginLeft: SpacingValueType;
|
|
2813
|
-
}> & Pick<MakeObjectResponsive<{
|
|
2814
|
-
gap: SpacingValueType;
|
|
2815
|
-
rowGap: SpacingValueType;
|
|
2816
|
-
columnGap: SpacingValueType;
|
|
2817
|
-
flex: string | number;
|
|
2818
|
-
} & PickIfExist$1<react_native.ViewStyle, "alignContent" | "alignItems" | "alignSelf" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "justifyContent" | "justifyItems" | "justifySelf" | "order" | "placeSelf"> & {
|
|
2819
|
-
__brand__?: "platform-native" | undefined;
|
|
2820
|
-
}>, "alignSelf" | "justifySelf" | "order" | "placeSelf"> & MakeObjectResponsive<{
|
|
2821
|
-
top: SpacingValueType;
|
|
2822
|
-
right: SpacingValueType;
|
|
2823
|
-
bottom: SpacingValueType;
|
|
2824
|
-
left: SpacingValueType;
|
|
2825
|
-
} & PickIfExist$1<react_native.ViewStyle, "position" | "zIndex"> & {
|
|
2826
|
-
__brand__?: "platform-native" | undefined;
|
|
2827
|
-
}> & Pick<MakeObjectResponsive<PickCSSByPlatform$1<"grid" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "gridArea" | "gridColumn" | "gridRow" | "gridTemplate">>, "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridArea" | "gridColumn" | "gridRow">, "__brand__">> & React__default.RefAttributes<BladeElementRef>>;
|
|
2828
|
-
|
|
2829
|
-
declare type CheckboxGroupProps = {
|
|
2830
|
-
/**
|
|
2831
|
-
* Accepts multiple checkboxes as children
|
|
2832
|
-
*/
|
|
2833
|
-
children: React__default.ReactNode;
|
|
2834
|
-
/**
|
|
2835
|
-
* Help text of the checkbox group
|
|
2836
|
-
*/
|
|
2837
|
-
helpText?: string;
|
|
2838
|
-
/**
|
|
2839
|
-
* Error text of the checkbox group
|
|
2840
|
-
* Renders when `validationState` is set to 'error'
|
|
2841
|
-
*
|
|
2842
|
-
* Overrides helpText
|
|
2843
|
-
*/
|
|
2844
|
-
errorText?: string;
|
|
2845
|
-
/**
|
|
2846
|
-
* Sets the error state of the CheckboxGroup
|
|
2847
|
-
* If set to `error` it will render the `errorText` of the group,
|
|
2848
|
-
* and propagate `invalid` prop to every checkbox
|
|
2849
|
-
*/
|
|
2850
|
-
validationState?: 'error' | 'none';
|
|
2851
|
-
/**
|
|
2852
|
-
* Renders a necessity indicator after CheckboxGroup label
|
|
2853
|
-
*
|
|
2854
|
-
* If set to `undefined` it renders nothing.
|
|
2855
|
-
*/
|
|
2856
|
-
necessityIndicator?: 'required' | 'optional' | 'none';
|
|
2857
|
-
/**
|
|
2858
|
-
* Sets the disabled state of the CheckboxGroup
|
|
2859
|
-
* If set to `true` it propagate down to all the checkboxes
|
|
2860
|
-
*
|
|
2861
|
-
* @default false
|
|
2862
|
-
*/
|
|
2863
|
-
isDisabled?: boolean;
|
|
2864
|
-
/**
|
|
2865
|
-
* Renders the label of the checkbox group
|
|
2866
|
-
*/
|
|
2867
|
-
label: string;
|
|
2868
|
-
/**
|
|
2869
|
-
* Sets the position of the label
|
|
2870
|
-
*
|
|
2871
|
-
* @default 'top'
|
|
2872
|
-
*/
|
|
2873
|
-
labelPosition?: 'top' | 'left';
|
|
2874
|
-
/**
|
|
2875
|
-
* Initial value of the checkbox group
|
|
2876
|
-
*/
|
|
2877
|
-
defaultValue?: string[];
|
|
2878
|
-
/**
|
|
2879
|
-
* value of the checkbox group
|
|
2880
|
-
*
|
|
2881
|
-
* Use `onChange` to update its value
|
|
2882
|
-
*/
|
|
2883
|
-
value?: string[];
|
|
2884
|
-
/**
|
|
2885
|
-
* The callback invoked when any of the checkbox's state changes
|
|
2886
|
-
*/
|
|
2887
|
-
onChange?: ({ name, values }: {
|
|
2888
|
-
name: string;
|
|
2889
|
-
values: string[];
|
|
2890
|
-
}) => void;
|
|
2891
|
-
/**
|
|
2892
|
-
* The name of the input field in a checkbox
|
|
2893
|
-
* (Useful for form submission).
|
|
2894
|
-
*/
|
|
2895
|
-
name?: string;
|
|
2896
|
-
/**
|
|
2897
|
-
* Size of the checkbox
|
|
2898
|
-
*
|
|
2899
|
-
* @default "medium"
|
|
2900
|
-
*/
|
|
2901
|
-
size?: 'small' | 'medium';
|
|
2902
|
-
} & TestID & StyledPropsBlade;
|
|
2903
|
-
declare const CheckboxGroup: ({ children, label, helpText, isDisabled, necessityIndicator, labelPosition, validationState, errorText, name, defaultValue, onChange, value, size, testID, ...styledProps }: CheckboxGroupProps) => React__default.ReactElement;
|
|
2904
|
-
|
|
2905
|
-
declare type DropdownProps = {
|
|
2906
|
-
selectionType?: 'single' | 'multiple';
|
|
2907
|
-
onDismiss?: () => void;
|
|
2908
|
-
children: React__default.ReactNode[];
|
|
2909
|
-
} & StyledPropsBlade;
|
|
2910
|
-
declare const Dropdown: ({ children, selectionType, onDismiss, ...styledProps }: DropdownProps) => JSX.Element;
|
|
2911
|
-
|
|
2912
|
-
declare type DropdownOverlayProps = {
|
|
2913
|
-
children: React__default.ReactNode;
|
|
2914
|
-
} & TestID;
|
|
2915
|
-
|
|
2916
|
-
declare const DropdownOverlay: ({ children, testID }: DropdownOverlayProps) => JSX.Element;
|
|
2917
|
-
|
|
2918
|
-
declare const ArrowDownIcon: IconComponent;
|
|
2919
|
-
|
|
2920
|
-
declare const ArrowLeftIcon: IconComponent;
|
|
2921
|
-
|
|
2922
|
-
declare const ArrowRightIcon: IconComponent;
|
|
2923
|
-
|
|
2924
|
-
declare const ArrowUpRightIcon: IconComponent;
|
|
2925
|
-
|
|
2926
|
-
declare const ArrowUpIcon: IconComponent;
|
|
2927
|
-
|
|
2928
|
-
declare const Attachment: ({ size, color, ...styledProps }: IconProps) => ReactElement;
|
|
2929
|
-
|
|
2930
|
-
declare const CheckIcon: ({ size, color, ...styledProps }: IconProps) => ReactElement;
|
|
2931
|
-
|
|
2932
|
-
declare const ChevronDownIcon: IconComponent;
|
|
2933
|
-
|
|
2934
|
-
declare const ChevronLeftIcon: IconComponent;
|
|
2935
|
-
|
|
2936
|
-
declare const ChevronRightIcon: IconComponent;
|
|
2937
|
-
|
|
2938
|
-
declare const ChevronUpIcon: IconComponent;
|
|
2939
|
-
|
|
2940
|
-
declare const CloseIcon: IconComponent;
|
|
2941
|
-
|
|
2942
|
-
declare const CreditCardIcon: IconComponent;
|
|
2943
|
-
|
|
2944
|
-
declare const DollarIcon: IconComponent;
|
|
2945
|
-
|
|
2946
|
-
declare const DownloadIcon: ({ size, color, ...styledProps }: IconProps) => ReactElement;
|
|
2947
|
-
|
|
2948
|
-
declare const EditIcon: ({ size, color, ...styledProps }: IconProps) => ReactElement;
|
|
2949
|
-
|
|
2950
|
-
declare const EyeIcon: IconComponent;
|
|
2951
|
-
|
|
2952
|
-
declare const EyeOffIcon: IconComponent;
|
|
2953
|
-
|
|
2954
|
-
declare const FileTextIcon: IconComponent;
|
|
2955
|
-
|
|
2956
|
-
declare const HistoryIcon: ({ size, color, ...styledProps }: IconProps) => ReactElement;
|
|
2957
|
-
|
|
2958
|
-
declare const HomeIcon: IconComponent;
|
|
2959
|
-
|
|
2960
|
-
declare const InfoIcon: ({ size, color, ...styledProps }: IconProps) => ReactElement;
|
|
2961
|
-
|
|
2962
|
-
declare const LinkIcon: IconComponent;
|
|
2963
|
-
|
|
2964
|
-
declare const LockIcon: IconComponent;
|
|
2965
|
-
|
|
2966
|
-
declare const PauseIcon: ({ size, color, ...styledProps }: IconProps) => ReactElement;
|
|
2967
|
-
|
|
2968
|
-
declare const PlusIcon: ({ size, color, ...styledProps }: IconProps) => ReactElement;
|
|
2969
|
-
|
|
2970
|
-
declare const RupeeIcon: IconComponent;
|
|
2971
|
-
|
|
2972
|
-
declare const SearchIcon: IconComponent;
|
|
2973
|
-
|
|
2974
|
-
declare const SettingsIcon: IconComponent;
|
|
2975
|
-
|
|
2976
|
-
declare const SlashIcon: IconComponent;
|
|
2977
|
-
|
|
2978
|
-
declare const BankIcon: IconComponent;
|
|
2979
|
-
|
|
2980
|
-
declare const TrashIcon: ({ size, color, ...styledProps }: IconProps) => ReactElement;
|
|
2981
|
-
|
|
2982
|
-
declare const AlertTriangleIcon$1: ({ size, color, ...styledProps }: IconProps) => ReactElement;
|
|
2983
|
-
|
|
2984
|
-
declare const AlertTriangleIcon: ({ size, color, ...styledProps }: IconProps) => ReactElement;
|
|
2985
|
-
|
|
2986
|
-
declare const CheckCircleIcon: ({ size, color, ...styledProps }: IconProps) => ReactElement;
|
|
2987
|
-
|
|
2988
|
-
declare const MinusIcon: ({ size, color, ...styledProps }: IconProps) => ReactElement;
|
|
2989
|
-
|
|
2990
|
-
declare const TrendingUpIcon: IconComponent;
|
|
2991
|
-
|
|
2992
|
-
declare const TrendingDownIcon: IconComponent;
|
|
2993
|
-
|
|
2994
|
-
declare const UsersIcon: IconComponent;
|
|
2995
|
-
|
|
2996
|
-
declare const HelpCircleIcon: IconComponent;
|
|
2997
|
-
|
|
2998
|
-
declare const ExternalLinkIcon: IconComponent;
|
|
2999
|
-
|
|
3000
|
-
declare const MailIcon: IconComponent;
|
|
3001
|
-
|
|
3002
|
-
declare const AlertCircleIcon: IconComponent;
|
|
3003
|
-
|
|
3004
|
-
declare const AlertOnlyIcon: IconComponent;
|
|
3005
|
-
|
|
3006
|
-
declare const QRCodeIcon: IconComponent;
|
|
3007
|
-
|
|
3008
|
-
declare const BellIcon: IconComponent;
|
|
3009
|
-
|
|
3010
|
-
declare const BellOffIcon: IconComponent;
|
|
3011
|
-
|
|
3012
|
-
declare const BookmarkIcon: IconComponent;
|
|
3013
|
-
|
|
3014
|
-
declare const CheckSquareIcon: IconComponent;
|
|
3015
|
-
|
|
3016
|
-
declare const ClipboardIcon: IconComponent;
|
|
3017
|
-
|
|
3018
|
-
declare const CommandIcon: IconComponent;
|
|
3019
|
-
|
|
3020
|
-
declare const CopyIcon: IconComponent;
|
|
3021
|
-
|
|
3022
|
-
declare const CropIcon: IconComponent;
|
|
3023
|
-
|
|
3024
|
-
declare const CutIcon: IconComponent;
|
|
3025
|
-
|
|
3026
|
-
declare const DownloadCloudIcon: IconComponent;
|
|
3027
|
-
|
|
3028
|
-
declare const EditInlineIcon: IconComponent;
|
|
3029
|
-
|
|
3030
|
-
declare const EditComposeIcon: IconComponent;
|
|
3031
|
-
|
|
3032
|
-
declare const FileIcon: IconComponent;
|
|
3033
|
-
|
|
3034
|
-
declare const FilePlusIcon: IconComponent;
|
|
3035
|
-
|
|
3036
|
-
declare const FileMinusIcon: IconComponent;
|
|
3037
|
-
|
|
3038
|
-
declare const FilterIcon: IconComponent;
|
|
3039
|
-
|
|
3040
|
-
declare const FlagIcon: IconComponent;
|
|
3041
|
-
|
|
3042
|
-
declare const FolderIcon: IconComponent;
|
|
3043
|
-
|
|
3044
|
-
declare const GlobeIcon: IconComponent;
|
|
3045
|
-
|
|
3046
|
-
declare const HashIcon: IconComponent;
|
|
3047
|
-
|
|
3048
|
-
declare const HeartIcon: IconComponent;
|
|
3049
|
-
|
|
3050
|
-
declare const LogInIcon: IconComponent;
|
|
3051
|
-
|
|
3052
|
-
declare const LogOutIcon: IconComponent;
|
|
3053
|
-
|
|
3054
|
-
declare const MaximizeIcon: IconComponent;
|
|
3055
|
-
|
|
3056
|
-
declare const FullScreenEnterIcon: IconComponent;
|
|
3057
|
-
|
|
3058
|
-
declare const FullScreenExitIcon: IconComponent;
|
|
3059
|
-
|
|
3060
|
-
declare const MenuIcon: IconComponent;
|
|
3061
|
-
|
|
3062
|
-
declare const MicIcon: IconComponent;
|
|
3063
|
-
|
|
3064
|
-
declare const MicOffIcon: IconComponent;
|
|
3065
|
-
|
|
3066
|
-
declare const MinimizeIcon: IconComponent;
|
|
3067
|
-
|
|
3068
|
-
declare const MinusSquareIcon: IconComponent;
|
|
3069
|
-
|
|
3070
|
-
declare const MinusCircleIcon: IconComponent;
|
|
3071
|
-
|
|
3072
|
-
declare const MoreVerticalIcon: IconComponent;
|
|
3073
|
-
|
|
3074
|
-
declare const MoreHorizontalIcon: IconComponent;
|
|
3075
|
-
|
|
3076
|
-
declare const MoveIcon: IconComponent;
|
|
3077
|
-
|
|
3078
|
-
declare const PauseCircleIcon: IconComponent;
|
|
3079
|
-
|
|
3080
|
-
declare const PlayIcon: IconComponent;
|
|
3081
|
-
|
|
3082
|
-
declare const PlayCircleIcon: IconComponent;
|
|
3083
|
-
|
|
3084
|
-
declare const PlusCircleIcon: IconComponent;
|
|
3085
|
-
|
|
3086
|
-
declare const PlusSquareIcon: IconComponent;
|
|
3087
|
-
|
|
3088
|
-
declare const PowerIcon: IconComponent;
|
|
3089
|
-
|
|
3090
|
-
declare const RefreshIcon: IconComponent;
|
|
3091
|
-
|
|
3092
|
-
declare const RepeatIcon: IconComponent;
|
|
3093
|
-
|
|
3094
|
-
declare const RotateClockWiseIcon: IconComponent;
|
|
3095
|
-
|
|
3096
|
-
declare const RotateCounterClockWiseIcon: IconComponent;
|
|
3097
|
-
|
|
3098
|
-
declare const SaveIcon: IconComponent;
|
|
3099
|
-
|
|
3100
|
-
declare const ShareIcon: IconComponent;
|
|
3101
|
-
|
|
3102
|
-
declare const ExportIcon: IconComponent;
|
|
3103
|
-
|
|
3104
|
-
declare const ShoppingCartIcon: IconComponent;
|
|
3105
|
-
|
|
3106
|
-
declare const StopCircleIcon: IconComponent;
|
|
3107
|
-
|
|
3108
|
-
declare const SunIcon: IconComponent;
|
|
3109
|
-
|
|
3110
|
-
declare const ToggleLeftIcon: IconComponent;
|
|
3111
|
-
|
|
3112
|
-
declare const ToggleRightIcon: IconComponent;
|
|
3113
|
-
|
|
3114
|
-
declare const ListIcon: IconComponent;
|
|
3115
|
-
|
|
3116
|
-
declare const StarIcon: IconComponent;
|
|
3117
|
-
|
|
3118
|
-
declare const SlidersIcon: IconComponent;
|
|
3119
|
-
|
|
3120
|
-
declare const PaperclipIcon: IconComponent;
|
|
3121
|
-
|
|
3122
|
-
declare const UploadCloudIcon: IconComponent;
|
|
3123
|
-
|
|
3124
|
-
declare const TargetIcon: IconComponent;
|
|
3125
|
-
|
|
3126
|
-
declare const UnlockIcon: IconComponent;
|
|
3127
|
-
|
|
3128
|
-
declare const ThumbsUpIcon: IconComponent;
|
|
3129
|
-
|
|
3130
|
-
declare const ThumbsDownIcon: IconComponent;
|
|
3131
|
-
|
|
3132
|
-
declare const UploadIcon: IconComponent;
|
|
3133
|
-
|
|
3134
|
-
declare const VideoIcon: IconComponent;
|
|
3135
|
-
|
|
3136
|
-
declare const XSquareIcon: IconComponent;
|
|
3137
|
-
|
|
3138
|
-
declare const XCircleIcon: IconComponent;
|
|
3139
|
-
|
|
3140
|
-
declare const ZapIcon: IconComponent;
|
|
3141
|
-
|
|
3142
|
-
declare const ZoomOutIcon: IconComponent;
|
|
3143
|
-
|
|
3144
|
-
declare const ZoomInIcon: IconComponent;
|
|
3145
|
-
|
|
3146
|
-
declare const AlignJustifyIcon: IconComponent;
|
|
3147
|
-
|
|
3148
|
-
declare const AlignRightIcon: IconComponent;
|
|
3149
|
-
|
|
3150
|
-
declare const AlignLeftIcon: IconComponent;
|
|
3151
|
-
|
|
3152
|
-
declare const AlignCenterIcon: IconComponent;
|
|
3153
|
-
|
|
3154
|
-
declare const AnchorIcon: IconComponent;
|
|
3155
|
-
|
|
3156
|
-
declare const BoldIcon: IconComponent;
|
|
3157
|
-
|
|
3158
|
-
declare const ScissorsIcon: IconComponent;
|
|
3159
|
-
|
|
3160
|
-
declare const DeleteIcon: IconComponent;
|
|
3161
|
-
|
|
3162
|
-
declare const GridIcon: IconComponent;
|
|
3163
|
-
|
|
3164
|
-
declare const ImageIcon: IconComponent;
|
|
3165
|
-
|
|
3166
|
-
declare const InboxIcon: IconComponent;
|
|
3167
|
-
|
|
3168
|
-
declare const ItalicIcon: IconComponent;
|
|
3169
|
-
|
|
3170
|
-
declare const TypeIcon: IconComponent;
|
|
3171
|
-
|
|
3172
|
-
declare const UnderlineIcon: IconComponent;
|
|
3173
|
-
|
|
3174
|
-
declare const FilmIcon: IconComponent;
|
|
3175
|
-
|
|
3176
|
-
declare const AirplayIcon: IconComponent;
|
|
3177
|
-
|
|
3178
|
-
declare const AtSignIcon: IconComponent;
|
|
3179
|
-
|
|
3180
|
-
declare const BluetoothIcon: IconComponent;
|
|
3181
|
-
|
|
3182
|
-
declare const CameraIcon: IconComponent;
|
|
3183
|
-
|
|
3184
|
-
declare const CameraOffIcon: IconComponent;
|
|
3185
|
-
|
|
3186
|
-
declare const CastIcon: IconComponent;
|
|
3187
|
-
|
|
3188
|
-
declare const MessageCircleIcon: IconComponent;
|
|
3189
|
-
|
|
3190
|
-
declare const MessageSquareIcon: IconComponent;
|
|
3191
|
-
|
|
3192
|
-
declare const PhoneCallIcon: IconComponent;
|
|
3193
|
-
|
|
3194
|
-
declare const PhoneIcon: IconComponent;
|
|
3195
|
-
|
|
3196
|
-
declare const PhoneOutgoingIcon: IconComponent;
|
|
3197
|
-
|
|
3198
|
-
declare const PhoneOffIcon: IconComponent;
|
|
3199
|
-
|
|
3200
|
-
declare const PhoneMissedIcon: IconComponent;
|
|
3201
|
-
|
|
3202
|
-
declare const PhoneIncomingIcon: IconComponent;
|
|
3203
|
-
|
|
3204
|
-
declare const PhoneForwardedIcon: IconComponent;
|
|
3205
|
-
|
|
3206
|
-
declare const RadioIcon: IconComponent;
|
|
3207
|
-
|
|
3208
|
-
declare const VideoOffIcon: IconComponent;
|
|
3209
|
-
|
|
3210
|
-
declare const VoicemailIcon: IconComponent;
|
|
3211
|
-
|
|
3212
|
-
declare const WifiIcon: IconComponent;
|
|
3213
|
-
|
|
3214
|
-
declare const WifiOffIcon: IconComponent;
|
|
3215
|
-
|
|
3216
|
-
declare const ApertureIcon: IconComponent;
|
|
3217
|
-
|
|
3218
|
-
declare const AwardIcon: IconComponent;
|
|
3219
|
-
|
|
3220
|
-
declare const BoxIcon: IconComponent;
|
|
3221
|
-
|
|
3222
|
-
declare const BriefcaseIcon: IconComponent;
|
|
3223
|
-
|
|
3224
|
-
declare const ChromeIcon: IconComponent;
|
|
3225
|
-
|
|
3226
|
-
declare const CircleIcon: IconComponent;
|
|
3227
|
-
|
|
3228
|
-
declare const CrosshairIcon: IconComponent;
|
|
3229
|
-
|
|
3230
|
-
declare const DiscIcon: IconComponent;
|
|
3231
|
-
|
|
3232
|
-
declare const DropletIcon: IconComponent;
|
|
3233
|
-
|
|
3234
|
-
declare const FeatherIcon: IconComponent;
|
|
3235
|
-
|
|
3236
|
-
declare const LayersIcon: IconComponent;
|
|
3237
|
-
|
|
3238
|
-
declare const LayoutIcon: IconComponent;
|
|
3239
|
-
|
|
3240
|
-
declare const SidebarIcon: IconComponent;
|
|
3241
|
-
|
|
3242
|
-
declare const SquareIcon: IconComponent;
|
|
3243
|
-
|
|
3244
|
-
declare const TriangleIcon: IconComponent;
|
|
3245
|
-
|
|
3246
|
-
declare const LifeBuoyIcon: IconComponent;
|
|
3247
|
-
|
|
3248
|
-
declare const LoaderIcon: IconComponent;
|
|
3249
|
-
|
|
3250
|
-
declare const OctagonIcon: IconComponent;
|
|
3251
|
-
|
|
3252
|
-
declare const PackageIcon: IconComponent;
|
|
3253
|
-
|
|
3254
|
-
declare const PercentIcon: IconComponent;
|
|
3255
|
-
|
|
3256
|
-
declare const ShieldIcon: IconComponent;
|
|
3257
|
-
|
|
3258
|
-
declare const UmbrellaIcon: IconComponent;
|
|
3259
|
-
|
|
3260
|
-
declare const WindIcon: IconComponent;
|
|
3261
|
-
|
|
3262
|
-
declare const ArrowUpLeftIcon: IconComponent;
|
|
3263
|
-
|
|
3264
|
-
declare const ArrowDownRightIcon: IconComponent;
|
|
3265
|
-
|
|
3266
|
-
declare const ArrowDownLeftIcon: IconComponent;
|
|
3267
|
-
|
|
3268
|
-
declare const ChevronsRightIcon: IconComponent;
|
|
3269
|
-
|
|
3270
|
-
declare const ChevronsLeftIcon: IconComponent;
|
|
3271
|
-
|
|
3272
|
-
declare const ChevronsDownIcon: IconComponent;
|
|
3273
|
-
|
|
3274
|
-
declare const ChevronsUpIcon: IconComponent;
|
|
3275
|
-
|
|
3276
|
-
declare const CornerUpRightIcon: IconComponent;
|
|
3277
|
-
|
|
3278
|
-
declare const CornerDownLeftIcon: IconComponent;
|
|
3279
|
-
|
|
3280
|
-
declare const CornerRightUpIcon: IconComponent;
|
|
3281
|
-
|
|
3282
|
-
declare const CornerRightDownIcon: IconComponent;
|
|
3283
|
-
|
|
3284
|
-
declare const CornerLeftUpIcon: IconComponent;
|
|
3285
|
-
|
|
3286
|
-
declare const CornerDownRightIcon: IconComponent;
|
|
3287
|
-
|
|
3288
|
-
declare const CornerUpLeftIcon: IconComponent;
|
|
3289
|
-
|
|
3290
|
-
declare const CornerLeftDownIcon: IconComponent;
|
|
3291
|
-
|
|
3292
|
-
declare const FastForwardIcon: IconComponent;
|
|
3293
|
-
|
|
3294
|
-
declare const HeadphonesIcon: IconComponent;
|
|
3295
|
-
|
|
3296
|
-
declare const MusicIcon: IconComponent;
|
|
3297
|
-
|
|
3298
|
-
declare const RewindIcon: IconComponent;
|
|
3299
|
-
|
|
3300
|
-
declare const SkipBackIcon: IconComponent;
|
|
3301
|
-
|
|
3302
|
-
declare const SkipForwardIcon: IconComponent;
|
|
3303
|
-
|
|
3304
|
-
declare const VolumeIcon: IconComponent;
|
|
3305
|
-
|
|
3306
|
-
declare const VolumeMuteIcon: IconComponent;
|
|
3307
|
-
|
|
3308
|
-
declare const VolumeLowIcon: IconComponent;
|
|
3309
|
-
|
|
3310
|
-
declare const VolumeHighIcon: IconComponent;
|
|
3311
|
-
|
|
3312
|
-
declare const CalendarIcon: IconComponent;
|
|
3313
|
-
|
|
3314
|
-
declare const ClockIcon: IconComponent;
|
|
3315
|
-
|
|
3316
|
-
declare const CloudIcon: IconComponent;
|
|
3317
|
-
|
|
3318
|
-
declare const CloudDrizzleIcon: IconComponent;
|
|
3319
|
-
|
|
3320
|
-
declare const CloudSnowIcon: IconComponent;
|
|
3321
|
-
|
|
3322
|
-
declare const CloudOffIcon: IconComponent;
|
|
3323
|
-
|
|
3324
|
-
declare const CloudLightningIcon: IconComponent;
|
|
3325
|
-
|
|
3326
|
-
declare const MoonIcon: IconComponent;
|
|
3327
|
-
|
|
3328
|
-
declare const SunsetIcon: IconComponent;
|
|
3329
|
-
|
|
3330
|
-
declare const SunriseIcon: IconComponent;
|
|
3331
|
-
|
|
3332
|
-
declare const WatchIcon: IconComponent;
|
|
3333
|
-
|
|
3334
|
-
declare const CloudRainIcon: IconComponent;
|
|
3335
|
-
|
|
3336
|
-
declare const BatteryChargingIcon: IconComponent;
|
|
3337
|
-
|
|
3338
|
-
declare const BatteryIcon: IconComponent;
|
|
3339
|
-
|
|
3340
|
-
declare const CpuIcon: IconComponent;
|
|
3341
|
-
|
|
3342
|
-
declare const MonitorIcon: IconComponent;
|
|
3343
|
-
|
|
3344
|
-
declare const PrinterIcon: IconComponent;
|
|
3345
|
-
|
|
3346
|
-
declare const ServerIcon: IconComponent;
|
|
3347
|
-
|
|
3348
|
-
declare const SmartphoneIcon: IconComponent;
|
|
3349
|
-
|
|
3350
|
-
declare const SpeakerIcon: IconComponent;
|
|
3351
|
-
|
|
3352
|
-
declare const TabletIcon: IconComponent;
|
|
3353
|
-
|
|
3354
|
-
declare const ThermometerIcon: IconComponent;
|
|
3355
|
-
|
|
3356
|
-
declare const TvIcon: IconComponent;
|
|
3357
|
-
|
|
3358
|
-
declare const CodepenIcon: IconComponent;
|
|
3359
|
-
|
|
3360
|
-
declare const FacebookIcon: IconComponent;
|
|
3361
|
-
|
|
3362
|
-
declare const GitlabIcon: IconComponent;
|
|
3363
|
-
|
|
3364
|
-
declare const GithubIcon: IconComponent;
|
|
3365
|
-
|
|
3366
|
-
declare const InstagramIcon: IconComponent;
|
|
3367
|
-
|
|
3368
|
-
declare const PocketIcon: IconComponent;
|
|
3369
|
-
|
|
3370
|
-
declare const SlackIcon: IconComponent;
|
|
3371
|
-
|
|
3372
|
-
declare const TwitterIcon: IconComponent;
|
|
3373
|
-
|
|
3374
|
-
declare const UserCheckIcon: IconComponent;
|
|
3375
|
-
|
|
3376
|
-
declare const UserXIcon: IconComponent;
|
|
3377
|
-
|
|
3378
|
-
declare const UserPlusIcon: IconComponent;
|
|
3379
|
-
|
|
3380
|
-
declare const UserMinusIcon: IconComponent;
|
|
3381
|
-
|
|
3382
|
-
declare const ActivityIcon: IconComponent;
|
|
3383
|
-
|
|
3384
|
-
declare const BarChartIcon: IconComponent;
|
|
3385
|
-
|
|
3386
|
-
declare const BarChartAltIcon: IconComponent;
|
|
3387
|
-
|
|
3388
|
-
declare const PieChartIcon: IconComponent;
|
|
3389
|
-
|
|
3390
|
-
declare const CompassIcon: IconComponent;
|
|
3391
|
-
|
|
3392
|
-
declare const MapIcon: IconComponent;
|
|
3393
|
-
|
|
3394
|
-
declare const MapPinIcon: IconComponent;
|
|
3395
|
-
|
|
3396
|
-
declare const NavigationIcon: IconComponent;
|
|
3397
|
-
|
|
3398
|
-
declare const DollarsIcon: IconComponent;
|
|
3399
|
-
|
|
3400
|
-
declare const RupeesIcon: IconComponent;
|
|
3401
|
-
|
|
3402
|
-
declare const DashboardIcon: IconComponent;
|
|
3403
|
-
|
|
3404
|
-
declare const InvoicesIcon: IconComponent;
|
|
3405
|
-
|
|
3406
|
-
declare const PaymentLinksIcon: IconComponent;
|
|
3407
|
-
|
|
3408
|
-
declare const PaymentButtonsIcon: IconComponent;
|
|
3409
|
-
|
|
3410
|
-
declare const PaymentPagesIcon: IconComponent;
|
|
3411
|
-
|
|
3412
|
-
declare const RoutesIcon: IconComponent;
|
|
3413
|
-
|
|
3414
|
-
declare const SubscriptionsIcon: IconComponent;
|
|
3415
|
-
|
|
3416
|
-
declare const SmartCollectIcon: IconComponent;
|
|
3417
|
-
|
|
3418
|
-
declare const CustomersIcon: IconComponent;
|
|
3419
|
-
|
|
3420
|
-
declare const OffersIcon: IconComponent;
|
|
3421
|
-
|
|
3422
|
-
declare const ReportsIcon: IconComponent;
|
|
3423
|
-
|
|
3424
|
-
declare const MyAccountIcon: IconComponent;
|
|
3425
|
-
|
|
3426
|
-
declare const RazorpayIcon: IconComponent;
|
|
3427
|
-
|
|
3428
|
-
declare const RazorpayXIcon: IconComponent;
|
|
3429
|
-
|
|
3430
|
-
declare const BookIcon: IconComponent;
|
|
3431
|
-
|
|
3432
|
-
declare const SettlementsIcon: IconComponent;
|
|
3433
|
-
|
|
3434
|
-
declare const ShuffleIcon: IconComponent;
|
|
3435
|
-
|
|
3436
|
-
declare const TagIcon: IconComponent;
|
|
3437
|
-
|
|
3438
|
-
declare const UserIcon: IconComponent;
|
|
3439
|
-
|
|
3440
|
-
declare const TransactionsIcon: IconComponent;
|
|
3441
|
-
|
|
3442
|
-
declare const AnnouncementIcon: IconComponent;
|
|
3443
|
-
|
|
3444
|
-
declare const AppStoreIcon: IconComponent;
|
|
3445
|
-
|
|
3446
|
-
declare const CoinsIcon: IconComponent;
|
|
3447
|
-
|
|
3448
|
-
declare const BillIcon: IconComponent;
|
|
3449
|
-
|
|
3450
|
-
declare const StampIcon: IconComponent;
|
|
3451
|
-
|
|
3452
|
-
declare const MenuDotsIcon: IconComponent;
|
|
3453
|
-
|
|
3454
|
-
declare const SendIcon: IconComponent;
|
|
3455
|
-
|
|
3456
|
-
declare const MailOpenIcon: IconComponent;
|
|
3457
|
-
|
|
3458
|
-
declare const BulkPayoutsIcon: IconComponent;
|
|
3459
|
-
|
|
3460
|
-
declare type FeedbackIconColors = `feedback.icon.${DotNotationColorStringToken<Theme$1['colors']['feedback']['icon']>}`;
|
|
3461
|
-
declare type FeedbackActionIconColors = `feedback.${Feedback}.action.icon.${DotNotationColorStringToken<Theme$1['colors']['feedback'][Feedback]['action']['icon']>}`;
|
|
3462
|
-
declare type ActionIconColors = `action.icon.${DotNotationColorStringToken<Theme$1['colors']['action']['icon']>}`;
|
|
3463
|
-
declare type TextIconColors = `surface.text.${DotNotationColorStringToken<Theme$1['colors']['surface']['text']>}`;
|
|
3464
|
-
declare type SurfaceActionIconColors = `surface.action.icon.${DotNotationColorStringToken<Theme$1['colors']['surface']['action']['icon']>}`;
|
|
3465
|
-
declare type BadgeIconColors = `badge.icon.${DotNotationColorStringToken<Theme$1['colors']['badge']['icon']>}`;
|
|
3466
|
-
declare type IconSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | '2xlarge';
|
|
3467
|
-
declare type IconProps = {
|
|
3468
|
-
/**
|
|
3469
|
-
* Color token (not to be confused with actual hsla value)
|
|
3470
|
-
*/
|
|
3471
|
-
color: ActionIconColors | SurfaceActionIconColors | FeedbackIconColors | FeedbackActionIconColors | TextIconColors | BadgeIconColors | 'currentColor';
|
|
3472
|
-
size: IconSize;
|
|
3473
|
-
} & StyledPropsBlade;
|
|
3474
|
-
declare type IconComponent = React.ComponentType<IconProps>;
|
|
3475
|
-
|
|
3476
|
-
/**
|
|
3477
|
-
* Similar to `Pick` except this returns `never` when value doesn't exist (native `Pick` returns `unknown`).
|
|
3478
|
-
*
|
|
3479
|
-
* You might have to ts-ignore the non-existing type error while using this. This is done so that you can get jsdoc from actual type.
|
|
3480
|
-
*
|
|
3481
|
-
* E.g. This will pick from ViewStyle prop if value exists else returns undefined.
|
|
3482
|
-
*
|
|
3483
|
-
* ```ts
|
|
3484
|
-
* // @ts-expect-error: T passed here may not neccessarily exist. We return `never` type when it doesn't
|
|
3485
|
-
* native: PickIfExist<ViewStyle, T>;
|
|
3486
|
-
* ```
|
|
3487
|
-
*/
|
|
3488
|
-
declare type PickIfExist<T, K extends keyof T> = {
|
|
3489
|
-
[P in K]: P extends keyof T ? T[P] : never;
|
|
3490
|
-
};
|
|
3491
|
-
/**
|
|
3492
|
-
* Picks the types based on the platform (web / native).
|
|
3493
|
-
*
|
|
3494
|
-
* E.g.
|
|
3495
|
-
* ```ts
|
|
3496
|
-
* type CSSObject = PickCSSByPlatform<'display'>
|
|
3497
|
-
* // On Web --> This will be all possible web display properties like `block`, `flex`, `inline`, and more.
|
|
3498
|
-
* // On Native --> This will be just `flex` and `none`
|
|
3499
|
-
* ```
|
|
3500
|
-
*/
|
|
3501
|
-
declare type PickCSSByPlatform<T extends keyof React__default.CSSProperties | keyof ViewStyle> = Platform.Select<{
|
|
3502
|
-
web: PickIfExist<CSSObject, T>;
|
|
3503
|
-
native: PickIfExist<ViewStyle, T>;
|
|
3504
|
-
}>;
|
|
3505
|
-
|
|
3506
|
-
declare type FormInputLabelProps = {
|
|
3507
|
-
/**
|
|
3508
|
-
* Label to be shown for the input field
|
|
3509
|
-
*/
|
|
3510
|
-
label: string;
|
|
3511
|
-
/**
|
|
3512
|
-
* Desktop only prop. Default value on mobile will be `top`
|
|
3513
|
-
*/
|
|
3514
|
-
labelPosition?: 'left' | 'top';
|
|
3515
|
-
/**
|
|
3516
|
-
* Displays `(optional)` when `optional` is passed or `*` when `required` is passed
|
|
3517
|
-
*/
|
|
3518
|
-
necessityIndicator?: 'required' | 'optional' | 'none';
|
|
3519
|
-
};
|
|
3520
|
-
|
|
3521
|
-
declare type FormInputOnEvent = ({ name, value }: {
|
|
3522
|
-
name?: string;
|
|
3523
|
-
value?: string;
|
|
3524
|
-
}) => void;
|
|
3525
|
-
declare type FormInputValidationProps = {
|
|
3526
|
-
/**
|
|
3527
|
-
* Help text for the input
|
|
3528
|
-
*/
|
|
3529
|
-
helpText?: string;
|
|
3530
|
-
/**
|
|
3531
|
-
* Error text for the input
|
|
3532
|
-
*
|
|
3533
|
-
* Renders when `validationState` is set to 'error'
|
|
3534
|
-
*/
|
|
3535
|
-
errorText?: string;
|
|
3536
|
-
/**
|
|
3537
|
-
* success text for the input
|
|
3538
|
-
*
|
|
3539
|
-
* Renders when `validationState` is set to 'success'
|
|
3540
|
-
*/
|
|
3541
|
-
successText?: string;
|
|
3542
|
-
/**
|
|
3543
|
-
* If `error`, the input is marked as invalid,
|
|
3544
|
-
* and `invalid` attribute will be added
|
|
3545
|
-
*
|
|
3546
|
-
* If `success`, the input is marked as valid,
|
|
3547
|
-
*
|
|
3548
|
-
*/
|
|
3549
|
-
validationState?: 'success' | 'error' | 'none';
|
|
3550
|
-
};
|
|
3551
|
-
|
|
3552
|
-
type FormInputHandleOnKeyDownEvent = ({
|
|
3553
|
-
name,
|
|
3554
|
-
key,
|
|
3555
|
-
code,
|
|
3556
|
-
event,
|
|
3557
|
-
}: FormInputOnKeyDownEvent) => void;
|
|
3558
|
-
|
|
3559
|
-
type FormInputOnKeyDownEvent = {
|
|
3560
|
-
name?: string;
|
|
3561
|
-
key?: string;
|
|
3562
|
-
code?: string;
|
|
3563
|
-
event: KeyboardEvent<HTMLInputElement>;
|
|
3564
|
-
};
|
|
3565
|
-
|
|
3566
|
-
declare type BaseInputProps = FormInputLabelProps & FormInputValidationProps & {
|
|
3567
|
-
/**
|
|
3568
|
-
* Determines if it needs to be rendered as input, textarea or button
|
|
3569
|
-
*/
|
|
3570
|
-
as?: 'input' | 'textarea' | 'button';
|
|
3571
|
-
/**
|
|
3572
|
-
* ID that will be used for accessibility
|
|
3573
|
-
*/
|
|
3574
|
-
id: string;
|
|
3575
|
-
/**
|
|
3576
|
-
* Placeholder text to be displayed inside the input field
|
|
3577
|
-
*/
|
|
3578
|
-
placeholder?: string;
|
|
3579
|
-
/**
|
|
3580
|
-
* Type of Input Field to be rendered.
|
|
3581
|
-
*
|
|
3582
|
-
* @default text
|
|
3583
|
-
*/
|
|
3584
|
-
type?: 'text' | 'telephone' | 'email' | 'url' | 'number' | 'search' | 'password';
|
|
3585
|
-
/**
|
|
3586
|
-
* Used to set the default value of input field when it's uncontrolled
|
|
3587
|
-
*/
|
|
3588
|
-
defaultValue?: string;
|
|
3589
|
-
/**
|
|
3590
|
-
* The name of the input field.
|
|
3591
|
-
*
|
|
3592
|
-
* Useful in form submissions
|
|
3593
|
-
*/
|
|
3594
|
-
name?: string;
|
|
3595
|
-
/**
|
|
3596
|
-
* The callback function to be invoked when the input field gets focus
|
|
3597
|
-
*/
|
|
3598
|
-
onFocus?: FormInputOnEvent;
|
|
3599
|
-
/**
|
|
3600
|
-
* The callback function to be invoked when the value of the input field changes
|
|
3601
|
-
*/
|
|
3602
|
-
onChange?: FormInputOnEvent;
|
|
3603
|
-
/**
|
|
3604
|
-
* The callback function to be invoked when input is clicked
|
|
3605
|
-
*/
|
|
3606
|
-
onClick?: FormInputOnEvent;
|
|
3607
|
-
/**
|
|
3608
|
-
* The callback function to be invoked when the value of the input field has any input
|
|
3609
|
-
*/
|
|
3610
|
-
onInput?: FormInputOnEvent;
|
|
3611
|
-
/**
|
|
3612
|
-
* The callback function to be invoked whenever there is a keyDown event
|
|
3613
|
-
*/
|
|
3614
|
-
onKeyDown?: FormInputHandleOnKeyDownEvent;
|
|
3615
|
-
/**
|
|
3616
|
-
* The callback function to be invoked when the the input field loses focus
|
|
3617
|
-
*
|
|
3618
|
-
* For React Native this will call `onEndEditing` event since we want to get the last value of the input field
|
|
3619
|
-
*/
|
|
3620
|
-
onBlur?: FormInputOnEvent;
|
|
3621
|
-
/**
|
|
3622
|
-
* Ignores the blur event animation (Used in Select to ignore blur animation when item in option is clicked)
|
|
3623
|
-
*/
|
|
3624
|
-
shouldIgnoreBlurAnimation?: boolean;
|
|
3625
|
-
/**
|
|
3626
|
-
* Used to turn the input field to controlled so user can control the value
|
|
3627
|
-
*/
|
|
3628
|
-
value?: string;
|
|
3629
|
-
/**
|
|
3630
|
-
* Used to disable the input field
|
|
3631
|
-
*/
|
|
3632
|
-
isDisabled?: boolean;
|
|
3633
|
-
/**
|
|
3634
|
-
* If true, the input is marked as required, and `required` attribute will be added
|
|
3635
|
-
*/
|
|
3636
|
-
isRequired?: boolean;
|
|
3637
|
-
/**
|
|
3638
|
-
* Icon to be shown at the start of the input field
|
|
3639
|
-
*/
|
|
3640
|
-
leadingIcon?: IconComponent$1;
|
|
3641
|
-
/**
|
|
3642
|
-
* Prefix symbol to be displayed at the beginning of the input field. If leadingIcon is provided it'll be placed after it
|
|
3643
|
-
*/
|
|
3644
|
-
prefix?: string;
|
|
3645
|
-
/**
|
|
3646
|
-
* Element to be rendered before suffix. This is decided by the component which is extending BaseInput
|
|
3647
|
-
*
|
|
3648
|
-
* eg: consumers can render a loader or they could render a clear button
|
|
3649
|
-
*/
|
|
3650
|
-
interactionElement?: ReactNode;
|
|
3651
|
-
/**
|
|
3652
|
-
* Suffix symbol to be displayed at the end of the input field. If trailingIcon is provided it'll be placed before it
|
|
3653
|
-
*/
|
|
3654
|
-
suffix?: string;
|
|
3655
|
-
/**
|
|
3656
|
-
* Icon to be displayed at the end of the input field
|
|
3657
|
-
*/
|
|
3658
|
-
trailingIcon?: IconComponent$1;
|
|
3659
|
-
/**
|
|
3660
|
-
* Displays the character counter under the input field
|
|
3661
|
-
*/
|
|
3662
|
-
maxCharacters?: number;
|
|
3663
|
-
/**
|
|
3664
|
-
* alignment of the text inside input field
|
|
3665
|
-
*/
|
|
3666
|
-
textAlign?: 'left' | 'center' | 'right';
|
|
3667
|
-
/**
|
|
3668
|
-
* If true, focuses the input field on load
|
|
3669
|
-
*
|
|
3670
|
-
* **Note:**
|
|
3671
|
-
* Automatically focusing a form control can confuse visually-impaired people using screen-reading technology and people with cognitive impairments.
|
|
3672
|
-
* When autofocus is assigned, screen-readers "teleport" their user to the form control without warning them beforehand.
|
|
3673
|
-
*/
|
|
3674
|
-
autoFocus?: boolean;
|
|
3675
|
-
/**
|
|
3676
|
-
* Hints the platform to display an appropriate virtual keyboard
|
|
3677
|
-
*
|
|
3678
|
-
* **Native:** Passes as is the `keyboardType` attribute
|
|
3679
|
-
*
|
|
3680
|
-
* **Web:** Passes the value to the `inputMode` attribute
|
|
3681
|
-
*/
|
|
3682
|
-
keyboardType?: 'text' | 'search' | 'telephone' | 'email' | 'url' | 'decimal';
|
|
3683
|
-
/**
|
|
3684
|
-
* determines what return key to show on the keyboard of mobile devices/virtual keyboard
|
|
3685
|
-
* **Note**: Few values are platform dependent and might not render on all the platforms
|
|
3686
|
-
*
|
|
3687
|
-
* `default` is only available on native. it'll be mapped to `enter` for web
|
|
3688
|
-
* `previous` is only available on native android
|
|
3689
|
-
*/
|
|
3690
|
-
keyboardReturnKeyType?: 'default' | 'go' | 'done' | 'next' | 'previous' | 'search' | 'send';
|
|
3691
|
-
/**
|
|
3692
|
-
* determines what autoComplete suggestion type to show
|
|
3693
|
-
*
|
|
3694
|
-
* Internally it'll render platform specific attributes:
|
|
3695
|
-
*
|
|
3696
|
-
* - web: `autocomplete`
|
|
3697
|
-
* - iOS: `textContentType`
|
|
3698
|
-
* - android: `autoComplete`
|
|
3699
|
-
*
|
|
3700
|
-
*/
|
|
3701
|
-
autoCompleteSuggestionType?: 'none' | 'name' | 'email' | 'username' | 'password' | 'newPassword' | 'oneTimeCode' | 'telephone' | 'postalCode' | 'countryName' | 'creditCardNumber' | 'creditCardCSC' | 'creditCardExpiry' | 'creditCardExpiryMonth' | 'creditCardExpiryYear';
|
|
3702
|
-
/**
|
|
3703
|
-
* Element to be rendered on the trailing slot of input field label
|
|
3704
|
-
*/
|
|
3705
|
-
trailingHeaderSlot?: (value?: string) => ReactNode;
|
|
3706
|
-
/**
|
|
3707
|
-
* Element to be rendered on the trailing slot of input field footer
|
|
3708
|
-
*/
|
|
3709
|
-
trailingFooterSlot?: (value?: string) => ReactNode;
|
|
3710
|
-
/**
|
|
3711
|
-
* Sets the textarea's number of lines
|
|
3712
|
-
*/
|
|
3713
|
-
numberOfLines?: 2 | 3 | 4 | 5;
|
|
3714
|
-
/**
|
|
3715
|
-
* Sets the accessibility label for the input
|
|
3716
|
-
*/
|
|
3717
|
-
accessibilityLabel?: string;
|
|
3718
|
-
/**
|
|
3719
|
-
* Sets the id of the label
|
|
3720
|
-
*
|
|
3721
|
-
* (Useful when assigning one label to multiple elements using aria-labelledby)
|
|
3722
|
-
*/
|
|
3723
|
-
labelId?: string;
|
|
3724
|
-
/**
|
|
3725
|
-
* Can be used in select to set the id of the active descendant from the listbox
|
|
3726
|
-
*/
|
|
3727
|
-
activeDescendant?: string;
|
|
3728
|
-
/**
|
|
3729
|
-
* Hides the label text
|
|
3730
|
-
*/
|
|
3731
|
-
hideLabelText?: boolean;
|
|
3732
|
-
/**
|
|
3733
|
-
* Hides the form hint text
|
|
3734
|
-
*/
|
|
3735
|
-
hideFormHint?: boolean;
|
|
3736
|
-
/**
|
|
3737
|
-
* componentName prop sets the data-blade-component attribute name
|
|
3738
|
-
* for internal metric collection purposes
|
|
3739
|
-
*/
|
|
3740
|
-
componentName?: string;
|
|
3741
|
-
/**
|
|
3742
|
-
* whether the input has a popup
|
|
3743
|
-
*/
|
|
3744
|
-
hasPopup?: AriaAttributes['hasPopup'];
|
|
3745
|
-
/**
|
|
3746
|
-
* id of the popup
|
|
3747
|
-
*/
|
|
3748
|
-
popupId?: string;
|
|
3749
|
-
/**
|
|
3750
|
-
* true if popup is in expanded state
|
|
3751
|
-
*/
|
|
3752
|
-
isPopupExpanded?: boolean;
|
|
3753
|
-
/**
|
|
3754
|
-
* sets the autocapitalize behavior for the input
|
|
3755
|
-
*/
|
|
3756
|
-
autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters';
|
|
3757
|
-
} & TestID & Platform.Select<{
|
|
3758
|
-
native: {
|
|
3759
|
-
/**
|
|
3760
|
-
* The callback function to be invoked when the value of the input field is submitted.
|
|
3761
|
-
*/
|
|
3762
|
-
onSubmit?: FormInputOnEvent;
|
|
3763
|
-
};
|
|
3764
|
-
web: {
|
|
3765
|
-
/**
|
|
3766
|
-
* This is a react-native only prop and has no effect on web.
|
|
3767
|
-
*/
|
|
3768
|
-
onSubmit?: undefined;
|
|
3769
|
-
};
|
|
3770
|
-
}> & StyledPropsBlade;
|
|
3771
|
-
|
|
3772
|
-
declare type Type = Exclude<BaseInputProps['type'], 'password'>;
|
|
3773
|
-
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'> & {
|
|
3774
|
-
/**
|
|
3775
|
-
* Decides whether to render a clear icon button
|
|
3776
|
-
*/
|
|
3777
|
-
showClearButton?: boolean;
|
|
3778
|
-
/**
|
|
3779
|
-
* Event handler to handle the onClick event for clear button. Used when `showClearButton` is `true`
|
|
3780
|
-
*/
|
|
3781
|
-
onClearButtonClick?: () => void;
|
|
3782
|
-
/**
|
|
3783
|
-
* Decides whether to show a loading spinner for the input field.
|
|
3784
|
-
*/
|
|
3785
|
-
isLoading?: boolean;
|
|
3786
|
-
/**
|
|
3787
|
-
* Icon that will be rendered at the beginning of the input field
|
|
3788
|
-
*/
|
|
3789
|
-
icon?: IconComponent$1;
|
|
3790
|
-
/**
|
|
3791
|
-
* Type of Input Field to be rendered. Use `PasswordInput` for type `password`
|
|
3792
|
-
*
|
|
3793
|
-
*
|
|
3794
|
-
* **Note on number type**
|
|
3795
|
-
*
|
|
3796
|
-
* `type="number"` internally uses `inputMode="numeric"` instead of HTML's `type="number"` which also allows text characters.
|
|
3797
|
-
* If you have a usecase where you only want to support number input, you can handle it on validations end.
|
|
3798
|
-
*
|
|
3799
|
-
* Check out [Why the GOV.UK Design System team changed the input type for numbers](https://technology.blog.gov.uk/2020/02/24/why-the-gov-uk-design-system-team-changed-the-input-type-for-numbers/) for reasoning
|
|
3800
|
-
*
|
|
3801
|
-
* @default text
|
|
3802
|
-
*/
|
|
3803
|
-
type?: Type;
|
|
3804
|
-
} & StyledPropsBlade;
|
|
3805
|
-
declare const TextInput: React__default.ForwardRefExoticComponent<Pick<BaseInputProps, "testID" | "name" | "placeholder" | "label" | "value" | "onBlur" | "onFocus" | "defaultValue" | "prefix" | "autoCapitalize" | "onChange" | "onSubmit" | "isDisabled" | "autoFocus" | "labelPosition" | "validationState" | "helpText" | "errorText" | "necessityIndicator" | "successText" | "isRequired" | "suffix" | "maxCharacters" | "keyboardReturnKeyType" | "autoCompleteSuggestionType"> & {
|
|
3806
|
-
/**
|
|
3807
|
-
* Decides whether to render a clear icon button
|
|
3808
|
-
*/
|
|
3809
|
-
showClearButton?: boolean | undefined;
|
|
3810
|
-
/**
|
|
3811
|
-
* Event handler to handle the onClick event for clear button. Used when `showClearButton` is `true`
|
|
3812
|
-
*/
|
|
3813
|
-
onClearButtonClick?: (() => void) | undefined;
|
|
3814
|
-
/**
|
|
3815
|
-
* Decides whether to show a loading spinner for the input field.
|
|
3816
|
-
*/
|
|
3817
|
-
isLoading?: boolean | undefined;
|
|
3818
|
-
/**
|
|
3819
|
-
* Icon that will be rendered at the beginning of the input field
|
|
3820
|
-
*/
|
|
3821
|
-
icon?: IconComponent$1 | undefined;
|
|
3822
|
-
/**
|
|
3823
|
-
* Type of Input Field to be rendered. Use `PasswordInput` for type `password`
|
|
3824
|
-
*
|
|
3825
|
-
*
|
|
3826
|
-
* **Note on number type**
|
|
3827
|
-
*
|
|
3828
|
-
* `type="number"` internally uses `inputMode="numeric"` instead of HTML's `type="number"` which also allows text characters.
|
|
3829
|
-
* If you have a usecase where you only want to support number input, you can handle it on validations end.
|
|
3830
|
-
*
|
|
3831
|
-
* Check out [Why the GOV.UK Design System team changed the input type for numbers](https://technology.blog.gov.uk/2020/02/24/why-the-gov-uk-design-system-team-changed-the-input-type-for-numbers/) for reasoning
|
|
3832
|
-
*
|
|
3833
|
-
* @default text
|
|
3834
|
-
*/
|
|
3835
|
-
type?: Type;
|
|
3836
|
-
} & Partial<Omit<MakeObjectResponsive<{
|
|
3837
|
-
margin: SpacingValueType | ArrayOfMaxLength4<SpacingValueType>;
|
|
3838
|
-
marginX: SpacingValueType;
|
|
3839
|
-
marginY: SpacingValueType;
|
|
3840
|
-
marginTop: SpacingValueType;
|
|
3841
|
-
marginRight: SpacingValueType;
|
|
3842
|
-
marginBottom: SpacingValueType;
|
|
3843
|
-
marginLeft: SpacingValueType;
|
|
3844
|
-
}> & Pick<MakeObjectResponsive<{
|
|
3845
|
-
gap: SpacingValueType;
|
|
3846
|
-
rowGap: SpacingValueType;
|
|
3847
|
-
columnGap: SpacingValueType;
|
|
3848
|
-
flex: string | number;
|
|
3849
|
-
} & PickIfExist<react_native.ViewStyle, "alignContent" | "alignItems" | "alignSelf" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "justifyContent" | "justifyItems" | "justifySelf" | "order" | "placeSelf"> & {
|
|
3850
|
-
__brand__?: "platform-native" | undefined;
|
|
3851
|
-
}>, "alignSelf" | "justifySelf" | "order" | "placeSelf"> & MakeObjectResponsive<{
|
|
3852
|
-
top: SpacingValueType;
|
|
3853
|
-
right: SpacingValueType;
|
|
3854
|
-
bottom: SpacingValueType;
|
|
3855
|
-
left: SpacingValueType;
|
|
3856
|
-
} & PickIfExist<react_native.ViewStyle, "position" | "zIndex"> & {
|
|
3857
|
-
__brand__?: "platform-native" | undefined;
|
|
3858
|
-
}> & Pick<MakeObjectResponsive<PickCSSByPlatform<"grid" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "gridArea" | "gridColumn" | "gridRow" | "gridTemplate">>, "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridArea" | "gridColumn" | "gridRow">, "__brand__">> & React__default.RefAttributes<BladeElementRef>>;
|
|
3859
|
-
|
|
3860
|
-
declare type PasswordInputExtraProps = {
|
|
3861
|
-
/**
|
|
3862
|
-
* Shows a reveal button to toggle password visibility
|
|
3863
|
-
*
|
|
3864
|
-
* @default true
|
|
3865
|
-
*/
|
|
3866
|
-
showRevealButton?: boolean;
|
|
3867
|
-
/**
|
|
3868
|
-
* Displays asterisk (`*`) when `isRequired` is enabled
|
|
3869
|
-
*
|
|
3870
|
-
* @default none
|
|
3871
|
-
*/
|
|
3872
|
-
necessityIndicator?: Exclude<BaseInputProps['necessityIndicator'], 'optional'>;
|
|
3873
|
-
/**
|
|
3874
|
-
* Determines what autoComplete suggestion type to show. Defaults to using platform heuristics.
|
|
3875
|
-
*
|
|
3876
|
-
* It's not recommended to turn this off in favor of safe password practices.
|
|
3877
|
-
* Providing `password` or `newPassword` is more informative to the platform for browser autofill or password managers.
|
|
3878
|
-
*
|
|
3879
|
-
* **Note**: Using `newPassword` on iOS has some [known issue](https://github.com/facebook/react-native/issues/21911) on React Native
|
|
3880
|
-
*
|
|
3881
|
-
* Internally it'll render platform specific attributes:
|
|
3882
|
-
*
|
|
3883
|
-
* - web: `autocomplete`
|
|
3884
|
-
* - iOS: `textContentType`
|
|
3885
|
-
* - android: `autoComplete`
|
|
3886
|
-
*
|
|
3887
|
-
*/
|
|
3888
|
-
autoCompleteSuggestionType?: Extract<BaseInputProps['autoCompleteSuggestionType'], 'none' | 'password' | 'newPassword'>;
|
|
3889
|
-
};
|
|
3890
|
-
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;
|
|
3891
|
-
declare const PasswordInput: React__default.ForwardRefExoticComponent<Pick<BaseInputProps, "testID" | "name" | "placeholder" | "label" | "value" | "onBlur" | "onFocus" | "defaultValue" | "onChange" | "onSubmit" | "isDisabled" | "autoFocus" | "labelPosition" | "validationState" | "helpText" | "errorText" | "successText" | "isRequired" | "maxCharacters" | "keyboardReturnKeyType" | "autoCompleteSuggestionType"> & PasswordInputExtraProps & Partial<Omit<MakeObjectResponsive<{
|
|
3892
|
-
margin: SpacingValueType | ArrayOfMaxLength4<SpacingValueType>;
|
|
3893
|
-
marginX: SpacingValueType;
|
|
3894
|
-
marginY: SpacingValueType;
|
|
3895
|
-
marginTop: SpacingValueType;
|
|
3896
|
-
marginRight: SpacingValueType;
|
|
3897
|
-
marginBottom: SpacingValueType;
|
|
3898
|
-
marginLeft: SpacingValueType;
|
|
3899
|
-
}> & Pick<MakeObjectResponsive<{
|
|
3900
|
-
gap: SpacingValueType;
|
|
3901
|
-
rowGap: SpacingValueType;
|
|
3902
|
-
columnGap: SpacingValueType;
|
|
3903
|
-
flex: string | number;
|
|
3904
|
-
} & PickIfExist<react_native.ViewStyle, "alignContent" | "alignItems" | "alignSelf" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "justifyContent" | "justifyItems" | "justifySelf" | "order" | "placeSelf"> & {
|
|
3905
|
-
__brand__?: "platform-native" | undefined;
|
|
3906
|
-
}>, "alignSelf" | "justifySelf" | "order" | "placeSelf"> & MakeObjectResponsive<{
|
|
3907
|
-
top: SpacingValueType;
|
|
3908
|
-
right: SpacingValueType;
|
|
3909
|
-
bottom: SpacingValueType;
|
|
3910
|
-
left: SpacingValueType;
|
|
3911
|
-
} & PickIfExist<react_native.ViewStyle, "position" | "zIndex"> & {
|
|
3912
|
-
__brand__?: "platform-native" | undefined;
|
|
3913
|
-
}> & Pick<MakeObjectResponsive<PickCSSByPlatform<"grid" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "gridArea" | "gridColumn" | "gridRow" | "gridTemplate">>, "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridArea" | "gridColumn" | "gridRow">, "__brand__">> & React__default.RefAttributes<BladeElementRef>>;
|
|
3914
|
-
|
|
3915
|
-
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'> & {
|
|
3916
|
-
/**
|
|
3917
|
-
* Decides whether to render a clear icon button
|
|
3918
|
-
*/
|
|
3919
|
-
showClearButton?: boolean;
|
|
3920
|
-
/**
|
|
3921
|
-
* Event handler to handle the onClick event for clear button. Used when `showClearButton` is `true`
|
|
3922
|
-
*/
|
|
3923
|
-
onClearButtonClick?: () => void;
|
|
3924
|
-
} & StyledPropsBlade;
|
|
3925
|
-
declare const TextArea: React__default.ForwardRefExoticComponent<Pick<BaseInputProps, "testID" | "name" | "placeholder" | "label" | "value" | "onBlur" | "onFocus" | "numberOfLines" | "defaultValue" | "onChange" | "onSubmit" | "isDisabled" | "autoFocus" | "labelPosition" | "validationState" | "helpText" | "errorText" | "necessityIndicator" | "successText" | "isRequired" | "maxCharacters"> & {
|
|
3926
|
-
/**
|
|
3927
|
-
* Decides whether to render a clear icon button
|
|
3928
|
-
*/
|
|
3929
|
-
showClearButton?: boolean | undefined;
|
|
3930
|
-
/**
|
|
3931
|
-
* Event handler to handle the onClick event for clear button. Used when `showClearButton` is `true`
|
|
3932
|
-
*/
|
|
3933
|
-
onClearButtonClick?: (() => void) | undefined;
|
|
3934
|
-
} & Partial<Omit<MakeObjectResponsive<{
|
|
3935
|
-
margin: SpacingValueType | ArrayOfMaxLength4<SpacingValueType>;
|
|
3936
|
-
marginX: SpacingValueType;
|
|
3937
|
-
marginY: SpacingValueType;
|
|
3938
|
-
marginTop: SpacingValueType;
|
|
3939
|
-
marginRight: SpacingValueType;
|
|
3940
|
-
marginBottom: SpacingValueType;
|
|
3941
|
-
marginLeft: SpacingValueType;
|
|
3942
|
-
}> & Pick<MakeObjectResponsive<{
|
|
3943
|
-
gap: SpacingValueType;
|
|
3944
|
-
rowGap: SpacingValueType;
|
|
3945
|
-
columnGap: SpacingValueType;
|
|
3946
|
-
flex: string | number;
|
|
3947
|
-
} & PickIfExist<react_native.ViewStyle, "alignContent" | "alignItems" | "alignSelf" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "justifyContent" | "justifyItems" | "justifySelf" | "order" | "placeSelf"> & {
|
|
3948
|
-
__brand__?: "platform-native" | undefined;
|
|
3949
|
-
}>, "alignSelf" | "justifySelf" | "order" | "placeSelf"> & MakeObjectResponsive<{
|
|
3950
|
-
top: SpacingValueType;
|
|
3951
|
-
right: SpacingValueType;
|
|
3952
|
-
bottom: SpacingValueType;
|
|
3953
|
-
left: SpacingValueType;
|
|
3954
|
-
} & PickIfExist<react_native.ViewStyle, "position" | "zIndex"> & {
|
|
3955
|
-
__brand__?: "platform-native" | undefined;
|
|
3956
|
-
}> & Pick<MakeObjectResponsive<PickCSSByPlatform<"grid" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "gridArea" | "gridColumn" | "gridRow" | "gridTemplate">>, "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridArea" | "gridColumn" | "gridRow">, "__brand__">> & React__default.RefAttributes<BladeElementRef>>;
|
|
3957
|
-
|
|
3958
|
-
declare type FormInputOnEventWithIndex = ({ name, value, inputIndex, }: {
|
|
3959
|
-
name?: string;
|
|
3960
|
-
value?: string;
|
|
3961
|
-
inputIndex: number;
|
|
3962
|
-
}) => void;
|
|
3963
|
-
declare type OTPInputProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'name' | 'onChange' | 'value' | 'isDisabled' | 'autoFocus' | 'keyboardReturnKeyType' | 'keyboardType' | 'placeholder' | 'testID'> & {
|
|
3964
|
-
/**
|
|
3965
|
-
* Determines the number of input fields to show for the OTP
|
|
3966
|
-
* @default 6
|
|
3967
|
-
*/
|
|
3968
|
-
otpLength?: 4 | 6;
|
|
3969
|
-
/**
|
|
3970
|
-
* The callback function to be invoked when all the values of the OTPInput are filled
|
|
3971
|
-
*/
|
|
3972
|
-
onOTPFilled?: FormInputOnEvent;
|
|
3973
|
-
/**
|
|
3974
|
-
* Masks input characters in all the fields
|
|
3975
|
-
*/
|
|
3976
|
-
isMasked?: boolean;
|
|
3977
|
-
/**
|
|
3978
|
-
* Determines what autoComplete suggestion type to show. Defaults to `oneTimeCode`.
|
|
3979
|
-
*
|
|
3980
|
-
* It's not recommended to turn this off in favor of otp input practices.
|
|
3981
|
-
*
|
|
3982
|
-
*
|
|
3983
|
-
* Internally it'll render platform specific attributes:
|
|
3984
|
-
*
|
|
3985
|
-
* - web: `autocomplete`
|
|
3986
|
-
* - iOS: `textContentType`
|
|
3987
|
-
* - android: `autoComplete`
|
|
3988
|
-
*
|
|
3989
|
-
*/
|
|
3990
|
-
autoCompleteSuggestionType?: Extract<BaseInputProps['autoCompleteSuggestionType'], 'none' | 'oneTimeCode'>;
|
|
3991
|
-
/**
|
|
3992
|
-
* The callback function to be invoked when one of the input fields gets focus
|
|
3993
|
-
*/
|
|
3994
|
-
onFocus?: FormInputOnEventWithIndex;
|
|
3995
|
-
/**
|
|
3996
|
-
* The callback function to be invoked when one of the input fields is blurred
|
|
3997
|
-
*/
|
|
3998
|
-
onBlur?: FormInputOnEventWithIndex;
|
|
3999
|
-
} & StyledPropsBlade;
|
|
4000
|
-
/**
|
|
4001
|
-
* OTPInput component can be used for accepting OTPs sent to users for authentication/verification purposes.
|
|
4002
|
-
*
|
|
4003
|
-
* ## Usage
|
|
4004
|
-
*
|
|
4005
|
-
* ```tsx
|
|
4006
|
-
* <OTPInput
|
|
4007
|
-
* label="Enter OTP"
|
|
4008
|
-
* name="otpInput"
|
|
4009
|
-
* onChange={({ name, value }): void => console.log({ name, value })}
|
|
4010
|
-
* onOTPFilled={({ name, value }): void => console.log({ name, value })}
|
|
4011
|
-
* />
|
|
4012
|
-
* ```
|
|
4013
|
-
*/
|
|
4014
|
-
declare const OTPInput: ({ autoFocus, errorText, helpText, isDisabled, keyboardReturnKeyType, keyboardType, label, labelPosition, name, onChange, onFocus, onBlur, onOTPFilled, otpLength, placeholder, successText, validationState, value, isMasked, autoCompleteSuggestionType, testID, ...styledProps }: OTPInputProps) => React__default.ReactElement;
|
|
4015
|
-
|
|
4016
|
-
declare type SelectInputProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'necessityIndicator' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'name' | 'isDisabled' | 'isRequired' | 'prefix' | 'suffix' | 'autoFocus' | 'onClick' | 'onFocus' | 'onBlur' | 'placeholder' | 'testID'> & {
|
|
4017
|
-
icon?: IconComponent$1;
|
|
4018
|
-
/**
|
|
4019
|
-
* Controlled value of the Select. Use it in combination of `onChange`.
|
|
4020
|
-
*
|
|
4021
|
-
* Check out [Controlled Dropdown Documentation](https://blade.razorpay.com/?path=/story/components-dropdown-with-select--controlled-dropdown&globals=measureEnabled:false) for example.
|
|
4022
|
-
*/
|
|
4023
|
-
value?: string | string[];
|
|
4024
|
-
/**
|
|
4025
|
-
* Used to set the default value of SelectInput when it's uncontrolled. Use `value` instead for controlled SelectInput
|
|
4026
|
-
*/
|
|
4027
|
-
defaultValue?: string | string[];
|
|
4028
|
-
onChange?: ({ name, values }: {
|
|
4029
|
-
name?: string;
|
|
4030
|
-
values: string[];
|
|
4031
|
-
}) => void;
|
|
4032
|
-
};
|
|
4033
|
-
/**
|
|
4034
|
-
* ### SelectInput
|
|
4035
|
-
*
|
|
4036
|
-
* Our equivalent of `<select>` tag. Lets you select items from given options.
|
|
4037
|
-
*
|
|
4038
|
-
* To be used in combination of `Dropdown` and `ActionList` component
|
|
4039
|
-
*
|
|
4040
|
-
* ---
|
|
4041
|
-
*
|
|
4042
|
-
* #### Usage
|
|
4043
|
-
*
|
|
4044
|
-
* ```diff
|
|
4045
|
-
* <Dropdown>
|
|
4046
|
-
* + <SelectInput label="Select Fruits" />
|
|
4047
|
-
* <DropdownOverlay>
|
|
4048
|
-
* <ActionList>
|
|
4049
|
-
* <ActionListItem title="Mango" value="mango" />
|
|
4050
|
-
* <ActionListItem title="Apple" value="apple" />
|
|
4051
|
-
* </ActionList>
|
|
4052
|
-
* </DropdownOverlay>
|
|
4053
|
-
* </Dropdown>
|
|
4054
|
-
* ```
|
|
4055
|
-
*
|
|
4056
|
-
* ---
|
|
4057
|
-
*
|
|
4058
|
-
* Checkout {@link https://blade.razorpay.com/?path=/docs/components-dropdown-with-select--with-single-select SelectInput Documentation}.
|
|
4059
|
-
*/
|
|
4060
|
-
declare const SelectInput: React__default.ForwardRefExoticComponent<Pick<BaseInputProps, "testID" | "name" | "placeholder" | "label" | "onBlur" | "onFocus" | "onClick" | "prefix" | "isDisabled" | "autoFocus" | "labelPosition" | "validationState" | "helpText" | "errorText" | "necessityIndicator" | "successText" | "isRequired" | "suffix"> & {
|
|
4061
|
-
icon?: IconComponent$1 | undefined;
|
|
4062
|
-
/**
|
|
4063
|
-
* Controlled value of the Select. Use it in combination of `onChange`.
|
|
4064
|
-
*
|
|
4065
|
-
* Check out [Controlled Dropdown Documentation](https://blade.razorpay.com/?path=/story/components-dropdown-with-select--controlled-dropdown&globals=measureEnabled:false) for example.
|
|
4066
|
-
*/
|
|
4067
|
-
value?: string | string[] | undefined;
|
|
4068
|
-
/**
|
|
4069
|
-
* Used to set the default value of SelectInput when it's uncontrolled. Use `value` instead for controlled SelectInput
|
|
4070
|
-
*/
|
|
4071
|
-
defaultValue?: string | string[] | undefined;
|
|
4072
|
-
onChange?: (({ name, values }: {
|
|
4073
|
-
name?: string | undefined;
|
|
4074
|
-
values: string[];
|
|
4075
|
-
}) => void) | undefined;
|
|
4076
|
-
} & React__default.RefAttributes<BladeElementRef>>;
|
|
4077
|
-
|
|
4078
|
-
declare type IndicatorCommonProps = {
|
|
4079
|
-
/**
|
|
4080
|
-
* Sets the color tone
|
|
4081
|
-
*
|
|
4082
|
-
* @default neutral
|
|
4083
|
-
*/
|
|
4084
|
-
intent?: Feedback;
|
|
4085
|
-
/**
|
|
4086
|
-
* Size of the indicator
|
|
4087
|
-
*
|
|
4088
|
-
* @default medium
|
|
4089
|
-
*/
|
|
4090
|
-
size?: 'small' | 'medium' | 'large';
|
|
4091
|
-
} & TestID & StyledPropsBlade;
|
|
4092
|
-
declare type IndicatorWithoutA11yLabel = {
|
|
4093
|
-
/**
|
|
4094
|
-
* A text label to show alongside the indicator dot
|
|
4095
|
-
*/
|
|
4096
|
-
children: StringChildrenType;
|
|
4097
|
-
/**
|
|
4098
|
-
* a11y label for screen readers
|
|
4099
|
-
*/
|
|
4100
|
-
accessibilityLabel?: string;
|
|
4101
|
-
};
|
|
4102
|
-
declare type IndicatorWithA11yLabel = {
|
|
4103
|
-
/**
|
|
4104
|
-
* a11y label for screen readers
|
|
4105
|
-
*/
|
|
4106
|
-
accessibilityLabel: string;
|
|
4107
|
-
/**
|
|
4108
|
-
* A text label to show alongside the indicator dot
|
|
4109
|
-
*/
|
|
4110
|
-
children?: StringChildrenType;
|
|
4111
|
-
};
|
|
4112
|
-
declare type IndicatorProps = IndicatorCommonProps & (IndicatorWithA11yLabel | IndicatorWithoutA11yLabel);
|
|
4113
|
-
declare const Indicator: ({ accessibilityLabel, children, size, intent, testID, ...styledProps }: IndicatorProps) => ReactElement;
|
|
4114
|
-
|
|
4115
|
-
declare type ListItemProps = {
|
|
4116
|
-
/**
|
|
4117
|
-
* Children to be rendered for ListItem. This can be a text, ListItemLink or another List.
|
|
4118
|
-
*
|
|
4119
|
-
*/
|
|
4120
|
-
children: React__default.ReactNode;
|
|
4121
|
-
/**
|
|
4122
|
-
* Icon to be rendered for a ListItem's bullet.
|
|
4123
|
-
*
|
|
4124
|
-
*/
|
|
4125
|
-
icon?: IconComponent;
|
|
4126
|
-
/**
|
|
4127
|
-
* This is a private prop to be used only for internal logic purposes.
|
|
4128
|
-
*
|
|
4129
|
-
*/
|
|
4130
|
-
_itemNumber?: undefined;
|
|
4131
|
-
} & TestID;
|
|
4132
|
-
declare const ListItem: ({ children, icon, _itemNumber, testID, }: ListItemProps) => React__default.ReactElement;
|
|
4133
|
-
|
|
4134
|
-
declare type ListCommonProps = {
|
|
4135
|
-
/**
|
|
4136
|
-
* ListItem to be rendered for the List.
|
|
4137
|
-
*
|
|
4138
|
-
*/
|
|
4139
|
-
children: React__default.ReactElement<ListItemProps> | React__default.ReactElement<ListItemProps>[];
|
|
4140
|
-
/**
|
|
4141
|
-
* Sets the variant to be rendered for the List.
|
|
4142
|
-
*
|
|
4143
|
-
* @default 'unordered'
|
|
4144
|
-
*/
|
|
4145
|
-
variant?: 'unordered' | 'ordered' | 'ordered-filled';
|
|
4146
|
-
/**
|
|
4147
|
-
* Sets the size for the List.
|
|
4148
|
-
*
|
|
4149
|
-
* @default 'medium'
|
|
4150
|
-
*/
|
|
4151
|
-
size?: 'small' | 'medium';
|
|
4152
|
-
} & TestID & StyledPropsBlade;
|
|
4153
|
-
declare type ListWithIconProps = ListCommonProps & {
|
|
4154
|
-
variant?: 'unordered';
|
|
4155
|
-
icon?: IconComponent;
|
|
4156
|
-
};
|
|
4157
|
-
declare type ListWithoutIconProps = ListCommonProps & {
|
|
4158
|
-
variant?: 'ordered' | 'ordered-filled';
|
|
4159
|
-
icon?: undefined;
|
|
4160
|
-
};
|
|
4161
|
-
declare type ListProps = ListWithIconProps | ListWithoutIconProps;
|
|
4162
|
-
declare const List: ({ variant, size, children, icon, testID, ...styledProps }: ListProps) => React__default.ReactElement;
|
|
4163
|
-
|
|
4164
|
-
declare type ListItemLinkProps = Exclude<LinkProps, 'size' | 'variant' | 'isDisabled'>;
|
|
4165
|
-
declare const ListItemLink: ({ accessibilityLabel, children, href, icon, iconPosition, onClick, rel, target, testID, }: ListItemLinkProps) => React.ReactElement;
|
|
4166
|
-
|
|
4167
|
-
declare type TitleProps = {
|
|
4168
|
-
size?: 'small' | 'medium' | 'large' | 'xlarge';
|
|
4169
|
-
contrast?: ColorContrastTypes;
|
|
4170
|
-
type?: TextTypes;
|
|
4171
|
-
children: StringChildrenType;
|
|
4172
|
-
} & TestID & StyledPropsBlade;
|
|
4173
|
-
declare const Title: ({ size, type, contrast, children, testID, ...styledProps }: TitleProps) => ReactElement;
|
|
4174
|
-
|
|
4175
|
-
declare type HeadingVariant = 'regular' | 'subheading';
|
|
4176
|
-
declare type HeadingSize = 'small' | 'medium' | 'large';
|
|
4177
|
-
declare type HeadingCommonProps = {
|
|
4178
|
-
type?: TextTypes;
|
|
4179
|
-
contrast?: ColorContrastTypes;
|
|
4180
|
-
children: StringChildrenType;
|
|
4181
|
-
} & TestID & StyledPropsBlade;
|
|
4182
|
-
declare type HeadingNormalVariant = HeadingCommonProps & {
|
|
4183
|
-
variant?: Exclude<HeadingVariant, 'subheading'>;
|
|
4184
|
-
/**
|
|
4185
|
-
*
|
|
4186
|
-
* @default small
|
|
4187
|
-
*/
|
|
4188
|
-
size?: HeadingSize;
|
|
4189
|
-
weight?: keyof Theme$1['typography']['fonts']['weight'];
|
|
4190
|
-
};
|
|
4191
|
-
declare type HeadingSubHeadingVariant = HeadingCommonProps & {
|
|
4192
|
-
variant?: Extract<HeadingVariant, 'subheading'>;
|
|
4193
|
-
/**
|
|
4194
|
-
* `size` cannot be used with variant="subheading". Either change to variant="regular" or remove size prop
|
|
4195
|
-
*/
|
|
4196
|
-
size?: undefined;
|
|
4197
|
-
weight?: keyof Pick<Theme$1['typography']['fonts']['weight'], 'bold'>;
|
|
4198
|
-
};
|
|
4199
|
-
/**
|
|
4200
|
-
* Conditionally changing props based on variant.
|
|
4201
|
-
* Overloads or union gives wrong intellisense.
|
|
4202
|
-
*/
|
|
4203
|
-
declare type HeadingProps<T> = T extends {
|
|
4204
|
-
variant: infer Variant;
|
|
4205
|
-
} ? Variant extends Exclude<HeadingVariant, 'subheading'> ? HeadingNormalVariant : Variant extends 'subheading' ? HeadingSubHeadingVariant : T : T;
|
|
4206
|
-
declare const Heading: <T extends {
|
|
4207
|
-
variant: HeadingVariant;
|
|
4208
|
-
}>({ variant, size, type, weight, contrast, children, testID, ...styledProps }: HeadingProps<T>) => ReactElement;
|
|
4209
|
-
|
|
4210
|
-
declare type FeedbackColors = `feedback.text.${DotNotationColorStringToken<Theme$1['colors']['feedback']['text']>}`;
|
|
4211
|
-
declare type FeedbackActionColors = `feedback.${Feedback}.action.text.${DotNotationColorStringToken<Theme$1['colors']['feedback'][Feedback]['action']['text']>}`;
|
|
4212
|
-
declare type SurfaceColors = `surface.text.${DotNotationColorStringToken<Theme$1['colors']['surface']['text']>}`;
|
|
4213
|
-
declare type ActionColors = `action.text.${DotNotationColorStringToken<Theme$1['colors']['action']['text']>}`;
|
|
4214
|
-
declare type BadgeTextColors = `badge.text.${DotNotationColorStringToken<Theme$1['colors']['badge']['text']>}`;
|
|
4215
|
-
declare type BaseTextProps = {
|
|
4216
|
-
id?: string;
|
|
4217
|
-
color?: ActionColors | FeedbackColors | SurfaceColors | FeedbackActionColors | BadgeTextColors;
|
|
4218
|
-
fontFamily?: keyof Theme$1['typography']['fonts']['family'];
|
|
4219
|
-
fontSize?: keyof Theme$1['typography']['fonts']['size'];
|
|
4220
|
-
fontWeight?: keyof Theme$1['typography']['fonts']['weight'];
|
|
4221
|
-
fontStyle?: 'italic' | 'normal';
|
|
4222
|
-
textDecorationLine?: 'line-through' | 'none' | 'underline';
|
|
4223
|
-
lineHeight?: keyof Theme$1['typography']['lineHeights'];
|
|
4224
|
-
/**
|
|
4225
|
-
* Web only
|
|
4226
|
-
*/
|
|
4227
|
-
as?: 'code' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';
|
|
4228
|
-
textAlign?: 'center' | 'justify' | 'left' | 'right';
|
|
4229
|
-
truncateAfterLines?: number;
|
|
4230
|
-
className?: string;
|
|
4231
|
-
style?: React.CSSProperties;
|
|
4232
|
-
children: React.ReactNode;
|
|
4233
|
-
accessibilityProps?: Partial<AccessibilityProps>;
|
|
4234
|
-
/**
|
|
4235
|
-
* React Native only
|
|
4236
|
-
*/
|
|
4237
|
-
numberOfLines?: number;
|
|
4238
|
-
componentName?: 'text' | 'title' | 'heading' | 'code';
|
|
4239
|
-
} & TestID & StyledPropsBlade;
|
|
4240
|
-
|
|
4241
|
-
declare type TextCommonProps = {
|
|
4242
|
-
type?: TextTypes;
|
|
4243
|
-
contrast?: ColorContrastTypes;
|
|
4244
|
-
truncateAfterLines?: number;
|
|
4245
|
-
children: React.ReactNode;
|
|
4246
|
-
weight?: keyof Theme$1['typography']['fonts']['weight'];
|
|
4247
|
-
/**
|
|
4248
|
-
* **For Internal use only**: Sets the color of the Text component
|
|
4249
|
-
*/
|
|
4250
|
-
color?: BaseTextProps['color'];
|
|
4251
|
-
textAlign?: BaseTextProps['textAlign'];
|
|
4252
|
-
} & TestID & StyledPropsBlade;
|
|
4253
|
-
declare type TextVariant = 'body' | 'caption';
|
|
4254
|
-
declare type TextBodyVariant = TextCommonProps & {
|
|
4255
|
-
variant?: Extract<TextVariant, 'body'>;
|
|
4256
|
-
size?: 'xsmall' | 'small' | 'medium' | 'large';
|
|
4257
|
-
};
|
|
4258
|
-
declare type TextCaptionVariant = TextCommonProps & {
|
|
4259
|
-
variant?: Extract<TextVariant, 'caption'>;
|
|
4260
|
-
size?: 'medium';
|
|
4261
|
-
};
|
|
4262
|
-
/**
|
|
4263
|
-
* Conditionally changing props based on variant.
|
|
4264
|
-
* Overloads or union gives wrong intellisense.
|
|
4265
|
-
*/
|
|
4266
|
-
declare type TextProps<T> = T extends {
|
|
4267
|
-
variant: infer Variant;
|
|
4268
|
-
} ? Variant extends 'caption' ? TextCaptionVariant : Variant extends 'body' ? TextBodyVariant : T : T;
|
|
4269
|
-
declare type TextForwardedAs = {
|
|
4270
|
-
forwardedAs?: BaseTextProps['as'];
|
|
4271
|
-
};
|
|
4272
|
-
declare type GetTextPropsReturn = Omit<BaseTextProps, 'children'> & TextForwardedAs;
|
|
4273
|
-
declare type GetTextProps<T extends {
|
|
4274
|
-
variant: TextVariant;
|
|
4275
|
-
}> = Pick<TextProps<T>, 'type' | 'variant' | 'weight' | 'size' | 'contrast' | 'testID' | 'textAlign'>;
|
|
4276
|
-
declare const getTextProps: <T extends {
|
|
4277
|
-
variant: TextVariant;
|
|
4278
|
-
}>({ variant, type, weight, size, contrast, testID, textAlign, }: GetTextProps<T>) => GetTextPropsReturn;
|
|
4279
|
-
declare const Text: <T extends {
|
|
4280
|
-
variant: TextVariant;
|
|
4281
|
-
}>({ variant, weight, size, type, contrast, truncateAfterLines, children, color, testID, textAlign, ...styledProps }: TextProps<T>) => ReactElement;
|
|
4282
|
-
|
|
4283
|
-
declare type CodeProps = {
|
|
4284
|
-
children: StringChildrenType;
|
|
4285
|
-
/**
|
|
4286
|
-
* Decides the fontSize and padding of Code
|
|
4287
|
-
*
|
|
4288
|
-
* @default small
|
|
4289
|
-
*/
|
|
4290
|
-
size?: 'small' | 'medium';
|
|
4291
|
-
weight?: 'regular' | 'bold';
|
|
4292
|
-
} & TestID & StyledPropsBlade;
|
|
4293
|
-
/**
|
|
4294
|
-
* Code component can be used for displaying token, variable names, or inlined code snippets.
|
|
4295
|
-
*
|
|
4296
|
-
* ## Usage
|
|
4297
|
-
*
|
|
4298
|
-
* ### In Web
|
|
4299
|
-
* In web, you can use it inside `Text` component or individually. The component is set to display `inline-block`
|
|
4300
|
-
*
|
|
4301
|
-
* ```tsx
|
|
4302
|
-
* <Text>
|
|
4303
|
-
* Lorem ipsum <Code>SENTRY_TOKEN</Code> normal text
|
|
4304
|
-
* </Text>
|
|
4305
|
-
* ```
|
|
4306
|
-
*
|
|
4307
|
-
* ### In React Native
|
|
4308
|
-
*
|
|
4309
|
-
* In React Native, you would have to align it using flex to make sure the Code and the surrounding text is correctly aligned
|
|
4310
|
-
*
|
|
4311
|
-
* ```tsx
|
|
4312
|
-
* <BaseBox flexWrap="wrap" flexDirection="row" alignItems="flex-start">
|
|
4313
|
-
* <Text>Lorem ipsum </Text>
|
|
4314
|
-
* <Code>SENTRY_TOKEN</Code>
|
|
4315
|
-
* <Text> normal text</Text>
|
|
4316
|
-
* </BaseBox>
|
|
4317
|
-
* ```
|
|
4318
|
-
*/
|
|
4319
|
-
declare const Code: ({ children, size, weight, testID, ...styledProps }: CodeProps) => JSX.Element;
|
|
4320
|
-
|
|
4321
|
-
declare type ListItemCodeProps = Exclude<CodeProps, 'size'>;
|
|
4322
|
-
declare const ListItemCode: ({ children, testID }: ListItemCodeProps) => React.ReactElement;
|
|
4323
|
-
|
|
4324
|
-
declare type Assertiveness = AriaAttributes['liveRegion'];
|
|
4325
|
-
|
|
4326
|
-
declare function announce(message: string, _assertiveness?: Assertiveness): void;
|
|
4327
|
-
declare function clearAnnouncer(_assertiveness: Assertiveness): void;
|
|
4328
|
-
declare function destroyAnnouncer(): void;
|
|
4329
|
-
|
|
4330
|
-
declare type ProgressBarCommonProps = {
|
|
4331
|
-
/**
|
|
4332
|
-
* Sets aria-label to help users know what the progress bar is for. Default value is the same as the `label` passed.
|
|
4333
|
-
*/
|
|
4334
|
-
accessibilityLabel?: string;
|
|
4335
|
-
/**
|
|
4336
|
-
* Sets the contrast for the progress bar
|
|
4337
|
-
* @default 'low'
|
|
4338
|
-
*/
|
|
4339
|
-
contrast?: ColorContrastTypes;
|
|
4340
|
-
/**
|
|
4341
|
-
* Sets the intent of the progress bar which changes the feedback color.
|
|
4342
|
-
*/
|
|
4343
|
-
intent?: Feedback;
|
|
4344
|
-
/**
|
|
4345
|
-
* Sets the label to be rendered for the progress bar. This value will also be used as default for `accessibilityLabel`.
|
|
4346
|
-
*/
|
|
4347
|
-
label?: string;
|
|
4348
|
-
/**
|
|
4349
|
-
* Sets the size of the progress bar.
|
|
4350
|
-
* @default 'small'
|
|
4351
|
-
*/
|
|
4352
|
-
size?: 'small' | 'medium';
|
|
4353
|
-
/**
|
|
4354
|
-
* Sets the progress value of the progress bar.
|
|
4355
|
-
* @default 'small'
|
|
4356
|
-
*/
|
|
4357
|
-
value?: number;
|
|
4358
|
-
/**
|
|
4359
|
-
* Sets the minimum value for the progress bar.
|
|
4360
|
-
* @default 0
|
|
4361
|
-
*/
|
|
4362
|
-
min?: number;
|
|
4363
|
-
/**
|
|
4364
|
-
* Sets the maximum value for the progress bar.
|
|
4365
|
-
* @default 100
|
|
4366
|
-
*/
|
|
4367
|
-
max?: number;
|
|
4368
|
-
} & TestID & StyledPropsBlade;
|
|
4369
|
-
declare type ProgressBarVariant = 'progress' | 'meter';
|
|
4370
|
-
declare type ProgressBarProgressProps = ProgressBarCommonProps & {
|
|
4371
|
-
/**
|
|
4372
|
-
* Sets the variant to be rendered for the progress bar.
|
|
4373
|
-
* @default 'progress'
|
|
4374
|
-
*/
|
|
4375
|
-
variant?: Extract<ProgressBarVariant, 'progress'>;
|
|
4376
|
-
/**
|
|
4377
|
-
* Sets whether the progress bar is in an indeterminate state.
|
|
4378
|
-
* @default false
|
|
4379
|
-
*/
|
|
4380
|
-
isIndeterminate?: boolean;
|
|
4381
|
-
/**
|
|
4382
|
-
* Sets whether or not to show the progress percentage for the progress bar. Percentage is hidden by default for the `meter` variant.
|
|
4383
|
-
* @default true
|
|
4384
|
-
*/
|
|
4385
|
-
showPercentage?: boolean;
|
|
4386
|
-
};
|
|
4387
|
-
declare type ProgressBarMeterProps = ProgressBarCommonProps & {
|
|
4388
|
-
/**
|
|
4389
|
-
* Sets the variant to be rendered for thr progress bar.
|
|
4390
|
-
* @default 'progress'
|
|
4391
|
-
*/
|
|
4392
|
-
variant?: Extract<ProgressBarVariant, 'meter'>;
|
|
4393
|
-
/**
|
|
4394
|
-
* Sets whether the progress bar is in an indeterminate state.
|
|
4395
|
-
* @default false
|
|
4396
|
-
*/
|
|
4397
|
-
isIndeterminate?: undefined;
|
|
4398
|
-
/**
|
|
4399
|
-
* Sets whether or not to show the progress percentage for the progress bar. Percentage is hidden by default for the `meter` variant.
|
|
4400
|
-
* @default false
|
|
4401
|
-
*/
|
|
4402
|
-
showPercentage?: undefined;
|
|
4403
|
-
};
|
|
4404
|
-
declare type ProgressBarProps = ProgressBarProgressProps | ProgressBarMeterProps;
|
|
4405
|
-
declare const ProgressBar: ({ accessibilityLabel, contrast, intent, isIndeterminate, label, showPercentage, size, value, variant, min, max, testID, ...styledProps }: ProgressBarProps) => ReactElement;
|
|
4406
|
-
|
|
4407
|
-
declare type RadioProps = {
|
|
4408
|
-
/**
|
|
4409
|
-
* Sets the label text of the Radio
|
|
4410
|
-
*/
|
|
4411
|
-
children: StringChildrenType;
|
|
4412
|
-
/**
|
|
4413
|
-
* Help text for the Radio
|
|
4414
|
-
*/
|
|
4415
|
-
helpText?: string;
|
|
4416
|
-
/**
|
|
4417
|
-
* The value to be used in the Radio input.
|
|
4418
|
-
* This is the value that will be returned on form submission.
|
|
4419
|
-
*/
|
|
4420
|
-
value: string;
|
|
4421
|
-
/**
|
|
4422
|
-
* If `true`, the Radio will be disabled
|
|
4423
|
-
*
|
|
4424
|
-
* @default false
|
|
4425
|
-
*/
|
|
4426
|
-
isDisabled?: boolean;
|
|
4427
|
-
/**
|
|
4428
|
-
* Size of the radios
|
|
4429
|
-
*
|
|
4430
|
-
* @default "medium"
|
|
4431
|
-
*/
|
|
4432
|
-
size?: 'small' | 'medium';
|
|
4433
|
-
} & TestID & StyledPropsBlade;
|
|
4434
|
-
declare const Radio: React__default.ForwardRefExoticComponent<{
|
|
4435
|
-
/**
|
|
4436
|
-
* Sets the label text of the Radio
|
|
4437
|
-
*/
|
|
4438
|
-
children: StringChildrenType;
|
|
4439
|
-
/**
|
|
4440
|
-
* Help text for the Radio
|
|
4441
|
-
*/
|
|
4442
|
-
helpText?: string | undefined;
|
|
4443
|
-
/**
|
|
4444
|
-
* The value to be used in the Radio input.
|
|
4445
|
-
* This is the value that will be returned on form submission.
|
|
4446
|
-
*/
|
|
4447
|
-
value: string;
|
|
4448
|
-
/**
|
|
4449
|
-
* If `true`, the Radio will be disabled
|
|
4450
|
-
*
|
|
4451
|
-
* @default false
|
|
4452
|
-
*/
|
|
4453
|
-
isDisabled?: boolean | undefined;
|
|
4454
|
-
/**
|
|
4455
|
-
* Size of the radios
|
|
4456
|
-
*
|
|
4457
|
-
* @default "medium"
|
|
4458
|
-
*/
|
|
4459
|
-
size?: "small" | "medium" | undefined;
|
|
4460
|
-
} & TestID & Partial<Omit<MakeObjectResponsive<{
|
|
4461
|
-
margin: SpacingValueType | ArrayOfMaxLength4<SpacingValueType>;
|
|
4462
|
-
marginX: SpacingValueType;
|
|
4463
|
-
marginY: SpacingValueType;
|
|
4464
|
-
marginTop: SpacingValueType;
|
|
4465
|
-
marginRight: SpacingValueType;
|
|
4466
|
-
marginBottom: SpacingValueType;
|
|
4467
|
-
marginLeft: SpacingValueType;
|
|
4468
|
-
}> & Pick<MakeObjectResponsive<{
|
|
4469
|
-
gap: SpacingValueType;
|
|
4470
|
-
rowGap: SpacingValueType;
|
|
4471
|
-
columnGap: SpacingValueType;
|
|
4472
|
-
flex: string | number;
|
|
4473
|
-
} & PickIfExist$1<react_native.ViewStyle, "alignContent" | "alignItems" | "alignSelf" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "justifyContent" | "justifyItems" | "justifySelf" | "order" | "placeSelf"> & {
|
|
4474
|
-
__brand__?: "platform-native" | undefined;
|
|
4475
|
-
}>, "alignSelf" | "justifySelf" | "order" | "placeSelf"> & MakeObjectResponsive<{
|
|
4476
|
-
top: SpacingValueType;
|
|
4477
|
-
right: SpacingValueType;
|
|
4478
|
-
bottom: SpacingValueType;
|
|
4479
|
-
left: SpacingValueType;
|
|
4480
|
-
} & PickIfExist$1<react_native.ViewStyle, "position" | "zIndex"> & {
|
|
4481
|
-
__brand__?: "platform-native" | undefined;
|
|
4482
|
-
}> & Pick<MakeObjectResponsive<PickCSSByPlatform$1<"grid" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "gridArea" | "gridColumn" | "gridRow" | "gridTemplate">>, "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridArea" | "gridColumn" | "gridRow">, "__brand__">> & React__default.RefAttributes<BladeElementRef>>;
|
|
4483
|
-
|
|
4484
|
-
declare type RadioGroupProps = {
|
|
4485
|
-
/**
|
|
4486
|
-
* Accepts multiple radios as children
|
|
4487
|
-
*/
|
|
4488
|
-
children: React__default.ReactNode;
|
|
4489
|
-
/**
|
|
4490
|
-
* Help text of the radio group
|
|
4491
|
-
*/
|
|
4492
|
-
helpText?: string;
|
|
4493
|
-
/**
|
|
4494
|
-
* Error text of the radio group
|
|
4495
|
-
* Renders when `validationState` is set to 'error'
|
|
4496
|
-
*
|
|
4497
|
-
* Overrides helpText
|
|
4498
|
-
*/
|
|
4499
|
-
errorText?: string;
|
|
4500
|
-
/**
|
|
4501
|
-
* Sets the error state of the radioGroup
|
|
4502
|
-
* If set to `error` it will render the `errorText` of the group,
|
|
4503
|
-
* and propagate `invalid` prop to every radio
|
|
4504
|
-
*/
|
|
4505
|
-
validationState?: 'error' | 'none';
|
|
4506
|
-
/**
|
|
4507
|
-
* Renders a necessity indicator after radioGroup label
|
|
4508
|
-
*
|
|
4509
|
-
* If set to `undefined` it renders nothing.
|
|
4510
|
-
*/
|
|
4511
|
-
necessityIndicator?: 'required' | 'optional' | 'none';
|
|
4512
|
-
/**
|
|
4513
|
-
* Sets the disabled state of the radioGroup
|
|
4514
|
-
* If set to `true` it propagate down to all the radios
|
|
4515
|
-
*
|
|
4516
|
-
* @default false
|
|
4517
|
-
*/
|
|
4518
|
-
isDisabled?: boolean;
|
|
4519
|
-
/**
|
|
4520
|
-
* Renders the label of the radio group
|
|
4521
|
-
*/
|
|
4522
|
-
label: string;
|
|
4523
|
-
/**
|
|
4524
|
-
* Sets the position of the label
|
|
4525
|
-
*
|
|
4526
|
-
* @default 'top'
|
|
4527
|
-
*/
|
|
4528
|
-
labelPosition?: 'top' | 'left';
|
|
4529
|
-
/**
|
|
4530
|
-
* Initial value of the radio group
|
|
4531
|
-
*/
|
|
4532
|
-
defaultValue?: string;
|
|
4533
|
-
/**
|
|
4534
|
-
* value of the radio group
|
|
4535
|
-
*
|
|
4536
|
-
* Use `onChange` to update its value
|
|
4537
|
-
*/
|
|
4538
|
-
value?: string;
|
|
4539
|
-
/**
|
|
4540
|
-
* The callback invoked when any of the radio's state changes
|
|
4541
|
-
*/
|
|
4542
|
-
onChange?: ({ name, value }: {
|
|
4543
|
-
name: string | undefined;
|
|
4544
|
-
value: string;
|
|
4545
|
-
}) => void;
|
|
4546
|
-
/**
|
|
4547
|
-
* The name of the input field in a radio
|
|
4548
|
-
* (Useful for form submission).
|
|
4549
|
-
*/
|
|
4550
|
-
name?: string;
|
|
4551
|
-
/**
|
|
4552
|
-
* Size of the radios
|
|
4553
|
-
*
|
|
4554
|
-
* @default "medium"
|
|
4555
|
-
*/
|
|
4556
|
-
size?: 'small' | 'medium';
|
|
4557
|
-
} & TestID & StyledPropsBlade;
|
|
4558
|
-
declare const RadioGroup: ({ children, label, helpText, isDisabled, necessityIndicator, labelPosition, validationState, errorText, name, defaultValue, onChange, value, size, testID, ...styledProps }: RadioGroupProps) => React__default.ReactElement;
|
|
4559
|
-
|
|
4560
|
-
declare type BaseSpinnerProps = {
|
|
4561
|
-
intent?: Feedback;
|
|
4562
|
-
/**
|
|
4563
|
-
* Sets the label of the spinner.
|
|
4564
|
-
*
|
|
4565
|
-
* @default 'right'
|
|
4566
|
-
*/
|
|
4567
|
-
label?: string;
|
|
4568
|
-
/**
|
|
4569
|
-
* Sets the label of the spinner.
|
|
4570
|
-
*
|
|
4571
|
-
*/
|
|
4572
|
-
labelPosition?: 'right' | 'bottom';
|
|
4573
|
-
/**
|
|
4574
|
-
* Sets the contrast of the spinner.
|
|
4575
|
-
*
|
|
4576
|
-
* @default 'low'
|
|
4577
|
-
*/
|
|
4578
|
-
contrast?: ColorContrastTypes;
|
|
4579
|
-
/**
|
|
4580
|
-
* Sets the size of the spinner.
|
|
4581
|
-
*
|
|
4582
|
-
* @default 'medium'
|
|
4583
|
-
*/
|
|
4584
|
-
size?: 'medium' | 'large' | 'xlarge';
|
|
4585
|
-
/**
|
|
4586
|
-
* Sets the aria-label for web & accessibilityLabel react-native.
|
|
4587
|
-
*
|
|
4588
|
-
*/
|
|
4589
|
-
accessibilityLabel: string;
|
|
4590
|
-
} & TestID & StyledPropsBlade;
|
|
4591
|
-
|
|
4592
|
-
declare type SpinnerProps = Omit<BaseSpinnerProps, 'intent'>;
|
|
4593
|
-
declare const Spinner: ({ label, labelPosition, accessibilityLabel, contrast, size, testID, ...styledProps }: SpinnerProps) => React.ReactElement;
|
|
4594
|
-
|
|
4595
|
-
declare type SkipNavLinkProps = {
|
|
4596
|
-
id?: string;
|
|
4597
|
-
children?: StringChildrenType;
|
|
4598
|
-
};
|
|
4599
|
-
declare const SkipNavLink: (_props: SkipNavLinkProps) => never;
|
|
4600
|
-
declare const SkipNavContent: (_props: SkipNavLinkProps) => never;
|
|
4601
|
-
|
|
4602
|
-
declare type VisuallyHiddenProps = {
|
|
4603
|
-
children: React.ReactNode;
|
|
4604
|
-
} & TestID;
|
|
4605
|
-
|
|
4606
|
-
declare const VisuallyHidden: ({ children, testID }: VisuallyHiddenProps) => JSX.Element;
|
|
4607
|
-
|
|
4608
|
-
/**
|
|
4609
|
-
* Screen reader class adapted from webaim
|
|
4610
|
-
* https://webaim.org/techniques/css/invisiblecontent/#techniques
|
|
4611
|
-
*/
|
|
4612
|
-
declare const screenReaderStyles: CSSObject;
|
|
4613
|
-
|
|
4614
|
-
declare type Currency = 'INR' | 'MYR';
|
|
4615
|
-
declare type AmountProps = {
|
|
4616
|
-
/**
|
|
4617
|
-
* The value to be rendered within the component.
|
|
4618
|
-
*
|
|
4619
|
-
*/
|
|
4620
|
-
value: number;
|
|
4621
|
-
/**
|
|
4622
|
-
* Sets the intent of the amount.
|
|
4623
|
-
*
|
|
4624
|
-
* @default undefined
|
|
4625
|
-
*/
|
|
4626
|
-
intent?: Exclude<Feedback, 'neutral'>;
|
|
4627
|
-
/**
|
|
4628
|
-
* Sets the size of the amount.
|
|
4629
|
-
*
|
|
4630
|
-
* @default 'body-medium'
|
|
4631
|
-
*/
|
|
4632
|
-
size?: 'body-medium-bold' | 'body-small' | 'body-small-bold' | 'body-medium' | 'body-medium-bold' | 'heading-small' | 'heading-small-bold' | 'heading-large' | 'heading-large-bold' | 'title-small' | 'title-medium';
|
|
4633
|
-
/**
|
|
4634
|
-
* Indicates what the suffix of amount should be
|
|
4635
|
-
*
|
|
4636
|
-
* @default 'decimals'
|
|
4637
|
-
*/
|
|
4638
|
-
suffix?: 'decimals' | 'none' | 'humanize';
|
|
4639
|
-
/**
|
|
4640
|
-
* Makes the prefix symbol and decimal digits small and faded
|
|
4641
|
-
*
|
|
4642
|
-
* @default true
|
|
4643
|
-
*/
|
|
4644
|
-
isAffixSubtle?: true | false;
|
|
4645
|
-
/**
|
|
4646
|
-
* Prefix to be shown before the amount value. The prefix can be either a currency symbol or a currency code.
|
|
4647
|
-
*
|
|
4648
|
-
* @default 'currency-symbol'
|
|
4649
|
-
*/
|
|
4650
|
-
prefix?: 'currency-symbol' | 'currency-code';
|
|
4651
|
-
/**
|
|
4652
|
-
* The currency of the amount.
|
|
4653
|
-
*
|
|
4654
|
-
* @default 'INR'
|
|
4655
|
-
* */
|
|
4656
|
-
currency?: Currency;
|
|
4657
|
-
} & TestID & StyledPropsBlade;
|
|
4658
|
-
declare const Amount: ({ value, suffix, size, isAffixSubtle, intent, prefix, testID, currency, ...styledProps }: AmountProps) => ReactElement;
|
|
4659
|
-
|
|
4660
|
-
declare type BaseHeaderProps = {
|
|
4661
|
-
title?: string;
|
|
4662
|
-
subtitle?: string;
|
|
4663
|
-
/**
|
|
4664
|
-
* Leading part of the header placed at the left most side of the header
|
|
4665
|
-
*/
|
|
4666
|
-
leading?: React__default.ReactNode;
|
|
4667
|
-
/**
|
|
4668
|
-
* Trailing part of the header placed at the right most side of the header
|
|
4669
|
-
*/
|
|
4670
|
-
trailing?: React__default.ReactNode;
|
|
4671
|
-
/**
|
|
4672
|
-
* Placed adjacent to the title text
|
|
4673
|
-
*/
|
|
4674
|
-
titleSuffix?: React__default.ReactNode;
|
|
4675
|
-
/**
|
|
4676
|
-
* @default true
|
|
4677
|
-
*/
|
|
4678
|
-
showDivider?: boolean;
|
|
4679
|
-
/**
|
|
4680
|
-
* @default false
|
|
4681
|
-
*/
|
|
4682
|
-
showBackButton?: boolean;
|
|
4683
|
-
/**
|
|
4684
|
-
* @default true
|
|
4685
|
-
*/
|
|
4686
|
-
showCloseButton?: boolean;
|
|
4687
|
-
onCloseButtonClick?: () => void;
|
|
4688
|
-
onBackButtonClick?: () => void;
|
|
4689
|
-
closeButtonRef: React__default.MutableRefObject<any>;
|
|
4690
|
-
} & Pick<ReactDOMAttributes, 'onClickCapture' | 'onKeyDown' | 'onKeyUp' | 'onLostPointerCapture' | 'onPointerCancel' | 'onPointerDown' | 'onPointerMove' | 'onPointerUp'>;
|
|
4691
|
-
|
|
4692
|
-
declare type BaseFooterProps = {
|
|
4693
|
-
children: React__default.ReactNode;
|
|
4694
|
-
showDivider?: boolean;
|
|
4695
|
-
};
|
|
4696
|
-
|
|
4697
|
-
declare type SnapPoints = [number, number, number];
|
|
4698
|
-
|
|
4699
|
-
declare type BottomSheetProps = {
|
|
4700
|
-
children: React.ReactNode;
|
|
4701
|
-
snapPoints?: SnapPoints;
|
|
4702
|
-
onDismiss?: () => void;
|
|
4703
|
-
isOpen?: boolean;
|
|
4704
|
-
initialFocusRef?: React.MutableRefObject<any>;
|
|
4705
|
-
};
|
|
4706
|
-
declare type BottomSheetHeaderProps = Pick<BaseHeaderProps, 'title' | 'subtitle' | 'leading' | 'trailing' | 'titleSuffix' | 'showBackButton' | 'onBackButtonClick'>;
|
|
4707
|
-
declare type BottomSheetFooterProps = Pick<BaseFooterProps, 'children'>;
|
|
4708
|
-
|
|
4709
|
-
declare const BottomSheetHeader: ({ title, subtitle, leading, trailing, titleSuffix, showBackButton, onBackButtonClick, }: BottomSheetHeaderProps) => React__default.ReactElement;
|
|
4710
|
-
|
|
4711
|
-
declare const BottomSheetBody: ({ children }: {
|
|
4712
|
-
children: React__default.ReactNode;
|
|
4713
|
-
}) => React__default.ReactElement;
|
|
4714
|
-
|
|
4715
|
-
declare const BottomSheetFooter: ({ children }: BottomSheetFooterProps) => React__default.ReactElement;
|
|
4716
|
-
|
|
4717
|
-
declare const BottomSheet: ({ children, snapPoints, isOpen, onDismiss, initialFocusRef, }: BottomSheetProps) => React__default.ReactElement;
|
|
4718
|
-
|
|
4719
|
-
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, Amount, AmountProps, 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, BottomSheet, BottomSheetBody, BottomSheetFooter, BottomSheetFooterProps, BottomSheetHeader, BottomSheetHeaderProps, BottomSheetProps, 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, 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, useActionListContext, useTheme };
|