@nova-design-system/nova-base 3.0.0-beta.29 → 3.0.0-beta.31

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.
Files changed (36) hide show
  1. package/dist/css/mccs.css +180187 -0
  2. package/dist/css/nova-utils.css +480 -136
  3. package/dist/css/ocean.css +122113 -1073
  4. package/dist/css/spark.css +122076 -1036
  5. package/dist/js/mccs_dark.d.ts +412 -0
  6. package/dist/js/mccs_dark.js +412 -0
  7. package/dist/js/mccs_light.d.ts +412 -0
  8. package/dist/js/mccs_light.js +412 -0
  9. package/dist/js/ocean_dark.d.ts +119 -124
  10. package/dist/js/ocean_dark.js +152 -157
  11. package/dist/js/ocean_light.d.ts +119 -124
  12. package/dist/js/ocean_light.js +143 -148
  13. package/dist/js/primitives.d.ts +0 -6
  14. package/dist/js/primitives.js +0 -6
  15. package/dist/js/spacings.d.ts +2 -0
  16. package/dist/js/spacings.js +3 -1
  17. package/dist/js/spark_dark.d.ts +108 -113
  18. package/dist/js/spark_dark.js +120 -125
  19. package/dist/js/spark_light.d.ts +108 -113
  20. package/dist/js/spark_light.js +108 -113
  21. package/dist/lib/cjs/nova-plugin.js +10 -42
  22. package/dist/lib/cjs/nova-safelist.js +2 -2
  23. package/dist/lib/cjs/nova-tailwind-tokens.js +271 -37
  24. package/dist/lib/cjs/nova-theme.js +2 -2
  25. package/dist/lib/nova-plugin.js +10 -58
  26. package/dist/lib/nova-safelist.js +2 -2
  27. package/dist/lib/nova-tailwind-tokens.d.ts +244 -10
  28. package/dist/lib/nova-tailwind-tokens.js +271 -37
  29. package/dist/lib/nova-theme.js +2 -2
  30. package/package.json +1 -1
  31. package/dist/tokens/ocean_dark.json +0 -1900
  32. package/dist/tokens/ocean_light.json +0 -1900
  33. package/dist/tokens/primitives.json +0 -1358
  34. package/dist/tokens/spacings.json +0 -1110
  35. package/dist/tokens/spark_dark.json +0 -1901
  36. package/dist/tokens/spark_light.json +0 -1900
@@ -21,58 +21,58 @@ export const novaTailwindPlugin = plugin(({ addUtilities, addComponents, addBase
21
21
  'border-radius': 'var(--radius-rounded)',
22
22
  },
23
23
  a: {
24
- color: 'var(--color-interaction-link-inline-text)',
24
+ color: 'var(--color-interaction-link-high-text)',
25
25
  'text-decoration': 'underline',
26
26
  fontWeight: '700',
27
27
  },
28
28
  'a:hover': {
29
- color: 'var(--color-interaction-link-inline-text-hover)',
29
+ color: 'var(--color-interaction-link-high-text-hover)',
30
30
  },
31
31
  h1: {
32
32
  fontSize: 'var(--global-typography-h1-font-size)',
33
33
  lineHeight: 'var(--global-typography-h1-line-height)',
34
34
  fontWeight: 'var(--global-typography-h1-font-weight)',
35
- color: 'var(--color-base-content-high-emphasis)',
35
+ color: 'var(--color-content-high-text)',
36
36
  },
37
37
  h2: {
38
38
  fontSize: 'var(--global-typography-h2-font-size)',
39
39
  lineHeight: 'var(--global-typography-h2-line-height)',
40
40
  fontWeight: 'var(--global-typography-h2-font-weight)',
41
- color: 'var(--color-base-content-high-emphasis)',
41
+ color: 'var(--color-content-high-text)',
42
42
  },
43
43
  h3: {
44
44
  fontSize: 'var(--global-typography-h3-font-size)',
45
45
  lineHeight: 'var(--global-typography-h3-line-height)',
46
46
  fontWeight: 'var(--global-typography-h3-font-weight)',
47
- color: 'var(--color-base-content-high-emphasis)',
47
+ color: 'var(--color-content-high-text)',
48
48
  },
49
49
  h4: {
50
50
  fontSize: 'var(--global-typography-h4-font-size)',
51
51
  lineHeight: 'var(--global-typography-h4-line-height)',
52
52
  fontWeight: 'var(--global-typography-h4-font-weight)',
53
- color: 'var(--color-base-content-high-emphasis)',
53
+ color: 'var(--color-content-high-text)',
54
54
  },
55
55
  h5: {
56
56
  fontSize: 'var(--global-typography-h4-font-size)',
57
57
  lineHeight: 'var(--global-typography-h4-line-height)',
58
58
  fontWeight: 'var(--font-weight-medium-emphasis)',
59
- color: 'var(--color-base-content-medium-emphasis)',
59
+ color: 'var(--color-content-medium-text)',
60
60
  },
61
61
  h6: {
62
62
  fontSize: 'var(--global-typography-h4-font-size)',
63
63
  lineHeight: 'var(--global-typography-h4-line-height)',
64
64
  fontWeight: 'var(--font-weight-low-emphasis)',
65
- color: 'var(--color-base-content-low-emphasis)',
65
+ color: 'var(--color-content-low-text)',
66
66
  },
67
67
  });
68
68
  addComponents({
69
69
  '.link': {
70
- color: 'var(--color-interaction-link-standalone-text)',
70
+ color: 'var(--color-interaction-link-high-text)',
71
71
  fontWeight: '500',
72
72
  'text-decoration': 'none',
73
73
  },
74
74
  '.link:hover': {
75
- color: 'var(--color-interaction-link-standalone-text-hover)',
75
+ color: 'var(--color-interaction-link-high-text-hover)',
76
76
  },
77
77
  });
78
78
  addUtilities({
@@ -88,54 +88,6 @@ export const novaTailwindPlugin = plugin(({ addUtilities, addComponents, addBase
88
88
  margin: '-1px',
89
89
  clip: 'rect(0, 0, 0, 0)',
90
90
  },
91
- '.text-high-emphasis': {
92
- color: 'var(--color-base-content-high-emphasis)',
93
- },
94
- '.text-medium-emphasis': {
95
- color: 'var(--color-base-content-medium-emphasis)',
96
- },
97
- '.text-low-emphasis': {
98
- color: 'var(--color-base-content-low-emphasis)',
99
- },
100
- '.bg-level-00': {
101
- 'background-color': 'var(--color-base-level-00)',
102
- },
103
- '.bg-level-00-hover': {
104
- 'background-color': 'var(--color-base-level-00-hover)',
105
- },
106
- '.bg-level-10': {
107
- 'background-color': 'var(--color-base-level-10)',
108
- },
109
- '.bg-level-10-hover': {
110
- 'background-color': 'var(--color-base-level-10-hover)',
111
- },
112
- '.bg-level-20': {
113
- 'background-color': 'var(--color-base-level-20)',
114
- },
115
- '.bg-level-20-hover': {
116
- 'background-color': 'var(--color-base-level-20-hover)',
117
- },
118
- '.bg-level-30': {
119
- 'background-color': 'var(--color-base-level-30)',
120
- },
121
- '.bg-level-30-hover': {
122
- 'background-color': 'var(--color-base-level-30-hover)',
123
- },
124
- '.bg-level-40': {
125
- 'background-color': 'var(--color-base-level-40)',
126
- },
127
- '.bg-level-40-hover': {
128
- 'background-color': 'var(--color-base-level-40-hover)',
129
- },
130
- '.border-high-emphasis': {
131
- 'border-color': 'var(--color-base-border-high-emphasis)',
132
- },
133
- '.border-medium-emphasis': {
134
- 'border-color': 'var(--color-base-border-medium-emphasis)',
135
- },
136
- '.border-low-emphasis': {
137
- 'border-color': 'var(--color-base-border-low-emphasis)',
138
- },
139
91
  '.w-inherit': {
140
92
  width: 'inherit',
141
93
  },
@@ -313,9 +313,9 @@ const resize = [
313
313
  // From the nova tailwind plugin (nova-plugin.ts)
314
314
  const utils = [
315
315
  { pattern: /^visually-hidden$/, variants: responsive },
316
- { pattern: /^font-(high|medium|low)-emphasis$/ },
316
+ { pattern: /^text-(high|medium|low)$/ },
317
317
  { pattern: /^bg-level-(00|10|20|30|40)(-hover)?$/ },
318
- { pattern: /^border-(high|medium|low)-emphasis$/ },
318
+ { pattern: /^border-(high|medium|low)$/ },
319
319
  ];
320
320
  // From the nova tailwind plugin (nova-plugin.ts)
321
321
  const components = [{ pattern: /^link$/, variants: pointer }];
@@ -18,25 +18,52 @@ export declare const NOVA_TAILWIND_TOKENS: {
18
18
  '.border-base-medium-emphasis': {
19
19
  'border-color': string;
20
20
  };
21
- '.text-base-high-emphasis': {
21
+ '.border-high': {
22
+ 'border-color': string;
23
+ };
24
+ '.icon-high': {
25
+ color: string;
26
+ };
27
+ '.text-high': {
28
+ color: string;
29
+ };
30
+ '.icon-inverted-high': {
31
+ color: string;
32
+ };
33
+ '.text-inverted-high': {
34
+ color: string;
35
+ };
36
+ '.icon-inverted-low': {
22
37
  color: string;
23
38
  };
24
- '.text-base-inverted-high-emphasis': {
39
+ '.text-inverted-low': {
25
40
  color: string;
26
41
  };
27
- '.text-base-inverted-low-emphasis': {
42
+ '.icon-inverted-medium': {
28
43
  color: string;
29
44
  };
30
- '.text-base-inverted-medium-emphasis': {
45
+ '.text-inverted-medium': {
31
46
  color: string;
32
47
  };
33
- '.text-base-low-emphasis': {
48
+ '.border-low': {
49
+ 'border-color': string;
50
+ };
51
+ '.icon-low': {
52
+ color: string;
53
+ };
54
+ '.text-low': {
55
+ color: string;
56
+ };
57
+ '.text-lower': {
34
58
  color: string;
35
59
  };
36
- '.text-base-lower-emphasis': {
60
+ '.border-medium': {
61
+ 'border-color': string;
62
+ };
63
+ '.icon-medium': {
37
64
  color: string;
38
65
  };
39
- '.text-base-medium-emphasis': {
66
+ '.text-medium': {
40
67
  color: string;
41
68
  };
42
69
  '.bg-dont-use': {
@@ -45,15 +72,15 @@ export declare const NOVA_TAILWIND_TOKENS: {
45
72
  '.border-dont-use': {
46
73
  'border-color': string;
47
74
  };
48
- '.text-dont-use': {
49
- color: string;
50
- };
51
75
  '.bg-feedback-error-high': {
52
76
  'background-color': string;
53
77
  };
54
78
  '.border-feedback-error-high': {
55
79
  'border-color': string;
56
80
  };
81
+ '.icon-feedback-error-high': {
82
+ color: string;
83
+ };
57
84
  '.text-feedback-error-high': {
58
85
  color: string;
59
86
  };
@@ -63,6 +90,9 @@ export declare const NOVA_TAILWIND_TOKENS: {
63
90
  '.border-feedback-error-low': {
64
91
  'border-color': string;
65
92
  };
93
+ '.icon-feedback-error-low': {
94
+ color: string;
95
+ };
66
96
  '.text-feedback-error-low': {
67
97
  color: string;
68
98
  };
@@ -72,6 +102,9 @@ export declare const NOVA_TAILWIND_TOKENS: {
72
102
  '.border-feedback-information-high': {
73
103
  'border-color': string;
74
104
  };
105
+ '.icon-feedback-information-high': {
106
+ color: string;
107
+ };
75
108
  '.text-feedback-information-high': {
76
109
  color: string;
77
110
  };
@@ -81,6 +114,9 @@ export declare const NOVA_TAILWIND_TOKENS: {
81
114
  '.border-feedback-information-low': {
82
115
  'border-color': string;
83
116
  };
117
+ '.icon-feedback-information-low': {
118
+ color: string;
119
+ };
84
120
  '.text-feedback-information-low': {
85
121
  color: string;
86
122
  };
@@ -90,6 +126,9 @@ export declare const NOVA_TAILWIND_TOKENS: {
90
126
  '.border-feedback-neutral-high': {
91
127
  'border-color': string;
92
128
  };
129
+ '.icon-feedback-neutral-high': {
130
+ color: string;
131
+ };
93
132
  '.text-feedback-neutral-high': {
94
133
  color: string;
95
134
  };
@@ -99,6 +138,9 @@ export declare const NOVA_TAILWIND_TOKENS: {
99
138
  '.border-feedback-neutral-low': {
100
139
  'border-color': string;
101
140
  };
141
+ '.icon-feedback-neutral-low': {
142
+ color: string;
143
+ };
102
144
  '.text-feedback-neutral-low': {
103
145
  color: string;
104
146
  };
@@ -108,6 +150,9 @@ export declare const NOVA_TAILWIND_TOKENS: {
108
150
  '.border-feedback-success-high': {
109
151
  'border-color': string;
110
152
  };
153
+ '.icon-feedback-success-high': {
154
+ color: string;
155
+ };
111
156
  '.text-feedback-success-high': {
112
157
  color: string;
113
158
  };
@@ -117,6 +162,9 @@ export declare const NOVA_TAILWIND_TOKENS: {
117
162
  '.border-feedback-success-low': {
118
163
  'border-color': string;
119
164
  };
165
+ '.icon-feedback-success-low': {
166
+ color: string;
167
+ };
120
168
  '.text-feedback-success-low': {
121
169
  color: string;
122
170
  };
@@ -126,6 +174,9 @@ export declare const NOVA_TAILWIND_TOKENS: {
126
174
  '.border-feedback-warning-high': {
127
175
  'border-color': string;
128
176
  };
177
+ '.icon-feedback-warning-high': {
178
+ color: string;
179
+ };
129
180
  '.text-feedback-warning-high': {
130
181
  color: string;
131
182
  };
@@ -135,6 +186,9 @@ export declare const NOVA_TAILWIND_TOKENS: {
135
186
  '.border-feedback-warning-low': {
136
187
  'border-color': string;
137
188
  };
189
+ '.icon-feedback-warning-low': {
190
+ color: string;
191
+ };
138
192
  '.text-feedback-warning-low': {
139
193
  color: string;
140
194
  };
@@ -150,6 +204,12 @@ export declare const NOVA_TAILWIND_TOKENS: {
150
204
  '.border-interaction-brand-high-hover': {
151
205
  'border-color': string;
152
206
  };
207
+ '.icon-interaction-brand-high': {
208
+ color: string;
209
+ };
210
+ '.icon-interaction-brand-high-hover': {
211
+ color: string;
212
+ };
153
213
  '.text-interaction-brand-high': {
154
214
  color: string;
155
215
  };
@@ -168,24 +228,144 @@ export declare const NOVA_TAILWIND_TOKENS: {
168
228
  '.border-interaction-brand-low-hover': {
169
229
  'border-color': string;
170
230
  };
231
+ '.icon-interaction-brand-low': {
232
+ color: string;
233
+ };
234
+ '.icon-interaction-brand-low-hover': {
235
+ color: string;
236
+ };
171
237
  '.text-interaction-brand-low': {
172
238
  color: string;
173
239
  };
174
240
  '.text-interaction-brand-low-hover': {
175
241
  color: string;
176
242
  };
243
+ '.bg-interaction-container-branded-high': {
244
+ 'background-color': string;
245
+ };
246
+ '.bg-interaction-container-branded-high-hover': {
247
+ 'background-color': string;
248
+ };
249
+ '.border-interaction-container-branded-high': {
250
+ 'border-color': string;
251
+ };
252
+ '.border-interaction-container-branded-high-hover': {
253
+ 'border-color': string;
254
+ };
255
+ '.icon-interaction-container-branded-high': {
256
+ color: string;
257
+ };
258
+ '.icon-interaction-container-branded-high-hover': {
259
+ color: string;
260
+ };
261
+ '.text-interaction-container-branded-high': {
262
+ color: string;
263
+ };
264
+ '.text-interaction-container-branded-high-hover': {
265
+ color: string;
266
+ };
267
+ '.bg-interaction-container-branded-low': {
268
+ 'background-color': string;
269
+ };
270
+ '.bg-interaction-container-branded-low-hover': {
271
+ 'background-color': string;
272
+ };
273
+ '.border-interaction-container-branded-low': {
274
+ 'border-color': string;
275
+ };
276
+ '.border-interaction-container-branded-low-hover': {
277
+ 'border-color': string;
278
+ };
279
+ '.icon-interaction-container-branded-low': {
280
+ color: string;
281
+ };
282
+ '.icon-interaction-container-branded-low-hover': {
283
+ color: string;
284
+ };
285
+ '.text-interaction-container-branded-low': {
286
+ color: string;
287
+ };
288
+ '.text-interaction-container-branded-low-hover': {
289
+ color: string;
290
+ };
291
+ '.bg-interaction-container-neutral': {
292
+ 'background-color': string;
293
+ };
294
+ '.bg-interaction-container-neutral-hover': {
295
+ 'background-color': string;
296
+ };
297
+ '.border-interaction-container-neutral': {
298
+ 'border-color': string;
299
+ };
300
+ '.border-interaction-container-neutral-hover': {
301
+ 'border-color': string;
302
+ };
303
+ '.icon-interaction-container-neutral': {
304
+ color: string;
305
+ };
306
+ '.icon-interaction-container-neutral-hover': {
307
+ color: string;
308
+ };
309
+ '.text-interaction-container-neutral': {
310
+ color: string;
311
+ };
312
+ '.text-interaction-container-neutral-hover': {
313
+ color: string;
314
+ };
315
+ '.icon-interaction-link-high': {
316
+ color: string;
317
+ };
318
+ '.icon-interaction-link-high-hover': {
319
+ color: string;
320
+ };
321
+ '.text-interaction-link-high': {
322
+ color: string;
323
+ };
324
+ '.text-interaction-link-high-hover': {
325
+ color: string;
326
+ };
327
+ '.icon-interaction-link-inline': {
328
+ color: string;
329
+ };
330
+ '.icon-interaction-link-inline-hover': {
331
+ color: string;
332
+ };
177
333
  '.text-interaction-link-inline': {
178
334
  color: string;
179
335
  };
180
336
  '.text-interaction-link-inline-hover': {
181
337
  color: string;
182
338
  };
339
+ '.icon-interaction-link-low': {
340
+ color: string;
341
+ };
342
+ '.icon-interaction-link-low-hover': {
343
+ color: string;
344
+ };
345
+ '.text-interaction-link-low': {
346
+ color: string;
347
+ };
348
+ '.text-interaction-link-low-hover': {
349
+ color: string;
350
+ };
351
+ '.icon-interaction-link-standalone': {
352
+ color: string;
353
+ };
354
+ '.icon-interaction-link-standalone-hover': {
355
+ color: string;
356
+ };
183
357
  '.text-interaction-link-standalone': {
184
358
  color: string;
185
359
  };
186
360
  '.text-interaction-link-standalone-hover': {
187
361
  color: string;
188
362
  };
363
+ '.icon-interaction-link-table': {
364
+ color: string;
365
+ };
366
+ '.icon-interaction-link-table-hover': {
367
+ color: string;
368
+ };
189
369
  '.text-interaction-link-table': {
190
370
  color: string;
191
371
  };
@@ -204,18 +384,45 @@ export declare const NOVA_TAILWIND_TOKENS: {
204
384
  '.border-interaction-neutral-hover': {
205
385
  'border-color': string;
206
386
  };
387
+ '.icon-interaction-neutral': {
388
+ color: string;
389
+ };
390
+ '.icon-interaction-neutral-hover': {
391
+ color: string;
392
+ };
207
393
  '.text-interaction-neutral': {
208
394
  color: string;
209
395
  };
210
396
  '.text-interaction-neutral-hover': {
211
397
  color: string;
212
398
  };
399
+ '.bg-level-00': {
400
+ 'background-color': string;
401
+ };
402
+ '.bg-level-05': {
403
+ 'background-color': string;
404
+ };
405
+ '.bg-level-10': {
406
+ 'background-color': string;
407
+ };
408
+ '.bg-level-20': {
409
+ 'background-color': string;
410
+ };
411
+ '.bg-level-30': {
412
+ 'background-color': string;
413
+ };
414
+ '.bg-level-40': {
415
+ 'background-color': string;
416
+ };
213
417
  '.bg-rainbow-1': {
214
418
  'background-color': string;
215
419
  };
216
420
  '.border-rainbow-1': {
217
421
  'border-color': string;
218
422
  };
423
+ '.icon-rainbow-1': {
424
+ color: string;
425
+ };
219
426
  '.text-rainbow-1': {
220
427
  color: string;
221
428
  };
@@ -225,6 +432,9 @@ export declare const NOVA_TAILWIND_TOKENS: {
225
432
  '.border-rainbow-10': {
226
433
  'border-color': string;
227
434
  };
435
+ '.icon-rainbow-10': {
436
+ color: string;
437
+ };
228
438
  '.text-rainbow-10': {
229
439
  color: string;
230
440
  };
@@ -234,6 +444,9 @@ export declare const NOVA_TAILWIND_TOKENS: {
234
444
  '.border-rainbow-2': {
235
445
  'border-color': string;
236
446
  };
447
+ '.icon-rainbow-2': {
448
+ color: string;
449
+ };
237
450
  '.text-rainbow-2': {
238
451
  color: string;
239
452
  };
@@ -243,6 +456,9 @@ export declare const NOVA_TAILWIND_TOKENS: {
243
456
  '.border-rainbow-3': {
244
457
  'border-color': string;
245
458
  };
459
+ '.icon-rainbow-3': {
460
+ color: string;
461
+ };
246
462
  '.text-rainbow-3': {
247
463
  color: string;
248
464
  };
@@ -252,6 +468,9 @@ export declare const NOVA_TAILWIND_TOKENS: {
252
468
  '.border-rainbow-4': {
253
469
  'border-color': string;
254
470
  };
471
+ '.icon-rainbow-4': {
472
+ color: string;
473
+ };
255
474
  '.text-rainbow-4': {
256
475
  color: string;
257
476
  };
@@ -261,6 +480,9 @@ export declare const NOVA_TAILWIND_TOKENS: {
261
480
  '.border-rainbow-5': {
262
481
  'border-color': string;
263
482
  };
483
+ '.icon-rainbow-5': {
484
+ color: string;
485
+ };
264
486
  '.text-rainbow-5': {
265
487
  color: string;
266
488
  };
@@ -270,6 +492,9 @@ export declare const NOVA_TAILWIND_TOKENS: {
270
492
  '.border-rainbow-6': {
271
493
  'border-color': string;
272
494
  };
495
+ '.icon-rainbow-6': {
496
+ color: string;
497
+ };
273
498
  '.text-rainbow-6': {
274
499
  color: string;
275
500
  };
@@ -279,6 +504,9 @@ export declare const NOVA_TAILWIND_TOKENS: {
279
504
  '.border-rainbow-7': {
280
505
  'border-color': string;
281
506
  };
507
+ '.icon-rainbow-7': {
508
+ color: string;
509
+ };
282
510
  '.text-rainbow-7': {
283
511
  color: string;
284
512
  };
@@ -288,6 +516,9 @@ export declare const NOVA_TAILWIND_TOKENS: {
288
516
  '.border-rainbow-8': {
289
517
  'border-color': string;
290
518
  };
519
+ '.icon-rainbow-8': {
520
+ color: string;
521
+ };
291
522
  '.text-rainbow-8': {
292
523
  color: string;
293
524
  };
@@ -297,6 +528,9 @@ export declare const NOVA_TAILWIND_TOKENS: {
297
528
  '.border-rainbow-9': {
298
529
  'border-color': string;
299
530
  };
531
+ '.icon-rainbow-9': {
532
+ color: string;
533
+ };
300
534
  '.text-rainbow-9': {
301
535
  color: string;
302
536
  };