@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.
@@ -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 = (_bottomSheetAndDropdo = bottomSheetAndDropdownGlue === null || bottomSheetAndDropdownGlue === void 0 ? void 0 : bottomSheetAndDropdownGlue.isOpen) !== null && _bottomSheetAndDropdo !== void 0 ? _bottomSheetAndDropdo : 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),