@razorpay/blade 8.10.1 → 8.10.3
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 +122 -99
- package/build/components/index.native.d.ts +60 -37
- package/build/components/index.native.js +9 -6
- package/build/components/index.native.js.map +1 -1
- package/build/components/index.web.js +321 -146
- 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
|
@@ -1091,9 +1091,10 @@ type SpacingValueType$1 =
|
|
|
1091
1091
|
| DotNotationSpacingStringToken
|
|
1092
1092
|
| `${string}${SpaceUnits$1}`
|
|
1093
1093
|
| `calc(${string})`
|
|
1094
|
+
| 'auto'
|
|
1094
1095
|
| `min(${string})`
|
|
1095
1096
|
| `max(${string})`
|
|
1096
|
-
| '
|
|
1097
|
+
| 'max-content'
|
|
1097
1098
|
| 'none';
|
|
1098
1099
|
|
|
1099
1100
|
type MarginProps$1 = MakeObjectResponsive$1<{
|
|
@@ -1771,7 +1772,7 @@ declare type MakeObjectResponsive<T, K extends keyof T = Extract<keyof T, string
|
|
|
1771
1772
|
|
|
1772
1773
|
declare type ArrayOfMaxLength4<T> = readonly [T?, T?, T?, T?];
|
|
1773
1774
|
declare type SpaceUnits = 'px' | '%' | 'fr' | 'rem' | 'em' | 'vh' | 'vw';
|
|
1774
|
-
declare type SpacingValueType = DotNotationSpacingStringToken | `${string}${SpaceUnits}` | `calc(${string})` | `min(${string})` | `max(${string})` | '
|
|
1775
|
+
declare type SpacingValueType = DotNotationSpacingStringToken | `${string}${SpaceUnits}` | `calc(${string})` | 'auto' | `min(${string})` | `max(${string})` | 'max-content' | 'none';
|
|
1775
1776
|
/**
|
|
1776
1777
|
* @IMPORTANT
|
|
1777
1778
|
*
|
|
@@ -2330,6 +2331,14 @@ declare const Box: React__default.ForwardRefExoticComponent<Partial<PaddingProps
|
|
|
2330
2331
|
readonly l?: csstype.Property.Display | undefined;
|
|
2331
2332
|
readonly xl?: csstype.Property.Display | undefined;
|
|
2332
2333
|
} | undefined;
|
|
2334
|
+
overflow?: csstype.Property.Overflow | {
|
|
2335
|
+
readonly base?: csstype.Property.Overflow | undefined;
|
|
2336
|
+
readonly xs?: csstype.Property.Overflow | undefined;
|
|
2337
|
+
readonly s?: csstype.Property.Overflow | undefined;
|
|
2338
|
+
readonly m?: csstype.Property.Overflow | undefined;
|
|
2339
|
+
readonly l?: csstype.Property.Overflow | undefined;
|
|
2340
|
+
readonly xl?: csstype.Property.Overflow | undefined;
|
|
2341
|
+
} | undefined;
|
|
2333
2342
|
height: SpacingValueType | {
|
|
2334
2343
|
readonly base?: SpacingValueType | undefined;
|
|
2335
2344
|
readonly xs?: SpacingValueType | undefined;
|
|
@@ -2394,14 +2403,6 @@ declare const Box: React__default.ForwardRefExoticComponent<Partial<PaddingProps
|
|
|
2394
2403
|
readonly l?: csstype.Property.TextAlign | undefined;
|
|
2395
2404
|
readonly xl?: csstype.Property.TextAlign | undefined;
|
|
2396
2405
|
} | 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
2406
|
__brand__?: "platform-web" | {
|
|
2406
2407
|
readonly base?: "platform-web" | undefined;
|
|
2407
2408
|
readonly xs?: "platform-web" | undefined;
|
|
@@ -2411,6 +2412,14 @@ declare const Box: React__default.ForwardRefExoticComponent<Partial<PaddingProps
|
|
|
2411
2412
|
readonly xl?: "platform-web" | undefined;
|
|
2412
2413
|
} | undefined;
|
|
2413
2414
|
} & {
|
|
2415
|
+
order?: csstype.Property.Order | {
|
|
2416
|
+
readonly base?: csstype.Property.Order | undefined;
|
|
2417
|
+
readonly xs?: csstype.Property.Order | undefined;
|
|
2418
|
+
readonly s?: csstype.Property.Order | undefined;
|
|
2419
|
+
readonly m?: csstype.Property.Order | undefined;
|
|
2420
|
+
readonly l?: csstype.Property.Order | undefined;
|
|
2421
|
+
readonly xl?: csstype.Property.Order | undefined;
|
|
2422
|
+
} | undefined;
|
|
2414
2423
|
alignContent?: csstype.Property.AlignContent | {
|
|
2415
2424
|
readonly base?: csstype.Property.AlignContent | undefined;
|
|
2416
2425
|
readonly xs?: csstype.Property.AlignContent | undefined;
|
|
@@ -2507,14 +2516,6 @@ declare const Box: React__default.ForwardRefExoticComponent<Partial<PaddingProps
|
|
|
2507
2516
|
readonly l?: csstype.Property.JustifySelf | undefined;
|
|
2508
2517
|
readonly xl?: csstype.Property.JustifySelf | undefined;
|
|
2509
2518
|
} | 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
2519
|
rowGap: SpacingValueType | {
|
|
2519
2520
|
readonly base?: SpacingValueType | undefined;
|
|
2520
2521
|
readonly xs?: SpacingValueType | undefined;
|
|
@@ -2838,7 +2839,7 @@ declare const CardBody: ({ children, testID }: CardBodyProps) => React__default.
|
|
|
2838
2839
|
|
|
2839
2840
|
type BladeElementRef = Platform.Select<{
|
|
2840
2841
|
web:
|
|
2841
|
-
| Pick<HTMLElement, 'focus' | 'scrollIntoView' | 'getBoundingClientRect'>
|
|
2842
|
+
| Pick<HTMLElement, 'focus' | 'scrollIntoView' | 'getBoundingClientRect' | 'clientHeight'>
|
|
2842
2843
|
| Pick<View, 'focus'>;
|
|
2843
2844
|
native: React.MutableRefObject<any>;
|
|
2844
2845
|
}>;
|
|
@@ -3094,6 +3095,21 @@ type BadgeTextColors$1 = `badge.text.${DotNotationColorStringToken<
|
|
|
3094
3095
|
Theme$1['colors']['badge']['text']
|
|
3095
3096
|
>}`;
|
|
3096
3097
|
|
|
3098
|
+
type As$1 =
|
|
3099
|
+
| 'code'
|
|
3100
|
+
| 'h1'
|
|
3101
|
+
| 'h2'
|
|
3102
|
+
| 'h3'
|
|
3103
|
+
| 'h4'
|
|
3104
|
+
| 'h5'
|
|
3105
|
+
| 'h6'
|
|
3106
|
+
| 'p'
|
|
3107
|
+
| 'span'
|
|
3108
|
+
| 'abbr'
|
|
3109
|
+
| 'q'
|
|
3110
|
+
| 'cite'
|
|
3111
|
+
| 'figcaption'
|
|
3112
|
+
| 'div';
|
|
3097
3113
|
type BaseTextProps$1 = {
|
|
3098
3114
|
id?: string;
|
|
3099
3115
|
color?: ActionColors$1 | FeedbackColors$1 | SurfaceColors$1 | FeedbackActionColors$1 | BadgeTextColors$1;
|
|
@@ -3106,7 +3122,7 @@ type BaseTextProps$1 = {
|
|
|
3106
3122
|
/**
|
|
3107
3123
|
* Web only
|
|
3108
3124
|
*/
|
|
3109
|
-
as?:
|
|
3125
|
+
as?: As$1;
|
|
3110
3126
|
textAlign?: 'center' | 'justify' | 'left' | 'right';
|
|
3111
3127
|
truncateAfterLines?: number;
|
|
3112
3128
|
className?: string;
|
|
@@ -3124,11 +3140,13 @@ type BaseTextProps$1 = {
|
|
|
3124
3140
|
/* eslint-disable @typescript-eslint/no-unnecessary-type-assertion */
|
|
3125
3141
|
|
|
3126
3142
|
|
|
3143
|
+
declare const validAsValues$3 = ['p', 'span', 'div', 'abbr', 'figcaption', 'cite', 'q'] as const;
|
|
3127
3144
|
type TextCommonProps$1 = {
|
|
3145
|
+
as?: typeof validAsValues$3[number];
|
|
3128
3146
|
type?: TextTypes;
|
|
3129
3147
|
contrast?: ColorContrastTypes;
|
|
3130
3148
|
truncateAfterLines?: number;
|
|
3131
|
-
children:
|
|
3149
|
+
children: React__default.ReactNode;
|
|
3132
3150
|
weight?: keyof Theme$1['typography']['fonts']['weight'];
|
|
3133
3151
|
/**
|
|
3134
3152
|
* Overrides the color of the Text component.
|
|
@@ -3440,6 +3458,14 @@ declare const Checkbox: React__default.ForwardRefExoticComponent<{
|
|
|
3440
3458
|
*/
|
|
3441
3459
|
tabIndex?: number | undefined;
|
|
3442
3460
|
} & TestID$1 & Partial<Omit<MarginProps & Pick<{
|
|
3461
|
+
order?: csstype.Property.Order | {
|
|
3462
|
+
readonly base?: csstype.Property.Order | undefined;
|
|
3463
|
+
readonly xs?: csstype.Property.Order | undefined;
|
|
3464
|
+
readonly s?: csstype.Property.Order | undefined;
|
|
3465
|
+
readonly m?: csstype.Property.Order | undefined;
|
|
3466
|
+
readonly l?: csstype.Property.Order | undefined;
|
|
3467
|
+
readonly xl?: csstype.Property.Order | undefined;
|
|
3468
|
+
} | undefined;
|
|
3443
3469
|
alignContent?: csstype.Property.AlignContent | {
|
|
3444
3470
|
readonly base?: csstype.Property.AlignContent | undefined;
|
|
3445
3471
|
readonly xs?: csstype.Property.AlignContent | undefined;
|
|
@@ -3536,14 +3562,6 @@ declare const Checkbox: React__default.ForwardRefExoticComponent<{
|
|
|
3536
3562
|
readonly l?: csstype.Property.JustifySelf | undefined;
|
|
3537
3563
|
readonly xl?: csstype.Property.JustifySelf | undefined;
|
|
3538
3564
|
} | 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
3565
|
rowGap: SpacingValueType | {
|
|
3548
3566
|
readonly base?: SpacingValueType | undefined;
|
|
3549
3567
|
readonly xs?: SpacingValueType | undefined;
|
|
@@ -3584,7 +3602,7 @@ declare const Checkbox: React__default.ForwardRefExoticComponent<{
|
|
|
3584
3602
|
readonly l?: "platform-web" | undefined;
|
|
3585
3603
|
readonly xl?: "platform-web" | undefined;
|
|
3586
3604
|
} | undefined;
|
|
3587
|
-
}, "
|
|
3605
|
+
}, "order" | "alignSelf" | "justifySelf" | "placeSelf"> & {
|
|
3588
3606
|
bottom: SpacingValueType | {
|
|
3589
3607
|
readonly base?: SpacingValueType | undefined;
|
|
3590
3608
|
readonly xs?: SpacingValueType | undefined;
|
|
@@ -4774,6 +4792,14 @@ declare const TextInput: React__default.ForwardRefExoticComponent<Pick<BaseInput
|
|
|
4774
4792
|
*/
|
|
4775
4793
|
type?: Type;
|
|
4776
4794
|
} & Partial<Omit<MarginProps & Pick<{
|
|
4795
|
+
order?: csstype.Property.Order | {
|
|
4796
|
+
readonly base?: csstype.Property.Order | undefined;
|
|
4797
|
+
readonly xs?: csstype.Property.Order | undefined;
|
|
4798
|
+
readonly s?: csstype.Property.Order | undefined;
|
|
4799
|
+
readonly m?: csstype.Property.Order | undefined;
|
|
4800
|
+
readonly l?: csstype.Property.Order | undefined;
|
|
4801
|
+
readonly xl?: csstype.Property.Order | undefined;
|
|
4802
|
+
} | undefined;
|
|
4777
4803
|
alignContent?: csstype.Property.AlignContent | {
|
|
4778
4804
|
readonly base?: csstype.Property.AlignContent | undefined;
|
|
4779
4805
|
readonly xs?: csstype.Property.AlignContent | undefined;
|
|
@@ -4870,14 +4896,6 @@ declare const TextInput: React__default.ForwardRefExoticComponent<Pick<BaseInput
|
|
|
4870
4896
|
readonly l?: csstype.Property.JustifySelf | undefined;
|
|
4871
4897
|
readonly xl?: csstype.Property.JustifySelf | undefined;
|
|
4872
4898
|
} | 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
4899
|
rowGap: SpacingValueType | {
|
|
4882
4900
|
readonly base?: SpacingValueType | undefined;
|
|
4883
4901
|
readonly xs?: SpacingValueType | undefined;
|
|
@@ -4918,7 +4936,7 @@ declare const TextInput: React__default.ForwardRefExoticComponent<Pick<BaseInput
|
|
|
4918
4936
|
readonly l?: "platform-web" | undefined;
|
|
4919
4937
|
readonly xl?: "platform-web" | undefined;
|
|
4920
4938
|
} | undefined;
|
|
4921
|
-
}, "
|
|
4939
|
+
}, "order" | "alignSelf" | "justifySelf" | "placeSelf"> & {
|
|
4922
4940
|
bottom: SpacingValueType | {
|
|
4923
4941
|
readonly base?: SpacingValueType | undefined;
|
|
4924
4942
|
readonly xs?: SpacingValueType | undefined;
|
|
@@ -5138,6 +5156,14 @@ declare type PasswordInputExtraProps = {
|
|
|
5138
5156
|
};
|
|
5139
5157
|
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
5158
|
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<{
|
|
5159
|
+
order?: csstype.Property.Order | {
|
|
5160
|
+
readonly base?: csstype.Property.Order | undefined;
|
|
5161
|
+
readonly xs?: csstype.Property.Order | undefined;
|
|
5162
|
+
readonly s?: csstype.Property.Order | undefined;
|
|
5163
|
+
readonly m?: csstype.Property.Order | undefined;
|
|
5164
|
+
readonly l?: csstype.Property.Order | undefined;
|
|
5165
|
+
readonly xl?: csstype.Property.Order | undefined;
|
|
5166
|
+
} | undefined;
|
|
5141
5167
|
alignContent?: csstype.Property.AlignContent | {
|
|
5142
5168
|
readonly base?: csstype.Property.AlignContent | undefined;
|
|
5143
5169
|
readonly xs?: csstype.Property.AlignContent | undefined;
|
|
@@ -5234,14 +5260,6 @@ declare const PasswordInput: React__default.ForwardRefExoticComponent<Pick<BaseI
|
|
|
5234
5260
|
readonly l?: csstype.Property.JustifySelf | undefined;
|
|
5235
5261
|
readonly xl?: csstype.Property.JustifySelf | undefined;
|
|
5236
5262
|
} | 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
5263
|
rowGap: SpacingValueType | {
|
|
5246
5264
|
readonly base?: SpacingValueType | undefined;
|
|
5247
5265
|
readonly xs?: SpacingValueType | undefined;
|
|
@@ -5282,7 +5300,7 @@ declare const PasswordInput: React__default.ForwardRefExoticComponent<Pick<BaseI
|
|
|
5282
5300
|
readonly l?: "platform-web" | undefined;
|
|
5283
5301
|
readonly xl?: "platform-web" | undefined;
|
|
5284
5302
|
} | undefined;
|
|
5285
|
-
}, "
|
|
5303
|
+
}, "order" | "alignSelf" | "justifySelf" | "placeSelf"> & {
|
|
5286
5304
|
bottom: SpacingValueType | {
|
|
5287
5305
|
readonly base?: SpacingValueType | undefined;
|
|
5288
5306
|
readonly xs?: SpacingValueType | undefined;
|
|
@@ -5490,6 +5508,14 @@ declare const TextArea: React__default.ForwardRefExoticComponent<Pick<BaseInputP
|
|
|
5490
5508
|
*/
|
|
5491
5509
|
onClearButtonClick?: (() => void) | undefined;
|
|
5492
5510
|
} & Partial<Omit<MarginProps & Pick<{
|
|
5511
|
+
order?: csstype.Property.Order | {
|
|
5512
|
+
readonly base?: csstype.Property.Order | undefined;
|
|
5513
|
+
readonly xs?: csstype.Property.Order | undefined;
|
|
5514
|
+
readonly s?: csstype.Property.Order | undefined;
|
|
5515
|
+
readonly m?: csstype.Property.Order | undefined;
|
|
5516
|
+
readonly l?: csstype.Property.Order | undefined;
|
|
5517
|
+
readonly xl?: csstype.Property.Order | undefined;
|
|
5518
|
+
} | undefined;
|
|
5493
5519
|
alignContent?: csstype.Property.AlignContent | {
|
|
5494
5520
|
readonly base?: csstype.Property.AlignContent | undefined;
|
|
5495
5521
|
readonly xs?: csstype.Property.AlignContent | undefined;
|
|
@@ -5586,14 +5612,6 @@ declare const TextArea: React__default.ForwardRefExoticComponent<Pick<BaseInputP
|
|
|
5586
5612
|
readonly l?: csstype.Property.JustifySelf | undefined;
|
|
5587
5613
|
readonly xl?: csstype.Property.JustifySelf | undefined;
|
|
5588
5614
|
} | 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
5615
|
rowGap: SpacingValueType | {
|
|
5598
5616
|
readonly base?: SpacingValueType | undefined;
|
|
5599
5617
|
readonly xs?: SpacingValueType | undefined;
|
|
@@ -5634,7 +5652,7 @@ declare const TextArea: React__default.ForwardRefExoticComponent<Pick<BaseInputP
|
|
|
5634
5652
|
readonly l?: "platform-web" | undefined;
|
|
5635
5653
|
readonly xl?: "platform-web" | undefined;
|
|
5636
5654
|
} | undefined;
|
|
5637
|
-
}, "
|
|
5655
|
+
}, "order" | "alignSelf" | "justifySelf" | "placeSelf"> & {
|
|
5638
5656
|
bottom: SpacingValueType | {
|
|
5639
5657
|
readonly base?: SpacingValueType | undefined;
|
|
5640
5658
|
readonly xs?: SpacingValueType | undefined;
|
|
@@ -6036,6 +6054,7 @@ declare type FeedbackActionColors = `feedback.${Feedback}.action.text.${DotNotat
|
|
|
6036
6054
|
declare type SurfaceColors = `surface.text.${DotNotationColorStringToken<Theme$1['colors']['surface']['text']>}`;
|
|
6037
6055
|
declare type ActionColors = `action.text.${DotNotationColorStringToken<Theme$1['colors']['action']['text']>}`;
|
|
6038
6056
|
declare type BadgeTextColors = `badge.text.${DotNotationColorStringToken<Theme$1['colors']['badge']['text']>}`;
|
|
6057
|
+
declare type As = 'code' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'abbr' | 'q' | 'cite' | 'figcaption' | 'div';
|
|
6039
6058
|
declare type BaseTextProps = {
|
|
6040
6059
|
id?: string;
|
|
6041
6060
|
color?: ActionColors | FeedbackColors | SurfaceColors | FeedbackActionColors | BadgeTextColors;
|
|
@@ -6048,7 +6067,7 @@ declare type BaseTextProps = {
|
|
|
6048
6067
|
/**
|
|
6049
6068
|
* Web only
|
|
6050
6069
|
*/
|
|
6051
|
-
as?:
|
|
6070
|
+
as?: As;
|
|
6052
6071
|
textAlign?: 'center' | 'justify' | 'left' | 'right';
|
|
6053
6072
|
truncateAfterLines?: number;
|
|
6054
6073
|
className?: string;
|
|
@@ -6062,7 +6081,9 @@ declare type BaseTextProps = {
|
|
|
6062
6081
|
componentName?: 'text' | 'title' | 'heading' | 'code';
|
|
6063
6082
|
} & TestID$1 & StyledPropsBlade;
|
|
6064
6083
|
|
|
6084
|
+
declare const validAsValues$2: readonly ["span", "h1", "h2", "h3", "h4", "h5", "h6"];
|
|
6065
6085
|
declare type TitleProps = {
|
|
6086
|
+
as?: typeof validAsValues$2[number];
|
|
6066
6087
|
/**
|
|
6067
6088
|
* Overrides the color of the Title component.
|
|
6068
6089
|
*
|
|
@@ -6073,12 +6094,15 @@ declare type TitleProps = {
|
|
|
6073
6094
|
contrast?: ColorContrastTypes;
|
|
6074
6095
|
type?: TextTypes;
|
|
6075
6096
|
children: StringChildrenType;
|
|
6097
|
+
textAlign?: BaseTextProps['textAlign'];
|
|
6076
6098
|
} & TestID$1 & StyledPropsBlade;
|
|
6077
|
-
declare const Title: ({ size, type, contrast, color, children, testID, ...styledProps }: TitleProps) => ReactElement;
|
|
6099
|
+
declare const Title: ({ as, size, type, contrast, color, children, testID, textAlign, ...styledProps }: TitleProps) => ReactElement;
|
|
6078
6100
|
|
|
6079
6101
|
declare type HeadingVariant = 'regular' | 'subheading';
|
|
6080
6102
|
declare type HeadingSize = 'small' | 'medium' | 'large';
|
|
6103
|
+
declare const validAsValues$1: readonly ["span", "h1", "h2", "h3", "h4", "h5", "h6"];
|
|
6081
6104
|
declare type HeadingCommonProps = {
|
|
6105
|
+
as?: typeof validAsValues$1[number];
|
|
6082
6106
|
/**
|
|
6083
6107
|
* Overrides the color of the Heading component.
|
|
6084
6108
|
*
|
|
@@ -6116,13 +6140,15 @@ declare type HeadingProps<T> = T extends {
|
|
|
6116
6140
|
} ? Variant extends Exclude<HeadingVariant, 'subheading'> ? HeadingNormalVariant : Variant extends 'subheading' ? HeadingSubHeadingVariant : T : T;
|
|
6117
6141
|
declare const Heading: <T extends {
|
|
6118
6142
|
variant: HeadingVariant;
|
|
6119
|
-
}>({ variant, size, type, weight, contrast, color, children, testID, textAlign, ...styledProps }: HeadingProps<T>) => ReactElement;
|
|
6143
|
+
}>({ as, variant, size, type, weight, contrast, color, children, testID, textAlign, ...styledProps }: HeadingProps<T>) => ReactElement;
|
|
6120
6144
|
|
|
6145
|
+
declare const validAsValues: readonly ["p", "span", "div", "abbr", "figcaption", "cite", "q"];
|
|
6121
6146
|
declare type TextCommonProps = {
|
|
6147
|
+
as?: typeof validAsValues[number];
|
|
6122
6148
|
type?: TextTypes;
|
|
6123
6149
|
contrast?: ColorContrastTypes;
|
|
6124
6150
|
truncateAfterLines?: number;
|
|
6125
|
-
children:
|
|
6151
|
+
children: React__default.ReactNode;
|
|
6126
6152
|
weight?: keyof Theme$1['typography']['fonts']['weight'];
|
|
6127
6153
|
/**
|
|
6128
6154
|
* Overrides the color of the Text component.
|
|
@@ -6148,10 +6174,7 @@ declare type TextCaptionVariant = TextCommonProps & {
|
|
|
6148
6174
|
declare type TextProps<T> = T extends {
|
|
6149
6175
|
variant: infer Variant;
|
|
6150
6176
|
} ? 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;
|
|
6177
|
+
declare type GetTextPropsReturn = Omit<BaseTextProps, 'children'>;
|
|
6155
6178
|
declare type GetTextProps<T extends {
|
|
6156
6179
|
variant: TextVariant;
|
|
6157
6180
|
}> = Pick<TextProps<T>, 'type' | 'variant' | 'weight' | 'size' | 'contrast' | 'color' | 'testID' | 'textAlign'>;
|
|
@@ -6160,7 +6183,7 @@ declare const getTextProps: <T extends {
|
|
|
6160
6183
|
}>({ variant, type, weight, size, color, contrast, testID, textAlign, }: GetTextProps<T>) => GetTextPropsReturn;
|
|
6161
6184
|
declare const Text: <T extends {
|
|
6162
6185
|
variant: TextVariant;
|
|
6163
|
-
}>({ variant, weight, size, type, contrast, truncateAfterLines, children, color, testID, textAlign, ...styledProps }: TextProps<T>) => ReactElement;
|
|
6186
|
+
}>({ as, variant, weight, size, type, contrast, truncateAfterLines, children, color, testID, textAlign, ...styledProps }: TextProps<T>) => ReactElement;
|
|
6164
6187
|
|
|
6165
6188
|
declare type CodeCommonProps = {
|
|
6166
6189
|
/**
|
|
@@ -6468,6 +6491,14 @@ declare const Radio: React__default.ForwardRefExoticComponent<{
|
|
|
6468
6491
|
*/
|
|
6469
6492
|
size?: "small" | "medium" | undefined;
|
|
6470
6493
|
} & TestID$1 & Partial<Omit<MarginProps & Pick<{
|
|
6494
|
+
order?: csstype.Property.Order | {
|
|
6495
|
+
readonly base?: csstype.Property.Order | undefined;
|
|
6496
|
+
readonly xs?: csstype.Property.Order | undefined;
|
|
6497
|
+
readonly s?: csstype.Property.Order | undefined;
|
|
6498
|
+
readonly m?: csstype.Property.Order | undefined;
|
|
6499
|
+
readonly l?: csstype.Property.Order | undefined;
|
|
6500
|
+
readonly xl?: csstype.Property.Order | undefined;
|
|
6501
|
+
} | undefined;
|
|
6471
6502
|
alignContent?: csstype.Property.AlignContent | {
|
|
6472
6503
|
readonly base?: csstype.Property.AlignContent | undefined;
|
|
6473
6504
|
readonly xs?: csstype.Property.AlignContent | undefined;
|
|
@@ -6564,14 +6595,6 @@ declare const Radio: React__default.ForwardRefExoticComponent<{
|
|
|
6564
6595
|
readonly l?: csstype.Property.JustifySelf | undefined;
|
|
6565
6596
|
readonly xl?: csstype.Property.JustifySelf | undefined;
|
|
6566
6597
|
} | 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
6598
|
rowGap: SpacingValueType | {
|
|
6576
6599
|
readonly base?: SpacingValueType | undefined;
|
|
6577
6600
|
readonly xs?: SpacingValueType | undefined;
|
|
@@ -6612,7 +6635,7 @@ declare const Radio: React__default.ForwardRefExoticComponent<{
|
|
|
6612
6635
|
readonly l?: "platform-web" | undefined;
|
|
6613
6636
|
readonly xl?: "platform-web" | undefined;
|
|
6614
6637
|
} | undefined;
|
|
6615
|
-
}, "
|
|
6638
|
+
}, "order" | "alignSelf" | "justifySelf" | "placeSelf"> & {
|
|
6616
6639
|
bottom: SpacingValueType | {
|
|
6617
6640
|
readonly base?: SpacingValueType | undefined;
|
|
6618
6641
|
readonly xs?: SpacingValueType | undefined;
|
|
@@ -7269,6 +7292,14 @@ declare const TooltipInteractiveWrapper: styled_components.StyledComponent<"div"
|
|
|
7269
7292
|
readonly l?: csstype.Property.Display | undefined;
|
|
7270
7293
|
readonly xl?: csstype.Property.Display | undefined;
|
|
7271
7294
|
} | undefined;
|
|
7295
|
+
overflow?: csstype.Property.Overflow | {
|
|
7296
|
+
readonly base?: csstype.Property.Overflow | undefined;
|
|
7297
|
+
readonly xs?: csstype.Property.Overflow | undefined;
|
|
7298
|
+
readonly s?: csstype.Property.Overflow | undefined;
|
|
7299
|
+
readonly m?: csstype.Property.Overflow | undefined;
|
|
7300
|
+
readonly l?: csstype.Property.Overflow | undefined;
|
|
7301
|
+
readonly xl?: csstype.Property.Overflow | undefined;
|
|
7302
|
+
} | undefined;
|
|
7272
7303
|
height: SpacingValueType | {
|
|
7273
7304
|
readonly base?: SpacingValueType | undefined;
|
|
7274
7305
|
readonly xs?: SpacingValueType | undefined;
|
|
@@ -7333,14 +7364,6 @@ declare const TooltipInteractiveWrapper: styled_components.StyledComponent<"div"
|
|
|
7333
7364
|
readonly l?: csstype.Property.TextAlign | undefined;
|
|
7334
7365
|
readonly xl?: csstype.Property.TextAlign | undefined;
|
|
7335
7366
|
} | 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
7367
|
__brand__?: "platform-web" | {
|
|
7345
7368
|
readonly base?: "platform-web" | undefined;
|
|
7346
7369
|
readonly xs?: "platform-web" | undefined;
|
|
@@ -7350,6 +7373,14 @@ declare const TooltipInteractiveWrapper: styled_components.StyledComponent<"div"
|
|
|
7350
7373
|
readonly xl?: "platform-web" | undefined;
|
|
7351
7374
|
} | undefined;
|
|
7352
7375
|
} & {
|
|
7376
|
+
order?: csstype.Property.Order | {
|
|
7377
|
+
readonly base?: csstype.Property.Order | undefined;
|
|
7378
|
+
readonly xs?: csstype.Property.Order | undefined;
|
|
7379
|
+
readonly s?: csstype.Property.Order | undefined;
|
|
7380
|
+
readonly m?: csstype.Property.Order | undefined;
|
|
7381
|
+
readonly l?: csstype.Property.Order | undefined;
|
|
7382
|
+
readonly xl?: csstype.Property.Order | undefined;
|
|
7383
|
+
} | undefined;
|
|
7353
7384
|
alignContent?: csstype.Property.AlignContent | {
|
|
7354
7385
|
readonly base?: csstype.Property.AlignContent | undefined;
|
|
7355
7386
|
readonly xs?: csstype.Property.AlignContent | undefined;
|
|
@@ -7446,14 +7477,6 @@ declare const TooltipInteractiveWrapper: styled_components.StyledComponent<"div"
|
|
|
7446
7477
|
readonly l?: csstype.Property.JustifySelf | undefined;
|
|
7447
7478
|
readonly xl?: csstype.Property.JustifySelf | undefined;
|
|
7448
7479
|
} | 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
7480
|
rowGap: SpacingValueType | {
|
|
7458
7481
|
readonly base?: SpacingValueType | undefined;
|
|
7459
7482
|
readonly xs?: SpacingValueType | undefined;
|
|
@@ -7716,6 +7739,14 @@ declare const TooltipInteractiveWrapper: styled_components.StyledComponent<"div"
|
|
|
7716
7739
|
readonly l?: csstype.Property.Border<string | number> | undefined;
|
|
7717
7740
|
readonly xl?: csstype.Property.Border<string | number> | undefined;
|
|
7718
7741
|
} | undefined;
|
|
7742
|
+
lineHeight: SpacingValueType | {
|
|
7743
|
+
readonly base?: SpacingValueType | undefined;
|
|
7744
|
+
readonly xs?: SpacingValueType | undefined;
|
|
7745
|
+
readonly s?: SpacingValueType | undefined;
|
|
7746
|
+
readonly m?: SpacingValueType | undefined;
|
|
7747
|
+
readonly l?: SpacingValueType | undefined;
|
|
7748
|
+
readonly xl?: SpacingValueType | undefined;
|
|
7749
|
+
};
|
|
7719
7750
|
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
7751
|
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
7752
|
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 +7851,6 @@ declare const TooltipInteractiveWrapper: styled_components.StyledComponent<"div"
|
|
|
7820
7851
|
readonly l?: "none" | "thin" | "thick" | undefined;
|
|
7821
7852
|
readonly xl?: "none" | "thin" | "thick" | undefined;
|
|
7822
7853
|
};
|
|
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
7854
|
opacity?: csstype.Property.Opacity | {
|
|
7832
7855
|
readonly base?: csstype.Property.Opacity | undefined;
|
|
7833
7856
|
readonly xs?: csstype.Property.Opacity | undefined;
|