@razorpay/blade 9.6.1 → 10.0.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/build/components/index.d.ts +25 -24
- package/build/components/index.development.web.js +4916 -7486
- package/build/components/index.development.web.js.map +1 -1
- package/build/components/index.native.d.ts +17 -16
- package/build/components/index.native.js +430 -425
- package/build/components/index.native.js.map +1 -1
- package/build/components/index.production.web.js +4898 -7421
- package/build/components/index.production.web.js.map +1 -1
- package/build/css/bankingThemeDarkDesktop.css +1 -1
- package/build/css/bankingThemeDarkMobile.css +1 -1
- package/build/css/bankingThemeLightDesktop.css +1 -1
- package/build/css/bankingThemeLightMobile.css +1 -1
- package/build/css/paymentThemeDarkDesktop.css +1 -1
- package/build/css/paymentThemeDarkMobile.css +1 -1
- package/build/css/paymentThemeLightDesktop.css +1 -1
- package/build/css/paymentThemeLightMobile.css +1 -1
- package/build/tokens/index.d.ts +27 -27
- package/build/tokens/index.development.web.js +30 -71
- package/build/tokens/index.development.web.js.map +1 -1
- package/build/tokens/index.native.d.ts +27 -27
- package/build/tokens/index.native.js +4 -5
- package/build/tokens/index.native.js.map +1 -1
- package/build/tokens/index.production.web.js +20 -44
- package/build/tokens/index.production.web.js.map +1 -1
- package/build/utils/index.d.ts +12 -12
- package/build/utils/index.development.web.js +26 -60
- package/build/utils/index.development.web.js.map +1 -1
- package/build/utils/index.native.d.ts +12 -12
- package/build/utils/index.native.js +7 -7
- package/build/utils/index.native.js.map +1 -1
- package/build/utils/index.production.web.js +24 -55
- package/build/utils/index.production.web.js.map +1 -1
- package/package.json +23 -22
|
@@ -523,10 +523,10 @@ type Delay = {
|
|
|
523
523
|
xlong: 5000;
|
|
524
524
|
};
|
|
525
525
|
|
|
526
|
-
type
|
|
526
|
+
type EasingFactoryFn = { factory: () => (value: number) => number }; // similar to EasingFactoryFn of `react-native-reanimated`
|
|
527
527
|
type EasingType<Value extends string> = Platform.Select<{
|
|
528
528
|
web: Value;
|
|
529
|
-
native:
|
|
529
|
+
native: EasingFactoryFn;
|
|
530
530
|
}>;
|
|
531
531
|
|
|
532
532
|
type Easing = {
|
|
@@ -534,49 +534,49 @@ type Easing = {
|
|
|
534
534
|
standard: {
|
|
535
535
|
/** `cubic-bezier(0.5, 0, 0.3, 1.5)`
|
|
536
536
|
*
|
|
537
|
-
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `
|
|
537
|
+
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `EasingFactoryFn` for native */
|
|
538
538
|
attentive: EasingType<'cubic-bezier(0.5, 0, 0.3, 1.5)'>;
|
|
539
539
|
/** `cubic-bezier(0.3, 0, 0.2, 1)`
|
|
540
540
|
*
|
|
541
|
-
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `
|
|
541
|
+
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `EasingFactoryFn` for native */
|
|
542
542
|
effective: EasingType<'cubic-bezier(0.3, 0, 0.2, 1)'>;
|
|
543
543
|
/** `cubic-bezier(0.5, 0, 0, 1)`
|
|
544
544
|
*
|
|
545
|
-
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `
|
|
545
|
+
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `EasingFactoryFn` for native */
|
|
546
546
|
revealing: EasingType<'cubic-bezier(0.5, 0, 0, 1)'>;
|
|
547
547
|
/** `cubic-bezier(1, 0.5, 0, 0.5)`
|
|
548
548
|
*
|
|
549
|
-
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `
|
|
549
|
+
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `EasingFactoryFn` for native */
|
|
550
550
|
wary: EasingType<'cubic-bezier(1, 0.5, 0, 0.5)'>;
|
|
551
551
|
};
|
|
552
552
|
/** Easings for all entrance animations*/
|
|
553
553
|
entrance: {
|
|
554
554
|
/** `cubic-bezier(0.5, 0, 0.3, 1.5)`
|
|
555
555
|
*
|
|
556
|
-
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `
|
|
556
|
+
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `EasingFactoryFn` for native */
|
|
557
557
|
attentive: EasingType<'cubic-bezier(0.5, 0, 0.3, 1.5)'>;
|
|
558
558
|
/** `cubic-bezier(0, 0, 0.2, 1)`
|
|
559
559
|
*
|
|
560
|
-
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `
|
|
560
|
+
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `EasingFactoryFn` for native */
|
|
561
561
|
effective: EasingType<'cubic-bezier(0, 0, 0.2, 1)'>;
|
|
562
562
|
/** `cubic-bezier(0, 0, 0, 1)`
|
|
563
563
|
*
|
|
564
|
-
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `
|
|
564
|
+
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `EasingFactoryFn` for native */
|
|
565
565
|
revealing: EasingType<'cubic-bezier(0, 0, 0, 1)'>;
|
|
566
566
|
};
|
|
567
567
|
/** Easings for all exit animations*/
|
|
568
568
|
exit: {
|
|
569
569
|
/** `cubic-bezier(0.7, 0, 0.5, 1)`
|
|
570
570
|
*
|
|
571
|
-
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `
|
|
571
|
+
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `EasingFactoryFn` for native */
|
|
572
572
|
attentive: EasingType<'cubic-bezier(0.7, 0, 0.5, 1)'>;
|
|
573
573
|
/** `cubic-bezier(0.17, 0, 1, 1)`
|
|
574
574
|
*
|
|
575
|
-
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `
|
|
575
|
+
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `EasingFactoryFn` for native */
|
|
576
576
|
effective: EasingType<'cubic-bezier(0.17, 0, 1, 1)'>;
|
|
577
577
|
/** `cubic-bezier(0.5, 0, 1, 1)`
|
|
578
578
|
*
|
|
579
|
-
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `
|
|
579
|
+
* Returns a `string` of `"cubic-bezier(...)"` for web & react-native-reanimated's Easing Function of type `EasingFactoryFn` for native */
|
|
580
580
|
revealing: EasingType<'cubic-bezier(0.5, 0, 1, 1)'>;
|
|
581
581
|
};
|
|
582
582
|
};
|
|
@@ -1417,6 +1417,7 @@ type BaseBoxVisualProps$1 = MakeObjectResponsive$1<
|
|
|
1417
1417
|
| BackgroundColorString$1<'surface'>
|
|
1418
1418
|
| BackgroundColorString$1<'action'>
|
|
1419
1419
|
| BrandColorString$1
|
|
1420
|
+
| 'transparent'
|
|
1420
1421
|
| (string & Record<never, never>);
|
|
1421
1422
|
lineHeight: SpacingValueType$1;
|
|
1422
1423
|
touchAction: CSSObject['touchAction'];
|
|
@@ -1434,7 +1435,7 @@ type BaseBoxVisualProps$1 = MakeObjectResponsive$1<
|
|
|
1434
1435
|
|
|
1435
1436
|
// Visual props that are specific to Box
|
|
1436
1437
|
type BoxVisualProps$1 = MakeObjectResponsive$1<{
|
|
1437
|
-
backgroundColor: BackgroundColorString$1<'surface'> | BrandColorString$1;
|
|
1438
|
+
backgroundColor: BackgroundColorString$1<'surface'> | BrandColorString$1 | 'transparent';
|
|
1438
1439
|
}> & {
|
|
1439
1440
|
// Intentionally keeping this outside of MakeObjectResponsive since we only want as to be string and not responsive object
|
|
1440
1441
|
// styled-components do not support passing `as` prop as an object
|
|
@@ -2662,13 +2663,13 @@ declare type CommonBoxVisualProps = MakeObjectResponsive<{
|
|
|
2662
2663
|
elevation?: keyof Elevation;
|
|
2663
2664
|
}>;
|
|
2664
2665
|
declare type BaseBoxVisualProps = MakeObjectResponsive<{
|
|
2665
|
-
backgroundColor: BackgroundColorString<'feedback'> | BackgroundColorString<'surface'> | BackgroundColorString<'action'> | BrandColorString | (string & Record<never, never>);
|
|
2666
|
+
backgroundColor: BackgroundColorString<'feedback'> | BackgroundColorString<'surface'> | BackgroundColorString<'action'> | BrandColorString | 'transparent' | (string & Record<never, never>);
|
|
2666
2667
|
lineHeight: SpacingValueType;
|
|
2667
2668
|
touchAction: CSSObject['touchAction'];
|
|
2668
2669
|
userSelect: CSSObject['userSelect'];
|
|
2669
2670
|
} & PickCSSByPlatform<'border' | 'borderLeft' | 'borderRight' | 'borderTop' | 'borderBottom' | 'opacity' | 'pointerEvents'>>;
|
|
2670
2671
|
declare type BoxVisualProps = MakeObjectResponsive<{
|
|
2671
|
-
backgroundColor: BackgroundColorString<'surface'> | BrandColorString;
|
|
2672
|
+
backgroundColor: BackgroundColorString<'surface'> | BrandColorString | 'transparent';
|
|
2672
2673
|
}> & {
|
|
2673
2674
|
as: BoxAsType;
|
|
2674
2675
|
};
|
|
@@ -3025,7 +3026,7 @@ declare const Box: React__default.ForwardRefExoticComponent<Partial<PaddingProps
|
|
|
3025
3026
|
readonly xl?: "platform-native" | undefined;
|
|
3026
3027
|
} | undefined;
|
|
3027
3028
|
} & MakeObjectResponsive<{
|
|
3028
|
-
backgroundColor: "brand.primary.300" | "brand.primary.400" | "brand.primary.500" | "brand.primary.600" | "brand.primary.700" | "brand.primary.800" | "brand.secondary.500" | "brand.gray.200.lowContrast" | "brand.gray.200.highContrast" | "brand.gray.300.lowContrast" | "brand.gray.300.highContrast" | "brand.gray.400.lowContrast" | "brand.gray.400.highContrast" | "brand.gray.500.lowContrast" | "brand.gray.500.highContrast" | "brand.gray.600.lowContrast" | "brand.gray.600.highContrast" | "brand.gray.700.lowContrast" | "brand.gray.700.highContrast" | "brand.gray.a50.lowContrast" | "brand.gray.a50.highContrast" | "brand.gray.a100.lowContrast" | "brand.gray.a100.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";
|
|
3029
|
+
backgroundColor: "brand.primary.300" | "brand.primary.400" | "brand.primary.500" | "brand.primary.600" | "brand.primary.700" | "brand.primary.800" | "brand.secondary.500" | "brand.gray.200.lowContrast" | "brand.gray.200.highContrast" | "brand.gray.300.lowContrast" | "brand.gray.300.highContrast" | "brand.gray.400.lowContrast" | "brand.gray.400.highContrast" | "brand.gray.500.lowContrast" | "brand.gray.500.highContrast" | "brand.gray.600.lowContrast" | "brand.gray.600.highContrast" | "brand.gray.700.lowContrast" | "brand.gray.700.highContrast" | "brand.gray.a50.lowContrast" | "brand.gray.a50.highContrast" | "brand.gray.a100.lowContrast" | "brand.gray.a100.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" | "transparent";
|
|
3029
3030
|
}, "backgroundColor"> & {
|
|
3030
3031
|
as: "aside" | "div" | "footer" | "header" | "label" | "main" | "nav" | "section" | "span";
|
|
3031
3032
|
} & {
|