@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
|
@@ -73,7 +73,7 @@ const sizes = ['mini', 'xs', 'sm', 'md', 'lg', 'xl']
|
|
|
73
73
|
<MazBtn color="destructive">destructive</MazBtn>
|
|
74
74
|
<MazBtn color="contrast">contrast</MazBtn>
|
|
75
75
|
<MazBtn color="accent">accent</MazBtn>
|
|
76
|
-
<MazBtn color="
|
|
76
|
+
<MazBtn color="surface">surface</MazBtn>
|
|
77
77
|
<MazBtn color="transparent">transparent</MazBtn>
|
|
78
78
|
```
|
|
79
79
|
|
|
@@ -100,7 +100,7 @@ Transform the button into an outlined button with the attribute `outlined`
|
|
|
100
100
|
<MazBtn color="destructive" outlined>destructive</MazBtn>
|
|
101
101
|
<MazBtn color="contrast" outlined>contrast</MazBtn>
|
|
102
102
|
<MazBtn color="accent" outlined>accent</MazBtn>
|
|
103
|
-
<MazBtn color="
|
|
103
|
+
<MazBtn color="surface" outlined>surface</MazBtn>
|
|
104
104
|
<MazBtn color="transparent" outlined>transparent</MazBtn>
|
|
105
105
|
```
|
|
106
106
|
|
|
@@ -114,16 +114,16 @@ The loading state is available with the attribute `loading`
|
|
|
114
114
|
<ComponentDemo>
|
|
115
115
|
<div class="flex items-start gap-05 flex-wrap">
|
|
116
116
|
<div v-for="color of colors"
|
|
117
|
-
:key="color" class="maz
|
|
117
|
+
:key="color" class="maz:flex maz:flex-col maz:flex-center">
|
|
118
118
|
<MazBtn
|
|
119
119
|
loading
|
|
120
120
|
:color="color"
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
start-icon="user"
|
|
122
|
+
end-icon="user"
|
|
123
123
|
>
|
|
124
124
|
{{ color }}
|
|
125
125
|
</MazBtn>
|
|
126
|
-
<span class="maz
|
|
126
|
+
<span class="maz:text-muted maz:text-xs"> {{ color }} </span>
|
|
127
127
|
</div>
|
|
128
128
|
</div>
|
|
129
129
|
|
|
@@ -170,7 +170,7 @@ Better in light mode
|
|
|
170
170
|
|
|
171
171
|
<ComponentDemo>
|
|
172
172
|
|
|
173
|
-
<div class="flex items-start gap-05 rounded maz
|
|
173
|
+
<div class="flex items-start gap-05 rounded maz:p-3 flex-wrap">
|
|
174
174
|
<MazBtn v-for="color of colors" :color="color" pastel>{{ color }}</MazBtn>
|
|
175
175
|
</div>
|
|
176
176
|
|
|
@@ -185,7 +185,7 @@ Better in light mode
|
|
|
185
185
|
<MazBtn color="destructive" pastel>destructive</MazBtn>
|
|
186
186
|
<MazBtn color="contrast" pastel>contrast</MazBtn>
|
|
187
187
|
<MazBtn color="accent" pastel>accent</MazBtn>
|
|
188
|
-
<MazBtn color="
|
|
188
|
+
<MazBtn color="surface" pastel>surface</MazBtn>
|
|
189
189
|
<MazBtn color="transparent" pastel>transparent</MazBtn>
|
|
190
190
|
```
|
|
191
191
|
|
|
@@ -198,7 +198,7 @@ Choose the size of the rounded with the attribute `rounded-size` and value `none
|
|
|
198
198
|
|
|
199
199
|
<ComponentDemo>
|
|
200
200
|
|
|
201
|
-
<div class="flex items-start gap-05 rounded maz
|
|
201
|
+
<div class="flex items-start gap-05 rounded maz:p-3 flex-wrap">
|
|
202
202
|
<MazBtn v-for="size of ['none', 'sm', 'md', 'lg', 'xl', 'full']" :rounded-size="size">{{ size }}</MazBtn>
|
|
203
203
|
</div>
|
|
204
204
|
|
|
@@ -221,26 +221,26 @@ Choose the size of the rounded with the attribute `rounded-size` and value `none
|
|
|
221
221
|
The button can be a fab button with the attribute `fab`
|
|
222
222
|
|
|
223
223
|
<ComponentDemo>
|
|
224
|
-
<div class="maz
|
|
225
|
-
<MazBtn fab icon="sun" size="mini" />
|
|
226
|
-
<MazBtn fab icon="sun" size="xs" />
|
|
227
|
-
<MazBtn fab icon="sun" size="sm" />
|
|
224
|
+
<div class="maz:flex maz:gap-5 maz:items-center">
|
|
225
|
+
<MazBtn fab icon="/sun.svg" size="mini" />
|
|
226
|
+
<MazBtn fab icon="/sun.svg" size="xs" />
|
|
227
|
+
<MazBtn fab icon="/sun.svg" size="sm" />
|
|
228
228
|
<MazBtn fab>
|
|
229
229
|
fab
|
|
230
230
|
</MazBtn>
|
|
231
|
-
<MazBtn fab icon="sun" size="lg" />
|
|
232
|
-
<MazBtn fab icon="sun" size="xl" />
|
|
231
|
+
<MazBtn fab icon="/sun.svg" size="lg" />
|
|
232
|
+
<MazBtn fab icon="/sun.svg" size="xl" />
|
|
233
233
|
</div>
|
|
234
234
|
|
|
235
235
|
<template #code>
|
|
236
236
|
|
|
237
237
|
```html
|
|
238
|
-
<MazBtn fab icon="sun" size="mini" />
|
|
239
|
-
<MazBtn fab icon="sun" size="xs" />
|
|
240
|
-
<MazBtn fab icon="sun" size="sm" />
|
|
238
|
+
<MazBtn fab icon="/sun.svg" size="mini" />
|
|
239
|
+
<MazBtn fab icon="/sun.svg" size="xs" />
|
|
240
|
+
<MazBtn fab icon="/sun.svg" size="sm" />
|
|
241
241
|
<MazBtn fab> fab </MazBtn>
|
|
242
|
-
<MazBtn fab icon="sun" size="lg" />
|
|
243
|
-
<MazBtn fab icon="sun" size="xl" />
|
|
242
|
+
<MazBtn fab icon="/sun.svg" size="lg" />
|
|
243
|
+
<MazBtn fab icon="/sun.svg" size="xl" />
|
|
244
244
|
```
|
|
245
245
|
|
|
246
246
|
</template>
|
|
@@ -269,24 +269,24 @@ This property is used to align the content of the button.
|
|
|
269
269
|
By default, the justify is `center`
|
|
270
270
|
|
|
271
271
|
<ComponentDemo>
|
|
272
|
-
<div class="maz
|
|
273
|
-
<MazBtn block justify="center" icon="users"
|
|
274
|
-
<MazBtn block justify="start" icon="users"
|
|
275
|
-
<MazBtn block justify="end" icon="users"
|
|
276
|
-
<MazBtn block justify="space-between" icon="users"
|
|
277
|
-
<MazBtn block justify="space-around" icon="users"
|
|
278
|
-
<MazBtn block justify="space-evenly" icon="users"
|
|
272
|
+
<div class="maz:flex maz:flex-col maz:gap-2">
|
|
273
|
+
<MazBtn block justify="center" icon="/users.svg" end-icon="/sun.svg" size="md">center</MazBtn>
|
|
274
|
+
<MazBtn block justify="start" icon="/users.svg" end-icon="/sun.svg" size="md">start</MazBtn>
|
|
275
|
+
<MazBtn block justify="end" icon="/users.svg" end-icon="/sun.svg" size="md">end</MazBtn>
|
|
276
|
+
<MazBtn block justify="space-between" icon="/users.svg" end-icon="/sun.svg" size="md">between</MazBtn>
|
|
277
|
+
<MazBtn block justify="space-around" icon="/users.svg" end-icon="/sun.svg" size="md">around</MazBtn>
|
|
278
|
+
<MazBtn block justify="space-evenly" icon="/users.svg" end-icon="/sun.svg" size="md">evenly</MazBtn>
|
|
279
279
|
</div>
|
|
280
280
|
|
|
281
281
|
<template #code>
|
|
282
282
|
|
|
283
283
|
```html
|
|
284
|
-
<MazBtn block justify="center" icon="users"
|
|
285
|
-
<MazBtn block justify="start" icon="users"
|
|
286
|
-
<MazBtn block justify="end" icon="users"
|
|
287
|
-
<MazBtn block justify="space-between" icon="users"
|
|
288
|
-
<MazBtn block justify="space-around" icon="users"
|
|
289
|
-
<MazBtn block justify="space-evenly" icon="users"
|
|
284
|
+
<MazBtn block justify="center" icon="/users.svg" end-icon="/sun.svg" size="md">center</MazBtn>
|
|
285
|
+
<MazBtn block justify="start" icon="/users.svg" end-icon="/sun.svg" size="md">start</MazBtn>
|
|
286
|
+
<MazBtn block justify="end" icon="/users.svg" end-icon="/sun.svg" size="md">end</MazBtn>
|
|
287
|
+
<MazBtn block justify="space-between" icon="/users.svg" end-icon="/sun.svg" size="md">between</MazBtn>
|
|
288
|
+
<MazBtn block justify="space-around" icon="/users.svg" end-icon="/sun.svg" size="md">around</MazBtn>
|
|
289
|
+
<MazBtn block justify="space-evenly" icon="/users.svg" end-icon="/sun.svg" size="md">evenly</MazBtn>
|
|
290
290
|
```
|
|
291
291
|
|
|
292
292
|
</template>
|
|
@@ -310,36 +310,36 @@ By default, the justify is `center`
|
|
|
310
310
|
## Icons
|
|
311
311
|
|
|
312
312
|
<ComponentDemo>
|
|
313
|
-
<h4 class="maz
|
|
314
|
-
|
|
313
|
+
<h4 class="maz:mb-2 maz:font-semibold maz:text-lg">
|
|
314
|
+
Start Icon and End Icon
|
|
315
315
|
</h4>
|
|
316
316
|
|
|
317
|
-
<div class="maz
|
|
318
|
-
<MazBtn :
|
|
319
|
-
|
|
317
|
+
<div class="maz:flex maz:gap-2 maz:rounded-md maz:flex-wrap maz:items-center">
|
|
318
|
+
<MazBtn :start-icon="MazCheck" size="mini">
|
|
319
|
+
start-icon
|
|
320
320
|
</MazBtn>
|
|
321
|
-
<MazBtn :
|
|
322
|
-
|
|
321
|
+
<MazBtn :start-icon="MazCheck" size="xs">
|
|
322
|
+
start-icon
|
|
323
323
|
</MazBtn>
|
|
324
|
-
<MazBtn :
|
|
325
|
-
|
|
324
|
+
<MazBtn :start-icon="MazCheck" size="sm">
|
|
325
|
+
start-icon
|
|
326
326
|
</MazBtn>
|
|
327
|
-
<MazBtn :
|
|
328
|
-
|
|
327
|
+
<MazBtn :end-icon="MazCheck" size="md">
|
|
328
|
+
end-icon
|
|
329
329
|
</MazBtn>
|
|
330
|
-
<MazBtn :
|
|
331
|
-
|
|
330
|
+
<MazBtn :end-icon="MazCheck" size="lg">
|
|
331
|
+
end-icon
|
|
332
332
|
</MazBtn>
|
|
333
|
-
<MazBtn :
|
|
334
|
-
|
|
333
|
+
<MazBtn :end-icon="MazCheck" size="xl">
|
|
334
|
+
end-icon
|
|
335
335
|
</MazBtn>
|
|
336
336
|
</div>
|
|
337
337
|
|
|
338
|
-
<h4 class="maz
|
|
338
|
+
<h4 class="maz:my-2 maz:font-semibold maz:text-lg">
|
|
339
339
|
Fab
|
|
340
340
|
</h4>
|
|
341
341
|
|
|
342
|
-
<div class="maz
|
|
342
|
+
<div class="maz:flex maz:gap-2 maz:rounded-md maz:flex-wrap maz:items-center">
|
|
343
343
|
<MazBtn fab :icon="MazCommandLine" size="mini" />
|
|
344
344
|
<MazBtn fab :icon="MazCommandLine" size="xs" />
|
|
345
345
|
<MazBtn fab :icon="MazCommandLine" size="sm" />
|
|
@@ -348,12 +348,12 @@ By default, the justify is `center`
|
|
|
348
348
|
<MazBtn fab :icon="MazCommandLine" size="xl" />
|
|
349
349
|
</div>
|
|
350
350
|
|
|
351
|
-
<h4 class="maz
|
|
351
|
+
<h4 class="maz:my-2 maz:font-semibold maz:text-lg">
|
|
352
352
|
Icon component
|
|
353
353
|
</h4>
|
|
354
354
|
|
|
355
|
-
<div class="maz
|
|
356
|
-
<MazBtn :
|
|
355
|
+
<div class="maz:flex maz:gap-2 maz:rounded-md maz:flex-wrap maz:items-center">
|
|
356
|
+
<MazBtn :start-icon="MazSpinner" size="md" color="warning">
|
|
357
357
|
icon component
|
|
358
358
|
</MazBtn>
|
|
359
359
|
</div>
|
|
@@ -361,26 +361,26 @@ By default, the justify is `center`
|
|
|
361
361
|
<template #code>
|
|
362
362
|
|
|
363
363
|
```html
|
|
364
|
-
<MazBtn :
|
|
365
|
-
|
|
364
|
+
<MazBtn :start-icon="MazCheck" size="mini">
|
|
365
|
+
start-icon
|
|
366
366
|
</MazBtn>
|
|
367
|
-
<MazBtn :
|
|
368
|
-
|
|
367
|
+
<MazBtn :start-icon="MazCheck" size="xs">
|
|
368
|
+
start-icon
|
|
369
369
|
</MazBtn>
|
|
370
|
-
<MazBtn :
|
|
371
|
-
|
|
370
|
+
<MazBtn :start-icon="MazCheck" size="sm">
|
|
371
|
+
start-icon
|
|
372
372
|
</MazBtn>
|
|
373
|
-
<MazBtn :
|
|
374
|
-
|
|
373
|
+
<MazBtn :start-icon="MazCheck" size="md">
|
|
374
|
+
start-icon
|
|
375
375
|
</MazBtn>
|
|
376
|
-
<MazBtn :
|
|
377
|
-
|
|
376
|
+
<MazBtn :start-icon="MazCheck" size="lg">
|
|
377
|
+
start-icon
|
|
378
378
|
</MazBtn>
|
|
379
|
-
<MazBtn :
|
|
380
|
-
|
|
379
|
+
<MazBtn :start-icon="MazCheck" size="xl">
|
|
380
|
+
start-icon
|
|
381
381
|
</MazBtn>
|
|
382
382
|
<MazBtn fab :icon="MazCommandLine" size="lg" />
|
|
383
|
-
<MazBtn :
|
|
383
|
+
<MazBtn :start-icon="MazSpinner" size="sm" color="warning">
|
|
384
384
|
icon component
|
|
385
385
|
</MazBtn>
|
|
386
386
|
```
|
|
@@ -388,18 +388,18 @@ By default, the justify is `center`
|
|
|
388
388
|
</template>
|
|
389
389
|
</ComponentDemo>
|
|
390
390
|
|
|
391
|
-
### Use icon
|
|
391
|
+
### Use icon path
|
|
392
392
|
|
|
393
393
|
::: details View code
|
|
394
394
|
|
|
395
|
-
When you use the properties `
|
|
395
|
+
When you use the properties `end-icon`, `start-icon` or `icon` with the icon path, the component uses `<MazIcon icon="..." />` component.
|
|
396
396
|
|
|
397
397
|
Check out how [MazIcon](./maz-icon.md) works, see all available icons and download them to put them in your public folder.
|
|
398
398
|
|
|
399
399
|
```html
|
|
400
|
-
<MazBtn
|
|
401
|
-
<MazBtn
|
|
402
|
-
<MazBtn icon="command-line" fab size="lg" />
|
|
400
|
+
<MazBtn start-icon="/check.svg" size="sm"> start-icon </MazBtn>
|
|
401
|
+
<MazBtn end-icon="/home.svg"> end-icon </MazBtn>
|
|
402
|
+
<MazBtn icon="/command-line.svg" fab size="lg" />
|
|
403
403
|
```
|
|
404
404
|
|
|
405
405
|
:::
|
|
@@ -410,7 +410,7 @@ Check out how [MazIcon](./maz-icon.md) works, see all available icons and downlo
|
|
|
410
410
|
|
|
411
411
|
```html
|
|
412
412
|
<MazBtn size="sm">
|
|
413
|
-
<template #
|
|
413
|
+
<template #start-icon>
|
|
414
414
|
<svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
415
415
|
<path
|
|
416
416
|
d="M4.5 12.75L10.5 18.75L19.5 5.25"
|
|
@@ -421,10 +421,10 @@ Check out how [MazIcon](./maz-icon.md) works, see all available icons and downlo
|
|
|
421
421
|
/>
|
|
422
422
|
</svg>
|
|
423
423
|
</template>
|
|
424
|
-
|
|
424
|
+
start-icon
|
|
425
425
|
</MazBtn>
|
|
426
426
|
<MazBtn>
|
|
427
|
-
<template #
|
|
427
|
+
<template #end-icon>
|
|
428
428
|
<svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
429
429
|
<path
|
|
430
430
|
d="M2.25 12L11.2045 3.04549C11.6438 2.60615 12.3562 2.60615 12.7955 3.04549L21.75 12M4.5 9.75V19.875C4.5 20.4963 5.00368 21 5.625 21H9.75V16.125C9.75 15.5037 10.2537 15 10.875 15H13.125C13.7463 15 14.25 15.5037 14.25 16.125V21H18.375C18.9963 21 19.5 20.4963 19.5 19.875V9.75M8.25 21H16.5"
|
|
@@ -435,7 +435,7 @@ Check out how [MazIcon](./maz-icon.md) works, see all available icons and downlo
|
|
|
435
435
|
/>
|
|
436
436
|
</svg>
|
|
437
437
|
</template>
|
|
438
|
-
|
|
438
|
+
end-icon
|
|
439
439
|
</MazBtn>
|
|
440
440
|
<MazBtn fab size="lg">
|
|
441
441
|
<template #icon>
|
|
@@ -462,15 +462,17 @@ Check out how [MazIcon](./maz-icon.md) works, see all available icons and downlo
|
|
|
462
462
|
<script lang="ts" setup>
|
|
463
463
|
import MazBtn from 'maz-ui/components/MazBtn'
|
|
464
464
|
|
|
465
|
-
import { MazCheck
|
|
465
|
+
import { MazCheck } from '@maz-ui/icons/raw/MazCheck'
|
|
466
|
+
import { MazHome } from '@maz-ui/icons/raw/MazHome'
|
|
467
|
+
import { MazCommandLine } from '@maz-ui/icons/raw/MazCommandLine'
|
|
466
468
|
</script>
|
|
467
469
|
|
|
468
470
|
<template>
|
|
469
|
-
<MazBtn :
|
|
470
|
-
|
|
471
|
+
<MazBtn :start-icon="MazCheck" size="sm">
|
|
472
|
+
start-icon
|
|
471
473
|
</MazBtn>
|
|
472
|
-
<MazBtn :
|
|
473
|
-
|
|
474
|
+
<MazBtn :end-icon="MazHome">
|
|
475
|
+
end-icon
|
|
474
476
|
</MazBtn>
|
|
475
477
|
<MazBtn fab :icon="MazCommandLine" size="lg" />
|
|
476
478
|
</template>
|
|
@@ -492,11 +494,11 @@ import MazCommandLine from '@maz-ui/icons/svg/command-line.svg?component'
|
|
|
492
494
|
</script>
|
|
493
495
|
|
|
494
496
|
<template>
|
|
495
|
-
<MazBtn :
|
|
496
|
-
|
|
497
|
+
<MazBtn :start-icon="MazCheck" size="sm">
|
|
498
|
+
start-icon
|
|
497
499
|
</MazBtn>
|
|
498
|
-
<MazBtn :
|
|
499
|
-
|
|
500
|
+
<MazBtn :end-icon="MazHome">
|
|
501
|
+
end-icon
|
|
500
502
|
</MazBtn>
|
|
501
503
|
<MazBtn fab :icon="MazCommandLine" size="lg" />
|
|
502
504
|
</template>
|
|
@@ -514,8 +516,41 @@ import { MazBtn, MazSpinner } from 'maz-ui/components'
|
|
|
514
516
|
</script>
|
|
515
517
|
|
|
516
518
|
<template>
|
|
517
|
-
<MazBtn :
|
|
518
|
-
|
|
519
|
+
<MazBtn :start-icon="MazSpinner" size="sm" color="info">
|
|
520
|
+
start-icon
|
|
521
|
+
</MazBtn>
|
|
522
|
+
</template>
|
|
523
|
+
```
|
|
524
|
+
|
|
525
|
+
:::
|
|
526
|
+
|
|
527
|
+
### Pass a full `MazIconProps` object
|
|
528
|
+
|
|
529
|
+
`startIcon`, `endIcon` and `icon` accept either a bare value (Vue component, URL, raw SVG string) **or** a full `MazIconProps` object. The latter is useful when you want to override the auto-derived size, set a `<title>` for screen readers, flip a directional icon for RTL, or attach extra SVG attributes.
|
|
530
|
+
|
|
531
|
+
::: details View code
|
|
532
|
+
|
|
533
|
+
```vue
|
|
534
|
+
<script lang="ts" setup>
|
|
535
|
+
import MazBtn from 'maz-ui/components/MazBtn'
|
|
536
|
+
import { MazStar } from '@maz-ui/icons/raw/MazStar'
|
|
537
|
+
</script>
|
|
538
|
+
|
|
539
|
+
<template>
|
|
540
|
+
<!-- The button picks an icon size from its own size — `sm` defaults to a small icon. -->
|
|
541
|
+
<MazBtn size="sm" :start-icon="MazStar">favorite</MazBtn>
|
|
542
|
+
|
|
543
|
+
<!-- Pass an object to override per-icon. -->
|
|
544
|
+
<MazBtn
|
|
545
|
+
size="sm"
|
|
546
|
+
:start-icon="{
|
|
547
|
+
icon: MazStar,
|
|
548
|
+
size: 'xl',
|
|
549
|
+
title: 'Favorite',
|
|
550
|
+
flipIconForRtl: true,
|
|
551
|
+
}"
|
|
552
|
+
>
|
|
553
|
+
favorite
|
|
519
554
|
</MazBtn>
|
|
520
555
|
</template>
|
|
521
556
|
```
|
|
@@ -528,7 +563,7 @@ import { MazBtn, MazSpinner } from 'maz-ui/components'
|
|
|
528
563
|
When `href` attribute is provided, the component automatically becomes a `<a href="..." />`
|
|
529
564
|
:::
|
|
530
565
|
|
|
531
|
-
<MazBtn href="https://www.google.com" target="_blank">Is Button Link</MazBtn>
|
|
566
|
+
<MazBtn class="vp-raw" href="https://www.google.com" target="_blank">Is Button Link</MazBtn>
|
|
532
567
|
|
|
533
568
|
```html
|
|
534
569
|
<MazBtn href="https://www.google.com" target="_blank"> Is Button Link </MazBtn>
|
|
@@ -540,7 +575,7 @@ When `href` attribute is provided, the component automatically becomes a `<a hre
|
|
|
540
575
|
When `to` attribute is provided, the component automatically becomes a `<RouterLink to="..." />`
|
|
541
576
|
:::
|
|
542
577
|
|
|
543
|
-
<MazBtn :to="{ path: '/made-with-maz-ui.html' }">Is Router Link</MazBtn>
|
|
578
|
+
<MazBtn class="vp-raw" :to="{ path: '/made-with-maz-ui.html' }">Is Router Link</MazBtn>
|
|
544
579
|
|
|
545
580
|
```html
|
|
546
581
|
<MazBtn :to="{ path: '/made-with-maz-ui.html' }"> Is RouterLink </MazBtn>
|
|
@@ -548,8 +583,10 @@ When `to` attribute is provided, the component automatically becomes a `<RouterL
|
|
|
548
583
|
|
|
549
584
|
<script setup lang="ts">
|
|
550
585
|
import { computed } from 'vue'
|
|
551
|
-
import { MazCheck
|
|
552
|
-
import
|
|
586
|
+
import { MazCheck } from '@maz-ui/icons/raw/MazCheck'
|
|
587
|
+
import { MazHome } from '@maz-ui/icons/raw/MazHome'
|
|
588
|
+
import { MazCommandLine } from '@maz-ui/icons/raw/MazCommandLine'
|
|
589
|
+
import MazSpinner from 'maz-ui/components/MazSpinner'
|
|
553
590
|
|
|
554
591
|
const colors = [
|
|
555
592
|
'primary',
|
|
@@ -27,7 +27,7 @@ If you want to increase the border width, you must just add padding @default: `v
|
|
|
27
27
|
Hover this component <br />
|
|
28
28
|
To see the magic appear
|
|
29
29
|
</h3>
|
|
30
|
-
<div class="maz
|
|
30
|
+
<div class="maz:flex maz:gap-2">
|
|
31
31
|
<MazBtn color="contrast" @click="setColorMode('light')">
|
|
32
32
|
Switch to light mode
|
|
33
33
|
</MazBtn>
|
|
@@ -66,7 +66,7 @@ const { setColorMode } = useTheme()
|
|
|
66
66
|
## Effect with multiple cards and with secondary color
|
|
67
67
|
|
|
68
68
|
<ComponentDemo>
|
|
69
|
-
<div class="maz
|
|
69
|
+
<div class="maz:grid maz:gap-4 maz:grid-cols-1 maz:mob-l:grid-cols-2 maz:tab-l:grid-cols-3">
|
|
70
70
|
<MazCardSpotlight v-for="competition of competitions" :key="competition.label" color="secondary">
|
|
71
71
|
<div style="display: flex;">
|
|
72
72
|
<MazAvatar
|
|
@@ -75,11 +75,11 @@ const { setColorMode } = useTheme()
|
|
|
75
75
|
style="margin-right: 16px;"
|
|
76
76
|
size="0.8rem"
|
|
77
77
|
/>
|
|
78
|
-
<div style="display: flex; flex-direction: column;" class="maz
|
|
79
|
-
<span class="maz
|
|
78
|
+
<div style="display: flex; flex-direction: column;" class="maz:truncate">
|
|
79
|
+
<span class="maz:truncate">
|
|
80
80
|
{{ competition.label }}
|
|
81
81
|
</span>
|
|
82
|
-
<span class="maz
|
|
82
|
+
<span class="maz:truncate">
|
|
83
83
|
{{ competition.area }}
|
|
84
84
|
</span>
|
|
85
85
|
</div>
|
|
@@ -13,7 +13,7 @@ description: MazCard is a standalone component to display some texts and images
|
|
|
13
13
|
|
|
14
14
|
<ComponentDemo expanded>
|
|
15
15
|
<MazCard title="Cute Kitten">
|
|
16
|
-
<p class="maz
|
|
16
|
+
<p class="maz:text-muted">
|
|
17
17
|
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 when an unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
18
18
|
</p>
|
|
19
19
|
</MazCard>
|
|
@@ -23,7 +23,7 @@ description: MazCard is a standalone component to display some texts and images
|
|
|
23
23
|
```vue
|
|
24
24
|
<template>
|
|
25
25
|
<MazCard class="vp-raw" title="Cute Kitten">
|
|
26
|
-
<p class="maz
|
|
26
|
+
<p class="maz:text-muted">
|
|
27
27
|
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
|
|
28
28
|
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s when an
|
|
29
29
|
unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
@@ -49,7 +49,7 @@ description: MazCard is a standalone component to display some texts and images
|
|
|
49
49
|
Cat
|
|
50
50
|
</template>
|
|
51
51
|
<template #content-body>
|
|
52
|
-
<p class="maz
|
|
52
|
+
<p class="maz:text-muted" style="margin: 0;">
|
|
53
53
|
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 when an unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
54
54
|
</p>
|
|
55
55
|
</template>
|
|
@@ -57,12 +57,12 @@ description: MazCard is a standalone component to display some texts and images
|
|
|
57
57
|
<MazBtn
|
|
58
58
|
fab
|
|
59
59
|
color="destructive"
|
|
60
|
-
class="maz
|
|
60
|
+
class="maz:me-2"
|
|
61
61
|
>
|
|
62
|
-
<MazIcon
|
|
62
|
+
<MazIcon icon="/trash.svg" class="maz:text-xl" />
|
|
63
63
|
</MazBtn>
|
|
64
|
-
<MazBtn color="
|
|
65
|
-
<MazIcon
|
|
64
|
+
<MazBtn color="surface">
|
|
65
|
+
<MazIcon icon="/user-plus.svg" class="maz:text-xl" />
|
|
66
66
|
</MazBtn>
|
|
67
67
|
</template>
|
|
68
68
|
</MazCard>
|
|
@@ -85,7 +85,7 @@ description: MazCard is a standalone component to display some texts and images
|
|
|
85
85
|
</span>
|
|
86
86
|
</template>
|
|
87
87
|
<template #content-body>
|
|
88
|
-
<p class="maz
|
|
88
|
+
<p class="maz:text-muted">
|
|
89
89
|
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 when an unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
90
90
|
</p>
|
|
91
91
|
</template>
|
|
@@ -94,15 +94,15 @@ description: MazCard is a standalone component to display some texts and images
|
|
|
94
94
|
size="md"
|
|
95
95
|
fab
|
|
96
96
|
color="destructive"
|
|
97
|
-
class="maz
|
|
97
|
+
class="maz:me-2"
|
|
98
98
|
>
|
|
99
|
-
<MazIcon
|
|
99
|
+
<MazIcon icon="/trash.svg" />
|
|
100
100
|
</MazBtn>
|
|
101
101
|
<MazBtn
|
|
102
102
|
size="md"
|
|
103
103
|
color="contrast"
|
|
104
104
|
>
|
|
105
|
-
<MazIcon
|
|
105
|
+
<MazIcon icon="/user-plus.svg" />
|
|
106
106
|
</MazBtn>
|
|
107
107
|
</template>
|
|
108
108
|
</MazCard>
|
|
@@ -127,7 +127,7 @@ When you display images, you can change the orientation of the card, available o
|
|
|
127
127
|
<h3> Cute Kitten </h3>
|
|
128
128
|
</template>
|
|
129
129
|
<template #content-body>
|
|
130
|
-
<p class="maz
|
|
130
|
+
<p class="maz:text-muted">
|
|
131
131
|
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 when an unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
132
132
|
</p>
|
|
133
133
|
</template>
|
|
@@ -141,7 +141,7 @@ When you display images, you can change the orientation of the card, available o
|
|
|
141
141
|
<h3> Cute Kitten </h3>
|
|
142
142
|
</template>
|
|
143
143
|
<template #content-body>
|
|
144
|
-
<p class="maz
|
|
144
|
+
<p class="maz:text-muted">
|
|
145
145
|
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 when an unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
146
146
|
</p>
|
|
147
147
|
</template>
|
|
@@ -159,7 +159,7 @@ When you display images, you can change the orientation of the card, available o
|
|
|
159
159
|
<h3> Cute Kitten </h3>
|
|
160
160
|
</template>
|
|
161
161
|
<template #content-body>
|
|
162
|
-
<p class="maz
|
|
162
|
+
<p class="maz:text-muted">
|
|
163
163
|
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 when an unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
164
164
|
</p>
|
|
165
165
|
</template>
|
|
@@ -176,7 +176,7 @@ When you display images, you can change the orientation of the card, available o
|
|
|
176
176
|
<h3> Cute Kitten </h3>
|
|
177
177
|
</template>
|
|
178
178
|
<template #content-body>
|
|
179
|
-
<p class="maz
|
|
179
|
+
<p class="maz:text-muted">
|
|
180
180
|
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 when an unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
181
181
|
</p>
|
|
182
182
|
</template>
|
|
@@ -199,7 +199,7 @@ When you display images, you can change the orientation of the card, available o
|
|
|
199
199
|
<h3> Cute Kitten </h3>
|
|
200
200
|
</template>
|
|
201
201
|
<template #content-body>
|
|
202
|
-
<p class="maz
|
|
202
|
+
<p class="maz:text-muted">
|
|
203
203
|
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 when an unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
204
204
|
</p>
|
|
205
205
|
</template>
|
|
@@ -216,7 +216,7 @@ When you display images, you can change the orientation of the card, available o
|
|
|
216
216
|
<h3> Cute Kitten </h3>
|
|
217
217
|
</template>
|
|
218
218
|
<template #content-body>
|
|
219
|
-
<p class="maz
|
|
219
|
+
<p class="maz:text-muted">
|
|
220
220
|
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 when an unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
221
221
|
</p>
|
|
222
222
|
</template>
|
|
@@ -403,9 +403,9 @@ To access the link, simply click the card.
|
|
|
403
403
|
|
|
404
404
|
### Footer aligned on left
|
|
405
405
|
|
|
406
|
-
Use the prop option `footer-align="
|
|
406
|
+
Use the prop option `footer-align="start"`
|
|
407
407
|
|
|
408
|
-
<MazCard footer-align="
|
|
408
|
+
<MazCard footer-align="start" class="vp-raw">
|
|
409
409
|
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 when an unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
410
410
|
|
|
411
411
|
<template #footer>
|
|
@@ -418,7 +418,7 @@ Use the prop option `footer-align="left"`
|
|
|
418
418
|
::: details View code
|
|
419
419
|
|
|
420
420
|
```html
|
|
421
|
-
<MazCard footer-align="
|
|
421
|
+
<MazCard footer-align="start">
|
|
422
422
|
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 when an unknown printer took a galley of type and scrambled it to make a type specimen book.
|
|
423
423
|
|
|
424
424
|
<template #footer>
|