@nexub/mcp 8.4.0 → 8.6.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.
@@ -11,7 +11,7 @@ Calendar date picker with text input.
11
11
  | Prop | Type | Default | Description |
12
12
  | --- | --- | --- | --- |
13
13
  | `value` | `Date \| undefined` | | Controlled selected date value. |
14
- | `onChange` | `(date: Date \| undefined) => void` | | Callback invoked when the selected date changes. |
14
+ | `onValueChange` | `(date: Date \| undefined) => void` | | Called with the picked date. `onChange` is a deprecated alias (8.5), removed in 9.0. |
15
15
  | `locale` | `Locale (date-fns)` | | Month and weekday names, week start and the trigger format. Defaults to the NexubProvider `dateLocale`; the calendar also follows the provider `dir`, so arrows flip in RTL. |
16
16
  | `placeholder` | `string` | `'Pick a date'` | Placeholder text displayed in the input when no date is selected. |
17
17
  | `disabled` | `boolean` | `false` | Disables the date picker input and calendar. |
@@ -36,7 +36,7 @@ export default function Example() {
36
36
  import { DatePicker } from '@nexub/react';
37
37
 
38
38
  export default function Example() {
39
- return <DatePicker value={new Date('2026-01-15')} onChange={() => {}} />;
39
+ return <DatePicker value={new Date('2026-01-15')} onValueChange={() => {}} />;
40
40
  }
41
41
  ```
42
42
 
@@ -10,7 +10,7 @@ A DatePicker and a TimePicker that edit one Date, with an optional time-zone lab
10
10
 
11
11
  | Prop | Type | Default | Description |
12
12
  | --- | --- | --- | --- |
13
- | `value / onChange` | `Date \| undefined` | | Date and time in the reader’s local time. |
13
+ | `value / onValueChange` | `Date \| undefined` | | Date and time in the reader’s local time. |
14
14
  | `defaultTime` | `string` | `'09:00'` | Time used when the date is picked first. |
15
15
  | `minuteStep` | `number` | | Passed to the TimePicker. |
16
16
  | `minDate / maxDate` | `Date` | | Limits the calendar. |
@@ -29,7 +29,7 @@ export default function Example() {
29
29
  const [starts, setStarts] = React.useState<Date | undefined>();
30
30
  return (
31
31
  <div className="flex w-full max-w-md flex-col gap-2">
32
- <DateTimePicker aria-label="Meeting starts" value={starts} onChange={setStarts} minuteStep={15} timeZone="Asia/Singapore" />
32
+ <DateTimePicker aria-label="Meeting starts" value={starts} onValueChange={setStarts} minuteStep={15} timeZone="Asia/Singapore" />
33
33
  <p className="text-body-sm text-[var(--color-on-surface-muted)]">{starts ? starts.toString() : 'Pick a date first; the time defaults to 09:00.'}</p>
34
34
  </div>
35
35
  );
@@ -1,6 +1,6 @@
1
1
  # Component index
2
2
 
3
- Nexub DS v8.4.0. Open `components/<slug>.md` for props, examples and accessibility notes.
3
+ Nexub DS v8.6.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 v8.4.0. Every token is a CSS custom property from `@nexub/tokens/css` (loaded by `@nexub/themes/base`).
3
+ Nexub DS v8.6.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": "8.4.0",
3
+ "version": "8.6.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",