@razorpay/blade 5.0.1 → 5.1.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/CHANGELOG.md +8 -0
- package/build/components/index.d.ts +7 -5
- package/build/components/index.native.d.ts +7 -5
- package/build/components/index.native.js +5 -5
- package/build/components/index.native.js.map +1 -1
- package/build/components/index.web.js +29 -31
- 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
|
@@ -5726,10 +5726,10 @@ var buttonIconOnlySizeToIconSizeMap = {
|
|
|
5726
5726
|
large: 'xlarge'
|
|
5727
5727
|
};
|
|
5728
5728
|
var buttonSizeToSpinnerSizeMap = {
|
|
5729
|
-
xsmall: '
|
|
5730
|
-
small: '
|
|
5731
|
-
medium: '
|
|
5732
|
-
large: '
|
|
5729
|
+
xsmall: 'medium',
|
|
5730
|
+
small: 'large',
|
|
5731
|
+
medium: 'large',
|
|
5732
|
+
large: 'xlarge'
|
|
5733
5733
|
};
|
|
5734
5734
|
var textPadding = {
|
|
5735
5735
|
xsmall: 2,
|
|
@@ -5867,9 +5867,9 @@ function destroyAnnouncer() {
|
|
|
5867
5867
|
}
|
|
5868
5868
|
|
|
5869
5869
|
var dimensions = {
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
|
|
5870
|
+
medium: 16,
|
|
5871
|
+
large: 20,
|
|
5872
|
+
xlarge: 24
|
|
5873
5873
|
};
|
|
5874
5874
|
var motion = {
|
|
5875
5875
|
duration: 'duration.2xgentle',
|
|
@@ -5904,7 +5904,7 @@ var SpinningBox = /*#__PURE__*/styled(Box).withConfig({
|
|
|
5904
5904
|
componentId: "zswieh-0"
|
|
5905
5905
|
})(function (_ref) {
|
|
5906
5906
|
var theme = _ref.theme;
|
|
5907
|
-
return css(["width:max-content;display:inline-flex;animation:", " ", " ", " infinite;"], rotate, makeMotionTime(get_1(theme.motion, motion.duration)), get_1(theme.motion, motion.easing));
|
|
5907
|
+
return css(["padding:1px;width:max-content;display:inline-flex;animation:", " ", " ", " infinite;"], rotate, makeMotionTime(get_1(theme.motion, motion.duration)), get_1(theme.motion, motion.easing));
|
|
5908
5908
|
});
|
|
5909
5909
|
|
|
5910
5910
|
function ownKeys$p(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; }
|
|
@@ -9103,6 +9103,25 @@ var CharacterCounter = function CharacterCounter(_ref) {
|
|
|
9103
9103
|
});
|
|
9104
9104
|
};
|
|
9105
9105
|
|
|
9106
|
+
var Spinner = function Spinner(_ref) {
|
|
9107
|
+
var _ref2;
|
|
9108
|
+
|
|
9109
|
+
var label = _ref.label,
|
|
9110
|
+
labelPosition = _ref.labelPosition,
|
|
9111
|
+
accessibilityLabel = _ref.accessibilityLabel,
|
|
9112
|
+
_ref$contrast = _ref.contrast,
|
|
9113
|
+
contrast = _ref$contrast === void 0 ? 'low' : _ref$contrast,
|
|
9114
|
+
_ref$size = _ref.size,
|
|
9115
|
+
size = _ref$size === void 0 ? 'medium' : _ref$size;
|
|
9116
|
+
return /*#__PURE__*/jsx(BaseSpinner, {
|
|
9117
|
+
label: label,
|
|
9118
|
+
labelPosition: labelPosition,
|
|
9119
|
+
accessibilityLabel: (_ref2 = accessibilityLabel !== null && accessibilityLabel !== void 0 ? accessibilityLabel : label) !== null && _ref2 !== void 0 ? _ref2 : 'Loading',
|
|
9120
|
+
contrast: contrast,
|
|
9121
|
+
size: size
|
|
9122
|
+
});
|
|
9123
|
+
};
|
|
9124
|
+
|
|
9106
9125
|
function ownKeys$6(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; }
|
|
9107
9126
|
|
|
9108
9127
|
function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -9218,10 +9237,8 @@ var TextInput = function TextInput(_ref2) {
|
|
|
9218
9237
|
|
|
9219
9238
|
var renderInteractionElement = function renderInteractionElement() {
|
|
9220
9239
|
if (isLoading) {
|
|
9221
|
-
|
|
9222
|
-
|
|
9223
|
-
size: "medium",
|
|
9224
|
-
color: "surface.text.subtle.lowContrast"
|
|
9240
|
+
return /*#__PURE__*/jsx(Spinner, {
|
|
9241
|
+
accessibilityLabel: "Loading Content"
|
|
9225
9242
|
});
|
|
9226
9243
|
}
|
|
9227
9244
|
|
|
@@ -10659,25 +10676,6 @@ var RadioGroup = function RadioGroup(_ref) {
|
|
|
10659
10676
|
});
|
|
10660
10677
|
};
|
|
10661
10678
|
|
|
10662
|
-
var Spinner = function Spinner(_ref) {
|
|
10663
|
-
var _ref2;
|
|
10664
|
-
|
|
10665
|
-
var label = _ref.label,
|
|
10666
|
-
labelPosition = _ref.labelPosition,
|
|
10667
|
-
accessibilityLabel = _ref.accessibilityLabel,
|
|
10668
|
-
_ref$contrast = _ref.contrast,
|
|
10669
|
-
contrast = _ref$contrast === void 0 ? 'low' : _ref$contrast,
|
|
10670
|
-
_ref$size = _ref.size,
|
|
10671
|
-
size = _ref$size === void 0 ? 'medium' : _ref$size;
|
|
10672
|
-
return /*#__PURE__*/jsx(BaseSpinner, {
|
|
10673
|
-
label: label,
|
|
10674
|
-
labelPosition: labelPosition,
|
|
10675
|
-
accessibilityLabel: (_ref2 = accessibilityLabel !== null && accessibilityLabel !== void 0 ? accessibilityLabel : label) !== null && _ref2 !== void 0 ? _ref2 : 'Loading',
|
|
10676
|
-
contrast: contrast,
|
|
10677
|
-
size: size
|
|
10678
|
-
});
|
|
10679
|
-
};
|
|
10680
|
-
|
|
10681
10679
|
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; }
|
|
10682
10680
|
|
|
10683
10681
|
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; }
|