@razorpay/blade 10.12.0 → 10.12.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.
@@ -15194,18 +15194,18 @@ var _Checkbox = function _Checkbox(_ref, ref) {
15194
15194
  isIndeterminate: isIndeterminate,
15195
15195
  isDisabled: _isDisabled,
15196
15196
  isNegative: _hasError
15197
- }), /*#__PURE__*/jsx(SelectorTitle, {
15197
+ }), children ? /*#__PURE__*/jsx(SelectorTitle, {
15198
15198
  size: _size,
15199
15199
  isDisabled: _isDisabled,
15200
15200
  children: children
15201
- })]
15202
- }), /*#__PURE__*/jsx(BaseBox, {
15201
+ }) : null]
15202
+ }), showSupportingText ? /*#__PURE__*/jsx(BaseBox, {
15203
15203
  marginLeft: isSmall ? 'spacing.6' : 'spacing.7',
15204
- children: showSupportingText && /*#__PURE__*/jsx(SelectorSupportText, {
15204
+ children: /*#__PURE__*/jsx(SelectorSupportText, {
15205
15205
  id: ids === null || ids === void 0 ? void 0 : ids.helpTextId,
15206
15206
  children: helpText
15207
15207
  })
15208
- })]
15208
+ }) : null]
15209
15209
  })
15210
15210
  }), /*#__PURE__*/jsx(FormHint, {
15211
15211
  errorText: errorText,
@@ -15400,14 +15400,14 @@ var CheckboxGroup = function CheckboxGroup(_ref) {
15400
15400
  labelledBy: ids.labelId,
15401
15401
  componentName: "checkbox-group",
15402
15402
  testID: testID,
15403
- children: [/*#__PURE__*/jsx(FormLabel, {
15403
+ children: [label ? /*#__PURE__*/jsx(FormLabel, {
15404
15404
  as: "span",
15405
15405
  necessityIndicator: necessityIndicator,
15406
15406
  position: labelPosition,
15407
15407
  id: ids.labelId,
15408
15408
  accessibilityText: accessibilityText,
15409
15409
  children: label
15410
- }), /*#__PURE__*/jsxs(BaseBox, {
15410
+ }) : null, /*#__PURE__*/jsxs(BaseBox, {
15411
15411
  children: [/*#__PURE__*/jsx(BaseBox, {
15412
15412
  display: "flex",
15413
15413
  flexDirection: "column",
@@ -17562,11 +17562,12 @@ var Card = function Card(_ref) {
17562
17562
  return /*#__PURE__*/jsx(CardProvider, {
17563
17563
  children: /*#__PURE__*/jsx(CardRoot, _objectSpread$1h(_objectSpread$1h(_objectSpread$1h({
17564
17564
  as: as,
17565
+ display: 'block',
17566
+ borderRadius: "medium",
17565
17567
  onMouseEnter: onHover,
17566
17568
  shouldScaleOnHover: shouldScaleOnHover,
17567
17569
  isSelected: isSelected,
17568
- isFocused: isFocused,
17569
- borderRadius: "medium"
17570
+ isFocused: isFocused
17570
17571
  // on react native we need to pass onClick to root, because we don't need the LinkOverlay in RN
17571
17572
  ,
17572
17573
  onClick: isReactNative$4() ? onClick : undefined,
@@ -25437,14 +25438,14 @@ var _Radio = function _Radio(_ref, ref) {
25437
25438
  isChecked: state.isChecked,
25438
25439
  isDisabled: _isDisabled,
25439
25440
  isNegative: hasError
25440
- }), /*#__PURE__*/jsx(SelectorTitle, {
25441
+ }), children ? /*#__PURE__*/jsx(SelectorTitle, {
25441
25442
  size: _size,
25442
25443
  isDisabled: _isDisabled,
25443
25444
  children: children
25444
- })]
25445
- }), /*#__PURE__*/jsx(BaseBox, {
25445
+ }) : null]
25446
+ }), showHelpText && /*#__PURE__*/jsx(BaseBox, {
25446
25447
  marginLeft: isSmall ? 'spacing.6' : 'spacing.7',
25447
- children: showHelpText && /*#__PURE__*/jsx(SelectorSupportText, {
25448
+ children: /*#__PURE__*/jsx(SelectorSupportText, {
25448
25449
  id: ids === null || ids === void 0 ? void 0 : ids.helpTextId,
25449
25450
  children: helpText
25450
25451
  })
@@ -25598,14 +25599,14 @@ var RadioGroup = function RadioGroup(_ref) {
25598
25599
  accessibilityRole: "radiogroup",
25599
25600
  componentName: "radio-group",
25600
25601
  testID: testID,
25601
- children: [/*#__PURE__*/jsx(FormLabel, {
25602
+ children: [label ? /*#__PURE__*/jsx(FormLabel, {
25602
25603
  as: "span",
25603
25604
  necessityIndicator: necessityIndicator,
25604
25605
  position: labelPosition,
25605
25606
  id: ids.labelId,
25606
25607
  accessibilityText: accessibilityText && ",".concat(accessibilityText),
25607
25608
  children: label
25608
- }), /*#__PURE__*/jsxs(BaseBox, {
25609
+ }) : null, /*#__PURE__*/jsxs(BaseBox, {
25609
25610
  children: [/*#__PURE__*/jsx(BaseBox, {
25610
25611
  display: "flex",
25611
25612
  flexDirection: "column",