@nexub/mcp 5.0.0 → 5.1.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/LICENSE +21 -0
- package/dist/skill/references/components/autocomplete.md +2 -0
- package/dist/skill/references/components/breadcrumb.md +25 -0
- package/dist/skill/references/components/drawer.md +2 -2
- package/dist/skill/references/components/filter-bar.md +1 -0
- package/dist/skill/references/components/toast.md +1 -0
- package/dist/skill/references/components.md +1 -1
- package/dist/skill/references/tokens.md +1 -1
- package/package.json +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Nexub Pte. Ltd.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -16,6 +16,8 @@ Type-to-search input with matching options dropdown.
|
|
|
16
16
|
| `placeholder` | `string` | | Placeholder text shown in the input when empty. |
|
|
17
17
|
| `emptyText` | `string` | | Text shown when no options match the current search query. |
|
|
18
18
|
| `loading` | `boolean` | | Shows a loading indicator while options are being fetched. |
|
|
19
|
+
| `inputValue` | `string` | | Controlled input text (5.1). |
|
|
20
|
+
| `onInputChange` | `(text: string) => void` | | Called as the user types, so you can fetch options (5.1). When set, options are shown as given, without built-in filtering. |
|
|
19
21
|
|
|
20
22
|
## Example: Default
|
|
21
23
|
|
|
@@ -13,6 +13,8 @@ Hierarchical navigation trail showing page location.
|
|
|
13
13
|
| `Breadcrumb.Root aria-label` | `string` | `'breadcrumb'` | Accessible label for the nav landmark. |
|
|
14
14
|
| `Breadcrumb.Link href` | `string` | | URL the breadcrumb link navigates to. |
|
|
15
15
|
| `Breadcrumb.Link asChild` | `boolean` | `false` | Merges props onto the immediate child element, useful for router Link components. |
|
|
16
|
+
| `Breadcrumb.Trail items` (required) | `{ label: ReactNode; href?: string }[]` | | The whole trail from data (5.1), root first; the last item is the current page. |
|
|
17
|
+
| `Breadcrumb.Trail maxItems` | `number` | `4` | Longer trails keep the first item and the last `maxItems - 1`, and move the rest into a "More" menu. |
|
|
16
18
|
| `Breadcrumb.Separator children` | `React.ReactNode` | | Custom separator element. Defaults to a chevron icon. |
|
|
17
19
|
| `Breadcrumb.Ellipsis aria-label` | `string` | `'More'` | Accessible label for the ellipsis element used to collapse long trails. |
|
|
18
20
|
|
|
@@ -57,3 +59,26 @@ export default function Example() {
|
|
|
57
59
|
);
|
|
58
60
|
}
|
|
59
61
|
```
|
|
62
|
+
|
|
63
|
+
## Example: Auto-collapse
|
|
64
|
+
|
|
65
|
+
Breadcrumb.Trail moves the middle of a long path into a menu.
|
|
66
|
+
|
|
67
|
+
```tsx
|
|
68
|
+
import { Breadcrumb } from '@nexub/react';
|
|
69
|
+
|
|
70
|
+
export default function Example() {
|
|
71
|
+
return (
|
|
72
|
+
<Breadcrumb.Trail
|
|
73
|
+
maxItems={3}
|
|
74
|
+
items={[
|
|
75
|
+
{ label: 'Home', href: '/' },
|
|
76
|
+
{ label: 'Acme', href: '/' },
|
|
77
|
+
{ label: 'Billing', href: '/' },
|
|
78
|
+
{ label: 'Invoices', href: '/' },
|
|
79
|
+
{ label: 'INV-2041' },
|
|
80
|
+
]}
|
|
81
|
+
/>
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
```
|
|
@@ -17,8 +17,8 @@ Slide-in panel from any edge of the screen.
|
|
|
17
17
|
| `Drawer.Content` | `compound` | | The drawer panel. Accepts a side prop. |
|
|
18
18
|
| `scrollLock` | `'style' \| 'class'` | | On Drawer.Root. How page scroll is locked while open. `class` adds a class from @nexub/themes/base instead of injecting a <style> tag, so it works under a strict CSP (style-src 'self'). Default `style`. |
|
|
19
19
|
| `side` | `'left' \| 'right' \| 'top' \| 'bottom'` | | Edge of the screen from which the drawer slides in. |
|
|
20
|
-
| `Drawer.Header` | `compound` | | Header section of the drawer panel. |
|
|
21
|
-
| `Drawer.Footer` | `compound` | | Footer section of the drawer panel. |
|
|
20
|
+
| `Drawer.Header` | `compound` | | Header section of the drawer panel. Sticky on solid panels (5.1): long content scrolls under it. |
|
|
21
|
+
| `Drawer.Footer` | `compound` | | Footer section of the drawer panel. Sticky on solid panels (5.1): actions stay in view while content scrolls. |
|
|
22
22
|
| `Drawer.Title` | `compound` | | Accessible title for the drawer. |
|
|
23
23
|
| `Drawer.Description` | `compound` | | Supporting description text for the drawer. |
|
|
24
24
|
| `Drawer.Close` | `compound` | | Element that closes the drawer. |
|
|
@@ -13,6 +13,7 @@ Search + filter toolbar pattern for data-heavy list or table views.
|
|
|
13
13
|
| `searchPlaceholder` | `string` | `'Search…'` | Placeholder text for the search input. |
|
|
14
14
|
| `searchValue` | `string` | | Controlled search value. |
|
|
15
15
|
| `onSearch` | `(value: string) => void` | | Callback when search value changes. |
|
|
16
|
+
| `searchLabel` | `string` | `'Search'` | Accessible name of the search field (5.1). Defaults to the localised `search` message. |
|
|
16
17
|
| `filters` | `React.ReactNode` | | Filter controls rendered to the right of search. |
|
|
17
18
|
| `actions` | `React.ReactNode` | | Action buttons (e.g. "Export") rendered on the far right. |
|
|
18
19
|
|
|
@@ -25,6 +25,7 @@ Imperative toast notifications using the toast object. Render <Toaster /> once i
|
|
|
25
25
|
| Prop | Type | Default | Description |
|
|
26
26
|
| --- | --- | --- | --- |
|
|
27
27
|
| `Toaster expand` | `boolean` | `false` | Always show toasts as a list. By default they collapse into a stack that fans out on hover or focus, which also pauses their timers. |
|
|
28
|
+
| `Toaster position` | `'top-start' \| 'top-center' \| 'top-end' \| 'bottom-start' \| 'bottom-center' \| 'bottom-end'` | `'top-end'` | Where the stack sits (5.1). Start and end follow the reading direction; bottom positions stack upward. |
|
|
28
29
|
| `Toaster visibleToasts` | `number` | `3` | How many toasts show at once. Older ones are hidden visually but stay in the live region. |
|
|
29
30
|
| `toast.success(title, opts?)` (required) | `string` | | Show a success toast with an optional options object. |
|
|
30
31
|
| `toast.error(title, opts?)` (required) | `string` | | Show an error toast. |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Component index
|
|
2
2
|
|
|
3
|
-
Nexub DS v5.
|
|
3
|
+
Nexub DS v5.1.0. Open `components/<slug>.md` for props, examples and accessibility notes.
|
|
4
4
|
Never use a component marked deprecated.
|
|
5
5
|
|
|
6
6
|
## Components — Actions
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Tokens
|
|
2
2
|
|
|
3
|
-
Nexub DS v5.
|
|
3
|
+
Nexub DS v5.1.0. Every token is a CSS custom property from `@nexub/tokens/css` (loaded by `@nexub/themes/base`).
|
|
4
4
|
The Tailwind preset (`@nexub/tokens/tailwind`) maps them to utilities. Never hardcode a hex, px spacing or shadow that a token covers.
|
|
5
5
|
|
|
6
6
|
## Color roles
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexub/mcp",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "MCP server for Nexub Design System: gives Claude, Cursor and any MCP client the components, patterns, tokens and design rules of the installed release.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|