@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
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 LouisMazel
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Get your module up and running quickly.
|
|
3
|
+
|
|
4
|
+
Find and replace all on all files (CMD+SHIFT+F):
|
|
5
|
+
- Name: My Module
|
|
6
|
+
- Package name: my-module
|
|
7
|
+
- Description: My new Nuxt module
|
|
8
|
+
-->
|
|
9
|
+
|
|
10
|
+
# @maz-ui/nuxt
|
|
11
|
+
|
|
12
|
+
✨ **The Ultimate Nuxt Module for Beautiful Vue.js Components** ✨
|
|
13
|
+
|
|
14
|
+
Transform your Nuxt application with **Maz-UI** - a comprehensive Vue.js component library that makes building beautiful interfaces effortless!
|
|
15
|
+
|
|
16
|
+
[](https://badge.fury.io/js/%40maz-ui%2Fnuxt)
|
|
17
|
+
[](https://opensource.org/licenses/MIT)
|
|
18
|
+
|
|
19
|
+
## 🎯 What is Maz-UI?
|
|
20
|
+
|
|
21
|
+
**Maz-UI** is a powerful Vue.js component library with **50+ beautiful components**, **20+ useful composables**, and **smart directives** that work perfectly with Nuxt. Think of it as your design system in a box!
|
|
22
|
+
|
|
23
|
+
### 🌟 Why Choose Maz-UI for Your Nuxt App?
|
|
24
|
+
|
|
25
|
+
- **🚀 Zero Configuration** - Works instantly with sensible defaults
|
|
26
|
+
- **🎨 Beautiful by Default** - Professional design with dark mode included
|
|
27
|
+
- **📦 Everything Auto-Imported** - No more import statements needed
|
|
28
|
+
- **⚡ Super Fast** - Optimized for performance with tree-shaking
|
|
29
|
+
- **🛠️ Developer Friendly** - TypeScript support and great DevTools
|
|
30
|
+
- **🎯 Production Ready** - Perfect SSR/SSG support
|
|
31
|
+
|
|
32
|
+
## 🚀 Quick Start (2 minutes!)
|
|
33
|
+
|
|
34
|
+
### Step 1: Install the module
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
# Choose your package manager
|
|
38
|
+
npm install @maz-ui/nuxt
|
|
39
|
+
# or
|
|
40
|
+
pnpm add @maz-ui/nuxt
|
|
41
|
+
# or
|
|
42
|
+
yarn add @maz-ui/nuxt
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Step 2: Add to your Nuxt config
|
|
46
|
+
|
|
47
|
+
```ts
|
|
48
|
+
// nuxt.config.ts
|
|
49
|
+
export default defineNuxtConfig({
|
|
50
|
+
modules: ['@maz-ui/nuxt'],
|
|
51
|
+
})
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
**That's it! 🎉** All components, composables, and features are now available in your app!
|
|
55
|
+
|
|
56
|
+
### Step 3: Start using components
|
|
57
|
+
|
|
58
|
+
```vue
|
|
59
|
+
<script setup>
|
|
60
|
+
// All composables are auto-imported too!
|
|
61
|
+
const toast = useToast()
|
|
62
|
+
const { isDark, toggleDarkMode } = useTheme()
|
|
63
|
+
|
|
64
|
+
function showMessage() {
|
|
65
|
+
toast.success('Welcome to Maz-UI! 🎉')
|
|
66
|
+
}
|
|
67
|
+
</script>
|
|
68
|
+
|
|
69
|
+
<template>
|
|
70
|
+
<div>
|
|
71
|
+
<!-- All components are auto-imported! -->
|
|
72
|
+
<MazBtn color="primary" @click="showMessage">
|
|
73
|
+
Click me!
|
|
74
|
+
</MazBtn>
|
|
75
|
+
|
|
76
|
+
<!-- Composables work everywhere -->
|
|
77
|
+
<MazCard class="mt-4">
|
|
78
|
+
<h2>Welcome to Maz-UI!</h2>
|
|
79
|
+
<p>Current theme: {{ isDark ? 'Dark' : 'Light' }}</p>
|
|
80
|
+
</MazCard>
|
|
81
|
+
|
|
82
|
+
<!-- Directives are ready to use -->
|
|
83
|
+
<div v-tooltip="'Hello World!'">
|
|
84
|
+
Hover me for tooltip
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
</template>
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## 🎨 What You Get Out of the Box
|
|
91
|
+
|
|
92
|
+
### 🧩 50+ Beautiful Components
|
|
93
|
+
|
|
94
|
+
- **Buttons**: `MazBtn`,
|
|
95
|
+
- **Forms**: `MazInput`, `MazSelect`, `MazCheckbox`, `MazRadio`, `MazTextarea`, `MazInputPhoneNumber`
|
|
96
|
+
- **Overlay**: `MazDropdown`, `MazPopover`
|
|
97
|
+
- **Navigation**: `MazTabs`, `MazStepper`, `MazPagination`
|
|
98
|
+
- **Data Display**: `MazTable`, `MazCard`, `MazBadge`, `MazAvatar`
|
|
99
|
+
- **Media**: `MazCarousel`, `MazGallery`, `MazLazyImg`
|
|
100
|
+
- **Feedback**: `MazDialog`, `MazToast`, `MazSpinner`, `MazLoadingBar`
|
|
101
|
+
- **Charts**: `MazChart` (with Chart.js integration)
|
|
102
|
+
- **And 30+ more!**
|
|
103
|
+
|
|
104
|
+
### 🎪 20+ Powerful Composables
|
|
105
|
+
|
|
106
|
+
- **`useTheme()`** - Theme management and dark mode
|
|
107
|
+
- **`useToast()`** - Beautiful toast notifications
|
|
108
|
+
- **`useDialog()`** - Modal dialogs made easy
|
|
109
|
+
- **`useAos()`** - Smooth scroll animations
|
|
110
|
+
- **`useTimer()`** - Countdown and timer functionality
|
|
111
|
+
- **`useWindowSize()`** - Reactive window dimensions
|
|
112
|
+
- **`useBreakpoints()`** - Responsive design helpers
|
|
113
|
+
- **And many more!**
|
|
114
|
+
|
|
115
|
+
### 🎯 Smart Directives
|
|
116
|
+
|
|
117
|
+
- **`v-tooltip`** - Beautiful tooltips anywhere
|
|
118
|
+
- **`v-lazy-img`** - Lazy load images automatically
|
|
119
|
+
- **`v-zoom-img`** - Click to zoom images
|
|
120
|
+
- **`v-click-outside`** - Detect outside clicks
|
|
121
|
+
- **`v-fullscreen-img`** - Fullscreen image viewer
|
|
122
|
+
|
|
123
|
+
## 🌈 Theming Made Simple
|
|
124
|
+
|
|
125
|
+
Maz-UI comes with a powerful theming system that makes your app look professional instantly:
|
|
126
|
+
|
|
127
|
+
```vue
|
|
128
|
+
<script setup>
|
|
129
|
+
// Switch between built-in themes
|
|
130
|
+
const { updateTheme, toggleDarkMode } = useTheme()
|
|
131
|
+
|
|
132
|
+
async function changeToOceanTheme() {
|
|
133
|
+
const { ocean } = await import('@maz-ui/themes')
|
|
134
|
+
updateTheme(ocean)
|
|
135
|
+
}
|
|
136
|
+
</script>
|
|
137
|
+
|
|
138
|
+
<template>
|
|
139
|
+
<div>
|
|
140
|
+
<MazBtn @click="toggleDarkMode">
|
|
141
|
+
🌙 Toggle Dark Mode
|
|
142
|
+
</MazBtn>
|
|
143
|
+
|
|
144
|
+
<MazBtn @click="changeToOceanTheme">
|
|
145
|
+
🌊 Ocean Theme
|
|
146
|
+
</MazBtn>
|
|
147
|
+
</div>
|
|
148
|
+
</template>
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
**Built-in themes**: `mazUi`, `ocean`, `pristine`, `obsidian` + create your own!
|
|
152
|
+
|
|
153
|
+
## ⚙️ Configuration Options
|
|
154
|
+
|
|
155
|
+
### Minimal Setup (Recommended)
|
|
156
|
+
|
|
157
|
+
```ts
|
|
158
|
+
// nuxt.config.ts
|
|
159
|
+
export default defineNuxtConfig({
|
|
160
|
+
modules: ['@maz-ui/nuxt'],
|
|
161
|
+
// That's all you need! 🎉
|
|
162
|
+
})
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
### Full Configuration Example
|
|
166
|
+
|
|
167
|
+
```ts
|
|
168
|
+
// nuxt.config.ts
|
|
169
|
+
export default defineNuxtConfig({
|
|
170
|
+
modules: ['@maz-ui/nuxt'],
|
|
171
|
+
mazUi: {
|
|
172
|
+
// 🎛️ General Settings
|
|
173
|
+
general: {
|
|
174
|
+
autoImportPrefix: 'Maz', // useMazToast instead of useToast
|
|
175
|
+
defaultMazIconPath: '/icons', // Path to your SVG icons
|
|
176
|
+
devtools: true, // Enable DevTools integration
|
|
177
|
+
},
|
|
178
|
+
|
|
179
|
+
// 🎨 Theme System
|
|
180
|
+
theme: {
|
|
181
|
+
preset: 'ocean', // Choose: 'mazUi', 'ocean', 'pristine', 'obsidian'
|
|
182
|
+
strategy: 'hybrid', // 'runtime' | 'buildtime' | 'hybrid'
|
|
183
|
+
darkModeStrategy: 'class', // 'class' | 'media' | 'auto'
|
|
184
|
+
},
|
|
185
|
+
|
|
186
|
+
// 🌐 Translations
|
|
187
|
+
translations: {
|
|
188
|
+
locale: 'fr', // Default language
|
|
189
|
+
fallbackLocale: 'en',
|
|
190
|
+
},
|
|
191
|
+
|
|
192
|
+
// 🧩 Components (all enabled by default)
|
|
193
|
+
components: {
|
|
194
|
+
autoImport: true, // Auto-import all components globally
|
|
195
|
+
},
|
|
196
|
+
|
|
197
|
+
// 🎪 Composables (customize what you need)
|
|
198
|
+
composables: {
|
|
199
|
+
useTheme: true,
|
|
200
|
+
useToast: true,
|
|
201
|
+
useDialog: true,
|
|
202
|
+
useAos: {
|
|
203
|
+
injectCss: true, // Include AOS animations CSS
|
|
204
|
+
router: true, // Re-trigger on route change
|
|
205
|
+
},
|
|
206
|
+
// ... all others enabled by default
|
|
207
|
+
},
|
|
208
|
+
|
|
209
|
+
// 🎯 Directives
|
|
210
|
+
directives: {
|
|
211
|
+
vTooltip: true,
|
|
212
|
+
vLazyImg: { threshold: 0.1 }, // Custom intersection threshold
|
|
213
|
+
vClickOutside: true,
|
|
214
|
+
vFullscreenImg: true,
|
|
215
|
+
vZoomImg: true,
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
})
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
## 🛠️ Advanced Features
|
|
222
|
+
|
|
223
|
+
### Custom Theme Creation
|
|
224
|
+
|
|
225
|
+
```ts
|
|
226
|
+
import { definePreset } from '@maz-ui/themes'
|
|
227
|
+
// themes/my-theme.ts
|
|
228
|
+
export const myCustomTheme = definePreset({
|
|
229
|
+
base: 'maz-ui',
|
|
230
|
+
overrides: {
|
|
231
|
+
colors: {
|
|
232
|
+
primary: '350 100% 50%',
|
|
233
|
+
secondary: '350 14% 96%',
|
|
234
|
+
background: '0 0% 100%',
|
|
235
|
+
// ... more colors
|
|
236
|
+
},
|
|
237
|
+
},
|
|
238
|
+
})
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
```ts
|
|
242
|
+
// nuxt.config.ts
|
|
243
|
+
import { myCustomTheme } from './themes/my-theme'
|
|
244
|
+
|
|
245
|
+
export default defineNuxtConfig({
|
|
246
|
+
modules: ['@maz-ui/nuxt'],
|
|
247
|
+
mazUi: {
|
|
248
|
+
theme: {
|
|
249
|
+
preset: myCustomTheme,
|
|
250
|
+
},
|
|
251
|
+
},
|
|
252
|
+
})
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
## 📱 SSR/SSG Support
|
|
256
|
+
|
|
257
|
+
This module is built specifically for Nuxt with perfect SSR and SSG support:
|
|
258
|
+
|
|
259
|
+
- ✅ **Server-Side Rendering** - Components render perfectly on the server
|
|
260
|
+
- ✅ **Static Site Generation** - Works great with `nuxt generate`
|
|
261
|
+
- ✅ **Hydration** - Smooth client-side takeover
|
|
262
|
+
- ✅ **Theme Persistence** - Dark mode preference remembered
|
|
263
|
+
- ✅ **No FOUC** - Flash of unstyled content prevented
|
|
264
|
+
|
|
265
|
+
## 🎯 Why This Module vs Manual Setup?
|
|
266
|
+
|
|
267
|
+
| Feature | Manual Setup | @maz-ui/nuxt Module |
|
|
268
|
+
| ---------------- | --------------------- | ----------------------------- |
|
|
269
|
+
| **Setup Time** | 30+ minutes | 2 minutes |
|
|
270
|
+
| **Auto Imports** | Manual imports needed | ✅ Everything auto-imported |
|
|
271
|
+
| **SSR Support** | Complex configuration | ✅ Works out of the box |
|
|
272
|
+
| **Theme System** | Manual CSS management | ✅ Automatic theme switching |
|
|
273
|
+
| **Bundle Size** | Full library imported | ✅ Tree-shaking optimized |
|
|
274
|
+
| **DevTools** | No integration | ✅ Nuxt DevTools support |
|
|
275
|
+
| **TypeScript** | Manual type setup | ✅ Perfect TypeScript support |
|
|
276
|
+
|
|
277
|
+
## 📚 Learn More
|
|
278
|
+
|
|
279
|
+
- 📖 **[Full Documentation](https://maz-ui.com/guide/nuxt)**
|
|
280
|
+
- 🐛 **[Report Issues](https://github.com/LouisMazel/maz-ui/issues)**
|
|
281
|
+
- 💬 **[Discussions](https://github.com/LouisMazel/maz-ui/discussions)**
|
|
282
|
+
|
|
283
|
+
## 🤝 Contributing
|
|
284
|
+
|
|
285
|
+
We love contributions! Check out our [Contributing Guide](https://github.com/LouisMazel/maz-ui/blob/main/CONTRIBUTING.md).
|
|
286
|
+
|
|
287
|
+
## 📄 License
|
|
288
|
+
|
|
289
|
+
MIT License © 2025 [LouisMazel](https://github.com/LouisMazel)
|
|
290
|
+
|
|
291
|
+
---
|
|
292
|
+
|
|
293
|
+
<div align="center">
|
|
294
|
+
|
|
295
|
+
**Built with ❤️ for the Vue.js and Nuxt community**
|
|
296
|
+
|
|
297
|
+
[⭐ Give it a star on GitHub!](https://github.com/LouisMazel/maz-ui)
|
|
298
|
+
|
|
299
|
+
</div>
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
+
import { MazUiThemeOptions } from '@maz-ui/themes';
|
|
3
|
+
import { MazTranslationsOptions } from '@maz-ui/translations';
|
|
4
|
+
import { VLazyImgOptions, VFullscreenImgOptions, VTooltipOptions } from 'maz-ui/directives';
|
|
5
|
+
import { AosOptions, ToastOptions, DialogOptions } from 'maz-ui/plugins';
|
|
6
|
+
|
|
7
|
+
interface MazUiNuxtThemeOptions extends MazUiThemeOptions {
|
|
8
|
+
/**
|
|
9
|
+
* Inject full CSS on server-side
|
|
10
|
+
* @description Inject full CSS on server-side to prevent FOUC on client-side
|
|
11
|
+
* @default true
|
|
12
|
+
*/
|
|
13
|
+
injectFullCSSOnServer?: boolean;
|
|
14
|
+
}
|
|
15
|
+
interface MazUiNuxtOptions {
|
|
16
|
+
/**
|
|
17
|
+
* General configuration
|
|
18
|
+
*/
|
|
19
|
+
general?: {
|
|
20
|
+
/**
|
|
21
|
+
* Prefix for auto-imported composables and directives
|
|
22
|
+
* @description This prefix will be added after the `use` keyword and `v` keyword
|
|
23
|
+
* @example `autoImportPrefix: 'Maz'` will generate `useMazToast` instead of `useToast` and `vMazZoomImg` instead of `vZoomImg`
|
|
24
|
+
* @default ''
|
|
25
|
+
*/
|
|
26
|
+
autoImportPrefix?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Default path to public SVG icons folder for `<MazIcon />` component
|
|
29
|
+
* @description Relative path from the public directory
|
|
30
|
+
* @example '/icons' to access icons in `public/icons/`
|
|
31
|
+
* @default ''
|
|
32
|
+
*/
|
|
33
|
+
defaultMazIconPath?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Enable Nuxt DevTools integration
|
|
36
|
+
* @description Adds a Maz-UI tab in Nuxt development tools
|
|
37
|
+
* @default true
|
|
38
|
+
*/
|
|
39
|
+
devtools?: boolean;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Theme system configuration
|
|
43
|
+
* @description If false, the theme system will be completely disabled
|
|
44
|
+
* @default {
|
|
45
|
+
* preset: 'maz-ui',
|
|
46
|
+
* strategy: 'hybrid',
|
|
47
|
+
* darkModeStrategy: 'class',
|
|
48
|
+
* prefix: 'maz',
|
|
49
|
+
* colorMode: 'auto',
|
|
50
|
+
* }
|
|
51
|
+
*/
|
|
52
|
+
theme?: MazUiNuxtThemeOptions;
|
|
53
|
+
/**
|
|
54
|
+
* Translations configuration
|
|
55
|
+
* @description If false, the translations system will be completely disabled
|
|
56
|
+
* @default {
|
|
57
|
+
* locale: 'en',
|
|
58
|
+
* }
|
|
59
|
+
*/
|
|
60
|
+
translations?: MazTranslationsOptions;
|
|
61
|
+
/**
|
|
62
|
+
* CSS and styles configuration
|
|
63
|
+
*/
|
|
64
|
+
css?: {
|
|
65
|
+
/**
|
|
66
|
+
* Auto-import Maz-UI main CSS file
|
|
67
|
+
* @description Automatically injects Maz-UI base styles
|
|
68
|
+
* @default true
|
|
69
|
+
*/
|
|
70
|
+
injectMainCss?: boolean;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Components configuration
|
|
74
|
+
*/
|
|
75
|
+
components?: {
|
|
76
|
+
/**
|
|
77
|
+
* Auto-import all Maz-UI components
|
|
78
|
+
* @description Makes all Maz-UI components available globally without explicit imports
|
|
79
|
+
* @default true
|
|
80
|
+
*/
|
|
81
|
+
autoImport?: boolean;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Composables configuration
|
|
85
|
+
*/
|
|
86
|
+
composables?: {
|
|
87
|
+
/**
|
|
88
|
+
* Enable auto-import of useTranslations composable
|
|
89
|
+
* @description Provides translations functionality from `@maz-ui/translations` package
|
|
90
|
+
* @default true
|
|
91
|
+
*/
|
|
92
|
+
useTranslations?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Enable auto-import of useTheme composable
|
|
95
|
+
* @description Provides theme management functionality (toggle dark mode, change themes, etc.) from `@maz-ui/themes` package
|
|
96
|
+
* @default false
|
|
97
|
+
*/
|
|
98
|
+
useTheme?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* Enable auto-import of useAos composable and install AOS plugin
|
|
101
|
+
* @description Animation On Scroll functionality with advanced configuration options
|
|
102
|
+
* @default true
|
|
103
|
+
*/
|
|
104
|
+
useAos?: boolean | (Omit<AosOptions, 'router'> & {
|
|
105
|
+
/**
|
|
106
|
+
* Auto inject AOS CSS file
|
|
107
|
+
* @default true
|
|
108
|
+
*/
|
|
109
|
+
injectCss?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Re-run animations on page change (for SPA navigation)
|
|
112
|
+
* @default false
|
|
113
|
+
*/
|
|
114
|
+
router?: boolean;
|
|
115
|
+
});
|
|
116
|
+
/**
|
|
117
|
+
* Enable auto-import of useToast composable and install Toast plugin
|
|
118
|
+
* @description Toast notifications functionality
|
|
119
|
+
* @default true
|
|
120
|
+
*/
|
|
121
|
+
useToast?: boolean | ToastOptions;
|
|
122
|
+
/**
|
|
123
|
+
* Enable auto-import of useDialog composable and install Dialog plugin
|
|
124
|
+
* @description Modal dialogs functionality
|
|
125
|
+
* @default true
|
|
126
|
+
*/
|
|
127
|
+
useDialog?: boolean | DialogOptions;
|
|
128
|
+
/**
|
|
129
|
+
* Enable auto-import of useWait composable and install Wait plugin
|
|
130
|
+
* @description Loading state management functionality
|
|
131
|
+
* @default true
|
|
132
|
+
*/
|
|
133
|
+
useWait?: boolean;
|
|
134
|
+
/**
|
|
135
|
+
* Enable auto-import of useIdleTimeout composable
|
|
136
|
+
* @description Detect user idle state and execute callbacks
|
|
137
|
+
* @default true
|
|
138
|
+
*/
|
|
139
|
+
useIdleTimeout?: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Enable auto-import of useReadingTime composable
|
|
142
|
+
* @description Calculate estimated reading time for text content
|
|
143
|
+
* @default true
|
|
144
|
+
*/
|
|
145
|
+
useReadingTime?: boolean;
|
|
146
|
+
/**
|
|
147
|
+
* Enable auto-import of useWindowSize composable
|
|
148
|
+
* @description Reactive window dimensions tracking
|
|
149
|
+
* @default true
|
|
150
|
+
*/
|
|
151
|
+
useWindowSize?: boolean;
|
|
152
|
+
/**
|
|
153
|
+
* Enable auto-import of useBreakpoints composable
|
|
154
|
+
* @description Responsive breakpoints detection and utilities
|
|
155
|
+
* @default true
|
|
156
|
+
*/
|
|
157
|
+
useBreakpoints?: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* Enable auto-import of useUserVisibility composable
|
|
160
|
+
* @description Detect when user is viewing the page (Page Visibility API)
|
|
161
|
+
* @default true
|
|
162
|
+
*/
|
|
163
|
+
useUserVisibility?: boolean;
|
|
164
|
+
/**
|
|
165
|
+
* Enable auto-import of useStringMatching composable
|
|
166
|
+
* @description String matching and filtering utilities
|
|
167
|
+
* @default true
|
|
168
|
+
*/
|
|
169
|
+
useStringMatching?: boolean;
|
|
170
|
+
/**
|
|
171
|
+
* Enable auto-import of useTimer composable
|
|
172
|
+
* @description Timer and countdown functionality
|
|
173
|
+
* @default true
|
|
174
|
+
*/
|
|
175
|
+
useTimer?: boolean;
|
|
176
|
+
/**
|
|
177
|
+
* Enable auto-import of useFormField composable
|
|
178
|
+
* @description Form field management (should be used with useFormValidator)
|
|
179
|
+
* @default true
|
|
180
|
+
*/
|
|
181
|
+
useFormField?: boolean;
|
|
182
|
+
/**
|
|
183
|
+
* Enable auto-import of useFormValidator and useFormField composables
|
|
184
|
+
* @description Form validation utilities and field management
|
|
185
|
+
* @default true
|
|
186
|
+
*/
|
|
187
|
+
useFormValidator?: boolean;
|
|
188
|
+
/**
|
|
189
|
+
* Enable auto-import of useDisplayNames composable
|
|
190
|
+
* @description Get localized language display names
|
|
191
|
+
* @default true
|
|
192
|
+
*/
|
|
193
|
+
useDisplayNames?: boolean;
|
|
194
|
+
/**
|
|
195
|
+
* Enable auto-import of useFreezeValue composable
|
|
196
|
+
* @description Freeze values to prevent mutation
|
|
197
|
+
* @default true
|
|
198
|
+
*/
|
|
199
|
+
useFreezeValue?: boolean;
|
|
200
|
+
/**
|
|
201
|
+
* Enable auto-import of useInjectStrict composable
|
|
202
|
+
* @description Inject strict types for components
|
|
203
|
+
* @default true
|
|
204
|
+
*/
|
|
205
|
+
useInjectStrict?: boolean;
|
|
206
|
+
/**
|
|
207
|
+
* Enable auto-import of useInstanceUniqId composable
|
|
208
|
+
* @description Generate unique IDs for components
|
|
209
|
+
* @default true
|
|
210
|
+
*/
|
|
211
|
+
useInstanceUniqId?: boolean;
|
|
212
|
+
/**
|
|
213
|
+
* Enable auto-import of useMountComponent composable
|
|
214
|
+
* @description Mount components on the DOM
|
|
215
|
+
* @default true
|
|
216
|
+
*/
|
|
217
|
+
useMountComponent?: boolean;
|
|
218
|
+
/**
|
|
219
|
+
* Enable auto-import of useSwipe composable
|
|
220
|
+
* @description Swipe gesture detection and handling
|
|
221
|
+
* @default true
|
|
222
|
+
*/
|
|
223
|
+
useSwipe?: boolean;
|
|
224
|
+
};
|
|
225
|
+
/**
|
|
226
|
+
* Vue directives configuration
|
|
227
|
+
*/
|
|
228
|
+
directives?: {
|
|
229
|
+
/**
|
|
230
|
+
* Install v-zoom-img directive globally
|
|
231
|
+
* @description Enables image zoom functionality on click
|
|
232
|
+
* @default false
|
|
233
|
+
*/
|
|
234
|
+
vZoomImg?: boolean;
|
|
235
|
+
/**
|
|
236
|
+
* Install v-lazy-img directive globally
|
|
237
|
+
* @description Lazy loading for images with intersection observer
|
|
238
|
+
* @default false
|
|
239
|
+
*/
|
|
240
|
+
vLazyImg?: boolean | VLazyImgOptions;
|
|
241
|
+
/**
|
|
242
|
+
* Install v-click-outside directive globally
|
|
243
|
+
* @description Detect clicks outside of an element
|
|
244
|
+
* @default false
|
|
245
|
+
*/
|
|
246
|
+
vClickOutside?: boolean;
|
|
247
|
+
/**
|
|
248
|
+
* Install v-fullscreen-img directive globally
|
|
249
|
+
* @description Fullscreen image viewer functionality
|
|
250
|
+
* @default false
|
|
251
|
+
*/
|
|
252
|
+
vFullscreenImg?: boolean | VFullscreenImgOptions;
|
|
253
|
+
/**
|
|
254
|
+
* Install v-tooltip directive globally
|
|
255
|
+
* @description Tooltip functionality for any element
|
|
256
|
+
* @default false
|
|
257
|
+
*/
|
|
258
|
+
vTooltip?: boolean | VTooltipOptions;
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
declare module '@nuxt/schema' {
|
|
263
|
+
interface NuxtConfig {
|
|
264
|
+
mazUi?: MazUiNuxtOptions;
|
|
265
|
+
}
|
|
266
|
+
interface NuxtOptions {
|
|
267
|
+
mazUi: MazUiNuxtOptions;
|
|
268
|
+
}
|
|
269
|
+
interface PublicRuntimeConfig {
|
|
270
|
+
mazUi: MazUiNuxtOptions;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
declare const _default: _nuxt_schema.NuxtModule<MazUiNuxtOptions, MazUiNuxtOptions, false>;
|
|
274
|
+
|
|
275
|
+
export { _default as default };
|