@n8n/design-system 2.24.2 → 2.26.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@n8n/design-system",
4
- "version": "2.24.2",
4
+ "version": "2.26.0",
5
5
  "main": "src/index.ts",
6
6
  "import": "src/index.ts",
7
7
  "license": "SEE LICENSE IN LICENSE.md",
package/src/index.ts CHANGED
@@ -7,6 +7,8 @@ export * from './types';
7
7
  export * from './utils';
8
8
  export * from './directives';
9
9
  export type { IconOrEmoji } from './components/N8nIconPicker/types';
10
+ export { IconBodyLoaderKey, useInjectIconBodyLoader } from './composables/useIconBodyLoader';
11
+ export type { IconBodyLoader } from './composables/useIconBodyLoader';
10
12
  export { default as N8nSelect2 } from './v2/components/Select/Select.vue';
11
13
  export { default as N8nSelect2Item } from './v2/components/Select/SelectItem.vue';
12
14
  export type * from './v2/components/Select/Select.types';
package/vite.config.mts CHANGED
@@ -4,6 +4,7 @@ import { defineConfig, mergeConfig } from 'vite';
4
4
  import icons from 'unplugin-icons/vite';
5
5
  import { vitestConfig } from '@n8n/vitest-config/frontend';
6
6
  import svgLoader from 'vite-svg-loader';
7
+ import { lucideIconsPlugin } from './src/icons/lucide/vite';
7
8
 
8
9
  const packagesDir = resolve(__dirname, '..', '..', '..');
9
10
 
@@ -11,6 +12,7 @@ export default mergeConfig(
11
12
  defineConfig({
12
13
  plugins: [
13
14
  vue(),
15
+ lucideIconsPlugin(),
14
16
  svgLoader({
15
17
  svgoConfig: {
16
18
  plugins: [
@@ -1,112 +0,0 @@
1
-
2
- > @n8n/design-system@2.24.2 build /home/runner/work/n8n/n8n/packages/frontend/@n8n/design-system
3
- > vite build
4
-
5
- vite v8.0.2 building client environment for production...
6
- 
7
- rendering chunks...
8
- [lightningcss minify] 'global' is not recognized as a valid pseudo-class. Did you mean '::global' (pseudo-element) or is this a typo?
9
- 511 | */
10
- 512 | /** @deprecated Use a semantic variant instead of success color */
11
- 513 | :global(.n8n-button--success) {
12
- | ^
13
- 514 | --button--color--background: var(--color--success);
14
- 515 | --button--color--background-hover: var(--color--success--shade-1);
15
- [lightningcss minify] 'global' is not recognized as a valid pseudo-class. Did you mean '::global' (pseudo-element) or is this a typo?
16
- 520 | --button--shadow--active: 0 0 0 1px var(--color--success--shade-1);
17
- 521 | }
18
- 522 | :global(.n8n-button--success):disabled, :global(.n8n-button--success)[aria-disabled=true] {
19
- | ^
20
- 523 | --button--color--background: var(--color--success--tint-3);
21
- 524 | --button--shadow: 0 0 0 1px var(--color--success--tint-3);
22
- [lightningcss minify] 'global' is not recognized as a valid pseudo-class. Did you mean '::global' (pseudo-element) or is this a typo?
23
- 520 | --button--shadow--active: 0 0 0 1px var(--color--success--shade-1);
24
- 521 | }
25
- 522 | :global(.n8n-button--success):disabled, :global(.n8n-button--success)[aria-disabled=true] {
26
- | ^
27
- 523 | --button--color--background: var(--color--success--tint-3);
28
- 524 | --button--shadow: 0 0 0 1px var(--color--success--tint-3);
29
- [lightningcss minify] 'global' is not recognized as a valid pseudo-class. Did you mean '::global' (pseudo-element) or is this a typo?
30
- 526 |
31
- 527 | /** @deprecated Use a semantic variant instead of warning color */
32
- 528 | :global(.n8n-button--warning) {
33
- | ^
34
- 529 | --button--color--background: var(--color--warning);
35
- 530 | --button--color--background-hover: var(--color--warning--shade-1);
36
- [lightningcss minify] 'global' is not recognized as a valid pseudo-class. Did you mean '::global' (pseudo-element) or is this a typo?
37
- 535 | --button--shadow--active: 0 0 0 1px var(--color--warning--shade-1);
38
- 536 | }
39
- 537 | :global(.n8n-button--warning):disabled, :global(.n8n-button--warning)[aria-disabled=true] {
40
- | ^
41
- 538 | --button--color--background: var(--color--warning--tint-1);
42
- 539 | --button--shadow: 0 0 0 1px var(--color--warning--tint-1);
43
- [lightningcss minify] 'global' is not recognized as a valid pseudo-class. Did you mean '::global' (pseudo-element) or is this a typo?
44
- 535 | --button--shadow--active: 0 0 0 1px var(--color--warning--shade-1);
45
- 536 | }
46
- 537 | :global(.n8n-button--warning):disabled, :global(.n8n-button--warning)[aria-disabled=true] {
47
- | ^
48
- 538 | --button--color--background: var(--color--warning--tint-1);
49
- 539 | --button--shadow: 0 0 0 1px var(--color--warning--tint-1);
50
- computing gzip size...
51
- dist/design-system.css 238.84 kB │ gzip: 32.73 kB
52
- dist/en-CddpS_8k.js 0.06 kB │ gzip: 0.08 kB
53
- dist/en-cusRXFgs.js 7.45 kB │ gzip: 2.38 kB
54
- dist/node-icons-VCyExEKH.js 50.40 kB │ gzip: 8.42 kB
55
- dist/compact-Q0gG5s1Q.js 660.36 kB │ gzip: 87.46 kB
56
- dist/n8n-design-system.es.js 2,445.01 kB │ gzip: 648.50 kB
57
-
58
- [PLUGIN_TIMINGS] Warning: Your build spent significant time in plugins. Here is a breakdown:
59
- - unplugin-icons (57%)
60
- - svg-loader (27%)
61
- - vite:vue (11%)
62
- See https://rolldown.rs/options/checks#plugintimings for more details.
63
- 
64
- 
65
- rendering chunks...
66
- [lightningcss minify] 'global' is not recognized as a valid pseudo-class. Did you mean '::global' (pseudo-element) or is this a typo?
67
- 511 | */
68
- 512 | /** @deprecated Use a semantic variant instead of success color */
69
- 513 | :global(.n8n-button--success) {
70
- | ^
71
- 514 | --button--color--background: var(--color--success);
72
- 515 | --button--color--background-hover: var(--color--success--shade-1);
73
- [lightningcss minify] 'global' is not recognized as a valid pseudo-class. Did you mean '::global' (pseudo-element) or is this a typo?
74
- 520 | --button--shadow--active: 0 0 0 1px var(--color--success--shade-1);
75
- 521 | }
76
- 522 | :global(.n8n-button--success):disabled, :global(.n8n-button--success)[aria-disabled=true] {
77
- | ^
78
- 523 | --button--color--background: var(--color--success--tint-3);
79
- 524 | --button--shadow: 0 0 0 1px var(--color--success--tint-3);
80
- [lightningcss minify] 'global' is not recognized as a valid pseudo-class. Did you mean '::global' (pseudo-element) or is this a typo?
81
- 520 | --button--shadow--active: 0 0 0 1px var(--color--success--shade-1);
82
- 521 | }
83
- 522 | :global(.n8n-button--success):disabled, :global(.n8n-button--success)[aria-disabled=true] {
84
- | ^
85
- 523 | --button--color--background: var(--color--success--tint-3);
86
- 524 | --button--shadow: 0 0 0 1px var(--color--success--tint-3);
87
- [lightningcss minify] 'global' is not recognized as a valid pseudo-class. Did you mean '::global' (pseudo-element) or is this a typo?
88
- 526 |
89
- 527 | /** @deprecated Use a semantic variant instead of warning color */
90
- 528 | :global(.n8n-button--warning) {
91
- | ^
92
- 529 | --button--color--background: var(--color--warning);
93
- 530 | --button--color--background-hover: var(--color--warning--shade-1);
94
- [lightningcss minify] 'global' is not recognized as a valid pseudo-class. Did you mean '::global' (pseudo-element) or is this a typo?
95
- 535 | --button--shadow--active: 0 0 0 1px var(--color--warning--shade-1);
96
- 536 | }
97
- 537 | :global(.n8n-button--warning):disabled, :global(.n8n-button--warning)[aria-disabled=true] {
98
- | ^
99
- 538 | --button--color--background: var(--color--warning--tint-1);
100
- 539 | --button--shadow: 0 0 0 1px var(--color--warning--tint-1);
101
- [lightningcss minify] 'global' is not recognized as a valid pseudo-class. Did you mean '::global' (pseudo-element) or is this a typo?
102
- 535 | --button--shadow--active: 0 0 0 1px var(--color--warning--shade-1);
103
- 536 | }
104
- 537 | :global(.n8n-button--warning):disabled, :global(.n8n-button--warning)[aria-disabled=true] {
105
- | ^
106
- 538 | --button--color--background: var(--color--warning--tint-1);
107
- 539 | --button--shadow: 0 0 0 1px var(--color--warning--tint-1);
108
- computing gzip size...
109
- dist/design-system.css 238.84 kB │ gzip: 32.73 kB
110
- dist/n8n-design-system.umd.js 2,680.16 kB │ gzip: 685.05 kB
111
-
112
- ✓ built in 7.17s