@nuxt-ignis/ui 0.0.7 → 0.0.8
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/module.d.mts +1 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +9 -12
- package/dist/runtime/css/ignis-nuxt-ui.css +1 -0
- package/dist/runtime/css/ignis-open-props.css +1 -0
- package/dist/runtime/css/ignis-tailwind.css +1 -0
- package/dist/runtime/css/ignis.css +1 -0
- package/package.json +1 -1
package/dist/module.d.mts
CHANGED
|
@@ -5,8 +5,7 @@ interface IgnisUIOptions {
|
|
|
5
5
|
tailwind?: boolean;
|
|
6
6
|
openprops?: boolean;
|
|
7
7
|
charts?: boolean;
|
|
8
|
-
|
|
9
|
-
cssDir?: string;
|
|
8
|
+
css?: boolean;
|
|
10
9
|
}
|
|
11
10
|
declare module 'nuxt/schema' {
|
|
12
11
|
interface IgnisPublicRuntimeConfig {
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { defineNuxtModule, createResolver, addPlugin } from '@nuxt/kit';
|
|
2
|
-
import { join } from 'node:path';
|
|
3
2
|
import { defu } from 'defu';
|
|
4
3
|
import OpenProps from 'open-props';
|
|
5
4
|
import tailwindcss from '@tailwindcss/vite';
|
|
@@ -11,24 +10,20 @@ const module$1 = defineNuxtModule({
|
|
|
11
10
|
},
|
|
12
11
|
moduleDependencies(nuxt) {
|
|
13
12
|
console.debug("@nuxt-ignis/ui - module dependencies are being resolved");
|
|
13
|
+
const resolver = createResolver(import.meta.url);
|
|
14
14
|
const modules = {};
|
|
15
15
|
const nuxtOpts = nuxt.options;
|
|
16
16
|
const options = nuxtOpts.ignis?.ui;
|
|
17
|
-
const cssDir = options?.cssDir || "";
|
|
18
17
|
let tailwindFixRequired = false;
|
|
19
18
|
if (options?.ui === true) {
|
|
20
19
|
tailwindFixRequired = true;
|
|
21
20
|
modules["@nuxt/ui"] = {};
|
|
22
|
-
|
|
23
|
-
nuxt.options.css.push(join(cssDir, "ignis-nuxt-ui.css"));
|
|
24
|
-
}
|
|
21
|
+
nuxt.options.css.push(resolver.resolve("./runtime/css/ignis-nuxt-ui.css"));
|
|
25
22
|
console.debug("@nuxt/ui module installed");
|
|
26
23
|
} else {
|
|
27
24
|
if (options?.tailwind === true) {
|
|
28
25
|
tailwindFixRequired = true;
|
|
29
|
-
|
|
30
|
-
nuxt.options.css.push(join(cssDir, "ignis-tailwind.css"));
|
|
31
|
-
}
|
|
26
|
+
nuxt.options.css.push(resolver.resolve("./runtime/css/ignis-tailwind.css"));
|
|
32
27
|
nuxt.options.vite = defu({
|
|
33
28
|
plugins: [tailwindcss()]
|
|
34
29
|
}, nuxt.options.vite);
|
|
@@ -43,9 +38,7 @@ const module$1 = defineNuxtModule({
|
|
|
43
38
|
}, nuxt.options.vite);
|
|
44
39
|
}
|
|
45
40
|
if (options?.openprops === true) {
|
|
46
|
-
|
|
47
|
-
nuxt.options.css.push(join(cssDir, "ignis-open-props.css"));
|
|
48
|
-
}
|
|
41
|
+
nuxt.options.css.push(resolver.resolve("./runtime/css/ignis-open-props.css"));
|
|
49
42
|
nuxt.options.postcss = defu({
|
|
50
43
|
plugins: {
|
|
51
44
|
"postcss-jit-props": OpenProps
|
|
@@ -68,8 +61,12 @@ const module$1 = defineNuxtModule({
|
|
|
68
61
|
ui: options?.ui || false,
|
|
69
62
|
tailwind: options?.tailwind || false,
|
|
70
63
|
openprops: options?.openprops || false,
|
|
71
|
-
charts: options?.charts || false
|
|
64
|
+
charts: options?.charts || false,
|
|
65
|
+
css: options?.css ?? true
|
|
72
66
|
};
|
|
67
|
+
if (options?.css) {
|
|
68
|
+
nuxt.options.css.push(resolver.resolve("./runtime/css/ignis.css"));
|
|
69
|
+
}
|
|
73
70
|
addPlugin(resolver.resolve("./runtime/plugin"));
|
|
74
71
|
}
|
|
75
72
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "tailwindcss";@import "@nuxt/ui";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "open-props/style";.openprops-feature{background:var(--gradient-18)!important;color:var(--gray-10)!important}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
html{box-sizing:border-box;color:#333;font-size:1.2em;line-height:1.4;margin:auto;max-width:80ch}*{box-sizing:inherit}h1,h2,h3,h4,h5,h6{font-family:sans-serif}img{height:auto;max-width:100%}a:link{text-decoration:none}a:hover{text-decoration:underline}
|