@sit-onyx/nuxt 1.0.0-beta.1 → 1.0.0-beta.2
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 +6 -0
- package/dist/module.d.ts +6 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +6 -1
- package/package.json +1 -1
package/dist/module.d.mts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
+
import { OnyxTheme } from 'sit-onyx';
|
|
2
3
|
|
|
3
4
|
interface ModuleOptions {
|
|
5
|
+
/**
|
|
6
|
+
* The onyx theme to use. See: [https://onyx.schwarz/development/theming.html](https://onyx.schwarz/development/theming.html)
|
|
7
|
+
* @default "onyx"
|
|
8
|
+
*/
|
|
9
|
+
theme: OnyxTheme;
|
|
4
10
|
/**
|
|
5
11
|
* By default, the global onyx styles (`global.css` file) will be included
|
|
6
12
|
* which applies some global styles like background color and font styles.
|
package/dist/module.d.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
+
import { OnyxTheme } from 'sit-onyx';
|
|
2
3
|
|
|
3
4
|
interface ModuleOptions {
|
|
5
|
+
/**
|
|
6
|
+
* The onyx theme to use. See: [https://onyx.schwarz/development/theming.html](https://onyx.schwarz/development/theming.html)
|
|
7
|
+
* @default "onyx"
|
|
8
|
+
*/
|
|
9
|
+
theme: OnyxTheme;
|
|
4
10
|
/**
|
|
5
11
|
* By default, the global onyx styles (`global.css` file) will be included
|
|
6
12
|
* which applies some global styles like background color and font styles.
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -6,12 +6,17 @@ const module = defineNuxtModule({
|
|
|
6
6
|
name: "@sit-onyx/nuxt",
|
|
7
7
|
configKey: "onyx"
|
|
8
8
|
},
|
|
9
|
-
defaults: {
|
|
9
|
+
defaults: {
|
|
10
|
+
theme: "onyx"
|
|
11
|
+
},
|
|
10
12
|
setup(options, nuxt) {
|
|
11
13
|
const logger = useLogger("@sit-onyx/nuxt");
|
|
12
14
|
const { resolve } = createResolver(import.meta.url);
|
|
13
15
|
nuxt.options.postcss.plugins.cssnano = { preset: ["default", { calc: false }] };
|
|
14
16
|
nuxt.options.css.push("sit-onyx/style.css");
|
|
17
|
+
if (options.theme !== "onyx") {
|
|
18
|
+
nuxt.options.css.push(`sit-onyx/themes/${options.theme}.css`);
|
|
19
|
+
}
|
|
15
20
|
if (!options.disableGlobalStyles) {
|
|
16
21
|
nuxt.options.css.push("sit-onyx/global.css");
|
|
17
22
|
}
|