@maz-ui/mcp 4.0.0-beta.26
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 +264 -0
- package/bin/maz-ui-mcp.mjs +7 -0
- package/dist/mcp.d.mts +13 -0
- package/dist/mcp.d.ts +13 -0
- package/dist/mcp.mjs +586 -0
- package/docs/generated-docs/maz-accordion.doc.md +21 -0
- package/docs/generated-docs/maz-animated-counter.doc.md +17 -0
- package/docs/generated-docs/maz-animated-element.doc.md +14 -0
- package/docs/generated-docs/maz-animated-text.doc.md +14 -0
- package/docs/generated-docs/maz-avatar.doc.md +44 -0
- package/docs/generated-docs/maz-backdrop.doc.md +61 -0
- package/docs/generated-docs/maz-badge.doc.md +16 -0
- package/docs/generated-docs/maz-bottom-sheet.doc.md +21 -0
- package/docs/generated-docs/maz-btn.doc.md +30 -0
- package/docs/generated-docs/maz-card-spotlight.doc.md +16 -0
- package/docs/generated-docs/maz-card.doc.md +39 -0
- package/docs/generated-docs/maz-carousel.doc.md +16 -0
- package/docs/generated-docs/maz-chart.doc.md +10 -0
- package/docs/generated-docs/maz-checkbox.doc.md +34 -0
- package/docs/generated-docs/maz-checklist.doc.md +30 -0
- package/docs/generated-docs/maz-circular-progress-bar.doc.md +27 -0
- package/docs/generated-docs/maz-date-picker.doc.md +52 -0
- package/docs/generated-docs/maz-dialog-confirm.doc.md +24 -0
- package/docs/generated-docs/maz-dialog.doc.md +22 -0
- package/docs/generated-docs/maz-drawer.doc.md +26 -0
- package/docs/generated-docs/maz-dropdown.doc.md +42 -0
- package/docs/generated-docs/maz-dropzone.doc.md +82 -0
- package/docs/generated-docs/maz-expand-animation.doc.md +12 -0
- package/docs/generated-docs/maz-fullscreen-loader.doc.md +13 -0
- package/docs/generated-docs/maz-gallery.doc.md +17 -0
- package/docs/generated-docs/maz-icon.doc.md +18 -0
- package/docs/generated-docs/maz-input-code.doc.md +25 -0
- package/docs/generated-docs/maz-input-number.doc.md +31 -0
- package/docs/generated-docs/maz-input-phone-number.doc.md +56 -0
- package/docs/generated-docs/maz-input-price.doc.md +26 -0
- package/docs/generated-docs/maz-input-tags.doc.md +24 -0
- package/docs/generated-docs/maz-input.doc.md +54 -0
- package/docs/generated-docs/maz-lazy-img.doc.md +31 -0
- package/docs/generated-docs/maz-link.doc.md +31 -0
- package/docs/generated-docs/maz-loading-bar.doc.md +6 -0
- package/docs/generated-docs/maz-pagination.doc.md +22 -0
- package/docs/generated-docs/maz-popover.doc.md +70 -0
- package/docs/generated-docs/maz-pull-to-refresh.doc.md +31 -0
- package/docs/generated-docs/maz-radio-buttons.doc.md +33 -0
- package/docs/generated-docs/maz-radio.doc.md +33 -0
- package/docs/generated-docs/maz-reading-progress-bar.doc.md +18 -0
- package/docs/generated-docs/maz-select-country.doc.md +44 -0
- package/docs/generated-docs/maz-select.doc.md +65 -0
- package/docs/generated-docs/maz-slider.doc.md +20 -0
- package/docs/generated-docs/maz-spinner.doc.md +6 -0
- package/docs/generated-docs/maz-stepper.doc.md +29 -0
- package/docs/generated-docs/maz-switch.doc.md +31 -0
- package/docs/generated-docs/maz-table-cell.doc.md +5 -0
- package/docs/generated-docs/maz-table-row.doc.md +11 -0
- package/docs/generated-docs/maz-table-title.doc.md +5 -0
- package/docs/generated-docs/maz-table.doc.md +66 -0
- package/docs/generated-docs/maz-tabs-bar.doc.md +18 -0
- package/docs/generated-docs/maz-tabs-content-item.doc.md +11 -0
- package/docs/generated-docs/maz-tabs-content.doc.md +5 -0
- package/docs/generated-docs/maz-tabs.doc.md +17 -0
- package/docs/generated-docs/maz-textarea.doc.md +41 -0
- package/docs/src/components/index.md +8 -0
- package/docs/src/components/maz-accordion.md +80 -0
- package/docs/src/components/maz-animated-counter.md +124 -0
- package/docs/src/components/maz-animated-element.md +36 -0
- package/docs/src/components/maz-animated-text.md +36 -0
- package/docs/src/components/maz-avatar.md +179 -0
- package/docs/src/components/maz-backdrop.md +16 -0
- package/docs/src/components/maz-badge.md +222 -0
- package/docs/src/components/maz-bottom-sheet.md +398 -0
- package/docs/src/components/maz-btn.md +526 -0
- package/docs/src/components/maz-card-spotlight.md +163 -0
- package/docs/src/components/maz-card.md +447 -0
- package/docs/src/components/maz-carousel.md +127 -0
- package/docs/src/components/maz-chart.md +346 -0
- package/docs/src/components/maz-checkbox.md +168 -0
- package/docs/src/components/maz-checklist.md +414 -0
- package/docs/src/components/maz-circular-progress-bar.md +147 -0
- package/docs/src/components/maz-date-picker.md +1078 -0
- package/docs/src/components/maz-dialog-confirm.md +240 -0
- package/docs/src/components/maz-dialog.md +208 -0
- package/docs/src/components/maz-drawer.md +177 -0
- package/docs/src/components/maz-dropdown.md +650 -0
- package/docs/src/components/maz-dropzone.md +442 -0
- package/docs/src/components/maz-expand-animation.md +99 -0
- package/docs/src/components/maz-fullscreen-loader.md +58 -0
- package/docs/src/components/maz-gallery.md +85 -0
- package/docs/src/components/maz-icon.md +85 -0
- package/docs/src/components/maz-input-code.md +61 -0
- package/docs/src/components/maz-input-number.md +81 -0
- package/docs/src/components/maz-input-phone-number.md +867 -0
- package/docs/src/components/maz-input-price.md +58 -0
- package/docs/src/components/maz-input-tags.md +114 -0
- package/docs/src/components/maz-input.md +453 -0
- package/docs/src/components/maz-lazy-img.md +24 -0
- package/docs/src/components/maz-link.md +156 -0
- package/docs/src/components/maz-loading-bar.md +26 -0
- package/docs/src/components/maz-pagination.md +81 -0
- package/docs/src/components/maz-popover.md +1414 -0
- package/docs/src/components/maz-pull-to-refresh.md +49 -0
- package/docs/src/components/maz-radio-buttons.md +456 -0
- package/docs/src/components/maz-radio.md +141 -0
- package/docs/src/components/maz-reading-progress-bar.md +74 -0
- package/docs/src/components/maz-select-country.md +636 -0
- package/docs/src/components/maz-select.md +439 -0
- package/docs/src/components/maz-slider.md +191 -0
- package/docs/src/components/maz-spinner.md +93 -0
- package/docs/src/components/maz-stepper.md +418 -0
- package/docs/src/components/maz-switch.md +92 -0
- package/docs/src/components/maz-table.md +571 -0
- package/docs/src/components/maz-tabs.md +231 -0
- package/docs/src/components/maz-textarea.md +218 -0
- package/docs/src/composables/use-aos.md +34 -0
- package/docs/src/composables/use-breakpoints.md +35 -0
- package/docs/src/composables/use-dialog.md +88 -0
- package/docs/src/composables/use-display-names.md +174 -0
- package/docs/src/composables/use-form-validator.md +1149 -0
- package/docs/src/composables/use-idle-timeout.md +256 -0
- package/docs/src/composables/use-reading-time.md +168 -0
- package/docs/src/composables/use-string-matching.md +63 -0
- package/docs/src/composables/use-swipe.md +223 -0
- package/docs/src/composables/use-timer.md +130 -0
- package/docs/src/composables/use-toast.md +71 -0
- package/docs/src/composables/use-user-visibility.md +169 -0
- package/docs/src/composables/use-wait.md +62 -0
- package/docs/src/composables/use-window-size.md +18 -0
- package/docs/src/demo/DemoAuthPage.vue +178 -0
- package/docs/src/demo/DemoDashboardPage.vue +298 -0
- package/docs/src/demo/DemoProductPage.vue +135 -0
- package/docs/src/directives/click-outside.md +275 -0
- package/docs/src/directives/fullscreen-img.md +101 -0
- package/docs/src/directives/lazy-img.md +184 -0
- package/docs/src/directives/tooltip.md +458 -0
- package/docs/src/directives/zoom-img.md +127 -0
- package/docs/src/guide/cli.md +144 -0
- package/docs/src/guide/getting-started.md +284 -0
- package/docs/src/guide/icon-set.md +60 -0
- package/docs/src/guide/icons.md +481 -0
- package/docs/src/guide/mcp.md +210 -0
- package/docs/src/guide/migration-v4.md +898 -0
- package/docs/src/guide/nuxt.md +411 -0
- package/docs/src/guide/resolvers.md +697 -0
- package/docs/src/guide/themes.md +789 -0
- package/docs/src/guide/translations.md +1173 -0
- package/docs/src/guide/vue.md +243 -0
- package/docs/src/helpers/camel-case.md +14 -0
- package/docs/src/helpers/capitalize.md +51 -0
- package/docs/src/helpers/check-availability.md +14 -0
- package/docs/src/helpers/country-code-to-unicode-flag.md +213 -0
- package/docs/src/helpers/currency.md +67 -0
- package/docs/src/helpers/date.md +67 -0
- package/docs/src/helpers/debounce-callback.md +14 -0
- package/docs/src/helpers/debounce-id.md +14 -0
- package/docs/src/helpers/debounce.md +14 -0
- package/docs/src/helpers/get-country-flag-url.md +156 -0
- package/docs/src/helpers/is-client.md +14 -0
- package/docs/src/helpers/is-equal.md +14 -0
- package/docs/src/helpers/is-standalone-mode.md +14 -0
- package/docs/src/helpers/kebab-case.md +14 -0
- package/docs/src/helpers/normalize-string.md +14 -0
- package/docs/src/helpers/number.md +65 -0
- package/docs/src/helpers/pascal-case.md +14 -0
- package/docs/src/helpers/script-loader.md +14 -0
- package/docs/src/helpers/sleep.md +14 -0
- package/docs/src/helpers/snake-case.md +14 -0
- package/docs/src/helpers/throttle-id.md +14 -0
- package/docs/src/helpers/throttle.md +14 -0
- package/docs/src/index.md +555 -0
- package/docs/src/made-with-maz-ui.md +58 -0
- package/docs/src/plugins/aos.md +347 -0
- package/docs/src/plugins/dialog.md +411 -0
- package/docs/src/plugins/toast.md +349 -0
- package/docs/src/plugins/wait.md +109 -0
- package/package.json +84 -0
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: MazLink
|
|
3
|
+
description: MazLink is a standalone component to create links and buttons.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# {{ $frontmatter.title }}
|
|
7
|
+
|
|
8
|
+
{{ $frontmatter.description }}
|
|
9
|
+
|
|
10
|
+
<!--@include: ./../.vitepress/mixins/getting-started.md-->
|
|
11
|
+
|
|
12
|
+
## Basic usage
|
|
13
|
+
|
|
14
|
+
<ComponentDemo expanded>
|
|
15
|
+
<MazLink href="https://maz-ui.com" target="_blank"> View product detail </MazLink>
|
|
16
|
+
|
|
17
|
+
<template #code>
|
|
18
|
+
|
|
19
|
+
```vue
|
|
20
|
+
<script lang="ts" setup>
|
|
21
|
+
import MazLink from 'maz-ui/components/MazLink'
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<template>
|
|
25
|
+
<MazLink href="https://maz-ui.com" target="_blank">
|
|
26
|
+
View product detail
|
|
27
|
+
</MazLink>
|
|
28
|
+
</template>
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
</template>
|
|
32
|
+
</ComponentDemo>
|
|
33
|
+
|
|
34
|
+
## Color
|
|
35
|
+
|
|
36
|
+
<ComponentDemo>
|
|
37
|
+
<div class="maz-flex maz-flex-col maz-gap-2 maz-justify-center">
|
|
38
|
+
<MazLink color="primary"> View product detail </MazLink>
|
|
39
|
+
<MazLink color="secondary"> View product detail </MazLink>
|
|
40
|
+
<MazLink color="info"> View product detail </MazLink>
|
|
41
|
+
<MazLink color="success"> View product detail </MazLink>
|
|
42
|
+
<MazLink color="warning"> View product detail </MazLink>
|
|
43
|
+
<MazLink color="destructive"> View product detail </MazLink>
|
|
44
|
+
<MazLink color="accent"> View product detail </MazLink>
|
|
45
|
+
<MazLink color="contrast"> View product detail </MazLink>
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
<template #code>
|
|
49
|
+
|
|
50
|
+
```html
|
|
51
|
+
<MazLink color="primary"> View product detail </MazLink>
|
|
52
|
+
<MazLink color="secondary"> View product detail </MazLink>
|
|
53
|
+
<MazLink color="info"> View product detail </MazLink>
|
|
54
|
+
<MazLink color="success"> View product detail </MazLink>
|
|
55
|
+
<MazLink color="warning"> View product detail </MazLink>
|
|
56
|
+
<MazLink color="destructive"> View product detail </MazLink>
|
|
57
|
+
<MazLink color="accent"> View product detail </MazLink>
|
|
58
|
+
<MazLink color="contrast"> View product detail </MazLink>
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
</template>
|
|
62
|
+
</ComponentDemo>
|
|
63
|
+
|
|
64
|
+
## RouterLink
|
|
65
|
+
|
|
66
|
+
When you use the `to` prop, the component will be a `router-link` and will use the `router` to navigate.
|
|
67
|
+
|
|
68
|
+
<ComponentDemo>
|
|
69
|
+
<MazLink :to="{ path: '/' }"> View product detail </MazLink>
|
|
70
|
+
|
|
71
|
+
<template #code>
|
|
72
|
+
|
|
73
|
+
```html
|
|
74
|
+
<MazLink :to="{ path: '/' }"> View product detail </MazLink>
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
</template>
|
|
78
|
+
</ComponentDemo>
|
|
79
|
+
|
|
80
|
+
## Icons
|
|
81
|
+
|
|
82
|
+
You can add an icon on the left and right to the link text with the `left-icon` and `right-icon` props.
|
|
83
|
+
|
|
84
|
+
For more information about the icons, please check the [MazBtn](./maz-btn.md#icons) page.
|
|
85
|
+
|
|
86
|
+
<ComponentDemo>
|
|
87
|
+
<MazLink left-icon="home" :right-icon="MazCheck"> View product detail </MazLink>
|
|
88
|
+
|
|
89
|
+
<template #code>
|
|
90
|
+
|
|
91
|
+
```vue
|
|
92
|
+
<script lang="ts" setup>
|
|
93
|
+
import { MazCheck, MazHome } from '@maz-ui/icons'
|
|
94
|
+
</script>
|
|
95
|
+
|
|
96
|
+
<template>
|
|
97
|
+
<MazLink left-icon="home" :right-icon="MazHome">
|
|
98
|
+
View product detail
|
|
99
|
+
</MazLink>
|
|
100
|
+
|
|
101
|
+
<MazLink left-icon="home" :right-icon="MazHome">
|
|
102
|
+
View product detail
|
|
103
|
+
</MazLink>
|
|
104
|
+
</template>
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
</template>
|
|
108
|
+
</ComponentDemo>
|
|
109
|
+
|
|
110
|
+
## External icon (true by default)
|
|
111
|
+
|
|
112
|
+
When you use the `autoExternal` prop, the component will have an external icon if the link has the target `_blank`.
|
|
113
|
+
|
|
114
|
+
<ComponentDemo>
|
|
115
|
+
<MazLink href="https://loicmazuel.com" target="_blank" auto-external> View product detail </MazLink>
|
|
116
|
+
|
|
117
|
+
<template #code>
|
|
118
|
+
|
|
119
|
+
```html
|
|
120
|
+
<MazLink href="https://loicmazuel.com" target="_blank" auto-external> View product detail </MazLink>
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
</template>
|
|
124
|
+
</ComponentDemo>
|
|
125
|
+
|
|
126
|
+
## As button
|
|
127
|
+
|
|
128
|
+
If no `to` or `href` is provided, the component will be a `button` by default. You can force the component to be a `button`, `a`, `router-link` or `nuxt-link` with the `as` prop.
|
|
129
|
+
|
|
130
|
+
<ComponentDemo>
|
|
131
|
+
<div class="maz-flex maz-flex-col maz-gap-2 maz-justify-center">
|
|
132
|
+
<MazLink as="button"> View product detail </MazLink>
|
|
133
|
+
<MazLink as="button" disabled> View product detail </MazLink>
|
|
134
|
+
</div>
|
|
135
|
+
|
|
136
|
+
<template #code>
|
|
137
|
+
|
|
138
|
+
```vue
|
|
139
|
+
<script lang="ts" setup>
|
|
140
|
+
import MazLink from 'maz-ui/components/MazLink'
|
|
141
|
+
</script>
|
|
142
|
+
|
|
143
|
+
<template>
|
|
144
|
+
<MazLink as="button"> View product detail </MazLink>
|
|
145
|
+
<MazLink as="button" disabled> View product detail </MazLink>
|
|
146
|
+
</template>
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
</template>
|
|
150
|
+
</ComponentDemo>
|
|
151
|
+
|
|
152
|
+
<script setup lang="ts">
|
|
153
|
+
import { MazCheck, MazHome } from '@maz-ui/icons'
|
|
154
|
+
</script>
|
|
155
|
+
|
|
156
|
+
<!--@include: ./../../.vitepress/generated-docs/maz-link.doc.md-->
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: MazLoadingBar
|
|
3
|
+
description: MazLoadingBar is a standalone component
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# {{ $frontmatter.title }}
|
|
7
|
+
|
|
8
|
+
{{ $frontmatter.description }}
|
|
9
|
+
|
|
10
|
+
<!--@include: ./../.vitepress/mixins/getting-started.md-->
|
|
11
|
+
|
|
12
|
+
## Basic usage
|
|
13
|
+
|
|
14
|
+
<MazLoadingBar color="secondary" />
|
|
15
|
+
|
|
16
|
+
```vue
|
|
17
|
+
<script lang="ts" setup>
|
|
18
|
+
import { MazLoadingBar } from 'maz-ui/components'
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<template>
|
|
22
|
+
<MazLoadingBar color="secondary" />
|
|
23
|
+
</template>
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
<!--@include: ./../../.vitepress/generated-docs/maz-loading-bar.doc.md-->
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: MazPagination
|
|
3
|
+
description: MazPagination is a standalone component
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# {{ $frontmatter.title }}
|
|
7
|
+
|
|
8
|
+
{{ $frontmatter.description }}
|
|
9
|
+
|
|
10
|
+
<!--@include: ./../.vitepress/mixins/getting-started.md-->
|
|
11
|
+
|
|
12
|
+
<!--@include: ./../.vitepress/mixins/translated-component.md-->
|
|
13
|
+
|
|
14
|
+
## Basic usage
|
|
15
|
+
|
|
16
|
+
<MazPagination v-bind="props" v-model="currentPage" size="md" />
|
|
17
|
+
|
|
18
|
+
`v-model="{{currentPage}}"`
|
|
19
|
+
|
|
20
|
+
```vue
|
|
21
|
+
<script lang="ts" setup>
|
|
22
|
+
import { MazPagination, type MazPaginationProps } from 'maz-ui/components'
|
|
23
|
+
|
|
24
|
+
import { ref } from 'vue'
|
|
25
|
+
|
|
26
|
+
const currentPage = ref(1)
|
|
27
|
+
|
|
28
|
+
const props: MazPaginationProps = {
|
|
29
|
+
resultsSize: 100,
|
|
30
|
+
totalPages: 10,
|
|
31
|
+
activeColor: 'contrast',
|
|
32
|
+
}
|
|
33
|
+
</script>
|
|
34
|
+
|
|
35
|
+
<template>
|
|
36
|
+
<MazPagination v-bind="props" v-model="currentPage" size="md" />
|
|
37
|
+
</template>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Sizes
|
|
41
|
+
|
|
42
|
+
<div class="maz-flex maz-flex-col maz-gap-4">
|
|
43
|
+
<MazPagination v-bind="props" v-model="currentPage" size="xs" />
|
|
44
|
+
<MazPagination v-bind="props" v-model="currentPage" size="sm" />
|
|
45
|
+
<MazPagination v-bind="props" v-model="currentPage" size="md" />
|
|
46
|
+
<MazPagination v-bind="props" v-model="currentPage" size="lg" />
|
|
47
|
+
<MazPagination v-bind="props" v-model="currentPage" size="xl" />
|
|
48
|
+
</div>
|
|
49
|
+
|
|
50
|
+
```html
|
|
51
|
+
<MazPagination v-bind="props" v-model="currentPage" size="xs" />
|
|
52
|
+
<MazPagination v-bind="props" v-model="currentPage" size="sm" />
|
|
53
|
+
<MazPagination v-bind="props" v-model="currentPage" size="md" />
|
|
54
|
+
<MazPagination v-bind="props" v-model="currentPage" size="lg" />
|
|
55
|
+
<MazPagination v-bind="props" v-model="currentPage" size="xl" />
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Colors
|
|
59
|
+
|
|
60
|
+
<div class="maz-flex maz-flex-col maz-gap-4">
|
|
61
|
+
<MazPagination :total-pages="10" v-model="currentPage" active-color="primary" />
|
|
62
|
+
<MazPagination :total-pages="10" v-model="currentPage" active-color="secondary" />
|
|
63
|
+
<MazPagination :total-pages="10" v-model="currentPage" active-color="success" />
|
|
64
|
+
<MazPagination :total-pages="10" v-model="currentPage" active-color="warning" />
|
|
65
|
+
<MazPagination :total-pages="10" v-model="currentPage" active-color="destructive" />
|
|
66
|
+
</div>
|
|
67
|
+
|
|
68
|
+
<script lang="ts" setup>
|
|
69
|
+
import type { MazPaginationProps } from 'maz-ui/components'
|
|
70
|
+
import { ref } from 'vue'
|
|
71
|
+
|
|
72
|
+
const currentPage = ref(1)
|
|
73
|
+
|
|
74
|
+
const props: Props = {
|
|
75
|
+
resultsSize: 100,
|
|
76
|
+
totalPages: 10,
|
|
77
|
+
activeColor: 'contrast',
|
|
78
|
+
}
|
|
79
|
+
</script>
|
|
80
|
+
|
|
81
|
+
<!--@include: ./../../.vitepress/generated-docs/maz-pagination.doc.md-->
|