@workday/canvas-kit-react-fonts 7.1.4 → 7.2.0-427-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,4 +1,2 @@
1
- import fonts from './lib/fonts';
2
- export default fonts;
3
- export { fonts };
1
+ export * from './lib/fonts';
4
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,aAAa,CAAC;AAEhC,eAAe,KAAK,CAAC;AACrB,OAAO,EAAC,KAAK,EAAC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
@@ -1,9 +1,13 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
4
11
  };
5
12
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.fonts = void 0;
7
- var fonts_1 = __importDefault(require("./lib/fonts"));
8
- exports.fonts = fonts_1.default;
9
- exports.default = fonts_1.default;
13
+ __exportStar(require("./lib/fonts"), exports);
@@ -1,4 +1,3 @@
1
- import { CSSObject } from '@emotion/styled';
2
- declare const fonts: CSSObject[];
3
- export default fonts;
1
+ import { CSSObject } from '@emotion/react';
2
+ export declare const fonts: CSSObject[];
4
3
  //# sourceMappingURL=fonts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../../lib/fonts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAG1C,QAAA,MAAM,KAAK,EAAE,SAAS,EAyCrB,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../../lib/fonts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAGzC,eAAO,MAAM,KAAK,EAAE,SAAS,EAyC5B,CAAC"}
@@ -1,13 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var fontsPath = 'https://design.workdaycdn.com/beta/assets/fonts@1.0.0/roboto/ttf';
4
- var fonts = [
3
+ exports.fonts = void 0;
4
+ const fontsPath = 'https://design.workdaycdn.com/beta/assets/fonts@1.0.0/roboto/ttf';
5
+ exports.fonts = [
5
6
  {
6
7
  '@font-face': {
7
8
  fontFamily: 'Roboto',
8
9
  fontStyle: 'normal',
9
10
  fontWeight: 300,
10
- 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')`,
11
12
  },
12
13
  },
13
14
  {
@@ -15,7 +16,7 @@ var fonts = [
15
16
  fontFamily: 'Roboto',
16
17
  fontStyle: 'normal',
17
18
  fontWeight: 400,
18
- 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')`,
19
20
  },
20
21
  },
21
22
  {
@@ -23,7 +24,7 @@ var fonts = [
23
24
  fontFamily: 'Roboto',
24
25
  fontStyle: 'normal',
25
26
  fontWeight: 500,
26
- 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')`,
27
28
  },
28
29
  },
29
30
  {
@@ -31,7 +32,7 @@ var fonts = [
31
32
  fontFamily: 'Roboto',
32
33
  fontStyle: 'normal',
33
34
  fontWeight: 700,
34
- 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')`,
35
36
  },
36
37
  },
37
38
  {
@@ -39,8 +40,7 @@ var fonts = [
39
40
  fontFamily: 'Roboto Mono',
40
41
  fontStyle: 'normal',
41
42
  fontWeight: 400,
42
- 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')`,
43
44
  },
44
45
  },
45
46
  ];
46
- exports.default = fonts;
@@ -1,4 +1,2 @@
1
- import fonts from './lib/fonts';
2
- export default fonts;
3
- export { fonts };
1
+ export * from './lib/fonts';
4
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,aAAa,CAAC;AAEhC,eAAe,KAAK,CAAC;AACrB,OAAO,EAAC,KAAK,EAAC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
package/dist/es6/index.js CHANGED
@@ -1,3 +1 @@
1
- import fonts from './lib/fonts';
2
- export default fonts;
3
- export { fonts };
1
+ export * from './lib/fonts';
@@ -1,4 +1,3 @@
1
- import { CSSObject } from '@emotion/styled';
2
- declare const fonts: CSSObject[];
3
- export default fonts;
1
+ import { CSSObject } from '@emotion/react';
2
+ export declare const fonts: CSSObject[];
4
3
  //# sourceMappingURL=fonts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../../lib/fonts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAG1C,QAAA,MAAM,KAAK,EAAE,SAAS,EAyCrB,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../../lib/fonts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAGzC,eAAO,MAAM,KAAK,EAAE,SAAS,EAyC5B,CAAC"}
@@ -1,11 +1,11 @@
1
- var fontsPath = 'https://design.workdaycdn.com/beta/assets/fonts@1.0.0/roboto/ttf';
2
- 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 @@ 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 @@ 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 @@ 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,8 +37,7 @@ 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
  ];
44
- export default fonts;
package/index.ts CHANGED
@@ -1,4 +1 @@
1
- import fonts from './lib/fonts';
2
-
3
- export default fonts;
4
- export {fonts};
1
+ export * from './lib/fonts';
package/lib/fonts.ts CHANGED
@@ -1,7 +1,7 @@
1
- import {CSSObject} from '@emotion/styled';
1
+ import {CSSObject} from '@emotion/react';
2
2
  const fontsPath = 'https://design.workdaycdn.com/beta/assets/fonts@1.0.0/roboto/ttf';
3
3
 
4
- const fonts: CSSObject[] = [
4
+ export const fonts: CSSObject[] = [
5
5
  {
6
6
  '@font-face': {
7
7
  fontFamily: 'Roboto',
@@ -43,5 +43,3 @@ const fonts: CSSObject[] = [
43
43
  },
44
44
  },
45
45
  ];
46
-
47
- export default fonts;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-react-fonts",
3
- "version": "7.1.4",
3
+ "version": "7.2.0-427-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,11 +38,10 @@
38
38
  "fonts"
39
39
  ],
40
40
  "peerDependencies": {
41
- "react": "^16.8 || ^17.0"
41
+ "react": ">=16.14"
42
42
  },
43
43
  "dependencies": {
44
- "@emotion/react": "^11.7.1",
45
- "@emotion/styled": "^11.6.0"
44
+ "@emotion/react": "^11.7.1"
46
45
  },
47
- "gitHead": "6c20e6b9755afa86a865f4e90c24a4a52ea9e481"
46
+ "gitHead": "2c79134aa48ef0efde9cdf883b529b8157337a28"
48
47
  }