@razorpay/blade 9.0.2 → 9.0.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 +26 -13
- package/build/components/index.native.d.ts +18 -5
- package/build/components/index.native.js +2 -2
- package/build/components/index.native.js.map +1 -1
- package/build/components/index.web.js +3 -5
- 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/package.json +1 -1
|
@@ -4400,8 +4400,8 @@ function ownKeys$5Q(object, enumerableOnly) { var keys = Object.keys(object); if
|
|
|
4400
4400
|
function _objectSpread$5P(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5Q(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5Q(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4401
4401
|
|
|
4402
4402
|
var validateBackgroundString = function validateBackgroundString(stringBackgroundColorValue) {
|
|
4403
|
-
if (!stringBackgroundColorValue.startsWith('surface.background')) {
|
|
4404
|
-
throw new Error("[Blade - Box]: Oops! Currently you can only use `surface.background.*` tokens with backgroundColor property but we received `".concat(stringBackgroundColorValue, "` instead.\n\n Do you have a usecase of using other values? Create an issue on https://github.com/razorpay/blade repo to let us know and we can discuss \u2728"));
|
|
4403
|
+
if (!stringBackgroundColorValue.startsWith('surface.background') && !stringBackgroundColorValue.startsWith('brand.')) {
|
|
4404
|
+
throw new Error("[Blade - Box]: Oops! Currently you can only use `surface.background.*` and `brand.*` tokens with backgroundColor property but we received `".concat(stringBackgroundColorValue, "` instead.\n\n Do you have a usecase of using other values? Create an issue on https://github.com/razorpay/blade repo to let us know and we can discuss \u2728"));
|
|
4405
4405
|
}
|
|
4406
4406
|
};
|
|
4407
4407
|
|
|
@@ -28221,8 +28221,6 @@ var BottomSheetSurface = /*#__PURE__*/styled.div.withConfig({
|
|
|
28221
28221
|
});
|
|
28222
28222
|
|
|
28223
28223
|
var _BottomSheet = function _BottomSheet(_ref2) {
|
|
28224
|
-
var _bottomSheetAndDropdo;
|
|
28225
|
-
|
|
28226
28224
|
var isOpen = _ref2.isOpen,
|
|
28227
28225
|
onDismiss = _ref2.onDismiss,
|
|
28228
28226
|
children = _ref2.children,
|
|
@@ -28272,7 +28270,7 @@ var _BottomSheet = function _BottomSheet(_ref2) {
|
|
|
28272
28270
|
positionY = _React$useState14[0],
|
|
28273
28271
|
_setPositionY = _React$useState14[1];
|
|
28274
28272
|
|
|
28275
|
-
var _isOpen =
|
|
28273
|
+
var _isOpen = isOpen !== null && isOpen !== void 0 ? isOpen : bottomSheetAndDropdownGlue === null || bottomSheetAndDropdownGlue === void 0 ? void 0 : bottomSheetAndDropdownGlue.isOpen;
|
|
28276
28274
|
|
|
28277
28275
|
var _React$useState15 = React__default.useState(false),
|
|
28278
28276
|
_React$useState16 = _slicedToArray(_React$useState15, 2),
|