@razorpay/blade 3.5.1 → 3.5.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/CHANGELOG.md +12 -0
- package/build/components/index.native.js +1 -1
- package/build/components/index.native.js.map +1 -1
- package/build/components/index.web.js +154 -265
- 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/build/tokens/index.web.js +13 -36
- package/build/tokens/index.web.js.map +1 -1
- package/build/utils/index.web.js +27 -82
- package/build/utils/index.web.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,23 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import _Object$getOwnPropertyDescriptor from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor';
|
|
5
|
-
import _forEachInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/for-each';
|
|
6
|
-
import _Object$getOwnPropertyDescriptors from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors';
|
|
7
|
-
import _Object$defineProperties from '@babel/runtime-corejs3/core-js-stable/object/define-properties';
|
|
8
|
-
import _Object$defineProperty from '@babel/runtime-corejs3/core-js-stable/object/define-property';
|
|
9
|
-
import _defineProperty$1 from '@babel/runtime-corejs3/helpers/defineProperty';
|
|
10
|
-
import _typeof from '@babel/runtime-corejs3/helpers/typeof';
|
|
11
|
-
import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
12
|
-
import _Object$entries2 from '@babel/runtime-corejs3/core-js-stable/object/entries';
|
|
13
|
-
import _Array$isArray from '@babel/runtime-corejs3/core-js-stable/array/is-array';
|
|
14
|
-
import _concatInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/concat';
|
|
15
|
-
import _JSON$stringify from '@babel/runtime-corejs3/core-js-stable/json/stringify';
|
|
16
|
-
import _everyInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/every';
|
|
17
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/map';
|
|
18
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/slice';
|
|
19
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
20
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/find';
|
|
1
|
+
import _defineProperty$1 from '@babel/runtime/helpers/defineProperty';
|
|
2
|
+
import _typeof from '@babel/runtime/helpers/typeof';
|
|
3
|
+
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
21
4
|
import 'react';
|
|
22
5
|
|
|
23
6
|
var opacities = {
|
|
@@ -331,9 +314,9 @@ var fontFamily = {
|
|
|
331
314
|
code: 'monospace'
|
|
332
315
|
};
|
|
333
316
|
|
|
334
|
-
function ownKeys$1(object, enumerableOnly) { var keys =
|
|
317
|
+
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
335
318
|
|
|
336
|
-
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var
|
|
319
|
+
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
337
320
|
var fontWeight = {
|
|
338
321
|
regular: 400,
|
|
339
322
|
bold: 700
|
|
@@ -3918,7 +3901,7 @@ var isPartialMatchObjectKeys = function isPartialMatchObjectKeys(_ref) {
|
|
|
3918
3901
|
var innerObjectToMatch = _ref2.innerObjectToMatch,
|
|
3919
3902
|
innerObjectToInspect = _ref2.innerObjectToInspect;
|
|
3920
3903
|
|
|
3921
|
-
for (var _i = 0, _Object$entries =
|
|
3904
|
+
for (var _i = 0, _Object$entries = Object.entries(innerObjectToMatch); _i < _Object$entries.length; _i++) {
|
|
3922
3905
|
var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
|
|
3923
3906
|
key = _Object$entries$_i[0],
|
|
3924
3907
|
valueToMatch = _Object$entries$_i[1];
|
|
@@ -3926,12 +3909,10 @@ var isPartialMatchObjectKeys = function isPartialMatchObjectKeys(_ref) {
|
|
|
3926
3909
|
var valueToInspect = innerObjectToInspect[key];
|
|
3927
3910
|
|
|
3928
3911
|
if (innerObjectToInspect.hasOwnProperty(key)) {
|
|
3929
|
-
if (valueToMatch === null || valueToMatch === undefined || valueToMatch === '' ||
|
|
3912
|
+
if (valueToMatch === null || valueToMatch === undefined || valueToMatch === '' || Array.isArray(valueToMatch) || // the condition checks if the "valueToMatch" is not of type object then "valueToMatch" type should be same as type of "valueToInspect"
|
|
3930
3913
|
!(valueToMatch instanceof Object) && _typeof(valueToMatch) !== _typeof(valueToInspect)) {
|
|
3931
|
-
var _context, _context2;
|
|
3932
|
-
|
|
3933
3914
|
// this is an invalid case, so we log error
|
|
3934
|
-
console.error(
|
|
3915
|
+
console.error("[isPartialMatchObjectKeys]: Unexpected value: ".concat(JSON.stringify(valueToMatch), " of type ").concat(_typeof(valueToMatch), " for key: ").concat(key));
|
|
3935
3916
|
matchResponses.push(false);
|
|
3936
3917
|
}
|
|
3937
3918
|
|
|
@@ -3948,10 +3929,8 @@ var isPartialMatchObjectKeys = function isPartialMatchObjectKeys(_ref) {
|
|
|
3948
3929
|
});
|
|
3949
3930
|
}
|
|
3950
3931
|
} else {
|
|
3951
|
-
var _context3;
|
|
3952
|
-
|
|
3953
3932
|
// the key doesn't exist in the innerObjectToMatch, so we log error
|
|
3954
|
-
console.error(
|
|
3933
|
+
console.error("[isPartialMatchObjectKeys]: ".concat(key, " doesn't exist in ").concat(JSON.stringify(innerObjectToInspect, null, 2)));
|
|
3955
3934
|
matchResponses.push(false);
|
|
3956
3935
|
}
|
|
3957
3936
|
}
|
|
@@ -3961,12 +3940,12 @@ var isPartialMatchObjectKeys = function isPartialMatchObjectKeys(_ref) {
|
|
|
3961
3940
|
innerObjectToMatch: objectToMatch,
|
|
3962
3941
|
innerObjectToInspect: objectToInspect
|
|
3963
3942
|
});
|
|
3964
|
-
return
|
|
3943
|
+
return matchResponses.every(Boolean);
|
|
3965
3944
|
};
|
|
3966
3945
|
|
|
3967
|
-
function ownKeys(object, enumerableOnly) { var keys =
|
|
3946
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3968
3947
|
|
|
3969
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var
|
|
3948
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3970
3949
|
|
|
3971
3950
|
var accessibilityValue = {
|
|
3972
3951
|
valueMax: 'aria-valuemax',
|
|
@@ -4027,9 +4006,7 @@ _objectSpread(_objectSpread(_objectSpread({}, accessibilityState), accessibility
|
|
|
4027
4006
|
});
|
|
4028
4007
|
|
|
4029
4008
|
var makeBezier = function makeBezier(x1, y1, x2, y2) {
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
return _concatInstanceProperty(_context = _concatInstanceProperty(_context2 = _concatInstanceProperty(_context3 = "cubic-bezier(".concat(x1, ", ")).call(_context3, y1, ", ")).call(_context2, x2, ", ")).call(_context, y2, ")");
|
|
4009
|
+
return "cubic-bezier(".concat(x1, ", ").concat(y1, ", ").concat(x2, ", ").concat(y2, ")");
|
|
4033
4010
|
};
|
|
4034
4011
|
|
|
4035
4012
|
var baseAssignValue = _baseAssignValue,
|