@razorpay/blade 8.8.0 → 8.8.2

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.
@@ -5512,7 +5512,8 @@ var _ActionList = function _ActionList(_ref) {
5512
5512
  };
5513
5513
 
5514
5514
  var ActionList = /*#__PURE__*/assignWithoutSideEffects( /*#__PURE__*/React__default.memo(_ActionList), {
5515
- displayName: componentIds$1.ActionList
5515
+ displayName: componentIds$1.ActionList,
5516
+ componentId: componentIds$1.ActionList
5516
5517
  });
5517
5518
 
5518
5519
  var getBaseActionListItemStyles = function getBaseActionListItemStyles(props) {
@@ -5622,7 +5623,6 @@ var removeUndefinedStyledProps = function removeUndefinedStyledProps(obj) {
5622
5623
  if (obj[key] !== undefined) {
5623
5624
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment, @typescript-eslint/prefer-ts-expect-error
5624
5625
  // @ts-ignore: complex type error
5625
- // eslint-disable-next-line @typescript-eslint/no-dynamic-delete
5626
5626
  onlyDefinedStyledProps[key] = obj[key];
5627
5627
  }
5628
5628
  }
@@ -17277,8 +17277,7 @@ var FormLabel = function FormLabel(_ref) {
17277
17277
  style: {
17278
17278
  width: width,
17279
17279
  flexShrink: 0,
17280
- marginRight: makeSpace(theme.spacing[5]),
17281
- wordBreak: 'break-all'
17280
+ marginRight: makeSpace(theme.spacing[5])
17282
17281
  },
17283
17282
  id: id,
17284
17283
  children: /*#__PURE__*/jsx(BaseBox, {
@@ -20003,7 +20002,7 @@ var _Badge = function _Badge(_ref2) {
20003
20002
  paddingLeft: horizontalPadding$1[size],
20004
20003
  paddingTop: verticalPadding$1[size],
20005
20004
  paddingBottom: verticalPadding$1[size],
20006
- display: "flex",
20005
+ display: isReactNative$4() ? 'flex' : 'inline-flex',
20007
20006
  flexDirection: "row",
20008
20007
  justifyContent: "center",
20009
20008
  alignItems: "center",
@@ -20460,22 +20459,6 @@ var Button = /*#__PURE__*/assignWithoutSideEffects( /*#__PURE__*/React__default.
20460
20459
  componentId: 'Button'
20461
20460
  });
20462
20461
 
20463
- var getDividerStyles = function getDividerStyles(theme) {
20464
- return {
20465
- borderBottomWidth: makeSize(theme.border.width.thin),
20466
- borderBottomStyle: 'solid',
20467
- borderColor: theme.colors.surface.border.normal.lowContrast
20468
- };
20469
- };
20470
-
20471
- var Divider$1 = /*#__PURE__*/styled.div.withConfig({
20472
- displayName: "Dividerweb__Divider",
20473
- componentId: "sc-11gx34j-0"
20474
- })(function (_ref) {
20475
- var theme = _ref.theme;
20476
- return getDividerStyles(theme);
20477
- });
20478
-
20479
20462
  var verticalPadding = {
20480
20463
  small: 'spacing.0',
20481
20464
  medium: 'spacing.1',
@@ -20586,7 +20569,7 @@ var Counter = function Counter(_ref2) {
20586
20569
  paddingLeft: horizontalPadding[size],
20587
20570
  paddingTop: verticalPadding[size],
20588
20571
  paddingBottom: verticalPadding[size],
20589
- display: "flex",
20572
+ display: isReactNative$4() ? 'flex' : 'inline-flex',
20590
20573
  flexDirection: "row",
20591
20574
  justifyContent: "center",
20592
20575
  alignItems: "center",
@@ -20607,6 +20590,22 @@ var Counter = function Counter(_ref2) {
20607
20590
  }));
20608
20591
  };
20609
20592
 
20593
+ var getDividerStyles = function getDividerStyles(theme) {
20594
+ return {
20595
+ borderBottomWidth: makeSize(theme.border.width.thin),
20596
+ borderBottomStyle: 'solid',
20597
+ borderColor: theme.colors.surface.border.normal.lowContrast
20598
+ };
20599
+ };
20600
+
20601
+ var Divider$1 = /*#__PURE__*/styled.div.withConfig({
20602
+ displayName: "Dividerweb__Divider",
20603
+ componentId: "sc-11gx34j-0"
20604
+ })(function (_ref) {
20605
+ var theme = _ref.theme;
20606
+ return getDividerStyles(theme);
20607
+ });
20608
+
20610
20609
  function ownKeys$I(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; }
20611
20610
 
20612
20611
  function _objectSpread$H(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$I(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$I(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
@@ -22297,14 +22296,12 @@ var BaseInputStyledAnimatedBorder = /*#__PURE__*/styled(BaseBox).withConfig({
22297
22296
  componentId: "sc-2cepod-0"
22298
22297
  })(function (_ref) {
22299
22298
  var theme = _ref.theme,
22300
- animation = _ref.animation,
22301
- isLabelLeftPositioned = _ref.isLabelLeftPositioned;
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);
22299
+ animation = _ref.animation;
22300
+ 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
22301
  });
22304
22302
  var BaseInputAnimatedBorder = function BaseInputAnimatedBorder(_ref2) {
22305
22303
  var currentInteraction = _ref2.currentInteraction,
22306
- validationState = _ref2.validationState,
22307
- isLabelLeftPositioned = _ref2.isLabelLeftPositioned;
22304
+ validationState = _ref2.validationState;
22308
22305
 
22309
22306
  var _useTheme = useTheme(),
22310
22307
  theme = _useTheme.theme;
@@ -22321,8 +22318,7 @@ var BaseInputAnimatedBorder = function BaseInputAnimatedBorder(_ref2) {
22321
22318
  }
22322
22319
 
22323
22320
  return /*#__PURE__*/jsx(BaseInputStyledAnimatedBorder, {
22324
- animation: borderAnimation.current,
22325
- isLabelLeftPositioned: isLabelLeftPositioned
22321
+ animation: borderAnimation.current
22326
22322
  });
22327
22323
  };
22328
22324
 
@@ -22363,27 +22359,25 @@ var StyledBaseInputWrapper = /*#__PURE__*/styled(BaseBox).withConfig({
22363
22359
  var BaseInputWrapper = function BaseInputWrapper(_ref) {
22364
22360
  var children = _ref.children,
22365
22361
  validationState = _ref.validationState,
22366
- currentInteraction = _ref.currentInteraction,
22367
- isLabelLeftPositioned = _ref.isLabelLeftPositioned,
22368
- isTextArea = _ref.isTextArea,
22362
+ currentInteraction = _ref.currentInteraction;
22363
+ _ref.isLabelLeftPositioned;
22364
+ var isTextArea = _ref.isTextArea,
22369
22365
  props = _objectWithoutProperties$1(_ref, _excluded$e);
22370
22366
 
22371
- return /*#__PURE__*/jsxs(Fragment, {
22372
- children: [/*#__PURE__*/jsx(StyledBaseInputWrapper, _objectSpread$x(_objectSpread$x({
22373
- display: "flex",
22374
- flexDirection: "row",
22375
- width: "100%",
22376
- alignItems: isTextArea ? 'flex-start' : undefined,
22377
- validationState: validationState,
22378
- currentInteraction: currentInteraction
22379
- }, props), {}, {
22380
- children: children
22381
- })), /*#__PURE__*/jsx(BaseInputAnimatedBorder, {
22367
+ return /*#__PURE__*/jsxs(StyledBaseInputWrapper, _objectSpread$x(_objectSpread$x({
22368
+ display: "flex",
22369
+ flexDirection: "row",
22370
+ width: "100%",
22371
+ alignItems: isTextArea ? 'flex-start' : undefined,
22372
+ validationState: validationState,
22373
+ currentInteraction: currentInteraction,
22374
+ position: "relative"
22375
+ }, props), {}, {
22376
+ children: [children, /*#__PURE__*/jsx(BaseInputAnimatedBorder, {
22382
22377
  currentInteraction: currentInteraction,
22383
- validationState: validationState,
22384
- isLabelLeftPositioned: isLabelLeftPositioned
22378
+ validationState: validationState
22385
22379
  })]
22386
- });
22380
+ }));
22387
22381
  };
22388
22382
 
22389
22383
  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"];