expo-dev-client-components 1.0.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.
Files changed (148) hide show
  1. package/.eslintrc.js +5 -0
  2. package/CHANGELOG.md +15 -0
  3. package/README.md +37 -0
  4. package/assets/check-icon.png +0 -0
  5. package/assets/check-icon@2x.png +0 -0
  6. package/assets/check-icon@3x.png +0 -0
  7. package/assets/chevron-right-icon.png +0 -0
  8. package/assets/chevron-right-icon@2x.png +0 -0
  9. package/assets/chevron-right-icon@3x.png +0 -0
  10. package/assets/home-filled-active-icon.png +0 -0
  11. package/assets/home-filled-active-icon@2x.png +0 -0
  12. package/assets/home-filled-active-icon@3x.png +0 -0
  13. package/assets/home-filled-inactive-icon.png +0 -0
  14. package/assets/home-filled-inactive-icon@2x.png +0 -0
  15. package/assets/home-filled-inactive-icon@3x.png +0 -0
  16. package/assets/info-icon.png +0 -0
  17. package/assets/info-icon@2x.png +0 -0
  18. package/assets/info-icon@3x.png +0 -0
  19. package/assets/logo-icon.png +0 -0
  20. package/assets/logo-icon@2x.png +0 -0
  21. package/assets/logo-icon@3x.png +0 -0
  22. package/assets/question-mark-icon.png +0 -0
  23. package/assets/question-mark-icon@2x.png +0 -0
  24. package/assets/question-mark-icon@3x.png +0 -0
  25. package/assets/refresh-icon.png +0 -0
  26. package/assets/refresh-icon@2x.png +0 -0
  27. package/assets/refresh-icon@3x.png +0 -0
  28. package/assets/settings-filled-active-icon.png +0 -0
  29. package/assets/settings-filled-active-icon@2x.png +0 -0
  30. package/assets/settings-filled-active-icon@3x.png +0 -0
  31. package/assets/settings-filled-inactive-icon.png +0 -0
  32. package/assets/settings-filled-inactive-icon@2x.png +0 -0
  33. package/assets/settings-filled-inactive-icon@3x.png +0 -0
  34. package/assets/shake-device-icon.png +0 -0
  35. package/assets/shake-device-icon@2x.png +0 -0
  36. package/assets/shake-device-icon@3x.png +0 -0
  37. package/assets/show-menu-at-launch-icon.png +0 -0
  38. package/assets/show-menu-at-launch-icon@2x.png +0 -0
  39. package/assets/show-menu-at-launch-icon@3x.png +0 -0
  40. package/assets/terminal-icon.png +0 -0
  41. package/assets/terminal-icon@2x.png +0 -0
  42. package/assets/terminal-icon@3x.png +0 -0
  43. package/assets/three-finger-long-press-icon.png +0 -0
  44. package/assets/three-finger-long-press-icon@2x.png +0 -0
  45. package/assets/three-finger-long-press-icon@3x.png +0 -0
  46. package/assets/toolbar-overlay-icon.png +0 -0
  47. package/assets/toolbar-overlay-icon@2x.png +0 -0
  48. package/assets/toolbar-overlay-icon@3x.png +0 -0
  49. package/assets/user-icon.png +0 -0
  50. package/assets/user-icon@2x.png +0 -0
  51. package/assets/user-icon@3x.png +0 -0
  52. package/assets/x-icon.png +0 -0
  53. package/assets/x-icon@2x.png +0 -0
  54. package/assets/x-icon@3x.png +0 -0
  55. package/build/Button.d.ts +52 -0
  56. package/build/Button.js +154 -0
  57. package/build/Button.js.map +1 -0
  58. package/build/Image.d.ts +7 -0
  59. package/build/Image.js +37 -0
  60. package/build/Image.js.map +1 -0
  61. package/build/Text.d.ts +31 -0
  62. package/build/Text.js +66 -0
  63. package/build/Text.js.map +1 -0
  64. package/build/View.d.ts +61 -0
  65. package/build/View.js +172 -0
  66. package/build/View.js.map +1 -0
  67. package/build/icons/CheckIcon.d.ts +3 -0
  68. package/build/icons/CheckIcon.js +7 -0
  69. package/build/icons/CheckIcon.js.map +1 -0
  70. package/build/icons/ChevronRightIcon.d.ts +3 -0
  71. package/build/icons/ChevronRightIcon.js +7 -0
  72. package/build/icons/ChevronRightIcon.js.map +1 -0
  73. package/build/icons/ExpoLogoIcon.d.ts +3 -0
  74. package/build/icons/ExpoLogoIcon.js +7 -0
  75. package/build/icons/ExpoLogoIcon.js.map +1 -0
  76. package/build/icons/HomeFilledIcon.d.ts +7 -0
  77. package/build/icons/HomeFilledIcon.js +9 -0
  78. package/build/icons/HomeFilledIcon.js.map +1 -0
  79. package/build/icons/InfoIcon.d.ts +3 -0
  80. package/build/icons/InfoIcon.js +7 -0
  81. package/build/icons/InfoIcon.js.map +1 -0
  82. package/build/icons/QuestionMarkIcon.d.ts +3 -0
  83. package/build/icons/QuestionMarkIcon.js +7 -0
  84. package/build/icons/QuestionMarkIcon.js.map +1 -0
  85. package/build/icons/RefreshIcon.d.ts +3 -0
  86. package/build/icons/RefreshIcon.js +7 -0
  87. package/build/icons/RefreshIcon.js.map +1 -0
  88. package/build/icons/SettingsFilledIcon.d.ts +7 -0
  89. package/build/icons/SettingsFilledIcon.js +9 -0
  90. package/build/icons/SettingsFilledIcon.js.map +1 -0
  91. package/build/icons/ShakeDeviceIcon.d.ts +3 -0
  92. package/build/icons/ShakeDeviceIcon.js +7 -0
  93. package/build/icons/ShakeDeviceIcon.js.map +1 -0
  94. package/build/icons/ShowMenuIcon.d.ts +3 -0
  95. package/build/icons/ShowMenuIcon.js +7 -0
  96. package/build/icons/ShowMenuIcon.js.map +1 -0
  97. package/build/icons/TerminalIcon.d.ts +3 -0
  98. package/build/icons/TerminalIcon.js +7 -0
  99. package/build/icons/TerminalIcon.js.map +1 -0
  100. package/build/icons/ThreeFingerPressIcon.d.ts +3 -0
  101. package/build/icons/ThreeFingerPressIcon.js +7 -0
  102. package/build/icons/ThreeFingerPressIcon.js.map +1 -0
  103. package/build/icons/ToolbarOverlayIcon.d.ts +3 -0
  104. package/build/icons/ToolbarOverlayIcon.js +7 -0
  105. package/build/icons/ToolbarOverlayIcon.js.map +1 -0
  106. package/build/icons/UserIcon.d.ts +3 -0
  107. package/build/icons/UserIcon.js +7 -0
  108. package/build/icons/UserIcon.js.map +1 -0
  109. package/build/icons/XIcon.d.ts +3 -0
  110. package/build/icons/XIcon.js +7 -0
  111. package/build/icons/XIcon.js.map +1 -0
  112. package/build/icons/index.d.ts +15 -0
  113. package/build/icons/index.js +16 -0
  114. package/build/icons/index.js.map +1 -0
  115. package/build/index.d.ts +7 -0
  116. package/build/index.js +8 -0
  117. package/build/index.js.map +1 -0
  118. package/build/theme.d.ts +345 -0
  119. package/build/theme.js +191 -0
  120. package/build/theme.js.map +1 -0
  121. package/build/useExpoTheme.d.ts +4 -0
  122. package/build/useExpoTheme.js +10 -0
  123. package/build/useExpoTheme.js.map +1 -0
  124. package/package.json +40 -0
  125. package/src/Button.tsx +199 -0
  126. package/src/Image.tsx +42 -0
  127. package/src/Text.tsx +78 -0
  128. package/src/View.tsx +202 -0
  129. package/src/icons/CheckIcon.tsx +9 -0
  130. package/src/icons/ChevronRightIcon.tsx +9 -0
  131. package/src/icons/ExpoLogoIcon.tsx +9 -0
  132. package/src/icons/HomeFilledIcon.tsx +15 -0
  133. package/src/icons/InfoIcon.tsx +9 -0
  134. package/src/icons/QuestionMarkIcon.tsx +9 -0
  135. package/src/icons/RefreshIcon.tsx +9 -0
  136. package/src/icons/SettingsFilledIcon.tsx +15 -0
  137. package/src/icons/ShakeDeviceIcon.tsx +9 -0
  138. package/src/icons/ShowMenuIcon.tsx +9 -0
  139. package/src/icons/TerminalIcon.tsx +9 -0
  140. package/src/icons/ThreeFingerPressIcon.tsx +9 -0
  141. package/src/icons/ToolbarOverlayIcon.tsx +9 -0
  142. package/src/icons/UserIcon.tsx +9 -0
  143. package/src/icons/XIcon.tsx +9 -0
  144. package/src/icons/index.ts +15 -0
  145. package/src/index.ts +7 -0
  146. package/src/theme.ts +225 -0
  147. package/src/useExpoTheme.ts +14 -0
  148. package/tsconfig.json +9 -0
@@ -0,0 +1,345 @@
1
+ export declare const scale: {
2
+ micro: number;
3
+ tiny: number;
4
+ small: number;
5
+ medium: number;
6
+ large: number;
7
+ xl: number;
8
+ };
9
+ export declare const padding: {
10
+ padding: {
11
+ micro: {
12
+ padding: number;
13
+ };
14
+ tiny: {
15
+ padding: number;
16
+ };
17
+ small: {
18
+ padding: number;
19
+ };
20
+ medium: {
21
+ padding: number;
22
+ };
23
+ large: {
24
+ padding: number;
25
+ };
26
+ xl: {
27
+ padding: number;
28
+ };
29
+ };
30
+ px: {
31
+ micro: {
32
+ paddingHorizontal: number;
33
+ };
34
+ tiny: {
35
+ paddingHorizontal: number;
36
+ };
37
+ small: {
38
+ paddingHorizontal: number;
39
+ };
40
+ medium: {
41
+ paddingHorizontal: number;
42
+ };
43
+ large: {
44
+ paddingHorizontal: number;
45
+ };
46
+ xl: {
47
+ paddingHorizontal: number;
48
+ };
49
+ };
50
+ py: {
51
+ micro: {
52
+ paddingVertical: number;
53
+ };
54
+ tiny: {
55
+ paddingVertical: number;
56
+ };
57
+ small: {
58
+ paddingVertical: number;
59
+ };
60
+ medium: {
61
+ paddingVertical: number;
62
+ };
63
+ large: {
64
+ paddingVertical: number;
65
+ };
66
+ xl: {
67
+ paddingVertical: number;
68
+ };
69
+ };
70
+ };
71
+ export declare const margin: {
72
+ margin: {
73
+ micro: {
74
+ margin: number;
75
+ };
76
+ tiny: {
77
+ margin: number;
78
+ };
79
+ small: {
80
+ margin: number;
81
+ };
82
+ medium: {
83
+ margin: number;
84
+ };
85
+ large: {
86
+ margin: number;
87
+ };
88
+ xl: {
89
+ margin: number;
90
+ };
91
+ };
92
+ mx: {
93
+ micro: {
94
+ marginHorizontal: number;
95
+ };
96
+ tiny: {
97
+ marginHorizontal: number;
98
+ };
99
+ small: {
100
+ marginHorizontal: number;
101
+ };
102
+ medium: {
103
+ marginHorizontal: number;
104
+ };
105
+ large: {
106
+ marginHorizontal: number;
107
+ };
108
+ };
109
+ my: {
110
+ micro: {
111
+ marginHorizontal: number;
112
+ };
113
+ tiny: {
114
+ marginVertical: number;
115
+ };
116
+ small: {
117
+ marginVertical: number;
118
+ };
119
+ medium: {
120
+ marginVertical: number;
121
+ };
122
+ large: {
123
+ marginVertical: number;
124
+ };
125
+ };
126
+ };
127
+ export declare const rounded: {
128
+ rounded: {
129
+ none: {
130
+ borderRadius: number;
131
+ };
132
+ small: {
133
+ borderRadius: number;
134
+ };
135
+ medium: {
136
+ borderRadius: number;
137
+ };
138
+ large: {
139
+ borderRadius: number;
140
+ };
141
+ full: {
142
+ borderRadius: number;
143
+ };
144
+ };
145
+ roundedTop: {
146
+ none: {
147
+ borderTopLeftRadius: number;
148
+ borderTopRightRadius: number;
149
+ };
150
+ small: {
151
+ borderTopLeftRadius: number;
152
+ borderTopRightRadius: number;
153
+ };
154
+ medium: {
155
+ borderTopLeftRadius: number;
156
+ borderTopRightRadius: number;
157
+ };
158
+ large: {
159
+ borderTopLeftRadius: number;
160
+ borderTopRightRadius: number;
161
+ };
162
+ full: {
163
+ borderTopLeftRadius: number;
164
+ borderTopRightRadius: number;
165
+ };
166
+ };
167
+ roundedBottom: {
168
+ none: {
169
+ borderBottomLeftRadius: number;
170
+ borderBottomRightRadius: number;
171
+ };
172
+ small: {
173
+ borderBottomLeftRadius: number;
174
+ borderBottomRightRadius: number;
175
+ };
176
+ medium: {
177
+ borderBottomLeftRadius: number;
178
+ borderBottomRightRadius: number;
179
+ };
180
+ large: {
181
+ borderBottomLeftRadius: number;
182
+ borderBottomRightRadius: number;
183
+ };
184
+ full: {
185
+ borderBottomLeftRadius: number;
186
+ borderBottomRightRadius: number;
187
+ };
188
+ };
189
+ };
190
+ export declare const text: {
191
+ align: {
192
+ center: {
193
+ textAlign: "center" | "auto" | "left" | "right" | "justify" | undefined;
194
+ };
195
+ };
196
+ size: {
197
+ small: {
198
+ fontSize: number;
199
+ lineHeight: number;
200
+ };
201
+ medium: {
202
+ fontSize: number;
203
+ lineHeight: number;
204
+ };
205
+ large: {
206
+ fontSize: number;
207
+ lineHeight: number;
208
+ };
209
+ };
210
+ leading: {
211
+ large: {
212
+ lineHeight: number;
213
+ };
214
+ };
215
+ type: {
216
+ mono: {
217
+ fontFamily: string;
218
+ };
219
+ };
220
+ weight: {
221
+ thin: {
222
+ fontWeight: "100" | "normal" | "bold" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
223
+ };
224
+ extralight: {
225
+ fontWeight: "100" | "normal" | "bold" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
226
+ };
227
+ light: {
228
+ fontWeight: "100" | "normal" | "bold" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
229
+ };
230
+ normal: {
231
+ fontWeight: "100" | "normal" | "bold" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
232
+ };
233
+ medium: {
234
+ fontWeight: "100" | "normal" | "bold" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
235
+ };
236
+ semibold: {
237
+ fontWeight: "100" | "normal" | "bold" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
238
+ };
239
+ bold: {
240
+ fontWeight: "100" | "normal" | "bold" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
241
+ };
242
+ extrabold: {
243
+ fontWeight: "100" | "normal" | "bold" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
244
+ };
245
+ black: {
246
+ fontWeight: "100" | "normal" | "bold" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
247
+ };
248
+ };
249
+ color: {
250
+ default: {
251
+ color: string;
252
+ };
253
+ error: {
254
+ color: string;
255
+ };
256
+ warning: {
257
+ color: string;
258
+ };
259
+ success: {
260
+ color: string;
261
+ };
262
+ secondary: {
263
+ color: string;
264
+ };
265
+ primary: {
266
+ color: string;
267
+ };
268
+ };
269
+ };
270
+ export declare const textDark: {
271
+ base: {
272
+ color: string;
273
+ };
274
+ color: {
275
+ default: {
276
+ color: string;
277
+ };
278
+ error: {
279
+ color: string;
280
+ };
281
+ warning: {
282
+ color: string;
283
+ };
284
+ success: {
285
+ color: string;
286
+ };
287
+ secondary: {
288
+ color: string;
289
+ };
290
+ primary: {
291
+ color: string;
292
+ };
293
+ };
294
+ };
295
+ export declare const bg: {
296
+ none: {
297
+ backgroundColor: string;
298
+ };
299
+ default: {
300
+ backgroundColor: string;
301
+ };
302
+ secondary: {
303
+ backgroundColor: string;
304
+ };
305
+ success: {
306
+ backgroundColor: string;
307
+ };
308
+ warning: {
309
+ backgroundColor: string;
310
+ };
311
+ error: {
312
+ backgroundColor: string;
313
+ };
314
+ };
315
+ export declare const bgDark: {
316
+ default: {
317
+ backgroundColor: string;
318
+ };
319
+ secondary: {
320
+ backgroundColor: string;
321
+ };
322
+ success: {
323
+ backgroundColor: string;
324
+ };
325
+ warning: {
326
+ backgroundColor: string;
327
+ };
328
+ error: {
329
+ backgroundColor: string;
330
+ };
331
+ };
332
+ declare type NavigationTheme = {
333
+ dark: boolean;
334
+ colors: {
335
+ primary: string;
336
+ background: string;
337
+ card: string;
338
+ text: string;
339
+ border: string;
340
+ notification: string;
341
+ };
342
+ };
343
+ export declare const lightNavigationTheme: NavigationTheme;
344
+ export declare const darkNavigationTheme: NavigationTheme;
345
+ export {};
package/build/theme.js ADDED
@@ -0,0 +1,191 @@
1
+ import { spacing, lightTheme, darkTheme, borderRadius } from '@expo/styleguide-native';
2
+ export const scale = {
3
+ micro: spacing[0.5],
4
+ tiny: spacing[1],
5
+ small: spacing[3],
6
+ medium: spacing[4],
7
+ large: spacing[6],
8
+ xl: spacing[8],
9
+ };
10
+ export const padding = {
11
+ padding: {
12
+ micro: { padding: scale.micro },
13
+ tiny: { padding: scale.tiny },
14
+ small: { padding: scale.small },
15
+ medium: { padding: scale.medium },
16
+ large: { padding: scale.large },
17
+ xl: { padding: scale.xl },
18
+ },
19
+ px: {
20
+ micro: { paddingHorizontal: scale.micro },
21
+ tiny: { paddingHorizontal: scale.tiny },
22
+ small: { paddingHorizontal: scale.small },
23
+ medium: { paddingHorizontal: scale.medium },
24
+ large: { paddingHorizontal: scale.large },
25
+ xl: { paddingHorizontal: scale.xl },
26
+ },
27
+ py: {
28
+ micro: { paddingVertical: scale.micro },
29
+ tiny: { paddingVertical: scale.tiny },
30
+ small: { paddingVertical: scale.small },
31
+ medium: { paddingVertical: scale.medium },
32
+ large: { paddingVertical: scale.large },
33
+ xl: { paddingVertical: scale.xl },
34
+ },
35
+ };
36
+ export const margin = {
37
+ margin: {
38
+ micro: { margin: scale.micro },
39
+ tiny: { margin: scale.tiny },
40
+ small: { margin: scale.small },
41
+ medium: { margin: scale.medium },
42
+ large: { margin: scale.large },
43
+ xl: { margin: scale.xl },
44
+ },
45
+ mx: {
46
+ micro: { marginHorizontal: scale.micro },
47
+ tiny: { marginHorizontal: scale.tiny },
48
+ small: { marginHorizontal: scale.small },
49
+ medium: { marginHorizontal: scale.medium },
50
+ large: { marginHorizontal: scale.large },
51
+ },
52
+ my: {
53
+ micro: { marginHorizontal: scale.micro },
54
+ tiny: { marginVertical: scale.tiny },
55
+ small: { marginVertical: scale.small },
56
+ medium: { marginVertical: scale.medium },
57
+ large: { marginVertical: scale.large },
58
+ },
59
+ };
60
+ export const rounded = {
61
+ rounded: {
62
+ none: { borderRadius: 0 },
63
+ small: { borderRadius: borderRadius.small },
64
+ medium: { borderRadius: borderRadius.medium },
65
+ large: { borderRadius: borderRadius.large },
66
+ full: { borderRadius: 99999 },
67
+ },
68
+ roundedTop: {
69
+ none: { borderTopLeftRadius: 0, borderTopRightRadius: 0 },
70
+ small: { borderTopLeftRadius: borderRadius.small, borderTopRightRadius: borderRadius.small },
71
+ medium: {
72
+ borderTopLeftRadius: borderRadius.medium,
73
+ borderTopRightRadius: borderRadius.medium,
74
+ },
75
+ large: { borderTopLeftRadius: borderRadius.large, borderTopRightRadius: borderRadius.large },
76
+ full: { borderTopLeftRadius: 9999, borderTopRightRadius: 9999 },
77
+ },
78
+ roundedBottom: {
79
+ none: { borderBottomLeftRadius: 0, borderBottomRightRadius: 0 },
80
+ small: {
81
+ borderBottomLeftRadius: borderRadius.small,
82
+ borderBottomRightRadius: borderRadius.small,
83
+ },
84
+ medium: {
85
+ borderBottomLeftRadius: borderRadius.medium,
86
+ borderBottomRightRadius: borderRadius.medium,
87
+ },
88
+ large: {
89
+ borderBottomLeftRadius: borderRadius.large,
90
+ borderBottomRightRadius: borderRadius.large,
91
+ },
92
+ full: { borderBottomLeftRadius: 9999, borderBottomRightRadius: 9999 },
93
+ },
94
+ };
95
+ export const text = {
96
+ align: {
97
+ center: { textAlign: 'center' },
98
+ },
99
+ size: {
100
+ small: {
101
+ fontSize: 12,
102
+ lineHeight: 14,
103
+ },
104
+ medium: {
105
+ fontSize: 16,
106
+ lineHeight: 18,
107
+ },
108
+ large: {
109
+ fontSize: 18,
110
+ lineHeight: 24,
111
+ },
112
+ },
113
+ leading: {
114
+ large: { lineHeight: 18 },
115
+ },
116
+ type: {
117
+ mono: {
118
+ fontFamily: 'Menlo',
119
+ },
120
+ },
121
+ weight: {
122
+ thin: { fontWeight: '100' },
123
+ extralight: { fontWeight: '200' },
124
+ light: { fontWeight: '300' },
125
+ normal: { fontWeight: '400' },
126
+ medium: { fontWeight: '500' },
127
+ semibold: { fontWeight: '600' },
128
+ bold: { fontWeight: '700' },
129
+ extrabold: { fontWeight: '800' },
130
+ black: { fontWeight: '900' },
131
+ },
132
+ color: {
133
+ default: { color: lightTheme.text.default },
134
+ error: { color: lightTheme.text.error },
135
+ warning: { color: lightTheme.text.warning },
136
+ success: { color: lightTheme.text.success },
137
+ secondary: { color: lightTheme.text.secondary },
138
+ primary: { color: lightTheme.button.primary.background },
139
+ },
140
+ };
141
+ export const textDark = {
142
+ base: {
143
+ color: darkTheme.text.default,
144
+ },
145
+ color: {
146
+ default: { color: darkTheme.text.default },
147
+ error: { color: darkTheme.text.error },
148
+ warning: { color: darkTheme.text.warning },
149
+ success: { color: darkTheme.text.success },
150
+ secondary: { color: darkTheme.text.secondary },
151
+ primary: { color: darkTheme.button.primary.background },
152
+ },
153
+ };
154
+ export const bg = {
155
+ none: { backgroundColor: 'transparent' },
156
+ default: { backgroundColor: lightTheme.background.default },
157
+ secondary: { backgroundColor: lightTheme.background.secondary },
158
+ success: { backgroundColor: lightTheme.background.success },
159
+ warning: { backgroundColor: lightTheme.background.warning },
160
+ error: { backgroundColor: lightTheme.background.error },
161
+ };
162
+ export const bgDark = {
163
+ default: { backgroundColor: darkTheme.background.default },
164
+ secondary: { backgroundColor: darkTheme.background.secondary },
165
+ success: { backgroundColor: darkTheme.background.success },
166
+ warning: { backgroundColor: darkTheme.background.warning },
167
+ error: { backgroundColor: darkTheme.background.error },
168
+ };
169
+ export const lightNavigationTheme = {
170
+ dark: false,
171
+ colors: {
172
+ primary: lightTheme.button.primary.background,
173
+ background: lightTheme.background.secondary,
174
+ card: lightTheme.background.default,
175
+ text: lightTheme.text.default,
176
+ border: lightTheme.border.default,
177
+ notification: lightTheme.highlight.accent,
178
+ },
179
+ };
180
+ export const darkNavigationTheme = {
181
+ dark: true,
182
+ colors: {
183
+ primary: darkTheme.button.primary.background,
184
+ background: darkTheme.background.secondary,
185
+ card: darkTheme.background.default,
186
+ text: darkTheme.text.default,
187
+ border: darkTheme.border.default,
188
+ notification: darkTheme.highlight.accent,
189
+ },
190
+ };
191
+ //# sourceMappingURL=theme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.js","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAGvF,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC;IACnB,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;IACjB,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC;CACf,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,OAAO,EAAE;QACP,KAAK,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,KAAK,EAAE;QAC/B,IAAI,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,IAAI,EAAE;QAC7B,KAAK,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,KAAK,EAAE;Q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AAe,EAAE,SAAS,CAAC,UAAU,CAAC,OAAO,EAAE;IAC1D,KAAK,EAAE,EAAE,eAAe,EAAE,SAAS,CAAC,UAAU,CAAC,KAAK,EAAE;CACvD,CAAC;AAcF,MAAM,CAAC,MAAM,oBAAoB,GAAoB;IACnD,IAAI,EAAE,KAAK;IACX,MAAM,EAAE;QACN,OAAO,EAAE,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,UAAU;QAC7C,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC,SAAS;QAC3C,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,OAAO;QACnC,IAAI,EAAE,UAAU,CAAC,IAAI,CAAC,OAAO;QAC7B,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,OAAO;QACjC,YAAY,EAAE,UAAU,CAAC,SAAS,CAAC,MAAM;KAC1C;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAoB;IAClD,IAAI,EAAE,IAAI;IACV,MAAM,EAAE;QACN,OAAO,EAAE,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,UAAU;QAC5C,UAAU,EAAE,SAAS,CAAC,UAAU,CAAC,SAAS;QAC1C,IAAI,EAAE,SAAS,CAAC,UAAU,CAAC,OAAO;QAClC,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC,OAAO;QAC5B,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,OAAO;QAChC,YAAY,EAAE,SAAS,CAAC,SAAS,CAAC,MAAM;KACzC;CACF,CAAC","sourcesContent":["import { spacing, lightTheme, darkTheme, borderRadius } from '@expo/styleguide-native';\nimport { TextStyle } from 'react-native';\n\nexport const scale = {\n micro: spacing[0.5],\n tiny: spacing[1],\n small: spacing[3],\n medium: spacing[4],\n large: spacing[6],\n xl: spacing[8],\n};\n\nexport const padding = {\n padding: {\n micro: { padding: scale.micro },\n tiny: { padding: scale.tiny },\n small: { padding: scale.small },\n medium: { padding: scale.medium },\n large: { padding: scale.large },\n xl: { padding: scale.xl },\n },\n\n px: {\n micro: { paddingHorizontal: scale.micro },\n tiny: { paddingHorizontal: scale.tiny },\n small: { paddingHorizontal: scale.small },\n medium: { paddingHorizontal: scale.medium },\n large: { paddingHorizontal: scale.large },\n xl: { paddingHorizontal: scale.xl },\n },\n\n py: {\n micro: { paddingVertical: scale.micro },\n tiny: { paddingVertical: scale.tiny },\n small: { paddingVertical: scale.small },\n medium: { paddingVertical: scale.medium },\n large: { paddingVertical: scale.large },\n xl: { paddingVertical: scale.xl },\n },\n};\n\nexport const margin = {\n margin: {\n micro: { margin: scale.micro },\n tiny: { margin: scale.tiny },\n small: { margin: scale.small },\n medium: { margin: scale.medium },\n large: { margin: scale.large },\n xl: { margin: scale.xl },\n },\n\n mx: {\n micro: { marginHorizontal: scale.micro },\n tiny: { marginHorizontal: scale.tiny },\n small: { marginHorizontal: scale.small },\n medium: { marginHorizontal: scale.medium },\n large: { marginHorizontal: scale.large },\n },\n\n my: {\n micro: { marginHorizontal: scale.micro },\n tiny: { marginVertical: scale.tiny },\n small: { marginVertical: scale.small },\n medium: { marginVertical: scale.medium },\n large: { marginVertical: scale.large },\n },\n};\n\nexport const rounded = {\n rounded: {\n none: { borderRadius: 0 },\n small: { borderRadius: borderRadius.small },\n medium: { borderRadius: borderRadius.medium },\n large: { borderRadius: borderRadius.large },\n full: { borderRadius: 99999 },\n },\n\n roundedTop: {\n none: { borderTopLeftRadius: 0, borderTopRightRadius: 0 },\n small: { borderTopLeftRadius: borderRadius.small, borderTopRightRadius: borderRadius.small },\n medium: {\n borderTopLeftRadius: borderRadius.medium,\n borderTopRightRadius: borderRadius.medium,\n },\n large: { borderTopLeftRadius: borderRadius.large, borderTopRightRadius: borderRadius.large },\n full: { borderTopLeftRadius: 9999, borderTopRightRadius: 9999 },\n },\n\n roundedBottom: {\n none: { borderBottomLeftRadius: 0, borderBottomRightRadius: 0 },\n small: {\n borderBottomLeftRadius: borderRadius.small,\n borderBottomRightRadius: borderRadius.small,\n },\n medium: {\n borderBottomLeftRadius: borderRadius.medium,\n borderBottomRightRadius: borderRadius.medium,\n },\n large: {\n borderBottomLeftRadius: borderRadius.large,\n borderBottomRightRadius: borderRadius.large,\n },\n full: { borderBottomLeftRadius: 9999, borderBottomRightRadius: 9999 },\n },\n};\n\nexport const text = {\n align: {\n center: { textAlign: 'center' as TextStyle['textAlign'] },\n },\n\n size: {\n small: {\n fontSize: 12,\n lineHeight: 14,\n },\n medium: {\n fontSize: 16,\n lineHeight: 18,\n },\n large: {\n fontSize: 18,\n lineHeight: 24,\n },\n },\n\n leading: {\n large: { lineHeight: 18 },\n },\n\n type: {\n mono: {\n fontFamily: 'Menlo',\n },\n },\n\n weight: {\n thin: { fontWeight: '100' as TextStyle['fontWeight'] },\n extralight: { fontWeight: '200' as TextStyle['fontWeight'] },\n light: { fontWeight: '300' as TextStyle['fontWeight'] },\n normal: { fontWeight: '400' as TextStyle['fontWeight'] },\n medium: { fontWeight: '500' as TextStyle['fontWeight'] },\n semibold: { fontWeight: '600' as TextStyle['fontWeight'] },\n bold: { fontWeight: '700' as TextStyle['fontWeight'] },\n extrabold: { fontWeight: '800' as TextStyle['fontWeight'] },\n black: { fontWeight: '900' as TextStyle['fontWeight'] },\n },\n\n color: {\n default: { color: lightTheme.text.default },\n error: { color: lightTheme.text.error },\n warning: { color: lightTheme.text.warning },\n success: { color: lightTheme.text.success },\n secondary: { color: lightTheme.text.secondary },\n primary: { color: lightTheme.button.primary.background },\n },\n};\n\nexport const textDark = {\n base: {\n color: darkTheme.text.default,\n },\n\n color: {\n default: { color: darkTheme.text.default },\n error: { color: darkTheme.text.error },\n warning: { color: darkTheme.text.warning },\n success: { color: darkTheme.text.success },\n secondary: { color: darkTheme.text.secondary },\n primary: { color: darkTheme.button.primary.background },\n },\n};\n\nexport const bg = {\n none: { backgroundColor: 'transparent' },\n default: { backgroundColor: lightTheme.background.default },\n secondary: { backgroundColor: lightTheme.background.secondary },\n success: { backgroundColor: lightTheme.background.success },\n warning: { backgroundColor: lightTheme.background.warning },\n error: { backgroundColor: lightTheme.background.error },\n};\n\nexport const bgDark = {\n default: { backgroundColor: darkTheme.background.default },\n secondary: { backgroundColor: darkTheme.background.secondary },\n success: { backgroundColor: darkTheme.background.success },\n warning: { backgroundColor: darkTheme.background.warning },\n error: { backgroundColor: darkTheme.background.error },\n};\n\ntype NavigationTheme = {\n dark: boolean;\n colors: {\n primary: string;\n background: string;\n card: string;\n text: string;\n border: string;\n notification: string;\n };\n};\n\nexport const lightNavigationTheme: NavigationTheme = {\n dark: false,\n colors: {\n primary: lightTheme.button.primary.background,\n background: lightTheme.background.secondary,\n card: lightTheme.background.default,\n text: lightTheme.text.default,\n border: lightTheme.border.default,\n notification: lightTheme.highlight.accent,\n },\n};\n\nexport const darkNavigationTheme: NavigationTheme = {\n dark: true,\n colors: {\n primary: darkTheme.button.primary.background,\n background: darkTheme.background.secondary,\n card: darkTheme.background.default,\n text: darkTheme.text.default,\n border: darkTheme.border.default,\n notification: darkTheme.highlight.accent,\n },\n};\n"]}
@@ -0,0 +1,4 @@
1
+ import { lightTheme } from '@expo/styleguide-native';
2
+ declare type ExpoTheme = typeof lightTheme;
3
+ export declare function useExpoTheme(): ExpoTheme;
4
+ export {};
@@ -0,0 +1,10 @@
1
+ import { lightTheme, darkTheme } from '@expo/styleguide-native';
2
+ import { useColorScheme } from 'react-native';
3
+ export function useExpoTheme() {
4
+ const colorScheme = useColorScheme();
5
+ if (colorScheme === 'dark') {
6
+ return darkTheme;
7
+ }
8
+ return lightTheme;
9
+ }
10
+ //# sourceMappingURL=useExpoTheme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useExpoTheme.js","sourceRoot":"","sources":["../src/useExpoTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAI9C,MAAM,UAAU,YAAY;IAC1B,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IAErC,IAAI,WAAW,KAAK,MAAM,EAAE;QAC1B,OAAO,SAAS,CAAC;KAClB;IAED,OAAO,UAAU,CAAC;AACpB,CAAC","sourcesContent":["import { lightTheme, darkTheme } from '@expo/styleguide-native';\nimport { useColorScheme } from 'react-native';\n\ntype ExpoTheme = typeof lightTheme;\n\nexport function useExpoTheme(): ExpoTheme {\n const colorScheme = useColorScheme();\n\n if (colorScheme === 'dark') {\n return darkTheme;\n }\n\n return lightTheme;\n}\n"]}
package/package.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "expo-dev-client-components",
3
+ "version": "1.0.0",
4
+ "description": "Shared JS components and configuration for expo-dev-client",
5
+ "main": "build/index.js",
6
+ "scripts": {
7
+ "build": "expo-module build",
8
+ "clean": "expo-module clean",
9
+ "lint": "expo-module lint",
10
+ "test": "expo-module test",
11
+ "prepare": "expo-module prepare",
12
+ "prepublishOnly": "expo-module prepublishOnly",
13
+ "expo-module": "expo-module"
14
+ },
15
+ "keywords": [
16
+ "react-native",
17
+ "expo",
18
+ "expo-dev-client-components"
19
+ ],
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "https://github.com/expo/expo.git",
23
+ "directory": "packages/expo-dev-client-components"
24
+ },
25
+ "bugs": {
26
+ "url": "https://github.com/expo/expo/issues"
27
+ },
28
+ "author": "650 Industries, Inc.",
29
+ "license": "MIT",
30
+ "homepage": "https://docs.expo.dev/versions/latest/sdk/module-template",
31
+ "dependencies": {
32
+ "@expo/styleguide-native": "^0.4.0",
33
+ "expo-module-scripts": "^2.0.0",
34
+ "react-native-primitives": "^0.1.3"
35
+ },
36
+ "jest": {
37
+ "preset": "expo-module-scripts/ios"
38
+ },
39
+ "gitHead": "db3c974468338f22450238dc273b343a76e2c347"
40
+ }