@maz-ui/mcp 4.3.4-beta.0 → 4.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mcp.mjs +1 -1
- package/docs/generated-docs/maz-alert.doc.md +20 -0
- package/docs/generated-docs/maz-animated-text.doc.md +15 -12
- package/docs/generated-docs/maz-btn-group.doc.md +20 -0
- package/docs/generated-docs/maz-btn.doc.md +1 -0
- package/docs/generated-docs/maz-container.doc.md +25 -0
- package/docs/generated-docs/maz-input-number.doc.md +21 -19
- package/docs/generated-docs/maz-pagination.doc.md +9 -10
- package/docs/generated-docs/maz-read-more.doc.md +18 -0
- package/docs/generated-docs/maz-skeleton.doc.md +12 -0
- package/docs/generated-docs/maz-stepper.doc.md +1 -0
- package/docs/src/blog/v4.md +1 -1
- package/docs/src/components/maz-accordion.md +1 -1
- package/docs/src/components/maz-alert.md +374 -0
- package/docs/src/components/maz-animated-counter.md +1 -1
- package/docs/src/components/maz-animated-element.md +1 -1
- package/docs/src/components/maz-animated-text.md +1 -1
- package/docs/src/components/maz-avatar.md +1 -1
- package/docs/src/components/maz-backdrop.md +2 -2
- package/docs/src/components/maz-badge.md +1 -1
- package/docs/src/components/maz-bottom-sheet.md +1 -1
- package/docs/src/components/maz-btn-group.md +475 -0
- package/docs/src/components/maz-btn.md +1 -1
- package/docs/src/components/maz-card-spotlight.md +1 -1
- package/docs/src/components/maz-card.md +1 -1
- package/docs/src/components/maz-carousel.md +2 -2
- package/docs/src/components/maz-checkbox.md +1 -1
- package/docs/src/components/maz-checklist.md +2 -2
- package/docs/src/components/maz-circular-progress-bar.md +1 -1
- package/docs/src/components/maz-container.md +348 -0
- package/docs/src/components/maz-date-picker.md +3 -3
- package/docs/src/components/maz-dialog-confirm.md +1 -1
- package/docs/src/components/maz-dialog.md +1 -1
- package/docs/src/components/maz-drawer.md +1 -1
- package/docs/src/components/maz-dropdown.md +2 -2
- package/docs/src/components/maz-dropzone.md +4 -4
- package/docs/src/components/maz-expand-animation.md +1 -1
- package/docs/src/components/maz-fullscreen-loader.md +1 -1
- package/docs/src/components/maz-gallery.md +1 -1
- package/docs/src/components/maz-input-code.md +1 -1
- package/docs/src/components/maz-input-number.md +2 -2
- package/docs/src/components/maz-input-phone-number.md +3 -3
- package/docs/src/components/maz-input-price.md +2 -2
- package/docs/src/components/maz-input-tags.md +2 -2
- package/docs/src/components/maz-input.md +1 -1
- package/docs/src/components/maz-lazy-img.md +1 -1
- package/docs/src/components/maz-link.md +1 -1
- package/docs/src/components/maz-loading-bar.md +1 -1
- package/docs/src/components/maz-pagination.md +2 -4
- package/docs/src/components/maz-pull-to-refresh.md +1 -1
- package/docs/src/components/maz-radio-buttons.md +1 -1
- package/docs/src/components/maz-radio.md +1 -1
- package/docs/src/components/maz-read-more.md +300 -0
- package/docs/src/components/maz-reading-progress-bar.md +1 -1
- package/docs/src/components/maz-select-country.md +1 -1
- package/docs/src/components/maz-select.md +3 -3
- package/docs/src/components/maz-skeleton.md +355 -0
- package/docs/src/components/maz-slider.md +1 -1
- package/docs/src/components/maz-stepper.md +39 -18
- package/docs/src/components/maz-switch.md +1 -1
- package/docs/src/components/maz-table.md +1 -1
- package/docs/src/components/maz-textarea.md +1 -1
- package/docs/src/composables/use-aos.md +1 -1
- package/docs/src/composables/use-form-validator.md +1250 -871
- package/docs/src/composables/use-wait.md +1 -1
- package/docs/src/guide/getting-started.md +8 -9
- package/docs/src/guide/icons.md +1 -1
- package/docs/src/guide/resolvers.md +20 -0
- package/docs/src/index.md +1 -23
- package/docs/src/plugins/toast.md +1 -1
- package/package.json +8 -8
package/dist/mcp.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { existsSync, readFileSync, readdirSync } from 'node:fs';
|
|
|
7
7
|
import { resolve, dirname, join } from 'node:path';
|
|
8
8
|
import { fileURLToPath } from 'node:url';
|
|
9
9
|
|
|
10
|
-
const version = "4.
|
|
10
|
+
const version = "4.4.0";
|
|
11
11
|
|
|
12
12
|
const _dirname = dirname(fileURLToPath(import.meta.url));
|
|
13
13
|
class DocumentationService {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
## Props
|
|
2
|
+
|
|
3
|
+
| Name | Description | Type | Required | Default | Possible values |
|
|
4
|
+
| ---------------- | ---------------------------------------------------------- | ------------------------- | -------- | ----------- | --------------------------------------------------------------------------------------------------------- |
|
|
5
|
+
| **title** | Title of the alert | `string` | No | `undefined` | - |
|
|
6
|
+
| **content** | Content of the alert | `string` | No | `undefined` | - |
|
|
7
|
+
| **icon** | Icon of the alert - can be a component or icon name string | `IconComponent \| string` | No | `undefined` | - |
|
|
8
|
+
| **hide-icon** | Hide the icon | `boolean` | No | `false` | - |
|
|
9
|
+
| **color** | Color of the alert | `MazAlertColor` | No | `info` | `'success' \| 'warning' \| 'destructive' \| 'info' \| 'primary' \| 'secondary' \| 'accent' \| 'contrast'` |
|
|
10
|
+
| **icon-size** | Size of the icon | `MazIconProps['size']` | No | `md` | - |
|
|
11
|
+
| **rounded-size** | Size of the rounded corners | `MazAlertRoundedSize` | No | `base` | `'none' \| 'sm' \| 'md' \| 'base' \| 'lg' \| 'xl' \| '2xl' \| '3xl'` |
|
|
12
|
+
| **bordered** | Add border to the component | `boolean` | No | `true` | - |
|
|
13
|
+
| **variant** | Visual variant of the alert | `MazAlertVariant` | No | `soft` | `'soft' \| 'solid'` |
|
|
14
|
+
|
|
15
|
+
## Slots
|
|
16
|
+
|
|
17
|
+
| Name | Description | Bindings |
|
|
18
|
+
| ------- | ------------------------------------------------------- | -------- |
|
|
19
|
+
| title | Title slot - overrides title prop | |
|
|
20
|
+
| default | Default slot for alert content - overrides content prop | |
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
## Props
|
|
2
2
|
|
|
3
|
-
| Name
|
|
4
|
-
|
|
|
5
|
-
| **text**
|
|
6
|
-
| **last-word**
|
|
7
|
-
| **delay**
|
|
8
|
-
| **direction**
|
|
9
|
-
| **tag**
|
|
10
|
-
| **word-delay**
|
|
11
|
-
| **column-gap**
|
|
12
|
-
| **row-gap**
|
|
13
|
-
| **duration**
|
|
14
|
-
| **once**
|
|
3
|
+
| Name | Description | Type | Required | Default | Possible values |
|
|
4
|
+
| ----------------- | ------------------------------------------------------------- | ------------------------------------- | -------- | ----------- | ----------------------------- |
|
|
5
|
+
| **text** | The text to animate<br/>**Example:** `"Hello"` | `string` | Yes | `undefined` | - |
|
|
6
|
+
| **last-word** | The last word(s) to be highlighted<br/>**Example:** `"world"` | `string` | No | `undefined` | - |
|
|
7
|
+
| **delay** | The delay of the animation | `number` | No | `0` | - |
|
|
8
|
+
| **direction** | The direction of the animation | `"up" \| "down" \| "left" \| "right"` | No | `up` | `up", "down", "left", "right` |
|
|
9
|
+
| **tag** | The tag to use for the text | `string` | No | `span` | - |
|
|
10
|
+
| **word-delay** | The delay between each word | `number` | No | `75` | - |
|
|
11
|
+
| **column-gap** | The column gap between each word | `number` | No | `0.5` | - |
|
|
12
|
+
| **row-gap** | The row gap between each word | `number` | No | `0` | - |
|
|
13
|
+
| **duration** | The duration of the animation | `number` | No | `2000` | - |
|
|
14
|
+
| **once** | Play the animation only once | `boolean` | No | `true` | - |
|
|
15
|
+
| **gradient-from** | The gradient from color | `MazColor` | No | `info` | - |
|
|
16
|
+
| **gradient-via** | The gradient via color | `MazColor` | No | `secondary` | - |
|
|
17
|
+
| **gradient-to** | The gradient to color | `MazColor` | No | `secondary` | - |
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
## Props
|
|
2
|
+
|
|
3
|
+
| Name | Description | Type | Required | Default | Possible values |
|
|
4
|
+
| ---------------- | ------------------------------------------------------------------------ | ------------------------ | -------- | ----------- | --------------- |
|
|
5
|
+
| **items** | The items for the button group (optional when using slot-based approach) | `MazButtonGroupOption[]` | No | `undefined` | - |
|
|
6
|
+
| **orientation** | The orientation of the button group | `"row" \| "col"` | No | `row` | `row' \| 'col` |
|
|
7
|
+
| **size** | The size of all buttons (only applies to props-based buttons) | `MazSize` | No | `md` | - |
|
|
8
|
+
| **color** | The color of all buttons (only applies to props-based buttons) | `MazColor` | No | `primary` | - |
|
|
9
|
+
| **rounded-size** | The rounded size of the buttons | `Native type` | No | `lg` | - |
|
|
10
|
+
| **outlined** | The outlined state of the buttons | `boolean` | No | `false` | - |
|
|
11
|
+
| **pastel** | The pastel state of the buttons | `boolean` | No | `false` | - |
|
|
12
|
+
| **loading** | The loading state of the buttons | `boolean` | No | `false` | - |
|
|
13
|
+
| **disabled** | The disabled state of the buttons | `boolean` | No | `false` | - |
|
|
14
|
+
|
|
15
|
+
## Slots
|
|
16
|
+
|
|
17
|
+
| Name | Description | Bindings |
|
|
18
|
+
| -------------- | ------------------------------------------- | ------------------------------------------------------------------------------------------------ |
|
|
19
|
+
| button-[index] | Custom content for a specific button | <br/>**item** `MazButtonGroupOption` - The button item<br/>**index** `number` - The button index |
|
|
20
|
+
| default | Slot for passing MazBtn components directly | |
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
| **right-icon** | The name of the icon or component to display on the right of the button `@type` `{string \| FunctionalComponent<SVGAttributes> \| ComponentPublicInstance \| Component}` | `string \| IconComponent` | No | `undefined` | - |
|
|
19
19
|
| **padding** | If true, the button will have no padding | `boolean` | No | `true` | - |
|
|
20
20
|
| **justify** | Choose how the elements are aligned in the button | `"start" \| "end" \| "center" \| "space-between" \| "space-around" \| "space-evenly"` | No | `undefined` | - |
|
|
21
|
+
| **active** | If true, the button will have an active state | `boolean` | No | `false` | - |
|
|
21
22
|
|
|
22
23
|
## Slots
|
|
23
24
|
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
## Props
|
|
2
|
+
|
|
3
|
+
| Name | Description | Type | Required | Default | Possible values |
|
|
4
|
+
| ------------------- | ----------------------------------- | -------------------------------------------------- | -------- | ----------- | -------------------------------------------------- |
|
|
5
|
+
| **title** | Title of the card in header | `string` | No | `undefined` | - |
|
|
6
|
+
| **elevation** | Add elevation to the component | `boolean` | No | `false` | - |
|
|
7
|
+
| **padding** | Add padding to the content | `boolean` | No | `true` | - |
|
|
8
|
+
| **bordered** | Add border to the component | `boolean` | No | `true` | - |
|
|
9
|
+
| **rounded-size** | Size of the rounded | `'none' \| 'sm' \| 'md' \| 'lg' \| 'xl' \| 'full'` | No | `undefined` | `'none' \| 'sm' \| 'md' \| 'lg' \| 'xl' \| 'full'` |
|
|
10
|
+
| **transparent** | Remove background color | `boolean` | No | `false` | - |
|
|
11
|
+
| **overflow-hidden** | Hide overflow | `boolean` | No | `true` | - |
|
|
12
|
+
| **left-icon** | Add icon to the header on the left | `IconComponent \| string` | No | `undefined` | - |
|
|
13
|
+
| **right-icon** | Add icon to the header on the right | `IconComponent \| string` | No | `undefined` | - |
|
|
14
|
+
| **icon-size** | Size of the icon | `MazIconProps['size']` | No | `md` | - |
|
|
15
|
+
| **block** | Display the container in full width | `boolean` | No | `false` | - |
|
|
16
|
+
|
|
17
|
+
## Slots
|
|
18
|
+
|
|
19
|
+
| Name | Description | Bindings |
|
|
20
|
+
| ---------- | ------------------------ | -------- |
|
|
21
|
+
| header | Replace the header | |
|
|
22
|
+
| icon-left | icon left | |
|
|
23
|
+
| title | title | |
|
|
24
|
+
| icon-right | icon right | |
|
|
25
|
+
| default | content of the container | |
|
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
## Props
|
|
2
2
|
|
|
3
|
-
| Name | Description
|
|
4
|
-
| ---------------- |
|
|
5
|
-
| **
|
|
6
|
-
| **
|
|
7
|
-
| **
|
|
8
|
-
| **
|
|
9
|
-
| **
|
|
10
|
-
| **
|
|
11
|
-
| **
|
|
12
|
-
| **
|
|
13
|
-
| **
|
|
14
|
-
| **
|
|
15
|
-
| **
|
|
16
|
-
| **
|
|
17
|
-
| **
|
|
18
|
-
| **
|
|
19
|
-
| **
|
|
20
|
-
| **
|
|
21
|
-
| **
|
|
3
|
+
| Name | Description | Type | Required | Default |
|
|
4
|
+
| ---------------- | --------------------------------------------------------------------------------------------------------------------------------- | ----------------------------- | -------- | -------------------------- |
|
|
5
|
+
| **id** | The id of the input. | `string` | No | `undefined` |
|
|
6
|
+
| **style** | The inline style object for the component. | `HTMLAttributes['style']` | No | `undefined` |
|
|
7
|
+
| **class** | The CSS class name for the component. | `HTMLAttributes['class']` | No | `undefined` |
|
|
8
|
+
| **model-value** | `v-model` <br/>The value of the component (v-model). | `number` | No | `undefined` |
|
|
9
|
+
| **disabled** | Whether the input number is disabled or not. | `boolean` | No | `undefined` |
|
|
10
|
+
| **max** | The maximum value allowed for the input number. | `number` | No | `Number.POSITIVE_INFINITY` |
|
|
11
|
+
| **min** | The minimum value allowed for the input number. | `number` | No | `Number.NEGATIVE_INFINITY` |
|
|
12
|
+
| **step** | The step value for incrementing or decrementing the input number. | `number` | No | `1` |
|
|
13
|
+
| **size** | The size of the input number component. | `MazSize` | No | `md` |
|
|
14
|
+
| **hide-buttons** | Whether to hide the increment and decrement buttons or not. | `boolean` | No | `false` |
|
|
15
|
+
| **text-center** | Whether to center the text inside the input or not. | `boolean` | No | `true` |
|
|
16
|
+
| **inputmode** | The inputmode attribute for the input. | `HTMLAttributes['inputmode']` | No | `undefined` |
|
|
17
|
+
| **block** | The input will be displayed in full width | `boolean` | No | `undefined` |
|
|
18
|
+
| **error** | Will display the input in error state. | `boolean` | No | `false` |
|
|
19
|
+
| **hint** | The hint text to display below the input. | `string` | No | `undefined` |
|
|
20
|
+
| **success** | Will display the input in success state. | `boolean` | No | `false` |
|
|
21
|
+
| **warning** | Will display the input in warning state. | `boolean` | No | `false` |
|
|
22
|
+
| **input-props** | The props for the input component. | `MazInputProps` | No | `undefined` |
|
|
23
|
+
| **top-label** | Static label displayed above the input field. Unlike the floating label, this remains fixed<br/>**Example:** `"User Information"` | `string` | No | `undefined` |
|
|
22
24
|
|
|
23
25
|
## Events
|
|
24
26
|
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
## Props
|
|
2
2
|
|
|
3
|
-
| Name | Description
|
|
4
|
-
| ---------------- |
|
|
5
|
-
| **model-value** | `v-model` <br/>The current page number.
|
|
6
|
-
| **button-props** | Props apply to the MazBtn components.
|
|
7
|
-
| **
|
|
8
|
-
| **
|
|
9
|
-
| **
|
|
10
|
-
| **
|
|
11
|
-
| **
|
|
12
|
-
| **loading** | Enable loading state of current button | `boolean` | No | `false` | - |
|
|
3
|
+
| Name | Description | Type | Required | Default | Possible values |
|
|
4
|
+
| ---------------- | --------------------------------------------------------------- | -------------------------- | -------- | ----------- | ------------------------------------------------------------------------------------------------------- |
|
|
5
|
+
| **model-value** | `v-model` <br/>The current page number. | `number` | No | `1` | - |
|
|
6
|
+
| **button-props** | Props apply to the MazBtn components. | `Partial<MazBtnProps>` | No | `undefined` | - |
|
|
7
|
+
| **active-color** | Color of the active button. | `MazColor \| "background"` | No | `contrast` | `contrast', 'primary', 'secondary', 'info', 'success', 'warning', 'destructive', 'accent', 'background` |
|
|
8
|
+
| **size** | Size of the buttons. | `MazSize` | No | `md` | `mini', 'xs', 'sm', 'md', 'lg', 'xl` |
|
|
9
|
+
| **total-pages** | Total number of pages. | `number` | Yes | `10` | - |
|
|
10
|
+
| **page-range** | Number of buttons to display before and after the current page. | `number` | No | `1` | - |
|
|
11
|
+
| **loading** | Enable loading state of current button | `boolean` | No | `false` | - |
|
|
13
12
|
|
|
14
13
|
## Slots
|
|
15
14
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
## Props
|
|
2
|
+
|
|
3
|
+
| Name | Description | Type | Required | Default |
|
|
4
|
+
| ----------------- | --------------------------------------------------- | ---------- | -------- | ------------------------------------ |
|
|
5
|
+
| **text** | The text to be truncated. | `string` | No | `undefined` |
|
|
6
|
+
| **max-lines** | The maximum number of lines to be displayed. | `number` | No | `4` |
|
|
7
|
+
| **max-chars** | The maximum number of characters to be displayed. | `number` | No | `undefined` |
|
|
8
|
+
| **color** | The color of the link (MazLink). | `MazColor` | No | `primary` |
|
|
9
|
+
| **collapse-text** | The text of the link when the content is collapsed. | `string` | No | `readMore.collapse' (translations)` |
|
|
10
|
+
| **expand-text** | The text of the link when the content is expanded. | `string` | No | `readMore.expand' (translations)` |
|
|
11
|
+
| **id** | Unique identifier for accessibility linking. | `string` | No | `undefined` |
|
|
12
|
+
| **aria-label** | Accessibility label for the content region. | `string` | No | `readMore.ariaLabel' (translations)` |
|
|
13
|
+
|
|
14
|
+
## Slots
|
|
15
|
+
|
|
16
|
+
| Name | Description | Bindings |
|
|
17
|
+
| ------- | ----------- | -------- |
|
|
18
|
+
| default | | |
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
## Props
|
|
2
|
+
|
|
3
|
+
| Name | Description | Type | Required | Default | Possible values |
|
|
4
|
+
| ---------------- | ------------------------------------------- | -------------------------------------------------- | -------- | -------------------------------------- | ---------------------------- |
|
|
5
|
+
| **shape** | Skeleton shape type | `'circle' \| 'rectangle' \| 'square'` | No | `rectangle` | `circle, rectangle, square` |
|
|
6
|
+
| **size** | Size with units (ex: '2rem', '40px', '3em') | `SizeUnit` | No | `1rem` | - |
|
|
7
|
+
| **width** | Custom width | `SizeUnit` | No | `undefined` | - |
|
|
8
|
+
| **height** | Custom height | `SizeUnit` | No | `undefined` | - |
|
|
9
|
+
| **animated** | Disable animation | `boolean` | No | `true` | - |
|
|
10
|
+
| **rounded-size** | Controls the border radius | `'none' \| 'sm' \| 'md' \| 'lg' \| 'xl' \| 'full'` | No | `md` | `none, sm, md, lg, xl, full` |
|
|
11
|
+
| **aria-label** | Accessibility label | `string` | No | `skeleton.ariaLabel' (translations)` | - |
|
|
12
|
+
| **loading-text** | Loading text for accessibility | `string` | No | `skeleton.loadingText' (translations)` | - |
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
| Name | Description | Bindings |
|
|
24
24
|
| ------------------ | --------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
25
|
+
| point | | |
|
|
25
26
|
| icon-${step} | Replace step number in the circle by an icon for the step | |
|
|
26
27
|
| title-${step} | Title of the step | |
|
|
27
28
|
| title-${step} | Subtitle of the step | |
|
package/docs/src/blog/v4.md
CHANGED
|
@@ -34,7 +34,7 @@ Optimal tree-shaking implementation results in **60-90% bundle size reductions**
|
|
|
34
34
|
|
|
35
35
|
```typescript
|
|
36
36
|
// Before v4: Large bundle with unused code
|
|
37
|
-
import * as MazUI from 'maz-ui'
|
|
37
|
+
import * as MazUI from 'maz-ui/components'
|
|
38
38
|
|
|
39
39
|
// v4: Surgical imports for minimal bundles
|
|
40
40
|
import MazBtn from 'maz-ui/components/MazBtn'
|
|
@@ -7,7 +7,7 @@ description: MazAccordion is a standalone component that allows you to create an
|
|
|
7
7
|
|
|
8
8
|
{{ $frontmatter.description }}
|
|
9
9
|
|
|
10
|
-
<!--@include:
|
|
10
|
+
<!--@include: ./../../.vitepress/mixins/getting-started.md-->
|
|
11
11
|
|
|
12
12
|
## Basic usage
|
|
13
13
|
|