@workday/canvas-kit-react-fonts 6.8.9 → 6.9.0-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
@@ -24,7 +24,7 @@ yarn add emotion
24
24
  Then in your index or main file of your project...
25
25
 
26
26
  ```tsx
27
- import {Global, css} from '@emotion/core';
27
+ import {Global, css} from '@emotion/react';
28
28
  import fonts from '@workday/canvas-kit-react-fonts';
29
29
 
30
30
  // Inject all of Canvas' @font-face declarations to <head> via emotion
@@ -38,7 +38,7 @@ same module.
38
38
  Examples:
39
39
 
40
40
  ```tsx
41
- import {css} from '@emotion/core';
41
+ import {css} from '@emotion/react';
42
42
  import {type} from '@workday/canvas-kit-react/tokens';
43
43
 
44
44
  ...
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.fonts = void 0;
6
7
  var fonts_1 = __importDefault(require("./lib/fonts"));
7
8
  exports.fonts = fonts_1.default;
8
9
  exports.default = fonts_1.default;
@@ -1,4 +1,4 @@
1
- import { CSSObject } from '@emotion/core';
1
+ import { CSSObject } from '@emotion/react';
2
2
  declare const fonts: CSSObject[];
3
3
  export default fonts;
4
4
  //# 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,eAAe,CAAC;AAGxC,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,QAAA,MAAM,KAAK,EAAE,SAAS,EAyCrB,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -1,4 +1,4 @@
1
- import { CSSObject } from '@emotion/core';
1
+ import { CSSObject } from '@emotion/react';
2
2
  declare const fonts: CSSObject[];
3
3
  export default fonts;
4
4
  //# 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,eAAe,CAAC;AAGxC,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,QAAA,MAAM,KAAK,EAAE,SAAS,EAyCrB,CAAC;AAEF,eAAe,KAAK,CAAC"}
package/lib/fonts.ts CHANGED
@@ -1,4 +1,4 @@
1
- import {CSSObject} from '@emotion/core';
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
4
  const fonts: CSSObject[] = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-react-fonts",
3
- "version": "6.8.9",
3
+ "version": "6.9.0-next.2+8dd3d6b6",
4
4
  "description": "Fonts for canvas-kit-react",
5
5
  "author": "Workday, Inc. (https://www.workday.com)",
6
6
  "license": "Apache-2.0",
@@ -10,30 +10,22 @@
10
10
  "types": "dist/es6/index.d.ts",
11
11
  "repository": {
12
12
  "type": "git",
13
- "url": "http://github.com/Workday/canvas-kit/tree/master/modules/fonts/react"
13
+ "url": "https://github.com/workday/canvas-kit.git",
14
+ "directory": "modules/react-fonts"
14
15
  },
15
16
  "files": [
16
17
  "dist/",
17
18
  "lib/",
18
- "index.ts",
19
- "ts3.5/**/*"
19
+ "index.ts"
20
20
  ],
21
- "typesVersions": {
22
- "<=3.5": {
23
- "*": [
24
- "ts3.5/*"
25
- ]
26
- }
27
- },
28
21
  "scripts": {
29
22
  "watch": "yarn build:es6 -w",
30
23
  "test": "echo \"Error: no test specified\" && exit 1",
31
- "clean": "rimraf dist && rimraf ts3.5 && rimraf .build-info && mkdirp dist && mkdirp ts3.5/dist",
24
+ "clean": "rimraf dist && rimraf .build-info && mkdirp dist",
32
25
  "build:cjs": "tsc -p tsconfig.cjs.json",
33
26
  "build:es6": "tsc -p tsconfig.es6.json",
34
27
  "build:rebuild": "npm-run-all clean build",
35
- "build:downlevel-dts": "yarn run downlevel-dts dist ts3.5/dist",
36
- "build": "npm-run-all --parallel build:cjs build:es6 --sequential build:downlevel-dts",
28
+ "build": "npm-run-all --parallel build:cjs build:es6",
37
29
  "depcheck": "node ../../utils/check-dependencies-exist.js",
38
30
  "typecheck:src": "tsc -p . --noEmit --incremental false"
39
31
  },
@@ -49,7 +41,7 @@
49
41
  "react": "^16.8 || ^17.0"
50
42
  },
51
43
  "dependencies": {
52
- "@emotion/core": "^10.0.28"
44
+ "@emotion/react": "^11.7.1"
53
45
  },
54
- "gitHead": "9616dcc6b1b17b48a2463a29b3db49b55708ee5b"
46
+ "gitHead": "8dd3d6b6d1af27a68d8ee952ad70a389a0b675dd"
55
47
  }
@@ -1,4 +0,0 @@
1
- import fonts from './lib/fonts';
2
- export default fonts;
3
- export { fonts };
4
- //# sourceMappingURL=index.d.ts.map
@@ -1,4 +0,0 @@
1
- import { CSSObject } from '@emotion/core';
2
- declare const fonts: CSSObject[];
3
- export default fonts;
4
- //# sourceMappingURL=fonts.d.ts.map
@@ -1,4 +0,0 @@
1
- import fonts from './lib/fonts';
2
- export default fonts;
3
- export { fonts };
4
- //# sourceMappingURL=index.d.ts.map
@@ -1,4 +0,0 @@
1
- import { CSSObject } from '@emotion/core';
2
- declare const fonts: CSSObject[];
3
- export default fonts;
4
- //# sourceMappingURL=fonts.d.ts.map