@n8n/design-system 1.70.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/.eslintrc.js +47 -0
- package/.turbo/turbo-build.log +17 -0
- package/LICENSE.md +88 -0
- package/README.md +51 -0
- package/biome.jsonc +7 -0
- package/chromatic.config.json +4 -0
- package/dist/.nojekyll +0 -0
- package/dist/assets/images/storybook-logo-dark.png +0 -0
- package/dist/assets/images/storybook-logo-light.png +0 -0
- package/dist/design-system.css +1 -0
- package/dist/n8n-design-system.es.js +32107 -0
- package/dist/n8n-design-system.umd.js +551 -0
- package/package.json +16 -0
- package/postcss.config.js +6 -0
- package/public/.nojekyll +0 -0
- package/public/assets/images/storybook-logo-dark.png +0 -0
- package/public/assets/images/storybook-logo-light.png +0 -0
- package/src/css/fonts/element-icons.ttf +0 -0
- package/src/css/fonts/element-icons.woff +0 -0
- package/src/css/tailwind/index.css +3 -0
- package/src/index.ts +8 -0
- package/tailwind.config.js +8 -0
- package/theme/preview/docs.min.css +2379 -0
- package/theme/preview/index.html +1334 -0
- package/tsconfig.json +21 -0
- package/vite.config.mts +60 -0
package/tsconfig.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "@n8n/typescript-config/tsconfig.frontend.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"baseUrl": ".",
|
|
5
|
+
"rootDirs": [".", "../composables/src"],
|
|
6
|
+
"outDir": "dist",
|
|
7
|
+
"types": ["vite/client", "vitest/globals"],
|
|
8
|
+
"typeRoots": [
|
|
9
|
+
"./node_modules/@testing-library",
|
|
10
|
+
"./node_modules/@types",
|
|
11
|
+
"../../../../node_modules",
|
|
12
|
+
"../../../../node_modules/@types"
|
|
13
|
+
],
|
|
14
|
+
"paths": {
|
|
15
|
+
"@n8n/design-system*": ["./src*"],
|
|
16
|
+
"@n8n/composables*": ["../composables/src*"],
|
|
17
|
+
"@n8n/utils*": ["../../../@n8n/utils/src*"]
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"include": ["src/**/*.ts", "src/**/*.vue"]
|
|
21
|
+
}
|
package/vite.config.mts
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import vue from '@vitejs/plugin-vue';
|
|
2
|
+
import { resolve } from 'path';
|
|
3
|
+
import { defineConfig, mergeConfig } from 'vite';
|
|
4
|
+
import components from 'unplugin-vue-components/vite';
|
|
5
|
+
import icons from 'unplugin-icons/vite';
|
|
6
|
+
import iconsResolver from 'unplugin-icons/resolver';
|
|
7
|
+
import { vitestConfig } from '@n8n/vitest-config/frontend';
|
|
8
|
+
|
|
9
|
+
const packagesDir = resolve(__dirname, '..', '..', '..');
|
|
10
|
+
|
|
11
|
+
export default mergeConfig(
|
|
12
|
+
defineConfig({
|
|
13
|
+
plugins: [
|
|
14
|
+
vue(),
|
|
15
|
+
icons({
|
|
16
|
+
compiler: 'vue3',
|
|
17
|
+
autoInstall: true,
|
|
18
|
+
}),
|
|
19
|
+
components({
|
|
20
|
+
dirs: [],
|
|
21
|
+
dts: false,
|
|
22
|
+
resolvers: [
|
|
23
|
+
iconsResolver({
|
|
24
|
+
prefix: 'icon',
|
|
25
|
+
}),
|
|
26
|
+
],
|
|
27
|
+
}),
|
|
28
|
+
],
|
|
29
|
+
resolve: {
|
|
30
|
+
alias: {
|
|
31
|
+
'@': resolve(__dirname, 'src'),
|
|
32
|
+
'@n8n/design-system': resolve(__dirname, 'src'),
|
|
33
|
+
'@n8n/composables(.*)': resolve(packagesDir, 'frontend', '@n8n', 'composables', 'src$1'),
|
|
34
|
+
'@n8n/utils(.*)': resolve(packagesDir, '@n8n', 'utils', 'src$1'),
|
|
35
|
+
lodash: 'lodash-es',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
build: {
|
|
39
|
+
lib: {
|
|
40
|
+
entry: resolve(__dirname, 'src', 'index.ts'),
|
|
41
|
+
name: 'N8nDesignSystem',
|
|
42
|
+
fileName: (format) => `n8n-design-system.${format}.js`,
|
|
43
|
+
},
|
|
44
|
+
rollupOptions: {
|
|
45
|
+
// make sure to externalize deps that shouldn't be bundled
|
|
46
|
+
// into your library
|
|
47
|
+
external: ['vue'],
|
|
48
|
+
output: {
|
|
49
|
+
exports: 'named',
|
|
50
|
+
// Provide global variables to use in the UMD build
|
|
51
|
+
// for externalized deps
|
|
52
|
+
globals: {
|
|
53
|
+
vue: 'Vue',
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
}),
|
|
59
|
+
vitestConfig,
|
|
60
|
+
);
|