@nexub/mcp 1.7.0 → 1.8.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.
|
@@ -10,7 +10,8 @@ Feature-rich data table with sorting and row selection powered by TanStack Table
|
|
|
10
10
|
|
|
11
11
|
| Prop | Type | Default | Description |
|
|
12
12
|
| --- | --- | --- | --- |
|
|
13
|
-
| `columns` (required) | `
|
|
13
|
+
| `columns` (required) | `DataTableColumn<TData>[]` | | TanStack Table column definitions (`DataTableColumn` is exported from @nexub/react). Set `meta: { align: 'end' }` for numeric columns; headers, sort buttons and cells follow it. |
|
|
14
|
+
| `caption` | `ReactNode` | | Names the table for assistive tech (and its scroll region). Shown below the table; add `captionHidden` to keep it screen-reader only. |
|
|
14
15
|
| `data` (required) | `TData[]` | | Array of row data objects to render. |
|
|
15
16
|
| `enableSorting` | `boolean` | `false` | Enables click-to-sort on column headers. |
|
|
16
17
|
| `enableRowSelection` | `boolean` | `false` | Adds a checkbox column for row selection. |
|
|
@@ -14,6 +14,7 @@ Metric display card showing a KPI value, label, optional delta, and icon.
|
|
|
14
14
|
| `value` (required) | `React.ReactNode` | | Primary metric value. |
|
|
15
15
|
| `delta` | `string` | | Change value (e.g. "+12.5%"). |
|
|
16
16
|
| `deltaType` | `'increase' \| 'decrease' \| 'neutral'` | | Semantic direction of the delta. |
|
|
17
|
+
| `sentiment` | `'positive' \| 'negative' \| 'neutral'` | | Colour of the delta, independent of the arrow. Defaults from `deltaType`; use it when a decrease is good news (e.g. churn down). |
|
|
17
18
|
| `icon` | `React.ReactNode` | | Icon displayed in the card header. |
|
|
18
19
|
| `description` | `string` | | Additional context below the value. |
|
|
19
20
|
| `animate` | `boolean` | `false` | Roll the digits when a number or string `value` changes (NumberTicker), announced politely. The first render never animates. |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Component index
|
|
2
2
|
|
|
3
|
-
Nexub DS v1.
|
|
3
|
+
Nexub DS v1.8.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 v1.
|
|
3
|
+
Nexub DS v1.8.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": "1.
|
|
3
|
+
"version": "1.8.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",
|