@razorpay/blade 8.10.0 → 8.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/components/index.d.ts +118 -96
- package/build/components/index.native.d.ts +56 -34
- package/build/components/index.native.js +8 -6
- package/build/components/index.native.js.map +1 -1
- package/build/components/index.web.js +179 -113
- 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/utils/index.d.ts +4 -1
- package/build/utils/index.native.d.ts +4 -1
- package/build/utils/index.native.js +3 -1
- package/build/utils/index.native.js.map +1 -1
- package/build/utils/index.web.js +14 -1
- package/build/utils/index.web.js.map +1 -1
- package/package.json +3 -3
|
@@ -2330,6 +2330,14 @@ declare const Box: React__default.ForwardRefExoticComponent<Partial<PaddingProps
|
|
|
2330
2330
|
readonly l?: csstype.Property.Display | undefined;
|
|
2331
2331
|
readonly xl?: csstype.Property.Display | undefined;
|
|
2332
2332
|
} | undefined;
|
|
2333
|
+
overflow?: csstype.Property.Overflow | {
|
|
2334
|
+
readonly base?: csstype.Property.Overflow | undefined;
|
|
2335
|
+
readonly xs?: csstype.Property.Overflow | undefined;
|
|
2336
|
+
readonly s?: csstype.Property.Overflow | undefined;
|
|
2337
|
+
readonly m?: csstype.Property.Overflow | undefined;
|
|
2338
|
+
readonly l?: csstype.Property.Overflow | undefined;
|
|
2339
|
+
readonly xl?: csstype.Property.Overflow | undefined;
|
|
2340
|
+
} | undefined;
|
|
2333
2341
|
height: SpacingValueType | {
|
|
2334
2342
|
readonly base?: SpacingValueType | undefined;
|
|
2335
2343
|
readonly xs?: SpacingValueType | undefined;
|
|
@@ -2394,14 +2402,6 @@ declare const Box: React__default.ForwardRefExoticComponent<Partial<PaddingProps
|
|
|
2394
2402
|
readonly l?: csstype.Property.TextAlign | undefined;
|
|
2395
2403
|
readonly xl?: csstype.Property.TextAlign | undefined;
|
|
2396
2404
|
} | undefined;
|
|
2397
|
-
overflow?: csstype.Property.Overflow | {
|
|
2398
|
-
readonly base?: csstype.Property.Overflow | undefined;
|
|
2399
|
-
readonly xs?: csstype.Property.Overflow | undefined;
|
|
2400
|
-
readonly s?: csstype.Property.Overflow | undefined;
|
|
2401
|
-
readonly m?: csstype.Property.Overflow | undefined;
|
|
2402
|
-
readonly l?: csstype.Property.Overflow | undefined;
|
|
2403
|
-
readonly xl?: csstype.Property.Overflow | undefined;
|
|
2404
|
-
} | undefined;
|
|
2405
2405
|
__brand__?: "platform-web" | {
|
|
2406
2406
|
readonly base?: "platform-web" | undefined;
|
|
2407
2407
|
readonly xs?: "platform-web" | undefined;
|
|
@@ -2411,6 +2411,14 @@ declare const Box: React__default.ForwardRefExoticComponent<Partial<PaddingProps
|
|
|
2411
2411
|
readonly xl?: "platform-web" | undefined;
|
|
2412
2412
|
} | undefined;
|
|
2413
2413
|
} & {
|
|
2414
|
+
order?: csstype.Property.Order | {
|
|
2415
|
+
readonly base?: csstype.Property.Order | undefined;
|
|
2416
|
+
readonly xs?: csstype.Property.Order | undefined;
|
|
2417
|
+
readonly s?: csstype.Property.Order | undefined;
|
|
2418
|
+
readonly m?: csstype.Property.Order | undefined;
|
|
2419
|
+
readonly l?: csstype.Property.Order | undefined;
|
|
2420
|
+
readonly xl?: csstype.Property.Order | undefined;
|
|
2421
|
+
} | undefined;
|
|
2414
2422
|
alignContent?: csstype.Property.AlignContent | {
|
|
2415
2423
|
readonly base?: csstype.Property.AlignContent | undefined;
|
|
2416
2424
|
readonly xs?: csstype.Property.AlignContent | undefined;
|
|
@@ -2507,14 +2515,6 @@ declare const Box: React__default.ForwardRefExoticComponent<Partial<PaddingProps
|
|
|
2507
2515
|
readonly l?: csstype.Property.JustifySelf | undefined;
|
|
2508
2516
|
readonly xl?: csstype.Property.JustifySelf | undefined;
|
|
2509
2517
|
} | undefined;
|
|
2510
|
-
order?: csstype.Property.Order | {
|
|
2511
|
-
readonly base?: csstype.Property.Order | undefined;
|
|
2512
|
-
readonly xs?: csstype.Property.Order | undefined;
|
|
2513
|
-
readonly s?: csstype.Property.Order | undefined;
|
|
2514
|
-
readonly m?: csstype.Property.Order | undefined;
|
|
2515
|
-
readonly l?: csstype.Property.Order | undefined;
|
|
2516
|
-
readonly xl?: csstype.Property.Order | undefined;
|
|
2517
|
-
} | undefined;
|
|
2518
2518
|
rowGap: SpacingValueType | {
|
|
2519
2519
|
readonly base?: SpacingValueType | undefined;
|
|
2520
2520
|
readonly xs?: SpacingValueType | undefined;
|
|
@@ -3094,6 +3094,21 @@ type BadgeTextColors$1 = `badge.text.${DotNotationColorStringToken<
|
|
|
3094
3094
|
Theme$1['colors']['badge']['text']
|
|
3095
3095
|
>}`;
|
|
3096
3096
|
|
|
3097
|
+
type As$1 =
|
|
3098
|
+
| 'code'
|
|
3099
|
+
| 'h1'
|
|
3100
|
+
| 'h2'
|
|
3101
|
+
| 'h3'
|
|
3102
|
+
| 'h4'
|
|
3103
|
+
| 'h5'
|
|
3104
|
+
| 'h6'
|
|
3105
|
+
| 'p'
|
|
3106
|
+
| 'span'
|
|
3107
|
+
| 'abbr'
|
|
3108
|
+
| 'q'
|
|
3109
|
+
| 'cite'
|
|
3110
|
+
| 'figcaption'
|
|
3111
|
+
| 'div';
|
|
3097
3112
|
type BaseTextProps$1 = {
|
|
3098
3113
|
id?: string;
|
|
3099
3114
|
color?: ActionColors$1 | FeedbackColors$1 | SurfaceColors$1 | FeedbackActionColors$1 | BadgeTextColors$1;
|
|
@@ -3106,7 +3121,7 @@ type BaseTextProps$1 = {
|
|
|
3106
3121
|
/**
|
|
3107
3122
|
* Web only
|
|
3108
3123
|
*/
|
|
3109
|
-
as?:
|
|
3124
|
+
as?: As$1;
|
|
3110
3125
|
textAlign?: 'center' | 'justify' | 'left' | 'right';
|
|
3111
3126
|
truncateAfterLines?: number;
|
|
3112
3127
|
className?: string;
|
|
@@ -3124,11 +3139,13 @@ type BaseTextProps$1 = {
|
|
|
3124
3139
|
/* eslint-disable @typescript-eslint/no-unnecessary-type-assertion */
|
|
3125
3140
|
|
|
3126
3141
|
|
|
3142
|
+
declare const validAsValues$3 = ['p', 'span', 'div', 'abbr', 'figcaption', 'cite', 'q'] as const;
|
|
3127
3143
|
type TextCommonProps$1 = {
|
|
3144
|
+
as?: typeof validAsValues$3[number];
|
|
3128
3145
|
type?: TextTypes;
|
|
3129
3146
|
contrast?: ColorContrastTypes;
|
|
3130
3147
|
truncateAfterLines?: number;
|
|
3131
|
-
children:
|
|
3148
|
+
children: React__default.ReactNode;
|
|
3132
3149
|
weight?: keyof Theme$1['typography']['fonts']['weight'];
|
|
3133
3150
|
/**
|
|
3134
3151
|
* Overrides the color of the Text component.
|
|
@@ -3440,6 +3457,14 @@ declare const Checkbox: React__default.ForwardRefExoticComponent<{
|
|
|
3440
3457
|
*/
|
|
3441
3458
|
tabIndex?: number | undefined;
|
|
3442
3459
|
} & TestID$1 & Partial<Omit<MarginProps & Pick<{
|
|
3460
|
+
order?: csstype.Property.Order | {
|
|
3461
|
+
readonly base?: csstype.Property.Order | undefined;
|
|
3462
|
+
readonly xs?: csstype.Property.Order | undefined;
|
|
3463
|
+
readonly s?: csstype.Property.Order | undefined;
|
|
3464
|
+
readonly m?: csstype.Property.Order | undefined;
|
|
3465
|
+
readonly l?: csstype.Property.Order | undefined;
|
|
3466
|
+
readonly xl?: csstype.Property.Order | undefined;
|
|
3467
|
+
} | undefined;
|
|
3443
3468
|
alignContent?: csstype.Property.AlignContent | {
|
|
3444
3469
|
readonly base?: csstype.Property.AlignContent | undefined;
|
|
3445
3470
|
readonly xs?: csstype.Property.AlignContent | undefined;
|
|
@@ -3536,14 +3561,6 @@ declare const Checkbox: React__default.ForwardRefExoticComponent<{
|
|
|
3536
3561
|
readonly l?: csstype.Property.JustifySelf | undefined;
|
|
3537
3562
|
readonly xl?: csstype.Property.JustifySelf | undefined;
|
|
3538
3563
|
} | undefined;
|
|
3539
|
-
order?: csstype.Property.Order | {
|
|
3540
|
-
readonly base?: csstype.Property.Order | undefined;
|
|
3541
|
-
readonly xs?: csstype.Property.Order | undefined;
|
|
3542
|
-
readonly s?: csstype.Property.Order | undefined;
|
|
3543
|
-
readonly m?: csstype.Property.Order | undefined;
|
|
3544
|
-
readonly l?: csstype.Property.Order | undefined;
|
|
3545
|
-
readonly xl?: csstype.Property.Order | undefined;
|
|
3546
|
-
} | undefined;
|
|
3547
3564
|
rowGap: SpacingValueType | {
|
|
3548
3565
|
readonly base?: SpacingValueType | undefined;
|
|
3549
3566
|
readonly xs?: SpacingValueType | undefined;
|
|
@@ -3584,7 +3601,7 @@ declare const Checkbox: React__default.ForwardRefExoticComponent<{
|
|
|
3584
3601
|
readonly l?: "platform-web" | undefined;
|
|
3585
3602
|
readonly xl?: "platform-web" | undefined;
|
|
3586
3603
|
} | undefined;
|
|
3587
|
-
}, "
|
|
3604
|
+
}, "order" | "alignSelf" | "justifySelf" | "placeSelf"> & {
|
|
3588
3605
|
bottom: SpacingValueType | {
|
|
3589
3606
|
readonly base?: SpacingValueType | undefined;
|
|
3590
3607
|
readonly xs?: SpacingValueType | undefined;
|
|
@@ -4774,6 +4791,14 @@ declare const TextInput: React__default.ForwardRefExoticComponent<Pick<BaseInput
|
|
|
4774
4791
|
*/
|
|
4775
4792
|
type?: Type;
|
|
4776
4793
|
} & Partial<Omit<MarginProps & Pick<{
|
|
4794
|
+
order?: csstype.Property.Order | {
|
|
4795
|
+
readonly base?: csstype.Property.Order | undefined;
|
|
4796
|
+
readonly xs?: csstype.Property.Order | undefined;
|
|
4797
|
+
readonly s?: csstype.Property.Order | undefined;
|
|
4798
|
+
readonly m?: csstype.Property.Order | undefined;
|
|
4799
|
+
readonly l?: csstype.Property.Order | undefined;
|
|
4800
|
+
readonly xl?: csstype.Property.Order | undefined;
|
|
4801
|
+
} | undefined;
|
|
4777
4802
|
alignContent?: csstype.Property.AlignContent | {
|
|
4778
4803
|
readonly base?: csstype.Property.AlignContent | undefined;
|
|
4779
4804
|
readonly xs?: csstype.Property.AlignContent | undefined;
|
|
@@ -4870,14 +4895,6 @@ declare const TextInput: React__default.ForwardRefExoticComponent<Pick<BaseInput
|
|
|
4870
4895
|
readonly l?: csstype.Property.JustifySelf | undefined;
|
|
4871
4896
|
readonly xl?: csstype.Property.JustifySelf | undefined;
|
|
4872
4897
|
} | undefined;
|
|
4873
|
-
order?: csstype.Property.Order | {
|
|
4874
|
-
readonly base?: csstype.Property.Order | undefined;
|
|
4875
|
-
readonly xs?: csstype.Property.Order | undefined;
|
|
4876
|
-
readonly s?: csstype.Property.Order | undefined;
|
|
4877
|
-
readonly m?: csstype.Property.Order | undefined;
|
|
4878
|
-
readonly l?: csstype.Property.Order | undefined;
|
|
4879
|
-
readonly xl?: csstype.Property.Order | undefined;
|
|
4880
|
-
} | undefined;
|
|
4881
4898
|
rowGap: SpacingValueType | {
|
|
4882
4899
|
readonly base?: SpacingValueType | undefined;
|
|
4883
4900
|
readonly xs?: SpacingValueType | undefined;
|
|
@@ -4918,7 +4935,7 @@ declare const TextInput: React__default.ForwardRefExoticComponent<Pick<BaseInput
|
|
|
4918
4935
|
readonly l?: "platform-web" | undefined;
|
|
4919
4936
|
readonly xl?: "platform-web" | undefined;
|
|
4920
4937
|
} | undefined;
|
|
4921
|
-
}, "
|
|
4938
|
+
}, "order" | "alignSelf" | "justifySelf" | "placeSelf"> & {
|
|
4922
4939
|
bottom: SpacingValueType | {
|
|
4923
4940
|
readonly base?: SpacingValueType | undefined;
|
|
4924
4941
|
readonly xs?: SpacingValueType | undefined;
|
|
@@ -5138,6 +5155,14 @@ declare type PasswordInputExtraProps = {
|
|
|
5138
5155
|
};
|
|
5139
5156
|
declare type PasswordInputProps = Pick<BaseInputProps, 'label' | 'labelPosition' | 'maxCharacters' | 'validationState' | 'errorText' | 'successText' | 'helpText' | 'isDisabled' | 'defaultValue' | 'placeholder' | 'isRequired' | 'value' | 'onChange' | 'onBlur' | 'onSubmit' | 'onFocus' | 'name' | 'autoFocus' | 'keyboardReturnKeyType' | 'autoCompleteSuggestionType' | 'testID'> & PasswordInputExtraProps & StyledPropsBlade;
|
|
5140
5157
|
declare const PasswordInput: React__default.ForwardRefExoticComponent<Pick<BaseInputProps, "name" | "testID" | "placeholder" | "label" | "value" | "onBlur" | "onFocus" | "defaultValue" | "onChange" | "onSubmit" | "autoFocus" | "isDisabled" | "labelPosition" | "validationState" | "helpText" | "errorText" | "successText" | "isRequired" | "maxCharacters" | "keyboardReturnKeyType" | "autoCompleteSuggestionType"> & PasswordInputExtraProps & Partial<Omit<MarginProps & Pick<{
|
|
5158
|
+
order?: csstype.Property.Order | {
|
|
5159
|
+
readonly base?: csstype.Property.Order | undefined;
|
|
5160
|
+
readonly xs?: csstype.Property.Order | undefined;
|
|
5161
|
+
readonly s?: csstype.Property.Order | undefined;
|
|
5162
|
+
readonly m?: csstype.Property.Order | undefined;
|
|
5163
|
+
readonly l?: csstype.Property.Order | undefined;
|
|
5164
|
+
readonly xl?: csstype.Property.Order | undefined;
|
|
5165
|
+
} | undefined;
|
|
5141
5166
|
alignContent?: csstype.Property.AlignContent | {
|
|
5142
5167
|
readonly base?: csstype.Property.AlignContent | undefined;
|
|
5143
5168
|
readonly xs?: csstype.Property.AlignContent | undefined;
|
|
@@ -5234,14 +5259,6 @@ declare const PasswordInput: React__default.ForwardRefExoticComponent<Pick<BaseI
|
|
|
5234
5259
|
readonly l?: csstype.Property.JustifySelf | undefined;
|
|
5235
5260
|
readonly xl?: csstype.Property.JustifySelf | undefined;
|
|
5236
5261
|
} | undefined;
|
|
5237
|
-
order?: csstype.Property.Order | {
|
|
5238
|
-
readonly base?: csstype.Property.Order | undefined;
|
|
5239
|
-
readonly xs?: csstype.Property.Order | undefined;
|
|
5240
|
-
readonly s?: csstype.Property.Order | undefined;
|
|
5241
|
-
readonly m?: csstype.Property.Order | undefined;
|
|
5242
|
-
readonly l?: csstype.Property.Order | undefined;
|
|
5243
|
-
readonly xl?: csstype.Property.Order | undefined;
|
|
5244
|
-
} | undefined;
|
|
5245
5262
|
rowGap: SpacingValueType | {
|
|
5246
5263
|
readonly base?: SpacingValueType | undefined;
|
|
5247
5264
|
readonly xs?: SpacingValueType | undefined;
|
|
@@ -5282,7 +5299,7 @@ declare const PasswordInput: React__default.ForwardRefExoticComponent<Pick<BaseI
|
|
|
5282
5299
|
readonly l?: "platform-web" | undefined;
|
|
5283
5300
|
readonly xl?: "platform-web" | undefined;
|
|
5284
5301
|
} | undefined;
|
|
5285
|
-
}, "
|
|
5302
|
+
}, "order" | "alignSelf" | "justifySelf" | "placeSelf"> & {
|
|
5286
5303
|
bottom: SpacingValueType | {
|
|
5287
5304
|
readonly base?: SpacingValueType | undefined;
|
|
5288
5305
|
readonly xs?: SpacingValueType | undefined;
|
|
@@ -5490,6 +5507,14 @@ declare const TextArea: React__default.ForwardRefExoticComponent<Pick<BaseInputP
|
|
|
5490
5507
|
*/
|
|
5491
5508
|
onClearButtonClick?: (() => void) | undefined;
|
|
5492
5509
|
} & Partial<Omit<MarginProps & Pick<{
|
|
5510
|
+
order?: csstype.Property.Order | {
|
|
5511
|
+
readonly base?: csstype.Property.Order | undefined;
|
|
5512
|
+
readonly xs?: csstype.Property.Order | undefined;
|
|
5513
|
+
readonly s?: csstype.Property.Order | undefined;
|
|
5514
|
+
readonly m?: csstype.Property.Order | undefined;
|
|
5515
|
+
readonly l?: csstype.Property.Order | undefined;
|
|
5516
|
+
readonly xl?: csstype.Property.Order | undefined;
|
|
5517
|
+
} | undefined;
|
|
5493
5518
|
alignContent?: csstype.Property.AlignContent | {
|
|
5494
5519
|
readonly base?: csstype.Property.AlignContent | undefined;
|
|
5495
5520
|
readonly xs?: csstype.Property.AlignContent | undefined;
|
|
@@ -5586,14 +5611,6 @@ declare const TextArea: React__default.ForwardRefExoticComponent<Pick<BaseInputP
|
|
|
5586
5611
|
readonly l?: csstype.Property.JustifySelf | undefined;
|
|
5587
5612
|
readonly xl?: csstype.Property.JustifySelf | undefined;
|
|
5588
5613
|
} | undefined;
|
|
5589
|
-
order?: csstype.Property.Order | {
|
|
5590
|
-
readonly base?: csstype.Property.Order | undefined;
|
|
5591
|
-
readonly xs?: csstype.Property.Order | undefined;
|
|
5592
|
-
readonly s?: csstype.Property.Order | undefined;
|
|
5593
|
-
readonly m?: csstype.Property.Order | undefined;
|
|
5594
|
-
readonly l?: csstype.Property.Order | undefined;
|
|
5595
|
-
readonly xl?: csstype.Property.Order | undefined;
|
|
5596
|
-
} | undefined;
|
|
5597
5614
|
rowGap: SpacingValueType | {
|
|
5598
5615
|
readonly base?: SpacingValueType | undefined;
|
|
5599
5616
|
readonly xs?: SpacingValueType | undefined;
|
|
@@ -5634,7 +5651,7 @@ declare const TextArea: React__default.ForwardRefExoticComponent<Pick<BaseInputP
|
|
|
5634
5651
|
readonly l?: "platform-web" | undefined;
|
|
5635
5652
|
readonly xl?: "platform-web" | undefined;
|
|
5636
5653
|
} | undefined;
|
|
5637
|
-
}, "
|
|
5654
|
+
}, "order" | "alignSelf" | "justifySelf" | "placeSelf"> & {
|
|
5638
5655
|
bottom: SpacingValueType | {
|
|
5639
5656
|
readonly base?: SpacingValueType | undefined;
|
|
5640
5657
|
readonly xs?: SpacingValueType | undefined;
|
|
@@ -6036,6 +6053,7 @@ declare type FeedbackActionColors = `feedback.${Feedback}.action.text.${DotNotat
|
|
|
6036
6053
|
declare type SurfaceColors = `surface.text.${DotNotationColorStringToken<Theme$1['colors']['surface']['text']>}`;
|
|
6037
6054
|
declare type ActionColors = `action.text.${DotNotationColorStringToken<Theme$1['colors']['action']['text']>}`;
|
|
6038
6055
|
declare type BadgeTextColors = `badge.text.${DotNotationColorStringToken<Theme$1['colors']['badge']['text']>}`;
|
|
6056
|
+
declare type As = 'code' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'abbr' | 'q' | 'cite' | 'figcaption' | 'div';
|
|
6039
6057
|
declare type BaseTextProps = {
|
|
6040
6058
|
id?: string;
|
|
6041
6059
|
color?: ActionColors | FeedbackColors | SurfaceColors | FeedbackActionColors | BadgeTextColors;
|
|
@@ -6048,7 +6066,7 @@ declare type BaseTextProps = {
|
|
|
6048
6066
|
/**
|
|
6049
6067
|
* Web only
|
|
6050
6068
|
*/
|
|
6051
|
-
as?:
|
|
6069
|
+
as?: As;
|
|
6052
6070
|
textAlign?: 'center' | 'justify' | 'left' | 'right';
|
|
6053
6071
|
truncateAfterLines?: number;
|
|
6054
6072
|
className?: string;
|
|
@@ -6062,7 +6080,9 @@ declare type BaseTextProps = {
|
|
|
6062
6080
|
componentName?: 'text' | 'title' | 'heading' | 'code';
|
|
6063
6081
|
} & TestID$1 & StyledPropsBlade;
|
|
6064
6082
|
|
|
6083
|
+
declare const validAsValues$2: readonly ["span", "h1", "h2", "h3", "h4", "h5", "h6"];
|
|
6065
6084
|
declare type TitleProps = {
|
|
6085
|
+
as?: typeof validAsValues$2[number];
|
|
6066
6086
|
/**
|
|
6067
6087
|
* Overrides the color of the Title component.
|
|
6068
6088
|
*
|
|
@@ -6073,12 +6093,15 @@ declare type TitleProps = {
|
|
|
6073
6093
|
contrast?: ColorContrastTypes;
|
|
6074
6094
|
type?: TextTypes;
|
|
6075
6095
|
children: StringChildrenType;
|
|
6096
|
+
textAlign?: BaseTextProps['textAlign'];
|
|
6076
6097
|
} & TestID$1 & StyledPropsBlade;
|
|
6077
|
-
declare const Title: ({ size, type, contrast, color, children, testID, ...styledProps }: TitleProps) => ReactElement;
|
|
6098
|
+
declare const Title: ({ as, size, type, contrast, color, children, testID, textAlign, ...styledProps }: TitleProps) => ReactElement;
|
|
6078
6099
|
|
|
6079
6100
|
declare type HeadingVariant = 'regular' | 'subheading';
|
|
6080
6101
|
declare type HeadingSize = 'small' | 'medium' | 'large';
|
|
6102
|
+
declare const validAsValues$1: readonly ["span", "h1", "h2", "h3", "h4", "h5", "h6"];
|
|
6081
6103
|
declare type HeadingCommonProps = {
|
|
6104
|
+
as?: typeof validAsValues$1[number];
|
|
6082
6105
|
/**
|
|
6083
6106
|
* Overrides the color of the Heading component.
|
|
6084
6107
|
*
|
|
@@ -6116,13 +6139,15 @@ declare type HeadingProps<T> = T extends {
|
|
|
6116
6139
|
} ? Variant extends Exclude<HeadingVariant, 'subheading'> ? HeadingNormalVariant : Variant extends 'subheading' ? HeadingSubHeadingVariant : T : T;
|
|
6117
6140
|
declare const Heading: <T extends {
|
|
6118
6141
|
variant: HeadingVariant;
|
|
6119
|
-
}>({ variant, size, type, weight, contrast, color, children, testID, textAlign, ...styledProps }: HeadingProps<T>) => ReactElement;
|
|
6142
|
+
}>({ as, variant, size, type, weight, contrast, color, children, testID, textAlign, ...styledProps }: HeadingProps<T>) => ReactElement;
|
|
6120
6143
|
|
|
6144
|
+
declare const validAsValues: readonly ["p", "span", "div", "abbr", "figcaption", "cite", "q"];
|
|
6121
6145
|
declare type TextCommonProps = {
|
|
6146
|
+
as?: typeof validAsValues[number];
|
|
6122
6147
|
type?: TextTypes;
|
|
6123
6148
|
contrast?: ColorContrastTypes;
|
|
6124
6149
|
truncateAfterLines?: number;
|
|
6125
|
-
children:
|
|
6150
|
+
children: React__default.ReactNode;
|
|
6126
6151
|
weight?: keyof Theme$1['typography']['fonts']['weight'];
|
|
6127
6152
|
/**
|
|
6128
6153
|
* Overrides the color of the Text component.
|
|
@@ -6148,10 +6173,7 @@ declare type TextCaptionVariant = TextCommonProps & {
|
|
|
6148
6173
|
declare type TextProps<T> = T extends {
|
|
6149
6174
|
variant: infer Variant;
|
|
6150
6175
|
} ? Variant extends 'caption' ? TextCaptionVariant : Variant extends 'body' ? TextBodyVariant : T : T;
|
|
6151
|
-
declare type
|
|
6152
|
-
forwardedAs?: BaseTextProps['as'];
|
|
6153
|
-
};
|
|
6154
|
-
declare type GetTextPropsReturn = Omit<BaseTextProps, 'children'> & TextForwardedAs;
|
|
6176
|
+
declare type GetTextPropsReturn = Omit<BaseTextProps, 'children'>;
|
|
6155
6177
|
declare type GetTextProps<T extends {
|
|
6156
6178
|
variant: TextVariant;
|
|
6157
6179
|
}> = Pick<TextProps<T>, 'type' | 'variant' | 'weight' | 'size' | 'contrast' | 'color' | 'testID' | 'textAlign'>;
|
|
@@ -6160,7 +6182,7 @@ declare const getTextProps: <T extends {
|
|
|
6160
6182
|
}>({ variant, type, weight, size, color, contrast, testID, textAlign, }: GetTextProps<T>) => GetTextPropsReturn;
|
|
6161
6183
|
declare const Text: <T extends {
|
|
6162
6184
|
variant: TextVariant;
|
|
6163
|
-
}>({ variant, weight, size, type, contrast, truncateAfterLines, children, color, testID, textAlign, ...styledProps }: TextProps<T>) => ReactElement;
|
|
6185
|
+
}>({ as, variant, weight, size, type, contrast, truncateAfterLines, children, color, testID, textAlign, ...styledProps }: TextProps<T>) => ReactElement;
|
|
6164
6186
|
|
|
6165
6187
|
declare type CodeCommonProps = {
|
|
6166
6188
|
/**
|
|
@@ -6468,6 +6490,14 @@ declare const Radio: React__default.ForwardRefExoticComponent<{
|
|
|
6468
6490
|
*/
|
|
6469
6491
|
size?: "small" | "medium" | undefined;
|
|
6470
6492
|
} & TestID$1 & Partial<Omit<MarginProps & Pick<{
|
|
6493
|
+
order?: csstype.Property.Order | {
|
|
6494
|
+
readonly base?: csstype.Property.Order | undefined;
|
|
6495
|
+
readonly xs?: csstype.Property.Order | undefined;
|
|
6496
|
+
readonly s?: csstype.Property.Order | undefined;
|
|
6497
|
+
readonly m?: csstype.Property.Order | undefined;
|
|
6498
|
+
readonly l?: csstype.Property.Order | undefined;
|
|
6499
|
+
readonly xl?: csstype.Property.Order | undefined;
|
|
6500
|
+
} | undefined;
|
|
6471
6501
|
alignContent?: csstype.Property.AlignContent | {
|
|
6472
6502
|
readonly base?: csstype.Property.AlignContent | undefined;
|
|
6473
6503
|
readonly xs?: csstype.Property.AlignContent | undefined;
|
|
@@ -6564,14 +6594,6 @@ declare const Radio: React__default.ForwardRefExoticComponent<{
|
|
|
6564
6594
|
readonly l?: csstype.Property.JustifySelf | undefined;
|
|
6565
6595
|
readonly xl?: csstype.Property.JustifySelf | undefined;
|
|
6566
6596
|
} | undefined;
|
|
6567
|
-
order?: csstype.Property.Order | {
|
|
6568
|
-
readonly base?: csstype.Property.Order | undefined;
|
|
6569
|
-
readonly xs?: csstype.Property.Order | undefined;
|
|
6570
|
-
readonly s?: csstype.Property.Order | undefined;
|
|
6571
|
-
readonly m?: csstype.Property.Order | undefined;
|
|
6572
|
-
readonly l?: csstype.Property.Order | undefined;
|
|
6573
|
-
readonly xl?: csstype.Property.Order | undefined;
|
|
6574
|
-
} | undefined;
|
|
6575
6597
|
rowGap: SpacingValueType | {
|
|
6576
6598
|
readonly base?: SpacingValueType | undefined;
|
|
6577
6599
|
readonly xs?: SpacingValueType | undefined;
|
|
@@ -6612,7 +6634,7 @@ declare const Radio: React__default.ForwardRefExoticComponent<{
|
|
|
6612
6634
|
readonly l?: "platform-web" | undefined;
|
|
6613
6635
|
readonly xl?: "platform-web" | undefined;
|
|
6614
6636
|
} | undefined;
|
|
6615
|
-
}, "
|
|
6637
|
+
}, "order" | "alignSelf" | "justifySelf" | "placeSelf"> & {
|
|
6616
6638
|
bottom: SpacingValueType | {
|
|
6617
6639
|
readonly base?: SpacingValueType | undefined;
|
|
6618
6640
|
readonly xs?: SpacingValueType | undefined;
|
|
@@ -7269,6 +7291,14 @@ declare const TooltipInteractiveWrapper: styled_components.StyledComponent<"div"
|
|
|
7269
7291
|
readonly l?: csstype.Property.Display | undefined;
|
|
7270
7292
|
readonly xl?: csstype.Property.Display | undefined;
|
|
7271
7293
|
} | undefined;
|
|
7294
|
+
overflow?: csstype.Property.Overflow | {
|
|
7295
|
+
readonly base?: csstype.Property.Overflow | undefined;
|
|
7296
|
+
readonly xs?: csstype.Property.Overflow | undefined;
|
|
7297
|
+
readonly s?: csstype.Property.Overflow | undefined;
|
|
7298
|
+
readonly m?: csstype.Property.Overflow | undefined;
|
|
7299
|
+
readonly l?: csstype.Property.Overflow | undefined;
|
|
7300
|
+
readonly xl?: csstype.Property.Overflow | undefined;
|
|
7301
|
+
} | undefined;
|
|
7272
7302
|
height: SpacingValueType | {
|
|
7273
7303
|
readonly base?: SpacingValueType | undefined;
|
|
7274
7304
|
readonly xs?: SpacingValueType | undefined;
|
|
@@ -7333,14 +7363,6 @@ declare const TooltipInteractiveWrapper: styled_components.StyledComponent<"div"
|
|
|
7333
7363
|
readonly l?: csstype.Property.TextAlign | undefined;
|
|
7334
7364
|
readonly xl?: csstype.Property.TextAlign | undefined;
|
|
7335
7365
|
} | undefined;
|
|
7336
|
-
overflow?: csstype.Property.Overflow | {
|
|
7337
|
-
readonly base?: csstype.Property.Overflow | undefined;
|
|
7338
|
-
readonly xs?: csstype.Property.Overflow | undefined;
|
|
7339
|
-
readonly s?: csstype.Property.Overflow | undefined;
|
|
7340
|
-
readonly m?: csstype.Property.Overflow | undefined;
|
|
7341
|
-
readonly l?: csstype.Property.Overflow | undefined;
|
|
7342
|
-
readonly xl?: csstype.Property.Overflow | undefined;
|
|
7343
|
-
} | undefined;
|
|
7344
7366
|
__brand__?: "platform-web" | {
|
|
7345
7367
|
readonly base?: "platform-web" | undefined;
|
|
7346
7368
|
readonly xs?: "platform-web" | undefined;
|
|
@@ -7350,6 +7372,14 @@ declare const TooltipInteractiveWrapper: styled_components.StyledComponent<"div"
|
|
|
7350
7372
|
readonly xl?: "platform-web" | undefined;
|
|
7351
7373
|
} | undefined;
|
|
7352
7374
|
} & {
|
|
7375
|
+
order?: csstype.Property.Order | {
|
|
7376
|
+
readonly base?: csstype.Property.Order | undefined;
|
|
7377
|
+
readonly xs?: csstype.Property.Order | undefined;
|
|
7378
|
+
readonly s?: csstype.Property.Order | undefined;
|
|
7379
|
+
readonly m?: csstype.Property.Order | undefined;
|
|
7380
|
+
readonly l?: csstype.Property.Order | undefined;
|
|
7381
|
+
readonly xl?: csstype.Property.Order | undefined;
|
|
7382
|
+
} | undefined;
|
|
7353
7383
|
alignContent?: csstype.Property.AlignContent | {
|
|
7354
7384
|
readonly base?: csstype.Property.AlignContent | undefined;
|
|
7355
7385
|
readonly xs?: csstype.Property.AlignContent | undefined;
|
|
@@ -7446,14 +7476,6 @@ declare const TooltipInteractiveWrapper: styled_components.StyledComponent<"div"
|
|
|
7446
7476
|
readonly l?: csstype.Property.JustifySelf | undefined;
|
|
7447
7477
|
readonly xl?: csstype.Property.JustifySelf | undefined;
|
|
7448
7478
|
} | undefined;
|
|
7449
|
-
order?: csstype.Property.Order | {
|
|
7450
|
-
readonly base?: csstype.Property.Order | undefined;
|
|
7451
|
-
readonly xs?: csstype.Property.Order | undefined;
|
|
7452
|
-
readonly s?: csstype.Property.Order | undefined;
|
|
7453
|
-
readonly m?: csstype.Property.Order | undefined;
|
|
7454
|
-
readonly l?: csstype.Property.Order | undefined;
|
|
7455
|
-
readonly xl?: csstype.Property.Order | undefined;
|
|
7456
|
-
} | undefined;
|
|
7457
7479
|
rowGap: SpacingValueType | {
|
|
7458
7480
|
readonly base?: SpacingValueType | undefined;
|
|
7459
7481
|
readonly xs?: SpacingValueType | undefined;
|
|
@@ -7716,6 +7738,14 @@ declare const TooltipInteractiveWrapper: styled_components.StyledComponent<"div"
|
|
|
7716
7738
|
readonly l?: csstype.Property.Border<string | number> | undefined;
|
|
7717
7739
|
readonly xl?: csstype.Property.Border<string | number> | undefined;
|
|
7718
7740
|
} | undefined;
|
|
7741
|
+
lineHeight: SpacingValueType | {
|
|
7742
|
+
readonly base?: SpacingValueType | undefined;
|
|
7743
|
+
readonly xs?: SpacingValueType | undefined;
|
|
7744
|
+
readonly s?: SpacingValueType | undefined;
|
|
7745
|
+
readonly m?: SpacingValueType | undefined;
|
|
7746
|
+
readonly l?: SpacingValueType | undefined;
|
|
7747
|
+
readonly xl?: SpacingValueType | undefined;
|
|
7748
|
+
};
|
|
7719
7749
|
backgroundColor: (string & Record<never, never>) | "feedback.background.neutral.lowContrast" | "feedback.background.neutral.highContrast" | "feedback.background.information.lowContrast" | "feedback.background.information.highContrast" | "feedback.background.negative.lowContrast" | "feedback.background.negative.highContrast" | "feedback.background.notice.lowContrast" | "feedback.background.notice.highContrast" | "feedback.background.positive.lowContrast" | "feedback.background.positive.highContrast" | "surface.background.level1.lowContrast" | "surface.background.level1.highContrast" | "surface.background.level2.lowContrast" | "surface.background.level2.highContrast" | "surface.background.level3.lowContrast" | "surface.background.level3.highContrast" | "action.background.primary.default" | "action.background.primary.disabled" | "action.background.primary.hover" | "action.background.primary.focus" | "action.background.primary.active" | "action.background.secondary.default" | "action.background.secondary.disabled" | "action.background.secondary.hover" | "action.background.secondary.focus" | "action.background.secondary.active" | "action.background.tertiary.default" | "action.background.tertiary.disabled" | "action.background.tertiary.hover" | "action.background.tertiary.focus" | "action.background.tertiary.active" | {
|
|
7720
7750
|
readonly base?: (string & Record<never, never>) | "feedback.background.neutral.lowContrast" | "feedback.background.neutral.highContrast" | "feedback.background.information.lowContrast" | "feedback.background.information.highContrast" | "feedback.background.negative.lowContrast" | "feedback.background.negative.highContrast" | "feedback.background.notice.lowContrast" | "feedback.background.notice.highContrast" | "feedback.background.positive.lowContrast" | "feedback.background.positive.highContrast" | "surface.background.level1.lowContrast" | "surface.background.level1.highContrast" | "surface.background.level2.lowContrast" | "surface.background.level2.highContrast" | "surface.background.level3.lowContrast" | "surface.background.level3.highContrast" | "action.background.primary.default" | "action.background.primary.disabled" | "action.background.primary.hover" | "action.background.primary.focus" | "action.background.primary.active" | "action.background.secondary.default" | "action.background.secondary.disabled" | "action.background.secondary.hover" | "action.background.secondary.focus" | "action.background.secondary.active" | "action.background.tertiary.default" | "action.background.tertiary.disabled" | "action.background.tertiary.hover" | "action.background.tertiary.focus" | "action.background.tertiary.active" | undefined;
|
|
7721
7751
|
readonly xs?: (string & Record<never, never>) | "feedback.background.neutral.lowContrast" | "feedback.background.neutral.highContrast" | "feedback.background.information.lowContrast" | "feedback.background.information.highContrast" | "feedback.background.negative.lowContrast" | "feedback.background.negative.highContrast" | "feedback.background.notice.lowContrast" | "feedback.background.notice.highContrast" | "feedback.background.positive.lowContrast" | "feedback.background.positive.highContrast" | "surface.background.level1.lowContrast" | "surface.background.level1.highContrast" | "surface.background.level2.lowContrast" | "surface.background.level2.highContrast" | "surface.background.level3.lowContrast" | "surface.background.level3.highContrast" | "action.background.primary.default" | "action.background.primary.disabled" | "action.background.primary.hover" | "action.background.primary.focus" | "action.background.primary.active" | "action.background.secondary.default" | "action.background.secondary.disabled" | "action.background.secondary.hover" | "action.background.secondary.focus" | "action.background.secondary.active" | "action.background.tertiary.default" | "action.background.tertiary.disabled" | "action.background.tertiary.hover" | "action.background.tertiary.focus" | "action.background.tertiary.active" | undefined;
|
|
@@ -7820,14 +7850,6 @@ declare const TooltipInteractiveWrapper: styled_components.StyledComponent<"div"
|
|
|
7820
7850
|
readonly l?: "none" | "thin" | "thick" | undefined;
|
|
7821
7851
|
readonly xl?: "none" | "thin" | "thick" | undefined;
|
|
7822
7852
|
};
|
|
7823
|
-
lineHeight: SpacingValueType | {
|
|
7824
|
-
readonly base?: SpacingValueType | undefined;
|
|
7825
|
-
readonly xs?: SpacingValueType | undefined;
|
|
7826
|
-
readonly s?: SpacingValueType | undefined;
|
|
7827
|
-
readonly m?: SpacingValueType | undefined;
|
|
7828
|
-
readonly l?: SpacingValueType | undefined;
|
|
7829
|
-
readonly xl?: SpacingValueType | undefined;
|
|
7830
|
-
};
|
|
7831
7853
|
opacity?: csstype.Property.Opacity | {
|
|
7832
7854
|
readonly base?: csstype.Property.Opacity | undefined;
|
|
7833
7855
|
readonly xs?: csstype.Property.Opacity | undefined;
|