@nova-design-system/nova-base 3.0.0-beta.31 → 3.0.0-beta.34
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/css/mccs.css +0 -178809
- package/dist/css/nova-utils.css +313 -243
- package/dist/css/ocean.css +450 -208721
- package/dist/css/spark.css +431 -208702
- package/dist/lib/cjs/generated/nova-tailwind-components.js +292 -0
- package/dist/lib/cjs/{nova-tailwind-tokens.js → generated/nova-tailwind-tokens.js} +0 -123
- package/dist/lib/cjs/{nova-plugin.js → lib/nova-plugin.js} +3 -11
- package/dist/lib/cjs/{nova-safelist.js → lib/nova-safelist.js} +6 -3
- package/dist/lib/generated/nova-tailwind-components.d.ts +288 -0
- package/dist/lib/generated/nova-tailwind-components.js +289 -0
- package/dist/lib/{nova-tailwind-tokens.d.ts → generated/nova-tailwind-tokens.d.ts} +0 -123
- package/dist/lib/{nova-tailwind-tokens.js → generated/nova-tailwind-tokens.js} +0 -123
- package/dist/lib/{nova-plugin.js → lib/nova-plugin.js} +3 -9
- package/dist/lib/{nova-safelist.js → lib/nova-safelist.js} +6 -3
- package/package.json +7 -2
- /package/dist/lib/cjs/{index.js → lib/index.js} +0 -0
- /package/dist/lib/cjs/{nova-theme.js → lib/nova-theme.js} +0 -0
- /package/dist/lib/{index.d.ts → lib/index.d.ts} +0 -0
- /package/dist/lib/{index.js → lib/index.js} +0 -0
- /package/dist/lib/{nova-plugin.d.ts → lib/nova-plugin.d.ts} +0 -0
- /package/dist/lib/{nova-safelist.d.ts → lib/nova-safelist.d.ts} +0 -0
- /package/dist/lib/{nova-theme.d.ts → lib/nova-theme.d.ts} +0 -0
- /package/dist/lib/{nova-theme.js → lib/nova-theme.js} +0 -0
|
@@ -3,21 +3,6 @@
|
|
|
3
3
|
* @ref generate-tailwind-tokens.ts
|
|
4
4
|
*/
|
|
5
5
|
export declare const NOVA_TAILWIND_TOKENS: {
|
|
6
|
-
'.border-base-focus': {
|
|
7
|
-
'border-color': string;
|
|
8
|
-
};
|
|
9
|
-
'.border-base-focus-high': {
|
|
10
|
-
'border-color': string;
|
|
11
|
-
};
|
|
12
|
-
'.border-base-high-emphasis': {
|
|
13
|
-
'border-color': string;
|
|
14
|
-
};
|
|
15
|
-
'.border-base-low-emphasis': {
|
|
16
|
-
'border-color': string;
|
|
17
|
-
};
|
|
18
|
-
'.border-base-medium-emphasis': {
|
|
19
|
-
'border-color': string;
|
|
20
|
-
};
|
|
21
6
|
'.border-high': {
|
|
22
7
|
'border-color': string;
|
|
23
8
|
};
|
|
@@ -192,54 +177,6 @@ export declare const NOVA_TAILWIND_TOKENS: {
|
|
|
192
177
|
'.text-feedback-warning-low': {
|
|
193
178
|
color: string;
|
|
194
179
|
};
|
|
195
|
-
'.bg-interaction-brand-high': {
|
|
196
|
-
'background-color': string;
|
|
197
|
-
};
|
|
198
|
-
'.bg-interaction-brand-high-hover': {
|
|
199
|
-
'background-color': string;
|
|
200
|
-
};
|
|
201
|
-
'.border-interaction-brand-high': {
|
|
202
|
-
'border-color': string;
|
|
203
|
-
};
|
|
204
|
-
'.border-interaction-brand-high-hover': {
|
|
205
|
-
'border-color': string;
|
|
206
|
-
};
|
|
207
|
-
'.icon-interaction-brand-high': {
|
|
208
|
-
color: string;
|
|
209
|
-
};
|
|
210
|
-
'.icon-interaction-brand-high-hover': {
|
|
211
|
-
color: string;
|
|
212
|
-
};
|
|
213
|
-
'.text-interaction-brand-high': {
|
|
214
|
-
color: string;
|
|
215
|
-
};
|
|
216
|
-
'.text-interaction-brand-high-hover': {
|
|
217
|
-
color: string;
|
|
218
|
-
};
|
|
219
|
-
'.bg-interaction-brand-low': {
|
|
220
|
-
'background-color': string;
|
|
221
|
-
};
|
|
222
|
-
'.bg-interaction-brand-low-hover': {
|
|
223
|
-
'background-color': string;
|
|
224
|
-
};
|
|
225
|
-
'.border-interaction-brand-low': {
|
|
226
|
-
'border-color': string;
|
|
227
|
-
};
|
|
228
|
-
'.border-interaction-brand-low-hover': {
|
|
229
|
-
'border-color': string;
|
|
230
|
-
};
|
|
231
|
-
'.icon-interaction-brand-low': {
|
|
232
|
-
color: string;
|
|
233
|
-
};
|
|
234
|
-
'.icon-interaction-brand-low-hover': {
|
|
235
|
-
color: string;
|
|
236
|
-
};
|
|
237
|
-
'.text-interaction-brand-low': {
|
|
238
|
-
color: string;
|
|
239
|
-
};
|
|
240
|
-
'.text-interaction-brand-low-hover': {
|
|
241
|
-
color: string;
|
|
242
|
-
};
|
|
243
180
|
'.bg-interaction-container-branded-high': {
|
|
244
181
|
'background-color': string;
|
|
245
182
|
};
|
|
@@ -324,18 +261,6 @@ export declare const NOVA_TAILWIND_TOKENS: {
|
|
|
324
261
|
'.text-interaction-link-high-hover': {
|
|
325
262
|
color: string;
|
|
326
263
|
};
|
|
327
|
-
'.icon-interaction-link-inline': {
|
|
328
|
-
color: string;
|
|
329
|
-
};
|
|
330
|
-
'.icon-interaction-link-inline-hover': {
|
|
331
|
-
color: string;
|
|
332
|
-
};
|
|
333
|
-
'.text-interaction-link-inline': {
|
|
334
|
-
color: string;
|
|
335
|
-
};
|
|
336
|
-
'.text-interaction-link-inline-hover': {
|
|
337
|
-
color: string;
|
|
338
|
-
};
|
|
339
264
|
'.icon-interaction-link-low': {
|
|
340
265
|
color: string;
|
|
341
266
|
};
|
|
@@ -348,54 +273,6 @@ export declare const NOVA_TAILWIND_TOKENS: {
|
|
|
348
273
|
'.text-interaction-link-low-hover': {
|
|
349
274
|
color: string;
|
|
350
275
|
};
|
|
351
|
-
'.icon-interaction-link-standalone': {
|
|
352
|
-
color: string;
|
|
353
|
-
};
|
|
354
|
-
'.icon-interaction-link-standalone-hover': {
|
|
355
|
-
color: string;
|
|
356
|
-
};
|
|
357
|
-
'.text-interaction-link-standalone': {
|
|
358
|
-
color: string;
|
|
359
|
-
};
|
|
360
|
-
'.text-interaction-link-standalone-hover': {
|
|
361
|
-
color: string;
|
|
362
|
-
};
|
|
363
|
-
'.icon-interaction-link-table': {
|
|
364
|
-
color: string;
|
|
365
|
-
};
|
|
366
|
-
'.icon-interaction-link-table-hover': {
|
|
367
|
-
color: string;
|
|
368
|
-
};
|
|
369
|
-
'.text-interaction-link-table': {
|
|
370
|
-
color: string;
|
|
371
|
-
};
|
|
372
|
-
'.text-interaction-link-table-hover': {
|
|
373
|
-
color: string;
|
|
374
|
-
};
|
|
375
|
-
'.bg-interaction-neutral': {
|
|
376
|
-
'background-color': string;
|
|
377
|
-
};
|
|
378
|
-
'.bg-interaction-neutral-hover': {
|
|
379
|
-
'background-color': string;
|
|
380
|
-
};
|
|
381
|
-
'.border-interaction-neutral': {
|
|
382
|
-
'border-color': string;
|
|
383
|
-
};
|
|
384
|
-
'.border-interaction-neutral-hover': {
|
|
385
|
-
'border-color': string;
|
|
386
|
-
};
|
|
387
|
-
'.icon-interaction-neutral': {
|
|
388
|
-
color: string;
|
|
389
|
-
};
|
|
390
|
-
'.icon-interaction-neutral-hover': {
|
|
391
|
-
color: string;
|
|
392
|
-
};
|
|
393
|
-
'.text-interaction-neutral': {
|
|
394
|
-
color: string;
|
|
395
|
-
};
|
|
396
|
-
'.text-interaction-neutral-hover': {
|
|
397
|
-
color: string;
|
|
398
|
-
};
|
|
399
276
|
'.bg-level-00': {
|
|
400
277
|
'background-color': string;
|
|
401
278
|
};
|
|
@@ -4,21 +4,6 @@
|
|
|
4
4
|
* @ref generate-tailwind-tokens.ts
|
|
5
5
|
*/
|
|
6
6
|
export const NOVA_TAILWIND_TOKENS = {
|
|
7
|
-
'.border-base-focus': {
|
|
8
|
-
'border-color': 'var(--color-base-border-focus)'
|
|
9
|
-
},
|
|
10
|
-
'.border-base-focus-high': {
|
|
11
|
-
'border-color': 'var(--color-base-border-focus-high)'
|
|
12
|
-
},
|
|
13
|
-
'.border-base-high-emphasis': {
|
|
14
|
-
'border-color': 'var(--color-base-border-high-emphasis)'
|
|
15
|
-
},
|
|
16
|
-
'.border-base-low-emphasis': {
|
|
17
|
-
'border-color': 'var(--color-base-border-low-emphasis)'
|
|
18
|
-
},
|
|
19
|
-
'.border-base-medium-emphasis': {
|
|
20
|
-
'border-color': 'var(--color-base-border-medium-emphasis)'
|
|
21
|
-
},
|
|
22
7
|
'.border-high': {
|
|
23
8
|
'border-color': 'var(--color-content-high-border)'
|
|
24
9
|
},
|
|
@@ -193,54 +178,6 @@ export const NOVA_TAILWIND_TOKENS = {
|
|
|
193
178
|
'.text-feedback-warning-low': {
|
|
194
179
|
'color': 'var(--color-feedback-warning-low-text)'
|
|
195
180
|
},
|
|
196
|
-
'.bg-interaction-brand-high': {
|
|
197
|
-
'background-color': 'var(--color-interaction-brand-high-background)'
|
|
198
|
-
},
|
|
199
|
-
'.bg-interaction-brand-high-hover': {
|
|
200
|
-
'background-color': 'var(--color-interaction-brand-high-background-hover)'
|
|
201
|
-
},
|
|
202
|
-
'.border-interaction-brand-high': {
|
|
203
|
-
'border-color': 'var(--color-interaction-brand-high-border)'
|
|
204
|
-
},
|
|
205
|
-
'.border-interaction-brand-high-hover': {
|
|
206
|
-
'border-color': 'var(--color-interaction-brand-high-border-hover)'
|
|
207
|
-
},
|
|
208
|
-
'.icon-interaction-brand-high': {
|
|
209
|
-
'color': 'var(--color-interaction-brand-high-icon)'
|
|
210
|
-
},
|
|
211
|
-
'.icon-interaction-brand-high-hover': {
|
|
212
|
-
'color': 'var(--color-interaction-brand-high-icon-hover)'
|
|
213
|
-
},
|
|
214
|
-
'.text-interaction-brand-high': {
|
|
215
|
-
'color': 'var(--color-interaction-brand-high-text)'
|
|
216
|
-
},
|
|
217
|
-
'.text-interaction-brand-high-hover': {
|
|
218
|
-
'color': 'var(--color-interaction-brand-high-text-hover)'
|
|
219
|
-
},
|
|
220
|
-
'.bg-interaction-brand-low': {
|
|
221
|
-
'background-color': 'var(--color-interaction-brand-low-background)'
|
|
222
|
-
},
|
|
223
|
-
'.bg-interaction-brand-low-hover': {
|
|
224
|
-
'background-color': 'var(--color-interaction-brand-low-background-hover)'
|
|
225
|
-
},
|
|
226
|
-
'.border-interaction-brand-low': {
|
|
227
|
-
'border-color': 'var(--color-interaction-brand-low-border)'
|
|
228
|
-
},
|
|
229
|
-
'.border-interaction-brand-low-hover': {
|
|
230
|
-
'border-color': 'var(--color-interaction-brand-low-border-hover)'
|
|
231
|
-
},
|
|
232
|
-
'.icon-interaction-brand-low': {
|
|
233
|
-
'color': 'var(--color-interaction-brand-low-icon)'
|
|
234
|
-
},
|
|
235
|
-
'.icon-interaction-brand-low-hover': {
|
|
236
|
-
'color': 'var(--color-interaction-brand-low-icon-hover)'
|
|
237
|
-
},
|
|
238
|
-
'.text-interaction-brand-low': {
|
|
239
|
-
'color': 'var(--color-interaction-brand-low-text)'
|
|
240
|
-
},
|
|
241
|
-
'.text-interaction-brand-low-hover': {
|
|
242
|
-
'color': 'var(--color-interaction-brand-low-text-hover)'
|
|
243
|
-
},
|
|
244
181
|
'.bg-interaction-container-branded-high': {
|
|
245
182
|
'background-color': 'var(--color-interaction-container-branded-high-background)'
|
|
246
183
|
},
|
|
@@ -325,18 +262,6 @@ export const NOVA_TAILWIND_TOKENS = {
|
|
|
325
262
|
'.text-interaction-link-high-hover': {
|
|
326
263
|
'color': 'var(--color-interaction-link-high-text-hover)'
|
|
327
264
|
},
|
|
328
|
-
'.icon-interaction-link-inline': {
|
|
329
|
-
'color': 'var(--color-interaction-link-inline-icon)'
|
|
330
|
-
},
|
|
331
|
-
'.icon-interaction-link-inline-hover': {
|
|
332
|
-
'color': 'var(--color-interaction-link-inline-icon-hover)'
|
|
333
|
-
},
|
|
334
|
-
'.text-interaction-link-inline': {
|
|
335
|
-
'color': 'var(--color-interaction-link-inline-text)'
|
|
336
|
-
},
|
|
337
|
-
'.text-interaction-link-inline-hover': {
|
|
338
|
-
'color': 'var(--color-interaction-link-inline-text-hover)'
|
|
339
|
-
},
|
|
340
265
|
'.icon-interaction-link-low': {
|
|
341
266
|
'color': 'var(--color-interaction-link-low-icon)'
|
|
342
267
|
},
|
|
@@ -349,54 +274,6 @@ export const NOVA_TAILWIND_TOKENS = {
|
|
|
349
274
|
'.text-interaction-link-low-hover': {
|
|
350
275
|
'color': 'var(--color-interaction-link-low-text-hover)'
|
|
351
276
|
},
|
|
352
|
-
'.icon-interaction-link-standalone': {
|
|
353
|
-
'color': 'var(--color-interaction-link-standalone-icon)'
|
|
354
|
-
},
|
|
355
|
-
'.icon-interaction-link-standalone-hover': {
|
|
356
|
-
'color': 'var(--color-interaction-link-standalone-icon-hover)'
|
|
357
|
-
},
|
|
358
|
-
'.text-interaction-link-standalone': {
|
|
359
|
-
'color': 'var(--color-interaction-link-standalone-text)'
|
|
360
|
-
},
|
|
361
|
-
'.text-interaction-link-standalone-hover': {
|
|
362
|
-
'color': 'var(--color-interaction-link-standalone-text-hover)'
|
|
363
|
-
},
|
|
364
|
-
'.icon-interaction-link-table': {
|
|
365
|
-
'color': 'var(--color-interaction-link-table-icon)'
|
|
366
|
-
},
|
|
367
|
-
'.icon-interaction-link-table-hover': {
|
|
368
|
-
'color': 'var(--color-interaction-link-table-icon-hover)'
|
|
369
|
-
},
|
|
370
|
-
'.text-interaction-link-table': {
|
|
371
|
-
'color': 'var(--color-interaction-link-table-text)'
|
|
372
|
-
},
|
|
373
|
-
'.text-interaction-link-table-hover': {
|
|
374
|
-
'color': 'var(--color-interaction-link-table-text-hover)'
|
|
375
|
-
},
|
|
376
|
-
'.bg-interaction-neutral': {
|
|
377
|
-
'background-color': 'var(--color-interaction-neutral-background)'
|
|
378
|
-
},
|
|
379
|
-
'.bg-interaction-neutral-hover': {
|
|
380
|
-
'background-color': 'var(--color-interaction-neutral-background-hover)'
|
|
381
|
-
},
|
|
382
|
-
'.border-interaction-neutral': {
|
|
383
|
-
'border-color': 'var(--color-interaction-neutral-border)'
|
|
384
|
-
},
|
|
385
|
-
'.border-interaction-neutral-hover': {
|
|
386
|
-
'border-color': 'var(--color-interaction-neutral-border-hover)'
|
|
387
|
-
},
|
|
388
|
-
'.icon-interaction-neutral': {
|
|
389
|
-
'color': 'var(--color-interaction-neutral-icon)'
|
|
390
|
-
},
|
|
391
|
-
'.icon-interaction-neutral-hover': {
|
|
392
|
-
'color': 'var(--color-interaction-neutral-icon-hover)'
|
|
393
|
-
},
|
|
394
|
-
'.text-interaction-neutral': {
|
|
395
|
-
'color': 'var(--color-interaction-neutral-text)'
|
|
396
|
-
},
|
|
397
|
-
'.text-interaction-neutral-hover': {
|
|
398
|
-
'color': 'var(--color-interaction-neutral-text-hover)'
|
|
399
|
-
},
|
|
400
277
|
'.bg-level-00': {
|
|
401
278
|
'background-color': 'var(--color-level-00-background)'
|
|
402
279
|
},
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* @fileoverview This file contains various tailwind utilities for nova
|
|
3
3
|
*/
|
|
4
4
|
import plugin from 'tailwindcss/plugin.js';
|
|
5
|
-
import { NOVA_TAILWIND_TOKENS } from '
|
|
5
|
+
import { NOVA_TAILWIND_TOKENS } from '../generated/nova-tailwind-tokens.js';
|
|
6
|
+
import { NOVA_TAILWIND_COMPONENTS } from '../generated/nova-tailwind-components.js';
|
|
6
7
|
export const novaTailwindPlugin = plugin(({ addUtilities, addComponents, addBase, theme }) => {
|
|
7
8
|
addBase({
|
|
8
9
|
'body, html': {
|
|
@@ -66,14 +67,7 @@ export const novaTailwindPlugin = plugin(({ addUtilities, addComponents, addBase
|
|
|
66
67
|
},
|
|
67
68
|
});
|
|
68
69
|
addComponents({
|
|
69
|
-
|
|
70
|
-
color: 'var(--color-interaction-link-high-text)',
|
|
71
|
-
fontWeight: '500',
|
|
72
|
-
'text-decoration': 'none',
|
|
73
|
-
},
|
|
74
|
-
'.link:hover': {
|
|
75
|
-
color: 'var(--color-interaction-link-high-text-hover)',
|
|
76
|
-
},
|
|
70
|
+
...NOVA_TAILWIND_COMPONENTS,
|
|
77
71
|
});
|
|
78
72
|
addUtilities({
|
|
79
73
|
...NOVA_TAILWIND_TOKENS,
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
* they can configure Tailwind directly without using the predefined safelists.
|
|
8
8
|
*/
|
|
9
9
|
import { spacing } from './nova-theme.js';
|
|
10
|
-
import { NOVA_TAILWIND_TOKENS } from '
|
|
10
|
+
import { NOVA_TAILWIND_TOKENS } from '../generated/nova-tailwind-tokens.js';
|
|
11
|
+
import { NOVA_TAILWIND_COMPONENTS } from '../generated/nova-tailwind-components.js';
|
|
11
12
|
// Enables responsive spacing modifiers for safelist variants
|
|
12
13
|
export const responsive = ['xs', 'sm', 'md', 'lg', 'xl', '2xl', '3xl'];
|
|
13
14
|
// Enables responsive color schemes for safelist variants
|
|
@@ -317,8 +318,10 @@ const utils = [
|
|
|
317
318
|
{ pattern: /^bg-level-(00|10|20|30|40)(-hover)?$/ },
|
|
318
319
|
{ pattern: /^border-(high|medium|low)$/ },
|
|
319
320
|
];
|
|
320
|
-
// From the nova tailwind
|
|
321
|
-
const components = [
|
|
321
|
+
// From the nova tailwind components (nova-tailwind-components.ts)
|
|
322
|
+
const components = [
|
|
323
|
+
...Object.keys(NOVA_TAILWIND_COMPONENTS).filter((key) => /^\.[a-zA-Z0-9-]+$/.test(key)),
|
|
324
|
+
];
|
|
322
325
|
// From the nova tailwind tokens (nova-tailwind-tokens.ts)
|
|
323
326
|
const tokens = [
|
|
324
327
|
...Object.keys(NOVA_TAILWIND_TOKENS),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nova-design-system/nova-base",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.34",
|
|
4
4
|
"description": "Nova is a design system created by Elia Group to empower creators to efficiently build solutions that people love to use.",
|
|
5
5
|
"author": "Elia Group",
|
|
6
6
|
"homepage": "https://nova.eliagroup.io",
|
|
@@ -14,9 +14,10 @@
|
|
|
14
14
|
"generate-tokens": "tsx scripts/extract-tokens.ts && tsx scripts/generate-token-files.ts",
|
|
15
15
|
"generate-css-utils": "tailwindcss -i ./lib/tailwind.css -o ./dist/css/nova-utils.css",
|
|
16
16
|
"generate-tailwind-tokens": "tsx scripts/generate-tailwind-tokens.ts",
|
|
17
|
+
"generate-tailwind-components": "tsx scripts/generate-tailwind-components.ts",
|
|
17
18
|
"build-lib": "tsc && tsc --module CommonJS --moduleResolution Node --declaration false --outDir ./dist/lib/cjs",
|
|
18
19
|
"merge-css": "tsx scripts/merge-css.ts",
|
|
19
|
-
"build": "tsx scripts/generate-tokens.ts && npm run merge-css && npm run generate-tailwind-tokens && npm run generate-css-utils && npm run build-lib",
|
|
20
|
+
"build": "npm run clean && tsx scripts/generate-tokens.ts && npm run generate-tailwind-components && npm run merge-css && npm run generate-tailwind-tokens && npm run generate-css-utils && npm run build-lib",
|
|
20
21
|
"clean": "rimraf dist",
|
|
21
22
|
"typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.node.json --noEmit"
|
|
22
23
|
},
|
|
@@ -28,6 +29,10 @@
|
|
|
28
29
|
"style-dictionary": "4.0.0",
|
|
29
30
|
"tailwindcss": "3.4.10"
|
|
30
31
|
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"nova-utils": "*",
|
|
34
|
+
"sass": "1.83.4"
|
|
35
|
+
},
|
|
31
36
|
"exports": {
|
|
32
37
|
"./dist/*": "./dist/*",
|
|
33
38
|
"./assets/*": "./assets/*",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|