@maz-ui/nuxt 4.0.0-beta.0
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/LICENSE +21 -0
- package/README.md +299 -0
- package/dist/module.d.mts +275 -0
- package/dist/module.json +12 -0
- package/dist/module.mjs +348 -0
- package/dist/runtime/composables/useAos.d.ts +2 -0
- package/dist/runtime/composables/useAos.js +5 -0
- package/dist/runtime/composables/useDialog.d.ts +2 -0
- package/dist/runtime/composables/useDialog.js +5 -0
- package/dist/runtime/composables/useToast.d.ts +2 -0
- package/dist/runtime/composables/useToast.js +5 -0
- package/dist/runtime/composables/useWait.d.ts +2 -0
- package/dist/runtime/composables/useWait.js +5 -0
- package/dist/runtime/plugins/aos.d.ts +12 -0
- package/dist/runtime/plugins/aos.js +12 -0
- package/dist/runtime/plugins/dialog.d.ts +12 -0
- package/dist/runtime/plugins/dialog.js +23 -0
- package/dist/runtime/plugins/maz-icon-path.d.ts +11 -0
- package/dist/runtime/plugins/maz-icon-path.js +10 -0
- package/dist/runtime/plugins/theme.d.ts +8 -0
- package/dist/runtime/plugins/theme.js +92 -0
- package/dist/runtime/plugins/toast.d.ts +12 -0
- package/dist/runtime/plugins/toast.js +26 -0
- package/dist/runtime/plugins/translations.d.ts +8 -0
- package/dist/runtime/plugins/translations.js +6 -0
- package/dist/runtime/plugins/v-click-outside.d.ts +2 -0
- package/dist/runtime/plugins/v-click-outside.js +5 -0
- package/dist/runtime/plugins/v-fullscreen-img.d.ts +2 -0
- package/dist/runtime/plugins/v-fullscreen-img.js +5 -0
- package/dist/runtime/plugins/v-lazy-img.d.ts +2 -0
- package/dist/runtime/plugins/v-lazy-img.js +7 -0
- package/dist/runtime/plugins/v-tooltip.d.ts +2 -0
- package/dist/runtime/plugins/v-tooltip.js +7 -0
- package/dist/runtime/plugins/v-zoom-img.d.ts +2 -0
- package/dist/runtime/plugins/v-zoom-img.js +5 -0
- package/dist/runtime/plugins/wait.d.ts +12 -0
- package/dist/runtime/plugins/wait.js +18 -0
- package/dist/types.d.mts +7 -0
- package/package.json +80 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { vTooltipInstall } from "maz-ui/directives/vTooltip";
|
|
2
|
+
import { defineNuxtPlugin } from "nuxt/app";
|
|
3
|
+
export default defineNuxtPlugin(({ vueApp, $config }) => {
|
|
4
|
+
const vTooltipOptions = $config.public.mazUi?.directives?.vTooltip;
|
|
5
|
+
const options = typeof vTooltipOptions === "object" ? vTooltipOptions : void 0;
|
|
6
|
+
vueApp.use(vTooltipInstall, options);
|
|
7
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { WaitHandler } from 'maz-ui/plugins/wait';
|
|
2
|
+
declare const _default: import("#app").Plugin<{
|
|
3
|
+
mazWait: WaitHandler;
|
|
4
|
+
}> & import("#app").ObjectPlugin<{
|
|
5
|
+
mazWait: WaitHandler;
|
|
6
|
+
}>;
|
|
7
|
+
export default _default;
|
|
8
|
+
declare module '#app' {
|
|
9
|
+
interface NuxtApp {
|
|
10
|
+
$mazWait: WaitHandler;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { WaitHandler } from "maz-ui/plugins/wait";
|
|
2
|
+
import { defineNuxtPlugin } from "nuxt/app";
|
|
3
|
+
export default defineNuxtPlugin(() => {
|
|
4
|
+
const waitServer = {
|
|
5
|
+
loaders: { value: [] },
|
|
6
|
+
anyLoading: { value: false },
|
|
7
|
+
isLoading: () => false,
|
|
8
|
+
stop: () => {
|
|
9
|
+
},
|
|
10
|
+
start: () => {
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
return {
|
|
14
|
+
provide: {
|
|
15
|
+
mazWait: import.meta.server ? waitServer : new WaitHandler()
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
});
|
package/dist/types.d.mts
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@maz-ui/nuxt",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "4.0.0-beta.0",
|
|
5
|
+
"description": "Nuxt module for Maz-UI",
|
|
6
|
+
"author": "Louis Mazel <me@loicmazuel.com>",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"homepage": "https://maz-ui.com/guide/nuxt",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/LouisMazel/maz-ui.git"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/LouisMazel/maz-ui/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"vue",
|
|
18
|
+
"nuxt",
|
|
19
|
+
"components",
|
|
20
|
+
"vue-component",
|
|
21
|
+
"framework",
|
|
22
|
+
"library",
|
|
23
|
+
"ui",
|
|
24
|
+
"nuxt",
|
|
25
|
+
"nuxt3",
|
|
26
|
+
"module",
|
|
27
|
+
"nuxt-module",
|
|
28
|
+
"maz-ui"
|
|
29
|
+
],
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public"
|
|
32
|
+
},
|
|
33
|
+
"exports": {
|
|
34
|
+
".": {
|
|
35
|
+
"types": "./dist/types.d.mts",
|
|
36
|
+
"import": "./dist/module.mjs"
|
|
37
|
+
},
|
|
38
|
+
"./*": "./*"
|
|
39
|
+
},
|
|
40
|
+
"main": "./dist/module.mjs",
|
|
41
|
+
"types": "./dist/types.d.mts",
|
|
42
|
+
"files": [
|
|
43
|
+
"LICENSE",
|
|
44
|
+
"README.md",
|
|
45
|
+
"dist"
|
|
46
|
+
],
|
|
47
|
+
"scripts": {
|
|
48
|
+
"prepack": "nuxt-module-build build",
|
|
49
|
+
"build": "pnpm prepare && nuxt-module-build build",
|
|
50
|
+
"prepare": "nuxt-module-build build --stub && nuxt-module-build prepare",
|
|
51
|
+
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare",
|
|
52
|
+
"lint": "cross-env NODE_ENV=production eslint .",
|
|
53
|
+
"lint:fix": "pnpm lint --fix",
|
|
54
|
+
"format": "prettier --ignore-path .gitignore . --write",
|
|
55
|
+
"typecheck": "vue-tsc --noEmit --skipLibCheck --project tsconfig.check.json",
|
|
56
|
+
"release": "npm run lint && npm run prepack && changelogen --release && npm publish && git push --follow-tags"
|
|
57
|
+
},
|
|
58
|
+
"dependencies": {
|
|
59
|
+
"@maz-ui/themes": "4.0.0-beta.0",
|
|
60
|
+
"@maz-ui/translations": "4.0.0-beta.0",
|
|
61
|
+
"@nuxt/kit": "catalog:",
|
|
62
|
+
"defu": "^6.1.4",
|
|
63
|
+
"maz-ui": "4.0.0-beta.0"
|
|
64
|
+
},
|
|
65
|
+
"devDependencies": {
|
|
66
|
+
"@nuxt/devtools": "^2.4.1",
|
|
67
|
+
"@nuxt/eslint-config": "^1.4.1",
|
|
68
|
+
"@nuxt/module-builder": "^1.0.1",
|
|
69
|
+
"@nuxt/schema": "catalog:",
|
|
70
|
+
"@nuxt/test-utils": "^3.19.1",
|
|
71
|
+
"nuxt": "catalog:",
|
|
72
|
+
"typescript": "catalog:",
|
|
73
|
+
"vitest": "catalog:"
|
|
74
|
+
},
|
|
75
|
+
"lint-staged": {
|
|
76
|
+
"*": "prettier -w -u",
|
|
77
|
+
"*.{js,ts,mjs,mts,cjs,md}": "cross-env NODE_ENV=production eslint --fix"
|
|
78
|
+
},
|
|
79
|
+
"gitHead": "9ef7beb4feeee0b0cb44e7df8af7115d5d5ef334"
|
|
80
|
+
}
|