@razorpay/blade 8.8.0 → 8.8.1
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 +2112 -201
- package/build/components/index.native.d.ts +1292 -200
- package/build/components/index.native.js +3 -3
- package/build/components/index.native.js.map +1 -1
- package/build/components/index.web.js +20 -27
- 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 +32 -32
- package/build/css/bankingThemeLightMobile.css +32 -32
- package/build/css/paymentThemeDarkDesktop.css +1 -1
- package/build/css/paymentThemeDarkMobile.css +1 -1
- package/build/css/paymentThemeLightDesktop.css +32 -32
- package/build/css/paymentThemeLightMobile.css +32 -32
- package/build/tokens/index.native.js +2 -2
- package/build/tokens/index.native.js.map +1 -1
- package/build/tokens/index.web.js +62 -62
- package/build/tokens/index.web.js.map +1 -1
- package/package.json +1 -1
|
@@ -5622,7 +5622,6 @@ var removeUndefinedStyledProps = function removeUndefinedStyledProps(obj) {
|
|
|
5622
5622
|
if (obj[key] !== undefined) {
|
|
5623
5623
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment, @typescript-eslint/prefer-ts-expect-error
|
|
5624
5624
|
// @ts-ignore: complex type error
|
|
5625
|
-
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
|
|
5626
5625
|
onlyDefinedStyledProps[key] = obj[key];
|
|
5627
5626
|
}
|
|
5628
5627
|
}
|
|
@@ -17277,8 +17276,7 @@ var FormLabel = function FormLabel(_ref) {
|
|
|
17277
17276
|
style: {
|
|
17278
17277
|
width: width,
|
|
17279
17278
|
flexShrink: 0,
|
|
17280
|
-
marginRight: makeSpace(theme.spacing[5])
|
|
17281
|
-
wordBreak: 'break-all'
|
|
17279
|
+
marginRight: makeSpace(theme.spacing[5])
|
|
17282
17280
|
},
|
|
17283
17281
|
id: id,
|
|
17284
17282
|
children: /*#__PURE__*/jsx(BaseBox, {
|
|
@@ -22297,14 +22295,12 @@ var BaseInputStyledAnimatedBorder = /*#__PURE__*/styled(BaseBox).withConfig({
|
|
|
22297
22295
|
componentId: "sc-2cepod-0"
|
|
22298
22296
|
})(function (_ref) {
|
|
22299
22297
|
var theme = _ref.theme,
|
|
22300
|
-
animation = _ref.animation
|
|
22301
|
-
|
|
22302
|
-
return css(["position:absolute;bottom:0;left:0;right:0;opacity:0;margin-left:", ";background-color:", ";border-width:", ";height:", ";", ""], isLabelLeftPositioned ? '136px' : 0, theme.colors.brand.primary[500], makeBorderSize(theme.border.width.thin), makeBorderSize(theme.border.width.thin), animation);
|
|
22298
|
+
animation = _ref.animation;
|
|
22299
|
+
return css(["position:absolute;bottom:0;left:0;right:0;opacity:0;background-color:", ";border-width:", ";height:", ";", ""], theme.colors.brand.primary[500], makeBorderSize(theme.border.width.thin), makeBorderSize(theme.border.width.thin), animation);
|
|
22303
22300
|
});
|
|
22304
22301
|
var BaseInputAnimatedBorder = function BaseInputAnimatedBorder(_ref2) {
|
|
22305
22302
|
var currentInteraction = _ref2.currentInteraction,
|
|
22306
|
-
validationState = _ref2.validationState
|
|
22307
|
-
isLabelLeftPositioned = _ref2.isLabelLeftPositioned;
|
|
22303
|
+
validationState = _ref2.validationState;
|
|
22308
22304
|
|
|
22309
22305
|
var _useTheme = useTheme(),
|
|
22310
22306
|
theme = _useTheme.theme;
|
|
@@ -22321,8 +22317,7 @@ var BaseInputAnimatedBorder = function BaseInputAnimatedBorder(_ref2) {
|
|
|
22321
22317
|
}
|
|
22322
22318
|
|
|
22323
22319
|
return /*#__PURE__*/jsx(BaseInputStyledAnimatedBorder, {
|
|
22324
|
-
animation: borderAnimation.current
|
|
22325
|
-
isLabelLeftPositioned: isLabelLeftPositioned
|
|
22320
|
+
animation: borderAnimation.current
|
|
22326
22321
|
});
|
|
22327
22322
|
};
|
|
22328
22323
|
|
|
@@ -22363,27 +22358,25 @@ var StyledBaseInputWrapper = /*#__PURE__*/styled(BaseBox).withConfig({
|
|
|
22363
22358
|
var BaseInputWrapper = function BaseInputWrapper(_ref) {
|
|
22364
22359
|
var children = _ref.children,
|
|
22365
22360
|
validationState = _ref.validationState,
|
|
22366
|
-
currentInteraction = _ref.currentInteraction
|
|
22367
|
-
|
|
22368
|
-
isTextArea = _ref.isTextArea,
|
|
22361
|
+
currentInteraction = _ref.currentInteraction;
|
|
22362
|
+
_ref.isLabelLeftPositioned;
|
|
22363
|
+
var isTextArea = _ref.isTextArea,
|
|
22369
22364
|
props = _objectWithoutProperties$1(_ref, _excluded$e);
|
|
22370
22365
|
|
|
22371
|
-
return /*#__PURE__*/jsxs(
|
|
22372
|
-
|
|
22373
|
-
|
|
22374
|
-
|
|
22375
|
-
|
|
22376
|
-
|
|
22377
|
-
|
|
22378
|
-
|
|
22379
|
-
|
|
22380
|
-
|
|
22381
|
-
})), /*#__PURE__*/jsx(BaseInputAnimatedBorder, {
|
|
22366
|
+
return /*#__PURE__*/jsxs(StyledBaseInputWrapper, _objectSpread$x(_objectSpread$x({
|
|
22367
|
+
display: "flex",
|
|
22368
|
+
flexDirection: "row",
|
|
22369
|
+
width: "100%",
|
|
22370
|
+
alignItems: isTextArea ? 'flex-start' : undefined,
|
|
22371
|
+
validationState: validationState,
|
|
22372
|
+
currentInteraction: currentInteraction,
|
|
22373
|
+
position: "relative"
|
|
22374
|
+
}, props), {}, {
|
|
22375
|
+
children: [children, /*#__PURE__*/jsx(BaseInputAnimatedBorder, {
|
|
22382
22376
|
currentInteraction: currentInteraction,
|
|
22383
|
-
validationState: validationState
|
|
22384
|
-
isLabelLeftPositioned: isLabelLeftPositioned
|
|
22377
|
+
validationState: validationState
|
|
22385
22378
|
})]
|
|
22386
|
-
});
|
|
22379
|
+
}));
|
|
22387
22380
|
};
|
|
22388
22381
|
|
|
22389
22382
|
var _excluded$d = ["as", "label", "labelPosition", "placeholder", "type", "defaultValue", "name", "value", "onFocus", "onChange", "onInput", "onBlur", "onSubmit", "onClick", "onKeyDown", "isDisabled", "necessityIndicator", "validationState", "errorText", "helpText", "successText", "isRequired", "leadingIcon", "prefix", "interactionElement", "suffix", "trailingIcon", "maxCharacters", "textAlign", "autoFocus", "keyboardReturnKeyType", "keyboardType", "autoCompleteSuggestionType", "trailingHeaderSlot", "trailingFooterSlot", "numberOfLines", "id", "componentName", "accessibilityLabel", "labelId", "activeDescendant", "hideLabelText", "hideFormHint", "hasPopup", "popupId", "isPopupExpanded", "shouldIgnoreBlurAnimation", "autoCapitalize", "testID"];
|