@hero-design/rn 8.54.0 → 8.55.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "8.54.0",
3
+ "version": "8.55.0",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -20,6 +20,7 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@emotion/native": "^11.9.3",
23
+ "@emotion/primitives-core": "11.0.0",
23
24
  "@emotion/react": "^11.9.3",
24
25
  "@hero-design/colors": "8.42.5",
25
26
  "date-fns": "^2.16.1",
@@ -33,7 +34,7 @@
33
34
  "@react-native-community/slider": "4.4.3",
34
35
  "react": "18.2.0",
35
36
  "react-native": "^0.71.0",
36
- "react-native-gesture-handler": "^1.10.3 | ~2.5.0",
37
+ "react-native-gesture-handler": "^1.10.3 || ~2.5.0",
37
38
  "react-native-linear-gradient": "^2.6.2",
38
39
  "react-native-pager-view": "^5.4.25",
39
40
  "react-native-safe-area-context": "^3.0.2",
@@ -64,6 +65,7 @@
64
65
  "@types/react-native-vector-icons": "^6.4.10",
65
66
  "babel-plugin-inline-import": "^3.0.0",
66
67
  "core-js": "^3.33.0",
68
+ "eslint": "^8.56.0",
67
69
  "eslint-config-hd": "8.42.4",
68
70
  "eslint-plugin-import": "^2.27.5",
69
71
  "jest": "^29.2.1",
@@ -82,7 +84,8 @@
82
84
  "rollup": "^2.68.0",
83
85
  "rollup-plugin-copy": "^3.4.0",
84
86
  "rollup-plugin-flow": "^1.1.1",
85
- "ts-jest": "^29.1.1"
87
+ "ts-jest": "^29.1.1",
88
+ "typescript": "4.8.4"
86
89
  },
87
90
  "prettier": "prettier-config-hd"
88
91
  }
@@ -41,7 +41,7 @@ const StyledIndicator = styled(Animated.View)<{ themeWidth: number }>(
41
41
  height: theme.__hd__.tabs.sizes.indicator,
42
42
  backgroundColor: theme.__hd__.tabs.colors.indicator,
43
43
  position: 'absolute',
44
- bottom: 0,
44
+ bottom: theme.__hd__.tabs.space.tabIndicatorBottom,
45
45
  })
46
46
  );
47
47
 
@@ -129,7 +129,7 @@ exports[`Tabs.Scroll lazy not render lazy screen: xxx 1`] = `
129
129
  [
130
130
  {
131
131
  "borderBottomColor": "#e8e9ea",
132
- "borderBottomWidth": 1,
132
+ "borderBottomWidth": 2,
133
133
  "paddingHorizontal": 0,
134
134
  },
135
135
  undefined,
@@ -1033,7 +1033,7 @@ exports[`Tabs.Scroll renders correctly 1`] = `
1033
1033
  [
1034
1034
  {
1035
1035
  "borderBottomColor": "#e8e9ea",
1036
- "borderBottomWidth": 1,
1036
+ "borderBottomWidth": 2,
1037
1037
  "paddingHorizontal": 0,
1038
1038
  },
1039
1039
  undefined,
@@ -1937,7 +1937,7 @@ exports[`useIsFocused renders correctly 1`] = `
1937
1937
  [
1938
1938
  {
1939
1939
  "borderBottomColor": "#e8e9ea",
1940
- "borderBottomWidth": 1,
1940
+ "borderBottomWidth": 2,
1941
1941
  "paddingHorizontal": 0,
1942
1942
  },
1943
1943
  undefined,
@@ -24,7 +24,7 @@ exports[`ScrollableTabsHeader renders correctly 1`] = `
24
24
  [
25
25
  {
26
26
  "borderBottomColor": "#e8e9ea",
27
- "borderBottomWidth": 1,
27
+ "borderBottomWidth": 2,
28
28
  "paddingHorizontal": 0,
29
29
  },
30
30
  undefined,
@@ -129,7 +129,7 @@ exports[`Tabs renders correctly 1`] = `
129
129
  [
130
130
  {
131
131
  "borderBottomColor": "#e8e9ea",
132
- "borderBottomWidth": 1,
132
+ "borderBottomWidth": 2,
133
133
  "paddingHorizontal": 0,
134
134
  },
135
135
  undefined,
@@ -474,7 +474,7 @@ exports[`Tabs renders correctly 1`] = `
474
474
  style={
475
475
  {
476
476
  "backgroundColor": "#401960",
477
- "bottom": 0,
477
+ "bottom": -2,
478
478
  "height": 2,
479
479
  "position": "absolute",
480
480
  "transform": [
@@ -793,7 +793,7 @@ exports[`useIsFocused renders correctly 1`] = `
793
793
  [
794
794
  {
795
795
  "borderBottomColor": "#e8e9ea",
796
- "borderBottomWidth": 1,
796
+ "borderBottomWidth": 2,
797
797
  "paddingHorizontal": 0,
798
798
  },
799
799
  undefined,
@@ -1138,7 +1138,7 @@ exports[`useIsFocused renders correctly 1`] = `
1138
1138
  style={
1139
1139
  {
1140
1140
  "backgroundColor": "#401960",
1141
- "bottom": 0,
1141
+ "bottom": -2,
1142
1142
  "height": 2,
1143
1143
  "position": "absolute",
1144
1144
  "transform": [
@@ -1457,7 +1457,7 @@ exports[`useIsFocused renders correctly: xxxxxx 1`] = `
1457
1457
  [
1458
1458
  {
1459
1459
  "borderBottomColor": "#e8e9ea",
1460
- "borderBottomWidth": 1,
1460
+ "borderBottomWidth": 2,
1461
1461
  "paddingHorizontal": 0,
1462
1462
  },
1463
1463
  undefined,
@@ -1802,7 +1802,7 @@ exports[`useIsFocused renders correctly: xxxxxx 1`] = `
1802
1802
  style={
1803
1803
  {
1804
1804
  "backgroundColor": "#401960",
1805
- "bottom": 0,
1805
+ "bottom": -2,
1806
1806
  "height": 2,
1807
1807
  "position": "absolute",
1808
1808
  "transform": [
@@ -921,7 +921,7 @@ exports[`theme returns correct theme object 1`] = `
921
921
  },
922
922
  "tabs": {
923
923
  "borderWidths": {
924
- "headerBottom": 1,
924
+ "headerBottom": 2,
925
925
  },
926
926
  "colors": {
927
927
  "active": "#001f23",
@@ -944,6 +944,7 @@ exports[`theme returns correct theme object 1`] = `
944
944
  "itemVerticalPadding": 8,
945
945
  "outlineHorizontalPadding": 8,
946
946
  "outlineVerticalPadding": 4,
947
+ "tabIndicatorBottom": -2,
947
948
  },
948
949
  },
949
950
  "tag": {
@@ -17,6 +17,7 @@ const getTabsTheme = (theme: GlobalTheme) => {
17
17
  itemMargin: theme.space.smallMedium,
18
18
  outlineHorizontalPadding: theme.space.small,
19
19
  outlineVerticalPadding: theme.space.xsmall,
20
+ tabIndicatorBottom: -theme.space.xxsmall,
20
21
  };
21
22
 
22
23
  const radii = {
@@ -24,7 +25,7 @@ const getTabsTheme = (theme: GlobalTheme) => {
24
25
  };
25
26
 
26
27
  const borderWidths = {
27
- headerBottom: theme.borderWidths.base,
28
+ headerBottom: theme.borderWidths.medium,
28
29
  };
29
30
 
30
31
  const sizes = {
@@ -18,6 +18,7 @@ declare const getTabsTheme: (theme: GlobalTheme) => {
18
18
  itemMargin: number;
19
19
  outlineHorizontalPadding: number;
20
20
  outlineVerticalPadding: number;
21
+ tabIndicatorBottom: number;
21
22
  };
22
23
  radii: {
23
24
  outline: number;