@expo/styleguide-native 0.4.1 → 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 (47) hide show
  1. package/dist/index.d.ts +3 -1
  2. package/dist/index.js +5 -1
  3. package/dist/src/icons/AtSignIcon.d.ts +4 -0
  4. package/dist/src/icons/{AtIcon.js → AtSignIcon.js} +3 -3
  5. package/dist/src/icons/BuildIcon.js +1 -1
  6. package/dist/src/icons/DebugIcon.d.ts +4 -0
  7. package/dist/src/icons/DebugIcon.js +30 -0
  8. package/dist/src/icons/DeploymentIcon.d.ts +4 -0
  9. package/dist/src/icons/DeploymentIcon.js +29 -0
  10. package/dist/src/icons/InspectElementIcon.d.ts +4 -0
  11. package/dist/src/icons/InspectElementIcon.js +30 -0
  12. package/dist/src/icons/InvoicesIcon.js +3 -7
  13. package/dist/src/icons/LifebuoyIcon.d.ts +4 -0
  14. package/dist/src/icons/LifebuoyIcon.js +29 -0
  15. package/dist/src/icons/LockIcon.js +1 -2
  16. package/dist/src/icons/OverviewIcon.d.ts +4 -0
  17. package/dist/src/icons/OverviewIcon.js +29 -0
  18. package/dist/src/icons/PerformanceIcon.d.ts +4 -0
  19. package/dist/src/icons/PerformanceIcon.js +30 -0
  20. package/dist/src/icons/{AtIcon.d.ts → PinIcon.d.ts} +1 -1
  21. package/dist/src/icons/PinIcon.js +29 -0
  22. package/dist/src/icons/PlanEnterpriseIcon.d.ts +4 -0
  23. package/dist/src/icons/PlanEnterpriseIcon.js +29 -0
  24. package/dist/src/icons/PlanFreeIcon.d.ts +4 -0
  25. package/dist/src/icons/PlanFreeIcon.js +29 -0
  26. package/dist/src/icons/PlanProductionIcon.d.ts +4 -0
  27. package/dist/src/icons/PlanProductionIcon.js +30 -0
  28. package/dist/src/icons/ProjectTransferIcon.js +2 -2
  29. package/dist/src/icons/RunIcon.d.ts +4 -0
  30. package/dist/src/icons/RunIcon.js +30 -0
  31. package/dist/src/icons/UndoIcon.d.ts +4 -0
  32. package/dist/src/icons/UndoIcon.js +29 -0
  33. package/dist/src/icons/UpdateIcon.d.ts +4 -0
  34. package/dist/src/icons/UpdateIcon.js +30 -0
  35. package/dist/src/icons/UploadIcon.d.ts +4 -0
  36. package/dist/src/icons/UploadIcon.js +30 -0
  37. package/dist/src/icons/index.d.ts +15 -1
  38. package/dist/src/icons/index.js +32 -4
  39. package/dist/src/styles/breakpoints.d.ts +5 -0
  40. package/dist/src/styles/breakpoints.js +8 -0
  41. package/dist/src/styles/palette.js +84 -84
  42. package/dist/src/styles/sizing.js +3 -3
  43. package/dist/src/styles/themes.d.ts +20 -2
  44. package/dist/src/styles/themes.js +20 -2
  45. package/dist/src/styles/typography.d.ts +424 -0
  46. package/dist/src/styles/typography.js +338 -0
  47. package/package.json +2 -2
@@ -0,0 +1,338 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.typography = void 0;
4
+ const baseFontSize = 16;
5
+ const fontSizes = {
6
+ 61: {
7
+ fontSize: 61,
8
+ lineHeight: 73,
9
+ letterSpacing: -0.022 * baseFontSize,
10
+ },
11
+ 53: {
12
+ fontSize: 53,
13
+ lineHeight: 64,
14
+ letterSpacing: -0.022 * baseFontSize,
15
+ },
16
+ 49: {
17
+ fontSize: 49,
18
+ lineHeight: 59,
19
+ letterSpacing: -0.022 * baseFontSize,
20
+ },
21
+ 46: {
22
+ fontSize: 46,
23
+ lineHeight: 55,
24
+ letterSpacing: -0.022 * baseFontSize,
25
+ },
26
+ 43: {
27
+ fontSize: 43,
28
+ lineHeight: 52,
29
+ letterSpacing: -0.022 * baseFontSize,
30
+ },
31
+ 39: {
32
+ fontSize: 39,
33
+ lineHeight: 51,
34
+ letterSpacing: -0.022 * baseFontSize,
35
+ },
36
+ 37: {
37
+ fontSize: 37,
38
+ lineHeight: 48,
39
+ letterSpacing: -0.022 * baseFontSize,
40
+ },
41
+ 34: {
42
+ fontSize: 34,
43
+ lineHeight: 44,
44
+ letterSpacing: -0.022 * baseFontSize,
45
+ },
46
+ 31: {
47
+ fontSize: 31,
48
+ lineHeight: 40,
49
+ letterSpacing: -0.021 * baseFontSize,
50
+ },
51
+ 29: {
52
+ fontSize: 29,
53
+ lineHeight: 38,
54
+ letterSpacing: -0.021 * baseFontSize,
55
+ },
56
+ 27: {
57
+ fontSize: 27,
58
+ lineHeight: 36,
59
+ letterSpacing: -0.021 * baseFontSize,
60
+ },
61
+ 25: {
62
+ fontSize: 25,
63
+ lineHeight: 35,
64
+ letterSpacing: -0.021 * baseFontSize,
65
+ },
66
+ 23: {
67
+ fontSize: 23,
68
+ lineHeight: 32,
69
+ letterSpacing: -0.019 * baseFontSize,
70
+ },
71
+ 22: {
72
+ fontSize: 22,
73
+ lineHeight: 31,
74
+ letterSpacing: -0.018 * baseFontSize,
75
+ },
76
+ 20: {
77
+ fontSize: 20,
78
+ lineHeight: 30,
79
+ letterSpacing: -0.017 * baseFontSize,
80
+ },
81
+ 19: {
82
+ fontSize: 19,
83
+ lineHeight: 29,
84
+ letterSpacing: -0.015 * baseFontSize,
85
+ },
86
+ 18: {
87
+ fontSize: 18,
88
+ lineHeight: 28,
89
+ letterSpacing: -0.014 * baseFontSize,
90
+ },
91
+ 16: {
92
+ fontSize: 16,
93
+ lineHeight: 26,
94
+ letterSpacing: -0.011 * baseFontSize,
95
+ },
96
+ 15: {
97
+ fontSize: 15,
98
+ lineHeight: 24,
99
+ letterSpacing: -0.009 * baseFontSize,
100
+ },
101
+ 14: {
102
+ fontSize: 14,
103
+ lineHeight: 22,
104
+ letterSpacing: -0.006 * baseFontSize,
105
+ },
106
+ 13: {
107
+ fontSize: 13,
108
+ lineHeight: 21,
109
+ letterSpacing: -0.003 * baseFontSize,
110
+ },
111
+ 12: {
112
+ fontSize: 12,
113
+ lineHeight: 19,
114
+ },
115
+ };
116
+ const headers = {
117
+ xl: {
118
+ large: {
119
+ huge: {
120
+ fontWeight: '900',
121
+ ...fontSizes[61],
122
+ },
123
+ h1: {
124
+ fontWeight: '600',
125
+ ...fontSizes[49],
126
+ },
127
+ h2: {
128
+ fontWeight: '600',
129
+ ...fontSizes[39],
130
+ },
131
+ h3: {
132
+ fontWeight: '600',
133
+ ...fontSizes[31],
134
+ },
135
+ h4: {
136
+ fontWeight: '600',
137
+ ...fontSizes[25],
138
+ },
139
+ h5: {
140
+ fontWeight: '600',
141
+ ...fontSizes[20],
142
+ },
143
+ h6: {
144
+ fontWeight: '600',
145
+ ...fontSizes[16],
146
+ },
147
+ },
148
+ medium: {
149
+ huge: {
150
+ fontWeight: '900',
151
+ ...fontSizes[53],
152
+ },
153
+ h1: {
154
+ fontWeight: '600',
155
+ ...fontSizes[43],
156
+ },
157
+ h2: {
158
+ fontWeight: '600',
159
+ ...fontSizes[34],
160
+ },
161
+ h3: {
162
+ fontWeight: '600',
163
+ ...fontSizes[27],
164
+ },
165
+ h4: {
166
+ fontWeight: '600',
167
+ ...fontSizes[22],
168
+ },
169
+ h5: {
170
+ fontWeight: '600',
171
+ ...fontSizes[18],
172
+ },
173
+ h6: {
174
+ fontWeight: '600',
175
+ ...fontSizes[16],
176
+ },
177
+ },
178
+ small: {
179
+ huge: {
180
+ fontWeight: '900',
181
+ ...fontSizes[46],
182
+ },
183
+ h1: {
184
+ fontWeight: '600',
185
+ ...fontSizes[37],
186
+ },
187
+ h2: {
188
+ fontWeight: '600',
189
+ ...fontSizes[29],
190
+ },
191
+ h3: {
192
+ fontWeight: '600',
193
+ ...fontSizes[23],
194
+ },
195
+ h4: {
196
+ fontWeight: '600',
197
+ ...fontSizes[19],
198
+ },
199
+ h5: {
200
+ fontWeight: '600',
201
+ ...fontSizes[16],
202
+ },
203
+ h6: {
204
+ fontWeight: '600',
205
+ ...fontSizes[16],
206
+ },
207
+ },
208
+ },
209
+ default: {
210
+ large: {
211
+ huge: {
212
+ fontWeight: '900',
213
+ ...fontSizes[39],
214
+ },
215
+ h1: {
216
+ fontWeight: '600',
217
+ ...fontSizes[31],
218
+ },
219
+ h2: {
220
+ fontWeight: '600',
221
+ ...fontSizes[25],
222
+ },
223
+ h3: {
224
+ fontWeight: '600',
225
+ ...fontSizes[20],
226
+ },
227
+ h4: {
228
+ fontWeight: '600',
229
+ ...fontSizes[16],
230
+ },
231
+ h5: {
232
+ fontWeight: '600',
233
+ ...fontSizes[13],
234
+ },
235
+ h6: {
236
+ fontWeight: '600',
237
+ ...fontSizes[12],
238
+ },
239
+ },
240
+ medium: {
241
+ huge: {
242
+ fontWeight: '900',
243
+ ...fontSizes[34],
244
+ },
245
+ h1: {
246
+ fontWeight: '600',
247
+ ...fontSizes[27],
248
+ },
249
+ h2: {
250
+ fontWeight: '600',
251
+ ...fontSizes[22],
252
+ },
253
+ h3: {
254
+ fontWeight: '600',
255
+ ...fontSizes[18],
256
+ },
257
+ h4: {
258
+ fontWeight: '600',
259
+ ...fontSizes[16],
260
+ },
261
+ h5: {
262
+ fontWeight: '600',
263
+ ...fontSizes[13],
264
+ },
265
+ h6: {
266
+ fontWeight: '600',
267
+ ...fontSizes[12],
268
+ },
269
+ },
270
+ small: {
271
+ huge: {
272
+ fontWeight: '900',
273
+ ...fontSizes[29],
274
+ },
275
+ h1: {
276
+ fontWeight: '600',
277
+ ...fontSizes[23],
278
+ },
279
+ h2: {
280
+ fontWeight: '600',
281
+ ...fontSizes[19],
282
+ },
283
+ h3: {
284
+ fontWeight: '600',
285
+ ...fontSizes[16],
286
+ },
287
+ h4: {
288
+ fontWeight: '600',
289
+ ...fontSizes[16],
290
+ },
291
+ h5: {
292
+ fontWeight: '600',
293
+ ...fontSizes[13],
294
+ },
295
+ h6: {
296
+ fontWeight: '600',
297
+ ...fontSizes[12],
298
+ },
299
+ },
300
+ },
301
+ };
302
+ const baseStyle = {
303
+ fontWeight: '400',
304
+ ...fontSizes[16],
305
+ };
306
+ const body = {
307
+ headline: {
308
+ fontWeight: '500',
309
+ ...fontSizes[16],
310
+ },
311
+ paragraph: baseStyle,
312
+ label: {
313
+ fontWeight: '500',
314
+ ...fontSizes[15],
315
+ },
316
+ callout: {
317
+ fontWeight: '400',
318
+ ...fontSizes[14],
319
+ },
320
+ footnote: {
321
+ fontWeight: '400',
322
+ ...fontSizes[13],
323
+ },
324
+ caption: {
325
+ fontWeight: '400',
326
+ ...fontSizes[12],
327
+ },
328
+ code: {
329
+ fontWeight: '400',
330
+ ...fontSizes[13],
331
+ },
332
+ };
333
+ exports.typography = {
334
+ baseFontSize,
335
+ headers,
336
+ body,
337
+ fontSizes,
338
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/styleguide-native",
3
- "version": "0.4.1",
3
+ "version": "1.0.0",
4
4
  "description": "Foundational styles for Expo interfaces.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -33,5 +33,5 @@
33
33
  "react": "*",
34
34
  "react-native-svg": "*"
35
35
  },
36
- "gitHead": "729f74893412c374f7e953da8f3ee981bdf2c0b6"
36
+ "gitHead": "b66433e1fc551311023c6c5829a0d9cdb3bdcae7"
37
37
  }