@maz-ui/mcp 4.9.3 → 5.0.0-beta.1
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/mcp.mjs +1 -1
- package/docs/generated-docs/maz-alert.doc.md +1 -1
- package/docs/generated-docs/maz-avatar.doc.md +1 -1
- package/docs/generated-docs/maz-badge.doc.md +8 -8
- package/docs/generated-docs/maz-btn.doc.md +26 -26
- package/docs/generated-docs/maz-card.doc.md +19 -19
- package/docs/generated-docs/maz-chart.doc.md +8 -8
- package/docs/generated-docs/maz-container.doc.md +20 -20
- package/docs/generated-docs/maz-drawer.doc.md +8 -8
- package/docs/generated-docs/maz-dropdown.doc.md +1 -1
- package/docs/generated-docs/maz-dropzone.doc.md +2 -2
- package/docs/generated-docs/maz-gallery.doc.md +15 -15
- package/docs/generated-docs/maz-icon.doc.md +11 -14
- package/docs/generated-docs/maz-input.doc.md +38 -38
- package/docs/generated-docs/maz-lazy-img.doc.md +18 -0
- package/docs/generated-docs/maz-link.doc.md +9 -9
- package/docs/generated-docs/maz-pagination.doc.md +9 -9
- package/docs/generated-docs/maz-popover.doc.md +5 -1
- package/docs/generated-docs/maz-radio-buttons.doc.md +17 -17
- package/docs/generated-docs/maz-select.doc.md +2 -2
- package/docs/generated-docs/maz-skeleton.doc.md +10 -10
- package/docs/generated-docs/maz-table.doc.md +37 -37
- package/docs/generated-docs/maz-textarea.doc.md +1 -1
- package/docs/generated-docs/maz-timeline.doc.md +1 -1
- package/docs/src/blog/v4.md +7 -7
- package/docs/src/blog/v5.md +186 -0
- package/docs/src/components/maz-accordion.md +1 -1
- package/docs/src/components/maz-alert.md +15 -15
- package/docs/src/components/maz-animated-counter.md +4 -4
- package/docs/src/components/maz-avatar.md +2 -2
- package/docs/src/components/maz-backdrop.md +7 -7
- package/docs/src/components/maz-badge.md +16 -34
- package/docs/src/components/maz-bottom-sheet.md +74 -74
- package/docs/src/components/maz-btn-group.md +17 -17
- package/docs/src/components/maz-btn.md +129 -96
- package/docs/src/components/maz-card-spotlight.md +5 -5
- package/docs/src/components/maz-card.md +20 -20
- package/docs/src/components/maz-carousel.md +14 -14
- package/docs/src/components/maz-chart.md +23 -4
- package/docs/src/components/maz-checkbox.md +3 -3
- package/docs/src/components/maz-checklist.md +19 -19
- package/docs/src/components/maz-circular-progress-bar.md +4 -4
- package/docs/src/components/maz-container.md +52 -37
- package/docs/src/components/maz-date-picker.md +7 -7
- package/docs/src/components/maz-dialog-confirm.md +2 -2
- package/docs/src/components/maz-drawer.md +14 -14
- package/docs/src/components/maz-dropdown.md +27 -12
- package/docs/src/components/maz-dropzone.md +6 -6
- package/docs/src/components/maz-expand-animation.md +2 -2
- package/docs/src/components/maz-fullscreen-loader.md +2 -2
- package/docs/src/components/maz-gallery.md +1 -1
- package/docs/src/components/maz-icon.md +113 -60
- package/docs/src/components/maz-input-code.md +1 -1
- package/docs/src/components/maz-input-phone-number.md +89 -88
- package/docs/src/components/maz-input-tags.md +2 -2
- package/docs/src/components/maz-input.md +42 -12
- package/docs/src/components/maz-link.md +28 -12
- package/docs/src/components/maz-pagination.md +2 -2
- package/docs/src/components/maz-popover.md +236 -236
- package/docs/src/components/maz-pull-to-refresh.md +2 -2
- package/docs/src/components/maz-radio-buttons.md +11 -11
- package/docs/src/components/maz-radio.md +3 -3
- package/docs/src/components/maz-read-more.md +7 -7
- package/docs/src/components/maz-select-country.md +26 -26
- package/docs/src/components/maz-select.md +1 -1
- package/docs/src/components/maz-skeleton.md +25 -25
- package/docs/src/components/maz-spinner.md +2 -2
- package/docs/src/components/maz-stepper.md +5 -5
- package/docs/src/components/maz-switch.md +1 -1
- package/docs/src/components/maz-table.md +10 -10
- package/docs/src/components/maz-tabs.md +17 -17
- package/docs/src/components/maz-textarea.md +8 -8
- package/docs/src/components/maz-ticker.md +37 -37
- package/docs/src/components/maz-timeline.md +9 -9
- package/docs/src/composables/use-dialog.md +1 -1
- package/docs/src/composables/use-display-names.md +2 -2
- package/docs/src/composables/use-form-validator.md +35 -35
- package/docs/src/composables/use-idle-timeout.md +3 -3
- package/docs/src/composables/use-reading-time.md +5 -5
- package/docs/src/composables/use-string-matching.md +4 -4
- package/docs/src/composables/use-swipe.md +3 -3
- package/docs/src/composables/use-timer.md +3 -3
- package/docs/src/composables/use-toast.md +1 -1
- package/docs/src/composables/use-user-visibility.md +1 -1
- package/docs/src/composables/use-wait.md +2 -2
- package/docs/src/directives/click-outside.md +17 -17
- package/docs/src/directives/lazy-img.md +5 -5
- package/docs/src/directives/tooltip.md +15 -15
- package/docs/src/directives/zoom-img.md +1 -1
- package/docs/src/ecosystem/eslint-config.md +187 -0
- package/docs/src/ecosystem/stylelint-config.md +302 -0
- package/docs/src/guide/browser-support.md +81 -0
- package/docs/src/guide/getting-started.md +23 -16
- package/docs/src/guide/icon-set.md +11 -11
- package/docs/src/guide/icons.md +32 -5
- package/docs/src/guide/maz-ui-provider.md +6 -6
- package/docs/src/guide/migration-v4.md +3 -3
- package/docs/src/guide/migration-v5.md +662 -0
- package/docs/src/guide/nuxt.md +27 -44
- package/docs/src/guide/resolvers.md +2 -2
- package/docs/src/guide/tailwind.md +154 -0
- package/docs/src/guide/themes.md +258 -485
- package/docs/src/guide/vue.md +8 -5
- package/docs/src/helpers/capitalize.md +4 -4
- package/docs/src/helpers/country-code-to-unicode-flag.md +37 -37
- package/docs/src/helpers/currency.md +4 -4
- package/docs/src/helpers/date.md +4 -4
- package/docs/src/helpers/get-country-flag-url.md +9 -9
- package/docs/src/helpers/number.md +5 -5
- package/docs/src/index.md +296 -266
- package/docs/src/made-with-maz-ui.md +5 -5
- package/docs/src/plugins/aos.md +6 -6
- package/docs/src/plugins/dialog.md +4 -4
- package/docs/src/plugins/toast.md +3 -3
- package/docs/src/plugins/wait.md +1 -1
- package/package.json +5 -5
|
@@ -15,18 +15,18 @@ Propose your website by opening an [issue](https://github.com/LouisMazel/maz-ui/
|
|
|
15
15
|
:::
|
|
16
16
|
|
|
17
17
|
<div class="flex flex-col" style="display: flex; flex-direction: column; gap: 2rem">
|
|
18
|
-
<MazCard zoom v-for="({images, description, link, title, github }, i) in projects" :key="i" class="maz
|
|
19
|
-
<h1 class="maz
|
|
18
|
+
<MazCard zoom v-for="({images, description, link, title, github }, i) in projects" :key="i" class="maz:w-full" elevation :gallery="{ images, height: 350 }">
|
|
19
|
+
<h1 class="maz:m-0" style="margin-bottom: 16px;">
|
|
20
20
|
{{ title }}
|
|
21
21
|
</h1>
|
|
22
|
-
<h5 class="maz
|
|
22
|
+
<h5 class="maz:m-0">
|
|
23
23
|
{{ description }}
|
|
24
24
|
</h5>
|
|
25
25
|
<template #footer>
|
|
26
|
-
<MazBtn v-if="github" color="black" :href="github" target="_blank" left-icon="github" class="maz
|
|
26
|
+
<MazBtn v-if="github" color="black" :href="github" target="_blank" left-icon="/github.svg" class="maz:me-4">
|
|
27
27
|
Github
|
|
28
28
|
</MazBtn>
|
|
29
|
-
<MazBtn :href="link" target="_blank" left-icon="arrow-top-right-on-square">
|
|
29
|
+
<MazBtn :href="link" target="_blank" left-icon="/arrow-top-right-on-square.svg">
|
|
30
30
|
Show
|
|
31
31
|
</MazBtn>
|
|
32
32
|
</template>
|
package/docs/src/plugins/aos.md
CHANGED
|
@@ -23,7 +23,7 @@ import router from './router'
|
|
|
23
23
|
import { AosPlugin, AosOptions } from 'maz-ui/plugins/aos'
|
|
24
24
|
|
|
25
25
|
// ⚠️ import necessary CSS file ⚠️
|
|
26
|
-
import 'maz-ui/aos
|
|
26
|
+
import 'maz-ui/aos.css'
|
|
27
27
|
|
|
28
28
|
const app = createApp(App)
|
|
29
29
|
|
|
@@ -67,7 +67,7 @@ export default defineNuxtConfig({
|
|
|
67
67
|
## Basic usage
|
|
68
68
|
|
|
69
69
|
<MazCard overflow-hidden data-maz-aos="scale-out" id="parentCard">
|
|
70
|
-
<div class="maz
|
|
70
|
+
<div class="maz:flex" style="display: flex; align-items: start; gap: 1rem; margin-bottom: 1rem;">
|
|
71
71
|
<MazAvatar
|
|
72
72
|
data-maz-aos-delay="300"
|
|
73
73
|
data-maz-aos="scale-in"
|
|
@@ -87,7 +87,7 @@ export default defineNuxtConfig({
|
|
|
87
87
|
data-maz-aos="zoom-in-left"
|
|
88
88
|
data-maz-aos-delay="900"
|
|
89
89
|
style="margin: 0"
|
|
90
|
-
class="maz
|
|
90
|
+
class="maz:text-muted"
|
|
91
91
|
>
|
|
92
92
|
Library
|
|
93
93
|
</p>
|
|
@@ -105,7 +105,7 @@ export default defineNuxtConfig({
|
|
|
105
105
|
|
|
106
106
|
```html{1,13}
|
|
107
107
|
<MazCard overflow-hidden data-maz-aos="scale-out" id="parentCard">
|
|
108
|
-
<div class="maz
|
|
108
|
+
<div class="maz:flex" style="display: flex; align-items: start; gap: 1rem; margin-bottom: 1rem;">
|
|
109
109
|
<MazAvatar
|
|
110
110
|
data-maz-aos-delay="300"
|
|
111
111
|
data-maz-aos="scale-in"
|
|
@@ -125,7 +125,7 @@ export default defineNuxtConfig({
|
|
|
125
125
|
data-maz-aos="zoom-in-left"
|
|
126
126
|
data-maz-aos-delay="900"
|
|
127
127
|
style="margin: 0"
|
|
128
|
-
class="maz
|
|
128
|
+
class="maz:text-muted"
|
|
129
129
|
>
|
|
130
130
|
Library
|
|
131
131
|
</p>
|
|
@@ -240,7 +240,7 @@ Should be executed on client side
|
|
|
240
240
|
|
|
241
241
|
```ts
|
|
242
242
|
export default defineNuxtConfig({
|
|
243
|
-
css: ['maz-ui/aos
|
|
243
|
+
css: ['maz-ui/aos.css'],
|
|
244
244
|
})
|
|
245
245
|
```
|
|
246
246
|
|
|
@@ -98,7 +98,7 @@ async function openDialog() {
|
|
|
98
98
|
The buttons property allows you to display custom buttons in the dialog and replace the default confirm and cancel buttons. You can use all props of [`MazBtn`](./../components/maz-btn.md#props) component. Each button can have a custom action to execute when clicked.
|
|
99
99
|
|
|
100
100
|
<ComponentDemo>
|
|
101
|
-
<div class="maz
|
|
101
|
+
<div class="maz:flex maz:flex-wrap maz:gap-2">
|
|
102
102
|
<MazBtn color="contrast" @click="openDialogActions">
|
|
103
103
|
Show dialog with custom buttons
|
|
104
104
|
</MazBtn>
|
|
@@ -162,7 +162,7 @@ function openDialogActions() {
|
|
|
162
162
|
The buttons property allows you to display custom buttons in the dialog and replace the default confirm and cancel buttons. Each button can have a custom response to return when clicked. The type property allows you to define the type of the button. The response property allows you to define the response of the promise when the button is clicked.
|
|
163
163
|
|
|
164
164
|
<ComponentDemo>
|
|
165
|
-
<div class="maz
|
|
165
|
+
<div class="maz:flex maz:flex-wrap maz:gap-2">
|
|
166
166
|
<MazBtn color="contrast" @click="openDialogResponse">
|
|
167
167
|
Show dialog with custom response
|
|
168
168
|
</MazBtn>
|
|
@@ -224,7 +224,7 @@ async function openDialogResponse() {
|
|
|
224
224
|
You can close the dialog programmatically by calling the close method returned by the open method.
|
|
225
225
|
|
|
226
226
|
<ComponentDemo>
|
|
227
|
-
<div class="maz
|
|
227
|
+
<div class="maz:flex maz:flex-wrap maz:gap-2">
|
|
228
228
|
<MazBtn color="contrast" @click="openAndCloseDialog">
|
|
229
229
|
Open and close dialog
|
|
230
230
|
</MazBtn>
|
|
@@ -313,7 +313,7 @@ type DialogOptions = Partial<Omit<MazDialogConfirmProps, 'modelValue'>> & {
|
|
|
313
313
|
```
|
|
314
314
|
|
|
315
315
|
<script lang="ts" setup>
|
|
316
|
-
import { useDialog, useToast } from 'maz-ui/
|
|
316
|
+
import { useDialog, useToast } from 'maz-ui/composables'
|
|
317
317
|
|
|
318
318
|
const dialog = useDialog()
|
|
319
319
|
const toast = useToast()
|
|
@@ -47,7 +47,7 @@ export default defineNuxtConfig({
|
|
|
47
47
|
## Basic usage
|
|
48
48
|
|
|
49
49
|
<ComponentDemo expanded>
|
|
50
|
-
<div class="maz
|
|
50
|
+
<div class="maz:flex maz:flex-wrap maz:gap-2">
|
|
51
51
|
<MazBtn color="contrast" @click="toast.message('Message text')">
|
|
52
52
|
Message
|
|
53
53
|
</MazBtn>
|
|
@@ -109,7 +109,7 @@ export default defineNuxtConfig({
|
|
|
109
109
|
Toast can have a link or an action
|
|
110
110
|
|
|
111
111
|
<ComponentDemo>
|
|
112
|
-
<div class="maz
|
|
112
|
+
<div class="maz:flex maz:flex-wrap maz:gap-2">
|
|
113
113
|
<MazBtn color="info" @click="showInfoWithLink">
|
|
114
114
|
Toast with link
|
|
115
115
|
</MazBtn>
|
|
@@ -183,7 +183,7 @@ Toast can have a link or an action
|
|
|
183
183
|
|
|
184
184
|
You can close a toast programmatically by using the `close` method returned by the `toast` function
|
|
185
185
|
|
|
186
|
-
<div class="maz
|
|
186
|
+
<div class="maz:flex maz:flex-wrap maz:gap-2">
|
|
187
187
|
<MazBtn color="primary" @click="showToastAutoCLose">
|
|
188
188
|
Show toast
|
|
189
189
|
</MazBtn>
|
package/docs/src/plugins/wait.md
CHANGED
|
@@ -46,7 +46,7 @@ export default defineNuxtConfig({
|
|
|
46
46
|
|
|
47
47
|
<br />
|
|
48
48
|
|
|
49
|
-
<div v-if="submitted" style="padding: 20px; background-color:
|
|
49
|
+
<div v-if="submitted" style="padding: 20px; background-color: var(--maz-surface-300); border-radius: 10px; margin-top: 1rem;">
|
|
50
50
|
Data Submitted
|
|
51
51
|
</div>
|
|
52
52
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maz-ui/mcp",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "5.0.0-beta.1",
|
|
5
5
|
"description": "Maz-UI ModelContextProtocol Client",
|
|
6
6
|
"author": "Louis Mazel <me@loicmazuel.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -42,17 +42,17 @@
|
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
45
|
-
"@maz-ui/node": "
|
|
46
|
-
"@maz-ui/utils": "
|
|
45
|
+
"@maz-ui/node": "5.0.0-beta.1",
|
|
46
|
+
"@maz-ui/utils": "5.0.0-beta.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@modelcontextprotocol/inspector": "^0.21.2",
|
|
50
|
-
"@swc/core": "1.15.
|
|
50
|
+
"@swc/core": "1.15.33",
|
|
51
51
|
"prettier": "^3.8.3",
|
|
52
52
|
"ts-node-maintained": "^10.9.5",
|
|
53
53
|
"tsx": "^4.21.0",
|
|
54
54
|
"unbuild": "^3.6.1",
|
|
55
|
-
"@maz-ui/eslint-config": "
|
|
55
|
+
"@maz-ui/eslint-config": "5.0.0-beta.1"
|
|
56
56
|
},
|
|
57
57
|
"lint-staged": {
|
|
58
58
|
"*.{js,ts,mjs,mts,cjs,md,yml,json}": "cross-env NODE_ENV=production eslint --fix"
|