@maz-ui/mcp 5.0.0-beta.26 → 5.0.0-beta.28

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 CHANGED
@@ -7,7 +7,7 @@ import { existsSync, readFileSync, readdirSync, statSync } from 'node:fs';
7
7
  import { resolve, join, dirname } from 'node:path';
8
8
  import { fileURLToPath } from 'node:url';
9
9
 
10
- const version = "5.0.0-beta.26";
10
+ const version = "5.0.0-beta.28";
11
11
 
12
12
  class MetadataExtractor {
13
13
  extract(name, type, content, manualTags = []) {
@@ -4,7 +4,8 @@
4
4
  | ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -------- | ----------- | --------------------------------------------------------------------------------------------------------------------------------------- |
5
5
  | **text** | The text of the button, if not provided, the slot will be used | `string` | No | `undefined` | - |
6
6
  | **size** | Predifined sizes of the button | `MazSize` | No | `undefined` | `'xl' \| 'lg' \| 'md' \| 'sm' \| 'xs' \| 'mini'` |
7
- | **color** | The color of the button | `MazColor \| "surface"` | No | `undefined` | `'primary' \| 'secondary' \| 'info' \| 'success' \| 'warning' \| 'destructive' \| 'transparent' \| 'contrast' \| 'accent' \| 'surface'` |
7
+ | **color** | The color of the button | `MazColor \| "surface"` | No | `undefined` | `'primary' \| 'secondary' \| 'accent' \| 'info' \| 'success' \| 'warning' \| 'destructive' \| 'contrast' \| 'transparent' \| 'surface'` |
8
+ | **text-color** | The text color of the button | `MazColor \| "muted"` | No | `undefined` | `primary' \| 'secondary' \| 'accent' \| 'info' \| 'success' \| 'warning' \| 'destructive' \| 'contrast' \| 'transparent' \| 'muted'` |
8
9
  | **type** | The type of the button | `"submit" \| "reset" \| "button"` | No | `undefined` | `'submit' \| 'reset' \| 'button'` |
9
10
  | **rounded-size** | Size of the rounded | `MazRoundedSize` | No | `md` | `'none' \| 'sm' \| 'md' \| 'lg' \| 'xl' \| 'full'` |
10
11
  | **outlined** | If true, the button have the "border" style | `boolean` | No | `false` | - |
@@ -6,6 +6,7 @@
6
6
  | **style** | Inline styles to apply to the component root element | `HTMLAttributes['style']` | No | `undefined` | - |
7
7
  | **class** | CSS classes to apply to the component root element | `HTMLAttributes['class']` | No | `undefined` | - |
8
8
  | **items** | Menu items to display in the dropdown Each item can be either a link (with href/to properties) or an action (with onClick function)<br/>**Example:** `[ { label: 'Profile', href: '/profile' }, { label: 'Settings', onClick: () => console.log('Settings clicked') } ]` | `MazDropdownMenuItem[]` | No | `[]` | - |
9
+ | **items-size** | Size of the dropdown menu items | `MazSize` | No | `undefined` | `mini', 'xs', 'sm', 'md', 'lg', 'xl` |
9
10
  | **id** | Unique identifier for the dropdown component | `string` | No | `undefined` | - |
10
11
  | **trigger** | Determines how the dropdown should be triggered | `MazPopoverProps['trigger']` | No | `adaptive` | `click, hover, manual, adaptive` |
11
12
  | **color** | Color theme for the dropdown button | `MazColor` | No | `transparent` | `primary, secondary, info, success, warning, destructive, transparent, contrast, accent` |
@@ -38,5 +39,7 @@
38
39
  | default | Text content of the trigger element | |
39
40
  | dropdown-icon | Dropdown indicator icon | **is-open** `boolean` - Current state of the dropdown (true when open, false when closed)<br/><br/><br/> |
40
41
  | dropdown | Dropdown menu panel content | **items** `MazDropdownMenuItem[]` - Array of menu items passed via the items prop<br/>**open** `() =&gt; void` - Function to open the dropdown<br/>**close** `() =&gt; void` - Function to close the dropdown<br/>**is-open** `boolean` - Current state of the dropdown (true when open, false when closed)<br/>**toggle** `() =&gt; void` - Function to toggle the dropdown |
42
+ | prepend-menu | Prepend to the list of menu items | **is-open** `boolean` - Current state of the dropdown (true when open, false when closed)<br/>**open** `() =&gt; void` - Function to open the dropdown<br/>**close** `() =&gt; void` - Function to close the dropdown<br/>**toggle** `() =&gt; void` - Function to toggle the dropdown |
41
43
  | menuitem | Menu item component | **item** `MenuItem` - Individual menu item object with properties like label, href, onClick, etc.<br/>**open** `() =&gt; void` - Function to open the dropdown<br/>**close** `() =&gt; void` - Function to close the dropdown<br/>**is-open** `boolean` - Current state of the dropdown (true when open, false when closed)<br/>**toggle** `() =&gt; void` - Function to toggle the dropdown |
42
44
  | menuitem-label | Label content for menu item | **item** `MenuItem` - Individual menu item object containing label and other properties<br/>**open** `() =&gt; void` - Function to open the dropdown<br/>**close** `() =&gt; void` - Function to close the dropdown<br/>**is-open** `boolean` - Current state of the dropdown (true when open, false when closed)<br/>**toggle** `() =&gt; void` - Function to toggle the dropdown |
45
+ | append-menu | Append to the list of menu items | **is-open** `boolean` - Current state of the dropdown (true when open, false when closed)<br/>**open** `() =&gt; void` - Function to open the dropdown<br/>**close** `() =&gt; void` - Function to close the dropdown<br/>**toggle** `() =&gt; void` - Function to toggle the dropdown |
@@ -16,10 +16,12 @@ description: MazDropdown is a standalone dropdown menu component and versatile d
16
16
  <ComponentDemo>
17
17
  <MazDropdown
18
18
  :items="[
19
+ { label: 'Louis Mazel', textColor: 'muted' },
19
20
  { label: 'Action', onClick: () => toast.success('CLICKED') },
20
21
  { label: 'Link (href)', href: 'https://www.google.com', target: '_blank', color: 'secondary' },
21
22
  { label: 'Router Link', to: { name: 'index' }, color: 'destructive' },
22
23
  ]"
24
+ items-size="sm"
23
25
  >
24
26
  Dropdown Menu
25
27
  </MazDropdown>
@@ -82,6 +84,7 @@ This provides the best user experience across all devices without requiring manu
82
84
  ## Open dropdown only on click
83
85
 
84
86
  <MazDropdown
87
+ :model-value="true"
85
88
  :items="[
86
89
  { label: 'Action', onClick: () => toast.success('CLICKED') },
87
90
  { label: 'Link (href)', href: 'https://www.google.com', target: '_blank' },
@@ -220,8 +223,9 @@ You can provide an icon to replace the default chevron icon and disable the anim
220
223
  fab
221
224
  pastel
222
225
  :chevron="false"
223
- icon="/bars-3.svg"
226
+ :icon="MazBars3"
224
227
  size="xl"
228
+ items-size="sm"
225
229
  :items="[
226
230
  { label: 'Action', onClick: () => toast.success('CLICKED') },
227
231
  { label: 'Link (href)', href: 'https://www.google.com', target: '_blank' },
@@ -230,23 +234,34 @@ You can provide an icon to replace the default chevron icon and disable the anim
230
234
  :close-on-click="false"
231
235
  />
232
236
 
233
- ```html{2-7}
234
- <MazDropdown
235
- color="primary"
236
- fab
237
- pastel
238
- :chevron="false"
239
- icon="/bars-3.svg"
240
- size="xl"
241
- :items="[
242
- { label: 'Action', onClick: () => toast.success('CLICKED') },
243
- { label: 'Link (href)', href: 'https://www.google.com', target: '_blank' },
244
- { label: 'Router Link', to: { name: 'index' } },
245
- ]"
246
- :close-on-click="false"
247
- />
237
+ ::: details View code
238
+
239
+ ```vue{7-13}
240
+ <script lang="ts" setup>
241
+ import { MazBars3 } from '@maz-ui/icons/raw/MazBars3'
242
+ </script>
243
+
244
+ <template>
245
+ <MazDropdown
246
+ color="primary"
247
+ fab
248
+ pastel
249
+ :chevron="false"
250
+ :icon="MazBars3"
251
+ items-size="sm"
252
+ size="xl"
253
+ :items="[
254
+ { label: 'Action', onClick: () => toast.success('CLICKED') },
255
+ { label: 'Link (href)', href: 'https://www.google.com', target: '_blank' },
256
+ { label: 'Router Link', to: { name: 'index' } },
257
+ ]"
258
+ :close-on-click="false"
259
+ />
260
+ </template>
248
261
  ```
249
262
 
263
+ :::
264
+
250
265
  ## Custom slots
251
266
 
252
267
  ### Custom dropdown panel
@@ -654,6 +669,7 @@ type MazDropdownMenuItem = {
654
669
  import { ref, onMounted } from 'vue'
655
670
  import { useToast } from 'maz-ui/composables/useToast'
656
671
  import { MazChevronUpDown } from '@maz-ui/icons/raw/MazChevronUpDown'
672
+ import { MazBars3 } from '@maz-ui/icons/raw/MazBars3'
657
673
 
658
674
  const toast = useToast()
659
675
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@maz-ui/mcp",
3
3
  "type": "module",
4
- "version": "5.0.0-beta.26",
4
+ "version": "5.0.0-beta.28",
5
5
  "description": "Maz-UI ModelContextProtocol Client",
6
6
  "author": "Louis Mazel <me@loicmazuel.com>",
7
7
  "license": "MIT",
@@ -42,18 +42,18 @@
42
42
  ],
43
43
  "dependencies": {
44
44
  "@modelcontextprotocol/sdk": "^1.29.0",
45
- "@maz-ui/node": "5.0.0-beta.26",
46
- "@maz-ui/utils": "5.0.0-beta.25"
45
+ "@maz-ui/utils": "5.0.0-beta.28",
46
+ "@maz-ui/node": "5.0.0-beta.26"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@modelcontextprotocol/inspector": "^0.21.2",
50
- "@swc/core": "1.15.33",
51
- "prettier": "^3.8.3",
50
+ "@swc/core": "1.15.40",
51
+ "prettier": "^3.8.4",
52
52
  "ts-node-maintained": "^10.9.5",
53
53
  "tsx": "^4.22.3",
54
54
  "unbuild": "^3.6.1",
55
- "@maz-ui/eslint-config": "5.0.0-beta.25",
56
- "maz-ui": "5.0.0-beta.26"
55
+ "@maz-ui/eslint-config": "5.0.0-beta.28",
56
+ "maz-ui": "5.0.0-beta.28"
57
57
  },
58
58
  "lint-staged": {
59
59
  "*.{js,ts,mjs,mts,cjs,md,yml,json}": "cross-env NODE_ENV=production eslint --fix"