@ronas-it/nx-generators 0.4.1 → 0.5.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.
- package/generators.json +5 -0
- package/package.json +1 -1
- package/src/generators/code-checks/generator.js +2 -15
- package/src/generators/code-checks/generator.js.map +1 -1
- package/src/generators/expo-app/app-files/app/_layout.tsx.template +43 -0
- package/src/generators/expo-app/{files → app-files}/app/index.tsx.template +3 -2
- package/src/generators/expo-app/app-files/jest.config.ts.template +20 -0
- package/src/generators/expo-app/app-files/test-setup.ts.template +1 -0
- package/src/generators/expo-app/app-files/tsconfig.app.json.template +10 -0
- package/src/generators/expo-app/generator.js +18 -17
- package/src/generators/expo-app/generator.js.map +1 -1
- package/src/generators/next-app/files/app/[locale]/layout.tsx.template +1 -1
- package/src/generators/next-app/files/app/[locale]/page.tsx.template +2 -2
- package/src/generators/next-app/files/app/[locale]/providers.tsx.template +1 -1
- package/src/generators/next-app/files/middleware.ts.template +1 -1
- package/src/generators/next-app/generator.js +8 -4
- package/src/generators/next-app/generator.js.map +1 -1
- package/src/generators/repo-config/generator.js +2 -1
- package/src/generators/repo-config/generator.js.map +1 -1
- package/src/shared/dependencies.d.ts +66 -0
- package/src/shared/dependencies.js +72 -0
- package/src/shared/dependencies.js.map +1 -0
- package/src/shared/enums/base-generator-type.d.ts +4 -0
- package/src/shared/enums/base-generator-type.js +9 -0
- package/src/shared/enums/base-generator-type.js.map +1 -0
- package/src/shared/enums/index.d.ts +1 -0
- package/src/shared/enums/index.js +5 -0
- package/src/shared/enums/index.js.map +1 -0
- package/src/shared/generators/api-client/generator.d.ts +6 -0
- package/src/shared/generators/api-client/generator.js +35 -0
- package/src/shared/generators/api-client/generator.js.map +1 -0
- package/src/shared/generators/api-client/index.d.ts +1 -0
- package/src/shared/generators/api-client/index.js +5 -0
- package/src/shared/generators/api-client/index.js.map +1 -0
- package/src/shared/generators/api-client/lib-files/shared/data-access/api-client/src/configuration.ts.template +15 -0
- package/src/shared/generators/api-client/lib-files/shared/data-access/api-client/src/index.ts.template +3 -0
- package/src/shared/generators/api-client/lib-files/shared/data-access/api-client/src/service.ts.template +4 -0
- package/src/shared/generators/api-client/lib-files/shared/data-access/api-client/src/utils/api-creator.ts.template +6 -0
- package/src/shared/generators/api-client/lib-files/shared/data-access/api-client/src/utils/base-query.ts.template +6 -0
- package/src/shared/generators/api-client/lib-files/shared/data-access/api-client/src/utils/index.ts.template +2 -0
- package/src/shared/generators/app-env/generator.d.ts +6 -0
- package/src/shared/generators/app-env/generator.js +25 -0
- package/src/shared/generators/app-env/generator.js.map +1 -0
- package/src/shared/generators/app-env/index.d.ts +1 -0
- package/src/shared/generators/app-env/index.js +5 -0
- package/src/shared/generators/app-env/index.js.map +1 -0
- package/src/shared/generators/app-env/lib-files/shared/utils/app-env/src/app-env.ts.template +5 -0
- package/src/shared/generators/app-env/lib-files/shared/utils/app-env/src/env.d.ts.template +9 -0
- package/src/shared/generators/app-env/lib-files/shared/utils/app-env/src/env.js.template +28 -0
- package/src/shared/generators/app-env/lib-files/shared/utils/app-env/src/index.ts.template +3 -0
- package/src/shared/generators/auth/generator.d.ts +6 -0
- package/src/shared/generators/auth/generator.js +36 -0
- package/src/shared/generators/auth/generator.js.map +1 -0
- package/src/shared/generators/auth/index.d.ts +1 -0
- package/src/shared/generators/auth/index.js +5 -0
- package/src/shared/generators/auth/index.js.map +1 -0
- package/src/shared/generators/auth/lib-files/shared/data-access/api/src/index.ts.template +1 -0
- package/src/shared/generators/auth/lib-files/shared/data-access/api/src/lib/auth/api.ts.template +78 -0
- package/src/shared/generators/auth/lib-files/shared/data-access/api/src/lib/auth/index.ts.template +2 -0
- package/src/shared/generators/auth/lib-files/shared/data-access/api/src/lib/auth/models/forgot-password-request.ts.template +10 -0
- package/src/shared/generators/auth/lib-files/shared/data-access/api/src/lib/auth/models/index.ts.template +6 -0
- package/src/shared/generators/auth/lib-files/shared/data-access/api/src/lib/auth/models/login-request.ts.template +13 -0
- package/src/shared/generators/auth/lib-files/shared/data-access/api/src/lib/auth/models/login-response.ts.template +15 -0
- package/src/shared/generators/auth/lib-files/shared/data-access/api/src/lib/auth/models/refresh-token-response.ts.template +16 -0
- package/src/shared/generators/auth/lib-files/shared/data-access/api/src/lib/auth/models/register-request.ts.template +19 -0
- package/src/shared/generators/auth/lib-files/shared/data-access/api/src/lib/auth/models/restore-password-request.ts.template +14 -0
- package/src/shared/generators/auth/lib-files/shared/data-access/api/src/lib/index.ts.template +3 -0
- package/src/shared/generators/auth/lib-files/shared/data-access/api/src/lib/profile/api.ts.template +52 -0
- package/src/shared/generators/auth/lib-files/shared/data-access/api/src/lib/profile/config.ts.template +7 -0
- package/src/shared/generators/auth/lib-files/shared/data-access/api/src/lib/profile/index.ts.template +2 -0
- package/src/shared/generators/auth/lib-files/shared/data-access/api/src/lib/profile/models/get-profile-request.ts.template +9 -0
- package/src/shared/generators/auth/lib-files/shared/data-access/api/src/lib/profile/models/index.ts.template +1 -0
- package/src/shared/generators/auth/lib-files/shared/data-access/api/src/lib/profile/types/index.ts.template +1 -0
- package/src/shared/generators/auth/lib-files/shared/data-access/api/src/lib/profile/types/relation.ts.template +1 -0
- package/src/shared/generators/auth/lib-files/shared/data-access/api/src/lib/user/index.ts.template +1 -0
- package/src/shared/generators/auth/lib-files/shared/data-access/api/src/lib/user/models/index.ts.template +1 -0
- package/src/shared/generators/auth/lib-files/shared/data-access/api/src/lib/user/models/user.ts.template +15 -0
- package/src/shared/generators/auth/lib-files/shared/data-access/auth/src/index.ts.template +1 -0
- package/src/shared/generators/auth/lib-files/shared/data-access/auth/src/lib/index.ts.template +1 -0
- package/src/shared/generators/auth/lib-files/shared/data-access/auth/src/lib/store/index.ts.template +2 -0
- package/src/shared/generators/auth/lib-files/shared/data-access/auth/src/lib/store/listener.ts.template +96 -0
- package/src/shared/generators/auth/lib-files/shared/data-access/auth/src/lib/store/slice.ts.template +50 -0
- package/src/shared/generators/index.d.ts +7 -0
- package/src/shared/generators/index.js +11 -0
- package/src/shared/generators/index.js.map +1 -0
- package/src/shared/generators/rn-styles/generator.d.ts +6 -0
- package/src/shared/generators/rn-styles/generator.js +36 -0
- package/src/shared/generators/rn-styles/generator.js.map +1 -0
- package/src/shared/generators/rn-styles/index.d.ts +1 -0
- package/src/shared/generators/rn-styles/index.js +5 -0
- package/src/shared/generators/rn-styles/index.js.map +1 -0
- package/src/shared/generators/rn-styles/lib-files/shared/ui/styles/src/index.ts.template +1 -0
- package/src/shared/generators/rn-styles/lib-files/shared/ui/styles/src/lib/extended-stylesheet.ts.template +44 -0
- package/src/shared/generators/rn-styles/lib-files/shared/ui/styles/src/lib/index.ts.template +3 -0
- package/src/shared/generators/rn-styles/lib-files/shared/ui/styles/src/lib/styles.ts.template +30 -0
- package/src/shared/generators/rn-styles/lib-files/shared/ui/styles/src/lib/variables.ts.template +38 -0
- package/src/shared/generators/storage/generator.d.ts +6 -0
- package/src/shared/generators/storage/generator.js +25 -0
- package/src/shared/generators/storage/generator.js.map +1 -0
- package/src/shared/generators/storage/index.d.ts +1 -0
- package/src/shared/generators/storage/index.js +5 -0
- package/src/shared/generators/storage/index.js.map +1 -0
- package/src/shared/generators/storage/lib-files/shared/data-access/storage/src/index.ts.template +1 -0
- package/src/shared/generators/storage/lib-files/shared/data-access/storage/src/service.ts.template +9 -0
- package/src/shared/generators/store/expo-app/lib-files/shared/data-access/store/src/index.ts.template +1 -0
- package/src/shared/generators/store/expo-app/lib-files/shared/data-access/store/src/store.ts.template +38 -0
- package/src/shared/generators/store/generator.d.ts +8 -0
- package/src/shared/generators/store/generator.js +34 -0
- package/src/shared/generators/store/generator.js.map +1 -0
- package/src/shared/generators/store/index.d.ts +1 -0
- package/src/shared/generators/store/index.js +5 -0
- package/src/shared/generators/store/index.js.map +1 -0
- package/src/shared/generators/store/next-app/lib-files/shared/data-access/store/src/index.ts.template +1 -0
- package/src/shared/generators/store/next-app/lib-files/shared/data-access/store/src/store.ts.template +18 -0
- package/src/shared/generators/ui-kitten/generator.d.ts +7 -0
- package/src/shared/generators/ui-kitten/generator.js +48 -0
- package/src/shared/generators/ui-kitten/generator.js.map +1 -0
- package/src/shared/generators/ui-kitten/index.d.ts +1 -0
- package/src/shared/generators/ui-kitten/index.js +5 -0
- package/src/shared/generators/ui-kitten/index.js.map +1 -0
- package/src/shared/generators/ui-kitten/lib-files/shared/features/user-theme-provider/src/index.ts.template +1 -0
- package/src/shared/generators/ui-kitten/lib-files/shared/features/user-theme-provider/src/lib/component.tsx.template +39 -0
- package/src/shared/generators/ui-kitten/lib-files/shared/features/user-theme-provider/src/lib/config.ts.template +5 -0
- package/src/shared/generators/ui-kitten/lib-files/shared/features/user-theme-provider/src/lib/index.ts.template +1 -0
- package/src/shared/generators/ui-kitten/lib-files/shared/ui/styles/src/lib/create-adaptive-styles.ts.template +39 -0
- package/src/shared/generators/ui-kitten/lib-files/shared/ui/styles/src/lib/eva-theme/hooks/index.ts.template +1 -0
- package/src/shared/generators/ui-kitten/lib-files/shared/ui/styles/src/lib/eva-theme/hooks/use-app-theme.ts.template +4 -0
- package/src/shared/generators/ui-kitten/lib-files/shared/ui/styles/src/lib/eva-theme/index.ts.template +3 -0
- package/src/shared/generators/ui-kitten/lib-files/shared/ui/styles/src/lib/eva-theme/mapping.ts.template +336 -0
- package/src/shared/generators/ui-kitten/lib-files/shared/ui/styles/src/lib/eva-theme/theme.ts.template +44 -0
- package/src/shared/generators/ui-kitten/schema.d.ts +5 -0
- package/src/shared/generators/ui-kitten/schema.json +33 -0
- package/src/generators/expo-app/files/app/_layout.tsx.template +0 -23
- /package/src/generators/expo-app/{files → app-files}/.env.development.template +0 -0
- /package/src/generators/expo-app/{files → app-files}/README.md.template +0 -0
- /package/src/generators/expo-app/{files → app-files}/app.config.ts.template +0 -0
- /package/src/generators/expo-app/{files → app-files}/eas.json.template +0 -0
- /package/src/generators/expo-app/{files → app-files}/metro.config.js.template +0 -0
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
import { SchemaType } from '@eva-design/dss/types/schema';
|
|
2
|
+
import defaultEvaMapping from '@eva-design/eva/mapping';
|
|
3
|
+
import { PartialDeep } from 'type-fest';
|
|
4
|
+
import { rem } from '../styles';
|
|
5
|
+
import { fontFamily, colors } from '../variables';
|
|
6
|
+
|
|
7
|
+
export const mapping: PartialDeep<typeof defaultEvaMapping | SchemaType> = {
|
|
8
|
+
strict: {
|
|
9
|
+
'text-font-family': fontFamily.regular,
|
|
10
|
+
'text-heading-1-font-size': 1.75 * rem,
|
|
11
|
+
'text-heading-1-font-weight': '400',
|
|
12
|
+
'text-heading-1-font-family': fontFamily.bold,
|
|
13
|
+
'text-heading-2-font-size': 1.25 * rem,
|
|
14
|
+
'text-heading-2-font-weight': '400',
|
|
15
|
+
'text-heading-2-font-family': fontFamily.bold,
|
|
16
|
+
'text-subtitle-1-font-size': 1.0625 * rem,
|
|
17
|
+
'text-subtitle-1-font-weight': '400',
|
|
18
|
+
'text-subtitle-1-font-family': fontFamily.regular,
|
|
19
|
+
'text-subtitle-2-font-size': 1.0625 * rem,
|
|
20
|
+
'text-subtitle-2-font-weight': '400',
|
|
21
|
+
'text-subtitle-2-font-family': fontFamily.bold,
|
|
22
|
+
'text-paragraph-1-font-size': rem,
|
|
23
|
+
'text-paragraph-1-font-weight': 400,
|
|
24
|
+
'text-paragraph-1-font-family': fontFamily.regular,
|
|
25
|
+
'text-paragraph-2-font-size': rem,
|
|
26
|
+
'text-paragraph-2-font-weight': 400,
|
|
27
|
+
'text-paragraph-2-font-family': fontFamily.bold,
|
|
28
|
+
'text-caption-1-font-size': 0.8125 * rem,
|
|
29
|
+
'text-caption-1-font-weight': '400',
|
|
30
|
+
'text-caption-1-font-family': fontFamily.regular,
|
|
31
|
+
'text-caption-2-font-size': 0.8125 * rem,
|
|
32
|
+
'text-caption-2-font-weight': '400',
|
|
33
|
+
'text-caption-2-font-family': fontFamily.bold,
|
|
34
|
+
'text-label-font-size': rem,
|
|
35
|
+
'text-label-font-weight': '400',
|
|
36
|
+
'text-label-font-family': fontFamily.regular,
|
|
37
|
+
},
|
|
38
|
+
components: {
|
|
39
|
+
Text: {
|
|
40
|
+
meta: {
|
|
41
|
+
scope: 'all',
|
|
42
|
+
parameters: {
|
|
43
|
+
lineHeight: {
|
|
44
|
+
type: 'number',
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
appearances: {},
|
|
48
|
+
variantGroups: {
|
|
49
|
+
category: {
|
|
50
|
+
xs1: {
|
|
51
|
+
default: false,
|
|
52
|
+
},
|
|
53
|
+
xs2: {
|
|
54
|
+
default: false,
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
appearances: {
|
|
60
|
+
default: {
|
|
61
|
+
mapping: {},
|
|
62
|
+
variantGroups: {
|
|
63
|
+
category: {
|
|
64
|
+
h1: {
|
|
65
|
+
lineHeight: 2 * rem,
|
|
66
|
+
},
|
|
67
|
+
h2: {
|
|
68
|
+
lineHeight: 1.5 * rem,
|
|
69
|
+
},
|
|
70
|
+
s1: {
|
|
71
|
+
lineHeight: 1.5 * rem,
|
|
72
|
+
},
|
|
73
|
+
s2: {
|
|
74
|
+
lineHeight: 1.375 * rem,
|
|
75
|
+
},
|
|
76
|
+
p1: {
|
|
77
|
+
lineHeight: 1.25 * rem,
|
|
78
|
+
},
|
|
79
|
+
p2: {
|
|
80
|
+
lineHeight: 1.25 * rem,
|
|
81
|
+
},
|
|
82
|
+
c1: {
|
|
83
|
+
lineHeight: rem,
|
|
84
|
+
},
|
|
85
|
+
c2: {
|
|
86
|
+
lineHeight: rem,
|
|
87
|
+
},
|
|
88
|
+
xs1: {
|
|
89
|
+
fontFamily: fontFamily.regular,
|
|
90
|
+
fontSize: 0.6875 * rem,
|
|
91
|
+
lineHeight: rem,
|
|
92
|
+
},
|
|
93
|
+
xs2: {
|
|
94
|
+
fontFamily: fontFamily.bold,
|
|
95
|
+
fontSize: 0.6875 * rem,
|
|
96
|
+
lineHeight: rem,
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
status: {
|
|
100
|
+
basic: {
|
|
101
|
+
color: colors.textPrimary,
|
|
102
|
+
},
|
|
103
|
+
danger: {
|
|
104
|
+
color: colors.error,
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
Button: {
|
|
112
|
+
meta: {
|
|
113
|
+
parameters: {
|
|
114
|
+
opacity: {
|
|
115
|
+
type: 'number',
|
|
116
|
+
},
|
|
117
|
+
height: {
|
|
118
|
+
type: 'number',
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
variantGroups: {
|
|
122
|
+
size: {
|
|
123
|
+
medium: {
|
|
124
|
+
default: false,
|
|
125
|
+
},
|
|
126
|
+
large: {
|
|
127
|
+
default: true,
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
appearances: {
|
|
133
|
+
filled: {
|
|
134
|
+
mapping: {},
|
|
135
|
+
variantGroups: {
|
|
136
|
+
status: {
|
|
137
|
+
primary: {
|
|
138
|
+
textColor: colors.textPrimary,
|
|
139
|
+
borderWidth: 1,
|
|
140
|
+
backgroundColor: colors.primary,
|
|
141
|
+
borderColor: colors.primary,
|
|
142
|
+
state: {
|
|
143
|
+
active: {
|
|
144
|
+
backgroundColor: colors.primaryPressed,
|
|
145
|
+
borderColor: colors.primaryPressed,
|
|
146
|
+
borderWidth: 1,
|
|
147
|
+
},
|
|
148
|
+
disabled: {
|
|
149
|
+
backgroundColor: colors.textTertriary,
|
|
150
|
+
borderColor: colors.textTertriary,
|
|
151
|
+
borderWidth: 1,
|
|
152
|
+
textColor: colors.textSecondary,
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
basic: {
|
|
157
|
+
textColor: colors.textPrimary,
|
|
158
|
+
borderWidth: 1,
|
|
159
|
+
borderColor: colors.backgroundTertiary,
|
|
160
|
+
backgroundColor: colors.backgroundTertiary,
|
|
161
|
+
state: {
|
|
162
|
+
active: {
|
|
163
|
+
textColor: colors.textPrimary,
|
|
164
|
+
borderColor: colors.textTertriary,
|
|
165
|
+
backgroundColor: colors.textTertriary,
|
|
166
|
+
},
|
|
167
|
+
disabled: {
|
|
168
|
+
backgroundColor: colors.backgroundTertiary,
|
|
169
|
+
borderColor: colors.backgroundTertiary,
|
|
170
|
+
borderWidth: 1,
|
|
171
|
+
textColor: colors.backgroundTertiary,
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
size: {
|
|
177
|
+
large: {
|
|
178
|
+
textFontFamily: fontFamily.bold,
|
|
179
|
+
textFontSize: rem,
|
|
180
|
+
textFontWeight: '700',
|
|
181
|
+
borderRadius: 12,
|
|
182
|
+
borderWidth: 1,
|
|
183
|
+
minHeight: 64,
|
|
184
|
+
minWidth: 64,
|
|
185
|
+
paddingHorizontal: 0,
|
|
186
|
+
paddingVertical: 0,
|
|
187
|
+
iconMarginHorizontal: 0,
|
|
188
|
+
iconWidth: 'auto',
|
|
189
|
+
iconHeight: 'auto',
|
|
190
|
+
},
|
|
191
|
+
medium: {
|
|
192
|
+
textFontFamily: fontFamily.bold,
|
|
193
|
+
textFontSize: rem,
|
|
194
|
+
textFontWeight: '700',
|
|
195
|
+
borderRadius: 12,
|
|
196
|
+
borderWidth: 1,
|
|
197
|
+
minHeight: 60,
|
|
198
|
+
minWidth: 60,
|
|
199
|
+
paddingHorizontal: 0,
|
|
200
|
+
paddingVertical: 0,
|
|
201
|
+
iconMarginHorizontal: 0,
|
|
202
|
+
iconWidth: 'auto',
|
|
203
|
+
iconHeight: 'auto',
|
|
204
|
+
},
|
|
205
|
+
small: {
|
|
206
|
+
textFontFamily: fontFamily.bold,
|
|
207
|
+
textFontSize: 0.8125 * rem,
|
|
208
|
+
textFontWeight: '700',
|
|
209
|
+
minHeight: 40,
|
|
210
|
+
minWidth: 40,
|
|
211
|
+
borderRadius: 12,
|
|
212
|
+
borderWidth: 1,
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
},
|
|
217
|
+
ghost: {
|
|
218
|
+
variantGroups: {
|
|
219
|
+
status: {
|
|
220
|
+
primary: {
|
|
221
|
+
backgroundColor: 'transparent',
|
|
222
|
+
borderColor: 'transparent',
|
|
223
|
+
textColor: colors.primary,
|
|
224
|
+
state: {
|
|
225
|
+
active: {
|
|
226
|
+
backgroundColor: 'transparent',
|
|
227
|
+
borderColor: 'transparent',
|
|
228
|
+
textColor: colors.primaryPressed,
|
|
229
|
+
},
|
|
230
|
+
disabled: {
|
|
231
|
+
backgroundColor: 'transparent',
|
|
232
|
+
borderColor: 'transparent',
|
|
233
|
+
textColor: colors.textSecondary,
|
|
234
|
+
},
|
|
235
|
+
},
|
|
236
|
+
},
|
|
237
|
+
basic: {
|
|
238
|
+
backgroundColor: 'transparent',
|
|
239
|
+
borderColor: 'transparent',
|
|
240
|
+
textColor: colors.textPrimary,
|
|
241
|
+
state: {
|
|
242
|
+
active: {
|
|
243
|
+
backgroundColor: 'transparent',
|
|
244
|
+
borderColor: 'transparent',
|
|
245
|
+
textColor: colors.textSecondary,
|
|
246
|
+
},
|
|
247
|
+
disabled: {
|
|
248
|
+
backgroundColor: 'transparent',
|
|
249
|
+
borderColor: 'transparent',
|
|
250
|
+
textColor: colors.textSecondary,
|
|
251
|
+
},
|
|
252
|
+
},
|
|
253
|
+
},
|
|
254
|
+
},
|
|
255
|
+
},
|
|
256
|
+
},
|
|
257
|
+
},
|
|
258
|
+
},
|
|
259
|
+
Input: {
|
|
260
|
+
appearances: {
|
|
261
|
+
default: {
|
|
262
|
+
mapping: {
|
|
263
|
+
textFontFamily: fontFamily.regular,
|
|
264
|
+
textFontSize: rem,
|
|
265
|
+
captionFontWeight: '400',
|
|
266
|
+
},
|
|
267
|
+
variantGroups: {
|
|
268
|
+
status: {
|
|
269
|
+
primary: {
|
|
270
|
+
backgroundColor: colors.backgroundTertiary,
|
|
271
|
+
borderColor: colors.backgroundTertiary,
|
|
272
|
+
textColor: colors.textPrimary,
|
|
273
|
+
placeholderColor: colors.textSecondary,
|
|
274
|
+
state: {
|
|
275
|
+
focused: {
|
|
276
|
+
backgroundColor: colors.backgroundSecondary,
|
|
277
|
+
borderColor: colors.textSecondary,
|
|
278
|
+
},
|
|
279
|
+
},
|
|
280
|
+
},
|
|
281
|
+
danger: {
|
|
282
|
+
backgroundColor: colors.backgroundTertiary,
|
|
283
|
+
borderColor: colors.error,
|
|
284
|
+
textColor: colors.textSecondary,
|
|
285
|
+
placeholderColor: colors.textTertriary,
|
|
286
|
+
state: {
|
|
287
|
+
focused: {
|
|
288
|
+
textColor: colors.textPrimary,
|
|
289
|
+
placeholderColor: colors.textSecondary,
|
|
290
|
+
backgroundColor: colors.backgroundSecondary,
|
|
291
|
+
borderColor: colors.error,
|
|
292
|
+
},
|
|
293
|
+
},
|
|
294
|
+
},
|
|
295
|
+
},
|
|
296
|
+
size: {
|
|
297
|
+
medium: {
|
|
298
|
+
minHeight: 60,
|
|
299
|
+
textFontSize: rem,
|
|
300
|
+
borderRadius: 12,
|
|
301
|
+
paddingVertical: 7,
|
|
302
|
+
paddingHorizontal: 9,
|
|
303
|
+
},
|
|
304
|
+
},
|
|
305
|
+
},
|
|
306
|
+
},
|
|
307
|
+
},
|
|
308
|
+
},
|
|
309
|
+
Avatar: {
|
|
310
|
+
appearances: {
|
|
311
|
+
default: {
|
|
312
|
+
variantGroups: {
|
|
313
|
+
size: {
|
|
314
|
+
large: {
|
|
315
|
+
height: 6.75 * rem,
|
|
316
|
+
width: 6.75 * rem,
|
|
317
|
+
},
|
|
318
|
+
medium: {
|
|
319
|
+
height: 2.5 * rem,
|
|
320
|
+
width: 2.5 * rem,
|
|
321
|
+
},
|
|
322
|
+
small: {
|
|
323
|
+
height: 1.5 * rem,
|
|
324
|
+
width: 1.5 * rem,
|
|
325
|
+
},
|
|
326
|
+
tiny: {
|
|
327
|
+
height: rem,
|
|
328
|
+
width: rem,
|
|
329
|
+
},
|
|
330
|
+
},
|
|
331
|
+
},
|
|
332
|
+
},
|
|
333
|
+
},
|
|
334
|
+
},
|
|
335
|
+
},
|
|
336
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import evaDark from '@eva-design/eva/themes/dark';
|
|
2
|
+
import { mapValues } from 'lodash';
|
|
3
|
+
import { colors } from '../variables';
|
|
4
|
+
|
|
5
|
+
export type Theme = typeof darkTheme;
|
|
6
|
+
|
|
7
|
+
const darkTheme: typeof evaDark = {
|
|
8
|
+
...evaDark,
|
|
9
|
+
'color-basic-default': colors.backgroundPrimary,
|
|
10
|
+
'color-basic-active': colors.active,
|
|
11
|
+
'color-danger-default': colors.error,
|
|
12
|
+
'color-success-default': colors.success,
|
|
13
|
+
'color-warning-default': colors.warning,
|
|
14
|
+
|
|
15
|
+
'color-primary-default': colors.primary,
|
|
16
|
+
'color-primary-active': colors.primaryPressed,
|
|
17
|
+
'color-primary-disabled': colors.primaryDisabled,
|
|
18
|
+
'color-control-default': colors.secondary,
|
|
19
|
+
|
|
20
|
+
'text-primary-color': colors.textPrimary,
|
|
21
|
+
'text-basic-color': colors.textBasic,
|
|
22
|
+
'text-disabled-color': colors.textSecondary,
|
|
23
|
+
'text-alternate-color': colors.textTertriary,
|
|
24
|
+
|
|
25
|
+
'background-basic-color-1': colors.backgroundPrimary,
|
|
26
|
+
'background-basic-color-2': colors.backgroundSecondary,
|
|
27
|
+
'background-basic-color-3': colors.backgroundTertiary,
|
|
28
|
+
|
|
29
|
+
'border-basic-color-1': colors.borderPrimary,
|
|
30
|
+
'border-basic-color-2': colors.borderSecondary,
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
const lightTheme: Theme = {
|
|
34
|
+
...darkTheme,
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export const themeColorNames: Record<keyof typeof darkTheme, string> = mapValues(darkTheme, (_, key) => key);
|
|
38
|
+
|
|
39
|
+
export const theme = {
|
|
40
|
+
light: lightTheme,
|
|
41
|
+
dark: darkTheme,
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export type UserTheme = keyof typeof theme;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "ExpoApp",
|
|
4
|
+
"title": "",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"name": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "",
|
|
10
|
+
"$default": {
|
|
11
|
+
"$source": "argv",
|
|
12
|
+
"index": 0
|
|
13
|
+
},
|
|
14
|
+
"x-prompt": "Enter the name of the app"
|
|
15
|
+
},
|
|
16
|
+
"directory": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "",
|
|
19
|
+
"$default": {
|
|
20
|
+
"$source": "argv",
|
|
21
|
+
"index": 1
|
|
22
|
+
},
|
|
23
|
+
"x-prompt": "Enter the name of the directory in the 'apps/' folder"
|
|
24
|
+
},
|
|
25
|
+
"confirmation": {
|
|
26
|
+
"type": "boolean",
|
|
27
|
+
"description": "",
|
|
28
|
+
"$default": true,
|
|
29
|
+
"x-prompt": "Do you want to install @ui-kitten?"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"required": ["name", "directory", "confirmation"]
|
|
33
|
+
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Stack } from 'expo-router';
|
|
2
|
-
import { ReactElement } from 'react';
|
|
3
|
-
|
|
4
|
-
export { ErrorBoundary } from 'expo-router';
|
|
5
|
-
|
|
6
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
-
export const unstable_settings = {
|
|
8
|
-
initialRouteName: 'index',
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
function App(): ReactElement {
|
|
12
|
-
return (
|
|
13
|
-
<Stack>
|
|
14
|
-
<Stack.Screen name='index' />
|
|
15
|
-
</Stack>
|
|
16
|
-
);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export default function RootLayout(): ReactElement | null {
|
|
20
|
-
return (
|
|
21
|
-
<App />
|
|
22
|
-
);
|
|
23
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|