@sit-onyx/nuxt 1.0.0-alpha.3 → 1.0.0-alpha.31
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/README.md +2 -2
- package/dist/module.d.mts +10 -0
- package/dist/module.d.ts +10 -0
- package/dist/module.json +2 -2
- package/dist/module.mjs +4 -1
- package/dist/types.d.mts +1 -16
- package/dist/types.d.ts +1 -16
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
|
|
11
11
|
# @sit-onyx/nuxt
|
|
12
12
|
|
|
13
|
-
A Nuxt module to easily integrate onyx into [Nuxt
|
|
13
|
+
A Nuxt module to easily integrate onyx into [Nuxt](https://nuxt.com/) projects.
|
|
14
14
|
Created by [Schwarz IT](https://it.schwarz).
|
|
15
15
|
|
|
16
|
-
## Adding it to a
|
|
16
|
+
## Adding it to a Nuxt project
|
|
17
17
|
|
|
18
18
|
Install the module in your Nuxt application with one command:
|
|
19
19
|
|
package/dist/module.d.mts
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
2
|
|
|
3
3
|
interface ModuleOptions {
|
|
4
|
+
/**
|
|
5
|
+
* By default, the global onyx styles (`global.css` file) will be included
|
|
6
|
+
* which applies some global styles like background color and font styles.
|
|
7
|
+
* This is recommended when building a whole application with onyx.
|
|
8
|
+
*
|
|
9
|
+
* You can set this option to `true` to disable this.
|
|
10
|
+
*
|
|
11
|
+
* @see https://onyx.schwarz/development/#installation
|
|
12
|
+
*/
|
|
13
|
+
disableGlobalStyles?: boolean;
|
|
4
14
|
}
|
|
5
15
|
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
|
6
16
|
|
package/dist/module.d.ts
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
2
|
|
|
3
3
|
interface ModuleOptions {
|
|
4
|
+
/**
|
|
5
|
+
* By default, the global onyx styles (`global.css` file) will be included
|
|
6
|
+
* which applies some global styles like background color and font styles.
|
|
7
|
+
* This is recommended when building a whole application with onyx.
|
|
8
|
+
*
|
|
9
|
+
* You can set this option to `true` to disable this.
|
|
10
|
+
*
|
|
11
|
+
* @see https://onyx.schwarz/development/#installation
|
|
12
|
+
*/
|
|
13
|
+
disableGlobalStyles?: boolean;
|
|
4
14
|
}
|
|
5
15
|
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
|
6
16
|
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -7,9 +7,12 @@ const module = defineNuxtModule({
|
|
|
7
7
|
configKey: "onyx"
|
|
8
8
|
},
|
|
9
9
|
defaults: {},
|
|
10
|
-
setup(
|
|
10
|
+
setup(options, nuxt) {
|
|
11
11
|
nuxt.options.postcss.plugins.cssnano = { preset: ["default", { calc: false }] };
|
|
12
12
|
nuxt.options.css.push("sit-onyx/style.css");
|
|
13
|
+
if (!options.disableGlobalStyles) {
|
|
14
|
+
nuxt.options.css.push("sit-onyx/global.css");
|
|
15
|
+
}
|
|
13
16
|
Object.keys(onyx).filter((namedExport) => namedExport.startsWith("Onyx")).forEach((component) => {
|
|
14
17
|
addComponent({
|
|
15
18
|
filePath: "sit-onyx",
|
package/dist/types.d.mts
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { ModuleOptions } from './module.js'
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare module '@nuxt/schema' {
|
|
6
|
-
interface NuxtConfig { ['onyx']?: Partial<ModuleOptions> }
|
|
7
|
-
interface NuxtOptions { ['onyx']?: ModuleOptions }
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
declare module 'nuxt/schema' {
|
|
11
|
-
interface NuxtConfig { ['onyx']?: Partial<ModuleOptions> }
|
|
12
|
-
interface NuxtOptions { ['onyx']?: ModuleOptions }
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export type { ModuleOptions, default } from './module.js'
|
|
1
|
+
export { type ModuleOptions, default } from './module.js'
|
package/dist/types.d.ts
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { ModuleOptions } from './module'
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare module '@nuxt/schema' {
|
|
6
|
-
interface NuxtConfig { ['onyx']?: Partial<ModuleOptions> }
|
|
7
|
-
interface NuxtOptions { ['onyx']?: ModuleOptions }
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
declare module 'nuxt/schema' {
|
|
11
|
-
interface NuxtConfig { ['onyx']?: Partial<ModuleOptions> }
|
|
12
|
-
interface NuxtOptions { ['onyx']?: ModuleOptions }
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export type { ModuleOptions, default } from './module'
|
|
1
|
+
export { type ModuleOptions, default } from './module'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sit-onyx/nuxt",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.31",
|
|
4
4
|
"description": "A Nuxt module to easily integrate onyx into Nuxt projects",
|
|
5
5
|
"author": "Schwarz IT KG",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -26,17 +26,17 @@
|
|
|
26
26
|
"dist"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@nuxt/kit": "^3.
|
|
29
|
+
"@nuxt/kit": "^3.12.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@nuxt/devtools": "^1.3.
|
|
33
|
-
"@nuxt/module-builder": "~0.
|
|
34
|
-
"@nuxt/schema": "^3.
|
|
32
|
+
"@nuxt/devtools": "^1.3.6",
|
|
33
|
+
"@nuxt/module-builder": "~0.8.0",
|
|
34
|
+
"@nuxt/schema": "^3.12.2",
|
|
35
35
|
"@nuxt/test-utils": "^3.13.1",
|
|
36
|
-
"nuxt": "^3.
|
|
36
|
+
"nuxt": "^3.12.2"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"sit-onyx": "^1.0.0-alpha.
|
|
39
|
+
"sit-onyx": "^1.0.0-alpha.151"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"dev": "nuxi dev playground",
|