@hero-design/rn 8.136.0 → 8.136.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/CHANGELOG.md +6 -0
- package/es/index.js +4 -4
- package/eslint.config.js +3 -11
- package/lib/index.js +4 -4
- package/package.json +3 -4
- package/src/components/Progress/SegmentedBar/Legend.tsx +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @hero-design/rn
|
|
2
2
|
|
|
3
|
+
## 8.136.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#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
|
|
8
|
+
|
|
3
9
|
## 8.136.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/es/index.js
CHANGED
|
@@ -26726,14 +26726,14 @@ var ProgressSegmentedBarLegendItem = function ProgressSegmentedBarLegendItem(_re
|
|
|
26726
26726
|
color = _ref.color,
|
|
26727
26727
|
displayValue = _ref.displayValue,
|
|
26728
26728
|
testID = _ref.testID;
|
|
26729
|
-
var renderedDisplayValue = getTextComponent(displayValue, /*#__PURE__*/React__default.createElement(Typography.Caption,
|
|
26730
|
-
intent: "muted"
|
|
26731
|
-
}, displayValue));
|
|
26729
|
+
var renderedDisplayValue = getTextComponent(displayValue, /*#__PURE__*/React__default.createElement(Typography.Caption, null, displayValue));
|
|
26732
26730
|
return /*#__PURE__*/React__default.createElement(LegendItem, {
|
|
26733
26731
|
testID: testID
|
|
26734
26732
|
}, /*#__PURE__*/React__default.createElement(LegendCircle, {
|
|
26735
26733
|
themeColor: color
|
|
26736
|
-
}), /*#__PURE__*/React__default.createElement(Typography.Caption,
|
|
26734
|
+
}), /*#__PURE__*/React__default.createElement(Typography.Caption, {
|
|
26735
|
+
intent: "muted"
|
|
26736
|
+
}, "".concat(title, ":")), renderedDisplayValue ? /*#__PURE__*/React__default.createElement(LegendValue, null, renderedDisplayValue) : null);
|
|
26737
26737
|
};
|
|
26738
26738
|
|
|
26739
26739
|
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
|
@@ -26755,14 +26755,14 @@ var ProgressSegmentedBarLegendItem = function ProgressSegmentedBarLegendItem(_re
|
|
|
26755
26755
|
color = _ref.color,
|
|
26756
26756
|
displayValue = _ref.displayValue,
|
|
26757
26757
|
testID = _ref.testID;
|
|
26758
|
-
var renderedDisplayValue = getTextComponent(displayValue, /*#__PURE__*/React__namespace.default.createElement(Typography.Caption,
|
|
26759
|
-
intent: "muted"
|
|
26760
|
-
}, displayValue));
|
|
26758
|
+
var renderedDisplayValue = getTextComponent(displayValue, /*#__PURE__*/React__namespace.default.createElement(Typography.Caption, null, displayValue));
|
|
26761
26759
|
return /*#__PURE__*/React__namespace.default.createElement(LegendItem, {
|
|
26762
26760
|
testID: testID
|
|
26763
26761
|
}, /*#__PURE__*/React__namespace.default.createElement(LegendCircle, {
|
|
26764
26762
|
themeColor: color
|
|
26765
|
-
}), /*#__PURE__*/React__namespace.default.createElement(Typography.Caption,
|
|
26763
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Typography.Caption, {
|
|
26764
|
+
intent: "muted"
|
|
26765
|
+
}, "".concat(title, ":")), renderedDisplayValue ? /*#__PURE__*/React__namespace.default.createElement(LegendValue, null, renderedDisplayValue) : null);
|
|
26766
26766
|
};
|
|
26767
26767
|
|
|
26768
26768
|
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.1",
|
|
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",
|
|
@@ -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}
|