@nuxt-ignis/ui 0.0.11 → 0.0.13
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 +21 -21
- package/README.md +24 -24
- package/dist/module.d.mts +7 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +66 -52
- package/dist/runtime/plugin.d.ts +1 -1
- package/dist/runtime/server/tsconfig.json +3 -3
- package/dist/types.d.mts +1 -1
- package/package.json +17 -17
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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
+
import { NuxtOptions } from 'nuxt/schema';
|
|
2
3
|
|
|
3
4
|
interface IgnisUIOptions {
|
|
4
5
|
ui?: boolean;
|
|
@@ -6,6 +7,11 @@ interface IgnisUIOptions {
|
|
|
6
7
|
openprops?: boolean;
|
|
7
8
|
charts?: boolean;
|
|
8
9
|
}
|
|
10
|
+
type NuxtIgnisUIOptions = NuxtOptions & {
|
|
11
|
+
ignis: {
|
|
12
|
+
ui?: IgnisUIOptions;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
9
15
|
declare module 'nuxt/schema' {
|
|
10
16
|
interface IgnisPublicRuntimeConfig {
|
|
11
17
|
ui?: IgnisUIOptions;
|
|
@@ -14,4 +20,4 @@ declare module 'nuxt/schema' {
|
|
|
14
20
|
declare const _default: _nuxt_schema.NuxtModule<IgnisUIOptions, IgnisUIOptions, false>;
|
|
15
21
|
|
|
16
22
|
export { _default as default };
|
|
17
|
-
export type { IgnisUIOptions };
|
|
23
|
+
export type { IgnisUIOptions, NuxtIgnisUIOptions };
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,68 +1,82 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createResolver, defineNuxtModule, addPlugin } from '@nuxt/kit';
|
|
2
2
|
import { defu } from 'defu';
|
|
3
3
|
import OpenProps from 'open-props';
|
|
4
4
|
import tailwindcss from '@tailwindcss/vite';
|
|
5
5
|
import { ignisTailwindcssFix } from '../dist/runtime/tailwind.js';
|
|
6
6
|
|
|
7
|
+
function ignisModuleDependencies(nuxtOptions) {
|
|
8
|
+
console.debug("@nuxt-ignis/ui - module dependencies are being resolved");
|
|
9
|
+
const modules = {};
|
|
10
|
+
const options = nuxtOptions.ignis?.ui;
|
|
11
|
+
if (options?.ui === true) {
|
|
12
|
+
modules["@nuxt/ui"] = {};
|
|
13
|
+
console.debug("@nuxt/ui module installed");
|
|
14
|
+
}
|
|
15
|
+
if (options?.charts === true) {
|
|
16
|
+
modules["nuxt-charts"] = {};
|
|
17
|
+
console.debug("nuxt-charts module installed");
|
|
18
|
+
}
|
|
19
|
+
return modules;
|
|
20
|
+
}
|
|
21
|
+
function ignisModuleSetup(nuxtOptions) {
|
|
22
|
+
console.debug("@nuxt-ignis/ui - module setup function runs");
|
|
23
|
+
const options = nuxtOptions.ignis?.ui;
|
|
24
|
+
nuxtOptions.runtimeConfig ||= {
|
|
25
|
+
public: {}
|
|
26
|
+
};
|
|
27
|
+
const runtimeConfig = nuxtOptions.runtimeConfig.public;
|
|
28
|
+
runtimeConfig.ignis ??= {};
|
|
29
|
+
runtimeConfig.ignis.ui ??= {};
|
|
30
|
+
runtimeConfig.ignis.ui.ui ??= options?.ui ?? false;
|
|
31
|
+
runtimeConfig.ignis.ui.tailwind ??= options?.tailwind ?? false;
|
|
32
|
+
runtimeConfig.ignis.ui.openprops ??= options?.openprops ?? false;
|
|
33
|
+
runtimeConfig.ignis.ui.charts ??= options?.charts ?? false;
|
|
34
|
+
const effectiveOptions = runtimeConfig.ignis.ui;
|
|
35
|
+
const resolver = createResolver(import.meta.url);
|
|
36
|
+
let tailwindFixRequired = false;
|
|
37
|
+
if (effectiveOptions.ui === true) {
|
|
38
|
+
tailwindFixRequired = true;
|
|
39
|
+
nuxtOptions.css ||= [];
|
|
40
|
+
nuxtOptions.css.push(resolver.resolve("./runtime/css/ignis-nuxt-ui.css"));
|
|
41
|
+
console.debug("Nuxt UI CSS file included");
|
|
42
|
+
} else if (effectiveOptions.tailwind === true) {
|
|
43
|
+
tailwindFixRequired = true;
|
|
44
|
+
nuxtOptions.css ||= [];
|
|
45
|
+
nuxtOptions.css.push(resolver.resolve("./runtime/css/ignis-tailwind.css"));
|
|
46
|
+
nuxtOptions.vite = defu({
|
|
47
|
+
plugins: [tailwindcss()]
|
|
48
|
+
}, nuxtOptions.vite);
|
|
49
|
+
console.debug("Tailwind CSS file included");
|
|
50
|
+
}
|
|
51
|
+
if (tailwindFixRequired) {
|
|
52
|
+
nuxtOptions.vite = defu({
|
|
53
|
+
vite: {
|
|
54
|
+
plugins: [ignisTailwindcssFix]
|
|
55
|
+
}
|
|
56
|
+
}, nuxtOptions.vite);
|
|
57
|
+
}
|
|
58
|
+
if (options?.openprops === true) {
|
|
59
|
+
nuxtOptions.css ||= [];
|
|
60
|
+
nuxtOptions.css.push(resolver.resolve("./runtime/css/ignis-open-props.css"));
|
|
61
|
+
nuxtOptions.postcss = defu({
|
|
62
|
+
plugins: {
|
|
63
|
+
"postcss-jit-props": OpenProps
|
|
64
|
+
}
|
|
65
|
+
}, nuxtOptions.postcss);
|
|
66
|
+
console.debug("Open Props CSS enabled");
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
7
70
|
const module$1 = defineNuxtModule({
|
|
8
71
|
meta: {
|
|
9
72
|
name: "@nuxt-ignis/ui"
|
|
10
73
|
},
|
|
11
74
|
moduleDependencies(nuxt) {
|
|
12
|
-
|
|
13
|
-
const resolver = createResolver(import.meta.url);
|
|
14
|
-
const modules = {};
|
|
15
|
-
const nuxtOpts = nuxt.options;
|
|
16
|
-
const options = nuxtOpts.ignis?.ui;
|
|
17
|
-
let tailwindFixRequired = false;
|
|
18
|
-
if (options?.ui === true) {
|
|
19
|
-
tailwindFixRequired = true;
|
|
20
|
-
modules["@nuxt/ui"] = {};
|
|
21
|
-
nuxt.options.css.push(resolver.resolve("./runtime/css/ignis-nuxt-ui.css"));
|
|
22
|
-
console.debug("@nuxt/ui module installed");
|
|
23
|
-
} else {
|
|
24
|
-
if (options?.tailwind === true) {
|
|
25
|
-
tailwindFixRequired = true;
|
|
26
|
-
nuxt.options.css.push(resolver.resolve("./runtime/css/ignis-tailwind.css"));
|
|
27
|
-
nuxt.options.vite = defu({
|
|
28
|
-
plugins: [tailwindcss()]
|
|
29
|
-
}, nuxt.options.vite);
|
|
30
|
-
console.debug("Tailwind CSS enabled");
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
if (tailwindFixRequired) {
|
|
34
|
-
nuxt.options.vite = defu({
|
|
35
|
-
vite: {
|
|
36
|
-
plugins: [ignisTailwindcssFix]
|
|
37
|
-
}
|
|
38
|
-
}, nuxt.options.vite);
|
|
39
|
-
}
|
|
40
|
-
if (options?.openprops === true) {
|
|
41
|
-
nuxt.options.css.push(resolver.resolve("./runtime/css/ignis-open-props.css"));
|
|
42
|
-
nuxt.options.postcss = defu({
|
|
43
|
-
plugins: {
|
|
44
|
-
"postcss-jit-props": OpenProps
|
|
45
|
-
}
|
|
46
|
-
}, nuxt.options.postcss);
|
|
47
|
-
console.debug("Open Props CSS enabled");
|
|
48
|
-
}
|
|
49
|
-
if (options?.charts === true) {
|
|
50
|
-
modules["nuxt-charts"] = {};
|
|
51
|
-
console.debug("nuxt-charts module installed");
|
|
52
|
-
}
|
|
53
|
-
return modules;
|
|
75
|
+
return ignisModuleDependencies(nuxt.options);
|
|
54
76
|
},
|
|
55
77
|
setup(_options, nuxt) {
|
|
78
|
+
ignisModuleSetup(nuxt.options);
|
|
56
79
|
const resolver = createResolver(import.meta.url);
|
|
57
|
-
const nuxtOpts = nuxt.options;
|
|
58
|
-
const options = nuxtOpts.ignis?.ui;
|
|
59
|
-
const runtimeConfig = nuxt.options.runtimeConfig.public;
|
|
60
|
-
runtimeConfig.ignis ??= {};
|
|
61
|
-
runtimeConfig.ignis.ui ??= {};
|
|
62
|
-
runtimeConfig.ignis.ui.ui ??= options?.ui ?? false;
|
|
63
|
-
runtimeConfig.ignis.ui.tailwind ??= options?.tailwind ?? false;
|
|
64
|
-
runtimeConfig.ignis.ui.openprops ??= options?.openprops ?? false;
|
|
65
|
-
runtimeConfig.ignis.ui.charts ??= options?.charts ?? false;
|
|
66
80
|
addPlugin(resolver.resolve("./runtime/plugin"));
|
|
67
81
|
}
|
|
68
82
|
});
|
package/dist/runtime/plugin.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: any;
|
|
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/dist/types.d.mts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt-ignis/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"description": "Nuxt Ignis module - UI features",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -32,29 +32,29 @@
|
|
|
32
32
|
"playground"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@nuxt/kit": "4.
|
|
36
|
-
"@tailwindcss/vite": "4.
|
|
37
|
-
"defu": "
|
|
38
|
-
"nuxt-charts": "2.1.
|
|
35
|
+
"@nuxt/kit": "4.4.2",
|
|
36
|
+
"@tailwindcss/vite": "4.2.2",
|
|
37
|
+
"defu": "6.1.7",
|
|
38
|
+
"nuxt-charts": "2.1.4",
|
|
39
39
|
"open-props": "1.7.23",
|
|
40
40
|
"postcss-jit-props": "1.0.16"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@nuxt/devtools": "^
|
|
44
|
-
"@nuxt/eslint-config": "
|
|
43
|
+
"@nuxt/devtools": "^4.0.0-alpha.4",
|
|
44
|
+
"@nuxt/eslint-config": "1.15.2",
|
|
45
45
|
"@nuxt/module-builder": "^1.0.2",
|
|
46
|
-
"@nuxt/schema": "4.
|
|
47
|
-
"@nuxt/test-utils": "^4.0.
|
|
48
|
-
"@nuxt/ui": "4.
|
|
46
|
+
"@nuxt/schema": "4.4.2",
|
|
47
|
+
"@nuxt/test-utils": "^4.0.2",
|
|
48
|
+
"@nuxt/ui": "4.6.1",
|
|
49
49
|
"@nuxtjs/tailwindcss": "6.14.0",
|
|
50
|
-
"@types/node": "^25.
|
|
50
|
+
"@types/node": "^25.6.0",
|
|
51
51
|
"changelogen": "^0.6.2",
|
|
52
|
-
"eslint": "^9.39.
|
|
53
|
-
"nuxt": "4.
|
|
54
|
-
"tailwindcss": "4.
|
|
55
|
-
"typescript": "
|
|
56
|
-
"vitest": "^4.
|
|
57
|
-
"vue-tsc": "^3.2.
|
|
52
|
+
"eslint": "^9.39.4",
|
|
53
|
+
"nuxt": "4.4.2",
|
|
54
|
+
"tailwindcss": "4.2.2",
|
|
55
|
+
"typescript": "5.9.3",
|
|
56
|
+
"vitest": "^4.1.4",
|
|
57
|
+
"vue-tsc": "^3.2.6"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"dev": "pnpm run dev:prepare && nuxt dev playground",
|