@maz-ui/mcp 4.4.0 → 4.6.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 +20 -0
- package/docs/generated-docs/maz-container.doc.md +25 -0
- package/docs/generated-docs/maz-input-number.doc.md +21 -19
- package/docs/generated-docs/maz-read-more.doc.md +18 -0
- package/docs/generated-docs/maz-skeleton.doc.md +12 -0
- package/docs/src/blog/v4.md +1 -1
- package/docs/src/components/maz-accordion.md +1 -1
- package/docs/src/components/maz-alert.md +374 -0
- package/docs/src/components/maz-animated-counter.md +1 -1
- package/docs/src/components/maz-animated-element.md +1 -1
- package/docs/src/components/maz-animated-text.md +1 -1
- package/docs/src/components/maz-avatar.md +1 -1
- package/docs/src/components/maz-backdrop.md +2 -2
- package/docs/src/components/maz-badge.md +1 -1
- package/docs/src/components/maz-bottom-sheet.md +1 -1
- package/docs/src/components/maz-btn-group.md +1 -1
- package/docs/src/components/maz-btn.md +1 -1
- package/docs/src/components/maz-card-spotlight.md +1 -1
- package/docs/src/components/maz-card.md +1 -1
- package/docs/src/components/maz-carousel.md +2 -2
- package/docs/src/components/maz-checkbox.md +1 -1
- package/docs/src/components/maz-checklist.md +2 -2
- package/docs/src/components/maz-circular-progress-bar.md +1 -1
- package/docs/src/components/maz-container.md +348 -0
- package/docs/src/components/maz-date-picker.md +3 -3
- package/docs/src/components/maz-dialog-confirm.md +1 -1
- package/docs/src/components/maz-dialog.md +1 -1
- package/docs/src/components/maz-drawer.md +1 -1
- package/docs/src/components/maz-dropdown.md +2 -2
- package/docs/src/components/maz-dropzone.md +4 -4
- package/docs/src/components/maz-expand-animation.md +1 -1
- package/docs/src/components/maz-fullscreen-loader.md +1 -1
- package/docs/src/components/maz-gallery.md +1 -1
- package/docs/src/components/maz-input-code.md +1 -1
- package/docs/src/components/maz-input-number.md +2 -2
- package/docs/src/components/maz-input-phone-number.md +3 -3
- package/docs/src/components/maz-input-price.md +2 -2
- package/docs/src/components/maz-input-tags.md +2 -2
- package/docs/src/components/maz-input.md +1 -1
- package/docs/src/components/maz-lazy-img.md +1 -1
- package/docs/src/components/maz-link.md +1 -1
- package/docs/src/components/maz-loading-bar.md +1 -1
- package/docs/src/components/maz-pagination.md +2 -2
- package/docs/src/components/maz-pull-to-refresh.md +1 -1
- package/docs/src/components/maz-radio-buttons.md +1 -1
- package/docs/src/components/maz-radio.md +1 -1
- package/docs/src/components/maz-read-more.md +300 -0
- package/docs/src/components/maz-reading-progress-bar.md +1 -1
- package/docs/src/components/maz-select-country.md +1 -1
- package/docs/src/components/maz-select.md +3 -3
- package/docs/src/components/maz-skeleton.md +355 -0
- package/docs/src/components/maz-slider.md +1 -1
- package/docs/src/components/maz-stepper.md +1 -1
- package/docs/src/components/maz-switch.md +1 -1
- package/docs/src/components/maz-table.md +1 -1
- package/docs/src/components/maz-textarea.md +1 -1
- package/docs/src/composables/use-aos.md +1 -1
- package/docs/src/composables/use-form-validator.md +1226 -996
- package/docs/src/composables/use-wait.md +1 -1
- package/docs/src/guide/getting-started.md +8 -9
- package/docs/src/guide/resolvers.md +20 -0
- package/docs/src/plugins/toast.md +1 -1
- package/package.json +8 -8
|
@@ -7,7 +7,7 @@ description: MazCardSpotlight is a standalone component
|
|
|
7
7
|
|
|
8
8
|
{{ $frontmatter.description }}
|
|
9
9
|
|
|
10
|
-
<!--@include:
|
|
10
|
+
<!--@include: ./../../.vitepress/mixins/getting-started.md-->
|
|
11
11
|
|
|
12
12
|
**This component is better in dark mode**
|
|
13
13
|
|
|
@@ -7,7 +7,7 @@ description: MazCard is a standalone component to display some texts and images
|
|
|
7
7
|
|
|
8
8
|
{{ $frontmatter.description }}
|
|
9
9
|
|
|
10
|
-
<!--@include:
|
|
10
|
+
<!--@include: ./../../.vitepress/mixins/getting-started.md-->
|
|
11
11
|
|
|
12
12
|
## Basic usage
|
|
13
13
|
|
|
@@ -17,9 +17,9 @@ head:
|
|
|
17
17
|
|
|
18
18
|
{{ $frontmatter.description }}
|
|
19
19
|
|
|
20
|
-
<!--@include:
|
|
20
|
+
<!--@include: ./../../.vitepress/mixins/getting-started.md-->
|
|
21
21
|
|
|
22
|
-
<!--@include:
|
|
22
|
+
<!--@include: ./../../.vitepress/mixins/translated-component.md-->
|
|
23
23
|
|
|
24
24
|
## Basic usage
|
|
25
25
|
|
|
@@ -7,7 +7,7 @@ description: MazCheckbox is a standalone component that replaces the standard ht
|
|
|
7
7
|
|
|
8
8
|
{{ $frontmatter.description }}
|
|
9
9
|
|
|
10
|
-
<!--@include:
|
|
10
|
+
<!--@include: ./../../.vitepress/mixins/getting-started.md-->
|
|
11
11
|
|
|
12
12
|
## Basic usage
|
|
13
13
|
|
|
@@ -8,9 +8,9 @@ lastUpdated: false
|
|
|
8
8
|
|
|
9
9
|
{{ $frontmatter.description }}
|
|
10
10
|
|
|
11
|
-
<!--@include:
|
|
11
|
+
<!--@include: ./../../.vitepress/mixins/getting-started.md-->
|
|
12
12
|
|
|
13
|
-
<!--@include:
|
|
13
|
+
<!--@include: ./../../.vitepress/mixins/translated-component.md-->
|
|
14
14
|
|
|
15
15
|
## Basic usage
|
|
16
16
|
|
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: MazContainer
|
|
3
|
+
description: MazContainer is a lightweight component to wrap content with optional header, border, elevation, and rounded corners - a simpler alternative to MazCard
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# {{ $frontmatter.title }}
|
|
7
|
+
|
|
8
|
+
{{ $frontmatter.description }}
|
|
9
|
+
|
|
10
|
+
<!--@include: ./../../.vitepress/mixins/getting-started.md-->
|
|
11
|
+
|
|
12
|
+
::: tip
|
|
13
|
+
MazContainer is designed to be a lighter alternative to [MazCard](/components/maz-card.html). Use it when you need a simple container with basic styling options without the extra features like galleries, collapsible content, or actions.
|
|
14
|
+
:::
|
|
15
|
+
|
|
16
|
+
## Basic usage
|
|
17
|
+
|
|
18
|
+
<ComponentDemo>
|
|
19
|
+
<MazContainer>
|
|
20
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.
|
|
21
|
+
</MazContainer>
|
|
22
|
+
|
|
23
|
+
<template #code>
|
|
24
|
+
|
|
25
|
+
```vue
|
|
26
|
+
<template>
|
|
27
|
+
<MazContainer>
|
|
28
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
|
|
29
|
+
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.
|
|
30
|
+
</MazContainer>
|
|
31
|
+
</template>
|
|
32
|
+
|
|
33
|
+
<script lang="ts" setup>
|
|
34
|
+
import MazContainer from 'maz-ui/components/MazContainer'
|
|
35
|
+
</script>
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
</template>
|
|
39
|
+
</ComponentDemo>
|
|
40
|
+
|
|
41
|
+
## With title
|
|
42
|
+
|
|
43
|
+
Add a header with a title using the `title` prop or the `title` slot.
|
|
44
|
+
|
|
45
|
+
<ComponentDemo>
|
|
46
|
+
<MazContainer title="Section Title">
|
|
47
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.
|
|
48
|
+
</MazContainer>
|
|
49
|
+
|
|
50
|
+
<template #code>
|
|
51
|
+
|
|
52
|
+
```vue
|
|
53
|
+
<template>
|
|
54
|
+
<MazContainer title="Section Title">
|
|
55
|
+
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
|
|
56
|
+
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.
|
|
57
|
+
</MazContainer>
|
|
58
|
+
</template>
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
</template>
|
|
62
|
+
</ComponentDemo>
|
|
63
|
+
|
|
64
|
+
## With icons
|
|
65
|
+
|
|
66
|
+
Add icons to the header using `left-icon` and `right-icon` props.
|
|
67
|
+
|
|
68
|
+
<ComponentDemo>
|
|
69
|
+
<div class="maz-flex maz-flex-col maz-gap-4">
|
|
70
|
+
<MazContainer title="Settings" left-icon="cog-6-tooth">
|
|
71
|
+
Configure your application settings here.
|
|
72
|
+
</MazContainer>
|
|
73
|
+
<MazContainer title="User Profile" left-icon="user" right-icon="pencil">
|
|
74
|
+
View and edit your profile information.
|
|
75
|
+
</MazContainer>
|
|
76
|
+
</div>
|
|
77
|
+
|
|
78
|
+
<template #code>
|
|
79
|
+
|
|
80
|
+
```vue
|
|
81
|
+
<template>
|
|
82
|
+
<MazContainer title="Settings" left-icon="cog-6-tooth">
|
|
83
|
+
Configure your application settings here.
|
|
84
|
+
</MazContainer>
|
|
85
|
+
|
|
86
|
+
<MazContainer title="User Profile" left-icon="user" right-icon="pencil">
|
|
87
|
+
View and edit your profile information.
|
|
88
|
+
</MazContainer>
|
|
89
|
+
</template>
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
</template>
|
|
93
|
+
</ComponentDemo>
|
|
94
|
+
|
|
95
|
+
## Styling options
|
|
96
|
+
|
|
97
|
+
### Elevation
|
|
98
|
+
|
|
99
|
+
Add shadow to make the container stand out.
|
|
100
|
+
|
|
101
|
+
<ComponentDemo>
|
|
102
|
+
<MazContainer elevation :bordered="false">
|
|
103
|
+
Container with elevation effect and no border.
|
|
104
|
+
</MazContainer>
|
|
105
|
+
|
|
106
|
+
<template #code>
|
|
107
|
+
|
|
108
|
+
```vue
|
|
109
|
+
<template>
|
|
110
|
+
<MazContainer elevation :bordered="false">
|
|
111
|
+
Container with elevation effect and no border.
|
|
112
|
+
</MazContainer>
|
|
113
|
+
</template>
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
</template>
|
|
117
|
+
</ComponentDemo>
|
|
118
|
+
|
|
119
|
+
### Bordered
|
|
120
|
+
|
|
121
|
+
By default, the container has a border. You can disable it.
|
|
122
|
+
|
|
123
|
+
<ComponentDemo>
|
|
124
|
+
<div class="maz-flex maz-flex-col maz-gap-4">
|
|
125
|
+
<MazContainer title="With border (default)">
|
|
126
|
+
This container has a border.
|
|
127
|
+
</MazContainer>
|
|
128
|
+
<MazContainer title="Without border" :bordered="false">
|
|
129
|
+
This container has no border.
|
|
130
|
+
</MazContainer>
|
|
131
|
+
</div>
|
|
132
|
+
|
|
133
|
+
<template #code>
|
|
134
|
+
|
|
135
|
+
```vue
|
|
136
|
+
<template>
|
|
137
|
+
<MazContainer title="With border (default)">
|
|
138
|
+
This container has a border.
|
|
139
|
+
</MazContainer>
|
|
140
|
+
|
|
141
|
+
<MazContainer title="Without border" :bordered="false">
|
|
142
|
+
This container has no border.
|
|
143
|
+
</MazContainer>
|
|
144
|
+
</template>
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
</template>
|
|
148
|
+
</ComponentDemo>
|
|
149
|
+
|
|
150
|
+
### Transparent
|
|
151
|
+
|
|
152
|
+
Remove the background color with the `transparent` prop.
|
|
153
|
+
|
|
154
|
+
<ComponentDemo>
|
|
155
|
+
<MazContainer title="Transparent container" transparent>
|
|
156
|
+
This container has a transparent background.
|
|
157
|
+
</MazContainer>
|
|
158
|
+
|
|
159
|
+
<template #code>
|
|
160
|
+
|
|
161
|
+
```vue
|
|
162
|
+
<template>
|
|
163
|
+
<MazContainer title="Transparent container" transparent>
|
|
164
|
+
This container has a transparent background.
|
|
165
|
+
</MazContainer>
|
|
166
|
+
</template>
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
</template>
|
|
170
|
+
</ComponentDemo>
|
|
171
|
+
|
|
172
|
+
### Rounded sizes
|
|
173
|
+
|
|
174
|
+
Customize the border radius with the `rounded-size` prop.
|
|
175
|
+
|
|
176
|
+
<ComponentDemo>
|
|
177
|
+
<div class="maz-flex maz-flex-wrap maz-gap-4">
|
|
178
|
+
<MazContainer v-for="size in roundedSizes" :key="size" :rounded-size="size">
|
|
179
|
+
{{ size }}
|
|
180
|
+
</MazContainer>
|
|
181
|
+
</div>
|
|
182
|
+
|
|
183
|
+
<template #code>
|
|
184
|
+
|
|
185
|
+
```vue
|
|
186
|
+
<template>
|
|
187
|
+
<MazContainer v-for="size in roundedSizes" :key="size" :rounded-size="size">
|
|
188
|
+
{{ size }}
|
|
189
|
+
</MazContainer>
|
|
190
|
+
</template>
|
|
191
|
+
|
|
192
|
+
<script lang="ts" setup>
|
|
193
|
+
import MazContainer from 'maz-ui/components/MazContainer'
|
|
194
|
+
|
|
195
|
+
const roundedSizes = ['none', 'sm', 'md', 'lg', 'xl', 'full']
|
|
196
|
+
</script>
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
</template>
|
|
200
|
+
</ComponentDemo>
|
|
201
|
+
|
|
202
|
+
### No padding
|
|
203
|
+
|
|
204
|
+
Remove internal padding with `:padding="false"`.
|
|
205
|
+
|
|
206
|
+
<ComponentDemo>
|
|
207
|
+
<MazContainer title="No padding" :padding="false">
|
|
208
|
+
Content without container padding - useful for custom layouts.
|
|
209
|
+
</MazContainer>
|
|
210
|
+
|
|
211
|
+
<template #code>
|
|
212
|
+
|
|
213
|
+
```vue
|
|
214
|
+
<template>
|
|
215
|
+
<MazContainer title="No padding" :padding="false">
|
|
216
|
+
Content without container padding - useful for custom layouts.
|
|
217
|
+
</MazContainer>
|
|
218
|
+
</template>
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
</template>
|
|
222
|
+
</ComponentDemo>
|
|
223
|
+
|
|
224
|
+
## Full width
|
|
225
|
+
|
|
226
|
+
Use the `block` prop to make the container take full width.
|
|
227
|
+
|
|
228
|
+
<ComponentDemo>
|
|
229
|
+
<MazContainer title="Full width container" block>
|
|
230
|
+
This container spans the full width of its parent.
|
|
231
|
+
</MazContainer>
|
|
232
|
+
|
|
233
|
+
<template #code>
|
|
234
|
+
|
|
235
|
+
```vue
|
|
236
|
+
<template>
|
|
237
|
+
<MazContainer title="Full width container" block>
|
|
238
|
+
This container spans the full width of its parent.
|
|
239
|
+
</MazContainer>
|
|
240
|
+
</template>
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
</template>
|
|
244
|
+
</ComponentDemo>
|
|
245
|
+
|
|
246
|
+
## Custom header
|
|
247
|
+
|
|
248
|
+
Use the `header` slot to fully customize the header, or use `title`, `icon-left`, and `icon-right` slots for more granular control.
|
|
249
|
+
|
|
250
|
+
<ComponentDemo>
|
|
251
|
+
<MazContainer>
|
|
252
|
+
<template #header>
|
|
253
|
+
<div class="maz-flex maz-items-center maz-justify-between maz-w-full maz-px-4 maz-py-3 maz-bg-primary maz-text-primary-foreground">
|
|
254
|
+
<span class="maz-font-semibold">Custom Header</span>
|
|
255
|
+
<MazBadge size="0.8rem" color="white" class="maz-text-primary">
|
|
256
|
+
New
|
|
257
|
+
</MazBadge>
|
|
258
|
+
</div>
|
|
259
|
+
</template>
|
|
260
|
+
Content with a fully customized header.
|
|
261
|
+
</MazContainer>
|
|
262
|
+
|
|
263
|
+
<template #code>
|
|
264
|
+
|
|
265
|
+
```vue
|
|
266
|
+
<template>
|
|
267
|
+
<MazContainer>
|
|
268
|
+
<template #header>
|
|
269
|
+
<div class="maz-flex maz-items-center maz-justify-between maz-w-full maz-px-4 maz-py-3 maz-bg-primary maz-text-primary-foreground">
|
|
270
|
+
<span class="maz-font-semibold">Custom Header</span>
|
|
271
|
+
<MazBadge size="0.8rem" color="white" class="maz-text-primary">
|
|
272
|
+
New
|
|
273
|
+
</MazBadge>
|
|
274
|
+
</div>
|
|
275
|
+
</template>
|
|
276
|
+
Content with a fully customized header.
|
|
277
|
+
</MazContainer>
|
|
278
|
+
</template>
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
</template>
|
|
282
|
+
</ComponentDemo>
|
|
283
|
+
|
|
284
|
+
## Combining options
|
|
285
|
+
|
|
286
|
+
<ComponentDemo>
|
|
287
|
+
<MazContainer
|
|
288
|
+
title="Dashboard Overview"
|
|
289
|
+
left-icon="chart-bar"
|
|
290
|
+
elevation
|
|
291
|
+
:bordered="false"
|
|
292
|
+
rounded-size="xl"
|
|
293
|
+
block
|
|
294
|
+
>
|
|
295
|
+
<div class="maz-flex maz-gap-4 maz-flex-wrap">
|
|
296
|
+
<MazContainer class="maz-flex-1 maz-min-w-[150px]">
|
|
297
|
+
<p class="maz-text-muted maz-text-sm">Users</p>
|
|
298
|
+
<p class="maz-text-2xl maz-font-bold">1,234</p>
|
|
299
|
+
</MazContainer>
|
|
300
|
+
<MazContainer class="maz-flex-1 maz-min-w-[150px]">
|
|
301
|
+
<p class="maz-text-muted maz-text-sm">Revenue</p>
|
|
302
|
+
<p class="maz-text-2xl maz-font-bold">$12.5k</p>
|
|
303
|
+
</MazContainer>
|
|
304
|
+
<MazContainer class="maz-flex-1 maz-min-w-[150px]">
|
|
305
|
+
<p class="maz-text-muted maz-text-sm">Orders</p>
|
|
306
|
+
<p class="maz-text-2xl maz-font-bold">567</p>
|
|
307
|
+
</MazContainer>
|
|
308
|
+
</div>
|
|
309
|
+
</MazContainer>
|
|
310
|
+
|
|
311
|
+
<template #code>
|
|
312
|
+
|
|
313
|
+
```vue
|
|
314
|
+
<template>
|
|
315
|
+
<MazContainer
|
|
316
|
+
title="Dashboard Overview"
|
|
317
|
+
left-icon="chart-bar"
|
|
318
|
+
elevation
|
|
319
|
+
:bordered="false"
|
|
320
|
+
rounded-size="xl"
|
|
321
|
+
block
|
|
322
|
+
>
|
|
323
|
+
<div class="maz-flex maz-gap-4 maz-flex-wrap">
|
|
324
|
+
<MazContainer class="maz-flex-1 maz-min-w-[150px]">
|
|
325
|
+
<p class="maz-text-muted maz-text-sm">Users</p>
|
|
326
|
+
<p class="maz-text-2xl maz-font-bold">1,234</p>
|
|
327
|
+
</MazContainer>
|
|
328
|
+
<MazContainer class="maz-flex-1 maz-min-w-[150px]">
|
|
329
|
+
<p class="maz-text-muted maz-text-sm">Revenue</p>
|
|
330
|
+
<p class="maz-text-2xl maz-font-bold">$12.5k</p>
|
|
331
|
+
</MazContainer>
|
|
332
|
+
<MazContainer class="maz-flex-1 maz-min-w-[150px]">
|
|
333
|
+
<p class="maz-text-muted maz-text-sm">Orders</p>
|
|
334
|
+
<p class="maz-text-2xl maz-font-bold">567</p>
|
|
335
|
+
</MazContainer>
|
|
336
|
+
</div>
|
|
337
|
+
</MazContainer>
|
|
338
|
+
</template>
|
|
339
|
+
```
|
|
340
|
+
|
|
341
|
+
</template>
|
|
342
|
+
</ComponentDemo>
|
|
343
|
+
|
|
344
|
+
<script lang="ts" setup>
|
|
345
|
+
const roundedSizes = ['none', 'sm', 'md', 'lg', 'xl', 'full']
|
|
346
|
+
</script>
|
|
347
|
+
|
|
348
|
+
<!--@include: ./../../.vitepress/generated-docs/maz-container.doc.md-->
|
|
@@ -7,9 +7,9 @@ description: A powerful and flexible date picker component with support for sing
|
|
|
7
7
|
|
|
8
8
|
{{ $frontmatter.description }}
|
|
9
9
|
|
|
10
|
-
<!--@include:
|
|
10
|
+
<!--@include: ./../../.vitepress/mixins/getting-started.md-->
|
|
11
11
|
|
|
12
|
-
<!--@include:
|
|
12
|
+
<!--@include: ./../../.vitepress/mixins/translated-component.md-->
|
|
13
13
|
|
|
14
14
|
## Table of Contents
|
|
15
15
|
|
|
@@ -1006,7 +1006,7 @@ interface MazDatePickerShortcut {
|
|
|
1006
1006
|
}
|
|
1007
1007
|
```
|
|
1008
1008
|
|
|
1009
|
-
<!--@include:
|
|
1009
|
+
<!--@include: ./../../.vitepress/mixins/maz-input-props.md-->
|
|
1010
1010
|
|
|
1011
1011
|
<!--@include: ./../../.vitepress/generated-docs/maz-date-picker.doc.md-->
|
|
1012
1012
|
|
|
@@ -8,7 +8,7 @@ description: MazDialogConfirm is a standalone component that dialogs with the us
|
|
|
8
8
|
|
|
9
9
|
{{ $frontmatter.description }}
|
|
10
10
|
|
|
11
|
-
<!--@include:
|
|
11
|
+
<!--@include: ./../../.vitepress/mixins/getting-started.md-->
|
|
12
12
|
|
|
13
13
|
::: info
|
|
14
14
|
This component uses [MazDialog](./maz-dialog.md), so it inherits all its props
|
|
@@ -7,7 +7,7 @@ description: MazDialog is a standalone dialog component to show important inform
|
|
|
7
7
|
|
|
8
8
|
{{ $frontmatter.description }}
|
|
9
9
|
|
|
10
|
-
<!--@include:
|
|
10
|
+
<!--@include: ./../../.vitepress/mixins/getting-started.md-->
|
|
11
11
|
|
|
12
12
|
::: tip
|
|
13
13
|
This component uses `<Teleport to="body">` with [MazBackdrop](./maz-backdrop.md), so you can implement this component anywhere and it inherits all its props
|
|
@@ -7,7 +7,7 @@ description: MazDrawer is a standalone component to add a collapsible sidebar at
|
|
|
7
7
|
|
|
8
8
|
{{ $frontmatter.description }}
|
|
9
9
|
|
|
10
|
-
<!--@include:
|
|
10
|
+
<!--@include: ./../../.vitepress/mixins/getting-started.md-->
|
|
11
11
|
|
|
12
12
|
::: tip
|
|
13
13
|
This component uses `<Teleport to="body">` with [MazBackdrop](./maz-backdrop.md), so you can implement this component anywhere and it inherits all its props
|
|
@@ -7,9 +7,9 @@ description: MazDropdown is a standalone dropdown menu component and versatile d
|
|
|
7
7
|
|
|
8
8
|
{{ $frontmatter.description }}
|
|
9
9
|
|
|
10
|
-
<!--@include:
|
|
10
|
+
<!--@include: ./../../.vitepress/mixins/getting-started.md-->
|
|
11
11
|
|
|
12
|
-
<!--@include:
|
|
12
|
+
<!--@include: ./../../.vitepress/mixins/translated-component.md-->
|
|
13
13
|
|
|
14
14
|
## Basic usage
|
|
15
15
|
|
|
@@ -7,9 +7,9 @@ description: MazDropzone is a powerful and flexible file upload component with d
|
|
|
7
7
|
|
|
8
8
|
{{ $frontmatter.description }}
|
|
9
9
|
|
|
10
|
-
<!--@include:
|
|
10
|
+
<!--@include: ./../../.vitepress/mixins/getting-started.md-->
|
|
11
11
|
|
|
12
|
-
<!--@include:
|
|
12
|
+
<!--@include: ./../../.vitepress/mixins/translated-component.md-->
|
|
13
13
|
|
|
14
14
|
## Key Features
|
|
15
15
|
|
|
@@ -102,7 +102,7 @@ function handleError({ code, files }) {
|
|
|
102
102
|
|
|
103
103
|
```vue
|
|
104
104
|
<script setup lang="ts">
|
|
105
|
-
import { useToast } from 'maz-ui'
|
|
105
|
+
import { useToast } from 'maz-ui/composables'
|
|
106
106
|
import { ref } from 'vue'
|
|
107
107
|
|
|
108
108
|
const toast = useToast()
|
|
@@ -284,7 +284,7 @@ Multiple upload is allowed:
|
|
|
284
284
|
|
|
285
285
|
<script setup lang="ts">
|
|
286
286
|
import { ref } from 'vue'
|
|
287
|
-
import { useToast } from 'maz-ui'
|
|
287
|
+
import { useToast } from 'maz-ui/composables'
|
|
288
288
|
|
|
289
289
|
const files = ref<File[]>([])
|
|
290
290
|
|
|
@@ -7,7 +7,7 @@ description: MazExpandAnimation is a standalone component that allows you to ani
|
|
|
7
7
|
|
|
8
8
|
{{ $frontmatter.description }}
|
|
9
9
|
|
|
10
|
-
<!--@include:
|
|
10
|
+
<!--@include: ./../../.vitepress/mixins/getting-started.md-->
|
|
11
11
|
|
|
12
12
|
## Basic usage
|
|
13
13
|
|
|
@@ -7,7 +7,7 @@ description: MazGallery is a standalone component used to display images in a co
|
|
|
7
7
|
|
|
8
8
|
{{ $frontmatter.description }}
|
|
9
9
|
|
|
10
|
-
<!--@include:
|
|
10
|
+
<!--@include: ./../../.vitepress/mixins/getting-started.md-->
|
|
11
11
|
|
|
12
12
|
## Basic usage
|
|
13
13
|
|
|
@@ -7,7 +7,7 @@ description: This component creates a customizable input code field with feature
|
|
|
7
7
|
|
|
8
8
|
{{ $frontmatter.description }}
|
|
9
9
|
|
|
10
|
-
<!--@include:
|
|
10
|
+
<!--@include: ./../../.vitepress/mixins/getting-started.md-->
|
|
11
11
|
|
|
12
12
|
## Basic usage
|
|
13
13
|
|
|
@@ -7,7 +7,7 @@ description: MazInputNumber is a number input component with increment and decre
|
|
|
7
7
|
|
|
8
8
|
{{ $frontmatter.description }}
|
|
9
9
|
|
|
10
|
-
<!--@include:
|
|
10
|
+
<!--@include: ./../../.vitepress/mixins/getting-started.md-->
|
|
11
11
|
|
|
12
12
|
## Basic usage
|
|
13
13
|
|
|
@@ -72,7 +72,7 @@ You can remove the buttons with the props `hide-buttons`
|
|
|
72
72
|
</template>
|
|
73
73
|
</ComponentDemo>
|
|
74
74
|
|
|
75
|
-
<!--@include:
|
|
75
|
+
<!--@include: ./../../.vitepress/mixins/maz-input-props.md-->
|
|
76
76
|
<!--@include: ./../../.vitepress/generated-docs/maz-input-number.doc.md-->
|
|
77
77
|
|
|
78
78
|
<script lang="ts" setup>
|
|
@@ -7,9 +7,9 @@ description: MazInputPhoneNumber is a powerful and user-friendly component that
|
|
|
7
7
|
|
|
8
8
|
{{ $frontmatter.description }}
|
|
9
9
|
|
|
10
|
-
<!--@include:
|
|
10
|
+
<!--@include: ./../../.vitepress/mixins/getting-started.md-->
|
|
11
11
|
|
|
12
|
-
<!--@include:
|
|
12
|
+
<!--@include: ./../../.vitepress/mixins/translated-component.md-->
|
|
13
13
|
|
|
14
14
|
::: tip ✨ What makes this component special?
|
|
15
15
|
- **Smart country detection** - Automatically detects country from browser locale or IP
|
|
@@ -878,7 +878,7 @@ interface MazInputPhoneNumberData {
|
|
|
878
878
|
}
|
|
879
879
|
```
|
|
880
880
|
|
|
881
|
-
<!--@include:
|
|
881
|
+
<!--@include: ./../../.vitepress/mixins/maz-input-props.md-->
|
|
882
882
|
<!--@include: ./../../.vitepress/generated-docs/maz-input-phone-number.doc.md-->
|
|
883
883
|
|
|
884
884
|
<script setup lang="ts">
|
|
@@ -7,7 +7,7 @@ description: MazInputPrice is a standalone component that replaces the standard
|
|
|
7
7
|
|
|
8
8
|
{{ $frontmatter.description }}
|
|
9
9
|
|
|
10
|
-
<!--@include:
|
|
10
|
+
<!--@include: ./../../.vitepress/mixins/getting-started.md-->
|
|
11
11
|
|
|
12
12
|
## Basic usage
|
|
13
13
|
|
|
@@ -54,5 +54,5 @@ const formattedPrice = ref()
|
|
|
54
54
|
</template>
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
-
<!--@include:
|
|
57
|
+
<!--@include: ./../../.vitepress/mixins/maz-input-props.md-->
|
|
58
58
|
<!--@include: ./../../.vitepress/generated-docs/maz-input-price.doc.md-->
|
|
@@ -7,7 +7,7 @@ description: MazInputTags is a standalone component like free inputs to help use
|
|
|
7
7
|
|
|
8
8
|
{{ $frontmatter.description }}
|
|
9
9
|
|
|
10
|
-
<!--@include:
|
|
10
|
+
<!--@include: ./../../.vitepress/mixins/getting-started.md-->
|
|
11
11
|
|
|
12
12
|
## Basic usage
|
|
13
13
|
|
|
@@ -110,5 +110,5 @@ const sizes = ['mini', 'xs', 'sm', 'md', 'lg', 'xl']
|
|
|
110
110
|
</template>
|
|
111
111
|
```
|
|
112
112
|
|
|
113
|
-
<!--@include:
|
|
113
|
+
<!--@include: ./../../.vitepress/mixins/maz-input-props.md-->
|
|
114
114
|
<!--@include: ./../../.vitepress/generated-docs/maz-input-tags.doc.md-->
|
|
@@ -7,7 +7,7 @@ description: MazInput is a standalone component that replaces the standard html
|
|
|
7
7
|
|
|
8
8
|
{{ $frontmatter.description }}
|
|
9
9
|
|
|
10
|
-
<!--@include:
|
|
10
|
+
<!--@include: ./../../.vitepress/mixins/getting-started.md-->
|
|
11
11
|
|
|
12
12
|
## Basic usage
|
|
13
13
|
|
|
@@ -7,7 +7,7 @@ description: MazLazyImg is a standalone component to display images and svgs wit
|
|
|
7
7
|
|
|
8
8
|
{{ $frontmatter.description }}
|
|
9
9
|
|
|
10
|
-
<!--@include:
|
|
10
|
+
<!--@include: ./../../.vitepress/mixins/getting-started.md-->
|
|
11
11
|
|
|
12
12
|
<MazLazyImg src="https://placedog.net/1000/1000" block />
|
|
13
13
|
|