@hero-design/rn-work-uikit 1.13.2-test-dispatch-downstream.0 → 1.13.3-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,44 +1,59 @@
1
1
  # @hero-design/rn-work-uikit
2
2
 
3
- ## 1.13.2-test-dispatch-downstream.0
3
+ ## 1.13.3-test-auto-workflow.0
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - test
7
+ - bump version
8
8
 
9
9
  - Updated dependencies []:
10
- - @hero-design/react-native-month-year-picker@8.45.3-test-dispatch-downstream.0
11
- - @hero-design/rn@8.123.1-test-dispatch-downstream.0
10
+ - @hero-design/react-native-month-year-picker@8.45.3-test-auto-workflow.0
11
+ - @hero-design/rn@8.124.1-test-auto-workflow.0
12
12
 
13
- ## 1.12.4-test-dispatch-downstream.2
13
+ ## 1.13.2
14
14
 
15
15
  ### Patch Changes
16
16
 
17
- - test dispatch workflow
17
+ - Updated dependencies [[`7d35f92916acd42649e79f2f276dff3cf94a5a03`](https://github.com/Thinkei/hero-design/commit/7d35f92916acd42649e79f2f276dff3cf94a5a03)]:
18
+ - @hero-design/rn@8.124.0
18
19
 
19
- - Updated dependencies []:
20
- - @hero-design/react-native-month-year-picker@8.45.3-test-dispatch-downstream.2
21
- - @hero-design/rn@8.120.2-test-dispatch-downstream.2
22
-
23
- ## 1.12.4-test-dispatch-downstream.1
20
+ ## 1.13.1
24
21
 
25
22
  ### Patch Changes
26
23
 
27
- - test
24
+ - Updated dependencies [[`65005affb073e5de21dbe2511a8ef42251aa21ca`](https://github.com/Thinkei/hero-design/commit/65005affb073e5de21dbe2511a8ef42251aa21ca)]:
25
+ - @hero-design/rn@8.123.0
28
26
 
29
- - Updated dependencies []:
30
- - @hero-design/react-native-month-year-picker@8.45.3-test-dispatch-downstream.1
31
- - @hero-design/rn@8.120.2-test-dispatch-downstream.1
27
+ ## 1.13.0
28
+
29
+ ### Minor Changes
30
+
31
+ - [#4992](https://github.com/Thinkei/hero-design/pull/4992) [`87bd2b334180c9908328a7cdd2e686694dae1d7d`](https://github.com/Thinkei/hero-design/commit/87bd2b334180c9908328a7cdd2e686694dae1d7d) Thanks [@haudao-eh](https://github.com/haudao-eh)! - [Avatar] Add `neutral` intent to Avatar. `neutral` is now the default intent, replacing `primary`.
32
32
 
33
- ## 1.12.4-test-dispatch-downstream.0
33
+ **Note:** Any Avatar rendered without an explicit `intent` prop will now
34
+ display a teal-grey background instead of dark purple. Add `intent="primary"`
35
+ to preserve the previous appearance.
34
36
 
35
37
  ### Patch Changes
36
38
 
37
- - bump test version
39
+ - Updated dependencies [[`87bd2b334180c9908328a7cdd2e686694dae1d7d`](https://github.com/Thinkei/hero-design/commit/87bd2b334180c9908328a7cdd2e686694dae1d7d)]:
40
+ - @hero-design/rn@8.122.0
38
41
 
39
- - Updated dependencies []:
40
- - @hero-design/react-native-month-year-picker@8.45.3-test-dispatch-downstream.0
41
- - @hero-design/rn@8.120.2-test-dispatch-downstream.0
42
+ ## 1.12.5
43
+
44
+ ### Patch Changes
45
+
46
+ - [#4963](https://github.com/Thinkei/hero-design/pull/4963) [`8921509e3c0271abe2c0df377316fc5ded154a05`](https://github.com/Thinkei/hero-design/commit/8921509e3c0271abe2c0df377316fc5ded154a05) Thanks [@ttkien](https://github.com/ttkien)! - [Icon] add 'ai' intent
47
+
48
+ - Updated dependencies [[`4caa323ce232ef982bab8e3845aadc6b493a3804`](https://github.com/Thinkei/hero-design/commit/4caa323ce232ef982bab8e3845aadc6b493a3804), [`8921509e3c0271abe2c0df377316fc5ded154a05`](https://github.com/Thinkei/hero-design/commit/8921509e3c0271abe2c0df377316fc5ded154a05), [`654135e5178e2ab74dc6e9d80edb7bdab60275d7`](https://github.com/Thinkei/hero-design/commit/654135e5178e2ab74dc6e9d80edb7bdab60275d7)]:
49
+ - @hero-design/rn@8.121.0
50
+
51
+ ## 1.12.4
52
+
53
+ ### Patch Changes
54
+
55
+ - Updated dependencies [[`78197ad0e210611eedab518bf088e7ee1c872fc3`](https://github.com/Thinkei/hero-design/commit/78197ad0e210611eedab518bf088e7ee1c872fc3)]:
56
+ - @hero-design/rn@8.120.2
42
57
 
43
58
  ## 1.12.3
44
59
 
package/CLAUDE.md ADDED
@@ -0,0 +1,34 @@
1
+ # @hero-design/rn-work-uikit
2
+
3
+ Work-specific React Native component library extending `@hero-design/rn` with work-focused components (TextInput, specialized themes, work-specific patterns).
4
+
5
+ ## File Organization
6
+
7
+ - Entry: `ComponentName/index.tsx`
8
+ - Component: `ComponentName/ComponentName.tsx` (if separate from index)
9
+ - Styled: `ComponentName/StyledComponentName.tsx`
10
+ - Sub-components: `ComponentName/SubComponentName.tsx` (sibling, e.g. `ErrorOrHelpText.tsx`, `FloatingLabel.tsx`)
11
+ - Types: `ComponentName/types.ts` (if needed)
12
+ - Constants: `ComponentName/constants.ts` (if needed)
13
+ - Tests: `ComponentName/__tests__/ComponentName.spec.tsx`
14
+
15
+ ## Conventions
16
+
17
+ - Prefer composing/extending core `@hero-design/rn` components
18
+ - Use `theme.__hd__.*` tokens; keep styled components out of render
19
+ - Strict TypeScript; fix lint/TS errors immediately
20
+
21
+ ## Testing
22
+
23
+ - Use `renderWithTheme()` from `'../../../../testUtils/renderWithTheme'` for theme context
24
+ - Use `@testing-library/react-native` + `jest` + `@testing-library/jest-native`
25
+ - Test with work-specific theme overrides (work color palettes, spacing)
26
+ - Handle nested styles with `StyleSheet.flatten()` when needed
27
+
28
+ ## Commands
29
+
30
+ ```bash
31
+ yarn turbo run test --filter=@hero-design/rn-work-uikit -- -- ComponentName [--watch|--updateSnapshot]
32
+ yarn workspace @hero-design/rn-work-uikit lint
33
+ yarn workspace @hero-design/rn-work-uikit type-check
34
+ ```
package/es/index.js CHANGED
@@ -7339,7 +7339,8 @@ var getTagTheme = function getTagTheme(theme) {
7339
7339
  };
7340
7340
  var space = {
7341
7341
  horizontalPadding: theme.space.small,
7342
- verticalPadding: theme.space.xsmall
7342
+ verticalPadding: theme.space.xsmall,
7343
+ iconGap: theme.space.xsmall
7343
7344
  };
7344
7345
  var radii = {
7345
7346
  "default": theme.radii.large
@@ -28873,7 +28874,10 @@ var StyledView = index$c(View)(function (_ref) {
28873
28874
  backgroundColor: theme.__hd__.tag.colors["".concat(themeIntent, "Background")],
28874
28875
  borderRadius: theme.__hd__.tag.radii["default"],
28875
28876
  paddingVertical: theme.__hd__.tag.space.verticalPadding,
28876
- paddingHorizontal: theme.__hd__.tag.space.horizontalPadding
28877
+ paddingHorizontal: theme.__hd__.tag.space.horizontalPadding,
28878
+ flexDirection: 'row',
28879
+ alignItems: 'center',
28880
+ alignSelf: 'flex-start'
28877
28881
  };
28878
28882
  });
28879
28883
  var StyledText$1 = index$c(Typography.Caption)(function (_ref2) {
@@ -28886,14 +28890,26 @@ var StyledText$1 = index$c(Typography.Caption)(function (_ref2) {
28886
28890
  textAlign: 'center'
28887
28891
  };
28888
28892
  });
28893
+ var StyledTagIcon = index$c(Icon)(function (_ref3) {
28894
+ var themeIntent = _ref3.themeIntent,
28895
+ themePosition = _ref3.themePosition,
28896
+ theme = _ref3.theme;
28897
+ return {
28898
+ color: theme.__hd__.tag.colors[themeIntent],
28899
+ marginRight: themePosition === 'left' ? theme.__hd__.tag.space.iconGap : undefined,
28900
+ marginLeft: themePosition === 'right' ? theme.__hd__.tag.space.iconGap : undefined
28901
+ };
28902
+ });
28889
28903
 
28890
- var _excluded$c = ["content", "variant", "intent", "style", "testID"];
28904
+ var _excluded$c = ["content", "icon", "variant", "intent", "rightIcon", "style", "testID"];
28891
28905
  var Tag = function Tag(_ref) {
28892
28906
  var content = _ref.content,
28907
+ icon = _ref.icon,
28893
28908
  _ref$variant = _ref.variant,
28894
28909
  variant = _ref$variant === void 0 ? 'outlined' : _ref$variant,
28895
28910
  _ref$intent = _ref.intent,
28896
28911
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
28912
+ rightIcon = _ref.rightIcon,
28897
28913
  style = _ref.style,
28898
28914
  testID = _ref.testID,
28899
28915
  nativeProps = _objectWithoutProperties(_ref, _excluded$c);
@@ -28902,10 +28918,22 @@ var Tag = function Tag(_ref) {
28902
28918
  themeIntent: intent,
28903
28919
  style: style,
28904
28920
  testID: testID
28921
+ }), icon !== undefined && /*#__PURE__*/React__default.createElement(StyledTagIcon, {
28922
+ icon: icon,
28923
+ size: "xsmall",
28924
+ themeIntent: intent,
28925
+ themePosition: "left",
28926
+ testID: testID !== undefined ? "".concat(testID, "-left-icon") : undefined
28905
28927
  }), typeof content === 'string' ? /*#__PURE__*/React__default.createElement(StyledText$1, {
28906
28928
  themeIntent: intent,
28907
28929
  fontWeight: "semi-bold"
28908
- }, content) : content);
28930
+ }, content) : content, rightIcon !== undefined && /*#__PURE__*/React__default.createElement(StyledTagIcon, {
28931
+ icon: rightIcon,
28932
+ size: "xsmall",
28933
+ themeIntent: intent,
28934
+ themePosition: "right",
28935
+ testID: testID !== undefined ? "".concat(testID, "-right-icon") : undefined
28936
+ }));
28909
28937
  };
28910
28938
 
28911
28939
  var ToolbarWrapper = index$c(View)(function (_ref) {
package/lib/index.js CHANGED
@@ -7369,7 +7369,8 @@ var getTagTheme = function getTagTheme(theme) {
7369
7369
  };
7370
7370
  var space = {
7371
7371
  horizontalPadding: theme.space.small,
7372
- verticalPadding: theme.space.xsmall
7372
+ verticalPadding: theme.space.xsmall,
7373
+ iconGap: theme.space.xsmall
7373
7374
  };
7374
7375
  var radii = {
7375
7376
  "default": theme.radii.large
@@ -28903,7 +28904,10 @@ var StyledView = index$c(reactNative.View)(function (_ref) {
28903
28904
  backgroundColor: theme.__hd__.tag.colors["".concat(themeIntent, "Background")],
28904
28905
  borderRadius: theme.__hd__.tag.radii["default"],
28905
28906
  paddingVertical: theme.__hd__.tag.space.verticalPadding,
28906
- paddingHorizontal: theme.__hd__.tag.space.horizontalPadding
28907
+ paddingHorizontal: theme.__hd__.tag.space.horizontalPadding,
28908
+ flexDirection: 'row',
28909
+ alignItems: 'center',
28910
+ alignSelf: 'flex-start'
28907
28911
  };
28908
28912
  });
28909
28913
  var StyledText$1 = index$c(Typography.Caption)(function (_ref2) {
@@ -28916,14 +28920,26 @@ var StyledText$1 = index$c(Typography.Caption)(function (_ref2) {
28916
28920
  textAlign: 'center'
28917
28921
  };
28918
28922
  });
28923
+ var StyledTagIcon = index$c(Icon)(function (_ref3) {
28924
+ var themeIntent = _ref3.themeIntent,
28925
+ themePosition = _ref3.themePosition,
28926
+ theme = _ref3.theme;
28927
+ return {
28928
+ color: theme.__hd__.tag.colors[themeIntent],
28929
+ marginRight: themePosition === 'left' ? theme.__hd__.tag.space.iconGap : undefined,
28930
+ marginLeft: themePosition === 'right' ? theme.__hd__.tag.space.iconGap : undefined
28931
+ };
28932
+ });
28919
28933
 
28920
- var _excluded$c = ["content", "variant", "intent", "style", "testID"];
28934
+ var _excluded$c = ["content", "icon", "variant", "intent", "rightIcon", "style", "testID"];
28921
28935
  var Tag = function Tag(_ref) {
28922
28936
  var content = _ref.content,
28937
+ icon = _ref.icon,
28923
28938
  _ref$variant = _ref.variant,
28924
28939
  variant = _ref$variant === void 0 ? 'outlined' : _ref$variant,
28925
28940
  _ref$intent = _ref.intent,
28926
28941
  intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
28942
+ rightIcon = _ref.rightIcon,
28927
28943
  style = _ref.style,
28928
28944
  testID = _ref.testID,
28929
28945
  nativeProps = _objectWithoutProperties(_ref, _excluded$c);
@@ -28932,10 +28948,22 @@ var Tag = function Tag(_ref) {
28932
28948
  themeIntent: intent,
28933
28949
  style: style,
28934
28950
  testID: testID
28951
+ }), icon !== undefined && /*#__PURE__*/React__namespace.default.createElement(StyledTagIcon, {
28952
+ icon: icon,
28953
+ size: "xsmall",
28954
+ themeIntent: intent,
28955
+ themePosition: "left",
28956
+ testID: testID !== undefined ? "".concat(testID, "-left-icon") : undefined
28935
28957
  }), typeof content === 'string' ? /*#__PURE__*/React__namespace.default.createElement(StyledText$1, {
28936
28958
  themeIntent: intent,
28937
28959
  fontWeight: "semi-bold"
28938
- }, content) : content);
28960
+ }, content) : content, rightIcon !== undefined && /*#__PURE__*/React__namespace.default.createElement(StyledTagIcon, {
28961
+ icon: rightIcon,
28962
+ size: "xsmall",
28963
+ themeIntent: intent,
28964
+ themePosition: "right",
28965
+ testID: testID !== undefined ? "".concat(testID, "-right-icon") : undefined
28966
+ }));
28939
28967
  };
28940
28968
 
28941
28969
  var ToolbarWrapper = index$c(reactNative.View)(function (_ref) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn-work-uikit",
3
- "version": "1.13.2-test-dispatch-downstream.0",
3
+ "version": "1.13.3-test-auto-workflow.0",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -23,11 +23,11 @@
23
23
  "dependencies": {
24
24
  "@emotion/native": "^11.9.3",
25
25
  "@emotion/react": "^11.9.3",
26
- "@hero-design/rn": "8.123.1-test-dispatch-downstream.0",
26
+ "@hero-design/rn": "8.124.1-test-auto-workflow.0",
27
27
  "hero-editor": "^1.17.0"
28
28
  },
29
29
  "peerDependencies": {
30
- "@hero-design/react-native-month-year-picker": "^8.45.3-test-dispatch-downstream.0",
30
+ "@hero-design/react-native-month-year-picker": "^8.45.3-test-auto-workflow.0",
31
31
  "@ptomasroos/react-native-multi-slider": "^2.2.2",
32
32
  "@react-native-community/datetimepicker": "^8.4.4",
33
33
  "@react-native-community/slider": " ^5.0.1",
@@ -55,8 +55,8 @@
55
55
  "@eslint/compat": "^1.1.1",
56
56
  "@eslint/eslintrc": "^3.1.0",
57
57
  "@eslint/js": "^9.8.0",
58
- "@hero-design/eslint-plugin": "9.2.4-test-dispatch-downstream.0",
59
- "@hero-design/react-native-month-year-picker": "^8.45.3-test-dispatch-downstream.0",
58
+ "@hero-design/eslint-plugin": "9.2.4-test-auto-workflow.0",
59
+ "@hero-design/react-native-month-year-picker": "^8.45.3-test-auto-workflow.0",
60
60
  "@ptomasroos/react-native-multi-slider": "^2.2.2",
61
61
  "@react-native-community/datetimepicker": "8.4.4",
62
62
  "@react-native-community/slider": "^5.0.1",
@@ -80,12 +80,12 @@
80
80
  "babel-plugin-module-resolver": "^5.0.2",
81
81
  "core-js": "^3.33.0",
82
82
  "eslint": "^8.56.0",
83
- "eslint-config-hd": "8.42.6-test-dispatch-downstream.0",
83
+ "eslint-config-hd": "8.42.6-test-auto-workflow.0",
84
84
  "expo-linear-gradient": "55.0.9",
85
85
  "jest": "^29.2.1",
86
86
  "jest-environment-jsdom": "^29.2.1",
87
87
  "jest-junit": "^16.0.0",
88
- "prettier-config-hd": "8.42.5-test-dispatch-downstream.0",
88
+ "prettier-config-hd": "8.42.5-test-auto-workflow.0",
89
89
  "react": "19.1.0",
90
90
  "react-dom": "19.1.0",
91
91
  "react-native": "0.81.5",