@expo/styleguide 3.4.2-alpha.0 → 3.5.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 (43) hide show
  1. package/dist/src/icons/AtSignIcon.d.ts +3 -0
  2. package/dist/src/icons/AtSignIcon.js +13 -0
  3. package/dist/src/icons/BuildIcon.js +1 -1
  4. package/dist/src/icons/DebugIcon.d.ts +3 -0
  5. package/dist/src/icons/DebugIcon.js +14 -0
  6. package/dist/src/icons/DeploymentIcon.d.ts +3 -0
  7. package/dist/src/icons/DeploymentIcon.js +13 -0
  8. package/dist/src/icons/InspectElementIcon.d.ts +3 -0
  9. package/dist/src/icons/InspectElementIcon.js +14 -0
  10. package/dist/src/icons/InvoicesIcon.js +3 -7
  11. package/dist/src/icons/LifebuoyIcon.d.ts +3 -0
  12. package/dist/src/icons/LifebuoyIcon.js +13 -0
  13. package/dist/src/icons/LockIcon.js +1 -2
  14. package/dist/src/icons/OverviewIcon.d.ts +3 -0
  15. package/dist/src/icons/OverviewIcon.js +13 -0
  16. package/dist/src/icons/PerformanceIcon.d.ts +3 -0
  17. package/dist/src/icons/PerformanceIcon.js +14 -0
  18. package/dist/src/icons/{AtIcon.d.ts → PinIcon.d.ts} +1 -1
  19. package/dist/src/icons/PinIcon.js +13 -0
  20. package/dist/src/icons/PlanEnterpriseIcon.d.ts +3 -0
  21. package/dist/src/icons/PlanEnterpriseIcon.js +13 -0
  22. package/dist/src/icons/PlanFreeIcon.d.ts +3 -0
  23. package/dist/src/icons/PlanFreeIcon.js +13 -0
  24. package/dist/src/icons/PlanProductionIcon.d.ts +3 -0
  25. package/dist/src/icons/PlanProductionIcon.js +14 -0
  26. package/dist/src/icons/ProjectTransferIcon.js +2 -2
  27. package/dist/src/icons/RunIcon.d.ts +3 -0
  28. package/dist/src/icons/RunIcon.js +14 -0
  29. package/dist/src/icons/UndoIcon.d.ts +3 -0
  30. package/dist/src/icons/UndoIcon.js +13 -0
  31. package/dist/src/icons/UpdateIcon.d.ts +3 -0
  32. package/dist/src/icons/UpdateIcon.js +14 -0
  33. package/dist/src/icons/UploadIcon.d.ts +3 -0
  34. package/dist/src/icons/UploadIcon.js +14 -0
  35. package/dist/src/icons/index.d.ts +15 -1
  36. package/dist/src/icons/index.js +32 -4
  37. package/dist/src/styles/sizing.js +3 -3
  38. package/dist/src/styles/themes.d.ts +123 -122
  39. package/dist/src/styles/themes.js +123 -122
  40. package/dist/src/styles/typography.d.ts +51 -17
  41. package/dist/src/styles/typography.js +47 -16
  42. package/package.json +2 -2
  43. package/dist/src/icons/AtIcon.js +0 -13
@@ -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
- blockquote: {
303
- ...fontSizes[16],
304
- fontWeight: 400,
305
- color: themes_1.theme.text.secondary,
306
- paddingLeft: spacing_1.spacing[4],
307
- borderLeft: `${spacing_1.spacing[1]}px solid ${themes_1.theme.border.default}`,
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.0",
3
+ "version": "3.5.0",
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": "c90b726d5511e0f6600290c63c85420b7ed629c2"
40
+ "gitHead": "8d911a8cabf7f8d707de511dbfab8703dade81c1"
41
41
  }
@@ -1,13 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const react_1 = __importDefault(require("react"));
7
- function AtIcon(props) {
8
- const { title = "At-icon", size, color, width, height, titleId } = props;
9
- return (react_1.default.createElement("svg", Object.assign({ width: size || width || "20px", height: size || height || "20px", viewBox: "0 0 20 20", fill: "none", role: "img", "aria-labelledby": titleId }, props),
10
- title ? react_1.default.createElement("title", { id: titleId }, title) : null,
11
- react_1.default.createElement("path", { d: "M10.216 20c2.168 0 4.29-.51 5.24-1.05l-.752-2.205c-.814.334-2.564.775-4.313.775-4.96 0-7.652-2.631-7.667-7.438.015-4.35 2.495-7.629 7.553-7.629 3.658 0 7.058 1.75 7.05 6.526.008 2.974-.54 4.328-1.59 4.328-.524 0-.843-.396-.851-1.103V4.78h-2.38v.852h-.107c-.259-.669-1.871-1.3-3.583-1.042-2.03.297-4.22 1.963-4.236 5.492.015 3.582 2.054 5.415 4.457 5.545 1.727.098 3.278-.624 3.636-1.544h.091c.167 1.05.867 1.764 2.632 1.635 3.285-.183 4.54-2.83 4.533-6.564.007-5.408-3.567-9.15-9.614-9.15C3.774.004.024 4.058.016 10.174.024 16.386 3.743 20 10.216 20zm-.35-6.876c-1.985 0-2.654-1.521-2.662-3.133.008-1.735.958-2.868 2.647-2.868 1.924 0 2.502 1.02 2.51 2.845.023 2.069-.632 3.156-2.495 3.156z", fill: "#596068" })));
12
- }
13
- exports.default = AtIcon;