@maz-ui/mcp 4.9.3 → 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 +12 -30
- package/docs/src/components/maz-bottom-sheet.md +74 -74
- package/docs/src/components/maz-btn-group.md +17 -17
- package/docs/src/components/maz-btn.md +127 -94
- 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 -12
- package/docs/src/components/maz-pagination.md +2 -2
- package/docs/src/components/maz-popover.md +236 -236
- 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 +11 -11
- package/docs/src/guide/icons.md +32 -5
- 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 +296 -266
- 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
|
@@ -16,38 +16,38 @@ This component uses the `<Teleport to="body">` with [MazBackdrop](./maz-backdrop
|
|
|
16
16
|
## Interactive Demo
|
|
17
17
|
|
|
18
18
|
<ComponentDemo expanded>
|
|
19
|
-
<div class="maz
|
|
19
|
+
<div class="maz:flex maz:flex-col maz:gap-4">
|
|
20
20
|
<!-- Product Selection Demo -->
|
|
21
21
|
<MazCard>
|
|
22
22
|
<template #title>
|
|
23
|
-
<div class="maz
|
|
23
|
+
<div class="maz:flex maz:items-center maz:gap-3">
|
|
24
24
|
<MazAvatar src="https://images.unsplash.com/photo-1542291026-7eec264c27ff?w=100" size="lg" />
|
|
25
25
|
<div>
|
|
26
|
-
<h3 class="maz
|
|
27
|
-
<p class="maz
|
|
26
|
+
<h3 class="maz:text-lg maz:font-semibold">Nike Air Max</h3>
|
|
27
|
+
<p class="maz:text-muted maz:text-sm">Premium Running Shoes</p>
|
|
28
28
|
</div>
|
|
29
29
|
</div>
|
|
30
30
|
</template>
|
|
31
|
-
<div class="maz
|
|
32
|
-
<div class="maz
|
|
33
|
-
<span class="maz
|
|
34
|
-
<span class="maz
|
|
31
|
+
<div class="maz:space-y-4">
|
|
32
|
+
<div class="maz:flex maz:items-center maz:justify-between">
|
|
33
|
+
<span class="maz:font-medium">Price:</span>
|
|
34
|
+
<span class="maz:text-xl maz:font-bold maz:text-primary">$129.99</span>
|
|
35
35
|
</div>
|
|
36
|
-
<div class="maz
|
|
36
|
+
<div class="maz:flex maz:gap-2">
|
|
37
37
|
<MazBtn color="primary" @click="openProductOptions">
|
|
38
|
-
<MazIcon
|
|
38
|
+
<MazIcon icon="/cog.svg" class="maz:me-2" />
|
|
39
39
|
Customize Options
|
|
40
40
|
</MazBtn>
|
|
41
41
|
<MazBtn color="secondary" @click="openUserSettings">
|
|
42
|
-
<MazIcon
|
|
42
|
+
<MazIcon icon="/user.svg" class="maz:me-2" />
|
|
43
43
|
Profile Settings
|
|
44
44
|
</MazBtn>
|
|
45
45
|
</div>
|
|
46
46
|
</div>
|
|
47
47
|
</MazCard>
|
|
48
|
-
<MazCard v-if="selectedOptions.size || selectedOptions.color" class="maz
|
|
48
|
+
<MazCard v-if="selectedOptions.size || selectedOptions.color" class="maz:bg-secondary/10">
|
|
49
49
|
<template #title>Selected Options</template>
|
|
50
|
-
<div class="maz
|
|
50
|
+
<div class="maz:flex maz:gap-4">
|
|
51
51
|
<MazBadge v-if="selectedOptions.size" color="info">
|
|
52
52
|
Size: {{ selectedOptions.size }}
|
|
53
53
|
</MazBadge>
|
|
@@ -61,11 +61,11 @@ This component uses the `<Teleport to="body">` with [MazBackdrop](./maz-backdrop
|
|
|
61
61
|
</MazCard>
|
|
62
62
|
</div>
|
|
63
63
|
<MazBottomSheet v-model="isProductOpen" title="Customize Your Shoes">
|
|
64
|
-
<div class="maz
|
|
64
|
+
<div class="maz:space-y-6 maz:p-6">
|
|
65
65
|
<!-- Size Selection -->
|
|
66
66
|
<div>
|
|
67
|
-
<h4 class="maz
|
|
68
|
-
<div class="maz
|
|
67
|
+
<h4 class="maz:text-lg maz:font-semibold maz:mb-3">Select Size</h4>
|
|
68
|
+
<div class="maz:grid maz:grid-cols-4 maz:gap-2">
|
|
69
69
|
<MazBtn
|
|
70
70
|
v-for="size in sizes"
|
|
71
71
|
:key="size"
|
|
@@ -78,20 +78,20 @@ This component uses the `<Teleport to="body">` with [MazBackdrop](./maz-backdrop
|
|
|
78
78
|
</div>
|
|
79
79
|
</div>
|
|
80
80
|
<div>
|
|
81
|
-
<h4 class="maz
|
|
82
|
-
<div class="maz
|
|
81
|
+
<h4 class="maz:text-lg maz:font-semibold maz:mb-3">Select Color</h4>
|
|
82
|
+
<div class="maz:grid maz:grid-cols-3 maz:gap-3">
|
|
83
83
|
<div
|
|
84
84
|
v-for="color in colors"
|
|
85
85
|
:key="color.name"
|
|
86
|
-
class="maz
|
|
87
|
-
:class="selectedOptions.color === color.name ? 'maz
|
|
86
|
+
class="maz:flex maz:flex-col maz:items-center maz:cursor-pointer maz:p-3 maz:rounded-lg maz:border-2 maz:transition-all"
|
|
87
|
+
:class="selectedOptions.color === color.name ? 'maz:border-primary maz:bg-primary/10' : 'maz:border-divider maz:hover:border-primary/50'"
|
|
88
88
|
@click="selectedOptions.color = color.name"
|
|
89
89
|
>
|
|
90
90
|
<div
|
|
91
|
-
class="maz
|
|
91
|
+
class="maz:w-8 maz:h-8 maz:rounded-full maz:mb-2"
|
|
92
92
|
:style="{ backgroundColor: color.value }"
|
|
93
93
|
/>
|
|
94
|
-
<span class="maz
|
|
94
|
+
<span class="maz:text-sm maz:font-medium">{{ color.name }}</span>
|
|
95
95
|
</div>
|
|
96
96
|
</div>
|
|
97
97
|
</div>
|
|
@@ -103,9 +103,9 @@ This component uses the `<Teleport to="body">` with [MazBackdrop](./maz-backdrop
|
|
|
103
103
|
:max="10"
|
|
104
104
|
/>
|
|
105
105
|
</div>
|
|
106
|
-
<div class="maz
|
|
107
|
-
<MazBtn color="primary" class="maz
|
|
108
|
-
<MazIcon
|
|
106
|
+
<div class="maz:flex maz:gap-3 maz:pt-4">
|
|
107
|
+
<MazBtn color="primary" class="maz:flex-1" @click="addToCart">
|
|
108
|
+
<MazIcon icon="/shopping-cart.svg" class="maz:me-2" />
|
|
109
109
|
Add to Cart (${{ (129.99 * quantity).toFixed(2) }})
|
|
110
110
|
</MazBtn>
|
|
111
111
|
<MazBtn color="secondary" @click="isProductOpen = false">
|
|
@@ -116,16 +116,16 @@ This component uses the `<Teleport to="body">` with [MazBackdrop](./maz-backdrop
|
|
|
116
116
|
</MazBottomSheet>
|
|
117
117
|
|
|
118
118
|
<MazBottomSheet v-model="isUserOpen" title="Profile Settings">
|
|
119
|
-
<div class="maz
|
|
120
|
-
<div class="maz
|
|
119
|
+
<div class="maz:space-y-6 maz:p-6">
|
|
120
|
+
<div class="maz:flex maz:items-center maz:gap-4 maz:p-4 maz:bg-secondary/10 maz:rounded-lg">
|
|
121
121
|
<MazAvatar src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?w=100" size="xl" />
|
|
122
122
|
<div>
|
|
123
|
-
<h4 class="maz
|
|
124
|
-
<p class="maz
|
|
123
|
+
<h4 class="maz:font-semibold">John Doe</h4>
|
|
124
|
+
<p class="maz:text-muted maz:text-sm">john.doe@example.com</p>
|
|
125
125
|
<MazBadge color="success" size="xs">Premium Member</MazBadge>
|
|
126
126
|
</div>
|
|
127
127
|
</div>
|
|
128
|
-
<div class="maz
|
|
128
|
+
<div class="maz:flex maz:gap-4 maz:items-start">
|
|
129
129
|
<MazInput
|
|
130
130
|
v-model="userForm.name"
|
|
131
131
|
label="Full Name"
|
|
@@ -144,25 +144,25 @@ This component uses the `<Teleport to="body">` with [MazBackdrop](./maz-backdrop
|
|
|
144
144
|
placeholder="Select your country"
|
|
145
145
|
/>
|
|
146
146
|
</div>
|
|
147
|
-
<div class="maz
|
|
148
|
-
<div class="maz
|
|
147
|
+
<div class="maz:flex maz:gap-4">
|
|
148
|
+
<div class="maz:flex maz:items-center maz:justify-between maz:p-4 maz:border maz:border-divider maz:rounded-lg">
|
|
149
149
|
<div>
|
|
150
|
-
<p class="maz
|
|
151
|
-
<p class="maz
|
|
150
|
+
<p class="maz:font-medium">Email Notifications</p>
|
|
151
|
+
<p class="maz:text-sm maz:text-muted">Receive updates about your orders</p>
|
|
152
152
|
</div>
|
|
153
153
|
<MazSwitch v-model="userForm.notifications" />
|
|
154
154
|
</div>
|
|
155
|
-
<div class="maz
|
|
155
|
+
<div class="maz:flex maz:items-center maz:justify-between maz:p-4 maz:border maz:border-divider maz:rounded-lg">
|
|
156
156
|
<div>
|
|
157
|
-
<p class="maz
|
|
158
|
-
<p class="maz
|
|
157
|
+
<p class="maz:font-medium">Dark Mode</p>
|
|
158
|
+
<p class="maz:text-sm maz:text-muted">Switch to dark theme</p>
|
|
159
159
|
</div>
|
|
160
160
|
<MazSwitch v-model="userForm.darkMode" />
|
|
161
161
|
</div>
|
|
162
162
|
</div>
|
|
163
|
-
<div class="maz
|
|
164
|
-
<MazBtn color="primary" class="maz
|
|
165
|
-
<MazIcon
|
|
163
|
+
<div class="maz:flex maz:gap-3 maz:pt-4">
|
|
164
|
+
<MazBtn color="primary" class="maz:flex-1" @click="saveSettings">
|
|
165
|
+
<MazIcon icon="/check.svg" class="maz:me-2" />
|
|
166
166
|
Save Changes
|
|
167
167
|
</MazBtn>
|
|
168
168
|
<MazBtn color="secondary" @click="isUserOpen = false">
|
|
@@ -176,30 +176,30 @@ This component uses the `<Teleport to="body">` with [MazBackdrop](./maz-backdrop
|
|
|
176
176
|
|
|
177
177
|
```vue
|
|
178
178
|
<template>
|
|
179
|
-
<div class="maz
|
|
179
|
+
<div class="maz:flex maz:flex-col maz:gap-4">
|
|
180
180
|
<!-- Product Card -->
|
|
181
181
|
<MazCard>
|
|
182
182
|
<template #title>
|
|
183
|
-
<div class="maz
|
|
183
|
+
<div class="maz:flex maz:items-center maz:gap-3">
|
|
184
184
|
<MazAvatar src="https://images.unsplash.com/photo-1542291026-7eec264c27ff?w=100" size="lg" />
|
|
185
185
|
<div>
|
|
186
|
-
<h3 class="maz
|
|
186
|
+
<h3 class="maz:text-lg maz:font-semibold">
|
|
187
187
|
Nike Air Max
|
|
188
188
|
</h3>
|
|
189
|
-
<p class="maz
|
|
189
|
+
<p class="maz:text-sm maz:text-muted">
|
|
190
190
|
Premium Running Shoes
|
|
191
191
|
</p>
|
|
192
192
|
</div>
|
|
193
193
|
</div>
|
|
194
194
|
</template>
|
|
195
195
|
|
|
196
|
-
<div class="maz
|
|
197
|
-
<div class="maz
|
|
198
|
-
<span class="maz
|
|
199
|
-
<span class="maz
|
|
196
|
+
<div class="maz:space-y-4">
|
|
197
|
+
<div class="maz:flex maz:items-center maz:justify-between">
|
|
198
|
+
<span class="maz:font-medium">Price:</span>
|
|
199
|
+
<span class="maz:text-xl maz:font-bold maz:text-primary">$129.99</span>
|
|
200
200
|
</div>
|
|
201
201
|
|
|
202
|
-
<div class="maz
|
|
202
|
+
<div class="maz:flex maz:gap-2">
|
|
203
203
|
<MazBtn color="primary" @click="openProductOptions">
|
|
204
204
|
Customize Options
|
|
205
205
|
</MazBtn>
|
|
@@ -213,13 +213,13 @@ This component uses the `<Teleport to="body">` with [MazBackdrop](./maz-backdrop
|
|
|
213
213
|
|
|
214
214
|
<!-- Product Options Bottom Sheet -->
|
|
215
215
|
<MazBottomSheet v-model="isProductOpen" title="Customize Your Shoes">
|
|
216
|
-
<div class="maz
|
|
216
|
+
<div class="maz:space-y-6 maz:p-6">
|
|
217
217
|
<!-- Size Selection -->
|
|
218
218
|
<div>
|
|
219
|
-
<h4 class="maz
|
|
219
|
+
<h4 class="maz:mb-3 maz:text-lg maz:font-semibold">
|
|
220
220
|
Select Size
|
|
221
221
|
</h4>
|
|
222
|
-
<div class="maz
|
|
222
|
+
<div class="maz:grid maz:grid-cols-4 maz:gap-2">
|
|
223
223
|
<MazBtn
|
|
224
224
|
v-for="size in sizes"
|
|
225
225
|
:key="size"
|
|
@@ -234,22 +234,22 @@ This component uses the `<Teleport to="body">` with [MazBackdrop](./maz-backdrop
|
|
|
234
234
|
|
|
235
235
|
<!-- Color Selection with Visual Swatches -->
|
|
236
236
|
<div>
|
|
237
|
-
<h4 class="maz
|
|
237
|
+
<h4 class="maz:mb-3 maz:text-lg maz:font-semibold">
|
|
238
238
|
Select Color
|
|
239
239
|
</h4>
|
|
240
|
-
<div class="maz
|
|
240
|
+
<div class="maz:grid maz:grid-cols-3 maz:gap-3">
|
|
241
241
|
<div
|
|
242
242
|
v-for="color in colors"
|
|
243
243
|
:key="color.name"
|
|
244
|
-
class="maz
|
|
245
|
-
:class="selectedOptions.color === color.name ? 'maz
|
|
244
|
+
class="maz:flex maz:cursor-pointer maz:flex-col maz:items-center maz:rounded-lg maz:border-2 maz:p-3"
|
|
245
|
+
:class="selectedOptions.color === color.name ? 'maz:border-primary' : 'maz:border-divider'"
|
|
246
246
|
@click="selectedOptions.color = color.name"
|
|
247
247
|
>
|
|
248
248
|
<div
|
|
249
|
-
class="maz
|
|
249
|
+
class="maz:mb-2 maz:size-8 maz:rounded-full"
|
|
250
250
|
:style="{ backgroundColor: color.value }"
|
|
251
251
|
/>
|
|
252
|
-
<span class="maz
|
|
252
|
+
<span class="maz:text-sm">{{ color.name }}</span>
|
|
253
253
|
</div>
|
|
254
254
|
</div>
|
|
255
255
|
</div>
|
|
@@ -263,8 +263,8 @@ This component uses the `<Teleport to="body">` with [MazBackdrop](./maz-backdrop
|
|
|
263
263
|
/>
|
|
264
264
|
|
|
265
265
|
<!-- Actions -->
|
|
266
|
-
<div class="maz
|
|
267
|
-
<MazBtn color="primary" class="maz
|
|
266
|
+
<div class="maz:flex maz:gap-3 maz:pt-4">
|
|
267
|
+
<MazBtn color="primary" class="maz:flex-1" @click="addToCart">
|
|
268
268
|
Add to Cart (${{ (129.99 * quantity).toFixed(2) }})
|
|
269
269
|
</MazBtn>
|
|
270
270
|
<MazBtn color="secondary" @click="isProductOpen = false">
|
|
@@ -275,16 +275,16 @@ This component uses the `<Teleport to="body">` with [MazBackdrop](./maz-backdrop
|
|
|
275
275
|
</MazBottomSheet>
|
|
276
276
|
|
|
277
277
|
<MazBottomSheet v-model="isUserOpen" title="Profile Settings">
|
|
278
|
-
<div class="maz
|
|
279
|
-
<div class="maz
|
|
278
|
+
<div class="maz:space-y-6 maz:p-6">
|
|
279
|
+
<div class="maz:flex maz:items-center maz:gap-4 maz:p-4 maz:bg-secondary/10 maz:rounded-lg">
|
|
280
280
|
<MazAvatar src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?w=100" size="xl" />
|
|
281
281
|
<div>
|
|
282
|
-
<h4 class="maz
|
|
283
|
-
<p class="maz
|
|
282
|
+
<h4 class="maz:font-semibold">John Doe</h4>
|
|
283
|
+
<p class="maz:text-muted maz:text-sm">john.doe@example.com</p>
|
|
284
284
|
<MazBadge color="success" size="xs">Premium Member</MazBadge>
|
|
285
285
|
</div>
|
|
286
286
|
</div>
|
|
287
|
-
<div class="maz
|
|
287
|
+
<div class="maz:space-y-4">
|
|
288
288
|
<MazInput
|
|
289
289
|
v-model="userForm.name"
|
|
290
290
|
label="Full Name"
|
|
@@ -302,24 +302,24 @@ This component uses the `<Teleport to="body">` with [MazBackdrop](./maz-backdrop
|
|
|
302
302
|
:options="countries"
|
|
303
303
|
placeholder="Select your country"
|
|
304
304
|
/>
|
|
305
|
-
<div class="maz
|
|
305
|
+
<div class="maz:flex maz:items-center maz:justify-between maz:p-4 maz:border maz:border-divider maz:rounded-lg">
|
|
306
306
|
<div>
|
|
307
|
-
<p class="maz
|
|
308
|
-
<p class="maz
|
|
307
|
+
<p class="maz:font-medium">Email Notifications</p>
|
|
308
|
+
<p class="maz:text-sm maz:text-muted">Receive updates about your orders</p>
|
|
309
309
|
</div>
|
|
310
310
|
<MazSwitch v-model="userForm.notifications" />
|
|
311
311
|
</div>
|
|
312
|
-
<div class="maz
|
|
312
|
+
<div class="maz:flex maz:items-center maz:justify-between maz:p-4 maz:border maz:border-divider maz:rounded-lg">
|
|
313
313
|
<div>
|
|
314
|
-
<p class="maz
|
|
315
|
-
<p class="maz
|
|
314
|
+
<p class="maz:font-medium">Dark Mode</p>
|
|
315
|
+
<p class="maz:text-sm maz:text-muted">Switch to dark theme</p>
|
|
316
316
|
</div>
|
|
317
317
|
<MazSwitch v-model="userForm.darkMode" />
|
|
318
318
|
</div>
|
|
319
319
|
</div>
|
|
320
|
-
<div class="maz
|
|
321
|
-
<MazBtn color="primary" class="maz
|
|
322
|
-
<MazIcon
|
|
320
|
+
<div class="maz:flex maz:gap-3 maz:pt-4">
|
|
321
|
+
<MazBtn color="primary" class="maz:flex-1" @click="saveSettings">
|
|
322
|
+
<MazIcon icon="/check.svg" class="maz:me-2" />
|
|
323
323
|
Save Changes
|
|
324
324
|
</MazBtn>
|
|
325
325
|
<MazBtn color="secondary" @click="isUserOpen = false">
|
|
@@ -74,13 +74,13 @@ import MazBtn from 'maz-ui/components/MazBtn'
|
|
|
74
74
|
Use the `orientation` prop to arrange buttons horizontally (`row`) or vertically (`col`).
|
|
75
75
|
|
|
76
76
|
<ComponentDemo>
|
|
77
|
-
<div class="maz
|
|
77
|
+
<div class="maz:flex maz:gap-8 maz:flex-wrap">
|
|
78
78
|
<div>
|
|
79
|
-
<p class="maz
|
|
79
|
+
<p class="maz:mb-2 maz:text-muted">Row (default)</p>
|
|
80
80
|
<MazBtnGroup :items="basicItems" orientation="row" />
|
|
81
81
|
</div>
|
|
82
82
|
<div>
|
|
83
|
-
<p class="maz
|
|
83
|
+
<p class="maz:mb-2 maz:text-muted">Column</p>
|
|
84
84
|
<MazBtnGroup :items="basicItems" orientation="col" />
|
|
85
85
|
</div>
|
|
86
86
|
</div>
|
|
@@ -102,7 +102,7 @@ Use the `orientation` prop to arrange buttons horizontally (`row`) or vertically
|
|
|
102
102
|
Use the `size` prop to apply a size to all buttons in the group.
|
|
103
103
|
|
|
104
104
|
<ComponentDemo>
|
|
105
|
-
<div class="maz
|
|
105
|
+
<div class="maz:flex maz:flex-col maz:gap-4 maz:items-start">
|
|
106
106
|
<MazBtnGroup v-for="size in sizes" :key="size" :items="basicItems" :size="size" />
|
|
107
107
|
</div>
|
|
108
108
|
|
|
@@ -127,7 +127,7 @@ Use the `size` prop to apply a size to all buttons in the group.
|
|
|
127
127
|
Use the `color` prop to apply a color to all buttons in the group.
|
|
128
128
|
|
|
129
129
|
<ComponentDemo>
|
|
130
|
-
<div class="maz
|
|
130
|
+
<div class="maz:flex maz:flex-col maz:gap-4 maz:items-start">
|
|
131
131
|
<MazBtnGroup v-for="color in colors" :key="color" :items="basicItems" :color="color" />
|
|
132
132
|
</div>
|
|
133
133
|
|
|
@@ -214,7 +214,7 @@ const items: MazButtonGroupOption[] = [
|
|
|
214
214
|
<br />
|
|
215
215
|
|
|
216
216
|
<ComponentDemo>
|
|
217
|
-
<div class="maz
|
|
217
|
+
<div class="maz:flex maz:flex-col maz:gap-4 maz:items-start">
|
|
218
218
|
<MazBtnGroup>
|
|
219
219
|
<MazBtn outlined>Edit</MazBtn>
|
|
220
220
|
<MazBtn outlined>Save</MazBtn>
|
|
@@ -278,7 +278,7 @@ const items: MazButtonGroupOption[] = [
|
|
|
278
278
|
|
|
279
279
|
## With icons
|
|
280
280
|
|
|
281
|
-
Use the `
|
|
281
|
+
Use the `startIcon` or `endIcon` properties to add icons to buttons.
|
|
282
282
|
|
|
283
283
|
<ComponentDemo>
|
|
284
284
|
<MazBtnGroup :items="iconItems" />
|
|
@@ -297,12 +297,12 @@ Use the `leftIcon` or `rightIcon` properties to add icons to buttons.
|
|
|
297
297
|
<script lang="ts" setup>
|
|
298
298
|
import MazBtnGroup from 'maz-ui/components/MazBtnGroup'
|
|
299
299
|
import type { MazButtonGroupOption } from 'maz-ui/components/MazBtnGroup'
|
|
300
|
-
import { MazArrowLeft } from '@maz-ui/icons/MazArrowLeft'
|
|
301
|
-
import { MazArrowRight } from '@maz-ui/icons/MazArrowRight'
|
|
300
|
+
import { MazArrowLeft } from '@maz-ui/icons/raw/MazArrowLeft'
|
|
301
|
+
import { MazArrowRight } from '@maz-ui/icons/raw/MazArrowRight'
|
|
302
302
|
|
|
303
303
|
const items: MazButtonGroupOption[] = [
|
|
304
|
-
{ text: 'Previous',
|
|
305
|
-
{ text: 'Next',
|
|
304
|
+
{ text: 'Previous', startIcon: MazArrowLeft, active: true },
|
|
305
|
+
{ text: 'Next', endIcon: MazArrowRight },
|
|
306
306
|
]
|
|
307
307
|
|
|
308
308
|
const iconOnlyItems: MazButtonGroupOption[] = [
|
|
@@ -425,10 +425,10 @@ interface MazButtonGroupProps {
|
|
|
425
425
|
|
|
426
426
|
<script lang="ts" setup>
|
|
427
427
|
import type { MazButtonGroupOption } from 'maz-ui/components/MazBtnGroup'
|
|
428
|
-
import { MazArrowLeft } from '@maz-ui/icons/MazArrowLeft'
|
|
429
|
-
import { MazArrowRight } from '@maz-ui/icons/MazArrowRight'
|
|
430
|
-
import { MazBars3 } from '@maz-ui/icons/MazBars3'
|
|
431
|
-
import { MazSquares2x2 } from '@maz-ui/icons/MazSquares2x2'
|
|
428
|
+
import { MazArrowLeft } from '@maz-ui/icons/raw/MazArrowLeft'
|
|
429
|
+
import { MazArrowRight } from '@maz-ui/icons/raw/MazArrowRight'
|
|
430
|
+
import { MazBars3 } from '@maz-ui/icons/raw/MazBars3'
|
|
431
|
+
import { MazSquares2x2 } from '@maz-ui/icons/raw/MazSquares2x2'
|
|
432
432
|
|
|
433
433
|
const sizes = ['mini', 'xs', 'sm', 'md', 'lg', 'xl'] as const
|
|
434
434
|
const colors = ['primary', 'secondary', 'info', 'success', 'warning', 'destructive'] as const
|
|
@@ -457,8 +457,8 @@ const clickableItems: MazButtonGroupOption[] = [
|
|
|
457
457
|
]
|
|
458
458
|
|
|
459
459
|
const iconItems: MazButtonGroupOption[] = [
|
|
460
|
-
{ text: 'Previous',
|
|
461
|
-
{ text: 'Next',
|
|
460
|
+
{ text: 'Previous', startIcon: MazArrowLeft },
|
|
461
|
+
{ text: 'Next', endIcon: MazArrowRight },
|
|
462
462
|
]
|
|
463
463
|
const iconOnlyItems: MazButtonGroupOption[] = [
|
|
464
464
|
{ icon: MazBars3, color: 'primary', active: true },
|