@hero-design/rn 8.136.2 → 8.136.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @hero-design/rn
2
2
 
3
+ ## 8.136.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#5502](https://github.com/Thinkei/hero-design/pull/5502) [`61d504b`](https://github.com/Thinkei/hero-design/commit/61d504b72a5d2631dd66d10ce0af97cbc5cd30c7) Thanks [@ttkien](https://github.com/ttkien)! - [SectionHeading] Remove redundant icon wrapper spacing when no icon is provided
8
+
3
9
  ## 8.136.2
4
10
 
5
11
  ### Patch Changes
package/es/index.js CHANGED
@@ -27467,14 +27467,14 @@ var SectionHeading = function SectionHeading(_ref) {
27467
27467
  themeSize: size,
27468
27468
  style: style,
27469
27469
  testID: testID
27470
- }, /*#__PURE__*/React__default.createElement(StyledWrapper$4, null, /*#__PURE__*/React__default.createElement(StyledIconWrapper$2, null, icon !== undefined && (typeof icon === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
27470
+ }, /*#__PURE__*/React__default.createElement(StyledWrapper$4, null, icon !== undefined && /*#__PURE__*/React__default.createElement(StyledIconWrapper$2, null, typeof icon === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
27471
27471
  icon: icon,
27472
27472
  size: ICON_SIZE_MAP[size],
27473
27473
  intent: ICON_INTENT_MAP[intent]
27474
27474
  }) : (/*#__PURE__*/React__default.cloneElement(icon, _objectSpread2({
27475
27475
  size: ICON_SIZE_MAP[size],
27476
27476
  intent: ICON_INTENT_MAP[intent]
27477
- }, icon.props))))), size === 'small' ? /*#__PURE__*/React__default.createElement(Typography.Caption, {
27477
+ }, icon.props)))), size === 'small' ? /*#__PURE__*/React__default.createElement(Typography.Caption, {
27478
27478
  intent: intent
27479
27479
  }, text) : /*#__PURE__*/React__default.createElement(Typography.Body, {
27480
27480
  variant: "small",
@@ -27521,10 +27521,8 @@ var StyledSectionSpacer = index$c(View)(function (_ref3) {
27521
27521
  height: themeCompact ? theme.__hd__.sectionList.space.sectionSpacingCompact : theme.__hd__.sectionList.space.sectionSpacing
27522
27522
  };
27523
27523
  });
27524
- var StyledSectionHeading = index$c(SectionHeading)(function (_ref4) {
27525
- var theme = _ref4.theme;
27524
+ var StyledSectionHeading = index$c(SectionHeading)(function () {
27526
27525
  return {
27527
- paddingLeft: theme.__hd__.sectionList.space.headingPaddingLeft,
27528
27526
  marginBottom: 0
27529
27527
  };
27530
27528
  });
package/lib/index.js CHANGED
@@ -27496,14 +27496,14 @@ var SectionHeading = function SectionHeading(_ref) {
27496
27496
  themeSize: size,
27497
27497
  style: style,
27498
27498
  testID: testID
27499
- }, /*#__PURE__*/React__namespace.default.createElement(StyledWrapper$4, null, /*#__PURE__*/React__namespace.default.createElement(StyledIconWrapper$2, null, icon !== undefined && (typeof icon === 'string' ? /*#__PURE__*/React__namespace.default.createElement(Icon, {
27499
+ }, /*#__PURE__*/React__namespace.default.createElement(StyledWrapper$4, null, icon !== undefined && /*#__PURE__*/React__namespace.default.createElement(StyledIconWrapper$2, null, typeof icon === 'string' ? /*#__PURE__*/React__namespace.default.createElement(Icon, {
27500
27500
  icon: icon,
27501
27501
  size: ICON_SIZE_MAP[size],
27502
27502
  intent: ICON_INTENT_MAP[intent]
27503
27503
  }) : (/*#__PURE__*/React__namespace.default.cloneElement(icon, _objectSpread2({
27504
27504
  size: ICON_SIZE_MAP[size],
27505
27505
  intent: ICON_INTENT_MAP[intent]
27506
- }, icon.props))))), size === 'small' ? /*#__PURE__*/React__namespace.default.createElement(Typography.Caption, {
27506
+ }, icon.props)))), size === 'small' ? /*#__PURE__*/React__namespace.default.createElement(Typography.Caption, {
27507
27507
  intent: intent
27508
27508
  }, text) : /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
27509
27509
  variant: "small",
@@ -27550,10 +27550,8 @@ var StyledSectionSpacer = index$c(reactNative.View)(function (_ref3) {
27550
27550
  height: themeCompact ? theme.__hd__.sectionList.space.sectionSpacingCompact : theme.__hd__.sectionList.space.sectionSpacing
27551
27551
  };
27552
27552
  });
27553
- var StyledSectionHeading = index$c(SectionHeading)(function (_ref4) {
27554
- var theme = _ref4.theme;
27553
+ var StyledSectionHeading = index$c(SectionHeading)(function () {
27555
27554
  return {
27556
- paddingLeft: theme.__hd__.sectionList.space.headingPaddingLeft,
27557
27555
  marginBottom: 0
27558
27556
  };
27559
27557
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "8.136.2",
3
+ "version": "8.136.3",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -87,9 +87,9 @@ const SectionHeading = ({
87
87
  return (
88
88
  <StyledHeading themeSize={size} style={style} testID={testID}>
89
89
  <StyledWrapper>
90
- <StyledIconWrapper>
91
- {icon !== undefined &&
92
- (typeof icon === 'string' ? (
90
+ {icon !== undefined && (
91
+ <StyledIconWrapper>
92
+ {typeof icon === 'string' ? (
93
93
  <Icon
94
94
  icon={icon}
95
95
  size={ICON_SIZE_MAP[size]}
@@ -101,8 +101,9 @@ const SectionHeading = ({
101
101
  intent: ICON_INTENT_MAP[intent],
102
102
  ...icon.props,
103
103
  })
104
- ))}
105
- </StyledIconWrapper>
104
+ )}
105
+ </StyledIconWrapper>
106
+ )}
106
107
 
107
108
  {size === 'small' ? (
108
109
  <Typography.Caption intent={intent}>{text}</Typography.Caption>
@@ -52,8 +52,7 @@ const StyledSectionSpacer = styled(View)<{ themeCompact: boolean }>(
52
52
  })
53
53
  );
54
54
 
55
- const StyledSectionHeading = styled(SectionHeading)(({ theme }) => ({
56
- paddingLeft: theme.__hd__.sectionList.space.headingPaddingLeft,
55
+ const StyledSectionHeading = styled(SectionHeading)(() => ({
57
56
  marginBottom: 0,
58
57
  }));
59
58