@maz-ui/mcp 4.9.1 → 5.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/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 -30
- package/docs/src/components/maz-bottom-sheet.md +74 -74
- package/docs/src/components/maz-btn-group.md +17 -13
- package/docs/src/components/maz-btn.md +127 -90
- 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 -10
- package/docs/src/components/maz-pagination.md +2 -2
- package/docs/src/components/maz-popover.md +236 -235
- 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 +100 -0
- package/docs/src/ecosystem/stylelint-config.md +190 -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 +13 -13
- package/docs/src/guide/icons.md +35 -8
- 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 +304 -246
- 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
|
@@ -34,7 +34,7 @@ import MazLink from 'maz-ui/components/MazLink'
|
|
|
34
34
|
## Color
|
|
35
35
|
|
|
36
36
|
<ComponentDemo>
|
|
37
|
-
<div class="maz
|
|
37
|
+
<div class="maz:flex maz:flex-col maz:gap-2 maz:justify-center">
|
|
38
38
|
<MazLink color="primary"> View product detail (primary) </MazLink>
|
|
39
39
|
<MazLink color="secondary"> View product detail (secondary) </MazLink>
|
|
40
40
|
<MazLink color="info"> View product detail (info) </MazLink>
|
|
@@ -43,7 +43,7 @@ import MazLink from 'maz-ui/components/MazLink'
|
|
|
43
43
|
<MazLink color="destructive"> View product detail (destructive) </MazLink>
|
|
44
44
|
<MazLink color="accent"> View product detail (accent) </MazLink>
|
|
45
45
|
<MazLink color="contrast"> View product detail (contrast) </MazLink>
|
|
46
|
-
<MazLink color="
|
|
46
|
+
<MazLink color="surface"> View product detail (surface) </MazLink>
|
|
47
47
|
<MazLink color="muted"> View product detail (muted) </MazLink>
|
|
48
48
|
</div>
|
|
49
49
|
|
|
@@ -58,7 +58,7 @@ import MazLink from 'maz-ui/components/MazLink'
|
|
|
58
58
|
<MazLink color="destructive"> View product detail (destructive) </MazLink>
|
|
59
59
|
<MazLink color="accent"> View product detail (accent) </MazLink>
|
|
60
60
|
<MazLink color="contrast"> View product detail (contrast) </MazLink>
|
|
61
|
-
<MazLink color="
|
|
61
|
+
<MazLink color="surface"> View product detail (surface) </MazLink>
|
|
62
62
|
<MazLink color="muted"> View product detail (muted) </MazLink>
|
|
63
63
|
```
|
|
64
64
|
|
|
@@ -83,26 +83,27 @@ When you use the `to` prop, the component will be a `router-link` and will use t
|
|
|
83
83
|
|
|
84
84
|
## Icons
|
|
85
85
|
|
|
86
|
-
You can add an icon on the left and right to the link text with the `
|
|
86
|
+
You can add an icon on the left and right to the link text with the `start-icon` and `end-icon` props.
|
|
87
87
|
|
|
88
88
|
For more information about the icons, please check the [MazBtn](./maz-btn.md#icons) page.
|
|
89
89
|
|
|
90
90
|
<ComponentDemo>
|
|
91
|
-
<MazLink
|
|
91
|
+
<MazLink start-icon="/home.svg" :end-icon="MazCheck"> View product detail </MazLink>
|
|
92
92
|
|
|
93
93
|
<template #code>
|
|
94
94
|
|
|
95
95
|
```vue
|
|
96
96
|
<script lang="ts" setup>
|
|
97
|
-
import { MazCheck
|
|
97
|
+
import { MazCheck } from '@maz-ui/icons/raw/MazCheck'
|
|
98
|
+
import { MazHome } from '@maz-ui/icons/raw/MazHome'
|
|
98
99
|
</script>
|
|
99
100
|
|
|
100
101
|
<template>
|
|
101
|
-
<MazLink
|
|
102
|
+
<MazLink start-icon="/home.svg" :end-icon="MazHome">
|
|
102
103
|
View product detail
|
|
103
104
|
</MazLink>
|
|
104
105
|
|
|
105
|
-
<MazLink
|
|
106
|
+
<MazLink start-icon="/home.svg" :end-icon="MazHome">
|
|
106
107
|
View product detail
|
|
107
108
|
</MazLink>
|
|
108
109
|
</template>
|
|
@@ -111,6 +112,22 @@ import { MazCheck, MazHome } from '@maz-ui/icons'
|
|
|
111
112
|
</template>
|
|
112
113
|
</ComponentDemo>
|
|
113
114
|
|
|
115
|
+
`startIcon` and `endIcon` also accept a full `MazIconProps` object — pass the same shape `<MazIcon>` accepts to override the icon size, add a `<title>` for screen readers, etc.
|
|
116
|
+
|
|
117
|
+
```vue
|
|
118
|
+
<MazLink
|
|
119
|
+
href="/external"
|
|
120
|
+
:end-icon="{
|
|
121
|
+
icon: MazArrowRight,
|
|
122
|
+
size: 'lg',
|
|
123
|
+
title: 'Go to external page',
|
|
124
|
+
flipIconForRtl: true,
|
|
125
|
+
}"
|
|
126
|
+
>
|
|
127
|
+
Read more
|
|
128
|
+
</MazLink>
|
|
129
|
+
```
|
|
130
|
+
|
|
114
131
|
## External icon (true by default)
|
|
115
132
|
|
|
116
133
|
When you use the `autoExternal` prop, the component will have an external icon if the link has the target `_blank`.
|
|
@@ -132,7 +149,7 @@ When you use the `autoExternal` prop, the component will have an external icon i
|
|
|
132
149
|
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.
|
|
133
150
|
|
|
134
151
|
<ComponentDemo>
|
|
135
|
-
<div class="maz
|
|
152
|
+
<div class="maz:flex maz:flex-col maz:gap-2 maz:justify-center">
|
|
136
153
|
<MazLink as="button"> View product detail </MazLink>
|
|
137
154
|
<MazLink as="button" disabled> View product detail </MazLink>
|
|
138
155
|
</div>
|
|
@@ -154,7 +171,8 @@ If no `to` or `href` is provided, the component will be a `button` by default. Y
|
|
|
154
171
|
</ComponentDemo>
|
|
155
172
|
|
|
156
173
|
<script setup lang="ts">
|
|
157
|
-
import { MazCheck
|
|
174
|
+
import { MazCheck } from '@maz-ui/icons/raw/MazCheck'
|
|
175
|
+
import { MazHome } from '@maz-ui/icons/raw/MazHome'
|
|
158
176
|
</script>
|
|
159
177
|
|
|
160
178
|
<!--@include: ./../../.vitepress/generated-docs/maz-link.doc.md-->
|
|
@@ -38,7 +38,7 @@ const props: MazPaginationProps = {
|
|
|
38
38
|
|
|
39
39
|
## Sizes
|
|
40
40
|
|
|
41
|
-
<div class="maz
|
|
41
|
+
<div class="maz:flex maz:flex-col maz:gap-4">
|
|
42
42
|
<MazPagination v-bind="props" v-model="currentPage" size="xs" />
|
|
43
43
|
<MazPagination v-bind="props" v-model="currentPage" size="sm" />
|
|
44
44
|
<MazPagination v-bind="props" v-model="currentPage" size="md" />
|
|
@@ -56,7 +56,7 @@ const props: MazPaginationProps = {
|
|
|
56
56
|
|
|
57
57
|
## Colors
|
|
58
58
|
|
|
59
|
-
<div class="maz
|
|
59
|
+
<div class="maz:flex maz:flex-col maz:gap-4">
|
|
60
60
|
<MazPagination :total-pages="10" v-model="currentPage" active-color="primary" />
|
|
61
61
|
<MazPagination :total-pages="10" v-model="currentPage" active-color="secondary" />
|
|
62
62
|
<MazPagination :total-pages="10" v-model="currentPage" active-color="success" />
|