@expo/styleguide 3.4.2-alpha.1 → 3.4.2-alpha.2
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/dist/src/styles/typography.d.ts +51 -17
- package/dist/src/styles/typography.js +47 -16
- package/package.json +2 -2
|
@@ -100,6 +100,38 @@ export declare const typography: {
|
|
|
100
100
|
fontFamily: string;
|
|
101
101
|
fontWeight: number;
|
|
102
102
|
};
|
|
103
|
+
ul: {
|
|
104
|
+
marginLeft: string;
|
|
105
|
+
'ol, ul': {
|
|
106
|
+
marginTop: string;
|
|
107
|
+
marginBottom: string;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
ol: {
|
|
111
|
+
marginLeft: string;
|
|
112
|
+
'ol, ul': {
|
|
113
|
+
marginTop: string;
|
|
114
|
+
marginBottom: string;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
li: {
|
|
118
|
+
marginBottom: string;
|
|
119
|
+
fontSize: string;
|
|
120
|
+
lineHeight: string;
|
|
121
|
+
letterSpacing: string;
|
|
122
|
+
fontFamily: string;
|
|
123
|
+
fontWeight: number;
|
|
124
|
+
};
|
|
125
|
+
blockquote: {
|
|
126
|
+
color: string;
|
|
127
|
+
paddingLeft: number;
|
|
128
|
+
borderLeft: string;
|
|
129
|
+
fontSize: string;
|
|
130
|
+
lineHeight: string;
|
|
131
|
+
letterSpacing: string;
|
|
132
|
+
fontFamily: string;
|
|
133
|
+
fontWeight: number;
|
|
134
|
+
};
|
|
103
135
|
};
|
|
104
136
|
utility: {
|
|
105
137
|
anchor: {
|
|
@@ -117,13 +149,6 @@ export declare const typography: {
|
|
|
117
149
|
opacity: number;
|
|
118
150
|
};
|
|
119
151
|
};
|
|
120
|
-
li: {
|
|
121
|
-
fontWeight: number;
|
|
122
|
-
marginBottom: string;
|
|
123
|
-
fontSize: string;
|
|
124
|
-
lineHeight: string;
|
|
125
|
-
letterSpacing: string;
|
|
126
|
-
};
|
|
127
152
|
inlineCode: {
|
|
128
153
|
fontWeight: number;
|
|
129
154
|
display: string;
|
|
@@ -155,7 +180,7 @@ export declare const typography: {
|
|
|
155
180
|
borderRadius: number;
|
|
156
181
|
border: string;
|
|
157
182
|
padding: number;
|
|
158
|
-
whiteSpace:
|
|
183
|
+
whiteSpace: "pre-wrap";
|
|
159
184
|
margin: string;
|
|
160
185
|
fontSize: string;
|
|
161
186
|
lineHeight: string;
|
|
@@ -170,7 +195,7 @@ export declare const typography: {
|
|
|
170
195
|
border: string;
|
|
171
196
|
padding: number;
|
|
172
197
|
margin: string;
|
|
173
|
-
whiteSpace:
|
|
198
|
+
whiteSpace: "pre-wrap";
|
|
174
199
|
'&:before': {
|
|
175
200
|
content: string;
|
|
176
201
|
};
|
|
@@ -186,14 +211,23 @@ export declare const typography: {
|
|
|
186
211
|
display: string;
|
|
187
212
|
width: string;
|
|
188
213
|
};
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
214
|
+
weight: {
|
|
215
|
+
black: {
|
|
216
|
+
fontFamily: string;
|
|
217
|
+
fontWeight: number;
|
|
218
|
+
};
|
|
219
|
+
semiBold: {
|
|
220
|
+
fontFamily: string;
|
|
221
|
+
fontWeight: number;
|
|
222
|
+
};
|
|
223
|
+
medium: {
|
|
224
|
+
fontFamily: string;
|
|
225
|
+
fontWeight: number;
|
|
226
|
+
};
|
|
227
|
+
regular: {
|
|
228
|
+
fontFamily: string;
|
|
229
|
+
fontWeight: number;
|
|
230
|
+
};
|
|
197
231
|
};
|
|
198
232
|
};
|
|
199
233
|
fontFaces: {
|
|
@@ -188,17 +188,18 @@ const headers = {
|
|
|
188
188
|
...fontSizes[16],
|
|
189
189
|
},
|
|
190
190
|
};
|
|
191
|
+
const baseStyle = {
|
|
192
|
+
fontFamily: fontStacks.regular,
|
|
193
|
+
fontWeight: 400,
|
|
194
|
+
...fontSizes[16],
|
|
195
|
+
};
|
|
191
196
|
const body = {
|
|
192
197
|
headline: {
|
|
193
198
|
fontFamily: fontStacks.medium,
|
|
194
199
|
fontWeight: 400,
|
|
195
200
|
...fontSizes[16],
|
|
196
201
|
},
|
|
197
|
-
paragraph:
|
|
198
|
-
fontFamily: fontStacks.regular,
|
|
199
|
-
fontWeight: 400,
|
|
200
|
-
...fontSizes[16],
|
|
201
|
-
},
|
|
202
|
+
paragraph: baseStyle,
|
|
202
203
|
label: {
|
|
203
204
|
fontFamily: fontStacks.medium,
|
|
204
205
|
fontWeight: 400,
|
|
@@ -224,6 +225,30 @@ const body = {
|
|
|
224
225
|
fontWeight: 400,
|
|
225
226
|
...fontSizes[13],
|
|
226
227
|
},
|
|
228
|
+
ul: {
|
|
229
|
+
marginLeft: rem(1.5),
|
|
230
|
+
'ol, ul': {
|
|
231
|
+
marginTop: rem(0.5),
|
|
232
|
+
marginBottom: rem(1),
|
|
233
|
+
},
|
|
234
|
+
},
|
|
235
|
+
ol: {
|
|
236
|
+
marginLeft: rem(1.5),
|
|
237
|
+
'ol, ul': {
|
|
238
|
+
marginTop: rem(0.5),
|
|
239
|
+
marginBottom: rem(1),
|
|
240
|
+
},
|
|
241
|
+
},
|
|
242
|
+
li: {
|
|
243
|
+
...baseStyle,
|
|
244
|
+
marginBottom: rem(0.5),
|
|
245
|
+
},
|
|
246
|
+
blockquote: {
|
|
247
|
+
...baseStyle,
|
|
248
|
+
color: themes_1.theme.text.secondary,
|
|
249
|
+
paddingLeft: spacing_1.spacing[4],
|
|
250
|
+
borderLeft: `${spacing_1.spacing[1]}px solid ${themes_1.theme.border.default}`,
|
|
251
|
+
},
|
|
227
252
|
};
|
|
228
253
|
const utility = {
|
|
229
254
|
anchor: {
|
|
@@ -242,11 +267,6 @@ const utility = {
|
|
|
242
267
|
opacity: 0.8,
|
|
243
268
|
},
|
|
244
269
|
},
|
|
245
|
-
li: {
|
|
246
|
-
...fontSizes[16],
|
|
247
|
-
fontWeight: 400,
|
|
248
|
-
marginBottom: rem(0.5),
|
|
249
|
-
},
|
|
250
270
|
inlineCode: {
|
|
251
271
|
...body.code,
|
|
252
272
|
fontWeight: 400,
|
|
@@ -299,12 +319,23 @@ const utility = {
|
|
|
299
319
|
display: 'block',
|
|
300
320
|
width: '100%',
|
|
301
321
|
},
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
322
|
+
weight: {
|
|
323
|
+
black: {
|
|
324
|
+
fontFamily: fontStacks.black,
|
|
325
|
+
fontWeight: 900,
|
|
326
|
+
},
|
|
327
|
+
semiBold: {
|
|
328
|
+
fontFamily: fontStacks.semiBold,
|
|
329
|
+
fontWeight: 500,
|
|
330
|
+
},
|
|
331
|
+
medium: {
|
|
332
|
+
fontFamily: fontStacks.medium,
|
|
333
|
+
fontWeight: 500,
|
|
334
|
+
},
|
|
335
|
+
regular: {
|
|
336
|
+
fontFamily: fontStacks.regular,
|
|
337
|
+
fontWeight: 400,
|
|
338
|
+
},
|
|
308
339
|
},
|
|
309
340
|
};
|
|
310
341
|
exports.typography = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/styleguide",
|
|
3
|
-
"version": "3.4.2-alpha.
|
|
3
|
+
"version": "3.4.2-alpha.2",
|
|
4
4
|
"description": "Foundational styles for Expo interfaces.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"react": "*"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "0cf39bd68ea3c2cd1d69c6ba10b5794b4ad129df"
|
|
41
41
|
}
|