@sit-onyx/nuxt 1.0.0-alpha.6 → 1.0.0-alpha.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 +10 -0
- package/dist/module.d.ts +10 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +4 -1
- package/package.json +2 -2
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/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.8",
|
|
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",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"nuxt": "^3.12.1"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"sit-onyx": "^1.0.0-alpha.
|
|
39
|
+
"sit-onyx": "^1.0.0-alpha.128"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"dev": "nuxi dev playground",
|