@hero-design/rn 8.105.1-alpha.0 → 8.105.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.
@@ -1,4 +1,4 @@
1
- (node:4222) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
1
+ (node:3400) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
2
2
  (Use `node --trace-warnings ...` to show where the warning was created)
3
3
  
4
4
  src/index.ts → lib/index.js, es/index.js...
@@ -15,9 +15,9 @@ node_modules/d3-selection/src/selection/index.js -> node_modules/d3-selection/sr
15
15
     ~~~~~~~~~~~~~~~~~~~
16
16
  
17
17
  (!) [plugin node-resolve] preferring built-in module 'events' over local alternative at '/home/runner/work/hero-design/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning.or passing a function to 'preferBuiltins' to provide more fine-grained control over which built-in modules to prefer.
18
- created lib/index.js, es/index.js in 1m 10.6s
18
+ created lib/index.js, es/index.js in 1m 11.4s
19
19
  
20
20
  /home/runner/work/hero-design/hero-design/packages/rn/src/locales/en_AU.ts, /home/runner/work/hero-design/hero-design/packages/rn/src/locales/en_CA.ts, /home/runner/work/hero-design/hero-design/packages/rn/src/locales/index.ts, /home/runner/work/hero-design/hero-design/packages/rn/src/locales/types.ts → ., ....
21
21
  (!) Generated empty chunks
22
22
  "locales/types" and "locales/types"
23
- created ., . in 22.1s
23
+ created ., . in 22.7s
package/CHANGELOG.md CHANGED
@@ -1,20 +1,18 @@
1
1
  # @hero-design/rn
2
2
 
3
- ## 8.105.1-alpha.0
3
+ ## 8.105.2
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - [#3497](https://github.com/Thinkei/hero-design/pull/3497) [`e92d1dab57316441e7b5054debe823328e1a1083`](https://github.com/Thinkei/hero-design/commit/e92d1dab57316441e7b5054debe823328e1a1083) Thanks [@luanlai2201](https://github.com/luanlai2201)! - [Font] replace playful font to Saiga
7
+ - [#4153](https://github.com/Thinkei/hero-design/pull/4153) [`2ced09440248a05875fc34e278cff41680173f12`](https://github.com/Thinkei/hero-design/commit/2ced09440248a05875fc34e278cff41680173f12) Thanks [@ttkien](https://github.com/ttkien)! - [PinInput] fix issue cannot paste
8
8
 
9
- - [#4123](https://github.com/Thinkei/hero-design/pull/4123) [`ecc5905dec81783858f57595a0af4306ff3b0b89`](https://github.com/Thinkei/hero-design/commit/ecc5905dec81783858f57595a0af4306ff3b0b89) Thanks [@truongnguyen-eh](https://github.com/truongnguyen-eh)! - [ANG-3740] Resolve conflict between alpha and master-react-18
10
-
11
- ## 8.104.1-alpha.3
9
+ ## 8.105.1
12
10
 
13
11
  ### Patch Changes
14
12
 
15
- - [#3497](https://github.com/Thinkei/hero-design/pull/3497) [`e92d1dab57316441e7b5054debe823328e1a1083`](https://github.com/Thinkei/hero-design/commit/e92d1dab57316441e7b5054debe823328e1a1083) Thanks [@luanlai2201](https://github.com/luanlai2201)! - [Font] replace playful font to Saiga
13
+ - [#4133](https://github.com/Thinkei/hero-design/pull/4133) [`8e945d988d61e6417e05b1c3c2aa6dc381dfd723`](https://github.com/Thinkei/hero-design/commit/8e945d988d61e6417e05b1c3c2aa6dc381dfd723) Thanks [@ttkien](https://github.com/ttkien)! - [Badge] Fix mis-alignment Badge Count on iOS
16
14
 
17
- - [#4123](https://github.com/Thinkei/hero-design/pull/4123) [`ecc5905dec81783858f57595a0af4306ff3b0b89`](https://github.com/Thinkei/hero-design/commit/ecc5905dec81783858f57595a0af4306ff3b0b89) Thanks [@truongnguyen-eh](https://github.com/truongnguyen-eh)! - [ANG-3740] Resolve conflict between alpha and master-react-18
15
+ - [#4142](https://github.com/Thinkei/hero-design/pull/4142) [`bdfe001823336624c8738fe07caf0fa1eba1cd86`](https://github.com/Thinkei/hero-design/commit/bdfe001823336624c8738fe07caf0fa1eba1cd86) Thanks [@dathuynh-eh](https://github.com/dathuynh-eh)! - Update thumb up icon
18
16
 
19
17
  ## 8.105.0
20
18
 
Binary file
package/es/index.js CHANGED
@@ -5580,7 +5580,7 @@ var getBadgeTheme = function getBadgeTheme(theme) {
5580
5580
  count: Platform.select({
5581
5581
  android: 14,
5582
5582
  // vertical alignment
5583
- "default": 18
5583
+ "default": theme.lineHeights.small
5584
5584
  })
5585
5585
  };
5586
5586
  var radii = {
@@ -24022,7 +24022,9 @@ var StyledHiddenInput = index$b(TextInput$1)(function (_ref6) {
24022
24022
  var spacerWidth = theme.__hd__.pinInput.space.spacer;
24023
24023
  return {
24024
24024
  position: 'absolute',
24025
- opacity: 0,
24025
+ // Opacity must be > 0.01 to receive touch events on iOS in RN 0.76.7.
24026
+ // See https://github.com/facebook/react-native/issues/50465 for details.
24027
+ opacity: 0.01001,
24026
24028
  left: 0,
24027
24029
  top: 0,
24028
24030
  right: 0,
@@ -24199,7 +24201,6 @@ var PinInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
24199
24201
  autoFocus: autoFocus,
24200
24202
  onFocus: focus,
24201
24203
  onBlur: blur,
24202
- pointerEvents: "none",
24203
24204
  inputMode: "numeric",
24204
24205
  testID: "pin-hidden-input",
24205
24206
  textContentType: textContentType,
package/lib/index.js CHANGED
@@ -5609,7 +5609,7 @@ var getBadgeTheme = function getBadgeTheme(theme) {
5609
5609
  count: reactNative.Platform.select({
5610
5610
  android: 14,
5611
5611
  // vertical alignment
5612
- "default": 18
5612
+ "default": theme.lineHeights.small
5613
5613
  })
5614
5614
  };
5615
5615
  var radii = {
@@ -24051,7 +24051,9 @@ var StyledHiddenInput = index$b(reactNative.TextInput)(function (_ref6) {
24051
24051
  var spacerWidth = theme.__hd__.pinInput.space.spacer;
24052
24052
  return {
24053
24053
  position: 'absolute',
24054
- opacity: 0,
24054
+ // Opacity must be > 0.01 to receive touch events on iOS in RN 0.76.7.
24055
+ // See https://github.com/facebook/react-native/issues/50465 for details.
24056
+ opacity: 0.01001,
24055
24057
  left: 0,
24056
24058
  top: 0,
24057
24059
  right: 0,
@@ -24228,7 +24230,6 @@ var PinInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
24228
24230
  autoFocus: autoFocus,
24229
24231
  onFocus: focus,
24230
24232
  onBlur: blur,
24231
- pointerEvents: "none",
24232
24233
  inputMode: "numeric",
24233
24234
  testID: "pin-hidden-input",
24234
24235
  textContentType: textContentType,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "8.105.1-alpha.0",
3
+ "version": "8.105.2",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -65,7 +65,7 @@ exports[`BadgeCount displays 1 for content 1 1`] = `
65
65
  "color": "#ffffff",
66
66
  "fontSize": 8,
67
67
  "height": 16,
68
- "lineHeight": 18,
68
+ "lineHeight": 16,
69
69
  },
70
70
  undefined,
71
71
  ],
@@ -168,7 +168,7 @@ exports[`BadgeCount displays 12 for content 12 1`] = `
168
168
  "color": "#ffffff",
169
169
  "fontSize": 8,
170
170
  "height": 16,
171
- "lineHeight": 18,
171
+ "lineHeight": 16,
172
172
  },
173
173
  undefined,
174
174
  ],
@@ -271,7 +271,7 @@ exports[`BadgeCount displays 99+ for content 999 1`] = `
271
271
  "color": "#ffffff",
272
272
  "fontSize": 8,
273
273
  "height": 16,
274
- "lineHeight": 18,
274
+ "lineHeight": 16,
275
275
  },
276
276
  undefined,
277
277
  ],
@@ -65,7 +65,9 @@ export const StyledHiddenInput = styled(TextInput)<{ themePinLength: number }>(
65
65
 
66
66
  return {
67
67
  position: 'absolute',
68
- opacity: 0,
68
+ // Opacity must be > 0.01 to receive touch events on iOS in RN 0.76.7.
69
+ // See https://github.com/facebook/react-native/issues/50465 for details.
70
+ opacity: 0.01001,
69
71
  left: 0,
70
72
  top: 0,
71
73
  right: 0,
@@ -262,7 +262,6 @@ exports[`rendering renders correctly 1`] = `
262
262
  onBlur={[Function]}
263
263
  onChangeText={[Function]}
264
264
  onFocus={[Function]}
265
- pointerEvents="none"
266
265
  secureTextEntry={true}
267
266
  selectTextOnFocus={false}
268
267
  selection={
@@ -277,7 +276,7 @@ exports[`rendering renders correctly 1`] = `
277
276
  "height": "100%",
278
277
  "left": 0,
279
278
  "letterSpacing": 4,
280
- "opacity": 0,
279
+ "opacity": 0.01001,
281
280
  "paddingHorizontal": 8,
282
281
  "position": "absolute",
283
282
  "right": 0,
@@ -577,7 +576,6 @@ exports[`rendering renders correctly when disabled 1`] = `
577
576
  onBlur={[Function]}
578
577
  onChangeText={[Function]}
579
578
  onFocus={[Function]}
580
- pointerEvents="none"
581
579
  secureTextEntry={true}
582
580
  selectTextOnFocus={false}
583
581
  selection={
@@ -592,7 +590,7 @@ exports[`rendering renders correctly when disabled 1`] = `
592
590
  "height": "100%",
593
591
  "left": 0,
594
592
  "letterSpacing": 4,
595
- "opacity": 0,
593
+ "opacity": 0.01001,
596
594
  "paddingHorizontal": 8,
597
595
  "position": "absolute",
598
596
  "right": 0,
@@ -1022,7 +1020,6 @@ exports[`rendering renders correctly when length is 6 and secure is false 1`] =
1022
1020
  onBlur={[Function]}
1023
1021
  onChangeText={[Function]}
1024
1022
  onFocus={[Function]}
1025
- pointerEvents="none"
1026
1023
  secureTextEntry={false}
1027
1024
  selectTextOnFocus={false}
1028
1025
  selection={
@@ -1037,7 +1034,7 @@ exports[`rendering renders correctly when length is 6 and secure is false 1`] =
1037
1034
  "height": "100%",
1038
1035
  "left": 0,
1039
1036
  "letterSpacing": 4,
1040
- "opacity": 0,
1037
+ "opacity": 0.01001,
1041
1038
  "paddingHorizontal": 8,
1042
1039
  "position": "absolute",
1043
1040
  "right": 0,
@@ -1390,7 +1387,6 @@ exports[`rendering renders correctly when there is error 1`] = `
1390
1387
  onBlur={[Function]}
1391
1388
  onChangeText={[Function]}
1392
1389
  onFocus={[Function]}
1393
- pointerEvents="none"
1394
1390
  secureTextEntry={true}
1395
1391
  selectTextOnFocus={false}
1396
1392
  selection={
@@ -1405,7 +1401,7 @@ exports[`rendering renders correctly when there is error 1`] = `
1405
1401
  "height": "100%",
1406
1402
  "left": 0,
1407
1403
  "letterSpacing": 4,
1408
- "opacity": 0,
1404
+ "opacity": 0.01001,
1409
1405
  "paddingHorizontal": 8,
1410
1406
  "position": "absolute",
1411
1407
  "right": 0,
@@ -1706,7 +1702,6 @@ exports[`rendering renders correctly with textContentType and autoComplete 1`] =
1706
1702
  onBlur={[Function]}
1707
1703
  onChangeText={[Function]}
1708
1704
  onFocus={[Function]}
1709
- pointerEvents="none"
1710
1705
  secureTextEntry={true}
1711
1706
  selectTextOnFocus={false}
1712
1707
  selection={
@@ -1721,7 +1716,7 @@ exports[`rendering renders correctly with textContentType and autoComplete 1`] =
1721
1716
  "height": "100%",
1722
1717
  "left": 0,
1723
1718
  "letterSpacing": 4,
1724
- "opacity": 0,
1719
+ "opacity": 0.01001,
1725
1720
  "paddingHorizontal": 8,
1726
1721
  "position": "absolute",
1727
1722
  "right": 0,
@@ -230,7 +230,6 @@ const PinInput = forwardRef<PinInputHandler, PinInputProps>(
230
230
  autoFocus={autoFocus}
231
231
  onFocus={focus}
232
232
  onBlur={blur}
233
- pointerEvents="none"
234
233
  inputMode="numeric"
235
234
  testID="pin-hidden-input"
236
235
  textContentType={textContentType}
@@ -170,7 +170,7 @@ exports[`theme returns correct theme object 1`] = `
170
170
  "small": "BeVietnamPro-SemiBold",
171
171
  },
172
172
  "lineHeights": {
173
- "count": 18,
173
+ "count": 16,
174
174
  "medium": 16,
175
175
  "small": 10,
176
176
  },
@@ -34,7 +34,7 @@ const getBadgeTheme = (theme: GlobalTheme) => {
34
34
  small: 10,
35
35
  count: Platform.select({
36
36
  android: 14, // vertical alignment
37
- default: 18,
37
+ default: theme.lineHeights.small,
38
38
  }),
39
39
  };
40
40