@razorpay/blade 6.2.3 → 6.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/build/components/index.d.ts +453 -337
- package/build/components/index.native.d.ts +452 -336
- package/build/components/index.native.js +63 -17260
- package/build/components/index.native.js.map +1 -1
- package/build/components/index.web.js +539 -17459
- package/build/components/index.web.js.map +1 -1
- package/build/css/bankingThemeDarkDesktop.css +1 -1
- package/build/css/bankingThemeDarkMobile.css +1 -1
- package/build/css/bankingThemeLightDesktop.css +1 -1
- package/build/css/bankingThemeLightMobile.css +1 -1
- package/build/css/paymentThemeDarkDesktop.css +1 -1
- package/build/css/paymentThemeDarkMobile.css +1 -1
- package/build/css/paymentThemeLightDesktop.css +1 -1
- package/build/css/paymentThemeLightMobile.css +1 -1
- package/build/tokens/index.d.ts +54 -1
- package/build/tokens/index.native.d.ts +54 -1
- package/build/utils/index.d.ts +5 -1
- package/build/utils/index.native.d.ts +5 -1
- package/build/utils/index.native.js +3 -3
- package/build/utils/index.native.js.map +1 -1
- package/build/utils/index.web.js +12 -6
- package/build/utils/index.web.js.map +1 -1
- package/package.json +1 -1
|
@@ -4,59 +4,6 @@ import React__default, { ReactChild, ReactElement, ReactNode, SyntheticEvent, Ke
|
|
|
4
4
|
import { AccessibilityRole, ImageSourcePropType, View, GestureResponderEvent } from 'react-native';
|
|
5
5
|
import { CSSObject } from 'styled-components';
|
|
6
6
|
|
|
7
|
-
declare type ActionListProps = {
|
|
8
|
-
children: React__default.ReactNode[];
|
|
9
|
-
/**
|
|
10
|
-
* Decides the backgroundColor of ActionList
|
|
11
|
-
*/
|
|
12
|
-
surfaceLevel?: 2 | 3;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* ### ActionList
|
|
16
|
-
*
|
|
17
|
-
* List of multiple actionable items. Can be used as menu items inside `Dropdown`,
|
|
18
|
-
* `BottomSheet` and as selectable items when combined with `SelectInput`
|
|
19
|
-
*
|
|
20
|
-
* #### Usage
|
|
21
|
-
*
|
|
22
|
-
* ```jsx
|
|
23
|
-
* <Dropdown>
|
|
24
|
-
* <SelectInput label="Select Action" />
|
|
25
|
-
* <DropdownOverlay>
|
|
26
|
-
* <ActionList>
|
|
27
|
-
* <ActionListHeader
|
|
28
|
-
* title="Recent Searches"
|
|
29
|
-
* leading={<ActionListHeaderIcon icon={HistoryIcon} />}
|
|
30
|
-
* />
|
|
31
|
-
* <ActionListItem
|
|
32
|
-
* title="Home"
|
|
33
|
-
* value="home"
|
|
34
|
-
* leading={<ActionListItemIcon icon={HomeIcon} />}
|
|
35
|
-
* />
|
|
36
|
-
* <ActionListItem
|
|
37
|
-
* title="Pricing"
|
|
38
|
-
* value="pricing"
|
|
39
|
-
* leading={<ActionListItemAsset src="https://flagcdn.com/w20/in.png" alt="India Flag" />}
|
|
40
|
-
* />
|
|
41
|
-
* <ActionListHeader
|
|
42
|
-
* title="Search Tips"
|
|
43
|
-
* leading={<ActionListFooterIcon icon={SearchIcon} />}
|
|
44
|
-
* trailing={
|
|
45
|
-
* <Button
|
|
46
|
-
* onClick={() => console.log('clicked')}
|
|
47
|
-
* >
|
|
48
|
-
* Apply
|
|
49
|
-
* </Button>
|
|
50
|
-
* }
|
|
51
|
-
* />
|
|
52
|
-
* </ActionList>
|
|
53
|
-
* </DropdownOverlay>
|
|
54
|
-
* </Dropdown>
|
|
55
|
-
* ```
|
|
56
|
-
*
|
|
57
|
-
*/
|
|
58
|
-
declare const ActionList: ({ children, surfaceLevel }: ActionListProps) => JSX.Element;
|
|
59
|
-
|
|
60
7
|
type BorderRadius = Readonly<{
|
|
61
8
|
/** none: 0(px/rem/pt) */
|
|
62
9
|
none: 0;
|
|
@@ -280,40 +227,161 @@ type Spacing = Readonly<{
|
|
|
280
227
|
11: 56;
|
|
281
228
|
}>;
|
|
282
229
|
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
* @description Tokenises objects to dot notation strings, eg: `surface.text.normal.lowContrast`
|
|
286
|
-
*/
|
|
287
|
-
type DotNotationColorStringToken<TokenType> = {
|
|
288
|
-
[K in keyof TokenType]: `${Extract<K, number | string>}.${TokenType[K] extends Record<
|
|
289
|
-
string,
|
|
290
|
-
string
|
|
291
|
-
>
|
|
292
|
-
? Extract<keyof TokenType[K], number | string>
|
|
293
|
-
: DotNotationColorStringToken<TokenType[K]>}`;
|
|
294
|
-
}[keyof TokenType];
|
|
230
|
+
type ColorSchemeNames = 'dark' | 'light';
|
|
231
|
+
type ColorSchemeNamesInput = ColorSchemeNames | 'system';
|
|
295
232
|
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
233
|
+
type ColorSchemeModes = 'onDark' | 'onLight';
|
|
234
|
+
|
|
235
|
+
type ShadowLevels = 1 | 2 | 3 | 4 | 5;
|
|
236
|
+
|
|
237
|
+
type TextTypes = 'muted' | 'normal' | 'placeholder' | 'subdued' | 'subtle';
|
|
238
|
+
|
|
239
|
+
type ColorContrastTypes = 'low' | 'high';
|
|
240
|
+
|
|
241
|
+
type Shadows = {
|
|
242
|
+
offsetX: {
|
|
243
|
+
level: Record<ShadowLevels, number>;
|
|
244
|
+
};
|
|
245
|
+
offsetY: {
|
|
246
|
+
level: Record<ShadowLevels, number>;
|
|
247
|
+
};
|
|
248
|
+
blurRadius: {
|
|
249
|
+
level: Record<ShadowLevels, number>;
|
|
250
|
+
};
|
|
251
|
+
color: Record<
|
|
252
|
+
ColorSchemeModes,
|
|
253
|
+
{
|
|
254
|
+
level: Record<ShadowLevels, string>;
|
|
255
|
+
}
|
|
256
|
+
>;
|
|
257
|
+
androidElevation: {
|
|
258
|
+
level: Record<ShadowLevels, number>;
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
type Feedback = 'information' | 'negative' | 'neutral' | 'notice' | 'positive';
|
|
263
|
+
|
|
264
|
+
type ColorContrast = {
|
|
265
|
+
[K in ColorContrastTypes as `${Extract<K, string>}Contrast`]: string;
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
type ActionStates = {
|
|
269
|
+
default: string;
|
|
270
|
+
hover: string;
|
|
271
|
+
focus: string;
|
|
272
|
+
active: string;
|
|
273
|
+
disabled: string;
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
type LinkActionStates = ActionStates & {
|
|
277
|
+
visited: string;
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
type ActionStatesWithContrast = {
|
|
281
|
+
default: ColorContrast;
|
|
282
|
+
hover: ColorContrast;
|
|
283
|
+
focus: ColorContrast;
|
|
284
|
+
active: ColorContrast;
|
|
285
|
+
disabled: ColorContrast;
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
type ActionVariants = {
|
|
289
|
+
primary: ActionStates;
|
|
290
|
+
secondary: ActionStates;
|
|
291
|
+
tertiary: ActionStates;
|
|
292
|
+
link: LinkActionStates;
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
type ActionVariantsWithContrast = {
|
|
296
|
+
primary: ActionStatesWithContrast;
|
|
297
|
+
secondary: ActionStatesWithContrast;
|
|
298
|
+
tertiary: ActionStatesWithContrast;
|
|
299
|
+
link: ActionStatesWithContrast;
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
// export type ActionProperties = {
|
|
303
|
+
// background: ActionVariants;
|
|
304
|
+
// border: ActionVariants;
|
|
305
|
+
// text: ActionVariants;
|
|
306
|
+
// icon: ActionVariants;
|
|
307
|
+
// };
|
|
308
|
+
|
|
309
|
+
type FeedbackActions = {
|
|
310
|
+
background: Pick<ActionVariantsWithContrast, 'primary'>;
|
|
311
|
+
border: Pick<ActionVariantsWithContrast, 'primary'>;
|
|
312
|
+
text: Pick<ActionVariantsWithContrast, 'link' | 'primary'>;
|
|
313
|
+
icon: Pick<ActionVariantsWithContrast, 'link' | 'primary'>;
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
type Colors = {
|
|
317
|
+
brand: {
|
|
318
|
+
primary: Record<300 | 400 | 500 | 600 | 700 | 800, string>;
|
|
319
|
+
secondary: Record<500, string>;
|
|
320
|
+
gray: Record<200 | 300 | 400 | 500 | 600 | 700 | 'a50' | 'a100', ColorContrast>;
|
|
321
|
+
};
|
|
322
|
+
feedback: {
|
|
323
|
+
background: Record<Feedback, ColorContrast>;
|
|
324
|
+
border: Record<Feedback, ColorContrast>;
|
|
325
|
+
text: Record<Feedback, ColorContrast>;
|
|
326
|
+
icon: Record<Feedback, ColorContrast>;
|
|
327
|
+
positive: {
|
|
328
|
+
action: FeedbackActions;
|
|
329
|
+
};
|
|
330
|
+
negative: {
|
|
331
|
+
action: FeedbackActions;
|
|
332
|
+
};
|
|
333
|
+
information: {
|
|
334
|
+
action: FeedbackActions;
|
|
335
|
+
};
|
|
336
|
+
notice: {
|
|
337
|
+
action: FeedbackActions;
|
|
338
|
+
};
|
|
339
|
+
neutral: {
|
|
340
|
+
action: FeedbackActions;
|
|
341
|
+
};
|
|
342
|
+
};
|
|
343
|
+
surface: {
|
|
344
|
+
background: Record<'level1' | 'level2' | 'level3', ColorContrast>;
|
|
345
|
+
border: Record<'normal' | 'subtle', ColorContrast>;
|
|
346
|
+
text: Record<TextTypes, ColorContrast>;
|
|
347
|
+
action: {
|
|
348
|
+
icon: ActionStatesWithContrast;
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
overlay: Record<'background', string>;
|
|
352
|
+
action: {
|
|
353
|
+
background: Omit<ActionVariants, 'link'>;
|
|
354
|
+
border: Omit<ActionVariants, 'link'>;
|
|
355
|
+
text: ActionVariants;
|
|
356
|
+
icon: ActionVariants;
|
|
357
|
+
};
|
|
358
|
+
badge: {
|
|
359
|
+
background: {
|
|
360
|
+
blue: ColorContrast;
|
|
361
|
+
};
|
|
362
|
+
border: {
|
|
363
|
+
blue: ColorContrast;
|
|
364
|
+
};
|
|
365
|
+
text: {
|
|
366
|
+
blue: ColorContrast;
|
|
367
|
+
};
|
|
368
|
+
icon: {
|
|
369
|
+
blue: ColorContrast;
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
|
|
374
|
+
type ColorsWithModes = Record<ColorSchemeModes, Colors>;
|
|
375
|
+
|
|
376
|
+
type ThemeTokens = {
|
|
377
|
+
border: Border;
|
|
378
|
+
breakpoints: Breakpoints;
|
|
379
|
+
colors: ColorsWithModes;
|
|
380
|
+
motion: Motion;
|
|
381
|
+
spacing: Spacing;
|
|
382
|
+
shadows: Shadows;
|
|
383
|
+
typography: TypographyWithPlatforms;
|
|
384
|
+
};
|
|
317
385
|
|
|
318
386
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
319
387
|
|
|
@@ -736,193 +804,129 @@ type Easing = {
|
|
|
736
804
|
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `EasingFunctionFactory` for native */
|
|
737
805
|
attentive: EasingType<'cubic-bezier(0.5, 0, 0.3, 1.5)'>;
|
|
738
806
|
/** `cubic-bezier(0, 0, 0.2, 1)`
|
|
739
|
-
*
|
|
740
|
-
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `EasingFunctionFactory` for native */
|
|
741
|
-
effective: EasingType<'cubic-bezier(0, 0, 0.2, 1)'>;
|
|
742
|
-
/** `cubic-bezier(0, 0, 0, 1)`
|
|
743
|
-
*
|
|
744
|
-
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `EasingFunctionFactory` for native */
|
|
745
|
-
revealing: EasingType<'cubic-bezier(0, 0, 0, 1)'>;
|
|
746
|
-
};
|
|
747
|
-
/** Easings for all exit animations*/
|
|
748
|
-
exit: {
|
|
749
|
-
/** `cubic-bezier(0.7, 0, 0.5, 1)`
|
|
750
|
-
*
|
|
751
|
-
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `EasingFunctionFactory` for native */
|
|
752
|
-
attentive: EasingType<'cubic-bezier(0.7, 0, 0.5, 1)'>;
|
|
753
|
-
/** `cubic-bezier(0.17, 0, 1, 1)`
|
|
754
|
-
*
|
|
755
|
-
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `EasingFunctionFactory` for native */
|
|
756
|
-
effective: EasingType<'cubic-bezier(0.17, 0, 1, 1)'>;
|
|
757
|
-
/** `cubic-bezier(0.5, 0, 1, 1)`
|
|
758
|
-
*
|
|
759
|
-
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `EasingFunctionFactory` for native */
|
|
760
|
-
revealing: EasingType<'cubic-bezier(0.5, 0, 1, 1)'>;
|
|
761
|
-
};
|
|
762
|
-
};
|
|
763
|
-
|
|
764
|
-
type Motion = Readonly<{
|
|
765
|
-
delay: Delay;
|
|
766
|
-
duration: Duration;
|
|
767
|
-
easing: Easing;
|
|
768
|
-
}>;
|
|
769
|
-
|
|
770
|
-
type ColorSchemeNames = 'dark' | 'light';
|
|
771
|
-
type ColorSchemeNamesInput = ColorSchemeNames | 'system';
|
|
772
|
-
|
|
773
|
-
type ColorSchemeModes = 'onDark' | 'onLight';
|
|
774
|
-
|
|
775
|
-
type ShadowLevels = 1 | 2 | 3 | 4 | 5;
|
|
776
|
-
|
|
777
|
-
type TextTypes = 'muted' | 'normal' | 'placeholder' | 'subdued' | 'subtle';
|
|
778
|
-
|
|
779
|
-
type ColorContrastTypes = 'low' | 'high';
|
|
780
|
-
|
|
781
|
-
type Shadows = {
|
|
782
|
-
offsetX: {
|
|
783
|
-
level: Record<ShadowLevels, number>;
|
|
784
|
-
};
|
|
785
|
-
offsetY: {
|
|
786
|
-
level: Record<ShadowLevels, number>;
|
|
787
|
-
};
|
|
788
|
-
blurRadius: {
|
|
789
|
-
level: Record<ShadowLevels, number>;
|
|
790
|
-
};
|
|
791
|
-
color: Record<
|
|
792
|
-
ColorSchemeModes,
|
|
793
|
-
{
|
|
794
|
-
level: Record<ShadowLevels, string>;
|
|
795
|
-
}
|
|
796
|
-
>;
|
|
797
|
-
androidElevation: {
|
|
798
|
-
level: Record<ShadowLevels, number>;
|
|
799
|
-
};
|
|
800
|
-
};
|
|
801
|
-
|
|
802
|
-
type Feedback = 'information' | 'negative' | 'neutral' | 'notice' | 'positive';
|
|
803
|
-
|
|
804
|
-
type ColorContrast = {
|
|
805
|
-
[K in ColorContrastTypes as `${Extract<K, string>}Contrast`]: string;
|
|
806
|
-
};
|
|
807
|
-
|
|
808
|
-
type ActionStates = {
|
|
809
|
-
default: string;
|
|
810
|
-
hover: string;
|
|
811
|
-
focus: string;
|
|
812
|
-
active: string;
|
|
813
|
-
disabled: string;
|
|
814
|
-
};
|
|
815
|
-
|
|
816
|
-
type LinkActionStates = ActionStates & {
|
|
817
|
-
visited: string;
|
|
818
|
-
};
|
|
819
|
-
|
|
820
|
-
type ActionStatesWithContrast = {
|
|
821
|
-
default: ColorContrast;
|
|
822
|
-
hover: ColorContrast;
|
|
823
|
-
focus: ColorContrast;
|
|
824
|
-
active: ColorContrast;
|
|
825
|
-
disabled: ColorContrast;
|
|
826
|
-
};
|
|
827
|
-
|
|
828
|
-
type ActionVariants = {
|
|
829
|
-
primary: ActionStates;
|
|
830
|
-
secondary: ActionStates;
|
|
831
|
-
tertiary: ActionStates;
|
|
832
|
-
link: LinkActionStates;
|
|
833
|
-
};
|
|
834
|
-
|
|
835
|
-
type ActionVariantsWithContrast = {
|
|
836
|
-
primary: ActionStatesWithContrast;
|
|
837
|
-
secondary: ActionStatesWithContrast;
|
|
838
|
-
tertiary: ActionStatesWithContrast;
|
|
839
|
-
link: ActionStatesWithContrast;
|
|
840
|
-
};
|
|
841
|
-
|
|
842
|
-
// export type ActionProperties = {
|
|
843
|
-
// background: ActionVariants;
|
|
844
|
-
// border: ActionVariants;
|
|
845
|
-
// text: ActionVariants;
|
|
846
|
-
// icon: ActionVariants;
|
|
847
|
-
// };
|
|
848
|
-
|
|
849
|
-
type FeedbackActions = {
|
|
850
|
-
background: Pick<ActionVariantsWithContrast, 'primary'>;
|
|
851
|
-
border: Pick<ActionVariantsWithContrast, 'primary'>;
|
|
852
|
-
text: Pick<ActionVariantsWithContrast, 'link' | 'primary'>;
|
|
853
|
-
icon: Pick<ActionVariantsWithContrast, 'link' | 'primary'>;
|
|
854
|
-
};
|
|
855
|
-
|
|
856
|
-
type Colors = {
|
|
857
|
-
brand: {
|
|
858
|
-
primary: Record<300 | 400 | 500 | 600 | 700 | 800, string>;
|
|
859
|
-
secondary: Record<500, string>;
|
|
860
|
-
gray: Record<200 | 300 | 400 | 500 | 600 | 700 | 'a50' | 'a100', ColorContrast>;
|
|
861
|
-
};
|
|
862
|
-
feedback: {
|
|
863
|
-
background: Record<Feedback, ColorContrast>;
|
|
864
|
-
border: Record<Feedback, ColorContrast>;
|
|
865
|
-
text: Record<Feedback, ColorContrast>;
|
|
866
|
-
icon: Record<Feedback, ColorContrast>;
|
|
867
|
-
positive: {
|
|
868
|
-
action: FeedbackActions;
|
|
869
|
-
};
|
|
870
|
-
negative: {
|
|
871
|
-
action: FeedbackActions;
|
|
872
|
-
};
|
|
873
|
-
information: {
|
|
874
|
-
action: FeedbackActions;
|
|
875
|
-
};
|
|
876
|
-
notice: {
|
|
877
|
-
action: FeedbackActions;
|
|
878
|
-
};
|
|
879
|
-
neutral: {
|
|
880
|
-
action: FeedbackActions;
|
|
881
|
-
};
|
|
882
|
-
};
|
|
883
|
-
surface: {
|
|
884
|
-
background: Record<'level1' | 'level2' | 'level3', ColorContrast>;
|
|
885
|
-
border: Record<'normal' | 'subtle', ColorContrast>;
|
|
886
|
-
text: Record<TextTypes, ColorContrast>;
|
|
887
|
-
action: {
|
|
888
|
-
icon: ActionStatesWithContrast;
|
|
889
|
-
};
|
|
890
|
-
};
|
|
891
|
-
overlay: Record<'background', string>;
|
|
892
|
-
action: {
|
|
893
|
-
background: Omit<ActionVariants, 'link'>;
|
|
894
|
-
border: Omit<ActionVariants, 'link'>;
|
|
895
|
-
text: ActionVariants;
|
|
896
|
-
icon: ActionVariants;
|
|
807
|
+
*
|
|
808
|
+
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `EasingFunctionFactory` for native */
|
|
809
|
+
effective: EasingType<'cubic-bezier(0, 0, 0.2, 1)'>;
|
|
810
|
+
/** `cubic-bezier(0, 0, 0, 1)`
|
|
811
|
+
*
|
|
812
|
+
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `EasingFunctionFactory` for native */
|
|
813
|
+
revealing: EasingType<'cubic-bezier(0, 0, 0, 1)'>;
|
|
897
814
|
};
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
815
|
+
/** Easings for all exit animations*/
|
|
816
|
+
exit: {
|
|
817
|
+
/** `cubic-bezier(0.7, 0, 0.5, 1)`
|
|
818
|
+
*
|
|
819
|
+
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `EasingFunctionFactory` for native */
|
|
820
|
+
attentive: EasingType<'cubic-bezier(0.7, 0, 0.5, 1)'>;
|
|
821
|
+
/** `cubic-bezier(0.17, 0, 1, 1)`
|
|
822
|
+
*
|
|
823
|
+
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `EasingFunctionFactory` for native */
|
|
824
|
+
effective: EasingType<'cubic-bezier(0.17, 0, 1, 1)'>;
|
|
825
|
+
/** `cubic-bezier(0.5, 0, 1, 1)`
|
|
826
|
+
*
|
|
827
|
+
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `EasingFunctionFactory` for native */
|
|
828
|
+
revealing: EasingType<'cubic-bezier(0.5, 0, 1, 1)'>;
|
|
911
829
|
};
|
|
912
830
|
};
|
|
913
831
|
|
|
914
|
-
type
|
|
832
|
+
type Motion = Readonly<{
|
|
833
|
+
delay: Delay;
|
|
834
|
+
duration: Duration;
|
|
835
|
+
easing: Easing;
|
|
836
|
+
}>;
|
|
915
837
|
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
838
|
+
/**
|
|
839
|
+
* @template TokenType token type generic
|
|
840
|
+
* @description Tokenises objects to dot notation strings, eg: `surface.text.normal.lowContrast`
|
|
841
|
+
*/
|
|
842
|
+
type DotNotationColorStringToken<TokenType> = {
|
|
843
|
+
[K in keyof TokenType]: `${Extract<K, number | string>}.${TokenType[K] extends Record<
|
|
844
|
+
string,
|
|
845
|
+
string
|
|
846
|
+
>
|
|
847
|
+
? Extract<keyof TokenType[K], number | string>
|
|
848
|
+
: DotNotationColorStringToken<TokenType[K]>}`;
|
|
849
|
+
}[keyof TokenType];
|
|
850
|
+
|
|
851
|
+
/**
|
|
852
|
+
* Use this when you want children to be string.
|
|
853
|
+
*
|
|
854
|
+
* This covers scenarios like
|
|
855
|
+
* ```jsx
|
|
856
|
+
* <Title>Hi</Title>
|
|
857
|
+
* <Title>{dynamicVariable} something</Title>
|
|
858
|
+
* ```
|
|
859
|
+
*
|
|
860
|
+
*
|
|
861
|
+
* ### Usage
|
|
862
|
+
*
|
|
863
|
+
* ```ts
|
|
864
|
+
* import type { StringChildrenType } from '~helpers/types';
|
|
865
|
+
*
|
|
866
|
+
* type MyProps = {
|
|
867
|
+
* children: StringChildrenType;
|
|
868
|
+
* }
|
|
869
|
+
* ```
|
|
870
|
+
*/
|
|
871
|
+
type StringChildrenType = React__default.ReactText | React__default.ReactText[];
|
|
872
|
+
|
|
873
|
+
type TestID = {
|
|
874
|
+
testID?: string;
|
|
924
875
|
};
|
|
925
876
|
|
|
877
|
+
declare type ActionListProps = {
|
|
878
|
+
children: React__default.ReactNode[];
|
|
879
|
+
/**
|
|
880
|
+
* Decides the backgroundColor of ActionList
|
|
881
|
+
*/
|
|
882
|
+
surfaceLevel?: 2 | 3;
|
|
883
|
+
} & TestID;
|
|
884
|
+
/**
|
|
885
|
+
* ### ActionList
|
|
886
|
+
*
|
|
887
|
+
* List of multiple actionable items. Can be used as menu items inside `Dropdown`,
|
|
888
|
+
* `BottomSheet` and as selectable items when combined with `SelectInput`
|
|
889
|
+
*
|
|
890
|
+
* #### Usage
|
|
891
|
+
*
|
|
892
|
+
* ```jsx
|
|
893
|
+
* <Dropdown>
|
|
894
|
+
* <SelectInput label="Select Action" />
|
|
895
|
+
* <DropdownOverlay>
|
|
896
|
+
* <ActionList>
|
|
897
|
+
* <ActionListHeader
|
|
898
|
+
* title="Recent Searches"
|
|
899
|
+
* leading={<ActionListHeaderIcon icon={HistoryIcon} />}
|
|
900
|
+
* />
|
|
901
|
+
* <ActionListItem
|
|
902
|
+
* title="Home"
|
|
903
|
+
* value="home"
|
|
904
|
+
* leading={<ActionListItemIcon icon={HomeIcon} />}
|
|
905
|
+
* />
|
|
906
|
+
* <ActionListItem
|
|
907
|
+
* title="Pricing"
|
|
908
|
+
* value="pricing"
|
|
909
|
+
* leading={<ActionListItemAsset src="https://flagcdn.com/w20/in.png" alt="India Flag" />}
|
|
910
|
+
* />
|
|
911
|
+
* <ActionListHeader
|
|
912
|
+
* title="Search Tips"
|
|
913
|
+
* leading={<ActionListFooterIcon icon={SearchIcon} />}
|
|
914
|
+
* trailing={
|
|
915
|
+
* <Button
|
|
916
|
+
* onClick={() => console.log('clicked')}
|
|
917
|
+
* >
|
|
918
|
+
* Apply
|
|
919
|
+
* </Button>
|
|
920
|
+
* }
|
|
921
|
+
* />
|
|
922
|
+
* </ActionList>
|
|
923
|
+
* </DropdownOverlay>
|
|
924
|
+
* </Dropdown>
|
|
925
|
+
* ```
|
|
926
|
+
*
|
|
927
|
+
*/
|
|
928
|
+
declare const ActionList: ({ children, surfaceLevel, testID }: ActionListProps) => JSX.Element;
|
|
929
|
+
|
|
926
930
|
type Theme$1 = {
|
|
927
931
|
border: Border;
|
|
928
932
|
breakpoints: Breakpoints;
|
|
@@ -1019,7 +1023,7 @@ declare type ActionListItemProps = {
|
|
|
1019
1023
|
* @private
|
|
1020
1024
|
*/
|
|
1021
1025
|
_index?: number;
|
|
1022
|
-
};
|
|
1026
|
+
} & TestID;
|
|
1023
1027
|
declare const ActionListSectionDivider: () => JSX.Element;
|
|
1024
1028
|
declare type ActionListSectionProps = {
|
|
1025
1029
|
title: string;
|
|
@@ -1032,7 +1036,7 @@ declare type ActionListSectionProps = {
|
|
|
1032
1036
|
* @private
|
|
1033
1037
|
*/
|
|
1034
1038
|
_hideDivider?: boolean;
|
|
1035
|
-
};
|
|
1039
|
+
} & TestID;
|
|
1036
1040
|
declare const ActionListSection: WithComponentId<ActionListSectionProps>;
|
|
1037
1041
|
declare const ActionListItemIcon: WithComponentId<{
|
|
1038
1042
|
icon: IconComponent$1;
|
|
@@ -1068,7 +1072,7 @@ declare type ActionListHeaderProps = {
|
|
|
1068
1072
|
* Valid children - `ActionListHeaderIcon`
|
|
1069
1073
|
*/
|
|
1070
1074
|
leading?: React__default.ReactNode;
|
|
1071
|
-
};
|
|
1075
|
+
} & TestID;
|
|
1072
1076
|
/**
|
|
1073
1077
|
* ### ActionListHeader
|
|
1074
1078
|
*
|
|
@@ -1107,7 +1111,7 @@ declare type ActionListFooterProps = {
|
|
|
1107
1111
|
* Anything can be passed here but maybe don't? Should ideally have Button or Tick Icon Buttons.
|
|
1108
1112
|
*/
|
|
1109
1113
|
trailing?: React__default.ReactNode;
|
|
1110
|
-
};
|
|
1114
|
+
} & TestID;
|
|
1111
1115
|
/**
|
|
1112
1116
|
* ### ActionListFooter
|
|
1113
1117
|
*
|
|
@@ -1221,8 +1225,8 @@ declare type AlertProps = {
|
|
|
1221
1225
|
*/
|
|
1222
1226
|
secondary?: SecondaryAction;
|
|
1223
1227
|
};
|
|
1224
|
-
};
|
|
1225
|
-
declare const Alert: ({ description, title, isDismissible, onDismiss, contrast, isFullWidth, intent, actions, }: AlertProps) => ReactElement | null;
|
|
1228
|
+
} & TestID;
|
|
1229
|
+
declare const Alert: ({ description, title, isDismissible, onDismiss, contrast, isFullWidth, intent, actions, testID, }: AlertProps) => ReactElement | null;
|
|
1226
1230
|
|
|
1227
1231
|
declare type BadgeProps = {
|
|
1228
1232
|
/**
|
|
@@ -1260,8 +1264,8 @@ declare type BadgeProps = {
|
|
|
1260
1264
|
* @default 'regular'
|
|
1261
1265
|
*/
|
|
1262
1266
|
fontWeight?: 'regular' | 'bold';
|
|
1263
|
-
};
|
|
1264
|
-
declare const Badge: ({ children, contrast, fontWeight, icon, size, variant, }: BadgeProps) => ReactElement;
|
|
1267
|
+
} & TestID;
|
|
1268
|
+
declare const Badge: ({ children, contrast, fontWeight, icon, size, variant, testID, }: BadgeProps) => ReactElement;
|
|
1265
1269
|
|
|
1266
1270
|
declare type BladeProviderProps = {
|
|
1267
1271
|
themeTokens: ThemeTokens;
|
|
@@ -1333,11 +1337,11 @@ declare type CardProps = {
|
|
|
1333
1337
|
* - Figma: https://shorturl.at/fsvwK
|
|
1334
1338
|
*/
|
|
1335
1339
|
surfaceLevel?: 2 | 3;
|
|
1336
|
-
};
|
|
1337
|
-
declare const Card: ({ children, surfaceLevel }: CardProps) => React__default.ReactElement;
|
|
1340
|
+
} & TestID;
|
|
1341
|
+
declare const Card: ({ children, surfaceLevel, testID }: CardProps) => React__default.ReactElement;
|
|
1338
1342
|
declare type CardBodyProps = {
|
|
1339
1343
|
children: React__default.ReactNode;
|
|
1340
|
-
};
|
|
1344
|
+
} & TestID;
|
|
1341
1345
|
declare const CardBody: WithComponentId<CardBodyProps>;
|
|
1342
1346
|
|
|
1343
1347
|
declare type LinkCommonProps = {
|
|
@@ -1355,7 +1359,7 @@ declare type LinkCommonProps = {
|
|
|
1355
1359
|
* @default medium
|
|
1356
1360
|
*/
|
|
1357
1361
|
size?: 'small' | 'medium';
|
|
1358
|
-
};
|
|
1362
|
+
} & TestID;
|
|
1359
1363
|
declare type LinkWithoutIconProps = LinkCommonProps & {
|
|
1360
1364
|
icon?: undefined;
|
|
1361
1365
|
children: StringChildrenType;
|
|
@@ -1380,7 +1384,7 @@ declare type LinkButtonVariantProps = LinkPropsWithOrWithoutIcon & {
|
|
|
1380
1384
|
rel?: undefined;
|
|
1381
1385
|
};
|
|
1382
1386
|
declare type LinkProps = LinkAnchorVariantProps | LinkButtonVariantProps;
|
|
1383
|
-
declare const Link: ({ children, icon, iconPosition, isDisabled, onClick, variant, href, target, rel, accessibilityLabel, size, }: LinkProps) => ReactElement;
|
|
1387
|
+
declare const Link: ({ children, icon, iconPosition, isDisabled, onClick, variant, href, target, rel, accessibilityLabel, size, testID, }: LinkProps) => ReactElement;
|
|
1384
1388
|
|
|
1385
1389
|
type BladeElementRef = Pick<HTMLElement, 'focus' | 'scrollIntoView'> | Pick<View, 'focus'>;
|
|
1386
1390
|
|
|
@@ -1397,7 +1401,7 @@ declare type ButtonCommonProps = {
|
|
|
1397
1401
|
native: (event: GestureResponderEvent) => void;
|
|
1398
1402
|
web: (event: React__default.MouseEvent<HTMLButtonElement>) => void;
|
|
1399
1403
|
}>;
|
|
1400
|
-
};
|
|
1404
|
+
} & TestID;
|
|
1401
1405
|
declare type ButtonWithoutIconProps = ButtonCommonProps & {
|
|
1402
1406
|
icon?: undefined;
|
|
1403
1407
|
children: StringChildrenType;
|
|
@@ -1447,7 +1451,7 @@ type BaseTextProps$1 = {
|
|
|
1447
1451
|
*/
|
|
1448
1452
|
numberOfLines?: number;
|
|
1449
1453
|
componentName?: 'text' | 'title' | 'heading' | 'code';
|
|
1450
|
-
};
|
|
1454
|
+
} & TestID;
|
|
1451
1455
|
|
|
1452
1456
|
/* eslint-disable @typescript-eslint/no-unnecessary-type-assertion */
|
|
1453
1457
|
|
|
@@ -1462,7 +1466,8 @@ type TextCommonProps$1 = {
|
|
|
1462
1466
|
* **For Internal use only**: Sets the color of the Text component
|
|
1463
1467
|
*/
|
|
1464
1468
|
color?: BaseTextProps$1['color'];
|
|
1465
|
-
|
|
1469
|
+
textAlign?: BaseTextProps$1['textAlign'];
|
|
1470
|
+
} & TestID;
|
|
1466
1471
|
|
|
1467
1472
|
type TextVariant$1 = 'body' | 'caption';
|
|
1468
1473
|
|
|
@@ -1518,7 +1523,7 @@ type CounterProps$1 = {
|
|
|
1518
1523
|
* @default 'medium'
|
|
1519
1524
|
*/
|
|
1520
1525
|
size?: 'small' | 'medium' | 'large';
|
|
1521
|
-
};
|
|
1526
|
+
} & TestID;
|
|
1522
1527
|
|
|
1523
1528
|
declare const CardHeaderIcon: WithComponentId<{
|
|
1524
1529
|
icon: IconComponent$1;
|
|
@@ -1535,7 +1540,7 @@ declare type CardHeaderIconButtonProps = Omit<ButtonProps, 'variant' | 'size' |
|
|
|
1535
1540
|
declare const CardHeaderIconButton: WithComponentId<CardHeaderIconButtonProps>;
|
|
1536
1541
|
declare type CardHeaderProps = {
|
|
1537
1542
|
children?: React__default.ReactNode;
|
|
1538
|
-
};
|
|
1543
|
+
} & TestID;
|
|
1539
1544
|
declare const CardHeader: WithComponentId<CardHeaderProps>;
|
|
1540
1545
|
declare type CardHeaderLeadingProps = {
|
|
1541
1546
|
title: string;
|
|
@@ -1569,7 +1574,7 @@ declare type CardFooterAction = Pick<ButtonProps, 'type' | 'accessibilityLabel'
|
|
|
1569
1574
|
};
|
|
1570
1575
|
declare type CardFooterProps = {
|
|
1571
1576
|
children?: React__default.ReactNode;
|
|
1572
|
-
};
|
|
1577
|
+
} & TestID;
|
|
1573
1578
|
declare const CardFooter: WithComponentId<CardFooterProps>;
|
|
1574
1579
|
declare type CardFooterLeadingProps = {
|
|
1575
1580
|
title?: string;
|
|
@@ -1641,8 +1646,8 @@ declare type CounterProps = {
|
|
|
1641
1646
|
* @default 'medium'
|
|
1642
1647
|
*/
|
|
1643
1648
|
size?: 'small' | 'medium' | 'large';
|
|
1644
|
-
};
|
|
1645
|
-
declare const Counter: ({ value, max, intent, contrast, size, }: CounterProps) => React.ReactElement;
|
|
1649
|
+
} & TestID;
|
|
1650
|
+
declare const Counter: ({ value, max, intent, contrast, size, testID, }: CounterProps) => React.ReactElement;
|
|
1646
1651
|
|
|
1647
1652
|
declare type OnChange = ({ isChecked, event, value, }: {
|
|
1648
1653
|
isChecked: boolean;
|
|
@@ -1727,8 +1732,86 @@ declare type CheckboxProps = {
|
|
|
1727
1732
|
*
|
|
1728
1733
|
*/
|
|
1729
1734
|
tabIndex?: number;
|
|
1730
|
-
};
|
|
1731
|
-
declare const Checkbox: React__default.ForwardRefExoticComponent<
|
|
1735
|
+
} & TestID;
|
|
1736
|
+
declare const Checkbox: React__default.ForwardRefExoticComponent<{
|
|
1737
|
+
/**
|
|
1738
|
+
* If `true`, The checkbox will be checked. This also makes the checkbox controlled
|
|
1739
|
+
* Use `onChange` to update its value
|
|
1740
|
+
*
|
|
1741
|
+
* @default false
|
|
1742
|
+
*/
|
|
1743
|
+
isChecked?: boolean | undefined;
|
|
1744
|
+
/**
|
|
1745
|
+
* If `true`, the checkbox will be initially checked. This also makes the checkbox uncontrolled
|
|
1746
|
+
*
|
|
1747
|
+
* @default false
|
|
1748
|
+
*/
|
|
1749
|
+
defaultChecked?: boolean | undefined;
|
|
1750
|
+
/**
|
|
1751
|
+
* The callback invoked when the checked state of the `Checkbox` changes.
|
|
1752
|
+
*/
|
|
1753
|
+
onChange?: OnChange | undefined;
|
|
1754
|
+
/**
|
|
1755
|
+
* Sets the label of the checkbox
|
|
1756
|
+
*/
|
|
1757
|
+
children: React__default.ReactNode;
|
|
1758
|
+
/**
|
|
1759
|
+
* Help text for the checkbox
|
|
1760
|
+
*/
|
|
1761
|
+
helpText?: string | undefined;
|
|
1762
|
+
/**
|
|
1763
|
+
* Error text for the checkbox
|
|
1764
|
+
*
|
|
1765
|
+
* Renders when `validationState` is set to 'error'
|
|
1766
|
+
*/
|
|
1767
|
+
errorText?: string | undefined;
|
|
1768
|
+
/**
|
|
1769
|
+
* If `true`, the checkbox will be indeterminate.
|
|
1770
|
+
* This does not modify the isChecked property.
|
|
1771
|
+
*
|
|
1772
|
+
* @default false
|
|
1773
|
+
*/
|
|
1774
|
+
isIndeterminate?: boolean | undefined;
|
|
1775
|
+
/**
|
|
1776
|
+
* The name of the input field in a checkbox
|
|
1777
|
+
* (Useful for form submission).
|
|
1778
|
+
*/
|
|
1779
|
+
name?: string | undefined;
|
|
1780
|
+
/**
|
|
1781
|
+
* The value to be used in the checkbox input.
|
|
1782
|
+
* This is the value that will be returned on form submission.
|
|
1783
|
+
*/
|
|
1784
|
+
value?: string | undefined;
|
|
1785
|
+
/**
|
|
1786
|
+
* If `true`, the checkbox will be disabled
|
|
1787
|
+
*
|
|
1788
|
+
* @default false
|
|
1789
|
+
*/
|
|
1790
|
+
isDisabled?: boolean | undefined;
|
|
1791
|
+
/**
|
|
1792
|
+
* If `true`, the checkbox input is marked as required,
|
|
1793
|
+
* and `required` attribute will be added
|
|
1794
|
+
*
|
|
1795
|
+
* @default false
|
|
1796
|
+
*/
|
|
1797
|
+
isRequired?: boolean | undefined;
|
|
1798
|
+
/**
|
|
1799
|
+
* If `error`, the checkbox input is marked as invalid,
|
|
1800
|
+
* and `invalid` attribute will be added
|
|
1801
|
+
*/
|
|
1802
|
+
validationState?: "none" | "error" | undefined;
|
|
1803
|
+
/**
|
|
1804
|
+
* Size of the checkbox
|
|
1805
|
+
*
|
|
1806
|
+
* @default "medium"
|
|
1807
|
+
*/
|
|
1808
|
+
size?: "small" | "medium" | undefined;
|
|
1809
|
+
/**
|
|
1810
|
+
* Sets the tab-index property on checkbox element
|
|
1811
|
+
*
|
|
1812
|
+
*/
|
|
1813
|
+
tabIndex?: number | undefined;
|
|
1814
|
+
} & TestID & React__default.RefAttributes<BladeElementRef>>;
|
|
1732
1815
|
|
|
1733
1816
|
declare type CheckboxGroupProps = {
|
|
1734
1817
|
/**
|
|
@@ -1803,8 +1886,8 @@ declare type CheckboxGroupProps = {
|
|
|
1803
1886
|
* @default "medium"
|
|
1804
1887
|
*/
|
|
1805
1888
|
size?: 'small' | 'medium';
|
|
1806
|
-
};
|
|
1807
|
-
declare const CheckboxGroup: ({ children, label, helpText, isDisabled, necessityIndicator, labelPosition, validationState, errorText, name, defaultValue, onChange, value, size, }: CheckboxGroupProps) => React__default.ReactElement;
|
|
1889
|
+
} & TestID;
|
|
1890
|
+
declare const CheckboxGroup: ({ children, label, helpText, isDisabled, necessityIndicator, labelPosition, validationState, errorText, name, defaultValue, onChange, value, size, testID, }: CheckboxGroupProps) => React__default.ReactElement;
|
|
1808
1891
|
|
|
1809
1892
|
declare type DropdownProps = {
|
|
1810
1893
|
selectionType?: 'single' | 'multiple';
|
|
@@ -1840,7 +1923,7 @@ declare const Dropdown: WithComponentId<DropdownProps>;
|
|
|
1840
1923
|
|
|
1841
1924
|
declare type DropdownOverlayProps = {
|
|
1842
1925
|
children: React__default.ReactNode;
|
|
1843
|
-
};
|
|
1926
|
+
} & TestID;
|
|
1844
1927
|
|
|
1845
1928
|
/**
|
|
1846
1929
|
* Overlay of dropdown
|
|
@@ -2389,6 +2472,8 @@ declare const SendIcon: IconComponent;
|
|
|
2389
2472
|
|
|
2390
2473
|
declare const MailOpenIcon: IconComponent;
|
|
2391
2474
|
|
|
2475
|
+
declare const BulkPayoutsIcon: IconComponent;
|
|
2476
|
+
|
|
2392
2477
|
declare type FeedbackIconColors = `feedback.icon.${DotNotationColorStringToken<Theme$1['colors']['feedback']['icon']>}`;
|
|
2393
2478
|
declare type FeedbackActionIconColors = `feedback.${Feedback}.action.icon.${DotNotationColorStringToken<Theme$1['colors']['feedback'][Feedback]['action']['icon']>}`;
|
|
2394
2479
|
declare type ActionIconColors = `action.icon.${DotNotationColorStringToken<Theme$1['colors']['action']['icon']>}`;
|
|
@@ -2652,16 +2737,20 @@ declare type BaseInputProps = FormInputLabelProps & FormInputValidationProps & {
|
|
|
2652
2737
|
* true if popup is in expanded state
|
|
2653
2738
|
*/
|
|
2654
2739
|
isPopupExpanded?: boolean;
|
|
2655
|
-
|
|
2740
|
+
/**
|
|
2741
|
+
* sets the autocapitalize behavior for the input
|
|
2742
|
+
*/
|
|
2743
|
+
autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters';
|
|
2744
|
+
} & TestID;
|
|
2656
2745
|
|
|
2657
2746
|
declare type Type = Exclude<BaseInputProps['type'], 'password'>;
|
|
2658
|
-
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'> & {
|
|
2747
|
+
declare type TextInputProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'necessityIndicator' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'placeholder' | 'defaultValue' | 'name' | 'onChange' | 'onFocus' | 'onBlur' | 'value' | 'isDisabled' | 'isRequired' | 'prefix' | 'suffix' | 'maxCharacters' | 'autoFocus' | 'keyboardReturnKeyType' | 'autoCompleteSuggestionType' | 'autoCapitalize' | 'testID'> & {
|
|
2659
2748
|
/**
|
|
2660
2749
|
* Decides whether to render a clear icon button
|
|
2661
2750
|
*/
|
|
2662
2751
|
showClearButton?: boolean;
|
|
2663
2752
|
/**
|
|
2664
|
-
* Event handler to handle the onClick event for clear button.
|
|
2753
|
+
* Event handler to handle the onClick event for clear button. Used when `showClearButton` is `true`
|
|
2665
2754
|
*/
|
|
2666
2755
|
onClearButtonClick?: () => void;
|
|
2667
2756
|
/**
|
|
@@ -2679,13 +2768,13 @@ declare type TextInputProps = Pick<BaseInputProps, 'label' | 'labelPosition' | '
|
|
|
2679
2768
|
*/
|
|
2680
2769
|
type?: Type;
|
|
2681
2770
|
};
|
|
2682
|
-
declare const TextInput: React__default.ForwardRefExoticComponent<Pick<BaseInputProps, "placeholder" | "label" | "value" | "name" | "onBlur" | "onFocus" | "defaultValue" | "prefix" | "onChange" | "isDisabled" | "autoFocus" | "labelPosition" | "validationState" | "helpText" | "errorText" | "necessityIndicator" | "successText" | "isRequired" | "suffix" | "maxCharacters" | "keyboardReturnKeyType" | "autoCompleteSuggestionType"> & {
|
|
2771
|
+
declare const TextInput: React__default.ForwardRefExoticComponent<Pick<BaseInputProps, "testID" | "placeholder" | "label" | "value" | "name" | "onBlur" | "onFocus" | "defaultValue" | "prefix" | "autoCapitalize" | "onChange" | "isDisabled" | "autoFocus" | "labelPosition" | "validationState" | "helpText" | "errorText" | "necessityIndicator" | "successText" | "isRequired" | "suffix" | "maxCharacters" | "keyboardReturnKeyType" | "autoCompleteSuggestionType"> & {
|
|
2683
2772
|
/**
|
|
2684
2773
|
* Decides whether to render a clear icon button
|
|
2685
2774
|
*/
|
|
2686
2775
|
showClearButton?: boolean | undefined;
|
|
2687
2776
|
/**
|
|
2688
|
-
* Event handler to handle the onClick event for clear button.
|
|
2777
|
+
* Event handler to handle the onClick event for clear button. Used when `showClearButton` is `true`
|
|
2689
2778
|
*/
|
|
2690
2779
|
onClearButtonClick?: (() => void) | undefined;
|
|
2691
2780
|
/**
|
|
@@ -2734,31 +2823,31 @@ declare type PasswordInputExtraProps = {
|
|
|
2734
2823
|
*/
|
|
2735
2824
|
autoCompleteSuggestionType?: Extract<BaseInputProps['autoCompleteSuggestionType'], 'none' | 'password' | 'newPassword'>;
|
|
2736
2825
|
};
|
|
2737
|
-
declare type PasswordInputProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'maxCharacters' | 'validationState' | 'errorText' | 'successText' | 'helpText' | 'isDisabled' | 'defaultValue' | 'placeholder' | 'isRequired' | 'value' | 'onChange' | 'onBlur' | 'onFocus' | 'name' | 'autoFocus' | 'keyboardReturnKeyType' | 'autoCompleteSuggestionType'> & PasswordInputExtraProps;
|
|
2738
|
-
declare const PasswordInput: React__default.ForwardRefExoticComponent<Pick<BaseInputProps, "placeholder" | "label" | "value" | "name" | "onBlur" | "onFocus" | "defaultValue" | "onChange" | "isDisabled" | "autoFocus" | "labelPosition" | "validationState" | "helpText" | "errorText" | "successText" | "isRequired" | "maxCharacters" | "keyboardReturnKeyType" | "autoCompleteSuggestionType"> & PasswordInputExtraProps & React__default.RefAttributes<BladeElementRef>>;
|
|
2826
|
+
declare type PasswordInputProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'maxCharacters' | 'validationState' | 'errorText' | 'successText' | 'helpText' | 'isDisabled' | 'defaultValue' | 'placeholder' | 'isRequired' | 'value' | 'onChange' | 'onBlur' | 'onFocus' | 'name' | 'autoFocus' | 'keyboardReturnKeyType' | 'autoCompleteSuggestionType' | 'testID'> & PasswordInputExtraProps;
|
|
2827
|
+
declare const PasswordInput: React__default.ForwardRefExoticComponent<Pick<BaseInputProps, "testID" | "placeholder" | "label" | "value" | "name" | "onBlur" | "onFocus" | "defaultValue" | "onChange" | "isDisabled" | "autoFocus" | "labelPosition" | "validationState" | "helpText" | "errorText" | "successText" | "isRequired" | "maxCharacters" | "keyboardReturnKeyType" | "autoCompleteSuggestionType"> & PasswordInputExtraProps & React__default.RefAttributes<BladeElementRef>>;
|
|
2739
2828
|
|
|
2740
|
-
declare type TextAreaProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'necessityIndicator' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'placeholder' | 'defaultValue' | 'name' | 'onChange' | 'onFocus' | 'onBlur' | 'value' | 'isDisabled' | 'isRequired' | 'maxCharacters' | 'autoFocus' | 'numberOfLines'> & {
|
|
2829
|
+
declare type TextAreaProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'necessityIndicator' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'placeholder' | 'defaultValue' | 'name' | 'onChange' | 'onFocus' | 'onBlur' | 'value' | 'isDisabled' | 'isRequired' | 'maxCharacters' | 'autoFocus' | 'numberOfLines' | 'testID'> & {
|
|
2741
2830
|
/**
|
|
2742
2831
|
* Decides whether to render a clear icon button
|
|
2743
2832
|
*/
|
|
2744
2833
|
showClearButton?: boolean;
|
|
2745
2834
|
/**
|
|
2746
|
-
* Event handler to handle the onClick event for clear button.
|
|
2835
|
+
* Event handler to handle the onClick event for clear button. Used when `showClearButton` is `true`
|
|
2747
2836
|
*/
|
|
2748
2837
|
onClearButtonClick?: () => void;
|
|
2749
2838
|
};
|
|
2750
|
-
declare const TextArea: React__default.ForwardRefExoticComponent<Pick<BaseInputProps, "placeholder" | "label" | "value" | "name" | "onBlur" | "onFocus" | "numberOfLines" | "defaultValue" | "onChange" | "isDisabled" | "autoFocus" | "labelPosition" | "validationState" | "helpText" | "errorText" | "necessityIndicator" | "successText" | "isRequired" | "maxCharacters"> & {
|
|
2839
|
+
declare const TextArea: React__default.ForwardRefExoticComponent<Pick<BaseInputProps, "testID" | "placeholder" | "label" | "value" | "name" | "onBlur" | "onFocus" | "numberOfLines" | "defaultValue" | "onChange" | "isDisabled" | "autoFocus" | "labelPosition" | "validationState" | "helpText" | "errorText" | "necessityIndicator" | "successText" | "isRequired" | "maxCharacters"> & {
|
|
2751
2840
|
/**
|
|
2752
2841
|
* Decides whether to render a clear icon button
|
|
2753
2842
|
*/
|
|
2754
2843
|
showClearButton?: boolean | undefined;
|
|
2755
2844
|
/**
|
|
2756
|
-
* Event handler to handle the onClick event for clear button.
|
|
2845
|
+
* Event handler to handle the onClick event for clear button. Used when `showClearButton` is `true`
|
|
2757
2846
|
*/
|
|
2758
2847
|
onClearButtonClick?: (() => void) | undefined;
|
|
2759
2848
|
} & React__default.RefAttributes<BladeElementRef>>;
|
|
2760
2849
|
|
|
2761
|
-
declare type OTPInputProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'name' | 'onChange' | 'value' | 'isDisabled' | 'autoFocus' | 'keyboardReturnKeyType' | 'keyboardType' | 'placeholder'> & {
|
|
2850
|
+
declare type OTPInputProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'name' | 'onChange' | 'value' | 'isDisabled' | 'autoFocus' | 'keyboardReturnKeyType' | 'keyboardType' | 'placeholder' | 'testID'> & {
|
|
2762
2851
|
/**
|
|
2763
2852
|
* Determines the number of input fields to show for the OTP
|
|
2764
2853
|
* @default 6
|
|
@@ -2801,9 +2890,9 @@ declare type OTPInputProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'v
|
|
|
2801
2890
|
* />
|
|
2802
2891
|
* ```
|
|
2803
2892
|
*/
|
|
2804
|
-
declare const OTPInput: ({ autoFocus, errorText, helpText, isDisabled, keyboardReturnKeyType, keyboardType, label, labelPosition, name, onChange, onOTPFilled, otpLength, placeholder, successText, validationState, value, isMasked, autoCompleteSuggestionType, }: OTPInputProps) => React__default.ReactElement;
|
|
2893
|
+
declare const OTPInput: ({ autoFocus, errorText, helpText, isDisabled, keyboardReturnKeyType, keyboardType, label, labelPosition, name, onChange, onOTPFilled, otpLength, placeholder, successText, validationState, value, isMasked, autoCompleteSuggestionType, testID, }: OTPInputProps) => React__default.ReactElement;
|
|
2805
2894
|
|
|
2806
|
-
declare type SelectInputProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'necessityIndicator' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'name' | 'isDisabled' | 'isRequired' | 'prefix' | 'suffix' | 'autoFocus' | 'onClick' | 'onFocus' | 'onBlur' | 'placeholder'> & {
|
|
2895
|
+
declare type SelectInputProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'necessityIndicator' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'name' | 'isDisabled' | 'isRequired' | 'prefix' | 'suffix' | 'autoFocus' | 'onClick' | 'onFocus' | 'onBlur' | 'placeholder' | 'testID'> & {
|
|
2807
2896
|
icon?: IconComponent$1;
|
|
2808
2897
|
onChange?: ({ name, values }: {
|
|
2809
2898
|
name?: string;
|
|
@@ -2837,7 +2926,7 @@ declare type SelectInputProps = Pick<BaseInputProps, 'label' | 'labelPosition' |
|
|
|
2837
2926
|
*
|
|
2838
2927
|
* Checkout {@link https://blade.razorpay.com/?path=/docs/components-dropdown-with-select--with-single-select SelectInput Documentation}.
|
|
2839
2928
|
*/
|
|
2840
|
-
declare const SelectInput: React__default.ForwardRefExoticComponent<Pick<BaseInputProps, "placeholder" | "label" | "name" | "onBlur" | "onFocus" | "onClick" | "prefix" | "isDisabled" | "autoFocus" | "labelPosition" | "validationState" | "helpText" | "errorText" | "necessityIndicator" | "successText" | "isRequired" | "suffix"> & {
|
|
2929
|
+
declare const SelectInput: React__default.ForwardRefExoticComponent<Pick<BaseInputProps, "testID" | "placeholder" | "label" | "name" | "onBlur" | "onFocus" | "onClick" | "prefix" | "isDisabled" | "autoFocus" | "labelPosition" | "validationState" | "helpText" | "errorText" | "necessityIndicator" | "successText" | "isRequired" | "suffix"> & {
|
|
2841
2930
|
icon?: IconComponent$1 | undefined;
|
|
2842
2931
|
onChange?: (({ name, values }: {
|
|
2843
2932
|
name?: string | undefined;
|
|
@@ -2858,7 +2947,7 @@ declare type IndicatorCommonProps = {
|
|
|
2858
2947
|
* @default medium
|
|
2859
2948
|
*/
|
|
2860
2949
|
size?: 'small' | 'medium' | 'large';
|
|
2861
|
-
};
|
|
2950
|
+
} & TestID;
|
|
2862
2951
|
declare type IndicatorWithoutA11yLabel = {
|
|
2863
2952
|
/**
|
|
2864
2953
|
* A text label to show alongside the indicator dot
|
|
@@ -2880,7 +2969,7 @@ declare type IndicatorWithA11yLabel = {
|
|
|
2880
2969
|
children?: StringChildrenType;
|
|
2881
2970
|
};
|
|
2882
2971
|
declare type IndicatorProps = IndicatorCommonProps & (IndicatorWithA11yLabel | IndicatorWithoutA11yLabel);
|
|
2883
|
-
declare const Indicator: ({ accessibilityLabel, children, size, intent, }: IndicatorProps) => ReactElement;
|
|
2972
|
+
declare const Indicator: ({ accessibilityLabel, children, size, intent, testID, }: IndicatorProps) => ReactElement;
|
|
2884
2973
|
|
|
2885
2974
|
declare type ListItemProps = {
|
|
2886
2975
|
/**
|
|
@@ -2898,9 +2987,9 @@ declare type ListItemProps = {
|
|
|
2898
2987
|
*
|
|
2899
2988
|
*/
|
|
2900
2989
|
_itemNumber?: undefined;
|
|
2901
|
-
};
|
|
2990
|
+
} & TestID;
|
|
2902
2991
|
declare const ListItem: {
|
|
2903
|
-
({ children, icon, _itemNumber }: ListItemProps): React__default.ReactElement;
|
|
2992
|
+
({ children, icon, _itemNumber, testID, }: ListItemProps): React__default.ReactElement;
|
|
2904
2993
|
componentId: string;
|
|
2905
2994
|
};
|
|
2906
2995
|
|
|
@@ -2922,7 +3011,7 @@ declare type ListCommonProps = {
|
|
|
2922
3011
|
* @default 'medium'
|
|
2923
3012
|
*/
|
|
2924
3013
|
size?: 'small' | 'medium';
|
|
2925
|
-
};
|
|
3014
|
+
} & TestID;
|
|
2926
3015
|
declare type ListWithIconProps = ListCommonProps & {
|
|
2927
3016
|
variant?: 'unordered';
|
|
2928
3017
|
icon?: IconComponent;
|
|
@@ -2953,13 +3042,13 @@ declare type ListProps = ListWithIconProps | ListWithoutIconProps;
|
|
|
2953
3042
|
* ```
|
|
2954
3043
|
*/
|
|
2955
3044
|
declare const List: {
|
|
2956
|
-
({ variant, size, children, icon }: ListProps): React__default.ReactElement;
|
|
3045
|
+
({ variant, size, children, icon, testID, }: ListProps): React__default.ReactElement;
|
|
2957
3046
|
componentId: string;
|
|
2958
3047
|
};
|
|
2959
3048
|
|
|
2960
3049
|
declare type ListItemLinkProps = Exclude<LinkProps, 'size' | 'variant' | 'isDisabled'>;
|
|
2961
3050
|
declare const ListItemLink: {
|
|
2962
|
-
({ accessibilityLabel, children, href, icon, iconPosition, onClick, rel, target, }: ListItemLinkProps): React.ReactElement;
|
|
3051
|
+
({ accessibilityLabel, children, href, icon, iconPosition, onClick, rel, target, testID, }: ListItemLinkProps): React.ReactElement;
|
|
2963
3052
|
componentId: string;
|
|
2964
3053
|
};
|
|
2965
3054
|
|
|
@@ -2968,8 +3057,8 @@ declare type TitleProps = {
|
|
|
2968
3057
|
contrast?: ColorContrastTypes;
|
|
2969
3058
|
type?: TextTypes;
|
|
2970
3059
|
children: StringChildrenType;
|
|
2971
|
-
};
|
|
2972
|
-
declare const Title: ({ size, type, contrast, children, }: TitleProps) => ReactElement;
|
|
3060
|
+
} & TestID;
|
|
3061
|
+
declare const Title: ({ size, type, contrast, children, testID, }: TitleProps) => ReactElement;
|
|
2973
3062
|
|
|
2974
3063
|
declare type HeadingVariant = 'regular' | 'subheading';
|
|
2975
3064
|
declare type HeadingSize = 'small' | 'medium' | 'large';
|
|
@@ -2977,7 +3066,7 @@ declare type HeadingCommonProps = {
|
|
|
2977
3066
|
type?: TextTypes;
|
|
2978
3067
|
contrast?: ColorContrastTypes;
|
|
2979
3068
|
children: StringChildrenType;
|
|
2980
|
-
};
|
|
3069
|
+
} & TestID;
|
|
2981
3070
|
declare type HeadingNormalVariant = HeadingCommonProps & {
|
|
2982
3071
|
variant?: Exclude<HeadingVariant, 'subheading'>;
|
|
2983
3072
|
/**
|
|
@@ -3004,7 +3093,7 @@ declare type HeadingProps<T> = T extends {
|
|
|
3004
3093
|
} ? Variant extends Exclude<HeadingVariant, 'subheading'> ? HeadingNormalVariant : Variant extends 'subheading' ? HeadingSubHeadingVariant : T : T;
|
|
3005
3094
|
declare const Heading: <T extends {
|
|
3006
3095
|
variant: HeadingVariant;
|
|
3007
|
-
}>({ variant, size, type, weight, contrast, children, }: HeadingProps<T>) => ReactElement;
|
|
3096
|
+
}>({ variant, size, type, weight, contrast, children, testID, }: HeadingProps<T>) => ReactElement;
|
|
3008
3097
|
|
|
3009
3098
|
declare type FeedbackColors = `feedback.text.${DotNotationColorStringToken<Theme$1['colors']['feedback']['text']>}`;
|
|
3010
3099
|
declare type FeedbackActionColors = `feedback.${Feedback}.action.text.${DotNotationColorStringToken<Theme$1['colors']['feedback'][Feedback]['action']['text']>}`;
|
|
@@ -3035,7 +3124,7 @@ declare type BaseTextProps = {
|
|
|
3035
3124
|
*/
|
|
3036
3125
|
numberOfLines?: number;
|
|
3037
3126
|
componentName?: 'text' | 'title' | 'heading' | 'code';
|
|
3038
|
-
};
|
|
3127
|
+
} & TestID;
|
|
3039
3128
|
|
|
3040
3129
|
declare type TextCommonProps = {
|
|
3041
3130
|
type?: TextTypes;
|
|
@@ -3047,7 +3136,8 @@ declare type TextCommonProps = {
|
|
|
3047
3136
|
* **For Internal use only**: Sets the color of the Text component
|
|
3048
3137
|
*/
|
|
3049
3138
|
color?: BaseTextProps['color'];
|
|
3050
|
-
|
|
3139
|
+
textAlign?: BaseTextProps['textAlign'];
|
|
3140
|
+
} & TestID;
|
|
3051
3141
|
declare type TextVariant = 'body' | 'caption';
|
|
3052
3142
|
declare type TextBodyVariant = TextCommonProps & {
|
|
3053
3143
|
variant?: Extract<TextVariant, 'body'>;
|
|
@@ -3069,10 +3159,10 @@ declare type TextForwardedAs = {
|
|
|
3069
3159
|
};
|
|
3070
3160
|
declare const getTextProps: <T extends {
|
|
3071
3161
|
variant: TextVariant;
|
|
3072
|
-
}>({ variant, type, weight, size, contrast, }: Pick<TextProps<T>, "size" | "variant" | "type" | "weight" | "contrast">) => Omit<BaseTextProps, 'children'> & TextForwardedAs;
|
|
3162
|
+
}>({ variant, type, weight, size, contrast, testID, textAlign, }: Pick<TextProps<T>, "testID" | "size" | "variant" | "type" | "weight" | "textAlign" | "contrast">) => Omit<BaseTextProps, 'children'> & TextForwardedAs;
|
|
3073
3163
|
declare const Text: <T extends {
|
|
3074
3164
|
variant: TextVariant;
|
|
3075
|
-
}>({ variant, weight, size, type, contrast, truncateAfterLines, children, color, }: TextProps<T>) => ReactElement;
|
|
3165
|
+
}>({ variant, weight, size, type, contrast, truncateAfterLines, children, color, testID, textAlign, }: TextProps<T>) => ReactElement;
|
|
3076
3166
|
|
|
3077
3167
|
declare type CodeProps = {
|
|
3078
3168
|
children: StringChildrenType;
|
|
@@ -3082,7 +3172,7 @@ declare type CodeProps = {
|
|
|
3082
3172
|
* @default small
|
|
3083
3173
|
*/
|
|
3084
3174
|
size?: 'small' | 'medium';
|
|
3085
|
-
};
|
|
3175
|
+
} & TestID;
|
|
3086
3176
|
/**
|
|
3087
3177
|
* Code component can be used for displaying token, variable names, or inlined code snippets.
|
|
3088
3178
|
*
|
|
@@ -3109,11 +3199,11 @@ declare type CodeProps = {
|
|
|
3109
3199
|
* </BaseBox>
|
|
3110
3200
|
* ```
|
|
3111
3201
|
*/
|
|
3112
|
-
declare const Code: ({ children, size }: CodeProps) => JSX.Element;
|
|
3202
|
+
declare const Code: ({ children, size, testID }: CodeProps) => JSX.Element;
|
|
3113
3203
|
|
|
3114
3204
|
declare type ListItemCodeProps = Exclude<CodeProps, 'size'>;
|
|
3115
3205
|
declare const ListItemCode: {
|
|
3116
|
-
({ children }: ListItemCodeProps): React.ReactElement;
|
|
3206
|
+
({ children, testID }: ListItemCodeProps): React.ReactElement;
|
|
3117
3207
|
componentId: string;
|
|
3118
3208
|
};
|
|
3119
3209
|
|
|
@@ -3161,7 +3251,7 @@ declare type ProgressBarCommonProps = {
|
|
|
3161
3251
|
* @default 100
|
|
3162
3252
|
*/
|
|
3163
3253
|
max?: number;
|
|
3164
|
-
};
|
|
3254
|
+
} & TestID;
|
|
3165
3255
|
declare type ProgressBarVariant = 'progress' | 'meter';
|
|
3166
3256
|
declare type ProgressBarProgressProps = ProgressBarCommonProps & {
|
|
3167
3257
|
/**
|
|
@@ -3198,7 +3288,7 @@ declare type ProgressBarMeterProps = ProgressBarCommonProps & {
|
|
|
3198
3288
|
showPercentage?: undefined;
|
|
3199
3289
|
};
|
|
3200
3290
|
declare type ProgressBarProps = ProgressBarProgressProps | ProgressBarMeterProps;
|
|
3201
|
-
declare const ProgressBar: ({ accessibilityLabel, contrast, intent, isIndeterminate, label, showPercentage, size, value, variant, min, max, }: ProgressBarProps) => ReactElement;
|
|
3291
|
+
declare const ProgressBar: ({ accessibilityLabel, contrast, intent, isIndeterminate, label, showPercentage, size, value, variant, min, max, testID, }: ProgressBarProps) => ReactElement;
|
|
3202
3292
|
|
|
3203
3293
|
declare type RadioProps = {
|
|
3204
3294
|
/**
|
|
@@ -3226,8 +3316,34 @@ declare type RadioProps = {
|
|
|
3226
3316
|
* @default "medium"
|
|
3227
3317
|
*/
|
|
3228
3318
|
size?: 'small' | 'medium';
|
|
3229
|
-
};
|
|
3230
|
-
declare const Radio: React__default.ForwardRefExoticComponent<
|
|
3319
|
+
} & TestID;
|
|
3320
|
+
declare const Radio: React__default.ForwardRefExoticComponent<{
|
|
3321
|
+
/**
|
|
3322
|
+
* Sets the label text of the Radio
|
|
3323
|
+
*/
|
|
3324
|
+
children: StringChildrenType;
|
|
3325
|
+
/**
|
|
3326
|
+
* Help text for the Radio
|
|
3327
|
+
*/
|
|
3328
|
+
helpText?: string | undefined;
|
|
3329
|
+
/**
|
|
3330
|
+
* The value to be used in the Radio input.
|
|
3331
|
+
* This is the value that will be returned on form submission.
|
|
3332
|
+
*/
|
|
3333
|
+
value: string;
|
|
3334
|
+
/**
|
|
3335
|
+
* If `true`, the Radio will be disabled
|
|
3336
|
+
*
|
|
3337
|
+
* @default false
|
|
3338
|
+
*/
|
|
3339
|
+
isDisabled?: boolean | undefined;
|
|
3340
|
+
/**
|
|
3341
|
+
* Size of the radios
|
|
3342
|
+
*
|
|
3343
|
+
* @default "medium"
|
|
3344
|
+
*/
|
|
3345
|
+
size?: "small" | "medium" | undefined;
|
|
3346
|
+
} & TestID & React__default.RefAttributes<BladeElementRef>>;
|
|
3231
3347
|
|
|
3232
3348
|
declare type RadioGroupProps = {
|
|
3233
3349
|
/**
|
|
@@ -3302,8 +3418,8 @@ declare type RadioGroupProps = {
|
|
|
3302
3418
|
* @default "medium"
|
|
3303
3419
|
*/
|
|
3304
3420
|
size?: 'small' | 'medium';
|
|
3305
|
-
};
|
|
3306
|
-
declare const RadioGroup: ({ children, label, helpText, isDisabled, necessityIndicator, labelPosition, validationState, errorText, name, defaultValue, onChange, value, size, }: RadioGroupProps) => React__default.ReactElement;
|
|
3421
|
+
} & TestID;
|
|
3422
|
+
declare const RadioGroup: ({ children, label, helpText, isDisabled, necessityIndicator, labelPosition, validationState, errorText, name, defaultValue, onChange, value, size, testID, }: RadioGroupProps) => React__default.ReactElement;
|
|
3307
3423
|
|
|
3308
3424
|
declare type BaseSpinnerProps = {
|
|
3309
3425
|
intent?: Feedback;
|
|
@@ -3335,10 +3451,10 @@ declare type BaseSpinnerProps = {
|
|
|
3335
3451
|
*
|
|
3336
3452
|
*/
|
|
3337
3453
|
accessibilityLabel: string;
|
|
3338
|
-
};
|
|
3454
|
+
} & TestID;
|
|
3339
3455
|
|
|
3340
3456
|
declare type SpinnerProps = Omit<BaseSpinnerProps, 'intent'>;
|
|
3341
|
-
declare const Spinner: ({ label, labelPosition, accessibilityLabel, contrast, size, }: SpinnerProps) => React.ReactElement;
|
|
3457
|
+
declare const Spinner: ({ label, labelPosition, accessibilityLabel, contrast, size, testID, }: SpinnerProps) => React.ReactElement;
|
|
3342
3458
|
|
|
3343
3459
|
declare type SkipNavLinkProps = {
|
|
3344
3460
|
id?: string;
|
|
@@ -3349,9 +3465,9 @@ declare const SkipNavContent: (_props: SkipNavLinkProps) => never;
|
|
|
3349
3465
|
|
|
3350
3466
|
declare type VisuallyHiddenProps = {
|
|
3351
3467
|
children: React.ReactNode;
|
|
3352
|
-
};
|
|
3468
|
+
} & TestID;
|
|
3353
3469
|
|
|
3354
|
-
declare const VisuallyHidden: ({ children }: VisuallyHiddenProps) => JSX.Element;
|
|
3470
|
+
declare const VisuallyHidden: ({ children, testID }: VisuallyHiddenProps) => JSX.Element;
|
|
3355
3471
|
|
|
3356
3472
|
/**
|
|
3357
3473
|
* Screen reader class adapted from webaim
|
|
@@ -3359,4 +3475,4 @@ declare const VisuallyHidden: ({ children }: VisuallyHiddenProps) => JSX.Element
|
|
|
3359
3475
|
*/
|
|
3360
3476
|
declare const screenReaderStyles: CSSObject;
|
|
3361
3477
|
|
|
3362
|
-
export { ActionList, ActionListFooter, ActionListFooterIcon, ActionListFooterProps, ActionListHeader, ActionListHeaderIcon, ActionListHeaderProps, ActionListItem, ActionListItemAsset, ActionListItemAssetProps, ActionListItemIcon, ActionListItemProps, ActionListItemText, ActionListProps, ActionListSection, ActionListSectionDivider, ActionListSectionProps, ActivityIcon, AirplayIcon, Alert, AlertCircleIcon, AlertTriangleIcon as AlertOctagonIcon, AlertOnlyIcon, AlertProps, AlertTriangleIcon$1 as AlertTriangleIcon, AlignCenterIcon, AlignJustifyIcon, AlignLeftIcon, AlignRightIcon, AnchorIcon, AnnouncementIcon, ApertureIcon, AppStoreIcon, ArrowDownIcon, ArrowDownLeftIcon, ArrowDownRightIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowUpLeftIcon, ArrowUpRightIcon, AtSignIcon, Attachment as AttachmentIcon, AwardIcon, Badge, BadgeProps, BankIcon, BarChartAltIcon, BarChartIcon, BatteryChargingIcon, BatteryIcon, BellIcon, BellOffIcon, BillIcon, BladeProvider, BladeProviderProps, BluetoothIcon, BoldIcon, BookIcon, BookmarkIcon, BoxIcon, BriefcaseIcon, 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, useTheme };
|
|
3478
|
+
export { ActionList, ActionListFooter, ActionListFooterIcon, ActionListFooterProps, ActionListHeader, ActionListHeaderIcon, ActionListHeaderProps, ActionListItem, ActionListItemAsset, ActionListItemAssetProps, ActionListItemIcon, ActionListItemProps, ActionListItemText, ActionListProps, ActionListSection, ActionListSectionDivider, ActionListSectionProps, ActivityIcon, AirplayIcon, Alert, AlertCircleIcon, AlertTriangleIcon as AlertOctagonIcon, AlertOnlyIcon, AlertProps, AlertTriangleIcon$1 as AlertTriangleIcon, AlignCenterIcon, AlignJustifyIcon, AlignLeftIcon, AlignRightIcon, AnchorIcon, AnnouncementIcon, ApertureIcon, AppStoreIcon, ArrowDownIcon, ArrowDownLeftIcon, ArrowDownRightIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowUpLeftIcon, ArrowUpRightIcon, AtSignIcon, Attachment as AttachmentIcon, AwardIcon, Badge, BadgeProps, BankIcon, BarChartAltIcon, BarChartIcon, BatteryChargingIcon, BatteryIcon, BellIcon, BellOffIcon, BillIcon, BladeProvider, BladeProviderProps, BluetoothIcon, BoldIcon, BookIcon, BookmarkIcon, BoxIcon, 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, useTheme };
|