@maz-ui/nuxt 5.0.0-beta.20 → 5.0.0-beta.22

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.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.0.0"
6
6
  },
7
- "version": "5.0.0-beta.20",
7
+ "version": "5.0.0-beta.22",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "unknown"
@@ -106,14 +106,14 @@ export default defineNuxtPlugin(async ({ vueApp, $config }) => {
106
106
  preset
107
107
  };
108
108
  const isDark = config.colorMode === "auto" && config.mode === "both" ? getInitialColorMode() === "dark" : config.colorMode === "dark" || config.mode === "dark";
109
- if (isDark && config.darkModeStrategy === "class") {
110
- useHead({
111
- htmlAttrs: {
112
- class: config.darkClass
113
- }
114
- });
115
- }
116
109
  if (import.meta.server) {
110
+ if (isDark && config.darkModeStrategy === "class") {
111
+ useHead({
112
+ htmlAttrs: {
113
+ class: config.darkClass
114
+ }
115
+ });
116
+ }
117
117
  injectThemeCSS(config);
118
118
  useHead({
119
119
  meta: [{
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@maz-ui/nuxt",
3
3
  "type": "module",
4
- "version": "5.0.0-beta.20",
4
+ "version": "5.0.0-beta.22",
5
5
  "description": "Nuxt module for Maz-UI",
6
6
  "author": "Louis Mazel <me@loicmazuel.com>",
7
7
  "license": "MIT",
@@ -51,10 +51,10 @@
51
51
  "@nuxt/devtools-kit": "^3.2.3",
52
52
  "@nuxt/kit": "^4.4.6",
53
53
  "defu": "^6.1.7",
54
+ "@maz-ui/themes": "5.0.0-beta.22",
54
55
  "@maz-ui/translations": "5.0.0-beta.18",
55
- "@maz-ui/themes": "5.0.0-beta.20",
56
- "@maz-ui/utils": "5.0.0-beta.18",
57
- "maz-ui": "5.0.0-beta.20"
56
+ "maz-ui": "5.0.0-beta.22",
57
+ "@maz-ui/utils": "5.0.0-beta.18"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@nuxt/devtools": "^3.2.3",