@maz-ui/mcp 4.1.7-beta.0 → 4.1.7-beta.2
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-card.doc.md +19 -19
- package/docs/generated-docs/maz-date-picker.doc.md +41 -39
- package/docs/generated-docs/maz-link.doc.md +20 -20
- package/docs/src/components/maz-card.md +1 -1
- package/docs/src/components/maz-link.md +20 -16
- package/package.json +2 -2
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.1.
|
|
10
|
+
const version = "4.1.7-beta.1";
|
|
11
11
|
|
|
12
12
|
const _dirname = dirname(fileURLToPath(import.meta.url));
|
|
13
13
|
class DocumentationService {
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
## Props
|
|
2
2
|
|
|
3
|
-
| Name | Description | Type | Required |
|
|
4
|
-
| ------------------- | --------------------------------------------------------------------------------------- | -------------------------------------------------------- | -------- |
|
|
5
|
-
| **orientation** | Card variant: Must be `column \| row \| row-reverse \| column-reverse` | `"column" \| "row" \| "row-reverse" \| "column-reverse"` | No |
|
|
6
|
-
| **href** | Make card a link (footer area excluded) | `string` | No |
|
|
7
|
-
| **to** | Make card a link with a router-link (footer area excluded) | `Native type` | No |
|
|
8
|
-
| **href-target** | Target option of link: Muse be one of `_blank \| _self \| _parent \| _top \| framename` | `"_blank" \| "_self" \| "_parent" \| "_top" \| string` | No |
|
|
9
|
-
| **footer-align** | Footer text alignment: `right \| left` | `"right" \| "left"` | No |
|
|
10
|
-
| **gallery** | Images gallery props options (see `MazGallery` component) | `MazGalleryProps` | No |
|
|
11
|
-
| **scale** | scale animation on hover (only linked cards) | `boolean` | No |
|
|
12
|
-
| **elevation** | Set elevation to card (box-shadow) | `boolean` | No |
|
|
13
|
-
| **radius** | Set radius to card | `boolean` | No |
|
|
14
|
-
| **bordered** | Set border to card (in dark mode, the card is always bordered) | `boolean` | No |
|
|
15
|
-
| **wrapper-class** | add classes to wrapper | `Native type` | No |
|
|
16
|
-
| **padding** | Remove padding from content wrapper | `boolean` | No |
|
|
17
|
-
| **overflow-hidden** | Hide overflow | `boolean` | No |
|
|
18
|
-
| **collapsible** | Make card collapsible | `boolean` | No |
|
|
19
|
-
| **collapse-open** | `v-model:collapse-open` <br/>Card is open by default if `true` | `boolean` | No |
|
|
20
|
-
| **title** | Title of the card in header | `string` | No |
|
|
21
|
-
| **block** | The card will be displayed in full width | `boolean` | No |
|
|
3
|
+
| Name | Description | Type | Required | Default |
|
|
4
|
+
| ------------------- | --------------------------------------------------------------------------------------- | -------------------------------------------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
5
|
+
| **orientation** | Card variant: Must be `column \| row \| row-reverse \| column-reverse` | `"column" \| "row" \| "row-reverse" \| "column-reverse"` | No | `undefined` |
|
|
6
|
+
| **href** | Make card a link (footer area excluded) | `string` | No | `undefined` |
|
|
7
|
+
| **to** | Make card a link with a router-link (footer area excluded) | `Native type` | No | `undefined` |
|
|
8
|
+
| **href-target** | Target option of link: Muse be one of `_blank \| _self \| _parent \| _top \| framename` | `"_blank" \| "_self" \| "_parent" \| "_top" \| string` | No | `undefined` |
|
|
9
|
+
| **footer-align** | Footer text alignment: `right \| left` | `"right" \| "left"` | No | `undefined` |
|
|
10
|
+
| **gallery** | Images gallery props options (see `MazGallery` component) | `MazGalleryProps` | No | `` { displayedCount: 3, remaining: false, zoom: !href && !to, width: 200, height: 150 }` If `href` or `to` is set, `zoom` is set to `false `` |
|
|
11
|
+
| **scale** | scale animation on hover (only linked cards) | `boolean` | No | `undefined` |
|
|
12
|
+
| **elevation** | Set elevation to card (box-shadow) | `boolean` | No | `undefined` |
|
|
13
|
+
| **radius** | Set radius to card | `boolean` | No | `undefined` |
|
|
14
|
+
| **bordered** | Set border to card (in dark mode, the card is always bordered) | `boolean` | No | `undefined` |
|
|
15
|
+
| **wrapper-class** | add classes to wrapper | `Native type` | No | `undefined` |
|
|
16
|
+
| **padding** | Remove padding from content wrapper | `boolean` | No | `undefined` |
|
|
17
|
+
| **overflow-hidden** | Hide overflow | `boolean` | No | `undefined` |
|
|
18
|
+
| **collapsible** | Make card collapsible | `boolean` | No | `undefined` |
|
|
19
|
+
| **collapse-open** | `v-model:collapse-open` <br/>Card is open by default if `true` | `boolean` | No | `undefined` |
|
|
20
|
+
| **title** | Title of the card in header | `string` | No | `undefined` |
|
|
21
|
+
| **block** | The card will be displayed in full width | `boolean` | No | `undefined` |
|
|
22
22
|
|
|
23
23
|
## Events
|
|
24
24
|
|
|
@@ -1,44 +1,46 @@
|
|
|
1
1
|
## Props
|
|
2
2
|
|
|
3
|
-
| Name
|
|
4
|
-
|
|
|
5
|
-
| **id**
|
|
6
|
-
| **style**
|
|
7
|
-
| **class**
|
|
8
|
-
| **input-props**
|
|
9
|
-
| **model-value**
|
|
10
|
-
| **format**
|
|
11
|
-
| **open**
|
|
12
|
-
| **label**
|
|
13
|
-
| **placeholder**
|
|
14
|
-
| **input-date-format**
|
|
15
|
-
| **input-date-transformer**
|
|
16
|
-
| **locale**
|
|
17
|
-
| **hide-header**
|
|
18
|
-
| **disabled**
|
|
19
|
-
| **first-day-of-week**
|
|
20
|
-
| **auto-close**
|
|
21
|
-
| **custom-element-selector**
|
|
22
|
-
| **double**
|
|
23
|
-
| **inline**
|
|
24
|
-
| **color**
|
|
25
|
-
| **picker-position**
|
|
26
|
-
| **
|
|
27
|
-
| **
|
|
28
|
-
| **
|
|
29
|
-
| **
|
|
30
|
-
| **
|
|
31
|
-
| **
|
|
32
|
-
| **
|
|
33
|
-
| **
|
|
34
|
-
| **
|
|
35
|
-
| **min-
|
|
36
|
-
| **
|
|
37
|
-
| **
|
|
38
|
-
| **disabled-
|
|
39
|
-
| **
|
|
40
|
-
| **
|
|
41
|
-
| **
|
|
3
|
+
| Name | Description | Type | Required | Default | Possible values |
|
|
4
|
+
| ---------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------- | -------- | ---------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
|
|
5
|
+
| **id** | The unique identifier of the component | `string` | No | `undefined` | - |
|
|
6
|
+
| **style** | The inline style object for the component | `HTMLAttributes['style']` | No | `undefined` | - |
|
|
7
|
+
| **class** | The CSS class(es) to apply to the component | `HTMLAttributes['class']` | No | `undefined` | - |
|
|
8
|
+
| **input-props** | The props to apply to the input component | `MazInputProps` | No | `undefined` | - |
|
|
9
|
+
| **model-value** | The value of the date picker component If an object is provided, the picker will be a range picker | `MazDatePickerValue` | No | `undefined` | - |
|
|
10
|
+
| **format** | The format pattern for date display and parsing<br/>**Example:** `'YYYY-MM-DD', 'DD/MM/YYYY', 'YYYY-MM-DD HH:mm'` | `string` | No | `'YYYY-MM-DD'` | - |
|
|
11
|
+
| **open** | `v-model:open` <br/>Controls whether the picker window is open | `boolean` | No | `false` | - |
|
|
12
|
+
| **label** | The label text displayed above the input field | `string` | No | `undefined` | - |
|
|
13
|
+
| **placeholder** | The placeholder text shown when no value is selected | `string` | No | `undefined` | - |
|
|
14
|
+
| **input-date-format** | The Intl.DateTimeFormatOptions for styling the input date display | `Intl.DateTimeFormatOptions` | No | `() => ({ dateStyle: 'medium', timeStyle: 'full' })` | - |
|
|
15
|
+
| **input-date-transformer** | Custom function to transform the formatted date display | `Function` | No | `undefined` | - |
|
|
16
|
+
| **locale** | The locale string for date formatting and localization<br/>**Example:** `'en-US', 'fr-FR', 'de-DE'` | `string` | No | `undefined` | - |
|
|
17
|
+
| **hide-header** | Controls whether the calendar header is hidden | `boolean` | No | `false` | - |
|
|
18
|
+
| **disabled** | Controls whether the component is disabled | `boolean` | No | `false` | - |
|
|
19
|
+
| **first-day-of-week** | The first day of the week in the calendar<br/>**Example:** `0 (Sunday), 1 (Monday), 6 (Saturday)` | `0 \| 1 \| 2 \| 3 \| 4 \| 5 \| 6` | No | `0` | `0, 1, 2, 3, 4, 5, 6` |
|
|
20
|
+
| **auto-close** | Controls whether the picker closes automatically after date selection | `boolean` | No | `false` | - |
|
|
21
|
+
| **custom-element-selector** | CSS selector for a custom element that triggers the picker<br/>**Example:** `'#my-button', '.trigger-class'` | `string` | No | `undefined` | - |
|
|
22
|
+
| **double** | Controls whether the picker displays two months side by side | `boolean` | No | `false` | - |
|
|
23
|
+
| **inline** | Controls whether the picker is displayed inline without input field | `boolean` | No | `false` | - |
|
|
24
|
+
| **color** | The color theme of the component | `MazColor` | No | `'primary'` | `primary, secondary, success, destructive, warning, info, accent, contrast` |
|
|
25
|
+
| **picker-position** | The position where the picker popover should appear | `MazPopoverProps['position']` | No | `'auto'` | `top, bottom, left, right, top-end, bottom-end, left-end, right-end, top-start, bottom-start, left-start, right-start` |
|
|
26
|
+
| **picker-prefer-position** | The preferred position of the picker popover | `MazPopoverProps['preferPosition']` | No | `'bottom-start'` | `top, bottom, left, right, top-end, bottom-end, left-end, right-end, top-start, bottom-start, left-start, right-start` |
|
|
27
|
+
| **picker-fallback-position** | The fallback position of the picker popover | `MazPopoverProps['fallbackPosition']` | No | `'top-start'` | `top, bottom, left, right, top-end, bottom-end, left-end, right-end, top-start, bottom-start, left-start, right-start` |
|
|
28
|
+
| **time** | Controls whether the picker includes a time selector | `boolean` | No | `false` | - |
|
|
29
|
+
| **only-time** | Controls whether the picker shows only time selection (no date) | `boolean` | No | `false` | - |
|
|
30
|
+
| **minute-interval** | The interval in minutes for the time picker minute selection | `number` | No | `5` | `1, 5, 10, 15, 30` |
|
|
31
|
+
| **use-browser-locale** | Controls whether to automatically detect and use the browser's locale | `boolean` | No | `true` | - |
|
|
32
|
+
| **fetch-local** | Controls whether to fetch locale data dynamically | `boolean` | No | `true` | - |
|
|
33
|
+
| **shortcuts** | Array of predefined date range shortcuts or false to disable | `MazDatePickerShortcut[] \| false` | No | `true` | - |
|
|
34
|
+
| **shortcut** | The identifier of the currently selected shortcut | `MazDatePickerShortcut['identifier']` | No | `undefined` | - |
|
|
35
|
+
| **min-date** | The minimum selectable date in ISO format<br/>**Example:** `'2023-01-01'` | `string` | No | `undefined` | - |
|
|
36
|
+
| **max-date** | The maximum selectable date in ISO format<br/>**Example:** `'2024-12-31'` | `string` | No | `undefined` | - |
|
|
37
|
+
| **min-max-auto** | When minDate or maxDate are provided, if the current date is not between minDate and maxDate, the current date will be set to the minDate or maxDate | `boolean` | No | `true` | - |
|
|
38
|
+
| **disabled-weekly** | Array of weekday numbers to disable (0 = Sunday, 6 = Saturday)<br/>**Example:** `[0, 6] to disable weekends` | `number[]` | No | `() => []` | - |
|
|
39
|
+
| **disabled-dates** | Array of specific dates to disable in ISO format<br/>**Example:** `['2023-12-25', '2024-01-01']` | `string[]` | No | `() => []` | - |
|
|
40
|
+
| **disabled-hours** | Array of hour numbers to disable in the time picker (0-23)<br/>**Example:** `[0, 1, 2, 22, 23] to disable night hours` | `number[]` | No | `() => []` | - |
|
|
41
|
+
| **block** | Controls whether the input displays in full width | `boolean` | No | `false` | - |
|
|
42
|
+
| **range** | Controls whether the picker operates in range selection mode | `boolean` | No | `false` | - |
|
|
43
|
+
| **transition** | The transition name of the popover | `MazPopoverProps['transition']` | No | `'scale-fade'` | - |
|
|
42
44
|
|
|
43
45
|
## Events
|
|
44
46
|
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
## Props
|
|
2
2
|
|
|
3
|
-
| Name | Description | Type | Required | Default
|
|
4
|
-
| ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------- | -------- |
|
|
5
|
-
| **class** | The class attribute of the link | `Native type` | No | `undefined`
|
|
6
|
-
| **style** | The style attribute of the link | `Native type` | No | `undefined`
|
|
7
|
-
| **as** | The component to use for the link - if not provided, it will be `router-link` if `to` is provided, will be `a` if `href` is provided, otherwise it will be `button`, you can force the component to be used with `as` prop | `string \| "a" \| "router-link" \| "nuxt-link" \| "button"` | No | `depends on the provided props`
|
|
8
|
-
| **id** | The id of the link | `string` | No | `undefined`
|
|
9
|
-
| **title** | The title of the link | `string` | No | `undefined`
|
|
10
|
-
| **href** | The href of the link | `string` | No | `undefined`
|
|
11
|
-
| **to** | The route location (router-link) of the link | `RouteLocationRaw` | No | `undefined`
|
|
12
|
-
| **color** | The color of the link | `MazColor`
|
|
13
|
-
| **target** | The target of the link | `"_blank" \| "_self" \| "_parent" \| "_top" \| string` | No | `_self`
|
|
14
|
-
| **download** | The download of the link | `string` | No | `undefined`
|
|
15
|
-
| **rel** | The rel of the link | `string` | No | `undefined`
|
|
16
|
-
| **aria-label** | The aria-label of the link | `string` | No | `undefined`
|
|
17
|
-
| **underline** | Add an underline to the link | `boolean` | No | `false`
|
|
18
|
-
| **underline-hover** | Add an underline only on hover | `boolean` | No | `true`
|
|
19
|
-
| **auto-external** | Add an external icon to the link if target is '\_blank' | `boolean` | No | `true`
|
|
20
|
-
| **left-icon** | The name of the icon or component to display on the left of the text `@type` `{string \| FunctionalComponent \| ComponentPublicInstance \| Component}` | `string \| IconComponent` | No | `undefined`
|
|
21
|
-
| **right-icon** | The name of the icon or component to display on the right of the text `@type` `{string \| FunctionalComponent \| ComponentPublicInstance \| Component}` | `string \| IconComponent` | No | `undefined`
|
|
22
|
-
| **disabled** | The disabled state of the link if the component is a button | `boolean` | No | `false`
|
|
3
|
+
| Name | Description | Type | Required | Default | Possible values |
|
|
4
|
+
| ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------- | -------- | ---------------------------------------------------------------------------------------------------- | ----------------------------------------- |
|
|
5
|
+
| **class** | The class attribute of the link | `Native type` | No | `undefined` | - |
|
|
6
|
+
| **style** | The style attribute of the link | `Native type` | No | `undefined` | - |
|
|
7
|
+
| **as** | The component to use for the link - if not provided, it will be `router-link` if `to` is provided, will be `a` if `href` is provided, otherwise it will be `button`, you can force the component to be used with `as` prop | `string \| "a" \| "router-link" \| "nuxt-link" \| "button"` | No | `depends on the provided props` | `a', 'router-link', 'nuxt-link', 'button` |
|
|
8
|
+
| **id** | The id of the link | `string` | No | `undefined` | - |
|
|
9
|
+
| **title** | The title of the link | `string` | No | `undefined` | - |
|
|
10
|
+
| **href** | The href of the link | `string` | No | `undefined` | - |
|
|
11
|
+
| **to** | The route location (router-link) of the link | `RouteLocationRaw` | No | `undefined` | - |
|
|
12
|
+
| **color** | The color of the link | `MazColor \| "muted" \| "background" \| "inherit"` | No | `primary' When 'none', the link will not have any color, so it will inherit the color of the parent` | - |
|
|
13
|
+
| **target** | The target of the link | `"_blank" \| "_self" \| "_parent" \| "_top" \| string` | No | `_self` | `_blank', '_self', '_parent', '_top` |
|
|
14
|
+
| **download** | The download of the link | `string` | No | `undefined` | - |
|
|
15
|
+
| **rel** | The rel of the link | `string` | No | `undefined` | - |
|
|
16
|
+
| **aria-label** | The aria-label of the link | `string` | No | `undefined` | - |
|
|
17
|
+
| **underline** | Add an underline to the link | `boolean` | No | `false` | - |
|
|
18
|
+
| **underline-hover** | Add an underline only on hover | `boolean` | No | `true` | - |
|
|
19
|
+
| **auto-external** | Add an external icon to the link if target is '\_blank' | `boolean` | No | `true` | - |
|
|
20
|
+
| **left-icon** | The name of the icon or component to display on the left of the text `@type` `{string \| FunctionalComponent \| ComponentPublicInstance \| Component}` | `string \| IconComponent` | No | `undefined` | - |
|
|
21
|
+
| **right-icon** | The name of the icon or component to display on the right of the text `@type` `{string \| FunctionalComponent \| ComponentPublicInstance \| Component}` | `string \| IconComponent` | No | `undefined` | - |
|
|
22
|
+
| **disabled** | The disabled state of the link if the component is a button | `boolean` | No | `false` | - |
|
|
23
23
|
|
|
24
24
|
## Slots
|
|
25
25
|
|
|
@@ -12,7 +12,7 @@ description: MazCard is a standalone component to display some texts and images
|
|
|
12
12
|
## Basic usage
|
|
13
13
|
|
|
14
14
|
<ComponentDemo expanded>
|
|
15
|
-
<MazCard title="Cute Kitten"
|
|
15
|
+
<MazCard title="Cute Kitten">
|
|
16
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>
|
|
@@ -35,27 +35,31 @@ import MazLink from 'maz-ui/components/MazLink'
|
|
|
35
35
|
|
|
36
36
|
<ComponentDemo>
|
|
37
37
|
<div class="maz-flex maz-flex-col maz-gap-2 maz-justify-center">
|
|
38
|
-
<MazLink color="primary"> View product detail </MazLink>
|
|
39
|
-
<MazLink color="secondary"> View product detail </MazLink>
|
|
40
|
-
<MazLink color="info"> View product detail </MazLink>
|
|
41
|
-
<MazLink color="success"> View product detail </MazLink>
|
|
42
|
-
<MazLink color="warning"> View product detail </MazLink>
|
|
43
|
-
<MazLink color="destructive"> View product detail </MazLink>
|
|
44
|
-
<MazLink color="accent"> View product detail </MazLink>
|
|
45
|
-
<MazLink color="contrast"> View product detail </MazLink>
|
|
38
|
+
<MazLink color="primary"> View product detail (primary) </MazLink>
|
|
39
|
+
<MazLink color="secondary"> View product detail (secondary) </MazLink>
|
|
40
|
+
<MazLink color="info"> View product detail (info) </MazLink>
|
|
41
|
+
<MazLink color="success"> View product detail (success) </MazLink>
|
|
42
|
+
<MazLink color="warning"> View product detail (warning) </MazLink>
|
|
43
|
+
<MazLink color="destructive"> View product detail (destructive) </MazLink>
|
|
44
|
+
<MazLink color="accent"> View product detail (accent) </MazLink>
|
|
45
|
+
<MazLink color="contrast"> View product detail (contrast) </MazLink>
|
|
46
|
+
<MazLink color="background"> View product detail (background) </MazLink>
|
|
47
|
+
<MazLink color="muted"> View product detail (muted) </MazLink>
|
|
46
48
|
</div>
|
|
47
49
|
|
|
48
50
|
<template #code>
|
|
49
51
|
|
|
50
52
|
```html
|
|
51
|
-
<MazLink color="primary"> View product detail </MazLink>
|
|
52
|
-
<MazLink color="secondary"> View product detail </MazLink>
|
|
53
|
-
<MazLink color="info"> View product detail </MazLink>
|
|
54
|
-
<MazLink color="success"> View product detail </MazLink>
|
|
55
|
-
<MazLink color="warning"> View product detail </MazLink>
|
|
56
|
-
<MazLink color="destructive"> View product detail </MazLink>
|
|
57
|
-
<MazLink color="accent"> View product detail </MazLink>
|
|
58
|
-
<MazLink color="contrast"> View product detail </MazLink>
|
|
53
|
+
<MazLink color="primary"> View product detail (primary) </MazLink>
|
|
54
|
+
<MazLink color="secondary"> View product detail (secondary) </MazLink>
|
|
55
|
+
<MazLink color="info"> View product detail (info) </MazLink>
|
|
56
|
+
<MazLink color="success"> View product detail (success) </MazLink>
|
|
57
|
+
<MazLink color="warning"> View product detail (warning) </MazLink>
|
|
58
|
+
<MazLink color="destructive"> View product detail (destructive) </MazLink>
|
|
59
|
+
<MazLink color="accent"> View product detail (accent) </MazLink>
|
|
60
|
+
<MazLink color="contrast"> View product detail (contrast) </MazLink>
|
|
61
|
+
<MazLink color="background"> View product detail (background) </MazLink>
|
|
62
|
+
<MazLink color="muted"> View product detail (muted) </MazLink>
|
|
59
63
|
```
|
|
60
64
|
|
|
61
65
|
</template>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maz-ui/mcp",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.1.7-beta.
|
|
4
|
+
"version": "4.1.7-beta.2",
|
|
5
5
|
"description": "Maz-UI ModelContextProtocol Client",
|
|
6
6
|
"author": "Louis Mazel <me@loicmazuel.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"lint-staged": {
|
|
81
81
|
"*.{js,ts,mjs,mts,cjs,md,yml,json}": "cross-env NODE_ENV=production eslint --fix"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "927109f8a65185fd7a512673ed53620088991c95"
|
|
84
84
|
}
|