@workday/canvas-kit-react-fonts 8.0.0-alpha.253-next.22 → 8.0.0-alpha.428-next.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/README.md CHANGED
@@ -25,7 +25,7 @@ Then in your index or main file of your project...
25
25
 
26
26
  ```tsx
27
27
  import {Global, css} from '@emotion/react';
28
- import fonts from '@workday/canvas-kit-react-fonts';
28
+ import {fonts} from '@workday/canvas-kit-react-fonts';
29
29
 
30
30
  // Inject all of Canvas' @font-face declarations to <head> via emotion
31
31
  <Global styles={css(fonts)} />;
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.fonts = void 0;
4
- var fontsPath = 'https://design.workdaycdn.com/beta/assets/fonts@1.0.0/roboto/ttf';
4
+ const fontsPath = 'https://design.workdaycdn.com/beta/assets/fonts@1.0.0/roboto/ttf';
5
5
  exports.fonts = [
6
6
  {
7
7
  '@font-face': {
8
8
  fontFamily: 'Roboto',
9
9
  fontStyle: 'normal',
10
10
  fontWeight: 300,
11
- src: "local('Roboto Light'), local('Roboto-Light'), url(" + fontsPath + "/Roboto-Light.ttf) format('truetype')",
11
+ src: `local('Roboto Light'), local('Roboto-Light'), url(${fontsPath}/Roboto-Light.ttf) format('truetype')`,
12
12
  },
13
13
  },
14
14
  {
@@ -16,7 +16,7 @@ exports.fonts = [
16
16
  fontFamily: 'Roboto',
17
17
  fontStyle: 'normal',
18
18
  fontWeight: 400,
19
- src: "local('Roboto Regular'), local('Roboto-Regular'), url(" + fontsPath + "/Roboto-Regular.ttf) format('truetype')",
19
+ src: `local('Roboto Regular'), local('Roboto-Regular'), url(${fontsPath}/Roboto-Regular.ttf) format('truetype')`,
20
20
  },
21
21
  },
22
22
  {
@@ -24,7 +24,7 @@ exports.fonts = [
24
24
  fontFamily: 'Roboto',
25
25
  fontStyle: 'normal',
26
26
  fontWeight: 500,
27
- src: "local('Roboto Medium'), local('Roboto-Medium'), url(" + fontsPath + "/Roboto-Medium.ttf) format('truetype')",
27
+ src: `local('Roboto Medium'), local('Roboto-Medium'), url(${fontsPath}/Roboto-Medium.ttf) format('truetype')`,
28
28
  },
29
29
  },
30
30
  {
@@ -32,7 +32,7 @@ exports.fonts = [
32
32
  fontFamily: 'Roboto',
33
33
  fontStyle: 'normal',
34
34
  fontWeight: 700,
35
- src: "local('Roboto Bold'), local('Roboto-Bold'), url(" + fontsPath + "/Roboto-Bold.ttf) format('truetype')",
35
+ src: `local('Roboto Bold'), local('Roboto-Bold'), url(${fontsPath}/Roboto-Bold.ttf) format('truetype')`,
36
36
  },
37
37
  },
38
38
  {
@@ -40,7 +40,7 @@ exports.fonts = [
40
40
  fontFamily: 'Roboto Mono',
41
41
  fontStyle: 'normal',
42
42
  fontWeight: 400,
43
- src: "local('Roboto Mono'), local('RobotoMono-Regular'), url(" + fontsPath + "/RobotoMono-Regular.ttf) format('truetype')",
43
+ src: `local('Roboto Mono'), local('RobotoMono-Regular'), url(${fontsPath}/RobotoMono-Regular.ttf) format('truetype')`,
44
44
  },
45
45
  },
46
46
  ];
@@ -1,11 +1,11 @@
1
- var fontsPath = 'https://design.workdaycdn.com/beta/assets/fonts@1.0.0/roboto/ttf';
2
- export var fonts = [
1
+ const fontsPath = 'https://design.workdaycdn.com/beta/assets/fonts@1.0.0/roboto/ttf';
2
+ export const fonts = [
3
3
  {
4
4
  '@font-face': {
5
5
  fontFamily: 'Roboto',
6
6
  fontStyle: 'normal',
7
7
  fontWeight: 300,
8
- src: "local('Roboto Light'), local('Roboto-Light'), url(" + fontsPath + "/Roboto-Light.ttf) format('truetype')",
8
+ src: `local('Roboto Light'), local('Roboto-Light'), url(${fontsPath}/Roboto-Light.ttf) format('truetype')`,
9
9
  },
10
10
  },
11
11
  {
@@ -13,7 +13,7 @@ export var fonts = [
13
13
  fontFamily: 'Roboto',
14
14
  fontStyle: 'normal',
15
15
  fontWeight: 400,
16
- src: "local('Roboto Regular'), local('Roboto-Regular'), url(" + fontsPath + "/Roboto-Regular.ttf) format('truetype')",
16
+ src: `local('Roboto Regular'), local('Roboto-Regular'), url(${fontsPath}/Roboto-Regular.ttf) format('truetype')`,
17
17
  },
18
18
  },
19
19
  {
@@ -21,7 +21,7 @@ export var fonts = [
21
21
  fontFamily: 'Roboto',
22
22
  fontStyle: 'normal',
23
23
  fontWeight: 500,
24
- src: "local('Roboto Medium'), local('Roboto-Medium'), url(" + fontsPath + "/Roboto-Medium.ttf) format('truetype')",
24
+ src: `local('Roboto Medium'), local('Roboto-Medium'), url(${fontsPath}/Roboto-Medium.ttf) format('truetype')`,
25
25
  },
26
26
  },
27
27
  {
@@ -29,7 +29,7 @@ export var fonts = [
29
29
  fontFamily: 'Roboto',
30
30
  fontStyle: 'normal',
31
31
  fontWeight: 700,
32
- src: "local('Roboto Bold'), local('Roboto-Bold'), url(" + fontsPath + "/Roboto-Bold.ttf) format('truetype')",
32
+ src: `local('Roboto Bold'), local('Roboto-Bold'), url(${fontsPath}/Roboto-Bold.ttf) format('truetype')`,
33
33
  },
34
34
  },
35
35
  {
@@ -37,7 +37,7 @@ export var fonts = [
37
37
  fontFamily: 'Roboto Mono',
38
38
  fontStyle: 'normal',
39
39
  fontWeight: 400,
40
- src: "local('Roboto Mono'), local('RobotoMono-Regular'), url(" + fontsPath + "/RobotoMono-Regular.ttf) format('truetype')",
40
+ src: `local('Roboto Mono'), local('RobotoMono-Regular'), url(${fontsPath}/RobotoMono-Regular.ttf) format('truetype')`,
41
41
  },
42
42
  },
43
43
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-react-fonts",
3
- "version": "8.0.0-alpha.253-next.22+7350b9a5",
3
+ "version": "8.0.0-alpha.428-next.2+2c79134a",
4
4
  "description": "Fonts for canvas-kit-react",
5
5
  "author": "Workday, Inc. (https://www.workday.com)",
6
6
  "license": "Apache-2.0",
@@ -38,10 +38,10 @@
38
38
  "fonts"
39
39
  ],
40
40
  "peerDependencies": {
41
- "react": "^17.0 || ^18.0"
41
+ "react": ">=16.14"
42
42
  },
43
43
  "dependencies": {
44
44
  "@emotion/react": "^11.7.1"
45
45
  },
46
- "gitHead": "7350b9a521c0c710ec18a027afd8442dc92dd875"
46
+ "gitHead": "2c79134aa48ef0efde9cdf883b529b8157337a28"
47
47
  }