@hero-design/rn 7.1.3-alpha7 → 7.1.3-alpha8

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
- declare const fonts: {
1
+ interface Fonts {
2
2
  light: string;
3
3
  regular: string;
4
4
  semiBold: string;
5
- };
6
- declare const fontSizes: {
5
+ }
6
+ interface FontSizes {
7
7
  xxxxxlarge: number;
8
8
  xxxxlarge: number;
9
9
  xxxlarge: number;
@@ -13,16 +13,9 @@ declare const fontSizes: {
13
13
  medium: number;
14
14
  small: number;
15
15
  xsmall: number;
16
- };
17
- declare const lineHeights: {
18
- xxxxxlarge: number;
19
- xxxxlarge: number;
20
- xxxlarge: number;
21
- xxlarge: number;
22
- xlarge: number;
23
- large: number;
24
- medium: number;
25
- small: number;
26
- xsmall: number;
27
- };
28
- export { fonts, fontSizes, lineHeights };
16
+ }
17
+ declare type LineHeights = FontSizes;
18
+ declare const getFonts: (baseFont: string) => Fonts;
19
+ declare const getFontSizes: (baseFontSize: number) => FontSizes;
20
+ declare const getLineHeights: (fontSizes: FontSizes) => LineHeights;
21
+ export { Fonts, FontSizes, LineHeights, getFonts, getFontSizes, getLineHeights, };
@@ -1,4 +1,4 @@
1
- import { GlobalTheme } from './global';
1
+ import { GlobalTheme, Scale, SystemPalette } from './global';
2
2
  import getBadgeTheme from './components/badge';
3
3
  import getBottomNavigationTheme from './components/bottomNavigation';
4
4
  import getCardTheme from './components/card';
@@ -19,7 +19,7 @@ declare type Theme = GlobalTheme & {
19
19
  fab: ReturnType<typeof getFABTheme>;
20
20
  };
21
21
  };
22
- declare const getTheme: (theme?: GlobalTheme) => Theme;
22
+ declare const getTheme: (scale?: Scale, systemPallete?: SystemPalette) => Theme;
23
23
  declare const theme: Theme;
24
24
  export { Theme, getTheme };
25
25
  export default theme;
package/yarn-error.log DELETED
@@ -1,140 +0,0 @@
1
- Arguments:
2
- /Users/haudao/.nvm/versions/node/v14.17.5/bin/node /Users/haudao/.nvm/versions/node/v14.17.5/bin/yarn
3
-
4
- PATH:
5
- ./bin:/usr/local/opt/openssl/bin:/Users/haudao/.rbenv/shims:/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/Library/Apple/usr/bin:./bin:/usr/local/opt/openssl/bin:/Users/haudao/.rbenv/shims:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Users/haudao/.nvm/versions/node/v14.17.5/bin:/Users/haudao/.fzf/bin:/Users/haudao/Library/Android/sdk/emulator:/Users/haudao/Library/Android/sdk/tools:/Users/haudao/Library/Android/sdk/tools/bin:/Users/haudao/Library/Android/sdk/platform-tools:/Users/haudao/.nvm/versions/node/v14.17.5/bin:/Users/haudao/Library/Android/sdk/emulator:/Users/haudao/Library/Android/sdk/tools:/Users/haudao/Library/Android/sdk/tools/bin:/Users/haudao/Library/Android/sdk/platform-tools
6
-
7
- Yarn version:
8
- 1.22.15
9
-
10
- Node version:
11
- 14.17.5
12
-
13
- Platform:
14
- darwin x64
15
-
16
- Trace:
17
- SyntaxError: /Users/haudao/workspace/hero-design/packages/rn/package.json: Unexpected token } in JSON at position 777
18
- at JSON.parse (<anonymous>)
19
- at /Users/haudao/.nvm/versions/node/v14.17.5/lib/node_modules/yarn/lib/cli.js:1625:59
20
- at Generator.next (<anonymous>)
21
- at step (/Users/haudao/.nvm/versions/node/v14.17.5/lib/node_modules/yarn/lib/cli.js:310:30)
22
- at /Users/haudao/.nvm/versions/node/v14.17.5/lib/node_modules/yarn/lib/cli.js:321:13
23
-
24
- npm manifest:
25
- {
26
- "name": "@hero-design/rn",
27
- "version": "7.1.2",
28
- "license": "MIT",
29
- "main": "lib/index.js",
30
- "module": "es/index.js",
31
- "types": "types/src/index.d.ts",
32
- "scripts": {
33
- "lint": "eslint src playground --ext .js,.jsx,.ts,.tsx --ignore-path ../../.gitignore",
34
- "type-check": "tsc --noEmit",
35
- "dev": "expo start",
36
- "test": "jest --runInBand",
37
- "test:watch": "jest --runInBand --watch",
38
- "test:ci": "jest --runInBand --logHeapUsage",
39
- "build:js": "rollup -c",
40
- "build:types": "tsc --noEmit false --emitDeclarationOnly",
41
- "build": "yarn build:js && yarn build:types",
42
- "publish:npm": "yarn publish --access public"
43
- },
44
- "dependencies": {
45
- "@emotion/native": "^11.9.3",
46
- "@emotion/react": "^11.9.3",
47
- "@hero-design/colors": "7.1.2",
48
- },
49
- "peerDependencies": {
50
- "react": "17.0.2",
51
- "react-native": "0.65.1",
52
- "react-native-safe-area-context": "^4.2.5",
53
- "react-native-vector-icons": "^9.1.0"
54
- },
55
- "devDependencies": {
56
- "@babel/core": "^7.17.5",
57
- "@babel/preset-env": "^7.16.11",
58
- "@babel/preset-react": "^7.16.7",
59
- "@babel/preset-typescript": "^7.17.12",
60
- "@emotion/jest": "^11.9.3",
61
- "@react-navigation/native": "^6.0.10",
62
- "@react-navigation/native-stack": "^6.6.2",
63
- "@rollup/plugin-babel": "^5.3.1",
64
- "@rollup/plugin-commonjs": "^21.0.1",
65
- "@rollup/plugin-json": "^4.1.0",
66
- "@rollup/plugin-node-resolve": "^13.1.3",
67
- "@rollup/plugin-replace": "^4.0.0",
68
- "@rollup/plugin-typescript": "^8.3.0",
69
- "@testing-library/jest-native": "^4.0.4",
70
- "@testing-library/react-native": "^9.1.0",
71
- "@types/jest": "^27.0.2",
72
- "@types/react": "^17.0.39",
73
- "@types/react-native": "^0.66.16",
74
- "@types/react-native-vector-icons": "^6.4.10",
75
- "@typescript-eslint/eslint-plugin": "^5.12.1",
76
- "@typescript-eslint/parser": "^5.12.1",
77
- "eslint": "^8.9.0",
78
- "eslint-config-airbnb": "^19.0.4",
79
- "eslint-config-prettier": "^8.5.0",
80
- "eslint-plugin-import": "^2.25.4",
81
- "eslint-plugin-jsx-a11y": "^6.5.1",
82
- "eslint-plugin-react": "^7.28.0",
83
- "eslint-plugin-react-hooks": "^4.3.0",
84
- "expo": "^44.0.6",
85
- "jest": "^27.3.1",
86
- "prettier": "^2.5.1",
87
- "react": "17.0.2",
88
- "react-native": "0.65.1",
89
- "react-native-safe-area-context": "^4.2.5",
90
- "react-native-screens": "^3.13.1",
91
- "react-native-vector-icons": "^9.1.0",
92
- "react-test-renderer": "17.0.2",
93
- "rollup": "^2.68.0",
94
- "rollup-plugin-copy": "^3.4.0",
95
- "ts-jest": "^27.0.7",
96
- "typescript": "^4.5.5"
97
- },
98
- "nx": {
99
- "targets": {
100
- "type-check": {
101
- "dependsOn": [
102
- {
103
- "target": "build:types",
104
- "projects": "dependencies"
105
- }
106
- ]
107
- },
108
- "lint": {
109
- "dependsOn": [
110
- {
111
- "target": "build:js",
112
- "projects": "dependencies"
113
- }
114
- ]
115
- },
116
- "test:ci": {
117
- "dependsOn": [
118
- {
119
- "target": "build",
120
- "projects": "dependencies"
121
- }
122
- ]
123
- },
124
- "dev": {
125
- "dependsOn": [
126
- {
127
- "target": "build",
128
- "projects": "dependencies"
129
- }
130
- ]
131
- }
132
- }
133
- }
134
- }
135
-
136
- yarn manifest:
137
- No manifest
138
-
139
- Lockfile:
140
- No lockfile