@hero-design/rn 8.136.0 → 8.136.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.
- package/CHANGELOG.md +14 -0
- package/es/index.js +10 -7
- package/eslint.config.js +3 -11
- package/lib/index.js +10 -7
- package/package.json +3 -4
- package/src/components/List/StyledBasicListItem.tsx +2 -1
- package/src/components/List/StyledListItem.tsx +3 -1
- package/src/components/Progress/SegmentedBar/Legend.tsx +2 -2
- package/src/theme/components/list.ts +2 -1
- package/types/theme/components/list.d.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @hero-design/rn
|
|
2
2
|
|
|
3
|
+
## 8.136.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#5486](https://github.com/Thinkei/hero-design/pull/5486) [`fc7b9e0`](https://github.com/Thinkei/hero-design/commit/fc7b9e08b575111f40c79ea3445c03e286b5cb80) Thanks [@ttkien](https://github.com/ttkien)! - [List.BasicItem] Reduce horizontal padding to smallMedium
|
|
8
|
+
|
|
9
|
+
- [#5486](https://github.com/Thinkei/hero-design/pull/5486) [`fc7b9e0`](https://github.com/Thinkei/hero-design/commit/fc7b9e08b575111f40c79ea3445c03e286b5cb80) Thanks [@ttkien](https://github.com/ttkien)! - [List.Item] Reduce horizontal padding to smallMedium
|
|
10
|
+
|
|
11
|
+
## 8.136.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#5482](https://github.com/Thinkei/hero-design/pull/5482) [`d72cd39`](https://github.com/Thinkei/hero-design/commit/d72cd3990c6e614cdc1358b5811b4461b317ae29) Thanks [@ttkien](https://github.com/ttkien)! - [Progress.SegmentedBar] Fix muted intent applied to wrong legend text
|
|
16
|
+
|
|
3
17
|
## 8.136.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/es/index.js
CHANGED
|
@@ -6478,7 +6478,8 @@ var getListTheme = function getListTheme(theme) {
|
|
|
6478
6478
|
}
|
|
6479
6479
|
};
|
|
6480
6480
|
var space = {
|
|
6481
|
-
|
|
6481
|
+
listItemContainerVerticalPadding: theme.space.medium,
|
|
6482
|
+
listItemContainerHorizontalPadding: theme.space.smallMedium,
|
|
6482
6483
|
leadingStatusMarginRight: theme.space.small,
|
|
6483
6484
|
prefixContainerMarginRight: theme.space.small,
|
|
6484
6485
|
suffixContainerMarginLeft: theme.space.small,
|
|
@@ -15743,7 +15744,8 @@ var StyledListItemContainer$1 = index$c(TouchableHighlight)(function (_ref) {
|
|
|
15743
15744
|
var sharedStyles = {
|
|
15744
15745
|
flexDirection: 'row',
|
|
15745
15746
|
backgroundColor: themeSelected ? theme.__hd__.list.colors.checkedListItemContainerBackground : theme.__hd__.list.colors.listItemContainerBackground,
|
|
15746
|
-
|
|
15747
|
+
paddingVertical: theme.__hd__.list.space.listItemContainerVerticalPadding,
|
|
15748
|
+
paddingHorizontal: theme.__hd__.list.space.listItemContainerHorizontalPadding,
|
|
15747
15749
|
borderRadius: theme.__hd__.list.radii.item
|
|
15748
15750
|
};
|
|
15749
15751
|
switch (themeVariant) {
|
|
@@ -15873,7 +15875,8 @@ var StyledListItemContainer = index$c(TouchableHighlight)(function (_ref3) {
|
|
|
15873
15875
|
alignItems: 'center',
|
|
15874
15876
|
flexDirection: 'row',
|
|
15875
15877
|
backgroundColor: themeSelected ? theme.__hd__.list.colors.checkedListItemContainerBackground : theme.__hd__.list.colors.listItemContainerBackground,
|
|
15876
|
-
|
|
15878
|
+
paddingVertical: theme.__hd__.list.space.listItemContainerVerticalPadding,
|
|
15879
|
+
paddingHorizontal: theme.__hd__.list.space.listItemContainerHorizontalPadding,
|
|
15877
15880
|
opacity: themeDisabled ? theme.__hd__.list.opacity.disabled : theme.__hd__.list.opacity.enabled,
|
|
15878
15881
|
borderRadius: theme.__hd__.list.radii.basicItem
|
|
15879
15882
|
};
|
|
@@ -26726,14 +26729,14 @@ var ProgressSegmentedBarLegendItem = function ProgressSegmentedBarLegendItem(_re
|
|
|
26726
26729
|
color = _ref.color,
|
|
26727
26730
|
displayValue = _ref.displayValue,
|
|
26728
26731
|
testID = _ref.testID;
|
|
26729
|
-
var renderedDisplayValue = getTextComponent(displayValue, /*#__PURE__*/React__default.createElement(Typography.Caption,
|
|
26730
|
-
intent: "muted"
|
|
26731
|
-
}, displayValue));
|
|
26732
|
+
var renderedDisplayValue = getTextComponent(displayValue, /*#__PURE__*/React__default.createElement(Typography.Caption, null, displayValue));
|
|
26732
26733
|
return /*#__PURE__*/React__default.createElement(LegendItem, {
|
|
26733
26734
|
testID: testID
|
|
26734
26735
|
}, /*#__PURE__*/React__default.createElement(LegendCircle, {
|
|
26735
26736
|
themeColor: color
|
|
26736
|
-
}), /*#__PURE__*/React__default.createElement(Typography.Caption,
|
|
26737
|
+
}), /*#__PURE__*/React__default.createElement(Typography.Caption, {
|
|
26738
|
+
intent: "muted"
|
|
26739
|
+
}, "".concat(title, ":")), renderedDisplayValue ? /*#__PURE__*/React__default.createElement(LegendValue, null, renderedDisplayValue) : null);
|
|
26737
26740
|
};
|
|
26738
26741
|
|
|
26739
26742
|
var StyledHeader = index$c(Box)(function (_ref) {
|
package/eslint.config.js
CHANGED
|
@@ -1,24 +1,16 @@
|
|
|
1
1
|
const heroDesign = require('@hero-design/eslint-plugin');
|
|
2
|
-
const _import = require('eslint-plugin-import');
|
|
3
|
-
const { FlatCompat } = require('@eslint/eslintrc');
|
|
4
2
|
const { includeIgnoreFile } = require('@eslint/compat');
|
|
5
3
|
const path = require('path');
|
|
6
|
-
|
|
7
|
-
const compat = new FlatCompat({
|
|
8
|
-
baseDirectory: __dirname,
|
|
9
|
-
});
|
|
4
|
+
const hdConfig = require('eslint-config-hd');
|
|
10
5
|
|
|
11
6
|
const gitignorePath = path.resolve(__dirname, '../../.gitignore');
|
|
12
7
|
|
|
13
8
|
module.exports = [
|
|
14
|
-
...
|
|
9
|
+
...hdConfig,
|
|
10
|
+
...heroDesign.configs.recommendedRn,
|
|
15
11
|
includeIgnoreFile(gitignorePath),
|
|
16
12
|
{
|
|
17
13
|
files: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx'],
|
|
18
|
-
plugins: {
|
|
19
|
-
'@hero-design': heroDesign,
|
|
20
|
-
import: _import,
|
|
21
|
-
},
|
|
22
14
|
languageOptions: {
|
|
23
15
|
parserOptions: {
|
|
24
16
|
tsconfigRootDir: __dirname,
|
package/lib/index.js
CHANGED
|
@@ -6507,7 +6507,8 @@ var getListTheme = function getListTheme(theme) {
|
|
|
6507
6507
|
}
|
|
6508
6508
|
};
|
|
6509
6509
|
var space = {
|
|
6510
|
-
|
|
6510
|
+
listItemContainerVerticalPadding: theme.space.medium,
|
|
6511
|
+
listItemContainerHorizontalPadding: theme.space.smallMedium,
|
|
6511
6512
|
leadingStatusMarginRight: theme.space.small,
|
|
6512
6513
|
prefixContainerMarginRight: theme.space.small,
|
|
6513
6514
|
suffixContainerMarginLeft: theme.space.small,
|
|
@@ -15772,7 +15773,8 @@ var StyledListItemContainer$1 = index$c(reactNative.TouchableHighlight)(function
|
|
|
15772
15773
|
var sharedStyles = {
|
|
15773
15774
|
flexDirection: 'row',
|
|
15774
15775
|
backgroundColor: themeSelected ? theme.__hd__.list.colors.checkedListItemContainerBackground : theme.__hd__.list.colors.listItemContainerBackground,
|
|
15775
|
-
|
|
15776
|
+
paddingVertical: theme.__hd__.list.space.listItemContainerVerticalPadding,
|
|
15777
|
+
paddingHorizontal: theme.__hd__.list.space.listItemContainerHorizontalPadding,
|
|
15776
15778
|
borderRadius: theme.__hd__.list.radii.item
|
|
15777
15779
|
};
|
|
15778
15780
|
switch (themeVariant) {
|
|
@@ -15902,7 +15904,8 @@ var StyledListItemContainer = index$c(reactNative.TouchableHighlight)(function (
|
|
|
15902
15904
|
alignItems: 'center',
|
|
15903
15905
|
flexDirection: 'row',
|
|
15904
15906
|
backgroundColor: themeSelected ? theme.__hd__.list.colors.checkedListItemContainerBackground : theme.__hd__.list.colors.listItemContainerBackground,
|
|
15905
|
-
|
|
15907
|
+
paddingVertical: theme.__hd__.list.space.listItemContainerVerticalPadding,
|
|
15908
|
+
paddingHorizontal: theme.__hd__.list.space.listItemContainerHorizontalPadding,
|
|
15906
15909
|
opacity: themeDisabled ? theme.__hd__.list.opacity.disabled : theme.__hd__.list.opacity.enabled,
|
|
15907
15910
|
borderRadius: theme.__hd__.list.radii.basicItem
|
|
15908
15911
|
};
|
|
@@ -26755,14 +26758,14 @@ var ProgressSegmentedBarLegendItem = function ProgressSegmentedBarLegendItem(_re
|
|
|
26755
26758
|
color = _ref.color,
|
|
26756
26759
|
displayValue = _ref.displayValue,
|
|
26757
26760
|
testID = _ref.testID;
|
|
26758
|
-
var renderedDisplayValue = getTextComponent(displayValue, /*#__PURE__*/React__namespace.default.createElement(Typography.Caption,
|
|
26759
|
-
intent: "muted"
|
|
26760
|
-
}, displayValue));
|
|
26761
|
+
var renderedDisplayValue = getTextComponent(displayValue, /*#__PURE__*/React__namespace.default.createElement(Typography.Caption, null, displayValue));
|
|
26761
26762
|
return /*#__PURE__*/React__namespace.default.createElement(LegendItem, {
|
|
26762
26763
|
testID: testID
|
|
26763
26764
|
}, /*#__PURE__*/React__namespace.default.createElement(LegendCircle, {
|
|
26764
26765
|
themeColor: color
|
|
26765
|
-
}), /*#__PURE__*/React__namespace.default.createElement(Typography.Caption,
|
|
26766
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Typography.Caption, {
|
|
26767
|
+
intent: "muted"
|
|
26768
|
+
}, "".concat(title, ":")), renderedDisplayValue ? /*#__PURE__*/React__namespace.default.createElement(LegendValue, null, renderedDisplayValue) : null);
|
|
26766
26769
|
};
|
|
26767
26770
|
|
|
26768
26771
|
var StyledHeader = index$c(Box)(function (_ref) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hero-design/rn",
|
|
3
|
-
"version": "8.136.
|
|
3
|
+
"version": "8.136.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -62,9 +62,8 @@
|
|
|
62
62
|
"@babel/runtime": "^7.29.7",
|
|
63
63
|
"@emotion/jest": "^11.11.0",
|
|
64
64
|
"@eslint/compat": "^1.1.1",
|
|
65
|
-
"@eslint/eslintrc": "^3.1.0",
|
|
66
65
|
"@eslint/js": "^9.8.0",
|
|
67
|
-
"@hero-design/eslint-plugin": "
|
|
66
|
+
"@hero-design/eslint-plugin": "10.0.0",
|
|
68
67
|
"@hero-design/react-native-month-year-picker": "^8.46.1",
|
|
69
68
|
"@ptomasroos/react-native-multi-slider": "^2.2.2",
|
|
70
69
|
"@react-native-community/datetimepicker": "8.4.4",
|
|
@@ -88,7 +87,7 @@
|
|
|
88
87
|
"@typescript-eslint/eslint-plugin": "^8.57.0",
|
|
89
88
|
"babel-plugin-inline-import": "^3.0.0",
|
|
90
89
|
"core-js": "^3.33.0",
|
|
91
|
-
"eslint": "^
|
|
90
|
+
"eslint": "^9.0.0",
|
|
92
91
|
"eslint-config-hd": "8.42.7",
|
|
93
92
|
"expo-linear-gradient": "55.0.9",
|
|
94
93
|
"jest": "^29.7.0",
|
|
@@ -20,7 +20,8 @@ const StyledListItemContainer = styled(TouchableHighlight)<{
|
|
|
20
20
|
backgroundColor: themeSelected
|
|
21
21
|
? theme.__hd__.list.colors.checkedListItemContainerBackground
|
|
22
22
|
: theme.__hd__.list.colors.listItemContainerBackground,
|
|
23
|
-
|
|
23
|
+
paddingVertical: theme.__hd__.list.space.listItemContainerVerticalPadding,
|
|
24
|
+
paddingHorizontal: theme.__hd__.list.space.listItemContainerHorizontalPadding,
|
|
24
25
|
opacity: themeDisabled
|
|
25
26
|
? theme.__hd__.list.opacity.disabled
|
|
26
27
|
: theme.__hd__.list.opacity.enabled,
|
|
@@ -18,7 +18,9 @@ const StyledListItemContainer = styled(TouchableHighlight)<{
|
|
|
18
18
|
backgroundColor: themeSelected
|
|
19
19
|
? theme.__hd__.list.colors.checkedListItemContainerBackground
|
|
20
20
|
: theme.__hd__.list.colors.listItemContainerBackground,
|
|
21
|
-
|
|
21
|
+
paddingVertical: theme.__hd__.list.space.listItemContainerVerticalPadding,
|
|
22
|
+
paddingHorizontal:
|
|
23
|
+
theme.__hd__.list.space.listItemContainerHorizontalPadding,
|
|
22
24
|
borderRadius: theme.__hd__.list.radii.item,
|
|
23
25
|
};
|
|
24
26
|
|
|
@@ -22,13 +22,13 @@ const ProgressSegmentedBarLegendItem = ({
|
|
|
22
22
|
}: ProgressSegmentedBarLegendItemProps): ReactNode => {
|
|
23
23
|
const renderedDisplayValue = getTextComponent(
|
|
24
24
|
displayValue,
|
|
25
|
-
<Typography.Caption
|
|
25
|
+
<Typography.Caption>{displayValue}</Typography.Caption>
|
|
26
26
|
);
|
|
27
27
|
|
|
28
28
|
return (
|
|
29
29
|
<LegendItem testID={testID}>
|
|
30
30
|
<LegendCircle themeColor={color} />
|
|
31
|
-
<Typography.Caption>{`${title}:`}</Typography.Caption>
|
|
31
|
+
<Typography.Caption intent="muted">{`${title}:`}</Typography.Caption>
|
|
32
32
|
{renderedDisplayValue ? (
|
|
33
33
|
<LegendValue>{renderedDisplayValue}</LegendValue>
|
|
34
34
|
) : null}
|
|
@@ -15,7 +15,8 @@ const getListTheme = (theme: GlobalTheme) => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
const space = {
|
|
18
|
-
|
|
18
|
+
listItemContainerVerticalPadding: theme.space.medium,
|
|
19
|
+
listItemContainerHorizontalPadding: theme.space.smallMedium,
|
|
19
20
|
leadingStatusMarginRight: theme.space.small,
|
|
20
21
|
prefixContainerMarginRight: theme.space.small,
|
|
21
22
|
suffixContainerMarginLeft: theme.space.small,
|
|
@@ -13,7 +13,8 @@ declare const getListTheme: (theme: GlobalTheme) => {
|
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
space: {
|
|
16
|
-
|
|
16
|
+
listItemContainerVerticalPadding: number;
|
|
17
|
+
listItemContainerHorizontalPadding: number;
|
|
17
18
|
leadingStatusMarginRight: number;
|
|
18
19
|
prefixContainerMarginRight: number;
|
|
19
20
|
suffixContainerMarginLeft: number;
|