@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.
Files changed (116) hide show
  1. package/dist/mcp.mjs +1 -1
  2. package/docs/generated-docs/maz-alert.doc.md +1 -1
  3. package/docs/generated-docs/maz-avatar.doc.md +1 -1
  4. package/docs/generated-docs/maz-badge.doc.md +8 -8
  5. package/docs/generated-docs/maz-btn.doc.md +26 -26
  6. package/docs/generated-docs/maz-card.doc.md +19 -19
  7. package/docs/generated-docs/maz-chart.doc.md +8 -8
  8. package/docs/generated-docs/maz-container.doc.md +20 -20
  9. package/docs/generated-docs/maz-drawer.doc.md +8 -8
  10. package/docs/generated-docs/maz-dropdown.doc.md +1 -1
  11. package/docs/generated-docs/maz-dropzone.doc.md +2 -2
  12. package/docs/generated-docs/maz-gallery.doc.md +15 -15
  13. package/docs/generated-docs/maz-icon.doc.md +11 -14
  14. package/docs/generated-docs/maz-input.doc.md +38 -38
  15. package/docs/generated-docs/maz-lazy-img.doc.md +18 -0
  16. package/docs/generated-docs/maz-link.doc.md +9 -9
  17. package/docs/generated-docs/maz-pagination.doc.md +9 -9
  18. package/docs/generated-docs/maz-popover.doc.md +5 -1
  19. package/docs/generated-docs/maz-radio-buttons.doc.md +17 -17
  20. package/docs/generated-docs/maz-select.doc.md +2 -2
  21. package/docs/generated-docs/maz-skeleton.doc.md +10 -10
  22. package/docs/generated-docs/maz-table.doc.md +37 -37
  23. package/docs/generated-docs/maz-textarea.doc.md +1 -1
  24. package/docs/generated-docs/maz-timeline.doc.md +1 -1
  25. package/docs/src/blog/v4.md +7 -7
  26. package/docs/src/blog/v5.md +186 -0
  27. package/docs/src/components/maz-accordion.md +1 -1
  28. package/docs/src/components/maz-alert.md +15 -15
  29. package/docs/src/components/maz-animated-counter.md +4 -4
  30. package/docs/src/components/maz-avatar.md +2 -2
  31. package/docs/src/components/maz-backdrop.md +7 -7
  32. package/docs/src/components/maz-badge.md +16 -34
  33. package/docs/src/components/maz-bottom-sheet.md +74 -74
  34. package/docs/src/components/maz-btn-group.md +17 -17
  35. package/docs/src/components/maz-btn.md +129 -96
  36. package/docs/src/components/maz-card-spotlight.md +5 -5
  37. package/docs/src/components/maz-card.md +20 -20
  38. package/docs/src/components/maz-carousel.md +14 -14
  39. package/docs/src/components/maz-chart.md +23 -4
  40. package/docs/src/components/maz-checkbox.md +3 -3
  41. package/docs/src/components/maz-checklist.md +19 -19
  42. package/docs/src/components/maz-circular-progress-bar.md +4 -4
  43. package/docs/src/components/maz-container.md +52 -37
  44. package/docs/src/components/maz-date-picker.md +7 -7
  45. package/docs/src/components/maz-dialog-confirm.md +2 -2
  46. package/docs/src/components/maz-drawer.md +14 -14
  47. package/docs/src/components/maz-dropdown.md +27 -12
  48. package/docs/src/components/maz-dropzone.md +6 -6
  49. package/docs/src/components/maz-expand-animation.md +2 -2
  50. package/docs/src/components/maz-fullscreen-loader.md +2 -2
  51. package/docs/src/components/maz-gallery.md +1 -1
  52. package/docs/src/components/maz-icon.md +113 -60
  53. package/docs/src/components/maz-input-code.md +1 -1
  54. package/docs/src/components/maz-input-phone-number.md +89 -88
  55. package/docs/src/components/maz-input-tags.md +2 -2
  56. package/docs/src/components/maz-input.md +42 -12
  57. package/docs/src/components/maz-link.md +28 -12
  58. package/docs/src/components/maz-pagination.md +2 -2
  59. package/docs/src/components/maz-popover.md +236 -236
  60. package/docs/src/components/maz-pull-to-refresh.md +2 -2
  61. package/docs/src/components/maz-radio-buttons.md +11 -11
  62. package/docs/src/components/maz-radio.md +3 -3
  63. package/docs/src/components/maz-read-more.md +7 -7
  64. package/docs/src/components/maz-select-country.md +26 -26
  65. package/docs/src/components/maz-select.md +1 -1
  66. package/docs/src/components/maz-skeleton.md +25 -25
  67. package/docs/src/components/maz-spinner.md +2 -2
  68. package/docs/src/components/maz-stepper.md +5 -5
  69. package/docs/src/components/maz-switch.md +1 -1
  70. package/docs/src/components/maz-table.md +10 -10
  71. package/docs/src/components/maz-tabs.md +17 -17
  72. package/docs/src/components/maz-textarea.md +8 -8
  73. package/docs/src/components/maz-ticker.md +37 -37
  74. package/docs/src/components/maz-timeline.md +9 -9
  75. package/docs/src/composables/use-dialog.md +1 -1
  76. package/docs/src/composables/use-display-names.md +2 -2
  77. package/docs/src/composables/use-form-validator.md +35 -35
  78. package/docs/src/composables/use-idle-timeout.md +3 -3
  79. package/docs/src/composables/use-reading-time.md +5 -5
  80. package/docs/src/composables/use-string-matching.md +4 -4
  81. package/docs/src/composables/use-swipe.md +3 -3
  82. package/docs/src/composables/use-timer.md +3 -3
  83. package/docs/src/composables/use-toast.md +1 -1
  84. package/docs/src/composables/use-user-visibility.md +1 -1
  85. package/docs/src/composables/use-wait.md +2 -2
  86. package/docs/src/directives/click-outside.md +17 -17
  87. package/docs/src/directives/lazy-img.md +5 -5
  88. package/docs/src/directives/tooltip.md +15 -15
  89. package/docs/src/directives/zoom-img.md +1 -1
  90. package/docs/src/ecosystem/eslint-config.md +187 -0
  91. package/docs/src/ecosystem/stylelint-config.md +302 -0
  92. package/docs/src/guide/browser-support.md +81 -0
  93. package/docs/src/guide/getting-started.md +23 -16
  94. package/docs/src/guide/icon-set.md +11 -11
  95. package/docs/src/guide/icons.md +32 -5
  96. package/docs/src/guide/maz-ui-provider.md +6 -6
  97. package/docs/src/guide/migration-v4.md +3 -3
  98. package/docs/src/guide/migration-v5.md +662 -0
  99. package/docs/src/guide/nuxt.md +27 -44
  100. package/docs/src/guide/resolvers.md +2 -2
  101. package/docs/src/guide/tailwind.md +154 -0
  102. package/docs/src/guide/themes.md +258 -485
  103. package/docs/src/guide/vue.md +8 -5
  104. package/docs/src/helpers/capitalize.md +4 -4
  105. package/docs/src/helpers/country-code-to-unicode-flag.md +37 -37
  106. package/docs/src/helpers/currency.md +4 -4
  107. package/docs/src/helpers/date.md +4 -4
  108. package/docs/src/helpers/get-country-flag-url.md +9 -9
  109. package/docs/src/helpers/number.md +5 -5
  110. package/docs/src/index.md +296 -266
  111. package/docs/src/made-with-maz-ui.md +5 -5
  112. package/docs/src/plugins/aos.md +6 -6
  113. package/docs/src/plugins/dialog.md +4 -4
  114. package/docs/src/plugins/toast.md +3 -3
  115. package/docs/src/plugins/wait.md +1 -1
  116. 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="background">background</MazBtn>
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="background" outlined>background</MazBtn>
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-flex maz-flex-col maz-flex-center">
117
+ :key="color" class="maz:flex maz:flex-col maz:flex-center">
118
118
  <MazBtn
119
119
  loading
120
120
  :color="color"
121
- left-icon="user"
122
- right-icon="user"
121
+ start-icon="user"
122
+ end-icon="user"
123
123
  >
124
124
  {{ color }}
125
125
  </MazBtn>
126
- <span class="maz-text-muted maz-text-xs"> {{ color }} </span>
126
+ <span class="maz:text-muted maz:text-xs"> {{ color }} </span>
127
127
  </div>
128
128
  </div>
129
129
 
@@ -141,7 +141,7 @@ const colors = [
141
141
  'contrast',
142
142
  'accent',
143
143
  'transparent',
144
- 'background',
144
+ 'surface',
145
145
  ]
146
146
  </script>
147
147
 
@@ -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-p-3 flex-wrap">
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="background" pastel>background</MazBtn>
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-p-3 flex-wrap">
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-flex maz-gap-5 maz-items-center">
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-flex maz-flex-col maz-gap-2">
273
- <MazBtn block justify="center" icon="users" right-icon="sun" size="md">center</MazBtn>
274
- <MazBtn block justify="start" icon="users" right-icon="sun" size="md">start</MazBtn>
275
- <MazBtn block justify="end" icon="users" right-icon="sun" size="md">end</MazBtn>
276
- <MazBtn block justify="space-between" icon="users" right-icon="sun" size="md">between</MazBtn>
277
- <MazBtn block justify="space-around" icon="users" right-icon="sun" size="md">around</MazBtn>
278
- <MazBtn block justify="space-evenly" icon="users" right-icon="sun" size="md">evenly</MazBtn>
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" right-icon="sun" size="md">center</MazBtn>
285
- <MazBtn block justify="start" icon="users" right-icon="sun" size="md">start</MazBtn>
286
- <MazBtn block justify="end" icon="users" right-icon="sun" size="md">end</MazBtn>
287
- <MazBtn block justify="space-between" icon="users" right-icon="sun" size="md">between</MazBtn>
288
- <MazBtn block justify="space-around" icon="users" right-icon="sun" size="md">around</MazBtn>
289
- <MazBtn block justify="space-evenly" icon="users" right-icon="sun" size="md">evenly</MazBtn>
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-mb-2 maz-font-semibold maz-text-lg">
314
- Left Icon and Right Icon
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-flex maz-gap-2 maz-rounded maz-flex-wrap maz-items-center">
318
- <MazBtn :left-icon="MazCheck" size="mini">
319
- left-icon
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 :left-icon="MazCheck" size="xs">
322
- left-icon
321
+ <MazBtn :start-icon="MazCheck" size="xs">
322
+ start-icon
323
323
  </MazBtn>
324
- <MazBtn :left-icon="MazCheck" size="sm">
325
- left-icon
324
+ <MazBtn :start-icon="MazCheck" size="sm">
325
+ start-icon
326
326
  </MazBtn>
327
- <MazBtn :right-icon="MazCheck" size="md">
328
- left-icon
327
+ <MazBtn :end-icon="MazCheck" size="md">
328
+ end-icon
329
329
  </MazBtn>
330
- <MazBtn :right-icon="MazCheck" size="lg">
331
- left-icon
330
+ <MazBtn :end-icon="MazCheck" size="lg">
331
+ end-icon
332
332
  </MazBtn>
333
- <MazBtn :right-icon="MazCheck" size="xl">
334
- left-icon
333
+ <MazBtn :end-icon="MazCheck" size="xl">
334
+ end-icon
335
335
  </MazBtn>
336
336
  </div>
337
337
 
338
- <h4 class="maz-my-2 maz-font-semibold maz-text-lg">
338
+ <h4 class="maz:my-2 maz:font-semibold maz:text-lg">
339
339
  Fab
340
340
  </h4>
341
341
 
342
- <div class="maz-flex maz-gap-2 maz-rounded maz-flex-wrap maz-items-center">
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-my-2 maz-font-semibold maz-text-lg">
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-flex maz-gap-2 maz-rounded maz-flex-wrap maz-items-center">
356
- <MazBtn :left-icon="MazSpinner" size="md" color="warning">
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 :left-icon="MazCheck" size="mini">
365
- left-icon
364
+ <MazBtn :start-icon="MazCheck" size="mini">
365
+ start-icon
366
366
  </MazBtn>
367
- <MazBtn :left-icon="MazCheck" size="xs">
368
- left-icon
367
+ <MazBtn :start-icon="MazCheck" size="xs">
368
+ start-icon
369
369
  </MazBtn>
370
- <MazBtn :left-icon="MazCheck" size="sm">
371
- left-icon
370
+ <MazBtn :start-icon="MazCheck" size="sm">
371
+ start-icon
372
372
  </MazBtn>
373
- <MazBtn :left-icon="MazCheck" size="md">
374
- left-icon
373
+ <MazBtn :start-icon="MazCheck" size="md">
374
+ start-icon
375
375
  </MazBtn>
376
- <MazBtn :left-icon="MazCheck" size="lg">
377
- left-icon
376
+ <MazBtn :start-icon="MazCheck" size="lg">
377
+ start-icon
378
378
  </MazBtn>
379
- <MazBtn :left-icon="MazCheck" size="xl">
380
- left-icon
379
+ <MazBtn :start-icon="MazCheck" size="xl">
380
+ start-icon
381
381
  </MazBtn>
382
382
  <MazBtn fab :icon="MazCommandLine" size="lg" />
383
- <MazBtn :left-icon="MazSpinner" size="sm" color="warning">
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 name
391
+ ### Use icon path
392
392
 
393
393
  ::: details View code
394
394
 
395
- When you use the properties `right-icon`, `left-icon` or `icon` with the icon name (string), the component uses `<MazIcon name="..." />` component.
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 left-icon="check" size="sm"> left-icon </MazBtn>
401
- <MazBtn right-icon="home"> right-icon </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 #left-icon>
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
- left-icon
424
+ start-icon
425
425
  </MazBtn>
426
426
  <MazBtn>
427
- <template #right-icon>
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
- right-icon
438
+ end-icon
439
439
  </MazBtn>
440
440
  <MazBtn fab size="lg">
441
441
  <template #icon>
@@ -462,17 +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 } from '@maz-ui/icons/MazCheck'
466
- import { MazHome } from '@maz-ui/icons/MazHome'
467
- import { MazCommandLine } from '@maz-ui/icons/MazCommandLine'
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'
468
468
  </script>
469
469
 
470
470
  <template>
471
- <MazBtn :left-icon="MazCheck" size="sm">
472
- left-icon
471
+ <MazBtn :start-icon="MazCheck" size="sm">
472
+ start-icon
473
473
  </MazBtn>
474
- <MazBtn :right-icon="MazHome">
475
- right-icon
474
+ <MazBtn :end-icon="MazHome">
475
+ end-icon
476
476
  </MazBtn>
477
477
  <MazBtn fab :icon="MazCommandLine" size="lg" />
478
478
  </template>
@@ -494,11 +494,11 @@ import MazCommandLine from '@maz-ui/icons/svg/command-line.svg?component'
494
494
  </script>
495
495
 
496
496
  <template>
497
- <MazBtn :left-icon="MazCheck" size="sm">
498
- left-icon
497
+ <MazBtn :start-icon="MazCheck" size="sm">
498
+ start-icon
499
499
  </MazBtn>
500
- <MazBtn :right-icon="MazHome">
501
- right-icon
500
+ <MazBtn :end-icon="MazHome">
501
+ end-icon
502
502
  </MazBtn>
503
503
  <MazBtn fab :icon="MazCommandLine" size="lg" />
504
504
  </template>
@@ -516,8 +516,41 @@ import { MazBtn, MazSpinner } from 'maz-ui/components'
516
516
  </script>
517
517
 
518
518
  <template>
519
- <MazBtn :left-icon="MazSpinner" size="sm" color="info">
520
- left-icon
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
521
554
  </MazBtn>
522
555
  </template>
523
556
  ```
@@ -530,7 +563,7 @@ import { MazBtn, MazSpinner } from 'maz-ui/components'
530
563
  When `href` attribute is provided, the component automatically becomes a `<a href="..." />`
531
564
  :::
532
565
 
533
- <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>
534
567
 
535
568
  ```html
536
569
  <MazBtn href="https://www.google.com" target="_blank"> Is Button Link </MazBtn>
@@ -542,7 +575,7 @@ When `href` attribute is provided, the component automatically becomes a `<a hre
542
575
  When `to` attribute is provided, the component automatically becomes a `<RouterLink to="..." />`
543
576
  :::
544
577
 
545
- <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>
546
579
 
547
580
  ```html
548
581
  <MazBtn :to="{ path: '/made-with-maz-ui.html' }"> Is RouterLink </MazBtn>
@@ -550,10 +583,10 @@ When `to` attribute is provided, the component automatically becomes a `<RouterL
550
583
 
551
584
  <script setup lang="ts">
552
585
  import { computed } from 'vue'
553
- import { MazCheck } from '@maz-ui/icons/MazCheck'
554
- import { MazHome } from '@maz-ui/icons/MazHome'
555
- import { MazCommandLine } from '@maz-ui/icons/MazCommandLine'
556
- import MazSpinner from 'maz-ui/src/components/MazSpinner.vue'
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'
557
590
 
558
591
  const colors = [
559
592
  'primary',
@@ -564,7 +597,7 @@ When `to` attribute is provided, the component automatically becomes a `<RouterL
564
597
  'warning',
565
598
  'destructive',
566
599
  'contrast',
567
- 'background',
600
+ 'surface',
568
601
  'transparent',
569
602
  ]
570
603
 
@@ -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-flex maz-gap-2">
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-grid maz-gap-4 maz-grid-cols-1 mob-l:maz-grid-cols-2 tab-l:maz-grid-cols-3">
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-truncate">
79
- <span class="maz-truncate">
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-truncate">
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-text-muted">
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-text-muted">
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-text-muted" style="margin: 0;">
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-me-2"
60
+ class="maz:me-2"
61
61
  >
62
- <MazIcon name="trash" class="maz-text-xl" />
62
+ <MazIcon icon="/trash.svg" class="maz:text-xl" />
63
63
  </MazBtn>
64
- <MazBtn color="background">
65
- <MazIcon name="user-plus" class="maz-text-xl" />
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-text-muted">
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-me-2"
97
+ class="maz:me-2"
98
98
  >
99
- <MazIcon name="trash" />
99
+ <MazIcon icon="/trash.svg" />
100
100
  </MazBtn>
101
101
  <MazBtn
102
102
  size="md"
103
103
  color="contrast"
104
104
  >
105
- <MazIcon name="user-plus" />
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-text-muted">
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-text-muted">
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-text-muted">
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-text-muted">
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-text-muted">
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-text-muted">
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="left"`
406
+ Use the prop option `footer-align="start"`
407
407
 
408
- <MazCard footer-align="left" class="vp-raw">
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="left">
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>