@equinor/eds-tokens 0.9.1 → 0.9.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.
@@ -0,0 +1,19 @@
1
+ import { clickbounds } from './clickbounds.mjs';
2
+ import { colors } from './colors.mjs';
3
+ import { elevation } from './elevation.mjs';
4
+ import { interactions } from './interactions.mjs';
5
+ import { shape } from './shape.mjs';
6
+ import { typography } from './typography.mjs';
7
+ import { spacings } from './spacings.mjs';
8
+
9
+ var tokens = {
10
+ clickbounds: clickbounds,
11
+ colors: colors,
12
+ elevation: elevation,
13
+ interactions: interactions,
14
+ shape: shape,
15
+ typography: typography,
16
+ spacings: spacings
17
+ };
18
+
19
+ export { tokens };
@@ -0,0 +1 @@
1
+ export { tokens } from './base/index.mjs';
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var clickbounds = {
6
4
  jumbo__base: '88px',
7
5
  default__base: '48px',
package/package.json CHANGED
@@ -1,10 +1,20 @@
1
1
  {
2
2
  "name": "@equinor/eds-tokens",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "Design tokens for the Equinor Design System",
5
- "main": "dist/tokens.cjs.js",
6
- "module": "dist/esm/index.js",
7
- "types": "dist/types/index.d.ts",
5
+ "type": "module",
6
+ "exports": {
7
+ ".": {
8
+ "types": "./dist/types/index.d.ts",
9
+ "import": "./dist/esm/index.mjs",
10
+ "require": "./dist/tokens.cjs",
11
+ "default": "./dist/tokens.cjs"
12
+ },
13
+ "./tokens.css": "./tokens.css",
14
+ "./elements.css": "./elements.css"
15
+ },
16
+ "types": "./dist/types/index.d.ts",
17
+ "main": "./dist/tokens.cjs",
8
18
  "license": "MIT",
9
19
  "author": {
10
20
  "name": "EDS Core Team",
@@ -32,10 +42,10 @@
32
42
  "design tokens"
33
43
  ],
34
44
  "devDependencies": {
35
- "@rollup/plugin-babel": "^5.3.1",
36
- "@rollup/plugin-commonjs": "^22.0.2",
37
- "@rollup/plugin-node-resolve": "^14.1.0",
38
- "rollup": "^2.79.1",
45
+ "@rollup/plugin-babel": "^6.0.3",
46
+ "@rollup/plugin-commonjs": "^25.0.2",
47
+ "@rollup/plugin-node-resolve": "^15.1.0",
48
+ "rollup": "^3.25.3",
39
49
  "rollup-plugin-delete": "^2.0.0",
40
50
  "typescript": "^4.9.4"
41
51
  },
@@ -45,7 +55,7 @@
45
55
  },
46
56
  "browserslist": "defaults, not IE 11",
47
57
  "scripts": {
48
- "build": "rollup -c && tsc",
58
+ "build": "rollup -c --bundleConfigAsCjs && tsc",
49
59
  "dev": "rollup -c -w",
50
60
  "types": "tsc"
51
61
  }
@@ -1,19 +0,0 @@
1
- import { clickbounds } from './clickbounds.js';
2
- import { colors } from './colors.js';
3
- import { elevation } from './elevation.js';
4
- import { interactions } from './interactions.js';
5
- import { shape } from './shape.js';
6
- import { typography } from './typography.js';
7
- import { spacings } from './spacings.js';
8
-
9
- var tokens = {
10
- clickbounds: clickbounds,
11
- colors: colors,
12
- elevation: elevation,
13
- interactions: interactions,
14
- shape: shape,
15
- typography: typography,
16
- spacings: spacings
17
- };
18
-
19
- export { tokens };
package/dist/esm/index.js DELETED
@@ -1 +0,0 @@
1
- export { tokens } from './base/index.js';
File without changes
File without changes
File without changes
File without changes
File without changes