@nuxt-ignis/ui 0.0.1 → 0.0.3
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 +11 -3
- package/dist/module.json +2 -2
- package/dist/module.mjs +25 -26
- package/dist/runtime/server/tsconfig.json +3 -3
- package/dist/types.d.mts +7 -1
- package/package.json +2 -2
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,6 +1,7 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
2
|
|
|
3
|
-
interface
|
|
3
|
+
interface IgnisUIOptions {
|
|
4
|
+
active?: boolean;
|
|
4
5
|
ui?: boolean;
|
|
5
6
|
tailwind?: boolean;
|
|
6
7
|
openprops?: boolean;
|
|
@@ -8,7 +9,14 @@ interface ModuleOptions {
|
|
|
8
9
|
/** Absolute path to the CSS directory (provided by the core layer) */
|
|
9
10
|
cssDir?: string;
|
|
10
11
|
}
|
|
11
|
-
declare
|
|
12
|
+
declare module 'nuxt/schema' {
|
|
13
|
+
interface PublicRuntimeConfig {
|
|
14
|
+
ignis?: {
|
|
15
|
+
ui?: IgnisUIOptions;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
declare const _default: _nuxt_schema.NuxtModule<IgnisUIOptions, IgnisUIOptions, false>;
|
|
12
20
|
|
|
13
21
|
export { _default as default };
|
|
14
|
-
export type {
|
|
22
|
+
export type { IgnisUIOptions };
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineNuxtModule, createResolver,
|
|
1
|
+
import { defineNuxtModule, createResolver, addPlugin } from '@nuxt/kit';
|
|
2
2
|
import { join } from 'node:path';
|
|
3
3
|
import { defu } from 'defu';
|
|
4
4
|
import OpenProps from 'open-props';
|
|
@@ -8,36 +8,24 @@ import { ignisTailwindcssFix } from '../dist/runtime/tailwind.js';
|
|
|
8
8
|
const module$1 = defineNuxtModule({
|
|
9
9
|
meta: {
|
|
10
10
|
name: "@nuxt-ignis/ui",
|
|
11
|
-
configKey: "
|
|
11
|
+
configKey: "ignis"
|
|
12
12
|
},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
charts: false
|
|
20
|
-
};
|
|
21
|
-
nuxt.options.runtimeConfig.public.ignis.ui = options.ui || false;
|
|
22
|
-
nuxt.options.runtimeConfig.public.ignis.tailwind = options.tailwind || false;
|
|
23
|
-
nuxt.options.runtimeConfig.public.ignis.openprops = options.openprops || false;
|
|
24
|
-
nuxt.options.runtimeConfig.public.ignis.charts = options.charts || false;
|
|
25
|
-
const cssDir = options.cssDir || "";
|
|
13
|
+
moduleDependencies(nuxt) {
|
|
14
|
+
console.debug("@nuxt-ignis/ui - module dependencies are being resolved");
|
|
15
|
+
const modules = {};
|
|
16
|
+
const nuxtOpts = nuxt.options;
|
|
17
|
+
const options = nuxtOpts.ignis?.ui;
|
|
18
|
+
const cssDir = options?.cssDir || "";
|
|
26
19
|
let tailwindFixRequired = false;
|
|
27
|
-
if (options
|
|
20
|
+
if (options?.ui === true) {
|
|
28
21
|
tailwindFixRequired = true;
|
|
29
|
-
|
|
22
|
+
modules["@nuxt/ui"] = {};
|
|
30
23
|
if (cssDir) {
|
|
31
24
|
nuxt.options.css.push(join(cssDir, "ignis-nuxt-ui.css"));
|
|
32
25
|
}
|
|
33
26
|
console.debug("@nuxt/ui module installed");
|
|
34
27
|
} else {
|
|
35
|
-
|
|
36
|
-
compilerOptions: {
|
|
37
|
-
isCustomElement: (tag) => tag === "Icon" || tag === "UApp"
|
|
38
|
-
}
|
|
39
|
-
}, nuxt.options.vue);
|
|
40
|
-
if (options.tailwind === true) {
|
|
28
|
+
if (options?.tailwind === true) {
|
|
41
29
|
tailwindFixRequired = true;
|
|
42
30
|
if (cssDir) {
|
|
43
31
|
nuxt.options.css.push(join(cssDir, "ignis-tailwind.css"));
|
|
@@ -55,7 +43,7 @@ const module$1 = defineNuxtModule({
|
|
|
55
43
|
}
|
|
56
44
|
}, nuxt.options.vite);
|
|
57
45
|
}
|
|
58
|
-
if (options
|
|
46
|
+
if (options?.openprops === true) {
|
|
59
47
|
if (cssDir) {
|
|
60
48
|
nuxt.options.css.push(join(cssDir, "ignis-open-props.css"));
|
|
61
49
|
}
|
|
@@ -66,10 +54,21 @@ const module$1 = defineNuxtModule({
|
|
|
66
54
|
}, nuxt.options.postcss);
|
|
67
55
|
console.debug("Open Props CSS enabled");
|
|
68
56
|
}
|
|
69
|
-
if (options
|
|
70
|
-
|
|
57
|
+
if (options?.charts === true) {
|
|
58
|
+
modules["nuxt-charts"] = {};
|
|
71
59
|
console.debug("nuxt-charts module installed");
|
|
72
60
|
}
|
|
61
|
+
return modules;
|
|
62
|
+
},
|
|
63
|
+
setup(options, nuxt) {
|
|
64
|
+
const resolver = createResolver(import.meta.url);
|
|
65
|
+
nuxt.options.runtimeConfig.public.ignis ||= {};
|
|
66
|
+
nuxt.options.runtimeConfig.public.ignis.ui ||= {
|
|
67
|
+
ui: options.ui || false,
|
|
68
|
+
tailwind: options.tailwind || false,
|
|
69
|
+
openprops: options.openprops || false,
|
|
70
|
+
charts: options.charts || false
|
|
71
|
+
};
|
|
73
72
|
addPlugin(resolver.resolve("./runtime/plugin"));
|
|
74
73
|
}
|
|
75
74
|
});
|
|
@@ -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
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import type { NuxtModule } from '@nuxt/schema'
|
|
2
|
+
|
|
3
|
+
import type { default as Module } from './module.mjs'
|
|
4
|
+
|
|
5
|
+
export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
|
|
6
|
+
|
|
1
7
|
export { default } from './module.mjs'
|
|
2
8
|
|
|
3
|
-
export { type
|
|
9
|
+
export { type IgnisUIOptions } from './module.mjs'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt-ignis/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Nuxt Ignis module - UI features",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@nuxt/devtools": "^3.1.1",
|
|
44
|
-
"@nuxt/eslint-config": "^1.
|
|
44
|
+
"@nuxt/eslint-config": "^1.15.1",
|
|
45
45
|
"@nuxt/module-builder": "^1.0.2",
|
|
46
46
|
"@nuxt/schema": "4.3.1",
|
|
47
47
|
"@nuxt/test-utils": "^4.0.0",
|