@hero-design/rn 8.126.0 → 8.127.1-test-auto-workflow.0

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,24 @@
1
1
  # @hero-design/rn
2
2
 
3
+ ## 8.127.1-test-auto-workflow.0
4
+
5
+ ### Patch Changes
6
+
7
+ - bump version
8
+
9
+ - Updated dependencies []:
10
+ - @hero-design/colors@8.47.4-test-auto-workflow.0
11
+ - @hero-design/react-native-month-year-picker@8.45.3-test-auto-workflow.0
12
+
13
+ ## 8.127.0
14
+
15
+ ### Minor Changes
16
+
17
+ - [#5062](https://github.com/Thinkei/hero-design/pull/5062) [`94e95b9b964949e2ad8da6f071ac0aae7b8879ae`](https://github.com/Thinkei/hero-design/commit/94e95b9b964949e2ad8da6f071ac0aae7b8879ae) Thanks [@phucdph](https://github.com/phucdph)! - [Tag] Change label font weight to medium and add neutral intent
18
+
19
+ - Tag string label font weight changed from semi-bold (600) to medium (500) across all intents.
20
+ - New `intent="neutral"`
21
+
3
22
  ## 8.126.0
4
23
 
5
24
  ### Minor Changes
package/es/index.js CHANGED
@@ -7181,10 +7181,12 @@ var getTagTheme = function getTagTheme(theme) {
7181
7181
  dangerBackground: theme.colors.errorSurface,
7182
7182
  archived: theme.colors.onArchivedSurface,
7183
7183
  archivedBackground: theme.colors.archivedSurface,
7184
- text: theme.colors.onDefaultGlobalSurface
7184
+ text: theme.colors.onDefaultGlobalSurface,
7185
+ neutral: theme.colors.onDefaultGlobalSurface,
7186
+ neutralBackground: theme.colors.neutralGlobalSurface
7185
7187
  };
7186
7188
  var fonts = {
7187
- "default": theme.fonts.neutral.semiBold
7189
+ "default": theme.fonts.neutral.medium
7188
7190
  };
7189
7191
  var fontSizes = {
7190
7192
  "default": theme.fontSizes.small
@@ -28689,7 +28691,7 @@ var Tag = function Tag(_ref) {
28689
28691
  testID: testID !== undefined ? "".concat(testID, "-left-icon") : undefined
28690
28692
  }), typeof content === 'string' ? /*#__PURE__*/React__default.createElement(StyledText$1, {
28691
28693
  themeIntent: intent,
28692
- fontWeight: "semi-bold"
28694
+ fontWeight: "medium"
28693
28695
  }, content) : content, rightIcon !== undefined && /*#__PURE__*/React__default.createElement(StyledTagIcon, {
28694
28696
  icon: rightIcon,
28695
28697
  size: "xsmall",
package/lib/index.js CHANGED
@@ -7211,10 +7211,12 @@ var getTagTheme = function getTagTheme(theme) {
7211
7211
  dangerBackground: theme.colors.errorSurface,
7212
7212
  archived: theme.colors.onArchivedSurface,
7213
7213
  archivedBackground: theme.colors.archivedSurface,
7214
- text: theme.colors.onDefaultGlobalSurface
7214
+ text: theme.colors.onDefaultGlobalSurface,
7215
+ neutral: theme.colors.onDefaultGlobalSurface,
7216
+ neutralBackground: theme.colors.neutralGlobalSurface
7215
7217
  };
7216
7218
  var fonts = {
7217
- "default": theme.fonts.neutral.semiBold
7219
+ "default": theme.fonts.neutral.medium
7218
7220
  };
7219
7221
  var fontSizes = {
7220
7222
  "default": theme.fontSizes.small
@@ -28719,7 +28721,7 @@ var Tag = function Tag(_ref) {
28719
28721
  testID: testID !== undefined ? "".concat(testID, "-left-icon") : undefined
28720
28722
  }), typeof content === 'string' ? /*#__PURE__*/React__namespace.default.createElement(StyledText$1, {
28721
28723
  themeIntent: intent,
28722
- fontWeight: "semi-bold"
28724
+ fontWeight: "medium"
28723
28725
  }, content) : content, rightIcon !== undefined && /*#__PURE__*/React__namespace.default.createElement(StyledTagIcon, {
28724
28726
  icon: rightIcon,
28725
28727
  size: "xsmall",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "8.126.0",
3
+ "version": "8.127.1-test-auto-workflow.0",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -22,14 +22,14 @@
22
22
  "dependencies": {
23
23
  "@emotion/native": "^11.9.3",
24
24
  "@emotion/react": "^11.9.3",
25
- "@hero-design/colors": "8.47.3",
25
+ "@hero-design/colors": "8.47.4-test-auto-workflow.0",
26
26
  "d3": "^7.8.5",
27
27
  "date-fns": "^2.30.0",
28
28
  "hero-editor": "^1.17.0",
29
29
  "nanoid": "^5.0.9"
30
30
  },
31
31
  "peerDependencies": {
32
- "@hero-design/react-native-month-year-picker": "^8.45.2",
32
+ "@hero-design/react-native-month-year-picker": "^8.45.3-test-auto-workflow.0",
33
33
  "@ptomasroos/react-native-multi-slider": "^2.2.2",
34
34
  "@react-native-community/datetimepicker": "^8.4.4",
35
35
  "@react-native-community/slider": "^5.0.1",
@@ -58,8 +58,8 @@
58
58
  "@eslint/compat": "^1.1.1",
59
59
  "@eslint/eslintrc": "^3.1.0",
60
60
  "@eslint/js": "^9.8.0",
61
- "@hero-design/eslint-plugin": "9.2.3",
62
- "@hero-design/react-native-month-year-picker": "^8.45.2",
61
+ "@hero-design/eslint-plugin": "9.2.4-test-auto-workflow.0",
62
+ "@hero-design/react-native-month-year-picker": "^8.45.3-test-auto-workflow.0",
63
63
  "@ptomasroos/react-native-multi-slider": "^2.2.2",
64
64
  "@react-native-community/datetimepicker": "8.4.4",
65
65
  "@react-native-community/slider": "^5.0.1",
@@ -83,12 +83,12 @@
83
83
  "babel-plugin-inline-import": "^3.0.0",
84
84
  "core-js": "^3.33.0",
85
85
  "eslint": "^8.56.0",
86
- "eslint-config-hd": "8.42.5",
86
+ "eslint-config-hd": "8.42.6-test-auto-workflow.0",
87
87
  "expo-linear-gradient": "55.0.9",
88
88
  "jest": "^29.2.1",
89
89
  "jest-environment-jsdom": "^29.2.1",
90
90
  "jest-junit": "^16.0.0",
91
- "prettier-config-hd": "8.42.4",
91
+ "prettier-config-hd": "8.42.5-test-auto-workflow.0",
92
92
  "react": "19.1.0",
93
93
  "react-dom": "19.1.0",
94
94
  "react-native": "0.81.5",
@@ -9,7 +9,8 @@ type ThemeIntent =
9
9
  | 'success'
10
10
  | 'warning'
11
11
  | 'danger'
12
- | 'archived';
12
+ | 'archived'
13
+ | 'neutral';
13
14
 
14
15
  const StyledView = styled(View)<{
15
16
  themeIntent: ThemeIntent;
@@ -17,7 +17,14 @@ interface TagProps extends ViewProps {
17
17
  /**
18
18
  * Visual intent color to apply to Tag.
19
19
  */
20
- intent?: 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'archived';
20
+ intent?:
21
+ | 'primary'
22
+ | 'info'
23
+ | 'success'
24
+ | 'warning'
25
+ | 'danger'
26
+ | 'archived'
27
+ | 'neutral';
21
28
  /**
22
29
  * Places an icon within the tag, after the content.
23
30
  */
@@ -70,7 +77,7 @@ const Tag = ({
70
77
  />
71
78
  )}
72
79
  {typeof content === 'string' ? (
73
- <StyledText themeIntent={intent} fontWeight="semi-bold">
80
+ <StyledText themeIntent={intent} fontWeight="medium">
74
81
  {content}
75
82
  </StyledText>
76
83
  ) : (
@@ -19,10 +19,12 @@ const getTagTheme = (theme: GlobalTheme) => {
19
19
  archived: theme.colors.onArchivedSurface,
20
20
  archivedBackground: theme.colors.archivedSurface,
21
21
  text: theme.colors.onDefaultGlobalSurface,
22
+ neutral: theme.colors.onDefaultGlobalSurface,
23
+ neutralBackground: theme.colors.neutralGlobalSurface,
22
24
  };
23
25
 
24
26
  const fonts = {
25
- default: theme.fonts.neutral.semiBold,
27
+ default: theme.fonts.neutral.medium,
26
28
  };
27
29
 
28
30
  const fontSizes = {
@@ -1,5 +1,5 @@
1
1
  import { View } from 'react-native';
2
- type ThemeIntent = 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'archived';
2
+ type ThemeIntent = 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'archived' | 'neutral';
3
3
  declare const StyledView: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
4
4
  theme?: import("@emotion/react").Theme;
5
5
  as?: React.ElementType;
@@ -13,7 +13,7 @@ interface TagProps extends ViewProps {
13
13
  /**
14
14
  * Visual intent color to apply to Tag.
15
15
  */
16
- intent?: 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'archived';
16
+ intent?: 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'archived' | 'neutral';
17
17
  /**
18
18
  * Places an icon within the tag, after the content.
19
19
  */
@@ -17,6 +17,8 @@ declare const getTagTheme: (theme: GlobalTheme) => {
17
17
  archived: string;
18
18
  archivedBackground: string;
19
19
  text: string;
20
+ neutral: string;
21
+ neutralBackground: string;
20
22
  };
21
23
  fonts: {
22
24
  default: string;