@maxio-com/design-tokens 3.0.0 → 3.1.0

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/dist/colors.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = {
3
+ var colors = {
4
4
  white: '#FFFFFF',
5
5
  black: '#000000',
6
6
  gray: {
@@ -88,3 +88,4 @@ exports.default = {
88
88
  '105': '#26004C',
89
89
  },
90
90
  };
91
+ exports.default = colors;
package/dist/index.js CHANGED
@@ -1,10 +1,35 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
2
25
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
27
  };
5
28
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.typography = exports.colors = void 0;
29
+ exports.typography = exports.semanticColors = exports.colors = void 0;
7
30
  var colors_1 = __importDefault(require("./colors"));
8
31
  exports.colors = colors_1.default;
32
+ var semanticColors = __importStar(require("./semantic-colors"));
33
+ exports.semanticColors = semanticColors;
9
34
  var typography_1 = __importDefault(require("./typography"));
10
35
  exports.typography = typography_1.default;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var colors_1 = __importDefault(require("../colors"));
7
+ var background = {
8
+ neutral: { light: colors_1.default.gray['80'], dark: colors_1.default.gray['40'] },
9
+ 'neutral-subtle': {
10
+ light: colors_1.default.gray['10'],
11
+ dark: colors_1.default.gray['105'],
12
+ },
13
+ interactive: {
14
+ light: colors_1.default.blue['80'],
15
+ dark: colors_1.default.blue['40'],
16
+ },
17
+ info: { light: colors_1.default.blue['80'], dark: colors_1.default.blue['50'] },
18
+ 'info-subtle': {
19
+ light: colors_1.default.blue['10'],
20
+ dark: colors_1.default.blue['105'],
21
+ },
22
+ success: { light: colors_1.default.green['80'], dark: colors_1.default.green['40'] },
23
+ 'success-subtle': {
24
+ light: colors_1.default.green['10'],
25
+ dark: colors_1.default.green['105'],
26
+ },
27
+ warning: {
28
+ light: colors_1.default.yellow['80'],
29
+ dark: colors_1.default.yellow['40'],
30
+ },
31
+ 'warning-subtle': {
32
+ light: colors_1.default.yellow['10'],
33
+ dark: colors_1.default.yellow['105'],
34
+ },
35
+ danger: { light: colors_1.default.red['80'], dark: colors_1.default.red['40'] },
36
+ 'danger-subtle': {
37
+ light: colors_1.default.red['10'],
38
+ dark: colors_1.default.red['105'],
39
+ },
40
+ highlight: {
41
+ light: colors_1.default.purple['80'],
42
+ dark: colors_1.default.purple['40'],
43
+ },
44
+ 'highlight-subtle': {
45
+ light: colors_1.default.purple['10'],
46
+ dark: colors_1.default.purple['105'],
47
+ },
48
+ inverse: { light: 'black', dark: 'white' },
49
+ };
50
+ exports.default = background;
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var colors_1 = __importDefault(require("../colors"));
7
+ var border = {
8
+ interactive: {
9
+ light: colors_1.default.blue[80],
10
+ dark: colors_1.default.blue[50],
11
+ },
12
+ subtle: {
13
+ light: colors_1.default.gray[20],
14
+ dark: colors_1.default.gray[90],
15
+ },
16
+ neutral: {
17
+ light: colors_1.default.gray[60],
18
+ dark: colors_1.default.gray[60],
19
+ },
20
+ strong: {
21
+ light: colors_1.default.gray[80],
22
+ dark: colors_1.default.gray[40],
23
+ },
24
+ inverse: {
25
+ light: colors_1.default.black,
26
+ dark: colors_1.default.white,
27
+ },
28
+ focus: {
29
+ light: colors_1.default.blue[80],
30
+ dark: colors_1.default.white,
31
+ },
32
+ 'focus-inset': {
33
+ light: colors_1.default.white,
34
+ dark: colors_1.default.black,
35
+ },
36
+ avatar: {
37
+ light: 'rgba(0, 0, 0, 0.08)',
38
+ dark: 'rgba(1, 1, 1, 0.08)',
39
+ },
40
+ info: {
41
+ light: colors_1.default.blue[80],
42
+ dark: colors_1.default.blue[40],
43
+ },
44
+ 'info-subtle': {
45
+ light: colors_1.default.blue[20],
46
+ dark: colors_1.default.blue[90],
47
+ },
48
+ success: {
49
+ light: colors_1.default.green[80],
50
+ dark: colors_1.default.green[40],
51
+ },
52
+ 'success-subtle': {
53
+ light: colors_1.default.green[20],
54
+ dark: colors_1.default.green[90],
55
+ },
56
+ warning: {
57
+ light: colors_1.default.yellow[80],
58
+ dark: colors_1.default.yellow[40],
59
+ },
60
+ 'warning-subtle': {
61
+ light: colors_1.default.yellow[20],
62
+ dark: colors_1.default.yellow[90],
63
+ },
64
+ danger: {
65
+ light: colors_1.default.red[80],
66
+ dark: colors_1.default.red[40],
67
+ },
68
+ 'danger-subtle': {
69
+ light: colors_1.default.red[20],
70
+ dark: colors_1.default.red[90],
71
+ },
72
+ highlight: {
73
+ light: colors_1.default.purple[80],
74
+ dark: colors_1.default.purple[40],
75
+ },
76
+ 'highlight-subtle': {
77
+ light: colors_1.default.purple[20],
78
+ dark: colors_1.default.purple[90],
79
+ },
80
+ };
81
+ exports.default = border;
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var colors_1 = __importDefault(require("../colors"));
7
+ var button = {
8
+ primary: {
9
+ light: colors_1.default.blue[80],
10
+ dark: colors_1.default.blue[50],
11
+ },
12
+ 'primary-hover': {
13
+ light: colors_1.default.blue[90],
14
+ dark: colors_1.default.blue[40],
15
+ },
16
+ 'primary-active': {
17
+ light: colors_1.default.blue[100],
18
+ dark: colors_1.default.blue[30],
19
+ },
20
+ secondary: {
21
+ light: colors_1.default.black,
22
+ dark: colors_1.default.white,
23
+ },
24
+ 'secondary-hover': {
25
+ light: colors_1.default.gray[100],
26
+ dark: colors_1.default.gray['05'],
27
+ },
28
+ 'secondary-active': {
29
+ light: colors_1.default.gray[90],
30
+ dark: colors_1.default.gray[10],
31
+ },
32
+ tertiary: {
33
+ light: colors_1.default.gray[10],
34
+ dark: colors_1.default.gray[90],
35
+ },
36
+ 'tertiary-hover': {
37
+ light: colors_1.default.gray[20],
38
+ dark: colors_1.default.gray[80],
39
+ },
40
+ 'tertiary-active': {
41
+ light: colors_1.default.gray[30],
42
+ dark: colors_1.default.gray[70],
43
+ },
44
+ danger: {
45
+ light: colors_1.default.red[80],
46
+ dark: colors_1.default.red[50],
47
+ },
48
+ 'danger-hover': {
49
+ light: colors_1.default.red[90],
50
+ dark: colors_1.default.red[40],
51
+ },
52
+ 'danger-active': {
53
+ light: colors_1.default.red[100],
54
+ dark: colors_1.default.red[30],
55
+ },
56
+ disabled: {
57
+ light: colors_1.default.gray[30],
58
+ dark: colors_1.default.gray[80],
59
+ },
60
+ };
61
+ exports.default = button;
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.icon = void 0;
7
+ var colors_1 = __importDefault(require("../colors"));
8
+ exports.icon = {
9
+ primary: {
10
+ light: colors_1.default.black,
11
+ dark: colors_1.default.white,
12
+ },
13
+ secondary: {
14
+ light: colors_1.default.gray['90'],
15
+ dark: colors_1.default.gray['50'],
16
+ },
17
+ inverse: {
18
+ light: colors_1.default.white,
19
+ dark: colors_1.default.black,
20
+ },
21
+ 'on-color': {
22
+ light: colors_1.default.white,
23
+ dark: colors_1.default.white,
24
+ },
25
+ 'on-color-disabled': {
26
+ light: colors_1.default.gray['70'],
27
+ dark: colors_1.default.gray['50'],
28
+ },
29
+ disabled: {
30
+ light: colors_1.default.gray['60'],
31
+ dark: colors_1.default.gray['70'],
32
+ },
33
+ neutral: {
34
+ light: colors_1.default.gray['60'],
35
+ dark: colors_1.default.gray['60'],
36
+ },
37
+ info: {
38
+ light: colors_1.default.blue['80'],
39
+ dark: colors_1.default.blue['40'],
40
+ },
41
+ 'info-subtle': {
42
+ light: colors_1.default.blue['30'],
43
+ dark: colors_1.default.blue['80'],
44
+ },
45
+ success: {
46
+ light: colors_1.default.green['80'],
47
+ dark: colors_1.default.green['40'],
48
+ },
49
+ 'success-subtle': {
50
+ light: colors_1.default.green['30'],
51
+ dark: colors_1.default.green['80'],
52
+ },
53
+ warning: {
54
+ light: colors_1.default.yellow['80'],
55
+ dark: colors_1.default.yellow['40'],
56
+ },
57
+ 'warning-subtle': {
58
+ light: colors_1.default.yellow['30'],
59
+ dark: colors_1.default.yellow['80'],
60
+ },
61
+ danger: {
62
+ light: colors_1.default.red['80'],
63
+ dark: colors_1.default.red['40'],
64
+ },
65
+ 'danger-subtle': {
66
+ light: colors_1.default.red['30'],
67
+ dark: colors_1.default.red['80'],
68
+ },
69
+ highlight: {
70
+ light: colors_1.default.purple['80'],
71
+ dark: colors_1.default.purple['40'],
72
+ },
73
+ 'highlight-subtle': {
74
+ light: colors_1.default.purple['30'],
75
+ dark: colors_1.default.purple['80'],
76
+ },
77
+ };
78
+ exports.default = exports.icon;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.text = exports.skeleton = exports.loading = exports.icon = exports.button = exports.border = exports.background = void 0;
7
+ var background_1 = require("./background");
8
+ Object.defineProperty(exports, "background", { enumerable: true, get: function () { return __importDefault(background_1).default; } });
9
+ var border_1 = require("./border");
10
+ Object.defineProperty(exports, "border", { enumerable: true, get: function () { return __importDefault(border_1).default; } });
11
+ var button_1 = require("./button");
12
+ Object.defineProperty(exports, "button", { enumerable: true, get: function () { return __importDefault(button_1).default; } });
13
+ var icon_1 = require("./icon");
14
+ Object.defineProperty(exports, "icon", { enumerable: true, get: function () { return __importDefault(icon_1).default; } });
15
+ var loading_1 = require("./loading");
16
+ Object.defineProperty(exports, "loading", { enumerable: true, get: function () { return __importDefault(loading_1).default; } });
17
+ var skeleton_1 = require("./skeleton");
18
+ Object.defineProperty(exports, "skeleton", { enumerable: true, get: function () { return __importDefault(skeleton_1).default; } });
19
+ var text_1 = require("./text");
20
+ Object.defineProperty(exports, "text", { enumerable: true, get: function () { return __importDefault(text_1).default; } });
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.loading = void 0;
7
+ var colors_1 = __importDefault(require("../colors"));
8
+ exports.loading = {
9
+ track: {
10
+ light: 'rgba(0, 0, 0, 0.16)',
11
+ dark: 'rgba(1, 1, 1, 0.32)',
12
+ },
13
+ 'track-inverse': {
14
+ light: 'rgba(1, 1, 1, 0.32)',
15
+ dark: 'rgba(0, 0, 0, 0.16)',
16
+ },
17
+ bar: {
18
+ light: colors_1.default.blue[80],
19
+ dark: 'white',
20
+ },
21
+ 'bar-inverse': {
22
+ light: 'white',
23
+ dark: 'black',
24
+ },
25
+ };
26
+ exports.default = exports.loading;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.skeleton = void 0;
7
+ var colors_1 = __importDefault(require("../colors"));
8
+ exports.skeleton = {
9
+ background: {
10
+ light: colors_1.default.gray[10],
11
+ dark: colors_1.default.gray[90],
12
+ },
13
+ element: {
14
+ light: colors_1.default.gray[30],
15
+ dark: colors_1.default.gray[70],
16
+ },
17
+ };
18
+ exports.default = exports.skeleton;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var colors_1 = __importDefault(require("../colors"));
7
+ var text = {
8
+ primary: {
9
+ light: colors_1.default.black,
10
+ dark: colors_1.default.white,
11
+ },
12
+ secondary: {
13
+ light: colors_1.default.gray['90'],
14
+ dark: colors_1.default.gray['20'],
15
+ },
16
+ placeholder: {
17
+ light: colors_1.default.gray['80'],
18
+ dark: colors_1.default.gray['40'],
19
+ },
20
+ 'on-color-disabled': {
21
+ light: colors_1.default.gray['70'],
22
+ dark: colors_1.default.gray['50'],
23
+ },
24
+ disabled: {
25
+ light: colors_1.default.gray['60'],
26
+ dark: colors_1.default.gray['70'],
27
+ },
28
+ inverse: {
29
+ light: colors_1.default.white,
30
+ dark: colors_1.default.black,
31
+ },
32
+ 'on-color': {
33
+ light: colors_1.default.white,
34
+ dark: colors_1.default.white,
35
+ },
36
+ danger: {
37
+ light: colors_1.default.red['80'],
38
+ dark: colors_1.default.red['40'],
39
+ },
40
+ };
41
+ exports.default = text;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxio-com/design-tokens",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "description": "Design Tokens definition",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -21,5 +21,5 @@
21
21
  "publishConfig": {
22
22
  "access": "public"
23
23
  },
24
- "gitHead": "4e4afe6a144b684e86181e344ee7c78fcf4c7077"
24
+ "gitHead": "18ed4f036c650c46199e70fa98b5f5885c39cb4c"
25
25
  }