@razorpay/blade 10.14.6 → 10.15.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 +81 -36
- package/build/components/index.development.web.js +16 -6
- package/build/components/index.development.web.js.map +1 -1
- package/build/components/index.native.d.ts +21 -36
- package/build/components/index.native.js +3 -3
- package/build/components/index.native.js.map +1 -1
- package/build/components/index.production.web.js +16 -6
- 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/package.json +1 -1
|
@@ -1359,7 +1359,7 @@ declare type CommonBoxVisualProps = MakeObjectResponsive<{
|
|
|
1359
1359
|
borderTopRightRadius: keyof Border['radius'];
|
|
1360
1360
|
borderBottomRightRadius: keyof Border['radius'];
|
|
1361
1361
|
borderBottomLeftRadius: keyof Border['radius'];
|
|
1362
|
-
} & PickCSSByPlatform<'backgroundImage' | 'backgroundSize' | 'backgroundPosition' | 'backgroundOrigin' | 'backgroundRepeat' | 'pointerEvents'> & {
|
|
1362
|
+
} & PickCSSByPlatform<'backgroundImage' | 'backgroundSize' | 'backgroundPosition' | 'backgroundOrigin' | 'backgroundRepeat' | 'pointerEvents' | 'opacity' | 'visibility' | 'transform' | 'transformOrigin' | 'clipPath'> & {
|
|
1363
1363
|
/**
|
|
1364
1364
|
* Sets the elevation for Box
|
|
1365
1365
|
*
|
|
@@ -2667,6 +2667,22 @@ declare const Box: React__default.ForwardRefExoticComponent<Partial<PaddingProps
|
|
|
2667
2667
|
readonly l?: "none" | "thinner" | "thin" | "thick" | "thicker" | undefined;
|
|
2668
2668
|
readonly xl?: "none" | "thinner" | "thin" | "thick" | "thicker" | undefined;
|
|
2669
2669
|
};
|
|
2670
|
+
clipPath?: csstype.Property.ClipPath | {
|
|
2671
|
+
readonly base?: csstype.Property.ClipPath | undefined;
|
|
2672
|
+
readonly xs?: csstype.Property.ClipPath | undefined;
|
|
2673
|
+
readonly s?: csstype.Property.ClipPath | undefined;
|
|
2674
|
+
readonly m?: csstype.Property.ClipPath | undefined;
|
|
2675
|
+
readonly l?: csstype.Property.ClipPath | undefined;
|
|
2676
|
+
readonly xl?: csstype.Property.ClipPath | undefined;
|
|
2677
|
+
} | undefined;
|
|
2678
|
+
opacity?: csstype.Property.Opacity | {
|
|
2679
|
+
readonly base?: csstype.Property.Opacity | undefined;
|
|
2680
|
+
readonly xs?: csstype.Property.Opacity | undefined;
|
|
2681
|
+
readonly s?: csstype.Property.Opacity | undefined;
|
|
2682
|
+
readonly m?: csstype.Property.Opacity | undefined;
|
|
2683
|
+
readonly l?: csstype.Property.Opacity | undefined;
|
|
2684
|
+
readonly xl?: csstype.Property.Opacity | undefined;
|
|
2685
|
+
} | undefined;
|
|
2670
2686
|
pointerEvents?: csstype.Property.PointerEvents | {
|
|
2671
2687
|
readonly base?: csstype.Property.PointerEvents | undefined;
|
|
2672
2688
|
readonly xs?: csstype.Property.PointerEvents | undefined;
|
|
@@ -2675,6 +2691,30 @@ declare const Box: React__default.ForwardRefExoticComponent<Partial<PaddingProps
|
|
|
2675
2691
|
readonly l?: csstype.Property.PointerEvents | undefined;
|
|
2676
2692
|
readonly xl?: csstype.Property.PointerEvents | undefined;
|
|
2677
2693
|
} | undefined;
|
|
2694
|
+
transform?: csstype.Property.Transform | {
|
|
2695
|
+
readonly base?: csstype.Property.Transform | undefined;
|
|
2696
|
+
readonly xs?: csstype.Property.Transform | undefined;
|
|
2697
|
+
readonly s?: csstype.Property.Transform | undefined;
|
|
2698
|
+
readonly m?: csstype.Property.Transform | undefined;
|
|
2699
|
+
readonly l?: csstype.Property.Transform | undefined;
|
|
2700
|
+
readonly xl?: csstype.Property.Transform | undefined;
|
|
2701
|
+
} | undefined;
|
|
2702
|
+
transformOrigin?: csstype.Property.TransformOrigin<string | number> | {
|
|
2703
|
+
readonly base?: csstype.Property.TransformOrigin<string | number> | undefined;
|
|
2704
|
+
readonly xs?: csstype.Property.TransformOrigin<string | number> | undefined;
|
|
2705
|
+
readonly s?: csstype.Property.TransformOrigin<string | number> | undefined;
|
|
2706
|
+
readonly m?: csstype.Property.TransformOrigin<string | number> | undefined;
|
|
2707
|
+
readonly l?: csstype.Property.TransformOrigin<string | number> | undefined;
|
|
2708
|
+
readonly xl?: csstype.Property.TransformOrigin<string | number> | undefined;
|
|
2709
|
+
} | undefined;
|
|
2710
|
+
visibility?: csstype.Property.Visibility | {
|
|
2711
|
+
readonly base?: csstype.Property.Visibility | undefined;
|
|
2712
|
+
readonly xs?: csstype.Property.Visibility | undefined;
|
|
2713
|
+
readonly s?: csstype.Property.Visibility | undefined;
|
|
2714
|
+
readonly m?: csstype.Property.Visibility | undefined;
|
|
2715
|
+
readonly l?: csstype.Property.Visibility | undefined;
|
|
2716
|
+
readonly xl?: csstype.Property.Visibility | undefined;
|
|
2717
|
+
} | undefined;
|
|
2678
2718
|
backgroundPosition?: csstype.Property.BackgroundPosition<string | number> | {
|
|
2679
2719
|
readonly base?: csstype.Property.BackgroundPosition<string | number> | undefined;
|
|
2680
2720
|
readonly xs?: csstype.Property.BackgroundPosition<string | number> | undefined;
|
|
@@ -2716,41 +2756,6 @@ declare const Box: React__default.ForwardRefExoticComponent<Partial<PaddingProps
|
|
|
2716
2756
|
readonly xl?: "platform-web" | undefined;
|
|
2717
2757
|
} | undefined;
|
|
2718
2758
|
} & MakeObjectResponsive<{
|
|
2719
|
-
/**
|
|
2720
|
-
* ## Box
|
|
2721
|
-
*
|
|
2722
|
-
* Box is the basic Layout component.
|
|
2723
|
-
*
|
|
2724
|
-
*
|
|
2725
|
-
* Box components supports most spacing CSS properties like `display`, `padding*`, `flex*`, `height`, `width`, etc.
|
|
2726
|
-
*
|
|
2727
|
-
* Check out {@linkcode BoxProps BoxPropsType} for complete list of props and [Layout RFC](https://github.com/razorpay/blade/blob/master/rfcs/2023-01-06-layout.md) for more details on API decision.
|
|
2728
|
-
*
|
|
2729
|
-
* ----
|
|
2730
|
-
*
|
|
2731
|
-
* ### Usage
|
|
2732
|
-
*
|
|
2733
|
-
* ```jsx
|
|
2734
|
-
* <Box display="flex">
|
|
2735
|
-
* ```
|
|
2736
|
-
|
|
2737
|
-
* #### Responsive Props
|
|
2738
|
-
*
|
|
2739
|
-
* ```jsx
|
|
2740
|
-
* <Box padding={{ base: 'spacing.3', m: 'spacing.10' }} />
|
|
2741
|
-
* ```
|
|
2742
|
-
*
|
|
2743
|
-
* #### Margin and Padding Shorthands
|
|
2744
|
-
*
|
|
2745
|
-
* ```jsx
|
|
2746
|
-
* <Box padding={["spacing.3", "spacing.10"]} />
|
|
2747
|
-
* ```
|
|
2748
|
-
*
|
|
2749
|
-
* ---
|
|
2750
|
-
*
|
|
2751
|
-
* Checkout {@link https://blade.razorpay.com/?path=/docs/components-box Box Documentation}
|
|
2752
|
-
*
|
|
2753
|
-
*/
|
|
2754
2759
|
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";
|
|
2755
2760
|
}, "backgroundColor"> & {
|
|
2756
2761
|
as: "aside" | "div" | "footer" | "header" | "label" | "main" | "nav" | "section" | "span";
|
|
@@ -7922,6 +7927,22 @@ declare const TooltipInteractiveWrapper: styled_components.StyledComponent<"div"
|
|
|
7922
7927
|
readonly l?: "none" | "thinner" | "thin" | "thick" | "thicker" | undefined;
|
|
7923
7928
|
readonly xl?: "none" | "thinner" | "thin" | "thick" | "thicker" | undefined;
|
|
7924
7929
|
};
|
|
7930
|
+
clipPath?: csstype.Property.ClipPath | {
|
|
7931
|
+
readonly base?: csstype.Property.ClipPath | undefined;
|
|
7932
|
+
readonly xs?: csstype.Property.ClipPath | undefined;
|
|
7933
|
+
readonly s?: csstype.Property.ClipPath | undefined;
|
|
7934
|
+
readonly m?: csstype.Property.ClipPath | undefined;
|
|
7935
|
+
readonly l?: csstype.Property.ClipPath | undefined;
|
|
7936
|
+
readonly xl?: csstype.Property.ClipPath | undefined;
|
|
7937
|
+
} | undefined;
|
|
7938
|
+
opacity?: csstype.Property.Opacity | {
|
|
7939
|
+
readonly base?: csstype.Property.Opacity | undefined;
|
|
7940
|
+
readonly xs?: csstype.Property.Opacity | undefined;
|
|
7941
|
+
readonly s?: csstype.Property.Opacity | undefined;
|
|
7942
|
+
readonly m?: csstype.Property.Opacity | undefined;
|
|
7943
|
+
readonly l?: csstype.Property.Opacity | undefined;
|
|
7944
|
+
readonly xl?: csstype.Property.Opacity | undefined;
|
|
7945
|
+
} | undefined;
|
|
7925
7946
|
pointerEvents?: csstype.Property.PointerEvents | {
|
|
7926
7947
|
readonly base?: csstype.Property.PointerEvents | undefined;
|
|
7927
7948
|
readonly xs?: csstype.Property.PointerEvents | undefined;
|
|
@@ -7930,6 +7951,30 @@ declare const TooltipInteractiveWrapper: styled_components.StyledComponent<"div"
|
|
|
7930
7951
|
readonly l?: csstype.Property.PointerEvents | undefined;
|
|
7931
7952
|
readonly xl?: csstype.Property.PointerEvents | undefined;
|
|
7932
7953
|
} | undefined;
|
|
7954
|
+
transform?: csstype.Property.Transform | {
|
|
7955
|
+
readonly base?: csstype.Property.Transform | undefined;
|
|
7956
|
+
readonly xs?: csstype.Property.Transform | undefined;
|
|
7957
|
+
readonly s?: csstype.Property.Transform | undefined;
|
|
7958
|
+
readonly m?: csstype.Property.Transform | undefined;
|
|
7959
|
+
readonly l?: csstype.Property.Transform | undefined;
|
|
7960
|
+
readonly xl?: csstype.Property.Transform | undefined;
|
|
7961
|
+
} | undefined;
|
|
7962
|
+
transformOrigin?: csstype.Property.TransformOrigin<string | number> | {
|
|
7963
|
+
readonly base?: csstype.Property.TransformOrigin<string | number> | undefined;
|
|
7964
|
+
readonly xs?: csstype.Property.TransformOrigin<string | number> | undefined;
|
|
7965
|
+
readonly s?: csstype.Property.TransformOrigin<string | number> | undefined;
|
|
7966
|
+
readonly m?: csstype.Property.TransformOrigin<string | number> | undefined;
|
|
7967
|
+
readonly l?: csstype.Property.TransformOrigin<string | number> | undefined;
|
|
7968
|
+
readonly xl?: csstype.Property.TransformOrigin<string | number> | undefined;
|
|
7969
|
+
} | undefined;
|
|
7970
|
+
visibility?: csstype.Property.Visibility | {
|
|
7971
|
+
readonly base?: csstype.Property.Visibility | undefined;
|
|
7972
|
+
readonly xs?: csstype.Property.Visibility | undefined;
|
|
7973
|
+
readonly s?: csstype.Property.Visibility | undefined;
|
|
7974
|
+
readonly m?: csstype.Property.Visibility | undefined;
|
|
7975
|
+
readonly l?: csstype.Property.Visibility | undefined;
|
|
7976
|
+
readonly xl?: csstype.Property.Visibility | undefined;
|
|
7977
|
+
} | undefined;
|
|
7933
7978
|
backgroundPosition?: csstype.Property.BackgroundPosition<string | number> | {
|
|
7934
7979
|
readonly base?: csstype.Property.BackgroundPosition<string | number> | undefined;
|
|
7935
7980
|
readonly xs?: csstype.Property.BackgroundPosition<string | number> | undefined;
|
|
@@ -2937,7 +2937,7 @@ var getAllProps = function getAllProps(props, breakpoint) {
|
|
|
2937
2937
|
var hasBorderLeft = props.borderLeft || props.borderLeftColor || props.borderLeftWidth;
|
|
2938
2938
|
var hasBorderTop = props.borderTop || props.borderTopColor || props.borderTopWidth;
|
|
2939
2939
|
var hasBorderBottom = props.borderBottom || props.borderBottomColor || props.borderBottomWidth;
|
|
2940
|
-
return _objectSpread$6h(_objectSpread$6h({
|
|
2940
|
+
return _objectSpread$6h(_objectSpread$6h(_objectSpread$6h({
|
|
2941
2941
|
display: getResponsiveValue(props.display, breakpoint),
|
|
2942
2942
|
overflow: getResponsiveValue(props.overflow, breakpoint),
|
|
2943
2943
|
overflowX: getResponsiveValue(props.overflowX, breakpoint),
|
|
@@ -3038,9 +3038,15 @@ var getAllProps = function getAllProps(props, breakpoint) {
|
|
|
3038
3038
|
touchAction: getResponsiveValue(props.touchAction, breakpoint),
|
|
3039
3039
|
userSelect: getResponsiveValue(props.userSelect, breakpoint),
|
|
3040
3040
|
pointerEvents: getResponsiveValue(props.pointerEvents),
|
|
3041
|
-
opacity: getResponsiveValue(props.opacity, breakpoint)
|
|
3041
|
+
opacity: getResponsiveValue(props.opacity, breakpoint),
|
|
3042
|
+
visibility: getResponsiveValue(props.visibility, breakpoint)
|
|
3042
3043
|
}, !isReactNative$4() && {
|
|
3043
3044
|
boxShadow: getElevationValue(props.elevation, props.theme, breakpoint)
|
|
3045
|
+
}), {}, {
|
|
3046
|
+
// Polygon support
|
|
3047
|
+
transform: getResponsiveValue(props.transform, breakpoint),
|
|
3048
|
+
transformOrigin: getResponsiveValue(props.transformOrigin, breakpoint),
|
|
3049
|
+
clipPath: getResponsiveValue(props.clipPath, breakpoint)
|
|
3044
3050
|
});
|
|
3045
3051
|
};
|
|
3046
3052
|
|
|
@@ -3698,6 +3704,8 @@ var makeBoxProps = function makeBoxProps(props) {
|
|
|
3698
3704
|
backgroundOrigin: props.backgroundOrigin,
|
|
3699
3705
|
backgroundRepeat: props.backgroundRepeat,
|
|
3700
3706
|
elevation: props.elevation,
|
|
3707
|
+
opacity: props.opacity,
|
|
3708
|
+
visibility: props.visibility,
|
|
3701
3709
|
// Border
|
|
3702
3710
|
borderWidth: props.borderWidth,
|
|
3703
3711
|
borderColor: props.borderColor,
|
|
@@ -3714,6 +3722,10 @@ var makeBoxProps = function makeBoxProps(props) {
|
|
|
3714
3722
|
borderTopRightRadius: props.borderTopRightRadius,
|
|
3715
3723
|
borderBottomRightRadius: props.borderBottomRightRadius,
|
|
3716
3724
|
borderBottomLeftRadius: props.borderBottomLeftRadius,
|
|
3725
|
+
// Polygon Support
|
|
3726
|
+
transform: props.transform,
|
|
3727
|
+
transformOrigin: props.transformOrigin,
|
|
3728
|
+
clipPath: props.clipPath,
|
|
3717
3729
|
// callbacks
|
|
3718
3730
|
onMouseEnter: props.onMouseEnter,
|
|
3719
3731
|
onMouseLeave: props.onMouseLeave,
|
|
@@ -19472,8 +19484,6 @@ var Carousel = function Carousel(_ref4) {
|
|
|
19472
19484
|
|
|
19473
19485
|
// Sync the indicators with scroll
|
|
19474
19486
|
React__default.useEffect(function () {
|
|
19475
|
-
// do not sync indicators on desktop, we are already in sync because we can only use the next/prev buttons
|
|
19476
|
-
if (!isMobile) return;
|
|
19477
19487
|
var carouselContainer = containerRef.current;
|
|
19478
19488
|
if (!carouselContainer) return;
|
|
19479
19489
|
var handleScroll = debounce$2(function () {
|
|
@@ -22456,7 +22466,7 @@ var BaseInput = /*#__PURE__*/React__default.forwardRef(function (_ref11, ref) {
|
|
|
22456
22466
|
id: labelId,
|
|
22457
22467
|
htmlFor: inputId,
|
|
22458
22468
|
children: label
|
|
22459
|
-
}), trailingHeaderSlot === null || trailingHeaderSlot === void 0 ? void 0 : trailingHeaderSlot(inputValue)]
|
|
22469
|
+
}), trailingHeaderSlot === null || trailingHeaderSlot === void 0 ? void 0 : trailingHeaderSlot(value !== null && value !== void 0 ? value : inputValue)]
|
|
22460
22470
|
}), /*#__PURE__*/jsxs(BaseInputWrapper, {
|
|
22461
22471
|
isDropdownTrigger: isDropdownTrigger,
|
|
22462
22472
|
isTextArea: isTextArea,
|
|
@@ -22568,7 +22578,7 @@ var BaseInput = /*#__PURE__*/React__default.forwardRef(function (_ref11, ref) {
|
|
|
22568
22578
|
helpTextId: helpTextId,
|
|
22569
22579
|
errorTextId: errorTextId,
|
|
22570
22580
|
successTextId: successTextId
|
|
22571
|
-
}), trailingFooterSlot === null || trailingFooterSlot === void 0 ? void 0 : trailingFooterSlot(inputValue)]
|
|
22581
|
+
}), trailingFooterSlot === null || trailingFooterSlot === void 0 ? void 0 : trailingFooterSlot(value !== null && value !== void 0 ? value : inputValue)]
|
|
22572
22582
|
})
|
|
22573
22583
|
})]
|
|
22574
22584
|
}));
|