@maxio-com/design-tokens 3.1.0 → 3.2.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.
@@ -0,0 +1,218 @@
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 = exports.border = exports.bg = void 0;
7
+ var colors_1 = __importDefault(require("./colors"));
8
+ var bg = {
9
+ primary: {
10
+ light: 'white',
11
+ dark: 'black',
12
+ hover: {
13
+ light: colors_1.default.gray['05'],
14
+ dark: colors_1.default.gray['105'],
15
+ },
16
+ active: {
17
+ light: colors_1.default.gray['10'],
18
+ dark: colors_1.default.gray['100'],
19
+ },
20
+ },
21
+ secondary: {
22
+ light: colors_1.default.gray['05'],
23
+ dark: colors_1.default.gray['105'],
24
+ hover: {
25
+ light: colors_1.default.gray['10'],
26
+ dark: colors_1.default.gray['100'],
27
+ },
28
+ active: {
29
+ light: colors_1.default.gray['20'],
30
+ dark: colors_1.default.gray['90'],
31
+ },
32
+ },
33
+ tertiary: {
34
+ light: colors_1.default.gray['10'],
35
+ dark: colors_1.default.gray['100'],
36
+ hover: {
37
+ light: colors_1.default.gray['20'],
38
+ dark: colors_1.default.gray['90'],
39
+ },
40
+ active: {
41
+ light: colors_1.default.gray['30'],
42
+ dark: colors_1.default.gray['80'],
43
+ },
44
+ },
45
+ inverse: {
46
+ light: 'black',
47
+ dark: 'white',
48
+ hover: {
49
+ light: colors_1.default.gray['105'],
50
+ dark: colors_1.default.gray['05'],
51
+ },
52
+ active: {
53
+ light: colors_1.default.gray['100'],
54
+ dark: colors_1.default.gray['10'],
55
+ },
56
+ },
57
+ neutral: {
58
+ light: colors_1.default.gray['10'],
59
+ dark: colors_1.default.gray['100'],
60
+ },
61
+ info: {
62
+ light: colors_1.default.blue['10'],
63
+ dark: colors_1.default.blue['100'],
64
+ },
65
+ success: {
66
+ light: colors_1.default.green['10'],
67
+ dark: colors_1.default.green['100'],
68
+ },
69
+ warning: {
70
+ light: colors_1.default.yellow['10'],
71
+ dark: colors_1.default.yellow['100'],
72
+ },
73
+ danger: {
74
+ light: colors_1.default.red['10'],
75
+ dark: colors_1.default.red['100'],
76
+ },
77
+ highlight: {
78
+ light: colors_1.default.purple['10'],
79
+ dark: colors_1.default.purple['100'],
80
+ },
81
+ fill: {
82
+ brand: {
83
+ light: colors_1.default.blue['80'],
84
+ dark: colors_1.default.blue['60'],
85
+ hover: {
86
+ light: colors_1.default.blue['90'],
87
+ dark: colors_1.default.blue['50'],
88
+ },
89
+ active: {
90
+ light: colors_1.default.blue['100'],
91
+ dark: colors_1.default.blue['40'],
92
+ },
93
+ },
94
+ neutral: {
95
+ light: colors_1.default.gray['80'],
96
+ dark: colors_1.default.gray['30'],
97
+ },
98
+ info: {
99
+ light: colors_1.default.blue['80'],
100
+ dark: colors_1.default.blue['60'],
101
+ },
102
+ success: {
103
+ light: colors_1.default.green['80'],
104
+ dark: colors_1.default.green['30'],
105
+ },
106
+ warning: {
107
+ light: colors_1.default.yellow['80'],
108
+ dark: colors_1.default.yellow['30'],
109
+ },
110
+ danger: {
111
+ light: colors_1.default.red['80'],
112
+ dark: colors_1.default.red['60'],
113
+ hover: {
114
+ light: colors_1.default.red['90'],
115
+ dark: colors_1.default.red['50'],
116
+ },
117
+ active: {
118
+ light: colors_1.default.red['100'],
119
+ dark: colors_1.default.red['40'],
120
+ },
121
+ },
122
+ highlight: {
123
+ light: colors_1.default.purple['80'],
124
+ dark: colors_1.default.purple['30'],
125
+ },
126
+ disabled: {
127
+ light: colors_1.default.gray['30'],
128
+ dark: colors_1.default.gray['80'],
129
+ },
130
+ },
131
+ };
132
+ exports.bg = bg;
133
+ var border = {
134
+ primary: {
135
+ light: colors_1.default.gray['80'],
136
+ dark: colors_1.default.gray['30'],
137
+ },
138
+ secondary: {
139
+ light: colors_1.default.gray['60'],
140
+ dark: colors_1.default.gray['50'],
141
+ },
142
+ tertiary: {
143
+ light: colors_1.default.gray['20'],
144
+ dark: colors_1.default.gray['90'],
145
+ },
146
+ inverse: {
147
+ light: 'black',
148
+ dark: 'white',
149
+ },
150
+ focus: {
151
+ light: colors_1.default.blue['80'],
152
+ dark: 'white',
153
+ },
154
+ 'focus-inset': {
155
+ light: 'white',
156
+ dark: 'black',
157
+ },
158
+ brand: {
159
+ light: colors_1.default.blue['80'],
160
+ dark: colors_1.default.blue['60'],
161
+ },
162
+ info: {
163
+ light: colors_1.default.blue['80'],
164
+ dark: colors_1.default.blue['60'],
165
+ },
166
+ 'info-secondary': {
167
+ light: colors_1.default.blue['20'],
168
+ dark: colors_1.default.blue['90'],
169
+ },
170
+ success: {
171
+ light: colors_1.default.green['80'],
172
+ dark: colors_1.default.green['30'],
173
+ },
174
+ 'success-secondary': {
175
+ light: colors_1.default.green['20'],
176
+ dark: colors_1.default.green['90'],
177
+ },
178
+ warning: {
179
+ light: colors_1.default.yellow['80'],
180
+ dark: colors_1.default.yellow['30'],
181
+ },
182
+ 'warning-secondary': {
183
+ light: colors_1.default.yellow['20'],
184
+ dark: colors_1.default.yellow['90'],
185
+ },
186
+ danger: {
187
+ light: colors_1.default.red['80'],
188
+ dark: colors_1.default.red['60'],
189
+ },
190
+ 'danger-secondary': {
191
+ light: colors_1.default.red['20'],
192
+ dark: colors_1.default.red['90'],
193
+ },
194
+ highlight: {
195
+ light: colors_1.default.purple['80'],
196
+ dark: colors_1.default.purple['30'],
197
+ },
198
+ 'highlight-secondary': {
199
+ light: colors_1.default.purple['20'],
200
+ dark: colors_1.default.purple['90'],
201
+ },
202
+ avatar: {
203
+ light: colors_1.default.gray['10'],
204
+ dark: colors_1.default.gray['100'],
205
+ },
206
+ };
207
+ exports.border = border;
208
+ var icon = {
209
+ primary: {
210
+ light: 'black',
211
+ dark: 'white',
212
+ },
213
+ secondary: {
214
+ light: colors_1.default.gray['90'],
215
+ dark: colors_1.default.gray['20'],
216
+ },
217
+ };
218
+ exports.icon = icon;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxio-com/design-tokens",
3
- "version": "3.1.0",
3
+ "version": "3.2.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": "18ed4f036c650c46199e70fa98b5f5885c39cb4c"
24
+ "gitHead": "507d2c784a57ce96b6138087b772d3a55ce416fb"
25
25
  }
@@ -1,50 +0,0 @@
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;
@@ -1,81 +0,0 @@
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;
@@ -1,61 +0,0 @@
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;
@@ -1,78 +0,0 @@
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;
@@ -1,20 +0,0 @@
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; } });
@@ -1,26 +0,0 @@
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;
@@ -1,18 +0,0 @@
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;
@@ -1,41 +0,0 @@
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;