@hero-design/rn 7.25.0 → 7.25.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.
@@ -1,9 +1,9 @@
1
- @hero-design/rn:build: cache hit, replaying output bfd3fb2f207c1bd9
1
+ @hero-design/rn:build: cache hit, replaying output f9a4bda1fd480e90
2
2
  @hero-design/rn:build: $ yarn build:js && yarn build:types
3
3
  @hero-design/rn:build: $ rollup -c
4
4
  @hero-design/rn:build: 
5
5
  @hero-design/rn:build: src/index.ts → lib/index.js, es/index.js...
6
6
  @hero-design/rn:build: (!) Plugin replace: @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.
7
7
  @hero-design/rn:build: (!) Plugin node-resolve: preferring built-in module 'events' over local alternative at '/root/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
8
- @hero-design/rn:build: created lib/index.js, es/index.js in 26.2s
8
+ @hero-design/rn:build: created lib/index.js, es/index.js in 23.5s
9
9
  @hero-design/rn:build: $ tsc --noEmit false --emitDeclarationOnly --project tsconfig.prod.json
package/es/index.js CHANGED
@@ -6634,7 +6634,7 @@ var glyphMap = {
6634
6634
  "wallet-outlined": 59348
6635
6635
  };
6636
6636
 
6637
- var HeroIcon = createIconSet(glyphMap, 'hero-icons', 'hero-icons.ttf');
6637
+ var HeroIcon = createIconSet(glyphMap, 'hero-icons-mobile', 'hero-icons-mobile.ttf');
6638
6638
  var COLOR_INTENTS = {
6639
6639
  text: 'text',
6640
6640
  primary: 'primary',
@@ -10790,12 +10790,12 @@ function ContentNavigator(_ref) {
10790
10790
  onPress: onPreviousPress,
10791
10791
  disabled: previousDisabled,
10792
10792
  testID: "previous-icon-button"
10793
- }), typeof value === 'string' || typeof value === 'number' ? /*#__PURE__*/React.createElement(Value, {
10793
+ }), /*#__PURE__*/React.createElement(Value, {
10794
10794
  fontWeight: "semi-bold",
10795
10795
  fontSize: fontSize,
10796
10796
  onPress: onPress,
10797
10797
  testID: "content-navigator-value"
10798
- }, value) : value, /*#__PURE__*/React.createElement(CompoundButton.Icon, {
10798
+ }, value), /*#__PURE__*/React.createElement(CompoundButton.Icon, {
10799
10799
  icon: "arrow-right",
10800
10800
  onPress: onNextPress,
10801
10801
  disabled: nextDisabled,
package/lib/index.js CHANGED
@@ -6663,7 +6663,7 @@ var glyphMap = {
6663
6663
  "wallet-outlined": 59348
6664
6664
  };
6665
6665
 
6666
- var HeroIcon = reactNativeVectorIcons.createIconSet(glyphMap, 'hero-icons', 'hero-icons.ttf');
6666
+ var HeroIcon = reactNativeVectorIcons.createIconSet(glyphMap, 'hero-icons-mobile', 'hero-icons-mobile.ttf');
6667
6667
  var COLOR_INTENTS = {
6668
6668
  text: 'text',
6669
6669
  primary: 'primary',
@@ -10819,12 +10819,12 @@ function ContentNavigator(_ref) {
10819
10819
  onPress: onPreviousPress,
10820
10820
  disabled: previousDisabled,
10821
10821
  testID: "previous-icon-button"
10822
- }), typeof value === 'string' || typeof value === 'number' ? /*#__PURE__*/React__default["default"].createElement(Value, {
10822
+ }), /*#__PURE__*/React__default["default"].createElement(Value, {
10823
10823
  fontWeight: "semi-bold",
10824
10824
  fontSize: fontSize,
10825
10825
  onPress: onPress,
10826
10826
  testID: "content-navigator-value"
10827
- }, value) : value, /*#__PURE__*/React__default["default"].createElement(CompoundButton.Icon, {
10827
+ }, value), /*#__PURE__*/React__default["default"].createElement(CompoundButton.Icon, {
10828
10828
  icon: "arrow-right",
10829
10829
  onPress: onNextPress,
10830
10830
  disabled: nextDisabled,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "7.25.0",
3
+ "version": "7.25.1",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -20,7 +20,7 @@
20
20
  "dependencies": {
21
21
  "@emotion/native": "^11.9.3",
22
22
  "@emotion/react": "^11.9.3",
23
- "@hero-design/colors": "7.25.0",
23
+ "@hero-design/colors": "7.25.1",
24
24
  "date-fns": "^2.16.1",
25
25
  "events": "^3.2.0",
26
26
  "hero-editor": "^1.9.12"
@@ -58,7 +58,7 @@
58
58
  "@types/react-native": "^0.67.7",
59
59
  "@types/react-native-vector-icons": "^6.4.10",
60
60
  "babel-plugin-inline-import": "^3.0.0",
61
- "eslint-config-hd": "7.25.0",
61
+ "eslint-config-hd": "7.25.1",
62
62
  "jest": "^27.3.1",
63
63
  "react": "17.0.2",
64
64
  "react-native": "0.65.1",
@@ -72,7 +72,7 @@
72
72
  "rollup-plugin-copy": "^3.4.0",
73
73
  "rollup-plugin-flow": "^1.1.1",
74
74
  "ts-jest": "^27.0.7",
75
- "prettier-config-hd": "7.25.0",
75
+ "prettier-config-hd": "7.25.1",
76
76
  "rn-7-23-0": "npm:@hero-design/rn@7.23.0"
77
77
  },
78
78
  "prettier": "prettier-config-hd"
package/rollup.config.js CHANGED
@@ -47,7 +47,7 @@ export default {
47
47
  copy({
48
48
  targets: [
49
49
  {
50
- src: 'assets/fonts/hero-icons.ttf',
50
+ src: 'assets/fonts/hero-icons-mobile.ttf',
51
51
  dest: 'lib/assets/fonts',
52
52
  },
53
53
  ],
@@ -62,18 +62,14 @@ function ContentNavigator({
62
62
  disabled={previousDisabled}
63
63
  testID="previous-icon-button"
64
64
  />
65
- {typeof value === 'string' || typeof value === 'number' ? (
66
- <Value
67
- fontWeight="semi-bold"
68
- fontSize={fontSize}
69
- onPress={onPress}
70
- testID="content-navigator-value"
71
- >
72
- {value}
73
- </Value>
74
- ) : (
75
- value
76
- )}
65
+ <Value
66
+ fontWeight="semi-bold"
67
+ fontSize={fontSize}
68
+ onPress={onPress}
69
+ testID="content-navigator-value"
70
+ >
71
+ {value}
72
+ </Value>
77
73
  <Button.Icon
78
74
  icon="arrow-right"
79
75
  onPress={onNextPress}
@@ -14,7 +14,11 @@ type ThemeIntent =
14
14
  | 'disabled-text'
15
15
  | 'text-inverted';
16
16
 
17
- const HeroIcon = createIconSet(glyphMap, 'hero-icons', 'hero-icons.ttf');
17
+ const HeroIcon = createIconSet(
18
+ glyphMap,
19
+ 'hero-icons-mobile',
20
+ 'hero-icons-mobile.ttf'
21
+ );
18
22
 
19
23
  const COLOR_INTENTS = {
20
24
  text: 'text',