@nuxt-ignis/ui 0.0.7 → 0.0.9

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2023-2025 Alois Sečkár
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2023-2025 Alois Sečkár
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,24 +1,24 @@
1
- # @nuxt-ignis/ui
2
-
3
- [![npm version][npm-version-src]][npm-version-href]
4
- [![npm downloads][npm-downloads-src]][npm-downloads-href]
5
- [![License][license-src]][license-href]
6
- [![Nuxt][nuxt-src]][nuxt-href]
7
-
8
- Service module providing UI features for Nuxt Ignis
9
-
10
- See https://nuxt-ignis.com/
11
-
12
-
13
- <!-- Badges -->
14
- [npm-version-src]: https://img.shields.io/npm/v/@nuxt-ignis/ui/latest.svg?style=flat&colorA=020420&colorB=00DC82
15
- [npm-version-href]: https://npmjs.com/package/@nuxt-ignis/ui
16
-
17
- [npm-downloads-src]: https://img.shields.io/npm/dm/@nuxt-ignis/ui.svg?style=flat&colorA=020420&colorB=00DC82
18
- [npm-downloads-href]: https://npm.chart.dev/@nuxt-ignis/ui
19
-
20
- [license-src]: https://img.shields.io/npm/l/@nuxt-ignis/ui.svg?style=flat&colorA=020420&colorB=00DC82
21
- [license-href]: https://npmjs.com/package/@nuxt-ignis/ui
22
-
23
- [nuxt-src]: https://img.shields.io/badge/Nuxt-020420?logo=nuxt
24
- [nuxt-href]: https://nuxt.com
1
+ # @nuxt-ignis/ui
2
+
3
+ [![npm version][npm-version-src]][npm-version-href]
4
+ [![npm downloads][npm-downloads-src]][npm-downloads-href]
5
+ [![License][license-src]][license-href]
6
+ [![Nuxt][nuxt-src]][nuxt-href]
7
+
8
+ Service module providing UI features for Nuxt Ignis
9
+
10
+ See https://nuxt-ignis.com/
11
+
12
+
13
+ <!-- Badges -->
14
+ [npm-version-src]: https://img.shields.io/npm/v/@nuxt-ignis/ui/latest.svg?style=flat&colorA=020420&colorB=00DC82
15
+ [npm-version-href]: https://npmjs.com/package/@nuxt-ignis/ui
16
+
17
+ [npm-downloads-src]: https://img.shields.io/npm/dm/@nuxt-ignis/ui.svg?style=flat&colorA=020420&colorB=00DC82
18
+ [npm-downloads-href]: https://npm.chart.dev/@nuxt-ignis/ui
19
+
20
+ [license-src]: https://img.shields.io/npm/l/@nuxt-ignis/ui.svg?style=flat&colorA=020420&colorB=00DC82
21
+ [license-href]: https://npmjs.com/package/@nuxt-ignis/ui
22
+
23
+ [nuxt-src]: https://img.shields.io/badge/Nuxt-020420?logo=nuxt
24
+ [nuxt-href]: https://nuxt.com
package/dist/module.d.mts CHANGED
@@ -5,8 +5,6 @@ interface IgnisUIOptions {
5
5
  tailwind?: boolean;
6
6
  openprops?: boolean;
7
7
  charts?: boolean;
8
- /** Absolute path to the CSS directory (provided by the core layer) */
9
- cssDir?: string;
10
8
  }
11
9
  declare module 'nuxt/schema' {
12
10
  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.7",
4
+ "version": "0.0.9",
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
@@ -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";
@@ -1,2 +1,2 @@
1
- declare const _default: any;
1
+ declare const _default: import("#app").Plugin<Record<string, unknown>> & import("#app").ObjectPlugin<Record<string, unknown>>;
2
2
  export default _default;
@@ -1,3 +1,3 @@
1
- {
2
- "extends": "../../../.nuxt/tsconfig.server.json",
3
- }
1
+ {
2
+ "extends": "../../../.nuxt/tsconfig.server.json",
3
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt-ignis/ui",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "Nuxt Ignis module - UI features",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -57,10 +57,10 @@
57
57
  "vue-tsc": "^3.2.4"
58
58
  },
59
59
  "scripts": {
60
- "dev": "npm run dev:prepare && nuxt dev playground",
60
+ "dev": "pnpm run dev:prepare && nuxt dev playground",
61
61
  "dev:build": "nuxt build playground",
62
62
  "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt prepare playground",
63
- "release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
63
+ "release": "pnpm run lint && pnpm run test && pnpm run prepack && changelogen --release && pnpm publish && git push --follow-tags",
64
64
  "lint": "eslint .",
65
65
  "test": "vitest run",
66
66
  "test:watch": "vitest watch",