@workday/canvas-kit-react-fonts 7.0.0-alpha.103-next.28 → 7.0.0-alpha.129-next.3

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
  ...
@@ -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,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fonts = void 0;
3
4
  var fontsPath = 'https://design.workdaycdn.com/beta/assets/fonts@1.0.0/roboto/ttf';
4
- var fonts = [
5
+ exports.fonts = [
5
6
  {
6
7
  '@font-face': {
7
8
  fontFamily: 'Roboto',
@@ -43,4 +44,3 @@ var fonts = [
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,5 +1,5 @@
1
1
  var fontsPath = 'https://design.workdaycdn.com/beta/assets/fonts@1.0.0/roboto/ttf';
2
- var fonts = [
2
+ export var fonts = [
3
3
  {
4
4
  '@font-face': {
5
5
  fontFamily: 'Roboto',
@@ -41,4 +41,3 @@ var fonts = [
41
41
  },
42
42
  },
43
43
  ];
44
- export default fonts;
package/index.ts CHANGED
@@ -1,4 +1,2 @@
1
- import fonts from './lib/fonts';
1
+ export * from './lib/fonts';
2
2
 
3
- export default fonts;
4
- export {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.0.0-alpha.103-next.28+a55aeef9",
3
+ "version": "7.0.0-alpha.129-next.3+f4cdec5a",
4
4
  "description": "Fonts for canvas-kit-react",
5
5
  "author": "Workday, Inc. (https://www.workday.com)",
6
6
  "license": "Apache-2.0",
@@ -10,7 +10,8 @@
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/",
@@ -37,11 +38,10 @@
37
38
  "fonts"
38
39
  ],
39
40
  "peerDependencies": {
40
- "react": "^16.8 || ^17.0"
41
+ "react": "^17.0 || ^18.0"
41
42
  },
42
43
  "dependencies": {
43
- "@emotion/react": "^11.7.1",
44
- "@emotion/styled": "^11.6.0"
44
+ "@emotion/react": "^11.7.1"
45
45
  },
46
- "gitHead": "a55aeef97c5138c9b1144584287afa8cac6fe17f"
46
+ "gitHead": "f4cdec5aa17c18b03695a3c99417e384fd9aecdc"
47
47
  }