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

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 CHANGED
@@ -264,7 +264,7 @@ This module is built specifically for Nuxt with perfect SSR and SSG support:
264
264
 
265
265
  ## Learn More
266
266
 
267
- - **[Full Documentation](https://maz-ui.com/guide/nuxt)**
267
+ - **[Full Documentation](https://maz-ui.com/ecosystem/nuxt)**
268
268
  - **[Report Issues](https://github.com/LouisMazel/maz-ui/issues)**
269
269
  - **[Discussions](https://github.com/LouisMazel/maz-ui/discussions)**
270
270
 
package/dist/module.json CHANGED
@@ -4,9 +4,9 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.0.0"
6
6
  },
7
- "version": "5.0.0-beta.2",
7
+ "version": "5.0.0-beta.20",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
- "unbuild": "3.6.1"
10
+ "unbuild": "unknown"
11
11
  }
12
12
  }
package/dist/module.mjs CHANGED
@@ -25,6 +25,7 @@ const COMPONENT_NAMES = {
25
25
  MazChecklist: true,
26
26
  MazContainer: true,
27
27
  MazCircularProgressBar: true,
28
+ MazCodeHighlight: true,
28
29
  MazDialog: true,
29
30
  MazDialogConfirm: true,
30
31
  MazDrawer: true,
@@ -57,6 +58,17 @@ const COMPONENT_NAMES = {
57
58
  MazSpinner: true,
58
59
  MazStepper: true,
59
60
  MazSwitch: true,
61
+ MazSidebar: true,
62
+ MazSidebarMenu: true,
63
+ MazSidebarMenuItem: true,
64
+ MazSidebarMenuSub: true,
65
+ MazSidebarFooter: true,
66
+ MazSidebarHeader: true,
67
+ MazSidebarContent: true,
68
+ MazSidebarGroup: true,
69
+ MazSidebarMenuButton: true,
70
+ MazSidebarSeparator: true,
71
+ MazSidebarTrigger: true,
60
72
  MazTable: true,
61
73
  MazTableCell: true,
62
74
  MazTableRow: true,
@@ -69,6 +81,7 @@ const COMPONENT_NAMES = {
69
81
  MazTimeline: true,
70
82
  MazTextarea: true,
71
83
  MazUiProvider: true,
84
+ MazWindowMockup: true,
72
85
  MazPopover: true
73
86
  };
74
87
  const _dirname = dirname(fileURLToPath(import.meta.url));
@@ -93,7 +106,8 @@ const mazUiComposables = {
93
106
  useInstanceUniqId: true,
94
107
  useMountComponent: true,
95
108
  useSwipe: true,
96
- useMutationObserver: true
109
+ useMutationObserver: true,
110
+ useSidebar: true
97
111
  };
98
112
  const defaults = {
99
113
  general: {
@@ -1,5 +1,5 @@
1
1
  import { MazUiTheme } from "@maz-ui/themes/plugin";
2
- import { CSS_ID, generateCSS, getPreset, mergePresets } from "@maz-ui/themes/utils";
2
+ import { CSS_ID, generateCSS, getPreset, mergePresets, resolveColorSchemeContent } from "@maz-ui/themes/utils";
3
3
  import { getSystemColorMode } from "@maz-ui/themes/utils/get-color-mode";
4
4
  import { defineNuxtPlugin, useCookie, useHead, useRequestHeaders } from "nuxt/app";
5
5
  function getSavedColorMode() {
@@ -50,7 +50,8 @@ function injectThemeCSS(config) {
50
50
  mode: config.mode,
51
51
  darkSelectorStrategy: config.darkModeStrategy,
52
52
  prefix: "maz",
53
- darkClass: config.darkClass
53
+ darkClass: config.darkClass,
54
+ lightClass: config.lightClass
54
55
  });
55
56
  useHead({
56
57
  style: [{
@@ -95,6 +96,7 @@ export default defineNuxtPlugin(async ({ vueApp, $config }) => {
95
96
  const config = {
96
97
  strategy: "runtime",
97
98
  darkClass: "dark",
99
+ lightClass: "light",
98
100
  darkModeStrategy: "class",
99
101
  mode: "both",
100
102
  overrides: {},
@@ -113,6 +115,13 @@ export default defineNuxtPlugin(async ({ vueApp, $config }) => {
113
115
  }
114
116
  if (import.meta.server) {
115
117
  injectThemeCSS(config);
118
+ useHead({
119
+ meta: [{
120
+ name: "color-scheme",
121
+ content: resolveColorSchemeContent(config.mode, config.colorMode),
122
+ id: "maz-color-scheme"
123
+ }]
124
+ });
116
125
  if (config.colorMode === "auto" && config.mode === "both" && config.darkModeStrategy === "class") {
117
126
  useHead({
118
127
  script: [{ innerHTML: getColorModeBlockingScript(config), tagPosition: "head", id: "maz-color-mode-blocking" }],
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@maz-ui/nuxt",
3
3
  "type": "module",
4
- "version": "5.0.0-beta.2",
4
+ "version": "5.0.0-beta.20",
5
5
  "description": "Nuxt module for Maz-UI",
6
6
  "author": "Louis Mazel <me@loicmazuel.com>",
7
7
  "license": "MIT",
8
- "homepage": "https://maz-ui.com/guide/nuxt",
8
+ "homepage": "https://maz-ui.com/ecosystem/nuxt",
9
9
  "repository": {
10
10
  "type": "git",
11
11
  "url": "git+https://github.com/LouisMazel/maz-ui.git"
@@ -33,7 +33,8 @@
33
33
  "exports": {
34
34
  ".": {
35
35
  "types": "./dist/types.d.mts",
36
- "import": "./dist/module.mjs"
36
+ "import": "./dist/module.mjs",
37
+ "default": "./dist/module.mjs"
37
38
  }
38
39
  },
39
40
  "main": "./dist/module.mjs",
@@ -48,19 +49,20 @@
48
49
  },
49
50
  "dependencies": {
50
51
  "@nuxt/devtools-kit": "^3.2.3",
51
- "@nuxt/kit": "^4.4.4",
52
+ "@nuxt/kit": "^4.4.6",
52
53
  "defu": "^6.1.7",
53
- "maz-ui": "5.0.0-beta.2",
54
- "@maz-ui/themes": "5.0.0-beta.2",
55
- "@maz-ui/translations": "5.0.0-beta.2",
56
- "@maz-ui/utils": "5.0.0-beta.2"
54
+ "@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"
57
58
  },
58
59
  "devDependencies": {
59
60
  "@nuxt/devtools": "^3.2.3",
60
61
  "@nuxt/module-builder": "^1.0.2",
61
- "@nuxt/schema": "^4.4.4",
62
+ "@nuxt/schema": "^4.4.6",
62
63
  "@nuxt/test-utils": "^4.0.3",
63
- "nuxt": "^4.4.4"
64
+ "nuxt": "^4.4.6",
65
+ "@maz-ui/eslint-config": "5.0.0-beta.18"
64
66
  },
65
67
  "lint-staged": {
66
68
  "*.{js,ts,mjs,mts,cjs,md,yml,json}": "cross-env NODE_ENV=production eslint --fix"