@maxio-com/design-tokens 4.1.9 → 4.1.10

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.
@@ -74,9 +74,11 @@ declare const semanticColors: {
74
74
  danger: string;
75
75
  'icon-primary': string;
76
76
  'icon-secondary': string;
77
+ 'icon-tertiary': string;
77
78
  'icon-inverse': string;
78
79
  'icon-disabled': string;
79
80
  'icon-on-bg-fill-disabled': string;
81
+ 'icon-brand': string;
80
82
  'icon-neutral': string;
81
83
  'icon-info': string;
82
84
  'icon-success': string;
@@ -91,12 +93,28 @@ declare const semanticColors: {
91
93
  ringColor: ({ theme }: {
92
94
  theme: ThemePlaceholder;
93
95
  }) => {
96
+ primary: string;
97
+ secondary: string;
98
+ tertiary: string;
99
+ inverse: string;
94
100
  focus: string;
95
101
  'focus-inset': string;
102
+ brand: string;
103
+ info: string;
104
+ 'info-secondary': string;
105
+ success: string;
106
+ 'success-secondary': string;
107
+ warning: string;
108
+ 'warning-secondary': string;
109
+ danger: string;
110
+ 'danger-secondary': string;
111
+ highlight: string;
112
+ 'highlight-secondary': string;
96
113
  };
97
114
  ringOffsetColor: ({ theme }: {
98
115
  theme: ThemePlaceholder;
99
116
  }) => {
117
+ inverse: string;
100
118
  focus: string;
101
119
  'focus-inset': string;
102
120
  };
@@ -1 +1 @@
1
- {"version":3,"file":"semanticColors.d.ts","sourceRoot":"","sources":["../../src/config/semanticColors.ts"],"names":[],"mappings":"AAAA,KAAK,gBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEhE,QAAA,MAAM,cAAc;;eACoB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAiCpB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;eAsBhB,gBAAgB;;;;;eAIlB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;eA6BhB,gBAAgB;;;;;;eAKV,gBAAgB;;;;;CAKvD,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"semanticColors.d.ts","sourceRoot":"","sources":["../../src/config/semanticColors.ts"],"names":[],"mappings":"AAAA,KAAK,gBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEhE,QAAA,MAAM,cAAc;;eACoB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAiCpB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;eAsBhB,gBAAgB;;;;;eAIlB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;eA+BhB,gBAAgB;;;;;;;;;;;;;;;;;;;;;eAoBV,gBAAgB;;;;;;CAMvD,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -2,8 +2,8 @@ const semanticColors = {
2
2
  backgroundColor: ({ theme }) => (Object.assign(Object.assign({}, theme('colors')), { primary: 'var(--maxio-color-bg-primary)', 'primary-hover': 'var(--maxio-color-bg-primary-hover)', 'primary-active': 'var(--maxio-color-bg-primary-active)', secondary: 'var(--maxio-color-bg-secondary)', 'secondary-hover': 'var(--maxio-color-bg-secondary-hover)', 'secondary-active': 'var(--maxio-color-bg-secondary-active)', tertiary: 'var(--maxio-color-bg-tertiary)', 'tertiary-hover': 'var(--maxio-color-bg-tertiary-hover)', 'tertiary-active': 'var(--maxio-color-bg-tertiary-active)', inverse: 'var(--maxio-color-bg-inverse)', 'inverse-hover': 'var(--maxio-color-bg-inverse-hover)', 'inverse-active': 'var(--maxio-color-bg-inverse-active)', neutral: 'var(--maxio-color-bg-neutral)', info: 'var(--maxio-color-bg-info)', success: 'var(--maxio-color-bg-success)', warning: 'var(--maxio-color-bg-warning)', danger: 'var(--maxio-color-bg-danger)', highlight: 'var(--maxio-color-bg-highlight)', 'fill-brand': 'var(--maxio-color-bg-fill-brand)', 'fill-brand-hover': 'var(--maxio-color-bg-fill-brand-hover)', 'fill-brand-active': 'var(--maxio-color-bg-fill-brand-active)', 'fill-neutral': 'var(--maxio-color-bg-fill-neutral)', 'fill-info': 'var(--maxio-color-bg-fill-info)', 'fill-success': 'var(--maxio-color-bg-fill-success)', 'fill-warning': 'var(--maxio-color-bg-fill-warning)', 'fill-danger': 'var(--maxio-color-bg-fill-danger)', 'fill-danger-hover': 'var(--maxio-color-bg-fill-danger-hover)', 'fill-danger-active': 'var(--maxio-color-bg-fill-danger-active)', 'fill-highlight': 'var(--maxio-color-bg-fill-highlight)', 'fill-disabled': 'var(--maxio-color-bg-fill-disabled)' })),
3
3
  borderColor: ({ theme }) => (Object.assign(Object.assign({}, theme('colors')), { DEFAULT: 'var(--maxio-color-border-primary)', primary: 'var(--maxio-color-border-primary)', secondary: 'var(--maxio-color-border-secondary)', tertiary: 'var(--maxio-color-border-tertiary)', inverse: 'var(--maxio-color-border-inverse)', focus: 'var(--maxio-color-border-focus)', 'focus-inset': 'var(--maxio-color-border-focus-inset)', brand: 'var(--maxio-color-border-brand)', info: 'var(--maxio-color-border-info)', 'info-secondary': 'var(--maxio-color-border-info-secondary)', success: 'var(--maxio-color-border-success)', 'success-secondary': 'var(--maxio-color-border-success-secondary)', warning: 'var(--maxio-color-border-warning)', 'warning-secondary': 'var(--maxio-color-border-warning-secondary)', danger: 'var(--maxio-color-border-danger)', 'danger-secondary': 'var(--maxio-color-border-danger-secondary)', highlight: 'var(--maxio-color-border-highlight)', 'highlight-secondary': 'var(--maxio-color-border-highlight-secondary)', avatar: 'var(--maxio-color-border-avatar)' })),
4
4
  divideColor: ({ theme }) => (Object.assign(Object.assign({}, theme('borderColor')), { DEFAULT: 'var(--maxio-color-border-primary)' })),
5
- textColor: ({ theme }) => (Object.assign(Object.assign({}, theme('colors')), { primary: 'var(--maxio-color-text-primary)', secondary: 'var(--maxio-color-text-secondary)', tertiary: 'var(--maxio-color-text-tertiary)', inverse: 'var(--maxio-color-text-inverse)', 'on-bg-fill-disabled': 'var(--maxio-color-text-on-bg-fill-disabled)', disabled: 'var(--maxio-color-text-disabled)', danger: 'var(--maxio-color-text-danger)', 'icon-primary': 'var(--maxio-color-icon-primary)', 'icon-secondary': 'var(--maxio-color-icon-secondary)', 'icon-inverse': 'var(--maxio-color-icon-inverse)', 'icon-disabled': 'var(--maxio-color-icon-disabled)', 'icon-on-bg-fill-disabled': 'var(--maxio-color-icon-on-bg-fill-disabled)', 'icon-neutral': 'var(--maxio-color-icon-neutral)', 'icon-info': 'var(--maxio-color-icon-info)', 'icon-success': 'var(--maxio-color-icon-success)', 'icon-warning': 'var(--maxio-color-icon-warning)', 'icon-danger': 'var(--maxio-color-icon-danger)', 'icon-highlight': 'var(--maxio-color-icon-highlight)', link: 'var(--maxio-color-link)', 'link-high-contrast': 'var(--maxio-color-link-high-contrast)', 'link-hover': 'var(--maxio-color-link-hover)', 'link-active': 'var(--maxio-color-link-active)' })),
6
- ringColor: ({ theme }) => (Object.assign(Object.assign({}, theme('colors')), { focus: 'var(--maxio-color-border-focus)', 'focus-inset': 'var(--maxio-color-border-focus-inset)' })),
7
- ringOffsetColor: ({ theme }) => (Object.assign(Object.assign({}, theme('colors')), { focus: 'var(--maxio-color-border-focus)', 'focus-inset': 'var(--maxio-color-border-focus-inset)' })),
5
+ textColor: ({ theme }) => (Object.assign(Object.assign({}, theme('colors')), { primary: 'var(--maxio-color-text-primary)', secondary: 'var(--maxio-color-text-secondary)', tertiary: 'var(--maxio-color-text-tertiary)', inverse: 'var(--maxio-color-text-inverse)', 'on-bg-fill-disabled': 'var(--maxio-color-text-on-bg-fill-disabled)', disabled: 'var(--maxio-color-text-disabled)', danger: 'var(--maxio-color-text-danger)', 'icon-primary': 'var(--maxio-color-icon-primary)', 'icon-secondary': 'var(--maxio-color-icon-secondary)', 'icon-tertiary': 'var(--maxio-color-icon-tertiary)', 'icon-inverse': 'var(--maxio-color-icon-inverse)', 'icon-disabled': 'var(--maxio-color-icon-disabled)', 'icon-on-bg-fill-disabled': 'var(--maxio-color-icon-on-bg-fill-disabled)', 'icon-brand': 'var(--maxio-color-icon-brand)', 'icon-neutral': 'var(--maxio-color-icon-neutral)', 'icon-info': 'var(--maxio-color-icon-info)', 'icon-success': 'var(--maxio-color-icon-success)', 'icon-warning': 'var(--maxio-color-icon-warning)', 'icon-danger': 'var(--maxio-color-icon-danger)', 'icon-highlight': 'var(--maxio-color-icon-highlight)', link: 'var(--maxio-color-link)', 'link-high-contrast': 'var(--maxio-color-link-high-contrast)', 'link-hover': 'var(--maxio-color-link-hover)', 'link-active': 'var(--maxio-color-link-active)' })),
6
+ ringColor: ({ theme }) => (Object.assign(Object.assign({}, theme('colors')), { primary: 'var(--maxio-color-border-primary)', secondary: 'var(--maxio-color-border-secondary)', tertiary: 'var(--maxio-color-border-tertiary)', inverse: 'var(--maxio-color-border-inverse)', focus: 'var(--maxio-color-border-focus)', 'focus-inset': 'var(--maxio-color-border-focus-inset)', brand: 'var(--maxio-color-border-brand)', info: 'var(--maxio-color-border-info)', 'info-secondary': 'var(--maxio-color-border-info-secondary)', success: 'var(--maxio-color-border-success)', 'success-secondary': 'var(--maxio-color-border-success-secondary)', warning: 'var(--maxio-color-border-warning)', 'warning-secondary': 'var(--maxio-color-border-warning-secondary)', danger: 'var(--maxio-color-border-danger)', 'danger-secondary': 'var(--maxio-color-border-danger-secondary)', highlight: 'var(--maxio-color-border-highlight)', 'highlight-secondary': 'var(--maxio-color-border-highlight-secondary)' })),
7
+ ringOffsetColor: ({ theme }) => (Object.assign(Object.assign({}, theme('colors')), { inverse: 'var(--maxio-color-border-inverse)', focus: 'var(--maxio-color-border-focus)', 'focus-inset': 'var(--maxio-color-border-focus-inset)' })),
8
8
  };
9
9
  export default semanticColors;
@@ -144,9 +144,11 @@ declare const _default: {
144
144
  danger: string;
145
145
  'icon-primary': string;
146
146
  'icon-secondary': string;
147
+ 'icon-tertiary': string;
147
148
  'icon-inverse': string;
148
149
  'icon-disabled': string;
149
150
  'icon-on-bg-fill-disabled': string;
151
+ 'icon-brand': string;
150
152
  'icon-neutral': string;
151
153
  'icon-info': string;
152
154
  'icon-success': string;
@@ -161,15 +163,35 @@ declare const _default: {
161
163
  ringColor: ({ theme }: {
162
164
  theme: (key: string) => Record<string, string>;
163
165
  }) => {
166
+ primary: string;
167
+ secondary: string;
168
+ tertiary: string;
169
+ inverse: string;
164
170
  focus: string;
165
171
  'focus-inset': string;
172
+ brand: string;
173
+ info: string;
174
+ 'info-secondary': string;
175
+ success: string;
176
+ 'success-secondary': string;
177
+ warning: string;
178
+ 'warning-secondary': string;
179
+ danger: string;
180
+ 'danger-secondary': string;
181
+ highlight: string;
182
+ 'highlight-secondary': string;
166
183
  };
167
184
  ringOffsetColor: ({ theme }: {
168
185
  theme: (key: string) => Record<string, string>;
169
186
  }) => {
187
+ inverse: string;
170
188
  focus: string;
171
189
  'focus-inset': string;
172
190
  };
191
+ boxShadow: {
192
+ button: string;
193
+ 'button-active': string;
194
+ };
173
195
  };
174
196
  };
175
197
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"tailwindTheme.d.ts","sourceRoot":"","sources":["../src/tailwindTheme.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,wBAaE"}
1
+ {"version":3,"file":"tailwindTheme.d.ts","sourceRoot":"","sources":["../src/tailwindTheme.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,wBAkBE"}
@@ -4,5 +4,8 @@ export default {
4
4
  fontSize,
5
5
  lineHeight,
6
6
  colors: Object.assign({ current: 'currentColor', inherit: 'inherit', transparent: 'transparent' }, colors),
7
- extend: Object.assign({}, semanticColors),
7
+ extend: Object.assign({ boxShadow: {
8
+ button: '0px -1.5px 0px 0px var(--maxio-black-alpha-20) inset, 0px 1.5px 0px 0px var(--maxio-color-border-tertiary-inverse) inset',
9
+ 'button-active': '0px 1.5px 0px 0px var(--maxio-black-alpha-20) inset',
10
+ } }, semanticColors),
8
11
  };
@@ -169,7 +169,7 @@
169
169
  --maxio-color-bg-fill-danger-hover: var(--maxio-red-90);
170
170
  --maxio-color-bg-fill-danger-active: var(--maxio-red-100);
171
171
  --maxio-color-bg-fill-highlight: var(--maxio-purple-80);
172
- --maxio-color-bg-fill-disabled: var(--maxio-gray-30);
172
+ --maxio-color-bg-fill-disabled: var(--maxio-gray-10);
173
173
 
174
174
  /* border colors */
175
175
  --maxio-color-border-primary: var(--maxio-black-alpha-60);
@@ -196,10 +196,12 @@
196
196
 
197
197
  /* icon colors */
198
198
  --maxio-color-icon-primary: var(--maxio-black-opaque);
199
- --maxio-color-icon-secondary: var(--maxio-gray-90);
199
+ --maxio-color-icon-secondary: var(--maxio-gray-80);
200
+ --maxio-color-icon-tertiary: var(--maxio-gray-60);
200
201
  --maxio-color-icon-inverse: var(--maxio-white-opaque);
201
- --maxio-color-icon-disabled: var(--maxio-gray-60);
202
- --maxio-color-icon-on-bg-fill-disabled: var(--maxio-gray-70);
202
+ --maxio-color-icon-disabled: var(--maxio-gray-40);
203
+ --maxio-color-icon-on-bg-fill-disabled: var(--maxio-gray-50);
204
+ --maxio-color-icon-brand: var(--maxio-blue-80);
203
205
  --maxio-color-icon-neutral: var(--maxio-gray-80);
204
206
  --maxio-color-icon-info: var(--maxio-blue-80);
205
207
  --maxio-color-icon-success: var(--maxio-green-80);
@@ -209,11 +211,11 @@
209
211
 
210
212
  /* text colors */
211
213
  --maxio-color-text-primary: var(--maxio-black-opaque);
212
- --maxio-color-text-secondary: var(--maxio-gray-90);
213
- --maxio-color-text-tertiary: var(--maxio-gray-80);
214
+ --maxio-color-text-secondary: var(--maxio-gray-80);
215
+ --maxio-color-text-tertiary: var(--maxio-gray-60);
214
216
  --maxio-color-text-inverse: var(--maxio-white-opaque);
215
- --maxio-color-text-on-bg-fill-disabled: var(--maxio-gray-70);
216
- --maxio-color-text-disabled: var(--maxio-gray-60);
217
+ --maxio-color-text-on-bg-fill-disabled: var(--maxio-gray-50);
218
+ --maxio-color-text-disabled: var(--maxio-gray-40);
217
219
  --maxio-color-text-danger: var(--maxio-red-80);
218
220
 
219
221
  /* link colors */
@@ -244,18 +246,18 @@
244
246
  --maxio-color-bg-warning: var(--maxio-yellow-100);
245
247
  --maxio-color-bg-danger: var(--maxio-red-100);
246
248
  --maxio-color-bg-highlight: var(--maxio-purple-100);
247
- --maxio-color-bg-fill-brand: var(--maxio-blue-60);
248
- --maxio-color-bg-fill-brand-hover: var(--maxio-blue-50);
249
- --maxio-color-bg-fill-brand-active: var(--maxio-blue-40);
250
- --maxio-color-bg-fill-neutral: var(--maxio-gray-30);
251
- --maxio-color-bg-fill-info: var(--maxio-blue-60);
252
- --maxio-color-bg-fill-success: var(--maxio-green-30);
253
- --maxio-color-bg-fill-warning: var(--maxio-yellow-30);
254
- --maxio-color-bg-fill-danger: var(--maxio-red-60);
255
- --maxio-color-bg-fill-danger-hover: var(--maxio-red-50);
256
- --maxio-color-bg-fill-danger-active: var(--maxio-red-40);
257
- --maxio-color-bg-fill-highlight: var(--maxio-purple-30);
258
- --maxio-color-bg-fill-disabled: var(--maxio-gray-80);
249
+ --maxio-color-bg-fill-brand: var(--maxio-blue-80);
250
+ --maxio-color-bg-fill-brand-hover: var(--maxio-blue-70);
251
+ --maxio-color-bg-fill-brand-active: var(--maxio-blue-60);
252
+ --maxio-color-bg-fill-neutral: var(--maxio-gray-40);
253
+ --maxio-color-bg-fill-info: var(--maxio-blue-40);
254
+ --maxio-color-bg-fill-success: var(--maxio-green-40);
255
+ --maxio-color-bg-fill-warning: var(--maxio-yellow-40);
256
+ --maxio-color-bg-fill-danger: var(--maxio-red-80);
257
+ --maxio-color-bg-fill-danger-hover: var(--maxio-red-70);
258
+ --maxio-color-bg-fill-danger-active: var(--maxio-red-60);
259
+ --maxio-color-bg-fill-highlight: var(--maxio-purple-40);
260
+ --maxio-color-bg-fill-disabled: var(--maxio-gray-100);
259
261
 
260
262
  /* border colors */
261
263
  --maxio-color-border-primary: var(--maxio-white-alpha-60);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@maxio-com/design-tokens",
3
3
  "type": "module",
4
- "version": "4.1.9",
4
+ "version": "4.1.10",
5
5
  "description": "Design Tokens definition",
6
6
  "license": "MIT",
7
7
  "main": "dist/index.js",
@@ -30,5 +30,5 @@
30
30
  "publishConfig": {
31
31
  "access": "public"
32
32
  },
33
- "gitHead": "44966aaf16094aeaa739dd6f60ce5add7fabad40"
33
+ "gitHead": "963c490ed5f00b7f2632c321ef62cd29a3b51b5b"
34
34
  }