@maz-ui/mcp 5.0.0-beta.32 → 5.0.0-beta.33

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.32";
10
+ const version = "5.0.0-beta.33";
11
11
 
12
12
  class MetadataExtractor {
13
13
  extract(name, type, content, manualTags = []) {
@@ -1,18 +1,19 @@
1
1
  ## Props
2
2
 
3
- | Name | Description | Type | Required | Default | Possible values |
4
- | ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------- | -------- | ----------- | --------------------------------------------------------------------------------------------------------- |
5
- | **items** | The items to display in the tabs bar | `TSTypeOperator` | Yes | `undefined` | - |
6
- | **model-value** | `v-model` <br/>Selected tab (standalone usage, without MazTabs). Holds the item `value` when provided, otherwise the 1-based index. Pass items `as const` (or with literal `value`) to infer a union type. | `MazTabsBarItemValue` | No | `undefined` | - |
7
- | **size** | Size of the tabs (forwarded to each MazBtn) | `MazSize` | No | `md` | `'xl' \| 'lg' \| 'md' \| 'sm' \| 'xs' \| 'mini'` |
8
- | **rounded-size** | Size of the rounded applied to the bar, the indicator and each tab | `MazRoundedSize` | No | `md` | `'none' \| 'sm' \| 'md' \| 'lg' \| 'xl' \| 'full'` |
9
- | **color** | Color of the active tab indicator. When omitted, the default neutral indicator is used. | `MazColor` | No | `undefined` | `'primary' \| 'secondary' \| 'accent' \| 'info' \| 'success' \| 'warning' \| 'destructive' \| 'contrast'` |
10
- | **persistent** | Will add a query param to the url to keep the selected tab on page refresh | `boolean` | No | `false` | - |
11
- | **query-param** | The name of the query param to add to the url | `string` | No | `tab` | - |
12
- | **block** | Will make the tabs bar full width | `boolean` | No | `false` | - |
13
- | **elevation** | Will remove the elevation | `boolean` | No | `false` | - |
14
- | **auto-scroll** | Will add a scroll on the tabs bar to show selected element | `boolean` | No | `true` | - |
15
- | **bordered** | Will add a border to the tabs bar | `boolean` | No | `true` | - |
3
+ | Name | Description | Type | Required | Default | Possible values |
4
+ | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------- | -------- | ----------- | --------------------------------------------------------------------------------------------------------- |
5
+ | **items** | The items to display in the tabs bar | `TSTypeOperator` | Yes | `undefined` | - |
6
+ | **model-value** | `v-model` <br/>Selected tab (standalone usage, without MazTabs). Holds the item `value` when provided, otherwise the 1-based index. Pass items `as const` (or with literal `value`) to infer a union type. | `MazTabsBarItemValue` | No | `undefined` | - |
7
+ | **size** | Size of the tabs (forwarded to each MazBtn) | `MazSize` | No | `md` | `'xl' \| 'lg' \| 'md' \| 'sm' \| 'xs' \| 'mini'` |
8
+ | **rounded-size** | Size of the rounded applied to the bar, the indicator and each tab | `MazRoundedSize` | No | `md` | `'none' \| 'sm' \| 'md' \| 'lg' \| 'xl' \| 'full'` |
9
+ | **color** | Color of the active tab indicator. When omitted, the default neutral indicator is used. | `MazColor` | No | `undefined` | `'primary' \| 'secondary' \| 'accent' \| 'info' \| 'success' \| 'warning' \| 'destructive' \| 'contrast'` |
10
+ | **standalone** | Force the standalone mode: the tabs bar ignores any surrounding `MazTabs` (selection, size, rounded-size and color are no longer inherited) and is driven only by its own `v-model`. Useful for a nested switcher inside a page already wrapped by `MazTabs`. | `boolean` | No | `false` | - |
11
+ | **persistent** | Will add a query param to the url to keep the selected tab on page refresh | `boolean` | No | `false` | - |
12
+ | **query-param** | The name of the query param to add to the url | `string` | No | `tab` | - |
13
+ | **block** | Will make the tabs bar full width | `boolean` | No | `false` | - |
14
+ | **elevation** | Will remove the elevation | `boolean` | No | `false` | - |
15
+ | **auto-scroll** | Will add a scroll on the tabs bar to show selected element | `boolean` | No | `true` | - |
16
+ | **bordered** | Will add a border to the tabs bar | `boolean` | No | `true` | - |
16
17
 
17
18
  ## Events
18
19
 
@@ -235,6 +235,14 @@ The active tab is highlighted by the indicator. Use the `color` prop (`MazColor`
235
235
 
236
236
  `MazTabsBar` can be used on its own, without `MazTabs`, as an independent switcher with its own `v-model`.
237
237
 
238
+ ::: tip Nested inside a `MazTabs`
239
+ If your page is already wrapped by a `MazTabs`, a nested `MazTabsBar` would otherwise be linked to that parent (clicking a tab would change the page). Add the `standalone` prop to make it fully independent (it then ignores the parent's selection, size, rounded-size and color):
240
+
241
+ ```vue
242
+ <MazTabsBar v-model="selected" :items="items" standalone />
243
+ ```
244
+ :::
245
+
238
246
  The model returns the `1`-based index of the selected tab, unless the items provide a `value` (`string | number`), in which case that value is returned. The model type is inferred from the items passed: declare the items `as const` (or with literal `value`s) to get a strict union type for the model and the `@update:model-value` event.
239
247
 
240
248
  <MazTabsBar v-model="standaloneModel" :items="standaloneItems" color="secondary" rounded-size="full" />
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.32",
4
+ "version": "5.0.0-beta.33",
5
5
  "description": "Maz-UI ModelContextProtocol Client",
6
6
  "author": "Louis Mazel <me@loicmazuel.com>",
7
7
  "license": "MIT",
@@ -42,8 +42,8 @@
42
42
  ],
43
43
  "dependencies": {
44
44
  "@modelcontextprotocol/sdk": "^1.29.0",
45
- "@maz-ui/utils": "5.0.0-beta.28",
46
- "maz-ui": "5.0.0-beta.32"
45
+ "maz-ui": "5.0.0-beta.33",
46
+ "@maz-ui/utils": "5.0.0-beta.28"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@modelcontextprotocol/inspector": "^0.21.2",