@razorpay/blade 10.4.2 → 10.4.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.development.web.js +12 -11
- package/build/components/index.development.web.js.map +1 -1
- package/build/components/index.native.js +2 -2
- package/build/components/index.native.js.map +1 -1
- package/build/components/index.production.web.js +12 -11
- 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
|
@@ -17436,7 +17436,7 @@ var LinkOverlay = /*#__PURE__*/styled.a.withConfig({
|
|
|
17436
17436
|
position: 'absolute',
|
|
17437
17437
|
top: 0,
|
|
17438
17438
|
left: 0,
|
|
17439
|
-
zIndex:
|
|
17439
|
+
zIndex: 1,
|
|
17440
17440
|
width: '100%',
|
|
17441
17441
|
height: '100%'
|
|
17442
17442
|
}
|
|
@@ -17446,6 +17446,7 @@ var LinkOverlay = /*#__PURE__*/styled.a.withConfig({
|
|
|
17446
17446
|
// used for interactive card scale down animation
|
|
17447
17447
|
var CARD_SCALE_DOWN_VALUE = 0.95;
|
|
17448
17448
|
var CARD_SCALE_UP_VALUE = 1.05;
|
|
17449
|
+
var CARD_LINK_OVERLAY_ID = 'card-link-overlay';
|
|
17449
17450
|
|
|
17450
17451
|
var useIsMobile = function useIsMobile() {
|
|
17451
17452
|
var _useTheme = useTheme(),
|
|
@@ -17464,6 +17465,7 @@ var StyledCardRoot = /*#__PURE__*/styled(BaseBox).withConfig({
|
|
|
17464
17465
|
displayName: "CardRootweb__StyledCardRoot",
|
|
17465
17466
|
componentId: "sc-1nb70ck-0"
|
|
17466
17467
|
})(function (_ref) {
|
|
17468
|
+
var _objectSpread2;
|
|
17467
17469
|
var theme = _ref.theme,
|
|
17468
17470
|
isSelected = _ref.isSelected,
|
|
17469
17471
|
isFocused = _ref.isFocused,
|
|
@@ -17486,14 +17488,13 @@ var StyledCardRoot = /*#__PURE__*/styled(BaseBox).withConfig({
|
|
|
17486
17488
|
'&:hover': {
|
|
17487
17489
|
transform: "scale(".concat(CARD_SCALE_UP_VALUE, ")")
|
|
17488
17490
|
}
|
|
17489
|
-
}), {}, {
|
|
17490
|
-
|
|
17491
|
-
|
|
17492
|
-
|
|
17493
|
-
|
|
17494
|
-
|
|
17495
|
-
|
|
17496
|
-
});
|
|
17491
|
+
}), {}, (_objectSpread2 = {}, _defineProperty$1(_objectSpread2, "& a[href]:not(a[data-blade-component=\"".concat(CARD_LINK_OVERLAY_ID, "\"])"), {
|
|
17492
|
+
zIndex: 2,
|
|
17493
|
+
position: 'relative'
|
|
17494
|
+
}), _defineProperty$1(_objectSpread2, "& button:not(button[data-blade-component=\"".concat(CARD_LINK_OVERLAY_ID, "\"])"), {
|
|
17495
|
+
zIndex: 2,
|
|
17496
|
+
position: 'relative'
|
|
17497
|
+
}), _objectSpread2));
|
|
17497
17498
|
});
|
|
17498
17499
|
var CardRoot = function CardRoot(_ref2) {
|
|
17499
17500
|
var as = _ref2.as,
|
|
@@ -17509,7 +17510,7 @@ var CardRoot = function CardRoot(_ref2) {
|
|
|
17509
17510
|
as: as
|
|
17510
17511
|
}, props), {}, {
|
|
17511
17512
|
isMobile: isMobile,
|
|
17512
|
-
isPressed: isPressed,
|
|
17513
|
+
isPressed: props.shouldScaleOnHover ? isPressed : false,
|
|
17513
17514
|
onTouchStart: function onTouchStart() {
|
|
17514
17515
|
return setIsPressed(true);
|
|
17515
17516
|
},
|
|
@@ -17576,7 +17577,7 @@ var Card = function Card(_ref) {
|
|
|
17576
17577
|
setIsFocused = _React$useState2[1];
|
|
17577
17578
|
useVerifyAllowedComponents(children, 'Card', [ComponentIds$1.CardHeader, ComponentIds$1.CardBody, ComponentIds$1.CardFooter]);
|
|
17578
17579
|
var linkOverlayProps = _objectSpread$1c(_objectSpread$1c(_objectSpread$1c({}, metaAttribute({
|
|
17579
|
-
name:
|
|
17580
|
+
name: CARD_LINK_OVERLAY_ID
|
|
17580
17581
|
})), makeAccessible({
|
|
17581
17582
|
label: accessibilityLabel,
|
|
17582
17583
|
pressed: isSelected
|