@nuxt-ignis/ui 0.0.6 → 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 CHANGED
@@ -1,13 +1,11 @@
1
1
  import * as _nuxt_schema from '@nuxt/schema';
2
2
 
3
3
  interface IgnisUIOptions {
4
- active?: boolean;
5
4
  ui?: boolean;
6
5
  tailwind?: boolean;
7
6
  openprops?: boolean;
8
7
  charts?: boolean;
9
- /** Absolute path to the CSS directory (provided by the core layer) */
10
- cssDir?: string;
8
+ css?: boolean;
11
9
  }
12
10
  declare module 'nuxt/schema' {
13
11
  interface IgnisPublicRuntimeConfig {
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt-ignis/ui",
3
3
  "configKey": "@nuxt-ignis/ui",
4
- "version": "0.0.6",
4
+ "version": "0.0.8",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
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
- if (cssDir) {
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
- if (cssDir) {
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
- if (cssDir) {
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}
@@ -1,2 +1,2 @@
1
- declare const _default: import("#app").Plugin<Record<string, unknown>> & import("#app").ObjectPlugin<Record<string, unknown>>;
1
+ declare const _default: any;
2
2
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt-ignis/ui",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "description": "Nuxt Ignis module - UI features",
5
5
  "publishConfig": {
6
6
  "access": "public"