@razorpay/blade 5.4.2 → 5.5.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 +21 -0
- package/build/components/index.d.ts +47 -16
- package/build/components/index.native.d.ts +47 -16
- package/build/components/index.native.js +27 -11
- package/build/components/index.native.js.map +1 -1
- package/build/components/index.web.js +300 -25
- 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/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @razorpay/blade
|
|
2
2
|
|
|
3
|
+
## 5.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- a094736: feat: expose `onFocus` on `TextInput` and `TextArea`
|
|
8
|
+
- 2c2841a: added transaction icon
|
|
9
|
+
- 46425d3: feat(blade): add ClockIcon
|
|
10
|
+
- 1dd920e: feat(Icons): add BankIcon
|
|
11
|
+
- 227be3d: added tag, shuffle, user, book, and settlements icons
|
|
12
|
+
- e64d7cc: chore: design changes for Badge, Counter, Spinner
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- ba16503: fix(blade): TextInput clear button state on initial render
|
|
17
|
+
|
|
18
|
+
## 5.4.3
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- e6c3ea9: fix(blade): restrict childrens in Card component
|
|
23
|
+
|
|
3
24
|
## 5.4.2
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -1050,6 +1050,21 @@ declare type Theme = {
|
|
|
1050
1050
|
typography: Typography;
|
|
1051
1051
|
};
|
|
1052
1052
|
|
|
1053
|
+
declare const ComponentIds: {
|
|
1054
|
+
CardHeader: string;
|
|
1055
|
+
CardHeaderTrailing: string;
|
|
1056
|
+
CardHeaderLeading: string;
|
|
1057
|
+
CardFooter: string;
|
|
1058
|
+
CardFooterTrailing: string;
|
|
1059
|
+
CardFooterLeading: string;
|
|
1060
|
+
CardBody: string;
|
|
1061
|
+
CardHeaderIcon: string;
|
|
1062
|
+
CardHeaderCounter: string;
|
|
1063
|
+
CardHeaderBadge: string;
|
|
1064
|
+
CardHeaderText: string;
|
|
1065
|
+
CardHeaderLink: string;
|
|
1066
|
+
CardHeaderIconButton: string;
|
|
1067
|
+
};
|
|
1053
1068
|
declare type CardProps = {
|
|
1054
1069
|
/**
|
|
1055
1070
|
* Card contents
|
|
@@ -1069,13 +1084,13 @@ declare type CardProps = {
|
|
|
1069
1084
|
* - Docs: https://blade.razorpay.com/?path=/docs/tokens-colors--page#-theme-tokens
|
|
1070
1085
|
* - Figma: https://shorturl.at/fsvwK
|
|
1071
1086
|
*/
|
|
1072
|
-
surfaceLevel
|
|
1087
|
+
surfaceLevel?: 2 | 3;
|
|
1073
1088
|
};
|
|
1074
1089
|
declare const Card: ({ children, surfaceLevel }: CardProps) => React__default.ReactElement;
|
|
1075
1090
|
declare type CardBodyProps = {
|
|
1076
1091
|
children: React__default.ReactNode;
|
|
1077
1092
|
};
|
|
1078
|
-
declare const CardBody:
|
|
1093
|
+
declare const CardBody: WithComponentId<CardBodyProps>;
|
|
1079
1094
|
|
|
1080
1095
|
declare type LinkCommonProps = {
|
|
1081
1096
|
variant?: 'anchor' | 'button';
|
|
@@ -1203,7 +1218,7 @@ type TextVariant$1 = 'body' | 'caption';
|
|
|
1203
1218
|
|
|
1204
1219
|
type TextBodyVariant$1 = TextCommonProps$1 & {
|
|
1205
1220
|
variant?: Extract<TextVariant$1, 'body'>;
|
|
1206
|
-
size?: 'small' | 'medium';
|
|
1221
|
+
size?: 'xsmall' | 'small' | 'medium';
|
|
1207
1222
|
};
|
|
1208
1223
|
|
|
1209
1224
|
type TextCaptionVariant$1 = TextCommonProps$1 & {
|
|
@@ -1271,7 +1286,7 @@ declare const CardHeaderIconButton: WithComponentId<CardHeaderIconButtonProps>;
|
|
|
1271
1286
|
declare type CardHeaderProps = {
|
|
1272
1287
|
children?: React__default.ReactNode;
|
|
1273
1288
|
};
|
|
1274
|
-
declare const CardHeader:
|
|
1289
|
+
declare const CardHeader: WithComponentId<CardHeaderProps>;
|
|
1275
1290
|
declare type CardHeaderLeadingProps = {
|
|
1276
1291
|
title: string;
|
|
1277
1292
|
subtitle?: string;
|
|
@@ -1288,7 +1303,7 @@ declare type CardHeaderLeadingProps = {
|
|
|
1288
1303
|
*/
|
|
1289
1304
|
suffix?: React__default.ReactNode;
|
|
1290
1305
|
};
|
|
1291
|
-
declare const CardHeaderLeading:
|
|
1306
|
+
declare const CardHeaderLeading: WithComponentId<CardHeaderLeadingProps>;
|
|
1292
1307
|
declare type CardHeaderTrailingProps = {
|
|
1293
1308
|
/**
|
|
1294
1309
|
* Renders a visual ornament in card header trailing section
|
|
@@ -1297,27 +1312,27 @@ declare type CardHeaderTrailingProps = {
|
|
|
1297
1312
|
*/
|
|
1298
1313
|
visual?: React__default.ReactNode;
|
|
1299
1314
|
};
|
|
1300
|
-
declare const CardHeaderTrailing:
|
|
1315
|
+
declare const CardHeaderTrailing: WithComponentId<CardHeaderTrailingProps>;
|
|
1301
1316
|
|
|
1302
1317
|
declare type CardFooterAction = Pick<ButtonProps, 'type' | 'accessibilityLabel' | 'isLoading' | 'isDisabled' | 'icon' | 'iconPosition' | 'onClick'> & {
|
|
1303
1318
|
text: ButtonProps['children'];
|
|
1304
1319
|
};
|
|
1305
1320
|
declare type CardFooterProps = {
|
|
1306
|
-
children?:
|
|
1321
|
+
children?: React__default.ReactNode;
|
|
1307
1322
|
};
|
|
1308
|
-
declare const CardFooter:
|
|
1323
|
+
declare const CardFooter: WithComponentId<CardFooterProps>;
|
|
1309
1324
|
declare type CardFooterLeadingProps = {
|
|
1310
1325
|
title?: string;
|
|
1311
1326
|
subtitle?: string;
|
|
1312
1327
|
};
|
|
1313
|
-
declare const CardFooterLeading:
|
|
1328
|
+
declare const CardFooterLeading: WithComponentId<CardFooterLeadingProps>;
|
|
1314
1329
|
declare type CardFooterTrailingProps = {
|
|
1315
1330
|
actions?: {
|
|
1316
1331
|
primary?: CardFooterAction;
|
|
1317
1332
|
secondary?: CardFooterAction;
|
|
1318
1333
|
};
|
|
1319
1334
|
};
|
|
1320
|
-
declare const CardFooterTrailing:
|
|
1335
|
+
declare const CardFooterTrailing: WithComponentId<CardFooterTrailingProps>;
|
|
1321
1336
|
|
|
1322
1337
|
declare type IconButtonProps = {
|
|
1323
1338
|
/**
|
|
@@ -1556,6 +1571,8 @@ declare const ChevronRightIcon: IconComponent;
|
|
|
1556
1571
|
|
|
1557
1572
|
declare const ChevronUpIcon: IconComponent;
|
|
1558
1573
|
|
|
1574
|
+
declare const ClockIcon: IconComponent;
|
|
1575
|
+
|
|
1559
1576
|
declare const CloseIcon: IconComponent;
|
|
1560
1577
|
|
|
1561
1578
|
declare const CreditCardIcon: IconComponent;
|
|
@@ -1594,6 +1611,8 @@ declare const SettingsIcon: IconComponent;
|
|
|
1594
1611
|
|
|
1595
1612
|
declare const SlashIcon: IconComponent;
|
|
1596
1613
|
|
|
1614
|
+
declare const BankIcon: IconComponent;
|
|
1615
|
+
|
|
1597
1616
|
declare const TrashIcon: ({ size, color }: IconProps) => ReactElement;
|
|
1598
1617
|
|
|
1599
1618
|
declare const AlertTriangleIcon$1: ({ size, color }: IconProps) => ReactElement;
|
|
@@ -1620,6 +1639,18 @@ declare const ExternalLinkIcon: IconComponent;
|
|
|
1620
1639
|
|
|
1621
1640
|
declare const MailIcon: IconComponent;
|
|
1622
1641
|
|
|
1642
|
+
declare const BookIcon: IconComponent;
|
|
1643
|
+
|
|
1644
|
+
declare const SettlementsIcon: IconComponent;
|
|
1645
|
+
|
|
1646
|
+
declare const ShuffleIcon: IconComponent;
|
|
1647
|
+
|
|
1648
|
+
declare const TagIcon: IconComponent;
|
|
1649
|
+
|
|
1650
|
+
declare const UserIcon: IconComponent;
|
|
1651
|
+
|
|
1652
|
+
declare const TransactionsIcon: IconComponent;
|
|
1653
|
+
|
|
1623
1654
|
declare type FeedbackIconColors = `feedback.icon.${DotNotationColorStringToken<Theme$1['colors']['feedback']['icon']>}`;
|
|
1624
1655
|
declare type FeedbackActionIconColors = `feedback.${Feedback}.action.icon.${DotNotationColorStringToken<Theme$1['colors']['feedback'][Feedback]['action']['icon']>}`;
|
|
1625
1656
|
declare type ActionIconColors = `action.icon.${DotNotationColorStringToken<Theme$1['colors']['action']['icon']>}`;
|
|
@@ -1856,7 +1887,7 @@ declare type BaseInputProps = FormInputLabelProps & FormInputValidationProps & {
|
|
|
1856
1887
|
};
|
|
1857
1888
|
|
|
1858
1889
|
declare type Type = Exclude<BaseInputProps['type'], 'password'>;
|
|
1859
|
-
declare type TextInputProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'necessityIndicator' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'placeholder' | 'defaultValue' | 'name' | 'onChange' | 'onBlur' | 'value' | 'isDisabled' | 'isRequired' | 'prefix' | 'suffix' | 'maxCharacters' | 'autoFocus' | 'keyboardReturnKeyType' | 'autoCompleteSuggestionType'> & {
|
|
1890
|
+
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'> & {
|
|
1860
1891
|
/**
|
|
1861
1892
|
* Decides whether to render a clear icon button
|
|
1862
1893
|
*/
|
|
@@ -1880,7 +1911,7 @@ declare type TextInputProps = Pick<BaseInputProps, 'label' | 'labelPosition' | '
|
|
|
1880
1911
|
*/
|
|
1881
1912
|
type?: Type;
|
|
1882
1913
|
};
|
|
1883
|
-
declare const TextInput: ({ label, labelPosition, placeholder, type, defaultValue, name, value, maxCharacters, onChange, onBlur, isDisabled, necessityIndicator, validationState, errorText, helpText, successText, isRequired, icon, prefix, showClearButton, onClearButtonClick, isLoading, suffix, autoFocus, keyboardReturnKeyType, autoCompleteSuggestionType, }: TextInputProps) => ReactElement;
|
|
1914
|
+
declare const TextInput: ({ label, labelPosition, placeholder, type, defaultValue, name, value, maxCharacters, onChange, onFocus, onBlur, isDisabled, necessityIndicator, validationState, errorText, helpText, successText, isRequired, icon, prefix, showClearButton, onClearButtonClick, isLoading, suffix, autoFocus, keyboardReturnKeyType, autoCompleteSuggestionType, }: TextInputProps) => ReactElement;
|
|
1884
1915
|
|
|
1885
1916
|
declare type PasswordInputExtraProps = {
|
|
1886
1917
|
/**
|
|
@@ -1915,7 +1946,7 @@ declare type PasswordInputExtraProps = {
|
|
|
1915
1946
|
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;
|
|
1916
1947
|
declare const PasswordInput: ({ label, labelPosition, showRevealButton, maxCharacters, validationState, errorText, successText, helpText, isDisabled, defaultValue, placeholder, isRequired, necessityIndicator, value, onChange, onFocus, onBlur, name, autoFocus, keyboardReturnKeyType, autoCompleteSuggestionType, }: PasswordInputProps) => ReactElement;
|
|
1917
1948
|
|
|
1918
|
-
declare type TextAreaProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'necessityIndicator' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'placeholder' | 'defaultValue' | 'name' | 'onChange' | 'onBlur' | 'value' | 'isDisabled' | 'isRequired' | 'maxCharacters' | 'autoFocus' | 'numberOfLines'> & {
|
|
1949
|
+
declare type TextAreaProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'necessityIndicator' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'placeholder' | 'defaultValue' | 'name' | 'onChange' | 'onFocus' | 'onBlur' | 'value' | 'isDisabled' | 'isRequired' | 'maxCharacters' | 'autoFocus' | 'numberOfLines'> & {
|
|
1919
1950
|
/**
|
|
1920
1951
|
* Decides whether to render a clear icon button
|
|
1921
1952
|
*/
|
|
@@ -1925,7 +1956,7 @@ declare type TextAreaProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'n
|
|
|
1925
1956
|
*/
|
|
1926
1957
|
onClearButtonClick?: () => void;
|
|
1927
1958
|
};
|
|
1928
|
-
declare const TextArea: ({ label, labelPosition, necessityIndicator, errorText, helpText, successText, validationState, defaultValue, isDisabled, isRequired, name,
|
|
1959
|
+
declare const TextArea: ({ label, labelPosition, necessityIndicator, errorText, helpText, successText, validationState, defaultValue, isDisabled, isRequired, name, onChange, onFocus, onBlur, placeholder, value, maxCharacters, showClearButton, onClearButtonClick, autoFocus, numberOfLines, }: TextAreaProps) => React__default.ReactElement;
|
|
1929
1960
|
|
|
1930
1961
|
declare type OTPInputProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'name' | 'onChange' | 'value' | 'isDisabled' | 'autoFocus' | 'keyboardReturnKeyType' | 'keyboardType' | 'placeholder'> & {
|
|
1931
1962
|
/**
|
|
@@ -2325,7 +2356,7 @@ declare type TextCommonProps = {
|
|
|
2325
2356
|
declare type TextVariant = 'body' | 'caption';
|
|
2326
2357
|
declare type TextBodyVariant = TextCommonProps & {
|
|
2327
2358
|
variant?: Extract<TextVariant, 'body'>;
|
|
2328
|
-
size?: 'small' | 'medium';
|
|
2359
|
+
size?: 'xsmall' | 'small' | 'medium';
|
|
2329
2360
|
};
|
|
2330
2361
|
declare type TextCaptionVariant = TextCommonProps & {
|
|
2331
2362
|
variant?: Extract<TextVariant, 'caption'>;
|
|
@@ -2393,4 +2424,4 @@ declare const VisuallyHidden: ({ children }: VisuallyHiddenProps) => JSX.Element
|
|
|
2393
2424
|
|
|
2394
2425
|
declare const screenReaderStyles: CSSObject;
|
|
2395
2426
|
|
|
2396
|
-
export { Alert, AlertTriangleIcon as AlertOctagonIcon, AlertProps, AlertTriangleIcon$1 as AlertTriangleIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowUpRightIcon, Badge, BadgeProps, BladeProvider, BladeProviderProps, Button, ButtonProps, Card, CardBody, CardFooter, CardFooterAction, CardFooterLeading, CardFooterTrailing, CardHeader, CardHeaderBadge, CardHeaderCounter, CardHeaderIcon, CardHeaderIconButton, CardHeaderLeading, CardHeaderLink, CardHeaderText, CardHeaderTrailing, CardProps, CheckCircleIcon, CheckIcon, Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxProps, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, Code, CodeProps, Counter, CounterProps, CreditCardIcon, DollarIcon, DownloadIcon, EditIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FileTextIcon, Heading, HeadingProps, HelpCircleIcon, HistoryIcon, HomeIcon, IconButton, IconButtonProps, IconComponent, IconProps, IconSize, Indicator, IndicatorProps, InfoIcon, Link, LinkIcon, LinkProps, LockIcon, MailIcon, MinusIcon, OTPInput, OTPInputProps, PasswordInput, PasswordInputProps, PauseIcon, PlusIcon, ProgressBar, ProgressBarProps, ProgressBarVariant, Radio, RadioGroup, RadioGroupProps, RadioProps, RefreshLeftIcon, RotateCounterClockWiseIcon, RupeeIcon, SearchIcon, SettingsIcon, SkipNavContent, SkipNavLink, SlashIcon, Spinner, SpinnerProps, Text, TextArea, TextAreaProps, TextInput, TextInputProps, TextProps, TextVariant, Theme, Title, TitleProps, TrashIcon, TrendingDownIcon, TrendingUpIcon, UsersIcon, VisuallyHidden, VisuallyHiddenProps, announce, clearAnnouncer, destroyAnnouncer, getTextProps, screenReaderStyles, useTheme };
|
|
2427
|
+
export { Alert, AlertTriangleIcon as AlertOctagonIcon, AlertProps, AlertTriangleIcon$1 as AlertTriangleIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowUpRightIcon, Badge, BadgeProps, BankIcon, BladeProvider, BladeProviderProps, BookIcon, Button, ButtonProps, Card, CardBody, CardFooter, CardFooterAction, CardFooterLeading, CardFooterTrailing, CardHeader, CardHeaderBadge, CardHeaderCounter, CardHeaderIcon, CardHeaderIconButton, CardHeaderLeading, CardHeaderLink, CardHeaderText, CardHeaderTrailing, CardProps, CheckCircleIcon, CheckIcon, Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxProps, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ClockIcon, CloseIcon, Code, CodeProps, ComponentIds, Counter, CounterProps, CreditCardIcon, DollarIcon, DownloadIcon, EditIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FileTextIcon, Heading, HeadingProps, HelpCircleIcon, HistoryIcon, HomeIcon, IconButton, IconButtonProps, IconComponent, IconProps, IconSize, Indicator, IndicatorProps, InfoIcon, Link, LinkIcon, LinkProps, LockIcon, MailIcon, MinusIcon, OTPInput, OTPInputProps, PasswordInput, PasswordInputProps, PauseIcon, PlusIcon, ProgressBar, ProgressBarProps, ProgressBarVariant, Radio, RadioGroup, RadioGroupProps, RadioProps, RefreshLeftIcon, RotateCounterClockWiseIcon, RupeeIcon, SearchIcon, SettingsIcon, SettlementsIcon, ShuffleIcon, SkipNavContent, SkipNavLink, SlashIcon, Spinner, SpinnerProps, TagIcon, Text, TextArea, TextAreaProps, TextInput, TextInputProps, TextProps, TextVariant, Theme, Title, TitleProps, TransactionsIcon, TrashIcon, TrendingDownIcon, TrendingUpIcon, UserIcon, UsersIcon, VisuallyHidden, VisuallyHiddenProps, announce, clearAnnouncer, destroyAnnouncer, getTextProps, screenReaderStyles, useTheme };
|
|
@@ -1050,6 +1050,21 @@ declare type Theme = {
|
|
|
1050
1050
|
typography: Typography;
|
|
1051
1051
|
};
|
|
1052
1052
|
|
|
1053
|
+
declare const ComponentIds: {
|
|
1054
|
+
CardHeader: string;
|
|
1055
|
+
CardHeaderTrailing: string;
|
|
1056
|
+
CardHeaderLeading: string;
|
|
1057
|
+
CardFooter: string;
|
|
1058
|
+
CardFooterTrailing: string;
|
|
1059
|
+
CardFooterLeading: string;
|
|
1060
|
+
CardBody: string;
|
|
1061
|
+
CardHeaderIcon: string;
|
|
1062
|
+
CardHeaderCounter: string;
|
|
1063
|
+
CardHeaderBadge: string;
|
|
1064
|
+
CardHeaderText: string;
|
|
1065
|
+
CardHeaderLink: string;
|
|
1066
|
+
CardHeaderIconButton: string;
|
|
1067
|
+
};
|
|
1053
1068
|
declare type CardProps = {
|
|
1054
1069
|
/**
|
|
1055
1070
|
* Card contents
|
|
@@ -1069,13 +1084,13 @@ declare type CardProps = {
|
|
|
1069
1084
|
* - Docs: https://blade.razorpay.com/?path=/docs/tokens-colors--page#-theme-tokens
|
|
1070
1085
|
* - Figma: https://shorturl.at/fsvwK
|
|
1071
1086
|
*/
|
|
1072
|
-
surfaceLevel
|
|
1087
|
+
surfaceLevel?: 2 | 3;
|
|
1073
1088
|
};
|
|
1074
1089
|
declare const Card: ({ children, surfaceLevel }: CardProps) => React__default.ReactElement;
|
|
1075
1090
|
declare type CardBodyProps = {
|
|
1076
1091
|
children: React__default.ReactNode;
|
|
1077
1092
|
};
|
|
1078
|
-
declare const CardBody:
|
|
1093
|
+
declare const CardBody: WithComponentId<CardBodyProps>;
|
|
1079
1094
|
|
|
1080
1095
|
declare type LinkCommonProps = {
|
|
1081
1096
|
variant?: 'anchor' | 'button';
|
|
@@ -1203,7 +1218,7 @@ type TextVariant$1 = 'body' | 'caption';
|
|
|
1203
1218
|
|
|
1204
1219
|
type TextBodyVariant$1 = TextCommonProps$1 & {
|
|
1205
1220
|
variant?: Extract<TextVariant$1, 'body'>;
|
|
1206
|
-
size?: 'small' | 'medium';
|
|
1221
|
+
size?: 'xsmall' | 'small' | 'medium';
|
|
1207
1222
|
};
|
|
1208
1223
|
|
|
1209
1224
|
type TextCaptionVariant$1 = TextCommonProps$1 & {
|
|
@@ -1271,7 +1286,7 @@ declare const CardHeaderIconButton: WithComponentId<CardHeaderIconButtonProps>;
|
|
|
1271
1286
|
declare type CardHeaderProps = {
|
|
1272
1287
|
children?: React__default.ReactNode;
|
|
1273
1288
|
};
|
|
1274
|
-
declare const CardHeader:
|
|
1289
|
+
declare const CardHeader: WithComponentId<CardHeaderProps>;
|
|
1275
1290
|
declare type CardHeaderLeadingProps = {
|
|
1276
1291
|
title: string;
|
|
1277
1292
|
subtitle?: string;
|
|
@@ -1288,7 +1303,7 @@ declare type CardHeaderLeadingProps = {
|
|
|
1288
1303
|
*/
|
|
1289
1304
|
suffix?: React__default.ReactNode;
|
|
1290
1305
|
};
|
|
1291
|
-
declare const CardHeaderLeading:
|
|
1306
|
+
declare const CardHeaderLeading: WithComponentId<CardHeaderLeadingProps>;
|
|
1292
1307
|
declare type CardHeaderTrailingProps = {
|
|
1293
1308
|
/**
|
|
1294
1309
|
* Renders a visual ornament in card header trailing section
|
|
@@ -1297,27 +1312,27 @@ declare type CardHeaderTrailingProps = {
|
|
|
1297
1312
|
*/
|
|
1298
1313
|
visual?: React__default.ReactNode;
|
|
1299
1314
|
};
|
|
1300
|
-
declare const CardHeaderTrailing:
|
|
1315
|
+
declare const CardHeaderTrailing: WithComponentId<CardHeaderTrailingProps>;
|
|
1301
1316
|
|
|
1302
1317
|
declare type CardFooterAction = Pick<ButtonProps, 'type' | 'accessibilityLabel' | 'isLoading' | 'isDisabled' | 'icon' | 'iconPosition' | 'onClick'> & {
|
|
1303
1318
|
text: ButtonProps['children'];
|
|
1304
1319
|
};
|
|
1305
1320
|
declare type CardFooterProps = {
|
|
1306
|
-
children?:
|
|
1321
|
+
children?: React__default.ReactNode;
|
|
1307
1322
|
};
|
|
1308
|
-
declare const CardFooter:
|
|
1323
|
+
declare const CardFooter: WithComponentId<CardFooterProps>;
|
|
1309
1324
|
declare type CardFooterLeadingProps = {
|
|
1310
1325
|
title?: string;
|
|
1311
1326
|
subtitle?: string;
|
|
1312
1327
|
};
|
|
1313
|
-
declare const CardFooterLeading:
|
|
1328
|
+
declare const CardFooterLeading: WithComponentId<CardFooterLeadingProps>;
|
|
1314
1329
|
declare type CardFooterTrailingProps = {
|
|
1315
1330
|
actions?: {
|
|
1316
1331
|
primary?: CardFooterAction;
|
|
1317
1332
|
secondary?: CardFooterAction;
|
|
1318
1333
|
};
|
|
1319
1334
|
};
|
|
1320
|
-
declare const CardFooterTrailing:
|
|
1335
|
+
declare const CardFooterTrailing: WithComponentId<CardFooterTrailingProps>;
|
|
1321
1336
|
|
|
1322
1337
|
declare type IconButtonProps = {
|
|
1323
1338
|
/**
|
|
@@ -1556,6 +1571,8 @@ declare const ChevronRightIcon: IconComponent;
|
|
|
1556
1571
|
|
|
1557
1572
|
declare const ChevronUpIcon: IconComponent;
|
|
1558
1573
|
|
|
1574
|
+
declare const ClockIcon: IconComponent;
|
|
1575
|
+
|
|
1559
1576
|
declare const CloseIcon: IconComponent;
|
|
1560
1577
|
|
|
1561
1578
|
declare const CreditCardIcon: IconComponent;
|
|
@@ -1594,6 +1611,8 @@ declare const SettingsIcon: IconComponent;
|
|
|
1594
1611
|
|
|
1595
1612
|
declare const SlashIcon: IconComponent;
|
|
1596
1613
|
|
|
1614
|
+
declare const BankIcon: IconComponent;
|
|
1615
|
+
|
|
1597
1616
|
declare const TrashIcon: ({ size, color }: IconProps) => ReactElement;
|
|
1598
1617
|
|
|
1599
1618
|
declare const AlertTriangleIcon$1: ({ size, color }: IconProps) => ReactElement;
|
|
@@ -1620,6 +1639,18 @@ declare const ExternalLinkIcon: IconComponent;
|
|
|
1620
1639
|
|
|
1621
1640
|
declare const MailIcon: IconComponent;
|
|
1622
1641
|
|
|
1642
|
+
declare const BookIcon: IconComponent;
|
|
1643
|
+
|
|
1644
|
+
declare const SettlementsIcon: IconComponent;
|
|
1645
|
+
|
|
1646
|
+
declare const ShuffleIcon: IconComponent;
|
|
1647
|
+
|
|
1648
|
+
declare const TagIcon: IconComponent;
|
|
1649
|
+
|
|
1650
|
+
declare const UserIcon: IconComponent;
|
|
1651
|
+
|
|
1652
|
+
declare const TransactionsIcon: IconComponent;
|
|
1653
|
+
|
|
1623
1654
|
declare type FeedbackIconColors = `feedback.icon.${DotNotationColorStringToken<Theme$1['colors']['feedback']['icon']>}`;
|
|
1624
1655
|
declare type FeedbackActionIconColors = `feedback.${Feedback}.action.icon.${DotNotationColorStringToken<Theme$1['colors']['feedback'][Feedback]['action']['icon']>}`;
|
|
1625
1656
|
declare type ActionIconColors = `action.icon.${DotNotationColorStringToken<Theme$1['colors']['action']['icon']>}`;
|
|
@@ -1856,7 +1887,7 @@ declare type BaseInputProps = FormInputLabelProps & FormInputValidationProps & {
|
|
|
1856
1887
|
};
|
|
1857
1888
|
|
|
1858
1889
|
declare type Type = Exclude<BaseInputProps['type'], 'password'>;
|
|
1859
|
-
declare type TextInputProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'necessityIndicator' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'placeholder' | 'defaultValue' | 'name' | 'onChange' | 'onBlur' | 'value' | 'isDisabled' | 'isRequired' | 'prefix' | 'suffix' | 'maxCharacters' | 'autoFocus' | 'keyboardReturnKeyType' | 'autoCompleteSuggestionType'> & {
|
|
1890
|
+
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'> & {
|
|
1860
1891
|
/**
|
|
1861
1892
|
* Decides whether to render a clear icon button
|
|
1862
1893
|
*/
|
|
@@ -1880,7 +1911,7 @@ declare type TextInputProps = Pick<BaseInputProps, 'label' | 'labelPosition' | '
|
|
|
1880
1911
|
*/
|
|
1881
1912
|
type?: Type;
|
|
1882
1913
|
};
|
|
1883
|
-
declare const TextInput: ({ label, labelPosition, placeholder, type, defaultValue, name, value, maxCharacters, onChange, onBlur, isDisabled, necessityIndicator, validationState, errorText, helpText, successText, isRequired, icon, prefix, showClearButton, onClearButtonClick, isLoading, suffix, autoFocus, keyboardReturnKeyType, autoCompleteSuggestionType, }: TextInputProps) => ReactElement;
|
|
1914
|
+
declare const TextInput: ({ label, labelPosition, placeholder, type, defaultValue, name, value, maxCharacters, onChange, onFocus, onBlur, isDisabled, necessityIndicator, validationState, errorText, helpText, successText, isRequired, icon, prefix, showClearButton, onClearButtonClick, isLoading, suffix, autoFocus, keyboardReturnKeyType, autoCompleteSuggestionType, }: TextInputProps) => ReactElement;
|
|
1884
1915
|
|
|
1885
1916
|
declare type PasswordInputExtraProps = {
|
|
1886
1917
|
/**
|
|
@@ -1915,7 +1946,7 @@ declare type PasswordInputExtraProps = {
|
|
|
1915
1946
|
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;
|
|
1916
1947
|
declare const PasswordInput: ({ label, labelPosition, showRevealButton, maxCharacters, validationState, errorText, successText, helpText, isDisabled, defaultValue, placeholder, isRequired, necessityIndicator, value, onChange, onFocus, onBlur, name, autoFocus, keyboardReturnKeyType, autoCompleteSuggestionType, }: PasswordInputProps) => ReactElement;
|
|
1917
1948
|
|
|
1918
|
-
declare type TextAreaProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'necessityIndicator' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'placeholder' | 'defaultValue' | 'name' | 'onChange' | 'onBlur' | 'value' | 'isDisabled' | 'isRequired' | 'maxCharacters' | 'autoFocus' | 'numberOfLines'> & {
|
|
1949
|
+
declare type TextAreaProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'necessityIndicator' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'placeholder' | 'defaultValue' | 'name' | 'onChange' | 'onFocus' | 'onBlur' | 'value' | 'isDisabled' | 'isRequired' | 'maxCharacters' | 'autoFocus' | 'numberOfLines'> & {
|
|
1919
1950
|
/**
|
|
1920
1951
|
* Decides whether to render a clear icon button
|
|
1921
1952
|
*/
|
|
@@ -1925,7 +1956,7 @@ declare type TextAreaProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'n
|
|
|
1925
1956
|
*/
|
|
1926
1957
|
onClearButtonClick?: () => void;
|
|
1927
1958
|
};
|
|
1928
|
-
declare const TextArea: ({ label, labelPosition, necessityIndicator, errorText, helpText, successText, validationState, defaultValue, isDisabled, isRequired, name,
|
|
1959
|
+
declare const TextArea: ({ label, labelPosition, necessityIndicator, errorText, helpText, successText, validationState, defaultValue, isDisabled, isRequired, name, onChange, onFocus, onBlur, placeholder, value, maxCharacters, showClearButton, onClearButtonClick, autoFocus, numberOfLines, }: TextAreaProps) => React__default.ReactElement;
|
|
1929
1960
|
|
|
1930
1961
|
declare type OTPInputProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'validationState' | 'helpText' | 'errorText' | 'successText' | 'name' | 'onChange' | 'value' | 'isDisabled' | 'autoFocus' | 'keyboardReturnKeyType' | 'keyboardType' | 'placeholder'> & {
|
|
1931
1962
|
/**
|
|
@@ -2313,7 +2344,7 @@ declare type TextCommonProps = {
|
|
|
2313
2344
|
declare type TextVariant = 'body' | 'caption';
|
|
2314
2345
|
declare type TextBodyVariant = TextCommonProps & {
|
|
2315
2346
|
variant?: Extract<TextVariant, 'body'>;
|
|
2316
|
-
size?: 'small' | 'medium';
|
|
2347
|
+
size?: 'xsmall' | 'small' | 'medium';
|
|
2317
2348
|
};
|
|
2318
2349
|
declare type TextCaptionVariant = TextCommonProps & {
|
|
2319
2350
|
variant?: Extract<TextVariant, 'caption'>;
|
|
@@ -2381,4 +2412,4 @@ declare const VisuallyHidden: ({ children }: VisuallyHiddenProps) => JSX.Element
|
|
|
2381
2412
|
|
|
2382
2413
|
declare const screenReaderStyles: CSSObject;
|
|
2383
2414
|
|
|
2384
|
-
export { Alert, AlertTriangleIcon as AlertOctagonIcon, AlertProps, AlertTriangleIcon$1 as AlertTriangleIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowUpRightIcon, Badge, BadgeProps, BladeProvider, BladeProviderProps, Button, ButtonProps, Card, CardBody, CardFooter, CardFooterAction, CardFooterLeading, CardFooterTrailing, CardHeader, CardHeaderBadge, CardHeaderCounter, CardHeaderIcon, CardHeaderIconButton, CardHeaderLeading, CardHeaderLink, CardHeaderText, CardHeaderTrailing, CardProps, CheckCircleIcon, CheckIcon, Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxProps, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, Code, CodeProps, Counter, CounterProps, CreditCardIcon, DollarIcon, DownloadIcon, EditIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FileTextIcon, Heading, HeadingProps, HelpCircleIcon, HistoryIcon, HomeIcon, IconButton, IconButtonProps, IconComponent, IconProps, IconSize, Indicator, IndicatorProps, InfoIcon, Link, LinkIcon, LinkProps, LockIcon, MailIcon, MinusIcon, OTPInput, OTPInputProps, PasswordInput, PasswordInputProps, PauseIcon, PlusIcon, ProgressBar, ProgressBarProps, ProgressBarVariant, Radio, RadioGroup, RadioGroupProps, RadioProps, RefreshLeftIcon, RotateCounterClockWiseIcon, RupeeIcon, SearchIcon, SettingsIcon, SkipNavContent, SkipNavLink, SlashIcon, Spinner, SpinnerProps, Text, TextArea, TextAreaProps, TextInput, TextInputProps, TextProps, TextVariant, Theme, Title, TitleProps, TrashIcon, TrendingDownIcon, TrendingUpIcon, UsersIcon, VisuallyHidden, VisuallyHiddenProps, announce, clearAnnouncer, destroyAnnouncer, getTextProps, screenReaderStyles, useTheme };
|
|
2415
|
+
export { Alert, AlertTriangleIcon as AlertOctagonIcon, AlertProps, AlertTriangleIcon$1 as AlertTriangleIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowUpRightIcon, Badge, BadgeProps, BankIcon, BladeProvider, BladeProviderProps, BookIcon, Button, ButtonProps, Card, CardBody, CardFooter, CardFooterAction, CardFooterLeading, CardFooterTrailing, CardHeader, CardHeaderBadge, CardHeaderCounter, CardHeaderIcon, CardHeaderIconButton, CardHeaderLeading, CardHeaderLink, CardHeaderText, CardHeaderTrailing, CardProps, CheckCircleIcon, CheckIcon, Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxProps, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ClockIcon, CloseIcon, Code, CodeProps, ComponentIds, Counter, CounterProps, CreditCardIcon, DollarIcon, DownloadIcon, EditIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FileTextIcon, Heading, HeadingProps, HelpCircleIcon, HistoryIcon, HomeIcon, IconButton, IconButtonProps, IconComponent, IconProps, IconSize, Indicator, IndicatorProps, InfoIcon, Link, LinkIcon, LinkProps, LockIcon, MailIcon, MinusIcon, OTPInput, OTPInputProps, PasswordInput, PasswordInputProps, PauseIcon, PlusIcon, ProgressBar, ProgressBarProps, ProgressBarVariant, Radio, RadioGroup, RadioGroupProps, RadioProps, RefreshLeftIcon, RotateCounterClockWiseIcon, RupeeIcon, SearchIcon, SettingsIcon, SettlementsIcon, ShuffleIcon, SkipNavContent, SkipNavLink, SlashIcon, Spinner, SpinnerProps, TagIcon, Text, TextArea, TextAreaProps, TextInput, TextInputProps, TextProps, TextVariant, Theme, Title, TitleProps, TransactionsIcon, TrashIcon, TrendingDownIcon, TrendingUpIcon, UserIcon, UsersIcon, VisuallyHidden, VisuallyHiddenProps, announce, clearAnnouncer, destroyAnnouncer, getTextProps, screenReaderStyles, useTheme };
|